base.bundle.js
759 KB
if(!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(x,H){"use strict";function b(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item}function m(t){return null!=t&&t===t.window}var e=[],L=Object.getPrototypeOf,a=e.slice,j=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},R=e.push,F=e.indexOf,z={},W=z.toString,U=z.hasOwnProperty,q=U.toString,V=q.call(Object),g={},_=x.document,B={type:!0,src:!0,nonce:!0,noModule:!0};function Y(t,e,n){var i,o,r=(n=n||_).createElement("script");if(r.text=t,e)for(i in B)(o=e[i]||e.getAttribute&&e.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function f(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?z[W.call(t)]||"object":typeof t}var t="3.6.0",k=function(t,e){return new k.fn.init(t,e)};function G(t){var e=!!t&&"length"in t&&t.length,n=f(t);return!b(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}k.fn=k.prototype={jquery:t,constructor:k,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=k.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return k.each(this,t)},map:function(n){return this.pushStack(k.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:R,sort:e.sort,splice:e.splice},k.extend=k.fn.extend=function(){var t,e,n,i,o,r=arguments[0]||{},s=1,a=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[s]||{},s++),"object"==typeof r||b(r)||(r={}),s===a&&(r=this,s--);s<a;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(l&&n&&(k.isPlainObject(n)||(i=Array.isArray(n)))?(o=r[e],o=i&&!Array.isArray(o)?[]:i||k.isPlainObject(o)?o:{},i=!1,r[e]=k.extend(l,o,n)):void 0!==n&&(r[e]=n));return r},k.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==W.call(t)||(t=L(t))&&("function"!=typeof(t=U.call(t,"constructor")&&t.constructor)||q.call(t)!==V))},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,n){Y(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(G(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(G(Object(t))?k.merge(e,"string"==typeof t?[t]:t):R.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:F.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;o<r;o++)!e(t[o],o)!=s&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,s=[];if(G(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&s.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&s.push(o);return j(s)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=e[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){z["[object "+e+"]"]=e.toLowerCase()});function i(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&k(t).is(n))break;i.push(t)}return i}function K(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var t=function(H){function h(t,e){return t="0x"+t.slice(1)-65536,e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))}function L(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function j(){x()}var t,d,$,r,R,p,F,z,w,l,u,x,_,n,k,f,i,o,m,C="sizzle"+ +new Date,c=H.document,T=0,W=0,U=A(),q=A(),V=A(),g=A(),B=function(t,e){return t===e&&(u=!0),0},Y={}.hasOwnProperty,e=[],G=e.pop,K=e.push,D=e.push,X=e.slice,b=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},Q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",s="[\\x20\\t\\r\\n\\f]",a="(?:\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",J="\\["+s+"*("+a+")(?:"+s+"*([*^$|!~]?=)"+s+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+a+"))|)"+s+"*\\]",Z=":("+a+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+J+")*)|.*)\\)|)",tt=new RegExp(s+"+","g"),v=new RegExp("^"+s+"+|((?:^|[^\\\\])(?:\\\\.)*)"+s+"+$","g"),et=new RegExp("^"+s+"*,"+s+"*"),nt=new RegExp("^"+s+"*([>+~]|"+s+")"+s+"*"),it=new RegExp(s+"|>"),ot=new RegExp(Z),rt=new RegExp("^"+a+"$"),y={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+s+"*(even|odd|(([+-]|)(\\d*)n|)"+s+"*(?:([+-]|)"+s+"*(\\d+)|))"+s+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+s+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+s+"*((?:-\\d)?\\d*)"+s+"*\\)|)(?=[^-]|$)","i")},st=/HTML$/i,at=/^(?:input|select|textarea|button)$/i,lt=/^h\d$/i,S=/^[^{]+\{\s*\[native \w/,ut=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ct=/[+~]/,E=new RegExp("\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\([^\\r\\n\\f])","g"),ht=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,dt=bt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{D.apply(e=X.call(c.childNodes),c.childNodes),e[c.childNodes.length].nodeType}catch(t){D={apply:e.length?function(t,e){K.apply(t,X.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function M(t,e,n,i){var o,r,s,a,l,u,c=e&&e.ownerDocument,h=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!i&&(x(e),e=e||_,k)){if(11!==h&&(a=ut.exec(t)))if(o=a[1]){if(9===h){if(!(u=e.getElementById(o)))return n;if(u.id===o)return n.push(u),n}else if(c&&(u=c.getElementById(o))&&m(e,u)&&u.id===o)return n.push(u),n}else{if(a[2])return D.apply(n,e.getElementsByTagName(t)),n;if((o=a[3])&&d.getElementsByClassName&&e.getElementsByClassName)return D.apply(n,e.getElementsByClassName(o)),n}if(d.qsa&&!g[t+" "]&&(!f||!f.test(t))&&(1!==h||"object"!==e.nodeName.toLowerCase())){if(u=t,c=e,1===h&&(it.test(t)||nt.test(t))){for((c=ct.test(t)&>(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(ht,L):e.setAttribute("id",s=C)),r=(l=p(t)).length;r--;)l[r]=(s?"#"+s:":scope")+" "+N(l[r]);u=l.join(",")}try{return D.apply(n,c.querySelectorAll(u)),n}catch(e){g(t,!0)}finally{s===C&&e.removeAttribute("id")}}}return z(t.replace(v,"$1"),e,n,i)}function A(){var i=[];return function t(e,n){return i.push(e+" ")>$.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function O(t){return t[C]=!0,t}function I(t){var e=_.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function pt(t,e){for(var n=t.split("|"),i=n.length;i--;)$.attrHandle[n[i]]=e}function ft(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function mt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&dt(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function P(s){return O(function(r){return r=+r,O(function(t,e){for(var n,i=s([],t.length,r),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=M.support={},R=M.isXML=function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!st.test(e||t&&t.nodeName||"HTML")},x=M.setDocument=function(t){var t=t?t.ownerDocument||t:c;return t!=_&&9===t.nodeType&&t.documentElement&&(n=(_=t).documentElement,k=!R(_),c!=_&&(t=_.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",j,!1):t.attachEvent&&t.attachEvent("onunload",j)),d.scope=I(function(t){return n.appendChild(t).appendChild(_.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),d.attributes=I(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=I(function(t){return t.appendChild(_.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=S.test(_.getElementsByClassName),d.getById=I(function(t){return n.appendChild(t).id=C,!_.getElementsByName||!_.getElementsByName(C).length}),d.getById?($.filter.ID=function(t){var e=t.replace(E,h);return function(t){return t.getAttribute("id")===e}},$.find.ID=function(t,e){if(void 0!==e.getElementById&&k)return(e=e.getElementById(t))?[e]:[]}):($.filter.ID=function(t){var e=t.replace(E,h);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},$.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),$.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},$.find.CLASS=d.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},i=[],f=[],(d.qsa=S.test(_.querySelectorAll))&&(I(function(t){var e;n.appendChild(t).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+s+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||f.push("\\["+s+"*(?:value|"+Q+")"),t.querySelectorAll("[id~="+C+"-]").length||f.push("~="),(e=_.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+s+"*name"+s+"*="+s+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||f.push(":checked"),t.querySelectorAll("a#"+C+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")}),I(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=_.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&f.push("name"+s+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),n.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),f.push(",.*:")})),(d.matchesSelector=S.test(o=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&I(function(t){d.disconnectedMatch=o.call(t,"*"),o.call(t,"[s!='']:x"),i.push("!=",Z)}),f=f.length&&new RegExp(f.join("|")),i=i.length&&new RegExp(i.join("|")),t=S.test(n.compareDocumentPosition),m=t||S.test(n.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},B=t?function(t,e){var n;return t===e?(u=!0,0):!t.compareDocumentPosition-!e.compareDocumentPosition||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===n?t==_||t.ownerDocument==c&&m(c,t)?-1:e==_||e.ownerDocument==c&&m(c,e)?1:l?b(l,t)-b(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t==_?-1:e==_?1:o?-1:r?1:l?b(l,t)-b(l,e):0;if(o===r)return ft(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ft(s[i],a[i]):s[i]==c?-1:a[i]==c?1:0}),_},M.matches=function(t,e){return M(t,null,null,e)},M.matchesSelector=function(t,e){if(x(t),d.matchesSelector&&k&&!g[e+" "]&&(!i||!i.test(e))&&(!f||!f.test(e)))try{var n=o.call(t,e);if(n||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){g(e,!0)}return 0<M(e,_,null,[t]).length},M.contains=function(t,e){return(t.ownerDocument||t)!=_&&x(t),m(t,e)},M.attr=function(t,e){(t.ownerDocument||t)!=_&&x(t);var n=$.attrHandle[e.toLowerCase()],n=n&&Y.call($.attrHandle,e.toLowerCase())?n(t,e,!k):void 0;return void 0!==n?n:d.attributes||!k?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},M.escape=function(t){return(t+"").replace(ht,L)},M.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},M.uniqueSort=function(t){var e,n=[],i=0,o=0;if(u=!d.detectDuplicates,l=!d.sortStable&&t.slice(0),t.sort(B),u){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return l=null,t},r=M.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},($=M.selectors={cacheLength:50,createPseudo:O,match:y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(E,h),t[3]=(t[3]||t[4]||t[5]||"").replace(E,h),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||M.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&M.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ot.test(n)&&(e=(e=p(n,!0))&&n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(E,h).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+s+")"+t+"("+s+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=M.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(tt," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,t,e,m,g){var v="nth"!==f.slice(0,3),b="last"!==f.slice(-4),y="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var i,o,r,s,a,l,u=v!=b?"nextSibling":"previousSibling",c=t.parentNode,h=y&&t.nodeName.toLowerCase(),d=!n&&!y,p=!1;if(c){if(v){for(;u;){for(s=t;s=s[u];)if(y?s.nodeName.toLowerCase()===h:1===s.nodeType)return!1;l=u="only"===f&&!l&&"nextSibling"}return!0}if(l=[b?c.firstChild:c.lastChild],b&&d){for(p=(a=(i=(o=(r=(s=c)[C]||(s[C]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===T&&i[1])&&i[2],s=a&&c.childNodes[a];s=++a&&s&&s[u]||(p=a=0,l.pop());)if(1===s.nodeType&&++p&&s===t){o[f]=[T,a,p];break}}else if(!1===(p=d?a=(i=(o=(r=(s=t)[C]||(s[C]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===T&&i[1]:p))for(;(s=++a&&s&&s[u]||(p=a=0,l.pop()))&&((y?s.nodeName.toLowerCase()!==h:1!==s.nodeType)||!++p||(d&&((o=(r=s[C]||(s[C]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]=[T,p]),s!==t)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(t,r){var e,s=$.pseudos[t]||$.setFilters[t.toLowerCase()]||M.error("unsupported pseudo: "+t);return s[C]?s(r):1<s.length?(e=[t,t,"",r],$.setFilters.hasOwnProperty(t.toLowerCase())?O(function(t,e){for(var n,i=s(t,r),o=i.length;o--;)t[n=b(t,i[o])]=!(e[n]=i[o])}):function(t){return s(t,0,e)}):s}},pseudos:{not:O(function(t){var i=[],o=[],a=F(t.replace(v,"$1"));return a[C]?O(function(t,e,n,i){for(var o,r=a(t,null,i,[]),s=t.length;s--;)(o=r[s])&&(t[s]=!(e[s]=o))}):function(t,e,n){return i[0]=t,a(i,null,n,o),i[0]=null,!o.pop()}}),has:O(function(e){return function(t){return 0<M(e,t).length}}),contains:O(function(e){return e=e.replace(E,h),function(t){return-1<(t.textContent||r(t)).indexOf(e)}}),lang:O(function(n){return rt.test(n||"")||M.error("unsupported lang: "+n),n=n.replace(E,h).toLowerCase(),function(t){var e;do{if(e=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=H.location&&H.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===n},focus:function(t){return t===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!$.pseudos.empty(t)},header:function(t){return lt.test(t.nodeName)},input:function(t){return at.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:P(function(){return[0]}),last:P(function(t,e){return[e-1]}),eq:P(function(t,e,n){return[n<0?n+e:n]}),even:P(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:P(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:P(function(t,e,n){for(var i=n<0?n+e:e<n?e:n;0<=--i;)t.push(i);return t}),gt:P(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=$.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})$.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})$.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function vt(){}function N(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function bt(s,t,e){var a=t.dir,l=t.next,u=l||a,c=e&&"parentNode"===u,h=W++;return t.first?function(t,e,n){for(;t=t[a];)if(1===t.nodeType||c)return s(t,e,n);return!1}:function(t,e,n){var i,o,r=[T,h];if(n){for(;t=t[a];)if((1===t.nodeType||c)&&s(t,e,n))return!0}else for(;t=t[a];)if(1===t.nodeType||c)if(o=(o=t[C]||(t[C]={}))[t.uniqueID]||(o[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[a]||t;else{if((i=o[u])&&i[0]===T&&i[1]===h)return r[2]=i[2];if((o[u]=r)[2]=s(t,e,n))return!0}return!1}}function yt(o){return 1<o.length?function(t,e,n){for(var i=o.length;i--;)if(!o[i](t,e,n))return!1;return!0}:o[0]}function $t(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,u=null!=e;a<l;a++)!(r=t[a])||n&&!n(r,i,o)||(s.push(r),u&&e.push(a));return s}function wt(t){for(var i,e,n,o=t.length,r=$.relative[t[0].type],s=r||$.relative[" "],a=r?1:0,l=bt(function(t){return t===i},s,!0),u=bt(function(t){return-1<b(i,t)},s,!0),c=[function(t,e,n){t=!r&&(n||e!==w)||((i=e).nodeType?l:u)(t,e,n);return i=null,t}];a<o;a++)if(e=$.relative[t[a].type])c=[bt(yt(c),e)];else{if((e=$.filter[t[a].type].apply(null,t[a].matches))[C]){for(n=++a;n<o&&!$.relative[t[n].type];n++);return function t(p,f,m,g,v,e){return g&&!g[C]&&(g=t(g)),v&&!v[C]&&(v=t(v,e)),O(function(t,e,n,i){var o,r,s,a=[],l=[],u=e.length,c=t||function(t,e,n){for(var i=0,o=e.length;i<o;i++)M(t,e[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),h=!p||!t&&f?c:$t(c,a,p,n,i),d=m?v||(t?p:u||g)?[]:e:h;if(m&&m(h,d,n,i),g)for(o=$t(d,l),g(o,[],n,i),r=o.length;r--;)(s=o[r])&&(d[l[r]]=!(h[l[r]]=s));if(t){if(v||p){if(v){for(o=[],r=d.length;r--;)(s=d[r])&&o.push(h[r]=s);v(null,d=[],o,i)}for(r=d.length;r--;)(s=d[r])&&-1<(o=v?b(t,s):a[r])&&(t[o]=!(e[o]=s))}}else d=$t(d===e?d.splice(u,d.length):d),v?v(null,e,d,i):D.apply(e,d)})}(1<a&&yt(c),1<a&&N(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(v,"$1"),e,a<n&&wt(t.slice(a,n)),n<o&&wt(t=t.slice(n)),n<o&&N(t))}c.push(e)}return yt(c)}return vt.prototype=$.filters=$.pseudos,$.setFilters=new vt,p=M.tokenize=function(t,e){var n,i,o,r,s,a,l,u=q[t+" "];if(u)return e?0:u.slice(0);for(s=t,a=[],l=$.preFilter;s;){for(r in n&&!(i=et.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(o=[])),n=!1,(i=nt.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(v," ")}),s=s.slice(n.length)),$.filter)!(i=y[r].exec(s))||l[r]&&!(i=l[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?M.error(t):q(t,a).slice(0)},F=M.compile=function(t,e){var n,g,v,b,y,i,o=[],r=[],s=V[t+" "];if(!s){for(n=(e=e||p(t)).length;n--;)((s=wt(e[n]))[C]?o:r).push(s);(s=V(t,(b=0<(v=o).length,y=0<(g=r).length,i=function(t,e,n,i,o){var r,s,a,l=0,u="0",c=t&&[],h=[],d=w,p=t||y&&$.find.TAG("*",o),f=T+=null==d?1:Math.random()||.1,m=p.length;for(o&&(w=e==_||e||o);u!==m&&null!=(r=p[u]);u++){if(y&&r){for(s=0,e||r.ownerDocument==_||(x(r),n=!k);a=g[s++];)if(a(r,e||_,n)){i.push(r);break}o&&(T=f)}b&&((r=!a&&r)&&l--,t)&&c.push(r)}if(l+=u,b&&u!==l){for(s=0;a=v[s++];)a(c,h,e,n);if(t){if(0<l)for(;u--;)c[u]||h[u]||(h[u]=G.call(i));h=$t(h)}D.apply(i,h),o&&!t&&0<h.length&&1<l+v.length&&M.uniqueSort(i)}return o&&(T=f,w=d),c},b?O(i):i))).selector=t}return s},z=M.select=function(t,e,n,i){var o,r,s,a,l,u="function"==typeof t&&t,c=!i&&p(t=u.selector||t);if(n=n||[],1===c.length){if(2<(r=c[0]=c[0].slice(0)).length&&"ID"===(s=r[0]).type&&9===e.nodeType&&k&&$.relative[r[1].type]){if(!(e=($.find.ID(s.matches[0].replace(E,h),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=y.needsContext.test(t)?0:r.length;o--&&(s=r[o],!$.relative[a=s.type]);)if((l=$.find[a])&&(i=l(s.matches[0].replace(E,h),ct.test(r[0].type)&>(e.parentNode)||e))){if(r.splice(o,1),t=i.length&&N(r))break;return D.apply(n,i),n}}return(u||F(t,c))(i,e,!k,n,!e||ct.test(t)&>(e.parentNode)||e),n},d.sortStable=C.split("").sort(B).join("")===C,d.detectDuplicates=!!u,x(),d.sortDetached=I(function(t){return 1&t.compareDocumentPosition(_.createElement("fieldset"))}),I(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||pt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),d.attributes&&I(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||pt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),I(function(t){return null==t.getAttribute("disabled")})||pt(Q,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),M}(x),X=(k.find=t,k.expr=t.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=t.uniqueSort,k.text=t.getText,k.isXMLDoc=t.isXML,k.contains=t.contains,k.escapeSelector=t.escape,k.expr.match.needsContext);function l(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var Q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(t,n,i){return b(n)?k.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?k.grep(t,function(t){return t===n!==i}):"string"!=typeof n?k.grep(t,function(t){return-1<F.call(n,t)!==i}):k.filter(n,t,i)}k.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?k.find.matchesSelector(i,t)?[i]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e<i;e++)if(k.contains(o[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)k.find(t,o[e],n);return 1<i?k.uniqueSort(n):n},filter:function(t){return this.pushStack(J(this,t||[],!1))},not:function(t){return this.pushStack(J(this,t||[],!0))},is:function(t){return!!J(this,"string"==typeof t&&X.test(t)?k(t):t||[],!1).length}});var Z,tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,et=((k.fn.init=function(t,e,n){if(t){if(n=n||Z,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==n.ready?n.ready(t):t(k):k.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:tt.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:_,!0)),Q.test(i[1])&&k.isPlainObject(e))for(var i in e)b(this[i])?this[i](e[i]):this.attr(i,e[i])}else(n=_.getElementById(i[2]))&&(this[0]=n,this.length=1)}return this}).prototype=k.fn,Z=k(_),/^(?:parents|prev(?:Until|All))/),nt={children:!0,contents:!0,next:!0,prev:!0};function it(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(k.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,o=this.length,r=[],s="string"!=typeof t&&k(t);if(!X.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&k.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(1<r.length?k.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?F.call(k(t),this[0]):F.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return i(t,"parentNode")},parentsUntil:function(t,e,n){return i(t,"parentNode",n)},next:function(t){return it(t,"nextSibling")},prev:function(t){return it(t,"previousSibling")},nextAll:function(t){return i(t,"nextSibling")},prevAll:function(t){return i(t,"previousSibling")},nextUntil:function(t,e,n){return i(t,"nextSibling",n)},prevUntil:function(t,e,n){return i(t,"previousSibling",n)},siblings:function(t){return K((t.parentNode||{}).firstChild,t)},children:function(t){return K(t.firstChild)},contents:function(t){return null!=t.contentDocument&&L(t.contentDocument)?t.contentDocument:(l(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},function(i,o){k.fn[i]=function(t,e){var n=k.map(this,o,t);return(e="Until"!==i.slice(-5)?t:e)&&"string"==typeof e&&(n=k.filter(e,n)),1<this.length&&(nt[i]||k.uniqueSort(n),et.test(i))&&n.reverse(),this.pushStack(n)}});var C=/[^\x20\t\r\n\f]+/g;function c(t){return t}function ot(t){throw t}function rt(t,e,n,i){var o;try{t&&b(o=t.promise)?o.call(t).done(e).fail(n):t&&b(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}k.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},k.each(t.match(C)||[],function(t,e){n[e]=!0}),n):k.extend({},i);function o(){for(a=a||i.once,s=r=!0;u.length;c=-1)for(e=u.shift();++c<l.length;)!1===l[c].apply(e[0],e[1])&&i.stopOnFalse&&(c=l.length,e=!1);i.memory||(e=!1),r=!1,a&&(l=e?[]:"")}var r,e,s,a,l=[],u=[],c=-1,h={add:function(){return l&&(e&&!r&&(c=l.length-1,u.push(e)),function n(t){k.each(t,function(t,e){b(e)?i.unique&&h.has(e)||l.push(e):e&&e.length&&"string"!==f(e)&&n(e)})}(arguments),e)&&!r&&o(),this},remove:function(){return k.each(arguments,function(t,e){for(var n;-1<(n=k.inArray(e,l,n));)l.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<k.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=u=[],l=e="",this},disabled:function(){return!l},lock:function(){return a=u=[],e||r||(l=e=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],u.push(e),r)||o(),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!s}};return h},k.extend({Deferred:function(t){var r=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],o="pending",s={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var o=arguments;return k.Deferred(function(i){k.each(r,function(t,e){var n=b(o[e[4]])&&o[e[4]];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&b(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,n?[t]:arguments)})}),o=null}).promise()},then:function(e,n,i){var l=0;function u(o,r,s,a){return function(){function t(){var t,e;if(!(o<l)){if((t=s.apply(n,i))===r.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,b(e)?a?e.call(t,u(l,r,c,a),u(l,r,ot,a)):(l++,e.call(t,u(l,r,c,a),u(l,r,ot,a),u(l,r,c,r.notifyWith))):(s!==c&&(n=void 0,i=[t]),(a||r.resolveWith)(n,i))}}var n=this,i=arguments,e=a?t:function(){try{t()}catch(t){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(t,e.stackTrace),l<=o+1&&(s!==ot&&(n=void 0,i=[t]),r.rejectWith(n,i))}};o?e():(k.Deferred.getStackHook&&(e.stackTrace=k.Deferred.getStackHook()),x.setTimeout(e))}}return k.Deferred(function(t){r[0][3].add(u(0,t,b(i)?i:c,t.notifyWith)),r[1][3].add(u(0,t,b(e)?e:c)),r[2][3].add(u(0,t,b(n)?n:ot))}).promise()},promise:function(t){return null!=t?k.extend(t,s):s}},a={};return k.each(r,function(t,e){var n=e[2],i=e[5];s[e[1]]=n.add,i&&n.add(function(){o=i},r[3-t][2].disable,r[3-t][3].disable,r[0][2].lock,r[0][3].lock),n.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=n.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(t){function e(e){return function(t){o[e]=this,r[e]=1<arguments.length?a.call(arguments):t,--n||s.resolveWith(o,r)}}var n=arguments.length,i=n,o=Array(i),r=a.call(arguments),s=k.Deferred();if(n<=1&&(rt(t,s.done(e(i)).resolve,s.reject,!n),"pending"===s.state()||b(r[i]&&r[i].then)))return s.then();for(;i--;)rt(r[i],e(i),s.reject);return s.promise()}});var st=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,at=(k.Deferred.exceptionHook=function(t,e){x.console&&x.console.warn&&t&&st.test(t.name)&&x.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){x.setTimeout(function(){throw t})},k.Deferred());function lt(){_.removeEventListener("DOMContentLoaded",lt),x.removeEventListener("load",lt),k.ready()}k.fn.ready=function(t){return at.then(t).catch(function(t){k.readyException(t)}),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0)!==t&&0<--k.readyWait||at.resolveWith(_,[k])}}),k.ready.then=at.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?x.setTimeout(k.ready):(_.addEventListener("DOMContentLoaded",lt),x.addEventListener("load",lt));function h(t,e,n,i,o,r,s){var a=0,l=t.length,u=null==n;if("object"===f(n))for(a in o=!0,n)h(t,e,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,b(i)||(s=!0),e=u?s?(e.call(t,i),null):(u=e,function(t,e,n){return u.call(k(t),n)}):e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return o?t:u?e.call(t):l?e(t[0],n):r}var ut=/^-ms-/,ct=/-([a-z])/g;function ht(t,e){return e.toUpperCase()}function y(t){return t.replace(ut,"ms-").replace(ct,ht)}function v(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function dt(){this.expando=k.expando+dt.uid++}dt.uid=1,dt.prototype={cache:function(t){var e=t[this.expando];return e||(e={},v(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[y(e)]=n;else for(i in e)o[y(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][y(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(y):(e=y(e))in i?[e]:e.match(C)||[]).length;for(;n--;)delete i[e[n]]}void 0!==e&&!k.isEmptyObject(i)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var $=new dt,u=new dt,pt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ft=/[A-Z]/g;function mt(t,e,n){var i,o;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ft,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:pt.test(o)?JSON.parse(o):o)}catch(t){}u.set(t,e,n)}else n=void 0;return n}k.extend({hasData:function(t){return u.hasData(t)||$.hasData(t)},data:function(t,e,n){return u.access(t,e,n)},removeData:function(t,e){u.remove(t,e)},_data:function(t,e,n){return $.access(t,e,n)},_removeData:function(t,e){$.remove(t,e)}}),k.fn.extend({data:function(n,t){var e,i,o,r=this[0],s=r&&r.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){u.set(this,n)}):h(this,function(t){var e;if(r&&void 0===t)return void 0!==(e=u.get(r,n))||void 0!==(e=mt(r,n))?e:void 0;this.each(function(){u.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(o=u.get(r),1===r.nodeType)&&!$.get(r,"hasDataAttrs")){for(e=s.length;e--;)s[e]&&0===(i=s[e].name).indexOf("data-")&&(i=y(i.slice(5)),mt(r,i,o[i]));$.set(r,"hasDataAttrs",!0)}return o},removeData:function(t){return this.each(function(){u.remove(this,t)})}}),k.extend({queue:function(t,e,n){var i;if(t)return i=$.get(t,e=(e||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=$.access(t,e,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),i=n.length,o=n.shift(),r=k._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,function(){k.dequeue(t,e)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return $.get(t,n)||$.access(t,n,{empty:k.Callbacks("once memory").add(function(){$.remove(t,[e+"queue",n])})})}}),k.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?k.queue(this[0],e):void 0===n?this:this.each(function(){var t=k.queue(this,e,n);k._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&k.dequeue(this,e)})},dequeue:function(t){return this.each(function(){k.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--o||r.resolveWith(s,[s])}var i,o=1,r=k.Deferred(),s=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=$.get(s[a],t+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),r.promise(e)}});function gt(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&T(t)&&"none"===k.css(t,"display")}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,vt=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),d=["Top","Right","Bottom","Left"],w=_.documentElement,T=function(t){return k.contains(t.ownerDocument,t)},bt={composed:!0};w.getRootNode&&(T=function(t){return k.contains(t.ownerDocument,t)||t.getRootNode(bt)===t.ownerDocument});function yt(t,e,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return k.css(t,e,"")},l=a(),u=n&&n[3]||(k.cssNumber[e]?"":"px"),c=t.nodeType&&(k.cssNumber[e]||"px"!==u&&+l)&&vt.exec(k.css(t,e));if(c&&c[3]!==u){for(u=u||c[3],c=+(l/=2)||1;s--;)k.style(t,e,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),c/=r;k.style(t,e,(c*=2)+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i)&&(i.unit=u,i.start=c,i.end=o),o}var $t={};function D(t,e){for(var n,i,o,r,s,a,l=[],u=0,c=t.length;u<c;u++)(i=t[u]).style&&(n=i.style.display,e?("none"===n&&(l[u]=$.get(i,"display")||null,l[u]||(i.style.display="")),""===i.style.display&>(i)&&(l[u]=(a=r=o=void 0,r=i.ownerDocument,s=i.nodeName,(a=$t[s])||(o=r.body.appendChild(r.createElement(s)),a=k.css(o,"display"),o.parentNode.removeChild(o),$t[s]=a="none"===a?"block":a)))):"none"!==n&&(l[u]="none",$.set(i,"display",n)));for(u=0;u<c;u++)null!=l[u]&&(t[u].style.display=l[u]);return t}k.fn.extend({show:function(){return D(this,!0)},hide:function(){return D(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){gt(this)?k(this).show():k(this).hide()})}});var wt=/^(?:checkbox|radio)$/i,xt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i,n=_.createDocumentFragment().appendChild(_.createElement("div")),S=((O=_.createElement("input")).setAttribute("type","radio"),O.setAttribute("checked","checked"),O.setAttribute("name","t"),n.appendChild(O),g.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,n.innerHTML="<option></option>",g.option=!!n.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function E(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&l(t,e)?k.merge([t],n):n}function kt(t,e){for(var n=0,i=t.length;n<i;n++)$.set(t[n],"globalEval",!e||$.get(e[n],"globalEval"))}S.tbody=S.tfoot=S.colgroup=S.caption=S.thead,S.th=S.td,g.option||(S.optgroup=S.option=[1,"<select multiple='multiple'>","</select>"]);var Ct=/<|&#?\w+;/;function Tt(t,e,n,i,o){for(var r,s,a,l,u,c=e.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((r=t[d])||0===r)if("object"===f(r))k.merge(h,r.nodeType?[r]:r);else if(Ct.test(r)){for(s=s||c.appendChild(e.createElement("div")),a=(xt.exec(r)||["",""])[1].toLowerCase(),a=S[a]||S._default,s.innerHTML=a[1]+k.htmlPrefilter(r)+a[2],u=a[0];u--;)s=s.lastChild;k.merge(h,s.childNodes),(s=c.firstChild).textContent=""}else h.push(e.createTextNode(r));for(c.textContent="",d=0;r=h[d++];)if(i&&-1<k.inArray(r,i))o&&o.push(r);else if(l=T(r),s=E(c.appendChild(r),"script"),l&&kt(s),n)for(u=0;r=s[u++];)_t.test(r.type||"")&&n.push(r);return c}var Dt=/^([^.]*)(?:\.(.+)|)/;function s(){return!0}function p(){return!1}function St(t,e){return t===function(){try{return _.activeElement}catch(t){}}()==("focus"===e)}function Et(t,e,n,i,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Et(t,a,n,i,e[a],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=p;else if(!o)return t;return 1===r&&(s=o,(o=function(t){return k().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=k.guid++)),t.each(function(){k.event.add(this,e,o,i,n)})}function Mt(t,o,r){r?($.set(t,o,!1),k.event.add(t,o,{namespace:!1,handler:function(t){var e,n,i=$.get(this,o);if(1&t.isTrigger&&this[o]){if(i.length)(k.event.special[o]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),$.set(this,o,i),e=r(this,o),this[o](),i!==(n=$.get(this,o))||e?$.set(this,o,!1):n={},i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n&&n.value}else i.length&&($.set(this,o,{value:k.event.trigger(k.extend(i[0],k.Event.prototype),i.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===$.get(t,o)&&k.event.add(t,o,s)}k.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,u,c,h,d,p,f=$.get(e);if(v(e))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&k.find.matchesSelector(w,o),n.guid||(n.guid=k.guid++),a=(a=f.events)||(f.events=Object.create(null)),s=(s=f.handle)||(f.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(C)||[""]).length;l--;)h=p=(d=Dt.exec(t[l])||[])[1],d=(d[2]||"").split(".").sort(),h&&(u=k.event.special[h]||{},h=(o?u.delegateType:u.bindType)||h,u=k.event.special[h]||{},p=k.extend({type:h,origType:p,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:d.join(".")},r),(c=a[h])||((c=a[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,d,s))||e.addEventListener&&e.addEventListener(h,s),u.add&&(u.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?c.splice(c.delegateCount++,0,p):c.push(p),k.event.global[h]=!0)},remove:function(t,e,n,i,o){var r,s,a,l,u,c,h,d,p,f,m,g=$.hasData(t)&&$.get(t);if(g&&(l=g.events)){for(u=(e=(e||"").match(C)||[""]).length;u--;)if(p=m=(a=Dt.exec(e[u])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=k.event.special[p]||{},d=l[p=(i?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=d.length;r--;)c=d[r],!o&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(r,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(t,c));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,g.handle)||k.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)k.event.remove(t,p+e[u],n,i,!0);k.isEmptyObject(l)&&$.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,s=new Array(arguments.length),a=k.event.fix(t),t=($.get(this,"events")||Object.create(null))[a.type]||[],l=k.event.special[a.type]||{};for(s[0]=a,e=1;e<arguments.length;e++)s[e]=arguments[e];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(r=k.event.handlers.call(this,a,t),e=0;(i=r[e++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(o=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(a.result=o)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,i,o,r,s,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&1<=t.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=e[n]).selector+" "]&&(s[o]=i.needsContext?-1<k(o,this).index(u):k.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return wt.test(t.type)&&t.click&&l(t,"input")&&Mt(t,"click",s),!1},trigger:function(t){t=this||t;return wt.test(t.type)&&t.click&&l(t,"input")&&Mt(t,"click"),!0},_default:function(t){t=t.target;return wt.test(t.type)&&t.click&&l(t,"input")&&$.get(t,"click")||l(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?s:p,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=s,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=s,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=s,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(t,e){k.event.special[t]={setup:function(){return Mt(this,t,St),!1},trigger:function(){return Mt(this,t),!0},_default:function(){return!0},delegateType:e}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,o){k.event.special[t]={delegateType:o,bindType:o,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||k.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=o),e}}}),k.fn.extend({on:function(t,e,n,i){return Et(this,t,e,n,i)},one:function(t,e,n,i){return Et(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)i=t.handleObj,k(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=p),this.each(function(){k.event.remove(this,t,n,e)});for(o in t)this.off(o,e,t[o])}return this}});var At=/<script|<style|<link/i,Ot=/checked\s*(?:[^=]|=\s*.checked.)/i,It=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pt(t,e){return l(t,"table")&&l(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function Nt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Lt(t,e){var n,i,o,r;if(1===e.nodeType){if($.hasData(t)&&(r=$.get(t).events))for(o in $.remove(e,"handle events"),r)for(n=0,i=r[o].length;n<i;n++)k.event.add(e,o,r[o][n]);u.hasData(t)&&(t=u.access(t),t=k.extend({},t),u.set(e,t))}}function M(n,i,o,r){i=j(i);var t,e,s,a,l,u,c=0,h=n.length,d=h-1,p=i[0],f=b(p);if(f||1<h&&"string"==typeof p&&!g.checkClone&&Ot.test(p))return n.each(function(t){var e=n.eq(t);f&&(i[0]=p.call(this,t,e.html())),M(e,i,o,r)});if(h&&(e=(t=Tt(i,n[0].ownerDocument,!1,n,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(a=(s=k.map(E(t,"script"),Nt)).length;c<h;c++)l=t,c!==d&&(l=k.clone(l,!0,!0),a)&&k.merge(s,E(l,"script")),o.call(n[c],l,c);if(a)for(u=s[s.length-1].ownerDocument,k.map(s,Ht),c=0;c<a;c++)l=s[c],_t.test(l.type||"")&&!$.access(l,"globalEval")&&k.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?k._evalUrl&&!l.noModule&&k._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):Y(l.textContent.replace(It,""),l,u))}return n}function jt(t,e,n){for(var i,o=e?k.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||k.cleanData(E(i)),i.parentNode&&(n&&T(i)&&kt(E(i,"script")),i.parentNode.removeChild(i));return t}k.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,o,r,s,a,l,u,c=t.cloneNode(!0),h=T(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(s=E(c),i=0,o=(r=E(t)).length;i<o;i++)a=r[i],"input"===(u=(l=s[i]).nodeName.toLowerCase())&&wt.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(e)if(n)for(r=r||E(t),s=s||E(c),i=0,o=r.length;i<o;i++)Lt(r[i],s[i]);else Lt(t,c);return 0<(s=E(c,"script")).length&&kt(s,!h&&E(t,"script")),c},cleanData:function(t){for(var e,n,i,o=k.event.special,r=0;void 0!==(n=t[r]);r++)if(v(n)){if(e=n[$.expando]){if(e.events)for(i in e.events)o[i]?k.event.remove(n,i):k.removeEvent(n,i,e.handle);n[$.expando]=void 0}n[u.expando]&&(n[u.expando]=void 0)}}}),k.fn.extend({detach:function(t){return jt(this,t,!0)},remove:function(t){return jt(this,t)},text:function(t){return h(this,function(t){return void 0===t?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return M(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pt(this,t).appendChild(t)})},prepend:function(){return M(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Pt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return M(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return M(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(E(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return h(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!At.test(t)&&!S[(xt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(k.cleanData(E(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return M(this,arguments,function(t){var e=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(E(this)),e)&&e.replaceChild(t,this)},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){k.fn[t]=function(t){for(var e,n=[],i=k(t),o=i.length-1,r=0;r<=o;r++)e=r===o?this:this.clone(!0),k(i[r])[s](e),R.apply(n,e.get());return this.pushStack(n)}});function Rt(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:x).getComputedStyle(t)}function Ft(t,e,n){var i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in n=n.call(t),e)t.style[i]=o[i];return n}var zt,Wt,Ut,qt,Vt,Bt,Yt,o,Gt=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),Kt=new RegExp(d.join("|"),"i");function Xt(t,e,n){var i,o,r=t.style;return(n=n||Rt(t))&&(""!==(o=n.getPropertyValue(e)||n[e])||T(t)||(o=k.style(t,e)),!g.pixelBoxStyles())&&Gt.test(o)&&Kt.test(e)&&(t=r.width,e=r.minWidth,i=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=t,r.minWidth=e,r.maxWidth=i),void 0!==o?o+"":o}function Qt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function Jt(){var t;o&&(Yt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",o.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",w.appendChild(Yt).appendChild(o),t=x.getComputedStyle(o),zt="1%"!==t.top,Bt=12===Zt(t.marginLeft),o.style.right="60%",qt=36===Zt(t.right),Wt=36===Zt(t.width),o.style.position="absolute",Ut=12===Zt(o.offsetWidth/3),w.removeChild(Yt),o=null)}function Zt(t){return Math.round(parseFloat(t))}Yt=_.createElement("div"),(o=_.createElement("div")).style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===o.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return Jt(),Wt},pixelBoxStyles:function(){return Jt(),qt},pixelPosition:function(){return Jt(),zt},reliableMarginLeft:function(){return Jt(),Bt},scrollboxSize:function(){return Jt(),Ut},reliableTrDimensions:function(){var t,e,n;return null==Vt&&(t=_.createElement("table"),e=_.createElement("tr"),n=_.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",w.appendChild(t).appendChild(e).appendChild(n),n=x.getComputedStyle(e),Vt=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===e.offsetHeight,w.removeChild(t)),Vt}}));var te=["Webkit","Moz","ms"],ee=_.createElement("div").style,ne={};function ie(t){return k.cssProps[t]||ne[t]||(t in ee?t:ne[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=te.length;n--;)if((t=te[n]+e)in ee)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,re=/^--/,se={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=vt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ue(t,e,n,i,o,r){var s="width"===e?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=k.css(t,n+d[s],!0,o)),i?("content"===n&&(l-=k.css(t,"padding"+d[s],!0,o)),"margin"!==n&&(l-=k.css(t,"border"+d[s]+"Width",!0,o))):(l+=k.css(t,"padding"+d[s],!0,o),"padding"!==n?l+=k.css(t,"border"+d[s]+"Width",!0,o):a+=k.css(t,"border"+d[s]+"Width",!0,o));return!i&&0<=r&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-a-.5))||0),l}function ce(t,e,n){var i=Rt(t),o=(!g.boxSizingReliable()||n)&&"border-box"===k.css(t,"boxSizing",!1,i),r=o,s=Xt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Gt.test(s)){if(!n)return s;s="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&l(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===k.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===k.css(t,"boxSizing",!1,i),r=a in t)&&(s=t[a]),(s=parseFloat(s)||0)+ue(t,e,n||(o?"border":"content"),r,i,s)+"px"}function r(t,e,n,i,o){return new r.prototype.init(t,e,n,i,o)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=Xt(t,"opacity"))?"1":e}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=y(e),l=re.test(e),u=t.style;if(l||(e=ie(a)),s=k.cssHooks[e]||k.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:u[e];"string"==(r=typeof n)&&(o=vt.exec(n))&&o[1]&&(n=yt(t,e,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(k.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var o,r=y(e);return re.test(e)||(e=ie(r)),"normal"===(o=void 0===(o=(r=k.cssHooks[e]||k.cssHooks[r])&&"get"in r?r.get(t,!0,n):o)?Xt(t,e,i):o)&&e in ae&&(o=ae[e]),(""===n||n)&&(r=parseFloat(o),!0===n||isFinite(r))?r||0:o}}),k.each(["height","width"],function(t,s){k.cssHooks[s]={get:function(t,e,n){if(e)return!oe.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,s,n):Ft(t,se,function(){return ce(t,s,n)})},set:function(t,e,n){var i=Rt(t),o=!g.scrollboxSize()&&"absolute"===i.position,r=(o||n)&&"border-box"===k.css(t,"boxSizing",!1,i),n=n?ue(t,s,n,r,i):0;return r&&o&&(n-=Math.ceil(t["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(i[s])-ue(t,s,"border",!1,i)-.5)),n&&(r=vt.exec(e))&&"px"!==(r[3]||"px")&&(t.style[s]=e,e=k.css(t,s)),le(0,e,n)}}}),k.cssHooks.marginLeft=Qt(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Xt(t,"marginLeft"))||t.getBoundingClientRect().left-Ft(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(o,r){k.cssHooks[o+r]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[o+d[e]+r]=i[e]||i[e-2]||i[0];return n}},"margin"!==o&&(k.cssHooks[o+r].set=le)}),k.fn.extend({css:function(t,e){return h(this,function(t,e,n){var i,o,r={},s=0;if(Array.isArray(e)){for(i=Rt(t),o=e.length;s<o;s++)r[e[s]]=k.css(t,e[s],!1,i);return r}return void 0!==n?k.style(t,e,n):k.css(t,e)},t,e,1<arguments.length)}}),((k.Tween=r).prototype={constructor:r,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(k.cssNumber[n]?"":"px")},cur:function(){var t=r.propHooks[this.prop];return(t&&t.get?t:r.propHooks._default).get(this)},run:function(t){var e,n=r.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:r.propHooks._default).set(this),this}}).init.prototype=r.prototype,(r.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=k.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=r.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=r.prototype.init,k.fx.step={};var A,he,O,de=/^(?:toggle|show|hide)$/,pe=/queueHooks$/;function fe(){he&&(!1===_.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(fe):x.setTimeout(fe,k.fx.interval),k.fx.tick())}function me(){return x.setTimeout(function(){A=void 0}),A=Date.now()}function ge(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=d[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function ve(t,e,n){for(var i,o=(I.tweeners[e]||[]).concat(I.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function I(o,t,e){var n,r,i,s,a,l,u,c=0,h=I.prefilters.length,d=k.Deferred().always(function(){delete p.elem}),p=function(){if(r)return!1;for(var t=A||me(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),n=0,i=f.tweens.length;n<i;n++)f.tweens[n].run(e);return d.notifyWith(o,[f,e,t]),e<1&&i?t:(i||d.notifyWith(o,[f,1,0]),d.resolveWith(o,[f]),!1)},f=d.promise({elem:o,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},e),originalProperties:t,originalOptions:e,startTime:A||me(),duration:e.duration,tweens:[],createTween:function(t,e){e=k.Tween(o,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,n=t?f.tweens.length:0;if(!r){for(r=!0;e<n;e++)f.tweens[e].run(1);t?(d.notifyWith(o,[f,1,0]),d.resolveWith(o,[f,t])):d.rejectWith(o,[f,t])}return this}}),m=f.props,g=m,v=f.opts.specialEasing;for(i in g)if(a=v[s=y(i)],l=g[i],Array.isArray(l)&&(a=l[1],l=g[i]=l[0]),i!==s&&(g[s]=l,delete g[i]),(u=k.cssHooks[s])&&"expand"in u)for(i in l=u.expand(l),delete g[s],l)i in g||(g[i]=l[i],v[i]=a);else v[s]=a;for(;c<h;c++)if(n=I.prefilters[c].call(f,o,m,f.opts))return b(n.stop)&&(k._queueHooks(f.elem,f.opts.queue).stop=n.stop.bind(n)),n;return k.map(m,ve,f),b(f.opts.start)&&f.opts.start.call(o,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),k.fx.timer(k.extend(p,{elem:o,anim:f,queue:f.opts.queue})),f}k.Animation=k.extend(I,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return yt(n.elem,t,vt.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,o=(t=b(t)?(e=t,["*"]):t.match(C)).length;i<o;i++)n=t[i],I.tweeners[n]=I.tweeners[n]||[],I.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,r,s,a,l,u,c="width"in e||"height"in e,h=this,d={},p=t.style,f=t.nodeType&>(t),m=$.get(t,"fxshow");for(i in n.queue||(null==(s=k._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,k.queue(t,"fx").length||s.empty.fire()})})),e)if(o=e[i],de.test(o)){if(delete e[i],r=r||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;f=!0}d[i]=m&&m[i]||k.style(t,i)}if((l=!k.isEmptyObject(e))||!k.isEmptyObject(d))for(i in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=$.get(t,"display")),"none"===(c=k.css(t,"display"))&&(u?c=u:(D([t],!0),u=t.style.display||u,c=k.css(t,"display"),D([t]))),"inline"===c||"inline-block"===c&&null!=u)&&"none"===k.css(t,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block"),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,d)l||(m?"hidden"in m&&(f=m.hidden):m=$.access(t,"fxshow",{display:u}),r&&(m.hidden=!f),f&&D([t],!0),h.done(function(){for(i in f||D([t]),$.remove(t,"fxshow"),d)k.style(t,i,d[i])})),l=ve(f?m[i]:0,i,h),i in m||(m[i]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?I.prefilters.unshift(t):I.prefilters.push(t)}}),k.speed=function(t,e,n){var i=t&&"object"==typeof t?k.extend({},t):{complete:n||!n&&e||b(t)&&t,duration:t,easing:n&&e||e&&!b(e)&&e};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(t,e,n,i){return this.filter(gt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){function o(){var t=I(this,k.extend({},e),s);(r||$.get(this,"finish"))&&t.stop(!0)}var r=k.isEmptyObject(e),s=k.speed(t,n,i);return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(o,t,r){function s(t){var e=t.stop;delete t.stop,e(r)}return"string"!=typeof o&&(r=t,t=o,o=void 0),t&&this.queue(o||"fx",[]),this.each(function(){var t=!0,e=null!=o&&o+"queueHooks",n=k.timers,i=$.get(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&pe.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=o&&n[e].queue!==o||(n[e].anim.stop(r),t=!1,n.splice(e,1));!t&&r||k.dequeue(this,o)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=$.get(this),n=e[s+"queue"],i=e[s+"queueHooks"],o=k.timers,r=n?n.length:0;for(e.finish=!0,k.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===s&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),k.each(["toggle","show","hide"],function(t,i){var o=k.fn[i];k.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?o.apply(this,arguments):this.animate(ge(i,!0),t,e,n)}}),k.each({slideDown:ge("show"),slideUp:ge("hide"),slideToggle:ge("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){k.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),k.timers=[],k.fx.tick=function(){var t,e=0,n=k.timers;for(A=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||k.fx.stop(),A=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()},k.fx.interval=13,k.fx.start=function(){he||(he=!0,fe())},k.fx.stop=function(){he=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(i,t){return i=k.fx&&k.fx.speeds[i]||i,this.queue(t=t||"fx",function(t,e){var n=x.setTimeout(t,i);e.stop=function(){x.clearTimeout(n)}})},O=_.createElement("input"),n=_.createElement("select").appendChild(_.createElement("option")),O.type="checkbox",g.checkOn=""!==O.value,g.optSelected=n.selected,(O=_.createElement("input")).value="t",O.type="radio",g.radioValue="t"===O.value;var be,ye=k.expr.attrHandle,$e=(k.fn.extend({attr:function(t,e){return h(this,k.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?k.prop(t,e,n):(1===r&&k.isXMLDoc(t)||(o=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?be:void 0)),void 0!==n?null===n?void k.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):!(o&&"get"in o&&null!==(i=o.get(t,e)))&&null==(i=k.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){var n;if(!g.radioValue&&"radio"===e&&l(t,"input"))return n=t.value,t.setAttribute("type",e),n&&(t.value=n),e}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(C);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),be={set:function(t,e,n){return!1===e?k.removeAttr(t,n):t.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var s=ye[e]||k.find.attr;ye[e]=function(t,e,n){var i,o,r=e.toLowerCase();return n||(o=ye[r],ye[r]=i,i=null!=s(t,e,n)?r:null,ye[r]=o),i}}),/^(?:input|select|textarea|button)$/i),we=/^(?:a|area)$/i;function P(t){return(t.match(C)||[]).join(" ")}function N(t){return t.getAttribute&&t.getAttribute("class")||""}function xe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(C)||[]}k.fn.extend({prop:function(t,e){return h(this,k.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[k.propFix[t]||t]})}}),k.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&k.isXMLDoc(t)||(e=k.propFix[e]||e,o=k.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):$e.test(t.nodeName)||we.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode)&&t.parentNode.selectedIndex}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,i,o,r,s,a=0;if(b(e))return this.each(function(t){k(this).addClass(e.call(this,t,N(this)))});if((t=xe(e)).length)for(;n=this[a++];)if(s=N(n),i=1===n.nodeType&&" "+P(s)+" "){for(r=0;o=t[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s!==(s=P(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,o,r,s,a=0;if(b(e))return this.each(function(t){k(this).removeClass(e.call(this,t,N(this)))});if(!arguments.length)return this.attr("class","");if((t=xe(e)).length)for(;n=this[a++];)if(s=N(n),i=1===n.nodeType&&" "+P(s)+" "){for(r=0;o=t[r++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");s!==(s=P(i))&&n.setAttribute("class",s)}return this},toggleClass:function(o,e){var r=typeof o,s="string"==r||Array.isArray(o);return"boolean"==typeof e&&s?e?this.addClass(o):this.removeClass(o):b(o)?this.each(function(t){k(this).toggleClass(o.call(this,t,N(this),e),e)}):this.each(function(){var t,e,n,i;if(s)for(e=0,n=k(this),i=xe(o);t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==o&&"boolean"!=r||((t=N(this))&&$.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==o&&$.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,i=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+P(N(e))+" ").indexOf(i))return!0;return!1}});function _e(t){t.stopPropagation()}var ke=/\r/g,Ce=(k.fn.extend({val:function(e){var n,t,i,o=this[0];return arguments.length?(i=b(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,k(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=k.map(t,function(t){return null==t?"":t+""})),(n=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):o?(n=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(o,"value"))?t:"string"==typeof(t=o.value)?t.replace(ke,""):null==t?"":t:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:P(k.text(t))}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,o="select-one"===t.type,r=o?null:[],s=o?i+1:n.length,a=i<0?s:o?i:0;a<s;a++)if(((e=n[a]).selected||a===i)&&!e.disabled&&(!e.parentNode.disabled||!l(e.parentNode,"optgroup"))){if(e=k(e).val(),o)return e;r.push(e)}return r},set:function(t,e){for(var n,i,o=t.options,r=k.makeArray(e),s=o.length;s--;)((i=o[s]).selected=-1<k.inArray(k.valHooks.option.get(i),r))&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<k.inArray(k(t).val(),e)}},g.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),g.focusin="onfocusin"in x,/^(?:focusinfocus|focusoutblur)$/),Te=(k.extend(k.event,{trigger:function(t,e,n,i){var o,r,s,a,l,u,c,h=[n||_],d=U.call(t,"type")?t.type:t,p=U.call(t,"namespace")?t.namespace.split("."):[],f=c=r=n=n||_;if(3!==n.nodeType&&8!==n.nodeType&&!Ce.test(d+k.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),a=d.indexOf(":")<0&&"on"+d,(t=t[k.expando]?t:new k.Event(d,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),u=k.event.special[d]||{},i||!u.trigger||!1!==u.trigger.apply(n,e))){if(!i&&!u.noBubble&&!m(n)){for(s=u.delegateType||d,Ce.test(s+d)||(f=f.parentNode);f;f=f.parentNode)h.push(f),r=f;r===(n.ownerDocument||_)&&h.push(r.defaultView||r.parentWindow||x)}for(o=0;(f=h[o++])&&!t.isPropagationStopped();)c=f,t.type=1<o?s:u.bindType||d,(l=($.get(f,"events")||Object.create(null))[t.type]&&$.get(f,"handle"))&&l.apply(f,e),(l=a&&f[a])&&l.apply&&v(f)&&(t.result=l.apply(f,e),!1===t.result)&&t.preventDefault();return t.type=d,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(h.pop(),e)||!v(n)||a&&b(n[d])&&!m(n)&&((r=n[a])&&(n[a]=null),k.event.triggered=d,t.isPropagationStopped()&&c.addEventListener(d,_e),n[d](),t.isPropagationStopped()&&c.removeEventListener(d,_e),k.event.triggered=void 0,r)&&(n[a]=r),t.result}},simulate:function(t,e,n){n=k.extend(new k.Event,n,{type:t,isSimulated:!0});k.event.trigger(n,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return k.event.trigger(t,e,n,!0)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,i){function o(t){k.event.simulate(i,t.target,k.event.fix(t))}k.event.special[i]={setup:function(){var t=this.ownerDocument||this.document||this,e=$.access(t,i);e||t.addEventListener(n,o,!0),$.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=$.access(t,i)-1;e?$.access(t,i,e):(t.removeEventListener(n,o,!0),$.remove(t,i))}}}),x.location),De={guid:Date.now()},Se=/\?/,Ee=(k.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new x.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e},/\[\]$/),Me=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;k.param=function(t,e){function n(t,e){e=b(e)?e():e,o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var i,o=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){n(this.name,this.value)});else for(i in t)!function n(i,t,o,r){if(Array.isArray(t))k.each(t,function(t,e){o||Ee.test(i)?r(i,e):n(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,o,r)});else if(o||"object"!==f(t))r(i,t);else for(var e in t)n(i+"["+e+"]",t[e],o,r)}(i,t[i],e,n);return o.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Oe.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!wt.test(t))}).map(function(t,e){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(t){return{name:e.name,value:t.replace(Me,"\r\n")}}):{name:e.name,value:n.replace(Me,"\r\n")}}).get()}});var Ie=/%20/g,Pe=/#.*$/,Ne=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,je=/^\/\//,Re={},Fe={},ze="*/".concat("*"),We=_.createElement("a");function Ue(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,o=t.toLowerCase().match(C)||[];if(b(e))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(e)):(r[n]=r[n]||[]).push(e)}}function qe(e,i,o,r){var s={},a=e===Fe;function l(t){var n;return s[t]=!0,k.each(e[t]||[],function(t,e){e=e(i,o,r);return"string"!=typeof e||a||s[e]?a?!(n=e):void 0:(i.dataTypes.unshift(e),l(e),!1)}),n}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ve(t,e){var n,i,o=k.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i=i||{})[n]=e[n]);return i&&k.extend(!0,t,i),t}We.href=Te.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ve(Ve(t,k.ajaxSettings),e):Ve(k.ajaxSettings,t)},ajaxPrefilter:Ue(Re),ajaxTransport:Ue(Fe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,u,c,n,h,d,p,i,o,f=k.ajaxSetup({},e=e||{}),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?k(m):k.event,v=k.Deferred(),b=k.Callbacks("once memory"),y=f.statusCode||{},r={},s={},a="canceled",$={readyState:0,getResponseHeader:function(t){var e;if(d){if(!n)for(n={};e=He.exec(c);)n[e[1].toLowerCase()+" "]=(n[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=n[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return d?c:null},setRequestHeader:function(t,e){return null==d&&(t=s[t.toLowerCase()]=s[t.toLowerCase()]||t,r[t]=e),this},overrideMimeType:function(t){return null==d&&(f.mimeType=t),this},statusCode:function(t){if(t)if(d)$.always(t[$.status]);else for(var e in t)y[e]=[y[e],t[e]];return this},abort:function(t){t=t||a;return l&&l.abort(t),w(0,t),this}};if(v.promise($),f.url=((t||f.url||Te.href)+"").replace(je,Te.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(C)||[""],null==f.crossDomain){o=_.createElement("a");try{o.href=f.url,o.href=o.href,f.crossDomain=We.protocol+"//"+We.host!=o.protocol+"//"+o.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),qe(Re,f,e,$),!d){for(i in(p=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Le.test(f.type),u=f.url.replace(Pe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ie,"+")):(o=f.url.slice(u.length),f.data&&(f.processData||"string"==typeof f.data)&&(u+=(Se.test(u)?"&":"?")+f.data,delete f.data),!1===f.cache&&(u=u.replace(Ne,"$1"),o=(Se.test(u)?"&":"?")+"_="+De.guid+++o),f.url=u+o),f.ifModified&&(k.lastModified[u]&&$.setRequestHeader("If-Modified-Since",k.lastModified[u]),k.etag[u])&&$.setRequestHeader("If-None-Match",k.etag[u]),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&$.setRequestHeader("Content-Type",f.contentType),$.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+ze+"; q=0.01":""):f.accepts["*"]),f.headers)$.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(m,$,f)||d))return $.abort();if(a="abort",b.add(f.complete),$.done(f.success),$.fail(f.error),l=qe(Fe,f,e,$)){if($.readyState=1,p&&g.trigger("ajaxSend",[$,f]),d)return $;f.async&&0<f.timeout&&(h=x.setTimeout(function(){$.abort("timeout")},f.timeout));try{d=!1,l.send(r,w)}catch(t){if(d)throw t;w(-1,t)}}else w(-1,"No Transport")}return $;function w(t,e,n,i){var o,r,s,a=e;d||(d=!0,h&&x.clearTimeout(h),l=void 0,c=i||"",$.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(s=function(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s=s||o}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,$,n)),!i&&-1<k.inArray("script",f.dataTypes)&&k.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),s=function(t,e,n,i){var o,r,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(f,s,$,i),i?(f.ifModified&&((n=$.getResponseHeader("Last-Modified"))&&(k.lastModified[u]=n),n=$.getResponseHeader("etag"))&&(k.etag[u]=n),204===t||"HEAD"===f.type?a="nocontent":304===t?a="notmodified":(a=s.state,o=s.data,i=!(r=s.error))):(r=a,!t&&a||(a="error",t<0&&(t=0))),$.status=t,$.statusText=(e||a)+"",i?v.resolveWith(m,[o,a,$]):v.rejectWith(m,[$,a,r]),$.statusCode(y),y=void 0,p&&g.trigger(i?"ajaxSuccess":"ajaxError",[$,f,i?o:r]),b.fireWith(m,[$,a]),p&&(g.trigger("ajaxComplete",[$,f]),--k.active||k.event.trigger("ajaxStop")))}},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,o){k[o]=function(t,e,n,i){return b(e)&&(i=i||n,n=e,e=void 0),k.ajax(k.extend({url:t,type:o,dataType:i,data:e,success:n},k.isPlainObject(t)&&t))}}),k.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),k._evalUrl=function(t,e,n){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){k.globalEval(t,e,n)}})},k.fn.extend({wrapAll:function(t){return this[0]&&(b(t)&&(t=t.call(this[0])),t=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(n){return b(n)?this.each(function(t){k(this).wrapInner(n.call(this,t))}):this.each(function(){var t=k(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=b(e);return this.each(function(t){k(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(t){}};var Be={0:200,1223:204},Ye=k.ajaxSettings.xhr();g.cors=!!Ye&&"withCredentials"in Ye,g.ajax=Ye=!!Ye,k.ajaxTransport(function(o){var r,s;if(g.cors||Ye&&!o.crossDomain)return{send:function(t,e){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);r=function(t){return function(){r&&(r=s=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Be[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=r(),s=i.onerror=i.ontimeout=r("error"),void 0!==i.onabort?i.onabort=s:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){r&&s()})},r=r("abort");try{i.send(o.hasContent&&o.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}),k.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),k.ajaxTransport("script",function(n){var i,o;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){i=k("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(t){i.remove(),o=null,t&&e("error"===t.type?404:200,t.type)}),_.head.appendChild(i[0])},abort:function(){o&&o()}}});var Ge=[],Ke=/(=)\?(?=&|$)|\?\?/,Xe=(k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||k.expando+"_"+De.guid++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,n){var i,o,r,s=!1!==t.jsonp&&(Ke.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ke.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ke,"$1"+i):!1!==t.jsonp&&(t.url+=(Se.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return r||k.error(i+" was not called"),r[0]},t.dataTypes[0]="json",o=x[i],x[i]=function(){r=arguments},n.always(function(){void 0===o?k(x).removeProp(i):x[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ge.push(i)),r&&b(o)&&o(r[0]),r=o=void 0}),"script"}),g.createHTMLDocument=((t=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===t.childNodes.length),k.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((i=(e=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,e.head.appendChild(i)):e=_),i=!n&&[],(n=Q.exec(t))?[e.createElement(n[1])]:(n=Tt([t],e,i),i&&i.length&&k(i).remove(),k.merge([],n.childNodes)));var i},k.fn.load=function(t,e,n){var i,o,r,s=this,a=t.indexOf(" ");return-1<a&&(i=P(t.slice(a)),t=t.slice(0,a)),b(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),0<s.length&&k.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?k("<div>").append(k.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(t,e,n){var i,o,r,s,a=k.css(t,"position"),l=k(t),u={};"static"===a&&(t.style.position="relative"),r=l.offset(),i=k.css(t,"top"),s=k.css(t,"left"),a=("absolute"===a||"fixed"===a)&&-1<(i+s).indexOf("auto")?(o=(a=l.position()).top,a.left):(o=parseFloat(i)||0,parseFloat(s)||0),null!=(e=b(e)?e.call(t,n,k.extend({},r)):e).top&&(u.top=e.top-r.top+o),null!=e.left&&(u.left=e.left-r.left+a),"using"in e?e.using.call(t,u):l.css(u)}},k.fn.extend({offset:function(e){var t,n;return arguments.length?void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)}):(n=this[0])?n.getClientRects().length?(t=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],o={top:0,left:0};if("fixed"===k.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===k.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=k(t).offset()).top+=k.css(t,"borderTopWidth",!0),o.left+=k.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-k.css(i,"marginTop",!0),left:e.left-o.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===k.css(t,"position");)t=t.offsetParent;return t||w})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,o){var r="pageYOffset"===o;k.fn[e]=function(t){return h(this,function(t,e,n){var i;if(m(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n)return i?i[o]:t[e];i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),k.each(["top","left"],function(t,n){k.cssHooks[n]=Qt(g.pixelPosition,function(t,e){if(e)return e=Xt(t,n),Gt.test(e)?k(t).position()[n]+"px":e})}),k.each({Height:"height",Width:"width"},function(s,a){k.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,r){k.fn[r]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),o=i||(!0===t||!0===e?"margin":"border");return h(this,function(t,e,n){var i;return m(t)?0===r.indexOf("outer")?t["inner"+s]:t.document.documentElement["client"+s]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+s],i["scroll"+s],t.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?k.css(t,e,o):k.style(t,e,n,o)},a,n?t:void 0,n)}})}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){k.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g),Qe=(k.proxy=function(t,e){var n,i;if("string"==typeof e&&(i=t[e],e=t,t=i),b(t))return n=a.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(a.call(arguments)))}).guid=t.guid=t.guid||k.guid++,i},k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=l,k.isFunction=b,k.isWindow=m,k.camelCase=y,k.type=f,k.now=Date.now,k.isNumeric=function(t){var e=k.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},k.trim=function(t){return null==t?"":(t+"").replace(Xe,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k}),x.jQuery),Je=x.$;return k.noConflict=function(t){return x.$===k&&(x.$=Je),t&&x.jQuery===k&&(x.jQuery=Qe),k},void 0===H&&(x.jQuery=x.$=k),k}),!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){function t(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},x.extend(this._defaults,this.regional[""]),this.regional.en=x.extend(!0,{},this.regional[""]),this.regional["en-US"]=x.extend(!0,{},this.regional.en),this.dpDiv=n(x("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){x(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,r)}function r(){x.datepicker._isDisabledDatepicker((O.inline?O.dpDiv.parent():O.input)[0])||(x(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),x(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).addClass("ui-datepicker-next-hover"))}function l(t,e){for(var n in x.extend(t,e),e)null==e[n]&&(t[n]=e[n])}function e(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}x.ui=x.ui||{},x.ui.version="1.12.1";var H,i,_,k,o,s,a,u,c,L,j,R=0,F=Array.prototype.slice;function z(t,e,n){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?n/100:1)]}function C(t,e){return parseInt(x.css(t,e),10)||0}x.cleanData=(j=x.cleanData,function(t){for(var e,n,i=0;null!=(n=t[i]);i++)try{(e=x._data(n,"events"))&&e.remove&&x(n).triggerHandler("remove")}catch(t){}j(t)}),x.widget=function(t,n,e){var i,o,r,s={},a=t.split(".")[0],l=a+"-"+(t=t.split(".")[1]);return e||(e=n,n=x.Widget),x.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr[":"][l.toLowerCase()]=function(t){return!!x.data(t,l)},x[a]=x[a]||{},i=x[a][t],o=x[a][t]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new o(t,e)},x.extend(o,i,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(r=new n).options=x.widget.extend({},r.options),x.each(e,function(e,i){return x.isFunction(i)?void(s[e]=function(){var t,e=this._super,n=this._superApply;return this._super=o,this._superApply=r,t=i.apply(this,arguments),this._super=e,this._superApply=n,t}):void(s[e]=i);function o(){return n.prototype[e].apply(this,arguments)}function r(t){return n.prototype[e].apply(this,t)}}),o.prototype=x.widget.extend(r,{widgetEventPrefix:i&&r.widgetEventPrefix||t},s,{constructor:o,namespace:a,widgetName:t,widgetFullName:l}),i?(x.each(i._childConstructors,function(t,e){var n=e.prototype;x.widget(n.namespace+"."+n.widgetName,o,e._proto)}),delete i._childConstructors):n._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,n,i=F.call(arguments,1),o=0,r=i.length;o<r;o++)for(e in i[o])n=i[o][e],i[o].hasOwnProperty(e)&&void 0!==n&&(t[e]=x.isPlainObject(n)?x.isPlainObject(t[e])?x.widget.extend({},t[e],n):x.widget.extend({},n):n);return t},x.widget.bridge=function(r,e){var s=e.prototype.widgetFullName||r;x.fn[r]=function(n){var t="string"==typeof n,i=F.call(arguments,1),o=this;return t?this.length||"instance"!==n?this.each(function(){var t,e=x.data(this,s);return"instance"===n?(o=e,!1):e?x.isFunction(e[n])&&"_"!==n.charAt(0)?(t=e[n].apply(e,i))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("no such method '"+n+"' for "+r+" widget instance"):x.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+n+"'")}):o=void 0:(i.length&&(n=x.widget.extend.apply(null,[n].concat(i))),this.each(function(){var t=x.data(this,s);t?(t.option(n||{}),t._init&&t._init()):x.data(this,s,new e(n,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=R++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var n=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){n._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var n,i,o,r=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(r={},t=(n=t.split(".")).shift(),n.length){for(i=r[t]=x.widget.extend({},this.options[t]),o=0;n.length-1>o;o++)i[n[o]]=i[n[o]]||{},i=i[n[o]];if(t=n.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=e}return this._setOptions(r),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,n,i;for(e in t)i=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&i&&i.length&&(n=x(i.get()),this._removeClass(i,e),n.addClass(this._classes({element:n,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){function t(t,e){for(var n,i=0;t.length>i;i++)n=s.classesElementLookup[t[i]]||x(),n=o.add?x(x.unique(n.get().concat(o.element.get()))):x(n.not(o.element).get()),s.classesElementLookup[t[i]]=n,r.push(t[i]),e&&o.classes[t[i]]&&r.push(o.classes[t[i]])}var r=[],s=this;return o=x.extend({element:this.element,classes:this.options.classes||{}},o),this._on(o.element,{remove:"_untrackClassesElement"}),o.keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),r.join(" ")},_untrackClassesElement:function(n){var i=this;x.each(i.classesElementLookup,function(t,e){-1!==x.inArray(n.target,e)&&(i.classesElementLookup[t]=x(e.not(n.target).get()))})},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){var o="string"==typeof t||null===t,e={extra:o?e:n,keys:o?t:e,element:o?this.element:t,add:i="boolean"==typeof i?i:n};return e.element.toggleClass(this._classes(e),i),this},_on:function(o,r,t){var s,a=this;"boolean"!=typeof o&&(t=r,r=o,o=!1),t?(r=s=x(r),this.bindings=this.bindings.add(r)):(t=r,r=this.element,s=this.widget()),x.each(t,function(t,e){function n(){return o||!0!==a.options.disabled&&!x(this).hasClass("ui-state-disabled")?("string"==typeof e?a[e]:e).apply(a,arguments):void 0}"string"!=typeof e&&(n.guid=e.guid=e.guid||n.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),i=t[1]+a.eventNamespace,t=t[2];t?s.on(i,t,n):r.on(i,n)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var n=this;return setTimeout(function(){return("string"==typeof t?n[t]:t).apply(n,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,n){var i,o,r=this.options[t];if(n=n||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(i in o)i in e||(e[i]=o[i]);return this.element.trigger(e,n),!(x.isFunction(r)&&!1===r.apply(this.element[0],[e].concat(n))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(r,s){x.Widget.prototype["_"+r]=function(e,t,n){var i=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||s:r,o=!x.isEmptyObject(t="number"==typeof(t=t||{})?{duration:t}:t);t.complete=n,t.delay&&e.delay(t.delay),o&&x.effects&&x.effects.effect[i]?e[r](t):i!==r&&e[i]?e[i](t.duration,t.easing,n):e.queue(function(t){x(this)[r](),n&&n.call(e[0]),t()})}}),x.widget,_=Math.max,k=Math.abs,o=/left|center|right/,s=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,c=/%$/,L=x.fn.position,x.position={scrollbarWidth:function(){var t,e,n;return void 0!==i?i:(n=(e=x("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=n.offsetWidth,e.css("overflow","scroll"),t===(n=n.offsetWidth)&&(n=e[0].clientWidth),e.remove(),i=t-n)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),n=x.isWindow(e[0]),i=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:n,isDocument:i,offset:!n&&!i?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(h){if(!h||!h.of)return L.apply(this,arguments);h=x.extend({},h);var d,p,f,m,g,t,v=x(h.of),b=x.position.getWithinInfo(h.within),y=x.position.getScrollInfo(b),$=(h.collision||"flip").split(" "),w={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:x.isWindow(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()};return v[0].preventDefault&&(h.at="left top"),p=e.width,f=e.height,g=x.extend({},m=e.offset),x.each(["my","at"],function(){var t,e,n=(h[this]||"").split(" ");(n=1===n.length?o.test(n[0])?n.concat(["center"]):s.test(n[0])?["center"].concat(n):["center","center"]:n)[0]=o.test(n[0])?n[0]:"center",n[1]=s.test(n[1])?n[1]:"center",t=a.exec(n[0]),e=a.exec(n[1]),w[this]=[t?t[0]:0,e?e[0]:0],h[this]=[u.exec(n[0])[0],u.exec(n[1])[0]]}),1===$.length&&($[1]=$[0]),"right"===h.at[0]?g.left+=p:"center"===h.at[0]&&(g.left+=p/2),"bottom"===h.at[1]?g.top+=f:"center"===h.at[1]&&(g.top+=f/2),d=z(w.at,p,f),g.left+=d[0],g.top+=d[1],this.each(function(){var n,t,s=x(this),a=s.outerWidth(),l=s.outerHeight(),e=C(this,"marginLeft"),i=C(this,"marginTop"),o=a+e+C(this,"marginRight")+y.width,r=l+i+C(this,"marginBottom")+y.height,u=x.extend({},g),c=z(w.my,s.outerWidth(),s.outerHeight());"right"===h.my[0]?u.left-=a:"center"===h.my[0]&&(u.left-=a/2),"bottom"===h.my[1]?u.top-=l:"center"===h.my[1]&&(u.top-=l/2),u.left+=c[0],u.top+=c[1],n={marginLeft:e,marginTop:i},x.each(["left","top"],function(t,e){x.ui.position[$[t]]&&x.ui.position[$[t]][e](u,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:l,collisionPosition:n,collisionWidth:o,collisionHeight:r,offset:[d[0]+c[0],d[1]+c[1]],my:h.my,at:h.at,within:b,elem:s})}),h.using&&(t=function(t){var e=m.left-u.left,n=e+p-a,i=m.top-u.top,o=i+f-l,r={target:{element:v,left:m.left,top:m.top,width:p,height:f},element:{element:s,left:u.left,top:u.top,width:a,height:l},horizontal:n<0?"left":0<e?"right":"center",vertical:o<0?"top":0<i?"bottom":"middle"};p<a&&p>k(e+n)&&(r.horizontal="center"),f<l&&f>k(i+o)&&(r.vertical="middle"),r.important=_(k(e),k(n))>_(k(i),k(o))?"horizontal":"vertical",h.using.call(this,t,r)}),s.offset(x.extend(u,{using:t}))})},x.ui.position={fit:{left:function(t,e){var n,i=e.within,o=i.isWindow?i.scrollLeft:i.offset.left,i=i.width,r=t.left-e.collisionPosition.marginLeft,s=o-r,a=r+e.collisionWidth-i-o;e.collisionWidth>i?0<s&&a<=0?(n=t.left+s+e.collisionWidth-i-o,t.left+=s-n):t.left=!(0<a&&s<=0)&&a<s?o+i-e.collisionWidth:o:0<s?t.left+=s:0<a?t.left-=a:t.left=_(t.left-r,t.left)},top:function(t,e){var n,i=e.within,i=i.isWindow?i.scrollTop:i.offset.top,o=e.within.height,r=t.top-e.collisionPosition.marginTop,s=i-r,a=r+e.collisionHeight-o-i;e.collisionHeight>o?0<s&&a<=0?(n=t.top+s+e.collisionHeight-o-i,t.top+=s-n):t.top=!(0<a&&s<=0)&&a<s?i+o-e.collisionHeight:i:0<s?t.top+=s:0<a?t.top-=a:t.top=_(t.top-r,t.top)}},flip:{left:function(t,e){var n=e.within,i=n.offset.left+n.scrollLeft,o=n.width,n=n.isWindow?n.scrollLeft:n.offset.left,r=t.left-e.collisionPosition.marginLeft,s=r-n,r=r+e.collisionWidth-o-n,a="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,l="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,u=-2*e.offset[0];s<0?((o=t.left+a+l+u+e.collisionWidth-o-i)<0||k(s)>o)&&(t.left+=a+l+u):0<r&&(0<(i=t.left-e.collisionPosition.marginLeft+a+l+u-n)||r>k(i))&&(t.left+=a+l+u)},top:function(t,e){var n=e.within,i=n.offset.top+n.scrollTop,o=n.height,n=n.isWindow?n.scrollTop:n.offset.top,r=t.top-e.collisionPosition.marginTop,s=r-n,r=r+e.collisionHeight-o-n,a="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,l="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,u=-2*e.offset[1];s<0?((o=t.top+a+l+u+e.collisionHeight-o-i)<0||k(s)>o)&&(t.top+=a+l+u):0<r&&(0<(i=t.top-e.collisionPosition.marginTop+a+l+u-n)||r>k(i))&&(t.top+=a+l+u)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.position,x.extend(x.expr[":"],{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,n){return!!x.data(t,n[3])}}),x.fn.extend({disableSelection:(H="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(H+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var h,W,U,q,V,B,Y,G,K,X,d,p,f,Q,J,m,g,v,b,y,$,w="ui-effects-",T="ui-effects-style",D="ui-effects-animated",Z=x;function S(t,e,n,i){return t={effect:t=x.isPlainObject(t)?(e=t).effect:t},x.isFunction(e=null==e?{}:e)&&(i=e,n=null,e={}),"number"!=typeof e&&!x.fx.speeds[e]||(i=n,n=e,e={}),x.isFunction(n)&&(i=n,n=null),e&&x.extend(t,e),n=n||e.duration,t.duration=x.fx.off?0:"number"==typeof n?n:n in x.fx.speeds?x.fx.speeds[n]:x.fx.speeds._default,t.complete=i||e.complete,t}function E(t){return!t||"number"==typeof t||x.fx.speeds[t]||"string"==typeof t&&!x.effects.effect[t]||x.isFunction(t)||"object"==typeof t&&!t.effect}function tt(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}function et(t){var e,n,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[e=i[n]]&&(o[x.camelCase(e)]=i[e]);else for(e in i)"string"==typeof i[e]&&(o[e]=i[e]);return o}function M(t,e,n){var i=v[e.type]||{};return null==t?n||!e.def?null:e.def:(t=i.floor?~~t:parseFloat(t),isNaN(t)?e.def:i.mod?(t+i.mod)%i.mod:t<0?0:t>i.max?i.max:t)}function nt(i){var o=m(),r=o._rgba=[];return i=i.toLowerCase(),$(J,function(t,e){var n=e.re.exec(i),n=n&&e.parse(n),e=e.space||"rgba";return n?(n=o[e](n),o[g[e].cache]=n[g[e].cache],r=o._rgba=n._rgba,!1):p}),r.length?("0,0,0,0"===r.join()&&d.extend(r,f.transparent),o):f[i]}function A(t,e,n){return 6*(n=(n+1)%1)<1?t+6*(e-t)*n:2*n<1?e:3*n<2?t+6*(e-t)*(2/3-n):t}x.effects={effect:{}},Q=/^([\-+])=\s*(\d+\.?\d*)/,J=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],m=(d=Z).Color=function(t,e,n,i){return new d.Color.fn.parse(t,e,n,i)},g={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},v={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},b=m.support={},y=d("<p>")[0],$=d.each,y.style.cssText="background-color:rgba(1,1,1,.5)",b.rgba=-1<y.style.backgroundColor.indexOf("rgba"),$(g,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),(m.fn=d.extend(m.prototype,{parse:function(o,t,e,n){if(o===p)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=d(o).css(t),t=p);var r=this,i=d.type(o),s=this._rgba=[];return t!==p&&(o=[o,t,e,n],i="array"),"string"===i?this.parse(nt(o)||f._default):"array"===i?($(g.rgba.props,function(t,e){s[e.idx]=M(o[e.idx],e)}),this):"object"===i?(o instanceof m?$(g,function(t,e){o[e.cache]&&(r[e.cache]=o[e.cache].slice())}):$(g,function(t,n){var i=n.cache;$(n.props,function(t,e){if(!r[i]&&n.to){if("alpha"===t||null==o[t])return;r[i]=n.to(r._rgba)}r[i][e.idx]=M(o[t],e,!0)}),r[i]&&d.inArray(null,r[i].slice(0,3))<0&&(r[i][3]=1,n.from)&&(r._rgba=n.from(r[i]))}),this):p},is:function(t){var o=m(t),r=!0,s=this;return $(g,function(t,e){var n,i=o[e.cache];return i&&(n=s[e.cache]||e.to&&e.to(s._rgba)||[],$(e.props,function(t,e){return null!=i[e.idx]?r=i[e.idx]===n[e.idx]:p})),r}),r},_space:function(){var n=[],i=this;return $(g,function(t,e){i[e.cache]&&n.push(t)}),n.pop()},transition:function(t,s){var t=(u=m(t))._space(),e=g[t],n=0===this.alpha()?m("transparent"):this,a=n[e.cache]||e.to(n._rgba),l=a.slice(),u=u[e.cache];return $(e.props,function(t,e){var n=e.idx,i=a[n],o=u[n],r=v[e.type]||{};null!==o&&(null===i?l[n]=o:(r.mod&&(o-i>r.mod/2?i+=r.mod:i-o>r.mod/2&&(i-=r.mod)),l[n]=M((o-i)*s+i,e)))}),this[t](l)},blend:function(t){var e,n,i;return 1===this._rgba[3]?this:(e=this._rgba.slice(),n=e.pop(),i=m(t)._rgba,m(d.map(e,function(t,e){return(1-n)*i[e]+n*t})))},toRgbaString:function(){var t="rgba(",e=d.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=d.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),n=e.pop();return t&&e.push(~~(255*n)),"#"+d.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=m.fn,g.hsla.to=function(t){var e,n,i,o,r,s,a,l;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/255,n=t[1]/255,i=t[2]/255,t=t[3],a=.5*(l=(o=Math.max(e,n,i))+(r=Math.min(e,n,i))),l=0==(s=o-r)?0:a<=.5?s/l:s/(2-l),[Math.round(r===o?0:e===o?60*(n-i)/s+360:n===o?60*(i-e)/s+120:60*(e-n)/s+240)%360,l,a,null==t?1:t])},g.hsla.from=function(t){var e,n,i;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/360,i=t[1],n=t[2],t=t[3],i=2*n-(n=n<=.5?n*(1+i):n+i-n*i),[Math.round(255*A(i,n,e+1/3)),Math.round(255*A(i,n,e)),Math.round(255*A(i,n,e-1/3)),t])},$(g,function(a,t){var r=t.props,s=t.cache,l=t.to,u=t.from;m.fn[a]=function(t){var e,n,i,o;return l&&!this[s]&&(this[s]=l(this._rgba)),t===p?this[s].slice():(n=d.type(t),i="array"===n||"object"===n?t:arguments,o=this[s].slice(),$(r,function(t,e){t=i["object"===n?t:e.idx];null==t&&(t=o[e.idx]),o[e.idx]=M(t,e)}),u?((e=m(u(o)))[s]=o,e):m(o))},$(r,function(r,s){m.fn[r]||(m.fn[r]=function(t){var e=d.type(t),n="alpha"===r?this._hsla?"hsla":"rgba":a,i=this[n](),o=i[s.idx];return"undefined"===e?o:("function"===e&&(t=t.call(this,o),e=d.type(t)),null==t&&s.empty?this:("string"===e&&(e=Q.exec(t))&&(t=o+parseFloat(e[2])*("+"===e[1]?1:-1)),i[s.idx]=t,this[n](i)))})})}),(m.hook=function(t){t=t.split(" ");$(t,function(t,r){d.cssHooks[r]={set:function(t,e){var n,i,o="";if("transparent"!==e&&("string"!==d.type(e)||(n=nt(e)))){if(e=m(n||e),!b.rgba&&1!==e._rgba[3]){for(i="backgroundColor"===r?t.parentNode:t;(""===o||"transparent"===o)&&i&&i.style;)try{o=d.css(i,"backgroundColor"),i=i.parentNode}catch(t){}e=e.blend(o&&"transparent"!==o?o:"_default")}e=e.toRgbaString()}try{t.style[r]=e}catch(t){}}},d.fx.step[r]=function(t){t.colorInit||(t.start=m(t.elem,r),t.end=m(t.end),t.colorInit=!0),d.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),d.cssHooks.borderColor={expand:function(n){var i={};return $(["Top","Right","Bottom","Left"],function(t,e){i["border"+e+"Color"]=n}),i}},f=d.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},K=["add","remove","toggle"],X={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},x.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){x.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(Z.style(t.elem,e,t.end),t.setAttr=!0)}}),x.fn.addBack||(x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),x.effects.animateClass=function(o,t,e,n){var r=x.speed(t,e,n);return this.queue(function(){var n=x(this),t=n.attr("class")||"",e=(e=r.children?n.find("*").addBack():n).map(function(){return{el:x(this),start:et(this)}}),i=function(){x.each(K,function(t,e){o[e]&&n[e+"Class"](o[e])})};i(),e=e.map(function(){return this.end=et(this.el[0]),this.diff=function(t,e){var n,i,o={};for(n in e)i=e[n],t[n]===i||X[n]||!x.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i);return o}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=x.Deferred(),n=x.extend({},r,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),x.when.apply(x,e.get()).done(function(){i(),x.each(arguments,function(){var e=this.el;x.each(this.diff,function(t){e.css(t,"")})}),r.complete.call(n[0])})})},x.fn.extend({addClass:(G=x.fn.addClass,function(t,e,n,i){return e?x.effects.animateClass.call(this,{add:t},e,n,i):G.apply(this,arguments)}),removeClass:(Y=x.fn.removeClass,function(t,e,n,i){return 1<arguments.length?x.effects.animateClass.call(this,{remove:t},e,n,i):Y.apply(this,arguments)}),toggleClass:(B=x.fn.toggleClass,function(t,e,n,i,o){return"boolean"==typeof e||void 0===e?n?x.effects.animateClass.call(this,e?{add:t}:{remove:t},n,i,o):B.apply(this,arguments):x.effects.animateClass.call(this,{toggle:t},e,n,i)}),switchClass:function(t,e,n,i,o){return x.effects.animateClass.call(this,{add:e,remove:t},n,i,o)}}),x.expr&&x.expr.filters&&x.expr.filters.animated&&(x.expr.filters.animated=(V=x.expr.filters.animated,function(t){return!!x(t).data(D)||V(t)})),!1!==x.uiBackCompat&&x.extend(x.effects,{save:function(t,e){for(var n=0,i=e.length;n<i;n++)null!==e[n]&&t.data(w+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,i=0,o=e.length;i<o;i++)null!==e[i]&&(n=t.data(w+e[i]),t.css(e[i],n))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=x("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!x.contains(n[0],o)||x(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(x.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),x.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]===e||x.contains(t[0],e))&&x(e).trigger("focus"),t}}),x.extend(x.effects,{version:"1.12.1",define:function(t,e,n){return n||(n=e,e="effect"),x.effects.effect[t]=n,x.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var i;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(i="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1,{height:t.height()*n,width:t.width()*i,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*i})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1<e&&i.splice.apply(i,[1,0].concat(i.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(T,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(T)||"",t.removeData(T)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createPlaceholder:function(t){var e,n=t.css("position"),i=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",e=x("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(w+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=w+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){x.effects.restoreStyle(t),x.effects.removePlaceholder(t)},setTransition:function(i,t,o,r){return r=r||{},x.each(t,function(t,e){var n=i.cssUnit(e);0<n[0]&&(r[e]=n[0]*o+n[1])}),r}}),x.fn.extend({effect:function(){function t(t){function e(){x.isFunction(a)&&a.call(n[0]),x.isFunction(t)&&t()}var n=x(this);i.mode=u.shift(),!1===x.uiBackCompat||r?"none"===i.mode?(n[l](),e()):o.call(n[0],i,function(){n.removeData(D),x.effects.cleanUp(n),"hide"===i.mode&&n.hide(),e()}):(n.is(":hidden")?"hide"===l:"show"===l)?(n[l](),e()):o.call(n[0],i,e)}function e(t){var e=x(this),n=x.effects.mode(e,l)||r;e.data(D,!0),u.push(n),r&&("show"===n||n===r&&"hide"===n)&&e.show(),r&&"none"===n||x.effects.saveStyle(e),x.isFunction(t)&&t()}var i=S.apply(this,arguments),o=x.effects.effect[i.effect],r=o.mode,n=i.queue,s=n||"fx",a=i.complete,l=i.mode,u=[];return x.fx.off||!o?l?this[l](i.duration,a):this.each(function(){a&&a.call(this)}):!1===n?this.each(e).each(t):this.queue(s,e).queue(s,t)},show:(q=x.fn.show,function(t){var e;return E(t)?q.apply(this,arguments):((e=S.apply(this,arguments)).mode="show",this.effect.call(this,e))}),hide:(U=x.fn.hide,function(t){var e;return E(t)?U.apply(this,arguments):((e=S.apply(this,arguments)).mode="hide",this.effect.call(this,e))}),toggle:(W=x.fn.toggle,function(t){var e;return E(t)||"boolean"==typeof t?W.apply(this,arguments):((e=S.apply(this,arguments)).mode="toggle",this.effect.call(this,e))}),cssUnit:function(t){var n=this.css(t),i=[];return x.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(i=[parseFloat(n),e])}),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):tt(this.css("clip"),this)},transfer:function(t,e){var n=x(this),i=x(t.to),o="fixed"===i.css("position"),r=x("body"),s=o?r.scrollTop():0,r=o?r.scrollLeft():0,a=i.offset(),a={top:a.top-s,left:a.left-r,height:i.innerHeight(),width:i.innerWidth()},i=n.offset(),l=x("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:i.top-s,left:i.left-r,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),x.isFunction(e)&&e()})}}),x.fx.step.clip=function(t){t.clipInit||(t.start=x(t.elem).cssClip(),"string"==typeof t.end&&(t.end=tt(t.end,t.elem)),t.clipInit=!0),x(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},h={},x.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){h[t]=function(t){return Math.pow(t,e+2)}}),x.extend(h,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;((e=Math.pow(2,--n))-1)/11>t;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),x.each(h,function(t,e){x.easing["easeIn"+t]=e,x.easing["easeOut"+t]=function(t){return 1-e(1-t)},x.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});x.effects;x.effects.define("blind","hide",function(t,e){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},i=x(this),o=t.direction||"up",r=i.cssClip(),s={clip:x.extend({},r)},a=x.effects.createPlaceholder(i);s.clip[n[o][0]]=s.clip[n[o][1]],"show"===t.mode&&(i.cssClip(s.clip),a&&a.css(x.effects.clipToBox(s)),s.clip=r),a&&a.animate(x.effects.clipToBox(s),t.duration,t.easing),i.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("bounce",function(t,e){var n,i,o=x(this),r=t.mode,s="hide"===r,r="show"===r,a=t.direction||"up",l=t.distance,u=t.times||5,c=2*u+(r||s?1:0),h=t.duration/c,d=t.easing,p="up"===a||"down"===a?"top":"left",f="up"===a||"left"===a,m=0,t=o.queue().length;for(x.effects.createPlaceholder(o),a=o.css(p),l=l||o["top"==p?"outerHeight":"outerWidth"]()/3,r&&((i={opacity:1})[p]=a,o.css("opacity",0).css(p,f?2*-l:2*l).animate(i,h,d)),s&&(l/=Math.pow(2,u-1)),(i={})[p]=a;m<u;m++)(n={})[p]=(f?"-=":"+=")+l,o.animate(n,h,d).animate(i,h,d),l=s?2*l:l/2;s&&((n={opacity:0})[p]=(f?"-=":"+=")+l,o.animate(n,h,d)),o.queue(e),x.effects.unshift(o,t,1+c)}),x.effects.define("clip","hide",function(t,e){var n={},i=x(this),o=t.direction||"vertical",r="both"===o,s=r||"horizontal"===o,r=r||"vertical"===o,o=i.cssClip();n.clip={top:r?(o.bottom-o.top)/2:o.top,right:s?(o.right-o.left)/2:o.right,bottom:r?(o.bottom-o.top)/2:o.bottom,left:s?(o.right-o.left)/2:o.left},x.effects.createPlaceholder(i),"show"===t.mode&&(i.cssClip(n.clip),n.clip=o),i.animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("drop","hide",function(t,e){var n,i=x(this),o="show"===t.mode,r=t.direction||"left",s="up"===r||"down"===r?"top":"left",r="up"===r||"left"===r?"-=":"+=",a="+="==r?"-=":"+=",l={opacity:0};x.effects.createPlaceholder(i),n=t.distance||i["top"==s?"outerHeight":"outerWidth"](!0)/2,l[s]=r+n,o&&(i.css(l),l[s]=a+n,l.opacity=1),i.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("explode","hide",function(t,e){function n(){m.push(this),m.length===l*u&&(c.css({visibility:"visible"}),x(m).remove(),e())}for(var i,o,r,s,a,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,u=l,c=x(this),h="show"===t.mode,d=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/u),f=Math.ceil(c.outerHeight()/l),m=[],g=0;g<l;g++)for(r=d.top+g*f,a=g-(l-1)/2,i=0;i<u;i++)o=d.left+i*p,s=i-(u-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-i*p,top:-g*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:o+(h?s*p:0),top:r+(h?a*f:0),opacity:h?0:1}).animate({left:o+(h?0:s*p),top:r+(h?0:a*f),opacity:h?1:0},t.duration||500,t.easing,n)}),x.effects.define("fade","toggle",function(t,e){var n="show"===t.mode;x(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("fold","hide",function(e,t){var n=x(this),i=e.mode,o="show"===i,i="hide"===i,r=e.size||15,s=/([0-9]+)%/.exec(r),a=!!e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,u=x.effects.createPlaceholder(n),c=n.cssClip(),h={clip:x.extend({},c)},d={clip:x.extend({},c)},p=[c[a[0]],c[a[1]]],f=n.queue().length;s&&(r=parseInt(s[1],10)/100*p[i?0:1]),h.clip[a[0]]=r,d.clip[a[0]]=r,d.clip[a[1]]=0,o&&(n.cssClip(d.clip),u&&u.css(x.effects.clipToBox(d)),d.clip=c),n.queue(function(t){u&&u.animate(x.effects.clipToBox(h),l,e.easing).animate(x.effects.clipToBox(d),l,e.easing),t()}).animate(h,l,e.easing).animate(d,l,e.easing).queue(t),x.effects.unshift(n,f,4)}),x.effects.define("highlight","show",function(t,e){var n=x(this),i={backgroundColor:n.css("backgroundColor")};"hide"===t.mode&&(i.opacity=0),x.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("size",function(i,e){var o,n=x(this),t=["fontSize"],r=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],a=i.mode,l="effect"!==a,u=i.scale||"both",c=i.origin||["middle","center"],h=n.css("position"),d=n.position(),p=x.effects.scaledDimensions(n),f=i.from||p,m=i.to||x.effects.scaledDimensions(n,0);x.effects.createPlaceholder(n),"show"===a&&(a=f,f=m,m=a),o={from:{y:f.height/p.height,x:f.width/p.width},to:{y:m.height/p.height,x:m.width/p.width}},"box"!==u&&"both"!==u||(o.from.y!==o.to.y&&(f=x.effects.setTransition(n,r,o.from.y,f),m=x.effects.setTransition(n,r,o.to.y,m)),o.from.x===o.to.x)||(f=x.effects.setTransition(n,s,o.from.x,f),m=x.effects.setTransition(n,s,o.to.x,m)),"content"!==u&&"both"!==u||o.from.y===o.to.y||(f=x.effects.setTransition(n,t,o.from.y,f),m=x.effects.setTransition(n,t,o.to.y,m)),c&&(a=x.effects.getBaseline(c,p),f.top=(p.outerHeight-f.outerHeight)*a.y+d.top,f.left=(p.outerWidth-f.outerWidth)*a.x+d.left,m.top=(p.outerHeight-m.outerHeight)*a.y+d.top,m.left=(p.outerWidth-m.outerWidth)*a.x+d.left),n.css(f),"content"!==u&&"both"!==u||(r=r.concat(["marginTop","marginBottom"]).concat(t),s=s.concat(["marginLeft","marginRight"]),n.find("*[width]").each(function(){var t=x(this),e=x.effects.scaledDimensions(t),n={height:e.height*o.from.y,width:e.width*o.from.x,outerHeight:e.outerHeight*o.from.y,outerWidth:e.outerWidth*o.from.x},e={height:e.height*o.to.y,width:e.width*o.to.x,outerHeight:e.height*o.to.y,outerWidth:e.width*o.to.x};o.from.y!==o.to.y&&(n=x.effects.setTransition(t,r,o.from.y,n),e=x.effects.setTransition(t,r,o.to.y,e)),o.from.x!==o.to.x&&(n=x.effects.setTransition(t,s,o.from.x,n),e=x.effects.setTransition(t,s,o.to.x,e)),l&&x.effects.saveStyle(t),t.css(n),t.animate(e,i.duration,i.easing,function(){l&&x.effects.restoreStyle(t)})})),n.animate(m,{queue:!1,duration:i.duration,easing:i.easing,complete:function(){var t=n.offset();0===m.opacity&&n.css("opacity",f.opacity),l||(n.css("position","static"===h?"relative":h).offset(t),x.effects.saveStyle(n)),e()}})}),x.effects.define("scale",function(t,e){var n=x(this),i=t.mode,i=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==i?0:100),n=x.extend(!0,{from:x.effects.scaledDimensions(n),to:x.effects.scaledDimensions(n,i,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(n.from.opacity=1,n.to.opacity=0),x.effects.effect.size.call(this,n,e)}),x.effects.define("puff","hide",function(t,e){t=x.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});x.effects.effect.scale.call(this,t,e)}),x.effects.define("pulsate","show",function(t,e){var n=x(this),i=t.mode,o="show"===i,r=2*(t.times||5)+(o||"hide"===i?1:0),s=t.duration/r,a=0,l=1,i=n.queue().length;for(!o&&n.is(":visible")||(n.css("opacity",0).show(),a=1);l<r;l++)n.animate({opacity:a},s,t.easing),a=1-a;n.animate({opacity:a},s,t.easing),n.queue(e),x.effects.unshift(n,i,1+r)}),x.effects.define("shake",function(t,e){var n=1,i=x(this),o=t.direction||"left",r=t.distance||20,s=t.times||3,a=2*s+1,l=Math.round(t.duration/a),u="up"===o||"down"===o?"top":"left",o="up"===o||"left"===o,c={},h={},d={},p=i.queue().length;for(x.effects.createPlaceholder(i),c[u]=(o?"-=":"+=")+r,h[u]=(o?"+=":"-=")+2*r,d[u]=(o?"-=":"+=")+2*r,i.animate(c,l,t.easing);n<s;n++)i.animate(h,l,t.easing).animate(d,l,t.easing);i.animate(h,l,t.easing).animate(c,l/2,t.easing).queue(e),x.effects.unshift(i,p,1+a)}),x.effects.define("slide","show",function(t,e){var n,i,o=x(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=t.mode,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",u="up"===a||"left"===a,c=t.distance||o["top"==l?"outerHeight":"outerWidth"](!0),h={};x.effects.createPlaceholder(o),n=o.cssClip(),i=o.position()[l],h[l]=(u?-1:1)*c+i,h.clip=o.cssClip(),h.clip[r[a][1]]=h.clip[r[a][0]],"show"===s&&(o.cssClip(h.clip),o.css(l,h[l]),h.clip=n,h[l]=i),o.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),!1!==x.uiBackCompat&&x.effects.define("transfer",function(t,e){x(this).transfer(t,e)}),x.ui.focusable=function(t,e){var n,i,o,r=t.nodeName.toLowerCase();return"area"===r?(o=(n=t.parentNode).name,!(!t.href||!o||"map"!==n.nodeName.toLowerCase())&&0<(n=x("img[usemap='#"+o+"']")).length&&n.is(":visible")):(/^(input|select|textarea|button|object)$/.test(r)?(i=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(i=!o.disabled):i="a"===r&&t.href||e,i&&x(t).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}(x(t)))},x.extend(x.expr[":"],{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.ui.focusable,x.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element.form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},"1.7"===x.fn.jquery.substring(0,3)&&(x.each(["Width","Height"],function(t,n){function i(t,e,n,i){return x.each(o,function(){e-=parseFloat(x.css(t,"padding"+this))||0,n&&(e-=parseFloat(x.css(t,"border"+this+"Width"))||0),i&&(e-=parseFloat(x.css(t,"margin"+this))||0)}),e}var o="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),s={innerWidth:x.fn.innerWidth,innerHeight:x.fn.innerHeight,outerWidth:x.fn.outerWidth,outerHeight:x.fn.outerHeight};x.fn["inner"+n]=function(t){return void 0===t?s["inner"+n].call(this):this.each(function(){x(this).css(r,i(this,t)+"px")})},x.fn["outer"+n]=function(t,e){return"number"!=typeof t?s["outer"+n].call(this,t):this.each(function(){x(this).css(r,i(this,t,!0,e)+"px")})}}),x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.ui.escapeSelector=(ot=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(ot,"\\$1")}),x.fn.labels=function(){var t,e,n;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(n=(n=this.eq(0).parents().last()).add((n.length?n:this).siblings()),t="label[for='"+x.ui.escapeSelector(t)+"']",e=e.add(n.find(t).addBack(t))),this.pushStack(e))},x.fn.scrollParent=function(t){var e=this.css("position"),n="absolute"===e,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!n||"static"!==t.css("position"))&&i.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},x.extend(x.expr[":"],{tabbable:function(t){var e=x.attr(t,"tabindex"),n=null!=e;return(!n||0<=e)&&x.ui.focusable(t,n)}}),x.fn.extend({uniqueId:(it=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++it)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}),x.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=x(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():x()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=x("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),void("icons"===t&&(this._destroyIcons(),e)&&this._createIcons()))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=x.ui.keyCode,n=this.headers.length,i=this.headers.index(t.target),o=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:o=this.headers[(i+1)%n];break;case e.LEFT:case e.UP:o=this.headers[(i-1+n)%n];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:o=this.headers[0];break;case e.END:o=this.headers[n-1]}o&&(x(t.target).attr("tabIndex",-1),x(o).attr("tabIndex",0),x(o).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===x.ui.keyCode.UP&&t.ctrlKey&&x(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=x()):!1===t.active?this._activate(0):this.active.length&&!x.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=x()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var n,t=this.options,e=t.heightStyle,i=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=x(this),e=t.uniqueId().attr("id"),n=t.next(),i=n.uniqueId().attr("id");t.attr("aria-controls",i),n.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(n=i.height(),this.element.siblings(":visible").each(function(){var t=x(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(n-=t.outerHeight(!0))}),this.headers.each(function(){n-=x(this).outerHeight(!0)}),this.headers.next().each(function(){x(this).height(Math.max(0,n-x(this).innerHeight()+x(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.headers.next().each(function(){var t=x(this).is(":visible");t||x(this).show(),n=Math.max(n,x(this).css("height","").height()),t||x(this).hide()}).height(n))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:x.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):x()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&x.each(t.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,n=this.active,i=x(t.currentTarget),o=i[0]===n[0],r=o&&e.collapsible,s=r?x():i.next(),a=n.next(),a={oldHeader:n,oldPanel:a,newHeader:r?x():i,newPanel:s};t.preventDefault(),o&&!e.collapsible||!1===this._trigger("beforeActivate",t,a)||(e.active=!r&&this.headers.index(i),this.active=o?x():i,this._toggle(a),this._removeClass(n,"ui-accordion-header-active","ui-state-active"),e.icons&&(s=n.children(".ui-accordion-header-icon"),this._removeClass(s,null,e.icons.activeHeader)._addClass(s,null,e.icons.header)),o)||(this._removeClass(i,"ui-accordion-header-collapsed")._addClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(t=i.children(".ui-accordion-header-icon"),this._removeClass(t,null,e.icons.header)._addClass(t,null,e.icons.activeHeader)),this._addClass(i.next(),"ui-accordion-content-active"))},_toggle:function(t){var e=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=n,this.options.animate?this._animate(e,n,t):(n.hide(),e.show(),this._toggleComplete(t)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(x(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,n,e){function i(){r._toggleComplete(e)}var o,r=this,s=0,a=t.css("box-sizing"),l=t.length&&(!n.length||t.index()<n.index()),u=this.options.animate||{},l=l&&u.down||u,c=(c="string"==typeof l?l:c)||l.easing||u.easing,h=(h="number"==typeof l?l:h)||l.duration||u.duration;return n.length?t.length?(o=t.show().outerHeight(),n.animate(this.hideProps,{duration:h,easing:c,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:h,easing:c,complete:i,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===a&&(s+=e.now):"content"!==r.options.heightStyle&&(e.now=Math.round(o-n.outerHeight()-s),s=0)}})):n.animate(this.hideProps,h,c,i):t.animate(this.showProps,h,c,i)},_toggleComplete:function(t){var e=t.oldPanel,n=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),x.ui.safeActiveElement=function(e){var n;try{n=e.activeElement}catch(t){n=e.body}return n=(n=n||e.body).nodeName?n:e.body},x.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=x(t.target),n=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":function(t){var e,n;this.previousFilter||(e=x(t.target).closest(".ui-menu-item"),n=x(t.currentTarget),e[0]===n[0]&&(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,n)))},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,n,i,o=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",i=o=!1,n=96<=t.keyCode&&t.keyCode<=105?""+(t.keyCode-96):String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===e?i=!0:n=e+n,e=this._filterMenuItems(n),(e=i&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(n=String.fromCharCode(t.keyCode),e=this._filterMenuItems(n)),e.length?(this.focus(t,e),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,i=this,o=this.options.icons.submenu,n=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=n.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),n=x("<span>").data("ui-menu-submenu-caret",!0);i._addClass(n,"ui-menu-icon","ui-icon "+o),e.attr("aria-haspopup","true").prepend(n),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(t=n.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);i._isDivider(t)&&i._addClass(t,"ui-menu-divider","ui-widget-content")}),e=(n=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var n;"icons"===t&&(n=this.element.find(".ui-menu-icon"),this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,n,i;this._hasScroll()&&(e=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-e-n,n=this.activeMenu.scrollTop(),i=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(n+e):i<e+t&&this.activeMenu.scrollTop(n+e-i+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=x.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var t=n?this.element:x(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!x(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var i;(i=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0):i)&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[e]()),this.focus(n,i)},nextPage:function(t){var e,n,i;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,i=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(e=x(this)).offset().top-n-i<0}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(t)},previousPage:function(t){var e,n,i;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,i=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=x(this)).offset().top-n+i}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items).first()))):void this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||x(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(x.trim(x(this).children(".ui-menu-item-wrapper").text()))})}}),x.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var n,i,o,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))i=o=n=!0;else{i=o=n=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:n=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:n=!0,this._move("nextPage",t);break;case e.UP:n=!0,this._keyEvent("previous",t);break;case e.DOWN:n=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(n=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:i=!0,this._searchTimeout(t)}}},keypress:function(t){if(n)n=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!i){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){return o?(o=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=x("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==x.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,e){var n;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent)&&/^mouse/.test(t.originalEvent.type)?(this.menu.blur(),void this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)})):(n=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),void((e=e.item.attr("aria-label")||n.value)&&x.trim(e).length&&(this.liveRegion.children().hide(),x("<div>").text(e).appendTo(this.liveRegion))))},menuselect:function(t,e){var n=e.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i,this.selectedItem=n})),!1!==this._trigger("select",t,{item:n})&&this._value(n.value),this.term=this._value(),this.close(t),this.selectedItem=n}}),this.liveRegion=x("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_initSource:function(){var n,i,o=this;x.isArray(this.options.source)?(n=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(n,t.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,e){o.xhr&&o.xhr.abort(),o.xhr=x.ajax({url:i,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(i){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),n=i.altKey||i.ctrlKey||i.metaKey||i.shiftKey;t&&(e||n)||(this.selectedItem=null,this.search(null,i))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return x.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:x.map(t,function(t){return"string"==typeof t?{label:t,value:t}:x.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(x.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(n,t){var i=this;x.each(t,function(t,e){i._renderItemData(n,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return x("<li>").append(x("<div>").text(e.label)).appendTo(t)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){var e;return!!t.length&&("inherit"===(e=t.prop("contentEditable"))?this._isContentEditable(t.parent()):"true"===e)}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var n=RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return n.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),x("<div>").text(e).appendTo(this.liveRegion))}}),x.ui.autocomplete;var it,ot,rt,O,I,st=/ui-corner-([a-z]){2,6}/g,P=(x.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var r=this,s=[];x.each(this.options.items,function(i,t){var e,o;return t?"controlgroupLabel"===i?((e=r.element.find(t)).each(function(){var t=x(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),r._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(s=s.concat(e.get()))):void(x.fn[i]&&(o=r["_"+i+"Options"]?r["_"+i+"Options"]("middle"):{classes:{}},r.element.find(t).each(function(){var t=x(this),e=t[i]("instance"),n=x.widget.extend({},o);"button"===i&&t.parent(".ui-spinner").length||((e=e||t[i]()[i]("instance"))&&(n.classes=r._resolveClassesValues(n.classes,e)),t[i](n),n=t[i]("widget"),x.data(n[0],"ui-controlgroup-data",e||t[i]("instance")),s.push(n[0]))}))):void 0}),this.childWidgets=x(x.unique(s)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=x(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var n="vertical"===this.options.direction,i={classes:{}};return i.classes[e]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[t],i},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(n,i){var o={};return x.each(n,function(t){var e=i.options.classes[t]||"",e=x.trim(e.replace(st,""));o[t]=(e+" "+n[t]).replace(/\s+/g," ")}),o},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var o,r=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),o=this.childWidgets,(o=this.options.onlyVisible?o.filter(":visible"):o).length&&(x.each(["first","last"],function(t,e){var n,i=o[e]().data("ui-controlgroup-data");i&&r["_"+i.widgetName+"Options"]?((n=r["_"+i.widgetName+"Options"](1===o.length?"only":e)).classes=r._resolveClassesValues(n.classes,i),i.element[i.widgetName](n)):r._updateCornerClass(o[e](),e)}),this._callChildMethod("refresh"))}}),x.widget("ui.checkboxradio",[x.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=x(t[t.length-1]),this.label.length||x.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){e.originalLabel+=3===this.nodeType?x(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(n.disabled=t),n},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon)&&this._addClass(this.icon,null,"ui-state-hover"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||x.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+x.ui.escapeSelector(t)+"']";return t?(this.form.length?x(this.form[0].elements).filter(e):x(e).filter(function(){return 0===x(this).form().length})).not(this.element):x([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=x(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()):void 0},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=x("<span>"),this.iconSpace=x("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),x.ui.checkboxradio,x.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===x.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var t="iconPosition"!==t,n=t?this.options.iconPosition:e,i="top"===n||"bottom"===n;this.icon?t&&this._removeClass(this.icon,null,this.options.icon):(this.icon=x("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),t&&this._addClass(this.icon,null,e),this._attachIcon(n),i?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=x("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,n=(void 0===t.icon?this.options:t).icon;e||n||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e)&&this.element.blur()},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==x.uiBackCompat&&(x.widget("ui.button",x.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return"text"===t?void this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),x.fn.button=(rt=x.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?rt.apply(this,arguments):(x.ui.checkboxradio||x.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),x.fn.buttonset=function(){return x.ui.controlgroup||x.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),x.ui.button,x.extend(x.ui,{datepicker:{version:"1.12.1"}}),x.extend(t.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return l(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var n,i=t.nodeName.toLowerCase(),o="div"===i||"span"===i;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(n=this._newInst(x(t),o)).settings=x.extend({},e||{}),"input"===i?this._connectDatepicker(t,n):o&&this._inlineDatepicker(t,n)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?n(x("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var n=x(t);e.append=x([]),e.trigger=x([]),n.hasClass(this.markerClassName)||(this._attachments(n,e),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),x.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var n,i=this._get(e,"appendText"),o=this._get(e,"isRTL");e.append&&e.append.remove(),i&&(e.append=x("<span class='"+this._appendClass+"'>"+i+"</span>"),t[o?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(e,"buttonText"),n=this._get(e,"buttonImage"),e.trigger=x(this._get(e,"buttonImageOnly")?x("<img/>").addClass(this._triggerClass).attr({src:n,alt:i,title:i}):x("<button type='button'></button>").addClass(this._triggerClass).html(n?x("<img/>").attr({src:n,alt:i,title:i}):i)),t[o?"before":"after"](e.trigger),e.trigger.on("click",function(){return x.datepicker._datepickerShowing&&x.datepicker._lastInput===t[0]?x.datepicker._hideDatepicker():(x.datepicker._datepickerShowing&&x.datepicker._lastInput!==t[0]&&x.datepicker._hideDatepicker(),x.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,n,i,o,r,s;this._get(t,"autoSize")&&!t.inline&&(r=new Date(2009,11,20),(s=this._get(t,"dateFormat")).match(/[DM]/)&&(r.setMonth((e=function(t){for(o=i=n=0;t.length>o;o++)t[o].length>n&&(n=t[o].length,i=o);return i})(this._get(t,s.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(e(this._get(t,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),t.input.attr("size",this._formatDate(t,r).length))},_inlineDatepicker:function(t,e){var n=x(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(e.dpDiv),x.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,n,i,o){var r,s=this._dialogInst;return s||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=x("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),x("body").append(this._dialogInput),(s=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},x.data(this._dialogInput[0],"datepicker",s)),l(s.settings,i||{}),e=e&&e.constructor===Date?this._formatDate(s,e):e,this._dialogInput.val(e),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,o=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+e,i/2-150+o]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),s.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),x.blockUI&&x.blockUI(this.dpDiv),x.data(this._dialogInput[0],"datepicker",s),this},_destroyDatepicker:function(t){var e,n=x(t),i=x.data(t,"datepicker");n.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),x.removeData(t,"datepicker"),"input"===e?(i.append.remove(),i.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||n.removeClass(this.markerClassName).empty(),O===i)&&(O=null)},_enableDatepicker:function(e){var t,n=x(e),i=x.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,n=x(e),i=x.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(t)for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return x.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,n){var i,o,r,s,a=this._getInst(t);return 2===arguments.length&&"string"==typeof e?"defaults"===e?x.extend({},x.datepicker._defaults):a?"all"===e?x.extend({},a.settings):this._get(a,e):null:(i=e||{},"string"==typeof e&&((i={})[e]=n),void(a&&(this._curInst===a&&this._hideDatepicker(),o=this._getDateDatepicker(t,!0),r=this._getMinMaxDate(a,"min"),s=this._getMinMaxDate(a,"max"),l(a.settings,i),null!==r&&void 0!==i.dateFormat&&void 0===i.minDate&&(a.settings.minDate=this._formatDate(a,r)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(a.settings.maxDate=this._formatDate(a,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(x(t),a),this._autoSize(a),this._setDate(a,o),this._updateAlternate(a),this._updateDatepicker(a))))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,n,i=x.datepicker._getInst(t.target),o=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,x.datepicker._datepickerShowing)switch(t.keyCode){case 9:x.datepicker._hideDatepicker(),o=!1;break;case 13:return(n=x("td."+x.datepicker._dayOverClass+":not(."+x.datepicker._currentClass+")",i.dpDiv))[0]&&x.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,n[0]),(n=x.datepicker._get(i,"onSelect"))?(e=x.datepicker._formatDate(i),n.apply(i.input?i.input[0]:null,[e,i])):x.datepicker._hideDatepicker(),!1;case 27:x.datepicker._hideDatepicker();break;case 33:x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(i,"stepBigMonths"):-x.datepicker._get(i,"stepMonths"),"M");break;case 34:x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(i,"stepBigMonths"):+x.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&x.datepicker._clearDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&x.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,r?1:-1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(i,"stepBigMonths"):-x.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,r?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(i,"stepBigMonths"):+x.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.keyCode&&t.ctrlKey?x.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,n=x.datepicker._getInst(t.target);return x.datepicker._get(n,"constrainInput")?(n=x.datepicker._possibleChars(x.datepicker._get(n,"dateFormat")),e=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||e<" "||!n||-1<n.indexOf(e)):void 0},_doKeyUp:function(t){t=x.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{x.datepicker.parseDate(x.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,x.datepicker._getFormatConfig(t))&&(x.datepicker._setDateFromField(t),x.datepicker._updateAlternate(t),x.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,n,i,o;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=x("input",t.parentNode)[0]),x.datepicker._isDisabledDatepicker(t)||x.datepicker._lastInput===t||(o=x.datepicker._getInst(t),x.datepicker._curInst&&x.datepicker._curInst!==o&&(x.datepicker._curInst.dpDiv.stop(!0,!0),o)&&x.datepicker._datepickerShowing&&x.datepicker._hideDatepicker(x.datepicker._curInst.input[0]),!1!==(n=(n=x.datepicker._get(o,"beforeShow"))?n.apply(t,[t,o]):{})&&(l(o.settings,n),o.lastVal=null,x.datepicker._lastInput=t,x.datepicker._setDateFromField(o),x.datepicker._inDialog&&(t.value=""),x.datepicker._pos||(x.datepicker._pos=x.datepicker._findPos(t),x.datepicker._pos[1]+=t.offsetHeight),e=!1,x(t).parents().each(function(){return!(e|="fixed"===x(this).css("position"))}),n={left:x.datepicker._pos[0],top:x.datepicker._pos[1]},x.datepicker._pos=null,o.dpDiv.empty(),o.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),x.datepicker._updateDatepicker(o),n=x.datepicker._checkOffset(o,n,e),o.dpDiv.css({position:x.datepicker._inDialog&&x.blockUI?"static":e?"fixed":"absolute",display:"none",left:n.left+"px",top:n.top+"px"}),o.inline||(n=x.datepicker._get(o,"showAnim"),i=x.datepicker._get(o,"duration"),o.dpDiv.css("z-index",function(t){for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e))&&0!==e)return e;t=t.parent()}return 0}(x(t))+1),x.datepicker._datepickerShowing=!0,x.effects&&x.effects.effect[n]?o.dpDiv.show(n,x.datepicker._get(o,"showOptions"),i):o.dpDiv[n||"show"](n?i:null),x.datepicker._shouldFocusInput(o)&&o.input.trigger("focus"),x.datepicker._curInst=o)))},_updateDatepicker:function(t){this.maxRows=4,(O=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,n=this._getNumberOfMonths(t),i=n[1],o=t.dpDiv.find("."+this._dayOverClass+" a");0<o.length&&r.apply(o.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&t.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),t.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===x.datepicker._curInst&&x.datepicker._datepickerShowing&&x.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),e=t.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,n){var i=t.dpDiv.outerWidth(),o=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(n?0:x(document).scrollLeft()),l=document.documentElement.clientHeight+(n?0:x(document).scrollTop());return e.left-=this._get(t,"isRTL")?i-r:0,e.left-=n&&e.left===t.input.offset().left?x(document).scrollLeft():0,e.top-=n&&e.top===t.input.offset().top+s?x(document).scrollTop():0,e.left-=Math.min(e.left,e.left+i>a&&i<a?Math.abs(e.left+i-a):0),e.top-=Math.min(e.top,e.top+o>l&&o<l?Math.abs(o+s):0),e},_findPos:function(t){for(var e=this._getInst(t),n=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||x.expr.filters.hidden(t));)t=t[n?"previousSibling":"nextSibling"];return[(e=x(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,n,i=this._curInst;!i||t&&i!==x.data(t,"datepicker")||this._datepickerShowing&&(t=this._get(i,"showAnim"),n=this._get(i,"duration"),e=function(){x.datepicker._tidyDialog(i)},x.effects&&(x.effects.effect[t]||x.effects[t])?i.dpDiv.hide(t,x.datepicker._get(i,"showOptions"),n,e):i.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?n:null,e),t||e(),this._datepickerShowing=!1,(n=this._get(i,"onClose"))&&n.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),x.blockUI)&&(x.unblockUI(),x("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;x.datepicker._curInst&&(t=x(t.target),e=x.datepicker._getInst(t[0]),!(t[0].id===x.datepicker._mainDivId||0!==t.parents("#"+x.datepicker._mainDivId).length||t.hasClass(x.datepicker.markerClassName)||t.closest("."+x.datepicker._triggerClass).length||!x.datepicker._datepickerShowing||x.datepicker._inDialog&&x.blockUI)||t.hasClass(x.datepicker.markerClassName)&&x.datepicker._curInst!==e)&&x.datepicker._hideDatepicker()},_adjustDate:function(t,e,n){var t=x(t),i=this._getInst(t[0]);this._isDisabledDatepicker(t[0])||(this._adjustInstDate(i,e+("M"===n?this._get(i,"showCurrentAtPos"):0),n),this._updateDatepicker(i))},_gotoToday:function(t){var e,t=x(t),n=this._getInst(t[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(e=new Date,n.selectedDay=e.getDate(),n.drawMonth=n.selectedMonth=e.getMonth(),n.drawYear=n.selectedYear=e.getFullYear()),this._notifyChange(n),this._adjustDate(t)},_selectMonthYear:function(t,e,n){var t=x(t),i=this._getInst(t[0]);i["selected"+("M"===n?"Month":"Year")]=i["draw"+("M"===n?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(t)},_selectDay:function(t,e,n,i){var o=x(t);x(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((o=this._getInst(o[0])).selectedDay=o.currentDay=x("a",i).html(),o.selectedMonth=o.currentMonth=e,o.selectedYear=o.currentYear=n,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(t){t=x(t);this._selectDate(t,"")},_selectDate:function(t,e){var n,t=x(t),t=this._getInst(t[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(n=this._get(t,"onSelect"))?n.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,n,i=this._get(t,"altField");i&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),e=this._getDate(t),n=this.formatDate(n,e,this._getFormatConfig(t)),x(i).val(n))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e,t=new Date(t.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),e=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1},parseDate:function(e,o,t){if(null==e||null==o)throw"Invalid arguments";if(""===(o="object"==typeof o?""+o:o+""))return null;function n(t){var e=y(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,t=RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(e=o.substring(l).match(t))return l+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+l}function i(t,e,n){var i=-1,t=x.map(y(t)?n:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(x.each(t,function(t,e){var n=e[1];return o.substr(l,n.length).toLowerCase()===n.toLowerCase()?(i=e[0],l+=n.length,!1):void 0}),-1!==i)return i+1;throw"Unknown name at position "+l}function r(){if(o.charAt(l)!==e.charAt($))throw"Unexpected literal at position "+l;l++}for(var s,a,l=0,u=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),c=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,h=(t?t.dayNames:null)||this._defaults.dayNames,d=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,p=(t?t.monthNames:null)||this._defaults.monthNames,f=-1,m=-1,g=-1,v=-1,b=!1,y=function(t){t=e.length>$+1&&e.charAt($+1)===t;return t&&$++,t},$=0;e.length>$;$++)if(b)"'"!==e.charAt($)||y("'")?r():b=!1;else switch(e.charAt($)){case"d":g=n("d");break;case"D":i("D",c,h);break;case"o":v=n("o");break;case"m":m=n("m");break;case"M":m=i("M",d,p);break;case"y":f=n("y");break;case"@":f=(a=new Date(n("@"))).getFullYear(),m=a.getMonth()+1,g=a.getDate();break;case"!":f=(a=new Date((n("!")-this._ticksTo1970)/1e4)).getFullYear(),m=a.getMonth()+1,g=a.getDate();break;case"'":y("'")?r():b=!0;break;default:r()}if(o.length>l&&(t=o.substr(l),!/^\s+/.test(t)))throw"Extra/unparsed characters found in date: "+t;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=u?0:-100)),-1<v)for(m=1,g=v;!(g<=(s=this._getDaysInMonth(f,m-1)));)m++,g-=s;if((a=this._daylightSavingAdjust(new Date(f,m-1,g))).getFullYear()!==f||a.getMonth()+1!==m||a.getDate()!==g)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,n){if(!t)return"";function i(t,e,n){var i=""+e;if(c(t))for(;n>i.length;)i="0"+i;return i}function o(t,e,n,i){return(c(t)?i:n)[e]}var r,s=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,l=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,u=(n?n.monthNames:null)||this._defaults.monthNames,c=function(t){t=e.length>r+1&&e.charAt(r+1)===t;return t&&r++,t},h="",d=!1;if(t)for(r=0;e.length>r;r++)if(d)"'"!==e.charAt(r)||c("'")?h+=e.charAt(r):d=!1;else switch(e.charAt(r)){case"d":h+=i("d",t.getDate(),2);break;case"D":h+=o("D",t.getDay(),s,a);break;case"o":h+=i("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",t.getMonth()+1,2);break;case"M":h+=o("M",t.getMonth(),l,u);break;case"y":h+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":h+=t.getTime();break;case"!":h+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?h+="'":d=!0;break;default:h+=e.charAt(r)}return h},_possibleChars:function(e){function t(t){return(t=e.length>o+1&&e.charAt(o+1)===t)&&o++,t}for(var n="",i=!1,o=0;e.length>o;o++)if(i)"'"!==e.charAt(o)||t("'")?n+=e.charAt(o):i=!1;else switch(e.charAt(o)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":t("'")?n+="'":i=!0;break;default:n+=e.charAt(o)}return n},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),i=t.lastVal=t.input?t.input.val():null,o=this._getDefaultDate(t),r=o,s=this._getFormatConfig(t);try{r=this.parseDate(n,i,s)||o}catch(t){i=e?"":i}t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),t.currentDay=i?r.getDate():0,t.currentMonth=i?r.getMonth():0,t.currentYear=i?r.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(a,t,e){var n,i=null==t||""===t?e:"string"==typeof t?function(t){try{return x.datepicker.parseDate(x.datepicker._get(a,"dateFormat"),t,x.datepicker._getFormatConfig(a))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?x.datepicker._getDate(a):null)||new Date,n=e.getFullYear(),i=e.getMonth(),o=e.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,s=r.exec(t);s;){switch(s[2]||"d"){case"d":case"D":o+=parseInt(s[1],10);break;case"w":case"W":o+=7*parseInt(s[1],10);break;case"m":case"M":i+=parseInt(s[1],10),o=Math.min(o,x.datepicker._getDaysInMonth(n,i));break;case"y":case"Y":n+=parseInt(s[1],10),o=Math.min(o,x.datepicker._getDaysInMonth(n,i))}s=r.exec(t)}return new Date(n,i,o)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(n=new Date).setDate(n.getDate()+i),n):new Date(t.getTime());return(i=i&&"Invalid Date"==""+i?e:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var i=!e,o=t.selectedMonth,r=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),o===t.selectedMonth&&r===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(i?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){x.datepicker._adjustDate(n,-e,"M")},next:function(){x.datepicker._adjustDate(n,+e,"M")},hide:function(){x.datepicker._hideDatepicker()},today:function(){x.datepicker._gotoToday(n)},selectDay:function(){return x.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return x.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return x.datepicker._selectMonthYear(n,this,"Y"),!1}};x(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,n,i,o,r,H,L,j,R,s,a,F,l,u,c,h,d,p,f,m,g,v,z,b,y,$,w,W,U,x,_,k,C=new Date,q=this._daylightSavingAdjust(new Date(C.getFullYear(),C.getMonth(),C.getDate())),T=this._get(t,"isRTL"),C=this._get(t,"showButtonPanel"),D=this._get(t,"hideIfNoPrevNext"),S=this._get(t,"navigationAsDateFormat"),E=this._getNumberOfMonths(t),M=this._get(t,"showCurrentAtPos"),A=this._get(t,"stepMonths"),V=1!==E[0]||1!==E[1],B=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),O=this._getMinMaxDate(t,"min"),I=this._getMinMaxDate(t,"max"),P=t.drawMonth-M,N=t.drawYear;if(P<0&&(P+=12,N--),I)for(e=this._daylightSavingAdjust(new Date(I.getFullYear(),I.getMonth()-E[0]*E[1]+1,I.getDate())),e=O&&e<O?O:e;this._daylightSavingAdjust(new Date(N,P,1))>e;)--P<0&&(P=11,N--);for(t.drawMonth=P,t.drawYear=N,M=this._get(t,"prevText"),M=S?this.formatDate(M,this._daylightSavingAdjust(new Date(N,P-A,1)),this._getFormatConfig(t)):M,n=this._canAdjustMonth(t,-1,N,P)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+M+"'><span class='ui-icon ui-icon-circle-triangle-"+(T?"e":"w")+"'>"+M+"</span></a>":D?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+M+"'><span class='ui-icon ui-icon-circle-triangle-"+(T?"e":"w")+"'>"+M+"</span></a>",M=this._get(t,"nextText"),M=S?this.formatDate(M,this._daylightSavingAdjust(new Date(N,P+A,1)),this._getFormatConfig(t)):M,i=this._canAdjustMonth(t,1,N,P)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+M+"'><span class='ui-icon ui-icon-circle-triangle-"+(T?"w":"e")+"'>"+M+"</span></a>":D?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+M+"'><span class='ui-icon ui-icon-circle-triangle-"+(T?"w":"e")+"'>"+M+"</span></a>",A=this._get(t,"currentText"),D=this._get(t,"gotoCurrent")&&t.currentDay?B:q,A=S?this.formatDate(A,D,this._getFormatConfig(t)):A,M=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",S=C?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(T?M:"")+(this._isInRange(t,D)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+A+"</button>":"")+(T?"":M)+"</div>":"",o=parseInt(this._get(t,"firstDay"),10),o=isNaN(o)?0:o,r=this._get(t,"showWeek"),H=this._get(t,"dayNames"),L=this._get(t,"dayNamesMin"),j=this._get(t,"monthNames"),R=this._get(t,"monthNamesShort"),s=this._get(t,"beforeShowDay"),a=this._get(t,"showOtherMonths"),F=this._get(t,"selectOtherMonths"),l=this._getDefaultDate(t),u="",h=0;E[0]>h;h++){for(d="",this.maxRows=4,p=0;E[1]>p;p++){if(f=this._daylightSavingAdjust(new Date(N,P,t.selectedDay)),m=" ui-corner-all",g="",V){if(g+="<div class='ui-datepicker-group",1<E[1])switch(p){case 0:g+=" ui-datepicker-group-first",m=" ui-corner-"+(T?"right":"left");break;case E[1]-1:g+=" ui-datepicker-group-last",m=" ui-corner-"+(T?"left":"right");break;default:g+=" ui-datepicker-group-middle",m=""}g+="'>"}for(g+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+m+"'>"+(/all|left/.test(m)&&0===h?T?i:n:"")+(/all|right/.test(m)&&0===h?T?n:i:"")+this._generateMonthYearHeader(t,P,N,O,I,0<h||0<p,j,R)+"</div><table class='ui-datepicker-calendar'><thead><tr>",v=r?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",c=0;c<7;c++)v+="<th scope='col'"+(5<=(c+o+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+H[z=(c+o)%7]+"'>"+L[z]+"</span></th>";for(g+=v+"</tr></thead><tbody>",y=this._getDaysInMonth(N,P),N===t.selectedYear&&P===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,y)),b=(this._getFirstDayOfMonth(N,P)-o+7)%7,y=Math.ceil((b+y)/7),$=V&&this.maxRows>y?this.maxRows:y,this.maxRows=$,w=this._daylightSavingAdjust(new Date(N,P,1-b)),W=0;W<$;W++){for(g+="<tr>",U=r?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(w)+"</td>":"",c=0;c<7;c++)x=s?s.apply(t.input?t.input[0]:null,[w]):[!0,""],k=(_=w.getMonth()!==P)&&!F||!x[0]||O&&w<O||I&&I<w,U+="<td class='"+(5<=(c+o+6)%7?" ui-datepicker-week-end":"")+(_?" ui-datepicker-other-month":"")+(w.getTime()===f.getTime()&&P===t.selectedMonth&&t._keyEvent||l.getTime()===w.getTime()&&l.getTime()===f.getTime()?" "+this._dayOverClass:"")+(k?" "+this._unselectableClass+" ui-state-disabled":"")+(_&&!a?"":" "+x[1]+(w.getTime()===B.getTime()?" "+this._currentClass:"")+(w.getTime()===q.getTime()?" ui-datepicker-today":""))+"'"+(_&&!a||!x[2]?"":" title='"+x[2].replace(/'/g,"'")+"'")+(k?"":" data-handler='selectDay' data-event='click' data-month='"+w.getMonth()+"' data-year='"+w.getFullYear()+"'")+">"+(_&&!a?" ":k?"<span class='ui-state-default'>"+w.getDate()+"</span>":"<a class='ui-state-default"+(w.getTime()===q.getTime()?" ui-state-highlight":"")+(w.getTime()===B.getTime()?" ui-state-active":"")+(_?" ui-priority-secondary":"")+"' href='#'>"+w.getDate()+"</a>")+"</td>",w.setDate(w.getDate()+1),w=this._daylightSavingAdjust(w);g+=U+"</tr>"}11<++P&&(P=0,N++),d+=g+="</tbody></table>"+(V?"</div>"+(0<E[0]&&p===E[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}u+=d}return u+=S,t._keyEvent=!1,u},_generateMonthYearHeader:function(t,e,n,i,o,r,s,a){var l,u,c,h,d,p,f,m=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(r||!m)y+="<span class='ui-datepicker-month'>"+s[e]+"</span>";else{for(l=i&&i.getFullYear()===n,u=o&&o.getFullYear()===n,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=i.getMonth())&&(!u||o.getMonth()>=c)&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+a[c]+"</option>");y+="</select>"}if(v||(b+=y+(!r&&m&&g?"":" ")),!t.yearshtml)if(t.yearshtml="",r||!g)b+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(s=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),p=(d=function(t){t=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(t)?h:t})(s[0]),f=Math.max(p,d(s[1]||"")),p=i?Math.max(p,i.getFullYear()):p,f=o?Math.min(f,o.getFullYear()):f,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=f;p++)t.yearshtml+="<option value='"+p+"'"+(p===n?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),v&&(b+=(!r&&m&&g?"":" ")+y),b+"</div>"},_adjustInstDate:function(t,e,n){var i=t.selectedYear+("Y"===n?e:0),o=t.selectedMonth+("M"===n?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(i,o))+("D"===n?e:0),i=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(i,o,e)));t.selectedDay=i.getDate(),t.drawMonth=t.selectedMonth=i.getMonth(),t.drawYear=t.selectedYear=i.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),n=n&&e<n?n:e;return t&&t<n?t:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,i){var o=this._getNumberOfMonths(t),n=this._daylightSavingAdjust(new Date(n,i+(e<0?e:o[0]*o[1]),1));return e<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(t,n)},_isInRange:function(t,e){var n,i=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),r=null,s=null,t=this._get(t,"yearRange");return t&&(t=t.split(":"),n=(new Date).getFullYear(),r=parseInt(t[0],10),s=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(r+=n),t[1].match(/[+\-].*/))&&(s+=n),(!i||e.getTime()>=i.getTime())&&(!o||e.getTime()<=o.getTime())&&(!r||e.getFullYear()>=r)&&(!s||s>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,i){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);i=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(i,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),i,this._getFormatConfig(t))}}),x.fn.datepicker=function(t){if(!this.length)return this;x.datepicker.initialized||(x(document).on("mousedown",x.datepicker._checkExternalClick),x.datepicker.initialized=!0),0===x("#"+x.datepicker._mainDivId).length&&x("body").append(x.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this].concat(e)):x.datepicker._attachDatepicker(this,t)})},x.datepicker=new t,x.datepicker.initialized=!1,x.datepicker.uuid=(new Date).getTime(),x.datepicker.version="1.12.1",x.datepicker,x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),!1),N=(x(document).on("mouseup",function(){P=!1}),x.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){return!0===x.data(t.target,e.widgetName+".preventClickEvent")?(x.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){var e,n,i;if(!P)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),n=1===(this._mouseDownEvent=t).which,i=!("string"!=typeof(e=this).options.cancel||!t.target.nodeName)&&x(t.target).closest(this.options.cancel).length,n&&!i&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===x.data(t.target,this.widgetName+".preventClickEvent")&&x.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),P=!0)),!0},_mouseMove:function(t){if(this._mouseMoved){if(x.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&x.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,P=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),x.ui.plugin={add:function(t,e,n){var i,o=x.ui[t].prototype;for(i in n)o.plugins[i]=o.plugins[i]||[],o.plugins[i].push([e,n[i]])},call:function(t,e,n,i){var o,r=t.plugins[e];if(r&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;r.length>o;o++)t.options[r[o][0]]&&r[o][1].apply(t.element,n)}},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},x.widget("ui.draggable",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<x(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=x(this);return x("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=x.ui.safeActiveElement(this.document[0]);x(t.target).closest(e).length||x.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),x.ui.ddmanager&&(x.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===x(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),x.ui.ddmanager&&!e.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),x.ui.ddmanager&&x.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new x.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",x.ui.ddmanager&&x.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,n=!1;return x.ui.ddmanager&&!this.options.dropBehaviour&&(n=x.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||x.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?x(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),x.ui.ddmanager&&x.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),x.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new x.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!x(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,n=x.isFunction(e.helper),t=n?x(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),n&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=x.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&x.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e=this.options,n=this.document[0];return this.relativeContainer=null,e.containment?"window"===e.containment?void(this.containment=[x(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,x(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,x(window).scrollLeft()+x(window).width()-this.helperProportions.width-this.margins.left,x(window).scrollTop()+(x(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,x(n).width()-this.helperProportions.width-this.margins.left,(x(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),void((e=(n=x(e.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n))):void(this.containment=null)},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var n,i=this.options,o=this._isRootNode(this.scrollParent[0]),r=t.pageX,s=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(s=e&&(this.containment&&(n=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<n[0]&&(r=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(s=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(r=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3])&&(s=n[3]+this.offset.click.top),i.grid&&(e=i.grid[1]?this.originalPageY+Math.round((s-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY,s=!n||e-this.offset.click.top>=n[1]||e-this.offset.click.top>n[3]?e:e-this.offset.click.top>=n[1]?e-i.grid[1]:e+i.grid[1],t=i.grid[0]?this.originalPageX+Math.round((r-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX,r=!n||t-this.offset.click.left>=n[0]||t-this.offset.click.left>n[2]?t:t-this.offset.click.left>=n[0]?t-i.grid[0]:t+i.grid[0]),"y"===i.axis&&(r=this.originalPageX),"x"===i.axis)?this.originalPageY:s)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,n){return n=n||this._uiHash(),x.ui.plugin.call(this,t,[e,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),x.Widget.prototype._trigger.call(this,t,e,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),x.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,n){var i=x.extend({},t,{item:n.element});n.sortables=[],x(n.options.connectToSortable).each(function(){var t=x(this).sortable("instance");t&&!t.options.disabled&&(n.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,i))})},stop:function(e,t,n){var i=x.extend({},t,{item:n.element});n.cancelHelperRemoval=!1,x.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))})},drag:function(n,i,o){x.each(o.sortables,function(){var t=!1,e=this;e.positionAbs=o.positionAbs,e.helperProportions=o.helperProportions,e.offset.click=o.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,x.each(o.sortables,function(){return this.positionAbs=o.positionAbs,this.helperProportions=o.helperProportions,this.offset.click=o.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&x.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,o._parent=i.helper.parent(),e.currentItem=i.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return i.helper[0]},n.target=e.currentItem[0],e._mouseCapture(n,!0),e._mouseStart(n,!0,!0),e.offset.click.top=o.offset.click.top,e.offset.click.left=o.offset.click.left,e.offset.parent.left-=o.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=o.offset.parent.top-e.offset.parent.top,o._trigger("toSortable",n),o.dropped=e.element,x.each(o.sortables,function(){this.refreshPositions()}),o.currentItem=o.element,e.fromOutside=o),e.currentItem&&(e._mouseDrag(n),i.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",n,e._uiHash(e)),e._mouseStop(n,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),i.helper.appendTo(o._parent),o._refreshOffsets(n),i.position=o._generatePosition(n,!0),o._trigger("fromSortable",n),o.dropped=!1,x.each(o.sortables,function(){this.refreshPositions()}))})}}),x.ui.plugin.add("draggable","cursor",{start:function(t,e,n){var i=x("body"),n=n.options;i.css("cursor")&&(n._cursor=i.css("cursor")),i.css("cursor",n.cursor)},stop:function(t,e,n){n=n.options;n._cursor&&x("body").css("cursor",n._cursor)}}),x.ui.plugin.add("draggable","opacity",{start:function(t,e,n){e=x(e.helper),n=n.options;e.css("opacity")&&(n._opacity=e.css("opacity")),e.css("opacity",n.opacity)},stop:function(t,e,n){n=n.options;n._opacity&&x(e.helper).css("opacity",n._opacity)}}),x.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,e,n){var i=n.options,o=!1,r=n.scrollParentNotHidden[0],s=n.document[0];r!==s&&"HTML"!==r.tagName?(i.axis&&"x"===i.axis||(n.overflowOffset.top+r.offsetHeight-t.pageY<i.scrollSensitivity?r.scrollTop=o=r.scrollTop+i.scrollSpeed:t.pageY-n.overflowOffset.top<i.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(n.overflowOffset.left+r.offsetWidth-t.pageX<i.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+i.scrollSpeed:t.pageX-n.overflowOffset.left<i.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-x(s).scrollTop()<i.scrollSensitivity?o=x(s).scrollTop(x(s).scrollTop()-i.scrollSpeed):x(window).height()-(t.pageY-x(s).scrollTop())<i.scrollSensitivity&&(o=x(s).scrollTop(x(s).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-x(s).scrollLeft()<i.scrollSensitivity?o=x(s).scrollLeft(x(s).scrollLeft()-i.scrollSpeed):x(window).width()-(t.pageX-x(s).scrollLeft())<i.scrollSensitivity&&(o=x(s).scrollLeft(x(s).scrollLeft()+i.scrollSpeed)))),!1!==o&&x.ui.ddmanager&&!i.dropBehaviour&&x.ui.ddmanager.prepareOffsets(n,t)}}),x.ui.plugin.add("draggable","snap",{start:function(t,e,n){var i=n.options;n.snapElements=[],x(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var t=x(this),e=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,n){for(var i,o,r,s,a,l,u,c,h,d=n.options,p=d.snapTolerance,f=e.offset.left,m=f+n.helperProportions.width,g=e.offset.top,v=g+n.helperProportions.height,b=n.snapElements.length-1;0<=b;b--)l=(a=n.snapElements[b].left-n.margins.left)+n.snapElements[b].width,c=(u=n.snapElements[b].top-n.margins.top)+n.snapElements[b].height,m<a-p||l+p<f||v<u-p||c+p<g||!x.contains(n.snapElements[b].item.ownerDocument,n.snapElements[b].item)?(n.snapElements[b].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,x.extend(n._uiHash(),{snapItem:n.snapElements[b].item})),n.snapElements[b].snapping=!1):("inner"!==d.snapMode&&(i=p>=Math.abs(u-v),o=p>=Math.abs(c-g),r=p>=Math.abs(a-m),s=p>=Math.abs(l-f),i&&(e.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),o&&(e.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),r&&(e.position.left=n._convertPositionTo("relative",{top:0,left:a-n.helperProportions.width}).left),s)&&(e.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),h=i||o||r||s,"outer"!==d.snapMode&&(i=p>=Math.abs(u-g),o=p>=Math.abs(c-v),r=p>=Math.abs(a-f),s=p>=Math.abs(l-m),i&&(e.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),o&&(e.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),r&&(e.position.left=n._convertPositionTo("relative",{top:0,left:a}).left),s)&&(e.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),!n.snapElements[b].snapping&&(i||o||r||s||h)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,x.extend(n._uiHash(),{snapItem:n.snapElements[b].item})),n.snapElements[b].snapping=i||o||r||s||h)}}),x.ui.plugin.add("draggable","stack",{start:function(t,e,n){var i,n=n.options,n=x.makeArray(x(n.stack)).sort(function(t,e){return(parseInt(x(t).css("zIndex"),10)||0)-(parseInt(x(e).css("zIndex"),10)||0)});n.length&&(i=parseInt(x(n[0]).css("zIndex"),10)||0,x(n).each(function(t){x(this).css("zIndex",i+t)}),this.css("zIndex",i+n.length))}}),x.ui.plugin.add("draggable","zIndex",{start:function(t,e,n){e=x(e.helper),n=n.options;e.css("zIndex")&&(n._zIndex=e.css("zIndex")),e.css("zIndex",n.zIndex)},stop:function(t,e,n){n=n.options;n._zIndex&&x(e.helper).css("zIndex",n._zIndex)}}),x.ui.draggable,x.widget("ui.resizable",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){var n;return"hidden"!==x(t).css("overflow")&&(n=!1,0<t[e=e&&"left"===e?"scrollLeft":"scrollTop"]||(t[e]=1,n=0<t[e],t[e]=0,n))},_create:function(){var t,e=this.options,n=this;this._addClass("ui-resizable"),x.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(x("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&x(this.element).on("mouseenter",function(){e.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){e.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();function t(t){x(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){"handles"===(this._super(t,e),t)&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var t,e,n,i,o,r=this.options,s=this;if(this.handles=r.handles||(x(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=x(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},e=0;n.length>e;e++)i="ui-resizable-"+(t=x.trim(n[e])),o=x("<div>"),this._addClass(o,"ui-resizable-handle "+i),o.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(o);this._renderAxis=function(t){var e,n,i;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=x(this.handles[e]),this._on(this.handles[e],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=x(this.handles[e],this.element),i=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(n,i),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){s.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=o&&o[1]?o[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var e,n,i=!1;for(e in this.handles)n=x(this.handles[e])[0],n!==t.target&&!x.contains(n,t.target)||(i=!0);return!this.options.disabled&&i},_mouseStart:function(t){var e,n,i=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),i.containment&&(e+=x(i.containment).scrollLeft()||0,n+=x(i.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:e,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof i.aspectRatio?i.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=x(".ui-resizable-"+this.axis).css("cursor"),x("body").css("cursor","auto"===o?this.axis+"-resize":o),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,n=this.axis,i=t.pageX-e.left||0,e=t.pageY-e.top||0,n=this._change[n];return this._updatePrevProperties(),n&&(n=n.apply(this,[t,i,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),x.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,n,i,o=this.options,r=this;return this._helper&&(n=(e=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:r.sizeDiff.height,e=e?0:r.sizeDiff.width,e={width:r.helper.width()-e,height:r.helper.height()-n},n=parseFloat(r.element.css("left"))+(r.position.left-r.originalPosition.left)||null,i=parseFloat(r.element.css("top"))+(r.position.top-r.originalPosition.top)||null,o.animate||this.element.css(x.extend(e,{top:i,left:n})),r.helper.height(r.size.height),r.helper.width(r.size.width),this._helper)&&!o.animate&&this._proportionallyResize(),x("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,n,i,o=this.options,o={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0};(this._aspectRatio||t)&&(t=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,e=o.maxHeight*this.aspectRatio,i=o.maxWidth/this.aspectRatio,o.minWidth<t&&(o.minWidth=t),o.minHeight<n&&(o.minHeight=n),e<o.maxWidth&&(o.maxWidth=e),i<o.maxHeight)&&(o.maxHeight=i),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,i=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===i&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===i&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,i=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,r=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,s=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(n),n=/nw|ne|n/.test(n);return r&&(t.width=e.minWidth),s&&(t.height=e.minHeight),i&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),r&&u&&(t.left=a-e.minWidth),i&&u&&(t.left=a-e.maxWidth),s&&n&&(t.top=l-e.minHeight),o&&n&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],i=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],o=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)n[e]=parseFloat(i[e])||0,n[e]+=parseFloat(o[e])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||x("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize;return{left:this.originalPosition.left+e,width:n.width-e}},n:function(t,e,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(t,e,n){return x.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,n]))},sw:function(t,e,n){return x.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,n]))},ne:function(t,e,n){return x.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,n]))},nw:function(t,e,n){return x.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,n]))}},_propagate:function(t,e){x.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),x.ui.plugin.add("resizable","animate",{stop:function(e){var n=x(this).resizable("instance"),t=n.options,i=n._proportionallyResizeElements,o=i.length&&/textarea/i.test(i[0].nodeName),r=o&&n._hasScroll(i[0],"left")?0:n.sizeDiff.height,o=o?0:n.sizeDiff.width,o={width:n.size.width-o,height:n.size.height-r},r=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,s=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(x.extend(o,s&&r?{top:s,left:r}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};i&&i.length&&x(i[0]).css({width:t.width,height:t.height}),n._updateCache(t),n._propagate("resize",e)}})}}),x.ui.plugin.add("resizable","containment",{start:function(){var n,i,t,e,o=x(this).resizable("instance"),r=o.options,s=o.element,r=r.containment,s=r instanceof x?r.get(0):/parent/.test(r)?s.parent().get(0):r;s&&(o.containerElement=x(s),/document/.test(r)||r===document?(o.containerOffset={left:0,top:0},o.containerPosition={left:0,top:0},o.parentData={element:x(document),left:0,top:0,width:x(document).width(),height:x(document).height()||document.body.parentNode.scrollHeight}):(n=x(s),i=[],x(["Top","Right","Left","Bottom"]).each(function(t,e){i[t]=o._num(n.css("padding"+e))}),o.containerOffset=n.offset(),o.containerPosition=n.position(),o.containerSize={height:n.innerHeight()-i[3],width:n.innerWidth()-i[1]},r=o.containerOffset,e=o.containerSize.height,t=o.containerSize.width,t=o._hasScroll(s,"left")?s.scrollWidth:t,e=o._hasScroll(s)?s.scrollHeight:e,o.parentData={element:s,left:r.left,top:r.top,width:t,height:e}))},resize:function(t){var e=x(this).resizable("instance"),n=e.options,i=e.containerOffset,o=e.position,t=e._aspectRatio||t.shiftKey,r={top:0,left:0},s=e.containerElement,a=!0;s[0]!==document&&/static/.test(s.css("position"))&&(r=i),o.left<(e._helper?i.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-i.left:e.position.left-r.left),t&&(e.size.height=e.size.width/e.aspectRatio,a=!1),e.position.left=n.helper?i.left:0),o.top<(e._helper?i.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-i.top:e.position.top),t&&(e.size.width=e.size.height*e.aspectRatio,a=!1),e.position.top=e._helper?i.top:0),s=e.containerElement.get(0)===e.element.parent().get(0),n=/relative|absolute/.test(e.containerElement.css("position")),s&&n?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),o=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-r.left:e.offset.left-i.left)),s=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-r.top:e.offset.top-i.top)),o+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-o,t)&&(e.size.height=e.size.width/e.aspectRatio,a=!1),s+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-s,t)&&(e.size.width=e.size.height*e.aspectRatio,a=!1),a||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=x(this).resizable("instance"),e=t.options,n=t.containerOffset,i=t.containerPosition,o=t.containerElement,r=x(t.helper),s=r.offset(),a=r.outerWidth()-t.sizeDiff.width,r=r.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(o.css("position"))&&x(this).css({left:s.left-i.left-n.left,width:a,height:r}),t._helper&&!e.animate&&/static/.test(o.css("position"))&&x(this).css({left:s.left-i.left-n.left,width:a,height:r})}}),x.ui.plugin.add("resizable","alsoResize",{start:function(){var t=x(this).resizable("instance").options;x(t.alsoResize).each(function(){var t=x(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,n){var e=x(this).resizable("instance"),i=e.options,o=e.originalSize,r=e.originalPosition,s={height:e.size.height-o.height||0,width:e.size.width-o.width||0,top:e.position.top-r.top||0,left:e.position.left-r.left||0};x(i.alsoResize).each(function(){var t=x(this),i=x(this).data("ui-resizable-alsoresize"),o={},e=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];x.each(e,function(t,e){var n=(i[e]||0)+(s[e]||0);n&&0<=n&&(o[e]=n||null)}),t.css(o)})},stop:function(){x(this).removeData("ui-resizable-alsoresize")}}),x.ui.plugin.add("resizable","ghost",{start:function(){var t=x(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==x.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=x(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=x(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),x.ui.plugin.add("resizable","grid",{resize:function(){var t,e=x(this).resizable("instance"),n=e.options,i=e.size,o=e.originalSize,r=e.originalPosition,s=e.axis,a="number"==typeof n.grid?[n.grid,n.grid]:n.grid,l=a[0]||1,u=a[1]||1,c=Math.round((i.width-o.width)/l)*l,i=Math.round((i.height-o.height)/u)*u,h=o.width+c,d=o.height+i,p=n.maxWidth&&h>n.maxWidth,f=n.maxHeight&&d>n.maxHeight,m=n.minWidth&&n.minWidth>h,g=n.minHeight&&n.minHeight>d;n.grid=a,m&&(h+=l),g&&(d+=u),p&&(h-=l),f&&(d-=u),/^(se|s|e)$/.test(s)?(e.size.width=h,e.size.height=d):/^(ne)$/.test(s)?(e.size.width=h,e.size.height=d,e.position.top=r.top-i):/^(sw)$/.test(s)?(e.size.width=h,e.size.height=d,e.position.left=r.left-c):((d-u<=0||h-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<d-u?(e.size.height=d,e.position.top=r.top-i):(d=u-t.height,e.size.height=d,e.position.top=r.top+o.height-d),0<h-l?(e.size.width=h,e.position.left=r.left-c):(h=l-t.width,e.size.width=h,e.position.left=r.left+o.width-h))}}),x.ui.resizable,x.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=x(this).css(t).offset().top;e<0&&x(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&x.fn.draggable&&this._makeDraggable(),this.options.resizable&&x.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?x(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:x.noop,enable:x.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||x.ui.safeBlur(x.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var n=!1,i=this.uiDialog.siblings(".ui-front:visible").map(function(){return+x(this).css("z-index")}).get(),i=Math.max.apply(null,i);return i>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",i+1),n=!0),n&&!e&&this._trigger("focus",t),n},open:function(){var t=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=x(x.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_keepFocus:function(t){function e(){var t=x.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||x.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=x("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){var e,n,i;this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===x.ui.keyCode.ESCAPE?(t.preventDefault(),this.close(t)):t.keyCode!==x.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),n=e.filter(":first"),i=e.filter(":last"),t.target!==i[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==n[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){i.trigger("focus")}),t.preventDefault()):(this._delay(function(){n.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=x("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){x(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=x("<button type='button'></button>").button({label:x("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=x("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=x("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=x("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),x.isEmptyObject(t)||x.isArray(t)&&!t.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(x.each(t,function(t,e){var n;e=x.isFunction(e)?{click:e,text:t}:e,e=x.extend({type:"button"},e),n=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,x("<button></button>",e).button(t).appendTo(i.uiButtonSet).on("click",function(){n.apply(i.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function o(t){return{position:t.position,offset:t.offset}}var r=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){r._addClass(x(this),"ui-dialog-dragging"),r._blockFrames(),r._trigger("dragStart",t,o(e))},drag:function(t,e){r._trigger("drag",t,o(e))},stop:function(t,e){var n=e.offset.left-r.document.scrollLeft(),i=e.offset.top-r.document.scrollTop();s.position={my:"left top",at:"left"+(0<=n?"+":"")+n+" top"+(0<=i?"+":"")+i,of:r.window},r._removeClass(x(this),"ui-dialog-dragging"),r._unblockFrames(),r._trigger("dragStop",t,o(e))}})},_makeResizable:function(){function o(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var r=this,s=this.options,t=s.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){r._addClass(x(this),"ui-dialog-resizing"),r._blockFrames(),r._trigger("resizeStart",t,o(e))},resize:function(t,e){r._trigger("resize",t,o(e))},stop:function(t,e){var n=r.uiDialog.offset(),i=n.left-r.document.scrollLeft(),n=n.top-r.document.scrollTop();s.height=r.uiDialog.height(),s.width=r.uiDialog.width(),s.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=n?"+":"")+n,of:r.window},r._removeClass(x(this),"ui-dialog-resizing"),r._unblockFrames(),r._trigger("resizeStop",t,o(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=x(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=x.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var n=this,i=!1,o={};x.each(t,function(t,e){n._setOption(t,e),t in n.sizeRelatedOptions&&(i=!0),t in n.resizableRelatedOptions&&(o[t]=e)}),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(t,e){var n,i=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:x("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((n=i.is(":data(ui-draggable)"))&&!e&&i.draggable("destroy"),!n)&&e&&this._makeDraggable(),"position"===t&&this._position(),"resizable"===t&&((n=i.is(":data(ui-resizable)"))&&!e&&i.resizable("destroy"),n&&"string"==typeof e&&i.resizable("option","handles",e),n||!1===e||this._makeResizable()),"title"===t)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var t,e,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),t=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),e=Math.max(0,i.minHeight-t),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-t):"none","auto"===i.height?this.element.css({minHeight:e,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=x(this);return x("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!x(t.target).closest(".ui-dialog").length||!!x(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var e;this.options.modal&&(e=!0,this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=x("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==x.uiBackCompat&&x.widget("ui.dialog",x.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),x.ui.dialog,x.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,n=e.accept;this.isover=!1,this.isout=!0,this.accept=x.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){return arguments.length?void(t=arguments[0]):t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){x.ui.ddmanager.droppables[t]=x.ui.ddmanager.droppables[t]||[],x.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=x.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var n;"accept"===t?this.accept=x.isFunction(e)?e:function(t){return t.is(e)}:"scope"===t&&(n=x.ui.ddmanager.droppables[this.options.scope],this._splice(n),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=x.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=x.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=x.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=x.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var n=t||x.ui.ddmanager.current,i=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=x(this).droppable("instance");return t.options.greedy&&!t.options.disabled&&t.options.scope===n.options.scope&&t.accept.call(t.element[0],n.currentItem||n.element)&&N(n,x.extend(t,{offset:t.element.offset()}),t.options.tolerance,e)?!(i=!0):void 0}),i)||!this.accept.call(this.element[0],n.currentItem||n.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(n)),this.element)},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),x.ui.intersect=function(t,e,n,i){if(!e.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,r=(t.positionAbs||t.position.absolute).top+t.margins.top,s=o+t.helperProportions.width,a=r+t.helperProportions.height,l=e.offset.left,u=e.offset.top,c=l+e.proportions().width,h=u+e.proportions().height;switch(n){case"fit":return l<=o&&s<=c&&u<=r&&a<=h;case"intersect":return o+t.helperProportions.width/2>l&&c>s-t.helperProportions.width/2&&r+t.helperProportions.height/2>u&&h>a-t.helperProportions.height/2;case"pointer":return at(i.pageY,u,e.proportions().height)&&at(i.pageX,l,e.proportions().width);case"touch":return(u<=r&&r<=h||u<=a&&a<=h||r<u&&h<a)&&(l<=o&&o<=c||l<=s&&s<=c||o<l&&c<s);default:return!1}});function at(t,e,n){return e<=t&&t<e+n}!(x.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var n,i,o=x.ui.ddmanager.droppables[t.options.scope]||[],r=e?e.type:null,s=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(n=0;o.length>n;n++)if(!(o[n].options.disabled||t&&!o[n].accept.call(o[n].element[0],t.currentItem||t.element))){for(i=0;s.length>i;i++)if(s[i]===o[n].element[0]){o[n].proportions().height=0;continue t}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===r&&o[n]._activate.call(o[n],e),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight}))}},drop:function(t,e){var n=!1;return x.each((x.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&N(t,this,this.options.tolerance,e)&&(n=this._drop.call(this,e)||n),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e))}),n},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||x.ui.ddmanager.prepareOffsets(t,e)})},drag:function(o,r){o.options.refreshPositions&&x.ui.ddmanager.prepareOffsets(o,r),x.each(x.ui.ddmanager.droppables[o.options.scope]||[],function(){var t,e,n,i;this.options.disabled||this.greedyChild||!this.visible||(i=!(i=N(o,this,this.options.tolerance,r))&&this.isover?"isout":i&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(n=this.element.parents(":data(ui-droppable)").filter(function(){return x(this).droppable("instance").options.scope===e})).length)&&((t=x(n[0]).droppable("instance")).greedyChild="isover"===i),t&&"isover"===i&&(t.isover=!1,t.isout=!0,t._out.call(t,r)),this[i]=!0,this["isout"===i?"isover":"isout"]=!1,this["isover"===i?"_over":"_out"].call(this,r),t)&&"isout"===i&&(t.isout=!1,t.isover=!0,t._over.call(t,r))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||x.ui.ddmanager.prepareOffsets(t,e)}})!==x.uiBackCompat&&x.widget("ui.droppable",x.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),x.ui.droppable,x.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=x("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=x("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),x.widget("ui.selectable",x.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var n=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){n.elementPos=x(n.element[0]).offset(),n.selectees=x(n.options.filter,n.element[0]),n._addClass(n.selectees,"ui-selectee"),n.selectees.each(function(){var t=x(this),e=t.offset(),e={left:e.left-n.elementPos.left,top:e.top-n.elementPos.top};x.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=x("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(n){var i=this,t=this.options;this.opos=[n.pageX,n.pageY],this.elementPos=x(this.element[0]).offset(),this.options.disabled||(this.selectees=x(t.filter,this.element[0]),this._trigger("start",n),x(t.appendTo).append(this.helper),this.helper.css({left:n.pageX,top:n.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=x.data(this,"selectable-item");t.startselected=!0,n.metaKey||n.ctrlKey||(i._removeClass(t.$element,"ui-selected"),t.selected=!1,i._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,i._trigger("unselecting",n,{unselecting:t.element}))}),x(n.target).parents().addBack().each(function(){var t,e=x.data(this,"selectable-item");return e?(t=!n.metaKey&&!n.ctrlKey||!e.$element.hasClass("ui-selected"),i._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?i._trigger("selecting",n,{selecting:e.element}):i._trigger("unselecting",n,{unselecting:e.element}),!1):void 0}))},_mouseDrag:function(i){var t,o,r,s,a,l,u;if(this.dragged=!0,!this.options.disabled)return r=(o=this).options,s=this.opos[0],a=this.opos[1],l=i.pageX,u=i.pageY,l<s&&(t=l,l=s,s=t),u<a&&(t=u,u=a,a=t),this.helper.css({left:s,top:a,width:l-s,height:u-a}),this.selectees.each(function(){var t=x.data(this,"selectable-item"),e=!1,n={};t&&t.element!==o.element[0]&&(n.left=t.left+o.elementPos.left,n.right=t.right+o.elementPos.left,n.top=t.top+o.elementPos.top,n.bottom=t.bottom+o.elementPos.top,"touch"===r.tolerance?e=!(l<n.left||n.right<s||u<n.top||n.bottom<a):"fit"===r.tolerance&&(e=s<n.left&&n.right<l&&a<n.top&&n.bottom<u),e?(t.selected&&(o._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(o._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(o._addClass(t.$element,"ui-selecting"),t.selecting=!0,o._trigger("selecting",i,{selecting:t.element}))):(t.selecting&&((i.metaKey||i.ctrlKey)&&t.startselected?(o._removeClass(t.$element,"ui-selecting"),t.selecting=!1,o._addClass(t.$element,"ui-selected"),t.selected=!0):(o._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(o._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),o._trigger("unselecting",i,{unselecting:t.element}))),!t.selected||i.metaKey||i.ctrlKey||t.startselected||(o._removeClass(t.$element,"ui-selected"),t.selected=!1,o._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,o._trigger("unselecting",i,{unselecting:t.element}))))}),!1},_mouseStop:function(e){var n=this;return this.dragged=!1,x(".ui-unselecting",this.element[0]).each(function(){var t=x.data(this,"selectable-item");n._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,n._trigger("unselected",e,{unselected:t.element})}),x(".ui-selecting",this.element[0]).each(function(){var t=x.data(this,"selectable-item");n._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,n._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),x.widget("ui.selectmenu",[x.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=x()},_drawButton:function(){var t,e=this,n=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=x("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=x("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(n).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var n=this;this.menu=x("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=x("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),n._setSelection(),n._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item");null!=n.focusIndex&&e.index!==n.focusIndex&&(n._trigger("focus",t,{item:e}),n.isOpen||n._select(e,t)),n.focusIndex=e.index,n.button.attr("aria-activedescendant",n.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(x.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=x("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(i,t){var o=this,r="";x.each(t,function(t,e){var n;e.optgroup!==r&&(n=x("<li>",{text:e.optgroup}),o._addClass(n,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),n.appendTo(i),r=e.optgroup),o._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var n=x("<li>"),i=x("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(i,e.label),n.append(i).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var n,i=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),i+=":not(.ui-state-disabled)"),(n="first"===t||"last"===t?n["first"===t?"prevAll":"nextAll"](i).eq(-1):n[t+"All"](i).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){!this.isOpen||x(t.target).closest(".ui-selectmenu-menu, #"+x.ui.escapeSelector(this.ids.button)).length||this.close(t)}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case x.ui.keyCode.TAB:case x.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case x.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case x.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case x.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case x.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case x.ui.keyCode.LEFT:this._move("prev",t);break;case x.ui.keyCode.RIGHT:this._move("next",t);break;case x.ui.keyCode.HOME:case x.ui.keyCode.PAGE_UP:this._move("first",t);break;case x.ui.keyCode.END:case x.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==n&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var n;"icons"===t&&(n=this.button.find("span.ui-icon"),this._removeClass(n,null,this.options.icons.button)._addClass(n,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return!1===t?void this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var n=this,i=[];t.each(function(t,e){i.push(n._parseOption(x(e),t))}),this.items=i},_parseOption:function(t,e){var n=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),x.widget("ui.slider",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,n=this.element.find(".ui-slider-handle"),i=[],o=e.values&&e.values.length||1;for(n.length>o&&(n.slice(o).remove(),n=n.slice(0,o)),t=n.length;t<o;t++)i.push("<span tabindex='0'></span>");this.handles=n.add(x(i.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){x(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:x.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=x("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,i,o,r,e,s,a=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e),i=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(n-a.values(t));(e<i||i===e&&(t===a._lastChangedValue||a.values(t)===l.min))&&(i=e,o=x(this),r=t)}),!1!==this._start(t,r))&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),e=o.offset(),s=!x(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=s?{left:0,top:0}:{left:t.pageX-e.left-o.width()/2,top:t.pageY-e.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,n),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=t/e;return(t=1<t?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),t=this._valueMin()+t*e,this._trimAlignValue(t)},_uiHash:function(t,e,n){var i={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==e?e:this.values(t),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var i,o=this.value(),r=this.values();this._hasMultipleValues()&&(i=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(i,n):Math.max(i,n)),r[e]=n),n!==o&&!1!==this._trigger("slide",t,this._uiHash(e,n,r))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var n,i,o;if(1<arguments.length)this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),this._change(null,t);else{if(!arguments.length)return this._values();if(!x.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(n=this.options.values,i=t,o=0;n.length>o;o+=1)n[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()}},_setOption:function(t,e){var n,i=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),x.isArray(this.options.values)&&(i=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=i-1;0<=n;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,n,i;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),i=0;n.length>i;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(t){var e,n;return this._valueMin()>=t?this._valueMin():t>=this._valueMax()?this._valueMax():(e=0<this.options.step?this.options.step:1,n=t-(t=(t-this._valueMin())%e),2*Math.abs(t)>=e&&(n+=0<t?e:-e),parseFloat(n.toFixed(5)))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=""+t,e=t.indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,t,i,o,r=this.options.range,s=this.options,a=this,l=!this._animateOff&&s.animate,u={};this._hasMultipleValues()?this.handles.each(function(t){n=(a.values(t)-a._valueMin())/(a._valueMax()-a._valueMin())*100,u["horizontal"===a.orientation?"left":"bottom"]=n+"%",x(this).stop(1,1)[l?"animate":"css"](u,s.animate),!0===a.options.range&&("horizontal"===a.orientation?(0===t&&a.range.stop(1,1)[l?"animate":"css"]({left:n+"%"},s.animate),1===t&&a.range[l?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===t&&a.range.stop(1,1)[l?"animate":"css"]({bottom:n+"%"},s.animate),1===t&&a.range[l?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n}):(t=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(t-i)/(o-i)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[l?"animate":"css"](u,s.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:n+"%"},s.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-n+"%"},s.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:n+"%"},s.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(t){var e,n,i,o=x(t.target).data("ui-slider-handle-index");switch(t.keyCode){case x.ui.keyCode.HOME:case x.ui.keyCode.END:case x.ui.keyCode.PAGE_UP:case x.ui.keyCode.PAGE_DOWN:case x.ui.keyCode.UP:case x.ui.keyCode.RIGHT:case x.ui.keyCode.DOWN:case x.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(x(t.target),null,"ui-state-active"),!1===this._start(t,o)))return}switch(i=this.options.step,e=n=this._hasMultipleValues()?this.values(o):this.value(),t.keyCode){case x.ui.keyCode.HOME:n=this._valueMin();break;case x.ui.keyCode.END:n=this._valueMax();break;case x.ui.keyCode.PAGE_UP:n=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case x.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case x.ui.keyCode.UP:case x.ui.keyCode.RIGHT:if(e===this._valueMax())return;n=this._trimAlignValue(e+i);break;case x.ui.keyCode.DOWN:case x.ui.keyCode.LEFT:if(e===this._valueMin())return;n=this._trimAlignValue(e-i)}this._slide(t,o,n)},keyup:function(t){var e=x(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(x(t.target),null,"ui-state-active"))}}}),x.widget("ui.sortable",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return e<=t&&t<e+n},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),x.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var n=null,i=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),x(t.target).parents().each(function(){return x.data(this,o.widgetName+"-item")===o?(n=x(this),!1):void 0}),!(n=x.data(t.target,o.widgetName+"-item")===o?x(t.target):n))||(this.options.handle&&!e&&(x(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(i=!0)}),!i)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,n){var i,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},x.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=x("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(i=this.containers.length-1;0<=i;i--)this.containers[i]._trigger("activate",t,this._uiHash(this));return x.ui.ddmanager&&(x.ui.ddmanager.current=this),x.ui.ddmanager&&!r.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,n,i,o,r=this.options,s=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+r.scrollSpeed:t.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+r.scrollSpeed:t.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(t.pageY-this.document.scrollTop()<r.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<r.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),t.pageX-this.document.scrollLeft()<r.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),!1!==s)&&x.ui.ddmanager&&!r.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;0<=e;e--)if(i=(n=this.items[e]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&i!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==i&&!x.contains(this.placeholder[0],i)&&("semi-dynamic"!==this.options.type||!x.contains(this.element[0],i))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),x.ui.ddmanager&&x.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var n,i,o,r;if(t)return x.ui.ddmanager&&!this.options.dropBehaviour&&x.ui.ddmanager.drop(this,t),this.options.revert?(i=(n=this).placeholder.offset(),r={},(o=this.options.axis)&&"x"!==o||(r.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,x(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new x.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),x.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?x(this.domPosition.prev).after(this.currentItem):x(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},x(t).each(function(){var t=(x(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&n.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e.each(function(){n.push(x(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,o=i+this.helperProportions.height,r=t.left,s=r+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||a<i+u&&i+u<l,c="y"===this.options.axis||r<e+c&&e+c<s;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?u&&c:e+this.helperProportions.width/2>r&&s>n-this.helperProportions.width/2&&i+this.helperProportions.height/2>a&&l>o-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!!(e&&t)&&(e=this._getDragVerticalDirection(),t=this._getDragHorizontalDirection(),this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?"right"===i&&t||"left"===i&&!t:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){function e(){s.push(this)}var n,i,o,r,s=[],a=[],l=this._connectWith();if(l&&t)for(n=l.length-1;0<=n;n--)for(i=(o=x(l[n],this.document[0])).length-1;0<=i;i--)(r=x.data(o[i],this.widgetFullName))&&r!==this&&!r.options.disabled&&a.push([x.isFunction(r.options.items)?r.options.items.call(r.element):x(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(a.push([x.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):x(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=a.length-1;0<=n;n--)a[n][0].each(e);return x(s)},_removeCurrentsFromItems:function(){var n=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=x.grep(this.items,function(t){for(var e=0;n.length>e;e++)if(n[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,n,i,o,r,s,a,l,u=this.items,c=[[x.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):x(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(e=h.length-1;0<=e;e--)for(n=(i=x(h[e],this.document[0])).length-1;0<=n;n--)(o=x.data(i[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(c.push([x.isFunction(o.options.items)?o.options.items.call(o.element[0],t,{item:this.currentItem}):x(o.options.items,o.element),o]),this.containers.push(o));for(e=c.length-1;0<=e;e--)for(r=c[e][1],l=(s=c[e][n=0]).length;n<l;n++)(a=x(s[n])).data(this.widgetName+"-item",r),u.push({item:a,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var e,n,i,o;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),e=this.items.length-1;0<=e;e--)(n=this.items[e]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?x(this.options.toleranceElement,n.item):n.item,t||(n.width=i.outerWidth(),n.height=i.outerHeight()),o=i.offset(),n.left=o.left,n.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)o=this.containers[e].element.offset(),this.containers[e].containerCache.left=o.left,this.containers[e].containerCache.top=o.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(n){var i,o=(n=n||this).options;o.placeholder&&o.placeholder.constructor!==String||(i=o.placeholder,o.placeholder={element:function(){var t=n.currentItem[0].nodeName.toLowerCase(),e=x("<"+t+">",n.document[0]);return n._addClass(e,"ui-sortable-placeholder",i||n.currentItem[0].className)._removeClass(e,"ui-sortable-helper"),"tbody"===t?n._createTrPlaceholder(n.currentItem.find("tr").eq(0),x("<tr>",n.document[0]).appendTo(e)):"tr"===t?n._createTrPlaceholder(n.currentItem,e):"img"===t&&e.attr("src",n.currentItem.attr("src")),i||e.css("visibility","hidden"),e},update:function(t,e){i&&!o.forcePlaceholderSize||(e.height()||e.height(n.currentItem.innerHeight()-parseInt(n.currentItem.css("paddingTop")||0,10)-parseInt(n.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(n.currentItem.innerWidth()-parseInt(n.currentItem.css("paddingLeft")||0,10)-parseInt(n.currentItem.css("paddingRight")||0,10))}}),n.placeholder=x(o.placeholder.element.call(n.element,n.currentItem)),n.currentItem.after(n.placeholder),o.placeholder.update(n,n.placeholder)},_createTrPlaceholder:function(t,e){var n=this;t.children().each(function(){x("<td> </td>",n.document[0]).attr("colspan",x(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,n,i,o,r,s,a,l,u,c=null,h=null,d=this.containers.length-1;0<=d;d--)if(!x.contains(this.currentItem[0],this.containers[d].element[0]))if(this._intersectsWith(this.containers[d].containerCache)){if(c&&x.contains(this.containers[d].element[0],c.element[0]))continue;c=this.containers[d],h=d}else this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",t,this._uiHash(this)),this.containers[d].containerCache.over=0);if(c)if(1===this.containers.length)this.containers[h].containerCache.over||(this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1);else{for(n=1e4,i=null,o=(l=c.floating||this._isFloating(this.currentItem))?"left":"top",r=l?"width":"height",u=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)x.contains(this.containers[h].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(s=this.items[e].item.offset()[o],a=!1,t[u]-s>this.items[e][r]/2&&(a=!0),n>Math.abs(t[u]-s))&&(n=Math.abs(t[u]-s),i=this.items[e],this.direction=a?"up":"down");(i||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[h]?this.currentContainer.containerCache.over||(this.containers[h]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(i?this._rearrange(t,i,null,!0):this._rearrange(t,null,this.containers[h].element,!0),this._trigger("change",t,this._uiHash()),this.containers[h]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[h],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1))}},_createHelper:function(t){var e=this.options,t=x.isFunction(e.helper)?x(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||x("parent"!==e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=x.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&x.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),"document"!==n.containment&&"window"!==n.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(t=x(n.containment)[0],n=x(n.containment).offset(),e="hidden"!==x(t).css("overflow"),this.containment=[n.left+(parseInt(x(t).css("borderLeftWidth"),10)||0)+(parseInt(x(t).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(x(t).css("borderTopWidth"),10)||0)+(parseInt(x(t).css("paddingTop"),10)||0)-this.margins.top,n.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(x(t).css("borderLeftWidth"),10)||0)-(parseInt(x(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(x(t).css("borderTopWidth"),10)||0)-(parseInt(x(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(n[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():i?0:n.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():i?0:n.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,n=t.pageX,i=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(n=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(i=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(i=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((i-this.originalPageY)/e.grid[1])*e.grid[1],i=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((n-this.originalPageX)/e.grid[0])*e.grid[0],n=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!i)})},_clear:function(t,e){function n(e,n,i){return function(t){i._trigger(e,t,n._uiHash(n))}}this.reverting=!1;var i,o=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&o.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||o.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(o.push(function(t){this._trigger("remove",t,this._uiHash())}),o.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),o.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||o.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(o.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<o.length;i++)o[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===x.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||x([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),x.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var i=this._super(),o=this.element;return x.each(["min","max","step"],function(t,e){var n=o.attr(e);null!=n&&n.length&&(i[e]=n)}),i},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){function e(){this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n}))}var n=this.element[0]===x.ui.safeActiveElement(this.document[0])?this.previous:this.element.val();t.preventDefault(),e.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,e.call(this)}),!1!==this._start(t)&&this._repeat(null,x(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return x(t.currentTarget).hasClass("ui-state-active")?!1!==this._start(t)&&void this._repeat(null,x(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,n=x.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,e.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(t,e,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,n)},t),this._spin(e*this.options.step,n)},_spin:function(t,e){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:n})||(this._value(n),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?x.isFunction(e)?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=""+t,e=t.indexOf(".");return-1===e?0:t.length-e-1},_adjustValue:function(t){var e=this.options,n=null!==e.min?e.min:0,i=t-n;return t=n+Math.round(i/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&e.min>t?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var n;return"culture"===t||"numberFormat"===t?(n=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(n))):("max"!==t&&"min"!==t&&"step"!==t||"string"!=typeof e||(e=this._parse(e)),"icons"===t&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:e(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var n;""!==t&&null!==(n=this._parse(t))&&(e||(n=this._adjustValue(n)),t=this._format(n)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==x.uiBackCompat&&x.widget("ui.spinner",x.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),x.ui.spinner,x.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(I=/#.*$/,function(t){var e=t.href.replace(I,""),n=location.href.replace(I,"");try{e=decodeURIComponent(e)}catch(t){}try{n=decodeURIComponent(n)}catch(t){}return 1<t.hash.length&&e===n}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),x.isArray(t.disabled)&&(t.disabled=x.unique(t.disabled.concat(x.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(t.active):x(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var n=this.options.active,t=this.options.collapsible,i=location.hash.substring(1);return!1!==(n=null===n&&(i&&this.tabs.each(function(t,e){return x(e).attr("aria-controls")===i?(n=t,!1):void 0}),null===(n=null===n?this.tabs.index(this.tabs.filter(".ui-tabs-active")):n)||-1===n)?!!this.tabs.length&&0:n)&&-1===(n=this.tabs.index(this.tabs.eq(n)))&&(n=!t&&0),n=!t&&!1===n&&this.anchors.length?0:n},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):x()}},_tabKeydown:function(t){var e=x(x.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(e),i=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case x.ui.keyCode.RIGHT:case x.ui.keyCode.DOWN:n++;break;case x.ui.keyCode.UP:case x.ui.keyCode.LEFT:i=!1,n--;break;case x.ui.keyCode.END:n=this.anchors.length-1;break;case x.ui.keyCode.HOME:n=0;break;case x.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n);case x.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,i),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===x.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===x.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===x.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){for(var n=this.tabs.length-1;-1!==x.inArray(t=(t=n<t?0:t)<0?n:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?void this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=x.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!x.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=x()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=x()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,n=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){x(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){x(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return x("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=x(),this.anchors.each(function(t,e){var n,i,o,r=x(e).uniqueId().attr("id"),s=x(e).closest("li"),a=s.attr("aria-controls");l._isLocal(e)?(o=(n=e.hash).substring(1),i=l.element.find(l._sanitizeSelector(n))):(o=s.attr("aria-controls")||x({}).uniqueId()[0].id,(i=l.element.find(n="#"+o)).length||(i=l._createPanel(o)).insertAfter(l.panels[t-1]||l.tablist),i.attr("aria-live","polite")),i.length&&(l.panels=l.panels.add(i)),a&&s.data("ui-tabs-aria-controls",a),s.attr({"aria-controls":o,"aria-labelledby":r}),i.attr("aria-labelledby",r)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return x("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,n;for(x.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),n=0;e=this.tabs[n];n++)e=x(e),!0===t||-1!==x.inArray(n,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var n={};t&&x.each(t.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,e=this.element.parent();"fill"===t?(n=e.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=x(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(n-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=x(this).outerHeight(!0)}),this.panels.each(function(){x(this).height(Math.max(0,n-x(this).innerHeight()+x(this).height()))}).css("overflow","auto")):"auto"===t&&(n=0,this.panels.each(function(){n=Math.max(n,x(this).height("").height())}).height(n))},_eventHandler:function(t){var e=this.options,n=this.active,i=x(t.currentTarget).closest("li"),o=i[0]===n[0],r=o&&e.collapsible,s=r?x():this._getPanelForTab(i),a=n.length?this._getPanelForTab(n):x(),n={oldTab:n,oldPanel:a,newTab:r?x():i,newPanel:s};t.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||o&&!e.collapsible||!1===this._trigger("beforeActivate",t,n)||(e.active=!r&&this.tabs.index(i),this.active=o?x():i,this.xhr&&this.xhr.abort(),a.length||s.length||x.error("jQuery UI Tabs: Mismatching fragment identifier."),s.length&&this.load(this.tabs.index(i),t),this._toggle(t,n))},_toggle:function(t,e){function n(){o.running=!1,o._trigger("activate",t,e)}function i(){o._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),r.length&&o.options.show?o._show(r,o.options.show,n):(r.show(),n())}var o=this,r=e.newPanel,s=e.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){o._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),i()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),i()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),r.length&&s.length?e.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===x(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:x.noop}))},_findActive:function(t){return!1===t?x():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+x.ui.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){x.data(this,"ui-tabs-destroy")?x(this).remove():x(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=x(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(n){var t=this.options.disabled;!1!==t&&(t=void 0!==n&&(n=this._getIndex(n),x.isArray(t)?x.map(t,function(t){return t!==n?t:null}):x.map(this.tabs,function(t,e){return e!==n?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==x.inArray(t,e))return;e=x.isArray(e)?x.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,i){t=this._getIndex(t);function o(t,e){"abort"===e&&r.panels.stop(!1,!0),r._removeClass(n,"ui-tabs-loading"),s.removeAttr("aria-busy"),t===r.xhr&&delete r.xhr}var r=this,n=this.tabs.eq(t),t=n.find(".ui-tabs-anchor"),s=this._getPanelForTab(n),a={tab:n,panel:s};this._isLocal(t[0])||(this.xhr=x.ajax(this._ajaxSettings(t,i,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(n,"ui-tabs-loading"),s.attr("aria-busy","true"),this.xhr.done(function(t,e,n){setTimeout(function(){s.html(t),r._trigger("load",i,a),o(n,e)},1)}).fail(function(t,e){setTimeout(function(){o(t,e)},1)})))},_ajaxSettings:function(t,n,i){var o=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return o._trigger("beforeLoad",n,x.extend({jqXHR:t,ajaxSettings:e},i))}}},_getPanelForTab:function(t){t=x(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==x.uiBackCompat&&x.widget("ui.tabs",x.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),x.ui.tabs,x.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=x(this).attr("title")||"";return x("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var n=(t.attr("aria-describedby")||"").split(/\s+/);n.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",x.trim(n.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),n=(t.attr("aria-describedby")||"").split(/\s+/),e=x.inArray(e,n);-1!==e&&n.splice(e,1),t.removeData("ui-tooltip-id"),(n=x.trim(n.join(" ")))?t.attr("aria-describedby",n):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=x("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=x([])},_setOption:function(t,e){var n=this;this._super(t,e),"content"===t&&x.each(this.tooltips,function(t,e){n._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var i=this;x.each(this.tooltips,function(t,e){var n=x.Event("blur");n.target=n.currentTarget=e.element[0],i.close(n,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=x(this);return t.is("[title]")?t.data("ui-tooltip-title",t.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var t=x(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=x([])},open:function(t){var n=this,e=x(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=x(this);e.data("ui-tooltip-open")&&((t=x.Event("blur")).target=t.currentTarget=this,n.close(t,!0)),e.attr("title")&&(e.uniqueId(),n.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,n){var t=this.options.content,i=this,o=n?n.type:null;return"string"==typeof t||t.nodeType||t.jquery?this._open(n,e,t):void((t=t.call(e[0],function(t){i._delay(function(){e.data("ui-tooltip-open")&&(n&&(n.type=o),this._open(n,e,t))})}))&&this._open(n,e,t))},_open:function(t,e,n){function i(t){a.of=t,o.is(":hidden")||o.position(a)}var o,r,s,a=x.extend({},this.options.position);n&&((s=this._find(e))?s.tooltip.find(".ui-tooltip-content").html(n):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),s=this._tooltip(e),o=s.tooltip,this._addDescribedBy(e,o.attr("id")),o.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),(s=x("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),s.removeAttr("id").find("[id]").removeAttr("id"),s.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:i}),i(t)):o.position(x.extend({of:e},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){o.is(":visible")&&(i(a.of),clearInterval(r))},x.fx.interval)),this._trigger("open",t,{tooltip:o})))},_registerCloseHandlers:function(t,e){var n={keyup:function(t){t.keyCode===x.ui.keyCode.ESCAPE&&((t=x.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(e).tooltip)}),t&&"mouseover"!==t.type||(n.mouseleave="close"),t&&"focusin"!==t.type||(n.focusout="close"),this._on(!0,e,n)},close:function(t){var e,n=this,i=x(t?t.currentTarget:this.element),o=this._find(i);return o?(e=o.tooltip,void(o.closing||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),o.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){n._removeTooltip(x(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&x.each(this.parents,function(t,e){x(e.element).attr("title",e.title),delete n.parents[t]}),o.closing=!0,this._trigger("close",t,{tooltip:e}),o.hiding)||(o.closing=!1))):void i.removeData("ui-tooltip-open")},_tooltip:function(t){var e=x("<div>").attr("role","tooltip"),n=x("<div>").appendTo(e),i=e.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[i]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t=t.length?t:this.document[0].body},_destroy:function(){var i=this;x.each(this.tooltips,function(t,e){var n=x.Event("blur"),e=e.element;n.target=n.currentTarget=e[0],i.close(n,!0),x("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==x.uiBackCompat&&x.widget("ui.tooltip",x.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),x.ui.tooltip}),"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||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(i){"use strict";i.fn.emulateTransitionEnd=function(t){var e=!1,n=this;i(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||i(n).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=function(){var t,e=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(void 0!==e.style[t])return{end:n[t]};return!1}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(r){"use strict";function s(t){r(t).on("click",e,this.close)}var e='[data-dismiss="alert"]',t=(s.VERSION="3.3.7",s.TRANSITION_DURATION=150,s.prototype.close=function(t){function e(){o.detach().trigger("closed.bs.alert").remove()}var n=r(this),i=n.attr("data-target"),o=(i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),r("#"===i?[]:i));t&&t.preventDefault(),(o=o.length?o:n.closest(".alert")).trigger(t=r.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),r.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",e).emulateTransitionEnd(s.TRANSITION_DURATION):e())},r.fn.alert);r.fn.alert=function(n){return this.each(function(){var t=r(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new s(this)),"string"==typeof n&&e[n].call(t)})},r.fn.alert.Constructor=s,r.fn.alert.noConflict=function(){return r.fn.alert=t,this},r(document).on("click.bs.alert.data-api",e,s.prototype.close)}(jQuery),function(r){"use strict";function n(n){return this.each(function(){var t=r(this),e=t.data("bs.button");e||t.data("bs.button",e=new i(this,"object"==typeof n&&n)),"toggle"==n?e.toggle():n&&e.setState(n)})}function i(t,e){this.$element=r(t),this.options=r.extend({},i.DEFAULTS,e),this.isLoading=!1}i.VERSION="3.3.7",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(r.proxy(function(){n[i]((null==o[t]?this.options:o)[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},i.prototype.toggle=function(){var t,e=!0,n=this.$element.closest('[data-toggle="buttons"]');n.length?("radio"==(t=this.$element.find("input")).prop("type")?(t.prop("checked")&&(e=!1),n.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var t=r.fn.button;r.fn.button=n,r.fn.button.Constructor=i,r.fn.button.noConflict=function(){return r.fn.button=t,this},r(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=r(t.target).closest(".btn");n.call(e,"toggle"),r(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),(e.is("input,button")?e:e.find("input:visible,button:visible").first()).trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){r(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(u){"use strict";function o(o){return this.each(function(){var t=u(this),e=t.data("bs.carousel"),n=u.extend({},c.DEFAULTS,t.data(),"object"==typeof o&&o),i="string"==typeof o?o:n.slide;e||t.data("bs.carousel",e=new c(this,n)),"number"==typeof o?e.to(o):i?e[i]():n.interval&&e.pause().cycle()})}function c(t,e){this.$element=u(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",u.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",u.proxy(this.pause,this)).on("mouseleave.bs.carousel",u.proxy(this.cycle,this))}function t(t){var e,n=u(this),i=u(n.attr("data-target")||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));i.hasClass("carousel")&&(e=u.extend({},i.data(),n.data()),(n=n.attr("data-slide-to"))&&(e.interval=!1),o.call(i,e),n&&i.data("bs.carousel").to(n),t.preventDefault())}c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},c.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(u.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},c.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);return("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap?e:(e=(n+("prev"==t?-1:1))%this.$items.length,this.$items.eq(e))},c.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},c.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&u.support.transition&&(this.$element.trigger(u.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(t,e){var n,i,o,r=this.$element.find(".item.active"),s=e||this.getItemForDirection(t,r),e=this.interval,a="next"==t?"left":"right",l=this;return s.hasClass("active")?this.sliding=!1:(n=s[0],i=u.Event("slide.bs.carousel",{relatedTarget:n,direction:a}),this.$element.trigger(i),i.isDefaultPrevented()?void 0:(this.sliding=!0,e&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),i=u(this.$indicators.children()[this.getItemIndex(s)]))&&i.addClass("active"),o=u.Event("slid.bs.carousel",{relatedTarget:n,direction:a}),u.support.transition&&this.$element.hasClass("slide")?(s.addClass(t),s[0].offsetWidth,r.addClass(a),s.addClass(a),r.one("bsTransitionEnd",function(){s.removeClass([t,a].join(" ")).addClass("active"),r.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(o)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(r.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(o)),e&&this.cycle(),this))};var e=u.fn.carousel;u.fn.carousel=o,u.fn.carousel.Constructor=c,u.fn.carousel.noConflict=function(){return u.fn.carousel=e,this};u(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),u(window).on("load",function(){u('[data-ride="carousel"]').each(function(){var t=u(this);o.call(t,t.data())})})}(jQuery),function(o){"use strict";function n(t){t=t.attr("data-target")||(t=t.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return o(t)}function r(i){return this.each(function(){var t=o(this),e=t.data("bs.collapse"),n=o.extend({},s.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new s(this,n)),"string"==typeof i&&e[i]()})}function s(t,e){this.$element=o(t),this.options=o.extend({},s.DEFAULTS,e),this.$trigger=o('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}s.VERSION="3.3.7",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(i=t.data("bs.collapse"))&&i.transitioning)){var e=o.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(r.call(t,"hide"),i||t.data("bs.collapse",null));var n=this.dimension(),e=(this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")});if(!o.support.transition)return e.call(this);var i=o.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",o.proxy(e,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[n](this.$element[0][i])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t,e=o.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented())return e=this.dimension(),this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,t=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},o.support.transition?void this.$element[e](0).one("bsTransitionEnd",o.proxy(t,this)).emulateTransitionEnd(s.TRANSITION_DURATION):t.call(this)}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return o(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(o.proxy(function(t,e){e=o(e);this.addAriaAndCollapsedClass(n(e),e)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=o.fn.collapse;o.fn.collapse=r,o.fn.collapse.Constructor=s,o.fn.collapse.noConflict=function(){return o.fn.collapse=t,this},o(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=o(this),t=(e.attr("data-target")||t.preventDefault(),n(e)),e=t.data("bs.collapse")?"toggle":e.data();r.call(t,e)})}(jQuery),function(o){"use strict";function r(t){var e=t.attr("data-target"),e=(e=e?e:(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&o(e);return e&&e.length?e:t.parent()}function s(i){i&&3===i.which||(o(".dropdown-backdrop").remove(),o(a).each(function(){var t=o(this),e=r(t),n={relatedTarget:this};!e.hasClass("open")||i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&o.contains(e[0],i.target)||(e.trigger(i=o.Event("hide.bs.dropdown",n)),i.isDefaultPrevented())||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(o.Event("hidden.bs.dropdown",n)))}))}function i(t){o(t).on("click.bs.dropdown",this.toggle)}var a='[data-toggle="dropdown"]',t=(i.VERSION="3.3.7",i.prototype.toggle=function(t){var e=o(this);if(!e.is(".disabled, :disabled")){var n=r(e),i=n.hasClass("open");if(s(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&o(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(o(this)).on("click",s);i={relatedTarget:this};if(n.trigger(t=o.Event("show.bs.dropdown",i)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(o.Event("shown.bs.dropdown",i))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=o(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=r(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(a).trigger("focus"),e.trigger("click");i=n.find(".dropdown-menu li:not(.disabled):visible a");i.length&&(e=i.index(t.target),38==t.which&&0<e&&e--,40==t.which&&e<i.length-1&&e++,i.eq(e=~e?e:0).trigger("focus"))}}},o.fn.dropdown);o.fn.dropdown=function(n){return this.each(function(){var t=o(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},o.fn.dropdown.Constructor=i,o.fn.dropdown.noConflict=function(){return o.fn.dropdown=t,this},o(document).on("click.bs.dropdown.data-api",s).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",a,i.prototype.toggle).on("keydown.bs.dropdown.data-api",a,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(r){"use strict";function o(i,o){return this.each(function(){var t=r(this),e=t.data("bs.modal"),n=r.extend({},s.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.modal",e=new s(this,n)),"string"==typeof i?e[i](o):n.show&&e.show(o)})}function s(t,e){this.options=e,this.$body=r(document.body),this.$element=r(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,r.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}s.VERSION="3.3.7",s.TRANSITION_DURATION=300,s.BACKDROP_TRANSITION_DURATION=150,s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},s.prototype.show=function(n){var i=this,t=r.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',r.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){r(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=r.support.transition&&i.$element.hasClass("fade"),e=(i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),t&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus(),r.Event("shown.bs.modal",{relatedTarget:n}));t?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(s.TRANSITION_DURATION):i.$element.trigger("focus").trigger(e)}))},s.prototype.hide=function(t){t&&t.preventDefault(),t=r.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),r(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),r.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",r.proxy(this.hideModal,this)).emulateTransitionEnd(s.TRANSITION_DURATION):this.hideModal())},s.prototype.enforceFocus=function(){r(document).off("focusin.bs.modal").on("focusin.bs.modal",r.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",r.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},s.prototype.resize=function(){this.isShown?r(window).on("resize.bs.modal",r.proxy(this.handleUpdate,this)):r(window).off("resize.bs.modal")},s.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(t){var e,n=this,i=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=r.support.transition&&i,this.$backdrop=r(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",r.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(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()},r.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.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},s.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},s.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},s.prototype.measureScrollbar=function(){var t=document.createElement("div"),e=(t.className="modal-scrollbar-measure",this.$body.append(t),t.offsetWidth-t.clientWidth);return this.$body[0].removeChild(t),e};var t=r.fn.modal;r.fn.modal=o,r.fn.modal.Constructor=s,r.fn.modal.noConflict=function(){return r.fn.modal=t,this},r(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=r(this),n=e.attr("href"),i=r(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),n=i.data("bs.modal")?"toggle":r.extend({remote:!/#/.test(n)&&n},i.data(),e.data());e.is("a")&&t.preventDefault(),i.one("show.bs.modal",function(t){t.isDefaultPrevented()||i.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),o.call(i,n,this)})}(jQuery),function(l){"use strict";function u(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}u.VERSION="3.3.7",u.TRANSITION_DURATION=150,u.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},u.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=l(e),this.options=this.getOptions(n),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 i=this.options.trigger.split(" "),o=i.length;o--;){var r,s=i[o];"click"==s?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=s&&(r="hover"==s?"mouseleave":"focusout",this.$element.on(("hover"==s?"mouseenter":"focusin")+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,l.proxy(this.leave,this)))}this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},u.prototype.getDefaults=function(){return u.DEFAULTS},u.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},u.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&l.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},u.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())},u.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},u.prototype.leave=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);if(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())return 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()},u.prototype.show=function(){var e,t,n,i,o,r,s,a=l.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(a),o=l.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!a.isDefaultPrevented())&&o&&(a=(e=this).tip(),o=this.getUID(this.type),this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade"),o="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,(s=(t=/\s?auto?\s?/i).test(o))&&(o=o.replace(t,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),n=a[0].offsetWidth,i=a[0].offsetHeight,s&&(s=o,r=this.getPosition(this.$viewport),o="bottom"==o&&t.bottom+i>r.bottom?"top":"top"==o&&t.top-i<r.top?"bottom":"right"==o&&t.right+n>r.width?"left":"left"==o&&t.left-n<r.left?"right":o,a.removeClass(s).addClass(o)),r=this.getCalculatedOffset(o,t,n,i),this.applyPlacement(r,o),s=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},l.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",s).emulateTransitionEnd(u.TRANSITION_DURATION):s())},u.prototype.applyPlacement=function(t,e){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10),r=(isNaN(r)&&(r=0),isNaN(s)&&(s=0),t.top+=r,t.left+=s,l.offset.setOffset(n[0],l.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in"),n[0].offsetWidth),s=n[0].offsetHeight,a=("top"==e&&s!=o&&(t.top=t.top+o-s),this.getViewportAdjustedDelta(e,t,r,s)),e=(a.left?t.left+=a.left:t.top+=a.top,/top|bottom/.test(e)),i=e?2*a.left-i+r:2*a.top-o+s,r=e?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(i,n[0][r],e)},u.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},u.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},u.prototype.hide=function(t){function e(){"in"!=n.hoverState&&i.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),t&&t()}var n=this,i=l(this.$tip),o=l.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),l.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",e).emulateTransitionEnd(u.TRANSITION_DURATION):e(),this.hoverState=null,this},u.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},u.prototype.hasContent=function(){return this.getTitle()},u.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,i=e.getBoundingClientRect(),e=(null==i.width&&(i=l.extend({},i,{width:i.right-i.left,height:i.bottom-i.top})),window.SVGElement&&e instanceof window.SVGElement),e=n?{top:0,left:0}:e?null:t.offset(),t={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},n=n?{width:l(window).width(),height:l(window).height()}:null;return l.extend({},i,t,n,e)},u.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},u.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o,r,s={top:0,left:0};return this.$viewport&&(o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport),/right|left/.test(t)?(t=e.top-o-r.scroll,i=e.top+o-r.scroll+i,t<r.top?s.top=r.top-t:i>r.top+r.height&&(s.top=r.top+r.height-i)):(t=e.left-o,i=e.left+o+n,t<r.left?s.left=r.left-t:i>r.right&&(s.left=r.left+r.width-i))),s},u.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)},u.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},u.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!")},u.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},u.prototype.enable=function(){this.enabled=!0},u.prototype.disable=function(){this.enabled=!1},u.prototype.toggleEnabled=function(){this.enabled=!this.enabled},u.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)},u.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,t.$element=null})};var t=l.fn.tooltip;l.fn.tooltip=function(i){return this.each(function(){var t=l(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new u(this,n)),"string"==typeof i&&e[i]())})},l.fn.tooltip.Constructor=u,l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,this}}(jQuery),function(o){"use strict";function r(t,e){this.init("popover",t,e)}if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.3.7",r.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((r.prototype=o.extend({},o.fn.tooltip.Constructor.prototype)).constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.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)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=o.fn.popover;o.fn.popover=function(i){return this.each(function(){var t=o(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new r(this,n)),"string"==typeof i&&e[i]())})},o.fn.popover.Constructor=r,o.fn.popover.noConflict=function(){return o.fn.popover=t,this}}(jQuery),function(o){"use strict";function i(t,e){this.$body=o(document.body),this.$scrollElement=o(o(t).is(document.body)?window:t),this.options=o.extend({},i.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(n){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new i(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}i.VERSION="3.3.7",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(n="position",i=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[n]().top+i,t]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)s!=r[t]&&e>=o[t]&&(void 0===o[t+1]||e<o[t+1])&&this.activate(r[t])},i.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',t=o(t).parents("li").addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},i.prototype.clear=function(){o(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=o.fn.scrollspy;o.fn.scrollspy=e,o.fn.scrollspy.Constructor=i,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(s){"use strict";function e(n){return this.each(function(){var t=s(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof n&&e[n]()})}function a(t){this.element=s(t)}function t(t){t.preventDefault(),e.call(s(this),"show")}a.VERSION="3.3.7",a.TRANSITION_DURATION=150,a.prototype.show=function(){var t,e,n,i=this.element,o=i.closest("ul:not(.dropdown-menu)"),r=i.data("target");r||(r=(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),i.parent("li").hasClass("active")||(t=o.find(".active:last a"),e=s.Event("hide.bs.tab",{relatedTarget:i[0]}),n=s.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),i.trigger(n),n.isDefaultPrevented())||e.isDefaultPrevented()||(n=s(r),this.activate(i.closest("li"),o),this.activate(n,n.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:i[0]}),i.trigger({type:"shown.bs.tab",relatedTarget:t[0]})}))},a.prototype.activate=function(t,e,n){function i(){o.removeClass("active").find("> .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),r?(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),n&&n()}var o=e.find("> .active"),r=n&&s.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);o.length&&r?o.one("bsTransitionEnd",i).emulateTransitionEnd(a.TRANSITION_DURATION):i(),o.removeClass("in")};var n=s.fn.tab;s.fn.tab=e,s.fn.tab.Constructor=a,s.fn.tab.noConflict=function(){return s.fn.tab=n,this};s(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)}(jQuery),function(s){"use strict";function n(n){return this.each(function(){var t=s(this),e=t.data("bs.affix");e||t.data("bs.affix",e=new a(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}function a(t,e){this.options=s.extend({},a.DEFAULTS,e),this.$target=s(this.options.target).on("scroll.bs.affix.data-api",s.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",s.proxy(this.checkPositionWithEventLoop,this)),this.$element=s(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}a.VERSION="3.3.7",a.RESET="affix affix-top affix-bottom",a.DEFAULTS={offset:0,target:window},a.prototype.getState=function(t,e,n,i){var o,r=this.$target.scrollTop(),s=this.$element.offset(),a=this.$target.height();return null!=n&&"top"==this.affixed?r<n&&"top":"bottom"==this.affixed?null!=n?!(r+this.unpin<=s.top)&&"bottom":!(r+a<=t-i)&&"bottom":(s=(o=null==this.affixed)?r:s.top,null!=n&&r<=n?"top":null!=i&&t-i<=s+(o?a:e)&&"bottom")},a.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(a.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},a.prototype.checkPositionWithEventLoop=function(){setTimeout(s.proxy(this.checkPosition,this),1)},a.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,n=e.top,i=e.bottom,o=Math.max(s(document).height(),s(document.body).height()),e=("object"!=typeof e&&(i=n=e),"function"==typeof n&&(n=e.top(this.$element)),"function"==typeof i&&(i=e.bottom(this.$element)),this.getState(o,t,n,i));if(this.affixed!=e){null!=this.unpin&&this.$element.css("top","");var n="affix"+(e?"-"+e:""),r=s.Event(n+".bs.affix");if(this.$element.trigger(r),r.isDefaultPrevented())return;this.affixed=e,this.unpin="bottom"==e?this.getPinnedOffset():null,this.$element.removeClass(a.RESET).addClass(n).trigger(n.replace("affix","affixed")+".bs.affix")}"bottom"==e&&this.$element.offset({top:o-t-i})}};var t=s.fn.affix;s.fn.affix=n,s.fn.affix.Constructor=a,s.fn.affix.noConflict=function(){return s.fn.affix=t,this},s(window).on("load",function(){s('[data-spy="affix"]').each(function(){var t=s(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),function(l,lt,ut){"use strict";function k(o){return function(){var t=arguments[0];for(e="["+(o?o+":":"")+t+"] http://errors.angularjs.org/1.5.0/"+(o?o+"/":"")+t,t=1;t<arguments.length;t++){var e=e+(1==t?"?":"&")+"p"+(t-1)+"=",n=encodeURIComponent,i=arguments[t];e+=n(i="function"==typeof i?i.toString().replace(/ \{[\s\S]*$/,""):void 0===i?"undefined":"string"!=typeof i?JSON.stringify(i):i)}return Error(e)}}function S(t){var e;return null!=t&&!D(t)&&(yt(t)||ft(t)||bt&&t instanceof bt||y(e="length"in Object(t)&&t.length)&&(0<=e&&(e-1 in t||t instanceof Array)||"function"==typeof t.item))}function ct(t,e,n){if(t)if(mt(t))for(o in t)"prototype"==o||"length"==o||"name"==o||t.hasOwnProperty&&!t.hasOwnProperty(o)||e.call(n,t[o],o,t);else if(yt(t)||S(t))for(var i="object"!=typeof t,o=0,r=t.length;o<r;o++)(i||o in t)&&e.call(n,t[o],o,t);else if(t.forEach&&t.forEach!==ct)t.forEach(e,n,t);else if(C(t))for(o in t)e.call(n,t[o],o,t);else if("function"==typeof t.hasOwnProperty)for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t);else for(o in t)Vn.call(t,o)&&e.call(n,t[o],o,t);return t}function c(t,e,n){for(var i=Object.keys(t).sort(),o=0;o<i.length;o++)e.call(n,t[i[o]],i[o])}function m(n){return function(t,e){n(e,t)}}function i(){return++Jn}function b(t,e,n){for(var i=t.$$hashKey,o=0,r=e.length;o<r;++o){var s=e[o];if(pt(s)||mt(s))for(var a=Object.keys(s),l=0,u=a.length;l<u;l++){var c=a[l],h=s[c];n&&pt(h)?v(h)?t[c]=new Date(h.valueOf()):T(h)?t[c]=new RegExp(h):h.nodeName?t[c]=h.cloneNode(!0):E(h)?t[c]=h.clone():(pt(t[c])||(t[c]=yt(h)?[]:{}),b(t[c],[h],!0)):t[c]=h}}return i?t.$$hashKey=i:delete t.$$hashKey,t}function ht(t){return b(t,Yn.call(arguments,1),!1)}function n(t){return b(t,Yn.call(arguments,1),!0)}function g(t){return parseInt(t,10)}function xt(t,e){return ht(Object.create(t),e)}function M(){}function P(t){return t}function _(t){return function(){return t}}function $(t){return mt(t.toString)&&t.toString!==h}function dt(t){return void 0===t}function A(t){return void 0!==t}function pt(t){return null!==t&&"object"==typeof t}function C(t){return null!==t&&"object"==typeof t&&!Xn(t)}function ft(t){return"string"==typeof t}function y(t){return"number"==typeof t}function v(t){return"[object Date]"===h.call(t)}function mt(t){return"function"==typeof t}function T(t){return"[object RegExp]"===h.call(t)}function D(t){return t&&t.window===t}function _t(t){return t&&t.$evalAsync&&t.$watch}function N(t){return"boolean"==typeof t}function E(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function gt(t){return I(t.nodeName||t[0]&&t[0].nodeName)}function H(t,e){e=t.indexOf(e);return 0<=e&&t.splice(e,1),e}function L(t,n){function i(t,e){var n=e.$$hashKey;if(yt(t))for(var i=0,o=t.length;i<o;i++)e.push(r(t[i]));else if(C(t))for(i in t)e[i]=r(t[i]);else if(t&&"function"==typeof t.hasOwnProperty)for(i in t)t.hasOwnProperty(i)&&(e[i]=r(t[i]));else for(i in t)Vn.call(t,i)&&(e[i]=r(t[i]));return n?e.$$hashKey=n:delete e.$$hashKey,e}function r(t){if(!pt(t))return t;if(-1!==(e=o.indexOf(t)))return s[e];if(D(t)||_t(t))throw Qn("cpws");var e=!1,n=function(t){switch(h.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(r(t.buffer));case"[object ArrayBuffer]":var e;return t.slice?t.slice(0):(e=new ArrayBuffer(t.byteLength),new Uint8Array(e).set(new Uint8Array(t)),e);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":return(e=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0])).lastIndex=t.lastIndex,e}if(mt(t.cloneNode))return t.cloneNode(!0)}(t);return n===ut&&(n=yt(t)?[]:Object.create(Xn(t)),e=!0),o.push(t),s.push(n),e?i(t,n):n}var e,o=[],s=[];if(n){if((e=n)&&y(e.length)&&ti.test(h.call(e))||"[object ArrayBuffer]"===h.call(n))throw Qn("cpta");if(t===n)throw Qn("cpi");return yt(n)?n.length=0:ct(n,function(t,e){"$$hashKey"!==e&&delete n[e]}),o.push(t),s.push(n),i(t,n)}return r(t)}function w(t,e){if(yt(t)){e=e||[];for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}else if(pt(t))for(n in e=e||{},t)"$"===n.charAt(0)&&"$"===n.charAt(1)||(e[n]=t[n]);return e||t}function O(t,e){if(t===e)return!0;if(null!==t&&null!==e){if(t!=t&&e!=e)return!0;var n,i=typeof t;if(i==typeof e&&"object"==i){if(!yt(t)){if(v(t))return!!v(e)&&O(t.getTime(),e.getTime());if(T(t))return!!T(e)&&t.toString()==e.toString();if(_t(t)||_t(e)||D(t)||D(e)||yt(e)||v(e)||T(e))return!1;for(n in i=vt(),t)if("$"!==n.charAt(0)&&!mt(t[n])){if(!O(t[n],e[n]))return!1;i[n]=!0}for(n in e)if(!(n in i)&&"$"!==n.charAt(0)&&A(e[n])&&!mt(e[n]))return!1;return!0}if(!yt(e))return!1;if((i=t.length)==e.length){for(n=0;n<i;n++)if(!O(t[n],e[n]))return!1;return!0}}}return!1}function j(t,e,n){return t.concat(Yn.call(e,n))}function R(t,e){var n=2<arguments.length?Yn.call(arguments,2):[];return!mt(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,j(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function o(t,e){var n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=ut:D(e)?n="$WINDOW":e&<===e?n="$DOCUMENT":_t(e)&&(n="$SCOPE"),n}function F(t,e){return dt(t)?ut:(y(e)||(e=e?2:null),JSON.stringify(t,o,e))}function z(t){return ft(t)?JSON.parse(t):t}function W(t,e){t=t.replace(oi,"");t=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(t)?e:t}function U(t,e,n){n=n?-1:1;var i=t.getTimezoneOffset();return n*=(e=W(e,i))-i,(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}function kt(t){t=bt(t).clone();try{t.empty()}catch(t){}var e=bt("<div>").append(t).html();try{return t[0].nodeType===li?I(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+I(e)})}catch(t){return I(e)}}function q(t){try{return decodeURIComponent(t)}catch(t){}}function V(t){var o={};return ct((t||"").split("&"),function(t){var e,n,i;t&&(n=t=t.replace(/\+/g,"%20"),-1!==(e=t.indexOf("="))&&(n=t.substring(0,e),i=t.substring(e+1)),A(n=q(n)))&&(i=!A(i)||q(i),Vn.call(o,n)?yt(o[n])?o[n].push(i):o[n]=[o[n],i]:o[n]=i)}),o}function B(t){var n=[];return ct(t,function(t,e){yt(t)?ct(t,function(t){n.push(r(e,!0)+(!0===t?"":"="+r(t,!0)))}):n.push(r(e,!0)+(!0===t?"":"="+r(t,!0)))}),n.length?n.join("&"):""}function Y(t){return r(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function r(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function G(n,t){var i,o,e={};ct(ri,function(t){t+="app",!i&&n.hasAttribute&&n.hasAttribute(t)&&(o=(i=n).getAttribute(t))}),ct(ri,function(t){var e;t+="app",!i&&(e=n.querySelector("["+t.replace(":","\\:")+"]"))&&(o=(i=e).getAttribute(t))}),i&&(e.strictDi=null!==function(t,e){for(var n,i=ri.length,o=0;o<i;++o)if(n=ri[o]+e,ft(n=t.getAttribute(n)))return n;return null}(i,"strict-di"),t(i,o?[o]:[],e))}function K(e,n,i){i=ht({strictDi:!1},i=pt(i)?i:{});function o(){var t;if((e=bt(e)).injector())throw t=e[0]===lt?"document":kt(e),Qn("btstrpd",t.replace(/</,"<").replace(/>/,">"));return(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng"),(t=Yt(n,i.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,i){t.$apply(function(){e.data("$injector",i),n(e)(t)})}]),t}var t=/^NG_ENABLE_DEBUG_INFO!/,r=/^NG_DEFER_BOOTSTRAP!/;if(l&&t.test(l.name)&&(i.debugInfoEnabled=!0,l.name=l.name.replace(t,"")),l&&!r.test(l.name))return o();l.name=l.name.replace(r,""),x.resumeBootstrap=function(t){return ct(t,function(t){n.push(t)}),o()},mt(x.resumeDeferredBootstrap)&&x.resumeDeferredBootstrap()}function X(){l.name="NG_ENABLE_DEBUG_INFO!"+l.name,l.location.reload()}function Q(t){if(t=x.element(t).injector())return t.get("$$testability");throw Qn("test")}function Ct(t,n){return n=n||"_",t.replace(si,function(t,e){return(e?n:"")+t.toLowerCase()})}function Tt(t,e,n){if(!t)throw Qn("areq",e||"?",n||"required")}function J(t,e,n){Tt(mt(t=n&&yt(t)?t[t.length-1]:t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t))}function Z(t,e){if("hasOwnProperty"===t)throw Qn("badname",e)}function tt(t,e,n){if(!e)return t;for(var i,o=t,r=(e=e.split(".")).length,s=0;s<r;s++)i=e[s],t=t&&(o=t)[i];return!n&&mt(t)?R(o,t):t}function et(t){for(var e,n=t[0],i=t[t.length-1],o=1;n!==i&&(n=n.nextSibling);o++)!e&&t[o]===n||(e=e||bt(Yn.call(t,0,o))).push(n);return e||t}function vt(){return Object.create(null)}function nt(t){return t.replace(di,function(t,e,n,i){return i?n.toUpperCase():n}).replace(pi,"Moz$1")}function it(t){return 1===(t=t.nodeType)||!t||9===t}function ot(t,e){var n,i,o=e.createDocumentFragment(),r=[];if(vi.test(t)){for(n=n||o.appendChild(e.createElement("div")),i=(bi.exec(t)||["",""])[1].toLowerCase(),i=s[i]||s._default,n.innerHTML=i[1]+t.replace(yi,"<$1></$2>")+i[2],i=i[0];i--;)n=n.lastChild;r=j(r,n.childNodes),(n=o.firstChild).textContent=""}else r.push(e.createTextNode(t));return o.textContent="",o.innerHTML="",ct(r,function(t){o.appendChild(t)}),o}function Dt(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function a(t){if(t instanceof a)return t;var e,n;if(ft(t)&&(t=$t(t),n=!0),!(this instanceof a)){if(n&&"<"!=t.charAt(0))throw mi("nosel");return new a(t)}n&&(n=lt,t=(e=gi.exec(t))?[n.createElement(e[1])]:(e=ot(t,n))?e.childNodes:[]),Pt(this,t)}function St(t){return t.cloneNode(!0)}function rt(t,e){if(e||at(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),i=0,o=n.length;i<o;i++)at(n[i])}function st(n,t,i,e){if(A(e))throw mi("offargs");var o=(e=Et(n))&&e.events,r=e&&e.handle;if(r)if(t){var s=function(t){var e=o[t];A(i)&&H(e||[],i),A(i)&&e&&0<e.length||(n.removeEventListener(t,r,!1),delete o[t])};ct(t.split(" "),function(t){s(t),fi[t]&&s(fi[t])})}else for(t in o)"$destroy"!==t&&n.removeEventListener(t,r,!1),delete o[t]}function at(t,e){var n=t.ng339,i=n&&ci[n];i&&(e?delete i.data[e]:(i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),st(t)),delete ci[n],t.ng339=ut))}function Et(t,e){var n=(n=t.ng339)&&ci[n];return e&&!n&&(t.ng339=n=++hi,n=ci[n]={events:{},data:{},handle:ut}),n}function Mt(t,e,n){if(it(t)){var i=A(n),o=!i&&e&&!pt(e),r=!e;if(t=(t=Et(t,!o))&&t.data,!i)return r?t:o?t&&t[e]:void ht(t,e);t[e]=n}}function At(t,e){return!!t.getAttribute&&-1<(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")}function Ot(e,t){t&&e.setAttribute&&ct(t.split(" "),function(t){e.setAttribute("class",$t((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+$t(t)+" "," ")))})}function It(t,e){var n;e&&t.setAttribute&&(n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),ct(e.split(" "),function(t){t=$t(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",$t(n)))}function Pt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var i=0;i<n;i++)t[t.length++]=e[i]}else t[t.length++]=e}}function Nt(t,e){return Ht(t,"$"+(e||"ngController")+"Controller")}function Ht(t,e,n){for(9==t.nodeType&&(t=t.documentElement),e=yt(e)?e:[e];t;){for(var i=0,o=e.length;i<o;i++)if(A(n=bt.data(t,e[i])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function Lt(t){for(rt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function jt(t,e){e||rt(t);e=t.parentNode;e&&e.removeChild(t)}function Rt(t,e){e=xi[e.toLowerCase()];return e&&_i[gt(t)]&&e}function Ft(a,l){function t(t,e){t.isDefaultPrevented=function(){return t.defaultPrevented};var n=l[e||t.type],i=n?n.length:0;if(i){dt(t.immediatePropagationStopped)&&(o=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){t.immediatePropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),o&&o.call(t)}),t.isImmediatePropagationStopped=function(){return!0===t.immediatePropagationStopped};var o,r=n.specialHandlerWrapper||zt;1<i&&(n=w(n));for(var s=0;s<i;s++)t.isImmediatePropagationStopped()||r(a,t,n[s])}}return t.elem=a,t}function zt(t,e,n){n.call(t,e)}function Wt(t,e,n){var i=e.relatedTarget;i&&(i===t||$i.call(t,i))||n.call(t,e)}function Ut(){this.$get=function(){return ht(a,{hasClass:function(t,e){return At(t=t.attr?t[0]:t,e)},addClass:function(t,e){return It(t=t.attr?t[0]:t,e)},removeClass:function(t,e){return Ot(t=t.attr?t[0]:t,e)}})}}function qt(t,e){var n=t&&t.$$hashKey;return n?"function"==typeof n?t.$$hashKey():n:"function"==(n=typeof t)||"object"==n&&null!==t?t.$$hashKey=n+":"+(e||i)():n+":"+t}function Vt(t,e){var n;e&&(n=0,this.nextUid=function(){return++n}),ct(t,this.put,this)}function Bt(t){return(t=t.toString().replace(Ki,"")).match(Vi)||t.match(Bi)}function Yt(t,l){function e(n){return function(t,e){if(!pt(t))return n(t,e);ct(t,m(n))}}function r(t,e){if(Z(t,"service"),(e=mt(e)||yt(e)?h.instantiate(e):e).$get)return c[t+"Provider"]=e;throw Xi("pget",t)}function n(t,e,n){return r(t,{$get:!1!==n?(i=t,o=e,function(){var t=p.invoke(o,this);if(dt(t))throw Xi("undef",i);return t}):e});var i,o}function i(n,i){function a(e,t){if(n.hasOwnProperty(e)){if(n[e]===s)throw Xi("cdep",e+" <- "+u.join(" <- "));return n[e]}try{return u.unshift(e),n[e]=s,n[e]=i(e,t)}catch(t){throw n[e]===s&&delete n[e],t}finally{u.shift()}}function o(t,e,n){for(var i=[],o=0,r=(t=Yt.$$annotate(t,l,n)).length;o<r;o++){var s=t[o];if("string"!=typeof s)throw Xi("itkn",s);i.push(e&&e.hasOwnProperty(s)?e[s]:a(s,n))}return i}return{invoke:function(t,e,n,i){return"string"==typeof n&&(i=n,n=null),n=o(t,n,i),yt(t)&&(t=t[t.length-1]),(i=!(Zn<=11)&&"function"==typeof t&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(t)))?(n.unshift(null),new(Function.prototype.bind.apply(t,n))):t.apply(e,n)},instantiate:function(t,e,n){var i=yt(t)?t[t.length-1]:t;return(t=o(t,e,n)).unshift(null),new(Function.prototype.bind.apply(i,t))},get:a,annotate:Yt.$$annotate,has:function(t){return c.hasOwnProperty(t+"Provider")||n.hasOwnProperty(t)}}}l=!0===l;var s={},u=[],a=new Vt([],!0),c={$provide:{provider:e(r),factory:e(n),service:e(function(t,e){return n(t,["$injector",function(t){return t.instantiate(e)}])}),value:e(function(t,e){return n(t,_(e),!1)}),constant:e(function(t,e){Z(t,"constant"),c[t]=e,o[t]=e}),decorator:function(t,e){var n=h.get(t+"Provider"),i=n.$get;n.$get=function(){var t=p.invoke(i,n);return p.invoke(e,null,{$delegate:t})}}}},h=c.$injector=i(c,function(t,e){throw x.isString(e)&&u.push(e),Xi("unpr",u.join(" <- "))}),o={},d=i(o,function(t,e){e=h.get(t+"Provider",e);return p.invoke(e.$get,e,ut,t)}),p=d,t=(c.$injectorProvider={$get:_(d)},function n(t){Tt(dt(t)||yt(t),"modulesToLoad","not an array");var i,o=[];return ct(t,function(e){function t(t){for(var e=0,n=t.length;e<n;e++){var i=t[e],o=h.get(i[0]);o[i[1]].apply(o,i[2])}}if(!a.get(e)){a.put(e,!0);try{ft(e)?(i=Un(e),o=o.concat(n(i.requires)).concat(i._runBlocks),t(i._invokeQueue),t(i._configBlocks)):mt(e)||yt(e)?o.push(h.invoke(e)):J(e,"module")}catch(t){throw yt(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1==t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Xi("modulerr",e,t.stack||t.message||t)}}}),o}(t));return(p=d.get("$injector")).strictDi=l,ct(t,function(t){t&&p.invoke(t)}),p}function Gt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,o,i){function r(t){var e;t?(t.scrollIntoView(),mt(e=s.yOffset)?e=e():E(e)?(e=e[0],e="fixed"!==n.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom):y(e)||(e=0),e&&(t=t.getBoundingClientRect().top,n.scrollBy(0,t-e))):n.scrollTo(0,0)}function s(t){var e,n,i;(t=ft(t)?t:o.hash())?(e=a.getElementById(t))||(n=a.getElementsByName(t),i=null,Array.prototype.some.call(n,function(t){if("a"===gt(t))return i=t,!0}),e=i)?r(e):"top"===t&&r(null):r(null)}var a=n.document;return t&&i.$watch(function(){return o.hash()},function(t,e){var n;t===e&&""===t||(e=function(){i.$evalAsync(s)},"complete"===(n=n||l).document.readyState?n.setTimeout(e):bt(n).on("load",e))}),s}]}function Kt(t,e){return t||e?t?e?(t=yt(t)?t.join(" "):t)+" "+(e=yt(e)?e.join(" "):e):t:e:""}function Xt(t){return pt(t)?t:{}}function Qt(r,t,e,s){function i(t){try{t.apply(null,Yn.call(arguments,1))}finally{if(0===--f)for(;m.length;)try{m.pop()()}catch(t){e.error(t)}}}function n(){$=null,a(),o()}function a(){t:{try{g=c.state;break t}catch(t){}g=void 0}O(g=dt(g)?null:g,_)&&(g=_),_=g}function o(){b===l.url()&&v===g||(b=l.url(),v=g,ct(w,function(t){t(l.url(),g)}))}var l=this,u=r.location,c=r.history,h=r.setTimeout,d=r.clearTimeout,p={},f=(l.isMock=!1,0),m=[];l.$$completeOutstandingRequest=i,l.$$incOutstandingRequestCount=function(){f++},l.notifyWhenNoOutstandingRequests=function(t){0===f?t():m.push(t)};var g,v,b=u.href,y=t.find("base"),$=null,w=(a(),v=g,l.url=function(t,e,n){var i,o;return dt(n)&&(n=null),u!==r.location&&(u=r.location),c!==r.history&&(c=r.history),t?(i=v===n,(b!==t||s.history&&!i)&&(o=b&&Ce(b)===Ce(t),b=t,v=n,!s.history||o&&i?(o&&!$||($=t),e?u.replace(t):o?(e=u,n=-1===(n=t.indexOf("#"))?"":t.substr(n),e.hash=n):u.href=t,u.href!==t&&($=t)):(c[e?"replaceState":"pushState"](n,"",t),a(),v=g)),l):$||u.href.replace(/%27/g,"'")},l.state=function(){return g},[]),x=!1,_=null;l.onUrlChange=function(t){return x||(s.history&&bt(r).on("popstate",n),bt(r).on("hashchange",n),x=!0),w.push(t),t},l.$$applicationDestroyed=function(){bt(r).off("hashchange popstate",n)},l.$$checkUrlChange=o,l.baseHref=function(){var t=y.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},l.defer=function(t,e){var n;return f++,n=h(function(){delete p[n],i(t)},e||0),p[n]=!0,n},l.defer.cancel=function(t){return!!p[t]&&(delete p[t],d(t),i(M),!0)}}function Jt(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,i){return new Qt(t,i,e,n)}]}function Zt(){this.$get=function(){function t(t,e){function n(t){t!=u&&(c?c==t&&(c=t.n):c=t,i(t.n,t.p),i(t,u),(u=t).n=null)}function i(t,e){t!=e&&(t&&(t.p=e),e)&&(e.n=t)}if(t in h)throw k("$cacheFactory")("iid",t);var o=0,r=ht({},e,{id:t}),s=vt(),a=e&&e.capacity||Number.MAX_VALUE,l=vt(),u=null,c=null;return h[t]={put:function(t,e){if(!dt(e))return a<Number.MAX_VALUE&&n(l[t]||(l[t]={key:t})),t in s||o++,s[t]=e,a<o&&this.remove(c.key),e},get:function(t){if(a<Number.MAX_VALUE){var e=l[t];if(!e)return;n(e)}return s[t]},remove:function(t){if(a<Number.MAX_VALUE){var e=l[t];if(!e)return;e==u&&(u=e.p),e==c&&(c=e.n),i(e.n,e.p),delete l[t]}t in s&&(delete s[t],o--)},removeAll:function(){s=vt(),o=0,l=vt(),u=c=null},destroy:function(){l=r=s=null,delete h[t]},info:function(){return ht({},r,{size:o})}}}var h={};return t.info=function(){var n={};return ct(h,function(t,e){n[e]=t.info()}),n},t.get=function(t){return h[t]},t}}function te(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function ee(o,e){function f(t,i,o){var r=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,s={};return ct(t,function(t,e){var n=t.match(r);if(!n)throw wt("iscp",i,e,t,o?"controller bindings definition":"isolate scope definition");s[e]={mode:n[1][0],collection:"*"===n[2],optional:"?"===n[3],attrName:n[4]||e}}),s}var C={},T=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,D=/(([\w\-]+)(?:\:([^;]+))?;?)/,S=function(t){var e,n={};for(t=t.split(","),e=0;e<t.length;e++)n[t[e]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),at=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,E=/^(on[a-z]+|formaction)$/,s=(this.directive=function t(p,e){if(Z(p,"directive"),ft(p)){var n=p,i=n.charAt(0);if(!i||i!==I(i))throw wt("baddir",n);if(n!==n.trim())throw wt("baddir",n);Tt(e,"directiveFactory"),C.hasOwnProperty(p)||(C[p]=[],o.factory(p+"Directive",["$injector","$exceptionHandler",function(c,h){var d=[];return ct(C[p],function(t,e){try{var n=c.invoke(t),i=(mt(n)?n={compile:_(n)}:!n.compile&&n.link&&(n.compile=_(n.link)),n.priority=n.priority||0,n.index=e,n.name=n.name||p,n.require=n.require||n.controller&&n.name,n.restrict=n.restrict||"EA",n),o=n,r=n.name,s={isolateScope:null,bindToController:null};if(pt(o.scope)&&(!0===o.bindToController?(s.bindToController=f(o.scope,r,!0),s.isolateScope={}):s.isolateScope=f(o.scope,r,!1)),pt(o.bindToController)&&(s.bindToController=f(o.bindToController,r,!0)),pt(s.bindToController)){var a=o.controller,l=o.controllerAs;if(!a)throw wt("noctrl",r);if(!re(a,l))throw wt("noident",r)}var u=i.$$bindings=s;pt(u.isolateScope)&&(n.$$isolateBindings=u.isolateScope),n.$$moduleName=t.$$moduleName,d.push(n)}catch(t){h(t)}}),d}])),C[p].push(e)}else ct(p,m(t));return this},this.component=function(t,n){function i(i){function t(n){return mt(n)||yt(n)?function(t,e){return i.invoke(n,this,{$element:t,$attrs:e})}:n}var e=n.template||n.templateUrl?n.template:"";return{controller:o,controllerAs:re(n.controller)||n.controllerAs||"$ctrl",template:t(e),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require}}var o=n.controller||function(){};return ct(n,function(t,e){"$"===e.charAt(0)&&(i[e]=t)}),i.$inject=["$injector"],this.directive(t,i)},this.aHrefSanitizationWhitelist=function(t){return A(t)?(e.aHrefSanitizationWhitelist(t),this):e.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return A(t)?(e.imgSrcSanitizationWhitelist(t),this):e.imgSrcSanitizationWhitelist()},!0);this.debugInfoEnabled=function(t){return A(t)?(s=t,this):s},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(b,y,R,F,p,z,r,$,i,d){function W(t,e){try{t.addClass(e)}catch(t){}}function U(s,t,e,n,a){for(var i=/\S+/,o=0,r=(s=s instanceof bt?s:bt(s)).length;o<r;o++){var l=s[o];l.nodeType===li&&l.nodeValue.match(i)&&Dt(l,s[o]=lt.createElement("span"))}var u=q(s,t,s,e,n,a),c=(U.$$addScopeClass(s),null);return function(t,e,n){Tt(t,"scope"),a&&a.needsNewScope&&(t=t.$parent.$new());var i=(n=n||{}).parentBoundTranscludeFn,o=n.transcludeControllers;if(n=n.futureParentElement,i&&i.$$boundTransclude&&(i=i.$$boundTransclude),n="html"!==(c=c||((n=n&&n[0])&&"foreignobject"!==gt(n)&&h.call(n).match(/SVG/)?"svg":"html"))?bt(tt(c,bt("<div>").append(s).html())):e?wi.clone.call(s):s,o)for(var r in o)n.data("$"+r+"Controller",o[r].instance);return U.$$addScopeInfo(n,t),e&&e(n,t),u&&u(t,n,n,i),n}}function q(t,c,e,n,i,o){for(var r,s,a,h,d=[],l=0;l<t.length;l++)r=new rt,(o=(s=B(t[l],[],r,0===l?n:ut,i)).length?X(s,t[l],r,c,e,null,[],[],o):null)&&o.scope&&U.$$addScopeClass(r.$$element),r=o&&o.terminal||!(s=t[l].childNodes)||!s.length?null:q(s,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:c),(o||r)&&(d.push(l,o,r),a=!0,h=h||o),o=null;return a?function(t,e,n,i){var o,r,s,a,l,u;if(h)for(u=Array(e.length),a=0;a<d.length;a+=3)u[o=d[a]]=e[o];else u=e;for(a=0,l=d.length;a<l;)r=u[d[a++]],e=d[a++],o=d[a++],e?(e.scope?(s=t.$new(),U.$$addScopeInfo(bt(r),s)):s=t,e(o,s,r,n,e.transcludeOnThisElement?V(t,e.transclude,i):!e.templateOnThisElement&&i?i:!i&&c?V(t,c):null)):o&&o(t,r.childNodes,ut,i)}:null}function V(r,s,a){function t(t,e,n,i,o){return t||((t=r.$new(!1,o)).$$transcluded=!0),s(t,e,{parentBoundTranscludeFn:a,transcludeControllers:n,futureParentElement:i})}var e,n=t.$$slots=vt();for(e in s.$$slots)n[e]=s.$$slots[e]?V(r,s.$$slots[e],a):null;return t}function B(t,e,n,i,o){var r,s,a,l=n.$attr;switch(t.nodeType){case 1:w(e,ne(gt(t)),"E",i,o);for(var u,c=t.attributes,h=0,d=c&&c.length;h<d;h++){var p,f=!1,m=!1,g=(p=c[h]).name,v=$t(p.value);p=ne(g),(u=_.test(p))&&(g=g.replace(Zi,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()})),(p=p.match(k))&&function(t){if(C.hasOwnProperty(t))for(var e=b.get(t+"Directive"),n=0,i=e.length;n<i;n++)if((t=e[n]).multiElement)return 1;return}(p[1])&&(m=(f=g).substr(0,g.length-5)+"end",g=g.substr(0,g.length-6)),l[p=ne(g.toLowerCase())]=g,!u&&n.hasOwnProperty(p)||(n[p]=v,Rt(t,p)&&(n[p]=!0)),!function(t,e,o,r,s){var a=function(t,e){return"srcdoc"==e?$.HTML:(t=gt(t),"xlinkHref"==e||"form"==t&&"action"==e||"img"!=t&&("src"==e||"ngSrc"==e)?$.RESOURCE_URL:void 0)}(t,r),l=(s=S[r]||s,y(o,!0,a,s));if(l){if("multiple"===r&&"select"===gt(t))throw wt("selmulti",kt(t));e.push({priority:100,compile:function(){return{pre:function(t,e,n){if(e=n.$$observers||(n.$$observers=vt()),E.test(r))throw wt("nodomevents");var i=n[r];i!==o&&(l=i&&y(i,!0,a,s),o=i),l&&(n[r]=l(t),(e[r]||(e[r]=[])).$$inter=!0,(n.$$observers&&n.$$observers[r].$$scope||t).$watch(l,function(t,e){"class"===r&&t!=e?n.$updateClass(t,e):n.$set(r,t)}))}}}})}}(t,e,v,p,u),w(e,p,"A",i,o,f,m)}if(ft(t=pt(t=t.className)?t.animVal:t)&&""!==t)for(;g=D.exec(t);)w(e,p=ne(g[2]),"C",i,o)&&(n[p]=$t(g[3])),t=t.substr(g.index+g[0].length);break;case li:if(11===Zn)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===li;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);r=e,s=t.nodeValue,(a=y(s,!0))&&r.push({priority:0,compile:function(t){var i=!!(t=t.parent()).length;return i&&U.$$addBindingClass(t),function(t,e){var n=e.parent();i||U.$$addBindingClass(n),U.$$addBindingInfo(n,a.expressions),t.$watch(a,function(t){e[0].nodeValue=t})}}});break;case 8:try{(g=T.exec(t.nodeValue))&&w(e,p=ne(g[1]),"M",i,o)&&(n[p]=$t(g[2]))}catch(t){}}return e.sort(x),e}function Y(t,e,n){var i=[],o=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw wt("uterdir",e,n)}while(1==t.nodeType&&(t.hasAttribute(e)&&o++,t.hasAttribute(n))&&o--,i.push(t),t=t.nextSibling,0<o)}else i.push(t);return bt(i)}function G(r,s,a){return function(t,e,n,i,o){return e=Y(e[0],s,a),r(t,e,n,i,o)}}function K(t,e,n,i,o,r){var s;return t?U(e,n,i,o,r):function(){return s||(s=U(e,n,i,o,r),e=n=r=null),s.apply(this,arguments)}}function X(t,v,b,e,n,i,y,$,o){function H(t,e,n,i){t&&((t=n?G(t,n,i):t).require=S.require,t.directiveName=s,k!==S&&!S.$$isolateScope||(t=nt(t,{isolateScope:!0})),y.push(t)),e&&((e=n?G(e,n,i):e).require=S.require,e.directiveName=s,k!==S&&!S.$$isolateScope||(e=nt(e,{isolateScope:!0})),$.push(e))}function w(n,t,i,o){if(ft(t)){var e,r,s=t.match(at),a=(t=t.substring(s[0].length),s[1]||s[3]),s="?"===s[2];if("^^"===a?i=i.parent():r=(r=o&&o[t])&&r.instance,r||(e="$"+t+"Controller",r=a?i.inheritedData(e):i.data(e)),!r&&!s)throw wt("ctreq",t,n)}else if(yt(t))for(r=[],a=0,s=t.length;a<s;a++)r[a]=w(n,t[a],i,o);else pt(t)&&(r={},ct(t,function(t,e){r[e]=w(n,t,i,o)}));return r||null}function r(t,e,n,i,s){var o,r,a,l,u,c,h;for(r in v===n?h=(i=b).$$element:(h=bt(n),i=new rt(h,b)),a=e,k?l=e.$new(!0):x&&(a=e.$parent),s&&((c=function(t,e,n,i){var o;if(_t(t)||(i=n,n=e,e=t,t=ut),T&&(o=u),n=n||(T?h.parent():h),!i)return s(t,e,o,n,g);var r=s.$$slots[i];if(r)return r(t,e,o,n,g);if(dt(r))throw wt("noslot",i,kt(h))}).$$boundTransclude=s,c.isSlotFilled=function(t){return!!s.$$slots[t]}),_&&(u=function(t,e,n,i,o,r){var s,a=vt();for(s in i){var l=i[s],u={$scope:l===k||l.$$isolateScope?o:r,$element:t,$attrs:e,$transclude:n},c=l.controller;"@"==c&&(c=e[l.name]),u=z(c,u,!0,l.controllerAs),a[l.name]=u,T||t.data("$"+l.name+"Controller",u.instance)}return a}(h,i,c,_,l,e)),k&&(U.$$addScopeInfo(h,l,!0,!(C&&(C===k||C===k.$$originalDirective))),U.$$addScopeClass(h,!0),l.$$isolateBindings=k.$$isolateBindings,d=ot(e,i,l,l.$$isolateBindings,k))&&l.$on("$destroy",d),u){var d=_[r],p=u[r],f=d.$$bindings.bindToController,m=(p.identifier&&f&&(o=ot(a,i,p.instance,f,d)),p());m!==p.instance&&(p.instance=m,h.data("$"+d.name+"Controller",m),o&&o(),o=ot(a,i,p.instance,f,d))}for(ct(_,function(t,e){var n=t.require;t.bindToController&&!yt(n)&&pt(n)&&ht(u[e].instance,w(e,n,h,u))}),ct(u,function(t){mt(t.instance.$onInit)&&t.instance.$onInit()}),o=0,r=y.length;o<r;o++)it(a=y[o],a.isolateScope?l:e,h,i,a.require&&w(a.directiveName,a.require,h,u),c);var g=e;for(k&&(k.template||null===k.templateUrl)&&(g=l),t&&t(g,n.childNodes,ut,s),o=$.length-1;0<=o;o--)it(a=$[o],a.isolateScope?l:e,h,i,a.require&&w(a.directiveName,a.require,h,u),c)}o=o||{};for(var s,a,l=-Number.MAX_VALUE,x=o.newScopeDirective,_=o.controllerDirectives,k=o.newIsolateScopeDirective,C=o.templateDirective,u=o.nonTlbTranscludeDirective,c=!1,h=!1,T=o.hasElementTranscludeDirective,d=b.$$element=bt(v),p=e,f=!1,m=!1,g=0,D=t.length;g<D;g++){var S,E=(S=t[g]).$$start,M=S.$$end;if(E&&(d=Y(v,E,M)),I=ut,l>S.priority)break;if((N=S.scope)&&(S.templateUrl||(pt(N)?(Z("new/isolated scope",k||x,S,d),k=S):Z("new/isolated scope",k,S,d)),x=x||S),s=S.name,!f&&(S.replace&&(S.templateUrl||S.template)||S.transclude&&!S.$$tlb)){for(N=g+1;f=t[N++];)if(f.transclude&&!f.$$tlb||f.replace&&(f.templateUrl||f.template)){m=!0;break}f=!0}if(!S.templateUrl&&S.controller&&(N=S.controller,_=_||vt(),Z("'"+s+"' controller",_[s],S,d),_[s]=S),N=S.transclude)if(c=!0,S.$$tlb||(Z("transclusion",u,S,d),u=S),"element"==N)T=!0,l=S.priority,I=d,d=b.$$element=bt(lt.createComment(" "+s+": "+b[s]+" ")),v=d[0],et(n,Yn.call(I,0),v),p=K(m,I,e,l,i&&i.name,{nonTlbTranscludeDirective:u});else{var A=vt();if(I=bt(St(v)).contents(),pt(N)){var O,I=[],L=vt(),P=vt();for(O in ct(N,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,L[t]=e,A[e]=null,P[e]=n}),ct(d.contents(),function(t){var e=L[ne(gt(t))];(e?(P[e]=!0,A[e]=A[e]||[],A[e]):I).push(t)}),ct(P,function(t,e){if(!t)throw wt("reqslot",e)}),A)A[O]&&(A[O]=K(m,A[O],e))}d.empty(),(p=K(m,I,e,ut,ut,{needsNewScope:S.$$isolateScope||S.$$newScope})).$$slots=A}if(S.template)if(h=!0,Z("template",C,S,d),N=mt((C=S).template)?S.template(d,b):S.template,N=st(N),S.replace){if(i=S,I=vi.test(N)?oe(tt(S.templateNamespace,$t(N))):[],v=I[0],1!=I.length||1!==v.nodeType)throw wt("tplrt",s,"");et(n,d,v);var N=B(v,[],D={$attr:{}}),j=t.splice(g+1,t.length-(g+1));(k||x)&&Q(N,k,x),t=t.concat(N).concat(j),J(b,D),D=t.length}else d.html(N);if(S.templateUrl)h=!0,Z("template",C,S,d),(C=S).replace&&(i=S),r=function(a,l,u,c,h,d,p,f){var m,g,v=[],b=l[0],y=a.shift(),$=xt(y,{templateUrl:null,transclude:null,replace:null,$$originalDirective:y}),w=mt(y.templateUrl)?y.templateUrl(l,u):y.templateUrl,x=y.templateNamespace;return l.empty(),F(w).then(function(t){var n;if(t=st(t),y.replace){if(t=vi.test(t)?oe(tt(x,$t(t))):[],n=t[0],1!=t.length||1!==n.nodeType)throw wt("tplrt",y.name,w);t={$attr:{}},et(c,l,n);var e=B(n,[],t);pt(y.scope)&&Q(e,!0),a=e.concat(a),J(u,t)}else n=b,l.html(t);for(a.unshift($),m=X(a,n,u,h,l,y,d,p,f),ct(c,function(t,e){t==n&&(c[e]=l[0])}),g=q(l[0].childNodes,h);v.length;){t=v.shift();var i,o=v.shift(),r=v.shift(),s=v.shift(),e=l[0];t.$$destroyed||(o!==b&&(i=o.className,f.hasElementTranscludeDirective&&y.replace||(e=St(n)),et(r,bt(o),e),W(bt(e),i)),o=m.transcludeOnThisElement?V(t,m.transclude,s):s,m(g,t,e,c,o))}v=null}),function(t,e,n,i,o){t=o,e.$$destroyed||(v?v.push(e,n,i,t):(m.transcludeOnThisElement&&(t=V(e,m.transclude,o)),m(g,e,n,i,t)))}}(t.splice(g,t.length-g),d,b,n,c&&p,y,$,{controllerDirectives:_,newScopeDirective:x!==S&&x,newIsolateScopeDirective:k,templateDirective:C,nonTlbTranscludeDirective:u}),D=t.length;else if(S.compile)try{mt(a=S.compile(d,b,p))?H(null,a,E,M):a&&H(a.pre,a.post,E,M)}catch(t){R(t,kt(d))}S.terminal&&(r.terminal=!0,l=Math.max(l,S.priority))}return r.scope=x&&!0===x.scope,r.transcludeOnThisElement=c,r.templateOnThisElement=h,r.transclude=p,o.hasElementTranscludeDirective=T,r}function Q(t,e,n){for(var i=0,o=t.length;i<o;i++)t[i]=xt(t[i],{$$isolateScope:e,$$newScope:n})}function w(t,e,n,i,o,r,s){if(e!==o){if(o=null,C.hasOwnProperty(e))for(var a,l=0,u=(e=b.get(e+"Directive")).length;l<u;l++)try{a=e[l],(dt(i)||i>a.priority)&&-1!=a.restrict.indexOf(n)&&(r&&(a=xt(a,{$$start:r,$$end:s})),t.push(a),o=a)}catch(t){R(t)}return o}}function J(n,i){var o=i.$attr,r=n.$attr,s=n.$$element;ct(n,function(t,e){"$"!=e.charAt(0)&&(i[e]&&i[e]!==t&&(t+=("style"===e?";":" ")+i[e]),n.$set(e,t,!0,o[e]))}),ct(i,function(t,e){"class"==e?(W(s,t),n.class=(n.class?n.class+" ":"")+t):"style"==e?(s.attr("style",s.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):"$"==e.charAt(0)||n.hasOwnProperty(e)||(n[e]=t,r[e]=o[e])})}function x(t,e){var n=e.priority-t.priority;return 0!=n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Z(t,e,n,i){function o(t){return t?" (module: "+t+")":""}if(e)throw wt("multidir",e.name,o(e.$$moduleName),n.name,o(n.$$moduleName),t,kt(i))}function tt(t,e){switch(t=I(t||"html")){case"svg":case"math":var n=lt.createElement("div");return n.innerHTML="<"+t+">"+e+"</"+t+">",n.childNodes[0].childNodes;default:return e}}function et(t,e,n){var i,o=e[0],r=e.length,s=o.parentNode;if(t)for(i=0,a=t.length;i<a;i++)if(t[i]==o){t[i++]=n;for(var a=i+r-1,l=t.length;i<l;i++,a++)a<l?t[i]=t[a]:delete t[i];t.length-=r-1,t.context===o&&(t.context=n);break}for(s&&s.replaceChild(n,o),t=lt.createDocumentFragment(),i=0;i<r;i++)t.appendChild(e[i]);for(bt.hasData(o)&&(bt.data(n,bt.data(o)),bt(o).off("$destroy")),bt.cleanData(t.querySelectorAll("*")),i=1;i<r;i++)delete e[i];e[0]=n,e.length=1}function nt(t,e){return ht(function(){return t.apply(null,arguments)},t,e)}function it(t,e,n,i,o,r){try{t(e,n,i,o,r)}catch(t){R(t,kt(n))}}function ot(l,u,c,t,h){var d=[];return ct(t,function(t,e){var n,i,o,r,s=t.attrName,a=t.optional;switch(t.mode){case"@":a||Vn.call(u,s)||(c[e]=u[s]=void 0),u.$observe(s,function(t){ft(t)&&(c[e]=t)}),u.$$observers[s].$$scope=l,ft(n=u[s])?c[e]=y(n)(l):N(n)&&(c[e]=n);break;case"=":if(!Vn.call(u,s)){if(a)break;u[s]=void 0}a&&!u[s]||(i=p(u[s]),r=i.literal?O:function(t,e){return t===e||t!=t&&e!=e},o=i.assign||function(){throw n=c[e]=i(l),wt("nonassign",u[s],s,h.name)},n=c[e]=i(l),(a=function(t){return r(t,c[e])||(r(t,n)?o(l,t=c[e]):c[e]=t),n=t}).$stateful=!0,a=t.collection?l.$watchCollection(u[s],a):l.$watch(p(u[s],a),null,i.literal),d.push(a));break;case"<":if(!Vn.call(u,s)){if(a)break;u[s]=void 0}a&&!u[s]||(i=p(u[s]),c[e]=i(l),a=l.$watch(i,function(t){c[e]=t},i.literal),d.push(a));break;case"&":(i=u.hasOwnProperty(s)?p(u[s]):M)===M&&a||(c[e]=function(t){return i(l,t)})}}),d.length&&function(){for(var t=0,e=d.length;t<e;++t)d[t]()}}var f=/^\w/,m=lt.createElement("div"),rt=function(t,e){if(e)for(var n,i=Object.keys(e),o=0,r=i.length;o<r;o++)this[n=i[o]]=e[n];else this.$attr={};this.$$element=t},e=(rt.prototype={$normalize:ne,$addClass:function(t){t&&0<t.length&&i.addClass(this.$$element,t)},$removeClass:function(t){t&&0<t.length&&i.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=ie(t,e);n&&n.length&&i.addClass(this.$$element,n),(n=ie(e,t))&&n.length&&i.removeClass(this.$$element,n)},$set:function(t,e,n,i){var o,r,s=Rt(this.$$element[0],t),a=ki[t],l=t;if(s?(this.$$element.prop(t,e),i=s):a&&(this[a]=e,l=a),this[t]=e,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=Ct(t,"-")),"a"===(s=gt(this.$$element))&&("href"===t||"xlinkHref"===t)||"img"===s&&"src"===t)this[t]=e=d(e,"src"===t);else if("img"===s&&"srcset"===t){for(var s="",a=$t(e),u=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,u=/\s/.test(a)?u:/(,)/,a=a.split(u),u=Math.floor(a.length/2),c=0;c<u;c++)var h=2*c,s=(s=s+d($t(a[h]),!0))+(" "+$t(a[1+h]));a=$t(a[2*c]).split(/\s/),s+=d($t(a[0]),!0),2===a.length&&(s+=" "+$t(a[1])),this[t]=e=s}!1!==n&&(null===e||dt(e)?this.$$element.removeAttr(i):f.test(i)?this.$$element.attr(i,e):(n=this.$$element[0],i=i,o=e,m.innerHTML="<span "+i+">",r=(i=m.firstChild.attributes)[0],i.removeNamedItem(r.name),r.value=o,n.attributes.setNamedItem(r))),(t=this.$$observers)&&ct(t[l],function(t){try{t(e)}catch(t){R(t)}})},$observe:function(t,e){var n=this,i=n.$$observers||(n.$$observers=vt()),o=i[t]||(i[t]=[]);return o.push(e),r.$evalAsync(function(){o.$$inter||!n.hasOwnProperty(t)||dt(n[t])||e(n[t])}),function(){H(o,e)}}},y.startSymbol()),n=y.endSymbol(),st="{{"==e&&"}}"==n?P:function(t){return t.replace(/\{\{/g,e).replace(/}}/g,n)},_=/^ngAttr[A-Z]/,k=/^(.+)Start$/;return U.$$addBindingInfo=s?function(t,e){var n=t.data("$binding")||[];yt(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:M,U.$$addBindingClass=s?function(t){W(t,"ng-binding")}:M,U.$$addScopeInfo=s?function(t,e,n,i){t.data(n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:M,U.$$addScopeClass=s?function(t,e){W(t,e?"ng-isolate-scope":"ng-scope")}:M,U}]}function ne(t){return nt(t.replace(Zi,""))}function ie(t,e){var n="",i=t.split(/\s+/),o=e.split(/\s+/),r=0;t:for(;r<i.length;r++){for(var s=i[r],a=0;a<o.length;a++)if(s==o[a])continue t;n+=(0<n.length?" ":"")+s}return n}function oe(t){var e=(t=bt(t)).length;if(!(e<=1))for(;e--;)8===t[e].nodeType&&Gn.call(t,e,1);return t}function re(t,e){if(e&&ft(e))return e;if(ft(t)){e=eo.exec(t);if(e)return e[3]}}function se(){var c={},h=!1;this.register=function(t,e){Z(t,"controller"),pt(t)?ht(c,t):c[t]=e},this.allowGlobals=function(){h=!0},this.$get=["$injector","$window",function(a,l){function u(t,e,n,i){if(!t||!pt(t.$scope))throw k("$controller")("noscp",i,e);t.$scope[e]=n}return function(e,n,t,i){var o,r,s;if(t=!0===t,i&&ft(i)&&(s=i),ft(e)){if(!(i=e.match(eo)))throw to("ctrlfmt",e);r=i[1],s=s||i[3],J(e=c.hasOwnProperty(r)?c[r]:tt(n.$scope,r,!0)||(h?tt(l,r,!0):ut),r,!0)}return t?(t=(yt(e)?e[e.length-1]:e).prototype,o=Object.create(t||null),s&&u(n,s,o,r||e.name),ht(function(){var t=a.invoke(e,o,n,r);return t!==o&&(pt(t)||mt(t))&&(o=t,s)&&u(n,s,o,r||e.name),o},{instance:o,identifier:s})):(o=a.instantiate(e,n,r),s&&u(n,s,o,r||e.name),o)}}]}function ae(){this.$get=["$window",function(t){return bt(t.document)}]}function le(){this.$get=["$log",function(n){return function(t,e){n.error.apply(n,arguments)}}]}function ue(t){return pt(t)?v(t)?t.toISOString():F(t):t}function ce(){this.$get=function(){return function(t){var i;return t?(i=[],c(t,function(t,n){null===t||dt(t)||(yt(t)?ct(t,function(t,e){i.push(r(n)+"="+r(ue(t)))}):i.push(r(n)+"="+r(ue(t))))}),i.join("&")):""}}}function he(){this.$get=function(){return function(t){var e;return t?(e=[],function n(t,i,o){null===t||dt(t)||(yt(t)?ct(t,function(t,e){n(t,i+"["+(pt(t)?e:"")+"]")}):pt(t)&&!v(t)?c(t,function(t,e){n(t,i+(o?"":"[")+e+(o?"":"]"))}):e.push(r(i)+"="+r(ue(t))))}(t,"",!0),e.join("&")):""}}}function de(t,e){var n;return t=ft(t)&&(n=t.replace(so,"").trim())&&(e=(e=(e=e("Content-Type"))&&0===e.indexOf(no))||(e=n.match(oo))&&ro[e[0]].test(n))?z(n):t}function pe(t){var n,i=vt();return ft(t)?ct(t.split("\n"),function(t){n=t.indexOf(":");var e=I($t(t.substr(0,n)));t=$t(t.substr(n+1)),e&&(i[e]=i[e]?i[e]+", "+t:t)}):pt(t)&&ct(t,function(t,e){e=I(e),t=$t(t);e&&(i[e]=i[e]?i[e]+", "+t:t)}),i}function fe(e){var n;return function(t){return n=n||pe(e),t?t=void 0===(t=n[I(t)])?null:t:n}}function me(e,n,i,t){return mt(t)?t(e,n,i):(ct(t,function(t){e=t(e,n,i)}),e)}function ge(){var y=this.defaults={transformResponse:[de],transformRequest:[function(t){return pt(t)&&"[object File]"!==h.call(t)&&"[object Blob]"!==h.call(t)&&"[object FormData]"!==h.call(t)?F(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:w(io),put:w(io),patch:w(io)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},$=!1,a=(this.useApplyAsync=function(t){return A(t)?($=!!t,this):$},!0),e=(this.useLegacyPromiseExtensions=function(t){return A(t)?(a=!!t,this):a},this.interceptors=[]);this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(p,f,t,m,g,r){function v(t){function d(t){var e=ht({},t);return e.data=me(t.data,t.headers,t.status,n.transformResponse),200<=(t=t.status)&&t<300?e:g.reject(e)}if(!pt(t))throw k("$http")("badreq",t);if(!ft(t.url))throw k("$http")("badreq",t.url);var n=ht({method:"get",transformRequest:y.transformRequest,transformResponse:y.transformResponse,paramSerializer:y.paramSerializer},t),e=(n.headers=function(t){var e,n,i,o,r,s,a,l=y.headers,u=ht({},t.headers);t:for(e in l=ht({},l.common,l[I(t.method)])){for(i in n=I(e),u)if(I(i)===n)continue t;u[e]=l[e]}return o=u,r=w(t),a={},ct(o,function(t,e){mt(t)?null!=(s=t(r))&&(a[e]=s):a[e]=t}),a}(t),n.method=Bn(n.method),n.paramSerializer=ft(n.paramSerializer)?r.get(n.paramSerializer):n.paramSerializer,[function(t){var o,r,e,s,n,a,i=t.headers,l=me(t.data,fe(i),ut,t.transformRequest);return dt(l)&&ct(i,function(t,e){"content-type"===I(e)&&delete i[e]}),dt(t.withCredentials)&&!dt(y.withCredentials)&&(t.withCredentials=y.withCredentials),o=t,t=l,s=g.defer(),l=s.promise,n=o.headers,a=function(t,e){return 0<e.length&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}(o.url,o.paramSerializer(o.params)),v.pendingRequests.push(o),l.then(h,h),(r=!o.cache&&!y.cache||!1===o.cache||"GET"!==o.method&&"JSONP"!==o.method?r:pt(o.cache)?o.cache:pt(y.cache)?y.cache:b)&&(A(e=r.get(a))?e&&mt(e.then)?e.then(c,c):yt(e)?u(e[1],e[0],w(e[2]),e[3]):u(e,200,{},"OK"):r.put(a,l)),dt(e)&&((e=hn(o.url)?f()[o.xsrfCookieName||y.xsrfCookieName]:ut)&&(n[o.xsrfHeaderName||y.xsrfHeaderName]=e),p(o.method,a,t,function(t,e,n,i){function o(){u(e,t,n,i)}r&&(200<=t&&t<300?r.put(a,[t,e,pe(n),i]):r.remove(a)),$?m.$applyAsync(o):(o(),m.$$phase||m.$apply())},n,o.timeout,o.withCredentials,o.responseType)),l.then(d,d);function u(t,e,n,i){(200<=(e=-1<=e?e:0)&&e<300?s.resolve:s.reject)({data:t,status:e,headers:fe(n),config:o,statusText:i})}function c(t){u(t.data,t.status,w(t.headers()),t.statusText)}function h(){var t=v.pendingRequests.indexOf(o);-1!==t&&v.pendingRequests.splice(t,1)}},ut]),i=g.when(n);for(ct(s,function(t){(t.request||t.requestError)&&e.unshift(t.request,t.requestError),(t.response||t.responseError)&&e.push(t.response,t.responseError)});e.length;){t=e.shift();var o=e.shift(),i=i.then(t,o)}return a?(i.success=function(e){return J(e,"fn"),i.then(function(t){e(t.data,t.status,t.headers,n)}),i},i.error=function(e){return J(e,"fn"),i.then(null,function(t){e(t.data,t.status,t.headers,n)}),i}):(i.success=lo("success"),i.error=lo("error")),i}var b=t("$http"),s=(y.paramSerializer=ft(y.paramSerializer)?r.get(y.paramSerializer):y.paramSerializer,[]);return ct(e,function(t){s.unshift(ft(t)?r.get(t):r.invoke(t))}),v.pendingRequests=[],function(){ct(arguments,function(n){v[n]=function(t,e){return v(ht({},e||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){ct(arguments,function(i){v[i]=function(t,e,n){return v(ht({},n||{},{method:i,url:t,data:e}))}})}("post","put","patch"),v.defaults=y,v}]}function ve(){this.$get=function(){return function(){return new l.XMLHttpRequest}}}function be(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,i){return $=i,w=(y=t).defer,x=e.angular.callbacks,_=n[0],function(t,i,e,o,n,r,s,a){function l(){h&&h(),d&&d.abort()}function u(t,e,n,i,o){A(b)&&w.cancel(b),h=d=null,t(e,n,i,o),y.$$completeOutstandingRequest(M)}if(y.$$incOutstandingRequestCount(),i=i||y.url(),"jsonp"==I(t))var c="_"+(x.counter++).toString(36),h=(x[c]=function(t){x[c].data=t,x[c].called=!0},p=i.replace("JSON_CALLBACK","angular.callbacks."+c),f=c,m=function(t,e){u(o,t,x[c].data,"",e),x[c]=M},(v=_.createElement("script")).type="text/javascript",v.src=p,v.async=!0,v.addEventListener("load",g=function(t){v.removeEventListener("load",g,!1),v.removeEventListener("error",g,!1),_.body.removeChild(v),v=null;var e=-1,n="unknown";t&&(n=(t="load"!==t.type||x[f].called?t:{type:"error"}).type,e="error"===t.type?404:200),m&&m(e,n)},!1),v.addEventListener("error",g,!1),_.body.appendChild(v),g);else{var d=$(t,i);if(d.open(t,i,!0),ct(n,function(t,e){A(t)&&d.setRequestHeader(e,t)}),d.onload=function(){var t=d.statusText||"",e="response"in d?d.response:d.responseText,n=1223===d.status?204:d.status;0===n&&(n=e?200:"file"==cn(i).protocol?404:0),u(o,n,e,d.getAllResponseHeaders(),t)},d.onerror=t=function(){u(o,-1,null,null,"")},d.onabort=t,s&&(d.withCredentials=!0),a)try{d.responseType=a}catch(t){if("json"!==a)throw t}d.send(dt(e)?null:e)}var p,f,m,g,v,b;0<r?b=w(l,r):r&&mt(r.then)&&r.then(l)};var y,$,w,x,_}]}function ye(){var w="{{",x="}}";this.startSymbol=function(t){return t?(w=t,this):w},this.endSymbol=function(t){return t?(x=t,this):x},this.$get=["$parse","$exceptionHandler","$sce",function(f,m,g){function t(t){return"\\\\\\"+t}function v(t){return t.replace(n,w).replace(i,x)}function b(t,e,n,i){var o;return o=t.$watch(function(t){return o(),i(t)},e,n)}function e(o,t,i,r){function e(t){try{var e,n=t;if(t=i?g.getTrusted(i,n):g.valueOf(n),r&&!A(t))e=t;else if(null==t)e="";else{switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=F(t)}e=t}return e}catch(t){m(uo.interr(o,t))}}if(!o.length||-1===o.indexOf(w))return t||((h=_(t=v(o))).exp=o,h.expressions=[],h.$$watchDelegate=b),h;r=!!r;for(var n,s,a,l=0,u=[],c=[],h=o.length,d=[],p=[];l<h;){if(-1==(n=o.indexOf(w,l))||-1==(s=o.indexOf(x,n+y))){l!==h&&d.push(v(o.substring(l)));break}l!==n&&d.push(v(o.substring(l,n))),l=o.substring(n+y,s),u.push(l),c.push(f(l,e)),l=s+$,p.push(d.length),d.push("")}return i&&1<d.length&&uo.throwNoconcat(o),!t||u.length?(a=function(t){for(var e=0,n=u.length;e<n;e++){if(r&&dt(t[e]))return;d[p[e]]=t[e]}return d.join("")},ht(function(t){var e=0,n=u.length,i=Array(n);try{for(;e<n;e++)i[e]=c[e](t);return a(i)}catch(t){m(uo.interr(o,t))}},{exp:o,expressions:u,$$watchDelegate:function(i,o){var r;return i.$watchGroup(c,function(t,e){var n=a(t);mt(o)&&o.call(this,n,t!==e?r:n,i),r=n})}})):void 0}var y=w.length,$=x.length,n=new RegExp(w.replace(/./g,t),"g"),i=new RegExp(x.replace(/./g,t),"g");return e.startSymbol=function(){return w},e.endSymbol=function(){return x},e}]}function $e(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(p,f,m,g,v){function t(t,e,n,i){function o(){r?t.apply(null,s):t(u)}var r=4<arguments.length,s=r?Yn.call(arguments,4):[],a=f.setInterval,l=f.clearInterval,u=0,c=A(i)&&!i,h=(c?g:m).defer(),d=h.promise;return n=A(n)?n:0,d.$$intervalId=a(function(){c?v.defer(o):p.$evalAsync(o),h.notify(u++),0<n&&n<=u&&(h.resolve(u),l(d.$$intervalId),delete b[d.$$intervalId]),c||p.$apply()},e),b[d.$$intervalId]=h,d}var b={};return t.cancel=function(t){return!!(t&&t.$$intervalId in b)&&(b[t.$$intervalId].reject("canceled"),f.clearInterval(t.$$intervalId),delete b[t.$$intervalId],!0)},t}]}function we(t){for(var e=(t=t.split("/")).length;e--;)t[e]=Y(t[e]);return t.join("/")}function xe(t,e){t=cn(t);e.$$protocol=t.protocol,e.$$host=t.hostname,e.$$port=g(t.port)||ho[t.protocol]||null}function _e(t,e){var n="/"!==t.charAt(0),t=cn(t=n?"/"+t:t);e.$$path=decodeURIComponent(n&&"/"===t.pathname.charAt(0)?t.pathname.substring(1):t.pathname),e.$$search=V(t.search),e.$$hash=decodeURIComponent(t.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function ke(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function Ce(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function Te(t){return t.replace(/(#.+)|#$/,"$1")}function De(i,o,r){this.$$html5=!0,r=r||"",xe(i,this),this.$$parse=function(t){var e=ke(o,t);if(!ft(e))throw po("ipthprfx",t,o);_e(e,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=B(this.$$search),e=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=we(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=o+this.$$url.substr(1)},this.$$parseLinkUrl=function(t,e){var n;return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):(A(e=ke(i,t))?n=A(e=ke(r,n=e))?o+(ke("/",e)||e):i+n:A(e=ke(o,t))?n=o+e:o==t+"/"&&(n=o),n&&this.$$parse(n),!!n)}}function Se(o,r,s){xe(o,this),this.$$parse=function(t){dt(n=ke(o,t)||ke(r,t))||"#"!==n.charAt(0)?this.$$html5?e=n:(e="",dt(n)&&(o=t,this.replace())):dt(e=ke(s,n))&&(e=n),_e(e,this),t=this.$$path;var e,n=o,i=/^\/[A-Z]:(\/.*)/;0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)||(t=(e=i.exec(t))?e[1]:t),this.$$path=t,this.$$compose()},this.$$compose=function(){var t=B(this.$$search),e=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=we(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=o+(this.$$url?s+this.$$url:"")},this.$$parseLinkUrl=function(t,e){return Ce(o)==Ce(t)&&(this.$$parse(t),!0)}}function Ee(i,o,r){this.$$html5=!0,Se.apply(this,arguments),this.$$parseLinkUrl=function(t,e){var n;return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):(i==Ce(t)?n=t:(e=ke(o,t))?n=i+r+e:o===t+"/"&&(n=o),n&&this.$$parse(n),!!n)},this.$$compose=function(){var t=B(this.$$search),e=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=we(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=i+r+this.$$url}}function Me(t){return function(){return this[t]}}function Ae(e,n){return function(t){return dt(t)?this[e]:(this[e]=n(t),this.$$compose(),this)}}function Oe(){var f="",m={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return A(t)?(f=t,this):f},this.html5Mode=function(t){return N(t)?(m.enabled=t,this):pt(t)?(N(t.enabled)&&(m.enabled=t.enabled),N(t.requireBase)&&(m.requireBase=t.requireBase),N(t.rewriteLinks)&&(m.rewriteLinks=t.rewriteLinks),this):m},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(s,a,e,o,r){function l(t,e,n){var i=c.url(),o=c.$$state;try{a.url(t,e,n),c.$$state=a.state()}catch(t){throw c.url(i),c.$$state=o,t}}function u(t,e){s.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var t,n=a.baseHref(),i=a.url();if(m.enabled){if(!n&&m.requireBase)throw po("nobase");t=i.substring(0,i.indexOf("/",i.indexOf("//")+2))+(n||"/"),n=e.history?De:Ee}else t=Ce(i),n=Se;var c,h=t.substr(0,Ce(t).lastIndexOf("/")+1),d=((c=new n(t,h,"#"+f)).$$parseLinkUrl(i,i),c.$$state=a.state(),/^\s*(javascript|mailto):/i),p=(o.on("click",function(t){if(m.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var e=bt(t.target);"a"!==gt(e[0]);)if(e[0]===o[0]||!(e=e.parent())[0])return;var n=e.prop("href"),i=e.attr("href")||e.attr("xlink:href");pt(n)&&"[object SVGAnimatedString]"===n.toString()&&(n=cn(n.animVal).href),d.test(n)||!n||e.attr("target")||t.isDefaultPrevented()||!c.$$parseLinkUrl(n,i)||(t.preventDefault(),c.absUrl()!=a.url()&&(s.$apply(),r.angular["ff-684208-preventDefault"]=!0))}}),Te(c.absUrl())!=Te(i)&&a.url(c.absUrl(),!0),!0);return a.onUrlChange(function(i,o){dt(ke(h,i))?r.location.href=i:(s.$evalAsync(function(){var t,e=c.absUrl(),n=c.$$state;i=Te(i),c.$$parse(i),c.$$state=o,t=s.$broadcast("$locationChangeStart",i,e,o,n).defaultPrevented,c.absUrl()===i&&(t?(c.$$parse(e),c.$$state=n,l(e,!1,n)):(p=!1,u(e,n)))}),s.$$phase||s.$digest())}),s.$watch(function(){var n=Te(a.url()),t=Te(c.absUrl()),i=a.state(),o=c.$$replace,r=n!==t||c.$$html5&&e.history&&i!==c.$$state;(p||r)&&(p=!1,s.$evalAsync(function(){var t=c.absUrl(),e=s.$broadcast("$locationChangeStart",t,n,c.$$state,i).defaultPrevented;c.absUrl()===t&&(e?(c.$$parse(n),c.$$state=i):(r&&l(t,o,i===c.$$state?null:c.$$state),u(n,i)))})),c.$$replace=!1}),c}]}function Ie(){var i=!0,o=this;this.debugEnabled=function(t){return A(t)?(i=t,this):i},this.$get=["$window",function(e){function t(t){var n=e.console||{},i=n[t]||n.log||M;t=!1;try{t=!!i.apply}catch(t){}return t?function(){var e=[];return ct(arguments,function(t){e.push(((t=t)instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t))}),i.apply(n,e)}:function(t,e){i(t,null==e?"":e)}}return{log:t("log"),info:t("info"),warn:t("warn"),error:t("error"),debug:(n=t("debug"),function(){i&&n.apply(o,arguments)})};var n}]}function Pe(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw d("isecfld",e);return t}function Ne(t){return t+""}function He(t,e){if(t){if(t.constructor===t)throw d("isecfn",e);if(t.window===t)throw d("isecwindow",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw d("isecdom",e);if(t===Object)throw d("isecobj",e)}return t}function Le(t,e){if(t){if(t.constructor===t)throw d("isecfn",e);if(t===mo||t===go||t===vo)throw d("isecff",e)}}function je(t,e){if(t&&(t===0..constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw d("isecaf",e)}function Re(t,e){return void 0!==t?t:e}function Fe(t,e){return void 0===t?e:void 0===e?t:t+e}function u(t,e){var n,i;switch(t.type){case p.Program:n=!0,ct(t.body,function(t){u(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case p.Literal:t.constant=!0,t.toWatch=[];break;case p.UnaryExpression:u(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case p.BinaryExpression:u(t.left,e),u(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case p.LogicalExpression:u(t.left,e),u(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case p.ConditionalExpression:u(t.test,e),u(t.alternate,e),u(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case p.Identifier:t.constant=!1,t.toWatch=[t];break;case p.MemberExpression:u(t.object,e),t.computed&&u(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case p.CallExpression:n=!!t.filter&&!e(t.callee.name).$stateful,i=[],ct(t.arguments,function(t){u(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&!e(t.callee.name).$stateful?i:[t];break;case p.AssignmentExpression:u(t.left,e),u(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case p.ArrayExpression:n=!0,i=[],ct(t.elements,function(t){u(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case p.ObjectExpression:n=!0,i=[],ct(t.properties,function(t){u(t.value,e),n=n&&t.value.constant,t.value.constant||i.push.apply(i,t.value.toWatch)}),t.constant=n,t.toWatch=i;break;case p.ThisExpression:case p.LocalsExpression:t.constant=!1,t.toWatch=[]}}function ze(t){var e;if(1==t.length)return 1!==(e=(t=t[0].expression).toWatch).length||e[0]!==t?e:ut}function We(t){return t.type===p.Identifier||t.type===p.MemberExpression}function Ue(t){if(1===t.body.length&&We(t.body[0].expression))return{type:p.AssignmentExpression,left:t.body[0].expression,right:{type:p.NGValueParameter},operator:"="}}function qe(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===p.Literal||t.body[0].expression.type===p.ArrayExpression||t.body[0].expression.type===p.ObjectExpression)}function Ve(t,e){this.astBuilder=t,this.$filter=e}function Be(t,e){this.astBuilder=t,this.$filter=e}function Ye(t){return"constructor"==t}function Ge(t){return mt(t.valueOf)?t.valueOf():xo.call(t)}function Ke(){var b=vt(),y=vt();this.$get=["$filter",function(l){function t(t,e,n){var i;switch(n=n||v,typeof t){case"string":var o,r,s=t=t.trim(),a=n?y:b;return(o=a[s])||(":"===t.charAt(0)&&":"===t.charAt(1)&&(i=!0,t=t.substring(2)),r=new $o(o=n?g:m),(o=new wo(r,l,o).parse(t)).constant?o.$$watchDelegate=p:i?o.$$watchDelegate=o.literal?h:c:o.inputs&&(o.$$watchDelegate=u),n&&(o=function t(r){function e(t,e,n,i){var o=v;v=!0;try{return r(t,e,n,i)}finally{v=o}}if(!r)return r;e.$$watchDelegate=r.$$watchDelegate;e.assign=t(r.assign);e.constant=r.constant;e.literal=r.literal;for(var n=0;r.inputs&&n<r.inputs.length;++n)r.inputs[n]=t(r.inputs[n]);e.inputs=r.inputs;return e}(o)),a[s]=o),f(o,e);case"function":return f(t,e);default:return f(M,e)}}function d(t,e){return null==t||null==e?t===e:("object"!=typeof t||"object"!=typeof(t=Ge(t)))&&(t===e||t!=t&&e!=e)}function u(t,e,n,r,i){var s,o,a=r.inputs;if(1===a.length)return o=d,a=a[0],t.$watch(function(t){var e=a(t);return d(e,o)||(s=r(t,ut,ut,[e]),o=e&&Ge(e)),s},e,n,i);for(var l=[],u=[],c=0,h=a.length;c<h;c++)l[c]=d,u[c]=null;return t.$watch(function(t){for(var e=!1,n=0,i=a.length;n<i;n++){var o=a[n](t);(e=e||!d(o,l[n]))&&(l[n]=(u[n]=o)&&Ge(o))}return s=e?r(t,ut,ut,u):s},e,n,i)}function c(t,i,e,n){var o,r;return o=t.$watch(function(t){return n(t)},function(t,e,n){r=t,mt(i)&&i.apply(this,arguments),A(t)&&n.$$postDigest(function(){A(r)&&o()})},e)}function h(t,i,e,n){function o(t){var e=!0;return ct(t,function(t){A(t)||(e=!1)}),e}var r,s;return r=t.$watch(function(t){return n(t)},function(t,e,n){s=t,mt(i)&&i.call(this,t,e,n),o(t)&&n.$$postDigest(function(){o(s)&&r()})},e)}function p(t,e,n,i){var o;return o=t.$watch(function(t){return o(),i(t)},e,n)}function f(o,r){var s,t;return r?(t=o.$$watchDelegate,s=!1,t=t!==h&&t!==c?function(t,e,n,i){return n=s&&i?i[0]:o(t,e,n,i),r(n,t,e)}:function(t,e,n,i){return n=o(t,e,n,i),t=r(n,t,e),A(n)?t:n},o.$$watchDelegate&&o.$$watchDelegate!==u?t.$$watchDelegate=o.$$watchDelegate:r.$stateful||(t.$$watchDelegate=u,s=!o.inputs,t.inputs=o.inputs||[o]),t):o}var e=ni().noUnsafeEval,m={csp:e,expensiveChecks:!1},g={csp:e,expensiveChecks:!0},v=!1;return t.$$runningExpensiveChecks=function(){return v},t}]}function Xe(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Je(function(t){e.$evalAsync(t)},t)}]}function Qe(){this.$get=["$browser","$exceptionHandler",function(e,t){return Je(function(t){e.defer(t)},t)}]}function Je(t,s){function e(){this.$$state={status:0}}function r(e,n){return function(t){n.call(e,t)}}function a(r){!r.processScheduled&&r.pending&&(r.processScheduled=!0,t(function(){var t,e,n=r.pending;r.processScheduled=!1,r.pending=ut;for(var i=0,o=n.length;i<o;++i){e=n[i][0],t=n[i][r.status];try{mt(t)?e.resolve(t(r.value)):1===r.status?e.resolve(r.value):e.reject(r.value)}catch(t){e.reject(t),s(t)}}}))}function l(){this.promise=new e}function o(t,e){var n=new l;return e?n.resolve(t):n.reject(t),n.promise}function u(t,e,n,i){var o=new l;return o.resolve(t),o.promise.then(e,n,i)}function n(t){var e;if(mt(t))return e=new l,t(function(t){e.resolve(t)},function(t){e.reject(t)}),e.promise;throw i("norslvr",t)}var i=k("$q",TypeError),c=(ht(e.prototype,{then:function(t,e,n){var i;return dt(t)&&dt(e)&&dt(n)?this:(i=new l,this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,t,e,n]),0<this.$$state.status&&a(this.$$state),i.promise)},catch:function(t){return this.then(null,t)},finally:function(e,t){return this.then(function(t){return c(t,!0,e)},function(t){return c(t,!1,e)},t)}}),ht(l.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(i("qcycle",t)):this.$$resolve(t))},$$resolve:function(t){function e(t){o||(o=!0,i.$$reject(t))}var n,i=this,o=!1;try{(pt(t)||mt(t))&&(n=t&&t.then),mt(n)?(this.promise.$$state.status=-1,n.call(t,function(t){o||(o=!0,i.$$resolve(t))},e,r(this,this.notify))):(this.promise.$$state.value=t,this.promise.$$state.status=1,a(this.promise.$$state))}catch(t){e(t),s(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,a(this.promise.$$state)},notify:function(o){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,e,n=0,i=r.length;n<i;n++){e=r[n][0],t=r[n][3];try{e.notify(mt(t)?t(o):o)}catch(t){s(t)}}})}}),function(t,e,n){var i=null;try{mt(n)&&(i=n())}catch(t){return o(t,!1)}return i&&mt(i.then)?i.then(function(){return o(t,e)},function(t){return o(t,!1)}):o(t,e)});return n.prototype=e.prototype,n.defer=function(){var t=new l;return t.resolve=r(t,t.resolve),t.reject=r(t,t.reject),t.notify=r(t,t.notify),t},n.reject=function(t){var e=new l;return e.reject(t),e.promise},n.when=u,n.resolve=u,n.all=function(t){var n=new l,i=0,o=yt(t)?[]:{};return ct(t,function(t,e){i++,u(t).then(function(t){o.hasOwnProperty(e)||(o[e]=t,--i)||n.resolve(o)},function(t){o.hasOwnProperty(e)||n.reject(t)})}),0===i&&n.resolve(o),n.promise},n}function Ze(){this.$get=["$window","$timeout",function(t,n){var i=t.requestAnimationFrame||t.webkitRequestAnimationFrame,o=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,t=!!i,e=t?function(t){var e=i(t);return function(){o(e)}}:function(t){var e=n(t,16.66,!1);return function(){n.cancel(e)}};return e.supported=t,e}]}function tn(){var $=10,w=k("$rootScope"),x=null,_=null;this.digestTtl=function(t){return $=arguments.length?t:$},this.$get=["$exceptionHandler","$parse","$browser",function(h,p,d){function o(t){t.currentScope.$$destroyed=!0}function r(){this.$id=++Jn,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,(this.$root=this).$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function f(t){if(v.$$phase)throw w("inprog",v.$$phase);v.$$phase=t}function l(t,e){for(;t.$$watchersCount+=e,t=t.$parent;);}function s(t,e,n){for(;t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n],t=t.$parent;);}function m(){}function g(){for(;n.length;)try{n.shift()()}catch(t){h(t)}_=null}r.prototype={constructor:r,$new:function(t,e){var n;function i(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++Jn,this.$$ChildScope=null}return e=e||this,t?(n=new r).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=(i.prototype=this,i)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,!t&&e==this||n.$on("$destroy",o),n},$watch:function(t,e,n,i){var o,r,s,a=p(t);return a.$$watchDelegate?a.$$watchDelegate(this,e,n,a,t):(r=(o=this).$$watchers,s={fn:e,last:m,get:a,exp:i||t,eq:!!n},x=null,mt(e)||(s.fn=M),(r=r||(o.$$watchers=[])).unshift(s),l(this,1),function(){0<=H(r,s)&&l(o,-1),x=null})},$watchGroup:function(t,i){function o(){u=!1,n?(n=!1,i(s,s,l)):i(s,r,l)}var e,r=Array(t.length),s=Array(t.length),a=[],l=this,u=!1,n=!0;return t.length?1===t.length?this.$watch(t[0],function(t,e,n){s[0]=t,r[0]=e,i(s,t===e?s:r,n)}):(ct(t,function(t,n){t=l.$watch(t,function(t,e){s[n]=t,r[n]=e,u||(u=!0,l.$evalAsync(o))});a.push(t)}),function(){for(;a.length;)a.shift()()}):(e=!0,l.$evalAsync(function(){e&&i(s,s,l)}),function(){e=!1})},$watchCollection:function(t,e){function n(t){var e,n,i,o;if(!dt(r=t)){if(pt(r))if(S(r))for(s!==u&&(d=(s=u).length=0,l++),t=r.length,d!==t&&(l++,s.length=d=t),e=0;e<t;e++)o=s[e],i=r[e],(n=o!=o&&i!=i)||o===i||(l++,s[e]=i);else{for(e in s!==c&&(s=c={},d=0,l++),t=0,r)Vn.call(r,e)&&(t++,i=r[e],o=s[e],e in s?(n=o!=o&&i!=i,n||o===i||(l++,s[e]=i)):(d++,s[e]=i,l++));if(t<d)for(e in l++,s)Vn.call(r,e)||(d--,delete s[e])}else s!==r&&(s=r,l++);return l}}n.$stateful=!0;var r,s,i,o=this,a=1<e.length,l=0,t=p(t,n),u=[],c={},h=!0,d=0;return this.$watch(t,function(){if(h?(h=!1,e(r,r,o)):e(r,i,o),a)if(pt(r))if(S(r)){i=Array(r.length);for(var t=0;t<r.length;t++)i[t]=r[t]}else for(t in i={},r)Vn.call(r,t)&&(i[t]=r[t]);else i=r})},$digest:function(){var t,e,n,i,o,r,s,a,l,u=$,c=[];f("$digest"),d.$$checkUrlChange(),this===v&&null!==_&&(d.defer.cancel(_),g()),x=null;do{for(r=!1,s=this;b.length;){try{(l=b.shift()).scope.$eval(l.expression,l.locals)}catch(t){h(t)}x=null}t:do{if(i=s.$$watchers)for(o=i.length;o--;)try{if(t=i[o])if((e=(0,t.get)(s))===(n=t.last)||(t.eq?O(e,n):"number"==typeof e&&"number"==typeof n&&isNaN(e)&&isNaN(n))){if(t===x){r=!1;break t}}else r=!0,(x=t).last=t.eq?L(e,null):e,(0,t.fn)(e,n===m?e:n,s),u<5&&(c[a=4-u]||(c[a]=[]),c[a].push({msg:mt(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:e,oldVal:n}))}catch(t){h(t)}if(!(i=s.$$watchersCount&&s.$$childHead||s!==this&&s.$$nextSibling))for(;s!==this&&!(i=s.$$nextSibling);)s=s.$parent}while(s=i);if((r||b.length)&&!u--)throw v.$$phase=null,w("infdig",$,c)}while(r||b.length);for(v.$$phase=null;y.length;)try{y.shift()()}catch(t){h(t)}},$destroy:function(){if(!this.$$destroyed){var t,e=this.$parent;for(t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===v&&d.$$applicationDestroyed(),l(this,-this.$$watchersCount),this.$$listenerCount)s(this,this.$$listenerCount[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=M,this.$on=this.$watch=this.$watchGroup=function(){return M},this.$$listeners={},this.$$nextSibling=null,!function t(e){9===Zn&&(e.$$childHead&&t(e.$$childHead),e.$$nextSibling)&&t(e.$$nextSibling),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}(this)}},$eval:function(t,e){return p(t)(this,e)},$evalAsync:function(t,e){v.$$phase||b.length||d.defer(function(){b.length&&v.$digest()}),b.push({scope:this,expression:p(t),locals:e})},$$postDigest:function(t){y.push(t)},$apply:function(t){try{f("$apply");try{return this.$eval(t)}finally{v.$$phase=null}}catch(t){h(t)}finally{try{v.$digest()}catch(t){throw h(t),t}}},$applyAsync:function(t){var e=this;t&&n.push(function(){e.$eval(t)}),t=p(t),null===_&&(_=d.defer(function(){v.$apply(g)}))},$on:function(e,n){for(var i=this.$$listeners[e],t=(i||(this.$$listeners[e]=i=[]),i.push(n),this);t.$$listenerCount[e]||(t.$$listenerCount[e]=0),t.$$listenerCount[e]++,t=t.$parent;);var o=this;return function(){var t=i.indexOf(n);-1!==t&&(i[t]=null,s(o,1,e))}},$emit:function(t,e){var n,i,o,r=[],s=this,a=!1,l={name:t,targetScope:s,stopPropagation:function(){a=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},u=j([l],arguments,1);do{for(n=s.$$listeners[t]||r,l.currentScope=s,i=0,o=n.length;i<o;i++)if(n[i])try{n[i].apply(null,u)}catch(t){h(t)}else n.splice(i,1),i--,o--;if(a)return l.currentScope=null,l}while(s=s.$parent);return l.currentScope=null,l},$broadcast:function(t,e){var n=this,i=this,o={name:t,targetScope:this,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(this.$$listenerCount[t]){for(var r,s,a=j([o],arguments,1);n=i;){for(r=0,s=(i=(o.currentScope=n).$$listeners[t]||[]).length;r<s;r++)if(i[r])try{i[r].apply(null,a)}catch(t){h(t)}else i.splice(r,1),r--,s--;if(!(i=n.$$listenerCount[t]&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(i=n.$$nextSibling);)n=n.$parent}o.currentScope=null}return o}};var v=new r,b=v.$$asyncQueue=[],y=v.$$postDigestQueue=[],n=v.$$applyAsyncQueue=[];return v}]}function en(){var i=/^\s*(https?|ftp|mailto|tel|file):/,o=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return A(t)?(i=t,this):i},this.imgSrcSanitizationWhitelist=function(t){return A(t)?(o=t,this):o},this.$get=function(){return function(t,e){var e=e?o:i,n=cn(t).href;return""===n||n.match(e)?t:"unsafe:"+n}}}function nn(t){var e=[];return A(t)&&ct(t,function(t){e.push(function(t){if("self"===t)return t;if(ft(t)){if(-1<t.indexOf("***"))throw _o("iwcard",t);return t=ei(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(T(t))return new RegExp("^"+t.source+"$");throw _o("imatcher")}(t))}),e}function on(){this.SCE_CONTEXTS=f;var u=["self"],c=[];this.resourceUrlWhitelist=function(t){return u=arguments.length?nn(t):u},this.resourceUrlBlacklist=function(t){return c=arguments.length?nn(t):c},this.$get=["$injector",function(t){function s(t,e){return"self"===t?hn(e):t.exec(e.href)}function e(t){function e(t){this.$$unwrapTrustedValue=function(){return t}}return(e.prototype=t?new t:e.prototype).valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}var a=function(t){throw _o("unsafe")},n=(t.has("$sanitize")&&(a=t.get("$sanitize")),e()),l={};return l[f.HTML]=e(n),l[f.CSS]=e(n),l[f.URL]=e(n),l[f.JS]=e(n),l[f.RESOURCE_URL]=e(l[f.URL]),{trustAs:function(t,e){var n=l.hasOwnProperty(t)?l[t]:null;if(!n)throw _o("icontext",t,e);if(null===e||dt(e)||""===e)return e;if("string"!=typeof e)throw _o("itype",t);return new n(e)},getTrusted:function(t,e){if(null===e||dt(e)||""===e)return e;if((n=l.hasOwnProperty(t)?l[t]:null)&&e instanceof n)return e.$$unwrapTrustedValue();if(t===f.RESOURCE_URL){for(var n=cn(e.toString()),i=!1,o=0,r=u.length;o<r;o++)if(s(u[o],n)){i=!0;break}if(i)for(o=0,r=c.length;o<r;o++)if(s(c[o],n)){i=!1;break}if(i)return e;throw _o("insecurl",e.toString())}if(t===f.HTML)return a(e);throw _o("unsafe")},valueOf:function(t){return t instanceof n?t.$$unwrapTrustedValue():t}}}]}function rn(){var e=!0;this.enabled=function(t){return e=arguments.length?!!t:e},this.$get=["$parse","$sceDelegate",function(i,t){if(e&&Zn<8)throw _o("iequirks");var o=w(f),n=(o.isEnabled=function(){return e},o.trustAs=t.trustAs,o.getTrusted=t.getTrusted,o.valueOf=t.valueOf,e||(o.trustAs=o.getTrusted=function(t,e){return e},o.valueOf=P),o.parseAs=function(e,t){var n=i(t);return n.literal&&n.constant?n:i(t,function(t){return o.getTrusted(e,t)})},o.parseAs),r=o.getTrusted,s=o.trustAs;return ct(f,function(e,t){t=I(t);o[nt("parse_as_"+t)]=function(t){return n(e,t)},o[nt("get_trusted_"+t)]=function(t){return r(e,t)},o[nt("trust_as_"+t)]=function(t){return s(e,t)}}),o}]}function sn(){this.$get=["$window","$document",function(t,e){var n,i={},o=g((/android (\d+)/.exec(I((t.navigator||{}).userAgent))||[])[1]),r=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},a=/^(Moz|webkit|ms)(?=[A-Z])/,e=s.body&&s.body.style,l=!1,u=!1;if(e){for(var c in e)if(l=a.exec(c)){n=(n=l[0]).substr(0,1).toUpperCase()+n.substr(1);break}n=n||"WebkitOpacity"in e&&"webkit",l=!!("transition"in e||n+"Transition"in e),u=!!("animation"in e||n+"Animation"in e),!o||l&&u||(l=ft(e.webkitTransition),u=ft(e.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||o<4||r),hasEvent:function(t){var e;return!("input"===t&&Zn<=11)&&(dt(i[t])&&(e=s.createElement("div"),i[t]="on"+t in e),i[t])},csp:ni(),vendorPrefix:n,transitions:l,animations:u,android:o}}]}function an(){var l;this.httpOptions=function(t){return t?(l=t,this):l},this.$get=["$templateCache","$http","$q","$sce",function(i,o,r,s){function a(e,n){a.totalPendingRequests++,ft(e)&&i.get(e)||(e=s.getTrustedResourceUrl(e));var t=o.defaults&&o.defaults.transformResponse;return yt(t)?t=t.filter(function(t){return t!==de}):t===de&&(t=null),o.get(e,ht({cache:i,transformResponse:t},l)).finally(function(){a.totalPendingRequests--}).then(function(t){return i.put(e,t.data),t.data},function(t){if(n)return r.reject(t);throw wt("tpload",e,t.status,t.statusText)})}return a.totalPendingRequests=0,a}]}function ln(){this.$get=["$rootScope","$browser","$location",function(e,n,i){return{findBindings:function(t,n,i){t=t.getElementsByClassName("ng-binding");var o=[];return ct(t,function(e){var t=x.element(e).data("$binding");t&&ct(t,function(t){i?new RegExp("(^|\\s)"+ei(n)+"(\\s|\\||$)").test(t)&&o.push(e):-1!=t.indexOf(n)&&o.push(e)})}),o},findModels:function(t,e,n){for(var i=["ng-","data-ng-","ng\\:"],o=0;o<i.length;++o){var r=t.querySelectorAll("["+i[o]+"model"+(n?"=":"*=")+'"'+e+'"]');if(r.length)return r}},getLocation:function(){return i.url()},setLocation:function(t){t!==i.url()&&(i.url(t),e.$digest())},whenStable:function(t){n.notifyWhenNoOutstandingRequests(t)}}}]}function un(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,l,u,c,h){function t(t,e,n){mt(t)||(n=e,e=t,t=M);var i=Yn.call(arguments,3),o=A(n)&&!n,r=(o?c:u).defer(),s=r.promise,n=l.defer(function(){try{r.resolve(t.apply(null,i))}catch(t){r.reject(t),h(t)}finally{delete d[s.$$timeoutId]}o||a.$apply()},e);return s.$$timeoutId=n,d[n]=r,s}var d={};return t.cancel=function(t){return!!(t&&t.$$timeoutId in d)&&(d[t.$$timeoutId].reject("canceled"),delete d[t.$$timeoutId],l.defer.cancel(t.$$timeoutId))},t}]}function cn(t){return Zn&&(e.setAttribute("href",t),t=e.href),e.setAttribute("href",t),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}function hn(t){return(t=ft(t)?cn(t):t).protocol===ko.protocol&&t.host===ko.host}function dn(){this.$get=_(l)}function pn(t){function r(e){try{return decodeURIComponent(e)}catch(t){return e}}var s=t[0]||{},a={},l="";return function(){var t,e,n,i,o=s.cookie||"";if(o!==l)for(o=(l=o).split("; "),a={},e=0;e<o.length;e++)0<(n=(t=o[e]).indexOf("="))&&(i=r(t.substring(0,n)),dt(a[i]))&&(a[i]=r(t.substring(n+1)));return a}}function fn(){this.$get=pn}function mn(i){function o(t,e){var n;return pt(t)?(n={},ct(t,function(t,e){n[e]=o(e,t)}),n):i.factory(t+"Filter",e)}this.register=o,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],o("currency",yn),o("date",Dn),o("filter",gn),o("json",Sn),o("limitTo",En),o("lowercase",Eo),o("number",$n),o("orderBy",Mn),o("uppercase",Mo)}function gn(){return function(t,e,n){if(!S(t)){if(null==t)return t;throw k("filter")("notarray",t)}var i,o,r,s,a;switch(bn(e)){case"function":break;case"boolean":case"null":case"number":case"string":i=!0;case"object":r=n,s=i,a=pt(o=e)&&"$"in o,!0===r?r=O:mt(r)||(r=function(t,e){return!(dt(t)||(null===t||null===e?t!==e:pt(e)||pt(t)&&!$(t)||(t=I(""+t),e=I(""+e),-1===t.indexOf(e))))}),e=function(t){return a&&!pt(t)?vn(t,o.$,r,!1):vn(t,o,r,s)};break;default:return t}return Array.prototype.filter.call(t,e)}}function vn(t,e,n,i,o){var r,s=bn(t),a=bn(e);if("string"===a&&"!"===e.charAt(0))return!vn(t,e.substring(1),n,i);if(yt(t))return t.some(function(t){return vn(t,e,n,i)});switch(s){case"object":if(i){for(r in t)if("$"!==r.charAt(0)&&vn(t[r],e,n,!0))return!0;return!o&&vn(t,e,n,!1)}if("object"!==a)return n(t,e);for(r in e)if(o=e[r],!mt(o)&&!dt(o)&&(s="$"===r,!vn(s?t:t[r],o,n,s,s)))return!1;return!0;case"function":return!1;default:return n(t,e)}}function bn(t){return null===t?"null":typeof t}function yn(t){var i=t.NUMBER_FORMATS;return function(t,e,n){return dt(e)&&(e=i.CURRENCY_SYM),dt(n)&&(n=i.PATTERNS[1].maxFrac),null==t?t:wn(t,i.PATTERNS[1],i.GROUP_SEP,i.DECIMAL_SEP,n).replace(/\u00A4/g,e)}}function $n(t){var n=t.NUMBER_FORMATS;return function(t,e){return null==t?t:wn(t,n.PATTERNS[0],n.GROUP_SEP,n.DECIMAL_SEP,e)}}function wn(t,e,n,i,o){if(!ft(t)&&!y(t)||isNaN(t))return"";var r=!isFinite(t),s=!1,a=Math.abs(t)+"",l="";if(r)l="∞";else{var u=s=function(t){var e,n,i,o,r,s=0;for(0<(i=(t=-1<(n=t.indexOf("."))?t.replace(".",""):t).search(/e/i))?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;t.charAt(i)==Co;i++);if(i==(r=t.length))e=[0],n=1;else{for(r--;t.charAt(r)==Co;)r--;for(n-=i,e=[],o=0;i<=r;i++,o++)e[o]=+t.charAt(i)}return 22<n&&(e=e.splice(0,21),s=n-1,n=1),{d:e,e:s,i:n}}(a),c=o,h=e.minFrac,d=e.maxFrac,p=u.d,f=p.length-u.i;if(d=p[h=(c=dt(c)?Math.min(Math.max(h,f),d):+c)+u.i],0<h)p.splice(h);else{u.i=1,p.length=h=c+1;for(var m=0;m<h;m++)p[m]=0}for(5<=d&&p[h-1]++;f<c;f++)p.push(0);for((c=p.reduceRight(function(t,e,n,i){return i[n]=(e+=t)%10,Math.floor(e/10)},0))&&(p.unshift(c),u.i++),l=s.d,a=s.i,o=s.e,r=[],s=l.reduce(function(t,e){return t&&!e},!0);a<0;)l.unshift(0),a++;for(0<a?r=l.splice(a):(r=l,l=[0]),a=[],l.length>e.lgSize&&a.unshift(l.splice(-e.lgSize).join(""));l.length>e.gSize;)a.unshift(l.splice(-e.gSize).join(""));l.length&&a.unshift(l.join("")),l=a.join(n),r.length&&(l+=i+r.join("")),o&&(l+="e+"+o)}return t<0&&!s?e.negPre+l+e.negSuf:e.posPre+l+e.posSuf}function xn(t,e,n){var i="";for(t<0&&(i="-",t=-t),t=""+t;t.length<e;)t=Co+t;return i+(t=n?t.substr(t.length-e):t)}function t(e,n,i,o){return i=i||0,function(t){return t=t["get"+e](),(0<i||-i<t)&&(t+=i),xn(t=0===t&&-12==i?12:t,n,o)}}function _n(n,i){return function(t,e){t=t["get"+n]();return e[Bn(i?"SHORT"+n:n)][t]}}function kn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Cn(n){return function(t){var e=kn(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+e,xn(t=1+Math.round(t/6048e5),n)}}function Tn(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function Dn(f){var m=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(e,t,n){var i,o,r,s,a,l,u,c,h="",d=[];if(t=f.DATETIME_FORMATS[t=t||"mediumDate"]||t,!v(e=y(e=ft(e)?So.test(e)?g(e):((s=(r=e).match(m))&&(r=new Date(0),l=a=0,u=s[8]?r.setUTCFullYear:r.setFullYear,c=s[8]?r.setUTCHours:r.setHours,s[9]&&(a=g(s[9]+s[10]),l=g(s[9]+s[11])),u.call(r,g(s[1]),g(s[2])-1,g(s[3])),a=g(s[4]||0)-a,l=g(s[5]||0)-l,u=g(s[6]||0),s=Math.round(1e3*parseFloat("0."+(s[7]||0))),c.call(r,a,l,u,s)),r):e)?new Date(e):e)||!isFinite(e.getTime()))return e;for(;t;)t=(o=Do.exec(t))?(d=j(d,o,1)).pop():(d.push(t),null);var p=e.getTimezoneOffset();return n&&(p=W(n,p),e=U(e,n,!0)),ct(d,function(t){i=To[t],h+=i?i(e,f.DATETIME_FORMATS,p):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}}function Sn(){return function(t,e){return F(t,e=dt(e)?2:e)}}function En(){return function(t,e,n){return e=(1/0===Math.abs(Number(e))?Number:g)(e),!isNaN(e)&&(y(t)&&(t=t.toString()),yt(t)||ft(t))?(n=(n=!n||isNaN(n)?0:g(n))<0?Math.max(0,t.length+n):n,0<=e?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t}}function Mn(r){function s(t){switch(typeof t){case"number":case"boolean":case"string":return 1;default:return}}return function(t,e,n){if(null==t)return t;if(!S(t))throw k("orderBy")("notarray",t);0===(e=yt(e)?e:[e]).length&&(e=["+"]);o=(o=n)?-1:1;var o,a=e.map(function(t){var e,n=1,i=P;return mt(t)?i=t:ft(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(n="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t)&&(i=r(t)).constant&&(e=i(),i=function(t){return t[e]}),{get:i,descending:n*o}});return a.push({get:function(){return{}},descending:n?-1:1}),(t=Array.prototype.map.call(t,function(n,i){return{value:n,predicateValues:a.map(function(t){var e=t.get(n);return t=typeof e,null===e?(t="string",e="null"):"string"===t?e=e.toLowerCase():"object"!==t||"function"==typeof e.valueOf&&s(e=e.valueOf())||$(e)&&s(e=e.toString())||(e=i),{value:e,type:t}})}})).sort(function(t,e){for(var n=0,i=0,o=a.length;i<o;++i){var n=t.predicateValues[i],r=e.predicateValues[i],s=0;if(n.type===r.type?n.value!==r.value&&(s=n.value<r.value?-1:1):s=n.type<r.type?-1:1,n=s*a[i].descending)break}return n}),t.map(function(t){return t.value})}}function An(t){return(t=mt(t)?{link:t}:t).restrict=t.restrict||"AC",_(t)}function On(t,e,n,i,o){var r=this,s=[];r.$error={},r.$$success={},r.$pending=ut,r.$name=o(e.name||e.ngForm||"")(n),r.$dirty=!1,r.$pristine=!0,r.$valid=!0,r.$invalid=!1,r.$submitted=!1,r.$$parentForm=Io,r.$rollbackViewValue=function(){ct(s,function(t){t.$rollbackViewValue()})},r.$commitViewValue=function(){ct(s,function(t){t.$commitViewValue()})},r.$addControl=function(t){Z(t.$name,"input"),s.push(t),t.$name&&(r[t.$name]=t),t.$$parentForm=r},r.$$renameControl=function(t,e){var n=t.$name;r[n]===t&&delete r[n],(r[e]=t).$name=e},r.$removeControl=function(n){n.$name&&r[n.$name]===n&&delete r[n.$name],ct(r.$pending,function(t,e){r.$setValidity(e,null,n)}),ct(r.$error,function(t,e){r.$setValidity(e,null,n)}),ct(r.$$success,function(t,e){r.$setValidity(e,null,n)}),H(s,n),n.$$parentForm=Io},Fn({ctrl:this,$element:t,set:function(t,e,n){var i=t[e];i?-1===i.indexOf(n)&&i.push(n):t[e]=[n]},unset:function(t,e,n){var i=t[e];i&&(H(i,n),0===i.length)&&delete t[e]},$animate:i}),r.$setDirty=function(){i.removeClass(t,cr),i.addClass(t,hr),r.$dirty=!0,r.$pristine=!1,r.$$parentForm.$setDirty()},r.$setPristine=function(){i.setClass(t,cr,hr+" ng-submitted"),r.$dirty=!1,r.$pristine=!0,r.$submitted=!1,ct(s,function(t){t.$setPristine()})},r.$setUntouched=function(){ct(s,function(t){t.$setUntouched()})},r.$setSubmitted=function(){i.addClass(t,"ng-submitted"),r.$submitted=!0,r.$$parentForm.$setSubmitted()}}function In(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function Pn(t,n,i,o,e,r){var s,a,l,u=I(n[0].type),c=(e.android||(s=!1,n.on("compositionstart",function(t){s=!0}),n.on("compositionend",function(){s=!1,c()})),function(t){var e;a&&(r.defer.cancel(a),a=null),!s&&(e=n.val(),t=t&&t.type,"password"===u||i.ngTrim&&"false"===i.ngTrim||(e=$t(e)),o.$viewValue!==e||""===e&&o.$$hasNativeValidators)&&o.$setViewValue(e,t)});e.hasEvent("input")?n.on("input",c):(l=function(t,e,n){a=a||r.defer(function(){a=null,e&&e.value===n||c(t)})},n.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)}),e.hasEvent("paste")&&n.on("paste cut",l)),n.on("change",c),o.$render=function(){var t=o.$isEmpty(o.$viewValue)?"":o.$viewValue;n.val()!==t&&n.val(t)}}function Nn(i,o){return function(t,e){var n;if(v(t))return t;if(ft(t)){if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1)),Ho.test(t))return new Date(t);if(i.lastIndex=0,t=i.exec(t))return t.shift(),n=e?{yyyy:e.getFullYear(),MM:e.getMonth()+1,dd:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds(),sss:e.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},ct(t,function(t,e){e<o.length&&(n[o[e]]=+t)}),new Date(n.yyyy,n.MM-1,n.dd,n.HH,n.mm,n.ss||0,1e3*n.sss||0)}return NaN}}function Hn(p,f,m,g){return function(t,e,n,i,o,r,s){function a(t){return t&&(!t.getTime||t.getTime()===t.getTime())}function l(t){return A(t)&&!v(t)?m(t)||ut:t}Ln(0,e,0,i),Pn(0,e,n,i,o,r);var u,c,h,d=i&&i.$options&&i.$options.timezone;i.$$parserName=p,i.$parsers.push(function(t){return i.$isEmpty(t)?null:f.test(t)?(t=m(t,u),t=d?U(t,d):t):ut}),i.$formatters.push(function(t){if(t&&!v(t))throw pr("datefmt",t);return a(t)?((u=t)&&d&&(u=U(u,d,!0)),s("date")(t,g,d)):(u=null,"")}),(A(n.min)||n.ngMin)&&(i.$validators.min=function(t){return!a(t)||dt(c)||m(t)>=c},n.$observe("min",function(t){c=l(t),i.$validate()})),(A(n.max)||n.ngMax)&&(i.$validators.max=function(t){return!a(t)||dt(h)||m(t)<=h},n.$observe("max",function(t){h=l(t),i.$validate()}))}}function Ln(t,n,e,i){(i.$$hasNativeValidators=pt(n[0].validity))&&i.$parsers.push(function(t){var e=n.prop("validity")||{};return e.badInput||e.typeMismatch?ut:t})}function jn(t,e,n,i,o){if(A(i)){if((t=t(i)).constant)return t(e);throw pr("constexpr",n,i)}return o}function Rn(n,d){return n="ngClass"+n,["$animate",function(u){function c(t,e){var n=[],i=0;t:for(;i<t.length;i++){for(var o=t[i],r=0;r<e.length;r++)if(o==e[r])continue t;n.push(o)}return n}function h(t){var n=[];return yt(t)?(ct(t,function(t){n=n.concat(h(t))}),n):ft(t)?t.split(" "):pt(t)?(ct(t,function(t,e){t&&(n=n.concat(e.split(" ")))}),n):t}return{restrict:"AC",link:function(o,r,s){function a(t,e){var n=r.data("$classCounts")||vt(),i=[];return ct(t,function(t){(0<e||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(0<e))&&i.push(t)}),r.data("$classCounts",n),i.join(" ")}function e(t){var e,n,i;!0!==d&&o.$index%2!==d||(n=h(t||[]),l?O(t,l)||(i=c(n,e=h(l)),n=c(e,n),i=a(i,1),n=a(n,-1),i&&i.length&&u.addClass(r,i),n&&n.length&&u.removeClass(r,n)):(i=a(n,1),s.$addClass(i))),l=w(t)}var l;o.$watch(s[n],e,!0),s.$observe("class",function(t){e(o.$eval(s[n]))}),"ngClass"!==n&&o.$watch("$index",function(t,e){t&=1;t!==(1&e)&&(e=h(o.$eval(s[n])),t===d?(t=a(e,1),s.$addClass(t)):(t=a(e,-1),s.$removeClass(t)))})}}}]}function Fn(t){function i(t,e){e&&!s[t]?(u.addClass(n,t),s[t]=!0):!e&&s[t]&&(u.removeClass(n,t),s[t]=!1)}function o(t,e){t=t?"-"+Ct(t,"-"):"",i(lr+t,!0===e),i(ur+t,!1===e)}var r=t.ctrl,n=t.$element,s={},a=t.set,l=t.unset,u=t.$animate;s[ur]=!(s[lr]=n.hasClass(lr)),r.$setValidity=function(t,e,n){dt(e)?(r.$pending||(r.$pending={}),a(r.$pending,t,n)):(r.$pending&&l(r.$pending,t,n),zn(r.$pending)&&(r.$pending=ut)),(N(e)?e?(l(r.$error,t,n),a):(a(r.$error,t,n),l):(l(r.$error,t,n),l))(r.$$success,t,n),r.$pending?(i(dr,!0),r.$valid=r.$invalid=ut,o("",null)):(i(dr,!1),r.$valid=zn(r.$error),r.$invalid=!r.$valid,o("",r.$valid)),o(t,e=r.$pending&&r.$pending[t]?ut:!r.$error[t]&&(!!r.$$success[t]||null)),r.$$parentForm.$setValidity(t,e,r)}}function zn(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var bt,Wn,Un,qn=/^\/(.+)\/([a-z]*)$/,Vn=Object.prototype.hasOwnProperty,I=function(t){return ft(t)?t.toLowerCase():t},Bn=function(t){return ft(t)?t.toUpperCase():t},Yn=[].slice,Gn=[].splice,Kn=[].push,h=Object.prototype.toString,Xn=Object.getPrototypeOf,Qn=k("ng"),x=l.angular||(l.angular={}),Jn=0,Zn=lt.documentMode,yt=(M.$inject=[],P.$inject=[],Array.isArray),ti=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,$t=function(t){return ft(t)?t.trim():t},ei=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},ni=function(){if(!A(ni.rules)){var t=lt.querySelector("[ng-csp]")||lt.querySelector("[data-ng-csp]");if(t){var e=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");ni.rules={noUnsafeEval:!e||-1!==e.indexOf("no-unsafe-eval"),noInlineStyle:!e||-1!==e.indexOf("no-inline-style")}}else{t=ni;try{new Function(""),e=!1}catch(t){e=!0}t.rules={noUnsafeEval:e,noInlineStyle:!1}}}return ni.rules},ii=function(){if(A(ii.name_))return ii.name_;for(var t,e,n,i=ri.length,o=0;o<i;++o)if(e=ri[o],t=lt.querySelector("["+e.replace(":","\\:")+"jq]")){n=t.getAttribute(e+"jq");break}return ii.name_=n},oi=/:/g,ri=["ng-","data-ng-","ng:","x-ng-"],si=/[A-Z]/g,ai=!1,li=3,ui={full:"1.5.0",major:1,minor:5,dot:0,codeName:"ennoblement-facilitation"},ci=(a.expando="ng339",a.cache={}),hi=1,di=(a._data=function(t){return this.cache[t[this.expando]]||{}},/([\:\-\_]+(.))/g),pi=/^moz([A-Z])/,fi={mouseleave:"mouseout",mouseenter:"mouseover"},mi=k("jqLite"),gi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,vi=/<|&#?\w+;/,bi=/<([\w:-]+)/,yi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,s={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]},$i=(s.optgroup=s.option,s.tbody=s.tfoot=s.colgroup=s.caption=s.thead,s.th=s.td,Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))}),wi=a.prototype={ready:function(t){function e(){n||(n=!0,t())}var n=!1;"complete"===lt.readyState?setTimeout(e):(this.on("DOMContentLoaded",e),a(l).on("load",e))},toString:function(){var e=[];return ct(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(t){return bt(0<=t?this[t]:this[this.length+t])},length:0,push:Kn,sort:[].sort,splice:[].splice},xi={},_i=(ct("multiple selected checked disabled readOnly required open".split(" "),function(t){xi[I(t)]=t}),{}),ki=(ct("input select option textarea button form details".split(" "),function(t){_i[t]=!0}),{ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"});function Ci(t,e){var n;if(dt(e))return 1===(n=t.nodeType)||n===li?t.textContent:"";t.textContent=e}ct({data:Mt,removeData:at,hasData:function(t){for(var e in ci[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)at(t[e])}},function(t,e){a[e]=t}),ct({data:Mt,inheritedData:Ht,scope:function(t){return bt.data(t,"$scope")||Ht(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return bt.data(t,"$isolateScope")||bt.data(t,"$isolateScopeNoTemplate")},controller:Nt,injector:function(t){return Ht(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:At,css:function(t,e,n){if(e=nt(e),!A(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var i=t.nodeType;if(i!==li&&2!==i&&8!==i)if(i=I(e),xi[i]){if(!A(n))return t[e]||(t.attributes.getNamedItem(e)||M).specified?i:ut;n?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if(A(n))t.setAttribute(e,n);else if(t.getAttribute)return null===(t=t.getAttribute(e,2))?ut:t},prop:function(t,e,n){if(!A(n))return t[e];t[e]=n},text:(Ci.$dv="",Ci),val:function(t,e){var n;if(dt(e))return t.multiple&&"select"===gt(t)?(n=[],ct(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n):t.value;t.value=e},html:function(t,e){if(dt(e))return t.innerHTML;rt(t,!0),t.innerHTML=e},empty:Lt},function(s,t){a.prototype[t]=function(t,e){var n,i=this.length;if(s!==Lt&&dt(2==s.length&&s!==At&&s!==Nt?t:e)){if(pt(t)){for(r=0;r<i;r++)if(s===Mt)s(this[r],t);else for(n in t)s(this[r],n,t[n]);return this}for(i=dt(r=s.$dv)?Math.min(i,1):i,n=0;n<i;n++)var o=s(this[n],t,e),r=r?r+o:o;return r}for(r=0;r<i;r++)s(this[r],t,e);return this}}),ct({removeData:at,on:function(o,t,r,e){if(A(e))throw mi("onargs");if(it(o))for(var s=(e=Et(o,!0)).events,a=(a=e.handle)||(e.handle=Ft(o,s)),n=(e=0<=t.indexOf(" ")?t.split(" "):[t]).length,i=function(t,e,n){var i=s[t];i||((i=s[t]=[]).specialHandlerWrapper=e,"$destroy"===t)||n||o.addEventListener(t,a,!1),i.push(r)};n--;)t=e[n],fi[t]?(i(fi[t],Wt),i(t,ut,!0)):i(t)},off:st,one:function(e,n,i){(e=bt(e)).on(n,function t(){e.off(n,i),e.off(n,t)}),e.on(n,i)},replaceWith:function(e,t){var n,i=e.parentNode;rt(e),ct(new a(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(t){var e=[];return ct(t.childNodes,function(t){1===t.nodeType&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){if(1===(n=t.nodeType)||11===n)for(var n=0,i=(e=new a(e)).length;n<i;n++)t.appendChild(e[n])},prepend:function(e,t){var n;1===e.nodeType&&(n=e.firstChild,ct(new a(t),function(t){e.insertBefore(t,n)}))},wrap:function(t,e){Dt(t,bt(e).eq(0).clone()[0])},remove:jt,detach:function(t){jt(t,!0)},after:function(t,e){for(var n=t,i=t.parentNode,o=0,r=(e=new a(e)).length;o<r;o++){var s=e[o];i.insertBefore(s,n.nextSibling),n=s}},addClass:It,removeClass:Ot,toggleClass:function(n,t,i){t&&ct(t.split(" "),function(t){var e=i;((e=dt(i)?!At(n,t):e)?It:Ot)(n,t)})},parent:function(t){return(t=t.parentNode)&&11!==t.nodeType?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:St,triggerHandler:function(e,t,n){var i,o,r=t.type||t,s=Et(e);(s=(s=s&&s.events)&&s[r])&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:M,type:r,target:e},t.type&&(i=ht(i,t)),t=w(s),o=n?[i].concat(n):[i],ct(t,function(t){i.isImmediatePropagationStopped()||t.apply(e,o)}))}},function(s,t){a.prototype[t]=function(t,e,n){for(var i,o=0,r=this.length;o<r;o++)dt(i)?A(i=s(this[o],t,e,n))&&(i=bt(i)):Pt(i,s(this[o],t,e,n));return A(i)?i:this},a.prototype.bind=a.prototype.on,a.prototype.unbind=a.prototype.off}),Vt.prototype={put:function(t,e){this[qt(t,this.nextUid)]=e},get:function(t){return this[qt(t,this.nextUid)]},remove:function(t){var e=this[t=qt(t,this.nextUid)];return delete this[t],e}};function Ti(){this.$get=function(){}}function Di(){var l=new Vt,u=[];this.$get=["$$AnimateRunner","$rootScope",function(o,r){function s(e,t,n){var i=!1;return t&&ct(t=ft(t)?t.split(" "):yt(t)?t:[],function(t){t&&(i=!0,e[t]=n)}),i}function a(){ct(u,function(t){var n,i,o,e,r,s=l.get(t);s&&(ft(e=t.attr("class"))&&(e=e.split(" ")),r=vt(),ct(e,function(t){t.length&&(r[t]=!0)}),n=r,o=i="",ct(s,function(t,e){t!==!!n[e]&&(t?i+=(i.length?" ":"")+e:o+=(o.length?" ":"")+e)}),ct(t,function(t){i&&It(t,i),o&&Ot(t,o)}),l.remove(t))}),u.length=0}return{enabled:M,on:M,off:M,pin:M,push:function(t,e,n,i){return i&&i(),(n=n||{}).from&&t.css(n.from),n.to&&t.css(n.to),(n.addClass||n.removeClass)&&(e=n.addClass,i=n.removeClass,e=s(n=l.get(t)||{},e,!0),i=s(n,i,!1),e||i)&&(l.put(t,n),u.push(t),1===u.length)&&r.$$postDigest(a),(t=new o).complete(),t}}}]}function Si(){this.$get=["$$rAF",function(e){function n(t){i.push(t),1<i.length||e(function(){for(var t=0;t<i.length;t++)i[t]();i=[]})}var i=[];return function(){var e=!1;return n(function(){e=!0}),function(t){e?t():n(t)}}}]}function Ei(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,i,o,r){function n(t){this.setHost(t);var n=i();this._doneCallbacks=[],this._tick=function(t){var e=o[0];e&&e.hidden?r(t,0,!1):n(t)},this._state=0}return n.chain=function(t,n){var i=0;!function e(){i===t.length?n(!0):t[i](function(t){!1===t?n(!1):(i++,e())})}()},n.all=function(e,n){function i(t){r=r&&t,++o===e.length&&n(r)}var o=0,r=!0;ct(e,function(t){t.done(i)})},n.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:M,getPromise:function(){var t;return this.promise||((t=this).promise=e(function(e,n){t.done(function(t){(!1===t?n:e)()})})),this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._tick(function(){e._resolve(t)}))},_resolve:function(e){2!==this._state&&(ct(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},n}]}function Mi(){this.$get=["$$rAF","$q","$$AnimateRunner",function(s,t,a){return function(t,e){function n(){return s(function(){i.addClass&&(t.addClass(i.addClass),i.addClass=null),i.removeClass&&(t.removeClass(i.removeClass),i.removeClass=null),i.to&&(t.css(i.to),i.to=null),o||r.complete(),o=!0}),r}var i=e||{};(i=i.$$prepared?i:L(i)).cleanupStyles&&(i.from=i.to=null),i.from&&(t.css(i.from),i.from=null);var o,r=new a;return{start:n,end:n}}}]}function Ai(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof bt&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]}function Oi(n){return["$timeout","$parse",function(l,e){function u(t){return""===t?e('this[""]').assign:e(t).assign||M}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:On,compile:function(t,e){t.addClass(cr).addClass(lr);var a=e.name?"name":!(!n||!e.ngForm)&&"ngForm";return{pre:function(e,t,n,i){var o,r=i[0],s=("action"in n||(t[0].addEventListener("submit",o=function(t){e.$apply(function(){r.$commitViewValue(),r.$setSubmitted()}),t.preventDefault()},!1),t.on("$destroy",function(){l(function(){t[0].removeEventListener("submit",o,!1)},0,!1)})),(i[1]||r.$$parentForm).$addControl(r),a?u(r.$name):M);a&&(s(e,r),n.$observe(a,function(t){r.$name!==t&&(s(e,ut),r.$$parentForm.$$renameControl(r,t),(s=u(r.$name))(e,r))})),t.on("$destroy",function(){r.$$parentForm.$removeControl(r),s(e,ut),ht(r,Io)})}}}}}]}function Ii(){return{restrict:"A",priority:100,compile:function(t,e){return Bo.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}}function Pi(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var o=e.attr(n.$attr.ngList)||", ",r="false"!==n.ngTrim,s=r?$t(o):o;i.$parsers.push(function(t){var e;if(!dt(t))return e=[],t&&ct(t.split(s),function(t){t&&e.push(r?$t(t):t)}),e}),i.$formatters.push(function(t){return yt(t)?t.join(o):ut}),i.$isEmpty=function(t){return!t||!t.length}}}}function Ni(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=L(t.$eval(e.ngModelOptions)),A(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=$t(this.$options.updateOn.replace(gr,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}}function Hi(){return{restrict:"E",require:["select","?ngModel"],controller:Ir,priority:1,link:{pre:function(t,n,e,i){var o,r,s,a=i[1];a&&((o=i[0]).ngModelCtrl=a,n.on("change",function(){t.$apply(function(){a.$setViewValue(o.readValue())})}),e.multiple)&&(o.readValue=function(){var e=[];return ct(n.find("option"),function(t){t.selected&&e.push(t.value)}),e},o.writeValue=function(t){var e=new Vt(t);ct(n.find("option"),function(t){t.selected=A(e.get(t.value))})},s=NaN,t.$watch(function(){s!==a.$viewValue||O(r,a.$viewValue)||(r=w(a.$viewValue),a.$render()),s=a.$viewValue}),a.$isEmpty=function(t){return!t||0===t.length})},post:function(t,e,n,i){var o,r=i[1];r&&(o=i[0],r.$render=function(){o.writeValue(r.$viewValue)})}}}}function Li(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){i&&(n.required=!0,i.$validators.required=function(t,e){return!n.required||!i.$isEmpty(e)},n.$observe("required",function(){i.$validate()}))}}}function ji(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){var o,r;i&&(r=n.ngPattern||n.pattern,n.$observe("pattern",function(t){if((t=ft(t)&&0<t.length?new RegExp("^"+t+"$"):t)&&!t.test)throw k("ngPattern")("noregexp",r,t,kt(e));o=t||ut,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||dt(o)||o.test(e)})}}}function Ri(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){var o;i&&(o=-1,n.$observe("maxlength",function(t){t=g(t),o=isNaN(t)?-1:t,i.$validate()}),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o})}}}function Fi(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){var o;i&&(o=0,n.$observe("minlength",function(t){o=g(t)||0,i.$validate()}),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o})}}}var zi,Wi,Ui,qi=[function(){this.$get=[function(){return Vt}]}],Vi=/^([^\(]+?)=>/,Bi=/^[^\(]*\(\s*([^\)]*)\)/m,Yi=/,/,Gi=/^\s*(_?)(\S+?)\1\s*$/,Ki=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Xi=k("$injector"),Qi=(Yt.$$annotate=function(t,e,n){var i,o;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw ft(n)&&n||(n=t.name||((o=Bt(o=t))?"function("+(o[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),Xi("strictdi",n);ct((e=Bt(t))[1].split(Yi),function(t){t.replace(Gi,function(t,e,n){i.push(n)})})}t.$inject=i}}else yt(t)?(e=t.length-1,J(t[e],"fn"),i=t.slice(0,e)):J(t,"fn",!0);return i},k("$animate")),Ji=["$provide",function(i){var o=this;this.$$registeredAnimations=Object.create(null),this.register=function(t,e){if(t&&"."!==t.charAt(0))throw Qi("notcsel",t);var n=t+"-animation";o.$$registeredAnimations[t.substr(1)]=n,i.factory(n,e)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw Qi("nongcls","ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(r){function o(t,e,n){if(n){var i;t:{for(i=0;i<n.length;i++){var o=n[i];if(1===o.nodeType){i=o;break t}}i=void 0}!i||i.parentNode||i.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:r.on,off:r.off,pin:r.pin,enabled:r.enabled,cancel:function(t){t.end&&t.end()},enter:function(t,e,n,i){return e=e&&bt(e),n=n&&bt(n),o(t,e=e||n.parent(),n),r.push(t,"enter",Xt(i))},move:function(t,e,n,i){return e=e&&bt(e),n=n&&bt(n),o(t,e=e||n.parent(),n),r.push(t,"move",Xt(i))},leave:function(t,e){return r.push(t,"leave",Xt(e),function(){t.remove()})},addClass:function(t,e,n){return(n=Xt(n)).addClass=Kt(n.addclass,e),r.push(t,"addClass",n)},removeClass:function(t,e,n){return(n=Xt(n)).removeClass=Kt(n.removeClass,e),r.push(t,"removeClass",n)},setClass:function(t,e,n,i){return(i=Xt(i)).addClass=Kt(i.addClass,e),i.removeClass=Kt(i.removeClass,n),r.push(t,"setClass",i)},animate:function(t,e,n,i,o){return(o=Xt(o)).from=o.from?ht(o.from,e):e,o.to=o.to?ht(o.to,n):n,o.tempClasses=Kt(o.tempClasses,i||"ng-inline-animate"),r.push(t,"animate",o)}}}]}],wt=k("$compile"),Zi=(ee.$inject=["$provide","$$sanitizeUriProvider"],/^((?:x|data)[\:\-_])/i),to=k("$controller"),eo=/^(\S+)(\s+as\s+([\w$]+))?$/,no="application/json",io={"Content-Type":no+";charset=utf-8"},oo=/^\[|^\{(?!\{)/,ro={"[":/]$/,"{":/}$/},so=/^\)\]\}',?\n/,ao=k("$http"),lo=function(t){return function(){throw ao("legacy",t)}},uo=x.$interpolateMinErr=k("$interpolate"),co=(uo.throwNoconcat=function(t){throw uo("noconcat",t)},uo.interr=function(t,e){return uo("interr",t,e.toString())},/^([^\?#]*)(\?([^#]*))?(#(.*))?$/),ho={http:80,https:443,ftp:21},po=k("$location"),fo={$$html5:!1,$$replace:!1,absUrl:Me("$$absUrl"),url:function(t){var e;return dt(t)?this.$$url:(!(e=co.exec(t))[1]&&""!==t||this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this)},protocol:Me("$$protocol"),host:Me("$$host"),port:Me("$$port"),path:Ae("$$path",function(t){return"/"==(t=null!==t?t.toString():"").charAt(0)?t:"/"+t}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(ft(n)||y(n))n=n.toString(),this.$$search=V(n);else{if(!pt(n))throw po("isrcharg");ct(n=L(n,{}),function(t,e){null==t&&delete n[e]}),this.$$search=n}break;default:dt(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:Ae("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}},d=(ct([Ee,Se,De],function(e){e.prototype=Object.create(fo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e===De&&this.$$html5)return this.$$state=dt(t)?null:t,this;throw po("nostate")}}),k("$parse")),mo=Function.prototype.call,go=Function.prototype.apply,vo=Function.prototype.bind,bo=vt(),yo=(ct("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){bo[t]=!0}),{n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'}),$o=function(t){this.options=t},p=($o.prototype={constructor:$o,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e,n,i,o;'"'===(t=this.text.charAt(this.index))||"'"===t?this.readString(t):this.isNumber(t)||"."===t&&this.isNumber(this.peek())?this.readNumber():this.isIdent(t)?this.readIdent():this.is(t,"(){}[].,;:?")?(this.tokens.push({index:this.index,text:t}),this.index++):this.isWhitespace(t)?this.index++:(n=(e=t+this.peek())+this.peek(2),i=bo[e],o=bo[n],bo[t]||i||o?(this.tokens.push({index:this.index,text:t=o?n:i?e:t,operator:!0}),this.index+=t.length):this.throwError("Unexpected next character ",this.index,this.index+1))}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){return this.index+(t=t||1)<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdent:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){throw n=n||this.index,e=A(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n,d("lexerr",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=I(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var i=this.peek();if("e"==n&&this.isExpOperator(i))t+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){for(var t=this.index;this.index<this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&&!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",i=t,o=!1;this.index<this.text.length;){var r=this.text.charAt(this.index),i=i+r;if(o)"u"===r?((o=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))):n+=yo[r]||r,o=!1;else if("\\"===r)o=!0;else{if(r===t)return this.index++,void this.tokens.push({index:e,text:i,constant:!0,value:n});n+=r}this.index++}this.throwError("Unterminated quote",e)}},function(t,e){this.lexer=t,this.options=e}),wo=(p.Program="Program",p.ExpressionStatement="ExpressionStatement",p.AssignmentExpression="AssignmentExpression",p.ConditionalExpression="ConditionalExpression",p.LogicalExpression="LogicalExpression",p.BinaryExpression="BinaryExpression",p.UnaryExpression="UnaryExpression",p.CallExpression="CallExpression",p.MemberExpression="MemberExpression",p.Identifier="Identifier",p.Literal="Literal",p.ArrayExpression="ArrayExpression",p.Property="Property",p.ObjectExpression="ObjectExpression",p.ThisExpression="ThisExpression",p.LocalsExpression="LocalsExpression",p.NGValueParameter="NGValueParameter",p.prototype={ast:function(t){return this.text=t,this.tokens=this.lexer.lex(t),t=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var t=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:p.Program,body:t}},expressionStatement:function(){return{type:p.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return t=this.expect("=")?{type:p.AssignmentExpression,left:t,right:this.assignment(),operator:"="}:t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:p.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:p.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:p.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:p.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:p.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:p.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:p.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:p.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=L(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:p.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:p.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:p.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){t=[t];for(var e={type:p.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return e},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)for(;t.push(this.expression()),this.expect(","););return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:p.Identifier,name:t.text}},constant:function(){return{type:p.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(t.push(this.expression()),this.expect(",")););return this.consume("]"),{type:p.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)for(;!this.peek("}")&&(t={type:p.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t),this.expect(",")););return this.consume("}"),{type:p.ObjectExpression,properties:e}},throwError:function(t,e){throw d("syntax",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw d("ueoe",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw d("ueoe",this.text);return this.tokens[0]},peek:function(t,e,n,i){return this.peekAhead(0,t,e,n,i)},peekAhead:function(t,e,n,i,o){if(this.tokens.length>t){var r=(t=this.tokens[t]).text;if(r===e||r===n||r===i||r===o||!(e||n||i||o))return t}return!1},expect:function(t,e,n,i){return!!(t=this.peek(t,e,n,i))&&(this.tokens.shift(),t)},constants:{true:{type:p.Literal,value:!0},false:{type:p.Literal,value:!1},null:{type:p.Literal,value:null},undefined:{type:p.Literal,value:ut},this:{type:p.ThisExpression},$locals:{type:p.LocalsExpression}}},Ve.prototype={compile:function(t,e){var n,o=this,i=this.astBuilder.ast(t),e=(this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},u(i,o.$filter),"");return this.stage="assign",(n=Ue(i))&&(this.state.computing="assign",e=this.nextId(),this.recurse(n,e),this.return_(e),e="fn.assign="+this.generateFunction("assign","s,v,l")),n=ze(i.body),o.stage="inputs",ct(n,function(t,e){var n="fn"+e,i=(o.state[n]={vars:[],body:[],own:{}},o.state.computing=n,o.nextId());o.recurse(t,i),o.return_(i),o.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i),e='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+e+this.watchFns()+"return fn;",e=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",e)(this.$filter,Pe,He,Le,Ne,je,Re,Fe,t),this.state=this.stage=ut,e.literal=qe(i),e.constant=i.constant,e},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return ct(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var n=[],i=this;return ct(this.state.filters,function(t,e){n.push(t+"=$filter("+i.escape(e)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(n,t,e,i,o,r){var s,a,l,u,c=this;if(i=i||M,!r&&A(n.watchId))t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",n.watchId)),this.lazyRecurse(n,t,e,i,o,!0));else switch(n.type){case p.Program:ct(n.body,function(t,e){c.recurse(t.expression,ut,ut,function(t){a=t}),e!==n.body.length-1?c.current().body.push(a,";"):c.return_(a)});break;case p.Literal:u=this.escape(n.value),this.assign(t,u),i(u);break;case p.UnaryExpression:this.recurse(n.argument,ut,ut,function(t){a=t}),u=n.operator+"("+this.ifDefined(a,0)+")",this.assign(t,u),i(u);break;case p.BinaryExpression:this.recurse(n.left,ut,ut,function(t){s=t}),this.recurse(n.right,ut,ut,function(t){a=t}),u="+"===n.operator?this.plus(s,a):"-"===n.operator?this.ifDefined(s,0)+n.operator+this.ifDefined(a,0):"("+s+")"+n.operator+"("+a+")",this.assign(t,u),i(u);break;case p.LogicalExpression:t=t||this.nextId(),c.recurse(n.left,t),c.if_("&&"===n.operator?t:c.not(t),c.lazyRecurse(n.right,t)),i(t);break;case p.ConditionalExpression:t=t||this.nextId(),c.recurse(n.test,t),c.if_(t,c.lazyRecurse(n.alternate,t),c.lazyRecurse(n.consequent,t)),i(t);break;case p.Identifier:t=t||this.nextId(),e&&(e.context="inputs"===c.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),e.computed=!1,e.name=n.name),Pe(n.name),c.if_("inputs"===c.stage||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_("inputs"===c.stage||"s",function(){o&&1!==o&&c.if_(c.not(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}")),c.assign(t,c.nonComputedMember("s",n.name))})},t&&c.lazyAssign(t,c.nonComputedMember("l",n.name))),(c.state.expensiveChecks||Ye(n.name))&&c.addEnsureSafeObject(t),i(t);break;case p.MemberExpression:s=e&&(e.context=this.nextId())||this.nextId(),t=t||this.nextId(),c.recurse(n.object,s,ut,function(){c.if_(c.notNull(s),function(){o&&1!==o&&c.addEnsureSafeAssignContext(s),n.computed?(a=c.nextId(),c.recurse(n.property,a),c.getStringValue(a),c.addEnsureSafeMemberName(a),o&&1!==o&&c.if_(c.not(c.computedMember(s,a)),c.lazyAssign(c.computedMember(s,a),"{}")),u=c.ensureSafeObject(c.computedMember(s,a)),c.assign(t,u),e&&(e.computed=!0,e.name=a)):(Pe(n.property.name),o&&1!==o&&c.if_(c.not(c.nonComputedMember(s,n.property.name)),c.lazyAssign(c.nonComputedMember(s,n.property.name),"{}")),u=c.nonComputedMember(s,n.property.name),(c.state.expensiveChecks||Ye(n.property.name))&&(u=c.ensureSafeObject(u)),c.assign(t,u),e&&(e.computed=!1,e.name=n.property.name))},function(){c.assign(t,"undefined")}),i(t)},!!o);break;case p.CallExpression:t=t||this.nextId(),n.filter?(a=c.filter(n.callee.name),l=[],ct(n.arguments,function(t){var e=c.nextId();c.recurse(t,e),l.push(e)}),u=a+"("+l.join(",")+")",c.assign(t,u),i(t)):(a=c.nextId(),s={},l=[],c.recurse(n.callee,a,s,function(){c.if_(c.notNull(a),function(){c.addEnsureSafeFunction(a),ct(n.arguments,function(t){c.recurse(t,c.nextId(),ut,function(t){l.push(c.ensureSafeObject(t))})}),u=s.name?(c.state.expensiveChecks||c.addEnsureSafeObject(s.context),c.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):a+"("+l.join(",")+")",u=c.ensureSafeObject(u),c.assign(t,u)},function(){c.assign(t,"undefined")}),i(t)}));break;case p.AssignmentExpression:if(a=this.nextId(),s={},!We(n.left))throw d("lval");this.recurse(n.left,ut,s,function(){c.if_(c.notNull(s.context),function(){c.recurse(n.right,a),c.addEnsureSafeObject(c.member(s.context,s.name,s.computed)),c.addEnsureSafeAssignContext(s.context),u=c.member(s.context,s.name,s.computed)+n.operator+a,c.assign(t,u),i(t||u)})},1);break;case p.ArrayExpression:l=[],ct(n.elements,function(t){c.recurse(t,c.nextId(),ut,function(t){l.push(t)})}),u="["+l.join(",")+"]",this.assign(t,u),i(u);break;case p.ObjectExpression:l=[],ct(n.properties,function(e){c.recurse(e.value,c.nextId(),ut,function(t){l.push(c.escape(e.key.type===p.Identifier?e.key.name:""+e.key.value)+":"+t)})}),u="{"+l.join(",")+"}",this.assign(t,u),i(u);break;case p.ThisExpression:this.assign(t,"s"),i("s");break;case p.LocalsExpression:this.assign(t,"l"),i("l");break;case p.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),i[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){var i;!0===t?e():((i=this.current().body).push("if(",t,"){"),e(),i.push("}"),n&&(i.push("else{"),n(),i.push("}")))},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,i,o,r){var s=this;return function(){s.recurse(t,e,n,i,o,r)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(ft(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(y(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw d("esc")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},Be.prototype={compile:function(t,e){var i,o,r=this,n=this.astBuilder.ast(t),s=(this.expression=t,this.expensiveChecks=e,u(n,r.$filter),(t=Ue(n))&&(i=this.recurse(t)),(t=ze(n.body))&&(o=[],ct(t,function(t,e){var n=r.recurse(t);t.input=n,o.push(n),t.watchId=e})),[]);return ct(n.body,function(t){s.push(r.recurse(t.expression))}),t=0===n.body.length?function(){}:1===n.body.length?s[0]:function(e,n){var i;return ct(s,function(t){i=t(e,n)}),i},i&&(t.assign=function(t,e,n){return i(t,n,e)}),o&&(t.inputs=o),t.literal=qe(n),t.constant=n.constant,t},recurse:function(t,a,e){var r,l,u,c=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case p.Literal:return this.value(t.value,a);case p.UnaryExpression:return l=this.recurse(t.argument),this["unary"+t.operator](l,a);case p.BinaryExpression:case p.LogicalExpression:return r=this.recurse(t.left),l=this.recurse(t.right),this["binary"+t.operator](r,l,a);case p.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),a);case p.Identifier:return Pe(t.name,c.expression),c.identifier(t.name,c.expensiveChecks||Ye(t.name),a,e,c.expression);case p.MemberExpression:return r=this.recurse(t.object,!1,!!e),t.computed||(Pe(t.property.name,c.expression),l=t.property.name),t.computed&&(l=this.recurse(t.property)),t.computed?this.computedMember(r,l,a,e,c.expression):this.nonComputedMember(r,l,c.expensiveChecks,a,e,c.expression);case p.CallExpression:return u=[],ct(t.arguments,function(t){u.push(c.recurse(t))}),t.filter&&(l=this.$filter(t.callee.name)),t.filter||(l=this.recurse(t.callee,!0)),t.filter?function(t,e,n,i){for(var o=[],r=0;r<u.length;++r)o.push(u[r](t,e,n,i));return t=l.apply(ut,o,i),a?{context:ut,name:ut,value:t}:t}:function(t,e,n,i){var o=l(t,e,n,i);if(null!=o.value){He(o.context,c.expression),Le(o.value,c.expression);for(var r=[],s=0;s<u.length;++s)r.push(He(u[s](t,e,n,i),c.expression));r=He(o.value.apply(o.context,r),c.expression)}return a?{value:r}:r};case p.AssignmentExpression:return r=this.recurse(t.left,!0,1),l=this.recurse(t.right),function(t,e,n,i){var o=r(t,e,n,i);return t=l(t,e,n,i),He(o.value,c.expression),je(o.context),o.context[o.name]=t,a?{value:t}:t};case p.ArrayExpression:return u=[],ct(t.elements,function(t){u.push(c.recurse(t))}),function(t,e,n,i){for(var o=[],r=0;r<u.length;++r)o.push(u[r](t,e,n,i));return a?{value:o}:o};case p.ObjectExpression:return u=[],ct(t.properties,function(t){u.push({key:t.key.type===p.Identifier?t.key.name:""+t.key.value,value:c.recurse(t.value)})}),function(t,e,n,i){for(var o={},r=0;r<u.length;++r)o[u[r].key]=u[r].value(t,e,n,i);return a?{value:o}:o};case p.ThisExpression:return function(t){return a?{value:t}:t};case p.LocalsExpression:return function(t,e){return a?{value:e}:e};case p.NGValueParameter:return function(t,e,n,i){return a?{value:n}:n}}},"unary+":function(o,r){return function(t,e,n,i){return t=A(t=o(t,e,n,i))?+t:0,r?{value:t}:t}},"unary-":function(o,r){return function(t,e,n,i){return t=A(t=o(t,e,n,i))?-t:0,r?{value:t}:t}},"unary!":function(o,r){return function(t,e,n,i){return t=!o(t,e,n,i),r?{value:t}:t}},"binary+":function(o,r,s){return function(t,e,n,i){e=Fe(o(t,e,n,i),t=r(t,e,n,i));return s?{value:e}:e}},"binary-":function(r,s,a){return function(t,e,n,i){var o=r(t,e,n,i);return t=s(t,e,n,i),o=(A(o)?o:0)-(A(t)?t:0),a?{value:o}:o}},"binary*":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)*r(t,e,n,i),s?{value:t}:t}},"binary/":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)/r(t,e,n,i),s?{value:t}:t}},"binary%":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)%r(t,e,n,i),s?{value:t}:t}},"binary===":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)===r(t,e,n,i),s?{value:t}:t}},"binary!==":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)!==r(t,e,n,i),s?{value:t}:t}},"binary==":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)==r(t,e,n,i),s?{value:t}:t}},"binary!=":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)!=r(t,e,n,i),s?{value:t}:t}},"binary<":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)<r(t,e,n,i),s?{value:t}:t}},"binary>":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)>r(t,e,n,i),s?{value:t}:t}},"binary<=":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)<=r(t,e,n,i),s?{value:t}:t}},"binary>=":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)>=r(t,e,n,i),s?{value:t}:t}},"binary&&":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)&&r(t,e,n,i),s?{value:t}:t}},"binary||":function(o,r,s){return function(t,e,n,i){return t=o(t,e,n,i)||r(t,e,n,i),s?{value:t}:t}},"ternary?:":function(o,r,s,a){return function(t,e,n,i){return t=(o(t,e,n,i)?r:s)(t,e,n,i),a?{value:t}:t}},value:function(t,e){return function(){return e?{context:ut,name:ut,value:t}:t}},identifier:function(o,r,s,a,l){return function(t,e,n,i){return t=e&&o in e?e:t,a&&1!==a&&t&&!t[o]&&(t[o]={}),e=t?t[o]:ut,r&&He(e,l),s?{context:t,name:o,value:e}:e}},computedMember:function(a,l,u,c,h){return function(t,e,n,i){var o,r,s=a(t,e,n,i);return null!=s&&(o=l(t,e,n,i),Pe(o+="",h),c&&1!==c&&(je(s),s)&&!s[o]&&(s[o]={}),He(r=s[o],h)),u?{context:s,name:o,value:r}:r}},nonComputedMember:function(o,r,s,a,l,u){return function(t,e,n,i){return t=o(t,e,n,i),l&&1!==l&&(je(t),t)&&!t[r]&&(t[r]={}),e=null!=t?t[r]:ut,(s||Ye(r))&&He(e,u),a?{context:t,name:r,value:e}:e}},inputs:function(o,r){return function(t,e,n,i){return i?i[r]:o(t,e,n)}}},function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new p(this.lexer),this.astCompiler=new(n.csp?Be:Ve)(this.ast,e)}),xo=(wo.prototype={constructor:wo,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}},Object.prototype.valueOf),_o=k("$sce"),f={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},wt=k("$compile"),e=lt.createElement("a"),ko=cn(l.location.href),Co=(pn.$inject=["$document"],mn.$inject=["$provide"],"0"),To=(yn.$inject=["$locale"],$n.$inject=["$locale"],{yyyy:t("FullYear",4),yy:t("FullYear",2,0,!0),y:t("FullYear",1),MMMM:_n("Month"),MMM:_n("Month",!0),MM:t("Month",2,1),M:t("Month",1,1),dd:t("Date",2),d:t("Date",1),HH:t("Hours",2),H:t("Hours",1),hh:t("Hours",2,-12),h:t("Hours",1,-12),mm:t("Minutes",2),m:t("Minutes",1),ss:t("Seconds",2),s:t("Seconds",1),sss:t("Milliseconds",3),EEEE:_n("Day"),EEE:_n("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){return(0<=(t=-1*n)?"+":"")+(xn(Math[0<t?"floor":"ceil"](t/60),2)+xn(Math.abs(t%60),2))},ww:Cn(2),w:Cn(1),G:Tn,GG:Tn,GGG:Tn,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}}),Do=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,So=/^\-?\d+$/,Eo=(Dn.$inject=["$locale"],_(I)),Mo=_(Bn),Ao=(Mn.$inject=["$parse"],_({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){var n;"a"===e[0].nodeName.toLowerCase()&&(n="[object SVGAnimatedString]"===h.call(e.prop("href"))?"xlink:href":"href",e.on("click",function(t){e.attr(n)||t.preventDefault()}))}}})),Oo={},Io=(ct(xi,function(t,i){function o(t,e,n){t.$watch(n[r],function(t){n.$set(i,!!t)})}var r,e;"multiple"!=t&&(r=ne("ng-"+i),e="checked"===t?function(t,e,n){n.ngModel!==n[r]&&o(t,0,n)}:o,Oo[r]=function(){return{restrict:"A",priority:100,link:e}})}),ct(ki,function(t,i){Oo[i]=function(){return{priority:100,link:function(t,e,n){"ngPattern"===i&&"/"==n.ngPattern.charAt(0)&&(e=n.ngPattern.match(qn))?n.$set("ngPattern",new RegExp(e[1],e[2])):t.$watch(n[i],function(t){n.$set(i,t)})}}}}),ct(["src","srcset","href"],function(r){var s=ne("ng-"+r);Oo[s]=function(){return{priority:99,link:function(t,e,n){var i=r,o=r;"href"===r&&"[object SVGAnimatedString]"===h.call(e.prop("href"))&&(o="xlinkHref",n.$attr[o]="xlink:href",i=null),n.$observe(s,function(t){t?(n.$set(o,t),Zn&&i&&e.prop(i,n[o])):"href"===r&&n.$set(o,null)})}}}}),{$addControl:M,$$renameControl:function(t,e){t.$name=e},$removeControl:M,$setValidity:M,$setDirty:M,$setPristine:M,$setSubmitted:M}),Po=(On.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Oi()),No=Oi(!0),Ho=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Lo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,jo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Ro=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Kn=/^(\d{4})-(\d{2})-(\d{2})$/,Fo=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,zo=/^(\d{4})-W(\d\d)$/,Wo=/^(\d{4})-(\d\d)$/,Uo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,qo={text:function(t,e,n,i,o,r){Pn(0,e,n,i,o,r),In(i)},date:Hn("date",Kn,Nn(Kn,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Hn("datetimelocal",Fo,Nn(Fo,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:Hn("time",Uo,Nn(Uo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Hn("week",zo,function(t,e){if(v(t))return t;if(ft(t)){zo.lastIndex=0;var n,i,o,r,s,a,t=zo.exec(t);if(t)return n=+t[1],a=+t[2],r=o=i=t=0,s=kn(n),a=7*(a-1),e&&(t=e.getHours(),i=e.getMinutes(),o=e.getSeconds(),r=e.getMilliseconds()),new Date(n,0,s.getDate()+a,t,i,o,r)}return NaN},"yyyy-Www"),month:Hn("month",Wo,Nn(Wo,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,i,o,r){var s,a;Ln(0,e,0,i),Pn(0,e,n,i,o,r),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:Ro.test(t)?parseFloat(t):ut}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!y(t))throw pr("numfmt",t);t=t.toString()}return t}),(A(n.min)||n.ngMin)&&(i.$validators.min=function(t){return i.$isEmpty(t)||dt(s)||s<=t},n.$observe("min",function(t){A(t)&&!y(t)&&(t=parseFloat(t,10)),s=y(t)&&!isNaN(t)?t:ut,i.$validate()})),(A(n.max)||n.ngMax)&&(i.$validators.max=function(t){return i.$isEmpty(t)||dt(a)||t<=a},n.$observe("max",function(t){A(t)&&!y(t)&&(t=parseFloat(t,10)),a=y(t)&&!isNaN(t)?t:ut,i.$validate()}))},url:function(t,e,n,i,o,r){Pn(0,e,n,i,o,r),In(i),i.$$parserName="url",i.$validators.url=function(t,e){t=t||e;return i.$isEmpty(t)||Lo.test(t)}},email:function(t,e,n,i,o,r){Pn(0,e,n,i,o,r),In(i),i.$$parserName="email",i.$validators.email=function(t,e){t=t||e;return i.$isEmpty(t)||jo.test(t)}},radio:function(t,e,n,i){dt(n.name)&&e.attr("name",++Jn),e.on("click",function(t){e[0].checked&&i.$setViewValue(n.value,t&&t.type)}),i.$render=function(){e[0].checked=n.value==i.$viewValue},n.$observe("value",i.$render)},checkbox:function(t,e,n,i,o,r,s,a){var l=jn(a,t,"ngTrueValue",n.ngTrueValue,!0),u=jn(a,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",function(t){i.$setViewValue(e[0].checked,t&&t.type)}),i.$render=function(){e[0].checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push(function(t){return O(t,l)}),i.$parsers.push(function(t){return t?l:u})},hidden:M,button:M,submit:M,reset:M,file:M},Vo=["$browser","$sniffer","$filter","$parse",function(o,r,s,a){return{restrict:"E",require:["?ngModel"],link:{pre:function(t,e,n,i){i[0]&&(qo[I(n.type)]||qo.text)(t,e,n,i[0],r,o,s,a)}}}}],Bo=/^(true|false|\d+)$/,Yo=["$compile",function(i){return{restrict:"AC",compile:function(t){return i.$$addBindingClass(t),function(t,e,n){i.$$addBindingInfo(e,n.ngBind),e=e[0],t.$watch(n.ngBind,function(t){e.textContent=dt(t)?"":t})}}}}],Go=["$interpolate","$compile",function(i,o){return{compile:function(t){return o.$$addBindingClass(t),function(t,e,n){t=i(e.attr(n.$attr.ngBindTemplate)),o.$$addBindingInfo(e,t.expressions),e=e[0],n.$observe("ngBindTemplate",function(t){e.textContent=dt(t)?"":t})}}}}],Ko=["$sce","$parse","$compile",function(r,n,s){return{restrict:"A",compile:function(t,e){var i=n(e.ngBindHtml),o=n(e.ngBindHtml,function(t){return(t||"").toString()});return s.$$addBindingClass(t),function(t,e,n){s.$$addBindingInfo(e,n.ngBindHtml),t.$watch(o,function(){e.html(r.getTrustedHtml(i(t))||"")})}}}}],Xo=_({restrict:"A",require:"ngModel",link:function(t,e,n,i){i.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Qo=Rn("",!0),Jo=Rn("Odd",0),Zo=Rn("Even",1),tr=An({compile:function(t,e){e.$set("ngCloak",ut),t.removeClass("ng-cloak")}}),er=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],nr={},ir={blur:!0,focus:!0},or=(ct("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(r){var s=ne("ng-"+r);nr[s]=["$parse","$rootScope",function(n,o){return{restrict:"A",compile:function(t,e){var i=n(e[s],null,!0);return function(n,t){t.on(r,function(t){function e(){i(n,{$event:t})}ir[r]&&o.$$phase?n.$evalAsync(e):n.$apply(e)})}}}}]}),["$animate",function(l){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(t,n,i,e,o){var r,s,a;t.$watch(i.ngIf,function(t){t?s||o(function(t,e){s=e,t[t.length++]=lt.createComment(" end ngIf: "+i.ngIf+" "),r={clone:t},l.enter(t,n.parent(),n)}):(a&&(a.remove(),a=null),s&&(s.$destroy(),s=null),r&&(a=et(r.clone),l.leave(a).then(function(){a=null}),r=null))})}}}]),rr=["$templateRequest","$anchorScroll","$animate",function(m,g,v){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:x.noop,compile:function(t,e){var n=e.ngInclude||e.src,p=e.onload||"",f=e.autoscroll;return function(r,s,t,a,l){function u(){e&&(e.remove(),e=null),c&&(c.$destroy(),c=null),h&&(v.leave(h).then(function(){e=null}),e=h,h=null)}var c,e,h,d=0;r.$watch(n,function(n){function i(){!A(f)||f&&!r.$eval(f)||g()}var o=++d;n?(m(n,!0).then(function(t){var e;r.$$destroyed||o!==d||(e=r.$new(),a.template=t,t=l(e,function(t){u(),v.enter(t,null,s).then(i)}),h=t,(c=e).$emit("$includeContentLoaded",n),r.$eval(p))},function(){r.$$destroyed||o!==d||(u(),r.$emit("$includeContentError",n))}),r.$emit("$includeContentRequested",n)):(u(),a.template=null)})}}}}],sr=["$compile",function(o){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,e,n,i){h.call(e[0]).match(/SVG/)?(e.empty(),o(ot(i.template,lt).childNodes)(t,function(t){e.append(t)},{futureParentElement:e})):(e.html(i.template),o(e.contents())(t))}}}],ar=An({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),lr="ng-valid",ur="ng-invalid",cr="ng-pristine",hr="ng-dirty",dr="ng-pending",pr=k("ngModel"),fr=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(o,e,r,s,a,n,i,l,c,t){this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=ut,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=ut,this.$name=t(r.name||"",!1)(o),this.$$parentForm=Io;var h,u=a(r.ngModel),d=u.assign,p=u,f=d,m=null,g=this,v=(this.$$setOptions=function(t){if((g.$options=t)&&t.getterSetter){var n=a(r.ngModel+"()"),i=a(r.ngModel+"($$$p)");p=function(t){var e=u(t);return e=mt(e)?n(t):e},f=function(t,e){mt(u(t))?i(t,{$$$p:g.$modelValue}):d(t,g.$modelValue)}}else if(!u.assign)throw pr("nonassign",r.ngModel,kt(s))},this.$render=M,this.$isEmpty=function(t){return dt(t)||""===t||null===t||t!=t},this.$$updateEmptyClasses=function(t){g.$isEmpty(t)?(n.removeClass(s,"ng-not-empty"),n.addClass(s,"ng-empty")):(n.removeClass(s,"ng-empty"),n.addClass(s,"ng-not-empty"))},0);Fn({ctrl:this,$element:s,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:n}),this.$setPristine=function(){g.$dirty=!1,g.$pristine=!0,n.removeClass(s,hr),n.addClass(s,cr)},this.$setDirty=function(){g.$dirty=!0,g.$pristine=!1,n.removeClass(s,cr),n.addClass(s,hr),g.$$parentForm.$setDirty()},this.$setUntouched=function(){g.$touched=!1,g.$untouched=!0,n.setClass(s,"ng-untouched","ng-touched")},this.$setTouched=function(){g.$touched=!0,g.$untouched=!1,n.setClass(s,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){i.cancel(m),g.$viewValue=g.$$lastCommittedViewValue,g.$render()},this.$validate=function(){var e,n,i,o;y(g.$modelValue)&&isNaN(g.$modelValue)||(e=g.$$rawModelValue,n=g.$valid,i=g.$modelValue,o=g.$options&&g.$options.allowInvalid,g.$$runValidators(e,g.$$lastCommittedViewValue,function(t){o||n===t||(g.$modelValue=t?e:ut,g.$modelValue!==i&&g.$$writeModelToScope())}))},this.$$runValidators=function(n,i,e){function o(t,e){u===v&&g.$setValidity(t,e)}function t(t){u===v&&e(t)}var r,s,a,l,u=++v;l=g.$$parserName||"parse",(dt(h)?(o(l,null),1):(h||(ct(g.$validators,function(t,e){o(e,null)}),ct(g.$asyncValidators,function(t,e){o(e,null)})),o(l,h),h))&&(a=!0,ct(g.$validators,function(t,e){t=t(n,i);a=a&&t,o(e,t)}),a||(ct(g.$asyncValidators,function(t,e){o(e,null)}),0))?(r=[],s=!0,ct(g.$asyncValidators,function(t,e){t=t(n,i);if(!t||!mt(t.then))throw pr("nopromise",t);o(e,ut),r.push(t.then(function(){o(e,!0)},function(t){o(e,s=!1)}))}),r.length?c.all(r).then(function(){t(s)},M):t(!0)):t(!1)},this.$commitViewValue=function(){var t=g.$viewValue;i.cancel(m),(g.$$lastCommittedViewValue!==t||""===t&&g.$$hasNativeValidators)&&(g.$$updateEmptyClasses(t),g.$$lastCommittedViewValue=t,g.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=g.$$lastCommittedViewValue;if(h=!dt(e)||ut)for(var t=0;t<g.$parsers.length;t++)if(dt(e=g.$parsers[t](e))){h=!1;break}y(g.$modelValue)&&isNaN(g.$modelValue)&&(g.$modelValue=p(o));var n=g.$modelValue,i=g.$options&&g.$options.allowInvalid;g.$$rawModelValue=e,i&&(g.$modelValue=e,g.$modelValue!==n)&&g.$$writeModelToScope(),g.$$runValidators(e,g.$$lastCommittedViewValue,function(t){i||(g.$modelValue=t?e:ut,g.$modelValue!==n&&g.$$writeModelToScope())})},this.$$writeModelToScope=function(){f(o,g.$modelValue),ct(g.$viewChangeListeners,function(t){try{t()}catch(t){e(t)}})},this.$setViewValue=function(t,e){g.$viewValue=t,g.$options&&!g.$options.updateOnDefault||g.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(t){var e=0,n=g.$options;n&&A(n.debounce)&&(y(n=n.debounce)?e=n:y(n[t])?e=n[t]:y(n.default)&&(e=n.default)),i.cancel(m),e?m=i(function(){g.$commitViewValue()},e):l.$$phase?g.$commitViewValue():o.$apply(function(){g.$commitViewValue()})},o.$watch(function(){var t=p(o);if(t!==g.$modelValue&&(g.$modelValue==g.$modelValue||t==t)){g.$modelValue=g.$$rawModelValue=t,h=ut;for(var e=g.$formatters,n=e.length,i=t;n--;)i=e[n](i);g.$viewValue!==i&&(g.$$updateEmptyClasses(i),g.$viewValue=g.$$lastCommittedViewValue=i,g.$render(),g.$$runValidators(t,i,M))}return t})}],mr=["$rootScope",function(r){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:fr,priority:1,compile:function(t){return t.addClass(cr).addClass("ng-untouched").addClass(lr),{pre:function(t,e,n,i){var o=i[0];e=i[1]||o.$$parentForm,o.$$setOptions(i[2]&&i[2].$options),e.$addControl(o),n.$observe("name",function(t){o.$name!==t&&o.$$parentForm.$$renameControl(o,t)}),t.$on("$destroy",function(){o.$$parentForm.$removeControl(o)})},post:function(e,t,n,i){var o=i[0];o.$options&&o.$options.updateOn&&t.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),t.on("blur",function(t){o.$touched||(r.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],gr=/(\s+|^)default(\s+|$)/,vr=An({terminal:!0,priority:1e3}),br=k("ngOptions"),yr=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,$r=["$compile","$parse",function(b,w){var y=lt.createElement("option"),$=lt.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,i){i[0].registerOption=M},post:function(t,r,e,n){function s(t,e){(t.element=e).disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function a(t,e,n,i){return e&&I(e.nodeName)===n?n=e:(n=i.cloneNode(!1),e?t.insertBefore(n,e):t.appendChild(n)),n}function l(t){for(var e;t;)e=t.nextSibling,jt(t),t=e}function i(){var t,e=g&&c.readValue(),i=(g=v.getOptions(),{}),o=r[0].firstChild;f&&r.prepend(u),o=function(t){var e=u&&u[0],n=m&&m[0];if(e||n)for(;t&&(t===e||t===n||8===t.nodeType||"option"===gt(t)&&""===t.value);)t=t.nextSibling;return t}(o),g.items.forEach(function(t){var e,n;A(t.group)?((e=i[t.group])||(e=a(r[0],o,"optgroup",$),o=e.nextSibling,e.label=t.group,e=i[t.group]={groupElement:e,currentOptionElement:e.firstChild}),s(t,n=a(e.groupElement,e.currentOptionElement,"option",y)),e.currentOptionElement=n.nextSibling):(s(t,n=a(r[0],o,"option",y)),o=n.nextSibling)}),Object.keys(i).forEach(function(t){l(i[t].currentOptionElement)}),l(o),h.$render(),h.$isEmpty(e)||(t=c.readValue(),v.trackBy||d?O(e,t):e===t)||(h.$setViewValue(t),h.$render())}var u,c=n[0],h=n[1],d=e.multiple;n=0;for(var o=r.children(),p=o.length;n<p;n++)if(""===o[n].value){u=o.eq(n);break}var f=!!u,m=bt(y.cloneNode(!1));m.val("?");var g,v=function(t,e,u){function c(t,e,n,i,o){this.selectValue=t,this.viewValue=e,this.label=n,this.group=i,this.disabled=o}function h(t){var e;if(!i&&S(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}var n,i,d,p,o,f,m,g,v,b,y,r,$,a=t.match(yr);if(a)return n=a[5]||a[7],i=a[6],t=/ as /.test(a[0])&&a[1],d=a[9],e=w(a[2]?a[1]:n),p=t&&w(t)||e,o=d&&w(d),f=d?function(t,e){return o(u,e)}:function(t){return qt(t)},m=function(t,e){return f(t,$(t,e))},g=w(a[2]||a[1]),v=w(a[3]||""),b=w(a[4]||""),y=w(a[8]),r={},$=i?function(t,e){return r[i]=e,r[n]=t,r}:function(t){return r[n]=t,r},{trackBy:d,getTrackByValue:m,getWatchables:w(y,function(t){for(var e=[],n=h(t=t||[]),i=n.length,o=0;o<i;o++){var r=t===n?o:n[o],s=$(t[r],r),r=f(t[r],s);e.push(r),(a[2]||a[1])&&(r=g(u,s),e.push(r)),a[4]&&(s=b(u,s),e.push(s))}return e}),getOptions:function(){for(var t=[],e={},n=y(u)||[],i=h(n),o=i.length,r=0;r<o;r++){var s=n===i?r:i[r],a=$(n[s],s),l=p(u,a),l=new c(s=f(l,a),l,g(u,a),v(u,a),b(u,a));t.push(l),e[s]=l}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[m(t)]},getViewValueFromOption:function(t){return d?x.copy(t.viewValue):t.viewValue}}}};throw br("iexp",t,kt(e))}(e.ngOptions,r,t);d?(h.$isEmpty=function(t){return!t||0===t.length},c.writeValue=function(t){g.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){(t=g.getOptionFromViewValue(t))&&!t.disabled&&(t.element.selected=!0)})},c.readValue=function(){var t=r.val()||[],e=[];return ct(t,function(t){(t=g.selectValueMap[t])&&!t.disabled&&e.push(g.getViewValueFromOption(t))}),e},v.trackBy&&t.$watchCollection(function(){if(yt(h.$viewValue))return h.$viewValue.map(function(t){return v.getTrackByValue(t)})},function(){h.$render()})):(c.writeValue=function(t){var e=g.getOptionFromViewValue(t);e&&!e.disabled?r[0].value!==e.selectValue&&(m.remove(),f||u.remove(),r[0].value=e.selectValue,e.element.selected=!0,e.element.setAttribute("selected","selected")):(null===t||f?(m.remove(),f||r.prepend(u),r.val(""),u.prop("selected",!0),u):(f||u.remove(),r.prepend(m),r.val("?"),m.prop("selected",!0),m)).attr("selected",!0)},c.readValue=function(){var t=g.selectValueMap[r.val()];return t&&!t.disabled?(f||u.remove(),m.remove(),g.getViewValueFromOption(t)):null},v.trackBy&&t.$watch(function(){return v.getTrackByValue(h.$viewValue)},function(){h.$render()})),f?(u.remove(),b(u)(t),u.removeClass("ng-scope")):u=bt(y.cloneNode(!1)),i(),t.$watchCollection(v.getWatchables,i)}}}}],wr=["$locale","$interpolate","$log",function(f,m,g){var v=/{}/g,b=/^when(Minus)?(.+)$/;return{link:function(i,o,r){function s(t){o.text(t||"")}var a,t=r.count,l=r.$attr.when&&o.attr(r.$attr.when),u=r.offset||0,c=i.$eval(l)||{},h={},e=m.startSymbol(),n=m.endSymbol(),d=e+t+"-"+u+n,p=x.noop;ct(r,function(t,e){var n=b.exec(e);n&&(n=(n[1]?"-":"")+I(n[2]),c[n]=o.attr(r.$attr[e]))}),ct(c,function(t,e){h[e]=m(t.replace(v,d))}),i.$watch(t,function(t){var e=parseFloat(t),n=isNaN(e);(e=n||e in c?e:f.pluralCat(e-u))===a||n&&y(a)&&isNaN(a)||(p(),dt(n=h[e])?(null!=t&&g.debug("ngPluralize: no rule defined for '"+e+"' in "+l),p=M,s()):p=i.$watch(n,s),a=e)})}}}],xr=["$parse","$animate",function(a,C){function T(t,e,n,i,o,r,s){t[n]=i,o&&(t[o]=r),t.$index=e,t.$first=0===e,t.$last=e===s-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))}var D=k("ngRepeat");return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,e){var v=e.ngRepeat,b=lt.createComment(" end ngRepeat: "+v+" "),e=v.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!e)throw D("iexp",v);var n=e[1],i=e[2],y=e[3],o=e[4];if(!(e=n.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw D("iidexp",n);var r,$,w,x,s,_=e[3]||e[1],k=e[2];if(!y||/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)&&!/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y))return s={$id:qt},o?r=a(o):(w=function(t,e){return qt(e)},x=function(t){return t}),function(p,f,t,e,m){r&&($=function(t,e,n){return k&&(s[k]=t),s[_]=e,s.$index=n,r(p,s)});var g=vt();p.$watchCollection(i,function(t){var n,e,i,o,r,s,a,l,u,c,h=f[0],d=vt();if(y&&(p[y]=t),S(t))l=t,e=$||w;else for(c in e=$||x,l=[],t)Vn.call(t,c)&&"$"!==c.charAt(0)&&l.push(c);for(o=l.length,c=Array(o),n=0;n<o;n++)if(r=t===l?n:l[n],s=t[r],a=e(r,s,n),g[a])u=g[a],delete g[a],d[a]=u,c[n]=u;else{if(d[a])throw ct(c,function(t){t&&t.scope&&(g[t.id]=t)}),D("dupes",v,a,s);c[n]={id:a,scope:ut,clone:ut},d[a]=!0}for(i in g){if(a=et((u=g[i]).clone),C.leave(a),a[0].parentNode)for(n=0,e=a.length;n<e;n++)a[n].$$NG_REMOVED=!0;u.scope.$destroy()}for(n=0;n<o;n++)if(r=t===l?n:l[n],s=t[r],(u=c[n]).scope){for(i=h;(i=i.nextSibling)&&i.$$NG_REMOVED;);u.clone[0]!=i&&C.move(et(u.clone),null,bt(h)),h=u.clone[u.clone.length-1],T(u.scope,n,_,s,k,r,o)}else m(function(t,e){u.scope=e;e=b.cloneNode(!1);t[t.length++]=e,C.enter(t,null,bt(h)),h=e,u.clone=t,d[u.id]=u,T(u.scope,n,_,s,k,r,o)});g=d})};throw D("badident",y)}}}],_r=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngShow,function(t){i[t?"removeClass":"addClass"](e,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],kr=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngHide,function(t){i[t?"addClass":"removeClass"](e,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Cr=An(function(t,n,e){t.$watch(e.ngStyle,function(t,e){e&&t!==e&&ct(e,function(t,e){n.css(e,"")}),t&&n.css(t)},!0)}),Tr=["$animate",function(u){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,e,n,o){var r,s=[],a=[],l=[];t.$watch(n.ngSwitch||n.on,function(t){for(var e=0,n=a.length;e<n;++e)u.cancel(a[e]);for(e=a.length=0,n=l.length;e<n;++e){var i=et(s[e].clone);l[e].$destroy(),(a[e]=u.leave(i)).then(function(t,e){return function(){t.splice(e,1)}}(a,e))}s.length=0,l.length=0,(r=o.cases["!"+t]||o.cases["?"])&&ct(r,function(n){n.transclude(function(t,e){l.push(e);e=n.element;t[t.length++]=lt.createComment(" end ngSwitchWhen: "),s.push({clone:t}),u.enter(t,e.parent(),e)})})})}}}],Dr=An({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,o){i.cases["!"+n.ngSwitchWhen]=i.cases["!"+n.ngSwitchWhen]||[],i.cases["!"+n.ngSwitchWhen].push({transclude:o,element:e})}}),Sr=An({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,o){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:o,element:e})}}),Er=k("ngTransclude"),Mr=An({restrict:"EAC",link:function(t,e,n,i,o){if(n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),!o)throw Er("orphan",kt(e));o(function(t){t.length&&(e.empty(),e.append(t))},null,n.ngTransclude||n.ngTranscludeSlot)}}),Ar=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,e){"text/ng-template"==e.type&&n.put(e.id,t[0].text)}}}],Or={$setViewValue:M,$render:M},Ir=["$element","$scope","$attrs",function(e,t,n){var s=this,i=new Vt;s.ngModelCtrl=Or,s.unknownOption=bt(lt.createElement("option")),s.renderUnknownOption=function(t){t="? "+qt(t)+" ?",s.unknownOption.val(t),e.prepend(s.unknownOption),e.val(t)},t.$on("$destroy",function(){s.renderUnknownOption=M}),s.removeUnknownOption=function(){s.unknownOption.parent()&&s.unknownOption.remove()},s.readValue=function(){return s.removeUnknownOption(),e.val()},s.writeValue=function(t){s.hasOption(t)?(s.removeUnknownOption(),e.val(t),""===t&&s.emptyOption.prop("selected",!0)):null==t&&s.emptyOption?(s.removeUnknownOption(),e.val("")):s.renderUnknownOption(t)},s.addOption=function(t,e){var n;8!==e[0].nodeType&&(Z(t,'"option value"'),""===t&&(s.emptyOption=e),n=i.get(t)||0,i.put(t,n+1),s.ngModelCtrl.$render(),e[0].hasAttribute("selected"))&&(e[0].selected=!0)},s.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.remove(t),""===t&&(s.emptyOption=ut)):i.put(t,e-1))},s.hasOption=function(t){return!!i.get(t)},s.registerOption=function(t,n,i,e,o){var r;e?i.$observe("value",function(t){A(r)&&s.removeOption(r),r=t,s.addOption(t,n)}):o?t.$watch(o,function(t,e){i.$set("value",t),e!==t&&s.removeOption(e),s.addOption(t,n)}):s.addOption(i.value,n),n.on("$destroy",function(){s.removeOption(i.value),s.ngModelCtrl.$render()})}}],Pr=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,e){var o,r;return A(e.value)?o=n(e.value,!0):(r=n(t.text(),!0))||e.$set("value",t.text()),function(t,e,n){var i=e.parent();(i=i.data("$selectController")||i.parent().data("$selectController"))&&i.registerOption(t,e,n,o,r)}}}}],Nr=_({restrict:"E",terminal:!1});function Hr(t,e,n){return t[e]||(t[e]=n())}l.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(ai||(Kn=ii(),(Wn=dt(Kn)?l.jQuery:Kn?l[Kn]:ut)&&Wn.fn.on?(ht((bt=Wn).fn,{scope:wi.scope,isolateScope:wi.isolateScope,controller:wi.controller,injector:wi.injector,inheritedData:wi.inheritedData}),Ui=Wn.cleanData,Wn.cleanData=function(t){for(var e,n,i=0;null!=(n=t[i]);i++)(e=Wn._data(n,"events"))&&e.$destroy&&Wn(n).triggerHandler("$destroy");Ui(t)}):bt=a,x.element=bt,ai=!0),ht(Fo=x,{bootstrap:K,copy:L,extend:ht,merge:n,equals:O,element:bt,forEach:ct,injector:Yt,noop:M,bind:R,toJson:F,fromJson:z,identity:P,isUndefined:dt,isDefined:A,isString:ft,isFunction:mt,isObject:pt,isNumber:y,isElement:E,isArray:yt,version:ui,isDate:v,lowercase:I,uppercase:Bn,callbacks:{counter:0},getTestability:Q,$$minErr:k,$$csp:ni,reloadWithDebugInfo:X}),zi=k("$injector"),Wi=k("ng"),(Fo=Hr(Fo=l,"angular",Object)).$$minErr=Fo.$$minErr||k,(Un=Hr(Fo,"module",function(){var t={};return function(a,l,u){if("hasOwnProperty"===a)throw Wi("badname","module");return l&&t.hasOwnProperty(a)&&(t[a]=null),Hr(t,a,function(){function t(t,e,n,i){return i=i||o,function(){return i[n||"push"]([t,e,arguments]),s}}function e(n,i){return function(t,e){return e&&mt(e)&&(e.$$moduleName=a),o.push([n,i,arguments]),s}}var o,n,i,r,s;if(l)return o=[],r=t("$injector","invoke","push",n=[]),s={_invokeQueue:o,_configBlocks:n,_runBlocks:i=[],requires:l,name:a,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),component:e("$compileProvider","component"),config:r,run:function(t){return i.push(t),this}},u&&r(u),s;throw zi("nomod",a)})}}))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:en}),t.provider("$compile",ee).directive({a:Ao,input:Vo,textarea:Vo,form:Po,script:Ar,select:Hi,style:Nr,option:Pr,ngBind:Yo,ngBindHtml:Ko,ngBindTemplate:Go,ngClass:Qo,ngClassEven:Zo,ngClassOdd:Jo,ngCloak:tr,ngController:er,ngForm:No,ngHide:kr,ngIf:or,ngInclude:rr,ngInit:ar,ngNonBindable:vr,ngPluralize:wr,ngRepeat:xr,ngShow:_r,ngStyle:Cr,ngSwitch:Tr,ngSwitchWhen:Dr,ngSwitchDefault:Sr,ngOptions:$r,ngTransclude:Mr,ngModel:mr,ngList:Pi,ngChange:Xo,pattern:ji,ngPattern:ji,required:Li,ngRequired:Li,minlength:Fi,ngMinlength:Fi,maxlength:Ri,ngMaxlength:Ri,ngValue:Ii,ngModelOptions:Ni}).directive({ngInclude:sr}).directive(Oo).directive(nr),t.provider({$anchorScroll:Gt,$animate:Ji,$animateCss:Mi,$$animateJs:Ti,$$animateQueue:Di,$$AnimateRunner:Ei,$$animateAsyncRun:Si,$browser:Jt,$cacheFactory:Zt,$controller:se,$document:ae,$exceptionHandler:le,$filter:mn,$$forceReflow:Ai,$interpolate:ye,$interval:$e,$http:ge,$httpParamSerializer:ce,$httpParamSerializerJQLike:he,$httpBackend:be,$xhrFactory:ve,$location:Oe,$log:Ie,$parse:Ke,$rootScope:tn,$q:Xe,$$q:Qe,$sce:rn,$sceDelegate:on,$sniffer:sn,$templateCache:te,$templateRequest:an,$$testability:ln,$timeout:un,$window:dn,$$rAF:Ze,$$jqLite:Ut,$$HashMap:qi,$$cookieReader:fn})}]),x.module("ngLocale",[],["$provide",function(t){t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var n,i=0|t;return ut===e&&(e=Math.min((t=t,-1==(n=(t+="").indexOf("."))?0:t.length-n-1),3)),Math.pow(10,e),1==i&&0==e?"one":"other"}})}]),bt(lt).ready(function(){G(lt,K)}))}(window,document),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(s){"use strict";s.fn.emulateTransitionEnd=function(t){var e=!1,n=this;s(this).one("mmTransitionEnd",function(){e=!0});return setTimeout(function(){e||s(n).trigger(i.end)},t),this};function o(t,e){this.$element=s(t),this.options=s.extend({},o.DEFAULTS,e),this.transitioning=null,this.init()}var i=function(){var t,e=document.createElement("mm"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(void 0!==e.style[t])return{end:n[t]};return!1}(),t=(i&&(s.event.special.mmTransitionEnd={bindType:i.end,delegateType:i.end,handle:function(t){return s(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}}),o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0,doubleTapToGo:!1,activeClass:"active"},o.prototype.init=function(){var o=this,r=this.options.activeClass;this.$element.find("li."+r).has("ul").children("ul").addClass("collapse in"),this.$element.find("li").not("."+r).has("ul").children("ul").addClass("collapse"),this.options.doubleTapToGo&&this.$element.find("li."+r).has("ul").children("a").addClass("doubleTapToGo"),this.$element.find("li").has("ul").children("a").on("click.metisMenu",function(t){var e=s(this),n=e.parent("li"),i=n.children("ul");return t.preventDefault(),n.hasClass(r)?o.hide(i):o.show(i),o.options.doubleTapToGo&&o.doubleTapToGo(e)&&"#"!==e.attr("href")&&""!==e.attr("href")?(t.stopPropagation(),void(document.location=e.attr("href"))):void 0})},o.prototype.doubleTapToGo=function(t){var e=this.$element;return t.hasClass("doubleTapToGo")?(t.removeClass("doubleTapToGo"),!0):t.parent().children("ul").length?(e.find(".doubleTapToGo").removeClass("doubleTapToGo"),t.addClass("doubleTapToGo"),!1):void 0},o.prototype.show=function(t){var e=this.options.activeClass,n=s(t),t=n.parent("li");if(!this.transitioning&&!n.hasClass("in"))return t.addClass(e),this.options.toggle&&this.hide(t.siblings().children("ul.in")),n.removeClass("collapse").addClass("collapsing").height(0),this.transitioning=1,e=function(){n.removeClass("collapsing").addClass("collapse in").height(""),this.transitioning=0},i?void n.one("mmTransitionEnd",s.proxy(e,this)).emulateTransitionEnd(o.TRANSITION_DURATION).height(n[0].scrollHeight):e.call(this)},o.prototype.hide=function(t){var e=this.options.activeClass,n=s(t);if(!this.transitioning&&n.hasClass("in"))return n.parent("li").removeClass(e),n.height(n.height())[0].offsetHeight,n.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,t=function(){this.transitioning=0,n.removeClass("collapsing").addClass("collapse")},i?void n.height(0).one("mmTransitionEnd",s.proxy(t,this)).emulateTransitionEnd(o.TRANSITION_DURATION):t.call(this)},s.fn.metisMenu);s.fn.metisMenu=function(i){return this.each(function(){var t=s(this),e=t.data("mm"),n=s.extend({},o.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("mm",e=new o(this,n)),"string"==typeof i&&e[i]()})},s.fn.metisMenu.Constructor=o,s.fn.metisMenu.noConflict=function(){return s.fn.metisMenu=t,this}}(jQuery),function(x){x.fn.extend({slimScroll:function($){var w=x.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},$);return this.each(function(){function e(t){var e;o&&(e=0,(t=t||window.event).wheelDelta&&(e=-t.wheelDelta/120),t.detail&&(e=t.detail/3),x(t.target||t.srcTarget||t.srcElement).closest("."+w.wrapperClass).is(m.parent())&&i(e,!0),t.preventDefault&&!f&&t.preventDefault(),f||(t.returnValue=!1))}function i(t,e,n){f=!1;var i=t,o=m.outerHeight()-b.outerHeight();e&&(i=parseInt(b.css("top"))+t*parseInt(w.wheelStep)/100*b.outerHeight(),i=Math.min(Math.max(i,0),o),i=0<t?Math.ceil(i):Math.floor(i),b.css({top:i+"px"})),i=(d=parseInt(b.css("top"))/(m.outerHeight()-b.outerHeight()))*(m[0].scrollHeight-m.outerHeight()),n&&(t=(i=t)/m[0].scrollHeight*m.outerHeight(),t=Math.min(Math.max(t,0),o),b.css({top:t+"px"})),m.scrollTop(i),m.trigger("slimscrolling",~~i),r(),s()}function n(){h=Math.max(m.outerHeight()/m[0].scrollHeight*m.outerHeight(),30),b.css({height:h+"px"});var t=h==m.outerHeight()?"none":"block";b.css({display:t})}function r(){n(),clearTimeout(u),d==~~d?(f=w.allowPageScroll,p!=d&&m.trigger("slimscroll",0==~~d?"top":"bottom")):f=!1,p=d,h>=m.outerHeight()?f=!0:(b.stop(!0,!0).fadeIn("fast"),w.railVisible&&y.stop(!0,!0).fadeIn("fast"))}function s(){w.alwaysVisible||(u=setTimeout(function(){w.disableFadeOut&&o||a||l||(b.fadeOut("slow"),y.fadeOut("slow"))},1e3))}var o,a,l,u,c,h,d,p,f=!1,m=x(this);if(m.parent().hasClass(w.wrapperClass)){var g,v=m.scrollTop(),b=m.closest("."+w.barClass),y=m.closest("."+w.railClass);if(n(),x.isPlainObject($)){if("height"in $&&"auto"==$.height&&(m.parent().css("height","auto"),m.css("height","auto"),g=m.parent().parent().height(),m.parent().css("height",g),m.css("height",g)),"scrollTo"in $)v=parseInt(w.scrollTo);else if("scrollBy"in $)v+=parseInt(w.scrollBy);else if("destroy"in $)return b.remove(),y.remove(),void m.unwrap();i(v,!1,!0)}}else x.isPlainObject($)&&"destroy"in $||(w.height="auto"==w.height?m.parent().height():w.height,v=x("<div></div>").addClass(w.wrapperClass).css({position:"relative",overflow:"hidden",width:w.width,height:w.height}),m.css({overflow:"hidden",width:w.width,height:w.height}),y=x("<div></div>").addClass(w.railClass).css({width:w.size,height:"100%",position:"absolute",top:0,display:w.alwaysVisible&&w.railVisible?"block":"none","border-radius":w.railBorderRadius,background:w.railColor,opacity:w.railOpacity,zIndex:90}),b=x("<div></div>").addClass(w.barClass).css({background:w.color,width:w.size,position:"absolute",top:0,opacity:w.opacity,display:w.alwaysVisible?"block":"none","border-radius":w.borderRadius,BorderRadius:w.borderRadius,MozBorderRadius:w.borderRadius,WebkitBorderRadius:w.borderRadius,zIndex:99}),g="right"==w.position?{right:w.distance}:{left:w.distance},y.css(g),b.css(g),m.wrap(v),m.parent().append(b),m.parent().append(y),w.railDraggable&&b.bind("mousedown",function(e){var n=x(document);return l=!0,t=parseFloat(b.css("top")),pageY=e.pageY,n.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,b.css("top",currTop),i(0,b.position().top,!1)}),n.bind("mouseup.slimscroll",function(t){l=!1,s(),n.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(t){return t.stopPropagation(),t.preventDefault(),!1}),y.hover(function(){r()},function(){s()}),b.hover(function(){a=!0},function(){a=!1}),m.hover(function(){o=!0,r(),s()},function(){o=!1,s()}),m.bind("touchstart",function(t,e){t.originalEvent.touches.length&&(c=t.originalEvent.touches[0].pageY)}),m.bind("touchmove",function(t){f||t.originalEvent.preventDefault(),t.originalEvent.touches.length&&(i((c-t.originalEvent.touches[0].pageY)/w.touchScrollStep,!0),c=t.originalEvent.touches[0].pageY)}),n(),"bottom"===w.start?(b.css({top:m.outerHeight()-b.outerHeight()}),i(0,!0)):"top"!==w.start&&(i(x(w.start).position().top,null,!0),w.alwaysVisible||b.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",e,!1),this.addEventListener("mousewheel",e,!1)):document.attachEvent("onmousewheel",e))}),this}}),x.fn.extend({slimscroll:x.fn.slimScroll})}(jQuery),function(){function H(t,e){function n(){this.constructor=t}for(var i in e)J.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}var l,L,j,R,e,g,F,z,v,W,U,t,q,b,y,a,n,i,V,o,r,B,$,s,Y,w,u,c,x,_,k,h,d,p,f,m,G,K,X,Q,C,T=[].slice,J={}.hasOwnProperty,Z=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},tt={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},D=function(){var t;return null!=(t="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?t:+new Date},S=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,E=window.cancelAnimationFrame||window.mozCancelAnimationFrame;for(null==S&&(S=function(t){return setTimeout(t,50)},E=function(t){return clearTimeout(t)}),Y=function(e){var n,i=D();return(n=function(){var t=D()-i;return 33<=t?(i=D(),e(t,function(){return S(n)})):setTimeout(n,33-t)})()},s=function(){var t=arguments[0],e=arguments[1],n=3<=arguments.length?T.call(arguments,2):[];return"function"==typeof t[e]?t[e].apply(t,n):t[e]},a=function(){for(var t,e,n,i=arguments[0],o=2<=arguments.length?T.call(arguments,1):[],r=0,s=o.length;r<s;r++)if(e=o[r])for(t in e)J.call(e,t)&&(n=e[t],null!=i[t]&&"object"==typeof i[t]&&null!=n&&"object"==typeof n?a(i[t],n):i[t]=n);return i},q=function(t){for(var e,n,i=e=0,o=0,r=t.length;o<r;o++)n=t[o],i+=Math.abs(n),e++;return i/e},i=function(t,e){var n;if(null==t&&(t="options"),null==e&&(e=!0),n=document.querySelector("[data-pace-"+t+"]")){if(n=n.getAttribute("data-pace-"+t),!e)return n;try{return JSON.parse(n)}catch(t){return"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",t):void 0}}},M.prototype.on=function(t,e,n,i){var o;return null==i&&(i=!1),null==this.bindings&&(this.bindings={}),null==(o=this.bindings)[t]&&(o[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})},M.prototype.once=function(t,e,n){return this.on(t,e,n,!0)},M.prototype.off=function(t,e){var n,i,o;if(null!=(null!=(i=this.bindings)?i[t]:void 0)){if(null==e)return delete this.bindings[t];for(n=0,o=[];n<this.bindings[t].length;)o.push(this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):n++);return o}},M.prototype.trigger=function(){var t,e,n,i,o,r,s=arguments[0],a=2<=arguments.length?T.call(arguments,1):[];if(null!=(i=this.bindings)&&i[s]){for(n=0,r=[];n<this.bindings[s].length;)e=(o=this.bindings[s][n]).handler,t=o.ctx,o=o.once,e.apply(null!=t?t:this,a),r.push(o?this.bindings[s].splice(n,1):n++);return r}},C=M,g=window.Pace||{},window.Pace=g,a(g,C.prototype),$=g.options=a({},tt,window.paceOptions,i()),f=0,G=(X=["ajax","document","eventLag","elements"]).length;f<G;f++)!0===$[x=X[f]]&&($[x]=tt[x]);function M(){}function et(t){this.source=t,this.last=this.sinceLastUpdate=0,this.rate=$.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=s(this.source,"progress"))}function nt(){var t,e,n=this;this.progress=null!=(e=this.states[document.readyState])?e:100,t=document.onreadystatechange,document.onreadystatechange=function(){return null!=n.states[document.readyState]&&(n.progress=n.states[document.readyState]),"function"==typeof t?t.apply(null,arguments):void 0}}function A(t){this.selector=t,this.progress=0,this.check()}function it(){var t=this;this.elements=[],V().on("request",function(){return t.watch.apply(t,arguments)})}function O(){var e,o=this;O.__super__.constructor.apply(this,arguments),e=function(n){var i=n.open;return n.open=function(t,e){return c(t)&&o.trigger("request",{type:t,url:e,request:n}),i.apply(n,arguments)}},window.XMLHttpRequest=function(t){t=new p(t);return e(t),t};try{n(window.XMLHttpRequest,p)}catch(t){}if(null!=d){window.XDomainRequest=function(){var t=new d;return e(t),t};try{n(window.XDomainRequest,d)}catch(t){}}if(null!=h&&$.ajax.trackWebSockets){window.WebSocket=function(t,e){var n=null!=e?new h(t,e):new h(t);return c("socket")&&o.trigger("request",{type:"socket",url:t,protocols:e,request:n}),n};try{n(window.WebSocket,h)}catch(t){}}}function I(){this.bindings={}}function P(){this.progress=0}function N(){return N.__super__.constructor.apply(this,arguments)}C=Error,H(N,C),e=N,P.prototype.getElement=function(){var t;if(null==this.el){if(!(t=document.querySelector($.target)))throw new e;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/pace-done/g,""),document.body.className+=" pace-running",this.el.innerHTML='<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>',null!=t.firstChild?t.insertBefore(this.el,t.firstChild):t.appendChild(this.el)}return this.el},P.prototype.finish=function(){var t=this.getElement();return t.className=t.className.replace("pace-active",""),t.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},P.prototype.update=function(t){return this.progress=t,this.render()},P.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(t){e=t}return this.el=void 0},P.prototype.render=function(){var t,e,n,i,o,r;if(null==document.querySelector($.target))return!1;for(t=this.getElement(),n="translate3d("+this.progress+"%, 0, 0)",i=0,o=(r=["webkitTransform","msTransform","transform"]).length;i<o;i++)t.children[0].style[r[i]]=n;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(t.children[0].setAttribute("data-progress-text",(0|this.progress)+"%"),100<=this.progress?e="99":(e=this.progress<10?"0":"",e+=0|this.progress),t.children[0].setAttribute("data-progress",""+e)),this.lastRenderedProgress=this.progress},P.prototype.done=function(){return 100<=this.progress},L=P,I.prototype.trigger=function(t,e){var n,i,o,r,s;if(null!=this.bindings[t]){for(s=[],i=0,o=(r=this.bindings[t]).length;i<o;i++)n=r[i],s.push(n.call(this,e));return s}},I.prototype.on=function(t,e){var n;return null==(n=this.bindings)[t]&&(n[t]=[]),this.bindings[t].push(e)},i=I,p=window.XMLHttpRequest,d=window.XDomainRequest,h=window.WebSocket,n=function(t,e){var n,i,o=[];for(n in e.prototype)try{i=e.prototype[n],o.push(null==t[n]&&"function"!=typeof i?t[n]=i:void 0)}catch(t){0}return o},r=[],g.ignore=function(){var t=arguments[0],e=2<=arguments.length?T.call(arguments,1):[];return r.unshift("ignore"),t=t.apply(null,e),r.shift(),t},g.track=function(){var t=arguments[0],e=2<=arguments.length?T.call(arguments,1):[];return r.unshift("track"),t=t.apply(null,e),r.shift(),t},c=function(t){if(null==t&&(t="GET"),"track"===r[0])return"force";if(!r.length&&$.ajax){if("socket"===t&&$.ajax.trackWebSockets)return!0;if(t=t.toUpperCase(),0<=Z.call($.ajax.trackMethods,t))return!0}return!1},H(O,i),F=O,m=null,u=function(t){for(var e,n=$.ajax.ignoreURLs,i=0,o=n.length;i<o;i++)if("string"==typeof(e=n[i])){if(-1!==t.indexOf(e))return!0}else if(e.test(t))return!0;return!1},(V=function(){return m=null==m?new F:m})().on("request",function(t){var r,s=t.type,a=t.request,e=t.url;return u(e)||g.running||!1===$.restartOnRequestAfter&&"force"!==c(s)?void 0:(r=arguments,"boolean"==typeof(e=$.restartOnRequestAfter||0)&&(e=0),setTimeout(function(){var t,e,n,i,o;if("socket"===s?a.readyState<2:0<(n=a.readyState)&&n<4){for(g.restart(),o=[],t=0,e=(i=g.sources).length;t<e;t++){if((x=i[t])instanceof l){x.watch.apply(x,r);break}o.push(void 0)}return o}},e))}),it.prototype.watch=function(t){var e=t.type,n=t.request,t=t.url;return u(t)?void 0:(t=new("socket"===e?W:U)(n),this.elements.push(t))},l=it,U=function(e){var t,n,i,o,r=this;if(this.progress=0,null!=window.ProgressEvent)for(e.addEventListener("progress",function(t){return r.progress=t.lengthComputable?100*t.loaded/t.total:r.progress+(100-r.progress)/2},!1),t=0,n=(o=["load","abort","timeout","error"]).length;t<n;t++)e.addEventListener(o[t],function(){return r.progress=100},!1);else i=e.onreadystatechange,e.onreadystatechange=function(){var t;return 0===(t=e.readyState)||4===t?r.progress=100:3===e.readyState&&(r.progress=50),"function"==typeof i?i.apply(null,arguments):void 0}},W=function(t){for(var e,n=this,i=this.progress=0,o=(e=["error","open"]).length;i<o;i++)t.addEventListener(e[i],function(){return n.progress=100},!1)},C=function(t){var e,n,i,o;for(null==t&&(t={}),this.elements=[],null==t.selectors&&(t.selectors=[]),n=0,i=(o=t.selectors).length;n<i;n++)e=o[n],this.elements.push(new j(e))},A.prototype.check=function(){var t=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return t.check()},$.elements.checkInterval)},A.prototype.done=function(){return this.progress=100},j=A,nt.prototype.states={loading:0,interactive:50,complete:100},i=nt,R=function(){var e,n,i,o,r,s=this;this.progress=0,r=[],o=0,i=D(),n=setInterval(function(){var t=D()-i-50;return i=D(),r.push(t),r.length>$.eventLag.sampleCount&&r.shift(),e=q(r),++o>=$.eventLag.minSamples&&e<$.eventLag.lagThreshold?(s.progress=100,clearInterval(n)):s.progress=3/(e+3)*100},50)},et.prototype.tick=function(t,e){return 100<=(e=null==e?s(this.source,"progress"):e)&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/$.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),e=1-Math.pow(this.progress/100,$.easeFactor),this.progress+=e*this.rate*t,this.progress=Math.min(this.lastProgress+$.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},v=et,y=t=k=b=w=_=null,g.running=!1,o=function(){return $.restartOnPushState?g.restart():void 0},null!=window.history.pushState&&(K=window.history.pushState,window.history.pushState=function(){return o(),K.apply(window.history,arguments)}),null!=window.history.replaceState&&(Q=window.history.replaceState,window.history.replaceState=function(){return o(),Q.apply(window.history,arguments)}),z={ajax:l,elements:C,document:i,eventLag:R},(B=function(){var t,e,n,i,o,r,s,a;for(g.sources=_=[],e=0,i=(r=["ajax","elements","document","eventLag"]).length;e<i;e++)!1!==$[t=r[e]]&&_.push(new z[t]($[t]));for(n=0,o=(a=null!=(s=$.extraSources)?s:[]).length;n<o;n++)x=a[n],_.push(new x($));return g.bar=b=new L,w=[],k=new v})(),g.stop=function(){return g.trigger("stop"),g.running=!1,b.destroy(),y=!0,null!=t&&("function"==typeof E&&E(t),t=null),B()},g.restart=function(){return g.trigger("restart"),g.stop(),g.start()},g.go=function(){var m;return g.running=!0,b.render(),m=D(),y=!1,t=Y(function(t,e){b.progress;for(var n,i,o,r,s,a,l,u,c,h=s=0,d=!0,p=a=0,f=_.length;a<f;p=++a)for(x=_[p],r=null!=w[p]?w[p]:w[p]=[],i=l=0,u=(n=null!=(c=x.elements)?c:[x]).length;l<u;i=++l)o=n[i],d&=(o=null!=r[i]?r[i]:r[i]=new v(o)).done,o.done||(h++,s+=o.tick(t));return b.update(k.tick(t,s/h)),b.done()||d||y?(b.update(100),g.trigger("done"),setTimeout(function(){return b.finish(),g.running=!1,g.trigger("hide")},Math.max($.ghostTime,Math.max($.minTime-(D()-m),0)))):e()})},g.start=function(t){a($,t),g.running=!0;try{b.render()}catch(t){e=t}return document.querySelector(".pace")?(g.trigger("start"),g.go()):setTimeout(g.start,50)},"function"==typeof define&&define.amd?define(function(){return g}):"object"==typeof exports?module.exports=g:$.startOnPageLoad&&g.start()}.call(this),function(){"use strict";function k(t){try{return angular.module(t)}catch(t){/No module/.test(t)||t.message.indexOf("$injector:nomod")}}function C(t,e,n,i){if(e)for(var o,r,s=0,a=e.length;s<a;s++)if(o=e[s],angular.isArray(o)){if(null!==t){if(!t.hasOwnProperty(o[0]))throw new Error("unsupported provider "+o[0]);r=t[o[0]]}var l=function(t,e){function n(t){r=!0,d[e][o].push(t),M("ocLazyLoad.componentLoaded",[e,o,t])}var i=t[2][0],o=t[1],r=!1;angular.isUndefined(d[e])&&(d[e]={}),angular.isUndefined(d[e][o])&&(d[e][o]=[]);if(angular.isString(i)&&-1===d[e][o].indexOf(i))n(i);else{if(!angular.isObject(i))return!1;angular.forEach(i,function(t){angular.isString(t)&&-1===d[e][o].indexOf(t)&&n(t)})}return r}(o,n);if("invoke"!==o[1])l&&angular.isDefined(r)&&r[o[1]].apply(r,o[2]);else{var u=function(t){var e=p.indexOf(n+"-"+t);(-1===e||i)&&(-1===e&&p.push(n+"-"+t),angular.isDefined(r))&&r[o[1]].apply(r,o[2])};if(angular.isFunction(o[2][0]))u(o[2][0]);else if(angular.isArray(o[2][0]))for(var c=0,h=o[2][0].length;c<h;c++)angular.isFunction(o[2][0][c])&&u(o[2][0][c])}}}function T(t){var e=null;return angular.isString(t)?e=t:angular.isObject(t)&&t.hasOwnProperty("name")&&angular.isString(t.name)&&(e=t.name),e}function s(n){var e,i,o,r;if(0===a.length&&(e=[n],i=["ng:app","ng-app","x-ng-app","data-ng-app"],o=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/,r=function(t){return t&&e.push(t)},angular.forEach(i,function(t){i[t]=!0,r(document.getElementById(t)),t=t.replace(":","\\:"),n[0].querySelectorAll&&(angular.forEach(n[0].querySelectorAll("."+t),r),angular.forEach(n[0].querySelectorAll("."+t+"\\:"),r),angular.forEach(n[0].querySelectorAll("["+t+"]"),r))}),angular.forEach(e,function(t){var e;0===a.length&&(e=" "+n.className+" ",(e=o.exec(e))?a.push((e[2]||"").replace(/\s+/g,",")):angular.forEach(t.attributes,function(t){0===a.length&&i[t.name]&&a.push(t.value)}))})),0===a.length)throw"No module found during bootstrap, unable to init ocLazyLoad";function s(t){var e;-1===D.indexOf(t)&&(D.push(t),C(null,(e=angular.module(t))._invokeQueue,t),C(null,e._configBlocks,t),angular.forEach(e.requires,s))}angular.forEach(a,function(t){s(t)})}var D=["ng"],a=[],d={},p=[],S=[],E={},t=angular.module("oc.lazyLoad",["ng"]),M=angular.noop,i=(t.provider("$ocLazyLoad",["$controllerProvider","$provide","$compileProvider","$filterProvider","$injector","$animateProvider",function(t,e,n,i,o,r){var y,$,w,a={},x={$controllerProvider:t,$compileProvider:n,$filterProvider:i,$provide:e,$injector:o,$animateProvider:r},_=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0],l=!1,u=!1;s(angular.element(window.document)),this.$get=["$log","$q","$templateCache","$http","$rootElement","$rootScope","$cacheFactory","$interval",function(h,d,r,s,t,n,e,p){function f(t,e,n){function i(t){var e=(new Date).getTime();return 0<=t.indexOf("?")?"&"===t.substring(0,t.length-1)?t+"_dc="+e:t+"&_dc="+e:t+"?_dc="+e}var o,r,s=d.defer();switch(angular.isUndefined(g.get(e))&&g.put(e,s.promise),t){case"css":(o=document.createElement("link")).type="text/css",o.rel="stylesheet",o.href=!1===n.cache?i(e):e;break;case"js":(o=document.createElement("script")).src=!1===n.cache?i(e):e;break;default:s.reject(new Error('Requested type "'+t+'" is not known. Could not inject "'+e+'"'))}o.onload=o.onreadystatechange=function(){o.readyState&&!/^c|loade/.test(o.readyState)||r||(o.onload=o.onreadystatechange=null,r=1,M("ocLazyLoad.fileLoaded",e),s.resolve())},o.onerror=function(){s.reject(new Error("Unable to load "+e))},o.async=n.serie?0:1;var a,l,u,c=_.lastChild;return n.insertBefore&&(a=angular.element(n.insertBefore))&&0<a.length&&(c=a[0]),_.insertBefore(o,c),"css"==t&&(v||(a=navigator.userAgent.toLowerCase(),/iP(hone|od|ad)/.test(navigator.platform)?(c=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),c=parseFloat([parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3]||0,10)].join(".")),b=c<6):-1<a.indexOf("android")?(c=parseFloat(a.slice(a.indexOf("android")+8)),b=c<4.4):-1<a.indexOf("safari")&&-1==a.indexOf("chrome")&&(c=parseFloat(a.match(/version\/([\.\d]+)/i)[1]),b=c<6)),b)&&(l=1e3,u=p(function(){try{o.sheet.cssRules,p.cancel(u),o.onload()}catch(t){--l<=0&&o.onerror()}},20)),s.promise}function m(t,e){function n(t){c=g.get(t),angular.isUndefined(c)||!1===e.cache?/\.(css|less)[^\.]*$/.test(t)&&-1===s.indexOf(t)?s.push(t):/\.(htm|html)[^\.]*$/.test(t)&&-1===a.indexOf(t)?a.push(t):-1===l.indexOf(t)&&l.push(t):c&&u.push(c)}var i,o,r,s=[],a=[],l=[],u=[],c=null;return angular.extend(e||{},t),e.serie?n(e.files.shift()):angular.forEach(e.files,function(t){n(t)}),0<s.length&&(i=d.defer(),$(s,function(t){angular.isDefined(t)&&$.hasOwnProperty("ocLazyLoadLoader")?(h.error(t),i.reject(t)):i.resolve()},e),u.push(i.promise)),0<a.length&&(o=d.defer(),w(a,function(t){angular.isDefined(t)&&w.hasOwnProperty("ocLazyLoadLoader")?(h.error(t),o.reject(t)):o.resolve()},e),u.push(o.promise)),0<l.length&&(r=d.defer(),y(l,function(t){angular.isDefined(t)&&y.hasOwnProperty("ocLazyLoadLoader")?(h.error(t),r.reject(t)):r.resolve()},e),u.push(r.promise)),e.serie&&0<e.files.length?d.all(u).then(function(){return m(t,e)}):d.all(u)}var i,g=e("ocLazyLoad"),v=!1,b=!1;l||((h={}).error=angular.noop,h.warn=angular.noop,h.info=angular.noop),x.getInstanceInjector=function(){return i=i||t.data("$injector")||angular.injector()},M=function(t,e){u&&n.$broadcast(t,e),l&&h.info(t,e)},angular.isUndefined(y)&&((y=function(t,e,n){var i=[];angular.forEach(t,function(t){i.push(f("js",t,n))}),d.all(i).then(function(){e()},function(t){e(t)})}).ocLazyLoadLoader=!0),angular.isUndefined($)&&(($=function(t,e,n){var i=[];angular.forEach(t,function(t){i.push(f("css",t,n))}),d.all(i).then(function(){e()},function(t){e(t)})}).ocLazyLoadLoader=!0),angular.isUndefined(w)&&((w=function(t,e,i){var o=[];return angular.forEach(t,function(e){var n=d.defer();o.push(n.promise),s.get(e,i).success(function(t){angular.isString(t)&&0<t.length&&angular.forEach(angular.element(t),function(t){"SCRIPT"===t.nodeName&&"text/ng-template"===t.type&&r.put(t.id,t.innerHTML)}),angular.isUndefined(g.get(e))&&g.put(e,!0),n.resolve()}).error(function(t){n.reject(new Error('Unable to load template file "'+e+'": '+t))})}),d.all(o).then(function(){e()},function(t){e(t)})}).ocLazyLoadLoader=!0);return{getModuleConfig:function(t){if(angular.isString(t))return a[t]||null;throw new Error("You need to give the name of the module to get")},setModuleConfig:function(t){if(angular.isObject(t))return a[t.name]=t;throw new Error("You need to give the module config object to set")},getModules:function(){return D},isLoaded:function(t){var e;if(angular.isString(t)&&(t=[t]),angular.isArray(t)){for(var n=0,i=t.length;n<i;n++)if(e=t[n],!(-1<D.indexOf(e))&&!k(e))return!1;return!0}throw new Error("You need to define the module(s) name(s)")},load:function(t,e){var n,l,i,o,u=this,r=null,c=[],s=[],a=d.defer();return(angular.isUndefined(e)&&(e={}),angular.isArray(t))?(angular.forEach(t,function(t){t&&s.push(u.load(t,e))}),d.all(s).then(function(){a.resolve(t)},function(t){a.reject(t)})):(o=T(t),"string"==typeof t?(r=u.getModuleConfig(t))||(r={files:[t]},o=null):"object"==typeof t&&(r=u.setModuleConfig(t)),null===r?(n='Module "'+o+'" is not configured, cannot load.',h.error(n),a.reject(new Error(n))):angular.isDefined(r.template)&&(angular.isUndefined(r.files)&&(r.files=[]),angular.isString(r.template)?r.files.push(r.template):angular.isArray(r.template)&&r.files.concat(r.template)),c.push=function(t){-1===this.indexOf(t)&&Array.prototype.push.apply(this,arguments)},angular.isDefined(o)&&k(o)&&-1!==D.indexOf(o)&&(c.push(o),angular.isUndefined(r.files))?a.resolve():(l={},angular.extend(l,e,r),i=function n(i){var t,o,e,r=[],s=T(i);if(null===s)return d.when();try{t=function(e){try{return angular.module(e)}catch(t){throw(/No module/.test(t)||-1<t.message.indexOf("$injector:nomod"))&&(t.message='The module "'+e+'" that you are trying to load does not exist. '+t.message),t}}(s)}catch(t){var a=d.defer();return h.error(t.message),a.reject(t),a.promise}return a=t,e=[],angular.forEach(a.requires,function(t){-1===D.indexOf(t)&&e.push(t)}),t=e,angular.forEach(t,function(e){if("string"==typeof e){var t=u.getModuleConfig(e);if(null===t)return void c.push(e);e=t}return k(e.name)?void("string"!=typeof i&&(0!==(o=e.files.filter(function(t){return u.getModuleConfig(e.name).files.indexOf(t)<0})).length&&h.warn('Module "',s,'" attempted to redefine configuration for dependency. "',e.name,'"\n Additional Files Loaded:',o),r.push(m(e.files,l).then(function(){return n(e)})))):("object"==typeof e&&(e.hasOwnProperty("name")&&e.name&&(u.setModuleConfig(e),c.push(e.name)),e.hasOwnProperty("css"))&&0!==e.css.length&&angular.forEach(e.css,function(t){f("css",t,l)}),void(e.hasOwnProperty("files")&&0!==e.files.length&&e.files&&r.push(m(e,l).then(function(){return n(e)}))))}),d.all(r)},m(r,l).then(function(){null===o?a.resolve(t):(c.push(o),i(o).then(function(){try{S=[],function t(e,n,i){if(n){for(var o,r=[],s=n.length-1;0<=s;s--)if((o="string"!=typeof(o=n[s])?T(o):o)&&-1===S.indexOf(o)){var a=-1===D.indexOf(o),l=angular.module(o);if(a&&(D.push(o),t(e,l.requires,i)),0<l._runBlocks.length)for(E[o]=[];0<l._runBlocks.length;)E[o].push(l._runBlocks.shift());angular.isDefined(E[o])&&(a||i.rerun)&&(r=r.concat(E[o])),C(e,l._invokeQueue,o,i.reconfig),C(e,l._configBlocks,o,i.reconfig),M(a?"ocLazyLoad.moduleLoaded":"ocLazyLoad.moduleReloaded",o),n.pop(),S.push(o)}var u=e.getInstanceInjector();angular.forEach(r,function(t){u.invoke(t)})}}(x,c,l)}catch(t){return h.error(t.message),void a.reject(t)}a.resolve(t)},function(t){a.reject(t)}))},function(t){a.reject(t)}))),a.promise}}}],this.config=function(t){if(angular.isDefined(t.jsLoader)||angular.isDefined(t.asyncLoader)){if(!angular.isFunction(t.jsLoader||t.asyncLoader))throw"The js loader needs to be a function";y=t.jsLoader||t.asyncLoader}if(angular.isDefined(t.cssLoader)){if(!angular.isFunction(t.cssLoader))throw"The css loader needs to be a function";$=t.cssLoader}if(angular.isDefined(t.templatesLoader)){if(!angular.isFunction(t.templatesLoader))throw"The template loader needs to be a function";w=t.templatesLoader}angular.isDefined(t.modules)&&(angular.isArray(t.modules)?angular.forEach(t.modules,function(t){a[t.name]=t}):a[t.modules.name]=t.modules),angular.isDefined(t.debug)&&(l=t.debug),angular.isDefined(t.events)&&(u=t.events)}}]),t.directive("ocLazyLoad",["$ocLazyLoad","$compile","$animate","$parse",function(r,s,a,l){return{restrict:"A",terminal:!0,priority:1e3,compile:function(t){var o=t[0].innerHTML;return t.html(""),function(e,n,t){var i=l(t.ocLazyLoad);e.$watch(function(){return i(e)||t.ocLazyLoad},function(t){angular.isDefined(t)&&r.load(t).then(function(){a.enter(s(o)(e),null,n)})},!0)}}}}]),angular.bootstrap);angular.bootstrap=function(t,e,n){return a=e.slice(),i(t,e,n)},Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var n;if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),o=i.length>>>0;if(0!=o){e=+e||0;if(!(o<=(e=1/0===Math.abs(e)?0:e)))for(n=Math.max(0<=e?e:o-Math.abs(e),0);n<o;){if(n in i&&i[n]===t)return n;n++}}return-1})}(),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/popup.html","uib/template/datepicker/year.html","uib/template/modal/backdrop.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(u,c,h,t){var d=t.has("$animateCss")?t.get("$animateCss"):null;return{link:function(e,n,t){function i(){n.removeClass("collapsing").addClass("collapse").css({height:"auto"}),s(e)}function o(){n.css({height:"0"}),n.removeClass("collapsing").addClass("collapse"),l(e)}var r=h(t.expanding),s=h(t.expanded),a=h(t.collapsing),l=h(t.collapsed);e.$eval(t.uibCollapse)||n.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css({height:"auto"}),e.$watch(t.uibCollapse,function(t){t?n.hasClass("collapse")||n.hasClass("in")?c.resolve(a(e)).then(function(){n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),d?d(n,{removeClass:"in",to:{height:"0"}}).start().finally(o):u.removeClass(n,"in",{to:{height:"0"}}).then(o)}):o():n.hasClass("collapse")&&n.hasClass("in")||c.resolve(r(e)).then(function(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),d?d(n,{addClass:"in",easing:"ease",to:{height:n[0].scrollHeight+"px"}}).start().finally(i):u.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(i)})})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(t,n,i){this.groups=[],this.closeOthers=function(e){(angular.isDefined(n.closeOthers)?t.$eval(n.closeOthers):i.closeOthers)&&angular.forEach(this.groups,function(t){t!==e&&(t.isOpen=!1)})},this.addGroup=function(e){var n=this;this.groups.push(e),e.$on("$destroy",function(t){n.removeGroup(e)})},this.removeGroup=function(t){t=this.groups.indexOf(t);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(e,n,t,i){i.addGroup(e),e.openClass=t.openClass||"panel-open",e.panelClass=t.panelClass||"panel-default",e.$watch("isOpen",function(t){n.toggleClass(e.openClass,!!t),t&&i.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};t="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=t+"-tab",e.panelId=t+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(t,e,n,i,o){i.setHeading(o(t,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(t,e,n,i){t.$watch(function(){return i[n.uibAccordionTransclude]},function(t){t&&(e.find("span").html(""),e.find("span").append(t))})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(t,e,n,i){t.closeable=!!e.close;n=angular.isDefined(e.dismissOnTimeout)?n(e.dismissOnTimeout)(t.$parent):null;n&&i(function(){t.close()},parseInt(n,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(t,e){return e.templateUrl||"uib/template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(s){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(e,n,i,t){var o=t[0],r=t[1],t=s(i.uibUncheckable);n.find("input").css({display:"none"}),r.$render=function(){n.toggleClass(o.activeClass,angular.equals(r.$modelValue,e.$eval(i.uibBtnRadio)))},n.on(o.toggleEvent,function(){var t;i.disabled||(t=n.hasClass(o.activeClass))&&!angular.isDefined(i.uncheckable)||e.$apply(function(){r.$setViewValue(t?null:e.$eval(i.uibBtnRadio)),r.$render()})}),i.uibUncheckable&&e.$watch(t,function(t){i.$set("uncheckable",t?"":null)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,t,e,i){function o(){return r(e.btnCheckboxTrue,!0)}function r(t,e){return angular.isDefined(t)?n.$eval(t):e}var s=i[0],a=i[1];t.find("input").css({display:"none"}),a.$render=function(){t.toggleClass(s.activeClass,angular.equals(a.$modelValue,o()))},t.on(s.toggleEvent,function(){e.disabled||n.$apply(function(){a.$setViewValue(t.hasClass(s.activeClass)?r(e.btnCheckboxFalse,!1):o()),a.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(o,r,e,i,s){function a(){for(;v.length;)v.shift()}function n(t){if(angular.isUndefined(f[t].index))return f[t];for(var e=0,n=f.length;e<n;++e)if(f[e].index===t)return f[e]}function l(){h&&(e.cancel(h),h=null)}function u(){l();var t=+o.interval;!isNaN(t)&&0<t&&(h=e(c,t))}function c(){var t=+o.interval;d&&!isNaN(t)&&0<t&&f.length?o.next():o.pause()}var h,d,p=this,f=p.slides=o.slides=[],m="uib-slideDirection",g=-1,v=[],b=(p.currentSlide=null,!1);p.addSlide=function(t,e){t.$element=e,f.push(t),1===f.length||t.active?(o.$currentTransition&&(o.$currentTransition=null),p.select(f[f.length-1]),1===f.length&&o.play()):t.active=!1},p.getCurrentIndex=function(){return p.currentSlide&&angular.isDefined(p.currentSlide.index)?+p.currentSlide.index:g},p.next=o.next=function(){var t=(p.getCurrentIndex()+1)%f.length;return 0==t&&o.noWrap()?void o.pause():p.select(n(t),"next")},p.prev=o.prev=function(){var t=p.getCurrentIndex()-1<0?f.length-1:p.getCurrentIndex()-1;return o.noWrap()&&t==f.length-1?void o.pause():p.select(n(t),"prev")},p.removeSlide=function(t){angular.isDefined(t.index)&&f.sort(function(t,e){return+t.index>+e.index});var e=v.indexOf(t),n=(-1!==e&&v.splice(e,1),f.indexOf(t));f.splice(n,1),i(function(){0<f.length&&t.active?n>=f.length?p.select(f[n-1]):p.select(f[n]):n<g&&g--}),0===f.length&&(p.currentSlide=null,a())},p.select=o.select=function(t,e){var n=o.indexOfSlide(t);void 0===e&&(e=n>p.getCurrentIndex()?"next":"prev"),t&&t!==p.currentSlide&&!o.$currentTransition?function i(t,e,n){b||(angular.extend(t,{direction:n,active:!0}),angular.extend(p.currentSlide||{},{direction:n,active:!1}),s.enabled(r)&&!o.$currentTransition&&t.$element&&1<p.slides.length&&(t.$element.data(m,t.direction),p.currentSlide&&p.currentSlide.$element&&p.currentSlide.$element.data(m,t.direction),o.$currentTransition=!0,s.on("addClass",t.$element,function(t,e){var n;"close"===e&&(o.$currentTransition=null,s.off("addClass",t),v.length)&&(e=v.pop(),n=(t=o.indexOfSlide(e))>p.getCurrentIndex()?"next":"prev",a(),i(e,t,n))})),p.currentSlide=t,g=e,u())}(t,n,e):t&&t!==p.currentSlide&&o.$currentTransition&&(v.push(t),t.active=!1)},o.indexOfSlide=function(t){return angular.isDefined(t.index)?+t.index:f.indexOf(t)},o.isActive=function(t){return p.currentSlide===t},o.pause=function(){o.noPause||(d=!1,l())},o.play=function(){d||(d=!0,u())},o.$on("$destroy",function(){b=!0,l()}),o.$watch("noTransition",function(t){s.enabled(r,!t)}),o.$watch("interval",u),o.$watchCollection("slides",function(t){t.length||(o.$currentTransition=null,a())})}]).directive("uibCarousel",function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",templateUrl:function(t,e){return e.templateUrl||"uib/template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",function(){return{require:"^uibCarousel",transclude:!0,replace:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(e,t,n,i){i.addSlide(e,t),e.$on("$destroy",function(){i.removeSlide(e)}),e.$watch("active",function(t){t&&i.select(e)})}}}).animation(".item",["$animateCss",function(r){function s(t,e,n){t.removeClass(e),n&&n()}var a="uib-slideDirection";return{beforeAddClass:function(t,e,n){var i,o;if("active"===e)return e=t.data(a),o=s.bind(this,t,(i="next"===e?"left":"right")+" "+e,n),t.addClass(e),r(t,{addClass:i}).start().done(o),function(){};n()},beforeRemoveClass:function(t,e,n){var i;if("active"===e)return e="next"===t.data(a)?"left":"right",i=s.bind(this,t,e,n),r(t,{addClass:e}).start().done(i),function(){};n()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(f,m,n,i){function g(o,r){var s=[],a=o.split(""),t=o.indexOf("'");if(-1<t){var e=!1;o=o.split("");for(var n=t;n<o.length;n++)e?("'"===o[n]&&(n+1<o.length&&"'"===o[n+1]?(o[n+1]="$",a[n+1]=""):(a[n]="",e=!1)),o[n]="$"):"'"===o[n]&&(o[n]="$",e=!(a[n]=""));o=o.join("")}return angular.forEach(l,function(t){var e=o.indexOf(t.key);if(-1<e){o=o.split(""),a[e]="("+t.regex+")",o[e]="$";for(var n=e+1,i=e+t.key.length;n<i;n++)a[n]="",o[n]="$";o=o.join(""),s.push({index:e,key:t.key,apply:t[r],matcher:t.regex})}}),{regex:new RegExp("^"+a.join("")+"$"),map:i(s,"index")}}function o(t){return parseInt(t,10)}function r(t,e){t=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(t)?e:t}function s(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function a(t,e,n){n=n?-1:1;e=r(e,t.getTimezoneOffset());return s(t,n*(e-t.getTimezoneOffset()))}var v,l,b=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){v=m.id,this.parsers={},this.formatters={},l=[{key:"yyyy",regex:"\\d{4}",apply:function(t){this.year=+t},formatter:function(t){var e=new Date;return e.setFullYear(Math.abs(t.getFullYear())),n(e,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(t){this.year=+t+2e3},formatter:function(t){var e=new Date;return e.setFullYear(Math.abs(t.getFullYear())),n(e,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(t){this.year=+t},formatter:function(t){var e=new Date;return e.setFullYear(Math.abs(t.getFullYear())),n(e,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(t){this.month=t-1},formatter:function(t){var e=t.getMonth();return/^[0-9]$/.test(e)?n(t,"MM"):n(t,"M")}},{key:"MMMM",regex:m.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=m.DATETIME_FORMATS.MONTH.indexOf(t)},formatter:function(t){return n(t,"MMMM")}},{key:"MMM",regex:m.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=m.DATETIME_FORMATS.SHORTMONTH.indexOf(t)},formatter:function(t){return n(t,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(t){this.month=t-1},formatter:function(t){return n(t,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(t){this.month=t-1},formatter:function(t){return n(t,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t},formatter:function(t){var e=t.getDate();return/^[1-9]$/.test(e)?n(t,"dd"):n(t,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t},formatter:function(t){return n(t,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t},formatter:function(t){return n(t,"d")}},{key:"EEEE",regex:m.DATETIME_FORMATS.DAY.join("|"),formatter:function(t){return n(t,"EEEE")}},{key:"EEE",regex:m.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(t){return n(t,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(t){this.minutes=+t},formatter:function(t){return n(t,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(t){this.minutes=+t},formatter:function(t){return n(t,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(t){this.milliseconds=+t},formatter:function(t){return n(t,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(t){this.seconds=+t},formatter:function(t){return n(t,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(t){this.seconds=+t},formatter:function(t){return n(t,"s")}},{key:"a",regex:m.DATETIME_FORMATS.AMPMS.join("|"),apply:function(t){12===this.hours&&(this.hours=0),"PM"===t&&(this.hours+=12)},formatter:function(t){return n(t,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(t){var t=t.match(/([+-])(\d{2})(\d{2})/),e=t[1],n=t[2],t=t[3];this.hours+=o(e+n),this.minutes+=o(e+t)},formatter:function(t){return n(t,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(t){return n(t,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(t){return n(t,"w")}},{key:"GGGG",regex:m.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(t){return n(t,"GGGG")}},{key:"GGG",regex:m.DATETIME_FORMATS.ERAS.join("|"),formatter:function(t){return n(t,"GGG")}},{key:"GG",regex:m.DATETIME_FORMATS.ERAS.join("|"),formatter:function(t){return n(t,"GG")}},{key:"G",regex:m.DATETIME_FORMATS.ERAS.join("|"),formatter:function(t){return n(t,"G")}}]},this.init(),this.filter=function(o,t){if(!angular.isDate(o)||isNaN(o)||!t)return"";t=m.DATETIME_FORMATS[t]||t,m.id!==v&&this.init(),this.formatters[t]||(this.formatters[t]=g(t,"formatter"));var e=this.formatters[t].map,r=t;return e.reduce(function(t,e,n){var i=r.match(new RegExp("(.*)"+e.key));return i&&angular.isString(i[1])&&(t+=i[1],r=r.replace(i[1]+e.key,"")),e.apply?t+e.apply.call(null,o):t},"")},this.parse=function(t,e,n){if(!angular.isString(t)||!e)return t;e=(e=m.DATETIME_FORMATS[e]||e).replace(b,"\\$&"),m.id!==v&&this.init(),this.parsers[e]||(this.parsers[e]=g(e,"apply"));var i,o,e=this.parsers[e],r=e.regex,s=e.map,a=t.match(r),l=!1;if(a&&a.length){for(var u,c=angular.isDate(n)&&!isNaN(n.getTime())?{year:n.getFullYear(),month:n.getMonth(),date:n.getDate(),hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds(),milliseconds:n.getMilliseconds()}:(n&&f.warn("dateparser:","baseDate is not a valid date"),{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),h=1,d=a.length;h<d;h++){var p=s[h-1];"Z"===p.matcher&&(l=!0),p.apply&&p.apply.call(c,a[h])}e=l?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,t=l?Date.prototype.setUTCHours:Date.prototype.setHours;return r=c.year,i=c.month,(o=c.date)<1||!(1===i&&28<o?29===o&&(r%4==0&&r%100!=0||r%400==0):3!==i&&5!==i&&8!==i&&10!==i||o<31)||(!angular.isDate(n)||isNaN(n.getTime())||l?(u=new Date(0),e.call(u,c.year,c.month,c.date),t.call(u,c.hours||0,c.minutes||0,c.seconds||0,c.milliseconds||0)):(u=new Date(n),e.call(u,c.year,c.month,c.date),t.call(u,c.hours,c.minutes,c.seconds,c.milliseconds))),u}},this.toTimezone=function(t,e){return t&&e?a(t,e):t},this.fromTimezone=function(t,e){return t&&e?a(t,e,!0):t},this.timezoneToOffset=r,this.addDateMinutes=s,this.convertTimezoneToLocal=a}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(h){var r=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,d=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(t,e){function n(t){var e,n=t.targetScope,t=i.indexOf(n);i.splice(t,1),l.splice(t,1),i.length?(e=i[0],angular.forEach(u,function(t){t.scope===n&&(t.watcher=e.$watch(t.compareWithExp,t.watchFn),t.scope=e)})):u={}}var i=[],l=[],u={},e=e.uibIsClass.match(r),c=e[2],o=e[1].split(",");return function(a,t,e){i.push(a),l.push({scope:a,element:t}),o.forEach(function(t,e){var n,i=a,o=t.match(d),r=i.$eval(o[1]),o=o[2],s=u[t];s||(n=function(e){var n=null;l.some(function(t){return t.scope.$eval(c)===e?(n=t,!0):void 0}),s.lastActivated!==n&&(s.lastActivated&&h.removeClass(s.lastActivated.element,r),n&&h.addClass(n.element,r),s.lastActivated=n)},u[t]=s={lastActivated:null,scope:i,watchFn:n,compareWithExp:o,watcher:i.$watch(o,n)}),s.watchFn(i.$eval(o))}),a.$on("$destroy",n)}}}}]),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(a,u){var e,l={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},c={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/};return{getRawNode:function(t){return t[0]||t},parseStyle:function(t){return t=parseFloat(t),isFinite(t)?t:0},offsetParent:function(t){for(var e,n=(t=this.getRawNode(t)).offsetParent||a[0].documentElement;n&&n!==a[0].documentElement&&(e=n,"static"===(u.getComputedStyle(e).position||"static"));)n=n.offsetParent;return n||a[0].documentElement},scrollbarWidth:function(){var t;return angular.isUndefined(e)&&(t=angular.element('<div style="position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll;"></div>'),a.find("body").append(t),e=t[0].offsetWidth-t[0].clientWidth,e=isFinite(e)?e:0,t.remove()),e},scrollParent:function(t,e){t=this.getRawNode(t);var n=e?l.hidden:l.normal,i=a[0].documentElement,e=u.getComputedStyle(t),o="absolute"===e.position,r=t.parentElement||i;if(r===i||"fixed"===e.position)return i;for(;r.parentElement&&r!==i;){var s=u.getComputedStyle(r);if(!(o=o&&"static"!==s.position?!1:o)&&n.test(s.overflow+s.overflowY+s.overflowX))break;r=r.parentElement}return r},position:function(t,e){t=this.getRawNode(t);var n=this.offset(t),e=(e&&(e=u.getComputedStyle(t),n.top-=this.parseStyle(e.marginTop),n.left-=this.parseStyle(e.marginLeft)),this.offsetParent(t)),i={top:0,left:0};return e!==a[0].documentElement&&((i=this.offset(e)).top+=e.clientTop-e.scrollTop,i.left+=e.clientLeft-e.scrollLeft),{width:Math.round(angular.isNumber(n.width)?n.width:t.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:t.offsetHeight),top:Math.round(n.top-i.top),left:Math.round(n.left-i.left)}},offset:function(t){var e=(t=this.getRawNode(t)).getBoundingClientRect();return{width:Math.round(angular.isNumber(e.width)?e.width:t.offsetWidth),height:Math.round(angular.isNumber(e.height)?e.height:t.offsetHeight),top:Math.round(e.top+(u.pageYOffset||a[0].documentElement.scrollTop)),left:Math.round(e.left+(u.pageXOffset||a[0].documentElement.scrollLeft))}},viewportOffset:function(t,e,n){n=!1!==n;var i=(t=this.getRawNode(t)).getBoundingClientRect(),o={top:0,left:0,bottom:0,right:0},e=e?a[0].documentElement:this.scrollParent(t),t=e.getBoundingClientRect();return o.top=t.top+e.clientTop,o.left=t.left+e.clientLeft,e===a[0].documentElement&&(o.top+=u.pageYOffset,o.left+=u.pageXOffset),o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,n&&(t=u.getComputedStyle(e),o.top+=this.parseStyle(t.paddingTop),o.bottom-=this.parseStyle(t.paddingBottom),o.left+=this.parseStyle(t.paddingLeft),o.right-=this.parseStyle(t.paddingRight)),{top:Math.round(i.top-o.top),bottom:Math.round(o.bottom-i.bottom),left:Math.round(i.left-o.left),right:Math.round(o.right-i.right)}},parsePlacement:function(t){var e=c.auto.test(t);return(t=(t=e?t.replace(c.auto,""):t).split("-"))[0]=t[0]||"top",c.primary.test(t[0])||(t[0]="top"),t[1]=t[1]||"center",c.secondary.test(t[1])||(t[1]="center"),t[2]=!!e,t},positionElements:function(t,e,n,i){t=this.getRawNode(t),e=this.getRawNode(e);var o,r=angular.isDefined(e.offsetWidth)?e.offsetWidth:e.prop("offsetWidth"),s=angular.isDefined(e.offsetHeight)?e.offsetHeight:e.prop("offsetHeight"),a=(n=this.parsePlacement(n),i?this.offset(t):this.position(t)),l={top:0,left:0,placement:""};switch(n[2]&&(i=this.viewportOffset(t),t=u.getComputedStyle(e),e=r+Math.round(Math.abs(this.parseStyle(t.marginLeft)+this.parseStyle(t.marginRight))),t=s+Math.round(Math.abs(this.parseStyle(t.marginTop)+this.parseStyle(t.marginBottom))),n[0]="top"===n[0]&&t>i.top&&t<=i.bottom?"bottom":"bottom"===n[0]&&t>i.bottom&&t<=i.top?"top":"left"===n[0]&&e>i.left&&e<=i.right?"right":"right"===n[0]&&e>i.right&&e<=i.left?"left":n[0],n[1]="top"===n[1]&&t-a.height>i.bottom&&t-a.height<=i.top?"bottom":"bottom"===n[1]&&t-a.height>i.top&&t-a.height<=i.bottom?"top":"left"===n[1]&&e-a.width>i.right&&e-a.width<=i.left?"right":"right"===n[1]&&e-a.width>i.left&&e-a.width<=i.right?"left":n[1],"center"===n[1])&&(c.vertical.test(n[0])?(o=a.width/2-r/2,i.left+o<0&&e-a.width<=i.right?n[1]="left":i.right+o<0&&e-a.width<=i.left&&(n[1]="right")):(o=a.height/2-t/2,i.top+o<0&&t-a.height<=i.bottom?n[1]="top":i.bottom+o<0&&t-a.height<=i.top&&(n[1]="bottom"))),n[0]){case"top":l.top=a.top-s;break;case"bottom":l.top=a.top+a.height;break;case"left":l.left=a.left-r;break;case"right":l.left=a.left+a.width}switch(n[1]){case"top":l.top=a.top;break;case"bottom":l.top=a.top+a.height-s;break;case"left":l.left=a.left;break;case"right":l.left=a.left+a.width-r;break;case"center":c.vertical.test(n[0])?l.left=a.left+a.width/2-r/2:l.top=a.top+a.height/2-s/2}return l.top=Math.round(l.top),l.left=Math.round(l.left),l.placement="center"===n[1]?n[0]:n[0]+"-"+n[1],l},positionArrow:function(t,e){var n=(t=this.getRawNode(t)).querySelector(".tooltip-inner, .popover-inner");if(n){var i=angular.element(n).hasClass("tooltip-inner"),o=i?t.querySelector(".tooltip-arrow"):t.querySelector(".arrow");if(o)if("center"===(e=this.parsePlacement(e))[1])angular.element(o).css({top:"",bottom:"",right:"",left:"",margin:""});else{var r="border-"+e[0]+"-width",s=u.getComputedStyle(o)[r],r="border-",n=(r=r+(c.vertical.test(e[0])?e[0]+"-"+e[1]:e[1]+"-"+e[0])+"-radius",u.getComputedStyle(i?n:t)[r]),a={top:"auto",bottom:"auto",left:"auto",right:"auto",margin:0};switch(e[0]){case"top":a.bottom=i?"0":"-"+s;break;case"bottom":a.top=i?"0":"-"+s;break;case"left":a.right=i?"0":"-"+s;break;case"right":a.left=i?"0":"-"+s}a[e[1]]=n,angular.element(o).css(a)}}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError","uibDateParser",function(i,n,t,o,r,e,s,a,l,u){var c=this,h={$setViewValue:angular.noop},d={},p=[];this.modes=["day","month","year"],n.datepickerOptions?angular.forEach(["formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","initDate","maxDate","maxMode","minDate","minMode","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"],function(e){switch(e){case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":c[e]=angular.isDefined(i.datepickerOptions[e])?o(i.datepickerOptions[e])(i.$parent):a[e];break;case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":c[e]=(angular.isDefined(i.datepickerOptions[e])?i.datepickerOptions:a)[e];break;case"startingDay":angular.isDefined(i.datepickerOptions.startingDay)?c.startingDay=i.datepickerOptions.startingDay:angular.isNumber(a.startingDay)?c.startingDay=a.startingDay:c.startingDay=(r.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":i.datepickerOptions[e]?i.$watch(function(){return i.datepickerOptions[e]},function(t){t?angular.isDate(t)?c[e]=u.fromTimezone(new Date(t),d.timezone):c[e]=new Date(s(t,"medium")):c[e]=null,c.refreshView()}):c[e]=a[e]?u.fromTimezone(new Date(a[e]),d.timezone):null;break;case"maxMode":case"minMode":i.datepickerOptions[e]?i.$watch(function(){return i.datepickerOptions[e]},function(t){c[e]=i[e]=angular.isDefined(t)?t:datepickerOptions[e],("minMode"===e&&c.modes.indexOf(i.datepickerMode)<c.modes.indexOf(c[e])||"maxMode"===e&&c.modes.indexOf(i.datepickerMode)>c.modes.indexOf(c[e]))&&(i.datepickerMode=c[e])}):c[e]=i[e]=a[e]||null;break;case"initDate":i.datepickerOptions.initDate?(this.activeDate=u.fromTimezone(i.datepickerOptions.initDate,d.timezone)||new Date,i.$watch(function(){return i.datepickerOptions.initDate},function(t){t&&(h.$isEmpty(h.$modelValue)||h.$invalid)&&(c.activeDate=u.fromTimezone(t,d.timezone),c.refreshView())})):this.activeDate=new Date}}):(angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle"],function(t){c[t]=angular.isDefined(n[t])?o(n[t])(i.$parent):a[t]}),angular.forEach(["showWeeks","yearRows","yearColumns","shortcutPropagation"],function(t){c[t]=angular.isDefined(n[t])?i.$parent.$eval(n[t]):a[t]}),angular.isDefined(n.startingDay)?c.startingDay=i.$parent.$eval(n.startingDay):angular.isNumber(a.startingDay)?c.startingDay=a.startingDay:c.startingDay=(r.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7,angular.forEach(["minDate","maxDate"],function(e){n[e]?p.push(i.$parent.$watch(n[e],function(t){t?angular.isDate(t)?c[e]=u.fromTimezone(new Date(t),d.timezone):c[e]=new Date(s(t,"medium")):c[e]=null,c.refreshView()})):c[e]=a[e]?u.fromTimezone(new Date(a[e]),d.timezone):null}),angular.forEach(["minMode","maxMode"],function(e){n[e]?p.push(i.$parent.$watch(n[e],function(t){c[e]=i[e]=angular.isDefined(t)?t:n[e],("minMode"===e&&c.modes.indexOf(i.datepickerMode)<c.modes.indexOf(c[e])||"maxMode"===e&&c.modes.indexOf(i.datepickerMode)>c.modes.indexOf(c[e]))&&(i.datepickerMode=c[e])})):c[e]=i[e]=a[e]||null}),angular.isDefined(n.initDate)?(this.activeDate=u.fromTimezone(i.$parent.$eval(n.initDate),d.timezone)||new Date,p.push(i.$parent.$watch(n.initDate,function(t){t&&(h.$isEmpty(h.$modelValue)||h.$invalid)&&(c.activeDate=u.fromTimezone(t,d.timezone),c.refreshView())}))):this.activeDate=new Date),i.datepickerMode=i.datepickerMode||a.datepickerMode,i.uniqueId="datepicker-"+i.$id+"-"+Math.floor(1e4*Math.random()),i.disabled=angular.isDefined(n.disabled)||!1,angular.isDefined(n.ngDisabled)&&p.push(i.$parent.$watch(n.ngDisabled,function(t){i.disabled=t,c.refreshView()})),i.isActive=function(t){return 0===c.compare(t.date,c.activeDate)&&(i.activeDateId=t.uid,!0)},this.init=function(t){d=(h=t).$options||a.ngModelOptions,h.$modelValue&&(this.activeDate=h.$modelValue),h.$render=function(){c.render()}},this.render=function(){var t;h.$viewValue&&(t=new Date(h.$viewValue),!isNaN(t)?this.activeDate=u.fromTimezone(t,d.timezone):l||e.error('Datepicker directive: "ng-model" value must be a Date object')),this.refreshView()},this.refreshView=function(){var t;this.element&&(i.selectedDt=null,this._refreshView(),i.activeDt&&(i.activeDateId=i.activeDt.uid),t=h.$viewValue?new Date(h.$viewValue):null,t=u.fromTimezone(t,d.timezone),h.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t)))},this.createDateObject=function(t,e){var n=h.$viewValue?new Date(h.$viewValue):null,n=u.fromTimezone(n,d.timezone),e={date:t,label:u.filter(t,e),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),current:0===this.compare(t,new Date),customClass:this.customClass(t)||null};return n&&0===this.compare(t,n)&&(i.selectedDt=e),c.activeDate&&0===this.compare(e.date,c.activeDate)&&(i.activeDt=e),e},this.isDisabled=function(t){return i.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&0<this.compare(t,this.maxDate)||n.dateDisabled&&i.dateDisabled({date:t,mode:i.datepickerMode})},this.customClass=function(t){return i.customClass({date:t,mode:i.datepickerMode})},this.split=function(t,e){for(var n=[];0<t.length;)n.push(t.splice(0,e));return n},i.select=function(t){var e;i.datepickerMode===c.minMode?((e=h.$viewValue?u.fromTimezone(new Date(h.$viewValue),d.timezone):new Date(0,0,0,0,0,0,0)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e=u.toTimezone(e,d.timezone),h.$setViewValue(e),h.$render()):(c.activeDate=t,i.datepickerMode=c.modes[c.modes.indexOf(i.datepickerMode)-1])},i.move=function(t){var e=c.activeDate.getFullYear()+t*(c.step.years||0),t=c.activeDate.getMonth()+t*(c.step.months||0);c.activeDate.setFullYear(e,t,1),c.refreshView()},i.toggleMode=function(t){t=t||1,i.datepickerMode===c.maxMode&&1===t||i.datepickerMode===c.minMode&&-1===t||(i.datepickerMode=c.modes[c.modes.indexOf(i.datepickerMode)+t])},i.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};i.$on("uib:datepicker.focus",function(){c.element[0].focus()}),i.keydown=function(t){var e=i.keys[t.which];!e||t.shiftKey||t.altKey||i.disabled||(t.preventDefault(),c.shortcutPropagation||t.stopPropagation(),"enter"===e||"space"===e?c.isDisabled(c.activeDate)||i.select(c.activeDate):!t.ctrlKey||"up"!==e&&"down"!==e?(c.handleKeyDown(e,t),c.refreshView()):i.toggleMode("up"===e?1:-1))},i.$on("$destroy",function(){for(;p.length;)p.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(h,t,d){function o(t,e){return 1!==e||t%4!=0||t%100==0&&t%400!=0?n[e]:29}var n=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),h.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(t,e){for(var n,i=new Array(e),o=new Date(t),r=0;r<e;)n=new Date(o),i[r++]=n,o.setDate(o.getDate()+1);return i},this._refreshView=function(){var t=this.activeDate.getFullYear(),e=this.activeDate.getMonth(),n=new Date(this.activeDate),t=(n.setFullYear(t,e,1),this.startingDay-n.getDay()),t=0<t?7-t:-t,n=new Date(n);0<t&&n.setDate(1-t);for(var i=this.getDates(n,42),o=0;o<42;o++)i[o]=angular.extend(this.createDateObject(i[o],this.formatDay),{secondary:i[o].getMonth()!==e,uid:h.uniqueId+"-"+o});h.labels=new Array(7);for(var r,s,a=0;a<7;a++)h.labels[a]={abbr:d(i[a].date,this.formatDayHeader),full:d(i[a].date,"EEEE")};if(h.title=d(this.activeDate,this.formatDayTitle),h.rows=this.split(i,7),h.showWeeks){h.weekNumbers=[];for(var l=(11-this.startingDay)%7,u=h.rows.length,c=0;c<u;c++)h.weekNumbers.push((r=h.rows[c][l].date,s=void 0,(r=new Date(r)).setDate(r.getDate()+4-(r.getDay()||7)),s=r.getTime(),r.setMonth(0),r.setDate(1),Math.floor(Math.round((s-r)/864e5)/7)+1))}},this.compare=function(t,e){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),i=new Date(e.getFullYear(),e.getMonth(),e.getDate());return n.setFullYear(t.getFullYear()),i.setFullYear(e.getFullYear()),n-i},this.handleKeyDown=function(t,e){var n,i=this.activeDate.getDate();"left"===t?--i:"up"===t?i-=7:"right"===t?i+=1:"down"===t?i+=7:"pageup"===t||"pagedown"===t?(n=this.activeDate.getMonth()+("pageup"===t?-1:1),this.activeDate.setMonth(n,1),i=Math.min(o(this.activeDate.getFullYear(),this.activeDate.getMonth()),i)):"home"===t?i=1:"end"===t&&(i=o(this.activeDate.getFullYear(),this.activeDate.getMonth())),this.activeDate.setDate(i)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(o,t,r){this.step={years:1},this.element=t,this.init=function(t){angular.extend(t,this),t.refreshView()},this._refreshView=function(){for(var t,e=new Array(12),n=this.activeDate.getFullYear(),i=0;i<12;i++)(t=new Date(this.activeDate)).setFullYear(n,i,1),e[i]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:o.uniqueId+"-"+i});o.title=r(this.activeDate,this.formatMonthTitle),o.rows=this.split(e,3)},this.compare=function(t,e){var n=new Date(t.getFullYear(),t.getMonth()),i=new Date(e.getFullYear(),e.getMonth());return n.setFullYear(t.getFullYear()),i.setFullYear(e.getFullYear()),n-i},this.handleKeyDown=function(t,e){var n,i=this.activeDate.getMonth();"left"===t?--i:"up"===t?i-=3:"right"===t?i+=1:"down"===t?i+=3:"pageup"===t||"pagedown"===t?(n=this.activeDate.getFullYear()+("pageup"===t?-1:1),this.activeDate.setFullYear(n)):"home"===t?i=0:"end"===t&&(i=11),this.activeDate.setMonth(i)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(o,t,e){function r(t){return parseInt((t-1)/a,10)*a+1}var s,a;this.element=t,this.yearpickerInit=function(){s=this.yearColumns,a=this.yearRows*s,this.step={years:a}},this._refreshView=function(){for(var t,e=new Array(a),n=0,i=r(this.activeDate.getFullYear());n<a;n++)(t=new Date(this.activeDate)).setFullYear(i+n,0,1),e[n]=angular.extend(this.createDateObject(t,this.formatYear),{uid:o.uniqueId+"-"+n});o.title=[e[0].label,e[a-1].label].join(" - "),o.rows=this.split(e,s),o.columns=s},this.compare=function(t,e){return t.getFullYear()-e.getFullYear()},this.handleKeyDown=function(t,e){var n=this.activeDate.getFullYear();"left"===t?--n:"up"===t?n-=s:"right"===t?n+=1:"down"===t?n+=s:"pageup"===t||"pagedown"===t?n+=("pageup"===t?-1:1)*a:"home"===t?n=r(this.activeDate.getFullYear()):"end"===t&&(n=r(this.activeDate.getFullYear())+a-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",datepickerOptions:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(t,e,n,i){var o=i[0],i=i[1];o.init(i)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],controller:"UibDaypickerController",link:function(t,e,n,i){var o=i[0];i[1].init(o)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],controller:"UibMonthpickerController",link:function(t,e,n,i){var o=i[0];i[1].init(o)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],controller:"UibYearpickerController",link:function(t,e,n,i){var o=i[0];angular.extend(o,i[1]),o.yearpickerInit(),o.refreshView()}}}).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepicker/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$parse","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig",function(o,i,r,e,s,n,a,l,u,c,h,d,p){function f(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function m(t){var e=c.parse(t,$,o.date);if(isNaN(e))for(var n=0;n<A.length;n++)if(e=c.parse(t,A[n],o.date),!isNaN(e))return e;return e}function g(t){if(!(t=angular.isNumber(t)?new Date(t):t))return null;if(angular.isDate(t)&&!isNaN(t))return t;if(angular.isString(t)){var e=m(t);if(!isNaN(e))return c.toTimezone(e,E.timezone)}return S.$options&&S.$options.allowInvalid?t:void 0}function v(t,e){t=t||e;return!r.ngRequired&&!t||!(t=angular.isNumber(t)?new Date(t):t)||!(!angular.isDate(t)||isNaN(t))||!!angular.isString(t)&&!isNaN(m(e))}function b(t){var e,n;!o.isOpen&&o.disabled||(n=M[0],e=i[0].contains(t.target),n=void 0!==n.contains&&n.contains(t.target),!o.isOpen)||e||n||o.$apply(function(){o.isOpen=!1})}function y(t){27===t.which&&o.isOpen?(t.preventDefault(),t.stopPropagation(),o.$apply(function(){o.isOpen=!1}),i[0].focus()):40!==t.which||o.isOpen||(t.preventDefault(),t.stopPropagation(),o.$apply(function(){o.isOpen=!0}))}var $,w,x,_,k,C,T,D,S,E,M,A,O={},I=!1,P=[];o.watchData={},this.init=function(t){if(E=(S=t).$options||p.ngModelOptions,w=angular.isDefined(r.closeOnDateSelection)?o.$parent.$eval(r.closeOnDateSelection):h.closeOnDateSelection,x=angular.isDefined(r.datepickerAppendToBody)?o.$parent.$eval(r.datepickerAppendToBody):h.appendToBody,_=angular.isDefined(r.onOpenFocus)?o.$parent.$eval(r.onOpenFocus):h.onOpenFocus,k=(angular.isDefined(r.datepickerPopupTemplateUrl)?r:h).datepickerPopupTemplateUrl,C=(angular.isDefined(r.datepickerTemplateUrl)?r:h).datepickerTemplateUrl,A=angular.isDefined(r.altInputFormats)?o.$parent.$eval(r.altInputFormats):h.altInputFormats,o.showButtonBar=angular.isDefined(r.showButtonBar)?o.$parent.$eval(r.showButtonBar):h.showButtonBar,h.html5Types[r.type]?($=h.html5Types[r.type],I=!0):($=r.uibDatepickerPopup||h.datepickerPopup,r.$observe("uibDatepickerPopup",function(t,e){t=t||h.datepickerPopup;if(t!==$&&($=t,S.$modelValue=null,!$))throw new Error("uibDatepickerPopup must have a date format specified.")})),!$)throw new Error("uibDatepickerPopup must have a date format specified.");if(I&&r.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");T=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),o.ngModelOptions=angular.copy(E),o.ngModelOptions.timezone=null,T.attr({"ng-model":"date","ng-model-options":"ngModelOptions","ng-change":"dateSelection(date)","template-url":k}),(D=angular.element(T.children()[0])).attr("template-url",C),I&&"month"===r.type&&(D.attr("datepicker-mode",'"month"'),D.attr("min-mode","month")),o.datepickerOptions&&angular.forEach(o.datepickerOptions,function(t,e){-1===["minDate","maxDate","minMode","maxMode","initDate","datepickerMode"].indexOf(e)?D.attr(f(e),t):D.attr(f(e),"datepickerOptions."+e)}),angular.forEach(["minMode","maxMode","datepickerMode","shortcutPropagation"],function(t){var e,n,i;r[t]&&(e=s(r[t]),n={get:function(){return e(o.$parent)}},D.attr(f(t),"watchData."+t),"datepickerMode"===t&&(i=e.assign,n.set=function(t){i(o.$parent,t)}),Object.defineProperty(o.watchData,t,n))}),angular.forEach(["minDate","maxDate","initDate"],function(e){var t;r[e]&&(t=s(r[e]),P.push(o.$parent.$watch(t,function(t){"minDate"===e||"maxDate"===e?(null===t?O[e]=null:angular.isDate(t)?O[e]=c.fromTimezone(new Date(t),E.timezone):O[e]=new Date(u(t,"medium")),o.watchData[e]=null===t?null:O[e]):o.watchData[e]=c.fromTimezone(new Date(t),E.timezone)})),D.attr(f(e),"watchData."+e))}),r.dateDisabled&&D.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRows","yearColumns"],function(t){angular.isDefined(r[t])&&D.attr(f(t),r[t])}),r.customClass&&D.attr("custom-class","customClass({ date: date, mode: mode })"),I?S.$formatters.push(function(t){return o.date=c.fromTimezone(t,E.timezone),t}):(S.$$parserName="date",S.$validators.date=v,S.$parsers.unshift(g),S.$formatters.push(function(t){return S.$isEmpty(t)?o.date=t:(o.date=c.fromTimezone(t,E.timezone),angular.isNumber(o.date)&&(o.date=new Date(o.date)),c.filter(o.date,$))})),S.$viewChangeListeners.push(function(){o.date=m(S.$viewValue)}),i.on("keydown",y),M=e(T)(o),T.remove(),x?n.find("body").append(M):i.after(M),o.$on("$destroy",function(){for(!0!==o.isOpen||a.$$phase||o.$apply(function(){o.isOpen=!1}),M.remove(),i.off("keydown",y),n.off("click",b);P.length;)P.shift()()})},o.getText=function(t){return o[t+"Text"]||h[t+"Text"]},o.isDisabled=function(t){return"today"===t&&(t=new Date),o.watchData.minDate&&o.compare(t,O.minDate)<0||o.watchData.maxDate&&0<o.compare(t,O.maxDate)},o.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},o.dateSelection=function(t){angular.isDefined(t)&&(o.date=t);t=o.date?c.filter(o.date,$):null;i.val(t),S.$setViewValue(t),w&&(o.isOpen=!1,i[0].focus())},o.keydown=function(t){27===t.which&&(t.stopPropagation(),o.isOpen=!1,i[0].focus())},o.select=function(t){var e;"today"===t&&(e=new Date,angular.isDate(o.date)?(t=new Date(o.date)).setFullYear(e.getFullYear(),e.getMonth(),e.getDate()):t=new Date(e.setHours(0,0,0,0))),o.dateSelection(t)},o.close=function(){o.isOpen=!1,i[0].focus()},o.disabled=angular.isDefined(r.disabled)||!1,r.ngDisabled&&P.push(o.$parent.$watch(s(r.ngDisabled),function(t){o.disabled=t})),o.$watch("isOpen",function(t){t?o.disabled?o.isOpen=!1:(o.position=x?l.offset(i):l.position(i),o.position.top=o.position.top+i.prop("offsetHeight"),d(function(){_&&o.$broadcast("uib:datepicker.focus"),n.on("click",b)},0,!1)):n.off("click",b)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(t,e,n,i){var o=i[0];i[1].init(o)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(r){return function(n,i){var o;return function(){var t=this,e=Array.prototype.slice.call(arguments);o&&r.cancel(o),o=r(function(){n.apply(t,e)},i)}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(e,n){var i=null,o=(this.open=function(t){i||(e.on("click",o),e.on("keydown",r)),i&&i!==t&&(i.isOpen=!1),i=t},this.close=function(t){i===t&&(i=null,e.off("click",o),e.off("keydown",r))},function(t){var e;i&&!(t&&"disabled"===i.getAutoClose()||t&&3===t.which)&&(e=i.getToggleElement(),t&&e&&e[0].contains(t.target)||(e=i.getDropdownElement(),t&&"outsideClick"===i.getAutoClose()&&e&&e[0].contains(t.target))||(i.isOpen=!1,n.$$phase)||i.$apply())}),r=function(t){27===t.which?(i.focusToggleElement(),o()):i.isKeynavEnabled()&&-1!==[38,40].indexOf(t.which)&&i.isOpen&&(t.preventDefault(),t.stopPropagation(),i.focusDropdownEntry(t.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(s,a,e,n,t,l,u,c,i,h,d){var p,o,f=this,m=s.$new(),g=t.appendToOpenClass,v=t.openClass,b=angular.noop,y=e.onToggle?n(e.onToggle):angular.noop,$=!1,w=null,r=!1,x=i.find("body");a.addClass("dropdown"),this.init=function(){var t;e.isOpen&&(o=n(e.isOpen),b=o.assign,s.$watch(o,function(t){m.isOpen=!!t})),angular.isDefined(e.dropdownAppendTo)&&(t=n(e.dropdownAppendTo)(m))&&(w=angular.element(t)),$=angular.isDefined(e.dropdownAppendToBody),r=angular.isDefined(e.keyboardNav),(w=$&&!w?x:w)&&f.dropdownMenu&&(w.append(f.dropdownMenu),a.on("$destroy",function(){f.dropdownMenu.remove()}))},this.toggle=function(t){return m.isOpen=arguments.length?!!t:!m.isOpen},this.isOpen=function(){return m.isOpen},m.getToggleElement=function(){return f.toggleElement},m.getAutoClose=function(){return e.autoClose||"always"},m.getElement=function(){return a},m.isKeynavEnabled=function(){return r},m.focusDropdownEntry=function(t){var e=(f.dropdownMenu?angular.element(f.dropdownMenu):a.find("ul").eq(0)).find("a");switch(t){case 40:angular.isNumber(f.selectedOption)?f.selectedOption=f.selectedOption===e.length-1?f.selectedOption:f.selectedOption+1:f.selectedOption=0;break;case 38:angular.isNumber(f.selectedOption)?f.selectedOption=0===f.selectedOption?0:f.selectedOption-1:f.selectedOption=e.length-1}e[f.selectedOption].focus()},m.getDropdownElement=function(){return f.dropdownMenu},m.focusToggleElement=function(){f.toggleElement&&f.toggleElement[0].focus()},m.$watch("isOpen",function(t,e){w&&f.dropdownMenu&&(i={top:(o=c.positionElements(a,f.dropdownMenu,"bottom-left",!0)).top+"px",display:t?"block":"none"},(r=f.dropdownMenu.hasClass("dropdown-menu-right"))?(i.left="auto",i.right=window.innerWidth-(o.left+a.prop("offsetWidth"))+"px"):(i.left=o.left+"px",i.right="auto"),$||(n=c.offset(w),i.top=o.top-n.top+"px",r?i.right=window.innerWidth-(o.left-n.left+a.prop("offsetWidth"))+"px":i.left=o.left-n.left+"px"),f.dropdownMenu.css(i));var n,i,o,r=w||a;u[t?"addClass":"removeClass"](r,w?g:v).then(function(){angular.isDefined(t)&&t!==e&&y(s,{open:!!t})}),t?(f.dropdownMenuTemplateUrl&&d(f.dropdownMenuTemplateUrl).then(function(t){p=m.$new(),h(t.trim())(p,function(t){f.dropdownMenu.replaceWith(t),f.dropdownMenu=t})}),m.focusToggleElement(),l.open(m)):(f.dropdownMenuTemplateUrl&&(p&&p.$destroy(),o=angular.element('<ul class="dropdown-menu"></ul>'),f.dropdownMenu.replaceWith(o),f.dropdownMenu=o),l.close(m),f.selectedOption=null),angular.isFunction(b)&&b(s,t)}),s.$on("$locationChangeSuccess",function(){"disabled"!==m.getAutoClose()&&(m.isOpen=!1)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(t,e,n,i){i.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(t,e,n,i){i&&!angular.isDefined(n.dropdownNested)&&(e.addClass("dropdown-menu"),(n=n.templateUrl)&&(i.dropdownMenuTemplateUrl=n),i.dropdownMenu||(i.dropdownMenu=e))}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,n,i,o){var t;o&&(n.addClass("dropdown-toggle"),(o.toggleElement=n).bind("click",t=function(t){t.preventDefault(),n.hasClass("disabled")||i.disabled||e.$apply(function(){o.toggle()})}),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(o.isOpen,function(t){n.attr("aria-expanded",!!t)}),e.$on("$destroy",function(){n.unbind("click",t)}))}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var i=[];return{add:function(t,e){i.push({key:t,value:e})},get:function(t){for(var e=0;e<i.length;e++)if(t===i[e].key)return i[e]},keys:function(){for(var t=[],e=0;e<i.length;e++)t.push(i[e].key);return t},top:function(){return i[i.length-1]},remove:function(t){for(var e=-1,n=0;n<i.length;n++)if(t===i[n].key){e=n;break}return i.splice(e,1)[0]},removeTop:function(){return i.splice(i.length-1,1)[0]},length:function(){return i.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap"]).factory("$$multiMap",function(){return{createNew:function(){var i={};return{entries:function(){return Object.keys(i).map(function(t){return{key:t,value:i[t]}})},get:function(t){return i[t]},hasKey:function(t){return!!i[t]},keys:function(){return Object.keys(i)},put:function(t,e){i[t]||(i[t]=[]),i[t].push(e)},remove:function(t,e){var n=i[t];n&&(-1!==(e=n.indexOf(e))&&n.splice(e,1),n.length||delete i[t])}}}}}).provider("$uibResolve",function(){var t=this;this.resolver=null,this.setResolver=function(t){this.resolver=t},this.$get=["$injector","$q",function(r,s){var a=t.resolver?r.get(t.resolver):null;return{resolve:function(t,e,n,i){var o;return a?a.resolve(t,e,n,i):(o=[],angular.forEach(t,function(t){angular.isFunction(t)||angular.isArray(t)?o.push(s.resolve(r.invoke(t))):angular.isString(t)?o.push(s.resolve(r.get(t))):o.push(s.resolve(t))}),s.all(o).then(function(n){var i={},o=0;return angular.forEach(t,function(t,e){i[e]=n[o++]}),i}))}}}]}).directive("uibModalBackdrop",["$animateCss","$injector","$uibModalStack",function(r,t,e){function n(n,i,o){o.modalInClass&&(r(i,{addClass:o.modalInClass}).start(),n.$on(e.NOW_CLOSING_EVENT,function(t,e){e=e();n.modalOptions.animation?r(i,{removeClass:o.modalInClass}).start().then(e):e()}))}return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(t,e){return t.addClass(e.backdropClass),n}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animate","$animateCss","$document",function(r,s,a,l,u){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/modal/window.html"},link:function(e,n,i){n.addClass(i.windowClass||""),n.addClass(i.windowTopClass||""),e.size=i.size,e.close=function(t){var e=r.getTop();e&&e.value.backdrop&&"static"!==e.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),r.dismiss(e.key,"backdrop click"))},n.on("click",e.close),e.$isRendered=!0;var o=s.defer();i.$observe("modalRender",function(t){"true"===t&&o.resolve()}),o.promise.then(function(){var t=null,t=(i.modalInClass&&(t=l(n,{addClass:i.modalInClass}).start(),e.$on(r.NOW_CLOSING_EVENT,function(t,e){e=e();(l?l(n,{removeClass:i.modalInClass}).start():a.removeClass(n,i.modalInClass)).then(e)})),s.when(t).then(function(){u[0].activeElement&&n[0].contains(u[0].activeElement)||(n[0].querySelector("[autofocus]")||n[0]).focus()}),r.getTop());t&&r.modalRendered(t.key)})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(t,e){e.modalAnimation&&t.addClass(e.uibModalAnimationClass)}}}).directive("uibModalTransclude",function(){return{link:function(t,e,n,i,o){o(t.$parent,function(t){e.empty(),e.append(t)})}}}).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap",function(r,a,s,l,u,c,t,e){function h(){for(var t=-1,e=b.keys(),n=0;n<e.length;n++)b.get(e[n]).value.backdrop&&(t=n);return t}function i(e,t){var n=b.get(e).value,i=n.appendTo;b.remove(e),o(n.modalDomEl,n.modalScope,function(){var t=n.openedClass||v;y.remove(t,e),i.toggleClass(t,y.hasKey(t)),d(!0)},n.closedDeferred),f&&-1===h()&&(o(f,m,function(){0}),m=f=void 0),t&&t.focus?t.focus():i.focus&&i.focus()}function d(t){var e;0<b.length()&&(e=b.top().value).modalDomEl.toggleClass(e.windowTopClass||"",t)}function o(t,e,n,i){function o(){o.done||(o.done=!0,a(t,{event:"leave"}).start().then(function(){t.remove(),i&&i.resolve()}),e.$destroy(),n&&n())}var r,s=null;e.$broadcast($.NOW_CLOSING_EVENT,function(){return r||(r=c.defer(),s=r.promise),function(){r.resolve()}}),c.when(s).then(o)}function n(t){if(t.isDefaultPrevented())return t;var e=b.top();if(e)switch(t.which){case 27:e.value.keyboard&&(t.preventDefault(),u.$apply(function(){$.dismiss(e.key,"escape key press")}));break;case 9:$.loadFocusElementList(e);var n=!1;t.shiftKey?($.isFocusInFirstItem(t)||$.isModalFocused(t,e))&&(n=$.focusLastFocusableElement()):$.isFocusInLastItem(t)&&(n=$.focusFirstFocusableElement()),n&&(t.preventDefault(),t.stopPropagation())}}function p(t,e,n){return!t.value.modalScope.$broadcast("modal.closing",e,n).defaultPrevented}var f,m,g,v="modal-open",b=e.createNew(),y=t.createNew(),$={NOW_CLOSING_EVENT:"modal.stack.now-closing"};return u.$watch(h,function(t){m&&(m.index=t)}),s.on("keydown",n),u.$on("$destroy",function(){s.off("keydown",n)}),$.open=function(t,e){var n=s[0].activeElement,i=e.openedClass||v,o=(d(!1),b.add(t,{deferred:e.deferred,renderDeferred:e.renderDeferred,closedDeferred:e.closedDeferred,modalScope:e.scope,backdrop:e.backdrop,keyboard:e.keyboard,openedClass:e.openedClass,windowTopClass:e.windowTopClass,animation:e.animation,appendTo:e.appendTo}),y.put(i,t),e.appendTo),t=h();if(!o.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");0<=t&&!f&&((m=u.$new(!0)).modalOptions=e,m.index=t,(f=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>')).attr("backdrop-class",e.backdropClass),e.animation&&f.attr("modal-animation","true"),l(f)(m),r.enter(f,o));t=angular.element('<div uib-modal-window="modal-window"></div>');t.attr({"template-url":e.windowTemplateUrl,"window-class":e.windowClass,"window-top-class":e.windowTopClass,size:e.size,index:b.length()-1,animate:"animate"}).html(e.content),e.animation&&t.attr("modal-animation","true"),r.enter(l(t)(e.scope),o).then(function(){r.addClass(o,i)}),b.top().value.modalDomEl=t,b.top().value.modalOpener=n,$.clearFocusListCache()},$.close=function(t,e){var n=b.get(t);return n&&p(n,e,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(e),i(t,n.value.modalOpener),!0):!n},$.dismiss=function(t,e){var n=b.get(t);return n&&p(n,e,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(e),i(t,n.value.modalOpener),!0):!n},$.dismissAll=function(t){for(var e=this.getTop();e&&this.dismiss(e.key,t);)e=this.getTop()},$.getTop=function(){return b.top()},$.modalRendered=function(t){t=b.get(t);t&&t.value.renderDeferred.resolve()},$.focusFirstFocusableElement=function(){return 0<g.length&&(g[0].focus(),!0)},$.focusLastFocusableElement=function(){return 0<g.length&&(g[g.length-1].focus(),!0)},$.isModalFocused=function(t,e){if(t&&e){e=e.value.modalDomEl;if(e&&e.length)return(t.target||t.srcElement)===e[0]}return!1},$.isFocusInFirstItem=function(t){return 0<g.length&&(t.target||t.srcElement)===g[0]},$.isFocusInLastItem=function(t){return 0<g.length&&(t.target||t.srcElement)===g[g.length-1]},$.clearFocusListCache=function(){g=[]},$.loadFocusElementList=function(t){void 0!==g&&g.length||!t||(t=t.value.modalDomEl)&&t.length&&(g=t[0].querySelectorAll("a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]"))},$}]).provider("$uibModal",function(){var b={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(h,o,d,p,f,m,g){var t={},v=null;return t.getPromiseChain=function(){return v},t.open=function(r){function t(){return e}var e,n,i,s=o.defer(),a=o.defer(),l=o.defer(),u=o.defer(),c={result:s.promise,opened:a.promise,closed:l.promise,rendered:u.promise,close:function(t){return g.close(c,t)},dismiss:function(t){return g.dismiss(c,t)}};if((r=angular.extend({},b.options,r)).resolve=r.resolve||{},r.appendTo=r.appendTo||d.find("body").eq(0),r.template||r.templateUrl)return e=o.all([(n=r).template?o.when(n.template):p(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl),m.resolve(r.resolve,{},null,null)]),i=v=o.all([v]).then(t,t).then(function(t){var e=r.scope||h,n=e.$new();n.$close=c.close,n.$dismiss=c.dismiss,n.$on("$destroy",function(){n.$$uibDestructionScheduled||n.$dismiss("$uibUnscheduledDestruction")});var i,o={};r.controller&&(o.$scope=n,o.$uibModalInstance=c,angular.forEach(t[1],function(t,e){o[e]=t}),i=f(r.controller,o),r.controllerAs)&&(r.bindToController&&(i.$close=n.$close,i.$dismiss=n.$dismiss,angular.extend(i,e)),n[r.controllerAs]=i),g.open(c,{scope:n,deferred:s,renderDeferred:u,closedDeferred:l,content:t[0],animation:r.animation,backdrop:r.backdrop,keyboard:r.keyboard,backdropClass:r.backdropClass,windowTopClass:r.windowTopClass,windowClass:r.windowClass,windowTemplateUrl:r.windowTemplateUrl,size:r.size,openedClass:r.openedClass,appendTo:r.appendTo}),a.resolve(!0)},function(t){a.reject(t),s.reject(t)}).finally(function(){v===i&&(v=null)}),c;throw new Error("One of template or templateUrl options is required.")},t}]};return b}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(r){return{create:function(n,i,o){n.setNumPages=o.numPages?r(o.numPages).assign:angular.noop,n.ngModelCtrl={$setViewValue:angular.noop},n._watchers=[],n.init=function(t,e){n.ngModelCtrl=t,n.config=e,t.$render=function(){n.render()},o.itemsPerPage?n._watchers.push(i.$parent.$watch(r(o.itemsPerPage),function(t){n.itemsPerPage=parseInt(t,10),i.totalPages=n.calculateTotalPages(),n.updatePage()})):n.itemsPerPage=e.itemsPerPage,i.$watch("totalItems",function(t,e){!angular.isDefined(t)&&t===e||(i.totalPages=n.calculateTotalPages(),n.updatePage())})},n.calculateTotalPages=function(){var t=n.itemsPerPage<1?1:Math.ceil(i.totalItems/n.itemsPerPage);return Math.max(t||0,1)},n.render=function(){i.page=parseInt(n.ngModelCtrl.$viewValue,10)||1},i.selectPage=function(t,e){e&&e.preventDefault(),(!i.ngDisabled||!e)&&i.page!==t&&0<t&&t<=i.totalPages&&(e&&e.target&&e.target.blur(),n.ngModelCtrl.$setViewValue(t),n.ngModelCtrl.$render())},i.getText=function(t){return i[t+"Text"]||n.config[t+"Text"]},i.noPrevious=function(){return 1===i.page},i.noNext=function(){return i.page===i.totalPages},n.updatePage=function(){n.setNumPages(i.$parent,i.totalPages),i.page>i.totalPages?i.selectPage(i.totalPages):n.ngModelCtrl.$render()},i.$on("$destroy",function(){for(;n._watchers.length;)n._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(t,e,n,i){t.align=angular.isDefined(e.align)?t.$parent.$eval(e.align):i.align,n.create(this,t,e)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(r){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPagerController",controllerAs:"pager",templateUrl:function(t,e){return e.templateUrl||"uib/template/pager/pager.html"},replace:!0,link:function(t,e,n,i){var o=i[0],i=i[1];i&&o.init(i,r)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(t,e,n,i,o){function l(t,e,n){return{number:t,text:e,active:n}}var r=this,u=angular.isDefined(e.maxSize)?t.$parent.$eval(e.maxSize):o.maxSize,c=angular.isDefined(e.rotate)?t.$parent.$eval(e.rotate):o.rotate,h=angular.isDefined(e.forceEllipses)?t.$parent.$eval(e.forceEllipses):o.forceEllipses,d=angular.isDefined(e.boundaryLinkNumbers)?t.$parent.$eval(e.boundaryLinkNumbers):o.boundaryLinkNumbers,s=(t.boundaryLinks=angular.isDefined(e.boundaryLinks)?t.$parent.$eval(e.boundaryLinks):o.boundaryLinks,t.directionLinks=angular.isDefined(e.directionLinks)?t.$parent.$eval(e.directionLinks):o.directionLinks,i.create(this,t,e),e.maxSize&&r._watchers.push(t.$parent.$watch(n(e.maxSize),function(t){u=parseInt(t,10),r.render()})),this.render);this.render=function(){s(),0<t.page&&t.page<=t.totalPages&&(t.pages=function(t,e){var n=[],i=1,o=e,r=angular.isDefined(u)&&u<e;r&&(c?e<(o=(i=Math.max(t-Math.floor(u/2),1))+u-1)&&(i=(o=e)-u+1):(i=(Math.ceil(t/u)-1)*u+1,o=Math.min(i+u-1,e)));for(var s=i;s<=o;s++){var a=l(s,s,s===t);n.push(a)}return r&&0<u&&(!c||h||d)&&(1<i&&((!d||3<i)&&(r=l(i-1,"...",!1),n.unshift(r)),d)&&(3===i&&(r=l(2,"2",!1),n.unshift(r)),i=l(1,"1",!1),n.unshift(i)),o<e)&&((!d||o<e-2)&&(r=l(o+1,"...",!1),n.push(r)),d)&&(o===e-2&&(i=l(e-1,e-1,!1),n.push(i)),r=l(e,e,!1),n.push(r)),n}(t.page,t.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(t,r){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(t,e){return e.templateUrl||"uib/template/pagination/pagination.html"},replace:!0,link:function(t,e,n,i){var o=i[0],i=i[1];i&&o.init(i,r)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){var a={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},l={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},u={};this.options=function(t){angular.extend(u,t)},this.setTriggers=function(t){angular.extend(l,t)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(t,r,H,L,j,s,e,R,n){function i(t){27===t.which&&(t=F.top())&&(t.value.close(),F.removeTop())}var F=n.createNew();return L.on("keypress",i),e.$on("$destroy",function(){L.off("keypress",i)}),function(O,I,n,P){function N(t){var t=(t||P.trigger||n).split(" "),e=t.map(function(t){return l[t]||t});return{show:t,hide:e}}P=angular.extend({},a,u,P);var t=O.replace(/[A-Z]/g,function(t,e){return(e?"-":"")+t.toLowerCase()}),e=s.startSymbol(),i=s.endSymbol(),o="<div "+t+'-popup title="'+e+"title"+i+'" '+(P.useContentExp?'content-exp="contentExp()" ':'content="'+e+"content"+i+'" ')+'placement="'+e+"placement"+i+'" popup-class="'+e+"popupClass"+i+'" animation="animation" is-open="isOpen"origin-scope="origScope" style="visibility: hidden; display: block; top: -9999px; left: -9999px;"></div>';return{compile:function(t,e){var A=r(o);return function(n,i,o,t){function r(){(C.isOpen?a:s)()}function s(){var t,e;k&&!n.$eval(o[I+"Enable"])||(c(),C.title=o[I+"Title"],C.content=S?S(n):o[O],C.popupClass=o[I+"Class"],C.placement=angular.isDefined(o[I+"Placement"])?o[I+"Placement"]:P.placement,t=parseInt(o[I+"PopupDelay"],10),e=parseInt(o[I+"PopupCloseDelay"],10),C.popupDelay=isNaN(t)?P.popupDelay:t,C.popupCloseDelay=isNaN(e)?P.popupCloseDelay:e,C.popupDelay?y=y||H(l,C.popupDelay,!1):l())}function a(){e(),C.popupCloseDelay?$=$||H(u,C.popupCloseDelay,!1):u()}function l(){return e(),c(),C.content?(g||(v=C.$new(),g=A(v,function(t){x?L.find("body").append(t):i.after(t)}),E.length=0,S?(E.push(n.$watch(S,function(t){!(C.content=t)&&C.isOpen&&u()})),E.push(v.$watch(function(){T||(T=!0,v.$$postDigest(function(){T=!1,C&&C.isOpen&&f()}))}))):E.push(o.$observe(O,function(t){(!(C.content=t)&&C.isOpen?u:f)()})),E.push(o.$observe(I+"Title",function(t){C.title=t,C.isOpen&&f()})),E.push(o.$observe(I+"Placement",function(t){C.placement=t||P.placement,C.isOpen&&f()}))),void C.$evalAsync(function(){d(C.isOpen=!0),f()})):angular.noop}function e(){y&&(H.cancel(y),y=null),w&&(H.cancel(w),w=null)}function u(){C&&C.$evalAsync(function(){C&&(d(C.isOpen=!1),C.animation?b=b||H(h,150,!1):h())})}function c(){$&&(H.cancel($),$=null),b&&(H.cancel(b),b=null)}function h(){e(),c(),E.length&&(angular.forEach(E,function(t){t()}),E.length=0),g&&(g.remove(),g=null),v&&(v.$destroy(),v=null)}function d(t){D&&angular.isFunction(D.assign)&&D.assign(n,t)}function p(t){C&&C.isOpen&&g&&(i[0].contains(t.target)||g[0].contains(t.target)||a())}function f(){g&&g.html()&&(w=w||H(function(){g.css({top:0,left:0});var t=j.positionElements(i,g,C.placement,x),e=(g.css({top:t.top+"px",left:t.left+"px",visibility:"visible"}),P.placementClassPrefix&&g.removeClass("top bottom left right"),g.removeClass(P.placementClassPrefix+"top "+P.placementClassPrefix+"top-left "+P.placementClassPrefix+"top-right "+P.placementClassPrefix+"bottom "+P.placementClassPrefix+"bottom-left "+P.placementClassPrefix+"bottom-right "+P.placementClassPrefix+"left "+P.placementClassPrefix+"left-top "+P.placementClassPrefix+"left-bottom "+P.placementClassPrefix+"right "+P.placementClassPrefix+"right-top "+P.placementClassPrefix+"right-bottom"),t.placement.split("-"));g.addClass(e[0]+" "+P.placementClassPrefix+t.placement),j.positionArrow(g,t.placement),w=null},0,!1))}function m(){_.show.forEach(function(t){"outsideClick"===t?i.off("click",r):(i.off(t,s),i.off(t,r))}),_.hide.forEach(function(t){"outsideClick"===t?L.off("click",p):i.off(t,a)})}var g,v,b,y,$,w,x=!!angular.isDefined(P.appendToBody)&&P.appendToBody,_=N(void 0),k=angular.isDefined(o[I+"Enable"]),C=n.$new(!0),T=!1,D=!!angular.isDefined(o[I+"IsOpen"])&&R(o[I+"IsOpen"]),S=!!P.useContentExp&&R(o[O]),E=[],M=(C.origScope=n,C.isOpen=!1,F.add(C,{close:u}),C.contentExp=function(){return C.content},o.$observe("disabled",function(t){t&&e(),t&&C.isOpen&&u()}),D&&n.$watch(D,function(t){C&&!t===C.isOpen&&r()}),M=o[I+"Trigger"],m(),"none"!==(_=N(M)).show&&_.show.forEach(function(t,e){"outsideClick"===t?(i.on("click",r),L.on("click",p)):t===_.hide[e]?i.on(t,r):t&&(i.on(t,s),i.on(_.hide[e],a)),i.on("keypress",function(t){27===t.which&&a()})}),n.$eval(o[I+"Animation"]));C.animation=angular.isDefined(M)?!!M:P.animation;M=I+"AppendToBody",M=M in o&&void 0===o[M]||n.$eval(o[M]),x=angular.isDefined(M)?M:x;n.$on("$destroy",function(){m(),h(),F.remove(C),C=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(c,i,h,d){return{link:function(t,o,e){function r(){n&&(n.remove(),n=null),s&&(s.$destroy(),s=null),a&&(c.leave(a).then(function(){n=null}),n=a,a=null)}var s,n,a,l=t.$eval(e.tooltipTemplateTranscludeScope),u=0;t.$watch(i.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(n){var i=++u;n?(d(n,!0).then(function(t){var e;i===u&&(e=l.$new(),t=h(t)(e,function(t){r(),c.enter(t,o)}),a=t,(s=e).$emit("$includeContentLoaded",n))},function(){i===u&&(r(),t.$emit("$includeContentError",n))}),t.$emit("$includeContentRequested",n)):r()}),t.$on("$destroy",r)}}}]).directive("uibTooltipClasses",["$uibPosition",function(o){return{restrict:"A",link:function(t,e,n){var i;t.placement?(i=o.parsePlacement(t.placement),e.addClass(i[0])):e.addClass("top"),t.popupClass&&e.addClass(t.popupClass),t.animation()&&e.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(t){return t("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(t){return t("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(t){return t("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(t){return t("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(t){return t("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(t){return t("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(i,t,e){var o=this,r=angular.isDefined(t.animate)?i.$parent.$eval(t.animate):e.animate;this.bars=[],i.max=(angular.isDefined(i.max)?i:e).max,this.addBar=function(e,t,n){r||t.css({transition:"none"}),this.bars.push(e),e.max=i.max,e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=o.bars.reduce(function(t,e){return e.percent=+(100*e.value/e.max).toFixed(2),t+e.percent},0);100<t&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,o.removeBar(e)})},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1),this.bars.forEach(function(t){t.recalculatePercentage()})},i.$watch("max",function(t){o.bars.forEach(function(t){t.max=i.max,t.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{max:"=?"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(t,e,n,i){i.addBar(t,e,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(t,e,n,i){i.addBar(t,angular.element(e.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,n,i){var o={$setViewValue:angular.noop};this.init=function(t){(o=t).$render=this.render,o.$formatters.push(function(t){return t=angular.isNumber(t)&&t<<0!==t?Math.round(t):t}),this.stateOn=angular.isDefined(n.stateOn)?e.$parent.$eval(n.stateOn):i.stateOn,this.stateOff=angular.isDefined(n.stateOff)?e.$parent.$eval(n.stateOff):i.stateOff;t=angular.isDefined(n.titles)?e.$parent.$eval(n.titles):i.titles,this.titles=angular.isArray(t)&&0<t.length?t:i.titles,t=angular.isDefined(n.ratingStates)?e.$parent.$eval(n.ratingStates):new Array(angular.isDefined(n.max)?e.$parent.$eval(n.max):i.max);e.range=this.buildTemplateObjects(t)},this.buildTemplateObjects=function(t){for(var e=0,n=t.length;e<n;e++)t[e]=angular.extend({index:e},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(e)},t[e]);return t},this.getTitle=function(t){return t>=this.titles.length?t+1:this.titles[t]},e.rate=function(t){!e.readonly&&0<=t&&t<=e.range.length&&(o.$setViewValue(o.$viewValue===t?0:t),o.$render())},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=o.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=o.$viewValue}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",replace:!0,link:function(t,e,n,i){var o=i[0],i=i[1];o.init(i)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(t){var n,i=this,o=i.tabs=t.tabs=[];i.select=function(e){angular.forEach(o,function(t){t.active&&t!==e&&(t.active=!1,t.onDeselect(),e.selectCalled=!1)}),e.active=!0,e.selectCalled||(e.onSelect(),e.selectCalled=!0)},i.addTab=function(t){o.push(t),1===o.length&&!1!==t.active?t.active=!0:t.active?i.select(t):t.active=!1},i.removeTab=function(t){var e=o.indexOf(t);t.active&&1<o.length&&!n&&(t=e===o.length-1?e-1:e+1,i.select(o[t])),o.splice(e,1)},t.$on("$destroy",function(){n=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{type:"@"},controller:"UibTabsetController",templateUrl:"uib/template/tabs/tabset.html",link:function(t,e,n){t.vertical=!!angular.isDefined(n.vertical)&&t.$parent.$eval(n.vertical),t.justified=!!angular.isDefined(n.justified)&&t.$parent.$eval(n.justified)}}}).directive("uibTab",["$parse",function(r){return{require:"^uibTabset",replace:!0,templateUrl:"uib/template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(e,t,n,i,o){e.$watch("active",function(t){t&&i.select(e)}),e.disabled=!1,n.disable&&e.$parent.$watch(r(n.disable),function(t){e.disabled=!!t}),e.select=function(){e.disabled||(e.active=!0)},i.addTab(e),e.$on("$destroy",function(){i.removeTab(e)}),e.$transcludeFn=o}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(t,e){t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}).directive("uibTabContentTransclude",function(){return{restrict:"A",require:"^uibTabset",link:function(t,n,e){var i=t.$eval(e.uibTabContentTransclude);i.$transcludeFn(i.$parent,function(t){angular.forEach(t,function(t){var e;(e=t).tagName&&(e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase())?i.headingElement=t:n.append(t)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(o,t,i,e,n,r,s){function a(){var t=+o.hours;return(o.showMeridian?0<t&&t<13:0<=t&&t<24)?(o.showMeridian&&(12===t&&(t=0),o.meridian===w[1])&&(t+=12),t):void 0}function l(){var t=+o.minutes;return 0<=t&&t<60?t:void 0}function u(t){return null===t?"":angular.isDefined(t)&&t.toString().length<2?"0"+t:t.toString()}function c(t){h(),$.$setViewValue(new Date(b)),d(t)}function h(){$.$setValidity("time",!0),o.invalidHours=!1,o.invalidMinutes=!1,o.invalidSeconds=!1}function d(t){var e,n,i;$.$modelValue?(e=b.getHours(),n=b.getMinutes(),i=b.getSeconds(),o.showMeridian&&(e=0===e||12===e?12:e%12),o.hours="h"===t?e:u(e),"m"!==t&&(o.minutes=u(n)),o.meridian=b.getHours()<12?w[0]:w[1],"s"!==t&&(o.seconds=u(i)),o.meridian=b.getHours()<12?w[0]:w[1]):(o.hours=null,o.minutes=null,o.seconds=null,o.meridian=w[0])}function p(t){b=m(b,t),c()}function f(t,e){return m(t,60*e)}function m(t,e){e=new Date(t.getTime()+1e3*e),t=new Date(t);return t.setHours(e.getHours(),e.getMinutes(),e.getSeconds()),t}var g,v,b=new Date,y=[],$={$setViewValue:angular.noop},w=angular.isDefined(i.meridians)?o.$parent.$eval(i.meridians):s.meridians||r.DATETIME_FORMATS.AMPMS,x=(o.tabindex=angular.isDefined(i.tabindex)?i.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,e){($=t).$render=this.render,$.$formatters.unshift(function(t){return t?new Date(t):null});var t=e.eq(0),n=e.eq(1),e=e.eq(2);(angular.isDefined(i.mousewheel)?o.$parent.$eval(i.mousewheel):s.mousewheel)&&this.setupMousewheelEvents(t,n,e),(angular.isDefined(i.arrowkeys)?o.$parent.$eval(i.arrowkeys):s.arrowkeys)&&this.setupArrowkeyEvents(t,n,e),o.readonlyInput=angular.isDefined(i.readonlyInput)?o.$parent.$eval(i.readonlyInput):s.readonlyInput,this.setupInputEvents(t,n,e)},s.hourStep),_=(i.hourStep&&y.push(o.$parent.$watch(e(i.hourStep),function(t){x=+t})),s.minuteStep),k=(i.minuteStep&&y.push(o.$parent.$watch(e(i.minuteStep),function(t){_=+t})),y.push(o.$parent.$watch(e(i.min),function(t){t=new Date(t);g=isNaN(t)?void 0:t})),y.push(o.$parent.$watch(e(i.max),function(t){t=new Date(t);v=isNaN(t)?void 0:t})),!1),C=(i.ngDisabled&&y.push(o.$parent.$watch(e(i.ngDisabled),function(t){k=t})),o.noIncrementHours=function(){var t=f(b,60*x);return k||v<t||t<b&&t<g},o.noDecrementHours=function(){var t=f(b,60*-x);return k||t<g||b<t&&v<t},o.noIncrementMinutes=function(){var t=f(b,_);return k||v<t||t<b&&t<g},o.noDecrementMinutes=function(){var t=f(b,-_);return k||t<g||b<t&&v<t},o.noIncrementSeconds=function(){var t=m(b,C);return k||v<t||t<b&&t<g},o.noDecrementSeconds=function(){var t=m(b,-C);return k||t<g||b<t&&v<t},o.noToggleMeridian=function(){return b.getHours()<12?k||f(b,720)>v:k||f(b,-720)<g},s.secondStep);i.secondStep&&y.push(o.$parent.$watch(e(i.secondStep),function(t){C=+t})),o.showSeconds=s.showSeconds,i.showSeconds&&y.push(o.$parent.$watch(e(i.showSeconds),function(t){o.showSeconds=!!t})),o.showMeridian=s.showMeridian,i.showMeridian&&y.push(o.$parent.$watch(e(i.showMeridian),function(t){var e;o.showMeridian=!!t,$.$error.time?(t=a(),e=l(),angular.isDefined(t)&&angular.isDefined(e)&&(b.setHours(t),c())):d()})),this.setupMousewheelEvents=function(t,e,n){function i(t){var e=(t=t.originalEvent?t.originalEvent:t).wheelDelta||-t.deltaY;return t.detail||0<e}t.bind("mousewheel wheel",function(t){k||o.$apply(i(t)?o.incrementHours():o.decrementHours()),t.preventDefault()}),e.bind("mousewheel wheel",function(t){k||o.$apply(i(t)?o.incrementMinutes():o.decrementMinutes()),t.preventDefault()}),n.bind("mousewheel wheel",function(t){k||o.$apply(i(t)?o.incrementSeconds():o.decrementSeconds()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,e,n){t.bind("keydown",function(t){k||(38===t.which?(t.preventDefault(),o.incrementHours(),o.$apply()):40===t.which&&(t.preventDefault(),o.decrementHours(),o.$apply()))}),e.bind("keydown",function(t){k||(38===t.which?(t.preventDefault(),o.incrementMinutes(),o.$apply()):40===t.which&&(t.preventDefault(),o.decrementMinutes(),o.$apply()))}),n.bind("keydown",function(t){k||(38===t.which?(t.preventDefault(),o.incrementSeconds(),o.$apply()):40===t.which&&(t.preventDefault(),o.decrementSeconds(),o.$apply()))})},this.setupInputEvents=function(t,e,n){var i;o.readonlyInput?(o.updateHours=angular.noop,o.updateMinutes=angular.noop,o.updateSeconds=angular.noop):(i=function(t,e,n){$.$setViewValue(null),$.$setValidity("time",!1),angular.isDefined(t)&&(o.invalidHours=t),angular.isDefined(e)&&(o.invalidMinutes=e),angular.isDefined(n)&&(o.invalidSeconds=n)},o.updateHours=function(){var t=a(),e=l();$.$setDirty(),!angular.isDefined(t)||!angular.isDefined(e)||(b.setHours(t),b.setMinutes(e),b<g)||v<b?i(!0):c("h")},t.bind("blur",function(t){$.$setTouched(),null===o.hours||""===o.hours?i(!0):!o.invalidHours&&o.hours<10&&o.$apply(function(){o.hours=u(o.hours)})}),o.updateMinutes=function(){var t=l(),e=a();$.$setDirty(),!angular.isDefined(t)||!angular.isDefined(e)||(b.setHours(e),b.setMinutes(t),b<g)||v<b?i(void 0,!0):c("m")},e.bind("blur",function(t){$.$setTouched(),null===o.minutes?i(void 0,!0):!o.invalidMinutes&&o.minutes<10&&o.$apply(function(){o.minutes=u(o.minutes)})}),o.updateSeconds=function(){var t=0<=(t=+o.seconds)&&t<60?t:void 0;$.$setDirty(),angular.isDefined(t)?(b.setSeconds(t),c("s")):i(void 0,void 0,!0)},n.bind("blur",function(t){!o.invalidSeconds&&o.seconds<10&&o.$apply(function(){o.seconds=u(o.seconds)})}))},this.render=function(){var t=$.$viewValue;isNaN(t)?($.$setValidity("time",!1),n.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):((b=t?t:b)<g||v<b?($.$setValidity("time",!1),o.invalidHours=!0,o.invalidMinutes=!0):h(),d())},o.showSpinners=angular.isDefined(i.showSpinners)?o.$parent.$eval(i.showSpinners):s.showSpinners,o.incrementHours=function(){o.noIncrementHours()||p(60*x*60)},o.decrementHours=function(){o.noDecrementHours()||p(60*-x*60)},o.incrementMinutes=function(){o.noIncrementMinutes()||p(60*_)},o.decrementMinutes=function(){o.noDecrementMinutes()||p(60*-_)},o.incrementSeconds=function(){o.noIncrementSeconds()||p(C)},o.decrementSeconds=function(){o.noDecrementSeconds()||p(-C)},o.toggleMeridian=function(){var t=l(),e=a();o.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(e)?p(720*(b.getHours()<12?60:-60)):o.meridian=o.meridian===w[0]?w[1]:w[0])},o.blur=function(){$.$setTouched()},o.$on("$destroy",function(){for(;y.length;)y.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(t,e){return e.templateUrl||n.templateUrl},link:function(t,e,n,i){var o=i[0],i=i[1];i&&o.init(i,e.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(t){var e=t.match(i);if(e)return{itemName:e[3],source:n(e[4]),viewMapper:n(e[2]||e[1]),modelMapper:n(e[1])};throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+t+'".')}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(a,l,s,H,n,L,u,t,e,j,c,i,o){function r(){E.moveInProgress||(E.moveInProgress=!0,E.$digest()),K()}function h(){E.position=k?i.offset(l):i.position(l),E.position.top+=l.prop("offsetHeight")}var d,p,R=[9,13,27,38,40],f=a.$eval(s.typeaheadMinLength),m=(f||0===f||(f=1),a.$eval(s.typeaheadWaitMs)||0),g=!1!==a.$eval(s.typeaheadEditable);a.$watch(s.typeaheadEditable,function(t){g=!1!==t});var v,b,y,$,w=n(s.typeaheadLoading).assign||angular.noop,F=n(s.typeaheadOnSelect),z=!!angular.isDefined(s.typeaheadSelectOnBlur)&&a.$eval(s.typeaheadSelectOnBlur),x=n(s.typeaheadNoResults).assign||angular.noop,_=s.typeaheadInputFormatter?n(s.typeaheadInputFormatter):void 0,k=!!s.typeaheadAppendToBody&&a.$eval(s.typeaheadAppendToBody),C=s.typeaheadAppendTo?a.$eval(s.typeaheadAppendTo):null,W=!1!==a.$eval(s.typeaheadFocusFirst),U=!!s.typeaheadSelectOnExact&&a.$eval(s.typeaheadSelectOnExact),q=n(s.typeaheadIsOpen).assign||angular.noop,T=a.$eval(s.typeaheadShowHint)||!1,D=n(s.ngModel),V=n(s.ngModel+"($$$p)"),S=o.parse(s.uibTypeahead),E=a.$new(),o=a.$on("$destroy",function(){E.$destroy()}),M=(E.$on("$destroy",o),"typeahead-"+E.$id+"-"+Math.floor(1e4*Math.random())),A=(l.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":M}),T&&((y=angular.element("<div></div>")).css("position","relative"),l.after(y),($=l.clone()).attr("placeholder",""),$.val(""),$.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),l.css({position:"relative","vertical-align":"top","background-color":"transparent"}),y.append($),$.after(l)),angular.element("<div uib-typeahead-popup></div>")),B=(A.attr({id:M,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(s.typeaheadTemplateUrl)&&A.attr("template-url",s.typeaheadTemplateUrl),angular.isDefined(s.typeaheadPopupTemplateUrl)&&A.attr("popup-template-url",s.typeaheadPopupTemplateUrl),function(){T&&$.val("")}),O=function(){E.matches=[],E.activeIdx=-1,l.attr("aria-expanded",!1),B()},Y=function(t){return M+"-option-"+t},G=(E.$watch("activeIdx",function(t){t<0?l.removeAttr("aria-activedescendant"):l.attr("aria-activedescendant",Y(t))}),function(t,e){return!!(E.matches.length>e&&t)&&t.toUpperCase()===E.matches[e].label.toUpperCase()}),I=function(o,r){var s={$viewValue:o};w(a,!0),x(a,!1),L.when(S.source(a,s)).then(function(t){var e=o===d.$viewValue;if(e&&v)if(t&&0<t.length){E.activeIdx=W?0:-1,x(a,!1);for(var n,i=E.matches.length=0;i<t.length;i++)s[S.itemName]=t[i],E.matches.push({id:Y(i),label:S.viewMapper(E,s),model:t[i]});E.query=o,h(),l.attr("aria-expanded",!0),U&&1===E.matches.length&&G(o,0)&&(angular.isNumber(E.debounceUpdate)||angular.isObject(E.debounceUpdate)?c(function(){E.select(0,r)},angular.isNumber(E.debounceUpdate)?E.debounceUpdate:E.debounceUpdate.default):E.select(0,r)),T&&(n=E.matches[0].label,angular.isString(o)&&0<o.length&&n.slice(0,o.length).toUpperCase()===o.toUpperCase()?$.val(o+n.slice(o.length)):$.val(""))}else O(),x(a,!0);e&&w(a,!1)},function(){O(),w(a,!1),x(a,!0)})},K=(k&&(angular.element(e).on("resize",r),t.find("body").on("scroll",r)),c(function(){E.matches.length&&h(),E.moveInProgress=!1},200));E.moveInProgress=!1,E.query=void 0;function X(){P&&u.cancel(P)}function Q(t){l[0]!==t.target&&3!==t.which&&0!==E.matches.length&&(O(),j.$$phase||E.$digest())}O(),E.assignIsOpen=function(t){q(a,t)},E.select=function(t,e){var n,i,o,r={};b=!0,r[S.itemName]=t=E.matches[t].model,n=S.modelMapper(a,r),i=a,o=n,angular.isFunction(D(a))&&p&&p.$options&&p.$options.getterSetter?V(i,{$$$p:o}):D.assign(i,o),d.$setValidity("editable",!0),d.$setValidity("parse",!0),F(a,{$item:t,$model:n,$label:S.viewMapper(a,r),$event:e}),O(),!1!==E.$eval(s.typeaheadFocusOnSelect)&&u(function(){l[0].focus()},0,!1)},l.on("keydown",function(t){var e;if(0!==E.matches.length&&-1!==R.indexOf(t.which))if(-1!==E.activeIdx||9!==t.which&&13!==t.which)switch(t.preventDefault(),t.which){case 9:case 13:E.$apply(function(){angular.isNumber(E.debounceUpdate)||angular.isObject(E.debounceUpdate)?c(function(){E.select(E.activeIdx,t)},angular.isNumber(E.debounceUpdate)?E.debounceUpdate:E.debounceUpdate.default):E.select(E.activeIdx,t)});break;case 27:t.stopPropagation(),O(),E.$digest();break;case 38:E.activeIdx=(0<E.activeIdx?E.activeIdx:E.matches.length)-1,E.$digest(),(e=A.find("li")[E.activeIdx]).parentNode.scrollTop=e.offsetTop;break;case 40:E.activeIdx=(E.activeIdx+1)%E.matches.length,E.$digest(),(e=A.find("li")[E.activeIdx]).parentNode.scrollTop=e.offsetTop}else O(),E.$digest()}),l.bind("focus",function(t){v=!0,0!==f||d.$viewValue||u(function(){I(d.$viewValue,t)},0)}),l.bind("blur",function(t){z&&E.matches.length&&-1!==E.activeIdx&&!b&&(b=!0,E.$apply(function(){angular.isObject(E.debounceUpdate)&&angular.isNumber(E.debounceUpdate.blur)?c(function(){E.select(E.activeIdx,t)},E.debounceUpdate.blur):E.select(E.activeIdx,t)})),!g&&d.$error.editable&&(d.$viewValue="",l.val("")),b=v=!1});t.on("click",Q),a.$on("$destroy",function(){t.off("click",Q),(k||C)&&N.remove(),k&&(angular.element(e).off("resize",r),t.find("body").off("scroll",r)),A.remove(),T&&y.remove()});var P,N=H(A)(E);k?t.find("body").append(N):C?angular.element(C).eq(0).append(N):l.after(N),this.init=function(t,e){d=t,p=e,E.debounceUpdate=d.$options&&n(d.$options.debounce)(a),d.$parsers.unshift(function(t){return v=!0,0===f||t&&t.length>=f?0<m?(X(),e=t,P=u(function(){I(e)},m)):I(t):(w(a,!1),X(),O()),g?t:t?void d.$setValidity("editable",!1):(d.$setValidity("editable",!0),null);var e}),d.$formatters.push(function(t){var e,n={};return g||d.$setValidity("editable",!0),_?(n.$model=t,_(a,n)):(n[S.itemName]=t,e=S.viewMapper(a,n),n[S.itemName]=void 0,e!==S.viewMapper(a,n)?e:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(t,e,n,i){i[2].init(i[0],i[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(o){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(t,e){return e.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(i,t,e){i.templateUrl=e.templateUrl,i.isOpen=function(){var t=0<i.matches.length;return i.assignIsOpen({isOpen:t}),t},i.isActive=function(t){return i.active===t},i.selectActive=function(t){i.active=t},i.selectMatch=function(t,e){var n=i.debounce();angular.isNumber(n)||angular.isObject(n)?o(function(){i.select({activeIdx:t,evt:e})},angular.isNumber(n)?n:n.default):i.select({activeIdx:t,evt:e})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(i,o,r){return{scope:{index:"=",match:"=",query:"="},link:function(e,n,t){t=r(t.templateUrl)(e.$parent)||"uib/template/typeahead/typeahead-match.html";i(t).then(function(t){t=angular.element(t.trim());n.replaceWith(t),o(t)(e)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,t,i){var o=t.has("$sanitize");return function(t,e){return!o&&/<.*>/g.test(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):t,t=o?t:n.trustAsHtml(t)}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion-group.html",'<div class="panel" ng-class="panelClass || \'panel-default\'">\n <div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n <h4 class="panel-title">\n <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n <div class="panel-body" ng-transclude></div>\n </div>\n</div>\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("uib/template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n <span aria-hidden="true">×</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <div class="carousel-inner" ng-transclude></div>\n <a role="button" href class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n <span class="sr-only">previous</span>\n </a>\n <a role="button" href class="right carousel-control" ng-click="next()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n <span class="sr-only">next</span>\n </a>\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n </li>\n </ol>\n</div>')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/slide.html",'<div ng-class="{\n \'active\': active\n }" class="item text-center" ng-transclude></div>\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/datepicker.html",'<div class="uib-datepicker" ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n <uib-daypicker ng-switch-when="day" tabindex="0"></uib-daypicker>\n <uib-monthpicker ng-switch-when="month" tabindex="0"></uib-monthpicker>\n <uib-yearpicker ng-switch-when="year" tabindex="0"></uib-yearpicker>\n</div>')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/day.html",'<table class="uib-daypicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n <tr>\n <th ng-if="showWeeks" class="text-center"></th>\n <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-weeks" ng-repeat="row in rows track by $index">\n <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default btn-sm"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/month.html",'<table class="uib-monthpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-months" ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/popup.html",'<div>\n <ul class="uib-datepicker-popup dropdown-menu" dropdown-nested ng-if="isOpen" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n <li ng-transclude></li>\n <li ng-if="showButtonBar" class="uib-button-bar">\n <span class="btn-group pull-left">\n <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\')" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n </span>\n <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close()">{{ getText(\'close\') }}</button>\n </li>\n </ul>\n</div>\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/year.html",'<table class="uib-yearpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-years" ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/backdrop.html",'<div class="modal-backdrop"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n <div class="modal-dialog {{size ? \'modal-\' + size : \'\'}}"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(t){t.put("uib/template/pager/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("uib/template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-html.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n </div>\n</div>\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-template.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}" aria-valuetext="{{r.title}}"></i>\n</span>\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}" class="uib-tab">\n <a href ng-click="select()" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane" \n ng-repeat="tab in tabs" \n ng-class="{active: tab.active}"\n uib-tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n <tbody>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td> </td>\n <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showSeconds"> </td>\n <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n <input style="width:50px;" type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n </td>\n <td class="uib-separator">:</td>\n <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n <input style="width:50px;" type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n </td>\n <td ng-show="showSeconds" class="uib-separator">:</td>\n <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n <input style="width:50px;" type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n </td>\n <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td> </td>\n <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showSeconds"> </td>\n <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-match.html",'<a href\n tabindex="-1"\n ng-bind-html="match.label | uibTypeaheadHighlight:query"\n ng-attr-title="{{match.label}}"></a>\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>')}),angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-datepicker-popup.dropdown-menu{display:block;}.uib-button-bar{padding:10px 9px 2px;}</style>')}),angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>')}),angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>')}),function(t,b){"use strict";function e(d,p,f){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(n,i,t,e,o){function r(){u&&(f.cancel(u),u=null),a&&(a.$destroy(),a=null),l&&((u=f.leave(l)).then(function(){u=null}),l=null)}function s(){var t,e=d.current&&d.current.locals;b.isDefined(e&&e.$template)?(e=n.$new(),t=d.current,l=o(e,function(t){f.enter(t,null,l||i).then(function(){!b.isDefined(c)||c&&!n.$eval(c)||p()}),r()}),(a=t.scope=e).$emit("$viewContentLoaded"),a.$eval(h)):r()}var a,l,u,c=t.autoscroll,h=t.onload||"";n.$on("$routeChangeSuccess",s),s()}}}function n(s,a,l){return{restrict:"ECA",priority:-400,link:function(t,e){var n,i=l.current,o=i.locals,r=(e.html(o.$template),s(e.contents()));i.controller&&(o.$scope=t,n=a(i.controller,o),i.controllerAs&&(t[i.controllerAs]=n),e.data("$ngControllerController",n),e.children().data("$ngControllerController",n)),t[i.resolveAs||"$resolve"]=o,r(t)}}}t=b.module("ngRoute",["ng"]).provider("$route",function(){function g(t,e){return b.extend(Object.create(t),e)}function i(t,e){var e=e.caseInsensitiveMatch,n={originalPath:t,regexp:t},o=n.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(t,e,n,i){return t="?"===i?i:null,i="*"===i?i:null,o.push({name:n,optional:!!t}),e=e||"",(t?"":e)+"(?:"+(t?e:"")+(i?"(.+?)":"([^/]+)")+(t||"")+")"+(t||"")}).replace(/([\/$\*])/g,"\\$1"),n.regexp=new RegExp("^"+t+"$",e?"i":""),n}var v={};this.when=function(t,e){var n,e=b.copy(e);return b.isUndefined(e.reloadOnSearch)&&(e.reloadOnSearch=!0),b.isUndefined(e.caseInsensitiveMatch)&&(e.caseInsensitiveMatch=this.caseInsensitiveMatch),v[t]=b.extend(e,t&&i(t,e)),t&&(n="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/",v[n]=b.extend({redirectTo:t},i(n,e))),this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return this.when(null,t="string"==typeof t?{redirectTo:t}:t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,h,o,r,s,a,l){function e(t){var u,c,e=m.current;b.forEach(v,function(t,e){if(i=!c){var n=h.path(),i=t.keys,o={};if(t.regexp)if(n=t.regexp.exec(n)){for(var r=1,s=n.length;r<s;++r){var a=i[r-1],l=n[r];a&&l&&(o[a.name]=l)}i=o}else i=null;else i=null;i=u=i}i&&((c=g(t,{params:b.extend({},h.search(),u),pathParams:u})).$$route=t)}),(p=(d=c||v.null&&g(v.null,{params:{},pathParams:{}}))&&e&&d.$$route===e.$$route&&b.equals(d.pathParams,e.pathParams)&&!d.reloadOnSearch&&!f)||!e&&!d||n.$broadcast("$routeChangeStart",d,e).defaultPrevented&&t&&t.preventDefault()}function i(){var e=m.current,i=d;p?(e.params=i.params,b.copy(e.params,o),n.$broadcast("$routeUpdate",e)):(i||e)&&(f=!1,(m.current=i)&&i.redirectTo&&(b.isString(i.redirectTo)?h.path(u(i.redirectTo,i.params)).search(i.params):h.url(i.redirectTo(i.pathParams,h.path(),h.search()))).replace(),r.when(i).then(function(){var n,t,e;if(i)return n=b.extend({},i.resolve),b.forEach(n,function(t,e){n[e]=b.isString(t)?s.get(t):s.invoke(t,null,null,e)}),b.isDefined(t=i.template)?b.isFunction(t)&&(t=t(i.params)):b.isDefined(e=i.templateUrl)&&(b.isFunction(e)&&(e=e(i.params)),b.isDefined(e))&&(i.loadedTemplateUrl=l.valueOf(e),t=a(e)),b.isDefined(t)&&(n.$template=t),r.all(n)}).then(function(t){i==m.current&&(i&&(i.locals=t,b.copy(i.params,o)),n.$broadcast("$routeChangeSuccess",i,e))},function(t){i==m.current&&n.$broadcast("$routeChangeError",i,e,t)}))}function u(t,n){var i=[];return b.forEach((t||"").split(":"),function(t,e){0===e?i.push(t):(t=(e=t.match(/(\w+)(?:[?*])?(.*)/))[1],i.push(n[t]),i.push(e[2]||""),delete n[t])}),i.join("")}var d,p,f=!1,m={routes:v,reload:function(){var t={defaultPrevented:!(f=!0),preventDefault:function(){this.defaultPrevented=!0,f=!1}};n.$evalAsync(function(){e(t),t.defaultPrevented||i()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw c("norout");t=b.extend({},this.current.params,t),h.path(u(this.current.$$route.originalPath,t)),h.search(t)}};return n.$on("$locationChangeStart",e),n.$on("$locationChangeSuccess",i),m}]});var c=b.$$minErr("ngRoute");t.provider("$routeParams",function(){this.$get=function(){return{}}}),t.directive("ngView",e),t.directive("ngView",n),e.$inject=["$route","$anchorScroll","$animate"],n.$inject=["$compile","$controller","$route"]}(window,window.angular),function(t,g){"use strict";function e(t,e){for(var n={},i=t.split(","),o=0;o<i.length;o++)n[e?g.lowercase(i[o]):i[o]]=!0;return n}function i(t,e){null==t?t="":"string"!=typeof t&&(t=""+t),o.innerHTML=t;var n,i=5;do{if(0===i)throw r("uinput");i--,document.documentMode<=11&&function t(e){if(e.nodeType===Node.ELEMENT_NODE)for(var n=e.attributes,i=0,o=n.length;i<o;i++){var r=n[i],s=r.name.toLowerCase();"xmlns:ns1"!==s&&0!==s.indexOf("ns1:")||(e.removeAttributeNode(r),i--,o--)}(n=e.firstChild)&&t(n);(n=e.nextSibling)&&t(n)}(o),t=o.innerHTML,o.innerHTML=t}while(t!==o.innerHTML);for(i=o.firstChild;i;){switch(i.nodeType){case 1:e.start(i.nodeName.toLowerCase(),function(t){for(var e={},n=0,i=t.length;n<i;n++){var o=t[n];e[o.name]=o.value}return e}(i.attributes));break;case 3:e.chars(i.textContent)}if(!(n=i.firstChild)&&(1==i.nodeType&&e.end(i.nodeName.toLowerCase()),!(n=i.nextSibling)))for(;null==n&&(i=i.parentNode)!==o;)n=i.nextSibling,1==i.nodeType&&e.end(i.nodeName.toLowerCase());i=n}for(;i=o.firstChild;)o.removeChild(i)}function a(t){return t.replace(/&/g,"&").replace(n,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+((t=t.charCodeAt(1))-56320)+65536)+";"}).replace(s,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function v(t,r){var e=!1,s=g.bind(t,t.push);return{start:function(o,t){o=g.lowercase(o),(e=!e&&p[o]?o:e)||!0!==f[o]||(s("<"),s(o),g.forEach(t,function(t,e){var n=g.lowercase(e),i="img"===o&&"src"===n||"background"===n;!0!==b[n]||!0===m[n]&&!r(t,i)||(s(" "),s(e),s('="'),s(a(t)),s('"'))}),s(">"))},end:function(t){t=g.lowercase(t),e||!0!==f[t]||!0===l[t]||(s("</"),s(t),s(">")),t==e&&(e=!1)},chars:function(t){e||s(a(t))}}}var o,r=g.$$minErr("$sanitize"),n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/([^\#-~ |!])/g,l=e("area,br,col,hr,img,wbr"),u=e("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),c=e("rp,rt"),h=g.extend({},c,u),u=g.extend({},u,e("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),c=g.extend({},c,e("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),d=e("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),p=e("script,style"),f=g.extend({},l,u,c,h),m=e("background,cite,href,longdesc,src,xlink:href"),h=e("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),c=e("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),b=g.extend({},m,c,h),u=t;if(!u.document||!u.document.implementation)throw r("noinert");c=((u=u.document.implementation.createHTMLDocument("inert")).documentElement||u.getDocumentElement()).getElementsByTagName("body");1===c.length?o=c[0]:(c=u.createElement("html"),o=u.createElement("body"),c.appendChild(o),u.appendChild(c)),g.module("ngSanitize",[]).provider("$sanitize",function(){var e=!1;this.$get=["$$sanitizeUri",function(n){return e&&g.extend(f,d),function(t){var e=[];return i(t,v(e,function(t,e){return!/^unsafe:/.test(n(t,e))})),e.join("")}}],this.enableSvg=function(t){return g.isDefined(t)?(e=t,this):e}}),g.module("ngSanitize").filter("linky",["$sanitize",function(h){var d=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,p=/^mailto:/i,f=g.$$minErr("linky"),m=g.isString;return function(t,e,n){function i(t){var e;t&&a.push((t=t,v(e=[],g.noop).chars(t),e.join("")))}if(null==t||""===t)return t;if(!m(t))throw f("notstring",t);for(var o,r,s=t,a=[];t=s.match(d);){o=t[0],t[2]||t[4]||(o=(t[3]?"http://":"mailto:")+o),r=t.index,i(s.substr(0,r));{l=void 0;u=void 0;c=void 0;var l=o;var u=t[0].replace(p,"");if(a.push("<a "),g.isFunction(n)&&(n=n(l)),g.isObject(n))for(var c in n)a.push(c+'="'+n[c]+'" ');else n={};!g.isDefined(e)||"target"in n||a.push('target="',e,'" '),a.push('href="',l.replace(/"/g,"""),'">'),i(u),a.push("</a>")}s=s.substring(r+t[0].length)}return i(s),h(a.join(""))}}])}(window,window.angular),function(N,H){"use strict";function L(t,n){for(var e in n=n||{},N.forEach(n,function(t,e){delete n[e]}),t)!t.hasOwnProperty(e)||"$"===e.charAt(0)&&"$"===e.charAt(1)||(n[e]=t[e])}var j=N.$$minErr("$resource"),R=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;N.module("ngResource",["ng"]).provider("$resource",function(){var c=/^https?:\/\/[^\/]*/,s=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(D,o,S,E){function u(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,e?"%20":"+")}function r(t,e){this.template=t,this.defaults=O({},s.defaults,e),this.urlParams={}}var M=N.noop,A=N.forEach,O=N.extend,I=N.copy,P=N.isFunction;return r.prototype={setUrlParams:function(n,i,t){var o,r,s=this,a=t||s.template,e="",l=s.urlParams={};A(a.split(/\W/),function(t){if("hasOwnProperty"===t)throw j("badname");!/^\d+$/.test(t)&&t&&new RegExp("(^|[^\\\\]):"+t+"(\\W|$)").test(a)&&(l[t]={isQueryParamValue:new RegExp("\\?.*=:"+t+"(?:\\W|$)").test(a)})}),a=(a=a.replace(/\\:/g,":")).replace(c,function(t){return e=t,""}),i=i||{},A(s.urlParams,function(t,e){o=(i.hasOwnProperty(e)?i:s.defaults)[e],a=N.isDefined(o)&&null!==o?(r=t.isQueryParamValue?u(o,!0):u(o,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+"),a.replace(new RegExp(":"+e+"(\\W|$)","g"),function(t,e){return r+e})):a.replace(new RegExp("(/?):"+e+"(\\W|$)","g"),function(t,e,n){return"/"==n.charAt(0)?n:e+n})}),a=(a=s.defaults.stripTrailingSlashes?a.replace(/\/+$/,"")||"/":a).replace(/\/\.(?=\w+($|\?))/,"."),n.url=e+a.replace(/\/\\\./,"/."),A(i,function(t,e){s.urlParams[e]||(n.params=n.params||{},n.params[e]=t)})}},function e(n,_,i,t){function k(t){return t.resource}function C(t){L(t||{},this)}var T=new r(n,t);return i=O({},s.defaults.actions,i),C.prototype.toJSON=function(){var t=O({},this);return delete t.$promise,delete t.$resolved,t},A(i,function(b,y){var $=/^(POST|PUT|PATCH)$/i.test(b.method),w=b.timeout,x=(N.isDefined(b.cancellable)?b:t&&N.isDefined(t.cancellable)?t:s.defaults).cancellable;w&&!N.isNumber(w)&&(o.debug("ngResource:\n Only numeric values are allowed as `timeout`.\n Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete b.timeout,w=null),C[y]=function(t,e,n,i){var o,r,s,a={};switch(arguments.length){case 4:s=i,r=n;case 3:case 2:if(!P(e)){a=t,o=e,r=n;break}if(P(t)){r=t,s=e;break}r=e,s=n;case 1:P(t)?r=t:$?o=t:a=t;break;case 0:break;default:throw j("badargs",arguments.length)}var l,u,c,h,d,p=this instanceof C,f=p?o:b.isArray?[]:new C(o),m={},g=b.interceptor&&b.interceptor.response||k,v=b.interceptor&&b.interceptor.responseError||H;return A(b,function(t,e){switch(e){default:m[e]=I(t);case"params":case"isArray":case"interceptor":case"cancellable":}}),!p&&x&&(l=S.defer(),m.timeout=l.promise,w)&&(u=E(l.resolve,w)),$&&(m.data=o),T.setUrlParams(m,O({},(c=o,h=b.params||{},d={},h=O({},_,h),A(h,function(t,e){if((t=P(t)?t():t)&&t.charAt&&"@"==t.charAt(0)){s=c;var n=t.substr(1);if(null==n||""===n||"hasOwnProperty"===n||!R.test("."+n))throw j("badmember",n);for(var i=0,o=(n=n.split(".")).length;i<o&&N.isDefined(s);i++)var r=n[i],s=null!==s?s[r]:H}else s=t;d[e]=s}),d),a),b.url),(a=D(m).then(function(t){var e,n=t.data;if(n){if(N.isArray(n)!==!!b.isArray)throw j("badcfg",y,b.isArray?"array":"object",N.isArray(n)?"array":"object",m.method,m.url);b.isArray?(f.length=0,A(n,function(t){"object"==typeof t?f.push(new C(t)):f.push(t)})):(e=f.$promise,L(n,f),f.$promise=e)}return t.resource=f,t},function(t){return(s||M)(t),S.reject(t)})).finally(function(){f.$resolved=!0,!p&&x&&(f.$cancelRequest=N.noop,E.cancel(u),l=u=m.timeout=null)}),a=a.then(function(t){var e=g(t);return(r||M)(e,t.headers),e},v),p?a:(f.$promise=a,f.$resolved=!1,x&&(f.$cancelRequest=l.resolve),f)},C.prototype["$"+y]=function(t,e,n){return P(t)&&(n=e,e=t,t={}),(t=C[y].call(this,t,this,e,n)).$promise||t}}),C.bind=function(t){return e(n,O({},_,t),i)},C}}]})}((window,window.angular)),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function($,w){"use strict";function L(t,e){return K(new(K(function(){},{prototype:t})),e)}function x(n){return G(arguments,function(t){t!==n&&G(t,function(t,e){n.hasOwnProperty(e)||(n[e]=t)})}),n}function j(t){var n;return Object.keys?Object.keys(t):(n=[],G(t,function(t,e){n.push(e)}),n)}function R(t,e,n){if(Array.prototype.indexOf)return t.indexOf(e,Number(n)||0);var i=t.length>>>0,o=Number(n)||0;for((o=o<0?Math.ceil(o):Math.floor(o))<0&&(o+=i);o<i;o++)if(o in t&&t[o]===e)return o;return-1}function F(t,e,n,i){var o,r,s=function(t,e){var n,i=[];for(n in t.path){if(t.path[n]!==e.path[n])break;i.push(t.path[n])}return i}(n,i),a={},l=[];for(r in s)if(s[r].params&&(o=j(s[r].params),o.length))for(var u in o)0<=R(l,o[u])||(l.push(o[u]),a[o[u]]=t[o[u]]);return K({},a,e)}function d(t,e,n){if(!n)for(var i in n=[],t)n.push(i);for(var o=0;o<n.length;o++){var r=n[o];if(t[r]!=e[r])return!1}return!0}function z(t,e){var n={};return G(t,function(t){n[t]=e[t]}),n}function _(t){var e,n={},i=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(e in t)-1==R(i,e)&&(n[e]=t[e]);return n}function b(t,n){var i=Y(t),o=i?[]:{};return G(t,function(t,e){n(t,e)&&(o[i?o.length:e]=t)}),o}function y(t,n){var i=Y(t)?[]:{};return G(t,function(t,e){i[e]=n(t,e)}),i}function t(g,v){var t={},l=[],b=t,y=K(g.when(t),{$$promises:t,$$values:t});this.study=function(o){function s(t){return B(t)&&t.then&&t.$$promises}var f,m,r,a;if(B(o))return f=j(o||{}),m=[],r=[],a={},G(o,function e(t,n){if(2!==a[n]){if(r.push(n),1===a[n])throw r.splice(0,R(r,n)),new Error("Cyclic dependency: "+r.join(" -> "));var i;a[n]=1,V(t)?m.push(n,[function(){return v.get(t)}],l):(i=v.annotate(t),G(i,function(t){t!==n&&o.hasOwnProperty(t)&&e(o[t],t)}),m.push(n,t,i)),r.pop(),a[n]=2}}),o=r=a=null,function(a,t,l){function u(){--n||(i||x(p,t.$$values),h.$$values=p,h.$$promises=h.$$promises||!0,delete h.$$inheritedValues,e.resolve(p))}function c(t){h.$$failure=t,e.reject(t)}if(s(a)&&l===w&&(l=t,t=a,a=null),a){if(!B(a))throw new Error("'locals' must be an object")}else a=b;if(t){if(!s(t))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else t=y;var e=g.defer(),h=e.promise,d=h.$$promises={},p=K({},a),n=1+m.length/3,i=!1;if(U(t.$$failure))c(t.$$failure);else{t.$$inheritedValues&&x(p,_(t.$$inheritedValues,f)),K(d,t.$$promises),t.$$values?(i=x(p,_(t.$$values,f)),h.$$inheritedValues=_(t.$$values,f),u()):(t.$$inheritedValues&&(h.$$inheritedValues=_(t.$$inheritedValues,f)),t.then(u,c));for(var o=0,r=m.length;o<r;o+=3)a.hasOwnProperty(m[o])?u():function(e,t,n){function i(t){r.reject(t),c(t)}function o(){if(!U(h.$$failure))try{r.resolve(v.invoke(t,l,p)),r.promise.then(function(t){p[e]=t,u()},i)}catch(t){i(t)}}var r=g.defer(),s=0;G(n,function(e){d.hasOwnProperty(e)&&!a.hasOwnProperty(e)&&(s++,d[e].then(function(t){p[e]=t,--s||o()},i))}),s||o(),d[e]=r.promise}(m[o],m[o+1],m[o+2])}return h};throw new Error("'invocables' must be an object")},this.resolve=function(t,e,n,i){return this.study(t)(e,n,i)}}function e(n,i,o){this.fromConfig=function(t,e,n){return U(t.template)?this.fromString(t.template,e):U(t.templateUrl)?this.fromUrl(t.templateUrl,e):U(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},this.fromString=function(t,e){return q(t)?t(e):t},this.fromUrl=function(t,e){return null==(t=q(t)?t(e):t)?null:n.get(t,{cache:i,headers:{Accept:"text/html"}}).then(function(t){return t.data})},this.fromProvider=function(t,e,n){return o.invoke(t,null,n||{params:e})}}function l(r,s,t){function e(t,e,n,i){if(g.push(t),f[t])return f[t];if(!/^\w+(-+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+r+"'");if(m[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+r+"'");return m[t]=new W.Param(t,e,n,i),m[t]}function n(t,e,n,i){var o=["",""],t=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return t;switch(n){case!1:o=["(",")"+(i?"?":"")];break;case!0:o=["?(",")?"];break;default:o=["("+n+"|",")?"]}return t+o[0]+e+o[1]}function i(t,e){var n=t[2]||t[3],i=s.params[n],o=r.substring(d,t.index),e=e?t[4]:t[4]||("*"==t[1]?".*":null);return{id:n,regexp:e,segment:o,type:W.type(e||"string")||L(W.type("string"),{pattern:new RegExp(e,s.caseInsensitive?"i":w)}),cfg:i}}s=K({params:{}},B(s)?s:{});var o,a,l,u=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,c=/([:]?)([\w\[\]-]+)|\{([\w\[\]-]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,h="^",d=0,p=this.segments=[],f=t?t.params:{},m=this.params=t?t.params.$$new():new W.ParamSet,g=[];for(this.source=r;(o=u.exec(r))&&!(0<=(a=i(o,!1)).segment.indexOf("?"));)l=e(a.id,a.type,a.cfg,"path"),h+=n(a.segment,l.type.pattern.source,l.squash,l.isOptional),p.push(a.segment),d=u.lastIndex;var v=(t=r.substring(d)).indexOf("?");if(0<=v){var b=this.sourceSearch=t.substring(v),t=t.substring(0,v);if(this.sourcePath=r.substring(0,d+v),0<b.length)for(d=0;o=c.exec(b);)l=e((a=i(o,!0)).id,a.type,a.cfg,"search"),d=u.lastIndex}else this.sourcePath=r,this.sourceSearch="";h+=n(t)+(!1===s.strict?"/?":"")+"$",p.push(t),this.regexp=new RegExp(h,s.caseInsensitive?"i":w),this.prefix=p[0],this.$$paramNames=g}function k(t){K(this,t)}function u(){function t(t){return null!=t?t.toString().replace(/\//g,"%2F"):t}function f(t){return q(t)||Y(t)&&q(t[t.length-1])}function i(){for(;a.length;){var t=a.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");$.extend(v[t.name],m.invoke(t.def))}}function o(t){K(this,t||{})}W=this;var m,n=!1,r=!0,g=!1,v={},s=!0,a=[],e={string:{encode:t,decode:function(t){return null!=t?t.toString().replace(/%2F/g,"/"):t},is:function(t){return null==t||!U(t)||"string"==typeof t},pattern:/[^/]*/},int:{encode:t,decode:function(t){return parseInt(t,10)},is:function(t){return U(t)&&this.decode(t.toString())===t},pattern:/\d+/},bool:{encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:function(t){return!0===t||!1===t},pattern:/0|1/},date:{encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):w},decode:function(t){return this.is(t)?t:(t=this.capture.exec(t))?new Date(t[1],t[2]-1,t[3]):w},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return this.is(t)&&this.is(e)&&t.toISOString()===e.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:$.toJson,decode:$.fromJson,is:$.isObject,equals:$.equals,pattern:/[^/]*/},any:{encode:$.identity,decode:$.identity,equals:$.equals,pattern:/.*/}};u.$$getDefaultValue=function(t){if(!f(t.value))return t.value;if(m)return m.invoke(t.value);throw new Error("Injectable functions cannot be called at configuration time")},this.caseInsensitive=function(t){return n=U(t)?t:n},this.strictMode=function(t){return r=U(t)?t:r},this.defaultSquashPolicy=function(t){if(!U(t))return g;if(!0===t||!1===t||V(t))return g=t;throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string")},this.compile=function(t,e){return new l(t,K({strict:r,caseInsensitive:n},e))},this.isMatcher=function(n){var i;return!!B(n)&&(i=!0,G(l.prototype,function(t,e){q(t)&&(i=i&&U(n[e])&&q(n[e]))}),i)},this.type=function(t,e,n){if(!U(e))return v[t];if(v.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return v[t]=new k(K({name:t},e)),n&&(a.push({name:t,def:n}),s||i()),this},G(e,function(t,e){v[e]=new k(K({name:e},t))}),v=L(v,{}),this.$get=["$injector",function(t){return m=t,s=!1,i(),G(e,function(t,e){v[e]||(v[e]=new k(t))}),this}],this.Param=function(i,t,o,e){var n,r,s,a,l,u=this,c=((n=(c=-1===R(c=B(n=o)?j(n):[],"value")&&-1===R(c,"type")&&-1===R(c,"squash")&&-1===R(c,"array"))?{value:n}:n).$$fn=f(n.value)?n.value:function(){return n.value},t=function(t,e,n){if(t.type&&e)throw new Error("Param '"+i+"' has two type configurations.");return e||(t.type?t.type instanceof k?t.type:new k(t.type):"config"===n?v.any:v.string)}(o=n,t,e),c={array:"search"===e&&"auto"},r=i.match(/\[\]$/)?{array:!0}:{},K(c,r,o).array),h=("string"!==(t=c?t.$asArray(c,"search"===e):t).name||c||"path"!==e||o.value!==w||(o.value=""),o.value!==w),d=function(t,e){if(t=t.squash,!e||!1===t)return!1;if(!U(t)||null==t)return g;if(!0===t||V(t))return t;throw new Error("Invalid squash policy: '"+t+"'. Valid policies: false, true, or arbitrary string")}(o,h),p=(r=c,a=d,s=[{from:"",to:(s=h)||r?w:""},{from:null,to:h||r?w:""}],r=Y((p=o).replace)?p.replace:[],V(a)&&r.push({from:a,to:w}),l=y(r,function(t){return t.from}),b(s,function(t){return-1===R(l,t.from)}).concat(r));K(this,{id:i,type:t,location:e,array:c,squash:d,replace:p,isOptional:h,value:function(t){if(e=t,t=(i=y(b(u.replace,(n=e,function(t){return t.from===n})),function(t){return t.to})).length?i[0]:e,U(t))return u.type.$normalize(t);if(!m)throw new Error("Injectable functions cannot be called at configuration time");var e,n,i=m.invoke(o.$$fn);if(null===i||i===w||u.type.is(i))return i;throw new Error("Default value ("+i+") for parameter '"+u.id+"' is not an instance of Type ("+u.type.name+")")},dynamic:w,config:o,toString:function(){return"{Param:"+i+" "+t+" squash: '"+d+"' optional: "+h+"}"}})},o.prototype={$$new:function(){return L(this,K(new o,{$$parent:this}))},$$keys:function(){for(var e=[],t=[],n=this,i=j(o.prototype);n;)t.push(n),n=n.$$parent;return t.reverse(),G(t,function(t){G(j(t),function(t){-1===R(e,t)&&-1===R(i,t)&&e.push(t)})}),e},$$values:function(e){var n={},i=this;return G(i.$$keys(),function(t){n[t]=i[t].value(e&&e[t])}),n},$$equals:function(i,o){var r=!0,s=this;return G(s.$$keys(),function(t){var e=i&&i[t],n=o&&o[t];s[t].type.equals(e,n)||(r=!1)}),r},$$validates:function(t){for(var e,n,i,o=this.$$keys(),r=0;r<o.length&&(e=this[o[r]],(n=t[o[r]])!==w&&null!==n||!e.isOptional);r++){if(i=e.type.$normalize(n),!e.type.is(i))return!1;if(i=e.type.encode(i),$.isString(i)&&!e.type.pattern.exec(i))return!1}return!0},$$parent:w},this.ParamSet=o}function n(u,a){function l(t,e,n){return!!n&&(t=t.invoke(e,e,{$match:n}),!U(t)||t)}function t(s,t,o,e){function n(t){function e(t){t=t(o,s);return t&&(V(t)&&s.replace().url(t),1)}if(!t||!t.defaultPrevented){r&&s.url(),r=w;for(var n=h.length,i=0;i<n;i++)if(e(h[i]))return;d&&e(d)}}function i(){return c=c||t.$on("$locationChangeSuccess",n)}var r,a=e.baseHref(),l=s.url();return p||i(),{sync:function(){n()},listen:i,update:function(t){return t?void(l=s.url()):void(s.url()!==l&&(s.url(l),s.replace()))},push:function(t,e,n){t=t.format(e||{});null!==t&&e&&e["#"]&&(t+="#"+e["#"]),s.url(t),r=n&&n.$$avoidResync?s.url():w,n&&n.replace&&s.replace()},href:function(t,e,n){var i,o,r;return t.validates(e)?(i=u.html5Mode(),$.isObject(i)&&(i=i.enabled),t=t.format(e),n=n||{},null!==(t=i||null===t?t:"#"+u.hashPrefix()+t)&&e&&e["#"]&&(t+="#"+e["#"]),e=t,o=i,r=n.absolute,t="/"===a?e:o?a.slice(0,-1)+e:r?a.slice(1)+e:e,n.absolute&&t?(o=!i&&t?"/":"",r=80===(r=s.port())||443===r?"":":"+r,[s.protocol(),"://",s.host(),r,o,t].join("")):t):null}}}var c,h=[],d=null,p=!1;this.rule=function(t){if(q(t))return h.push(t),this;throw new Error("'rule' must be a function")},this.otherwise=function(t){if(V(t)){var e=t;t=function(){return e}}else if(!q(t))throw new Error("'rule' must be a function");return d=t,this},this.when=function(t,e){var o,r=V(e);if(V(t)&&(t=a.compile(t)),!r&&!q(e)&&!Y(e))throw new Error("invalid 'handler' in when()");var n,i={matcher:function(n,i){return r&&(o=a.compile(i),i=["$match",function(t){return o.format(t)}]),K(function(t,e){return l(t,i,n.exec(e.path(),e.search()))},{prefix:V(n.prefix)?n.prefix:""})},regex:function(n,i){if(n.global||n.sticky)throw new Error("when() RegExp must not be global or sticky");return r&&(o=i,i=["$match",function(t){return n=t,o.replace(/\$(\$|\d{1,2})/,function(t,e){return n["$"===e?0:Number(e)]});var n}]),K(function(t,e){return l(t,i,n.exec(e.path()))},{prefix:null!=(t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec((t=n).source))?t[1].replace(/\\(.)/g,"$1"):""});var t}},s={matcher:a.isMatcher(t),regex:t instanceof RegExp};for(n in s)if(s[n])return this.rule(i[n](t,e));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(t){p=t=t===w?!0:t},(this.$get=t).$inject=["$location","$rootScope","$injector","$browser"]}function i(s,i){function I(t,e){if(!t)return w;var n=V(t),i=n?t:t.name;if(0===(l=i).indexOf(".")||0===l.indexOf("^")){if(!e)throw new Error("No reference point given for path '"+i+"'");e=I(e);for(var o=i.split("."),r=0,s=o.length,a=e;r<s;r++)if(""!==o[r]||0!==r){if("^"!==o[r])break;if(!a.parent)throw new Error("Path '"+i+"' not valid for state '"+e.name+"'");a=a.parent}else a=e;o=o.slice(r).join("."),i=a.name+(a.name&&o?".":"")+o}var l=h[i];return!l||!n&&l!==t&&l.self!==t?w:l}function a(n){var t=(n=L(n,{self:n,resolve:n.resolve||{},toString:function(){return this.name}})).name;if(!V(t)||0<=t.indexOf("@"))throw new Error("State must have a valid name");if(h.hasOwnProperty(t))throw new Error("State '"+t+"'' is already defined");var e,i,o=-1!==t.indexOf(".")?t.substring(0,t.lastIndexOf(".")):V(n.parent)?n.parent:B(n.parent)&&V(n.parent.name)?n.parent.name:"";if(o&&!h[o])return o=o,e=n.self,l[o]||(l[o]=[]),void l[o].push(e);for(i in u)q(u[i])&&(n[i]=u[i](n,u.$delegates[i]));!(h[t]=n)[N]&&n.url&&s.when(n.url,["$match","$stateParams",function(t,e){P.$current.navigable==n&&d(t,e)||P.transitionTo(n,t,{inherit:!0,location:!1})}]);for(var r=l[t]||[];r.length;)a(r.shift());return n}function t(_,k,u,C,c,T,D,t,e){function S(r,t,e,n,s,a){var l=e?t:z(r.params.$$keys(),t),e=(s.resolve=c.resolve(r.resolve,{$stateParams:l},s.resolve,r),[s.resolve.then(function(t){s.globals=t})]);return n&&e.push(n),k.all(e).then(function(){var t=[];return G(r.views,function(n,i){var o=n.resolve&&n.resolve!==r.resolve?n.resolve:{};o.$template=[function(){return u.load(i,{view:n,locals:s.globals,params:l,notify:a.notify})||""}],t.push(c.resolve(o,s.globals,s.resolve,r).then(function(t){var e;q(n.controllerProvider)||Y(n.controllerProvider)?(e=$.extend({},o,s.globals),t.$$controller=C.invoke(n.controllerProvider,null,e)):t.$$controller=n.controller,t.$$state=r,t.$$controllerAs=n.controllerAs,s[i]=t}))}),k.all(t).then(function(){return s.globals})}).then(function(t){return s})}var E=k.reject(new Error("transition superseded")),M=k.reject(new Error("transition prevented")),A=k.reject(new Error("transition aborted")),O=k.reject(new Error("transition failed"));return H.locals={resolve:null,globals:{$stateParams:{}}},(P={params:{},current:H.self,$current:H,transition:null,reload:function(t){return P.transitionTo(P.current,T,{reload:t||!0,inherit:!1,notify:!0})},go:function(t,e,n){return P.transitionTo(t,e,K({inherit:!0,relative:P.$current},n))}}).transitionTo=function(i,o,r){o=o||{},r=K({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},r||{});var t,e,s=P.$current,a=P.params,l=s.path,n=I(i,r.relative),u=o["#"];if(!U(n)){var c={to:i,toParams:o,options:r},h=(t=c,d=s.self,h=r,(d=_.$broadcast("$stateNotFound",t,d,a)).defaultPrevented?(D.update(),A):d.retry?h.$retry?(D.update(),O):((e=P.transition=k.when(d.retry)).then(function(){return e!==P.transition?E:(t.options.$retry=!0,P.transitionTo(t.to,t.toParams,t.options))},function(){return A}),D.update(),e):null);if(h)return h;if(i=c.to,o=c.toParams,n=I(i,(r=c.options).relative),!U(n)){if(r.relative)throw new Error("Could not resolve '"+i+"' from state '"+r.relative+"'");throw new Error("No such state '"+i+"'")}}if(n[N])throw new Error("Cannot transition to abstract state '"+i+"'");if(r.inherit&&(o=F(T,o||{},P.$current,n)),!n.params.$$validates(o))return O;o=n.params.$$values(o);var d,p,f=(i=n).path,m=0,g=f[m],v=H.locals,b=[];if(r.reload){if(V(r.reload)||B(r.reload)){if(B(r.reload)&&!r.reload.name)throw new Error("Invalid reload state object");var y=!0===r.reload?l[0]:I(r.reload);if(r.reload&&!y)throw new Error("No such reload state '"+(V(r.reload)?r.reload:r.reload.name)+"'");for(;g&&g===l[m]&&g!==y;)v=b[m]=g.locals,g=f[++m]}}else for(;g&&g===l[m]&&g.ownParams.$$equals(o,a);)v=b[m]=g.locals,g=f[++m];if(d=i,h=o,c=s,n=a,p=v,!(r.reload||d!==c||!(p===c.locals||!1===d.self.reloadOnSearch&&function(e,t,n){var i=e.params.$$keys().filter(function(t){return"search"!=e.params[t].location}),i=function(e){var n={},t=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return G(t,function(t){t in e&&(n[t]=e[t])}),n}.apply({},[e.params].concat(i));return new W.ParamSet(i).$$equals(t,n)}(c,n,h))))return u&&(o["#"]=u),P.params=o,X(P.params,T),r.location&&i.navigable&&i.navigable.url&&(D.push(i.navigable.url,o,{$$avoidResync:!0,replace:"replace"===r.location}),D.update(!0)),P.transition=null,k.when(P.current);if(o=z(i.params.$$keys(),o||{}),r.notify&&_.$broadcast("$stateChangeStart",i.self,o,s.self,a).defaultPrevented)return _.$broadcast("$stateChangeCancel",i.self,o,s.self,a),D.update(),M;for(var $=k.when(v),w=m;w<f.length;g=f[++w])v=b[w]=L(v),$=S(g,o,g===i,$,v,r);var x=P.transition=$.then(function(){var t,e,n;if(P.transition!==x)return E;for(t=l.length-1;m<=t;t--)(n=l[t]).self.onExit&&C.invoke(n.self.onExit,n.self,n.locals.globals),n.locals=null;for(t=m;t<f.length;t++)(e=f[t]).locals=b[t],e.self.onEnter&&C.invoke(e.self.onEnter,e.self,e.locals.globals);return u&&(o["#"]=u),P.transition!==x?E:(P.$current=i,P.current=i.self,P.params=o,X(P.params,T),P.transition=null,r.location&&i.navigable&&D.push(i.navigable.url,i.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===r.location}),r.notify&&_.$broadcast("$stateChangeSuccess",i.self,o,s.self,a),D.update(!0),P.current)},function(t){return P.transition!==x?E:(P.transition=null,_.$broadcast("$stateChangeError",i.self,o,s.self,a,t).defaultPrevented||D.update(),k.reject(t))});return x},P.is=function(t,e,n){t=I(t,(n=K({relative:P.$current},n||{})).relative);return U(t)?P.$current===t&&(!e||d(t.params.$$values(e),T)):w},P.includes=function(t,e,n){if(n=K({relative:P.$current},n||{}),V(t)&&-1<t.indexOf("*")){if(!function(t){for(var e=t.split("."),n=P.$current.name.split("."),i=0,o=e.length;i<o;i++)"*"===e[i]&&(n[i]="*");return"**"===e[0]&&(n=n.slice(R(n,e[1]))).unshift("**"),"**"===e[e.length-1]&&(n.splice(R(n,e[e.length-2])+1,Number.MAX_VALUE),n.push("**")),e.length==n.length&&n.join("")===e.join("")}(t))return!1;t=P.$current.name}t=I(t,n.relative);return U(t)?!!U(P.$current.includes[t.name])&&(!e||d(t.params.$$values(e),T,j(e))):w},P.href=function(t,e,n){t=I(t,(n=K({lossy:!0,inherit:!0,absolute:!1,relative:P.$current},n||{})).relative);if(!U(t))return null;n.inherit&&(e=F(T,e||{},P.$current,t));var i=t&&n.lossy?t.navigable:t;return i&&i.url!==w&&null!==i.url?D.href(i.url,z(t.params.$$keys().concat("#"),e||{}),{absolute:n.absolute}):null},P.get=function(t,e){return 0===arguments.length?y(j(h),function(t){return h[t].self}):(t=I(t,e||P.$current))&&t.self?t.self:null},P}var P,h={},l={},N="abstract",u={parent:function(t){return U(t.parent)&&t.parent?I(t.parent):(t=/^(.+)\.[^.]+$/.exec(t.name))?I(t[1]):H},data:function(t){return t.parent&&t.parent.data&&(t.data=t.self.data=K({},t.parent.data,t.data)),t.data},url:function(t){var e=t.url,n={params:t.params||{}};if(V(e))return"^"==e.charAt(0)?i.compile(e.substring(1),n):(t.parent.navigable||H).url.concat(e,n);if(!e||i.isMatcher(e))return e;throw new Error("Invalid url '"+e+"' in state '"+t+"'")},navigable:function(t){return t.url?t:t.parent?t.parent.navigable:null},ownParams:function(t){var n=t.url&&t.url.params||new W.ParamSet;return G(t.params||{},function(t,e){n[e]||(n[e]=new W.Param(e,null,t,"config"))}),n},params:function(t){return t.parent&&t.parent.params?K(t.parent.params.$$new(),t.ownParams):new W.ParamSet},views:function(n){var i={};return G(U(n.views)?n.views:{"":n},function(t,e){e.indexOf("@")<0&&(e+="@"+n.parent.name),i[e]=t}),i},path:function(t){return t.parent?t.parent.path.concat(t):[]},includes:function(t){var e=t.parent?K({},t.parent.includes):{};return e[t.name]=!0,e},$delegates:{}},H=a({name:"",url:"^",views:null,abstract:!0});H.navigable=null,this.decorator=function(t,e){return V(t)&&!U(e)?u[t]:(q(e)&&V(t)&&(u[t]&&!u.$delegates[t]&&(u.$delegates[t]=u[t]),u[t]=e),this)},this.state=function(t,e){return B(t)?e=t:e.name=t,a(e),this},(this.$get=t).$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function o(){function t(i,o){return{load:function(t,e){var n;return(n=(e=K({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},e)).view?o.fromConfig(e.view,e.params,e.locals):n)&&e.notify&&i.$broadcast("$viewContentLoading",e),n}}}(this.$get=t).$inject=["$rootScope","$templateFactory"]}function r(m,e,g,v){var t=e.has?function(t){return e.has(t)?e.get(t):null}:function(t){try{return e.get(t)}catch(t){return null}},b=t("$animator"),y=t("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(t,e,f){return function(i,o,r){function t(t){var e=C(i,r,o,v),n=e&&m.$current&&m.$current.locals[e];!t&&n===u||(t=i.$new(),u=m.$current.locals[e],a=f(t,function(t){p.enter(t,o,function(){l&&l.$emit("$viewContentAnimationEnded"),($.isDefined(d)&&!d||i.$eval(d))&&g(t)}),s&&(s.remove(),s=null),l&&(l.$destroy(),l=null),a&&(p.leave(a,function(){s=null}),s=a,a=null)}),(l=t).$emit("$viewContentLoaded"),l.$eval(h))}var s,a,l,u,e,n,c,h=r.onload||"",d=r.autoscroll,p=(e=r,n=i,y?{enter:function(t,e,n){t=y.enter(t,null,e,n);t&&t.then&&t.then(n)},leave:function(t,e){t=y.leave(t,e);t&&t.then&&t.then(e)}}:b?(c=b&&b(n,e),{enter:function(t,e,n){c.enter(t,null,e),n()},leave:function(t,e){c.leave(t),e()}}):{enter:function(t,e,n){e.after(t),n()},leave:function(t,e){t.remove(),e()}});i.$on("$stateChangeSuccess",function(){t(!1)}),i.$on("$viewContentLoading",function(){t(!1)}),t(!0)}}}}function s(s,a,l,u){return{restrict:"ECA",priority:-400,compile:function(t){var r=t.html();return function(t,e,n){var i,o=l.$current,n=C(t,n,e,u),o=o&&o.locals[n];o&&(e.data("$uiView",{name:n,state:o.$$state}),e.html(o.$template||r),n=s(e.contents()),o.$$controller&&(o.$scope=t,o.$element=e,i=a(o.$$controller,o),o.$$controllerAs&&(t[o.$$controllerAs]=i),e.data("$ngControllerController",i),e.children().data("$ngControllerController",i)),n(t))}}}}function C(t,e,n,i){i=i(e.uiView||e.name||"")(t),e=n.inheritedData("$uiView");return 0<=i.indexOf("@")?i:i+"@"+(e?e.state.name:"")}function T(t){t=t.parent().inheritedData("$uiView");return t&&t.state&&t.state.name?t.state:void 0}function a(g,v){var b=["location","inherit","reload","absolute"];return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(t,i,e,n){function o(t){if(t&&(s=$.copy(t)),p)u=g.href(r.state,s,f),(t=n[1]||n[0])&&t.$$addStateInfo(r.state,s),null===u?p=!1:e.$set(d,u)}var r=function(t,e){var n=t.match(/^\s*({[^}]*})\s*$/);if((e=(t=n?e+"("+n[1]+")":t).replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))&&4===e.length)return{state:e[1],paramExpr:e[3]||null};throw new Error("Invalid state ref '"+t+"'")}(e.uiSref,g.current.name),s=null,a=T(i)||g.$current,l="[object SVGAnimatedString]"===Object.prototype.toString.call(i.prop("href"))?"xlink:href":"href",u=null,c="A"===i.prop("tagName").toUpperCase(),h="FORM"===i[0].nodeName,d=h?"action":l,p=!0,f={relative:a,inherit:!0},m=t.$eval(e.uiSrefOpts)||{};$.forEach(b,function(t){t in m&&(f[t]=m[t])});r.paramExpr&&(t.$watch(r.paramExpr,function(t,e){t!==s&&o(t)},!0),s=$.copy(t.$eval(r.paramExpr))),o(),h||i.bind("click",function(t){var e,n;1<(t.which||t.button)||t.ctrlKey||t.metaKey||t.shiftKey||i.attr("target")||(e=v(function(){g.go(r.state,s,f)}),t.preventDefault(),n=c&&!u?1:0,t.preventDefault=function(){n--<=0&&v.cancel(e)})})}}}function c(s,t,a){return{restrict:"A",controller:["$scope","$element","$attrs",function(t,i,n){function o(){!function(){for(var t=0;t<r.length;t++)if(function(t,e){return void 0!==n.uiSrefActiveEq?s.is(t.name,e):s.includes(t.name,e)}(r[t].state,r[t].params))return 1;return}()?i.removeClass(e):i.addClass(e)}var r=[],e=a(n.uiSrefActiveEq||n.uiSrefActive||"",!1)(t);this.$$addStateInfo=function(t,e){var n=s.get(t,T(i));r.push({state:n||{name:t},params:e}),o()},t.$on("$stateChangeSuccess",o)}]}}function h(e){function t(t){return e.is(t)}return t.$stateful=!0,t}function p(e){function t(t){return e.includes(t)}return t.$stateful=!0,t}var W,U=$.isDefined,q=$.isFunction,V=$.isString,B=$.isObject,Y=$.isArray,G=$.forEach,K=$.extend,X=$.copy;$.module("ui.router.util",["ng"]),$.module("ui.router.router",["ui.router.util"]),$.module("ui.router.state",["ui.router.router","ui.router.util"]),$.module("ui.router",["ui.router.state"]),$.module("ui.router.compat",["ui.router"]),t.$inject=["$q","$injector"],$.module("ui.router.util").service("$resolve",t),e.$inject=["$http","$templateCache","$injector"],$.module("ui.router.util").service("$templateFactory",e),l.prototype.concat=function(t,e){var n={caseInsensitive:W.caseInsensitive(),strict:W.strictMode(),squash:W.defaultSquashPolicy()};return new l(this.sourcePath+t+this.sourceSearch,K(n,e),this)},l.prototype.toString=function(){return this.source},l.prototype.exec=function(t,e){function n(t){function e(t){return t.split("").reverse().join("")}t=y(e(t).split(/-(?!\\)/),e);return y(t,function(t){return t.replace(/\\-/g,"-")}).reverse()}var i=this.regexp.exec(t);if(!i)return null;e=e||{};var o,r=this.parameters(),s=r.length,a=this.segments.length-1,l={};if(a!=i.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(o=0;o<a;o++){for(var u=r[o],c=this.params[u],h=i[o+1],d=0;d<c.replace;d++)c.replace[d].from===h&&(h=c.replace[d].to);h&&!0===c.array&&(h=n(h)),l[u]=c.value(h)}for(;o<s;o++)l[u=r[o]]=this.params[u].value(e[u]);return l},l.prototype.parameters=function(t){return U(t)?this.params[t]||null:this.$$paramNames},l.prototype.validates=function(t){return this.params.$$validates(t)},l.prototype.format=function(t){function e(t){return encodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})}t=t||{};var n=this.segments,i=this.parameters(),o=this.params;if(!this.validates(t))return null;for(var r=!1,s=n.length-1,a=i.length,l=n[0],u=0;u<a;u++){var c=u<s,h=i[u],d=o[h],p=d.value(t[h]),f=d.isOptional&&d.type.equals(d.value(),p),m=!!f&&d.squash,d=d.type.encode(p);c?(p=n[u+1],!1===m?(null!=d&&(l+=Y(d)?y(d,e).join("-"):encodeURIComponent(d)),l+=p):!0===m?(c=l.match(/\/$/)?/\/?(.*)/:/(.*)/,l+=p.match(c)[1]):V(m)&&(l+=m+p)):null==d||f&&!1!==m||(l+=(r?"&":"?")+h+"="+(d=y(d=Y(d)?d:[d],encodeURIComponent).join("&"+h+"=")),r=!0)}return l},k.prototype.is=function(t,e){return!0},k.prototype.encode=function(t,e){return t},k.prototype.decode=function(t,e){return t},k.prototype.equals=function(t,e){return t==e},k.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},k.prototype.pattern=/.*/,k.prototype.toString=function(){return"{Type:"+this.name+"}"},k.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},k.prototype.$asArray=function(t,e){if(!t)return this;if("auto"!==t||e)return new function(t,o){function e(t,e){return function(){return t[e].apply(t,arguments)}}function r(t){return Y(t)?t:U(t)?[t]:[]}function s(t){return!t}function n(n,i){return function(t){t=y(t=r(t),n);if(!0===i)return 0===b(t,s).length;var e=t;switch(e.length){case 0:return w;case 1:return"auto"===o?e[0]:e;default:return e}}}var a;this.encode=n(e(t,"encode")),this.decode=n(e(t,"decode")),this.is=n(e(t,"is"),!0),this.equals=(a=e(t,"equals"),function(t,e){var n=r(t),i=r(e);if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++)if(!a(n[o],i[o]))return!1;return!0}),this.pattern=t.pattern,this.$normalize=n(e(t,"$normalize")),this.name=t.name,this.$arrayMode=o}(this,t);throw new Error("'auto' array mode is for query parameters only")},$.module("ui.router.util").provider("$urlMatcherFactory",u),$.module("ui.router.util").run(["$urlMatcherFactory",function(t){}]),n.$inject=["$locationProvider","$urlMatcherFactoryProvider"],$.module("ui.router.router").provider("$urlRouter",n),i.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],$.module("ui.router.state").value("$stateParams",{}).provider("$state",i),o.$inject=[],$.module("ui.router.state").provider("$view",o),$.module("ui.router.state").provider("$uiViewScroll",function(){var n=!1;this.useAnchorScroll=function(){n=!0},this.$get=["$anchorScroll","$timeout",function(t,e){return n?t:function(t){return e(function(){t[0].scrollIntoView()},0,!1)}}]}),r.$inject=["$state","$injector","$uiViewScroll","$interpolate"],s.$inject=["$compile","$controller","$state","$interpolate"],$.module("ui.router.state").directive("uiView",r),$.module("ui.router.state").directive("uiView",s),a.$inject=["$state","$timeout"],c.$inject=["$state","$stateParams","$interpolate"],$.module("ui.router.state").directive("uiSref",a).directive("uiSrefActive",c).directive("uiSrefActiveEq",c),h.$inject=["$state"],p.$inject=["$state"],$.module("ui.router.state").filter("isState",h).filter("includedByState",p)}((window,window.angular)),function(u){"use strict";u.module("ngIdle",["ngIdle.keepalive","ngIdle.idle","ngIdle.countdown","ngIdle.title","ngIdle.localStorage"]),u.module("ngIdle.keepalive",[]).provider("Keepalive",function(){var a={http:null,interval:600},l=(this.http=function(t){if(!t)throw new Error("Argument must be a string containing a URL, or an object containing the HTTP request configuration.");(t=u.isString(t)?{url:t,method:"GET"}:t).cache=!1,a.http=t},this.interval=function(t){if(t=parseInt(t),isNaN(t)||t<=0)throw new Error("Interval must be expressed in seconds and be greater than 0.");a.interval=t});this.$get=["$rootScope","$log","$interval","$http",function(n,t,e,i){function o(t,e){n.$broadcast("KeepaliveResponse",t,e)}function r(){n.$broadcast("Keepalive"),u.isObject(a.http)&&i(a.http).success(o).error(o)}var s={ping:null};return{_options:function(){return a},setInterval:l,start:function(){return e.cancel(s.ping),s.ping=e(r,1e3*a.interval),s.ping},stop:function(){e.cancel(s.ping)},ping:function(){r()}}}]}),u.module("ngIdle.idle",["ngIdle.keepalive","ngIdle.localStorage"]).provider("Idle",function(){var b={idle:1200,timeout:30,autoResume:"idle",interrupt:"mousemove keydown DOMMouseScroll mousewheel mousedown touchstart touchmove scroll",keepalive:!0},y=this.timeout=function(t){if(!1===t)b.timeout=0;else{if(!(u.isNumber(t)&&0<=t))throw new Error("Timeout must be zero or false to disable the feature, or a positive integer (in seconds) to enable it.");b.timeout=t}},$=(this.interrupt=function(t){b.interrupt=t},this.idle=function(t){if(t<=0)throw new Error("Idle must be a value in seconds, greater than 0.");b.idle=t});this.autoResume=function(t){b.autoResume=!0===t?"idle":!1===t?"off":t},this.keepalive=function(t){b.keepalive=!0===t},this.$get=["$interval","$log","$rootScope","$document","Keepalive","IdleLocalStorage","$window",function(n,t,e,i,o,r,s){function a(){b.keepalive&&(m.running&&o.ping(),o.start())}function l(){b.keepalive&&o.stop()}function u(){m.idling=!m.idling;var t=m.idling?"Start":"End";e.$broadcast("Idle"+t),m.idling?(l(),b.timeout&&(m.countdown=b.timeout,c(),m.timeout=n(c,1e3,b.timeout,!1))):a(),n.cancel(m.idle)}function c(){return m.countdown<=0?void h():(e.$broadcast("IdleWarn",m.countdown),void m.countdown--)}function h(){l(),n.cancel(m.idle),n.cancel(m.timeout),m.idling=!0,m.running=!1,m.countdown=0,e.$broadcast("IdleTimeout")}function d(t,e,n){var i=t.running();t.unwatch(),e(n),i&&t.watch()}function p(t){t?r.set("expiry",{id:g,time:t}):r.remove("expiry")}function f(t){"ngIdle.expiry"===t.key&&t.newValue!==t.oldValue&&r.parseJson(t.newValue).id!==g&&v.interrupt(!0)}var m={idle:null,timeout:null,idling:!1,running:!1,countdown:null},g=(new Date).getTime(),v={_options:function(){return b},_getNow:function(){return new Date},setIdle:function(t){d(this,$,t)},setTimeout:function(t){d(this,y,t)},isExpired:function(){var t=r.get("expiry").time;return t&&t<=this._getNow()},running:function(){return m.running},idling:function(){return m.idling},watch:function(t){n.cancel(m.idle),n.cancel(m.timeout);var e=b.timeout||0;t||p(new Date((new Date).getTime()+1e3*(b.idle+e))),m.idling?u():m.running||a(),m.running=!0,m.idle=n(u,1e3*b.idle,0,!1)},unwatch:function(){n.cancel(m.idle),n.cancel(m.timeout),m.idling=!1,m.running=!1,p(null),l()},interrupt:function(t){return m.running?b.timeout&&this.isExpired()?void h():void("idle"!==b.autoResume&&("notIdle"!==b.autoResume||m.idling)||this.watch(t)):void 0}};i.find("body").on(b.interrupt,function(){v.interrupt()});return s.addEventListener?s.addEventListener("storage",f,!1):s.attachEvent("onstorage",f),v}]}),u.module("ngIdle.countdown",[]).directive("idleCountdown",function(){return{restrict:"A",scope:{value:"=idleCountdown"},link:function(n){n.$on("IdleWarn",function(t,e){n.$apply(function(){n.value=e})}),n.$on("IdleTimeout",function(){n.$apply(function(){n.value=0})})}}}),u.module("ngIdle.title",[]).factory("Title",["$document","$interpolate",function(e,i){var n={original:null,idle:"{{minutes}}:{{seconds}} until your session times out!",timedout:"Your session has expired."};return{original:function(t){return u.isUndefined(t)?n.original:void(n.original=t)},store:function(t){!t&&n.original||(n.original=this.value())},value:function(t){return u.isUndefined(t)?e[0].title:void(e[0].title=t)},idleMessage:function(t){return u.isUndefined(t)?n.idle:void(n.idle=t)},timedOutMessage:function(t){return u.isUndefined(t)?n.timedout:void(n.timedout=t)},setAsIdle:function(t){this.store();var e,n={totalSeconds:t};n.minutes=Math.floor(t/60),n.seconds=(t=t-60*n.minutes,Array(2-String(t).length+1).join(e||"0")+t),this.value(i(this.idleMessage())(n))},setAsTimedOut:function(){this.store(),this.value(this.timedOutMessage())},restore:function(){this.original()&&this.value(this.original())}}}]).directive("title",["Title",function(i){return{restrict:"E",link:function(t,e,n){n.idleDisabled||(i.store(!0),t.$on("IdleWarn",function(t,e){i.setAsIdle(e)}),t.$on("IdleEnd",function(){i.restore()}),t.$on("IdleTimeout",function(){i.setAsTimedOut()}))}}}]),u.module("ngIdle.localStorage",[]).factory("IdleLocalStorage",["$window",function(t){function e(e){try{return JSON.parse(e,function(t,e){return/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(e)?new Date(e):e})}catch(t){return e}}var n=t.localStorage;return{set:function(t,e){n.setItem("ngIdle."+t,JSON.stringify(e))},get:function(t){return e(n.getItem("ngIdle."+t))},remove:function(t){n.removeItem("ngIdle."+t)},parseJson:e}}])}((window,window.angular)),function(t){var D=t.isDefined,S=t.isUndefined,E=t.isNumber,M=t.isObject,A=t.isArray,O=t.isString,I=t.extend,P=t.toJson;t.module("LocalStorageModule",[]).provider("localStorageService",function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/",secure:!1},this.defaultToCookie=!0,this.notify={setItem:!0,removeItem:!1},this.setPrefix=function(t){return this.prefix=t,this},this.setStorageType=function(t){return this.storageType=t,this},this.setDefaultToCookie=function(t){return this.defaultToCookie=!!t,this},this.setStorageCookie=function(t,e,n){return this.cookie.expiry=t,this.cookie.path=e,this.cookie.secure=n,this},this.setStorageCookieDomain=function(t){return this.cookie.domain=t,this},this.setNotify=function(t,e){return this.notify={setItem:t,removeItem:e},this},this.$get=["$rootScope","$window","$document","$parse","$timeout",function(l,r,u,s,n){function t(t){var e;t=t||r.event,o.setItem&&O(t.key)&&m(t.key)&&(e=i(t.key),n(function(){l.$broadcast("LocalStorageModule.notification.changed",{key:e,newvalue:t.newValue,storageType:c.storageType})}))}var a,c=this,h=c.prefix,d=c.cookie,o=c.notify,p=c.storageType,f=(u?u[0]&&(u=u[0]):u=document,"."!==h.substr(-1)&&(h=h?h+".":""),function(t){return h+t}),i=function(t){return t.replace(new RegExp("^"+h,"g"),"")},m=function(t){return 0===t.indexOf(h)},e=function(){try{var t=p in r&&null!==r[p],e=f("__"+Math.round(1e7*Math.random()));return t&&((a=r[p]).setItem(e,""),a.removeItem(e)),t}catch(t){return c.defaultToCookie&&(p="cookie"),l.$broadcast("LocalStorageModule.notification.error",t.message),!1}},g=e(),v=function(e,n,t){var i=C();try{if(T(t),n=S(n)?null:P(n),!g&&c.defaultToCookie||"cookie"===c.storageType)return g||l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),o.setItem&&l.$broadcast("LocalStorageModule.notification.setitem",{key:e,newvalue:n,storageType:"cookie"}),w(e,n);try{a&&a.setItem(f(e),n),o.setItem&&l.$broadcast("LocalStorageModule.notification.setitem",{key:e,newvalue:n,storageType:c.storageType})}catch(t){return l.$broadcast("LocalStorageModule.notification.error",t.message),w(e,n)}return!0}finally{T(i)}},b=function(t,e){var n=C();try{if(T(e),!g&&c.defaultToCookie||"cookie"===c.storageType)return g||l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),x(t);var i=a?a.getItem(f(t)):null;if(!i||"null"===i)return null;try{return JSON.parse(i)}catch(t){return i}}finally{T(n)}},y=function(){var t=C();try{var e,n,i=0;for(1<=arguments.length&&("localStorage"===arguments[arguments.length-1]||"sessionStorage"===arguments[arguments.length-1])&&(i=1,T(arguments[arguments.length-1])),e=0;e<arguments.length-i;e++)if(n=arguments[e],!g&&c.defaultToCookie||"cookie"===c.storageType)g||l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),o.removeItem&&l.$broadcast("LocalStorageModule.notification.removeitem",{key:n,storageType:"cookie"}),_(n);else try{a.removeItem(f(n)),o.removeItem&&l.$broadcast("LocalStorageModule.notification.removeitem",{key:n,storageType:c.storageType})}catch(t){l.$broadcast("LocalStorageModule.notification.error",t.message),_(n)}}finally{T(t)}},$=function(){try{return r.navigator.cookieEnabled||"cookie"in u&&(0<u.cookie.length||-1<(u.cookie="test").indexOf.call(u.cookie,"test"))}catch(t){return l.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),w=function(t,e,n,i){if(S(e))return!1;if((A(e)||M(e))&&(e=P(e)),!$)return l.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var o,r="",s=new Date,a="";null===e?(s.setTime(s.getTime()+-864e5),r="; expires="+s.toGMTString(),e=""):E(n)&&0!==n?(s.setTime(s.getTime()+24*n*60*60*1e3),r="; expires="+s.toGMTString()):0!==d.expiry&&(s.setTime(s.getTime()+24*d.expiry*60*60*1e3),r="; expires="+s.toGMTString()),t&&(o="; path="+d.path,d.domain&&(a="; domain="+d.domain),"boolean"==typeof i?!0===i&&(a+="; secure"):!0===d.secure&&(a+="; secure"),u.cookie=f(t)+"="+encodeURIComponent(e)+r+o+a)}catch(t){return l.$broadcast("LocalStorageModule.notification.error",t.message),!1}return!0},x=function(t){if(!$)return l.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var e=u.cookie&&u.cookie.split(";")||[],n=0;n<e.length;n++){for(var i=e[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(f(t)+"=")){var o=decodeURIComponent(i.substring(h.length+t.length+1,i.length));try{var r=JSON.parse(o);return"number"==typeof r?o:r}catch(t){return o}}}return null},_=function(t){w(t,null)},k=function(){for(var t=null,e=h.length,n=u.cookie.split(";"),i=0;i<n.length;i++){for(t=n[i];" "===t.charAt(0);)t=t.substring(1,t.length);var o=t.substring(e,t.indexOf("="));_(o)}},C=function(){return p},T=function(t){return t&&p!==t&&(p=t,g=e()),g};g&&(r.addEventListener?(r.addEventListener("storage",t,!1),l.$on("$destroy",function(){r.removeEventListener("storage",t)})):r.attachEvent&&(r.attachEvent("onstorage",t),l.$on("$destroy",function(){r.detachEvent("onstorage",t)})));return{isSupported:g,getStorageType:C,setStorageType:T,setPrefix:function(t){h=t},set:v,add:v,get:b,keys:function(t){var e=C();try{if(T(t),!g)return l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),[];var n,i=h.length,o=[];for(n in a)if(n.substr(0,i)===h)try{o.push(n.substr(i))}catch(t){return l.$broadcast("LocalStorageModule.notification.error",t.Description),[]}return o}finally{T(e)}},remove:y,clearAll:function(t,e){var n=C();try{T(e);var i=h?new RegExp("^"+h):new RegExp,o=t?new RegExp(t):new RegExp;if(!g&&c.defaultToCookie||"cookie"===c.storageType)return g||l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),k();if(!g&&!c.defaultToCookie)return!1;var r,s=h.length;for(r in a)if(i.test(r)&&o.test(r.substr(s)))try{y(r.substr(s))}catch(t){return l.$broadcast("LocalStorageModule.notification.error",t.message),k()}return!0}finally{T(n)}},bind:function(t,e,n,i,o){var r=b(i=i||e,o);return null===r&&D(n)?r=n:M(r)&&M(n)&&(r=I(r,n)),s(e).assign(t,r),t.$watch(e,function(t){v(i,t,o)},M(t[e]))},deriveKey:f,underiveKey:i,length:function(t){var e=C();try{T(t);for(var n=0,i=r[p],o=0;o<i.length;o++)0===i.key(o).indexOf(h)&&n++;return n}finally{T(e)}},defaultToCookie:this.defaultToCookie,cookie:{isSupported:$,set:w,add:w,get:x,remove:_,clearAll:k}}}]})}((window,window.angular)),function(y,$){var w=/[<>&\r\n"']/gm,x={"<":"lt;",">":"gt;","&":"amp;","\r":"#13;","\n":"#10;",'"':"quot;","'":"apos;"};y.extend({fileDownload:function(o,t){var e,n,i,r,s,a,l,u,c,h,d,p,f=y.extend({preparingMessageHtml:null,failMessageHtml:null,androidPostUnsupportedMessageHtml:"Unfortunately your Android browser doesn't support this type of file download. Please try again with a different browser.",dialogOptions:{modal:!0},prepareCallback:function(t){},successCallback:function(t){},failCallback:function(t,e){},httpMethod:"GET",data:null,checkInterval:100,cookieName:"fileDownload",cookieValue:"true",cookiePath:"/",popupWindowTitle:"Initiating file download...",encodeHTMLEntities:!0},t),m=new y.Deferred,t=(navigator.userAgent||navigator.vendor||$.opera).toLowerCase(),t=(/ip(ad|hone|od)/.test(t)?e=!0:-1!==t.indexOf("android")?n=!0:i=/avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|playbook|silk|iemobile|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)),f.httpMethod.toUpperCase());return n&&"GET"!==t?(y().dialog?y("<div>").html(f.androidPostUnsupportedMessageHtml).dialog(f.dialogOptions):alert(f.androidPostUnsupportedMessageHtml),m.reject()):(r=null,s=function(t){r&&r.dialog("close"),f.successCallback(t),m.resolve(t)},a=function(t,e){r&&r.dialog("close"),f.failMessageHtml&&y("<div>").html(f.failMessageHtml).dialog(f.dialogOptions),f.failCallback(t,e),m.reject(t,e)},p=o,f.preparingMessageHtml?r=y("<div>").html(f.preparingMessageHtml).dialog(f.dialogOptions):f.prepareCallback&&f.prepareCallback(p),null!==f.data&&"string"!=typeof f.data&&(f.data=y.param(f.data)),"GET"===t?(null!==f.data&&(-1!==o.indexOf("?")?"&"!==o.substring(o.length-1)&&(o+="&"):o+="?",o+=f.data),e||n?((u=$.open(o)).document.title=f.popupWindowTitle,$.focus()):i?$.location(o):l=y("<iframe>").hide().prop("src",o).appendTo("body")):(d="",null!==f.data&&y.each(f.data.replace(/\+/g," ").split("&"),function(){var t=this.split("="),e=f.encodeHTMLEntities?b(decodeURIComponent(t[0])):decodeURIComponent(t[0]);e&&(t=f.encodeHTMLEntities?b(decodeURIComponent(t[1])):decodeURIComponent(t[1]),d+='<input type="hidden" name="'+e+'" value="'+t+'" />')}),i?(h=y("<form>").appendTo("body")).hide().prop("method",f.httpMethod).prop("action",o).html(d):(e?((u=$.open("about:blank")).document.title=f.popupWindowTitle,c=u.document,$.focus()):c=g(l=y("<iframe style='display: none' src='about:blank'></iframe>").appendTo("body")),c.write("<html><head></head><body><form method='"+f.httpMethod+"' action='"+o+"'>"+d+"</form>"+f.popupWindowTitle+"</body></html>"),h=y(c).find("form")),h.submit()),setTimeout(function t(){if(-1!=document.cookie.indexOf(f.cookieName+"="+f.cookieValue))return s(o),document.cookie=f.cookieName+"=; expires="+new Date(1e3).toUTCString()+"; path="+f.cookiePath,void v(!1);if(u||l)try{var e=u?u.document:g(l);if(e&&null!=e.body&&e.body.innerHTML.length){var n,i=!0;if(i=h&&h.length&&(n=y(e.body).contents().first()).length&&n[0]===h[0]?!1:i)return a(e.body.innerHTML,o),void v(!0)}}catch(t){return a("",o),void v(!0)}setTimeout(t,f.checkInterval)},f.checkInterval),m.promise());function g(t){t=t[0].contentWindow||t[0].contentDocument;return t=t.document?t.document:t}function v(t){setTimeout(function(){u&&(n&&u.close(),e)&&(u.focus(),t)&&u.close()},0)}function b(t){return t.replace(w,function(t){return"&"+x[t]})}}})}(jQuery,this),function(r){r.color={},r.color.make=function(t,e,n,i){var o={};return o.r=t||0,o.g=e||0,o.b=n||0,o.a=null!=i?i:1,o.add=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]+=e;return o.normalize()},o.scale=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]*=e;return o.normalize()},o.toString=function(){return 1<=o.a?"rgb("+[o.r,o.g,o.b].join(",")+")":"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"},o.normalize=function(){function t(t,e,n){return e<t?t:n<e?n:e}return o.r=t(0,parseInt(o.r),255),o.g=t(0,parseInt(o.g),255),o.b=t(0,parseInt(o.b),255),o.a=t(0,o.a,1),o},o.clone=function(){return r.color.make(o.r,o.b,o.g,o.a)},o.normalize()},r.color.extract=function(t,e){for(var n;(""==(n=t.css(e).toLowerCase())||"transparent"==n)&&(t=t.parent(),!r.nodeName(t.get(0),"body")););return r.color.parse(n="rgba(0, 0, 0, 0)"==n?"transparent":n)},r.color.parse=function(t){var e,n=r.color.make;return(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?n(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)):(e=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(t))?n(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])):(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(t))?n(2.55*parseFloat(e[1]),2.55*parseFloat(e[2]),2.55*parseFloat(e[3])):(e=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(t))?n(2.55*parseFloat(e[1]),2.55*parseFloat(e[2]),2.55*parseFloat(e[3]),parseFloat(e[4])):(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))?n(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)):(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))?n(parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)):"transparent"==(t=r.trim(t).toLowerCase())?n(255,255,255,0):n((e=i[t]||[0,0,0])[0],e[1],e[2])};var i={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(Z){function o(A,x,t,e){var n,o,H=[],L={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85},xaxis:{show:null,position:"bottom",mode:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null,monthNames:null,timeformat:null,twelveHourClock:!1},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1},shadowSize:3},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},hooks:{}},r=null,s=null,c=null,v=null,a=null,j=[],R=[],k={left:0,right:0,top:0,bottom:0},O=0,I=0,C=0,T=0,F={processOptions:[],processRawData:[],processDatapoints:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},g=this;g.setData=d,g.setupGrid=S,g.draw=E,g.getPlaceholder=function(){return A},g.getCanvas=function(){return r},g.getPlotOffset=function(){return k},g.width=function(){return C},g.height=function(){return T},g.offset=function(){var t=c.offset();return t.left+=k.left,t.top+=k.top,t},g.getData=function(){return H},g.getAxes=function(){var n={};return Z.each(j.concat(R),function(t,e){e&&(n[e.direction+(1!=e.n?e.n:"")+"axis"]=e)}),n},g.getXAxes=function(){return j},g.getYAxes=function(){return R},g.c2p=p,g.p2c=function(t){var e,n,i,o={};for(e=0;e<j.length;++e)if((n=j[e])&&n.used&&(i="x"+n.n,null==t[i]&&1==n.n&&(i="x"),null!=t[i])){o.left=n.p2c(t[i]);break}for(e=0;e<R.length;++e)if((n=R[e])&&n.used&&(i="y"+n.n,null==t[i]&&1==n.n&&(i="y"),null!=t[i])){o.top=n.p2c(t[i]);break}return o},g.getOptions=function(){return L},g.highlight=K,g.unhighlight=X,g.triggerRedrawOverlay=w,g.pointOffset=function(t){return{left:parseInt(j[W(t,"x")-1].p2c(+t.x)+k.left),top:parseInt(R[W(t,"y")-1].p2c(+t.y)+k.top)}},g.shutdown=function(){y&&clearTimeout(y);c.unbind("mousemove",V),c.unbind("mouseleave",B),c.unbind("click",Y),z(F.shutdown,[c])},g.resize=function(){_(),D(r),D(s)},g.hooks=F;for(var l=0;l<e.length;++l){var u=e[l];u.init(g),u.options&&Z.extend(!0,L,u.options)}for(Z.extend(!0,L,t),null==L.xaxis.color&&(L.xaxis.color=L.grid.color),null==L.yaxis.color&&(L.yaxis.color=L.grid.color),null==L.xaxis.tickColor&&(L.xaxis.tickColor=L.grid.tickColor),null==L.yaxis.tickColor&&(L.yaxis.tickColor=L.grid.tickColor),null==L.grid.borderColor&&(L.grid.borderColor=L.grid.color),null==L.grid.tickColor&&(L.grid.tickColor=Z.color.parse(L.grid.color).scale("a",.22).toString()),n=0;n<Math.max(1,L.xaxes.length);++n)L.xaxes[n]=Z.extend(!0,{},L.xaxis,L.xaxes[n]);for(n=0;n<Math.max(1,L.yaxes.length);++n)L.yaxes[n]=Z.extend(!0,{},L.yaxis,L.yaxes[n]);for(L.xaxis.noTicks&&null==L.xaxis.ticks&&(L.xaxis.ticks=L.xaxis.noTicks),L.yaxis.noTicks&&null==L.yaxis.ticks&&(L.yaxis.ticks=L.yaxis.noTicks),L.x2axis&&(L.xaxes[1]=Z.extend(!0,{},L.xaxis,L.x2axis),L.xaxes[1].position="top"),L.y2axis&&(L.yaxes[1]=Z.extend(!0,{},L.yaxis,L.y2axis),L.yaxes[1].position="right"),L.grid.coloredAreas&&(L.grid.markings=L.grid.coloredAreas),L.grid.coloredAreasColor&&(L.grid.markingsColor=L.grid.coloredAreasColor),L.lines&&Z.extend(!0,L.series.lines,L.lines),L.points&&Z.extend(!0,L.series.points,L.points),L.bars&&Z.extend(!0,L.series.bars,L.bars),null!=L.shadowSize&&(L.series.shadowSize=L.shadowSize),n=0;n<L.xaxes.length;++n)q(j,n+1).options=L.xaxes[n];for(n=0;n<L.yaxes.length;++n)q(R,n+1).options=L.yaxes[n];for(o in F)L.hooks[o]&&L.hooks[o].length&&(F[o]=F[o].concat(L.hooks[o]));z(F.processOptions,[L]);var t=A.children("canvas.base"),h=A.children("canvas.overlay");function z(t,e){e=[g].concat(e);for(var n=0;n<t.length;++n)t[n].apply(this,e)}function d(t){var e,n=(H=function(t){for(var e=[],n=0;n<t.length;++n){var i=Z.extend(!0,{},L.series);null!=t[n].data?(i.data=t[n].data,delete t[n].data,Z.extend(!0,i,t[n]),t[n].data=i.data):i.data=t[n],e.push(i)}return e}(t)).length,i=[],o=[];for(e=0;e<H.length;++e){var r=H[e].color;null!=r&&(--n,"number"==typeof r?o.push(r):i.push(Z.color.parse(H[e].color)))}for(e=0;e<o.length;++e)n=Math.max(n,o[e]+1);var s,a=[],l=0;for(e=0;a.length<n;){s=L.colors.length==e?Z.color.make(100,100,100):Z.color.parse(L.colors[e]);var u=l%2==1?-1:1;s.scale("rgb",1+u*Math.ceil(l/2)*.2),a.push(s),++e>=L.colors.length&&(e=0,++l)}var c,h=0;for(e=0;e<H.length;++e){if(null==(c=H[e]).color?(c.color=a[h].toString(),++h):"number"==typeof c.color&&(c.color=a[c.color].toString()),null==c.lines.show){var d,p=!0;for(d in c)if(c[d]&&c[d].show){p=!1;break}p&&(c.lines.show=!0)}c.xaxis=q(j,W(c,"x")),c.yaxis=q(R,W(c,"y"))}var f,m,g,v,b,y,$,w,x,_,k=Number.POSITIVE_INFINITY,C=Number.NEGATIVE_INFINITY,T=Number.MAX_VALUE;function D(t,e,n){e<t.datamin&&e!=-T&&(t.datamin=e),n>t.datamax&&n!=T&&(t.datamax=n)}for(Z.each(U(),function(t,e){e.datamin=k,e.datamax=C,e.used=!1}),f=0;f<H.length;++f)(b=H[f]).datapoints={points:[]},z(F.processRawData,[b,b.data,b.datapoints]);for(f=0;f<H.length;++f){var S=(b=H[f]).data,E=b.datapoints.format;if(E||((E=[]).push({x:!0,number:!0,required:!0}),E.push({y:!0,number:!0,required:!0}),(b.bars.show||b.lines.show&&b.lines.fill)&&(E.push({y:!0,number:!0,required:!1,defaultValue:0}),b.bars.horizontal)&&(delete E[E.length-1].y,E[E.length-1].x=!0),b.datapoints.format=E),null==b.datapoints.pointsize)for(b.datapoints.pointsize=E.length,$=b.datapoints.pointsize,y=b.datapoints.points,insertSteps=b.lines.show&&b.lines.steps,b.xaxis.used=b.yaxis.used=!0,m=g=0;m<S.length;++m,g+=$){var M=null==(_=S[m]);if(!M)for(v=0;v<$;++v)w=_[v],(x=E[v])&&(x.number&&null!=w&&(w=+w,isNaN(w)?w=null:w==1/0?w=T:w==-1/0&&(w=-T)),null==w)&&(x.required&&(M=!0),null!=x.defaultValue)&&(w=x.defaultValue),y[g+v]=w;if(M)for(v=0;v<$;++v)null!=(w=y[g+v])&&((x=E[v]).x&&D(b.xaxis,w,w),x.y)&&D(b.yaxis,w,w),y[g+v]=null;else if(insertSteps&&0<g&&null!=y[g-$]&&y[g-$]!=y[g]&&y[g-$+1]!=y[g+1]){for(v=0;v<$;++v)y[g+$+v]=y[g+v];y[g+1]=y[g-$+1],g+=$}}}for(f=0;f<H.length;++f)b=H[f],z(F.processDatapoints,[b,b.datapoints]);for(f=0;f<H.length;++f){b=H[f],y=b.datapoints.points,$=b.datapoints.pointsize;var A,O=k,I=k,P=C,N=C;for(m=0;m<y.length;m+=$)if(null!=y[m])for(v=0;v<$;++v)w=y[m+v],(x=E[v])&&w!=T&&w!=-T&&(x.x&&(w<O&&(O=w),P<w)&&(P=w),x.y)&&(w<I&&(I=w),N<w)&&(N=w);b.bars.show&&(A="left"==b.bars.align?0:-b.bars.barWidth/2,b.bars.horizontal?(I+=A,N+=A+b.bars.barWidth):(O+=A,P+=A+b.bars.barWidth)),D(b.xaxis,O,P),D(b.yaxis,I,N)}Z.each(U(),function(t,e){e.datamin==k&&(e.datamin=null),e.datamax==C&&(e.datamax=null)})}function W(t,e){t=t[e+"axis"];return t="number"!=typeof(t="object"==typeof t?t.n:t)?1:t}function U(){return Z.grep(j.concat(R),function(t){return t})}function p(t){for(var e,n={},i=0;i<j.length;++i)(e=j[i])&&e.used&&(n["x"+e.n]=e.c2p(t.left));for(i=0;i<R.length;++i)(e=R[i])&&e.used&&(n["y"+e.n]=e.c2p(t.top));return void 0!==n.x1&&(n.x=n.x1),void 0!==n.y1&&(n.y=n.y1),n}function q(t,e){return t[e-1]||(t[e-1]={n:e,direction:t==j?"x":"y",options:Z.extend(!0,{},t==j?L.xaxis:L.yaxis)}),t[e-1]}function f(t,e){var n=document.createElement("canvas");return n.className=e,n.width=O,n.height=I,t||Z(n).css({position:"absolute",left:0,top:0}),Z(n).appendTo(A),(n=n.getContext?n:window.G_vmlCanvasManager.initElement(n)).getContext("2d").save(),n}function _(){if(O=A.width(),I=A.height(),O<=0||I<=0)throw"Invalid dimensions for plot, width = "+O+", height = "+I}function D(t){t.width!=O&&(t.width=O),t.height!=I&&(t.height=I);t=t.getContext("2d");t.restore(),t.save()}function S(){var t,e=U();if(Z.each(e,function(t,e){e.show=e.options.show,null==e.show&&(e.show=e.used),e.reserveSpace=e.show||e.options.reserveSpace;var n,i=e.options,o=+(null!=i.min?i.min:e.datamin),r=+(null!=i.max?i.max:e.datamax),s=r-o;0==s?(n=0==r?1:.01,null==i.min&&(o-=n),null!=i.max&&null==i.min||(r+=n)):null!=(n=i.autoscaleMargin)&&(null==i.min&&(o-=s*n)<0&&null!=e.datamin&&0<=e.datamin&&(o=0),null==i.max)&&0<(r+=s*n)&&null!=e.datamax&&e.datamax<=0&&(r=0),e.min=o,e.max=r}),allocatedAxes=Z.grep(e,function(t){return t.reserveSpace}),k.left=k.right=k.top=k.bottom=0,L.grid.show){for(Z.each(allocatedAxes,function(t,e){var n=e,o=n.options;p="number"==typeof o.ticks&&0<o.ticks?o.ticks:.3*Math.sqrt("x"==n.direction?O:I);var i,r,s,a,l=(n.max-n.min)/p;if("time"==o.mode){var h={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,year:525949.2*60*1e3},u=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"year"]],c=0;null!=o.minTickSize&&(c="number"==typeof o.tickSize?o.tickSize:o.minTickSize[0]*h[o.minTickSize[1]]);for(var d=0;d<u.length-1&&!(l<(u[d][0]*h[u[d][1]]+u[d+1][0]*h[u[d+1][1]])/2&&u[d][0]*h[u[d][1]]>=c);++d);v=u[d][0],"year"==(p=u[d][1])&&(a=Math.pow(10,Math.floor(Math.log(l/h.year)/Math.LN10)),v=(b=l/h.year/a)<1.5?1:b<3?2:b<7.5?5:10,v*=a),n.tickSize=o.tickSize||[v,p],i=function(t){var e=[],n=t.tickSize[0],i=t.tickSize[1],o=new Date(t.min),r=n*h[i],s=("second"==i&&o.setUTCSeconds(tt(o.getUTCSeconds(),n)),"minute"==i&&o.setUTCMinutes(tt(o.getUTCMinutes(),n)),"hour"==i&&o.setUTCHours(tt(o.getUTCHours(),n)),"month"==i&&o.setUTCMonth(tt(o.getUTCMonth(),n)),"year"==i&&o.setUTCFullYear(tt(o.getUTCFullYear(),n)),o.setUTCMilliseconds(0),h.minute<=r&&o.setUTCSeconds(0),h.hour<=r&&o.setUTCMinutes(0),h.day<=r&&o.setUTCHours(0),4*h.day<=r&&o.setUTCDate(1),h.year<=r&&o.setUTCMonth(0),0),a=Number.NaN;do{var l,u,c=a,a=o.getTime()}while(e.push(a),"month"==i?n<1?(o.setUTCDate(1),l=o.getTime(),o.setUTCMonth(o.getUTCMonth()+1),u=o.getTime(),o.setTime(a+s*h.hour+(u-l)*n),s=o.getUTCHours(),o.setUTCHours(0)):o.setUTCMonth(o.getUTCMonth()+n):"year"==i?o.setUTCFullYear(o.getUTCFullYear()+n):o.setTime(a+r),a<t.max&&a!=c);return e},r=function(t,e){var n,i,t=new Date(t);return null!=o.timeformat?Z.plot.formatDate(t,o.timeformat,o.monthNames):(n=e.tickSize[0]*h[e.tickSize[1]],e=e.max-e.min,i=o.twelveHourClock?" %p":"",fmt=n<h.minute?"%h:%M:%S"+i:n<h.day?e<2*h.day?"%h:%M"+i:"%b %d %h:%M"+i:n<h.month?"%b %d":n<h.year?e<h.year?"%b":"%b %y":"%y",Z.plot.formatDate(t,fmt,o.monthNames))}}else{var p=o.tickDecimals,f=-Math.floor(Math.log(l)/Math.LN10);null!=p&&p<f&&(f=p),a=Math.pow(10,-f),(b=l/a)<1.5?v=1:b<3?(v=2,2.25<b&&(null==p||f+1<=p)&&(v=2.5,++f)):v=b<7.5?5:10,v*=a,null!=o.minTickSize&&v<o.minTickSize&&(v=o.minTickSize),n.tickDecimals=Math.max(0,null!=p?p:f),n.tickSize=o.tickSize||v,i=function(t){for(var e,n=[],i=tt(t.min,t.tickSize),o=0,r=Number.NaN;e=r,r=i+o*t.tickSize,n.push(r),++o,r<t.max&&r!=e;);return n},r=function(t,e){return t.toFixed(e.tickDecimals)}}null!=o.alignTicksWithAxis&&(s=("x"==n.direction?j:R)[o.alignTicksWithAxis-1])&&s.used&&s!=n&&(0<(b=i(n)).length&&(null==o.min&&(n.min=Math.min(n.min,b[0])),null==o.max)&&1<b.length&&(n.max=Math.max(n.max,b[b.length-1])),i=function(t){for(var e,n=[],i=0;i<s.ticks.length;++i)e=(s.ticks[i].v-s.min)/(s.max-s.min),e=t.min+e*(t.max-t.min),n.push(e);return n},"time"!=n.mode)&&null==o.tickDecimals&&(a=Math.max(0,1-Math.floor(Math.log(l)/Math.LN10)),1<(p=i(n)).length&&/\..*0$/.test((p[1]-p[0]).toFixed(a))||(n.tickDecimals=a)),n.tickGenerator=i,Z.isFunction(o.tickFormatter)?n.tickFormatter=function(t,e){return""+o.tickFormatter(t,e)}:n.tickFormatter=r;var m,g,v,b,y=e,f=y.options.ticks,$=[];for(null==f||"number"==typeof f&&0<f?$=y.tickGenerator(y):f&&($=Z.isFunction(f)?f({min:y.min,max:y.max}):f),y.ticks=[],m=0;m<$.length;++m){var w=null,x=$[m];"object"==typeof x?(g=+x[0],1<x.length&&(w=x[1])):g=+x,null==w&&(w=y.tickFormatter(g,y)),isNaN(g)||y.ticks.push({v:g,label:w})}b=(v=e).ticks,v.options.autoscaleMargin&&0<b.length&&(null==v.options.min&&(v.min=Math.min(v.min,b[0].v)),null==v.options.max)&&1<b.length&&(v.max=Math.max(v.max,b[b.length-1].v));var _,k,C,T=e,p=T.options,D=T.ticks||[],S=[],E=p.labelWidth,p=p.labelHeight;function M(t,e){return Z('<div style="position:absolute;top:-10000px;'+e+'font-size:smaller"><div class="'+T.direction+"Axis "+T.direction+T.n+'Axis">'+t.join("")+"</div></div>").appendTo(A)}if("x"==T.direction){if(null==E&&(E=Math.floor(O/(0<D.length?D.length:1))),null==p){for(S=[],_=0;_<D.length;++_)(k=D[_].label)&&S.push('<div class="tickLabel" style="float:left;width:'+E+'px">'+k+"</div>");0<S.length&&(S.push('<div style="clear:left"></div>'),p=(C=M(S,"width:10000px;")).height(),C.remove())}}else if(null==E||null==p){for(_=0;_<D.length;++_)(k=D[_].label)&&S.push('<div class="tickLabel">'+k+"</div>");0<S.length&&(C=M(S,""),null==E&&(E=C.children().width()),null==p&&(p=C.find("div.tickLabel").height()),C.remove())}null==p&&(p=0),T.labelWidth=E=null==E?0:E,T.labelHeight=p}),t=allocatedAxes.length-1;0<=t;--t)!function(t){var e=t.labelWidth,n=t.labelHeight,i=t.options.position,o=t.options.tickLength,r=L.grid.axisMargin,s=L.grid.labelMargin,a="x"==t.direction?j:R,l=Z.grep(a,function(t){return t&&t.options.position==i&&t.reserveSpace}),l=(Z.inArray(t,l)==l.length-1&&(r=0),null==o&&(o="full"),Z.grep(a,function(t){return t&&t.reserveSpace}));(a=0==Z.inArray(t,l))||"full"!=o||(o=5),isNaN(+o)||(s+=+o),"x"==t.direction?(n+=s,"bottom"==i?(k.bottom+=n+r,t.box={top:I-k.bottom,height:n}):(t.box={top:k.top+r,height:n},k.top+=n+r)):(e+=s,"left"==i?(t.box={left:k.left+r,width:e},k.left+=e+r):(k.right+=e+r,t.box={left:O-k.right,width:e})),t.position=i,t.tickLength=o,t.box.padding=s,t.innermost=a}(allocatedAxes[t]);var n,i=L.grid.minBorderMargin;if(null==i)for(t=i=0;t<H.length;++t)i=Math.max(i,H[t].points.radius+H[t].points.lineWidth/2);for(n in k)k[n]+=L.grid.borderWidth,k[n]=Math.max(i,k[n])}if(C=O-k.left-k.right,T=I-k.bottom-k.top,Z.each(e,function(t,e){function n(t){return t}var i,o,r,s;o=(e=e).options.transform||n,r=e.options.inverseTransform,s="x"==e.direction?(i=e.scale=C/Math.abs(o(e.max)-o(e.min)),Math.min(o(e.max),o(e.min))):(i=-(i=e.scale=T/Math.abs(o(e.max)-o(e.min))),Math.max(o(e.max),o(e.min))),e.p2c=o==n?function(t){return(t-s)*i}:function(t){return(o(t)-s)*i},e.c2p=r?function(t){return r(s+t/i)}:function(t){return s+t/i}}),L.grid.show){Z.each(allocatedAxes,function(t,e){"x"==(e=e).direction?(e.box.left=k.left,e.box.width=C):(e.box.top=k.top,e.box.height=T)}),A.find(".tickLabels").remove();for(var o=['<div class="tickLabels" style="font-size:smaller">'],r=U(),s=0;s<r.length;++s){var a=r[s],l=a.box;if(a.show){o.push('<div class="'+a.direction+"Axis "+a.direction+a.n+'Axis" style="color:'+a.options.color+'">');for(var u=0;u<a.ticks.length;++u){var c=a.ticks[u];if(!(!c.label||c.v<a.min||c.v>a.max)){var h,d,p={},f=("x"==a.direction?(h="center",p.left=Math.round(k.left+a.p2c(c.v)-a.labelWidth/2),"bottom"==a.position?p.top=l.top+l.padding:p.bottom=I-(l.top+l.height-l.padding)):(p.top=Math.round(k.top+a.p2c(c.v)-a.labelHeight/2),h="left"==a.position?(p.right=O-(l.left+l.width-l.padding),"right"):(p.left=l.left+l.padding,"left")),p.width=a.labelWidth,["position:absolute","text-align:"+h]);for(d in p)f.push(d+":"+p[d]+"px");o.push('<div class="tickLabel" style="'+f.join(";")+'">'+c.label+"</div>")}}o.push("</div>")}}o.push("</div>"),A.append(o.join(""))}if(A.find(".legend").remove(),L.legend.show){for(var m,g,v,b,y,$=[],w=!1,x=L.legend.labelFormatter,_=0;_<H.length;++_)m=H[_],(g=m.label)&&(_%L.legend.noColumns==0&&(w&&$.push("</tr>"),$.push("<tr>"),w=!0),x&&(g=x(g,m)),$.push('<td class="legendColorBox"><div style="border:1px solid '+L.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+m.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+g+"</td>"));w&&$.push("</tr>"),0!=$.length&&(e='<table style="font-size:smaller;color:'+L.grid.color+'">'+$.join("")+"</table>",null!=L.legend.container?Z(L.legend.container).html(e):(v="",b=L.legend.position,null==(y=L.legend.margin)[0]&&(y=[y,y]),"n"==b.charAt(0)?v+="top:"+(y[1]+k.top)+"px;":"s"==b.charAt(0)&&(v+="bottom:"+(y[1]+k.bottom)+"px;"),"e"==b.charAt(1)?v+="right:"+(y[0]+k.right)+"px;":"w"==b.charAt(1)&&(v+="left:"+(y[0]+k.left)+"px;"),b=Z('<div class="legend">'+e.replace('style="','style="position:absolute;'+v+";")+"</div>").appendTo(A),0!=L.legend.backgroundOpacity&&(null==(y=L.legend.backgroundColor)&&((y=(y=L.grid.backgroundColor)&&"string"==typeof y?Z.color.parse(y):Z.color.extract(b,"background-color")).a=1,y=y.toString()),e=b.children(),Z('<div style="position:absolute;width:'+e.width()+"px;height:"+e.height()+"px;"+v+"background-color:"+y+';"> </div>').prependTo(b).css("opacity",L.legend.backgroundOpacity))))}}function E(){v.clearRect(0,0,O,I);var t=L.grid;t.show&&t.backgroundColor&&(v.save(),v.translate(k.left,k.top),v.fillStyle=J(L.grid.backgroundColor,T,0,"rgba(255, 255, 255, 0)"),v.fillRect(0,0,C,T),v.restore()),t.show&&!t.aboveData&&P();for(var e=0;e<H.length;++e){z(F.drawSeries,[v,H[e]]),n=void 0;var n=H[e];if(n.lines.show){i=void 0;r=void 0;s=void 0;a=void 0;var i=n;var o=function(t,e,n,i,o){var r=t.points,s=t.pointsize,a=null,l=null;v.beginPath();for(var u=s;u<r.length;u+=s){var c=r[u-s],h=r[u-s+1],d=r[u],p=r[u+1];if(null!=c&&null!=d){if(h<=p&&h<o.min){if(p<o.min)continue;c=(o.min-h)/(p-h)*(d-c)+c,h=o.min}else if(p<=h&&p<o.min){if(h<o.min)continue;d=(o.min-h)/(p-h)*(d-c)+c,p=o.min}if(p<=h&&h>o.max){if(p>o.max)continue;c=(o.max-h)/(p-h)*(d-c)+c,h=o.max}else if(h<=p&&p>o.max){if(h>o.max)continue;d=(o.max-h)/(p-h)*(d-c)+c,p=o.max}if(c<=d&&c<i.min){if(d<i.min)continue;h=(i.min-c)/(d-c)*(p-h)+h,c=i.min}else if(d<=c&&d<i.min){if(c<i.min)continue;p=(i.min-c)/(d-c)*(p-h)+h,d=i.min}if(d<=c&&c>i.max){if(d>i.max)continue;h=(i.max-c)/(d-c)*(p-h)+h,c=i.max}else if(c<=d&&d>i.max){if(c>i.max)continue;p=(i.max-c)/(d-c)*(p-h)+h,d=i.max}c==a&&h==l||v.moveTo(i.p2c(c)+e,o.p2c(h)+n),a=d,l=p,v.lineTo(i.p2c(d)+e,o.p2c(p)+n)}}v.stroke()};v.save(),v.translate(k.left,k.top),v.lineJoin="round";var r=i.lines.lineWidth,s=i.shadowSize;0<r&&0<s&&(v.lineWidth=s,v.strokeStyle="rgba(0,0,0,0.1)",a=Math.PI/18,o(i.datapoints,Math.sin(a)*(r/2+s/2),Math.cos(a)*(r/2+s/2),i.xaxis,i.yaxis),v.lineWidth=s/2,o(i.datapoints,Math.sin(a)*(r/2+s/4),Math.cos(a)*(r/2+s/4),i.xaxis,i.yaxis));v.lineWidth=r,v.strokeStyle=i.color;var a=m(i.lines,i.color,0,T);a&&(v.fillStyle=a,function(t,e,n){for(var i=t.points,o=t.pointsize,r=Math.min(Math.max(0,n.min),n.max),s=0,a=!1,l=1,u=0,c=0;!(0<o&&s>i.length+o);){var h,d,p=i[(s+=o)-o],f=i[s-o+l],m=i[s],g=i[s+l];if(a){if(0<o&&null!=p&&null==m){c=s,o=-o,l=2;continue}if(o<0&&s==u+o){v.fill(),a=!1,l=1,s=u=c+(o=-o);continue}}if(null!=p&&null!=m){if(p<=m&&p<e.min){if(m<e.min)continue;f=(e.min-p)/(m-p)*(g-f)+f,p=e.min}else if(m<=p&&m<e.min){if(p<e.min)continue;g=(e.min-p)/(m-p)*(g-f)+f,m=e.min}if(m<=p&&p>e.max){if(m>e.max)continue;f=(e.max-p)/(m-p)*(g-f)+f,p=e.max}else if(p<=m&&m>e.max){if(p>e.max)continue;g=(e.max-p)/(m-p)*(g-f)+f,m=e.max}a||(v.beginPath(),v.moveTo(e.p2c(p),n.p2c(r)),a=!0),f>=n.max&&g>=n.max?(v.lineTo(e.p2c(p),n.p2c(n.max)),v.lineTo(e.p2c(m),n.p2c(n.max))):f<=n.min&&g<=n.min?(v.lineTo(e.p2c(p),n.p2c(n.min)),v.lineTo(e.p2c(m),n.p2c(n.min))):(h=p,d=m,f<=g&&f<n.min&&g>=n.min?(p=(n.min-f)/(g-f)*(m-p)+p,f=n.min):g<=f&&g<n.min&&f>=n.min&&(m=(n.min-f)/(g-f)*(m-p)+p,g=n.min),g<=f&&f>n.max&&g<=n.max?(p=(n.max-f)/(g-f)*(m-p)+p,f=n.max):f<=g&&g>n.max&&f<=n.max&&(m=(n.max-f)/(g-f)*(m-p)+p,g=n.max),p!=h&&v.lineTo(e.p2c(h),n.p2c(f)),v.lineTo(e.p2c(p),n.p2c(f)),v.lineTo(e.p2c(m),n.p2c(g)),m!=d&&(v.lineTo(e.p2c(m),n.p2c(g)),v.lineTo(e.p2c(d),n.p2c(g))))}}}(i.datapoints,i.xaxis,i.yaxis));0<r&&o(i.datapoints,0,0,i.xaxis,i.yaxis);v.restore()}if(n.bars.show&&!function(c){v.save(),v.translate(k.left,k.top),v.lineWidth=c.bars.lineWidth,v.strokeStyle=c.color;var t="left"==c.bars.align?0:-c.bars.barWidth/2,e=c.bars.fill?function(t,e){return m(c.bars,c.color,t,e)}:null;(function(t,e,n,i,o,r,s){for(var a=t.points,l=t.pointsize,u=0;u<a.length;u+=l)null!=a[u]&&N(a[u],a[u+1],a[u+2],e,n,i,o,r,s,v,c.bars.horizontal,c.bars.lineWidth)})(c.datapoints,t,t+c.bars.barWidth,0,e,c.xaxis,c.yaxis),v.restore()}(n),n.points.show){s=void 0;a=void 0;r=void 0;o=void 0;i=void 0;s=n;n=function(t,e,n,i,o,r,s,a){for(var l=t.points,u=t.pointsize,c=0;c<l.length;c+=u){var h=l[c],d=l[c+1];null==h||h<r.min||h>r.max||d<s.min||d>s.max||(v.beginPath(),h=r.p2c(h),d=s.p2c(d)+i,"circle"==a?v.arc(h,d,e,0,o?Math.PI:2*Math.PI,!1):a(v,h,d,e,o),v.closePath(),n&&(v.fillStyle=n,v.fill()),v.stroke())}};v.save(),v.translate(k.left,k.top);a=s.points.lineWidth,r=s.shadowSize,o=s.points.radius,i=s.points.symbol;0<a&&0<r&&(r=r/2,v.lineWidth=r,v.strokeStyle="rgba(0,0,0,0.1)",n(s.datapoints,o,null,r+r/2,!0,s.xaxis,s.yaxis,i),v.strokeStyle="rgba(0,0,0,0.2)",n(s.datapoints,o,null,r/2,!0,s.xaxis,s.yaxis,i));v.lineWidth=a,v.strokeStyle=s.color,n(s.datapoints,o,m(s.points,s.color),0,!1,s.xaxis,s.yaxis,i),v.restore()}}z(F.draw,[v]),t.show&&t.aboveData&&P()}function M(t,e){var n,o,r,s,a,l=U();for(i=0;i<l.length;++i)if((n=l[i]).direction==e&&t[o=t[o=e+n.n+"axis"]||1!=n.n?o:e+"axis"]){s=t[o].from,a=t[o].to;break}return t[o]||(n=("x"==e?j:R)[0],s=t[e+"1"],a=t[e+"2"]),null!=s&&null!=a&&a<s&&(r=s,s=a,a=r),{from:s,to:a,axis:n}}function P(){v.save(),v.translate(k.left,k.top);var t,e=L.grid.markings;if(e)for(Z.isFunction(e)&&((r=g.getAxes()).xmin=r.xaxis.min,r.xmax=r.xaxis.max,r.ymin=r.yaxis.min,r.ymax=r.yaxis.max,e=e(r)),t=0;t<e.length;++t){var n=e[t],i=M(n,"x"),o=M(n,"y");null==i.from&&(i.from=i.axis.min),null==i.to&&(i.to=i.axis.max),null==o.from&&(o.from=o.axis.min),null==o.to&&(o.to=o.axis.max),i.to<i.axis.min||i.from>i.axis.max||o.to<o.axis.min||o.from>o.axis.max||(i.from=Math.max(i.from,i.axis.min),i.to=Math.min(i.to,i.axis.max),o.from=Math.max(o.from,o.axis.min),o.to=Math.min(o.to,o.axis.max),i.from==i.to&&o.from==o.to)||(i.from=i.axis.p2c(i.from),i.to=i.axis.p2c(i.to),o.from=o.axis.p2c(o.from),o.to=o.axis.p2c(o.to),i.from==i.to||o.from==o.to?(v.beginPath(),v.strokeStyle=n.color||L.grid.markingsColor,v.lineWidth=n.lineWidth||L.grid.markingsLineWidth,v.moveTo(i.from,o.from),v.lineTo(i.to,o.to),v.stroke()):(v.fillStyle=n.color||L.grid.markingsColor,v.fillRect(i.from,o.to,i.to-i.from,o.from-o.to)))}for(var r=U(),s=L.grid.borderWidth,a=0;a<r.length;++a){var l,u,c,h=r[a],d=h.box,p=h.tickLength;if(h.show&&0!=h.ticks.length){for(v.strokeStyle=h.options.tickColor||Z.color.parse(h.options.color).scale("a",.22).toString(),v.lineWidth=1,"x"==h.direction?(l=0,u="full"==p?"top"==h.position?0:T:d.top-k.top+("top"==h.position?d.height:0)):(u=0,l="full"==p?"left"==h.position?0:C:d.left-k.left+("left"==h.position?d.width:0)),h.innermost||(v.beginPath(),m=c=0,"x"==h.direction?m=C:c=T,1==v.lineWidth&&(l=Math.floor(l)+.5,u=Math.floor(u)+.5),v.moveTo(l,u),v.lineTo(l+m,u+c),v.stroke()),v.beginPath(),t=0;t<h.ticks.length;++t){var f=h.ticks[t].v,m=c=0;f<h.min||f>h.max||"full"==p&&0<s&&(f==h.min||f==h.max)||("x"==h.direction?(l=h.p2c(f),c="full"==p?-T:p,"top"==h.position&&(c=-c)):(u=h.p2c(f),m="full"==p?-C:p,"left"==h.position&&(m=-m)),1==v.lineWidth&&("x"==h.direction?l=Math.floor(l)+.5:u=Math.floor(u)+.5),v.moveTo(l,u),v.lineTo(l+m,u+c))}v.stroke()}}s&&(v.lineWidth=s,v.strokeStyle=L.grid.borderColor,v.strokeRect(-s/2,-s/2,C+s,T+s)),v.restore()}function N(t,e,n,i,o,r,s,a,l,u,c,h){var d,p,f,m,g,v,b,y,$;c?(g=!(y=v=b=!0),m=e+i,f=e+o,(p=t)<(d=n)&&($=p,p=d,d=$,v=!(g=!0))):(y=!(g=v=b=!0),d=t+i,p=t+o,(m=e)<(f=n)&&($=m,m=f,f=$,b=!(y=!0))),p<a.min||d>a.max||m<l.min||f>l.max||(d<a.min&&(d=a.min,g=!1),p>a.max&&(p=a.max,v=!1),f<l.min&&(f=l.min,y=!1),m>l.max&&(m=l.max,b=!1),d=a.p2c(d),f=l.p2c(f),p=a.p2c(p),m=l.p2c(m),s&&(u.beginPath(),u.moveTo(d,f),u.lineTo(d,m),u.lineTo(p,m),u.lineTo(p,f),u.fillStyle=s(f,m),u.fill()),0<h&&(g||v||b||y)&&(u.beginPath(),u.moveTo(d,f+r),g?u.lineTo(d,m+r):u.moveTo(d,m+r),b?u.lineTo(p,m+r):u.moveTo(p,m+r),v?u.lineTo(p,f+r):u.moveTo(p,f+r),y?u.lineTo(d,f+r):u.moveTo(d,f+r),u.stroke()))}function m(t,e,n,i){var o=t.fill;return o?t.fillColor?J(t.fillColor,n,i,e):((t=Z.color.parse(e)).a="number"==typeof o?o:.4,t.normalize(),t.toString()):null}t=0==t.length||0==h?(A.html(""),A.css({padding:0}),"static"==A.css("position")&&A.css("position","relative"),_(),r=f(!0,"base"),s=f(!1,"overlay"),!1):(r=t.get(0),s=h.get(0),!0),v=r.getContext("2d"),a=s.getContext("2d"),c=Z([s,r]),t&&(A.data("plot").shutdown(),g.resize(),a.clearRect(0,0,O,I),c.unbind(),A.children().not([r,s]).remove()),A.data("plot",g),d(x),S(),E(),L.grid.hoverable&&(c.mousemove(V),c.mouseleave(B)),L.grid.clickable&&c.click(Y),z(F.bindEvents,[c]);var b=[],y=null;function V(t){L.grid.hoverable&&$("plothover",t,function(t){return 0!=t.hoverable})}function B(t){L.grid.hoverable&&$("plothover",t,function(t){return!1})}function Y(t){$("plotclick",t,function(t){return 0!=t.clickable})}function $(t,e,n){var i=c.offset(),o=e.pageX-i.left-k.left,r=e.pageY-i.top-k.top,s=p({left:o,top:r}),a=(s.pageX=e.pageX,s.pageY=e.pageY,function(t,e,n){for(var i=L.grid.mouseActiveRadius,o=i*i+1,r=null,s=H.length-1;0<=s;--s)if(n(H[s])){var a=H[s],l=a.xaxis,u=a.yaxis,c=a.datapoints.points,h=a.datapoints.pointsize,d=l.c2p(t),p=u.c2p(e),f=i/l.scale,m=i/u.scale;if(l.options.inverseTransform&&(f=Number.MAX_VALUE),u.options.inverseTransform&&(m=Number.MAX_VALUE),a.lines.show||a.points.show)for(w=0;w<c.length;w+=h){var g,v=c[w],b=c[w+1];null==v||f<v-d||v-d<-f||m<b-p||b-p<-m||(g=(g=Math.abs(l.p2c(v)-t))*g+(g=Math.abs(u.p2c(b)-e))*g)<o&&(o=g,r=[s,w/h])}if(a.bars.show&&!r)for(var y="left"==a.bars.align?0:-a.bars.barWidth/2,$=y+a.bars.barWidth,w=0;w<c.length;w+=h){var v=c[w],b=c[w+1],x=c[w+2];null!=v&&(H[s].bars.horizontal?d<=Math.max(x,v)&&d>=Math.min(x,v)&&b+y<=p&&p<=b+$:v+y<=d&&d<=v+$&&p>=Math.min(x,b)&&p<=Math.max(x,b))&&(r=[s,w/h])}}return r?(s=r[0],w=r[1],h=H[s].datapoints.pointsize,{datapoint:H[s].datapoints.points.slice(w*h,(w+1)*h),dataIndex:w,series:H[s],seriesIndex:s}):null}(o,r,n));if(a&&(a.pageX=parseInt(a.series.xaxis.p2c(a.datapoint[0])+i.left+k.left),a.pageY=parseInt(a.series.yaxis.p2c(a.datapoint[1])+i.top+k.top)),L.grid.autoHighlight){for(var l=0;l<b.length;++l){var u=b[l];u.auto!=t||a&&u.series==a.series&&u.point[0]==a.datapoint[0]&&u.point[1]==a.datapoint[1]||X(u.series,u.point)}a&&K(a.series,a.datapoint,t)}A.trigger(t,[s,a])}function w(){y=y||setTimeout(G,30)}function G(){var t,e,n,i,o,r,s;for(y=null,a.save(),a.clearRect(0,0,O,I),a.translate(k.left,k.top),t=0;t<b.length;++t)(n=b[t]).series.bars.show?function(t,e){a.lineWidth=t.bars.lineWidth,a.strokeStyle=Z.color.parse(t.color).scale("a",.5).toString();var n=Z.color.parse(t.color).scale("a",.5).toString(),i="left"==t.bars.align?0:-t.bars.barWidth/2;N(e[0],e[1],e[2]||0,i,i+t.bars.barWidth,0,function(){return n},t.xaxis,t.yaxis,a,t.bars.horizontal,t.bars.lineWidth)}(n.series,n.point):(e=n.series,n=n.point,s=r=o=i=void 0,o=n[0],n=n[1],r=e.xaxis,s=e.yaxis,o<r.min||o>r.max||n<s.min||n>s.max||(i=e.points.radius+e.points.lineWidth/2,a.lineWidth=i,a.strokeStyle=Z.color.parse(e.color).scale("a",.5).toString(),i=1.5*i,o=r.p2c(o),n=s.p2c(n),a.beginPath(),"circle"==e.points.symbol?a.arc(o,n,i,0,2*Math.PI,!1):e.points.symbol(a,o,n,i,!1),a.closePath(),a.stroke()));a.restore(),z(F.drawOverlay,[a])}function K(t,e,n){"number"==typeof t&&(t=H[t]),"number"==typeof e&&(i=t.datapoints.pointsize,e=t.datapoints.points.slice(i*e,i*(e+1)));var i=Q(t,e);-1==i?(b.push({series:t,point:e,auto:n}),w()):n||(b[i].auto=!1)}function X(t,e){null==t&&null==e&&(b=[],w());t=Q(t="number"==typeof t?H[t]:t,e="number"==typeof e?t.data[e]:e);-1!=t&&(b.splice(t,1),w())}function Q(t,e){for(var n=0;n<b.length;++n){var i=b[n];if(i.series==t&&i.point[0]==e[0]&&i.point[1]==e[1])return n}return-1}function J(t,e,n,i){if("string"==typeof t)return t;for(var o=v.createLinearGradient(0,n,0,e),r=0,s=t.colors.length;r<s;++r){var a,l=t.colors[r];"string"!=typeof l&&(a=Z.color.parse(i),null!=l.brightness&&(a=a.scale("rgb",l.brightness)),null!=l.opacity&&(a.a*=l.opacity),l=a.toString()),o.addColorStop(r/(s-1),l)}return o}}function tt(t,e){return e*Math.floor(t/e)}Z.plot=function(t,e,n){return new o(Z(t),e,n,Z.plot.plugins)},Z.plot.version="0.7",Z.plot.plugins=[],Z.plot.formatDate=function(t,e,n){function i(t){return 1==(t=""+t).length?"0"+t:t}var o=[],r=!1,s=!1,a=t.getUTCHours(),l=a<12;null==n&&(n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),-1!=e.search(/%p|%P/)&&(12<a?a-=12:0==a&&(a=12));for(var u=0;u<e.length;++u){var c=e.charAt(u);if(r){switch(c){case"h":c=""+a;break;case"H":c=i(a);break;case"M":c=i(t.getUTCMinutes());break;case"S":c=i(t.getUTCSeconds());break;case"d":c=""+t.getUTCDate();break;case"m":c=""+(t.getUTCMonth()+1);break;case"y":c=""+t.getUTCFullYear();break;case"b":c=""+n[t.getUTCMonth()];break;case"p":c=l?"am":"pm";break;case"P":c=l?"AM":"PM";break;case"0":s=!(c="")}c&&s&&(c=i(c),s=!1),o.push(c),s||(r=!1)}else"%"==c?r=!0:o.push(c)}return o.join("")}}(jQuery),function(){"use strict";var t=angular.noop,a=Object.freeze||t,n=Object.defineProperty,l=angular.isString,u=angular.isFunction,c=angular.isDefined,h=angular.isObject,d=angular.isArray,p=angular.forEach,f=Array.prototype.slice;function e(i,r,e,s){function o(t,e,n){n||!h(e)||d(e)||(n=e,e=void 0),this.protocols=e,this.url=t||"Missing URL",this.ssl=/(wss)/i.test(this.url),this.scope=n&&n.scope||i,this.rootScopeFailover=n&&n.rootScopeFailover&&!0,this.useApplyAsync=n&&n.useApplyAsync||!1,this.initialTimeout=n&&n.initialTimeout||500,this.maxTimeout=n&&n.maxTimeout||3e5,this.reconnectIfNotNormalClose=n&&n.reconnectIfNotNormalClose||!1,this._reconnectAttempts=0,this.sendQueue=[],this.onOpenCallbacks=[],this.onMessageCallbacks=[],this.onErrorCallbacks=[],this.onCloseCallbacks=[],a(this._readyStateConstants),t?this._connect():this._setInternalState(0)}return o.prototype._readyStateConstants={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3,RECONNECT_ABORTED:4},o.prototype._normalCloseCode=1e3,o.prototype._reconnectableStatusCodes=[4e3],o.prototype.safeDigest=function(t){t&&!this.scope.$$phase&&this.scope.$digest()},o.prototype.bindToScope=function(t){var e=this;return t&&(this.scope=t,this.rootScopeFailover)&&this.scope.$on("$destroy",function(){e.scope=i}),e},o.prototype._connect=function(t){!t&&this.socket&&this.socket.readyState===this._readyStateConstants.OPEN||(this.socket=s.create(this.url,this.protocols),this.socket.onmessage=angular.bind(this,this._onMessageHandler),this.socket.onopen=angular.bind(this,this._onOpenHandler),this.socket.onerror=angular.bind(this,this._onErrorHandler),this.socket.onclose=angular.bind(this,this._onCloseHandler))},o.prototype.fireQueue=function(){for(;this.sendQueue.length&&this.socket.readyState===this._readyStateConstants.OPEN;){var t=this.sendQueue.shift();this.socket.send(l(t.message)?t.message:JSON.stringify(t.message)),t.deferred.resolve()}},o.prototype.notifyOpenCallbacks=function(t){for(var e=0;e<this.onOpenCallbacks.length;e++)this.onOpenCallbacks[e].call(this,t)},o.prototype.notifyCloseCallbacks=function(t){for(var e=0;e<this.onCloseCallbacks.length;e++)this.onCloseCallbacks[e].call(this,t)},o.prototype.notifyErrorCallbacks=function(t){for(var e=0;e<this.onErrorCallbacks.length;e++)this.onErrorCallbacks[e].call(this,t)},o.prototype.onOpen=function(t){return this.onOpenCallbacks.push(t),this},o.prototype.onClose=function(t){return this.onCloseCallbacks.push(t),this},o.prototype.onError=function(t){return this.onErrorCallbacks.push(t),this},o.prototype.onMessage=function(t,e){if(!u(t))throw new Error("Callback must be a function");if(!e||!c(e.filter)||l(e.filter)||e.filter instanceof RegExp)return this.onMessageCallbacks.push({fn:t,pattern:e?e.filter:void 0,autoApply:!e||e.autoApply}),this;throw new Error("Pattern must be a string or regular expression")},o.prototype._onOpenHandler=function(t){this._reconnectAttempts=0,this.notifyOpenCallbacks(t),this.fireQueue()},o.prototype._onCloseHandler=function(t){var e=this;e.useApplyAsync?e.scope.$applyAsync(function(){e.notifyCloseCallbacks(t)}):(e.notifyCloseCallbacks(t),e.safeDigest(autoApply)),(this.reconnectIfNotNormalClose&&t.code!==this._normalCloseCode||-1<this._reconnectableStatusCodes.indexOf(t.code))&&this.reconnect()},o.prototype._onErrorHandler=function(t){var e=this;e.useApplyAsync?e.scope.$applyAsync(function(){e.notifyErrorCallbacks(t)}):(e.notifyErrorCallbacks(t),e.safeDigest(autoApply))},o.prototype._onMessageHandler=function(t){for(var e,n,i=this,o=0;o<i.onMessageCallbacks.length;o++)(!(e=(n=i.onMessageCallbacks[o]).pattern)||l(e)&&t.data===e||e instanceof RegExp&&e.exec(t.data))&&r(n.fn,n.autoApply,t);function r(t,e,n){n=f.call(arguments,2),i.useApplyAsync?i.scope.$applyAsync(function(){t.apply(i,n)}):(t.apply(i,n),i.safeDigest(e))}},o.prototype.close=function(t){return!t&&this.socket.bufferedAmount||this.socket.close(),this},o.prototype.send=function(e){var n=r.defer(),i=this,t=function e(t){t.cancel=o;var n=t.then;t.then=function(){var t=n.apply(this,arguments);return e(t)};return t}(n.promise);function o(t){return i.sendQueue.splice(i.sendQueue.indexOf(e),1),n.reject(t),i}return i.readyState===i._readyStateConstants.RECONNECT_ABORTED?n.reject("Socket connection has been closed"):(i.sendQueue.push({message:e,deferred:n}),i.fireQueue()),s.isMocked&&s.isMocked()&&s.isConnected(this.url)&&this._onMessageHandler(s.mockSend()),t},o.prototype.reconnect=function(){this.close();var t=this._getBackoffDelay(++this._reconnectAttempts);return console.log("Reconnecting in "+t/1e3+" seconds"),e(angular.bind(this,this._connect),t),this},o.prototype._getBackoffDelay=function(t){var e=Math.random()+1,n=this.initialTimeout,i=this.maxTimeout;return Math.floor(Math.min(e*n*Math.pow(2,t),i))},o.prototype._setInternalState=function(t){if(Math.floor(t)!==t||t<0||4<t)throw new Error("state must be an integer between 0 and 4, got: "+t);n||(this.readyState=t||this.socket.readyState),this._internalConnectionState=t,p(this.sendQueue,function(t){t.deferred.reject("Message cancelled due to closed socket connection")})},n&&n(o.prototype,"readyState",{get:function(){return this._internalConnectionState||this.socket.readyState},set:function(){throw new Error("The readyState property is read-only")}}),function(t,e,n){return new o(t,e,n)}}function i(o,n){this.create=function(t,e){var n,i;if(!/wss?:\/\//.exec(t))throw new Error("Invalid url provided");if("object"==typeof exports&&require)try{n=(i=require("ws")).Client||i.client||i}catch(t){}return n=n||o.WebSocket||o.MozWebSocket,e?new n(t,e):new n(t)},this.createWebSocketBackend=function(t,e){return n.warn("Deprecated: Please use .create(url, protocols)"),this.create(t,e)}}Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e=this.length>>>0,n=Number(arguments[1])||0;for((n=n<0?Math.ceil(n):Math.floor(n))<0&&(n+=e);n<e;n++)if(n in this&&this[n]===t)return n;return-1}),angular.module("ngWebSocket",[]).factory("$websocket",["$rootScope","$q","$timeout","$websocketBackend",e]).factory("WebSocket",["$rootScope","$q","$timeout","WebsocketBackend",e]).service("$websocketBackend",["$window","$log",i]).service("WebSocketBackend",["$window","$log",i]),angular.module("angular-websocket",["ngWebSocket"]),"object"==typeof module&&"function"!=typeof define&&(module.exports=angular.module("ngWebSocket"))}(),function(t){"undefined"!=typeof module&&module.exports?module.exports=t:window.naranja=t}(function(){function a(t,e){var n=document.createElement(t);return e&&e.forEach(function(t){n.classList.add(t)}),n}var l=document.querySelector(".naranja-notification-box");return l||(l=a("div",["naranja-notification-box"]),($newNotificationsAdvice=a("div",["naranja-notification-advice"])).addEventListener("click",function(){l.scrollTop="0"}),l.appendChild($newNotificationsAdvice),document.body.appendChild(l)),l.__proto__.unshifElement=function(t){this.insertBefore(t,this.childNodes[0])},l.addEventListener("scroll",function(t){t.currentTarget.scrollTop<20&&$newNotificationsAdvice.classList.remove("active")}),{log:function(t){this.createNotification("log",t)},success:function(t){this.createNotification("success",t)},warn:function(t){this.createNotification("warn",t)},error:function(t){this.createNotification("error",t)},createNotification:function(t,e){this.type=t,this.title=e.title,this.text=e.text,this.icon=void 0===e.icon||e.icon,this.buttons=e.buttons;var n,i=this.$createContainer(),o=i.querySelector("div"),t=(this.$notification=i,this.$body=o,this.icon&&((r=a("div",["naranja-icon","narj-icon-"+t])).innerHTML=this.chooseIcon[t],o.appendChild(r)),this.createTitle()),r=this.createText(),s=a("div",["naranja-text-and-title"]),r=(s.appendChild(t),s.appendChild(r),o.appendChild(s),this.buttons&&(t=this.createButtons(i,o),o.querySelector(".naranja-text-and-title").appendChild(t)),a("div",["naranja-close-icon"]));r.addEventListener("click",function(){this.closeNotification()}.bind(this)),r.innerHTML=this.chooseIcon.close,o.appendChild(r),l.unshifElement(i),n=i,setTimeout(function(){var t=n.querySelector(".naranja-body-notification").offsetHeight;n.style.height=t+"px"},0),20<l.scrollTop&&($newNotificationsAdvice.classList.add("active"),$newNotificationsAdvice.innerHTML=this.chooseIcon.newNotification),"keep"!==e.timeout&&setTimeout(function(){this.closeNotification()}.bind(this),e.timeout||5e3)},$createContainer:function(){var t=a("div",["naranja-notification","naranja-"+this.type]),e=a("div",["naranja-body-notification","narj-"+this.type]);return t.appendChild(e),t},createTitle:function(){var t=a("p",["naranja-title"]),e=(e=this.title,document.createTextNode(e));return t.appendChild(e),t},createText:function(){var t=a("p",["naranja-parragraph"]),e=document.createTextNode(this.text);return t.appendChild(e),t},createButtons:function(t,e){var n=a("div",["naranja-buttons-container"]),i=this;return this.buttons.forEach(function(e){var t=a("button");t.appendChild(document.createTextNode(e.text)),t.addEventListener("click",function(t){i.removeNotification=!0,t.preventClose=function(){i.removeNotification=!1},t.closeNotification=function(){i.closeNotification()},e.click(t),i.removeNotification&&i.closeNotification()}),n.appendChild(t)}),n},closeNotification:function(){var t=this;this.elementWasRemoved||(t.$body.style.opacity="0",setTimeout(function(){t.$body.style.marginTop="0px",t.$body.style.marginBottom="0px",t.$body.style.padding="0px",t.$notification.style.height="0px",t.$notification.style.padding="0px",setTimeout(function(){t.$notification.parentNode.removeChild(t.$notification)},600),l.scrollTop<20&&$newNotificationsAdvice.classList.remove("active")},150)),this.elementWasRemoved=!0},chooseIcon:{log:'<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="24" fill="#EEEEEE"/><path d="M26.595 37.5C26.3313 37.9546 25.9528 38.332 25.4973 38.5943C25.0419 38.8566 24.5256 38.9947 24 38.9947C23.4744 38.9947 22.9581 38.8566 22.5027 38.5943C22.0472 38.332 21.6687 37.9546 21.405 37.5M39 31.5H9C10.1935 31.5 11.3381 31.0259 12.182 30.182C13.0259 29.3381 13.5 28.1935 13.5 27V19.5C13.5 16.7152 14.6062 14.0445 16.5754 12.0754C18.5445 10.1062 21.2152 9 24 9C26.7848 9 29.4555 10.1062 31.4246 12.0754C33.3938 14.0445 34.5 16.7152 34.5 19.5V27C34.5 28.1935 34.9741 29.3381 35.818 30.182C36.6619 31.0259 37.8065 31.5 39 31.5V31.5Z" stroke="black" stroke-opacity="0.73" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',success:'<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="24" fill="#6ED69A" fill-opacity="0.62"/><path d="M36 16.5L19.5 33L12 25.5" stroke="#11B674" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',warn:'<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="24" fill="#F5CE69"/><path d="M24 16.5C24.8285 16.5 25.5 17.1716 25.5 18V24C25.5 24.8284 24.8285 25.5 24 25.5C23.1715 25.5 22.5 24.8284 22.5 24V18C22.5 17.1716 23.1715 16.5 24 16.5Z" fill="#DCA14E"/><path d="M25.5 28.5C25.5 27.6716 24.8285 27 24 27C23.1715 27 22.5 27.6716 22.5 28.5V30C22.5 30.8284 23.1715 31.5 24 31.5C24.8285 31.5 25.5 30.8284 25.5 30V28.5Z" fill="#DCA14E"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 24C7.5 14.8873 14.8873 7.5 24 7.5C33.1127 7.5 40.5 14.8873 40.5 24C40.5 33.1127 33.1127 40.5 24 40.5C14.8873 40.5 7.5 33.1127 7.5 24ZM24 10.5C16.5441 10.5 10.5 16.5442 10.5 24C10.5 31.4558 16.5441 37.5 24 37.5C31.4559 37.5 37.5 31.4558 37.5 24C37.5 16.5442 31.4559 10.5 24 10.5Z" fill="#DCA14E"/></svg>',error:'<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="24" fill="#ED8476"/><path d="M34.0607 16.0607C34.6465 15.4749 34.6465 14.5251 34.0607 13.9393C33.4749 13.3536 32.5251 13.3536 31.9394 13.9393L24 21.8787L16.0607 13.9393C15.4749 13.3536 14.5251 13.3536 13.9394 13.9393C13.3535 14.5251 13.3535 15.4749 13.9394 16.0607L21.8787 24L13.9394 31.9393C13.3535 32.5251 13.3535 33.4749 13.9394 34.0607C14.5251 34.6464 15.4749 34.6464 16.0607 34.0607L24 26.1213L31.9394 34.0607C32.5251 34.6464 33.4749 34.6464 34.0607 34.0607C34.6465 33.4749 34.6465 32.5251 34.0607 31.9393L26.1213 24L34.0607 16.0607Z" fill="#C54F4F"/></svg>',close:'<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.70711 1.7071C10.0976 1.31659 10.0976 0.683407 9.70711 0.292889C9.31659 -0.0976295 8.68341 -0.0976295 8.29289 0.292889L5 3.58578L1.70711 0.292889C1.31659 -0.0976295 0.68342 -0.0976295 0.292894 0.292889C-0.0976315 0.683407 -0.0976315 1.31659 0.292894 1.7071L3.58579 5L0.292894 8.29289C-0.0976315 8.68341 -0.0976315 9.31659 0.292894 9.7071C0.68342 10.0976 1.31659 10.0976 1.70711 9.7071L5 6.41421L8.29289 9.7071C8.68341 10.0976 9.31659 10.0976 9.70711 9.7071C10.0976 9.31659 10.0976 8.68341 9.70711 8.29289L6.41422 5L9.70711 1.7071Z" fill="black" fill-opacity="0.37"/></svg>',newNotification:'<svg width="41" height="41" viewBox="0 0 41 41" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#filter0_d)"><circle cx="20.5" cy="16.5" r="16.5" fill="#C08AE1"/></g><path d="M13 21L21 13L29 21" stroke="black" stroke-opacity="0.6" stroke-width="3"/><defs><filter id="filter0_d" x="0" y="0" width="41" height="41" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="4"/><feGaussianBlur stdDeviation="2"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter></defs></svg>'}}});