PageSourceSearch

https://newhomefeed.com/min/production.min.js

js newhomefeed.com collected 2026-10-08 16:25:42 UTC 588,989 bytes, 1 lines download raw bytes

vendor: 92,756 bytes, line 1
1(function(e,t){"use strict";if(typeof module==="object"&&typeof module.exports==="object"){module.exports=e.document?t(e,true):function(e){if(!e.document){throw new Error("jQuery requires a window with a document")}return t(e)}}else{t(e)}})(typeof window!=="undefined"?window:this,function(e,t){"use strict";var n=[];var r=Object.getPrototypeOf;var i=n.slice;var a=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)};var o=n.push;var s=n.indexOf;var l={};var u=l.toString;var c=l.hasOwnProperty;var f=c.toString;var p=f.call(Object);var d={};var h=function e(t){return typeof t==="function"&&typeof t.nodeType!=="number"&&typeof t.item!=="function"};var v=function e(t){return t!=null&&t===t.window};var g=e.document;var m={type:true,src:true,nonce:true,noModule:true};function $(e,t,n){n=n||g;var r,i,a=n.createElement("script");a.text=e;if(t){for(r in m){i=t[r]||t.getAttribute&&t.getAttribute(r);if(i){a.setAttribute(r,i)}}}n.head.appendChild(a).parentNode.removeChild(a)}function y(e){if(e==null){return e+""}return typeof e==="object"||typeof e==="function"?l[u.call(e)]||"object":typeof e}var b="3.7.1",w=/HTML$/i,x=function(e,t){return new x.fn.init(e,t)};x.fn=x.prototype={jquery:b,constructor:x,length:0,toArray:function(){return i.call(this)},get:function(e){if(e==null){return i.call(this)}return e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);t.prevObject=this;return t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:n.sort,splice:n.splice};x.extend=x.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,l=arguments.length,u=false;if(typeof o==="boolean"){u=o;o=arguments[s]||{};s++}if(typeof o!=="object"&&!h(o)){o={}}if(s===l){o=this;s--}for(;s<l;s++){if((e=arguments[s])!=null){for(t in e){r=e[t];if(t==="__proto__"||o===r){continue}if(u&&r&&(x.isPlainObject(r)||(i=Array.isArray(r)))){n=o[t];if(i&&!Array.isArray(n)){a=[]}else if(!i&&!x.isPlainObject(n)){a={}}else{a=n}i=false;o[t]=x.extend(u,a,r)}else if(r!==undefined){o[t]=r}}}}return o};x.extend({expando:"jQuery"+(b+Math.random()).replace(/\D/g,""),isReady:true,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;if(!e||u.call(e)!=="[object Object]"){return false}t=r(e);if(!t){return true}n=c.call(t,"constructor")&&t.constructor;return typeof n==="function"&&f.call(n)===p},isEmptyObject:function(e){var t;for(t in e){return false}return true},globalEval:function(e,t,n){$(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(k(e)){n=e.length;for(;r<n;r++){if(t.call(e[r],r,e[r])===false){break}}}else{for(r in e){if(t.call(e[r],r,e[r])===false){break}}}return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i){while(t=e[r++]){n+=x.text(t)}}if(i===1||i===11){return e.textContent}if(i===9){return e.documentElement.textContent}if(i===3||i===4){return e.nodeValue}return n},makeArray:function(e,t){var n=t||[];if(e!=null){if(k(Object(e))){x.merge(n,typeof e==="string"?[e]:e)}else{o.call(n,e)}}return n},inArray:function(e,t,n){return t==null?-1:s.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!w.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){var n=+t.length,r=0,i=e.length;for(;r<n;r++){e[i++]=t[r]}e.length=i;return e},grep:function(e,t,n){var r,i=[],a=0,o=e.length,s=!n;for(;a<o;a++){r=!t(e[a],a);if(r!==s){i.push(e[a])}}return i},map:function(e,t,n){var r,i,o=0,s=[];if(k(e)){r=e.length;for(;o<r;o++){i=t(e[o],o,n);if(i!=null){s.push(i)}}}else{for(o in e){i=t(e[o],o,n);if(i!=null){s.push(i)}}}return a(s)},guid:1,support:d});if(typeof Symbol==="function"){x.fn[Symbol.iterator]=n[Symbol.iterator]}x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function k(e){var t=!!e&&"length"in e&&e.length,n=y(e);if(h(e)||v(e)){return false}return n==="array"||t===0||typeof t==="number"&&t>0&&t-1 in e}function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=n.pop;var S=n.sort;var D=n.splice;var E="[\\x20\\t\\r\\n\\f]";var O=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g");x.contains=function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))};var A=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function M(e,t){if(t){if(e==="\0"){return"�"}return e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" "}return"\\"+e}x.escapeSelector=function(e){return(e+"").replace(A,M)};var P=g,N=o;(function(){var t,r,a,o,l,u=N,f,p,h,v,g,m=x.expando,$=0,y=0,b=te(),w=te(),k=te(),A=te(),M=function(e,t){if(e===t){l=true}return 0},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|"+"loop|multiple|open|readonly|required|scoped",V="(?:\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+E+"*("+V+")(?:"+E+"*([*^$|!~]?=)"+E+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+V+"))|)"+E+"*\\]",R=":("+V+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|"+".*"+")\\)|)",F=new RegExp(E+"+","g"),H=new RegExp("^"+E+"*,"+E+"*"),U=new RegExp("^"+E+"*([>+~]|"+E+")"+E+"*"),q=new RegExp(E+"|>"),L=new RegExp(R),_=new RegExp("^"+V+"$"),B={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\r\\n\\f])","g"),Z=function(e,t){var n="0x"+e.slice(1)-65536;if(t){return t}return n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)},K=function(){ue()},Q=de(function(e){return e.disabled===true&&C(e,"fieldset")},{dir:"parentNode",next:"legend"});function J(){try{return f.activeElement}catch(e){}}try{u.apply(n=i.call(P.childNodes),P.childNodes);n[P.childNodes.length].nodeType}catch(e){u={apply:function(e,t){N.apply(e,i.call(t))},call:function(e){N.apply(e,i.call(arguments,1))}}}function ee(e,t,n,r){var i,a,o,s,l,c,p,g=t&&t.ownerDocument,$=t?t.nodeType:9;n=n||[];if(typeof e!=="string"||!e||$!==1&&$!==9&&$!==11){return n}if(!r){ue(t);t=t||f;if(h){if($!==11&&(l=z.exec(e))){if(i=l[1]){if($===9){if(o=t.getElementById(i)){if(o.id===i){u.call(n,o);return n}}else{return n}}else{if(g&&(o=g.getElementById(i))&&ee.contains(t,o)&&o.id===i){u.call(n,o);return n}}}else if(l[2]){u.apply(n,t.getElementsByTagName(e));return n}else if((i=l[3])&&t.getElementsByClassName){u.apply(n,t.getElementsByClassName(i));return n}}if(!A[e+" "]&&(!v||!v.test(e))){p=e;g=t;if($===1&&(q.test(e)||U.test(e))){g=X.test(e)&&le(t.parentNode)||t;if(g!=t||!d.scope){if(s=t.getAttribute("id")){s=x.escapeSelector(s)}else{t.setAttribute("id",s=m)}}c=fe(e);a=c.length;while(a--){c[a]=(s?"#"+s:":scope")+" "+pe(c[a])}p=c.join(",")}try{u.apply(n,g.querySelectorAll(p));return n}catch(t){A(e,true)}finally{if(s===m){t.removeAttribute("id")}}}}}return we(e.replace(O,"$1"),t,n,r)}function te(){var e=[];function t(n,i){if(e.push(n+" ")>r.cacheLength){delete t[e.shift()]}return t[n+" "]=i}return t}function ne(e){e[m]=true;return e}function re(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return false}finally{if(t.parentNode){t.parentNode.removeChild(t)}t=null}}function ie(e){return function(t){return C(t,"input")&&t.type===e}}function ae(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function oe(e){return function(t){if("form"in t){if(t.parentNode&&t.disabled===false){if("label"in t){if("label"in t.parentNode){return t.parentNode.disabled===e}else{return t.disabled===e}}return t.isDisabled===e||t.isDisabled!==!e&&Q(t)===e}return t.disabled===e}else if("label"in t){return t.disabled===e}return false}}function se(e){return ne(function(t){t=+t;return ne(function(n,r){var i,a=e([],n.length,t),o=a.length;while(o--){if(n[i=a[o]]){n[i]=!(r[i]=n[i])}}})})}function le(e){return e&&typeof e.getElementsByTagName!=="undefined"&&e}function ue(e){var t,n=e?e.ownerDocument||e:P;if(n==f||n.nodeType!==9||!n.documentElement){return f}f=n;p=f.documentElement;h=!x.isXMLDoc(f);g=p.matches||p.webkitMatchesSelector||p.msMatchesSelector;if(p.msMatchesSelector&&P!=f&&(t=f.defaultView)&&t.top!==t){t.addEventListener("unload",K)}d.getById=re(function(e){p.appendChild(e).id=x.expando;return!f.getElementsByName||!f.getElementsByName(x.expando).length});d.disconnectedMatch=re(function(e){return g.call(e,"*")});d.scope=re(function(){return f.querySelectorAll(":scope")});d.cssHas=re(function(){try{f.querySelector(":has(*,:jqfake)");return false}catch(e){return true}});if(d.getById){r.filter.ID=function(e){var t=e.replace(G,Z);return function(e){return e.getAttribute("id")===t}};r.find.ID=function(e,t){if(typeof t.getElementById!=="undefined"&&h){var n=t.getElementById(e);return n?[n]:[]}}}else{r.filter.ID=function(e){var t=e.replace(G,Z);return function(e){var n=typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id");return n&&n.value===t}};r.find.ID=function(e,t){if(typeof t.getElementById!=="undefined"&&h){var n,r,i,a=t.getElementById(e);if(a){n=a.getAttributeNode("id");if(n&&n.value===e){return[a]}i=t.getElementsByName(e);r=0;while(a=i[r++]){n=a.getAttributeNode("id");if(n&&n.value===e){return[a]}}}return[]}}}r.find.TAG=function(e,t){if(typeof t.getElementsByTagName!=="undefined"){return t.getElementsByTagName(e)}else{return t.querySelectorAll(e)}};r.find.CLASS=function(e,t){if(typeof t.getElementsByClassName!=="undefined"&&h){return t.getElementsByClassName(e)}};v=[];re(function(e){var t;p.appendChild(e).innerHTML="<a id='"+m+"' href='' disabled='disabled'></a>"+"<select id='"+m+"-\r\\' disabled='disabled'>"+"<option selected=''></option></select>";if(!e.querySelectorAll("[selected]").length){v.push("\\["+E+"*(?:value|"+I+")")}if(!e.querySelectorAll("[id~="+m+"-]").length){v.push("~=")}if(!e.querySelectorAll("a#"+m+"+*").length){v.push(".#.+[+~]")}if(!e.querySelectorAll(":checked").length){v.push(":checked")}t=f.createElement("input");t.setAttribute("type","hidden");e.appendChild(t).setAttribute("name","D");p.appendChild(e).disabled=true;if(e.querySelectorAll(":disabled").length!==2){v.push(":enabled",":disabled")}t=f.createElement("input");t.setAttribute("name","");e.appendChild(t);if(!e.querySelectorAll("[name='']").length){v.push("\\["+E+"*name"+E+"*="+E+"*(?:''|\"\")")}});if(!d.cssHas){v.push(":has")}v=v.length&&new RegExp(v.join("|"));M=function(e,t){if(e===t){l=true;return 0}var n=!e.compareDocumentPosition-!t.compareDocumentPosition;if(n){return n}n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1;if(n&1||!d.sortDetached&&t.compareDocumentPosition(e)===n){if(e===f||e.ownerDocument==P&&ee.contains(P,e)){return-1}if(t===f||t.ownerDocument==P&&ee.contains(P,t)){return 1}return o?s.call(o,e)-s.call(o,t):0}return n&4?-1:1};return f}ee.matches=function(e,t){return ee(e,null,null,t)};ee.matchesSelector=function(e,t){ue(e);if(h&&!A[t+" "]&&(!v||!v.test(t))){try{var n=g.call(e,t);if(n||d.disconnectedMatch||e.document&&e.document.nodeType!==11){return n}}catch(e){A(t,true)}}return ee(t,f,null,[e]).length>0};ee.contains=function(e,t){if((e.ownerDocument||e)!=f){ue(e)}return x.contains(e,t)};ee.attr=function(e,t){if((e.ownerDocument||e)!=f){ue(e)}var n=r.attrHandle[t.toLowerCase()],i=n&&c.call(r.attrHandle,t.toLowerCase())?n(e,t,!h):undefined;if(i!==undefined){return i}return e.getAttribute(t)};ee.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};x.uniqueSort=function(e){var t,n=[],r=0,a=0;l=!d.sortStable;o=!d.sortStable&&i.call(e,0);S.call(e,M);if(l){while(t=e[a++]){if(t===e[a]){r=n.push(a)}}while(r--){D.call(e,n[r],1)}}o=null;return e};x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(i.apply(this)))};r=x.expr={cacheLength:50,createPseudo:ne,match:B,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(G,Z);e[3]=(e[3]||e[4]||e[5]||"").replace(G,Z);if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1].slice(0,3)==="nth"){if(!e[3]){ee.error(e[0])}e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd"));e[5]=+(e[7]+e[8]||e[3]==="odd")}else if(e[3]){ee.error(e[0])}return e},PSEUDO:function(e){var t,n=!e[6]&&e[2];if(B.CHILD.test(e[0])){return null}if(e[3]){e[2]=e[4]||e[5]||""}else if(n&&L.test(n)&&(t=fe(n,true))&&(t=n.indexOf(")",n.length-t)-n.length)){e[0]=e[0].slice(0,t);e[2]=n.slice(0,t)}return e.slice(0,3)}},filter:{TAG:function(e){var t=e.replace(G,Z).toLowerCase();return e==="*"?function(){return true}:function(e){return C(e,t)}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&b(e,function(e){return t.test(typeof e.className==="string"&&e.className||typeof e.getAttribute!=="undefined"&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ee.attr(r,e);if(i==null){return t==="!="}if(!t){return true}i+="";if(t==="="){return i===n}if(t==="!="){return i!==n}if(t==="^="){return n&&i.indexOf(n)===0}if(t==="*="){return n&&i.indexOf(n)>-1}if(t==="$="){return n&&i.slice(-n.length)===n}if(t==="~="){return(" "+i.replace(F," ")+" ").indexOf(n)>-1}if(t==="|="){return i===n||i.slice(0,n.length+1)===n+"-"}return false}},CHILD:function(e,t,n,r,i){var a=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",s=t==="of-type";return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,p,d,h=a!==o?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=false;if(v){if(a){while(h){f=t;while(f=f[h]){if(s?C(f,g):f.nodeType===1){return false}}d=h=e==="only"&&!d&&"nextSibling"}return true}d=[o?v.firstChild:v.lastChild];if(o&&y){c=v[m]||(v[m]={});u=c[e]||[];p=u[0]===$&&u[1];b=p&&u[2];f=p&&v.childNodes[p];while(f=++p&&f&&f[h]||(b=p=0)||d.pop()){if(f.nodeType===1&&++b&&f===t){c[e]=[$,p,b];break}}}else{if(y){c=t[m]||(t[m]={});u=c[e]||[];p=u[0]===$&&u[1];b=p}if(b===false){while(f=++p&&f&&f[h]||(b=p=0)||d.pop()){if((s?C(f,g):f.nodeType===1)&&++b){if(y){c=f[m]||(f[m]={});c[e]=[$,b]}if(f===t){break}}}}}b-=i;return b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ee.error("unsupported pseudo: "+e);if(i[m]){return i(t)}if(i.length>1){n=[e,e,"",t];return r.setFilters.hasOwnProperty(e.toLowerCase())?ne(function(e,n){var r,a=i(e,t),o=a.length;while(o--){r=s.call(e,a[o]);e[r]=!(n[r]=a[o])}}):function(e){return i(e,0,n)}}return i}},pseudos:{not:ne(function(e){var t=[],n=[],r=be(e.replace(O,"$1"));return r[m]?ne(function(e,t,n,i){var a,o=r(e,null,i,[]),s=e.length;while(s--){if(a=o[s]){e[s]=!(t[s]=a)}}}):function(e,i,a){t[0]=e;r(t,null,a,n);t[0]=null;return!n.pop()}}),has:ne(function(e){return function(t){return ee(e,t).length>0}}),contains:ne(function(e){e=e.replace(G,Z);return function(t){return(t.textContent||x.text(t)).indexOf(e)>-1}}),lang:ne(function(e){if(!_.test(e||"")){ee.error("unsupported lang: "+e)}e=e.replace(G,Z).toLowerCase();return function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang")){n=n.toLowerCase();return n===e||n.indexOf(e+"-")===0}}while((t=t.parentNode)&&t.nodeType===1);return false}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===J()&&f.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(false),disabled:oe(true),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling){if(e.nodeType<6){return false}}return true},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){return C(e,"input")&&e.type==="button"||C(e,"button")},text:function(e){var t;return C(e,"input")&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()==="text")},first:se(function(){return[0]}),last:se(function(e,t){return[t-1]}),eq:se(function(e,t,n){return[n<0?n+t:n]}),even:se(function(e,t){var n=0;for(;n<t;n+=2){e.push(n)}return e}),odd:se(function(e,t){var n=1;for(;n<t;n+=2){e.push(n)}return e}),lt:se(function(e,t,n){var r;if(n<0){r=n+t}else if(n>t){r=t}else{r=n}for(;--r>=0;){e.push(r)}return e}),gt:se(function(e,t,n){var r=n<0?n+t:n;for(;++r<t;){e.push(r)}return e})}};r.pseudos.nth=r.pseudos.eq;for(t in{radio:true,checkbox:true,file:true,password:true,image:true}){r.pseudos[t]=ie(t)}for(t in{submit:true,reset:true}){r.pseudos[t]=ae(t)}function ce(){}ce.prototype=r.filters=r.pseudos;r.setFilters=new ce;function fe(e,t){var n,i,a,o,s,l,u,c=w[e+" "];if(c){return t?0:c.slice(0)}s=e;l=[];u=r.preFilter;while(s){if(!n||(i=H.exec(s))){if(i){s=s.slice(i[0].length)||s}l.push(a=[])}n=false;if(i=U.exec(s)){n=i.shift();a.push({value:n,type:i[0].replace(O," ")});s=s.slice(n.length)}for(o in r.filter){if((i=B[o].exec(s))&&(!u[o]||(i=u[o](i)))){n=i.shift();a.push({value:n,type:o,matches:i});s=s.slice(n.length)}}if(!n){break}}if(t){return s.length}return s?ee.error(e):w(e,l).slice(0)}function pe(e){var t=0,n=e.length,r="";for(;t<n;t++){r+=e[t].value}return r}function de(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&a==="parentNode",s=y++;return t.first?function(t,n,i){while(t=t[r]){if(t.nodeType===1||o){return e(t,n,i)}}return false}:function(t,n,l){var u,c,f=[$,s];if(l){while(t=t[r]){if(t.nodeType===1||o){if(e(t,n,l)){return true}}}}else{while(t=t[r]){if(t.nodeType===1||o){c=t[m]||(t[m]={});if(i&&C(t,i)){t=t[r]||t}else if((u=c[a])&&u[0]===$&&u[1]===s){return f[2]=u[2]}else{c[a]=f;if(f[2]=e(t,n,l)){return true}}}}}return false}}function he(e){return e.length>1?function(t,n,r){var i=e.length;while(i--){if(!e[i](t,n,r)){return false}}return true}:e[0]}function ve(e,t,n){var r=0,i=t.length;for(;r<i;r++){ee(e,t[r],n)}return n}function ge(e,t,n,r,i){var a,o=[],s=0,l=e.length,u=t!=null;for(;s<l;s++){if(a=e[s]){if(!n||n(a,r,i)){o.push(a);if(u){t.push(s)}}}}return o}function me(e,t,n,r,i,a){if(r&&!r[m]){r=me(r)}if(i&&!i[m]){i=me(i,a)}return ne(function(a,o,l,c){var f,p,d,h,v=[],g=[],m=o.length,$=a||ve(t||"*",l.nodeType?[l]:l,[]),y=e&&(a||!t)?ge($,v,e,l,c):$;if(n){h=i||(a?e:m||r)?[]:o;n(y,h,l,c)}else{h=y}if(r){f=ge(h,g);r(f,[],l,c);p=f.length;while(p--){if(d=f[p]){h[g[p]]=!(y[g[p]]=d)}}}if(a){if(i||e){if(i){f=[];p=h.length;while(p--){if(d=h[p]){f.push(y[p]=d)}}i(null,h=[],f,c)}p=h.length;while(p--){if((d=h[p])&&(f=i?s.call(a,d):v[p])>-1){a[f]=!(o[f]=d)}}}}else{h=ge(h===o?h.splice(m,h.length):h);if(i){i(null,o,h,c)}else{u.apply(o,h)}}})}function $e(e){var t,n,i,o=e.length,l=r.relative[e[0].type],u=l||r.relative[" "],c=l?1:0,f=de(function(e){return e===t},u,true),p=de(function(e){return s.call(t,e)>-1},u,true),d=[function(e,n,r){var i=!l&&(r||n!=a)||((t=n).nodeType?f(e,n,r):p(e,n,r));t=null;return i}];for(;c<o;c++){if(n=r.relative[e[c].type]){d=[de(he(d),n)]}else{n=r.filter[e[c].type].apply(null,e[c].matches);if(n[m]){i=++c;for(;i<o;i++){if(r.relative[e[i].type]){break}}return me(c>1&&he(d),c>1&&pe(e.slice(0,c-1).concat({value:e[c-2].type===" "?"*":""})).replace(O,"$1"),n,c<i&&$e(e.slice(c,i)),i<o&&$e(e=e.slice(i)),i<o&&pe(e))}d.push(n)}}return he(d)}function ye(e,t){var n=t.length>0,i=e.length>0,o=function(o,s,l,c,p){var d,v,g,m=0,y="0",b=o&&[],w=[],k=a,C=o||i&&r.find.TAG("*",p),S=$+=k==null?1:Math.random()||.1,D=C.length;if(p){a=s==f||s||p}for(;y!==D&&(d=C[y])!=null;y++){if(i&&d){v=0;if(!s&&d.ownerDocument!=f){ue(d);l=!h}while(g=e[v++]){if(g(d,s||f,l)){u.call(c,d);break}}if(p){$=S}}if(n){if(d=!g&&d){m--}if(o){b.push(d)}}}m+=y;if(n&&y!==m){v=0;while(g=t[v++]){g(b,w,s,l)}if(o){if(m>0){while(y--){if(!(b[y]||w[y])){w[y]=T.call(c)}}}w=ge(w)}u.apply(c,w);if(p&&!o&&w.length>0&&m+t.length>1){x.uniqueSort(c)}}if(p){$=S;a=k}return b};return n?ne(o):o}function be(e,t){var n,r=[],i=[],a=k[e+" "];if(!a){if(!t){t=fe(e)}n=t.length;while(n--){a=$e(t[n]);if(a[m]){r.push(a)}else{i.push(a)}}a=k(e,ye(i,r));a.selector=e}return a}function we(e,t,n,i){var a,o,s,l,c,f=typeof e==="function"&&e,p=!i&&fe(e=f.selector||e);n=n||[];if(p.length===1){o=p[0]=p[0].slice(0);if(o.length>2&&(s=o[0]).type==="ID"&&t.nodeType===9&&h&&r.relative[o[1].type]){t=(r.find.ID(s.matches[0].replace(G,Z),t)||[])[0];if(!t){return n}else if(f){t=t.parentNode}e=e.slice(o.shift().value.length)}a=B.needsContext.test(e)?0:o.length;while(a--){s=o[a];if(r.relative[l=s.type]){break}if(c=r.find[l]){if(i=c(s.matches[0].replace(G,Z),X.test(o[0].type)&&le(t.parentNode)||t)){o.splice(a,1);e=i.length&&pe(o);if(!e){u.apply(n,i);return n}break}}}}(f||be(e,p))(i,t,!h,n,!t||X.test(e)&&le(t.parentNode)||t);return n}d.sortStable=m.split("").sort(M).join("")===m;ue();d.sortDetached=re(function(e){return e.compareDocumentPosition(f.createElement("fieldset"))&1});x.find=ee;x.expr[":"]=x.expr.pseudos;x.unique=x.uniqueSort;ee.compile=be;ee.select=we;ee.setDocument=ue;ee.tokenize=fe;ee.escape=x.escapeSelector;ee.getText=x.text;ee.isXML=x.isXMLDoc;ee.selectors=x.expr;ee.support=x.support;ee.uniqueSort=x.uniqueSort})();var I=function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&e.nodeType!==9){if(e.nodeType===1){if(i&&x(e).is(n)){break}r.push(e)}}return r};var V=function(e,t){var n=[];for(;e;e=e.nextSibling){if(e.nodeType===1&&e!==t){n.push(e)}}return n};var j=x.expr.match.needsContext;var R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){if(h(t)){return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n})}if(t.nodeType){return x.grep(e,function(e){return e===t!==n})}if(typeof t!=="string"){return x.grep(e,function(e){return s.call(t,e)>-1!==n})}return x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];if(n){e=":not("+e+")"}if(t.length===1&&r.nodeType===1){return x.find.matchesSelector(r,e)?[r]:[]}return x.find.matches(e,x.grep(t,function(e){return e.nodeType===1}))};x.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(typeof e!=="string"){return this.pushStack(x(e).filter(function(){for(t=0;t<r;t++){if(x.contains(i[t],this)){return true}}}))}n=this.pushStack([]);for(t=0;t<r;t++){x.find(e,i[t],n)}return r>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],false))},not:function(e){return this.pushStack(F(this,e||[],true))},is:function(e){return!!F(this,typeof e==="string"&&j.test(e)?x(e):e||[],false).length}});var H,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,q=x.fn.init=function(e,t,n){var r,i;if(!e){return this}n=n||H;if(typeof e==="string"){if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3){r=[null,e,null]}else{r=U.exec(e)}if(r&&(r[1]||!t)){if(r[1]){t=t instanceof x?t[0]:t;x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,true));if(R.test(r[1])&&x.isPlainObject(t)){for(r in t){if(h(this[r])){this[r](t[r])}else{this.attr(r,t[r])}}}return this}else{i=g.getElementById(r[2]);if(i){this[0]=i;this.length=1}return this}}else if(!t||t.jquery){return(t||n).find(e)}else{return this.constructor(t).find(e)}}else if(e.nodeType){this[0]=e;this.length=1;return this}else if(h(e)){return n.ready!==undefined?n.ready(e):e(x)}return x.makeArray(e,this)};q.prototype=x.fn;H=x(g);var L=/^(?:parents|prev(?:Until|All))/,_={children:true,contents:true,next:true,prev:true};x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;e<n;e++){if(x.contains(this,t[e])){return true}}})},closest:function(e,t){var n,r=0,i=this.length,a=[],o=typeof e!=="string"&&x(e);if(!j.test(e)){for(;r<i;r++){for(n=this[r];n&&n!==t;n=n.parentNode){if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&x.find.matchesSelector(n,e))){a.push(n);break}}}}return this.pushStack(a.length>1?x.uniqueSort(a):a)},index:function(e){if(!e){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1}if(typeof e==="string"){return s.call(x(e),this[0])}return s.call(this,e.jquery?e[0]:e)},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function B(e,t){while((e=e[t])&&e.nodeType!==1){}return e}x.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return B(e,"nextSibling")},prev:function(e){return B(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return V((e.parentNode||{}).firstChild,e)},children:function(e){return V(e.firstChild)},contents:function(e){if(e.contentDocument!=null&&r(e.contentDocument)){return e.contentDocument}if(C(e,"template")){e=e.content||e}return x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);if(e.slice(-5)!=="Until"){r=n}if(r&&typeof r==="string"){i=x.filter(r,i)}if(this.length>1){if(!_[e]){x.uniqueSort(i)}if(L.test(e)){i.reverse()}}return this.pushStack(i)}});var Y=/[^\x20\t\r\n\f]+/g;function W(e){var t={};x.each(e.match(Y)||[],function(e,n){t[n]=true});return t}x.Callbacks=function(e){e=typeof e==="string"?W(e):x.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){i=i||e.once;r=t=true;for(;o.length;s=-1){n=o.shift();while(++s<a.length){if(a[s].apply(n[0],n[1])===false&&e.stopOnFalse){s=a.length;n=false}}}if(!e.memory){n=false}t=false;if(i){if(n){a=[]}else{a=""}}},u={add:function(){if(a){if(n&&!t){s=a.length-1;o.push(n)}(function t(n){x.each(n,function(n,r){if(h(r)){if(!e.unique||!u.has(r)){a.push(r)}}else if(r&&r.length&&y(r)!=="string"){t(r)}})})(arguments);if(n&&!t){l()}}return this},remove:function(){x.each(arguments,function(e,t){var n;while((n=x.inArray(t,a,n))>-1){a.splice(n,1);if(n<=s){s--}}});return this},has:function(e){return e?x.inArray(e,a)>-1:a.length>0},empty:function(){if(a){a=[]}return this},disable:function(){i=o=[];a=n="";return this},disabled:function(){return!a},lock:function(){i=o=[];if(!n&&!t){a=n=""}return this},locked:function(){return!!i},fireWith:function(e,n){if(!i){n=n||[];n=[e,n.slice?n.slice():n];o.push(n);if(!t){l()}}return this},fire:function(){u.fireWith(this,arguments);return this},fired:function(){return!!r}};return u};function z(e){return e}function X(e){throw e}function G(e,t,n,r){var i;try{if(e&&h(i=e.promise)){i.call(e).done(t).fail(n)}else if(e&&h(i=e.then)){i.call(e,t,n)}else{t.apply(undefined,[e].slice(r))}}catch(e){n.apply(undefined,[e])}}x.extend({Deferred:function(t){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){a.done(arguments).fail(arguments);return this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(t){x.each(n,function(n,r){var i=h(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);if(e&&h(e.promise)){e.promise().progress(t.notify).done(t.resolve).fail(t.reject)}else{t[r[0]+"With"](this,i?[e]:arguments)}})});e=null}).promise()},then:function(t,r,i){var a=0;function o(t,n,r,i){return function(){var s=this,l=arguments,u=function(){var e,u;if(t<a){return}e=r.apply(s,l);if(e===n.promise()){throw new TypeError("Thenable self-resolution")}u=e&&(typeof e==="object"||typeof e==="function")&&e.then;if(h(u)){if(i){u.call(e,o(a,n,z,i),o(a,n,X,i))}else{a++;u.call(e,o(a,n,z,i),o(a,n,X,i),o(a,n,z,n.notifyWith))}}else{if(r!==z){s=undefined;l=[e]}(i||n.resolveWith)(s,l)}},c=i?u:function(){try{u()}catch(e){if(x.Deferred.exceptionHook){x.Deferred.exceptionHook(e,c.error)}if(t+1>=a){if(r!==X){s=undefined;l=[e]}n.rejectWith(s,l)}}};if(t){c()}else{if(x.Deferred.getErrorHook){c.error=x.Deferred.getErrorHook()}else if(x.Deferred.getStackHook){c.error=x.Deferred.getStackHook()}e.setTimeout(c)}}}return x.Deferred(function(e){n[0][3].add(o(0,e,h(i)?i:z,e.notifyWith));n[1][3].add(o(0,e,h(t)?t:z));n[2][3].add(o(0,e,h(r)?r:X))}).promise()},promise:function(e){return e!=null?x.extend(e,i):i}},a={};x.each(n,function(e,t){var o=t[2],s=t[5];i[t[1]]=o.add;if(s){o.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock)}o.add(t[3].fire);a[t[0]]=function(){a[t[0]+"With"](this===a?undefined:this,arguments);return this};a[t[0]+"With"]=o.fireWith});i.promise(a);if(t){t.call(a,a)}return a},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=x.Deferred(),s=function(e){return function(n){r[e]=this;a[e]=arguments.length>1?i.call(arguments):n;if(!--t){o.resolveWith(r,a)}}};if(t<=1){G(e,o.done(s(n)).resolve,o.reject,!t);if(o.state()==="pending"||h(a[n]&&a[n].then)){return o.then()}}while(n--){G(a[n],s(n),o.reject)}return o.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,n){if(e.console&&e.console.warn&&t&&Z.test(t.name)){e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)}};x.readyException=function(t){e.setTimeout(function(){throw t})};var K=x.Deferred();x.fn.ready=function(e){K.then(e).catch(function(e){x.readyException(e)});return this};x.extend({isReady:false,readyWait:1,ready:function(e){if(e===true?--x.readyWait:x.isReady){return}x.isReady=true;if(e!==true&&--x.readyWait>0){return}K.resolveWith(g,[x])}});x.ready.then=K.then;function Q(){g.removeEventListener("DOMContentLoaded",Q);e.removeEventListener("load",Q);x.ready()}if(g.readyState==="complete"||g.readyState!=="loading"&&!g.documentElement.doScroll){e.setTimeout(x.ready)}else{g.addEventListener("DOMContentLoaded",Q);e.addEventListener("load",Q)}var J=function(e,t,n,r,i,a,o){var s=0,l=e.length,u=n==null;if(y(n)==="object"){i=true;for(s in n){J(e,t,s,n[s],true,a,o)}}else if(r!==undefined){i=true;if(!h(r)){o=true}if(u){if(o){t.call(e,r);t=null}else{u=t;t=function(e,t,n){return u.call(x(e),n)}}}if(t){for(;s<l;s++){t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)))}}}if(i){return e}if(u){return t.call(e)}return l?t(e[0],n):a};var ee=/^-ms-/,te=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function re(e){return e.replace(ee,"ms-").replace(te,ne)}var ie=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function ae(){this.expando=x.expando+ae.uid++}ae.uid=1;ae.prototype={cache:function(e){var t=e[this.expando];if(!t){t={};if(ie(e)){if(e.nodeType){e[this.expando]=t}else{Object.defineProperty(e,this.expando,{value:t,configurable:true})}}}return t},set:function(e,t,n){var r,i=this.cache(e);if(typeof t==="string"){i[re(t)]=n}else{for(r in t){i[re(r)]=t[r]}}return i},get:function(e,t){return t===undefined?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){if(t===undefined||t&&typeof t==="string"&&n===undefined){return this.get(e,t)}this.set(e,t,n);return n!==undefined?n:t},remove:function(e,t){var n,r=e[this.expando];if(r===undefined){return}if(t!==undefined){if(Array.isArray(t)){t=t.map(re)}else{t=re(t);t=t in r?[t]:t.match(Y)||[]}n=t.length;while(n--){delete r[t[n]]}}if(t===undefined||x.isEmptyObject(r)){if(e.nodeType){e[this.expando]=undefined}else{delete e[this.expando]}}},hasData:function(e){var t=e[this.expando];return t!==undefined&&!x.isEmptyObject(t)}};var oe=new ae;var se=new ae;var le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function ce(e){if(e==="true"){return true}if(e==="false"){return false}if(e==="null"){return null}if(e===+e+""){return+e}if(le.test(e)){return JSON.parse(e)}return e}function fe(e,t,n){var r;if(n===undefined&&e.nodeType===1){r="data-"+t.replace(ue,"-$&").toLowerCase();n=e.getAttribute(r);if(typeof n==="string"){try{n=ce(n)}catch(e){}se.set(e,t,n)}else{n=undefined}}return n}x.extend({hasData:function(e){return se.hasData(e)||oe.hasData(e)},data:function(e,t,n){return se.access(e,t,n)},removeData:function(e,t){se.remove(e,t)},_data:function(e,t,n){return oe.access(e,t,n)},_removeData:function(e,t){oe.remove(e,t)}});x.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(e===undefined){if(this.length){i=se.get(a);if(a.nodeType===1&&!oe.get(a,"hasDataAttrs")){n=o.length;while(n--){if(o[n]){r=o[n].name;if(r.indexOf("data-")===0){r=re(r.slice(5));fe(a,r,i[r])}}}oe.set(a,"hasDataAttrs",true)}}return i}if(typeof e==="object"){return this.each(function(){se.set(this,e)})}return J(this,function(t){var n;if(a&&t===undefined){n=se.get(a,e);if(n!==undefined){return n}n=fe(a,e);if(n!==undefined){return n}return}this.each(function(){se.set(this,e,t)})},null,t,arguments.length>1,null,true)},removeData:function(e){return this.each(function(){se.remove(this,e)})}});x.extend({queue:function(e,t,n){var r;if(e){t=(t||"fx")+"queue";r=oe.get(e,t);if(n){if(!r||Array.isArray(n)){r=oe.access(e,t,x.makeArray(n))}else{r.push(n)}}return r||[]}},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),a=x._queueHooks(e,t),o=function(){x.dequeue(e,t)};if(i==="inprogress"){i=n.shift();r--}if(i){if(t==="fx"){n.unshift("inprogress")}delete a.stop;i.call(e,o,a)}if(!r&&a){a.empty.fire()}},_queueHooks:function(e,t){var n=t+"queueHooks";return oe.get(e,n)||oe.access(e,n,{empty:x.Callbacks("once memory").add(function(){oe.remove(e,[t+"queue",n])})})}});x.fn.extend({queue:function(e,t){var n=2;if(typeof e!=="string"){t=e;e="fx";n--}if(arguments.length<n){return x.queue(this[0],e)}return t===undefined?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e);if(e==="fx"&&n[0]!=="inprogress"){x.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),a=this,o=this.length,s=function(){if(!--r){i.resolveWith(a,[a])}};if(typeof e!=="string"){t=e;e=undefined}e=e||"fx";while(o--){n=oe.get(a[o],e+"queueHooks");if(n&&n.empty){r++;n.empty.add(s)}}s();return i.promise(t)}});var pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var de=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i");var he=["Top","Right","Bottom","Left"];var ve=g.documentElement;var ge=function(e){return x.contains(e.ownerDocument,e)},me={composed:true};if(ve.getRootNode){ge=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(me)===e.ownerDocument}}var $e=function(e,t){e=t||e;return e.style.display==="none"||e.style.display===""&&ge(e)&&x.css(e,"display")==="none"};function ye(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},l=s(),u=n&&n[3]||(x.cssNumber[t]?"":"px"),c=e.nodeType&&(x.cssNumber[t]||u!=="px"&&+l)&&de.exec(x.css(e,t));if(c&&c[3]!==u){l=l/2;u=u||c[3];c=+l||1;while(o--){x.style(e,t,c+u);if((1-a)*(1-(a=s()/l||.5))<=0){o=0}c=c/a}c=c*2;x.style(e,t,c+u);n=n||[]}if(n){c=+c||+l||0;i=n[1]?c+(n[1]+1)*n[2]:+n[2];if(r){r.unit=u;r.start=c;r.end=i}}return i}var be={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,i=be[r];if(i){return i}t=n.body.appendChild(n.createElement(r));i=x.css(t,"display");t.parentNode.removeChild(t);if(i==="none"){i="block"}be[r]=i;return i}function xe(e,t){var n,r,i=[],a=0,o=e.length;for(;a<o;a++){r=e[a];if(!r.style){continue}n=r.style.display;if(t){if(n==="none"){i[a]=oe.get(r,"display")||null;if(!i[a]){r.style.display=""}}if(r.style.display===""&&$e(r)){i[a]=we(r)}}else{if(n!=="none"){i[a]="none";oe.set(r,"display",n)}}}for(a=0;a<o;a++){if(i[a]!=null){e[a].style.display=i[a]}}return e}x.fn.extend({show:function(){return xe(this,true)},hide:function(){return xe(this)},toggle:function(e){if(typeof e==="boolean"){return e?this.show():this.hide()}return this.each(function(){if($e(this)){x(this).show()}else{x(this).hide()}})}});var ke=/^(?:checkbox|radio)$/i;var Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var Te=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=g.createDocumentFragment(),t=e.appendChild(g.createElement("div")),n=g.createElement("input");n.setAttribute("type","radio");n.setAttribute("checked","checked");n.setAttribute("name","t");t.appendChild(n);d.checkClone=t.cloneNode(true).cloneNode(true).lastChild.checked;t.innerHTML="<textarea>x</textarea>";d.noCloneChecked=!!t.cloneNode(true).lastChild.defaultValue;t.innerHTML="<option></option>";d.option=!!t.lastChild})();var Se={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,"",""]};Se.tbody=Se.tfoot=Se.colgroup=Se.caption=Se.thead;Se.th=Se.td;if(!d.option){Se.optgroup=Se.option=[1,"<select multiple='multiple'>","</select>"]}function De(e,t){var n;if(typeof e.getElementsByTagName!=="undefined"){n=e.getElementsByTagName(t||"*")}else if(typeof e.querySelectorAll!=="undefined"){n=e.querySelectorAll(t||"*")}else{n=[]}if(t===undefined||t&&C(e,t)){return x.merge([e],n)}return n}function Ee(e,t){var n=0,r=e.length;for(;n<r;n++){oe.set(e[n],"globalEval",!t||oe.get(t[n],"globalEval"))}}var Oe=/<|&#?\w+;/;function Ae(e,t,n,r,i){var a,o,s,l,u,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;for(;d<h;d++){a=e[d];if(a||a===0){if(y(a)==="object"){x.merge(p,a.nodeType?[a]:a)}else if(!Oe.test(a)){p.push(t.createTextNode(a))}else{o=o||f.appendChild(t.createElement("div"));s=(Ce.exec(a)||["",""])[1].toLowerCase();l=Se[s]||Se._default;o.innerHTML=l[1]+x.htmlPrefilter(a)+l[2];c=l[0];while(c--){o=o.lastChild}x.merge(p,o.childNodes);o=f.firstChild;o.textContent=""}}}f.textContent="";d=0;while(a=p[d++]){if(r&&x.inArray(a,r)>-1){if(i){i.push(a)}continue}u=ge(a);o=De(f.appendChild(a),"script");if(u){Ee(o)}if(n){c=0;while(a=o[c++]){if(Te.test(a.type||"")){n.push(a)}}}}return f}var Me=/^([^.]*)(?:\.(.+)|)/;function Pe(){return true}function Ne(){return false}function Ie(e,t,n,r,i,a){var o,s;if(typeof t==="object"){if(typeof n!=="string"){r=r||n;n=undefined}for(s in t){Ie(e,s,n,r,t[s],a)}return e}if(r==null&&i==null){i=n;r=n=undefined}else if(i==null){if(typeof n==="string"){i=r;r=undefined}else{i=r;r=n;n=undefined}}if(i===false){i=Ne}else if(!i){return e}if(a===1){o=i;i=function(e){x().off(e);return o.apply(this,arguments)};i.guid=o.guid||(o.guid=x.guid++)}return e.each(function(){x.event.add(this,t,i,r,n)})}x.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,u,c,f,p,d,h,v,g=oe.get(e);if(!ie(e)){return}if(n.handler){a=n;n=a.handler;i=a.selector}if(i){x.find.matchesSelector(ve,i)}if(!n.guid){n.guid=x.guid++}if(!(l=g.events)){l=g.events=Object.create(null)}if(!(o=g.handle)){o=g.handle=function(t){return typeof x!=="undefined"&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):undefined}}t=(t||"").match(Y)||[""];u=t.length;while(u--){s=Me.exec(t[u])||[];d=v=s[1];h=(s[2]||"").split(".").sort();if(!d){continue}f=x.event.special[d]||{};d=(i?f.delegateType:f.bindType)||d;f=x.event.special[d]||{};c=x.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:h.join(".")},a);if(!(p=l[d])){p=l[d]=[];p.delegateCount=0;if(!f.setup||f.setup.call(e,r,h,o)===false){if(e.addEventListener){e.addEventListener(d,o)}}}if(f.add){f.add.call(e,c);if(!c.handler.guid){c.handler.guid=n.guid}}if(i){p.splice(p.delegateCount++,0,c)}else{p.push(c)}x.event.global[d]=true}},remove:function(e,t,n,r,i){var a,o,s,l,u,c,f,p,d,h,v,g=oe.hasData(e)&&oe.get(e);if(!g||!(l=g.events)){return}t=(t||"").match(Y)||[""];u=t.length;while(u--){s=Me.exec(t[u])||[];d=v=s[1];h=(s[2]||"").split(".").sort();if(!d){for(d in l){x.event.remove(e,d+t[u],n,r,true)}continue}f=x.event.special[d]||{};d=(r?f.delegateType:f.bindType)||d;p=l[d]||[];s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)");o=a=p.length;while(a--){c=p[a];if((i||v===c.origType)&&(!n||n.guid===c.guid)&&(!s||s.test(c.namespace))&&(!r||r===c.selector||r==="**"&&c.selector)){p.splice(a,1);if(c.selector){p.delegateCount--}if(f.remove){f.remove.call(e,c)}}}if(o&&!p.length){if(!f.teardown||f.teardown.call(e,h,g.handle)===false){x.removeEvent(e,d,g.handle)}delete l[d]}}if(x.isEmptyObject(l)){oe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),l=x.event.fix(e),u=(oe.get(this,"events")||Object.create(null))[l.type]||[],c=x.event.special[l.type]||{};s[0]=l;for(t=1;t<arguments.length;t++){s[t]=arguments[t]}l.delegateTarget=this;if(c.preDispatch&&c.preDispatch.call(this,l)===false){return}o=x.event.handlers.call(this,l,u);t=0;while((i=o[t++])&&!l.isPropagationStopped()){l.currentTarget=i.elem;n=0;while((a=i.handlers[n++])&&!l.isImmediatePropagationStopped()){if(!l.rnamespace||a.namespace===false||l.rnamespace.test(a.namespace)){l.handleObj=a;l.data=a.data;r=((x.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s);if(r!==undefined){if((l.result=r)===false){l.preventDefault();l.stopPropagation()}}}}}if(c.postDispatch){c.postDispatch.call(this,l)}return l.result},handlers:function(e,t){var n,r,i,a,o,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!(e.type==="click"&&e.button>=1)){for(;u!==this;u=u.parentNode||this){if(u.nodeType===1&&!(e.type==="click"&&u.disabled===true)){a=[];o={};for(n=0;n<l;n++){r=t[n];i=r.selector+" ";if(o[i]===undefined){o[i]=r.needsContext?x(i,this).index(u)>-1:x.find(i,this,null,[u]).length}if(o[i]){a.push(r)}}if(a.length){s.push({elem:u,handlers:a})}}}}u=this;if(l<t.length){s.push({elem:u,handlers:t.slice(l)})}return s},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:true,configurable:true,get:h(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:true,configurable:true,writable:true,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:true},click:{setup:function(e){var t=this||e;if(ke.test(t.type)&&t.click&&C(t,"input")){Ve(t,"click",true)}return false},trigger:function(e){var t=this||e;if(ke.test(t.type)&&t.click&&C(t,"input")){Ve(t,"click")}return true},_default:function(e){var t=e.target;return ke.test(t.type)&&t.click&&C(t,"input")&&oe.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){if(e.result!==undefined&&e.originalEvent){e.originalEvent.returnValue=e.result}}}}};function Ve(e,t,n){if(!n){if(oe.get(e,t)===undefined){x.event.add(e,t,Pe)}return}oe.set(e,t,false);x.event.add(e,t,{namespace:false,handler:function(e){var n,r=oe.get(this,t);if(e.isTrigger&1&&this[t]){if(!r){r=i.call(arguments);oe.set(this,t,r);this[t]();n=oe.get(this,t);oe.set(this,t,false);if(r!==n){e.stopImmediatePropagation();e.preventDefault();return n}}else if((x.event.special[t]||{}).delegateType){e.stopPropagation()}}else if(r){oe.set(this,t,x.event.trigger(r[0],r.slice(1),this));e.stopPropagation();e.isImmediatePropagationStopped=Pe}}})}x.removeEvent=function(e,t,n){if(e.removeEventListener){e.removeEventListener(t,n)}};x.Event=function(e,t){if(!(this instanceof x.Event)){return new x.Event(e,t)}if(e&&e.type){this.originalEvent=e;this.type=e.type;this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&e.returnValue===false?Pe:Ne;this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target;this.currentTarget=e.currentTarget;this.relatedTarget=e.relatedTarget}else{this.type=e}if(t){x.extend(this,t)}this.timeStamp=e&&e.timeStamp||Date.now();this[x.expando]=true};x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ne,isPropagationStopped:Ne,isImmediatePropagationStopped:Ne,isSimulated:false,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Pe;if(e&&!this.isSimulated){e.preventDefault()}},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Pe;if(e&&!this.isSimulated){e.stopPropagation()}},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Pe;if(e&&!this.isSimulated){e.stopImmediatePropagation()}this.stopPropagation()}};x.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,char:true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:true},x.event.addProp);x.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(g.documentMode){var n=oe.get(this,"handle"),r=x.event.fix(e);r.type=e.type==="focusin"?"focus":"blur";r.isSimulated=true;n(e);if(r.target===r.currentTarget){n(r)}}else{x.event.simulate(t,e.target,x.event.fix(e))}}x.event.special[e]={setup:function(){var r;Ve(this,e,true);if(g.documentMode){r=oe.get(this,t);if(!r){this.addEventListener(t,n)}oe.set(this,t,(r||0)+1)}else{return false}},trigger:function(){Ve(this,e);return true},teardown:function(){var e;if(g.documentMode){e=oe.get(this,t)-1;if(!e){this.removeEventListener(t,n);oe.remove(this,t)}else{oe.set(this,t,e)}}else{return false}},_default:function(t){return oe.get(t.target,e)},delegateType:t};x.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=g.documentMode?this:r,a=oe.get(i,t);if(!a){if(g.documentMode){this.addEventListener(t,n)}else{r.addEventListener(e,n,true)}}oe.set(i,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=g.documentMode?this:r,a=oe.get(i,t)-1;if(!a){if(g.documentMode){this.removeEventListener(t,n)}else{r.removeEventListener(e,n,true)}oe.remove(i,t)}else{oe.set(i,t,a)}}}});x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;if(!i||i!==r&&!x.contains(r,i)){e.type=a.origType;n=a.handler.apply(this,arguments);e.type=t}return n}}});x.fn.extend({on:function(e,t,n,r){return Ie(this,e,t,n,r)},one:function(e,t,n,r){return Ie(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj){r=e.handleObj;x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler);return this}if(typeof e==="object"){for(i in e){this.off(i,t,e[i])}return this}if(t===false||typeof t==="function"){n=t;t=undefined}if(n===false){n=Ne}return this.each(function(){x.event.remove(this,e,n,t)})}});var je=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Fe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function He(e,t){if(C(e,"table")&&C(t.nodeType!==11?t:t.firstChild,"tr")){return x(e).children("tbody")[0]||e}return e}function Ue(e){e.type=(e.getAttribute("type")!==null)+"/"+e.type;return e}function qe(e){if((e.type||"").slice(0,5)==="true/"){e.type=e.type.slice(5)}else{e.removeAttribute("type")}return e}function Le(e,t){var n,r,i,a,o,s,l;if(t.nodeType!==1){return}if(oe.hasData(e)){a=oe.get(e);l=a.events;if(l){oe.remove(t,"handle events");for(i in l){for(n=0,r=l[i].length;n<r;n++){x.event.add(t,i,l[i][n])}}}}if(se.hasData(e)){o=se.access(e);s=x.extend({},o);se.set(t,s)}}function _e(e,t){var n=t.nodeName.toLowerCase();if(n==="input"&&ke.test(e.type)){t.checked=e.checked}else if(n==="input"||n==="textarea"){t.defaultValue=e.defaultValue}}function Be(e,t,n,r){t=a(t);var i,o,s,l,u,c,f=0,p=e.length,v=p-1,g=t[0],m=h(g);if(m||p>1&&typeof g==="string"&&!d.checkClone&&Re.test(g)){return e.each(function(i){var a=e.eq(i);if(m){t[0]=g.call(this,i,a.html())}Be(a,t,n,r)})}if(p){i=Ae(t,e[0].ownerDocument,false,e,r);o=i.firstChild;if(i.childNodes.length===1){i=o}if(o||r){s=x.map(De(i,"script"),Ue);l=s.length;for(;f<p;f++){u=i;if(f!==v){u=x.clone(u,true,true);if(l){x.merge(s,De(u,"script"))}}n.call(e[f],u,f)}if(l){c=s[s.length-1].ownerDocument;x.map(s,qe);for(f=0;f<l;f++){u=s[f];if(Te.test(u.type||"")&&!oe.access(u,"globalEval")&&x.contains(c,u)){if(u.src&&(u.type||"").toLowerCase()!=="module"){if(x._evalUrl&&!u.noModule){x._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c)}}else{$(u.textContent.replace(Fe,""),u,c)}}}}}}return e}function Ye(e,t,n){var r,i=t?x.filter(t,e):e,a=0;for(;(r=i[a])!=null;a++){if(!n&&r.nodeType===1){x.cleanData(De(r))}if(r.parentNode){if(n&&ge(r)){Ee(De(r,"script"))}r.parentNode.removeChild(r)}}return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(true),l=ge(e);if(!d.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!x.isXMLDoc(e)){o=De(s);a=De(e);for(r=0,i=a.length;r<i;r++){_e(a[r],o[r])}}if(t){if(n){a=a||De(e);o=o||De(s);for(r=0,i=a.length;r<i;r++){Le(a[r],o[r])}}else{Le(e,s)}}o=De(s,"script");if(o.length>0){Ee(o,!l&&De(e,"script"))}return s},cleanData:function(e){var t,n,r,i=x.event.special,a=0;for(;(n=e[a])!==undefined;a++){if(ie(n)){if(t=n[oe.expando]){if(t.events){for(r in t.events){if(i[r]){x.event.remove(n,r)}else{x.removeEvent(n,r,t.handle)}}}n[oe.expando]=undefined}if(n[se.expando]){n[se.expando]=undefined}}}}});x.fn.extend({detach:function(e){return Ye(this,e,true)},remove:function(e){return Ye(this,e)},text:function(e){return J(this,function(e){return e===undefined?x.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=e}})},null,e,arguments.length)},append:function(){return Be(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=He(this,e);t.appendChild(e)}})},prepend:function(){return Be(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=He(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Be(this,arguments,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this)}})},after:function(){return Be(this,arguments,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this.nextSibling)}})},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){if(e.nodeType===1){x.cleanData(De(e,false));e.textContent=""}}return this},clone:function(e,t){e=e==null?false:e;t=t==null?e:t;return this.map(function(){return x.clone(this,e,t)})},html:function(e){return J(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&t.nodeType===1){return t.innerHTML}if(typeof e==="string"&&!je.test(e)&&!Se[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++){t=this[n]||{};if(t.nodeType===1){x.cleanData(De(t,false));t.innerHTML=e}}t=0}catch(e){}}if(t){this.empty().append(e)}},null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,function(t){var n=this.parentNode;if(x.inArray(this,e)<0){x.cleanData(De(this));if(n){n.replaceChild(t,this)}}},e)}});x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),a=i.length-1,s=0;for(;s<=a;s++){n=s===a?this:this.clone(true);x(i[s])[t](n);o.apply(r,n.get())}return this.pushStack(r)}});var We=new RegExp("^("+pe+")(?!px)[a-z%]+$","i");var ze=/^--/;var Xe=function(t){var n=t.ownerDocument.defaultView;if(!n||!n.opener){n=e}return n.getComputedStyle(t)};var Ge=function(e,t,n){var r,i,a={};for(i in t){a[i]=e.style[i];e.style[i]=t[i]}r=n.call(e);for(i in t){e.style[i]=a[i]}return r};var Ze=new RegExp(he.join("|"),"i");(function(){function t(){if(!c){return}u.style.cssText="position:absolute;left:-11111px;width:60px;"+"margin-top:1px;padding:0;border:0";c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;"+"margin:auto;border:1px;padding:1px;"+"width:60%;top:1%";ve.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);r=t.top!=="1%";l=n(t.marginLeft)===12;c.style.right="60%";o=n(t.right)===36;i=n(t.width)===36;c.style.position="absolute";a=n(c.offsetWidth/3)===12;ve.removeChild(u);c=null}function n(e){return Math.round(parseFloat(e))}var r,i,a,o,s,l,u=g.createElement("div"),c=g.createElement("div");if(!c.style){return}c.style.backgroundClip="content-box";c.cloneNode(true).style.backgroundClip="";d.clearCloneStyle=c.style.backgroundClip==="content-box";x.extend(d,{boxSizingReliable:function(){t();return i},pixelBoxStyles:function(){t();return o},pixelPosition:function(){t();return r},reliableMarginLeft:function(){t();return l},scrollboxSize:function(){t();return a},reliableTrDimensions:function(){var t,n,r,i;if(s==null){t=g.createElement("table");n=g.createElement("tr");r=g.createElement("div");t.style.cssText="position:absolute;left:-11111px;border-collapse:separate";n.style.cssText="box-sizing:content-box;border:1px solid";n.style.height="1px";r.style.height="9px";r.style.display="block";ve.appendChild(t).appendChild(n).appendChild(r);i=e.getComputedStyle(n);s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight;ve.removeChild(t)}return s}})})();function Ke(e,t,n){var r,i,a,o,s=ze.test(t),l=e.style;n=n||Xe(e);if(n){o=n.getPropertyValue(t)||n[t];if(s&&o){o=o.replace(O,"$1")||undefined}if(o===""&&!ge(e)){o=x.style(e,t)}if(!d.pixelBoxStyles()&&We.test(o)&&Ze.test(t)){r=l.width;i=l.minWidth;a=l.maxWidth;l.minWidth=l.maxWidth=l.width=o;o=n.width;l.width=r;l.minWidth=i;l.maxWidth=a}}return o!==undefined?o+"":o}function Qe(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var Je=["Webkit","Moz","ms"],et=g.createElement("div").style,tt={};function nt(e){var t=e[0].toUpperCase()+e.slice(1),n=Je.length;while(n--){e=Je[n]+t;if(e in et){return e}}}function rt(e){var t=x.cssProps[e]||tt[e];if(t){return t}if(e in et){return e}return tt[e]=nt(e)||e}var it=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function st(e,t,n){var r=de.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function lt(e,t,n,r,i,a){var o=t==="width"?1:0,s=0,l=0,u=0;if(n===(r?"border":"content")){return 0}for(;o<4;o+=2){if(n==="margin"){u+=x.css(e,n+he[o],true,i)}if(!r){l+=x.css(e,"padding"+he[o],true,i);if(n!=="padding"){l+=x.css(e,"border"+he[o]+"Width",true,i)}else{s+=x.css(e,"border"+he[o]+"Width",true,i)}}else{if(n==="content"){l-=x.css(e,"padding"+he[o],true,i)}if(n!=="margin"){l-=x.css(e,"border"+he[o]+"Width",true,i)}}}if(!r&&a>=0){l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0}return l+u}function ut(e,t,n){var r=Xe(e),i=!d.boxSizingReliable()||n,a=i&&x.css(e,"boxSizing",false,r)==="border-box",o=a,s=Ke(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(s)){if(!n){return s}s="auto"}if((!d.boxSizingReliable()&&a||!d.reliableTrDimensions()&&C(e,"tr")||s==="auto"||!parseFloat(s)&&x.css(e,"display",false,r)==="inline")&&e.getClientRects().length){a=x.css(e,"boxSizing",false,r)==="border-box";o=l in e;if(o){s=e[l]}}s=parseFloat(s)||0;return s+lt(e,t,n||(a?"border":"content"),o,r,s)+"px"}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ke(e,"opacity");return n===""?"1":n}}}},cssNumber:{animationIterationCount:true,aspectRatio:true,borderImageSlice:true,columnCount:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,scale:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeMiterlimit:true,strokeOpacity:true},cssProps:{},style:function(e,t,n,r){if(!e||e.nodeType===3||e.nodeType===8||!e.style){return}var i,a,o,s=re(t),l=ze.test(t),u=e.style;if(!l){t=rt(s)}o=x.cssHooks[t]||x.cssHooks[s];if(n!==undefined){a=typeof n;if(a==="string"&&(i=de.exec(n))&&i[1]){n=ye(e,t,i);a="number"}if(n==null||n!==n){return}if(a==="number"&&!l){n+=i&&i[3]||(x.cssNumber[s]?"":"px")}if(!d.clearCloneStyle&&n===""&&t.indexOf("background")===0){u[t]="inherit"}if(!o||!("set"in o)||(n=o.set(e,n,r))!==undefined){if(l){u.setProperty(t,n)}else{u[t]=n}}}else{if(o&&"get"in o&&(i=o.get(e,false,r))!==undefined){return i}return u[t]}},css:function(e,t,n,r){var i,a,o,s=re(t),l=ze.test(t);if(!l){t=rt(s)}o=x.cssHooks[t]||x.cssHooks[s];if(o&&"get"in o){i=o.get(e,true,n)}if(i===undefined){i=Ke(e,t,r)}if(i==="normal"&&t in ot){i=ot[t]}if(n===""||n){a=parseFloat(i);return n===true||isFinite(a)?a||0:i}return i}});x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n){return it.test(x.css(e,"display"))&&(!e.getClientRects().length||!e.getBoundingClientRect().width)?Ge(e,at,function(){return ut(e,t,r)}):ut(e,t,r)}},set:function(e,n,r){var i,a=Xe(e),o=!d.scrollboxSize()&&a.position==="absolute",s=o||r,l=s&&x.css(e,"boxSizing",false,a)==="border-box",u=r?lt(e,t,r,l,a):0;if(l&&o){u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-lt(e,t,"border",false,a)-.5)}if(u&&(i=de.exec(n))&&(i[3]||"px")!=="px"){e.style[t]=n;n=x.css(e,t)}return st(e,n,u)}}});x.cssHooks.marginLeft=Qe(d.reliableMarginLeft,function(e,t){if(t){return(parseFloat(Ke(e,"marginLeft"))||e.getBoundingClientRect().left-Ge(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}});x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},a=typeof n==="string"?n.split(" "):[n];for(;r<4;r++){i[e+he[r]+t]=a[r]||a[r-2]||a[0]}return i}};if(e!=="margin"){x.cssHooks[e+t].set=st}});x.fn.extend({css:function(e,t){return J(this,function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){r=Xe(e);i=t.length;for(;o<i;o++){a[t[o]]=x.css(e,t[o],false,r)}return a}return n!==undefined?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)}});function ct(e,t,n,r,i){return new ct.prototype.init(e,t,n,r,i)}x.Tween=ct;ct.prototype={constructor:ct,init:function(e,t,n,r,i,a){this.elem=e;this.prop=n;this.easing=i||x.easing._default;this.options=t;this.start=this.now=this.cur();this.end=r;this.unit=a||(x.cssNumber[n]?"":"px")},cur:function(){var e=ct.propHooks[this.prop];return e&&e.get?e.get(this):ct.propHooks._default.get(this)},run:function(e){var t,n=ct.propHooks[this.prop];if(this.options.duration){this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration)}else{this.pos=t=e}this.now=(this.end-this.start)*t+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(n&&n.set){n.set(this)}else{ct.propHooks._default.set(this)}return this}};ct.prototype.init.prototype=ct.prototype;ct.propHooks={_default:{get:function(e){var t;if(e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null){return e.elem[e.prop]}t=x.css(e.elem,e.prop,"");return!t||t==="auto"?0:t},set:function(e){if(x.fx.step[e.prop]){x.fx.step[e.prop](e)}else if(e.elem.nodeType===1&&(x.cssHooks[e.prop]||e.elem.style[rt(e.prop)]!=null)){x.style(e.elem,e.prop,e.now+e.unit)}else{e.elem[e.prop]=e.now}}}};ct.propHooks.scrollTop=ct.propHooks.scrollLeft={set:function(e){if(e.elem.nodeType&&e.elem.parentNode){e.elem[e.prop]=e.now}}};x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"};x.fx=ct.prototype.init;x.fx.step={};var ft,pt,dt=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;function vt(){if(pt){if(g.hidden===false&&e.requestAnimationFrame){e.requestAnimationFrame(vt)}else{e.setTimeout(vt,x.fx.interval)}x.fx.tick()}}function gt(){e.setTimeout(function(){ft=undefined});return ft=Date.now()}function mt(e,t){var n,r=0,i={height:e};t=t?1:0;for(;r<4;r+=2-t){n=he[r];i["margin"+n]=i["padding"+n]=e}if(t){i.opacity=i.width=e}return i}function $t(e,t,n){var r,i=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),a=0,o=i.length;for(;a<o;a++){if(r=i[a].call(n,t,e)){return r}}}function yt(e,t,n){var r,i,a,o,s,l,u,c,f="width"in t||"height"in t,p=this,d={},h=e.style,v=e.nodeType&&$e(e),g=oe.get(e,"fxshow");if(!n.queue){o=x._queueHooks(e,"fx");if(o.unqueued==null){o.unqueued=0;s=o.empty.fire;o.empty.fire=function(){if(!o.unqueued){s()}}}o.unqueued++;p.always(function(){p.always(function(){o.unqueued--;if(!x.queue(e,"fx").length){o.empty.fire()}})})}for(r in t){i=t[r];if(dt.test(i)){delete t[r];a=a||i==="toggle";if(i===(v?"hide":"show")){if(i==="show"&&g&&g[r]!==undefined){v=true}else{continue}}d[r]=g&&g[r]||x.style(e,r)}}l=!x.isEmptyObject(t);if(!l&&x.isEmptyObject(d)){return}if(f&&e.nodeType===1){n.overflow=[h.overflow,h.overflowX,h.overflowY];u=g&&g.display;if(u==null){u=oe.get(e,"display")}c=x.css(e,"display");if(c==="none"){if(u){c=u}else{xe([e],true);u=e.style.display||u;c=x.css(e,"display");xe([e])}}if(c==="inline"||c==="inline-block"&&u!=null){if(x.css(e,"float")==="none"){if(!l){p.done(function(){h.display=u});if(u==null){c=h.display;u=c==="none"?"":c}}h.display="inline-block"}}}if(n.overflow){h.overflow="hidden";p.always(function(){h.overflow=n.overflow[0];h.overflowX=n.overflow[1];h.overflowY=n.overflow[2]})}l=false;for(r in d){if(!l){if(g){if("hidden"in g){v=g.hidden}}else{g=oe.access(e,"fxshow",{display:u})}if(a){g.hidden=!v}if(v){xe([e],true)}p.done(function(){if(!v){xe([e])}oe.remove(e,"fxshow");for(r in d){x.style(e,r,d[r])}})}l=$t(v?g[r]:0,r,p);if(!(r in g)){g[r]=l.start;if(v){l.end=l.start;l.start=0}}}}function bt(e,t){var n,r,i,a,o;for(n in e){r=re(n);i=t[r];a=e[n];if(Array.isArray(a)){i=a[1];a=e[n]=a[0]}if(n!==r){e[r]=a;delete e[n]}o=x.cssHooks[r];if(o&&"expand"in o){a=o.expand(a);delete e[r];for(n in a){if(!(n in e)){e[n]=a[n];t[n]=i}}}else{t[r]=i}}}function wt(e,t,n){var r,i,a=0,o=wt.prefilters.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i){return false}var t=ft||gt(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,a=1-r,o=0,l=u.tweens.length;for(;o<l;o++){u.tweens[o].run(a)}s.notifyWith(e,[u,a,n]);if(a<1&&l){return n}if(!l){s.notifyWith(e,[u,1,0])}s.resolveWith(e,[u]);return false},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(true,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:ft||gt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);u.tweens.push(r);return r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i){return this}i=true;for(;n<r;n++){u.tweens[n].run(1)}if(t){s.notifyWith(e,[u,1,0]);s.resolveWith(e,[u,t])}else{s.rejectWith(e,[u,t])}return this}}),c=u.props;bt(c,u.opts.specialEasing);for(;a<o;a++){r=wt.prefilters[a].call(u,e,c,u.opts);if(r){if(h(r.stop)){x._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)}return r}}x.map(c,$t,u);if(h(u.opts.start)){u.opts.start.call(e,u)}u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always);x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue}));return u}x.Animation=x.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);ye(n.elem,e,de.exec(t),n);return n}]},tweener:function(e,t){if(h(e)){t=e;e=["*"]}else{e=e.match(Y)}var n,r=0,i=e.length;for(;r<i;r++){n=e[r];wt.tweeners[n]=wt.tweeners[n]||[];wt.tweeners[n].unshift(t)}},prefilters:[yt],prefilter:function(e,t){if(t){wt.prefilters.unshift(e)}else{wt.prefilters.push(e)}}});x.speed=function(e,t,n){var r=e&&typeof e==="object"?x.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};if(x.fx.off){r.duration=0}else{if(typeof r.duration!=="number"){if(r.duration in x.fx.speeds){r.duration=x.fx.speeds[r.duration]}else{r.duration=x.fx.speeds._default}}}if(r.queue==null||r.queue===true){r.queue="fx"}r.old=r.complete;r.complete=function(){if(h(r.old)){r.old.call(this)}if(r.queue){x.dequeue(this,r.queue)}};return r};x.fn.extend({fadeTo:function(e,t,n,r){return this.filter($e).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),a=x.speed(t,n,r),o=function(){var t=wt(this,x.extend({},e),a);if(i||oe.get(this,"finish")){t.stop(true)}};o.finish=o;return i||a.queue===false?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop;t(n)};if(typeof e!=="string"){n=t;t=e;e=undefined}if(t){this.queue(e||"fx",[])}return this.each(function(){var t=true,i=e!=null&&e+"queueHooks",a=x.timers,o=oe.get(this);if(i){if(o[i]&&o[i].stop){r(o[i])}}else{for(i in o){if(o[i]&&o[i].stop&&ht.test(i)){r(o[i])}}}for(i=a.length;i--;){if(a[i].elem===this&&(e==null||a[i].queue===e)){a[i].anim.stop(n);t=false;a.splice(i,1)}}if(t||!n){x.dequeue(this,e)}})},finish:function(e){if(e!==false){e=e||"fx"}return this.each(function(){var t,n=oe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=x.timers,o=r?r.length:0;n.finish=true;x.queue(this,e,[]);if(i&&i.stop){i.stop.call(this,true)}for(t=a.length;t--;){if(a[t].elem===this&&a[t].queue===e){a[t].anim.stop(true);a.splice(t,1)}}for(t=0;t<o;t++){if(r[t]&&r[t].finish){r[t].finish.call(this)}}delete n.finish})}});x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return e==null||typeof e==="boolean"?n.apply(this,arguments):this.animate(mt(t,true),e,r,i)}});x.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}});x.timers=[];x.fx.tick=function(){var e,t=0,n=x.timers;ft=Date.now();for(;t<n.length;t++){e=n[t];if(!e()&&n[t]===e){n.splice(t--,1)}}if(!n.length){x.fx.stop()}ft=undefined};x.fx.timer=function(e){x.timers.push(e);x.fx.start()};x.fx.interval=13;x.fx.start=function(){if(pt){return}pt=true;vt()};x.fx.stop=function(){pt=null};x.fx.speeds={slow:600,fast:200,_default:400};x.fn.delay=function(t,n){t=x.fx?x.fx.speeds[t]||t:t;n=n||"fx";return this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})};(function(){var e=g.createElement("input"),t=g.createElement("select"),n=t.appendChild(g.createElement("option"));e.type="checkbox";d.checkOn=e.value!=="";d.optSelected=n.selected;e=g.createElement("input");e.value="t";e.type="radio";d.radioValue=e.value==="t"})();var xt,kt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return J(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}});x.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(a===3||a===8||a===2){return}if(typeof e.getAttribute==="undefined"){return x.prop(e,t,n)}if(a!==1||!x.isXMLDoc(e)){i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?xt:undefined)}if(n!==undefined){if(n===null){x.removeAttr(e,t);return}if(i&&"set"in i&&(r=i.set(e,n,t))!==undefined){return r}e.setAttribute(t,n+"");return n}if(i&&"get"in i&&(r=i.get(e,t))!==null){return r}r=x.find.attr(e,t);return r==null?undefined:r},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&t==="radio"&&C(e,"input")){var n=e.value;e.setAttribute("type",t);if(n){e.value=n}return t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Y);if(i&&e.nodeType===1){while(n=i[r++]){e.removeAttribute(n)}}}});xt={set:function(e,t,n){if(t===false){x.removeAttr(e,n)}else{e.setAttribute(n,n)}return n}};x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=kt[t]||x.find.attr;kt[t]=function(e,t,r){var i,a,o=t.toLowerCase();if(!r){a=kt[o];kt[o]=i;i=n(e,t,r)!=null?o:null;kt[o]=a}return i}});var Ct=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;x.fn.extend({prop:function(e,t){return J(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}});x.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(a===3||a===8||a===2){return}if(a!==1||!x.isXMLDoc(e)){t=x.propFix[t]||t;i=x.propHooks[t]}if(n!==undefined){if(i&&"set"in i&&(r=i.set(e,n,t))!==undefined){return r}return e[t]=n}if(i&&"get"in i&&(r=i.get(e,t))!==null){return r}return e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");if(t){return parseInt(t,10)}if(Ct.test(e.nodeName)||Tt.test(e.nodeName)&&e.href){return 0}return-1}}},propFix:{for:"htmlFor",class:"className"}});if(!d.optSelected){x.propHooks.selected={get:function(e){var t=e.parentNode;if(t&&t.parentNode){t.parentNode.selectedIndex}return null},set:function(e){var t=e.parentNode;if(t){t.selectedIndex;if(t.parentNode){t.parentNode.selectedIndex}}}}}x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this});function St(e){var t=e.match(Y)||[];return t.join(" ")}function Dt(e){return e.getAttribute&&e.getAttribute("class")||""}function Et(e){if(Array.isArray(e)){return e}if(typeof e==="string"){return e.match(Y)||[]}return[]}x.fn.extend({addClass:function(e){var t,n,r,i,a,o;if(h(e)){return this.each(function(t){x(this).addClass(e.call(this,t,Dt(this)))})}t=Et(e);if(t.length){return this.each(function(){r=Dt(this);n=this.nodeType===1&&" "+St(r)+" ";if(n){for(a=0;a<t.length;a++){i=t[a];if(n.indexOf(" "+i+" ")<0){n+=i+" "}}o=St(n);if(r!==o){this.setAttribute("class",o)}}})}return this},removeClass:function(e){var t,n,r,i,a,o;if(h(e)){return this.each(function(t){x(this).removeClass(e.call(this,t,Dt(this)))})}if(!arguments.length){return this.attr("class","")}t=Et(e);if(t.length){return this.each(function(){r=Dt(this);n=this.nodeType===1&&" "+St(r)+" ";if(n){for(a=0;a<t.length;a++){i=t[a];while(n.indexOf(" "+i+" ")>-1){n=n.replace(" "+i+" "," ")}}o=St(n);if(r!==o){this.setAttribute("class",o)}}})}return this},toggleClass:function(e,t){var n,r,i,a,o=typeof e,s=o==="string"||Array.isArray(e);if(h(e)){return this.each(function(n){x(this).toggleClass(e.call(this,n,Dt(this),t),t)})}if(typeof t==="boolean"&&s){return t?this.addClass(e):this.removeClass(e)}n=Et(e);return this.each(function(){if(s){a=x(this);for(i=0;i<n.length;i++){r=n[i];if(a.hasClass(r)){a.removeClass(r)}else{a.addClass(r)}}}else if(e===undefined||o==="boolean"){r=Dt(this);if(r){oe.set(this,"__className__",r)}if(this.setAttribute){this.setAttribute("class",r||e===false?"":oe.get(this,"__className__")||"")}}})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++]){if(n.nodeType===1&&(" "+St(Dt(n))+" ").indexOf(t)>-1){return true}}return false}});var Ot=/\r/g;x.fn.extend({val:function(e){var t,n,r,i=this[0];if(!arguments.length){if(i){t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()];if(t&&"get"in t&&(n=t.get(i,"value"))!==undefined){return n}n=i.value;if(typeof n==="string"){return n.replace(Ot,"")}return n==null?"":n}return}r=h(e);return this.each(function(n){var i;if(this.nodeType!==1){return}if(r){i=e.call(this,n,x(this).val())}else{i=e}if(i==null){i=""}else if(typeof i==="number"){i+=""}else if(Array.isArray(i)){i=x.map(i,function(e){return e==null?"":e+""})}t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||t.set(this,i,"value")===undefined){this.value=i}})}});x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return t!=null?t:St(x.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o=e.type==="select-one",s=o?null:[],l=o?a+1:i.length;if(a<0){r=l}else{r=o?a:0}for(;r<l;r++){n=i[r];if((n.selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){t=x(n).val();if(o){return t}s.push(t)}}return s},set:function(e,t){var n,r,i=e.options,a=x.makeArray(t),o=i.length;while(o--){r=i[o];if(r.selected=x.inArray(x.valHooks.option.get(r),a)>-1){n=true}}if(!n){e.selectedIndex=-1}return a}}}});x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t)){return e.checked=x.inArray(x(e).val(),t)>-1}}};if(!d.checkOn){x.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value}}});var At=e.location;var Mt={guid:Date.now()};var Pt=/\?/;x.parseXML=function(t){var n,r;if(!t||typeof t!=="string"){return null}try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}r=n&&n.getElementsByTagName("parsererror")[0];if(!n||r){x.error("Invalid XML: "+(r?x.map(r.childNodes,function(e){return e.textContent}).join("\n"):t))}return n};var Nt=/^(?:focusinfocus|focusoutblur)$/,It=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,n,r,i){var a,o,s,l,u,f,p,d,m=[r||g],$=c.call(t,"type")?t.type:t,y=c.call(t,"namespace")?t.namespace.split("."):[];o=d=s=r=r||g;if(r.nodeType===3||r.nodeType===8){return}if(Nt.test($+x.event.triggered)){return}if($.indexOf(".")>-1){y=$.split(".");$=y.shift();y.sort()}u=$.indexOf(":")<0&&"on"+$;t=t[x.expando]?t:new x.Event($,typeof t==="object"&&t);t.isTrigger=i?2:3;t.namespace=y.join(".");t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;t.result=undefined;if(!t.target){t.target=r}n=n==null?[t]:x.makeArray(n,[t]);p=x.event.special[$]||{};if(!i&&p.trigger&&p.trigger.apply(r,n)===false){return}if(!i&&!p.noBubble&&!v(r)){l=p.delegateType||$;if(!Nt.test(l+$)){o=o.parentNode}for(;o;o=o.parentNode){m.push(o);s=o}if(s===(r.ownerDocument||g)){m.push(s.defaultView||s.parentWindow||e)}}a=0;while((o=m[a++])&&!t.isPropagationStopped()){d=o;t.type=a>1?l:p.bindType||$;f=(oe.get(o,"events")||Object.create(null))[t.type]&&oe.get(o,"handle");if(f){f.apply(o,n)}f=u&&o[u];if(f&&f.apply&&ie(o)){t.result=f.apply(o,n);if(t.result===false){t.preventDefault()}}}t.type=$;if(!i&&!t.isDefaultPrevented()){if((!p._default||p._default.apply(m.pop(),n)===false)&&ie(r)){if(u&&h(r[$])&&!v(r)){s=r[u];if(s){r[u]=null}x.event.triggered=$;if(t.isPropagationStopped()){d.addEventListener($,It)}r[$]();if(t.isPropagationStopped()){d.removeEventListener($,It)}x.event.triggered=undefined;if(s){r[u]=s}}}}return t.result},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:true});x.event.trigger(r,null,t)}});x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n){return x.event.trigger(e,t,n,true)}}});var Vt=/\[\]$/,jt=/\r?\n/g,Rt=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;function Ht(e,t,n,r){var i;if(Array.isArray(t)){x.each(t,function(t,i){if(n||Vt.test(e)){r(e,i)}else{Ht(e+"["+(typeof i==="object"&&i!=null?t:"")+"]",i,n,r)}})}else if(!n&&y(t)==="object"){for(i in t){Ht(e+"["+i+"]",t[i],n,r)}}else{r(e,t)}}x.param=function(e,t){var n,r=[],i=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(n==null?"":n)};if(e==null){return""}if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e)){x.each(e,function(){i(this.name,this.value)})}else{for(n in e){Ht(n,e[n],t,i)}}return r.join("&")};x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Ft.test(this.nodeName)&&!Rt.test(e)&&(this.checked||!ke.test(e))}).map(function(e,t){var n=x(this).val();if(n==null){return null}if(Array.isArray(n)){return x.map(n,function(e){return{name:t.name,value:e.replace(jt,"\r\n")}})}return{name:t.name,value:n.replace(jt,"\r\n")}}).get()}});var Ut=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,_t=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yt=/^(?:GET|HEAD)$/,Wt=/^\/\//,zt={},Xt={},Gt="*/".concat("*"),Zt=g.createElement("a");Zt.href=At.href;function Kt(e){return function(t,n){if(typeof t!=="string"){n=t;t="*"}var r,i=0,a=t.toLowerCase().match(Y)||[];if(h(n)){while(r=a[i++]){if(r[0]==="+"){r=r.slice(1)||"*";(e[r]=e[r]||[]).unshift(n)}else{(e[r]=e[r]||[]).push(n)}}}}}function Qt(e,t,n,r){var i={},a=e===Xt;function o(s){var l;i[s]=true;x.each(e[s]||[],function(e,s){var u=s(t,n,r);if(typeof u==="string"&&!a&&!i[u]){t.dataTypes.unshift(u);o(u);return false}else if(a){return!(l=u)}});return l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Jt(e,t){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in t){if(t[n]!==undefined){(i[n]?e:r||(r={}))[n]=t[n]}}if(r){x.extend(true,e,r)}return e}function en(e,t,n){var r,i,a,o,s=e.contents,l=e.dataTypes;while(l[0]==="*"){l.shift();if(r===undefined){r=e.mimeType||t.getResponseHeader("Content-Type")}}if(r){for(i in s){if(s[i]&&s[i].test(r)){l.unshift(i);break}}}if(l[0]in n){a=l[0]}else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}if(!o){o=i}}a=a||o}if(a){if(a!==l[0]){l.unshift(a)}return n[a]}}function tn(e,t,n,r){var i,a,o,s,l,u={},c=e.dataTypes.slice();if(c[1]){for(o in e.converters){u[o.toLowerCase()]=e.converters[o]}}a=c.shift();while(a){if(e.responseFields[a]){n[e.responseFields[a]]=t}if(!l&&r&&e.dataFilter){t=e.dataFilter(t,e.dataType)}l=a;a=c.shift();if(a){if(a==="*"){a=l}else if(l!=="*"&&l!==a){o=u[l+" "+a]||u["* "+a];if(!o){for(i in u){s=i.split(" ");if(s[1]===a){o=u[l+" "+s[0]]||u["* "+s[0]];if(o){if(o===true){o=u[i]}else if(u[i]!==true){a=s[0];c.unshift(s[1])}break}}}}if(o!==true){if(o&&e.throws){t=o(t)}else{try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}}}}}return{state:"success",data:t}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:Bt.test(At.protocol),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,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":true,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(e,t){return t?Jt(Jt(e,x.ajaxSettings),t):Jt(x.ajaxSettings,e)},ajaxPrefilter:Kt(zt),ajaxTransport:Kt(Xt),ajax:function(t,n){if(typeof t==="object"){n=t;t=undefined}n=n||{};var r,i,a,o,s,l,u,c,f,p,d=x.ajaxSetup({},n),h=d.context||d,v=d.context&&(h.nodeType||h.jquery)?x(h):x.event,m=x.Deferred(),$=x.Callbacks("once memory"),y=d.statusCode||{},b={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(u){if(!o){o={};while(t=_t.exec(a)){o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2])}}t=o[e.toLowerCase()+" "]}return t==null?null:t.join(", ")},getAllResponseHeaders:function(){return u?a:null},setRequestHeader:function(e,t){if(u==null){e=w[e.toLowerCase()]=w[e.toLowerCase()]||e;b[e]=t}return this},overrideMimeType:function(e){if(u==null){d.mimeType=e}return this},statusCode:function(e){var t;if(e){if(u){C.always(e[C.status])}else{for(t in e){y[t]=[y[t],e[t]]}}}return this},abort:function(e){var t=e||k;if(r){r.abort(t)}T(0,t);return this}};m.promise(C);d.url=((t||d.url||At.href)+"").replace(Wt,At.protocol+"//");d.type=n.method||n.type||d.method||d.type;d.dataTypes=(d.dataType||"*").toLowerCase().match(Y)||[""];if(d.crossDomain==null){l=g.createElement("a");try{l.href=d.url;l.href=l.href;d.crossDomain=Zt.protocol+"//"+Zt.host!==l.protocol+"//"+l.host}catch(e){d.crossDomain=true}}if(d.data&&d.processData&&typeof d.data!=="string"){d.data=x.param(d.data,d.traditional)}Qt(zt,d,n,C);if(u){return C}c=x.event&&d.global;if(c&&x.active++===0){x.event.trigger("ajaxStart")}d.type=d.type.toUpperCase();d.hasContent=!Yt.test(d.type);i=d.url.replace(qt,"");if(!d.hasContent){p=d.url.slice(i.length);if(d.data&&(d.processData||typeof d.data==="string")){i+=(Pt.test(i)?"&":"?")+d.data;delete d.data}if(d.cache===false){i=i.replace(Lt,"$1");p=(Pt.test(i)?"&":"?")+"_="+Mt.guid+++p}d.url=i+p}else if(d.data&&d.processData&&(d.contentType||"").indexOf("application/x-www-form-urlencoded")===0){d.data=d.data.replace(Ut,"+")}if(d.ifModified){if(x.lastModified[i]){C.setRequestHeader("If-Modified-Since",x.lastModified[i])}if(x.etag[i]){C.setRequestHeader("If-None-Match",x.etag[i])}}if(d.data&&d.hasContent&&d.contentType!==false||n.contentType){C.setRequestHeader("Content-Type",d.contentType)}C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+Gt+"; q=0.01":""):d.accepts["*"]);for(f in d.headers){C.setRequestHeader(f,d.headers[f])}if(d.beforeSend&&(d.beforeSend.call(h,C,d)===false||u)){return C.abort()}k="abort";$.add(d.complete);C.done(d.success);C.fail(d.error);r=Qt(Xt,d,n,C);if(!r){T(-1,"No Transport")}else{C.readyState=1;if(c){v.trigger("ajaxSend",[C,d])}if(u){return C}if(d.async&&d.timeout>0){s=e.setTimeout(function(){C.abort("timeout")},d.timeout)}try{u=false;r.send(b,T)}catch(e){if(u){throw e}T(-1,e)}}function T(t,n,o,l){var f,p,g,b,w,k=n;if(u){return}u=true;if(s){e.clearTimeout(s)}r=undefined;a=l||"";C.readyState=t>0?4:0;f=t>=200&&t<300||t===304;if(o){b=en(d,C,o)}if(!f&&x.inArray("script",d.dataTypes)>-1&&x.inArray("json",d.dataTypes)<0){d.converters["text script"]=function(){}}b=tn(d,b,C,f);if(f){if(d.ifModified){w=C.getResponseHeader("Last-Modified");if(w){x.lastModified[i]=w}w=C.getResponseHeader("etag");if(w){x.etag[i]=w}}if(t===204||d.type==="HEAD"){k="nocontent"}else if(t===304){k="notmodified"}else{k=b.state;p=b.data;g=b.error;f=!g}}else{g=k;if(t||!k){k="error";if(t<0){t=0}}}C.status=t;C.statusText=(n||k)+"";if(f){m.resolveWith(h,[p,k,C])}else{m.rejectWith(h,[C,k,g])}C.statusCode(y);y=undefined;if(c){v.trigger(f?"ajaxSuccess":"ajaxError",[C,d,f?p:g])}$.fireWith(h,[C,k]);if(c){v.trigger("ajaxComplete",[C,d]);if(!--x.active){x.event.trigger("ajaxStop")}}}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,undefined,t,"script")}});x.each(["get","post"],function(e,t){x[t]=function(e,n,r,i){if(h(n)){i=i||r;r=n;n=undefined}return x.ajax(x.extend({url:e,type:t,dataType:i,data:n,success:r},x.isPlainObject(e)&&e))}});x.ajaxPrefilter(function(e){var t;for(t in e.headers){if(t.toLowerCase()==="content-type"){e.contentType=e.headers[t]||""}}});x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:true,async:false,global:false,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})};x.fn.extend({wrapAll:function(e){var t;if(this[0]){if(h(e)){e=e.call(this[0])}t=x(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){t.insertBefore(this[0])}t.map(function(){var e=this;while(e.firstElementChild){e=e.firstElementChild}return e}).append(this)}return this},wrapInner:function(e){if(h(e)){return this.each(function(t){x(this).wrapInner(e.call(this,t))})}return this.each(function(){var t=x(this),n=t.contents();if(n.length){n.wrapAll(e)}else{t.append(e)}})},wrap:function(e){var t=h(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)});return this}});x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)};x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var nn={0:200,1223:204},rn=x.ajaxSettings.xhr();d.cors=!!rn&&"withCredentials"in rn;d.ajax=rn=!!rn;x.ajaxTransport(function(t){var n,r;if(d.cors||rn&&!t.crossDomain){return{send:function(i,a){var o,s=t.xhr();s.open(t.type,t.url,t.async,t.username,t.password);if(t.xhrFields){for(o in t.xhrFields){s[o]=t.xhrFields[o]}}if(t.mimeType&&s.overrideMimeType){s.overrideMimeType(t.mimeType)}if(!t.crossDomain&&!i["X-Requested-With"]){i["X-Requested-With"]="XMLHttpRequest"}for(o in i){s.setRequestHeader(o,i[o])}n=function(e){return function(){if(n){n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null;if(e==="abort"){s.abort()}else if(e==="error"){if(typeof s.status!=="number"){a(0,"error")}else{a(s.status,s.statusText)}}else{a(nn[s.status]||s.status,s.statusText,(s.responseType||"text")!=="text"||typeof s.responseText!=="string"?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders())}}}};s.onload=n();r=s.onerror=s.ontimeout=n("error");if(s.onabort!==undefined){s.onabort=r}else{s.onreadystatechange=function(){if(s.readyState===4){e.setTimeout(function(){if(n){r()}})}}}n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n){throw e}}},abort:function(){if(n){n()}}}}});x.ajaxPrefilter(function(e){if(e.crossDomain){e.contents.script=false}});x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, "+"application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){x.globalEval(e);return e}}});x.ajaxPrefilter("script",function(e){if(e.cache===undefined){e.cache=false}if(e.crossDomain){e.type="GET"}});x.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,i){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove();n=null;if(e){i(e.type==="error"?404:200,e.type)}});g.head.appendChild(t[0])},abort:function(){if(n){n()}}}}});var an=[],on=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=an.pop()||x.expando+"_"+Mt.guid++;this[e]=true;return e}});x.ajaxPrefilter("json jsonp",function(t,n,r){var i,a,o,s=t.jsonp!==false&&(on.test(t.url)?"url":typeof t.data==="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&on.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp"){i=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback;if(s){t[s]=t[s].replace(on,"$1"+i)}else if(t.jsonp!==false){t.url+=(Pt.test(t.url)?"&":"?")+t.jsonp+"="+i}t.converters["script json"]=function(){if(!o){x.error(i+" was not called")}return o[0]};t.dataTypes[0]="json";a=e[i];e[i]=function(){o=arguments};r.always(function(){if(a===undefined){x(e).removeProp(i)}else{e[i]=a}if(t[i]){t.jsonpCallback=n.jsonpCallback;an.push(i)}if(o&&h(a)){a(o[0])}o=a=undefined});return"script"}});d.createHTMLDocument=function(){var e=g.implementation.createHTMLDocument("").body;e.innerHTML="<form></form><form></form>";return e.childNodes.length===2}();x.parseHTML=function(e,t,n){if(typeof e!=="string"){return[]}if(typeof t==="boolean"){n=t;t=false}var r,i,a;if(!t){if(d.createHTMLDocument){t=g.implementation.createHTMLDocument("");r=t.createElement("base");r.href=g.location.href;t.head.appendChild(r)}else{t=g}}i=R.exec(e);a=!n&&[];if(i){return[t.createElement(i[1])]}i=Ae([e],t,a);if(a&&a.length){x(a).remove()}return x.merge([],i.childNodes)};x.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");if(s>-1){r=St(e.slice(s));e=e.slice(0,s)}if(h(t)){n=t;t=undefined}else if(t&&typeof t==="object"){i="POST"}if(o.length>0){x.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){a=arguments;o.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})})}return this};x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length};x.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,u,c=x.css(e,"position"),f=x(e),p={};if(c==="static"){e.style.position="relative"}s=f.offset();a=x.css(e,"top");l=x.css(e,"left");u=(c==="absolute"||c==="fixed")&&(a+l).indexOf("auto")>-1;if(u){r=f.position();o=r.top;i=r.left}else{o=parseFloat(a)||0;i=parseFloat(l)||0}if(h(t)){t=t.call(e,n,x.extend({},s))}if(t.top!=null){p.top=t.top-s.top+o}if(t.left!=null){p.left=t.left-s.left+i}if("using"in t){t.using.call(e,p)}else{f.css(p)}}};x.fn.extend({offset:function(e){if(arguments.length){return e===undefined?this:this.each(function(t){x.offset.setOffset(this,e,t)})}var t,n,r=this[0];if(!r){return}if(!r.getClientRects().length){return{top:0,left:0}}t=r.getBoundingClientRect();n=r.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},position:function(){if(!this[0]){return}var e,t,n,r=this[0],i={top:0,left:0};if(x.css(r,"position")==="fixed"){t=r.getBoundingClientRect()}else{t=this.offset();n=r.ownerDocument;e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&x.css(e,"position")==="static"){e=e.parentNode}if(e&&e!==r&&e.nodeType===1){i=x(e).offset();i.top+=x.css(e,"borderTopWidth",true);i.left+=x.css(e,"borderLeftWidth",true)}}return{top:t.top-i.top-x.css(r,"marginTop",true),left:t.left-i.left-x.css(r,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&x.css(e,"position")==="static"){e=e.offsetParent}return e||ve})}});x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return J(this,function(e,r,i){var a;if(v(e)){a=e}else if(e.nodeType===9){a=e.defaultView}if(i===undefined){return a?a[t]:e[r]}if(a){a.scrollTo(!n?i:a.pageXOffset,n?i:a.pageYOffset)}else{e[r]=i}},e,r,arguments.length)}});x.each(["top","left"],function(e,t){x.cssHooks[t]=Qe(d.pixelPosition,function(e,n){if(n){n=Ke(e,t);return We.test(n)?x(e).position()[t]+"px":n}})});x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){x.fn[r]=function(i,a){var o=arguments.length&&(n||typeof i!=="boolean"),s=n||(i===true||a===true?"margin":"border");return J(this,function(t,n,i){var a;if(v(t)){return r.indexOf("outer")===0?t["inner"+e]:t.document.documentElement["client"+e]}if(t.nodeType===9){a=t.documentElement;return Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])}return i===undefined?x.css(t,n,s):x.style(t,n,i,s)},t,o?i:undefined,o)}})});x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}});x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}});x.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(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var sn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,r,a;if(typeof t==="string"){n=e[t];t=e;e=n}if(!h(e)){return undefined}r=i.call(arguments,2);a=function(){return e.apply(t||this,r.concat(i.call(arguments)))};a.guid=e.guid=e.guid||x.guid++;return a};x.holdReady=function(e){if(e){x.readyWait++}else{x.ready(true)}};x.isArray=Array.isArray;x.parseJSON=JSON.parse;x.nodeName=C;x.isFunction=h;x.isWindow=v;x.camelCase=re;x.type=y;x.now=Date.now;x.isNumeric=function(e){var t=x.type(e);return(t==="number"||t==="string")&&!isNaN(e-parseFloat(e))};x.trim=function(e){return e==null?"":(e+"").replace(sn,"$1")};if(typeof define==="function"&&define.amd){define("jquery",[],function(){return x})}var ln=e.jQuery,un=e.$;x.noConflict=function(t){if(e.$===x){e.$=un}if(t&&e.jQuery===x){e.jQuery=ln}return x};if(typeof t==="undefined"){e.jQuery=e.$=x}return x});(function(e,t,n){"use strict";function r(e,t){t=t||Error;return function(){var n=arguments[0],r="["+(e?e+":":"")+n+"] ",i=arguments[1],a=arguments,o,s;o=r+i.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n;if(t+2<a.length){return Ye(a[t+2])}return e});o=o+"\nhttp://errors.angularjs.org/1.3.16/"+(e?e+"/":"")+n;for(s=2;s<arguments.length;s++){o=o+(s==2?"?":"&")+"p"+(s-2)+"="+encodeURIComponent(Ye(arguments[s]))}return new t(o)}}var i=/^\/(.+)\/([a-z]*)$/;var a="validity";var o=function(e){return F(e)?e.toLowerCase():e};var s=Object.prototype.hasOwnProperty;var l=function(e){return F(e)?e.toUpperCase():e};var u=function(e){return F(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)|32)}):e};var c=function(e){return F(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)&~32)}):e};
1if("i"!=="I".toLowerCase()){o=u;l=c}var f,p,d,h=[].slice,v=[].splice,g=[].push,m=Object.prototype.toString,$=r("ng"),y=e.angular||(e.angular={}),b,w=0;f=t.documentMode;function x(e){if(e==null||B(e)){return false}var t="length"in Object(e)&&e.length;if(e.nodeType===Re&&t){return true}return F(e)||q(e)||t===0||typeof t==="number"&&t>0&&t-1 in e}function k(e,t,n){var r,i;if(e){if(L(e)){for(r in e){if(r!="prototype"&&r!="length"&&r!="name"&&(!e.hasOwnProperty||e.hasOwnProperty(r))){t.call(n,e[r],r,e)}}}else if(q(e)||x(e)){var a=typeof e!=="object";for(r=0,i=e.length;r<i;r++){if(a||r in e){t.call(n,e[r],r,e)}}}else if(e.forEach&&e.forEach!==k){e.forEach(t,n,e)}else{for(r in e){if(e.hasOwnProperty(r)){t.call(n,e[r],r,e)}}}}return e}function C(e){return Object.keys(e).sort()}function T(e,t,n){var r=C(e);for(var i=0;i<r.length;i++){t.call(n,e[r[i]],r[i])}return r}function S(e){return function(t,n){e(n,t)}}function D(){return++w}function E(e,t){if(t){e.$$hashKey=t}else{delete e.$$hashKey}}function O(e){var t=e.$$hashKey;for(var n=1,r=arguments.length;n<r;n++){var i=arguments[n];if(i){var a=Object.keys(i);for(var o=0,s=a.length;o<s;o++){var l=a[o];e[l]=i[l]}}}E(e,t);return e}function A(e){return parseInt(e,10)}function M(e,t){return O(Object.create(e),t)}function P(){}P.$inject=[];function N(e){return e}N.$inject=[];function I(e){return function(){return e}}function V(e){return typeof e==="undefined"}function j(e){return typeof e!=="undefined"}function R(e){return e!==null&&typeof e==="object"}function F(e){return typeof e==="string"}function H(e){return typeof e==="number"}function U(e){return m.call(e)==="[object Date]"}var q=Array.isArray;function L(e){return typeof e==="function"}function _(e){return m.call(e)==="[object RegExp]"}function B(e){return e&&e.window===e}function Y(e){return e&&e.$evalAsync&&e.$watch}function W(e){return m.call(e)==="[object File]"}function z(e){return m.call(e)==="[object FormData]"}function X(e){return m.call(e)==="[object Blob]"}function G(e){return typeof e==="boolean"}function Z(e){return e&&L(e.then)}var K=function(e){return F(e)?e.trim():e};var Q=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function J(e){return!!(e&&(e.nodeName||e.prop&&e.attr&&e.find))}function ee(e){var t={},n=e.split(","),r;for(r=0;r<n.length;r++)t[n[r]]=true;return t}function te(e){return o(e.nodeName||e[0]&&e[0].nodeName)}function ne(e,t){return Array.prototype.indexOf.call(e,t)!=-1}function re(e,t){var n=e.indexOf(t);if(n>=0)e.splice(n,1);return t}function ie(e,t,n,r){if(B(e)||Y(e)){throw $("cpws","Can't copy! Making copies of Window or Scope instances is not supported.")}if(!t){t=e;if(e){if(q(e)){t=ie(e,[],n,r)}else if(U(e)){t=new Date(e.getTime())}else if(_(e)){t=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);t.lastIndex=e.lastIndex}else if(R(e)){var i=Object.create(Object.getPrototypeOf(e));t=ie(e,i,n,r)}}}else{if(e===t)throw $("cpi","Can't copy! Source and destination are identical.");n=n||[];r=r||[];if(R(e)){var a=n.indexOf(e);if(a!==-1)return r[a];n.push(e);r.push(t)}var o;if(q(e)){t.length=0;for(var s=0;s<e.length;s++){o=ie(e[s],null,n,r);if(R(e[s])){n.push(e[s]);r.push(o)}t.push(o)}}else{var l=t.$$hashKey;if(q(t)){t.length=0}else{k(t,function(e,n){delete t[n]})}for(var u in e){if(e.hasOwnProperty(u)){o=ie(e[u],null,n,r);if(R(e[u])){n.push(e[u]);r.push(o)}t[u]=o}}E(t,l)}}return t}function ae(e,t){if(q(e)){t=t||[];for(var n=0,r=e.length;n<r;n++){t[n]=e[n]}}else if(R(e)){t=t||{};for(var i in e){if(!(i.charAt(0)==="$"&&i.charAt(1)==="$")){t[i]=e[i]}}}return t||e}function oe(e,t){if(e===t)return true;if(e===null||t===null)return false;if(e!==e&&t!==t)return true;var r=typeof e,i=typeof t,a,o,s;if(r==i){if(r=="object"){if(q(e)){if(!q(t))return false;if((a=e.length)==t.length){for(o=0;o<a;o++){if(!oe(e[o],t[o]))return false}return true}}else if(U(e)){if(!U(t))return false;return oe(e.getTime(),t.getTime())}else if(_(e)){return _(t)?e.toString()==t.toString():false}else{if(Y(e)||Y(t)||B(e)||B(t)||q(t)||U(t)||_(t))return false;s={};for(o in e){if(o.charAt(0)==="$"||L(e[o]))continue;if(!oe(e[o],t[o]))return false;s[o]=true}for(o in t){if(!s.hasOwnProperty(o)&&o.charAt(0)!=="$"&&t[o]!==n&&!L(t[o]))return false}return true}}}return false}var se=function(){if(j(se.isActive_))return se.isActive_;var e=!!(t.querySelector("[ng-csp]")||t.querySelector("[data-ng-csp]"));if(!e){try{new Function("")}catch(t){e=true}}return se.isActive_=e};function le(e,t,n){return e.concat(h.call(t,n))}function ue(e,t){return h.call(e,t||0)}function ce(e,t){var n=arguments.length>2?ue(arguments,2):[];if(L(t)&&!(t instanceof RegExp)){return n.length?function(){return arguments.length?t.apply(e,le(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}else{return t}}function fe(e,r){var i=r;if(typeof e==="string"&&e.charAt(0)==="$"&&e.charAt(1)==="$"){i=n}else if(B(r)){i="$WINDOW"}else if(r&&t===r){i="$DOCUMENT"}else if(Y(r)){i="$SCOPE"}return i}function pe(e,t){if(typeof e==="undefined")return n;if(!H(t)){t=t?2:null}return JSON.stringify(e,fe,t)}function de(e){return F(e)?JSON.parse(e):e}function he(e){e=p(e).clone();try{e.empty()}catch(e){}var t=p("<div>").append(e).html();try{return e[0].nodeType===He?o(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+o(t)})}catch(e){return o(t)}}function ve(e){try{return decodeURIComponent(e)}catch(e){}}function ge(e){var t={},n,r;k((e||"").split("&"),function(e){if(e){n=e.replace(/\+/g,"%20").split("=");r=ve(n[0]);if(j(r)){var i=j(n[1])?ve(n[1]):true;if(!s.call(t,r)){t[r]=i}else if(q(t[r])){t[r].push(i)}else{t[r]=[t[r],i]}}}});return t}function me(e){var t=[];k(e,function(e,n){if(q(e)){k(e,function(e){t.push(ye(n,true)+(e===true?"":"="+ye(e,true)))})}else{t.push(ye(n,true)+(e===true?"":"="+ye(e,true)))}});return t.length?t.join("&"):""}function $e(e){return ye(e,true).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ye(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var be=["ng-","data-ng-","ng:","x-ng-"];function we(e,t){var n,r,i=be.length;e=p(e);for(r=0;r<i;++r){n=be[r]+t;if(F(n=e.attr(n))){return n}}return null}function xe(e,t){var n,r,i={};k(be,function(t){var i=t+"app";if(!n&&e.hasAttribute&&e.hasAttribute(i)){n=e;r=e.getAttribute(i)}});k(be,function(t){var i=t+"app";var a;if(!n&&(a=e.querySelector("["+i.replace(":","\\:")+"]"))){n=a;r=a.getAttribute(i)}});
1if(n){i.strictDi=we(n,"strict-di")!==null;t(n,r?[r]:[],i)}}function ke(n,r,i){if(!R(i))i={};var a={strictDi:false};i=O(a,i);var o=function(){n=p(n);if(n.injector()){var e=n[0]===t?"document":he(n);throw $("btstrpd","App Already Bootstrapped with this Element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}r=r||[];r.unshift(["$provide",function(e){e.value("$rootElement",n)}]);if(i.debugInfoEnabled){r.push(["$compileProvider",function(e){e.debugInfoEnabled(true)}])}r.unshift("ng");var a=Wt(r,i.strictDi);a.invoke(["$rootScope","$rootElement","$compile","$injector",function e(t,n,r,i){t.$apply(function(){n.data("$injector",i);r(n)(t)})}]);return a};var s=/^NG_ENABLE_DEBUG_INFO!/;var l=/^NG_DEFER_BOOTSTRAP!/;if(e&&s.test(e.name)){i.debugInfoEnabled=true;e.name=e.name.replace(s,"")}if(e&&!l.test(e.name)){return o()}e.name=e.name.replace(l,"");y.resumeBootstrap=function(e){k(e,function(e){r.push(e)});return o()};if(L(y.resumeDeferredBootstrap)){y.resumeDeferredBootstrap()}}function Ce(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name;e.location.reload()}function Te(e){var t=y.element(e).injector();if(!t){throw $("test","no injector found for element argument to getTestability")}return t.get("$$testability")}var Se=/[A-Z]/g;function De(e,t){t=t||"_";return e.replace(Se,function(e,n){return(n?t:"")+e.toLowerCase()})}var Ee=false;var Oe;function Ae(){var t;if(Ee){return}d=e.jQuery;if(d&&d.fn.on){p=d;O(d.fn,{scope:Ot.scope,isolateScope:Ot.isolateScope,controller:Ot.controller,injector:Ot.injector,inheritedData:Ot.inheritedData});t=d.cleanData;d.cleanData=function(e){var n;if(!Oe){for(var r=0,i;(i=e[r])!=null;r++){n=d._data(i,"events");if(n&&n.$destroy){d(i).triggerHandler("$destroy")}}}else{Oe=false}t(e)}}else{p=dt}y.element=p;Ee=true}function Me(e,t,n){if(!e){throw $("areq","Argument '{0}' is {1}",t||"?",n||"required")}return e}function Pe(e,t,n){if(n&&q(e)){e=e[e.length-1]}Me(L(e),t,"not a function, got "+(e&&typeof e==="object"?e.constructor.name||"Object":typeof e));return e}function Ne(e,t){if(e==="hasOwnProperty"){throw $("badname","hasOwnProperty is not a valid {0} name",t)}}function Ie(e,t,n){if(!t)return e;var r=t.split(".");var i;var a=e;var o=r.length;for(var s=0;s<o;s++){i=r[s];if(e){e=(a=e)[i]}}if(!n&&L(e)){return ce(a,e)}return e}function Ve(e){var t=e[0];var n=e[e.length-1];var r=[t];do{t=t.nextSibling;if(!t)break;r.push(t)}while(t!==n);return p(r)}function je(){return Object.create(null)}var Re=1;var Fe=2;var He=3;var Ue=8;var qe=9;var Le=11;function _e(e){var t=r("$injector");var n=r("ng");function i(e,t,n){return e[t]||(e[t]=n())}var a=i(e,"angular",Object);a.$$minErr=a.$$minErr||r;return i(a,"module",function(){var e={};return function r(a,o,s){var l=function(e,t){if(e==="hasOwnProperty"){throw n("badname","hasOwnProperty is not a valid {0} name",t)}};l(a,"module");if(o&&e.hasOwnProperty(a)){e[a]=null}return i(e,a,function(){if(!o){throw t("nomod","Module '{0}' is not available! You either misspelled "+"the module name or forgot to load it. If registering a module ensure that you "+"specify the dependencies as the second argument.",a)}var e=[];var n=[];var r=[];var i=u("$injector","invoke","push",n);var l={_invokeQueue:e,_configBlocks:n,_runBlocks:r,requires:o,name:a,provider:u("$provide","provider"),factory:u("$provide","factory"),service:u("$provide","service"),value:u("$provide","value"),constant:u("$provide","constant","unshift"),animation:u("$animateProvider","register"),filter:u("$filterProvider","register"),controller:u("$controllerProvider","register"),directive:u("$compileProvider","directive"),config:i,run:function(e){r.push(e);return this}};if(s){i(s)}return l;function u(t,n,r,i){if(!i)i=e;return function(){i[r||"push"]([t,n,arguments]);return l}}})}})}function Be(e){var t=[];
1return JSON.stringify(e,function(e,n){n=fe(e,n);if(R(n)){if(t.indexOf(n)>=0)return"<<already seen>>";t.push(n)}return n})}function Ye(e){if(typeof e==="function"){return e.toString().replace(/ \{[\s\S]*$/,"")}else if(typeof e==="undefined"){return"undefined"}else if(typeof e!=="string"){return Be(e)}return e}var We={full:"1.3.16",major:1,minor:3,dot:16,codeName:"cookie-oatmealification"};function ze(t){O(t,{bootstrap:ke,copy:ie,extend:O,equals:oe,element:p,forEach:k,injector:Wt,noop:P,bind:ce,toJson:pe,fromJson:de,identity:N,isUndefined:V,isDefined:j,isString:F,isFunction:L,isObject:R,isNumber:H,isElement:J,isArray:q,version:We,isDate:U,lowercase:o,uppercase:l,callbacks:{counter:0},getTestability:Te,$$minErr:r,$$csp:se,reloadWithDebugInfo:Ce});b=_e(e);try{b("ngLocale")}catch(e){b("ngLocale",[]).provider("$locale",Pn)}b("ng",["ngLocale"],["$provide",function e(t){t.provider({$$sanitizeUri:Sr});t.provider("$compile",nn).directive({a:gi,input:Xi,textarea:Xi,form:ki,script:Ua,select:_a,style:Ya,option:Ba,ngBind:Ki,ngBindHtml:Ji,ngBindTemplate:Qi,ngClass:na,ngClassEven:ia,ngClassOdd:ra,ngCloak:aa,ngController:oa,ngForm:Ci,ngHide:Ia,ngIf:ua,ngInclude:ca,ngInit:pa,ngNonBindable:Ea,ngPluralize:Oa,ngRepeat:Aa,ngShow:Na,ngStyle:Va,ngSwitch:ja,ngSwitchWhen:Ra,ngSwitchDefault:Fa,ngOptions:La,ngTransclude:Ha,ngModel:ka,ngList:da,ngChange:ea,pattern:za,ngPattern:za,required:Wa,ngRequired:Wa,minlength:Ga,ngMinlength:Ga,maxlength:Xa,ngMaxlength:Xa,ngValue:Zi,ngModelOptions:Ta}).directive({ngInclude:fa}).directive(mi).directive(sa);t.provider({$anchorScroll:zt,$animate:Gt,$browser:Qt,$cacheFactory:Jt,$controller:fn,$document:pn,$exceptionHandler:dn,$filter:Lr,$interpolate:An,$interval:Mn,$http:Tn,$httpBackend:Dn,$location:Zn,$log:Kn,$parse:br,$rootScope:Tr,$q:wr,$$q:xr,$sce:Pr,$sceDelegate:Mr,$sniffer:Nr,$templateCache:en,$templateRequest:Ir,$$testability:Vr,$timeout:jr,$window:qr,$$rAF:Cr,$$asyncCallback:Zt,$$jqLite:jt})}])}dt.expando="ng339";var Xe=dt.cache={},Ge=1,Ze=function(e,t,n){e.addEventListener(t,n,false)},Ke=function(e,t,n){e.removeEventListener(t,n,false)};dt._data=function(e){return this.cache[e[this.expando]]||{}};function Qe(){return++Ge}var Je=/([\:\-\_]+(.))/g;var et=/^moz([A-Z])/;
1var tt={mouseleave:"mouseout",mouseenter:"mouseover"};var nt=r("jqLite");function rt(e){return e.replace(Je,function(e,t,n,r){return r?n.toUpperCase():n}).replace(et,"Moz$1")}var it=/^<(\w+)\s*\/?>(?:<\/\1>|)$/;var at=/<|&#?\w+;/;var ot=/<([\w:]+)/;var st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi;var lt={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,"",""]};lt.optgroup=lt.option;lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.thead;lt.th=lt.td;function ut(e){return!at.test(e)}function ct(e){var t=e.nodeType;return t===Re||!t||t===qe}function ft(e,t){var n,r,i,a=t.createDocumentFragment(),o=[],s;if(ut(e)){o.push(t.createTextNode(e))}else{n=n||a.appendChild(t.createElement("div"));r=(ot.exec(e)||["",""])[1].toLowerCase();i=lt[r]||lt._default;n.innerHTML=i[1]+e.replace(st,"<$1></$2>")+i[2];s=i[0];while(s--){n=n.lastChild}o=le(o,n.childNodes);n=a.firstChild;n.textContent=""}a.textContent="";a.innerHTML="";k(o,function(e){a.appendChild(e)});return a}function pt(e,n){n=n||t;var r;if(r=it.exec(e)){return[n.createElement(r[1])]}if(r=ft(e,n)){return r.childNodes}return[]}function dt(e){if(e instanceof dt){return e}var t;if(F(e)){e=K(e);t=true}if(!(this instanceof dt)){if(t&&e.charAt(0)!="<"){throw nt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element")}return new dt(e)}if(t){kt(this,pt(e))}else{kt(this,e)}}function ht(e){return e.cloneNode(true)}function vt(e,t){if(!t)mt(e);if(e.querySelectorAll){var n=e.querySelectorAll("*");for(var r=0,i=n.length;r<i;r++){mt(n[r])}}}function gt(e,t,n,r){if(j(r))throw nt("offargs","jqLite#off() does not support the `selector` argument");var i=$t(e);var a=i&&i.events;var o=i&&i.handle;if(!o)return;if(!t){for(t in a){if(t!=="$destroy"){Ke(e,t,o)}delete a[t]}}else{k(t.split(" "),function(t){if(j(n)){var r=a[t];re(r||[],n);if(r&&r.length>0){return}}Ke(e,t,o);delete a[t]})}}function mt(e,t){var r=e.ng339;var i=r&&Xe[r];if(i){if(t){delete i.data[t];return}if(i.handle){if(i.events.$destroy){i.handle({},"$destroy")}gt(e)}delete Xe[r];e.ng339=n}}function $t(e,t){var r=e.ng339,i=r&&Xe[r];if(t&&!i){e.ng339=r=Qe();i=Xe[r]={events:{},data:{},handle:n}}return i}function yt(e,t,n){if(ct(e)){var r=j(n);var i=!r&&t&&!R(t);var a=!t;var o=$t(e,!i);var s=o&&o.data;if(r){s[t]=n}else{if(a){return s}else{if(i){return s&&s[t]}else{O(s,t)}}}}}function bt(e,t){if(!e.getAttribute)return false;return(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function wt(e,t){if(t&&e.setAttribute){k(t.split(" "),function(t){e.setAttribute("class",K((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+K(t)+" "," ")))})}}function xt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");k(t.split(" "),function(e){e=K(e);if(n.indexOf(" "+e+" ")===-1){n+=e+" "}});e.setAttribute("class",K(n))}}function kt(e,t){if(t){if(t.nodeType){e[e.length++]=t}else{var n=t.length;if(typeof n==="number"&&t.window!==t){if(n){for(var r=0;r<n;r++){e[e.length++]=t[r]}}}else{e[e.length++]=t}}}}function Ct(e,t){return Tt(e,"$"+(t||"ngController")+"Controller")}function Tt(e,t,r){if(e.nodeType==qe){e=e.documentElement}var i=q(t)?t:[t];while(e){for(var a=0,o=i.length;a<o;a++){if((r=p.data(e,i[a]))!==n)return r}e=e.parentNode||e.nodeType===Le&&e.host}}function St(e){vt(e,true);while(e.firstChild){e.removeChild(e.firstChild)}}function Dt(e,t){if(!t)vt(e);var n=e.parentNode;if(n)n.removeChild(e)}function Et(t,n){n=n||e;if(n.document.readyState==="complete"){n.setTimeout(t)}else{p(n).on("load",t)}}var Ot=dt.prototype={ready:function(n){var r=false;function i(){if(r)return;r=true;n()}if(t.readyState==="complete"){setTimeout(i)}else{this.on("DOMContentLoaded",i);dt(e).on("load",i)}},toString:function(){var e=[];k(this,function(t){e.push(""+t)});return"["+e.join(", ")+"]"},eq:function(e){return e>=0?p(this[e]):p(this[this.length+e])},length:0,push:g,sort:[].sort,splice:[].splice};var At={};k("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){At[o(e)]=e});var Mt={};k("input,select,option,textarea,button,form,details".split(","),function(e){Mt[e]=true});var Pt={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};function Nt(e,t){var n=At[t.toLowerCase()];return n&&Mt[te(e)]&&n}function It(e,t){var n=e.nodeName;return(n==="INPUT"||n==="TEXTAREA")&&Pt[t]}k({data:yt,removeData:mt},function(e,t){dt[t]=e});k({data:yt,inheritedData:Tt,scope:function(e){return p.data(e,"$scope")||Tt(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return p.data(e,"$isolateScope")||p.data(e,"$isolateScopeNoTemplate")}
1,controller:Ct,injector:function(e){return Tt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:bt,css:function(e,t,n){t=rt(t);if(j(n)){e.style[t]=n}else{return e.style[t]}},attr:function(e,t,r){var i=e.nodeType;if(i===He||i===Fe||i===Ue){return}var a=o(t);if(At[a]){if(j(r)){if(!!r){e[t]=true;e.setAttribute(t,a)}else{e[t]=false;e.removeAttribute(a)}}else{return e[t]||(e.attributes.getNamedItem(t)||P).specified?a:n}}else if(j(r)){e.setAttribute(t,r)}else if(e.getAttribute){var s=e.getAttribute(t,2);return s===null?n:s}},prop:function(e,t,n){if(j(n)){e[t]=n}else{return e[t]}},text:function(){e.$dv="";return e;function e(e,t){if(V(t)){var n=e.nodeType;return n===Re||n===He?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(V(t)){if(e.multiple&&te(e)==="select"){var n=[];k(e.options,function(e){if(e.selected){n.push(e.value||e.text)}});return n.length===0?null:n}return e.value}e.value=t},html:function(e,t){if(V(t)){return e.innerHTML}vt(e,true);e.innerHTML=t},empty:St},function(e,t){dt.prototype[t]=function(t,r){var i,a;var o=this.length;if(e!==St&&(e.length==2&&(e!==bt&&e!==Ct)?t:r)===n){if(R(t)){for(i=0;i<o;i++){if(e===yt){e(this[i],t)}else{for(a in t){e(this[i],a,t[a])}}}return this}else{var s=e.$dv;var l=s===n?Math.min(o,1):o;for(var u=0;u<l;u++){var c=e(this[u],t,r);s=s?s+c:c}return s}}else{for(i=0;i<o;i++){e(this[i],t,r)}return this}}});function Vt(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type];var a=i?i.length:0;if(!a)return;if(V(n.immediatePropagationStopped)){var o=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=true;if(n.stopPropagation){n.stopPropagation()}if(o){o.call(n)}}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===true};if(a>1){i=ae(i)}for(var s=0;s<a;s++){if(!n.isImmediatePropagationStopped()){i[s].call(e,n)}}};n.elem=e;return n}k({removeData:mt,on:function e(t,n,r,i){if(j(i))throw nt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(!ct(t)){return}var a=$t(t,true);var o=a.events;var s=a.handle;if(!s){s=a.handle=Vt(t,o)}var l=n.indexOf(" ")>=0?n.split(" "):[n];var u=l.length;while(u--){n=l[u];var c=o[n];if(!c){o[n]=[];if(n==="mouseenter"||n==="mouseleave"){e(t,tt[n],function(e){var t=this,r=e.relatedTarget;if(!r||r!==t&&!t.contains(r)){s(e,n)}})}else{if(n!=="$destroy"){Ze(t,n,s)}}c=o[n]}c.push(r)}},off:gt,one:function(e,t,n){e=p(e);e.on(t,function r(){e.off(t,n);e.off(t,r)});e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;vt(e);k(new dt(t),function(t){if(n){r.insertBefore(t,n.nextSibling)}else{r.replaceChild(t,e)}n=t})},children:function(e){var t=[];k(e.childNodes,function(e){if(e.nodeType===Re)t.push(e)});return t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n!==Re&&n!==Le)return;t=new dt(t);for(var r=0,i=t.length;r<i;r++){var a=t[r];e.appendChild(a)}},prepend:function(e,t){if(e.nodeType===Re){var n=e.firstChild;k(new dt(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=p(t).eq(0).clone()[0];var n=e.parentNode;if(n){n.replaceChild(t,e)}t.appendChild(e)},remove:Dt,detach:function(e){Dt(e,true)},after:function(e,t){var n=e,r=e.parentNode;t=new dt(t);for(var i=0,a=t.length;i<a;i++){var o=t[i];r.insertBefore(o,n.nextSibling);n=o}},addClass:xt,removeClass:wt,toggleClass:function(e,t,n){if(t){k(t.split(" "),function(t){var r=n;if(V(r)){r=!bt(e,t)}(r?xt:wt)(e,t)})}},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==Le?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){if(e.getElementsByTagName){return e.getElementsByTagName(t)}else{return[]}},clone:ht,triggerHandler:function(e,t,n){var r,i,a;var o=t.type||t;var s=$t(e);var l=s&&s.events;var u=l&&l[o];if(u){r={preventDefault:function(){this.defaultPrevented=true},isDefaultPrevented:function(){return this.defaultPrevented===true},stopImmediatePropagation:function(){this.immediatePropagationStopped=true},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===true},stopPropagation:P,type:o,target:e};if(t.type){r=O(r,t)}i=ae(u);a=n?[r].concat(n):[r];k(i,function(t){if(!r.isImmediatePropagationStopped()){t.apply(e,a)}})}}},function(e,t){dt.prototype[t]=function(t,n,r){var i;for(var a=0,o=this.length;a<o;a++){if(V(i)){i=e(this[a],t,n,r);if(j(i)){i=p(i)}}else{kt(i,e(this[a],t,n,r))}}return j(i)?i:this};dt.prototype.bind=dt.prototype.on;dt.prototype.unbind=dt.prototype.off});function jt(){this.$get=function e(){return O(dt,{hasClass:function(e,t){if(e.attr)e=e[0];return bt(e,t)},addClass:function(e,t){if(e.attr)e=e[0];return xt(e,t)},removeClass:function(e,t){if(e.attr)e=e[0];return wt(e,t)}})}}function Rt(e,t){var n=e&&e.$$hashKey;if(n){if(typeof n==="function"){n=e.$$hashKey()}return n}var r=typeof e;if(r=="function"||r=="object"&&e!==null){n=e.$$hashKey=r+":"+(t||D)()}else{n=r+":"+e}return n}function Ft(e,t){if(t){var n=0;this.nextUid=function(){return++n}}k(e,this.put,this)}Ft.prototype={put:function(e,t){this[Rt(e,this.nextUid)]=t},get:function(e){return this[Rt(e,this.nextUid)]},remove:function(e){var t=this[e=Rt(e,this.nextUid)];delete this[e];return t}};var Ht=/^function\s*[^\(]*\(\s*([^\)]*)\)/m;var Ut=/,/;var qt=/^\s*(_?)(\S+?)\1\s*$/;var Lt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;var _t=r("$injector");function Bt(e){var t=e.toString().replace(Lt,""),n=t.match(Ht);if(n){return"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")"}return"fn"}function Yt(e,t,n){var r,i,a,o;if(typeof e==="function"){if(!(r=e.$inject)){r=[];if(e.length){if(t){if(!F(n)||!n){n=e.name||Bt(e)}throw _t("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n)}i=e.toString().replace(Lt,"");a=i.match(Ht);k(a[1].split(Ut),function(e){e.replace(qt,function(e,t,n){r.push(n)})})}e.$inject=r}}else if(q(e)){o=e.length-1;Pe(e[o],"fn");r=e.slice(0,o)}else{Pe(e,"fn",true)}return r}function Wt(e,t){t=t===true;var r={},i="Provider",a=[],o=new Ft([],true),s={$provide:{provider:f(p),factory:f(h),service:f(v),value:f(g),constant:f(m),decorator:$}},l=s.$injector=x(s,function(e,t){if(y.isString(t)){a.push(t)}throw _t("unpr","Unknown provider: {0}",a.join(" <- "))}),u={},c=u.$injector=x(u,function(e,t){var r=l.get(e+i,t);return c.invoke(r.$get,r,n,e)});k(w(e),function(e){c.invoke(e||P)}
1);return c;function f(e){return function(t,n){if(R(t)){k(t,S(e))}else{return e(t,n)}}}function p(e,t){Ne(e,"service");if(L(t)||q(t)){t=l.instantiate(t)}if(!t.$get){throw _t("pget","Provider '{0}' must define $get factory method.",e)}return s[e+i]=t}function d(e,t){return function n(){var r=c.invoke(t,this);if(V(r)){throw _t("undef","Provider '{0}' must return a value from $get factory method.",e)}return r}}function h(e,t,n){return p(e,{$get:n!==false?d(e,t):t})}function v(e,t){return h(e,["$injector",function(e){return e.instantiate(t)}])}function g(e,t){return h(e,I(t),false)}function m(e,t){Ne(e,"constant");s[e]=t;u[e]=t}function $(e,t){var n=l.get(e+i),r=n.$get;n.$get=function(){var e=c.invoke(r,n);return c.invoke(t,null,{$delegate:e})}}function w(e){var t=[],n;k(e,function(e){if(o.get(e))return;o.put(e,true);function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=l.get(r[0]);i[r[1]].apply(i,r[2])}}try{if(F(e)){n=b(e);t=t.concat(w(n.requires)).concat(n._runBlocks);r(n._invokeQueue);r(n._configBlocks)}else if(L(e)){t.push(l.invoke(e))}else if(q(e)){t.push(l.invoke(e))}else{Pe(e,"module")}}catch(t){if(q(e)){e=e[e.length-1]}if(t.message&&t.stack&&t.stack.indexOf(t.message)==-1){t=t.message+"\n"+t.stack}throw _t("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}});return t}function x(e,n){function o(t,i){if(e.hasOwnProperty(t)){if(e[t]===r){throw _t("cdep","Circular dependency found: {0}",t+" <- "+a.join(" <- "))}return e[t]}else{try{a.unshift(t);e[t]=r;return e[t]=n(t,i)}catch(n){if(e[t]===r){delete e[t]}throw n}finally{a.shift()}}}function l(e,n,r,i){if(typeof r==="string"){i=r;r=null}var a=[],s=Wt.$$annotate(e,t,i),l,u,c;for(u=0,l=s.length;u<l;u++){c=s[u];if(typeof c!=="string"){throw _t("itkn","Incorrect injection token! Expected service name as string, got {0}",c)}a.push(r&&r.hasOwnProperty(c)?r[c]:o(c,i))}if(q(e)){e=e[l]}return e.apply(n,a)}function u(e,t,n){var r=Object.create((q(e)?e[e.length-1]:e).prototype||null);var i=l(e,r,t,n);return R(i)||L(i)?i:r}return{invoke:l,instantiate:u,get:o,annotate:Wt.$$annotate,has:function(t){return s.hasOwnProperty(t+i)||e.hasOwnProperty(t)}}}}Wt.$$annotate=Yt;function zt(){var e=true;this.disableAutoScrolling=function(){e=false};this.$get=["$window","$location","$rootScope",function(t,n,r){var i=t.document;function a(e){var t=null;Array.prototype.some.call(e,function(e){if(te(e)==="a"){t=e;return true}});return t}function o(){var e=l.yOffset;if(L(e)){e=e()}else if(J(e)){var n=e[0];var r=t.getComputedStyle(n);if(r.position!=="fixed"){e=0}else{e=n.getBoundingClientRect().bottom}}else if(!H(e)){e=0}return e}function s(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else{t.scrollTo(0,0)}}function l(){var e=n.hash(),t;if(!e)s(null);else if(t=i.getElementById(e))s(t);else if(t=a(i.getElementsByName(e)))s(t);else if(e==="top")s(null)}if(e){r.$watch(function e(){return n.hash()},function e(t,n){if(t===n&&t==="")return;Et(function(){r.$evalAsync(l)})})}return l}]}var Xt=r("$animate");var Gt=["$provide",function(e){this.$$selectors={};this.register=function(t,n){var r=t+"-animation";if(t&&t.charAt(0)!=".")throw Xt("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=r;e.factory(r,n)};this.classNameFilter=function(e){if(arguments.length===1){this.$$classNameFilter=e instanceof RegExp?e:null}return this.$$classNameFilter};this.$get=["$$q","$$asyncCallback","$rootScope",function(e,t,n){var r;function i(t){var r,i=e.defer();i.promise.$$cancelFn=function e(){r&&r()};n.$$postDigest(function e(){r=t(function e(){i.resolve()})});return i.promise}function a(e,t){var n=[],r=[];var i=je();k((e.attr("class")||"").split(/\s+/),function(e){i[e]=true});k(t,function(e,t){var a=i[t];if(e===false&&a){r.push(t)}else if(e===true&&!a){n.push(t)}});return n.length+r.length>0&&[n.length?n:null,r.length?r:null]}function o(e,t,n){for(var r=0,i=t.length;r<i;++r){var a=t[r];e[a]=n}}function s(){if(!r){r=e.defer();t(function(){r.resolve();r=null})}return r.promise}function l(e,t){if(y.isObject(t)){var n=O(t.from||{},t.to||{});e.css(n)}}return{animate:function(e,t,n){l(e,{from:t,to:n});return s()},enter:function(e,t,n,r){l(e,r);n?n.after(e):t.prepend(e);return s()},leave:function(e,t){l(e,t);e.remove();return s()},move:function(e,t,n,r){return this.enter(e,t,n,r)},addClass:function(e,t,n){return this.setClass(e,t,[],n)},$$addClassImmediately:function(e,t,n){e=p(e);t=!F(t)?q(t)?t.join(" "):"":t;k(e,function(e){xt(e,t)});l(e,n);return s()},removeClass:function(e,t,n){return this.setClass(e,[],t,n)},$$removeClassImmediately:function(e,t,n){e=p(e);t=!F(t)?q(t)?t.join(" "):"":t;k(e,function(e){wt(e,t)});l(e,n);return s()},setClass:function(e,t,n,r){var s=this;var l="$$animateClasses";var u=false;e=p(e);var c=e.data(l);if(!c){c={classes:{},options:r};u=true}else if(r&&c.options){c.options=y.extend(c.options||{},r)}var f=c.classes;t=q(t)?t:t.split(" ");n=q(n)?n:n.split(" ");o(f,t,true);o(f,n,false);
1if(u){c.promise=i(function(t){var n=e.data(l);e.removeData(l);if(n){var r=a(e,n.classes);if(r){s.$$setClassImmediately(e,r[0],r[1],n.options)}}t()});e.data(l,c)}return c.promise},$$setClassImmediately:function(e,t,n,r){t&&this.$$addClassImmediately(e,t);n&&this.$$removeClassImmediately(e,n);l(e,r);return s()},enabled:P,cancel:P}}]}];function Zt(){this.$get=["$$rAF","$timeout",function(e,t){return e.supported?function(t){return e(t)}:function(e){return t(e,0,false)}}]}function Kt(e,t,r,i){var a=this,o=t[0],s=e.location,l=e.history,u=e.setTimeout,c=e.clearTimeout,f={};a.isMock=false;var d=0;var h=[];a.$$completeOutstandingRequest=v;a.$$incOutstandingRequestCount=function(){d++};function v(e){try{e.apply(null,ue(arguments,1))}finally{d--;if(d===0){while(h.length){try{h.pop()()}catch(e){r.error(e)}}}}}function g(e){var t=e.indexOf("#");return t===-1?"":e.substr(t+1)}a.notifyWhenNoOutstandingRequests=function(e){k(m,function(e){e()});if(d===0){e()}else{h.push(e)}};var m=[],$;a.addPollFn=function(e){if(V($))y(100,u);m.push(e);return e};function y(e,t){(function n(){k(m,function(e){e()});$=t(n,e)})()}var b,w,x=s.href,C=t.find("base"),T=null;M();w=b;a.url=function(t,n,r){if(V(r)){r=null}if(s!==e.location)s=e.location;if(l!==e.history)l=e.history;if(t){var o=w===r;if(x===t&&(!i.history||o)){return a}var u=x&&Un(x)===Un(t);x=t;w=r;if(i.history&&(!u||!o)){l[n?"replaceState":"pushState"](r,"",t);M();w=b}else{if(!u){T=t}if(n){s.replace(t)}else if(!u){s.href=t}else{s.hash=g(t)}}return a}else{return T||s.href.replace(/%27/g,"'")}};a.state=function(){return b};var S=[],D=false;function E(){M();N()}function O(){try{return l.state}catch(e){}}var A=null;function M(){b=O();b=V(b)?null:b;if(oe(b,A)){b=A}A=b}function N(){if(x===a.url()&&w===b){return}x=a.url();w=b;k(S,function(e){e(a.url(),b)})}a.onUrlChange=function(t){if(!D){if(i.history)p(e).on("popstate",E);p(e).on("hashchange",E);D=true}S.push(t);return t};a.$$checkUrlChange=N;a.baseHref=function(){var e=C.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var I={};var j="";var R=a.baseHref();function H(e){try{return decodeURIComponent(e)}catch(t){return e}}a.cookies=function(e,t){var i,a,s,l,u;if(e){if(t===n){o.cookie=encodeURIComponent(e)+"=;path="+R+";expires=Thu, 01 Jan 1970 00:00:00 GMT"}else{if(F(t)){i=(o.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path="+R).length+1;if(i>4096){r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!")}}}}else{if(o.cookie!==j){j=o.cookie;a=j.split("; ");I={};for(l=0;l<a.length;l++){s=a[l];u=s.indexOf("=");if(u>0){e=H(s.substring(0,u));if(I[e]===n){I[e]=H(s.substring(u+1))}}}}return I}};a.defer=function(e,t){var n;d++;n=u(function(){delete f[n];v(e)},t||0);f[n]=true;return n};a.defer.cancel=function(e){if(f[e]){delete f[e];c(e);v(P);return true}return false}}function Qt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new Kt(e,r,t,n)}]}function Jt(){this.$get=function(){var e={};function t(t,n){if(t in e){throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t)}var i=0,a=O({},n,{id:t}),o={},s=n&&n.capacity||Number.MAX_VALUE,l={},u=null,c=null;return e[t]={put:function(e,t){if(s<Number.MAX_VALUE){var n=l[e]||(l[e]={key:e});f(n)}if(V(t))return;if(!(e in o))i++;o[e]=t;if(i>s){this.remove(c.key)}return t},get:function(e){if(s<Number.MAX_VALUE){var t=l[e];if(!t)return;f(t)}return o[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=l[e];if(!t)return;if(t==u)u=t.p;if(t==c)c=t.n;p(t.n,t.p);delete l[e]}delete o[e];i--},removeAll:function(){o={};i=0;l={};u=c=null},destroy:function(){o=null;a=null;l=null;delete e[t]},info:function(){return O({},a,{size:i})}};function f(e){if(e!=u){if(!c){c=e}else if(c==e){c=e.n}p(e.n,e.p);p(e,u);u=e;u.n=null}}function p(e,t){if(e!=t){if(e)e.p=t;if(t)t.n=e}}}t.info=function(){var t={};k(e,function(e,n){t[n]=e.info()});return t};t.get=function(t){return e[t]};return t}}function en(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var tn=r("$compile");nn.$inject=["$provide","$$sanitizeUriProvider"];function nn(e,r){var i={},a="Directive",s=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,l=/(([\w\-]+)(?:\:([^;]+))?;?)/,u=ee("ngSrc,ngSrcset,src,srcset"),c=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/;var f=/^(on[a-z]+|formaction)$/;function h(e,t){var n=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/;var r={};k(e,function(e,i){var a=e.match(n);if(!a){throw tn("iscp","Invalid isolate scope definition for directive '{0}'."+" Definition: {... {1}: '{2}' ...}",t,i,e)}r[i]={mode:a[1][0],collection:a[2]==="*",optional:a[3]==="?",attrName:a[4]||i}});return r}function v(e){var t=e.charAt(0);if(!t||t!==o(t)){throw tn("baddir","Directive name '{0}
1' is invalid. The first character must be a lowercase letter",e)}return e}this.directive=function t(n,r){Ne(n,"directive");if(F(n)){v(n);Me(r,"directiveFactory");if(!i.hasOwnProperty(n)){i[n]=[];e.factory(n+a,["$injector","$exceptionHandler",function(e,t){var r=[];k(i[n],function(i,a){try{var o=e.invoke(i);if(L(o)){o={compile:I(o)}}else if(!o.compile&&o.link){o.compile=I(o.link)}o.priority=o.priority||0;o.index=a;o.name=o.name||n;o.require=o.require||o.controller&&o.name;o.restrict=o.restrict||"EA";if(R(o.scope)){o.$$isolateBindings=h(o.scope,o.name)}r.push(o)}catch(e){t(e)}});return r}])}i[n].push(r)}else{k(n,S(t))}return this};this.aHrefSanitizationWhitelist=function(e){if(j(e)){r.aHrefSanitizationWhitelist(e);return this}else{return r.aHrefSanitizationWhitelist()}};this.imgSrcSanitizationWhitelist=function(e){if(j(e)){r.imgSrcSanitizationWhitelist(e);return this}else{return r.imgSrcSanitizationWhitelist()}};var g=true;this.debugInfoEnabled=function(e){if(j(e)){g=e;return this}return g};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(e,r,h,v,m,$,y,b,w,x,C){var T=function(e,t){if(t){var n=Object.keys(t);var r,i,a;for(r=0,i=n.length;r<i;r++){a=n[r];this[a]=t[a]}}else{this.$attr={}}this.$$element=e};T.prototype={$normalize:an,$addClass:function(e){if(e&&e.length>0){x.addClass(this.$$element,e)}},$removeClass:function(e){if(e&&e.length>0){x.removeClass(this.$$element,e)}},$updateClass:function(e,t){var n=ln(e,t);if(n&&n.length){x.addClass(this.$$element,n)}var r=ln(t,e);if(r&&r.length){x.removeClass(this.$$element,r)}},$set:function(e,t,r,i){var a=this.$$element[0],o=Nt(a,e),s=It(a,e),l=e,u;if(o){this.$$element.prop(e,t);i=o}else if(s){this[s]=t;l=s}this[e]=t;if(i){this.$attr[e]=i}else{i=this.$attr[e];if(!i){this.$attr[e]=i=De(e,"-")}}u=te(this.$$element);if(u==="a"&&e==="href"||u==="img"&&e==="src"){this[e]=t=C(t,e==="src")}else if(u==="img"&&e==="srcset"){var c="";var f=K(t);var p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/;var d=/\s/.test(f)?p:/(,)/;var v=f.split(d);var g=Math.floor(v.length/2);for(var m=0;m<g;m++){var $=m*2;c+=C(K(v[$]),true);c+=" "+K(v[$+1])}var y=K(v[m*2]).split(/\s/);c+=C(K(y[0]),true);if(y.length===2){c+=" "+K(y[1])}this[e]=t=c}if(r!==false){if(t===null||t===n){this.$$element.removeAttr(i)}else{this.$$element.attr(i,t)}}var b=this.$$observers;b&&k(b[l],function(e){try{e(t)}catch(e){h(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=je()),i=r[e]||(r[e]=[]);i.push(t);y.$evalAsync(function(){if(!i.$$inter&&n.hasOwnProperty(e)){t(n[e])}});return function(){re(i,t)}}};function S(e,t){try{e.addClass(t)}catch(e){}}var D=r.startSymbol(),E=r.endSymbol(),A=D=="{{"||E=="}}"?N:function e(t){return t.replace(/\{\{/g,D).replace(/}}/g,E)},I=/^ngAttr[A-Z]/;V.$$addBindingInfo=g?function e(t,n){var r=t.data("$binding")||[];if(q(n)){r=r.concat(n)}else{r.push(n)}t.data("$binding",r)}:P;V.$$addBindingClass=g?function e(t){S(t,"ng-binding")}:P;V.$$addScopeInfo=g?function e(t,n,r,i){var a=r?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(a,n)}:P;V.$$addScopeClass=g?function e(t,n){S(t,n?"ng-isolate-scope":"ng-scope")}:P;return V;function V(e,t,n,r,i){if(!(e instanceof p)){e=p(e)}k(e,function(t,n){if(t.nodeType==He&&t.nodeValue.match(/\S+/)){e[n]=p(t).wrap("<span></span>").parent()[0]}});var a=H(e,t,e,n,r,i);V.$$addScopeClass(e);var o=null;return function t(n,r,i){Me(n,"scope");i=i||{};var s=i.parentBoundTranscludeFn,l=i.transcludeControllers,u=i.futureParentElement;if(s&&s.$$boundTransclude){s=s.$$boundTransclude}if(!o){o=j(u)}var c;if(o!=="html"){c=p(ae(o,p("<div>").append(e).html()))}else if(r){c=Ot.clone.call(e)}else{c=e}if(l){for(var f in l){c.data("$"+f+"Controller",l[f].instance)}}V.$$addScopeInfo(c,n);if(r)r(c,n);if(a)a(n,c,c,s);return c}}function j(e){var t=e&&e[0];if(!t){return"html"}else{return te(t)!=="foreignobject"&&t.toString().match(/SVG/)?"svg":"html"}}function H(e,t,r,i,a,o){var s=[],l,u,c,f,d,h,v;for(var g=0;g<e.length;g++){l=new T;u=_(e[g],[],l,g===0?i:n,a);c=u.length?z(u,e[g],l,t,r,null,[],[],o):null;if(c&&c.scope){V.$$addScopeClass(l.$$element)}d=c&&c.terminal||!(f=e[g].childNodes)||!f.length?null:H(f,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t);if(c||d){s.push(g,c,d);h=true;v=v||c}o=null}return h?m:null;function m(e,r,i,a){var o,l,u,c,f,d,h,g;var m;if(v){var $=r.length;m=new Array($);for(f=0;f<s.length;f+=3){h=s[f];m[h]=r[h]}}else{m=r}for(f=0,d=s.length;f<d;){u=m[s[f++]];o=s[f++];l=s[f++];if(o){if(o.scope){c=e.$new();V.$$addScopeInfo(p(u),c)}else{c=e}if(o.transcludeOnThisElement){g=U(e,o.transclude,a,o.elementTranscludeOnThisElement)}else if(!o.templateOnThisElement&&a){g=a}else if(!a&&t){g=U(e,t)}else{g=null}o(l,c,u,i,g)}else if(l){l(e,u.childNodes,n,a)}}}}
1function U(e,t,n,r){var i=function(r,i,a,o,s){if(!r){r=e.$new(false,s);r.$$transcluded=true}return t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:a,futureParentElement:o})};return i}function _(e,t,n,r,i){var a=e.nodeType,o=n.$attr,u,c;switch(a){case Re:G(t,an(te(e)),"E",r,i);for(var f,p,d,h,v,g,m=e.attributes,$=0,y=m&&m.length;$<y;$++){var b=false;var w=false;f=m[$];p=f.name;v=K(f.value);h=an(p);if(g=I.test(h)){p=p.replace(rn,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()})}var x=h.replace(/(Start|End)$/,"");if(Z(x)){if(h===x+"Start"){b=p;w=p.substr(0,p.length-5)+"end";p=p.substr(0,p.length-6)}}d=an(p.toLowerCase());o[d]=p;if(g||!n.hasOwnProperty(d)){n[d]=v;if(Nt(e,d)){n[d]=true}}le(e,t,v,d,g);G(t,d,"A",r,i,b,w)}c=e.className;if(R(c)){c=c.animVal}if(F(c)&&c!==""){while(u=l.exec(c)){d=an(u[2]);if(G(t,d,"C",r,i)){n[d]=K(u[3])}c=c.substr(u.index+u[0].length)}}break;case He:ie(t,e.nodeValue);break;case Ue:try{u=s.exec(e.nodeValue);if(u){d=an(u[1]);if(G(t,d,"M",r,i)){n[d]=K(u[2])}}}catch(e){}break}t.sort(ee);return t}function B(e,t,n){var r=[];var i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e){throw tn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n)}if(e.nodeType==Re){if(e.hasAttribute(t))i++;if(e.hasAttribute(n))i--}r.push(e);e=e.nextSibling}while(i>0)}else{r.push(e)}return p(r)}function W(e,t,n){return function(r,i,a,o,s){i=B(i[0],t,n);return e(r,i,a,o,s)}}function z(e,i,a,o,s,l,u,f,d){d=d||{};var v=-Number.MAX_VALUE,g,y=d.controllerDirectives,b,w=d.newIsolateScopeDirective,x=d.templateDirective,C=d.nonTlbTranscludeDirective,S=false,D=false,E=d.hasElementTranscludeDirective,O=a.$$element=p(i),M,P,N,I=l,j=o,H,U;for(var z=0,G=e.length;z<G;z++){M=e[z];var Z=M.$$start;var ee=M.$$end;if(Z){O=B(i,Z,ee)}N=n;if(v>M.priority){break}if(U=M.scope){if(!M.templateUrl){if(R(U)){ne("new/isolated scope",w||g,M,O);w=M}else{ne("new/isolated scope",w,M,O)}}g=g||M}P=M.name;if(!M.templateUrl&&M.controller){U=M.controller;y=y||{};ne("'"+P+"' controller",y[P],M,O);y[P]=M}if(U=M.transclude){S=true;if(!M.$$tlb){ne("transclusion",C,M,O);C=M}if(U=="element"){E=true;v=M.priority;N=O;O=a.$$element=p(t.createComment(" "+P+": "+a[P]+" "));i=O[0];ce(s,ue(N),i);j=V(N,o,v,I&&I.name,{nonTlbTranscludeDirective:C})}else{N=p(ht(i)).contents();O.empty();j=V(N,o)}}if(M.template){D=true;ne("template",x,M,O);x=M;U=L(M.template)?M.template(O,a):M.template;U=A(U);if(M.replace){I=M;if(ut(U)){N=[]}else{N=un(ae(M.templateNamespace,K(U)))}i=N[0];if(N.length!=1||i.nodeType!==Re){throw tn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",P,"")}ce(s,O,i);var te={$attr:{}};var re=_(i,[],te);var ie=e.splice(z+1,e.length-(z+1));if(w){X(re)}e=e.concat(re).concat(ie);Q(a,te);G=e.length}else{O.html(U)}}if(M.templateUrl){D=true;ne("template",x,M,O);x=M;if(M.replace){I=M}de=J(e.splice(z,e.length-z),O,a,s,S&&j,u,f,{controllerDirectives:y,newIsolateScopeDirective:w,templateDirective:x,nonTlbTranscludeDirective:C});G=e.length}else if(M.compile){try{H=M.compile(O,a,j);if(L(H)){se(null,H,Z,ee)}else if(H){se(H.pre,H.post,Z,ee)}}catch(e){h(e,he(O))}}if(M.terminal){de.terminal=true;v=Math.max(v,M.priority)}}de.scope=g&&g.scope===true;de.transcludeOnThisElement=S;de.elementTranscludeOnThisElement=E;de.templateOnThisElement=D;de.transclude=j;d.hasElementTranscludeDirective=E;return de;function se(e,t,n,r){if(e){if(n)e=W(e,n,r);e.require=M.require;e.directiveName=P;if(w===M||M.$$isolateScope){e=fe(e,{isolateScope:true})}u.push(e)}if(t){if(n)t=W(t,n,r);t.require=M.require;t.directiveName=P;if(w===M||M.$$isolateScope){t=fe(t,{isolateScope:true})}f.push(t)}}function le(e,t,n,r){var i,a="data",o=false;var s=n;var l;if(F(t)){l=t.match(c);t=t.substring(l[0].length);if(l[3]){if(l[1])l[3]=null;else l[1]=l[3]}if(l[1]==="^"){a="inheritedData"}else if(l[1]==="^^"){a="inheritedData";s=n.parent()}if(l[2]==="?"){o=true}i=null;if(r&&a==="data"){if(i=r[t]){i=i.instance}}i=i||s[a]("$"+t+"Controller");if(!i&&!o){throw tn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,e)}return i||null}else if(q(t)){i=[];k(t,function(t){i.push(le(e,t,n,r))})}return i}function de(e,t,o,s,l){var c,d,h,v,g,C,S,D,O;if(i===o){O=a;D=a.$$element}else{D=p(o);O=new T(D,a)}if(w){g=t.$new(true)}if(l){S=N;
1S.$$boundTransclude=l}if(y){b={};C={};k(y,function(e){var n={$scope:e===w||e.$$isolateScope?g:t,$element:D,$attrs:O,$transclude:S},r;v=e.controller;if(v=="@"){v=O[e.name]}r=$(v,n,true,e.controllerAs);C[e.name]=r;if(!E){D.data("$"+e.name+"Controller",r.instance)}b[e.name]=r})}if(w){V.$$addScopeInfo(D,g,true,!(x&&(x===w||x===w.$$originalDirective)));V.$$addScopeClass(D,true);var A=b&&b[w.name];var M=g;if(A&&A.identifier&&w.bindToController===true){M=A.instance}k(g.$$isolateBindings=w.$$isolateBindings,function(e,n){var i=e.attrName,a=e.optional,o=e.mode,s,l,u,c;switch(o){case"@":O.$observe(i,function(e){M[n]=e});O.$$observers[i].$$scope=t;if(O[i]){M[n]=r(O[i])(t)}break;case"=":if(a&&!O[i]){return}l=m(O[i]);if(l.literal){c=oe}else{c=function(e,t){return e===t||e!==e&&t!==t}}u=l.assign||function(){s=M[n]=l(t);throw tn("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",O[i],w.name)};s=M[n]=l(t);var f=function e(r){if(!c(r,M[n])){if(!c(r,s)){M[n]=r}else{u(t,r=M[n])}}return s=r};f.$stateful=true;var p;if(e.collection){p=t.$watchCollection(O[i],f)}else{p=t.$watch(m(O[i],f),null,l.literal)}g.$on("$destroy",p);break;case"&":l=m(O[i]);M[n]=function(e){return l(t,e)};break}})}if(b){k(b,function(e){e()});b=null}for(c=0,d=u.length;c<d;c++){h=u[c];pe(h,h.isolateScope?g:t,D,O,h.require&&le(h.directiveName,h.require,D,C),S)}var P=t;if(w&&(w.template||w.templateUrl===null)){P=g}e&&e(P,o.childNodes,n,l);for(c=f.length-1;c>=0;c--){h=f[c];pe(h,h.isolateScope?g:t,D,O,h.require&&le(h.directiveName,h.require,D,C),S)}function N(e,t,r){var i;if(!Y(e)){r=t;t=e;e=n}if(E){i=C}if(!r){r=E?D.parent():D}return l(e,t,i,r,P)}}}function X(e){for(var t=0,n=e.length;t<n;t++){e[t]=M(e[t],{$$isolateScope:true})}}function G(t,r,o,s,l,u,c){if(r===l)return null;var f=null;if(i.hasOwnProperty(r)){for(var p,d=e.get(r+a),v=0,g=d.length;v<g;v++){try{p=d[v];if((s===n||s>p.priority)&&p.restrict.indexOf(o)!=-1){if(u){p=M(p,{$$start:u,$$end:c})}t.push(p);f=p}}catch(e){h(e)}}}return f}function Z(t){if(i.hasOwnProperty(t)){for(var n,r=e.get(t+a),o=0,s=r.length;o<s;o++){n=r[o];if(n.multiElement){return true}}}return false}function Q(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;k(e,function(r,i){if(i.charAt(0)!="$"){if(t[i]&&t[i]!==r){r+=(i==="style"?";":" ")+t[i]}e.$set(i,r,true,n[i])}});k(t,function(t,a){if(a=="class"){S(i,t);e["class"]=(e["class"]?e["class"]+" ":"")+t}else if(a=="style"){i.attr("style",i.attr("style")+";"+t);e["style"]=(e["style"]?e["style"]+";":"")+t}else if(a.charAt(0)!="$"&&!e.hasOwnProperty(a)){e[a]=t;r[a]=n[a]}})}function J(e,t,n,r,i,a,o,s){var l=[],u,c,f=t[0],d=e.shift(),h=M(d,{templateUrl:null,transclude:null,replace:null,$$originalDirective:d}),g=L(d.templateUrl)?d.templateUrl(t,n):d.templateUrl,m=d.templateNamespace;t.empty();v(w.getTrustedResourceUrl(g)).then(function(v){var $,y,b,w;v=A(v);if(d.replace){if(ut(v)){b=[]}else{b=un(ae(m,K(v)))}$=b[0];if(b.length!=1||$.nodeType!==Re){throw tn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",d.name,g)}y={$attr:{}};ce(r,t,$);var x=_($,[],y);if(R(d.scope)){X(x)}e=x.concat(e);Q(n,y)}else{$=f;t.html(v)}e.unshift(h);u=z(e,$,n,i,t,d,a,o,s);k(r,function(e,n){if(e==$){r[n]=t[0]}});c=H(t[0].childNodes,i);while(l.length){var C=l.shift(),T=l.shift(),D=l.shift(),E=l.shift(),O=t[0];if(C.$$destroyed)continue;if(T!==f){var M=T.className;if(!(s.hasElementTranscludeDirective&&d.replace)){O=ht($)}ce(D,p(T),O);S(p(O),M)}if(u.transcludeOnThisElement){w=U(C,u.transclude,E)}else{w=E}u(c,C,O,r,w)}l=null});return function e(t,n,r,i,a){var o=a;if(n.$$destroyed)return;if(l){l.push(n,r,i,o)}else{if(u.transcludeOnThisElement){o=U(n,u.transclude,a)}u(c,n,r,i,o)}}}function ee(e,t){var n=t.priority-e.priority;if(n!==0)return n;if(e.name!==t.name)return e.name<t.name?-1:1;return e.index-t.index}function ne(e,t,n,r){if(t){throw tn("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",t.name,n.name,e,he(r))}}function ie(e,t){var n=r(t,true);if(n){e.push({priority:0,compile:function e(t){var r=t.parent(),i=!!r.length;if(i)V.$$addBindingClass(r);return function e(t,r){var a=r.parent();if(!i)V.$$addBindingClass(a);V.$$addBindingInfo(a,n.expressions);
1t.$watch(n,function e(t){r[0].nodeValue=t})}}})}}function ae(e,n){e=o(e||"html");switch(e){case"svg":case"math":var r=t.createElement("div");r.innerHTML="<"+e+">"+n+"</"+e+">";return r.childNodes[0].childNodes;default:return n}}function se(e,t){if(t=="srcdoc"){return w.HTML}var n=te(e);if(t=="xlinkHref"||n=="form"&&t=="action"||n!="img"&&(t=="src"||t=="ngSrc")){return w.RESOURCE_URL}}function le(e,t,n,i,a){var o=se(e,i);a=u[i]||a;var s=r(n,true,o,a);if(!s)return;if(i==="multiple"&&te(e)==="select"){throw tn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",he(e))}t.push({priority:100,compile:function(){return{pre:function e(t,l,u){var c=u.$$observers||(u.$$observers={});if(f.test(i)){throw tn("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the "+"ng- versions (such as ng-click instead of onclick) instead.")}var p=u[i];if(p!==n){s=p&&r(p,true,o,a);n=p}if(!s)return;u[i]=s(t);(c[i]||(c[i]=[])).$$inter=true;(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,function e(t,n){if(i==="class"&&t!=n){u.$updateClass(t,n)}else{u.$set(i,t)}})}}}})}function ce(e,n,r){var i=n[0],a=n.length,o=i.parentNode,s,l;if(e){for(s=0,l=e.length;s<l;s++){if(e[s]==i){e[s++]=r;for(var u=s,c=u+a-1,f=e.length;u<f;u++,c++){if(c<f){e[u]=e[c]}else{delete e[u]}}e.length-=a-1;if(e.context===i){e.context=r}break}}}if(o){o.replaceChild(r,i)}var h=t.createDocumentFragment();h.appendChild(i);p(r).data(p(i).data());if(!d){delete p.cache[i[p.expando]]}else{Oe=true;d.cleanData([i])}for(var v=1,g=n.length;v<g;v++){var m=n[v];p(m).remove();h.appendChild(m);delete n[v]}n[0]=r;n.length=1}function fe(e,t){return O(function(){return e.apply(null,arguments)},e,t)}function pe(e,t,n,r,i,a){try{e(t,n,r,i,a)}catch(e){h(e,he(n))}}}]}var rn=/^((?:x|data)[\:\-_])/i;function an(e){return rt(e.replace(rn,""))}function on(e,t,n,r){}function sn(e,t,n,r,i){}function ln(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var a=0;a<r.length;a++){var o=r[a];for(var s=0;s<i.length;s++){if(o==i[s])continue e}n+=(n.length>0?" ":"")+o}return n}function un(e){e=p(e);var t=e.length;if(t<=1){return e}while(t--){var n=e[t];if(n.nodeType===Ue){v.call(e,t,1)}}return e}var cn=r("$controller");function fn(){var e={},t=false,i=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,n){Ne(t,"controller");if(R(t)){O(e,t)}else{e[t]=n}};this.allowGlobals=function(){t=true};this.$get=["$injector","$window",function(a,o){return function(r,l,u,c){var f,p,d,h;u=u===true;if(c&&F(c)){h=c}if(F(r)){p=r.match(i);if(!p){throw cn("ctrlfmt","Badly formed controller string '{0}'. "+"Must match `__name__ as __id__` or `__name__`.",r)}d=p[1],h=h||p[3];r=e.hasOwnProperty(d)?e[d]:Ie(l.$scope,d,true)||(t?Ie(o,d,true):n);Pe(r,d,true)}if(u){var v=(q(r)?r[r.length-1]:r).prototype;f=Object.create(v||null);if(h){s(l,h,f,d||r.name)}return O(function(){a.invoke(r,f,l,d);return f},{instance:f,identifier:h})}f=a.instantiate(r,l,d);if(h){s(l,h,f,d||r.name)}return f};function s(e,t,n,i){if(!(e&&R(e.$scope))){throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t)}e.$scope[t]=n}}]}function pn(){this.$get=["$window",function(e){return p(e.document)}]}function dn(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var hn="application/json";var vn={"Content-Type":hn+";charset=utf-8"};var gn=/^\[|^\{(?!\{)/;var mn={"[":/]$/,"{":/}$/};var $n=/^\)\]\}',?\n/;function yn(e,t){if(F(e)){var n=e.replace($n,"").trim();if(n){var r=t("Content-Type");if(r&&r.indexOf(hn)===0||bn(n)){e=de(n)}}}return e}function bn(e){var t=e.match(gn);return t&&mn[t[0]].test(e)}function wn(e){var t=je(),n,r,i;if(!e)return t;k(e.split("\n"),function(e){i=e.indexOf(":");n=o(K(e.substr(0,i)));r=K(e.substr(i+1));if(n){t[n]=t[n]?t[n]+", "+r:r}});return t}function xn(e){var t=R(e)?e:n;return function(n){if(!t)t=wn(e);if(n){var r=t[o(n)];if(r===void 0){r=null}return r}return t}}function kn(e,t,n,r){if(L(r))return r(e,t,n);k(r,function(r){e=r(e,t,n)});return e}function Cn(e){return 200<=e&&e<300}function Tn(){var e=this.defaults={transformResponse:[yn],transformRequest:[function(e){return R(e)&&!W
1(e)&&!X(e)&&!z(e)?pe(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ae(vn),put:ae(vn),patch:ae(vn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"};var t=false;this.useApplyAsync=function(e){if(j(e)){t=!!e;return this}return t};var i=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,s,u,c,f,p){var d=u("$http");var h=[];k(i,function(e){h.unshift(F(e)?p.get(e):p.invoke(e))});function v(t){if(!y.isObject(t)){throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",t)}var i=O({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse},t);i.headers=g(t);i.method=l(i.method);var a=function(t){var r=t.headers;var i=kn(t.data,xn(r),n,t.transformRequest);if(V(i)){k(r,function(e,t){if(o(t)==="content-type"){delete r[t]}})}if(V(t.withCredentials)&&!V(e.withCredentials)){t.withCredentials=e.withCredentials}return $(t,i).then(d,d)};var s=[a,n];var u=f.when(i);k(h,function(e){if(e.request||e.requestError){s.unshift(e.request,e.requestError)}if(e.response||e.responseError){s.push(e.response,e.responseError)}});while(s.length){var c=s.shift();var p=s.shift();u=u.then(c,p)}u.success=function(e){Pe(e,"fn");u.then(function(t){e(t.data,t.status,t.headers,i)});return u};u.error=function(e){Pe(e,"fn");u.then(null,function(t){e(t.data,t.status,t.headers,i)});return u};return u;function d(e){var t=O({},e);if(!e.data){t.data=e.data}else{t.data=kn(e.data,e.headers,e.status,i.transformResponse)}return Cn(e.status)?t:f.reject(t)}function v(e){var t,n={};k(e,function(e,r){if(L(e)){t=e();if(t!=null){n[r]=t}}else{n[r]=e}});return n}function g(t){var n=e.headers,r=O({},t.headers),i,a,s;n=O({},n.common,n[o(t.method)]);e:for(i in n){a=o(i);for(s in r){if(o(s)===a){continue e}}r[i]=n[i]}return v(r)}}v.pendingRequests=[];g("get","delete","head","jsonp");m("post","put","patch");v.defaults=e;return v;function g(e){k(arguments,function(e){v[e]=function(t,n){return v(O(n||{},{method:e,url:t}))}})}function m(e){k(arguments,function(e){v[e]=function(t,n,r){return v(O(r||{},{method:e,url:t,data:n}))}})}function $(r,i){var o=f.defer(),l=o.promise,u,p,h=r.headers,g=b(r.url,r.params);v.pendingRequests.push(r);l.then(x,x);if((r.cache||e.cache)&&r.cache!==false&&(r.method==="GET"||r.method==="JSONP")){u=R(r.cache)?r.cache:R(e.cache)?e.cache:d}if(u){p=u.get(g);if(j(p)){if(Z(p)){p.then(w,w)}else{if(q(p)){y(p[1],p[0],ae(p[2]),p[3])}else{y(p,200,{},"OK")}}}else{u.put(g,l)}}if(V(p)){var m=Ur(r.url)?s.cookies()[r.xsrfCookieName||e.xsrfCookieName]:n;if(m){h[r.xsrfHeaderName||e.xsrfHeaderName]=m}a(r.method,g,i,$,h,r.timeout,r.withCredentials,r.responseType)}return l;function $(e,n,r,i){if(u){if(Cn(e)){u.put(g,[e,n,wn(r),i])}else{u.remove(g)}}function a(){y(n,e,r,i)}if(t){c.$applyAsync(a)}else{a();if(!c.$$phase)c.$apply()}}function y(e,t,n,i){t=Math.max(t,0);(Cn(t)?o.resolve:o.reject)({data:e,status:t,headers:xn(n),config:r,statusText:i})}function w(e){y(e.data,e.status,ae(e.headers()),e.statusText)}function x(){var e=v.pendingRequests.indexOf(r);if(e!==-1)v.pendingRequests.splice(e,1)}}function b(e,t){if(!t)return e;var n=[];T(t,function(e,t){if(e===null||V(e))return;if(!q(e))e=[e];k(e,function(e){if(R(e)){if(U(e)){e=e.toISOString()}else{e=pe(e)}}n.push(ye(t)+"="+ye(e))})});if(n.length>0){e+=(e.indexOf("?")==-1?"?":"&")+n.join("&")}return e}}]}function Sn(){return new e.XMLHttpRequest}function Dn(){this.$get=["$browser","$window","$document",function(e,t,n){return En(e,Sn,e.defer,t.angular.callbacks,n[0])}]}function En(e,t,r,i,a){return function(a,l,u,c,f,p,d,h){e.$$incOutstandingRequestCount();l=l||e.url();if(o(a)=="jsonp"){var v="_"+(i.counter++).toString(36);i[v]=function(e){i[v].data=e;i[v].called=true};var g=s(l.replace("JSON_CALLBACK","angular.callbacks."+v),v,function(e,t){w(c,e,i[v].data,"",t);i[v]=P})}else{var m=t();m.open(a,l,true);k(f,function(e,t){if(j(e)){m.setRequestHeader(t,e)}});m.onload=function e(){var t=m.statusText||"";var n="response"in m?m.response:m.responseText;var r=m.status===1223?204:m.status;if(r===0){r=n?200:Hr(l).protocol=="file"?404:0}w(c,r,n,m.getAllResponseHeaders(),t)};var $=function(){w(c,-1,null,null,"")};m.onerror=$;m.onabort=$;if(d){m.withCredentials=true}if(h){try{m.responseType=h}catch(e){if(h!=="json"){throw e}}}m.send(u||null)}if(p>0){var y=r(b,p)}else if(Z(p)){p.then(b)}function b(){g&&g();m&&m.abort()}
1function w(t,i,a,o,s){if(y!==n){r.cancel(y)}g=m=null;t(i,a,o,s);e.$$completeOutstandingRequest(P)}};function s(e,t,n){var r=a.createElement("script"),o=null;r.type="text/javascript";r.src=e;r.async=true;o=function(e){Ke(r,"load",o);Ke(r,"error",o);a.body.removeChild(r);r=null;var s=-1;var l="unknown";if(e){if(e.type==="load"&&!i[t].called){e={type:"error"}}l=e.type;s=e.type==="error"?404:200}if(n){n(s,l)}};Ze(r,"load",o);Ze(r,"error",o);a.body.appendChild(r);return o}}var On=r("$interpolate");function An(){var e="{{";var t="}}";this.startSymbol=function(t){if(t){e=t;return this}else{return e}};this.endSymbol=function(e){if(e){t=e;return this}else{return t}};this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){var a=e.length,o=t.length,s=new RegExp(e.replace(/./g,u),"g"),l=new RegExp(t.replace(/./g,u),"g");function u(e){return"\\\\\\"+e}function c(u,c,f,p){p=!!p;var d,h,v=0,g=[],m=[],$=u.length,y,b=[],w=[];while(v<$){if((d=u.indexOf(e,v))!=-1&&(h=u.indexOf(t,d+a))!=-1){if(v!==d){b.push(T(u.substring(v,d)))}y=u.substring(d+a,h);g.push(y);m.push(n(y,S));v=h+o;w.push(b.length);b.push("")}else{if(v!==$){b.push(T(u.substring(v)))}break}}if(f&&b.length>1){throw On("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows "+"interpolations that concatenate multiple expressions when a trusted value is "+"required.  See http://docs.angularjs.org/api/ng.$sce",u)}if(!c||g.length){var x=function(e){for(var t=0,n=g.length;t<n;t++){if(p&&V(e[t]))return;b[w[t]]=e[t]}return b.join("")};var k=function(e){return f?i.getTrusted(f,e):i.valueOf(e)};var C=function(e){if(e==null){return""}switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=pe(e)}return e};return O(function e(t){var n=0;var i=g.length;var a=new Array(i);try{for(;n<i;n++){a[n]=m[n](t)}return x(a)}catch(e){var o=On("interr","Can't interpolate: {0}\n{1}",u,e.toString());r(o)}},{exp:u,expressions:g,$$watchDelegate:function(e,t,n){var r;return e.$watchGroup(m,function n(i,a){var o=x(i);if(L(t)){t.call(this,o,i!==a?r:o,e)}r=o},n)}})}function T(n){return n.replace(s,e).replace(l,t)}function S(e){try{e=k(e);return p&&!j(e)?e:C(e)}catch(e){var t=On("interr","Can't interpolate: {0}\n{1}",u,e.toString());r(t)}}}c.startSymbol=function(){return e};c.endSymbol=function(){return t};return c}]}function Mn(){this.$get=["$rootScope","$window","$q","$$q",function(e,t,n,r){var i={};function a(a,o,s,l){var u=t.setInterval,c=t.clearInterval,f=0,p=j(l)&&!l,d=(p?r:n).defer(),h=d.promise;s=j(s)?s:0;h.then(null,null,a);h.$$intervalId=u(function t(){d.notify(f++);if(s>0&&f>=s){d.resolve(f);c(h.$$intervalId);delete i[h.$$intervalId]}if(!p)e.$apply()},o);i[h.$$intervalId]=d;return h}a.cancel=function(e){if(e&&e.$$intervalId in i){i[e.$$intervalId].reject("canceled");t.clearInterval(e.$$intervalId);delete i[e.$$intervalId];return true}return false};return a}]}function Pn(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(e){if(e===1){return"one"}return"other"}}}}var Nn=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,In={http:80,https:443,ftp:21};var Vn=r("$location");function jn(e){var t=e.split("/"),n=t.length;while(n--){t[n]=$e(t[n])}return t.join("/")}function Rn(e,t){var n=Hr(e);t.$$protocol=n.protocol;t.$$host=n.hostname;t.$$port=A(n.port)||In[n.protocol]||null}function Fn(e,t){var n=e.charAt(0)!=="/";if(n){e="/"+e}var r=Hr(e);t.$$path=decodeURIComponent(n&&r.pathname.charAt(0)==="/"?r.pathname.substring(1):r.pathname);t.$$search=ge(r.search);t.$$hash=decodeURIComponent(r.hash);if(t.$$path&&t.$$path.charAt(0)!="/"){t.$$path="/"+t.$$path}}function Hn(e,t){if(t.indexOf(e)===0){return t.substr(e.length)}}function Un(e){var t=e.indexOf("#");return t==-1?e:e.substr(0,t)}function qn(e){return e.replace(/(#.+)|#$/,"$1")}function Ln(e){return e.substr(0,Un(e).lastIndexOf("/")+1)}function _n(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Bn(e,t){this.$$html5=true;t=t||"";var r=Ln(e);Rn(e,this);this.$$parse=function(e){var t=Hn(r,e);if(!F(t)){throw Vn("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,r)}Fn(t,this);if(!this.$$path){this.$$path="/"}this.$$compose()};
1this.$$compose=function(){var e=me(this.$$search),t=this.$$hash?"#"+$e(this.$$hash):"";this.$$url=jn(this.$$path)+(e?"?"+e:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$parseLinkUrl=function(i,a){if(a&&a[0]==="#"){this.hash(a.slice(1));return true}var o,s;var l;if((o=Hn(e,i))!==n){s=o;if((o=Hn(t,o))!==n){l=r+(Hn("/",o)||o)}else{l=e+s}}else if((o=Hn(r,i))!==n){l=r+o}else if(r==i+"/"){l=r}if(l){this.$$parse(l)}return!!l}}function Yn(e,t){var n=Ln(e);Rn(e,this);this.$$parse=function(r){var i=Hn(e,r)||Hn(n,r);var a;if(i.charAt(0)==="#"){a=Hn(t,i);if(V(a)){a=i}}else{a=this.$$html5?i:""}Fn(a,this);this.$$path=o(this.$$path,a,e);this.$$compose();function o(e,t,n){var r=/^\/[A-Z]:(\/.*)/;var i;if(t.indexOf(n)===0){t=t.replace(n,"")}if(r.exec(t)){return e}i=r.exec(e);return i?i[1]:e}};this.$$compose=function(){var n=me(this.$$search),r=this.$$hash?"#"+$e(this.$$hash):"";this.$$url=jn(this.$$path)+(n?"?"+n:"")+r;this.$$absUrl=e+(this.$$url?t+this.$$url:"")};this.$$parseLinkUrl=function(t,n){if(Un(e)==Un(t)){this.$$parse(t);return true}return false}}function Wn(e,t){this.$$html5=true;Yn.apply(this,arguments);var n=Ln(e);this.$$parseLinkUrl=function(r,i){if(i&&i[0]==="#"){this.hash(i.slice(1));return true}var a;var o;if(e==Un(r)){a=r}else if(o=Hn(n,r)){a=e+t+o}else if(n===r+"/"){a=n}if(a){this.$$parse(a)}return!!a};this.$$compose=function(){var n=me(this.$$search),r=this.$$hash?"#"+$e(this.$$hash):"";this.$$url=jn(this.$$path)+(n?"?"+n:"")+r;this.$$absUrl=e+t+this.$$url}}var zn={$$html5:false,$$replace:false,absUrl:Xn("$$absUrl"),url:function(e){if(V(e))return this.$$url;var t=Nn.exec(e);if(t[1]||e==="")this.path(decodeURIComponent(t[1]));if(t[2]||t[1]||e==="")this.search(t[3]||"");this.hash(t[5]||"");return this},protocol:Xn("$$protocol"),host:Xn("$$host"),port:Xn("$$port"),path:Gn("$$path",function(e){e=e!==null?e.toString():"";return e.charAt(0)=="/"?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(F(e)||H(e)){e=e.toString();this.$$search=ge(e)}else if(R(e)){e=ie(e,{});k(e,function(t,n){if(t==null)delete e[n]});this.$$search=e}else{throw Vn("isrcharg","The first argument of the `$location#search()` call must be a string or an object.")}break;default:if(V(t)||t===null){delete this.$$search[e]}else{this.$$search[e]=t}}this.$$compose();return this},hash:Gn("$$hash",function(e){return e!==null?e.toString():""}),replace:function(){this.$$replace=true;return this}};k([Wn,Yn,Bn],function(e){e.prototype=Object.create(zn);e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Bn||!this.$$html5){throw Vn("nostate","History API state support is available only "+"in HTML5 mode and only in browsers supporting HTML5 History API")}this.$$state=V(t)?null:t;return this}});function Xn(e){return function(){return this[e]}}function Gn(e,t){return function(n){if(V(n))return this[e];this[e]=t(n);this.$$compose();return this}}function Zn(){var e="",t={enabled:false,requireBase:true,rewriteLinks:true};this.hashPrefix=function(t){if(j(t)){e=t;return this}else{return e}};this.html5Mode=function(e){if(G(e)){t.enabled=e;return this}else if(R(e)){if(G(e.enabled)){t.enabled=e.enabled}if(G(e.requireBase)){t.requireBase=e.requireBase}if(G(e.rewriteLinks)){t.rewriteLinks=e.rewriteLinks}return this}else{return t}};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,a,o){var s,l,u=r.baseHref(),c=r.url(),f;if(t.enabled){if(!u&&t.requireBase){throw Vn("nobase","$location in HTML5 mode requires a <base> tag to be present!")}f=_n(c)+(u||"/");l=i.history?Bn:Wn}else{f=Un(c);l=Yn}s=new l(f,"#"+e);s.$$parseLinkUrl(c,c);s.$$state=r.state();var d=/^\s*(javascript|mailto):/i;function h(e,t,n){var i=s.url();var a=s.$$state;try{r.url(e,t,n);s.$$state=r.state()}catch(e){s.url(i);s.$$state=a;throw e}}a.on("click",function(e){if(!t.rewriteLinks||e.ctrlKey||e.metaKey||e.shiftKey||e.which==2||e.button==2)return;var i=p(e.target);
1while(te(i[0])!=="a"){if(i[0]===a[0]||!(i=i.parent())[0])return}var l=i.prop("href");var u=i.attr("href")||i.attr("xlink:href");if(R(l)&&l.toString()==="[object SVGAnimatedString]"){l=Hr(l.animVal).href}if(d.test(l))return;if(l&&!i.attr("target")&&!e.isDefaultPrevented()){if(s.$$parseLinkUrl(l,u)){e.preventDefault();if(s.absUrl()!=r.url()){n.$apply();o.angular["ff-684208-preventDefault"]=true}}}});if(qn(s.absUrl())!=qn(c)){r.url(s.absUrl(),true)}var v=true;r.onUrlChange(function(e,t){n.$evalAsync(function(){var r=s.absUrl();var i=s.$$state;var a;s.$$parse(e);s.$$state=t;a=n.$broadcast("$locationChangeStart",e,r,t,i).defaultPrevented;if(s.absUrl()!==e)return;if(a){s.$$parse(r);s.$$state=i;h(r,false,i)}else{v=false;g(r,i)}});if(!n.$$phase)n.$digest()});n.$watch(function e(){var t=qn(r.url());var a=qn(s.absUrl());var o=r.state();var l=s.$$replace;var u=t!==a||s.$$html5&&i.history&&o!==s.$$state;if(v||u){v=false;n.$evalAsync(function(){var e=s.absUrl();var r=n.$broadcast("$locationChangeStart",e,t,s.$$state,o).defaultPrevented;if(s.absUrl()!==e)return;if(r){s.$$parse(t);s.$$state=o}else{if(u){h(e,l,o===s.$$state?null:s.$$state)}g(t,o)}})}s.$$replace=false});return s;function g(e,t){n.$broadcast("$locationChangeSuccess",s.absUrl(),e,s.$$state,t)}}]}function Kn(){var e=true,t=this;this.debugEnabled=function(t){if(j(t)){e=t;return this}else{return e}};this.$get=["$window",function(n){return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){if(e){n.apply(t,arguments)}}}()};function r(e){if(e instanceof Error){if(e.stack){e=e.message&&e.stack.indexOf(e.message)===-1?"Error: "+e.message+"\n"+e.stack:e.stack}else if(e.sourceURL){e=e.message+"\n"+e.sourceURL+":"+e.line}}return e}function i(e){var t=n.console||{},i=t[e]||t.log||P,a=false;try{a=!!i.apply}catch(e){}if(a){return function(){var e=[];k(arguments,function(t){e.push(r(t))});return i.apply(t,e)}}return function(e,t){i(e,t==null?"":t)}}}]}var Qn=r("$parse");function Jn(e,t){if(e==="__defineGetter__"||e==="__defineSetter__"||e==="__lookupGetter__"||e==="__lookupSetter__"||e==="__proto__"){throw Qn("isecfld","Attempting to access a disallowed field in Angular expressions! "+"Expression: {0}",t)}return e}function er(e,t){if(e){if(e.constructor===e){throw Qn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t)}else if(e.window===e){throw Qn("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t)}else if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find)){throw Qn("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t)}else if(e===Object){throw Qn("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}}return e}var tr=Function.prototype.call;var nr=Function.prototype.apply;var rr=Function.prototype.bind;function ir(e,t){if(e){if(e.constructor===e){throw Qn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t)}else if(e===tr||e===nr||e===rr){throw Qn("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}}var ar=je();k({null:function(){return null},true:function(){return true},false:function(){return false},undefined:function(){}},function(e,t){e.constant=e.literal=e.sharedGetter=true;ar[t]=e});ar["this"]=function(e){return e};ar["this"].sharedGetter=true;var or=O(je(),{"+":function(e,t,r,i){r=r(e,t);i=i(e,t);if(j(r)){if(j(i)){return r+i}return r}return j(i)?i:n},"-":function(e,t,n,r){n=n(e,t);r=r(e,t);return(j(n)?n:0)-(j(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"===":function(e,t,n,r){return n(e,t)===r(e,t)},"!==":function(e,t,n,r){return n(e,t)!==r(e,t)},"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)<r(e,t)},">":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"!":function(e,t,n){return!n(e,t)},"=":true,"|":true});var sr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};var lr=function(e){this.options=e};lr.prototype={constructor:lr,lex:function(e){this.text=e;this.index=0;this.tokens=[];while(this.index<this.text.length){var t=this.text.charAt(this.index);if(t==='"'||t==="'"){this.readString(t)}else if(this.isNumber(t)||t==="."&&this.isNumber(this.peek())){this.readNumber()}else if(this.isIdent(t)){this.readIdent()}else if(this.is(t,"(){}[].,;:?")){this.tokens.push({index:this.index,text:t});this.index++}else if(this.isWhitespace(t)){this.index++}else{var n=t+this.peek();var r=n+this.peek(2);var i=or[t];var a=or[n];var o=or[r];if(i||a||o){var s=o?r:a?n:t;this.tokens.push({index:this.index,text:s,operator:true});this.index+=s.length}else{this.throwError("Unexpected next character ",this.index,this.index+1)}}}return this.tokens},is:function(e,t){return t.indexOf(e)!==-1},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):false},isNumber:function(e){return"0"<=e&&e<="9"&&typeof e==="string"},isWhitespace:function(e){return e===" "||e==="\r"||e==="\t"||e==="\n"||e==="\v"||e===" "},isIdent:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||e==="$"},isExpOperator:function(e){return e==="-"||e==="+"||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=j(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Qn("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){var e="";var t=this.index;while(this.index<this.text.length){var n=o(this.text.charAt(this.index));if(n=="."||this.isNumber(n)){e+=n}else{var r=this.peek();if(n=="e"&&this.isExpOperator(r)){e+=n}else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&e.charAt(e.length-1)=="e"){e+=n}else if(this.isExpOperator(n)&&(!r||!this.isNumber(r))&&e.charAt(e.length-1)=="e"){this.throwError("Invalid exponent")}else{break}}this.index++}this.tokens.push({index:t,text:e,constant:true,value:Number(e)})},readIdent:function(){var e=this.index;while(this.index<this.text.length){var t=this.text.charAt(this.index);if(!(this.isIdent(t)||this.isNumber(t))){break}this.index++}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:true})},readString:function(e){var t=this.index;this.index++;var n="";var r=e;var i=false;while(this.index<this.text.length){var a=this.text.charAt(this.index);r+=a;if(i){if(a==="u"){var o=this.text.substring(this.index+1,this.index+5);if(!o.match(/[\da-f]{4}/i))this.throwError("Invalid unicode escape [\\u"+o+"]");this.index+=4;n+=String.fromCharCode(parseInt(o,16))}else{var s=sr[a];n=n+(s||a)}i=false}else if(a==="\\"){i=true}else if(a===e){this.index++;this.tokens.push({index:t,text:r,constant:true,value:n});return}else{n+=a}this.index++}this.throwError("Unterminated quote",t)}};function ur(e){return e.constant}var cr=function(e,t,n){this.lexer=e;this.$filter=t;this.options=n};cr.ZERO=O(function(){return 0},{sharedGetter:true,constant:true});cr.prototype={constructor:cr,parse:function(e){this.text=e;this.tokens=this.lexer.lex(e);var t=this.statements();if(this.tokens.length!==0){this.throwError("is an unexpected token",this.tokens[0])}t.literal=!!t.literal;t.constant=!!t.constant;return t},primary:function(){var e;if(this.expect("(")){e=this.filterChain();this.consume(")")}else if(this.expect("[")){e=this.arrayDeclaration()}else if(this.expect("{")){e=this.object()}else if(this.peek().identifier&&this.peek().text in ar){e=ar[this.consume().text]}else if(this.peek().identifier){e=this.identifier()}else if(this.peek().constant){e=this.constant()}else{this.throwError("not a primary expression",this.peek())}var t,n;while(t=this.expect("(","[",".")){if(t.text==="("){e=this.functionCall(e,n);n=null}else if(t.text==="["){n=e;e=this.objectIndex(e)}else if(t.text==="."){n=e;e=this.fieldAccess(e)}else{this.throwError("IMPOSSIBLE")}}return e},throwError:function(e,t){throw Qn("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},peekToken:function(){if(this.tokens.length===0)throw Qn("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var a=this.tokens[e];var o=a.text;if(o===t||o===n||o===r||o===i||!t&&!n&&!r&&!i){return a}}return false},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);if(i){this.tokens.shift();return i}return false},consume:function(e){if(this.tokens.length===0){throw Qn("ueoe","Unexpected end of expression: {0}",this.text)}var t=this.expect(e);
1if(!t){this.throwError("is unexpected, expecting ["+e+"]",this.peek())}return t},unaryFn:function(e,t){var n=or[e];return O(function e(r,i){return n(r,i,t)},{constant:t.constant,inputs:[t]})},binaryFn:function(e,t,n,r){var i=or[t];return O(function t(r,a){return i(r,a,e,n)},{constant:e.constant&&n.constant,inputs:!r&&[e,n]})},identifier:function(){var e=this.consume().text;while(this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(")){e+=this.consume().text+this.consume().text}return mr(e,this.options,this.text)},constant:function(){var e=this.consume().value;return O(function t(){return e},{constant:true,literal:true})},statements:function(){var e=[];while(true){if(this.tokens.length>0&&!this.peek("}",")",";","]"))e.push(this.filterChain());if(!this.expect(";")){return e.length===1?e[0]:function t(n,r){var i;for(var a=0,o=e.length;a<o;a++){i=e[a](n,r)}return i}}}},filterChain:function(){var e=this.expression();var t;while(t=this.expect("|")){e=this.filter(e)}return e},filter:function(e){var t=this.$filter(this.consume().text);var r;var i;if(this.peek(":")){r=[];i=[];while(this.expect(":")){r.push(this.expression())}}var a=[e].concat(r||[]);return O(function a(o,s){var l=e(o,s);if(i){i[0]=l;var u=r.length;while(u--){i[u+1]=r[u](o,s)}return t.apply(n,i)}return t(l)},{constant:!t.$stateful&&a.every(ur),inputs:!t.$stateful&&a})},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();var t;var n;if(n=this.expect("=")){if(!e.assign){this.throwError("implies assignment but ["+this.text.substring(0,n.index)+"] can not be assigned to",n)}t=this.ternary();return O(function n(r,i){return e.assign(r,t(r,i),i)},{inputs:[e,t]})}return e},ternary:function(){var e=this.logicalOR();var t;var n;if(n=this.expect("?")){t=this.assignment();if(this.consume(":")){var r=this.assignment();return O(function n(i,a){return e(i,a)?t(i,a):r(i,a)},{constant:e.constant&&t.constant&&r.constant})}}return e},logicalOR:function(){var e=this.logicalAND();var t;while(t=this.expect("||")){e=this.binaryFn(e,t.text,this.logicalAND(),true)}return e},logicalAND:function(){var e=this.equality();var t;while(t=this.expect("&&")){e=this.binaryFn(e,t.text,this.equality(),true)}return e},equality:function(){var e=this.relational();var t;while(t=this.expect("==","!=","===","!==")){e=this.binaryFn(e,t.text,this.relational())}return e},relational:function(){var e=this.additive();var t;while(t=this.expect("<",">","<=",">=")){e=this.binaryFn(e,t.text,this.additive())}return e},additive:function(){var e=this.multiplicative();var t;while(t=this.expect("+","-")){e=this.binaryFn(e,t.text,this.multiplicative())}return e},multiplicative:function(){var e=this.unary();var t;while(t=this.expect("*","/","%")){e=this.binaryFn(e,t.text,this.unary())}return e},unary:function(){var e;if(this.expect("+")){return this.primary()}else if(e=this.expect("-")){return this.binaryFn(cr.ZERO,e.text,this.unary())}else if(e=this.expect("!")){return this.unaryFn(e.text,this.unary())}else{return this.primary()}},fieldAccess:function(e){var t=this.identifier();return O(function r(i,a,o){var s=o||e(i,a);return s==null?n:t(s)},{assign:function(n,r,i){var a=e(n,i);if(!a)e.assign(n,a={},i);return t.assign(a,r)}})},objectIndex:function(e){var t=this.text;var r=this.expression();this.consume("]");return O(function i(a,o){var s=e(a,o),l=r(a,o),u;Jn(l,t);if(!s)return n;u=er(s[l],t);return u},{assign:function(n,i,a){var o=Jn(r(n,a),t);var s=er(e(n,a),t);if(!s)e.assign(n,s={},a);return s[o]=i}})},functionCall:function(e,t){var r=[];if(this.peekToken().text!==")"){do{r.push(this.expression())}while(this.expect(","))}this.consume(")");var i=this.text;var a=r.length?[]:null;return function o(s,l){var u=t?t(s,l):j(t)?n:s;var c=e(s,l,u)||P;if(a){var f=r.length;while(f--){a[f]=er(r[f](s,l),i)}}er(u,i);ir(c,i);var p=c.apply?c.apply(u,a):c(a[0],a[1],a[2],a[3],a[4]);if(a){a.length=0}return er(p,i)}},arrayDeclaration:function(){var e=[];if(this.peekToken().text!=="]"){do{if(this.peek("]")){break}e.push(this.expression())}while(this.expect(","))}this.consume("]");return O(function t(n,r){var i=[];for(var a=0,o=e.length;a<o;a++){i.push(e[a](n,r))}return i},{literal:true,constant:e.every(ur),inputs:e})},object:function(){var e=[],t=[];if(this.peekToken().text!=="}"){do{if(this.peek("}")){break}var n=this.consume();if(n.constant){e.push(n.value)}else if(n.identifier){e.push(n.text)}else{this.throwError("invalid key",n)}this.consume(":");t.push(this.expression())}while(this.expect(","))}this.consume("}");return O(function n(r,i){var a={};for(var o=0,s=t.length;o<s;o++){a[e[o]]=t[o](r,i)}return a},{literal:true,constant:t.every(ur),inputs:t})}};function fr(e,t,n,r,i){er(e,i);
1er(t,i);var a=n.split("."),o;for(var s=0;a.length>1;s++){o=Jn(a.shift(),i);var l=s===0&&t&&t[o]||e[o];if(!l){l={};e[o]=l}e=er(l,i)}o=Jn(a.shift(),i);er(e[o],i);e[o]=r;return r}var pr=je();var dr=je();function hr(e){return e=="constructor"}function vr(e,t,r,i,a,o,s){Jn(e,o);Jn(t,o);Jn(r,o);Jn(i,o);Jn(a,o);var l=function(e){return er(e,o)};var u=s||hr(e)?l:N;var c=s||hr(t)?l:N;var f=s||hr(r)?l:N;var p=s||hr(i)?l:N;var d=s||hr(a)?l:N;return function o(s,l){var h=l&&l.hasOwnProperty(e)?l:s;if(h==null)return h;h=u(h[e]);if(!t)return h;if(h==null)return n;h=c(h[t]);if(!r)return h;if(h==null)return n;h=f(h[r]);if(!i)return h;if(h==null)return n;h=p(h[i]);if(!a)return h;if(h==null)return n;h=d(h[a]);return h}}function gr(e,t){return function(n,r){return e(n,r,er,t)}}function mr(e,t,r){var i=t.expensiveChecks;var a=i?dr:pr;var o=a[e];if(o)return o;var s=e.split("."),l=s.length;if(t.csp){if(l<6){o=vr(s[0],s[1],s[2],s[3],s[4],r,i)}else{o=function e(t,a){var o=0,u;do{u=vr(s[o++],s[o++],s[o++],s[o++],s[o++],r,i)(t,a);a=n;t=u}while(o<l);return u}}}else{var u="";if(i){u+="s = eso(s, fe);\nl = eso(l, fe);\n"}var c=i;k(s,function(e,t){Jn(e,r);var n=(t?"s":'((l&&l.hasOwnProperty("'+e+'"))?l:s)')+"."+e;if(i||hr(e)){n="eso("+n+", fe)";c=true}u+="if(s == null) return undefined;\n"+"s="+n+";\n"});u+="return s;";var f=new Function("s","l","eso","fe",u);f.toString=I(u);if(c){f=gr(f,r)}o=f}o.sharedGetter=true;o.assign=function(t,n,r){return fr(t,r,e,n,e)};a[e]=o;return o}var $r=Object.prototype.valueOf;function yr(e){return L(e.valueOf)?e.valueOf():$r.call(e)}function br(){var e=je();var t=je();this.$get=["$filter","$sniffer",function(n,r){var i={csp:r.csp,expensiveChecks:false},a={csp:r.csp,expensiveChecks:true};function o(e){var t=e;if(e.sharedGetter){t=function t(n,r){return e(n,r)};t.literal=e.literal;t.constant=e.constant;t.assign=e.assign}return t}return function r(s,l,h){var v,g,m;switch(typeof s){case"string":m=s=s.trim();var $=h?t:e;v=$[m];if(!v){if(s.charAt(0)===":"&&s.charAt(1)===":"){g=true;s=s.substring(2)}var y=h?a:i;var b=new lr(y);var w=new cr(b,n,y);v=w.parse(s);if(v.constant){v.$$watchDelegate=p}else if(g){v=o(v);v.$$watchDelegate=v.literal?f:c}else if(v.inputs){v.$$watchDelegate=u}$[m]=v}return d(v,l);case"function":return d(s,l);default:return d(P,l)}};function s(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(!i.constant){if(i.inputs){s(i.inputs,t)}else if(t.indexOf(i)===-1){t.push(i)}}}return t}function l(e,t){if(e==null||t==null){return e===t}if(typeof e==="object"){e=yr(e);if(typeof e==="object"){return false}}return e===t||e!==e&&t!==t}function u(e,t,n,r){var i=r.$$inputs||(r.$$inputs=s(r.inputs,[]));var a;if(i.length===1){var o=l;i=i[0];return e.$watch(function e(t){var n=i(t);if(!l(n,o)){a=r(t);o=n&&yr(n)}return a},t,n)}var u=[];for(var c=0,f=i.length;c<f;c++){u[c]=l}return e.$watch(function e(t){var n=false;for(var o=0,s=i.length;o<s;o++){var c=i[o](t);if(n||(n=!l(c,u[o]))){u[o]=c&&yr(c)}}if(n){a=r(t)}return a},t,n)}function c(e,t,n,r){var i,a;return i=e.$watch(function e(t){return r(t)},function e(n,r,o){a=n;if(L(t)){t.apply(this,arguments)}if(j(n)){o.$$postDigest(function(){if(j(a)){i()}})}},n)}function f(e,t,n,r){var i,a;return i=e.$watch(function e(t){return r(t)},function e(n,r,s){a=n;if(L(t)){t.call(this,n,r,s)}if(o(n)){s.$$postDigest(function(){if(o(a))i()})}},n);function o(e){var t=true;k(e,function(e){if(!j(e))t=false});return t}}function p(e,t,n,r){var i;return i=e.$watch(function e(t){return r(t)},function e(n,r,a){if(L(t)){t.apply(this,arguments)}i()},n)}function d(e,t){if(!t)return e;var n=e.$$watchDelegate;var r=n!==f&&n!==c;var i=r?function n(r,i){var a=e(r,i);return t(a,r,i)}:function n(r,i){var a=e(r,i);var o=t(a,r,i);return j(a)?o:a};if(e.$$watchDelegate&&e.$$watchDelegate!==u){i.$$watchDelegate=e.$$watchDelegate}else if(!t.$stateful){i.$$watchDelegate=u;i.inputs=[e]}return i}}]}function wr(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return kr(function(t){e.$evalAsync(t)},t)}]}function xr(){this.$get=["$browser","$exceptionHandler",function(e,t){return kr(function(t){e.defer(t)},t)}]}function kr(e,t){var i=r("$q",TypeError);function a(e,t,n){var r=false;function i(t){return function(n){if(r)return;r=true;t.call(e,n)}}return[i(t),i(n)]}var o=function(){return new f};function s(){this.$$state={status:0}}s.prototype={then:function(e,t,n){var r=new f;
1this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([r,e,t,n]);if(this.$$state.status>0)c(this.$$state);return r.promise},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return h(t,true,e)},function(t){return h(t,false,e)},t)}};function l(e,t){return function(n){t.call(e,n)}}function u(e){var r,i,a;a=e.pending;e.processScheduled=false;e.pending=n;for(var o=0,s=a.length;o<s;++o){i=a[o][0];r=a[o][e.status];try{if(L(r)){i.resolve(r(e.value))}else if(e.status===1){i.resolve(e.value)}else{i.reject(e.value)}}catch(e){i.reject(e);t(e)}}}function c(t){if(t.processScheduled||!t.pending)return;t.processScheduled=true;e(function(){u(t)})}function f(){this.promise=new s;this.resolve=l(this,this.resolve);this.reject=l(this,this.reject);this.notify=l(this,this.notify)}f.prototype={resolve:function(e){if(this.promise.$$state.status)return;if(e===this.promise){this.$$reject(i("qcycle","Expected promise to be resolved with value other than itself '{0}'",e))}else{this.$$resolve(e)}},$$resolve:function(e){var n,r;r=a(this,this.$$resolve,this.$$reject);try{if(R(e)||L(e))n=e&&e.then;if(L(n)){this.promise.$$state.status=-1;n.call(e,r[0],r[1],this.notify)}else{this.promise.$$state.value=e;this.promise.$$state.status=1;c(this.promise.$$state)}}catch(e){r[1](e);t(e)}},reject:function(e){if(this.promise.$$state.status)return;this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e;this.promise.$$state.status=2;c(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;if(this.promise.$$state.status<=0&&r&&r.length){e(function(){var e,i;for(var a=0,o=r.length;a<o;a++){i=r[a][0];e=r[a][3];try{i.notify(L(e)?e(n):n)}catch(e){t(e)}}})}}};var p=function(e){var t=new f;t.reject(e);return t.promise};var d=function e(t,n){var r=new f;if(n){r.resolve(t)}else{r.reject(t)}return r.promise};var h=function e(t,n,r){var i=null;try{if(L(r))i=r()}catch(e){return d(e,false)}if(Z(i)){return i.then(function(){return d(t,n)},function(e){return d(e,false)})}else{return d(t,n)}};var v=function(e,t,n,r){var i=new f;i.resolve(e);return i.promise.then(t,n,r)};function g(e){var t=new f,n=0,r=q(e)?[]:{};k(e,function(e,i){n++;v(e).then(function(e){if(r.hasOwnProperty(i))return;r[i]=e;if(!--n)t.resolve(r)},function(e){if(r.hasOwnProperty(i))return;t.reject(e)})});if(n===0){t.resolve(r)}return t.promise}var m=function e(t){if(!L(t)){throw i("norslvr","Expected resolverFn, got '{0}'",t)}if(!(this instanceof e)){return new e(t)}var n=new f;function r(e){n.resolve(e)}function a(e){n.reject(e)}t(r,a);return n.promise};m.defer=o;m.reject=p;m.when=v;m.all=g;return m}function Cr(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame;var r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame;var i=!!n;var a=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,false);return function(){t.cancel(n)}};c.supported=i;var o;var s=0;var l=[];return c;function u(){for(var e=0;e<l.length;e++){var t=l[e];if(t){l[e]=null;t()}}s=l.length=0}function c(e){var t=l.length;s++;l.push(e);if(t===0){o=a(u)}return function e(){if(t>=0){l[t]=null;t=null;if(--s===0&&o){o();o=null;l.length=0}}}}}]}function Tr(){var e=10;var t=r("$rootScope");var n=null;var i=null;this.digestTtl=function(t){if(arguments.length){e=t}return e};function a(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=D();this.$$ChildScope=null}t.prototype=e;return t}this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,o,l,u){function c(e){e.currentScope.$$destroyed=true}function f(){this.$id=D();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=false;this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings=null}f.prototype={constructor:f,$new:function(e,t){var n;t=t||this;if(e){n=new f;n.$root=this.$root}else{if(!this.$$ChildScope){this.$$ChildScope=a(this)}n=new this.$$ChildScope}n.$parent=t;n.$$prevSibling=t.$$childTail;if(t.$$childHead){t.$$childTail.$$nextSibling=n;t.$$childTail=n}else{t.$$childHead=t.$$childTail=n}if(e||t!=this)n.$on("$destroy",c);return n},$watch:function(e,t,r){var i=l(e);if(i.$$watchDelegate){return i.$$watchDelegate(this,t,r,i)}var a=this,o=a.$$watchers,s={fn:t,last:y,get:i,exp:e,eq:!!r};n=null;if(!L(t)){s.fn=P}if(!o){o=a.$$watchers=[]}o.unshift(s);return function e(){re(o,s);n=null}},$watchGroup:function(e,t){var n=new Array(e.length);var r=new Array(e.length);var i=[];var a=this;var o=false;var s=true;if(!e.length){var l=true;a.$evalAsync(function(){if(l)t(r,r,a)});return function e(){l=false}}if(e.length===1){return this.$watch(e[0],function e(i,a,o){r[0]=i;n[0]=a;t(r,i===a?r:n,o)})}k(e,function(e,t){var s=a.$watch(e,function e(i,s){r[t]=i;n[t]=s;if(!o){o=true;a.$evalAsync(u)}});i.push(s)});function u(){o=false;if(s){s=false;t(r,r,a)}else{t(r,n,a)}}return function e(){while(i.length){i.shift()()}}},$watchCollection:function(e,t){v.$stateful=true;var n=this;var r;var i;var a;var o=t.length>1;var u=0;var c=l(e,v);var f=[];var p={};var d=true;var h=0;function v(e){r=e;var t,n,a,o,s;if(V(r))return;if(!R(r)){if(i!==r){i=r;u++}}else if(x(r)){if(i!==f){i=f;h=i.length=0;u++}t=r.length;if(h!==t){u++;i.length=h=t}for(var l=0;l<t;l++){s=i[l];o=r[l];a=s!==s&&o!==o;if(!a&&s!==o){u++;i[l]=o}}}else{if(i!==p){i=p={};h=0;u++}t=0;for(n in r){if(r.hasOwnProperty(n)){t++;o=r[n];s=i[n];if(n in i){a=s!==s&&o!==o;if(!a&&s!==o){u++;i[n]=o}}else{h++;i[n]=o;u++}}}if(h>t){u++;for(n in i){if(!r.hasOwnProperty(n)){h--;delete i[n]}}}}return u}function g(){if(d){d=false;t(r,r,n)}else{t(r,a,n)}if(o){if(!R(r)){a=r}else if(x(r)){a=new Array(r.length);for(var e=0;e<r.length;e++){a[e]=r[e]}}else{a={};for(var i in r){if(s.call(r,i)){a[i]=r[i]}}}}}return this.$watch(c,g)},$digest:function(){var r,a,s,l,c,f,v=e,$,w,x=this,k=[],C,T,S;g("$digest");u.$$checkUrlChange();if(this===p&&i!==null){u.defer.cancel(i);b()}n=null;do{f=false;w=x;while(d.length){try{S=d.shift();S.scope.$eval(S.expression,S.locals)}catch(e){o(e)}n=null}e:do{if(l=w.$$watchers){c=l.length;while(c--){try{r=l[c];if(r){if((a=r.get(w))!==(s=r.last)&&!(r.eq?oe(a,s):typeof a==="number"&&typeof s==="number"&&isNaN(a)&&isNaN(s))){f=true;n=r;r.last=r.eq?ie(a,null):a;r.fn(a,s===y?a:s,w);if(v<5){C=4-v;if(!k[C])k[C]=[];k[C].push({msg:L(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:a,oldVal:s})}}else if(r===n){f=false;break e}}}catch(e){o(e)}}}if(!($=w.$$childHead||w!==x&&w.$$nextSibling)){while(w!==x&&!($=w.$$nextSibling)){w=w.$parent}}}while(w=$);if((f||d.length)&&!v--){m();throw t("infdig","{0} $digest() iterations reached. Aborting!\n"+"Watchers fired in the last 5 iterations: {1}",e,k)}}while(f||d.length);m();while(h.length){try{h.shift()()}catch(e){o(e)}}},$destroy:function(){if(this.$$destroyed)return;var e=this.$parent;this.$broadcast("$destroy");this.$$destroyed=true;if(this===p)return;for(var t in this.$$listenerCount){$(this,this.$$listenerCount[t],t)}if(e.$$childHead==this)e.$$childHead=this.$$nextSibling;if(e.$$childTail==this)e.$$childTail=this.$$prevSibling;if(this.$$prevSibling)this.$$prevSibling.$$nextSibling=this.$$nextSibling;if(this.$$nextSibling)this.$$nextSibling.$$prevSibling=this.$$prevSibling;this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=P;this.$on=this.$watch=this.$watchGroup=function(){return P};this.$$listeners={};this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$wat
1chers=null},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){if(!p.$$phase&&!d.length){u.defer(function(){if(d.length){p.$digest()}})}d.push({scope:this,expression:e,locals:t})},$$postDigest:function(e){h.push(e)},$apply:function(e){try{g("$apply");return this.$eval(e)}catch(e){o(e)}finally{m();try{p.$digest()}catch(e){o(e);throw e}}},$applyAsync:function(e){var t=this;e&&v.push(n);w();function n(){t.$eval(e)}},$on:function(e,t){var n=this.$$listeners[e];if(!n){this.$$listeners[e]=n=[]}n.push(t);var r=this;do{if(!r.$$listenerCount[e]){r.$$listenerCount[e]=0}r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);if(r!==-1){n[r]=null;$(i,1,e)}}},$emit:function(e,t){var n=[],r,i=this,a=false,s={name:e,targetScope:i,stopPropagation:function(){a=true},preventDefault:function(){s.defaultPrevented=true},defaultPrevented:false},l=le([s],arguments,1),u,c;do{r=i.$$listeners[e]||n;s.currentScope=i;for(u=0,c=r.length;u<c;u++){if(!r[u]){r.splice(u,1);u--;c--;continue}try{r[u].apply(null,l)}catch(e){o(e)}}if(a){s.currentScope=null;return s}i=i.$parent}while(i);s.currentScope=null;return s},$broadcast:function(e,t){var n=this,r=n,i=n,a={name:e,targetScope:n,preventDefault:function(){a.defaultPrevented=true},defaultPrevented:false};if(!n.$$listenerCount[e])return a;var s=le([a],arguments,1),l,u,c;while(r=i){a.currentScope=r;l=r.$$listeners[e]||[];for(u=0,c=l.length;u<c;u++){if(!l[u]){l.splice(u,1);u--;c--;continue}try{l[u].apply(null,s)}catch(e){o(e)}}if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling)){while(r!==n&&!(i=r.$$nextSibling)){r=r.$parent}}}a.currentScope=null;return a}};var p=new f;var d=p.$$asyncQueue=[];var h=p.$$postDigestQueue=[];var v=p.$$applyAsyncQueue=[];return p;function g(e){if(p.$$phase){throw t("inprog","{0} already in progress",p.$$phase)}p.$$phase=e}function m(){p.$$phase=null}function $(e,t,n){do{e.$$listenerCount[n]-=t;if(e.$$listenerCount[n]===0){delete e.$$listenerCount[n]}}while(e=e.$parent)}function y(){}function b(){while(v.length){try{v.shift()()}catch(e){o(e)}}i=null}function w(){if(i===null){i=u.defer(function(){p.$apply(b)})}}}]}function Sr(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){if(j(t)){e=t;return this}return e};this.imgSrcSanitizationWhitelist=function(e){if(j(e)){t=e;return this}return t};this.$get=function(){return function n(r,i){var a=i?t:e;var o;o=Hr(r).href;if(o!==""&&!o.match(a)){return"unsafe:"+o}return r}}}var Dr=r("$sce");var Er={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Or(e){if(e==="self"){return e}else if(F(e)){if(e.indexOf("***")>-1){throw Dr("iwcard","Illegal sequence *** in string matcher.  String: {0}",e)}e=Q(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return new RegExp("^"+e+"$")}else if(_(e)){return new RegExp("^"+e.source+"$")}else{throw Dr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}}function Ar(e){var t=[];if(j(e)){k(e,function(e){t.push(Or(e))})}return t}function Mr(){this.SCE_CONTEXTS=Er;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){if(arguments.length){e=Ar(t)}return e};this.resourceUrlBlacklist=function(e){if(arguments.length){t=Ar(e)}return t};this.$get=["$injector",function(r){var i=function e(t){throw Dr("unsafe","Attempting to use an unsafe value in a safe context.")};if(r.has("$sanitize")){i=r.get("$sanitize")}function a(e,t){if(e==="self"){return Ur(t)}else{return!!e.exec(t.href)}}function o(n){var r=Hr(n.toString());var i,o,s=false;for(i=0,o=e.length;i<o;i++){if(a(e[i],r)){s=true;break}}if(s){for(i=0,o=t.length;i<o;i++){if(a(t[i],r)){s=false;break}}}return s}function s(e){var t=function e(t){this.$$unwrapTrustedValue=function(){return t}};if(e){t.prototype=new e}t.prototype.valueOf=function e(){return this.$$unwrapTrustedValue()};t.prototype.toString=function e(){return this.$$unwrapTrustedValue().toString()};return t}var l=s(),u={};u[Er.HTML]=s(l);u[Er.CSS]=s(l);u[Er.URL]=s(l);u[Er.JS]=s(l);u[Er.RESOURCE_URL]=s(u[Er.URL]);function c(e,t){var r=u.hasOwnProperty(e)?u[e]:null;if(!r){throw Dr("icontext","Attempted to trust a value in invali
1d context. Context: {0}; Value: {1}",e,t)}if(t===null||t===n||t===""){return t}if(typeof t!=="string"){throw Dr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e)}return new r(t)}function f(e){if(e instanceof l){return e.$$unwrapTrustedValue()}else{return e}}function p(e,t){if(t===null||t===n||t===""){return t}var r=u.hasOwnProperty(e)?u[e]:null;if(r&&t instanceof r){return t.$$unwrapTrustedValue()}if(e===Er.RESOURCE_URL){if(o(t)){return t}else{throw Dr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}}else if(e===Er.HTML){return i(t)}throw Dr("unsafe","Attempting to use an unsafe value in a safe context.")}return{trustAs:c,getTrusted:p,valueOf:f}}]}function Pr(){var e=true;this.enabled=function(t){if(arguments.length){e=!!t}return e};this.$get=["$parse","$sceDelegate",function(t,n){if(e&&f<8){throw Dr("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks "+"mode.  You can fix this by adding the text <!doctype html> to the top of your HTML "+"document.  See http://docs.angularjs.org/api/ng.$sce for more information.")}var r=ae(Er);r.isEnabled=function(){return e};r.trustAs=n.trustAs;r.getTrusted=n.getTrusted;r.valueOf=n.valueOf;if(!e){r.trustAs=r.getTrusted=function(e,t){return t};r.valueOf=N}r.parseAs=function e(n,i){var a=t(i);if(a.literal&&a.constant){return a}else{return t(i,function(e){return r.getTrusted(n,e)})}};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;k(Er,function(e,t){var n=o(t);r[rt("parse_as_"+n)]=function(t){return i(e,t)};r[rt("get_trusted_"+n)]=function(t){return a(e,t)};r[rt("trust_as_"+n)]=function(t){return s(e,t)}});return r}]}function Nr(){this.$get=["$window","$document",function(e,t){var n={},r=A((/android (\d+)/.exec(o((e.navigator||{}).userAgent))||[])[1]),i=/Boxee/i.test((e.navigator||{}).userAgent),a=t[0]||{},s,l=/^(Moz|webkit|ms)(?=[A-Z])/,u=a.body&&a.body.style,c=false,p=false,d;if(u){for(var h in u){if(d=l.exec(h)){s=d[0];s=s.substr(0,1).toUpperCase()+s.substr(1);break}}if(!s){s="WebkitOpacity"in u&&"webkit"}c=!!("transition"in u||s+"Transition"in u);p=!!("animation"in u||s+"Animation"in u);if(r&&(!c||!p)){c=F(a.body.style.webkitTransition);p=F(a.body.style.webkitAnimation)}}return{history:!!(e.history&&e.history.pushState&&!(r<4)&&!i),hasEvent:function(e){if(e==="input"&&f<=11)return false;if(V(n[e])){var t=a.createElement("div");n[e]="on"+e in t}return n[e]},csp:se(),vendorPrefix:s,transitions:c,animations:p,android:r}}]}var tn=r("$compile");function Ir(){this.$get=["$templateCache","$http","$q",function(e,t,n){function r(i,a){r.totalPendingRequests++;var o=t.defaults&&t.defaults.transformResponse;if(q(o)){o=o.filter(function(e){return e!==yn})}else if(o===yn){o=null}var s={cache:e,transformResponse:o};return t.get(i,s)["finally"](function(){r.totalPendingRequests--}).then(function(e){return e.data},l);function l(e){if(!a){throw tn("tpload","Failed to load template: {0}",i)}return n.reject(e)}}r.totalPendingRequests=0;return r}]}function Vr(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding");var i=[];k(r,function(e){var r=y.element(e).data("$binding");if(r){k(r,function(r){if(n){var a=new RegExp("(^|\\s)"+Q(t)+"(\\s|\\||$)");if(a.test(r)){i.push(e)}}else{if(r.indexOf(t)!=-1){i.push(e)}}})}});return i};r.findModels=function(e,t,n){var r=["ng-","data-ng-","ng\\:"];for(var i=0;i<r.length;++i){var a=n?"=":"*=";var o="["+r[i]+"model"+a+'"'+t+'"]';var s=e.querySelectorAll(o);if(s.length){return s}}};r.getLocation=function(){return n.url()};r.setLocation=function(t){if(t!==n.url()){n.url(t);e.$digest()}};r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)};return r}]}function jr(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){var a={};function o(o,s,l){var u=j(l)&&!l,c=(u?r:n).defer(),f=c.promise,p;p=t.defer(function(){try{c.resolve(o())}catch(e){c.reject(e);i(e)}finally{delete a[f.$$timeoutId]}if(!u)e.$apply()},s);f.$$timeoutId=p;a[p]=c;return f}o.cancel=function(e){if(e&&e.$$timeoutId in a){a[e.$$timeoutId].reject("canceled");delete a[e.$$timeoutId];return t.defer.cancel(e.$$timeoutId)}return false};return o}]}var Rr=t.createElement("a");var Fr=Hr(e.location.href);function Hr(e){var t=e;if(f){Rr.setAttribute("href",t);
1t=Rr.href}Rr.setAttribute("href",t);return{href:Rr.href,protocol:Rr.protocol?Rr.protocol.replace(/:$/,""):"",host:Rr.host,search:Rr.search?Rr.search.replace(/^\?/,""):"",hash:Rr.hash?Rr.hash.replace(/^#/,""):"",hostname:Rr.hostname,port:Rr.port,pathname:Rr.pathname.charAt(0)==="/"?Rr.pathname:"/"+Rr.pathname}}function Ur(e){var t=F(e)?Hr(e):e;return t.protocol===Fr.protocol&&t.host===Fr.host}function qr(){this.$get=I(e)}Lr.$inject=["$provide"];function Lr(e){var t="Filter";function n(r,i){if(R(r)){var a={};k(r,function(e,t){a[t]=n(t,e)});return a}else{return e.factory(r+t,i)}}this.register=n;this.$get=["$injector",function(e){return function(n){return e.get(n+t)}}];n("currency",Wr);n("date",ui);n("filter",_r);n("json",ci);n("limitTo",di);n("lowercase",fi);n("number",zr);n("orderBy",hi);n("uppercase",pi)}function _r(){return function(e,t,n){if(!q(e))return e;var r=t!==null?typeof t:"null";var i;var a;switch(r){case"function":i=t;break;case"boolean":case"null":case"number":case"string":a=true;case"object":i=Br(t,n,a);break;default:return e}return e.filter(i)}}function Br(e,t,n){var r=R(e)&&"$"in e;var i;if(t===true){t=oe}else if(!L(t)){t=function(e,t){if(V(e)){return false}if(e===null||t===null){return e===t}if(R(e)||R(t)){return false}e=o(""+e);t=o(""+t);return e.indexOf(t)!==-1}}i=function(i){if(r&&!R(i)){return Yr(i,e.$,t,false)}return Yr(i,e,t,n)};return i}function Yr(e,t,n,r,i){var a=e!==null?typeof e:"null";var o=t!==null?typeof t:"null";if(o==="string"&&t.charAt(0)==="!"){return!Yr(e,t.substring(1),n,r)}else if(q(e)){return e.some(function(e){return Yr(e,t,n,r)})}switch(a){case"object":var s;if(r){for(s in e){if(s.charAt(0)!=="$"&&Yr(e[s],t,n,true)){return true}}return i?false:Yr(e,t,n,false)}else if(o==="object"){for(s in t){var l=t[s];if(L(l)||V(l)){continue}var u=s==="$";var c=u?e:e[s];if(!Yr(c,l,n,u,u)){return false}}return true}else{return n(e,t)}break;case"function":return false;default:return n(e,t)}}Wr.$inject=["$locale"];function Wr(e){var t=e.NUMBER_FORMATS;return function(e,n,r){if(V(n)){n=t.CURRENCY_SYM}if(V(r)){r=t.PATTERNS[1].maxFrac}return e==null?e:Gr(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}zr.$inject=["$locale"];function zr(e){var t=e.NUMBER_FORMATS;return function(e,n){return e==null?e:Gr(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}var Xr=".";function Gr(e,t,n,r,i){if(!isFinite(e)||R(e))return"";var a=e<0;e=Math.abs(e);var o=e+"",s="",l=[];var u=false;if(o.indexOf("e")!==-1){var c=o.match(/([\d\.]+)e(-?)(\d+)/);if(c&&c[2]=="-"&&c[3]>i+1){e=0}else{s=o;u=true}}if(!u){var f=(o.split(Xr)[1]||"").length;if(V(i)){i=Math.min(Math.max(t.minFrac,f),t.maxFrac)}e=+(Math.round(+(e.toString()+"e"+i)).toString()+"e"+-i);var p=(""+e).split(Xr);var d=p[0];p=p[1]||"";var h,v=0,g=t.lgSize,m=t.gSize;if(d.length>=g+m){v=d.length-g;for(h=0;h<v;h++){if((v-h)%m===0&&h!==0){s+=n}s+=d.charAt(h)}}for(h=v;h<d.length;h++){if((d.length-h)%g===0&&h!==0){s+=n}s+=d.charAt(h)}while(p.length<i){p+="0"}if(i&&i!=="0")s+=r+p.substr(0,i)}else{if(i>0&&e<1){s=e.toFixed(i);e=parseFloat(s)}}if(e===0){a=false}l.push(a?t.negPre:t.posPre,s,a?t.negSuf:t.posSuf);return l.join("")}function Zr(e,t,n){var r="";if(e<0){r="-";e=-e}e=""+e;while(e.length<t)e="0"+e;if(n)e=e.substr(e.length-t);return r+e}function Kr(e,t,n,r){n=n||0;return function(i){var a=i["get"+e]();if(n>0||a>-n)a+=n;if(a===0&&n==-12)a=12;return Zr(a,t,r)}}function Qr(e,t){return function(n,r){var i=n["get"+e]();var a=l(t?"SHORT"+e:e);return r[a][i]}}function Jr(e){var t=-1*e.getTimezoneOffset();var n=t>=0?"+":"";n+=Zr(Math[t>0?"floor":"ceil"](t/60),2)+Zr(Math.abs(t%60),2);return n}function ei(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function ti(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ni(e){return function(t){var n=ei(t.getFullYear()),r=ti(t);var i=+r-+n,a=1+Math.round(i/6048e5);return Zr(a,e)}}function ri(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function ii(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function ai(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}var oi={yyyy:Kr("FullYear",4),yy:Kr("FullYear",2,0,true),y:Kr("FullYear",1),MMMM:Qr("Month"),MMM:Qr("Month",true),MM:Kr("Month",2,1),M:Kr("Month",1,1),dd:Kr("Date",2),d:Kr("Date",1),HH:Kr("Hours",2),H:Kr("Hours",1),hh:Kr("Hours",2,-12),h:Kr("Hours",1,-12),mm:Kr("Minutes",2),m:Kr("Minutes",1),ss:Kr("Seconds",2),s:Kr("Seconds",1),sss:Kr("Milliseconds",3),EEEE:Qr("Day"),EEE:Qr("Day",true),a:ri,Z:Jr,ww:ni(2),w:ni(1),G:ii,GG:ii,GGG:ii,GGGG:ai};var si=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,li=/^\-?\d+$/;ui.$inject=["$locale"];function ui(e){var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;function n(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,a=0,o=n[8]?r.setUTCFullYear:r.setFullYear,s=n[8]?r.setUTCHours:r.setHours;if(n[9]){i=A(n[9]+n[10]);a=A(n[9]+n[11])}o.call(r,A(n[1]),A(n[2])-1,A(n[3]));var l=A(n[4]||0)-i;var u=A(n[5]||0)-a;var c=A(n[6]||0);var f=Math.round(parseFloat("0."+(n[7]||0))*1e3);
1s.call(r,l,u,c,f);return r}return e}return function(t,r,i){var a="",o=[],s,l;r=r||"mediumDate";r=e.DATETIME_FORMATS[r]||r;if(F(t)){t=li.test(t)?A(t):n(t)}if(H(t)){t=new Date(t)}if(!U(t)){return t}while(r){l=si.exec(r);if(l){o=le(o,l,1);r=o.pop()}else{o.push(r);r=null}}if(i&&i==="UTC"){t=new Date(t.getTime());t.setMinutes(t.getMinutes()+t.getTimezoneOffset())}k(o,function(n){s=oi[n];a+=s?s(t,e.DATETIME_FORMATS):n.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return a}}function ci(){return function(e,t){if(V(t)){t=2}return pe(e,t)}}var fi=I(o);var pi=I(l);function di(){return function(e,t){if(H(e))e=e.toString();if(!q(e)&&!F(e))return e;if(Math.abs(Number(t))===Infinity){t=Number(t)}else{t=A(t)}if(t){return t>0?e.slice(0,t):e.slice(t)}else{return F(e)?"":[]}}}hi.$inject=["$parse"];function hi(e){return function(t,n,r){if(!x(t))return t;n=q(n)?n:[n];if(n.length===0){n=["+"]}n=n.map(function(t){var n=false,r=t||N;if(F(t)){if(t.charAt(0)=="+"||t.charAt(0)=="-"){n=t.charAt(0)=="-";t=t.substring(1)}if(t===""){return a(l,n)}r=e(t);if(r.constant){var i=r();return a(function(e,t){return l(e[i],t[i])},n)}}return a(function(e,t){return l(r(e),r(t))},n)});return h.call(t).sort(a(i,r));function i(e,t){for(var r=0;r<n.length;r++){var i=n[r](e,t);if(i!==0)return i}return 0}function a(e,t){return t?function(t,n){return e(n,t)}:e}function o(e){switch(typeof e){case"number":case"boolean":case"string":return true;default:return false}}function s(e){if(e===null)return"null";if(typeof e.valueOf==="function"){e=e.valueOf();if(o(e))return e}if(typeof e.toString==="function"){e=e.toString();if(o(e))return e}return""}function l(e,t){var n=typeof e;var r=typeof t;if(n===r&&n==="object"){e=s(e);t=s(t)}if(n===r){if(n==="string"){e=e.toLowerCase();t=t.toLowerCase()}if(e===t)return 0;return e<t?-1:1}else{return n<r?-1:1}}}}function vi(e){if(L(e)){e={link:e}}e.restrict=e.restrict||"AC";return I(e)}var gi=I({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref&&!t.name){return function(e,t){if(t[0].nodeName.toLowerCase()!=="a")return;var n=m.call(t.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";t.on("click",function(e){if(!t.attr(n)){e.preventDefault()}})}}}});var mi={};k(At,function(e,t){if(e=="multiple")return;var n=an("ng-"+t);mi[n]=function(){return{restrict:"A",priority:100,link:function(e,r,i){e.$watch(i[n],function e(n){i.$set(t,!!n)})}}}});k(Pt,function(e,t){mi[t]=function(){return{priority:100,link:function(e,n,r){if(t==="ngPattern"&&r.ngPattern.charAt(0)=="/"){var a=r.ngPattern.match(i);if(a){r.$set("ngPattern",new RegExp(a[1],a[2]));return}}e.$watch(r[t],function e(n){r.$set(t,n)})}}}});k(["src","srcset","href"],function(e){var t=an("ng-"+e);mi[t]=function(){return{priority:99,link:function(n,r,i){var a=e,o=e;if(e==="href"&&m.call(r.prop("href"))==="[object SVGAnimatedString]"){o="xlinkHref";i.$attr[o]="xlink:href";a=null}i.$observe(t,function(t){if(!t){if(e==="href"){i.$set(o,null)}return}i.$set(o,t);if(f&&a)r.prop(a,i[o])})}}}});var $i={$addControl:P,$$renameControl:bi,$removeControl:P,$setValidity:P,$setDirty:P,$setPristine:P,$setSubmitted:P},yi="ng-submitted";function bi(e,t){e.$name=t}wi.$inject=["$element","$attrs","$scope","$animate","$interpolate"];function wi(e,t,r,i,a){var o=this,s=[];var l=o.$$parentForm=e.parent().controller("form")||$i;o.$error={};o.$$success={};o.$pending=n;o.$name=a(t.name||t.ngForm||"")(r);o.$dirty=false;o.$pristine=true;o.$valid=true;o.$invalid=false;o.$submitted=false;l.$addControl(o);o.$rollbackViewValue=function(){k(s,function(e){e.$rollbackViewValue()})};o.$commitViewValue=function(){k(s,function(e){e.$commitViewValue()})};o.$addControl=function(e){Ne(e.$name,"input");s.push(e);if(e.$name){o[e.$name]=e}};o.$$renameControl=function(e,t){var n=e.$name;if(o[n]===e){delete o[n]}o[t]=e;e.$name=t};o.$removeControl=function(e){if(e.$name&&o[e.$name]===e){delete o[e.$name]}k(o.$pending,function(t,n){o.$setValidity(n,null,e)});k(o.$error,function(t,n){o.$setValidity(n,null,e)});k(o.$$success,function(t,n){o.$setValidity(n,null,e)});re(s,e)};Sa({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(!r){e[t]=[n]}else{var i=r.indexOf(n);if(i===-1){r.push(n)}}},unset:function(e,t,n){var r=e[t];if(!r){return}re(r,n);if(r.length===0){delete e[t]}},parentForm:l,$animate:i});o.$setDirty=function(){i.removeClass(e,ga);i.addClass(e,ma);o.$dirty=true;o.$pristine=false;l.$setDirty()};o.$setPristine=function(){i.setClass(e,ga,ma+" "+yi);o.$dirty=false;o.$pristine=true;o.$submitted=false;k(s,function(e){e.$setPristine()})};o.$setUntouched=function(){k(s,function(e){e.$setUntouched()})};o.$setSubmitted=function(){i.addClass(e,yi);o.$submitted=true;l.$setSubmitted()}}
1var xi=function(e){return["$timeout",function(t){var r={name:"form",restrict:e?"EAC":"E",controller:wi,compile:function r(i,a){i.addClass(ga).addClass(ha);var o=a.name?"name":e&&a.ngForm?"ngForm":false;return{pre:function e(r,i,a,s){if(!("action"in a)){var l=function(e){r.$apply(function(){s.$commitViewValue();s.$setSubmitted()});e.preventDefault()};Ze(i[0],"submit",l);i.on("$destroy",function(){t(function(){Ke(i[0],"submit",l)},0,false)})}var u=s.$$parentForm;if(o){fr(r,null,s.$name,s,s.$name);a.$observe(o,function(e){if(s.$name===e)return;fr(r,null,s.$name,n,s.$name);u.$$renameControl(s,e);fr(r,null,s.$name,s,s.$name)})}i.on("$destroy",function(){u.$removeControl(s);if(o){fr(r,null,a[o],n,s.$name)}O(s,$i)})}}}};return r}]};var ki=xi();var Ci=xi(true);var Ti=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/;var Si=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/;var Di=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;var Ei=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;var Oi=/^(\d{4})-(\d{2})-(\d{2})$/;var Ai=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;var Mi=/^(\d{4})-W(\d\d)$/;var Pi=/^(\d{4})-(\d\d)$/;var Ni=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;var Ii={text:ji,date:Ui("date",Oi,Hi(Oi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Ui("datetimelocal",Ai,Hi(Ai,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Ui("time",Ni,Hi(Ni,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Ui("week",Mi,Fi,"yyyy-Www"),month:Ui("month",Pi,Hi(Pi,["yyyy","MM"]),"yyyy-MM"),number:Li,url:_i,email:Bi,radio:Yi,checkbox:zi,hidden:P,button:P,submit:P,reset:P,file:P};function Vi(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function ji(e,t,n,r,i,a){Ri(e,t,n,r,i,a);Vi(r)}function Ri(e,t,n,r,i,a){var s=o(t[0].type);if(!i.android){var l=false;t.on("compositionstart",function(e){l=true});t.on("compositionend",function(){l=false;u()})}var u=function(e){if(c){a.defer.cancel(c);c=null}if(l)return;var i=t.val(),o=e&&e.type;if(s!=="password"&&(!n.ngTrim||n.ngTrim!=="false")){i=K(i)}if(r.$viewValue!==i||i===""&&r.$$hasNativeValidators){r.$setViewValue(i,o)}};if(i.hasEvent("input")){t.on("input",u)}else{var c;var f=function(e,t,n){if(!c){c=a.defer(function(){c=null;if(!t||t.value!==n){u(e)}})}};t.on("keydown",function(e){var t=e.keyCode;if(t===91||15<t&&t<19||37<=t&&t<=40)return;f(e,this,this.value)});if(i.hasEvent("paste")){t.on("paste cut",f)}}t.on("change",u);r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function Fi(e,t){if(U(e)){return e}if(F(e)){Mi.lastIndex=0;var n=Mi.exec(e);if(n){var r=+n[1],i=+n[2],a=0,o=0,s=0,l=0,u=ei(r),c=(i-1)*7;if(t){a=t.getHours();o=t.getMinutes();s=t.getSeconds();l=t.getMilliseconds()}return new Date(r,0,u.getDate()+c,a,o,s,l)}}return NaN}function Hi(e,t){return function(n,r){var i,a;if(U(n)){return n}if(F(n)){if(n.charAt(0)=='"'&&n.charAt(n.length-1)=='"'){n=n.substring(1,n.length-1)}if(Ti.test(n)){return new Date(n)}e.lastIndex=0;i=e.exec(n);if(i){i.shift();if(r){a={yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}}else{a={yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0}}k(i,function(e,n){if(n<t.length){a[t[n]]=+e}});return new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,a.sss*1e3||0)}}return NaN}}function Ui(e,t,r,i){return function a(o,s,l,u,c,f,p){qi(o,s,l,u);Ri(o,s,l,u,c,f);var d=u&&u.$options&&u.$options.timezone;var h;u.$$parserName=e;u.$parsers.push(function(e){if(u.$isEmpty(e))return null;if(t.test(e)){var i=r(e,h);if(d==="UTC"){i.setMinutes(i.getMinutes()-i.getTimezoneOffset())}return i}return n});u.$formatters.push(function(e){if(e&&!U(e)){throw wa("datefmt","Expected `{0}` to be a date",e)}if(m(e)){h=e;if(h&&d==="UTC"){var t=6e4*h.getTimezoneOffset();h=new Date(h.getTime()+t)}return p("date")(e,i,d)}else{h=null;return""}});if(j(l.min)||l.ngMin){var v;u.$validators.min=function(e){return!m(e)||V(v)||r(e)>=v};l.$observe("min",function(e){v=$(e);u.$validate()})}if(j(l.max)||l.ngMax){var g;u.$validators.max=function(e){return!m(e)||V(g)||r(e)<=g};l.$observe("max",function(e){g=$(e);u.$validate()})}function m(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function $(e){return j(e)?U(e)?e:r(e):n}}}function qi(e,t,r,i){var o=t[0];var s=i.$$hasNativeValidators=R(o.validity);if(s){i.$parsers.push(function(e){var r=t.prop(a)||{};return r.badInput&&!r.typeMismatch?n:e})}}function Li(e,t,r,i,a,o){qi(e,t,r,i);Ri(e,t,r,i,a,o);i.$$parserName="number";i.$parsers.push(function(e){if(i.$isEmpty(e))return null;if(Ei.test(e))return parseFloat(e);return n});i.$formatters.push(function(e){if(!i.$isEmpty(e)){if(!H(e)){throw wa("numfmt","Expected `{0}` to be a number",e)}e=e.toString()}return e});if(j(r.min)||r.ngMin){var s;i.$validators.min=function(e){return i.$isEmpty(e)||V(s)||e>=s};r.$observe("min",function(e){if(j(e)&&!H(e)){e=parseFloat(e,10)}s=H(e)&&!isNaN(e)?e:n;i.$validate()})}if(j(r.max)||r.ngMax){var l;i.$validators.max=function(e){return i.$isEmpty(e)||V(l)||e<=l};r.$observe("max",function(e){if(j(e)&&!H(e)){e=parseFloat(e,10)}l=H(e)&&!isNaN(e)?e:n;i.$validate()})}}function _i(e,t,n,r,i,a){Ri(e,t,n,r,i,a);Vi(r);r.$$parserName="url";r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Si.test(n)}}function Bi(e,t,n,r,i,a){Ri(e,t,n,r,i,a);Vi(r);r.$$parserName="email";r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Di.test(n)}}function Yi(e,t,n,r){if(V(n.name)){t.attr("name",D())}var i=function(e){if(t[0].checked){r.$setViewValue(n.value,e&&e.type)}};t.on("click",i);r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue};n.$observe("value",r.$render)}function Wi(e,t,n,i,a){var o;if(j(i)){o=e(i);if(!o.constant){throw r("ngModel")("constexpr","Expected constant expression for `{0}`, but saw "+"`{1}`.",n,i)}return o(t)}return a}function zi(e,t,n,r,i,a,o,s){var l=Wi(s,e,"ngTrueValue",n.ngTrueValue,true);var u=Wi(s,e,"ngFalseValue",n.ngFalseValue,false);var c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c);r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(e){return e===false};r.$formatters.push(function(e){return oe(e,l)});r.$parsers.push(function(e){return e?l:u})}var Xi=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,a,s,l){if(l[0]){(Ii[o(s.type)]||Ii.text)(i,a,s,l[0],t,e,n,r)}}}}}];var Gi=/^(true|false|\d+)$/;var Zi=function(){return{restrict:"A",priority:100,compile:function(e,t){if(Gi.test(t.ngValue)){return function e(t,n,r){r.$set("value",t.$eval(r.ngValue))}}
1else{return function e(t,n,r){t.$watch(r.ngValue,function e(t){r.$set("value",t)})}}}}};var Ki=["$compile",function(e){return{restrict:"AC",compile:function t(r){e.$$addBindingClass(r);return function t(r,i,a){e.$$addBindingInfo(i,a.ngBind);i=i[0];r.$watch(a.ngBind,function e(t){i.textContent=t===n?"":t})}}}}];var Qi=["$interpolate","$compile",function(e,t){return{compile:function r(i){t.$$addBindingClass(i);return function r(i,a,o){var s=e(a.attr(o.$attr.ngBindTemplate));t.$$addBindingInfo(a,s.expressions);a=a[0];o.$observe("ngBindTemplate",function(e){a.textContent=e===n?"":e})}}}}];var Ji=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function r(i,a){var o=t(a.ngBindHtml);var s=t(a.ngBindHtml,function e(t){return(t||"").toString()});n.$$addBindingClass(i);return function t(r,i,a){n.$$addBindingInfo(i,a.ngBindHtml);r.$watch(s,function t(){i.html(e.getTrustedHtml(o(r))||"")})}}}}];var ea=I({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}});function ta(e,t){e="ngClass"+e;return["$animate",function(n){return{restrict:"AC",link:function(a,o,s){var l;a.$watch(s[e],d,true);s.$observe("class",function(t){d(a.$eval(s[e]))});if(e!=="ngClass"){a.$watch("$index",function(n,r){var o=n&1;if(o!==(r&1)){var l=i(a.$eval(s[e]));o===t?u(l):c(l)}})}function u(e){var t=f(e,1);s.$addClass(t)}function c(e){var t=f(e,-1);s.$removeClass(t)}function f(e,t){var n=o.data("$classCounts")||{};var r=[];k(e,function(e){if(t>0||n[e]){n[e]=(n[e]||0)+t;if(n[e]===+(t>0)){r.push(e)}}});o.data("$classCounts",n);return r.join(" ")}function p(e,t){var i=r(t,e);var a=r(e,t);i=f(i,1);a=f(a,-1);if(i&&i.length){n.addClass(o,i)}if(a&&a.length){n.removeClass(o,a)}}function d(e){if(t===true||a.$index%2===t){var n=i(e||[]);if(!l){u(n)}else if(!oe(e,l)){var r=i(l);p(r,n)}}l=ae(e)}}};function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){var i=e[r];for(var a=0;a<t.length;a++){if(i==t[a])continue e}n.push(i)}return n}function i(e){if(q(e)){return e}else if(F(e)){return e.split(" ")}else if(R(e)){var t=[];k(e,function(e,n){if(e){t=t.concat(n.split(" "))}});return t}return e}}]}var na=ta("",true);var ra=ta("Odd",0);var ia=ta("Even",1);var aa=vi({compile:function(e,t){t.$set("ngCloak",n);e.removeClass("ng-cloak")}});var oa=[function(){return{restrict:"A",scope:true,controller:"@",priority:500}}];var sa={};var la={blur:true,focus:true};k("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=an("ng-"+e);sa[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,a){var o=n(a[t],null,true);return function t(n,i){i.on(e,function(t){var i=function(){o(n,{$event:t})};if(la[e]&&r.$$phase){n.$evalAsync(i)}else{n.$apply(i)}})}}}}]});var ua=["$animate",function(e){return{multiElement:true,transclude:"element",priority:600,terminal:true,restrict:"A",$$tlb:true,link:function(n,r,i,a,o){var s,l,u;n.$watch(i.ngIf,function n(a){if(a){if(!l){o(function(n,a){l=a;n[n.length++]=t.createComment(" end ngIf: "+i.ngIf+" ");s={clone:n};e.enter(n,r.parent(),r)})}}else{if(u){u.remove();u=null}if(l){l.$destroy();l=null}if(s){u=Ve(s.clone);e.leave(u).then(function(){u=null});s=null}}})}}}];var ca=["$templateRequest","$anchorScroll","$animate","$sce",function(e,t,n,r){return{restrict:"ECA",priority:400,terminal:true,transclude:"element",controller:y.noop,compile:function(i,a){var o=a.ngInclude||a.src,s=a.onload||"",l=a.autoscroll;return function(i,a,u,c,f){var p=0,d,h,v;var g=function(){if(h){h.remove();h=null}if(d){d.$destroy();d=null}if(v){n.leave(v).then(function(){h=null});h=v;v=null}};i.$watch(r.parseAsResourceUrl(o),function r(o){var u=function(){if(j(l)&&(!l||i.$eval(l))){t()}};var h=++p;if(o){e(o,true).then(function(e){if(h!==p)return;var t=i.$new();c.template=e;var r=f(t,function(e){g();n.enter(e,null,a).then(u)});d=t;v=r;d.$emit("$includeContentLoaded",o);i.$eval(s)},function(){if(h===p){g();i.$emit("$includeContentError",o)}});i.$emit("$includeContentRequested",o)}else{g();c.template=null}})}}}}];var fa=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,a){if(
1/SVG/.test(r[0].toString())){r.empty();e(ft(a.template,t).childNodes)(n,function e(t){r.append(t)},{futureParentElement:r});return}r.html(a.template);e(r.contents())(n)}}}];var pa=vi({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}});var da=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,r,i){var a=t.attr(r.$attr.ngList)||", ";var o=r.ngTrim!=="false";var s=o?K(a):a;var l=function(e){if(V(e))return;var t=[];if(e){k(e.split(s),function(e){if(e)t.push(o?K(e):e)})}return t};i.$parsers.push(l);i.$formatters.push(function(e){if(q(e)){return e.join(a)}return n});i.$isEmpty=function(e){return!e||!e.length}}}};var ha="ng-valid",va="ng-invalid",ga="ng-pristine",ma="ng-dirty",$a="ng-untouched",ya="ng-touched",ba="ng-pending";var wa=new r("ngModel");var xa=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,r,i,a,o,s,l,u,c){this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$$rawModelValue=n;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=true;this.$touched=false;this.$pristine=true;this.$dirty=false;this.$valid=true;this.$invalid=false;this.$error={};this.$$success={};this.$pending=n;this.$name=c(r.name||"",false)(e);var f=a(r.ngModel),p=f.assign,d=f,h=p,v=null,g,m=this;this.$$setOptions=function(e){m.$options=e;if(e&&e.getterSetter){var t=a(r.ngModel+"()"),n=a(r.ngModel+"($$$p)");d=function(e){var n=f(e);if(L(n)){n=t(e)}return n};h=function(e,t){if(L(f(e))){n(e,{$$$p:m.$modelValue})}else{p(e,m.$modelValue)}}}else if(!f.assign){throw wa("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,he(i))}};this.$render=P;this.$isEmpty=function(e){return V(e)||e===""||e===null||e!==e};var $=i.inheritedData("$formController")||$i,y=0;Sa({ctrl:this,$element:i,set:function(e,t){e[t]=true},unset:function(e,t){delete e[t]},parentForm:$,$animate:o});this.$setPristine=function(){m.$dirty=false;m.$pristine=true;o.removeClass(i,ma);o.addClass(i,ga)};this.$setDirty=function(){m.$dirty=true;m.$pristine=false;o.removeClass(i,ga);o.addClass(i,ma);$.$setDirty()};this.$setUntouched=function(){m.$touched=false;m.$untouched=true;o.setClass(i,$a,ya)};this.$setTouched=function(){m.$touched=true;m.$untouched=false;o.setClass(i,ya,$a)};this.$rollbackViewValue=function(){s.cancel(v);m.$viewValue=m.$$lastCommittedViewValue;m.$render()};this.$validate=function(){if(H(m.$modelValue)&&isNaN(m.$modelValue)){return}var e=m.$$lastCommittedViewValue;var t=m.$$rawModelValue;var r=m.$valid;var i=m.$modelValue;var a=m.$options&&m.$options.allowInvalid;m.$$runValidators(t,e,function(e){if(!a&&r!==e){m.$modelValue=e?t:n;if(m.$modelValue!==i){m.$$writeModelToScope()}}})};this.$$runValidators=function(e,t,r){y++;var i=y;if(!a()){c(false);return}if(!o()){c(false);return}s();function a(){var e=m.$$parserName||"parse";if(g===n){l(e,null)}else{if(!g){k(m.$validators,function(e,t){l(t,null)});k(m.$asyncValidators,function(e,t){l(t,null)})}l(e,g);return g}return true}function o(){var n=true;k(m.$validators,function(r,i){var a=r(e,t);n=n&&a;l(i,a)});if(!n){k(m.$asyncValidators,function(e,t){l(t,null)});return false}return true}function s(){var r=[];var i=true;k(m.$asyncValidators,function(a,o){var s=a(e,t);if(!Z(s)){throw wa("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",s)}l(o,n);r.push(s.then(function(){l(o,true)},function(e){i=false;l(o,false)}))});if(!r.length){c(true)}else{u.all(r).then(function(){c(i)},P)}}function l(e,t){if(i===y){m.$setValidity(e,t)}}function c(e){if(i===y){r(e)}}};this.$commitViewValue=function(){var e=m.$viewValue;s.cancel(v);if(m.$$lastCommittedViewValue===e&&(e!==""||!m.$$hasNativeValidators)){return}m.$$lastCommittedViewValue=e;if(m.$pristine){this.$setDirty()}this.$$parseAndValidate()};this.$$parseAndValidate=function(){var t=m.$$lastCommittedViewValue;var r=t;g=V(r)?n:true;if(g){for(var i=0;i<m.$parsers.length;i++){r=m.$parsers[i](r);if(V(r)){g=false;break}}}if(H(m.$modelValue)&&isNaN(m.$modelValue)){m.$modelValue=d(e)}var a=m.$modelValue;var o=m.$options&&m.$options.allowInvalid;m.$$rawModelValue=r;if(o){m.$modelValue=r;s()}m.$$runValidators(r,m.$$lastCommittedViewValue,function(e){if(!o){m.$modelValue=e?r:n;s()}});function s(){if(m.$modelValue!==a){m.$$writeModelToScope()}}};this.$$writeModelToScope=function(){h(e,m.$modelValue);k(m.$viewChangeListeners,function(e){try{e()}catch(e){t(e)}})};this.$setViewValue=function(e,t){m.$viewValue=e;if(!m.$options||m.$options.updateOnDefault){m.$$debounceViewValueCommit(t)}};this.$$debounceViewValueCommit=function(t){var n=0,r=m.$options,i;if(r&&j(r.debounce)){i=r.debounce;if(H(i)){n=i}else if(H(i[t])){n=i[t]}else if(H(i["default"])){n=i["default"]}}s.cancel(v);
1if(n){v=s(function(){m.$commitViewValue()},n)}else if(l.$$phase){m.$commitViewValue()}else{e.$apply(function(){m.$commitViewValue()})}};e.$watch(function t(){var r=d(e);if(r!==m.$modelValue&&(m.$modelValue===m.$modelValue||r===r)){m.$modelValue=m.$$rawModelValue=r;g=n;var i=m.$formatters,a=i.length;var o=r;while(a--){o=i[a](o)}if(m.$viewValue!==o){m.$viewValue=m.$$lastCommittedViewValue=o;m.$render();m.$$runValidators(r,o,P)}}return r})}];var ka=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:xa,priority:1,compile:function t(n){n.addClass(ga).addClass($a).addClass(ha);return{pre:function e(t,n,r,i){var a=i[0],o=i[1]||$i;a.$$setOptions(i[2]&&i[2].$options);o.$addControl(a);r.$observe("name",function(e){if(a.$name!==e){o.$$renameControl(a,e)}});t.$on("$destroy",function(){o.$removeControl(a)})},post:function t(n,r,i,a){var o=a[0];if(o.$options&&o.$options.updateOn){r.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)})}r.on("blur",function(t){if(o.$touched)return;if(e.$$phase){n.$evalAsync(o.$setTouched)}else{n.$apply(o.$setTouched)}})}}}}}];var Ca=/(\s+|^)default(\s+|$)/;var Ta=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var r=this;this.$options=e.$eval(t.ngModelOptions);if(this.$options.updateOn!==n){this.$options.updateOnDefault=false;this.$options.updateOn=K(this.$options.updateOn.replace(Ca,function(){r.$options.updateOnDefault=true;return" "}))}else{this.$options.updateOnDefault=true}}]}};function Sa(e){var t=e.ctrl,r=e.$element,i={},a=e.set,o=e.unset,s=e.parentForm,l=e.$animate;i[va]=!(i[ha]=r.hasClass(ha));t.$setValidity=u;function u(e,r,i){if(r===n){c("$pending",e,i)}else{f("$pending",e,i)}if(!G(r)){o(t.$error,e,i);o(t.$$success,e,i)}else{if(r){o(t.$error,e,i);a(t.$$success,e,i)}else{a(t.$error,e,i);o(t.$$success,e,i)}}if(t.$pending){p(ba,true);t.$valid=t.$invalid=n;d("",null)}else{p(ba,false);t.$valid=Da(t.$error);t.$invalid=!t.$valid;d("",t.$valid)}var l;if(t.$pending&&t.$pending[e]){l=n}else if(t.$error[e]){l=false}else if(t.$$success[e]){l=true}else{l=null}d(e,l);s.$setValidity(e,l,t)}function c(e,n,r){if(!t[e]){t[e]={}}a(t[e],n,r)}function f(e,r,i){if(t[e]){o(t[e],r,i)}if(Da(t[e])){t[e]=n}}function p(e,t){if(t&&!i[e]){l.addClass(r,e);i[e]=true}else if(!t&&i[e]){l.removeClass(r,e);i[e]=false}}function d(e,t){e=e?"-"+De(e,"-"):"";p(ha+e,t===true);p(va+e,t===false)}}function Da(e){if(e){for(var t in e){return false}}return true}var Ea=vi({terminal:true,priority:1e3});var Oa=["$locale","$interpolate",function(e,t){var n=/{}/g,r=/^when(Minus)?(.+)$/;return{restrict:"EA",link:function(i,a,s){var l=s.count,u=s.$attr.when&&a.attr(s.$attr.when),c=s.offset||0,f=i.$eval(u)||{},p={},d=t.startSymbol(),h=t.endSymbol(),v=d+l+"-"+c+h,g=y.noop,m;k(s,function(e,t){var n=r.exec(t);if(n){var i=(n[1]?"-":"")+o(n[2]);f[i]=a.attr(s.$attr[t])}});k(f,function(e,r){p[r]=t(e.replace(n,v))});i.$watch(l,function t(n){var r=parseFloat(n);var a=isNaN(r);if(!a&&!(r in f)){r=e.pluralCat(r-c)}if(r!==m&&!(a&&isNaN(m))){g();g=i.$watch(p[r],$);m=r}});function $(e){a.text(e||"")}}}}];var Aa=["$parse","$animate",function(e,i){var a="$$NG_REMOVED";var o=r("ngRepeat");var s=function(e,t,n,r,i,a,o){e[n]=r;if(i)e[i]=a;e.$index=t;e.$first=t===0;e.$last=t===o-1;e.$middle=!(e.$first||e.$last);e.$odd=!(e.$even=(t&1)===0)};var l=function(e){return e.clone[0]};var u=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:true,transclude:"element",priority:1e3,terminal:true,$$tlb:true,compile:function r(c,f){var d=f.ngRepeat;var h=t.createComment(" end ngRepeat: "+d+" ");var v=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!v){throw o("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d)}var g=v[1];var m=v[2];var $=v[3];var y=v[4];v=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!v){throw o("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g)}var b=v[3]||v[1];var w=v[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($))){throw o("badident","alias '{0}
1' is invalid --- must be a valid JS identifier which is not a reserved name.",$)}var C,T,S,D;var E={$id:Rt};if(y){C=e(y)}else{S=function(e,t){return Rt(t)};D=function(e){return e}}return function e(t,r,c,f,v){if(C){T=function(e,n,r){if(w)E[w]=e;E[b]=n;E.$index=r;return C(t,E)}}var g=je();t.$watchCollection(m,function e(c){var f,m,y=r[0],C,E=je(),O,A,M,P,N,I,V,j,R;if($){t[$]=c}if(x(c)){I=c;N=T||S}else{N=T||D;I=[];for(var F in c){if(c.hasOwnProperty(F)&&F.charAt(0)!="$"){I.push(F)}}I.sort()}O=I.length;j=new Array(O);for(f=0;f<O;f++){A=c===I?f:I[f];M=c[A];P=N(A,M,f);if(g[P]){V=g[P];delete g[P];E[P]=V;j[f]=V}else if(E[P]){k(j,function(e){if(e&&e.scope)g[e.id]=e});throw o("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,P,M)}else{j[f]={id:P,scope:n,clone:n};E[P]=true}}for(var H in g){V=g[H];R=Ve(V.clone);i.leave(R);if(R[0].parentNode){for(f=0,m=R.length;f<m;f++){R[f][a]=true}}V.scope.$destroy()}for(f=0;f<O;f++){A=c===I?f:I[f];M=c[A];V=j[f];if(V.scope){C=y;do{C=C.nextSibling}while(C&&C[a]);if(l(V)!=C){i.move(Ve(V.clone),null,p(y))}y=u(V);s(V.scope,f,b,M,w,A,O)}else{v(function e(t,n){V.scope=n;var r=h.cloneNode(false);t[t.length++]=r;i.enter(t,null,p(y));y=r;V.clone=t;E[V.id]=V;s(V.scope,f,b,M,w,A,O)})}}g=E})}}}}];var Ma="ng-hide";var Pa="ng-hide-animate";var Na=["$animate",function(e){return{restrict:"A",multiElement:true,link:function(t,n,r){t.$watch(r.ngShow,function t(r){e[r?"removeClass":"addClass"](n,Ma,{tempClasses:Pa})})}}}];var Ia=["$animate",function(e){return{restrict:"A",multiElement:true,link:function(t,n,r){t.$watch(r.ngHide,function t(r){e[r?"addClass":"removeClass"](n,Ma,{tempClasses:Pa})})}}}];var Va=vi(function(e,t,n){e.$watch(n.ngStyle,function e(n,r){if(r&&n!==r){k(r,function(e,n){t.css(n,"")})}if(n)t.css(n)},true)});var ja=["$animate",function(e){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function e(){this.cases={}}],link:function(n,r,i,a){var o=i.ngSwitch||i.on,s=[],l=[],u=[],c=[];var f=function(e,t){return function(){e.splice(t,1)}};n.$watch(o,function n(r){var i,o;for(i=0,o=u.length;i<o;++i){e.cancel(u[i])}u.length=0;for(i=0,o=c.length;i<o;++i){var p=Ve(l[i].clone);c[i].$destroy();var d=u[i]=e.leave(p);d.then(f(u,i))}l.length=0;c.length=0;if(s=a.cases["!"+r]||a.cases["?"]){k(s,function(n){n.transclude(function(r,i){c.push(i);var a=n.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");var o={clone:r};l.push(o);e.enter(r,a.parent(),a)})})}})}}}];var Ra=vi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:true,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[];r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}});var Fa=vi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:true,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:i,element:t})}});var Ha=vi({restrict:"EAC",link:function(e,t,n,i,a){if(!a){throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! "+"No parent directive that requires a transclusion found. "+"Element: {0}",he(t))}a(function(e){t.empty();t.append(e)})}});var Ua=["$templateCache",function(e){return{restrict:"E",terminal:true,compile:function(t,n){if(n.type=="text/ng-template"){var r=n.id,i=t[0].text;e.put(r,i)}}}}];var qa=r("ngOptions");var La=I({restrict:"A",terminal:true});var _a=["$compile","$parse",function(e,r){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\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]+?))?$/,a={$setViewValue:P};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r=this,i={},o=a,s,l;r.databound=n.ngModel;r.init=function(e,t,n){o=e;s=t;l=n};r.addOption=function(t,n){Ne(t,'"option value"');i[t]=true;if(o.$viewValue==t){e.val(t);if(l.parent())l.remove()}if(n&&n[0].hasAttribute("selected")){n[0].selected=true}};r.removeOption=function(e){if(this.hasOption(e)){delete i[e];if(o.$viewValue===e){this.renderUnknownOption(e)}}};r.renderUnknownOption=function(t){var n="? "+Rt(t)+" ?";l.val(n);
1e.prepend(l);e.val(n);l.prop("selected",true)};r.hasOption=function(e){return i.hasOwnProperty(e)};t.$on("$destroy",function(){r.renderUnknownOption=P})}],link:function(a,o,s,l){if(!l[1])return;var u=l[0],c=l[1],d=s.multiple,h=s.ngOptions,v=false,g,m=false,$=p(t.createElement("option")),y=p(t.createElement("optgroup")),b=$.clone();for(var w=0,x=o.children(),T=x.length;w<T;w++){if(x[w].value===""){g=v=x.eq(w);break}}u.init(c,v,b);if(d){c.$isEmpty=function(e){return!e||e.length===0}}if(h)E(a,o,c);else if(d)D(a,o,c);else S(a,o,c,u);function S(e,t,n,r){n.$render=function(){var e=n.$viewValue;if(r.hasOption(e)){if(b.parent())b.remove();t.val(e);if(e==="")g.prop("selected",true)}else{if(e==null&&g){t.val("")}else{r.renderUnknownOption(e)}}};t.on("change",function(){e.$apply(function(){if(b.parent())b.remove();n.$setViewValue(t.val())})})}function D(e,t,n){var r;n.$render=function(){var e=new Ft(n.$viewValue);k(t.find("option"),function(t){t.selected=j(e.get(t.value))})};e.$watch(function e(){if(!oe(r,n.$viewValue)){r=ae(n.$viewValue);n.$render()}});t.on("change",function(){e.$apply(function(){var e=[];k(t.find("option"),function(t){if(t.selected){e.push(t.value)}});n.$setViewValue(e)})})}function E(t,a,o){var s;if(!(s=h.match(i))){throw qa("iexp","Expected expression in form of "+"'_select_ (as _label_)? for (_key_,)?_value_ in _collection_'"+" but got '{0}'. Element: {1}",h,he(a))}var l=r(s[2]||s[1]),c=s[4]||s[6],p=/ as /.test(s[0])&&s[1],g=p?r(p):null,b=s[5],w=r(s[3]||""),x=r(s[2]?s[1]:c),T=r(s[7]),S=s[8],D=S?r(s[8]):null,E={},O=[[{element:a,label:""}]],A={};if(v){e(v)(t);v.removeClass("ng-scope");v.remove()}a.empty();a.on("change",P);o.$render=H;t.$watchCollection(T,R);t.$watchCollection(I,R);if(d){t.$watchCollection(function(){return o.$modelValue},R)}function M(e,n,r){A[c]=r;if(b)A[b]=n;return e(t,A)}function P(){t.$apply(function(){var e=T(t)||[];var n;if(d){n=[];k(a.val(),function(t){t=D?E[t]:t;n.push(N(t,e[t]))})}else{var r=D?E[a.val()]:a.val();n=N(r,e[r])}o.$setViewValue(n);H()})}function N(e,t){if(e==="?"){return n}else if(e===""){return null}else{var r=g?g:x;return M(r,e,t)}}function I(){var e=T(t);var n;if(e&&q(e)){n=new Array(e.length);for(var r=0,i=e.length;r<i;r++){n[r]=M(l,r,e[r])}return n}else if(e){n={};for(var a in e){if(e.hasOwnProperty(a)){n[a]=M(l,a,e[a])}}}return n}function V(e){var t;if(d){if(D&&q(e)){t=new Ft([]);for(var n=0;n<e.length;n++){t.put(M(D,null,e[n]),true)}}else{t=new Ft(e)}}else if(D){e=M(D,null,e)}return function n(r,i){var a;if(D){a=D}else if(g){a=g}else{a=x}if(d){return j(t.remove(M(a,r,i)))}else{return e===M(a,r,i)}}}function R(){if(!m){t.$$postDigest(H);m=true}}function F(e,t,n){e[t]=e[t]||0;e[t]+=n?1:-1}function H(){m=false;var e={"":[]},n=[""],r,i,s,c,p,h,g=o.$viewValue,x=T(t)||[],S=b?C(x):x,P,N,I,R,H,U,q={},L,_=V(g),B=false,Y,W,z,X;E={};for(U=0;R=S.length,U<R;U++){P=U;if(b){P=S[U];if(P.charAt(0)==="$")continue}N=x[P];r=M(w,P,N)||"";if(!(i=e[r])){i=e[r]=[];n.push(r)}L=_(P,N);B=B||L;z=M(l,P,N);z=j(z)?z:"";X=D?D(t,A):b?S[U]:U;if(D){E[X]=P}i.push({id:X,label:z,selected:L})}if(!d){if(v||g===null){e[""].unshift({id:"",label:"",selected:!B})}else if(!B){e[""].unshift({id:"?",label:"",selected:true})}}for(H=0,I=n.length;H<I;H++){r=n[H];i=e[r];if(O.length<=H){c={element:y.clone().attr("label",r),label:i.label};p=[c];O.push(p);a.append(c.element)}else{p=O[H];c=p[0];if(c.label!=r){c.element.attr("label",c.label=r)}}Y=null;for(U=0,R=i.length;U<R;U++){s=i[U];if(h=p[U+1]){Y=h.element;if(h.label!==s.label){F(q,h.label,false);F(q,s.label,true);Y.text(h.label=s.label);Y.prop("label",h.label)}if(h.id!==s.id){Y.val(h.id=s.id)}if(Y[0].selected!==s.selected){Y.prop("selected",h.selected=s.selected);if(f){Y.prop("selected",h.selected)}}}else{if(s.id===""&&v){W=v}else{(W=$.clone()).val(s.id).prop("selected",s.selected).attr("selected",s.selected).prop("label",s.label).text(s.label)}p.push(h={element:W,label:s.label,id:s.id,selected:s.selected});F(q,s.label,true);if(Y){Y.after(W)}else{c.element.append(W)}Y=W}}U++;while(p.length>U){s=p.pop();F(q,s.label,false);s.element.remove()}}while(O.length>H){i=O.pop();for(U=1;U<i.length;++U){F(q,i[U].label,false)}i[0].element.remove()}k(q,function(e,t){if(e>0){u.addOption(t)}else if(e<0){u.removeOption(t)}})}}}}}];var Ba=["$interpolate",function(e){var t={addOption:P,removeOption:P};return{restrict:"E",priority:100,compile:function(n,r){if(V(r.value)){var i=e(n.text(),true);if(!i){r.$set("value",n.text())}}return function(e,n,r){var a="$selectController",o=n.parent(),s=o.data(a)||o.parent().data(a);if(!s||!s.databound){s=t}if(i){e.$watch(i,function e(t,i){r.$set("value",t);if(i!==t){s.removeOption(i)}s.addOption(t,n)})}else{s.addOption(r.value,n)}n.on("$destroy",function(){s.removeOption(r.value)})}}}}];var Ya=I({restrict:"E",terminal:false});var Wa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(!r)return;n.required=true;r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)};n.$observe("required",function(){r.$validate()})}}};var za=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,i,a){if(!a)return;var o,s=i.ngPattern||i.pattern;i.$observe("pattern",function(e){if(F(e)&&e.length>
10){e=new RegExp("^"+e+"$")}if(e&&!e.test){throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,e,he(t))}o=e||n;a.$validate()});a.$validators.pattern=function(e){return a.$isEmpty(e)||V(o)||o.test(e)}}}};var Xa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(!r)return;var i=-1;n.$observe("maxlength",function(e){var t=A(e);i=isNaN(t)?-1:t;r.$validate()});r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}};var Ga=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(!r)return;var i=0;n.$observe("minlength",function(e){i=A(e)||0;r.$validate()});r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}};if(e.angular.bootstrap){console.log("WARNING: Tried to load angular more than once.");return}Ae();ze(y);p(t).ready(function(){xe(t,ke)})})(window,document);!window.angular.$$csp()&&window.angular.element(document).find("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;}</style>');(function(e,t,n){"use strict";var r=t.module("ngRoute",["ng"]).provider("$route",a),i=t.$$minErr("ngRoute");function a(){function e(e,n){return t.extend(Object.create(e),n)}var n={};this.when=function(e,i){var a=t.copy(i);if(t.isUndefined(a.reloadOnSearch)){a.reloadOnSearch=true}if(t.isUndefined(a.caseInsensitiveMatch)){a.caseInsensitiveMatch=this.caseInsensitiveMatch}n[e]=t.extend(a,e&&r(e,a));if(e){var o=e[e.length-1]=="/"?e.substr(0,e.length-1):e+"/";n[o]=t.extend({redirectTo:e},r(o,a))}return this};this.caseInsensitiveMatch=false;function r(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(e,t,n,r){var a=r==="?"?r:null;var o=r==="*"?r:null;i.push({name:n,optional:!!a});t=t||"";return""+(a?"":t)+"(?:"+(a?t:"")+(o&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$\*])/g,"\\$1");r.regexp=new RegExp("^"+e+"$",n?"i":"");return r}this.otherwise=function(e){if(typeof e==="string"){e={redirectTo:e}}this.when(null,e);return this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(r,a,o,s,l,u,c){var f=false,p,d,h={routes:n,reload:function(){f=true;r.$evalAsync(function(){g();m()})},updateParams:function(e){if(this.current&&this.current.$$route){e=t.extend({},this.current.params,e);a.path(y(this.current.$$route.originalPath,e));a.search(e)}else{throw i("norout","Tried updating route when with no current route")}}};r.$on("$locationChangeStart",g);r.$on("$locationChangeSuccess",m);return h;function v(e,t){var n=t.keys,r={};if(!t.regexp)return null;var i=t.regexp.exec(e);if(!i)return null;for(var a=1,o=i.length;a<o;++a){var s=n[a-1];var l=i[a];if(s&&l){r[s.name]=l}}return r}function g(e){var n=h.current;p=$();d=p&&n&&p.$$route===n.$$route&&t.equals(p.pathParams,n.pathParams)&&!p.reloadOnSearch&&!f;if(!d&&(n||p)){if(r.$broadcast("$routeChangeStart",p,n).defaultPrevented){if(e){e.preventDefault()}}}}function m(){var e=h.current;var n=p;if(d){e.params=n.params;t.copy(e.params,o);r.$broadcast("$routeUpdate",e)}else if(n||e){f=false;h.current=n;if(n){if(n.redirectTo){if(t.isString(n.redirectTo)){a.path(y(n.redirectTo,n.params)).search(n.params).replace()}else{a.url(n.redirectTo(n.pathParams,a.path(),a.search())).replace()}}}s.when(n).then(function(){if(n){var e=t.extend({},n.resolve),r,i;t.forEach(e,function(n,r){e[r]=t.isString(n)?l.get(n):l.invoke(n,null,null,r)});if(t.isDefined(r=n.template)){if(t.isFunction(r)){r=r(n.params)}}else if(t.isDefined(i=n.templateUrl)){if(t.isFunction(i)){i=i(n.params)}i=c.getTrustedResourceUrl(i);if(t.isDefined(i)){n.loadedTemplateUrl=i;r=u(i)}}if(t.isDefined(r)){e["$template"]=r}return s.all(e)}}).then(function(i){if(n==h.current){if(n){n.locals=i;t.copy(n.params,o)}r.$broadcast("$routeChangeSuccess",n,e)}},function(t){if(n==h.current){r.$broadcast("$routeChangeError",n,e,t)}})}}function $(){var r,i;t.forEach(n,function(n,o){if(!i&&(r=v(a.path(),n))){i=e(n,{params:t.extend({},a.search(),r),pathParams:r});i.$$route=n}});return i||n[null]&&e(n[null],{params:{},pathParams:{}})}function y(e,n){var r=[];t.forEach((e||"").split(":"),function(e,t){if(t===0){r.push(e)}else{var i=e.match(/(\w+)(?:[?*])?(.*)/);var a=i[1];
1r.push(n[a]);r.push(i[2]||"");delete n[a]}});return r.join("")}}]}r.provider("$routeParams",o);function o(){this.$get=function(){return{}}}r.directive("ngView",s);r.directive("ngView",l);s.$inject=["$route","$anchorScroll","$animate"];function s(e,n,r){return{restrict:"ECA",terminal:true,priority:400,transclude:"element",link:function(i,a,o,s,l){var u,c,f,p=o.autoscroll,d=o.onload||"";i.$on("$routeChangeSuccess",v);v();function h(){if(f){r.cancel(f);f=null}if(u){u.$destroy();u=null}if(c){f=r.leave(c);f.then(function(){f=null});c=null}}function v(){var o=e.current&&e.current.locals,s=o&&o.$template;if(t.isDefined(s)){var f=i.$new();var v=e.current;var g=l(f,function(e){r.enter(e,null,c||a).then(function e(){if(t.isDefined(p)&&(!p||i.$eval(p))){n()}});h()});c=g;u=v.scope=f;u.$emit("$viewContentLoaded");u.$eval(d)}else{h()}}}}}l.$inject=["$compile","$controller","$route"];function l(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var a=n.current,o=a.locals;i.html(o.$template);var s=e(i.contents());if(a.controller){o.$scope=r;var l=t(a.controller,o);if(a.controllerAs){r[a.controllerAs]=l}i.data("$ngControllerController",l);i.children().data("$ngControllerController",l)}s(r)}}}})(window,window.angular);(function(e,t,n){"use strict";t.module("ngAnimate",["ng"]).directive("ngAnimateChildren",function(){var e="$$ngAnimateChildren";return function(n,r,i){var a=i.ngAnimateChildren;if(t.isString(a)&&a.length===0){r.data(e,true)}else{n.$watch(a,function(t){r.data(e,!!t)})}}}).factory("$$animateReflow",["$$rAF","$document",function(e,t){var n=t[0].body;return function(t){return e(function(){t(n.offsetWidth)})}}]).config(["$provide","$animateProvider",function(r,i){var a=t.noop;var o=t.forEach;var s=i.$$selectors;var l=t.isArray;var u=t.isString;var c=t.isObject;var f=1;var p="$$ngAnimateState";var d="$$ngAnimateChildren";var h="ng-animate";var v={running:true};function g(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType==f){return n}}}function m(e){return e&&t.element(e)}function $(e){return t.element(g(e))}function y(e,t){return g(e)==g(t)}var b;r.decorator("$animate",["$delegate","$$q","$injector","$sniffer","$rootElement","$$asyncCallback","$rootScope","$document","$templateRequest","$$jqLite",function(e,n,r,f,w,x,k,C,T,S){b=S;w.data(p,v);var D=k.$watch(function(){return T.totalPendingRequests},function(e,t){if(e!==0)return;D();k.$$postDigest(function(){k.$$postDigest(function(){v.running=false})})});var E=0;var O=i.classNameFilter();var A=!O?function(){return true}:function(e){return O.test(e)};function M(e,t){var n=e.data(p)||{};if(t){n.running=true;n.structural=true;e.data(p,n)}return n.disabled||n.running&&n.structural}function P(e){var t,r=n.defer();r.promise.$$cancelFn=function(){t&&t()};k.$$postDigest(function(){t=e(function(){r.resolve()})});return r.promise}function N(e){if(c(e)){if(e.tempClasses&&u(e.tempClasses)){e.tempClasses=e.tempClasses.split(/\s+/)}return e}}function I(e,t,n){n=n||{};var r={};o(n,function(e,t){o(t.split(" "),function(t){r[t]=e})});var i=Object.create(null);o((e.attr("class")||"").split(/\s+/),function(e){i[e]=true});var a=[],s=[];o(t&&t.classes||[],function(e,t){var n=i[t];var o=r[t]||{};if(e===false){if(n||o.event=="addClass"){s.push(t)}}else if(e===true){if(!n||o.event=="removeClass"){a.push(t)}}});return a.length+s.length>0&&[a.join(" "),s.join(" ")]}function V(e){if(e){var t=[],n={},i=e.substr(1).split(".");if(f.transitions||f.animations){t.push(r.get(s[""]))}for(var a=0;a<i.length;a++){var o=i[a],l=s[o];if(l&&!n[o]){t.push(r.get(l));n[o]=true}}return t}}function j(e,n,r,i){var s=e[0];if(!s){return}if(i){i.to=i.to||{};i.from=i.from||{}}var u;var c;if(l(r)){u=r[0];c=r[1];if(!u){r=c;n="removeClass"}else if(!c){r=u;n="addClass"}else{r=u+" "+c}}var f=n=="setClass";var p=f||n=="addClass"||n=="removeClass"||n=="animate";var d=e.attr("class");var h=d+" "+r;if(!A(h)){return}var v=a,g=[],m=[],$=a,y=[],b=[];var w=(" "+h).replace(/\s+/g,".");o(V(w),function(e){var t=x(e,n);if(!t&&f){x(e,"addClass");x(e,"removeClass")}});function x(e,t){var n=e[t];var r=e["before"+t.charAt(0).toUpperCase()+t.substr(1)];if(n||r){if(t=="leave"){r=n;n=null}b.push({event:t,fn:n});m.push({event:t,fn:r});return true}}function k(t,n,s){var l=[];o(t,function(e){e.fn&&l.push(e)});var f=0;function p(e){if(n){(n[e]||a)();if(++f<l.length)return;n=null}s()}o(l,function(t,a){var o=function(){p(a)};switch(t.event){case"setClass":n.push(t.fn(e,u,c,o,i));break;case"animate":n.push(t.fn(e,r,i.from,i.to,o));break;case"addClass":n.push(t.fn(e,u||r,o,i));break;case"removeClass":n.push(t.fn(e,c||r,o,i));break;default:n.push(t.fn(e,o,i));break}});if(n&&n.length===0){s()}}return{node:s,event:n,className:r,isClassBased:p,isSetClassOperation:f,applyStyles:function(){if(i){e.css(t.extend(i.from||{},i.to||{}))}},before:function(e){v=e;k(m,g,function(){v=a;e()})},after:function(e){$=e;k(b,y,function(){$=a;e()})},cancel:function(){if(g){o(g,function(e){(e||a)(true)});v(true)}if(y){o(y,function(e){(e||a)(true)});$(true)}}}}return{animate:function(e,t,n,r,i){r=r||"ng-inline-animate";i=N(i)||{};i.from=n?t:null;i.to=n?n:t;return P(function(t){return R("animate",r,$(e),null,null,a,i,t)})},enter:function(n,r,i,o){o=N(o);n=t.element(n);r=m(r);i=m(i);M(n,true);e.enter(n,r,i);return P(function(e){return R("enter","ng-enter",$(n),r,i,a,o,e)})},leave:function(n,r){r=N(r);n=t.element(n);F(n);M(n,true);return P(function(t){return R("leave","ng-leave",$(n),null,null,function(){e.leave(n)},r,t)})},move:function(n,r,i,o){o=N(o);n=t.element(n);r=m(r);i=m(i);F(n);M(n,true);e.move(n,r,i);return P(function(e){return R("move","ng-move",$(n),r,i,a,o,e)})},addClass:function(e,t,n){return this.setClass(e,t,[],n)},removeClass:function(e,t,n){return this.setClass(e,[],t,n)},setClass:function(n,r,i,a){a=N(a);var s="$$animateClasses";n=t.element(n);n=$(n);if(M(n)){return e.$$setClassImmediately(n,r,i,a)}var u,c=n.data(s);var f=!!c;if(!c){c={};c.classes={}}u=c.classes;r=l(r)?r:r.split(" ");o(r,function(e){if(e&&e.length){u[e]=true}});i=l(i)?i:i.split(" ");o(i,function(e){if(e&&e.length){u[e]=false}});if(f){if(a&&c.options){c.options=t.extend(c.options||{},a)}return c.promise}else{n.data(s,c={classes:u,options:a})}return c.promise=P(function(t){var r,i,a,o=g(n);if(o){r=n.data(s);n.removeData(s);a=n.parent();i=o.parentNode}if(!i||i["$$NG_REMOVED"]||o["$$NG_REMOVED"]){t();return}var l=n.data(p)||{};var u=I(n,r,l.active);return!u?t():R("setClass",u,n,a,null,function(){if(u[0])e.$$addClassImmediately(n,u[0]);if(u[1])e.$$removeClassImmediately(n,u[1])},r.options,t)})},cancel:function(e){e.$$cancelFn()},enabled:function(e,t){switch(arguments.length){case 2:if(e){H(t)}else{var n=t.data(p)||{};n.disabled=true;t.data(p,n)}break;case 1:v.disabled=!e;break;default:e=!v.disabled;break}return!!e}};function R(e,n,r,i,s,l,u,c){var f=a;var d=j(r,e,n,u);if(!d){P();O();A();N();return f}e=d.event;n=d.className;var v=t.element._data(d.node);v=v&&v.events;if(!i){i=s?s.parent():r.parent()}if(U(r,i)){P();O();A();N();return f}var g=r.data(p)||{};var m=g.active||{};var $=g.totalActive||0;var y=g.last;var w=false;if($>0){var k=[];if(!d.isClassBased){if(e=="leave"&&m["ng-leave"]){w=true}else{for(var C in m){k.push(m[C])}g={};H(r,true)}}else if(y.event=="setClass"){k.push(y);H(r,n)}else if(m[n]){var T=m[n];if(T.event==e){w=true}else{k.push(T);H(r,n)}}if(k.length>0){o(k,function(e){e.cancel()})}}if(d.isClassBased&&!d.isSetClassOperation&&e!="animate"&&!w){w=e=="addClass"==r.hasClass(n)}if(w){P();O();A();M();return f}m=g.active||{};$=g.totalActive||0;if(e=="leave"){r.one("$destroy",function(e){var n=t.element(this);var r=n.data(p);if(r){var i=r.active["ng-leave"];if(i){i.cancel();H(n,"ng-leave")}}})}b.addClass(r,h);
1if(u&&u.tempClasses){o(u.tempClasses,function(e){b.addClass(r,e)})}var S=E++;$++;m[n]=d;r.data(p,{last:d,active:m,index:S,totalActive:$});O();d.before(function(t){var i=r.data(p);t=t||!i||!i.active[n]||d.isClassBased&&i.active[n].event!=e;P();if(t===true){N()}else{A();d.after(N)}});return d.cancel;function D(t){var i="$animate:"+t;if(v&&v[i]&&v[i].length>0){x(function(){r.triggerHandler(i,{event:e,className:n})})}}function O(){D("before")}function A(){D("after")}function M(){D("close");c()}function P(){if(!P.hasBeenRun){P.hasBeenRun=true;l()}}function N(){if(!N.hasBeenRun){if(d){d.applyStyles()}N.hasBeenRun=true;if(u&&u.tempClasses){o(u.tempClasses,function(e){b.removeClass(r,e)})}var t=r.data(p);if(t){if(d&&d.isClassBased){H(r,n)}else{x(function(){var t=r.data(p)||{};if(S==t.index){H(r,n,e)}});r.data(p,t)}}M()}}}function F(e){var n=g(e);if(n){var r=t.isFunction(n.getElementsByClassName)?n.getElementsByClassName(h):n.querySelectorAll("."+h);o(r,function(e){e=t.element(e);var n=e.data(p);if(n&&n.active){o(n.active,function(e){e.cancel()})}})}}function H(e,t){if(y(e,w)){if(!v.disabled){v.running=false;v.structural=false}}else if(t){var n=e.data(p)||{};var r=t===true;if(!r&&n.active&&n.active[t]){n.totalActive--;delete n.active[t]}if(r||!n.totalActive){b.removeClass(e,h);e.removeData(p)}}}function U(e,n){if(v.disabled){return true}if(y(e,w)){return v.running}var r,i,a;do{if(n.length===0)break;var o=y(n,w);var s=o?v:n.data(p)||{};if(s.disabled){return true}if(o){a=true}if(r!==false){var l=n.data(d);if(t.isDefined(l)){r=l}}i=i||s.running||s.last&&!s.last.isClassBased}while(n=n.parent());return!a||!r&&i}}]);i.register("",["$window","$sniffer","$timeout","$$animateReflow",function(r,i,s,c){var p="",d,h,v,m;if(e.ontransitionend===n&&e.onwebkittransitionend!==n){p="-webkit-";d="WebkitTransition";h="webkitTransitionEnd transitionend"}else{d="transition";h="transitionend"}if(e.onanimationend===n&&e.onwebkitanimationend!==n){p="-webkit-";v="WebkitAnimation";m="webkitAnimationEnd animationend"}else{v="animation";m="animationend"}var $="Duration";var y="Property";var w="Delay";var x="IterationCount";var k="PlayState";var C="$$ngAnimateKey";var T="$$ngAnimateCSS3Data";var S=3;var D=1.5;var E=1e3;var O={};var A=0;var M=[];var P;function N(){if(!P){P=c(function(){M=[];P=null;O={}})}}function I(e,t){if(P){P()}M.push(t);P=c(function(){o(M,function(e){e()});M=[];P=null;O={}})}var V=null;var j=0;var R=[];function F(e,n){var r=g(e);e=t.element(r);R.push(e);var i=Date.now()+n;if(i<=j){return}s.cancel(V);j=i;V=s(function(){H(R);R=[]},n,false)}function H(e){o(e,function(e){var t=e.data(T);if(t){o(t.closeAnimationFns,function(e){e()})}})}function U(e,t){var n=t?O[t]:null;if(!n){var i=0;var a=0;var s=0;var l=0;o(e,function(e){if(e.nodeType==f){var t=r.getComputedStyle(e)||{};var n=t[d+$];i=Math.max(q(n),i);var o=t[d+w];a=Math.max(q(o),a);var u=t[v+w];l=Math.max(q(t[v+w]),l);var c=q(t[v+$]);if(c>0){c*=parseInt(t[v+x],10)||1}s=Math.max(c,s)}});n={total:0,transitionDelay:a,transitionDuration:i,animationDelay:l,animationDuration:s};if(t){O[t]=n}}return n}function q(e){var t=0;var n=u(e)?e.split(/\s*,\s*/):[];o(n,function(e){t=Math.max(parseFloat(e)||0,t)});return t}function L(e){var t=e.parent();var n=t.data(C);if(!n){t.data(C,++A);
1n=A}return n+"-"+g(e).getAttribute("class")}function _(e,t,n,r){var i=["ng-enter","ng-leave","ng-move"].indexOf(n)>=0;var a=L(t);var o=a+" "+n;var s=O[o]?++O[o].total:0;var l={};if(s>0){var u=n+"-stagger";var c=a+" "+u;var f=!O[c];f&&b.addClass(t,u);l=U(t,c);f&&b.removeClass(t,u)}b.addClass(t,n);var p=t.data(T)||{};var d=U(t,o);var h=d.transitionDuration;var v=d.animationDuration;if(i&&h===0&&v===0){b.removeClass(t,n);return false}var m=r||i&&h>0;var $=v>0&&l.animationDelay>0&&l.animationDuration===0;var y=p.closeAnimationFns||[];t.data(T,{stagger:l,cacheKey:o,running:p.running||0,itemIndex:s,blockTransition:m,closeAnimationFns:y});var w=g(t);if(m){Y(w,true);if(r){t.css(r)}}if($){W(w,true)}return true}function B(e,t,n,r,i){var a=g(t);var l=t.data(T);if(a.getAttribute("class").indexOf(n)==-1||!l){r();return}var u="";var c="";o(n.split(" "),function(e,t){var n=(t>0?" ":"")+e;u+=n+"-active";c+=n+"-pending"});var f="";var d=[];var v=l.itemIndex;var $=l.stagger;var y=0;if(v>0){var w=0;if($.transitionDelay>0&&$.transitionDuration===0){w=$.transitionDelay*v}var x=0;if($.animationDelay>0&&$.animationDuration===0){x=$.animationDelay*v;d.push(p+"animation-play-state")}y=Math.round(Math.max(w,x)*100)/100}if(!y){b.addClass(t,u);if(l.blockTransition){Y(a,false)}}var k=l.cacheKey+" "+u;var C=U(t,k);var O=Math.max(C.transitionDuration,C.animationDuration);if(O===0){b.removeClass(t,u);Z(t,n);r();return}if(!y&&i&&Object.keys(i).length>0){if(!C.transitionDuration){t.css("transition",C.animationDuration+"s linear all");d.push("transition")}t.css(i)}var A=Math.max(C.transitionDelay,C.animationDelay);var M=A*E;if(d.length>0){var P=a.getAttribute("style")||"";if(P.charAt(P.length-1)!==";"){P+=";"}a.setAttribute("style",P+" "+f)}var N=Date.now();var I=m+" "+h;var V=(A+O)*D;var j=(y+V)*E;var R;if(y>0){b.addClass(t,c);R=s(function(){R=null;if(C.transitionDuration>0){Y(a,false)}if(C.animationDuration>0){W(a,false)}b.addClass(t,u);b.removeClass(t,c);if(i){if(C.transitionDuration===0){t.css("transition",C.animationDuration+"s linear all")}t.css(i);d.push("transition")}},y*E,false)}t.on(I,q);l.closeAnimationFns.push(function(){H();r()});l.running++;F(t,j);return H;function H(){t.off(I,q);b.removeClass(t,u);b.removeClass(t,c);if(R){s.cancel(R)}Z(t,n);var e=g(t);for(var r in d){e.style.removeProperty(d[r])}}function q(e){e.stopPropagation();var t=e.originalEvent||e;var n=t.$manualTimeStamp||t.timeStamp||Date.now();var i=parseFloat(t.elapsedTime.toFixed(S));if(Math.max(n-N,0)>=M&&i>=O){r()}}}function Y(e,t){e.style[d+y]=t?"none":""}function W(e,t){e.style[v+k]=t?"paused":""}function z(e,t,n,r){if(_(e,t,n,r)){return function(e){e&&Z(t,n)}}}function X(e,t,n,r,i){if(t.data(T)){return B(e,t,n,r,i)}else{Z(t,n);r()}}function G(e,t,n,r,i){var o=z(e,t,n,i.from);if(!o){N();r();return}var s=o;I(t,function(){s=X(e,t,n,r,i.to)});return function(e){(s||a)(e)}}function Z(e,t){b.removeClass(e,t);var n=e.data(T);if(n){if(n.running){n.running--}if(!n.running||n.running===0){e.removeData(T)}}}return{animate:function(e,t,n,r,i,a){a=a||{};a.from=n;a.to=r;return G("animate",e,t,i,a)},enter:function(e,t,n){n=n||{};return G("enter",e,"ng-enter",t,n)},leave:function(e,t,n){n=n||{};return G("leave",e,"ng-leave",t,n)},move:function(e,t,n){n=n||{};return G("move",e,"ng-move",t,n)},beforeSetClass:function(e,t,n,r,i){i=i||{};var a=K(n,"-remove")+" "+K(t,"-add");var o=z("setClass",e,a,i.from);if(o){I(e,r);return o}N();r()},beforeAddClass:function(e,t,n,r){r=r||{};var i=z("addClass",e,K(t,"-add"),r.from);if(i){I(e,n);return i}N();n()},beforeRemoveClass:function(e,t,n,r){r=r||{};var i=z("removeClass",e,K(t,"-remove"),r.from);if(i){I(e,n);return i}N();n()},setClass:function(e,t,n,r,i){i=i||{};n=K(n,"-remove");t=K(t,"-add");var a=n+" "+t;return X("setClass",e,a,r,i.to)},addClass:function(e,t,n,r){r=r||{};return X("addClass",e,K(t,"-add"),n,r.to)},removeClass:function(e,t,n,r){r=r||{};return X("removeClass",e,K(t,"-remove"),n,r.to)}};function K(e,t){var n="";e=l(e)?e:e.split(/\s+/);o(e,function(e,r){if(e&&e.length>0){n+=(r>0?" ":"")+e+t}});return n}}])}])})(window,window.angular);(function(e){"use strict";e.module("vcRecaptcha",[])})(angular);(function(e){"use strict";function t(){throw new Error('You need to set the "key" attribute to your public reC
1aptcha key. If you don\'t have a key, please get one from https://www.google.com/recaptcha/admin/create')}var n=e.module("vcRecaptcha");n.provider("vcRecaptchaService",function(){var n=this;var r={};n.onLoadFunctionName="vcRecaptchaApiLoaded";n.setDefaults=function(t){e.copy(t,r)};n.setSiteKey=function(e){r.key=e};n.setTheme=function(e){r.theme=e};n.setStoken=function(e){r.stoken=e};n.setSize=function(e){r.size=e};n.setType=function(e){r.type=e};n.setLang=function(e){r.lang=e};n.setBadge=function(e){r.badge=e};n.setOnLoadFunctionName=function(e){n.onLoadFunctionName=e};n.$get=["$rootScope","$window","$q","$document","$interval",function(i,a,o,s,l){var u=o.defer(),c=u.promise,f={},p;a.vcRecaptchaApiLoadedCallback=a.vcRecaptchaApiLoadedCallback||[];var d=function(){p=a.grecaptcha;u.resolve(p)};a.vcRecaptchaApiLoadedCallback.push(d);a[n.onLoadFunctionName]=function(){a.vcRecaptchaApiLoadedCallback.forEach(function(e){e()})};function h(){if(!!p){return o.when(p)}return c}function v(){if(!p){throw new Error("reCaptcha has not been loaded yet.")}}function g(){return e.isFunction((a.grecaptcha||{}).render)}if(g()){d()}else if(a.document.querySelector('script[src^="https://www.google.com/recaptcha/api.js"]')){var m=l(function(){if(g()){l.cancel(m);d()}},25)}else{var $=a.document.createElement("script");$.async=true;$.defer=true;$.src="https://www.google.com/recaptcha/api.js?onload="+n.onLoadFunctionName+"&render=explicit";s.find("body")[0].appendChild($)}
1return{create:function(e,n){n.sitekey=n.key||r.key;n.theme=n.theme||r.theme;n.stoken=n.stoken||r.stoken;n.size=n.size||r.size;n.type=n.type||r.type;n.hl=n.lang||r.lang;n.badge=n.badge||r.badge;if(!n.sitekey){t()}return h().then(function(t){var r=t.render(e,n);f[r]=e;return r})},reload:function(e){v();p.reset(e);i.$broadcast("reCaptchaReset",e)},execute:function(e){v();p.execute(e)},useLang:function(e,t){var n=f[e];if(n){var r=n.querySelector("iframe");if(t){if(r&&r.src){var i=r.src;if(/[?&]hl=/.test(i)){i=i.replace(/([?&]hl=)\w+/,"$1"+t)}else{i+=(i.indexOf("?")===-1?"?":"&")+"hl="+t}r.src=i}}else{if(r&&r.src&&/[?&]hl=\w+/.test(r.src)){return r.src.replace(/.+[?&]hl=(\w+)([^\w].+)?/,"$1")}else{return null}}}else{throw new Error("reCaptcha Widget ID not exists",e)}},getResponse:function(e){v();return p.getResponse(e)},getInstance:function(e){return f[e]},destroy:function(e){delete f[e]}}}]})})(angular);(function(e){"use strict";var t=e.module("vcRecaptcha");t.directive("vcRecaptcha",["$document","$timeout","vcRecaptchaService",function(t,n,r){return{restrict:"A",require:"?^^form",scope:{response:"=?ngModel",key:"=?",stoken:"=?",theme:"=?",size:"=?",type:"=?",lang:"=?",badge:"=?",tabindex:"=?",required:"=?",onCreate:"&",onSuccess:"&",onExpire:"&"},link:function(i,a,o,s){i.widgetId=null;if(s&&e.isDefined(o.required)){i.$watch("required",f)}var l=i.$watch("key",function(t){var s=function(e){n(function(){i.response=e;f();i.onSuccess({response:e,widgetId:i.widgetId})})};r.create(a[0],{callback:s,key:t,stoken:i.stoken||o.stoken||null,theme:i.theme||o.theme||null,type:i.type||o.type||null,lang:i.lang||o.lang||null,tabindex:i.tabindex||o.tabindex||null,size:i.size||o.size||null,badge:i.badge||o.badge||null,"expired-callback":c}).then(function(t){f();i.widgetId=t;i.onCreate({widgetId:t});i.$on("$destroy",u);i.$on("reCaptchaReset",function(n,r){if(e.isUndefined(r)||t===r){i.response="";f()}})});l()});function u(){if(s){s.$setValidity("recaptcha",null)}p()}function c(){n(function(){i.response="";f();i.onExpire({widgetId:i.widgetId})})}function f(){if(s){s.$setValidity("recaptcha",i.required===false?null:Boolean(i.response))}}function p(){r.destroy(i.widgetId);e.element(t[0].querySelectorAll(".pls-container")).parent().remove()}}}}])})(angular);angular.module("ui.bootstrap",["ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.transition","ui.bootstrap.typeahead"]);angular.module("ui.bootstrap.collapse",[]).directive("collapse",["$animate",function(e){return{link:function(t,n,r){function i(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",true).attr("aria-hidden",false);e.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(a)}function a(){n.removeClass("collapsing");n.css({height:"auto"})}function o(){if(!n.hasClass("collapse")&&!n.hasClass("in")){return s()}n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",false).attr("aria-hidden",true);e.removeClass(n,"in",{to:{height:"0"}}).then(s)}function s(){n.css({height:"0"});n.removeClass("collapsing");n.addClass("collapse")}t.$watch(r.collapse,function(e){if(e){o()}else{i()}})}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:true}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(e,t,n){this.groups=[];this.closeOthers=function(r){var i=angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers;if(i){angular.forEach(this.groups,function(e){if(e!==r){e.isOpen=false}})}};this.addGroup=function(e){var t=this;this.groups.push(e);e.$on("$destroy",function(n){t.removeGroup(e)})};this.removeGroup=function(e){var t=this.groups.indexOf(e);if(t!==-1){this.groups.splice(t,1)}}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:true,replace:false,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion.html"}}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:true,replace:true,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,r){r.addGroup(e);e.openClass=n.openClass||"panel-open";e.panelClass=n.panelClass;e.$watch("isOpen",function(n){t.toggleClass(e.openClass,n);if(n){r.closeOthers(e)}});e.toggleOpen=function(t){if(!e.isDisabled){if(!t||t.which===32){e.isOpen=!e.isOpen}}}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:true,template:"",replace:true,require:"^accordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(e,t,n,r){e.$watch(function(){return r[n.accordionTransclude]},function(e){if(e){t.find("span").html("");
1t.find("span").append(e)}})}}});angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(e,t){e.closeable=!!t.close;this.close=e.close}]).directive("alert",function(){return{controller:"AlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"template/alert/alert.html"},transclude:true,replace:true,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(e){return{require:"alert",link:function(t,n,r,i){e(function(){i.close()},parseInt(r.dismissOnTimeout,10))}}}]);angular.module("ui.bootstrap.bindHtml",[]).value("$bindHtmlUnsafeSuppressDeprecated",false).directive("bindHtmlUnsafe",["$log","$bindHtmlUnsafeSuppressDeprecated",function(e,t){return function(n,r,i){if(!t){e.warn("bindHtmlUnsafe is now deprecated. Use ngBindHtml instead")}r.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe);n.$watch(i.bindHtmlUnsafe,function e(t){r.html(t||"")})}}]);angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(e){this.activeClass=e.activeClass||"active";this.toggleEvent=e.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",controllerAs:"buttons",link:function(e,t,n,r){var i=r[0],a=r[1];t.find("input").css({display:"none"});a.$render=function(){t.toggleClass(i.activeClass,angular.equals(a.$modelValue,e.$eval(n.btnRadio)))};t.bind(i.toggleEvent,function(){if(n.disabled){return}var r=t.hasClass(i.activeClass);if(!r||angular.isDefined(n.uncheckable)){e.$apply(function(){a.$setViewValue(r?null:e.$eval(n.btnRadio));a.$render()})}})}}}).directive("btnCheckbox",["$document",function(e){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",controllerAs:"button",link:function(t,n,r,i){var a=i[0],o=i[1];n.find("input").css({display:"none"});function s(){return u(r.btnCheckboxTrue,true)}function l(){return u(r.btnCheckboxFalse,false)}function u(e,n){var r=t.$eval(e);return angular.isDefined(r)?r:n}o.$render=function(){n.toggleClass(a.activeClass,angular.equals(o.$modelValue,s()))};n.bind(a.toggleEvent,function(){if(r.disabled){return}t.$apply(function(){o.$setViewValue(n.hasClass(a.activeClass)?l():s());o.$render()})});n.on("keypress",function(i){if(r.disabled||i.which!==32||e[0].activeElement!==n[0]){return}t.$apply(function(){o.$setViewValue(n.hasClass(a.activeClass)?l():s());o.$render()})})}}}]);angular.module("ui.bootstrap.carousel",[]).controller("CarouselController",["$scope","$element","$interval","$animate",function(e,t,n,r){var i=this,a=i.slides=e.slides=[],o=angular.version.minor>=4,s="uib-noTransition",l="uib-slideDirection",u=-1,c,f;i.currentSlide=null;var p=false;i.select=e.select=function(t,n){var r=e.indexOfSlide(t);if(n===undefined){n=r>i.getCurrentIndex()?"next":"prev"}if(t&&t!==i.currentSlide&&!e.$currentTransition){d(t,r,n)}};function d(t,n,a){if(p){return}angular.extend(t,{direction:a,active:true});angular.extend(i.currentSlide||{},{direction:a,active:false});if(r.enabled()&&!e.noTransition&&!e.$currentTransition&&t.$element&&i.slides.length>1){t.$element.data(l,t.direction);if(i.currentSlide&&i.currentSlide.$element){i.currentSlide.$element.data(l,t.direction)}e.$currentTransition=true;if(o){r.on("addClass",t.$element,function(t,n){if(n==="close"){e.$currentTransition=null;r.off("addClass",t)}})}else{t.$element.one("$animate:close",function t(){e.$currentTransition=null})}}i.currentSlide=t;u=n;v()}e.$on("$destroy",function(){p=true});function h(e){if(angular.isUndefined(a[e].index)){return a[e]}var t,n=a.length;for(t=0;t<a.length;++t){if(a[t].index==e){return a[t]}}}i.getCurrentIndex=function(){if(i.currentSlide&&angular.isDefined(i.currentSlide.index)){return+i.currentSlide.index}return u};e.indexOfSlide=function(e){return angular.isDefined(e.index)?+e.index:a.indexOf(e)};e.next=function(){var t=(i.getCurrentIndex()+1)%a.length;if(t===0&&e.noWrap()){e.pause();return}return i.select(h(t),"next")};e.prev=function(){var t=i.getCurrentIndex()-1<0?a.length-1:i.getCurrentIndex()-1;if(e.noWrap()&&t===a.length-1){e.pause();return}return i.select(h(t),"prev")};e.isActive=function(e){return i.currentSlide===e};e.$watch("interval",v);e.$on("$destroy",g);function v(){g();var t=+e.interval;if(!isNaN(t)&&t>0){c=n(m,t)}}function g(){if(c){n.cancel(c);c=null}}function m(){var t=+e.interval;if(f&&!isNaN(t)&&t>0&&a.length){e.next()}else{e.pause()}}e.play=function(){if(!f){f=true;v()}};e.pause=function(){if(!e.noPause){f=false;g()}};i.addSlide=function(t,n){t.$element=n;a.push(t);if(a.length===1||t.active){i.select(a[a.length-1]);if(a.length==1){e.play()}}else{t.active=false}};i.removeSlide=function(e){if(angular.isDefined(e.index)){a.sort(function(e,t){return+e.index>
1+t.index})}var t=a.indexOf(e);a.splice(t,1);if(a.length>0&&e.active){if(t>=a.length){i.select(a[t-1])}else{i.select(a[t])}}else if(u>t){u--}if(a.length===0){i.currentSlide=null}};e.$watch("noTransition",function(e){t.data(s,e)})}]).directive("carousel",[function(){return{restrict:"EA",transclude:true,replace:true,controller:"CarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(e,t){return t.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:true,replace:true,templateUrl:function(e,t){return t.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(e,t,n,r){r.addSlide(e,t);e.$on("$destroy",function(){r.removeSlide(e)});e.$watch("active",function(t){if(t){r.select(e)}})}}}).animation(".item",["$injector","$animate",function(e,t){var n="uib-noTransition",r="uib-slideDirection",i=null;if(e.has("$animateCss")){i=e.get("$animateCss")}function a(e,t,n){e.removeClass(t);if(n){n()}}return{beforeAddClass:function(e,o,s){if(o=="active"&&e.parent()&&!e.parent().data(n)){var l=false;var u=e.data(r);var c=u=="next"?"left":"right";var f=a.bind(this,e,c+" "+u,s);e.addClass(u);if(i){i(e,{addClass:c}).start().done(f)}else{t.addClass(e,c).then(function(){if(!l){f()}s()})}return function(){l=true}}s()},beforeRemoveClass:function(e,o,s){if(o==="active"&&e.parent()&&!e.parent().data(n)){var l=false;var u=e.data(r);var c=u=="next"?"left":"right";var f=a.bind(this,e,c,s);if(i){i(e,{addClass:c}).start().done(f)}else{t.addClass(e,c).then(function(){if(!l){f()}s()})}return function(){l=true}}s()}}}]);angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$log","$locale","orderByFilter",function(e,t,n){var r=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.parsers={};var i={yyyy:{regex:"\\d{4}",apply:function(e){this.year=+e}},yy:{regex:"\\d{2}",apply:function(e){this.year=+e+2e3}},y:{regex:"\\d{1,4}",apply:function(e){this.year=+e}},MMMM:{regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)}},MMM:{regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1}},M:{regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},EEEE:{regex:t.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:t.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e}},hh:{regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e}},H:{regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e}},h:{regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e}},mm:{regex:"[0-5][0-9]",apply:function(e){this.minutes=+e}},m:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e}},sss:{regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e}},ss:{regex:"[0-5][0-9]",apply:function(e){this.seconds=+e}},s:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e}},a:{regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){if(this.hours===12){this.hours=0}if(e==="PM"){this.hours+=12}}}};function a(e){var t=[],r=e.split("");angular.forEach(i,function(n,i){var a=e.indexOf(i);if(a>-1){e=e.split("");r[a]="("+n.regex+")";e[a]="$";for(var o=a+1,s=a+i.length;o<s;o++){r[o]="";e[o]="$"}e=e.join("");t.push({index:a,apply:n.apply})}});return{regex:new RegExp("^"+r.join("")+"$"),map:n(t,"index")}}this.parse=function(n,i,s){if(!angular.isString(n)||!i){return n}i=t.DATETIME_FORMATS[i]||i;i=i.replace(r,"\\$&");if(!this.parsers[i]){this.parsers[i]=a(i)}var l=this.parsers[i],u=l.regex,c=l.map,f=n.match(u);if(f&&f.length){var p,d;if(angular.isDate(s)&&!isNaN(s.getTime())){p={year:s.getFullYear(),month:s.getMonth(),date:s.getDate(),hours:s.getHours(),minutes:s.getMinutes(),seconds:s.getSeconds(),milliseconds:s.getMilliseconds()}}else{if(s){e.warn("dateparser:","baseDate is not a valid date")}p={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}}for(var h=1,v=f.length;h<v;h++){var g=c[h-1];if(g.apply){g.apply.call(p,f[h])}}if(o(p.year,p.month,p.date)){d=new Date(p.year,p.month,p.date,p.hours,p.minutes,p.seconds,p.milliseconds||0)}return d}};function o(e,t,n){if(n<1){return false}if(t===1&&n>28){return n===29&&(e%4===0&&e%100!==0||e%400===0)}if(t===3||t===5||t===8||t===10){return n<31}return true}}]);angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(e,t){function n(e,n){if(e.currentStyle){return e.currentStyle[n]}else if(t.getComputedStyle){return t.getComputedStyle(e)[n]}return e.style[n]}function r(e){return(n(e,"position")||"static")==="static"}var i=function(t){var n=e[0];var i=t.offsetParent||n;while(i&&i!==n&&r(i)){i=i.offsetParent}return i||n};return{position:function(t){var n=this.offset(t);var r={top:0,left:0};var a=i(t[0]);if(a!=e[0]){r=this.offset(angular.element(a));r.top+=a.clientTop-a.scrollTop;r.left+=a.clientLeft-a.scrollLeft}var o=t[0].getBoundingClientRect();return{width:o.width||t.prop("offsetWidth"),height:o.height||t.prop("offsetHeight"),top:n.top-r.top,left
1:n.left-r.left}},offset:function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}},positionElements:function(e,t,n,r){var i=n.split("-");var a=i[0],o=i[1]||"center";var s,l,u,c;s=r?this.offset(e):this.position(e);l=t.prop("offsetWidth");u=t.prop("offsetHeight");var f={center:function(){return s.left+s.width/2-l/2},left:function(){return s.left},right:function(){return s.left+s.width}};var p={center:function(){return s.top+s.height/2-u/2},top:function(){return s.top},bottom:function(){return s.top+s.height}};switch(a){case"right":c={top:p[o](),left:f[a]()};break;case"left":c={top:p[o](),left:s.left-l};break;case"bottom":c={top:p[a](),left:f[o]()};break;default:c={top:s.top-u,left:f[o]()};break}return c}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).value("$datepickerSuppressError",false).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:true,startingDay:0,yearRange:20,minDate:null,maxDate:null,shortcutPropagation:false}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","datepickerConfig","$datepickerSuppressError",function(e,t,n,r,i,a,o,s){var l=this,u={$setViewValue:angular.noop};this.modes=["day","month","year"];angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],function(n,i){l[n]=angular.isDefined(t[n])?i<6?r(t[n])(e.$parent):e.$parent.$eval(t[n]):o[n]});angular.forEach(["minDate","maxDate"],function(r){if(t[r]){e.$parent.$watch(n(t[r]),function(e){l[r]=e?new Date(e):null;l.refreshView()})}else{l[r]=o[r]?new Date(o[r]):null}});angular.forEach(["minMode","maxMode"],function(r){if(t[r]){e.$parent.$watch(n(t[r]),function(n){l[r]=angular.isDefined(n)?n:t[r];e[r]=l[r];if(r=="minMode"&&l.modes.indexOf(e.datepickerMode)<l.modes.indexOf(l[r])||r=="maxMode"&&l.modes.indexOf(e.datepickerMode)>l.modes.indexOf(l[r])){e.datepickerMode=l[r]}})}else{l[r]=o[r]||null;e[r]=l[r]}});e.datepickerMode=e.datepickerMode||o.datepickerMode;e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(Math.random()*1e4);if(angular.isDefined(t.initDate)){this.activeDate=e.$parent.$eval(t.initDate)||new Date;e.$parent.$watch(t.initDate,function(e){if(e&&(u.$isEmpty(u.$modelValue)||u.$invalid)){l.activeDate=e;l.refreshView()}})}else{this.activeDate=new Date}e.isActive=function(t){if(l.compare(t.date,l.activeDate)===0){e.activeDateId=t.uid;return true}return false};this.init=function(e){u=e;u.$render=function(){l.render()}};this.render=function(){if(u.$viewValue){var e=new Date(u.$viewValue),t=!isNaN(e);if(t){this.activeDate=e}else if(!s){i.error('Datepicker 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.')}}this.refreshView()};this.refreshView=function(){if(this.element){this._refreshView();var e=u.$viewValue?new Date(u.$viewValue):null;u.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e))}};this.createDateObject=function(e,t){var n=u.$viewValue?new Date(u.$viewValue):null;return{date:e,label:a(e,t),selected:n&&this.compare(e,n)===0,disabled:this.isDisabled(e),current:this.compare(e,new Date)===0,customClass:this.customClass(e)}};this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||t.dateDisabled&&e.dateDisabled({date:n,mode:e.datepickerMode})};this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})};this.split=function(e,t){var n=[];while(e.length>0){n.push(e.splice(0,t))}return n};this.fixTimeZone=function(e){var t=e.getHours();e.setHours(t===23?t+2:0)};e.select=function(t){if(e.datepickerMode===l.minMode){var n=u.$viewValue?new Date(u.$viewValue):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());u.$setViewValue(n);u.$render()}else{l.activeDate=t;e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)-1]}};e.move=function(e){var t=l.activeDate.getFullYear()+e*(l.step.years||0),n=l.activeDate.getMonth()+e*(l.step.months||0);l.activeDate.setFullYear(t,n,1);l.refreshView()};e.toggleMode=function(t){t=t||1;if(e.datepickerMode===l.maxMode&&t===1||e.datepickerMode===l.minMode&&t===-1){return}e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)+t]};e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var c=function(){l.element[0].focus()};e.$on("datepicker.focus",c);e.keydown=function(t){var n=e.keys[t.which];if(!n||t.shiftKey||t.altKey){return}t.preventDefault();if(!l.shortcutPropagation){t.stopPropagation()}if(n==="enter"||n==="space"){if(l.isDisabled(l.activeDate)){return}e.select(l.activeDate);c()}else if(t.ctrlKey&&(n==="up"||n==="down")){e.toggleMode(n==="up"?1:-1);c()}else{l.handleKeyDown(n,t);l.refreshView()}}}]).directive("datepicker",function(){return{restrict:"EA",replace:true,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["datepicker","^ngModel"],controller:"DatepickerController",controllerAs:"datepicker",link:function(e,t,n,r){var i=r[0],a=r[1];i.init(a)}}}).directive("daypicker",["dateFilter",function(e){return{restrict:"EA",replace:true,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,n,r,i){t.showWeeks=i.showWeeks;i.step={months:1};i.element=n;var a=[31,28,31,30,31,30,31,31,30,31,30,31];function o(e,t){return t===1&&e%4===0&&(e%100!==0||e%400===0)?29:a[t]}function s(e,t){var n=new Array(t),r=new Date(e),a=0,o;while(a<t){o=new Date(r);i.fixTimeZone(o);n[a++]=o;r.setDate(r.getDate()+1)}return n}i._refreshView=function(){var n=i.activeDate.getFullYear(),r=i.activeDate.getMonth(),a=new Date(n,r,1),o=i.startingDay-a.getDay(),u=o>0?7-o:-o,c=new Date(a);if(u>0){c.setDate(-u+1)}var f=s(c,42);for(var p=0;p<42;p++){f[p]=angular.extend(i.createDateObject(f[p],i.formatDay),{secondary:f[p].getMonth()!==r,uid:t.uniqueId+"-"+p})}t.labels=new Array(7);for(var d=0;d<7;d++){t.labels[d]={abbr:e(f[d].date,i.formatDayHeader),full:e(f[d].date,"EEEE")}}t.title=e(i.activeDate,i.formatDayTitle);t.rows=i.split(f,7);if(t.showWeeks){t.weekNumbers=[];var h=(4+7-i.startingDay)%7,v=t.rows.length;for(var g=0;g<v;g++){t.weekNumbers.push(l(t.rows[g][h].date))}}};i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};function l(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();t.setMonth(0);t.setDate(1);return Math.floor(Math.round((n-t)/864e5)/7)+1}i.handleKeyDown=function(e,t){var n=i.activeDate.getDate();if(e==="left"){n=n-1}else if(e==="up"){n=n-7}else if(e==="right"){n=n+1}else if(e==="down"){n=n+7}else if(e==="pageup"||e==="pagedown"){var r=i.activeDate.getMonth()+(e==="pageup"?-1:1);i.activeDate.setMonth(r,1);n=Math.min(o(i.activeDate.getFullYear(),i.activeDate.getMonth()),n)}else if(e==="home"){n=1}else if(e==="end"){n=o(i.activeDate.getFullYear(),i.activeDate.getMonth())}i.activeDate.setDate(n)};i.refreshView()}}}]).directive("monthpicker",["dateFilter",function(e){return{restrict:"EA",replace:true,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,n,r,i){i.step={years:1};i.element=n;i._refreshView=function(){var n=new Array(12),r=i.activeDate.getFullYear(),a;for(var o=0;o<12;o++){a=new Date(r,o,1);i.fixTimeZone(a);n[o]=angular.extend(i.createDateObject(a,i.formatMonth),{uid:t.uniqueId+"-"+o})}t.title=e(i.activeDate,i.formatMonthTitle);t.rows=i.split(n,3)};i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth())-new Date(t.getFullYear(),t.getMonth())};i.handleKeyDown=function(e,t){var n=i.activeDate.getMonth();if(e==="left"){n=n-1}else if(e==="up"){n=n-3}else if(e==="right"){n=n+1}else if(e==="down"){n=n+3}else if(e==="pageup"||e==="pagedown"){var r=i.activeDate.getFullYear()+(e==="pageup"?-1:1);i.activeDate.setFullYear(r)}else if(e==="home"){n=0}else if(e==="end"){n=11}i.activeDate.setMonth(n)};i.refreshView()}}}]).directive("yearpicker",["dateFilter",function(e){return{restrict:"EA",replace:true,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(e,t,n,r){var i=r.yearRange;r.step={years:i};r.element=t;function a(e){return parseInt((e-1)/i,10)*i+1}r._refreshView=function(){var t=new Array(i),n;for(var o=0,s=a(r.activeDate.getFullYear());o<i;o++){n=new Date(s+o,0,1);r.fixTimeZone(n);t[o]=angular.extend(r.createDateObject(n,r.formatYear),{uid:e.uniqueId+"-"+o})}e.title=[t[0].label,t[i-1].label].join(" - ");
1e.rows=r.split(t,5)};r.compare=function(e,t){return e.getFullYear()-t.getFullYear()};r.handleKeyDown=function(e,t){var n=r.activeDate.getFullYear();if(e==="left"){n=n-1}else if(e==="up"){n=n-5}else if(e==="right"){n=n+1}else if(e==="down"){n=n+5}else if(e==="pageup"||e==="pagedown"){n+=(e==="pageup"?-1:1)*r.step.years}else if(e==="home"){n=a(r.activeDate.getFullYear())}else if(e==="end"){n=a(r.activeDate.getFullYear())+i-1}r.activeDate.setFullYear(n)};r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"template/datepicker/popup.html",datepickerTemplateUrl:"template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:true,appendToBody:false,showButtonBar:true,onOpenFocus:true}).directive("datepickerPopup",["$compile","$parse","$document","$rootScope","$position","dateFilter","dateParser","datepickerPopupConfig","$timeout",function(e,t,n,r,i,a,o,s,l){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(u,c,f,p){var d,h=angular.isDefined(f.closeOnDateSelection)?u.$parent.$eval(f.closeOnDateSelection):s.closeOnDateSelection,v=angular.isDefined(f.datepickerAppendToBody)?u.$parent.$eval(f.datepickerAppendToBody):s.appendToBody,g=angular.isDefined(f.onOpenFocus)?u.$parent.$eval(f.onOpenFocus):s.onOpenFocus,m=angular.isDefined(f.datepickerPopupTemplateUrl)?f.datepickerPopupTemplateUrl:s.datepickerPopupTemplateUrl,$=angular.isDefined(f.datepickerTemplateUrl)?f.datepickerTemplateUrl:s.datepickerTemplateUrl,y={};u.showButtonBar=angular.isDefined(f.showButtonBar)?u.$parent.$eval(f.showButtonBar):s.showButtonBar;u.getText=function(e){return u[e+"Text"]||s[e+"Text"]};u.isDisabled=function(e){if(e==="today"){e=new Date}return u.watchData.minDate&&u.compare(e,y.minDate)<0||u.watchData.maxDate&&u.compare(e,y.maxDate)>0};u.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};var b=false;if(s.html5Types[f.type]){d=s.html5Types[f.type];b=true}else{d=f.datepickerPopup||s.datepickerPopup;f.$observe("datepickerPopup",function(e,t){var n=e||s.datepickerPopup;if(n!==d){d=n;p.$modelValue=null;if(!d){throw new Error("datepickerPopup must have a date format specified.")}}})}if(!d){throw new Error("datepickerPopup must have a date format specified.")}if(b&&f.datepickerPopup){throw new Error("HTML5 date input types do not support custom formats.")}var w=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");w.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":m});function x(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}var k=angular.element(w.children()[0]);k.attr("template-url",$);if(b){if(f.type==="month"){k.attr("datepicker-mode",'"month"');k.attr("min-mode","month")}}if(f.datepickerOptions){var C=u.$parent.$eval(f.datepickerOptions);if(C&&C.initDate){u.initDate=C.initDate;k.attr("init-date","initDate");delete C.initDate}angular.forEach(C,function(e,t){k.attr(x(t),e)})}u.watchData={};angular.forEach(["minMode","maxMode","minDate","maxDate","datepickerMode","initDate","shortcutPropagation"],function(e){if(f[e]){var n=t(f[e]);u.$parent.$watch(n,function(t){u.watchData[e]=t;if(e==="minDate"||e==="maxDate"){y[e]=new Date(t)}});k.attr(x(e),"watchData."+e);if(e==="datepickerMode"){var r=n.assign;u.$watch("watchData."+e,function(e,t){if(angular.isFunction(r)&&e!==t){r(u.$parent,e)}})}}});if(f.dateDisabled){k.attr("date-disabled","dateDisabled({ date: date, mode: mode })")}if(f.showWeeks){k.attr("show-weeks",f.showWeeks)}if(f.customClass){k.attr("custom-class","customClass({ date: date, mode: mode })")}function T(e){if(angular.isNumber(e)){e=new Date(e)}if(!e){return null}else if(angular.isDate(e)&&!isNaN(e)){return e}else if(angular.isString(e)){var t=o.parse(e,d,u.date);if(isNaN(t)){return undefined}else{return t}}else{return undefined}}function S(e,t){var n=e||t;if(!f.ngRequired&&!n){return true}if(angular.isNumber(n)){n=new Date(n)}if(!n){return true}else if(angular.isDate(n)&&!isNaN(n)){return true}else if(angular.isString(n)){var r=o.parse(n,d);return!isNaN(r)}else{return false}}if(!b){p.$$parserName="date";p.$validators.date=S;p.$parsers.unshift(T);p.$formatters.push(function(e){u.date=e;return p.$isEmpty(e)?e:a(e,d)})}else{p.$formatters.push(function(e){u.date=e;return e})}u.dateSelection=function(e){if(angular.isDefined(e)){u.date=e}var t=u.date?a(u.date,d):null;c.val(t);p.$setViewValue(t);if(h){u.isOpen=false;c[0].focus()}};p.$viewChangeListeners.push(function(){u.date=o.parse(p.$viewValue,d,u.date)});var D=function(e){if(u.isOpen&&!(c[0].contains(e.target)||w[0].contains(e.target))){u.$apply(function(){u.isOpen=false})}};var E=function(e){if(e.which===27&&u.isOpen){e.preventDefault();e.stopPropagation();u.$apply(function(){u.isOpen=false});c[0].focus()}else if(e.which===40&&!u.isOpen){e.preventDefault();e.stopPropagation();u.$apply(function(){u.isOpen=true})}};c.bind("keydown",E);u.keydown=function(e){if(e.which===27){u.isOpen=false;c[0].focus()}};u.$watch("isOpen",function(e){if(e){u.position=v?i.offset(c):i.position(c);u.position.top=u.position.top+c.prop("offsetHeight");l(function(){if(g){u.$broadcast("datepicker.focus")}n.bind("click",D)},0,false)}else{n.unbind("click",D)}});u.select=function(e){if(e==="today"){var t=new Date;if(angular.isDate(u.date)){e=new Date(u.date);e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate())}else{e=new Date(t.setHours(0,0,0,0))}}u.dateSelection(e)};u.close=function(){u.isOpen=false;c[0].focus()};var O=e(w)(u);w.remove();if(v){n.find("body").append(O)}else{c.after(O)}u.$on("$destroy",function(){if(u.isOpen===true){if(!r.$$phase){u.$apply(function(){u.isOpen=false})}}O.remove();
1c.unbind("keydown",E);n.unbind("click",D)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:true,transclude:true,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/popup.html"}}});angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document","$rootScope",function(e,t){var n=null;this.open=function(t){if(!n){e.bind("click",r);e.bind("keydown",i)}if(n&&n!==t){n.isOpen=false}n=t};this.close=function(t){if(n===t){n=null;e.unbind("click",r);e.unbind("keydown",i)}};var r=function(e){if(!n){return}if(e&&n.getAutoClose()==="disabled"){return}var r=n.getToggleElement();if(e&&r&&r[0].contains(e.target)){return}var i=n.getDropdownElement();if(e&&n.getAutoClose()==="outsideClick"&&i&&i[0].contains(e.target)){return}n.isOpen=false;if(!t.$$phase){n.$apply()}};var i=function(e){if(e.which===27){n.focusToggleElement();r()}else if(n.isKeynavEnabled()&&/(38|40)/.test(e.which)&&n.isOpen){e.preventDefault();e.stopPropagation();n.focusDropdownEntry(e.which)}}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate","$position","$document","$compile","$templateRequest",function(e,t,n,r,i,a,o,s,l,u){var c=this,f=e.$new(),p,d=r.openClass,h,v=angular.noop,g=t.onToggle?n(t.onToggle):angular.noop,m=false,$=false,y=null,b=s.find("body");this.init=function(r){c.$element=r;if(t.isOpen){h=n(t.isOpen);v=h.assign;e.$watch(h,function(e){f.isOpen=!!e})}m=angular.isDefined(t.dropdownAppendToBody);$=angular.isDefined(t.keyboardNav);if(m&&c.dropdownMenu){b.append(c.dropdownMenu);b.addClass("dropdown");r.on("$destroy",function e(){c.dropdownMenu.remove()})}};this.toggle=function(e){return f.isOpen=arguments.length?!!e:!f.isOpen};this.isOpen=function(){return f.isOpen};f.getToggleElement=function(){return c.toggleElement};f.getAutoClose=function(){return t.autoClose||"always"};f.getElement=function(){return c.$element};f.isKeynavEnabled=function(){return $};f.focusDropdownEntry=function(e){var t=c.dropdownMenu?angular.element(c.dropdownMenu).find("a"):angular.element(c.$element).find("ul").eq(0).find("a");switch(e){case 40:{if(!angular.isNumber(c.selectedOption)){c.selectedOption=0}else{c.selectedOption=c.selectedOption===t.length-1?c.selectedOption:c.selectedOption+1}break}case 38:{if(!angular.isNumber(c.selectedOption)){c.selectedOption=t.length-1}else{c.selectedOption=c.selectedOption===0?0:c.selectedOption-1}break}}t[c.selectedOption].focus()};f.getDropdownElement=function(){return c.dropdownMenu};f.focusToggleElement=function(){if(c.toggleElement){c.toggleElement[0].focus()}};f.$watch("isOpen",function(t,n){if(m&&c.dropdownMenu){var r=o.positionElements(c.$element,c.dropdownMenu,"bottom-left",true);var s={top:r.top+"px",display:t?"block":"none"};var h=c.dropdownMenu.hasClass("dropdown-menu-right");if(!h){s.left=r.left+"px";s.right="auto"}else{s.left="auto";s.right=window.innerWidth-(r.left+c.$element.prop("offsetWidth"))+"px"}c.dropdownMenu.css(s)}var $=m?b:c.$element;a[t?"addClass":"removeClass"]($,d).then(function(){if(angular.isDefined(t)&&t!==n){g(e,{open:!!t})}});if(t){if(c.dropdownMenuTemplateUrl){u(c.dropdownMenuTemplateUrl).then(function(e){p=f.$new();l(e.trim())(p,function(e){var t=e;c.dropdownMenu.replaceWith(t);c.dropdownMenu=t})})}f.focusToggleElement();i.open(f)}else{if(c.dropdownMenuTemplateUrl){if(p){p.$destroy()}var y=angular.element('<ul class="dropdown-menu"></ul>');c.dropdownMenu.replaceWith(y);c.dropdownMenu=y}i.close(f);c.selectedOption=null}if(angular.isFunction(v)){v(e,t)}});e.$on("$locationChangeSuccess",function(){if(f.getAutoClose()!=="disabled"){f.isOpen=false}});var w=e.$on("$destroy",function(){f.$destroy()});f.$on("$destroy",w)}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(e,t,n,r){r.init(t);t.addClass("dropdown")}}}).directive("dropdownMenu",function(){return{restrict:"AC",require:"?^dropdown",link:function(e,t,n,r){if(!r){return}var i=n.templateUrl;if(i){r.dropdownMenuTemplateUrl=i}if(!r.dropdownMenu){r.dropdownMenu=t}}}}).directive("keyboardNav",function(){return{restrict:"A",require:"?^dropdown",link:function(e,t,n,r){t.bind("keydown",function(e){if([38,40].indexOf(e.which)!==-1){e.preventDefault();e.stopPropagation();var t=r.dropdownMenu.find("a");switch(e.which){case 40:{if(!angular.isNumber(r.selectedOption)){r.selectedOption=0}else{r.selectedOption=r.selectedOption===t.length-1?r.selectedOption:r.selectedOption+1}break}case 38:{if(!angular.isNumber(r.selectedOption)){r.selectedOption=t.length-1}else{r.selectedOption=r.selectedOption===0?0:r.selectedOption-1}break}}t[r.selectedOption].focus()}})}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(e,t,n,r){if(!r){return}t.addClass("dropdown-toggle");r.toggleElement=t;var i=function(i){i.preventDefault();if(!t.hasClass("disabled")&&!n.disabled){e.$apply(function(){r.toggle(
1)})}};t.bind("click",i);t.attr({"aria-haspopup":true,"aria-expanded":false});e.$watch(r.isOpen,function(e){t.attr("aria-expanded",!!e)});e.$on("$destroy",function(){t.unbind("click",i)})}}});angular.module("ui.bootstrap.modal",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++){if(t==e[n].key){return e[n]}}},keys:function(){var t=[];for(var n=0;n<e.length;n++){t.push(e[n].key)}return t},top:function(){return e[e.length-1]},remove:function(t){var n=-1;for(var r=0;r<e.length;r++){if(t==e[r].key){n=r;break}}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}}).factory("$$multiMap",function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map(function(t){return{key:t,value:e[t]}})},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){if(!e[t]){e[t]=[]}e[t].push(n)},remove:function(t,n){var r=e[t];if(!r){return}var i=r.indexOf(n);if(i!==-1){r.splice(i,1)}if(!r.length){delete e[t]}}}}}}).directive("modalBackdrop",["$animate","$injector","$modalStack",function(e,t,n){var r=null;if(t.has("$animateCss")){r=t.get("$animateCss")}return{restrict:"EA",replace:true,templateUrl:"template/modal/backdrop.html",compile:function(e,t){e.addClass(t.backdropClass);return i}};function i(t,i,a){if(a.modalInClass){if(r){r(i,{addClass:a.modalInClass}).start()}else{e.addClass(i,a.modalInClass)}t.$on(n.NOW_CLOSING_EVENT,function(t,n){var o=n();if(r){r(i,{removeClass:a.modalInClass}).start().then(o)}else{e.removeClass(i,a.modalInClass).then(o)}})}}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector",function(e,t,n,r){var i=null;if(r.has("$animateCss")){i=r.get("$animateCss")}return{restrict:"EA",scope:{index:"@"},replace:true,transclude:true,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(r,a,o){a.addClass(o.windowClass||"");r.size=o.size;r.close=function(t){var n=e.getTop();if(n&&n.value.backdrop&&n.value.backdrop!=="static"&&t.target===t.currentTarget){t.preventDefault();t.stopPropagation();e.dismiss(n.key,"backdrop click")}};r.$isRendered=true;var s=t.defer();o.$observe("modalRender",function(e){if(e=="true"){s.resolve()}});s.promise.then(function(){var s=null;if(o.modalInClass){if(i){s=i(a,{addClass:o.modalInClass}).start()}else{s=n.addClass(a,o.modalInClass)}r.$on(e.NOW_CLOSING_EVENT,function(e,t){var r=t();if(i){i(a,{removeClass:o.modalInClass}).start().then(r)}else{n.removeClass(a,o.modalInClass).then(r)}})}t.when(s).then(function(){var e=a[0].querySelectorAll("[autofocus]");if(e.length){e[0].focus()}else{a[0].focus()}});var l=e.getTop();if(l){e.modalRendered(l.key)}})}}}]).directive("modalAnimationClass",[function(){return{compile:function(e,t){if(t.modalAnimation){e.addClass(t.modalAnimationClass)}}}}]).directive("modalTransclude",function(){return{link:function(e,t,n,r,i){i(e.$parent,function(e){t.empty();t.append(e)})}}}).factory("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap",function(e,t,n,r,i,a,o,s,l){var u=null;if(o.has("$animateCss")){u=o.get("$animateCss")}var c="modal-open";var f,p;var d=l.createNew();var h=s.createNew();var v={NOW_CLOSING_EVENT:"modal.stack.now-closing"};var g;var m=0;var $="a[href], area[href], input:not([disabled]), "+"button:not([disabled]),select:not([disabled]), textarea:not([disabled]), "+"iframe, object, embed, *[tabindex], *[contenteditable=true]";function y(){var e=-1;var t=d.keys();for(var n=0;n<t.length;n++){if(d.get(t[n]).value.backdrop){e=n}}return e}i.$watch(y,function(e){if(p){p.index=e}});function b(e,t){var r=n.find("body").eq(0);var i=d.get(e).value;d.remove(e);x(i.modalDomEl,i.modalScope,function(){var t=i.openedClass||c;h.remove(t,e);r.toggleClass(t,h.hasKey(t))});w();if(t&&t.focus){t.focus()}else{r.focus()}}function w(){if(f&&y()==-1){var e=p;x(f,p,function(){e=null});f=undefined;p=undefined}}function x(t,n,r){var i;var o=null;var s=function(){if(!i){i=a.defer();o=i.promise}return function e(){i.resolve()}};n.$broadcast(v.NOW_CLOSING_EVENT,s);return a.when(o).then(l);function l(){if(l.done){return}l.done=true;if(u){u(t,{event:"leave"}).start().then(function(){t.remove()})}else{e.leave(t)}n.$destroy();if(r){r()}}}n.bind("keydown",function(e){if(e.isDefaultPrevented()){return e}var t=d.top();if(t&&t.value.keyboard){switch(e.which){case 27:{e.preventDefault();i.$apply(function(){v.dismiss(t.key,"escape key press")});break}case 9:{v.loadFocusElementList(t);var n=false;if(e.shiftKey){if(v.isFocusInFirstItem(e)){n=v.focusLastFocusableElement()}}else{if(v.isFocusInLastItem(e)){n=v.focusFirstFocusableElement()}}if(n){e.preventDefault();e.stopPropagation()}break}}}});v.open=function(e,t){var a=n[0].activeElement,o=t.openedClass||c;d.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard,openedClass:t.openedClass});h.put(o,e);var s=n.find("body").eq(0),l=y();if(l>=0&&!f){p=i.$new(true);p.index=l;var u=angular.element('<div modal-backdrop="modal-backdrop"></div>');u.attr("backdrop-class",t.backdropClass);if(t.animation){u.attr("modal-animation","true")}f=r(u)(p);s.append(f)}var g=angular.element('<div modal-window="modal-window"></div>');g.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:d.length()-1,animate:"animate"}).html(t.content);if(t.animation){g.attr("modal-animation","true")}var m=r(g)(t.scope);d.top().value.modalDomEl=m;d.top().value.modalOpener=a;s.append(m);s.addClass(o);v.clearFocusListCache()};
1function k(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}v.close=function(e,t){var n=d.get(e);if(n&&k(n,t,true)){n.value.modalScope.$$uibDestructionScheduled=true;n.value.deferred.resolve(t);b(e,n.value.modalOpener);return true}return!n};v.dismiss=function(e,t){var n=d.get(e);if(n&&k(n,t,false)){n.value.modalScope.$$uibDestructionScheduled=true;n.value.deferred.reject(t);b(e,n.value.modalOpener);return true}return!n};v.dismissAll=function(e){var t=this.getTop();while(t&&this.dismiss(t.key,e)){t=this.getTop()}};v.getTop=function(){return d.top()};v.modalRendered=function(e){var t=d.get(e);if(t){t.value.renderDeferred.resolve()}};v.focusFirstFocusableElement=function(){if(g.length>0){g[0].focus();return true}return false};v.focusLastFocusableElement=function(){if(g.length>0){g[g.length-1].focus();return true}return false};v.isFocusInFirstItem=function(e){if(g.length>0){return(e.target||e.srcElement)==g[0]}return false};v.isFocusInLastItem=function(e){if(g.length>0){return(e.target||e.srcElement)==g[g.length-1]}return false};v.clearFocusListCache=function(){g=[];m=0};v.loadFocusElementList=function(e){if(g===undefined||!g.length0){if(e){var t=e.value.modalDomEl;if(t&&t.length){g=t[0].querySelectorAll($)}}}};return v}]).provider("$modal",function(){var e={options:{animation:true,backdrop:true,keyboard:true},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$modalStack",function(t,n,r,i,a,o){var s={};function l(e){return e.template?r.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}function u(e){var n=[];angular.forEach(e,function(e){if(angular.isFunction(e)||angular.isArray(e)){n.push(r.when(t.invoke(e)))}else if(angular.isString(e)){n.push(r.when(t.get(e)))}else{n.push(r.when(e))}});return n}var c=null;s.getPromiseChain=function(){return c};s.open=function(t){var i=r.defer();var s=r.defer();var f=r.defer();var p={result:i.promise,opened:s.promise,rendered:f.promise,close:function(e){return o.close(p,e)},dismiss:function(e){return o.dismiss(p,e)}};t=angular.extend({},e.options,t);t.resolve=t.resolve||{};if(!t.template&&!t.templateUrl){throw new Error("One of template or templateUrl options is required.")}var d=r.all([l(t)].concat(u(t.resolve)));var h;h=c=r.all([c]).then(function(){return d},function(){return d}).then(function e(r){var l=(t.scope||n).$new();l.$close=p.close;l.$dismiss=p.dismiss;l.$on("$destroy",function(){if(!l.$$uibDestructionScheduled){l.$dismiss("$uibUnscheduledDestruction")}});var u,c={};var d=1;if(t.controller){c.$scope=l;c.$modalInstance=p;angular.forEach(t.resolve,function(e,t){c[t]=r[d++]});u=a(t.controller,c);if(t.controllerAs){if(t.bindToController){angular.extend(u,l)}l[t.controllerAs]=u}}o.open(p,{scope:l,deferred:i,renderDeferred:f,content:r[0],animation:t.animation,backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size,openedClass:t.openedClass});s.resolve(true)},function e(t){s.reject(t);i.reject(t)}).finally(function(){if(c===h){c=null}});return p};return s}]};return e});angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(e,t,n){var r=this,i={$setViewValue:angular.noop},a=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(o,s){i=o;this.config=s;i.$render=function(){r.render()};if(t.itemsPerPage){e.$parent.$watch(n(t.itemsPerPage),function(t){r.itemsPerPage=parseInt(t,10);e.totalPages=r.calculateTotalPages()})}else{this.itemsPerPage=s.itemsPerPage}e.$watch("totalItems",function(){e.totalPages=r.calculateTotalPages()});e.$watch("totalPages",function(t){a(e.$parent,t);if(e.page>t){e.selectPage(t)}else{i.$render()}})};this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)};this.render=function(){e.page=parseInt(i.$viewValue,10)||1};e.selectPage=function(t,n){if(n){n.preventDefault()}var r=!e.ngDisabled||!n;if(r&&e.page!==t&&t>0&&t<=e.totalPages){if(n&&n.target){n.target.blur()}i.$setViewValue(t);i.$render()}};e.getText=function(t){return e[t+"Text"]||r.config[t+"Text"]};e.noPrevious=function(){return e.page===1};e.noNext=function(){return e.page===e.totalPages}}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:false,directionLinks:true,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:true}).directive("pagination",["$parse","paginationConfig",function(e,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["pagination","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pagination.html"},replace:true,link:function(n,r,i,a){var o=a[0],s=a[1];if(!s){return}var l=angular.isDefined(i.maxSize)?n.$parent.$eval(i.maxSize):t.maxSize,u=angular.isDefined(i.rotate)?n.$parent.$eval(i.rotate):t.rotate;n.boundaryLinks=angular.isDefined(i.boundaryLinks)?n.$parent.$eval(i.boundaryLinks):t.boundaryLinks;n.directionLinks=angular.isDefined(i.directionLinks)?n.$parent.$eval(i.directionLinks):t.directionLinks;o.init(s,t);if(i.maxSize){n.$parent.$watch(e(i.maxSize),function(e){l=parseInt(e,10);o.render()})}
1function c(e,t,n){return{number:e,text:t,active:n}}function f(e,t){var n=[];var r=1,i=t;var a=angular.isDefined(l)&&l<t;if(a){if(u){r=Math.max(e-Math.floor(l/2),1);i=r+l-1;if(i>t){i=t;r=i-l+1}}else{r=(Math.ceil(e/l)-1)*l+1;i=Math.min(r+l-1,t)}}for(var o=r;o<=i;o++){var s=c(o,o,o===e);n.push(s)}if(a&&!u){if(r>1){var f=c(r-1,"...",false);n.unshift(f)}if(i<t){var p=c(i+1,"...",false);n.push(p)}}return n}var p=o.render;o.render=function(){p();if(n.page>0&&n.page<=n.totalPages){n.pages=f(n.page,n.totalPages)}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:true}).directive("pager",["pagerConfig",function(e){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["pager","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pager.html"},replace:true,link:function(t,n,r,i){var a=i[0],o=i[1];if(!o){return}t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):e.align;a.init(o,e)}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){var e={placement:"top",animation:true,popupDelay:0,useContentExp:false};var t={mouseenter:"mouseleave",click:"click",focus:"blur",none:""};var n={};this.options=function(e){angular.extend(n,e)};this.setTriggers=function e(n){angular.extend(t,n)};function r(e){var t=/[A-Z]/g;var n="-";return e.replace(t,function(e,t){return(t?n:"")+e.toLowerCase()})}this.$get=["$window","$compile","$timeout","$document","$position","$interpolate","$rootScope","$parse",function(i,a,o,s,l,u,c,f){return function i(p,d,h,v){v=angular.extend({},e,n,v);function g(e){var n=(e||v.trigger||h).split(" ");var r=n.map(function(e){return t[e]||e});return{show:n,hide:r}}var m=r(p);var $=u.startSymbol();var y=u.endSymbol();var b="<div "+m+"-popup "+'title="'+$+"title"+y+'" '+(v.useContentExp?'content-exp="contentExp()" ':'content="'+$+"content"+y+'" ')+'placement="'+$+"placement"+y+'" '+'popup-class="'+$+"popupClass"+y+'" '+'animation="animation" '+'is-open="isOpen"'+'origin-scope="origScope" '+">"+"</div>";return{restrict:"EA",compile:function(e,t){var n=a(b);return function e(t,r,i,a){var u;var h;var m;var $;var y;var b=angular.isDefined(v.appendToBody)?v.appendToBody:false;var w=g(undefined);var x=angular.isDefined(i[d+"Enable"]);var k=t.$new(true);var C=false;var T=angular.isDefined(i[d+"IsOpen"])?f(i[d+"IsOpen"]):false;var S=function(){if(!u){return}if(!y){y=o(function(){u.css({top:0,left:0,width:"auto",height:"auto"});var e=l.position(u);var t=l.positionElements(r,u,k.placement,b);t.top+="px";t.left+="px";t.width=e.width+"px";t.height=e.height+"px";u.css(t);y=null},0,false)}};k.origScope=t;k.isOpen=false;function D(){if(!k.isOpen){E()}else{O()}}function E(){if(x&&!t.$eval(i[d+"Enable"])){return}I();if(k.popupDelay){if(!$){$=o(A,k.popupDelay,false)}}else{A()}}function O(){M();if(!c.$$phase){c.$digest()}}function A(){$=null;if(m){o.cancel(m);m=null}if(!(v.useContentExp?k.contentExp():k.content)){return angular.noop}P();k.isOpen=true;if(T){T.assign(k.origScope,k.isOpen)}if(!c.$$phase){k.$apply()}u.css({display:"block"});S()}function M(){k.isOpen=false;if(T){T.assign(k.origScope,k.isOpen)}o.cancel($);$=null;o.cancel(y);y=null;if(k.animation){if(!m){m=o(N,500)}}else{N()}}function P(){if(u){N()}h=k.$new();u=n(h,function(e){if(b){s.find("body").append(e)}else{r.after(e)}});if(v.useContentExp){h.$watch("contentExp()",function(e){if(!e&&k.isOpen){M()}});h.$watch(function(){if(!C){C=true;h.$$postDigest(function(){C=false;if(k.isOpen){S()}})}})}}function N(){m=null;if(u){u.remove();u=null}if(h){h.$destroy();h=null}}function I(){V();j();R()}k.contentExp=function(){return t.$eval(i[p])};if(!v.useContentExp){i.$observe(p,function(e){k.content=e;if(!e&&k.isOpen){M()}else{S()}})}i.$observe("disabled",function(e){if($&&e){o.cancel($);$=null}if(e&&k.isOpen){M()}});i.$observe(d+"Title",function(e){k.title=e;S()});i.$observe(d+"Placement",function(){if(k.isOpen){j();S()}});if(T){t.$watch(T,function(e){if(e!==k.isOpen){D()}})}function V(){k.popupClass=i[d+"Class"]}function j(){var e=i[d+"Placement"];k.placement=angular.isDefined(e)?e:v.placement}function R(){var e=i[d+"PopupDelay"];var t=parseInt(e,10);k.popupDelay=!isNaN(t)?t:v.popupDelay}var F=function(){w.show.forEach(function(e){r.unbind(e,E)});w.hide.forEach(function(e){r.unbind(e,O)})};function H(){var e=i[d+"Trigger"];F();w=g(e);if(w.show!=="none"){w.show.forEach(function(e,t){if(e===w.hide[t]){r[0].addEventListener(e,D)}else if(e){r[0].addEventListener(e,E);r[0].addEventListener(w.hide[t],O)}})}}H();var U=t.$eval(i[d+"Animation"]);k.animation=angular.isDefined(U)?!!U:v.animation;var q=t.$eval(i[d+"AppendToBody"]);b=angular.isDefined(q)?q:b;if(b){t.$on("$locationChangeSuccess",function e(){if(k.isOpen){M()}})}t.$on("$destroy",function e(){o.cancel(m);o.cancel($);o.cancel(y);F();N();k=null})}}}}}]}).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,a,o){var s=i.$eval(o.tooltipTemplateTranscludeScope);var l=0,u,c,f;var p=function(){if(c){c.remove();c=null}if(u){u.$destroy();u=null}if(f){e.leave(f).then(function(){c=null});c=f;f=null}};i.$watch(t.parseAsResourceUrl(o.tooltipTemplateTransclude),function(t){var o=++l;if(t){r(t,true).then(function(r){if(o!==l){return}var i=s.$new();var c=r;var d=n(c)(i,function(t){p();e.enter(t,a)});u=i;f=d;u.$emit("$includeContentLoaded",t)},function(){if(o===l){p();i.$emit("$includeContentError",t)}});i.$emit("$includeContentRequested",t)}else{p()}});i.$on("$destroy",p)}}}]).directive("tooltipClasses",function(){return{restrict:"A",link:function(e,t,n){if(e.placement){t.addClass(e.placement)}if(e.popupClass){t.addClass(e.popupClass)}if(e.animation()){t.addClass(n.tooltipAnimationClass)}}}}).directive("tooltipPopup",function(){return{restrict:"EA",replace:true,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",function(){return{restrict:"EA",replace:true,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html"}}).directive("tooltipTemplate",["$tooltip",function(e){return e("tooltipTemplate","tooltip","mouseenter",{useContentExp:true})}]).directive("tooltipHtmlPopup",function(){return{restrict:"EA",replace:true,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html"}}).directive("tooltipHtml",["$tooltip",function(e){return e("tooltipHtml","tooltip","mouseenter",{useContentExp:true})}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:true,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}
1).value("tooltipHtmlUnsafeSuppressDeprecated",false).directive("tooltipHtmlUnsafe",["$tooltip","tooltipHtmlUnsafeSuppressDeprecated","$log",function(e,t,n){if(!t){n.warn("tooltip-html-unsafe is now deprecated. Use tooltip-html or tooltip-template instead.")}return e("tooltipHtmlUnsafe","tooltip","mouseenter")}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverTemplatePopup",function(){return{restrict:"EA",replace:true,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html"}}).directive("popoverTemplate",["$tooltip",function(e){return e("popoverTemplate","popover","click",{useContentExp:true})}]).directive("popoverHtmlPopup",function(){return{restrict:"EA",replace:true,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html"}}).directive("popoverHtml",["$tooltip",function(e){return e("popoverHtml","popover","click",{useContentExp:true})}]).directive("popoverPopup",function(){return{restrict:"EA",replace:true,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(e){return e("popover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:true,max:100}).value("$progressSuppressWarning",false).controller("ProgressController",["$scope","$attrs","progressConfig",function(e,t,n){var r=this,i=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[];e.max=angular.isDefined(e.max)?e.max:n.max;this.addBar=function(t,n){if(!i){n.css({transition:"none"})}this.bars.push(t);t.max=e.max;
1t.$watch("value",function(e){t.recalculatePercentage()});t.recalculatePercentage=function(){t.percent=+(100*t.value/t.max).toFixed(2);var e=r.bars.reduce(function(e,t){return e+t.percent},0);if(e>100){t.percent-=e-100}};t.$on("$destroy",function(){n=null;r.removeBar(t)})};this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1)};e.$watch("max",function(t){r.bars.forEach(function(t){t.max=e.max;t.recalculatePercentage()})})}]).directive("uibProgress",function(){return{restrict:"EA",replace:true,transclude:true,controller:"ProgressController",require:"uibProgress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html"}}).directive("progress",["$log","$progressSuppressWarning",function(e,t){return{restrict:"EA",replace:true,transclude:true,controller:"ProgressController",require:"progress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html",link:function(){if(t){e.warn("progress is now deprecated. Use uib-progress instead")}}}}]).directive("uibBar",function(){return{restrict:"EA",replace:true,transclude:true,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t)}}}).directive("bar",["$log","$progressSuppressWarning",function(e,t){return{restrict:"EA",replace:true,transclude:true,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,r,i,a){if(t){e.warn("bar is now deprecated. Use uib-bar instead")}a.addBar(n,r)}}}]).directive("progressbar",function(){return{restrict:"EA",replace:true,transclude:true,controller:"ProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]))}}});angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null,titles:["one","two","three","four","five"]}).controller("RatingController",["$scope","$attrs","ratingConfig",function(e,t,n){var r={$setViewValue:angular.noop};this.init=function(i){r=i;r.$render=this.render;r.$formatters.push(function(e){if(angular.isNumber(e)&&e<<0!==e){e=Math.round(e)}return e});this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn;this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff;var a=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(a)&&a.length>0?a:n.titles;var o=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(o)};this.buildTemplateObjects=function(e){for(var t=0,n=e.length;t<n;t++){e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t])}return e};this.getTitle=function(e){if(e>=this.titles.length){return e+1}else{return this.titles[e]}};e.rate=function(t){if(!e.readonly&&t>=0&&t<=e.range.length){r.$setViewValue(r.$viewValue===t?0:t);r.$render()}};e.enter=function(t){if(!e.readonly){e.value=t}e.onHover({value:t})};e.reset=function(){e.value=r.$viewValue;e.onLeave()};e.onKeydown=function(t){if(/(37|38|39|40)/.test(t.which)){t.preventDefault();t.stopPropagation();e.rate(e.value+(t.which===38||t.which===39?1:-1))}};this.render=function(){e.value=r.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:true,link:function(e,t,n,r){var i=r[0],a=r[1];i.init(a)}}});angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function e(t){var n=this,r=n.tabs=t.tabs=[];n.select=function(e){angular.forEach(r,function(t){if(t.active&&t!==e){t.active=false;t.onDeselect();e.selectCalled=false}});e.active=true;if(!e.selectCalled){e.onSelect();e.selectCalled=true}};n.addTab=function e(t){r.push(t);if(r.length===1&&t.active!==false){t.active=true}else if(t.active){n.select(t)}else{t.active=false}};n.removeTab=function e(t){var a=r.indexOf(t);if(t.active&&r.length>1&&!i){var o=a==r.length-1?a-1:a+1;n.select(r[o])}r.splice(a,1)};var i;t.$on("$destroy",function(){i=true})}]).directive("tabset",function(){return{restrict:"EA",transclude:true,replace:true,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(e,t,n){e.vertical=angular.isDefined(n.vertical)?e.$parent.$eval(n.vertical):false;e.justified=angular.isDefined(n.justified)?e.$parent.$eval(n.justified):false}}}).directive("tab",["$parse","$log",function(e,t){return{require:"^tabset",restrict:"EA",replace:true,templateUrl:"template/tabs/tab.html",transclude:true,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(n,r,i,a,o){n.$watch("active",function(e){if(e){a.select(n)}});n.disabled=false;if(i.disable){n.$parent.$watch(e(i.disable),function(e){n.disabled=!!e})}if(i.disabled){t.warn('Use of "disabled" attribute has been deprecated, please use "disable"');n.$parent.$watch(e(i.disabled),function(e){n.disabled=!!e})}n.select=function(){if(!n.disabled){n.active=true}};a.addTab(n);n.$on("$destroy",function(){a.removeTab(n)});n.$transcludeFn=o}}}]).directive("tabHeadingTransclude",function(){return{restrict:"A",require:"^tab",link:function(e,t,n,r){e.$watch("headingElement",function e(n){if(n){t.html("");t.append(n)}})}}}).directive("tabContentTransclude",function(){return{restrict:"A",require:"^tabset",link:function(t,n,r){var i=t.$eval(r.tabContentTransclude);i.$transcludeFn(i.$parent,function(t){angular.forEach(t,function(t){if(e(t)){i.headingElement=t}else{n.append(t)}})})}};function e(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||e.hasAttribute("x-tab-heading")||e.tagName.toLowerCase()==="tab-heading"||e.tagName.toLowerCase()==="data-tab-heading"||e.tagName.toLowerCase()==="x-tab-heading")}});
1angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:true,meridians:null,readonlyInput:false,mousewheel:true,arrowkeys:true,showSpinners:true}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(e,t,n,r,i,a){var o=new Date,s={$setViewValue:angular.noop},l=angular.isDefined(t.meridians)?e.$parent.$eval(t.meridians):a.meridians||i.DATETIME_FORMATS.AMPMS;this.init=function(n,r){s=n;s.$render=this.render;s.$formatters.unshift(function(e){return e?new Date(e):null});var i=r.eq(0),o=r.eq(1);var l=angular.isDefined(t.mousewheel)?e.$parent.$eval(t.mousewheel):a.mousewheel;if(l){this.setupMousewheelEvents(i,o)}var u=angular.isDefined(t.arrowkeys)?e.$parent.$eval(t.arrowkeys):a.arrowkeys;if(u){this.setupArrowkeyEvents(i,o)}e.readonlyInput=angular.isDefined(t.readonlyInput)?e.$parent.$eval(t.readonlyInput):a.readonlyInput;this.setupInputEvents(i,o)};var u=a.hourStep;if(t.hourStep){e.$parent.$watch(n(t.hourStep),function(e){u=parseInt(e,10)})}var c=a.minuteStep;if(t.minuteStep){e.$parent.$watch(n(t.minuteStep),function(e){c=parseInt(e,10)})}var f;e.$parent.$watch(n(t.min),function(e){var t=new Date(e);f=isNaN(t)?undefined:t});var p;e.$parent.$watch(n(t.max),function(e){var t=new Date(e);p=isNaN(t)?undefined:t});e.noIncrementHours=function(){var e=y(o,u*60);return e>p||e<o&&e<f};e.noDecrementHours=function(){var e=y(o,-u*60);return e<f||e>o&&e>p};e.noIncrementMinutes=function(){var e=y(o,c);return e>p||e<o&&e<f};e.noDecrementMinutes=function(){var e=y(o,-c);return e<f||e>o&&e>p};e.noToggleMeridian=function(){if(o.getHours()<13){return y(o,12*60)>p}else{return y(o,-12*60)<f}};e.showMeridian=a.showMeridian;if(t.showMeridian){e.$parent.$watch(n(t.showMeridian),function(t){e.showMeridian=!!t;if(s.$error.time){var n=d(),r=h();if(angular.isDefined(n)&&angular.isDefined(r)){o.setHours(n);g()}}else{$()}})}function d(){var t=parseInt(e.hours,10);var n=e.showMeridian?t>0&&t<13:t>=0&&t<24;if(!n){return undefined}if(e.showMeridian){if(t===12){t=0}if(e.meridian===l[1]){t=t+12}}return t}function h(){var t=parseInt(e.minutes,10);return t>=0&&t<60?t:undefined}function v(e){return angular.isDefined(e)&&e.toString().length<2?"0"+e:e.toString()}this.setupMousewheelEvents=function(t,n){var r=function(e){if(e.originalEvent){e=e.originalEvent}var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.bind("mousewheel wheel",function(t){e.$apply(r(t)?e.incrementHours():e.decrementHours());t.preventDefault()});n.bind("mousewheel wheel",function(t){e.$apply(r(t)?e.incrementMinutes():e.decrementMinutes());t.preventDefault()})};this.setupArrowkeyEvents=function(t,n){t.bind("keydown",function(t){if(t.which===38){t.preventDefault();e.incrementHours();e.$apply()}else if(t.which===40){t.preventDefault();e.decrementHours();e.$apply()}});n.bind("keydown",function(t){if(t.which===38){t.preventDefault();e.incrementMinutes();e.$apply()}else if(t.which===40){t.preventDefault();e.decrementMinutes();e.$apply()}})};this.setupInputEvents=function(t,n){if(e.readonlyInput){e.updateHours=angular.noop;e.updateMinutes=angular.noop;return}var r=function(t,n){s.$setViewValue(null);s.$setValidity("time",false);if(angular.isDefined(t)){e.invalidHours=t}if(angular.isDefined(n)){e.invalidMinutes=n}};e.updateHours=function(){var e=d(),t=h();if(angular.isDefined(e)&&angular.isDefined(t)){o.setHours(e);if(o<f||o>p){r(true)}else{g("h")}}else{r(true)}};t.bind("blur",function(t){if(!e.invalidHours&&e.hours<10){e.$apply(function(){e.hours=v(e.hours)})}});e.updateMinutes=function(){var e=h(),t=d();if(angular.isDefined(e)&&angular.isDefined(t)){o.setMinutes(e);if(o<f||o>p){r(undefined,true)}else{g("m")}}else{r(undefined,true)}};n.bind("blur",function(t){if(!e.invalidMinutes&&e.minutes<10){e.$apply(function(){e.minutes=v(e.minutes)})}})};this.render=function(){var t=s.$viewValue;if(isNaN(t)){s.$setValidity("time",false);r.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.')}else{if(t){o=t}if(o<f||o>p){s.$setValidity("time",false);
1e.invalidHours=true;e.invalidMinutes=true}else{m()}$()}};function g(e){m();s.$setViewValue(new Date(o));$(e)}function m(){s.$setValidity("time",true);e.invalidHours=false;e.invalidMinutes=false}function $(t){var n=o.getHours(),r=o.getMinutes();if(e.showMeridian){n=n===0||n===12?12:n%12}e.hours=t==="h"?n:v(n);if(t!=="m"){e.minutes=v(r)}e.meridian=o.getHours()<12?l[0]:l[1]}function y(e,t){var n=new Date(e.getTime()+t*6e4);var r=new Date(e);r.setHours(n.getHours(),n.getMinutes());return r}function b(e){o=y(o,e);g()}e.showSpinners=angular.isDefined(t.showSpinners)?e.$parent.$eval(t.showSpinners):a.showSpinners;e.incrementHours=function(){if(!e.noIncrementHours()){b(u*60)}};e.decrementHours=function(){if(!e.noDecrementHours()){b(-u*60)}};e.incrementMinutes=function(){if(!e.noIncrementMinutes()){b(c)}};e.decrementMinutes=function(){if(!e.noDecrementMinutes()){b(-c)}};e.toggleMeridian=function(){if(!e.noToggleMeridian()){b(12*60*(o.getHours()<12?1:-1))}}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",controllerAs:"timepicker",replace:true,scope:{},templateUrl:function(e,t){return t.templateUrl||"template/timepicker/timepicker.html"},link:function(e,t,n,r){var i=r[0],a=r[1];if(a){i.init(a,t.find("input"))}}}});angular.module("ui.bootstrap.transition",[]).value("$transitionSuppressDeprecated",false).factory("$transition",["$q","$timeout","$rootScope","$log","$transitionSuppressDeprecated",function(e,t,n,r,i){if(!i){r.warn("$transition is now deprecated. Use $animate from ngAnimate instead.")}var a=function(r,i,o){o=o||{};var s=e.defer();var l=a[o.animation?"animationEndEventName":"transitionEndEventName"];var u=function(e){n.$apply(function(){r.unbind(l,u);s.resolve(r)})};if(l){r.bind(l,u)}t(function(){if(angular.isString(i)){r.addClass(i)}else if(angular.isFunction(i)){i(r)}else if(angular.isObject(i)){r.css(i)}if(!l){s.resolve(r)}});s.promise.cancel=function(){if(l){r.unbind(l,u)}s.reject("Transition cancelled")};return s.promise};var o=document.createElement("trans");var s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"};var l={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};function u(e){for(var t in e){if(o.style[t]!==undefined){return e[t]}}}a.transitionEndEventName=u(s);a.animationEndEventName=u(l);return a}]);angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position"]).factory("typeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(t);if(!r){throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_"'+' but got "'+n+'".')}return{itemName:r[3],source:e(r[4]),viewMapper:e(r[2]||r[1]),modelMapper:e(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$position","typeaheadParser",function(e,t,n,r,i,a,o,s,l){var u=[9,13,27,38,40];var c=200;return{require:["ngModel","^?ngModelOptions"],link:function(f,p,d,h){var v=h[0];var g=h[1];var m=f.$eval(d.typeaheadMinLength);if(!m&&m!==0){m=1}var $=f.$eval(d.typeaheadWaitMs)||0;var y=f.$eval(d.typeaheadEditable)!==false;var b=t(d.typeaheadLoading).assign||angular.noop;var w=t(d.typeaheadOnSelect);var x=angular.isDefined(d.typeaheadSelectOnBlur)?f.$eval(d.typeaheadSelectOnBlur):false;var k=t(d.typeaheadNoResults).assign||angular.noop;var C=d.typeaheadInputFormatter?t(d.typeaheadInputFormatter):undefined;var T=d.typeaheadAppendToBody?f.$eval(d.typeaheadAppendToBody):false;var S=f.$eval(d.typeaheadFocusFirst)!==false;var D=d.typeaheadSelectOnExact?f.$eval(d.typeaheadSelectOnExact):false;var E=t(d.ngModel);var O=t(d.ngModel+"($$$p)");var A=function(e,t){if(angular.isFunction(E(f))&&g&&g.$options&&g.$options.getterSetter){return O(e,{$$$p:t})}else{return E.assign(e,t)}};var M=l.parse(d.typeahead);var P;var N;var I=f.$new();var V=f.$on("$destroy",function(){I.$destroy()});I.$on("$destroy",V);var j="typeahead-"+I.$id+"-"+Math.floor(Math.random()*1e4);p.attr({"aria-autocomplete":"list","aria-expanded":false,"aria-owns":j});var R=angular.element("<div typeahead-popup></div>");R.attr({id:j,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"});if(angular.isDefined(d.typeaheadTemplateUrl)){R.attr("template-url",d.typeaheadTemplateUrl)}if(angular.isDefined(d.typeaheadPopupTemplateUrl)){R.attr("popup-template-url",d.typeaheadPopupTemplateUrl)}var F=function(){I.matches=[];I.activeIdx=-1;p.attr("aria-expanded",false)};var H=function(e){return j+"-option-"+e};I.$watch("activeIdx",function(e){if(e<0){p.removeAttr("aria-activedescendant")}else{p.attr("aria-activedescendant",H(e))}});var U=function(e,t){if(I.matches.length>t&&e){return e.toUpperCase()===I.matches[t].label.toUpperCase()}return false};var q=function(e){var t={$viewValue:e};b(f,true);k(f,false);n.when(M.source(f,t)).then(function(n){var r=e===v.$viewValue;if(r&&P){if(n&&n.length>0){I.activeIdx=S?0:-1;k(f,false);I.matches.length=0;for(var i=0;i<n.length;i++){t[M.itemName]=n[i];I.matches.push({id:H(i),label:M.viewMapper(I,t),model:n[i]})}I.query=e;B();p.attr("aria-expanded",true);if(D&&I.matches.length===1&&U(e,0)){I.select(0)}}else{F();k(f,true)}}if(r){b(f,false)}},function(){F();b(f,false);k(f,true)})};if(T){angular.element(a).bind("resize",_);i.find("body").bind("scroll",_)}
1var L;I.moveInProgress=false;function _(){if(!I.moveInProgress){I.moveInProgress=true;I.$digest()}if(L){r.cancel(L)}L=r(function(){if(I.matches.length){B()}I.moveInProgress=false;I.$digest()},c)}function B(){I.position=T?s.offset(p):s.position(p);I.position.top+=p.prop("offsetHeight")}F();I.query=undefined;var Y;var W=function(e){Y=r(function(){q(e)},$)};var z=function(){if(Y){r.cancel(Y)}};v.$parsers.unshift(function(e){P=true;if(m===0||e&&e.length>=m){if($>0){z();W(e)}else{q(e)}}else{b(f,false);z();F()}if(y){return e}else{if(!e){v.$setValidity("editable",true);return null}else{v.$setValidity("editable",false);return undefined}}});v.$formatters.push(function(e){var t,n;var r={};if(!y){v.$setValidity("editable",true)}if(C){r.$model=e;return C(f,r)}else{r[M.itemName]=e;t=M.viewMapper(f,r);r[M.itemName]=undefined;n=M.viewMapper(f,r);return t!==n?t:e}});I.select=function(e){var t={};var n,i;N=true;t[M.itemName]=i=I.matches[e].model;n=M.modelMapper(f,t);A(f,n);v.$setValidity("editable",true);v.$setValidity("parse",true);w(f,{$item:i,$model:n,$label:M.viewMapper(f,t)});F();if(I.$eval(d.typeaheadFocusOnSelect)!==false){r(function(){p[0].focus()},0,false)}};p.bind("keydown",function(e){if(I.matches.length===0||u.indexOf(e.which)===-1){return}if(I.activeIdx===-1&&(e.which===9||e.which===13)){F();I.$digest();return}e.preventDefault();if(e.which===40){I.activeIdx=(I.activeIdx+1)%I.matches.length;I.$digest()}else if(e.which===38){I.activeIdx=(I.activeIdx>0?I.activeIdx:I.matches.length)-1;I.$digest()}else if(e.which===13||e.which===9){I.$apply(function(){I.select(I.activeIdx)})}else if(e.which===27){e.stopPropagation();F();I.$digest()}});p.bind("blur",function(){if(x&&I.matches.length&&I.activeIdx!==-1&&!N){N=true;I.$apply(function(){I.select(I.activeIdx)})}P=false;N=false});var X=function(e){if(p[0]!==e.target&&e.which!==3&&I.matches.length!==0){F();if(!o.$$phase){I.$digest()}}};i.bind("click",X);f.$on("$destroy",function(){i.unbind("click",X);if(T){G.remove()}R.remove()});var G=e(R)(I);if(T){i.find("body").append(G)}else{p.after(G)}}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:true,templateUrl:function(e,t){return t.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(e,t,n){e.templateUrl=n.templateUrl;e.isOpen=function(){return e.matches.length>0};e.isActive=function(t){return e.active==t};e.selectActive=function(t){e.active=t};e.selectMatch=function(t){e.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,i,a){var o=n(a.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";e(o).then(function(e){t(e.trim())(r,function(e){i.replaceWith(e)})})}}}]).filter("typeaheadHighlight",["$sce","$injector","$log",function(e,t,n){var r;r=t.has("$sanitize");function i(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function a(e){return/<.*>/g.test(e)}return function(t,o){if(!r&&a(t)){n.warn("Unsafe use of typeahead please use ngSanitize")}t=o?(""+t).replace(new RegExp(i(o),"gi"),"<strong>$&</strong>"):t;if(!r){t=e.trustAsHtml(t)}return t}}]);!angular.$$csp()&&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",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.transition","ui.bootstrap.typeahead"]);angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/popover/popover-html.html","template/popover/popover-template.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]);angular.module("ui.bootstrap.collapse",[]).directive("collapse",["$animate",function(e){return{link:function(t,n,r){function i(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",true).attr("aria-hidden",false);e.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(a)}function a(){n.removeClass("collapsing");n.css({height:"auto"})}function o(){if(!n.hasClass("collapse")&&!n.hasClass("in")){return s()}n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",false).attr("aria-hidden",true);e.removeClass(n,"in",{to:{height:"0"}}).then(s)}function s(){n.css({height:"0"});n.removeClass("collapsing");n.addClass("collapse")}t.$watch(r.collapse,function(e){if(e){o()}else{i()}})}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:true}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(e,t,n){this.groups=[];this.closeOthers=function(r){var i=angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers;if(i){angular.forEach(this.groups,function(e){if(e!==r){e.isOpen=false}})}};this.addGroup=function(e){var t=this;this.groups.push(e);e.$on("$destroy",function(n){t.removeGroup(e)})};this.removeGroup=function(e){var t=this.groups.indexOf(e);if(t!==-1){this.groups.splice(t,1)}}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:true,replace:false,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion.html"}}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:true,replace:true,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,r){r.addGroup(e);e.openClass=n.openClass||"panel-open";e.panelClass=n.panelClass;e.$watch("isOpen",function(n){t.toggleClass(e.openClass,n);if(n){r.closeOthers(e)}});e.toggleOpen=function(t){if(!e.isDisabled){if(!t||t.which===32){e.isOpen=!e.isOpen}}}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:true,template:"",replace:true,require:"^accordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(e,t,n,r){e.$watch(function(){return r[n.accordionTransclude]},function(e){if(e){t.find("span").html("");
1t.find("span").append(e)}})}}});angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(e,t){e.closeable=!!t.close;this.close=e.close}]).directive("alert",function(){return{controller:"AlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"template/alert/alert.html"},transclude:true,replace:true,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(e){return{require:"alert",link:function(t,n,r,i){e(function(){i.close()},parseInt(r.dismissOnTimeout,10))}}}]);angular.module("ui.bootstrap.bindHtml",[]).value("$bindHtmlUnsafeSuppressDeprecated",false).directive("bindHtmlUnsafe",["$log","$bindHtmlUnsafeSuppressDeprecated",function(e,t){return function(n,r,i){if(!t){e.warn("bindHtmlUnsafe is now deprecated. Use ngBindHtml instead")}r.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe);n.$watch(i.bindHtmlUnsafe,function e(t){r.html(t||"")})}}]);angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(e){this.activeClass=e.activeClass||"active";this.toggleEvent=e.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",controllerAs:"buttons",link:function(e,t,n,r){var i=r[0],a=r[1];t.find("input").css({display:"none"});a.$render=function(){t.toggleClass(i.activeClass,angular.equals(a.$modelValue,e.$eval(n.btnRadio)))};t.bind(i.toggleEvent,function(){if(n.disabled){return}var r=t.hasClass(i.activeClass);if(!r||angular.isDefined(n.uncheckable)){e.$apply(function(){a.$setViewValue(r?null:e.$eval(n.btnRadio));a.$render()})}})}}}).directive("btnCheckbox",["$document",function(e){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",controllerAs:"button",link:function(t,n,r,i){var a=i[0],o=i[1];n.find("input").css({display:"none"});function s(){return u(r.btnCheckboxTrue,true)}function l(){return u(r.btnCheckboxFalse,false)}function u(e,n){var r=t.$eval(e);return angular.isDefined(r)?r:n}o.$render=function(){n.toggleClass(a.activeClass,angular.equals(o.$modelValue,s()))};n.bind(a.toggleEvent,function(){if(r.disabled){return}t.$apply(function(){o.$setViewValue(n.hasClass(a.activeClass)?l():s());o.$render()})});n.on("keypress",function(i){if(r.disabled||i.which!==32||e[0].activeElement!==n[0]){return}t.$apply(function(){o.$setViewValue(n.hasClass(a.activeClass)?l():s());o.$render()})})}}}]);angular.module("ui.bootstrap.carousel",[]).controller("CarouselController",["$scope","$element","$interval","$animate",function(e,t,n,r){var i=this,a=i.slides=e.slides=[],o=angular.version.minor>=4,s="uib-noTransition",l="uib-slideDirection",u=-1,c,f;i.currentSlide=null;var p=false;i.select=e.select=function(t,n){var r=e.indexOfSlide(t);if(n===undefined){n=r>i.getCurrentIndex()?"next":"prev"}if(t&&t!==i.currentSlide&&!e.$currentTransition){d(t,r,n)}};function d(t,n,a){if(p){return}angular.extend(t,{direction:a,active:true});angular.extend(i.currentSlide||{},{direction:a,active:false});if(r.enabled()&&!e.noTransition&&!e.$currentTransition&&t.$element&&i.slides.length>1){t.$element.data(l,t.direction);if(i.currentSlide&&i.currentSlide.$element){i.currentSlide.$element.data(l,t.direction)}e.$currentTransition=true;if(o){r.on("addClass",t.$element,function(t,n){if(n==="close"){e.$currentTransition=null;r.off("addClass",t)}})}else{t.$element.one("$animate:close",function t(){e.$currentTransition=null})}}i.currentSlide=t;u=n;v()}e.$on("$destroy",function(){p=true});function h(e){if(angular.isUndefined(a[e].index)){return a[e]}var t,n=a.length;for(t=0;t<a.length;++t){if(a[t].index==e){return a[t]}}}i.getCurrentIndex=function(){if(i.currentSlide&&angular.isDefined(i.currentSlide.index)){return+i.currentSlide.index}return u};e.indexOfSlide=function(e){return angular.isDefined(e.index)?+e.index:a.indexOf(e)};e.next=function(){var t=(i.getCurrentIndex()+1)%a.length;if(t===0&&e.noWrap()){e.pause();return}return i.select(h(t),"next")};e.prev=function(){var t=i.getCurrentIndex()-1<0?a.length-1:i.getCurrentIndex()-1;if(e.noWrap()&&t===a.length-1){e.pause();return}return i.select(h(t),"prev")};e.isActive=function(e){return i.currentSlide===e};e.$watch("interval",v);e.$on("$destroy",g);function v(){g();var t=+e.interval;if(!isNaN(t)&&t>0){c=n(m,t)}}function g(){if(c){n.cancel(c);c=null}}function m(){var t=+e.interval;if(f&&!isNaN(t)&&t>0&&a.length){e.next()}else{e.pause()}}e.play=function(){if(!f){f=true;v()}};e.pause=function(){if(!e.noPause){f=false;g()}};i.addSlide=function(t,n){t.$element=n;a.push(t);if(a.length===1||t.active){i.select(a[a.length-1]);if(a.length==1){e.play()}}else{t.active=false}};i.removeSlide=function(e){if(angular.isDefined(e.index)){a.sort(function(e,t){return+e.index>
1+t.index})}var t=a.indexOf(e);a.splice(t,1);if(a.length>0&&e.active){if(t>=a.length){i.select(a[t-1])}else{i.select(a[t])}}else if(u>t){u--}if(a.length===0){i.currentSlide=null}};e.$watch("noTransition",function(e){t.data(s,e)})}]).directive("carousel",[function(){return{restrict:"EA",transclude:true,replace:true,controller:"CarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(e,t){return t.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:true,replace:true,templateUrl:function(e,t){return t.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(e,t,n,r){r.addSlide(e,t);e.$on("$destroy",function(){r.removeSlide(e)});e.$watch("active",function(t){if(t){r.select(e)}})}}}).animation(".item",["$injector","$animate",function(e,t){var n="uib-noTransition",r="uib-slideDirection",i=null;if(e.has("$animateCss")){i=e.get("$animateCss")}function a(e,t,n){e.removeClass(t);if(n){n()}}return{beforeAddClass:function(e,o,s){if(o=="active"&&e.parent()&&!e.parent().data(n)){var l=false;var u=e.data(r);var c=u=="next"?"left":"right";var f=a.bind(this,e,c+" "+u,s);e.addClass(u);if(i){i(e,{addClass:c}).start().done(f)}else{t.addClass(e,c).then(function(){if(!l){f()}s()})}return function(){l=true}}s()},beforeRemoveClass:function(e,o,s){if(o==="active"&&e.parent()&&!e.parent().data(n)){var l=false;var u=e.data(r);var c=u=="next"?"left":"right";var f=a.bind(this,e,c,s);if(i){i(e,{addClass:c}).start().done(f)}else{t.addClass(e,c).then(function(){if(!l){f()}s()})}return function(){l=true}}s()}}}]);angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$log","$locale","orderByFilter",function(e,t,n){var r=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.parsers={};var i={yyyy:{regex:"\\d{4}",apply:function(e){this.year=+e}},yy:{regex:"\\d{2}",apply:function(e){this.year=+e+2e3}},y:{regex:"\\d{1,4}",apply:function(e){this.year=+e}},MMMM:{regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)}},MMM:{regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1}},M:{regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},EEEE:{regex:t.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:t.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e}},hh:{regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e}},H:{regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e}},h:{regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e}},mm:{regex:"[0-5][0-9]",apply:function(e){this.minutes=+e}},m:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e}},sss:{regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e}},ss:{regex:"[0-5][0-9]",apply:function(e){this.seconds=+e}},s:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e}},a:{regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){if(this.hours===12){this.hours=0}if(e==="PM"){this.hours+=12}}}};function a(e){var t=[],r=e.split("");angular.forEach(i,function(n,i){var a=e.indexOf(i);if(a>-1){e=e.split("");r[a]="("+n.regex+")";e[a]="$";for(var o=a+1,s=a+i.length;o<s;o++){r[o]="";e[o]="$"}e=e.join("");t.push({index:a,apply:n.apply})}});return{regex:new RegExp("^"+r.join("")+"$"),map:n(t,"index")}}this.parse=function(n,i,s){if(!angular.isString(n)||!i){return n}i=t.DATETIME_FORMATS[i]||i;i=i.replace(r,"\\$&");if(!this.parsers[i]){this.parsers[i]=a(i)}var l=this.parsers[i],u=l.regex,c=l.map,f=n.match(u);if(f&&f.length){var p,d;if(angular.isDate(s)&&!isNaN(s.getTime())){p={year:s.getFullYear(),month:s.getMonth(),date:s.getDate(),hours:s.getHours(),minutes:s.getMinutes(),seconds:s.getSeconds(),milliseconds:s.getMilliseconds()}}else{if(s){e.warn("dateparser:","baseDate is not a valid date")}p={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}}for(var h=1,v=f.length;h<v;h++){var g=c[h-1];if(g.apply){g.apply.call(p,f[h])}}if(o(p.year,p.month,p.date)){d=new Date(p.year,p.month,p.date,p.hours,p.minutes,p.seconds,p.milliseconds||0)}return d}};function o(e,t,n){if(n<1){return false}if(t===1&&n>28){return n===29&&(e%4===0&&e%100!==0||e%400===0)}if(t===3||t===5||t===8||t===10){return n<31}return true}}]);angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(e,t){function n(e,n){if(e.currentStyle){return e.currentStyle[n]}else if(t.getComputedStyle){return t.getComputedStyle(e)[n]}return e.style[n]}function r(e){return(n(e,"position")||"static")==="static"}var i=function(t){var n=e[0];var i=t.offsetParent||n;while(i&&i!==n&&r(i)){i=i.offsetParent}return i||n};return{position:function(t){var n=this.offset(t);var r={top:0,left:0};var a=i(t[0]);if(a!=e[0]){r=this.offset(angular.element(a));r.top+=a.clientTop-a.scrollTop;r.left+=a.clientLeft-a.scrollLeft}var o=t[0].getBoundingClientRect();return{width:o.width||t.prop("offsetWidth"),height:o.height||t.prop("offsetHeight"),top:n.top-r.top,left
1:n.left-r.left}},offset:function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}},positionElements:function(e,t,n,r){var i=n.split("-");var a=i[0],o=i[1]||"center";var s,l,u,c;s=r?this.offset(e):this.position(e);l=t.prop("offsetWidth");u=t.prop("offsetHeight");var f={center:function(){return s.left+s.width/2-l/2},left:function(){return s.left},right:function(){return s.left+s.width}};var p={center:function(){return s.top+s.height/2-u/2},top:function(){return s.top},bottom:function(){return s.top+s.height}};switch(a){case"right":c={top:p[o](),left:f[a]()};break;case"left":c={top:p[o](),left:s.left-l};break;case"bottom":c={top:p[a](),left:f[o]()};break;default:c={top:s.top-u,left:f[o]()};break}return c}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).value("$datepickerSuppressError",false).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:true,startingDay:0,yearRange:20,minDate:null,maxDate:null,shortcutPropagation:false}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","datepickerConfig","$datepickerSuppressError",function(e,t,n,r,i,a,o,s){var l=this,u={$setViewValue:angular.noop};this.modes=["day","month","year"];angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],function(n,i){l[n]=angular.isDefined(t[n])?i<6?r(t[n])(e.$parent):e.$parent.$eval(t[n]):o[n]});angular.forEach(["minDate","maxDate"],function(r){if(t[r]){e.$parent.$watch(n(t[r]),function(e){l[r]=e?new Date(e):null;l.refreshView()})}else{l[r]=o[r]?new Date(o[r]):null}});angular.forEach(["minMode","maxMode"],function(r){if(t[r]){e.$parent.$watch(n(t[r]),function(n){l[r]=angular.isDefined(n)?n:t[r];e[r]=l[r];if(r=="minMode"&&l.modes.indexOf(e.datepickerMode)<l.modes.indexOf(l[r])||r=="maxMode"&&l.modes.indexOf(e.datepickerMode)>l.modes.indexOf(l[r])){e.datepickerMode=l[r]}})}else{l[r]=o[r]||null;e[r]=l[r]}});e.datepickerMode=e.datepickerMode||o.datepickerMode;e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(Math.random()*1e4);if(angular.isDefined(t.initDate)){this.activeDate=e.$parent.$eval(t.initDate)||new Date;e.$parent.$watch(t.initDate,function(e){if(e&&(u.$isEmpty(u.$modelValue)||u.$invalid)){l.activeDate=e;l.refreshView()}})}else{this.activeDate=new Date}e.isActive=function(t){if(l.compare(t.date,l.activeDate)===0){e.activeDateId=t.uid;return true}return false};this.init=function(e){u=e;u.$render=function(){l.render()}};this.render=function(){if(u.$viewValue){var e=new Date(u.$viewValue),t=!isNaN(e);if(t){this.activeDate=e}else if(!s){i.error('Datepicker 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.')}}this.refreshView()};this.refreshView=function(){if(this.element){this._refreshView();var e=u.$viewValue?new Date(u.$viewValue):null;u.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e))}};this.createDateObject=function(e,t){var n=u.$viewValue?new Date(u.$viewValue):null;return{date:e,label:a(e,t),selected:n&&this.compare(e,n)===0,disabled:this.isDisabled(e),current:this.compare(e,new Date)===0,customClass:this.customClass(e)}};this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||t.dateDisabled&&e.dateDisabled({date:n,mode:e.datepickerMode})};this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})};this.split=function(e,t){var n=[];while(e.length>0){n.push(e.splice(0,t))}return n};this.fixTimeZone=function(e){var t=e.getHours();e.setHours(t===23?t+2:0)};e.select=function(t){if(e.datepickerMode===l.minMode){var n=u.$viewValue?new Date(u.$viewValue):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());u.$setViewValue(n);u.$render()}else{l.activeDate=t;e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)-1]}};e.move=function(e){var t=l.activeDate.getFullYear()+e*(l.step.years||0),n=l.activeDate.getMonth()+e*(l.step.months||0);l.activeDate.setFullYear(t,n,1);l.refreshView()};e.toggleMode=function(t){t=t||1;if(e.datepickerMode===l.maxMode&&t===1||e.datepickerMode===l.minMode&&t===-1){return}e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)+t]};e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var c=function(){l.element[0].focus()};e.$on("datepicker.focus",c);e.keydown=function(t){var n=e.keys[t.which];if(!n||t.shiftKey||t.altKey){return}t.preventDefault();if(!l.shortcutPropagation){t.stopPropagation()}if(n==="enter"||n==="space"){if(l.isDisabled(l.activeDate)){return}e.select(l.activeDate);c()}else if(t.ctrlKey&&(n==="up"||n==="down")){e.toggleMode(n==="up"?1:-1);c()}else{l.handleKeyDown(n,t);l.refreshView()}}}]).directive("datepicker",function(){return{restrict:"EA",replace:true,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["datepicker","^ngModel"],controller:"DatepickerController",controllerAs:"datepicker",link:function(e,t,n,r){var i=r[0],a=r[1];i.init(a)}}}).directive("daypicker",["dateFilter",function(e){return{restrict:"EA",replace:true,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,n,r,i){t.showWeeks=i.showWeeks;i.step={months:1};i.element=n;var a=[31,28,31,30,31,30,31,31,30,31,30,31];function o(e,t){return t===1&&e%4===0&&(e%100!==0||e%400===0)?29:a[t]}function s(e,t){var n=new Array(t),r=new Date(e),a=0,o;while(a<t){o=new Date(r);i.fixTimeZone(o);n[a++]=o;r.setDate(r.getDate()+1)}return n}i._refreshView=function(){var n=i.activeDate.getFullYear(),r=i.activeDate.getMonth(),a=new Date(n,r,1),o=i.startingDay-a.getDay(),u=o>0?7-o:-o,c=new Date(a);if(u>0){c.setDate(-u+1)}var f=s(c,42);for(var p=0;p<42;p++){f[p]=angular.extend(i.createDateObject(f[p],i.formatDay),{secondary:f[p].getMonth()!==r,uid:t.uniqueId+"-"+p})}t.labels=new Array(7);for(var d=0;d<7;d++){t.labels[d]={abbr:e(f[d].date,i.formatDayHeader),full:e(f[d].date,"EEEE")}}t.title=e(i.activeDate,i.formatDayTitle);t.rows=i.split(f,7);if(t.showWeeks){t.weekNumbers=[];var h=(4+7-i.startingDay)%7,v=t.rows.length;for(var g=0;g<v;g++){t.weekNumbers.push(l(t.rows[g][h].date))}}};i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};function l(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();t.setMonth(0);t.setDate(1);return Math.floor(Math.round((n-t)/864e5)/7)+1}i.handleKeyDown=function(e,t){var n=i.activeDate.getDate();if(e==="left"){n=n-1}else if(e==="up"){n=n-7}else if(e==="right"){n=n+1}else if(e==="down"){n=n+7}else if(e==="pageup"||e==="pagedown"){var r=i.activeDate.getMonth()+(e==="pageup"?-1:1);i.activeDate.setMonth(r,1);n=Math.min(o(i.activeDate.getFullYear(),i.activeDate.getMonth()),n)}else if(e==="home"){n=1}else if(e==="end"){n=o(i.activeDate.getFullYear(),i.activeDate.getMonth())}i.activeDate.setDate(n)};i.refreshView()}}}]).directive("monthpicker",["dateFilter",function(e){return{restrict:"EA",replace:true,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,n,r,i){i.step={years:1};i.element=n;i._refreshView=function(){var n=new Array(12),r=i.activeDate.getFullYear(),a;for(var o=0;o<12;o++){a=new Date(r,o,1);i.fixTimeZone(a);n[o]=angular.extend(i.createDateObject(a,i.formatMonth),{uid:t.uniqueId+"-"+o})}t.title=e(i.activeDate,i.formatMonthTitle);t.rows=i.split(n,3)};i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth())-new Date(t.getFullYear(),t.getMonth())};i.handleKeyDown=function(e,t){var n=i.activeDate.getMonth();if(e==="left"){n=n-1}else if(e==="up"){n=n-3}else if(e==="right"){n=n+1}else if(e==="down"){n=n+3}else if(e==="pageup"||e==="pagedown"){var r=i.activeDate.getFullYear()+(e==="pageup"?-1:1);i.activeDate.setFullYear(r)}else if(e==="home"){n=0}else if(e==="end"){n=11}i.activeDate.setMonth(n)};i.refreshView()}}}]).directive("yearpicker",["dateFilter",function(e){return{restrict:"EA",replace:true,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(e,t,n,r){var i=r.yearRange;r.step={years:i};r.element=t;function a(e){return parseInt((e-1)/i,10)*i+1}r._refreshView=function(){var t=new Array(i),n;for(var o=0,s=a(r.activeDate.getFullYear());o<i;o++){n=new Date(s+o,0,1);r.fixTimeZone(n);t[o]=angular.extend(r.createDateObject(n,r.formatYear),{uid:e.uniqueId+"-"+o})}e.title=[t[0].label,t[i-1].label].join(" - ");
1e.rows=r.split(t,5)};r.compare=function(e,t){return e.getFullYear()-t.getFullYear()};r.handleKeyDown=function(e,t){var n=r.activeDate.getFullYear();if(e==="left"){n=n-1}else if(e==="up"){n=n-5}else if(e==="right"){n=n+1}else if(e==="down"){n=n+5}else if(e==="pageup"||e==="pagedown"){n+=(e==="pageup"?-1:1)*r.step.years}else if(e==="home"){n=a(r.activeDate.getFullYear())}else if(e==="end"){n=a(r.activeDate.getFullYear())+i-1}r.activeDate.setFullYear(n)};r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"template/datepicker/popup.html",datepickerTemplateUrl:"template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:true,appendToBody:false,showButtonBar:true,onOpenFocus:true}).directive("datepickerPopup",["$compile","$parse","$document","$rootScope","$position","dateFilter","dateParser","datepickerPopupConfig","$timeout",function(e,t,n,r,i,a,o,s,l){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(u,c,f,p){var d,h=angular.isDefined(f.closeOnDateSelection)?u.$parent.$eval(f.closeOnDateSelection):s.closeOnDateSelection,v=angular.isDefined(f.datepickerAppendToBody)?u.$parent.$eval(f.datepickerAppendToBody):s.appendToBody,g=angular.isDefined(f.onOpenFocus)?u.$parent.$eval(f.onOpenFocus):s.onOpenFocus,m=angular.isDefined(f.datepickerPopupTemplateUrl)?f.datepickerPopupTemplateUrl:s.datepickerPopupTemplateUrl,$=angular.isDefined(f.datepickerTemplateUrl)?f.datepickerTemplateUrl:s.datepickerTemplateUrl,y={};u.showButtonBar=angular.isDefined(f.showButtonBar)?u.$parent.$eval(f.showButtonBar):s.showButtonBar;u.getText=function(e){return u[e+"Text"]||s[e+"Text"]};u.isDisabled=function(e){if(e==="today"){e=new Date}return u.watchData.minDate&&u.compare(e,y.minDate)<0||u.watchData.maxDate&&u.compare(e,y.maxDate)>0};u.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};var b=false;if(s.html5Types[f.type]){d=s.html5Types[f.type];b=true}else{d=f.datepickerPopup||s.datepickerPopup;f.$observe("datepickerPopup",function(e,t){var n=e||s.datepickerPopup;if(n!==d){d=n;p.$modelValue=null;if(!d){throw new Error("datepickerPopup must have a date format specified.")}}})}if(!d){throw new Error("datepickerPopup must have a date format specified.")}if(b&&f.datepickerPopup){throw new Error("HTML5 date input types do not support custom formats.")}var w=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");w.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":m});function x(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}var k=angular.element(w.children()[0]);k.attr("template-url",$);if(b){if(f.type==="month"){k.attr("datepicker-mode",'"month"');k.attr("min-mode","month")}}if(f.datepickerOptions){var C=u.$parent.$eval(f.datepickerOptions);if(C&&C.initDate){u.initDate=C.initDate;k.attr("init-date","initDate");delete C.initDate}angular.forEach(C,function(e,t){k.attr(x(t),e)})}u.watchData={};angular.forEach(["minMode","maxMode","minDate","maxDate","datepickerMode","initDate","shortcutPropagation"],function(e){if(f[e]){var n=t(f[e]);u.$parent.$watch(n,function(t){u.watchData[e]=t;if(e==="minDate"||e==="maxDate"){y[e]=new Date(t)}});k.attr(x(e),"watchData."+e);if(e==="datepickerMode"){var r=n.assign;u.$watch("watchData."+e,function(e,t){if(angular.isFunction(r)&&e!==t){r(u.$parent,e)}})}}});if(f.dateDisabled){k.attr("date-disabled","dateDisabled({ date: date, mode: mode })")}if(f.showWeeks){k.attr("show-weeks",f.showWeeks)}if(f.customClass){k.attr("custom-class","customClass({ date: date, mode: mode })")}function T(e){if(angular.isNumber(e)){e=new Date(e)}if(!e){return null}else if(angular.isDate(e)&&!isNaN(e)){return e}else if(angular.isString(e)){var t=o.parse(e,d,u.date);if(isNaN(t)){return undefined}else{return t}}else{return undefined}}function S(e,t){var n=e||t;if(!f.ngRequired&&!n){return true}if(angular.isNumber(n)){n=new Date(n)}if(!n){return true}else if(angular.isDate(n)&&!isNaN(n)){return true}else if(angular.isString(n)){var r=o.parse(n,d);return!isNaN(r)}else{return false}}if(!b){p.$$parserName="date";p.$validators.date=S;p.$parsers.unshift(T);p.$formatters.push(function(e){u.date=e;return p.$isEmpty(e)?e:a(e,d)})}else{p.$formatters.push(function(e){u.date=e;return e})}u.dateSelection=function(e){if(angular.isDefined(e)){u.date=e}var t=u.date?a(u.date,d):null;c.val(t);p.$setViewValue(t);if(h){u.isOpen=false;c[0].focus()}};p.$viewChangeListeners.push(function(){u.date=o.parse(p.$viewValue,d,u.date)});var D=function(e){if(u.isOpen&&!(c[0].contains(e.target)||w[0].contains(e.target))){u.$apply(function(){u.isOpen=false})}};var E=function(e){if(e.which===27&&u.isOpen){e.preventDefault();e.stopPropagation();u.$apply(function(){u.isOpen=false});c[0].focus()}else if(e.which===40&&!u.isOpen){e.preventDefault();e.stopPropagation();u.$apply(function(){u.isOpen=true})}};c.bind("keydown",E);u.keydown=function(e){if(e.which===27){u.isOpen=false;c[0].focus()}};u.$watch("isOpen",function(e){if(e){u.position=v?i.offset(c):i.position(c);u.position.top=u.position.top+c.prop("offsetHeight");l(function(){if(g){u.$broadcast("datepicker.focus")}n.bind("click",D)},0,false)}else{n.unbind("click",D)}});u.select=function(e){if(e==="today"){var t=new Date;if(angular.isDate(u.date)){e=new Date(u.date);e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate())}else{e=new Date(t.setHours(0,0,0,0))}}u.dateSelection(e)};u.close=function(){u.isOpen=false;c[0].focus()};var O=e(w)(u);w.remove();if(v){n.find("body").append(O)}else{c.after(O)}u.$on("$destroy",function(){if(u.isOpen===true){if(!r.$$phase){u.$apply(function(){u.isOpen=false})}}O.remove();
1c.unbind("keydown",E);n.unbind("click",D)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:true,transclude:true,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/popup.html"}}});angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document","$rootScope",function(e,t){var n=null;this.open=function(t){if(!n){e.bind("click",r);e.bind("keydown",i)}if(n&&n!==t){n.isOpen=false}n=t};this.close=function(t){if(n===t){n=null;e.unbind("click",r);e.unbind("keydown",i)}};var r=function(e){if(!n){return}if(e&&n.getAutoClose()==="disabled"){return}var r=n.getToggleElement();if(e&&r&&r[0].contains(e.target)){return}var i=n.getDropdownElement();if(e&&n.getAutoClose()==="outsideClick"&&i&&i[0].contains(e.target)){return}n.isOpen=false;if(!t.$$phase){n.$apply()}};var i=function(e){if(e.which===27){n.focusToggleElement();r()}else if(n.isKeynavEnabled()&&/(38|40)/.test(e.which)&&n.isOpen){e.preventDefault();e.stopPropagation();n.focusDropdownEntry(e.which)}}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate","$position","$document","$compile","$templateRequest",function(e,t,n,r,i,a,o,s,l,u){var c=this,f=e.$new(),p,d=r.openClass,h,v=angular.noop,g=t.onToggle?n(t.onToggle):angular.noop,m=false,$=false,y=null,b=s.find("body");this.init=function(r){c.$element=r;if(t.isOpen){h=n(t.isOpen);v=h.assign;e.$watch(h,function(e){f.isOpen=!!e})}m=angular.isDefined(t.dropdownAppendToBody);$=angular.isDefined(t.keyboardNav);if(m&&c.dropdownMenu){b.append(c.dropdownMenu);b.addClass("dropdown");r.on("$destroy",function e(){c.dropdownMenu.remove()})}};this.toggle=function(e){return f.isOpen=arguments.length?!!e:!f.isOpen};this.isOpen=function(){return f.isOpen};f.getToggleElement=function(){return c.toggleElement};f.getAutoClose=function(){return t.autoClose||"always"};f.getElement=function(){return c.$element};f.isKeynavEnabled=function(){return $};f.focusDropdownEntry=function(e){var t=c.dropdownMenu?angular.element(c.dropdownMenu).find("a"):angular.element(c.$element).find("ul").eq(0).find("a");switch(e){case 40:{if(!angular.isNumber(c.selectedOption)){c.selectedOption=0}else{c.selectedOption=c.selectedOption===t.length-1?c.selectedOption:c.selectedOption+1}break}case 38:{if(!angular.isNumber(c.selectedOption)){c.selectedOption=t.length-1}else{c.selectedOption=c.selectedOption===0?0:c.selectedOption-1}break}}t[c.selectedOption].focus()};f.getDropdownElement=function(){return c.dropdownMenu};f.focusToggleElement=function(){if(c.toggleElement){c.toggleElement[0].focus()}};f.$watch("isOpen",function(t,n){if(m&&c.dropdownMenu){var r=o.positionElements(c.$element,c.dropdownMenu,"bottom-left",true);var s={top:r.top+"px",display:t?"block":"none"};var h=c.dropdownMenu.hasClass("dropdown-menu-right");if(!h){s.left=r.left+"px";s.right="auto"}else{s.left="auto";s.right=window.innerWidth-(r.left+c.$element.prop("offsetWidth"))+"px"}c.dropdownMenu.css(s)}var $=m?b:c.$element;a[t?"addClass":"removeClass"]($,d).then(function(){if(angular.isDefined(t)&&t!==n){g(e,{open:!!t})}});if(t){if(c.dropdownMenuTemplateUrl){u(c.dropdownMenuTemplateUrl).then(function(e){p=f.$new();l(e.trim())(p,function(e){var t=e;c.dropdownMenu.replaceWith(t);c.dropdownMenu=t})})}f.focusToggleElement();i.open(f)}else{if(c.dropdownMenuTemplateUrl){if(p){p.$destroy()}var y=angular.element('<ul class="dropdown-menu"></ul>');c.dropdownMenu.replaceWith(y);c.dropdownMenu=y}i.close(f);c.selectedOption=null}if(angular.isFunction(v)){v(e,t)}});e.$on("$locationChangeSuccess",function(){if(f.getAutoClose()!=="disabled"){f.isOpen=false}});var w=e.$on("$destroy",function(){f.$destroy()});f.$on("$destroy",w)}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(e,t,n,r){r.init(t);t.addClass("dropdown")}}}).directive("dropdownMenu",function(){return{restrict:"AC",require:"?^dropdown",link:function(e,t,n,r){if(!r){return}var i=n.templateUrl;if(i){r.dropdownMenuTemplateUrl=i}if(!r.dropdownMenu){r.dropdownMenu=t}}}}).directive("keyboardNav",function(){return{restrict:"A",require:"?^dropdown",link:function(e,t,n,r){t.bind("keydown",function(e){if([38,40].indexOf(e.which)!==-1){e.preventDefault();e.stopPropagation();var t=r.dropdownMenu.find("a");switch(e.which){case 40:{if(!angular.isNumber(r.selectedOption)){r.selectedOption=0}else{r.selectedOption=r.selectedOption===t.length-1?r.selectedOption:r.selectedOption+1}break}case 38:{if(!angular.isNumber(r.selectedOption)){r.selectedOption=t.length-1}else{r.selectedOption=r.selectedOption===0?0:r.selectedOption-1}break}}t[r.selectedOption].focus()}})}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(e,t,n,r){if(!r){return}t.addClass("dropdown-toggle");r.toggleElement=t;var i=function(i){i.preventDefault();if(!t.hasClass("disabled")&&!n.disabled){e.$apply(function(){r.toggle(
1)})}};t.bind("click",i);t.attr({"aria-haspopup":true,"aria-expanded":false});e.$watch(r.isOpen,function(e){t.attr("aria-expanded",!!e)});e.$on("$destroy",function(){t.unbind("click",i)})}}});angular.module("ui.bootstrap.modal",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++){if(t==e[n].key){return e[n]}}},keys:function(){var t=[];for(var n=0;n<e.length;n++){t.push(e[n].key)}return t},top:function(){return e[e.length-1]},remove:function(t){var n=-1;for(var r=0;r<e.length;r++){if(t==e[r].key){n=r;break}}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}}).factory("$$multiMap",function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map(function(t){return{key:t,value:e[t]}})},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){if(!e[t]){e[t]=[]}e[t].push(n)},remove:function(t,n){var r=e[t];if(!r){return}var i=r.indexOf(n);if(i!==-1){r.splice(i,1)}if(!r.length){delete e[t]}}}}}}).directive("modalBackdrop",["$animate","$injector","$modalStack",function(e,t,n){var r=null;if(t.has("$animateCss")){r=t.get("$animateCss")}return{restrict:"EA",replace:true,templateUrl:"template/modal/backdrop.html",compile:function(e,t){e.addClass(t.backdropClass);return i}};function i(t,i,a){if(a.modalInClass){if(r){r(i,{addClass:a.modalInClass}).start()}else{e.addClass(i,a.modalInClass)}t.$on(n.NOW_CLOSING_EVENT,function(t,n){var o=n();if(r){r(i,{removeClass:a.modalInClass}).start().then(o)}else{e.removeClass(i,a.modalInClass).then(o)}})}}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector",function(e,t,n,r){var i=null;if(r.has("$animateCss")){i=r.get("$animateCss")}return{restrict:"EA",scope:{index:"@"},replace:true,transclude:true,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(r,a,o){a.addClass(o.windowClass||"");r.size=o.size;r.close=function(t){var n=e.getTop();if(n&&n.value.backdrop&&n.value.backdrop!=="static"&&t.target===t.currentTarget){t.preventDefault();t.stopPropagation();e.dismiss(n.key,"backdrop click")}};r.$isRendered=true;var s=t.defer();o.$observe("modalRender",function(e){if(e=="true"){s.resolve()}});s.promise.then(function(){var s=null;if(o.modalInClass){if(i){s=i(a,{addClass:o.modalInClass}).start()}else{s=n.addClass(a,o.modalInClass)}r.$on(e.NOW_CLOSING_EVENT,function(e,t){var r=t();if(i){i(a,{removeClass:o.modalInClass}).start().then(r)}else{n.removeClass(a,o.modalInClass).then(r)}})}t.when(s).then(function(){var e=a[0].querySelectorAll("[autofocus]");if(e.length){e[0].focus()}else{a[0].focus()}});var l=e.getTop();if(l){e.modalRendered(l.key)}})}}}]).directive("modalAnimationClass",[function(){return{compile:function(e,t){if(t.modalAnimation){e.addClass(t.modalAnimationClass)}}}}]).directive("modalTransclude",function(){return{link:function(e,t,n,r,i){i(e.$parent,function(e){t.empty();t.append(e)})}}}).factory("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap",function(e,t,n,r,i,a,o,s,l){var u=null;if(o.has("$animateCss")){u=o.get("$animateCss")}var c="modal-open";var f,p;var d=l.createNew();var h=s.createNew();var v={NOW_CLOSING_EVENT:"modal.stack.now-closing"};var g;var m=0;var $="a[href], area[href], input:not([disabled]), "+"button:not([disabled]),select:not([disabled]), textarea:not([disabled]), "+"iframe, object, embed, *[tabindex], *[contenteditable=true]";function y(){var e=-1;var t=d.keys();for(var n=0;n<t.length;n++){if(d.get(t[n]).value.backdrop){e=n}}return e}i.$watch(y,function(e){if(p){p.index=e}});function b(e,t){var r=n.find("body").eq(0);var i=d.get(e).value;d.remove(e);x(i.modalDomEl,i.modalScope,function(){var t=i.openedClass||c;h.remove(t,e);r.toggleClass(t,h.hasKey(t))});w();if(t&&t.focus){t.focus()}else{r.focus()}}function w(){if(f&&y()==-1){var e=p;x(f,p,function(){e=null});f=undefined;p=undefined}}function x(t,n,r){var i;var o=null;var s=function(){if(!i){i=a.defer();o=i.promise}return function e(){i.resolve()}};n.$broadcast(v.NOW_CLOSING_EVENT,s);return a.when(o).then(l);function l(){if(l.done){return}l.done=true;if(u){u(t,{event:"leave"}).start().then(function(){t.remove()})}else{e.leave(t)}n.$destroy();if(r){r()}}}n.bind("keydown",function(e){if(e.isDefaultPrevented()){return e}var t=d.top();if(t&&t.value.keyboard){switch(e.which){case 27:{e.preventDefault();i.$apply(function(){v.dismiss(t.key,"escape key press")});break}case 9:{v.loadFocusElementList(t);var n=false;if(e.shiftKey){if(v.isFocusInFirstItem(e)){n=v.focusLastFocusableElement()}}else{if(v.isFocusInLastItem(e)){n=v.focusFirstFocusableElement()}}if(n){e.preventDefault();e.stopPropagation()}break}}}});v.open=function(e,t){var a=n[0].activeElement,o=t.openedClass||c;d.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard,openedClass:t.openedClass});h.put(o,e);var s=n.find("body").eq(0),l=y();if(l>=0&&!f){p=i.$new(true);p.index=l;var u=angular.element('<div modal-backdrop="modal-backdrop"></div>');u.attr("backdrop-class",t.backdropClass);if(t.animation){u.attr("modal-animation","true")}f=r(u)(p);s.append(f)}var g=angular.element('<div modal-window="modal-window"></div>');g.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:d.length()-1,animate:"animate"}).html(t.content);if(t.animation){g.attr("modal-animation","true")}var m=r(g)(t.scope);d.top().value.modalDomEl=m;d.top().value.modalOpener=a;s.append(m);s.addClass(o);v.clearFocusListCache()};
1function k(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}v.close=function(e,t){var n=d.get(e);if(n&&k(n,t,true)){n.value.modalScope.$$uibDestructionScheduled=true;n.value.deferred.resolve(t);b(e,n.value.modalOpener);return true}return!n};v.dismiss=function(e,t){var n=d.get(e);if(n&&k(n,t,false)){n.value.modalScope.$$uibDestructionScheduled=true;n.value.deferred.reject(t);b(e,n.value.modalOpener);return true}return!n};v.dismissAll=function(e){var t=this.getTop();while(t&&this.dismiss(t.key,e)){t=this.getTop()}};v.getTop=function(){return d.top()};v.modalRendered=function(e){var t=d.get(e);if(t){t.value.renderDeferred.resolve()}};v.focusFirstFocusableElement=function(){if(g.length>0){g[0].focus();return true}return false};v.focusLastFocusableElement=function(){if(g.length>0){g[g.length-1].focus();return true}return false};v.isFocusInFirstItem=function(e){if(g.length>0){return(e.target||e.srcElement)==g[0]}return false};v.isFocusInLastItem=function(e){if(g.length>0){return(e.target||e.srcElement)==g[g.length-1]}return false};v.clearFocusListCache=function(){g=[];m=0};v.loadFocusElementList=function(e){if(g===undefined||!g.length0){if(e){var t=e.value.modalDomEl;if(t&&t.length){g=t[0].querySelectorAll($)}}}};return v}]).provider("$modal",function(){var e={options:{animation:true,backdrop:true,keyboard:true},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$modalStack",function(t,n,r,i,a,o){var s={};function l(e){return e.template?r.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}function u(e){var n=[];angular.forEach(e,function(e){if(angular.isFunction(e)||angular.isArray(e)){n.push(r.when(t.invoke(e)))}else if(angular.isString(e)){n.push(r.when(t.get(e)))}else{n.push(r.when(e))}});return n}var c=null;s.getPromiseChain=function(){return c};s.open=function(t){var i=r.defer();var s=r.defer();var f=r.defer();var p={result:i.promise,opened:s.promise,rendered:f.promise,close:function(e){return o.close(p,e)},dismiss:function(e){return o.dismiss(p,e)}};t=angular.extend({},e.options,t);t.resolve=t.resolve||{};if(!t.template&&!t.templateUrl){throw new Error("One of template or templateUrl options is required.")}var d=r.all([l(t)].concat(u(t.resolve)));var h;h=c=r.all([c]).then(function(){return d},function(){return d}).then(function e(r){var l=(t.scope||n).$new();l.$close=p.close;l.$dismiss=p.dismiss;l.$on("$destroy",function(){if(!l.$$uibDestructionScheduled){l.$dismiss("$uibUnscheduledDestruction")}});var u,c={};var d=1;if(t.controller){c.$scope=l;c.$modalInstance=p;angular.forEach(t.resolve,function(e,t){c[t]=r[d++]});u=a(t.controller,c);if(t.controllerAs){if(t.bindToController){angular.extend(u,l)}l[t.controllerAs]=u}}o.open(p,{scope:l,deferred:i,renderDeferred:f,content:r[0],animation:t.animation,backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size,openedClass:t.openedClass});s.resolve(true)},function e(t){s.reject(t);i.reject(t)}).finally(function(){if(c===h){c=null}});return p};return s}]};return e});angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(e,t,n){var r=this,i={$setViewValue:angular.noop},a=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(o,s){i=o;this.config=s;i.$render=function(){r.render()};if(t.itemsPerPage){e.$parent.$watch(n(t.itemsPerPage),function(t){r.itemsPerPage=parseInt(t,10);e.totalPages=r.calculateTotalPages()})}else{this.itemsPerPage=s.itemsPerPage}e.$watch("totalItems",function(){e.totalPages=r.calculateTotalPages()});e.$watch("totalPages",function(t){a(e.$parent,t);if(e.page>t){e.selectPage(t)}else{i.$render()}})};this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)};this.render=function(){e.page=parseInt(i.$viewValue,10)||1};e.selectPage=function(t,n){if(n){n.preventDefault()}var r=!e.ngDisabled||!n;if(r&&e.page!==t&&t>0&&t<=e.totalPages){if(n&&n.target){n.target.blur()}i.$setViewValue(t);i.$render()}};e.getText=function(t){return e[t+"Text"]||r.config[t+"Text"]};e.noPrevious=function(){return e.page===1};e.noNext=function(){return e.page===e.totalPages}}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:false,directionLinks:true,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:true}).directive("pagination",["$parse","paginationConfig",function(e,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["pagination","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pagination.html"},replace:true,link:function(n,r,i,a){var o=a[0],s=a[1];if(!s){return}var l=angular.isDefined(i.maxSize)?n.$parent.$eval(i.maxSize):t.maxSize,u=angular.isDefined(i.rotate)?n.$parent.$eval(i.rotate):t.rotate;n.boundaryLinks=angular.isDefined(i.boundaryLinks)?n.$parent.$eval(i.boundaryLinks):t.boundaryLinks;n.directionLinks=angular.isDefined(i.directionLinks)?n.$parent.$eval(i.directionLinks):t.directionLinks;o.init(s,t);if(i.maxSize){n.$parent.$watch(e(i.maxSize),function(e){l=parseInt(e,10);o.render()})}
1function c(e,t,n){return{number:e,text:t,active:n}}function f(e,t){var n=[];var r=1,i=t;var a=angular.isDefined(l)&&l<t;if(a){if(u){r=Math.max(e-Math.floor(l/2),1);i=r+l-1;if(i>t){i=t;r=i-l+1}}else{r=(Math.ceil(e/l)-1)*l+1;i=Math.min(r+l-1,t)}}for(var o=r;o<=i;o++){var s=c(o,o,o===e);n.push(s)}if(a&&!u){if(r>1){var f=c(r-1,"...",false);n.unshift(f)}if(i<t){var p=c(i+1,"...",false);n.push(p)}}return n}var p=o.render;o.render=function(){p();if(n.page>0&&n.page<=n.totalPages){n.pages=f(n.page,n.totalPages)}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:true}).directive("pager",["pagerConfig",function(e){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["pager","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pager.html"},replace:true,link:function(t,n,r,i){var a=i[0],o=i[1];if(!o){return}t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):e.align;a.init(o,e)}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){var e={placement:"top",animation:true,popupDelay:0,useContentExp:false};var t={mouseenter:"mouseleave",click:"click",focus:"blur",none:""};var n={};this.options=function(e){angular.extend(n,e)};this.setTriggers=function e(n){angular.extend(t,n)};function r(e){var t=/[A-Z]/g;var n="-";return e.replace(t,function(e,t){return(t?n:"")+e.toLowerCase()})}this.$get=["$window","$compile","$timeout","$document","$position","$interpolate","$rootScope","$parse",function(i,a,o,s,l,u,c,f){return function i(p,d,h,v){v=angular.extend({},e,n,v);function g(e){var n=(e||v.trigger||h).split(" ");var r=n.map(function(e){return t[e]||e});return{show:n,hide:r}}var m=r(p);var $=u.startSymbol();var y=u.endSymbol();var b="<div "+m+"-popup "+'title="'+$+"title"+y+'" '+(v.useContentExp?'content-exp="contentExp()" ':'content="'+$+"content"+y+'" ')+'placement="'+$+"placement"+y+'" '+'popup-class="'+$+"popupClass"+y+'" '+'animation="animation" '+'is-open="isOpen"'+'origin-scope="origScope" '+">"+"</div>";return{restrict:"EA",compile:function(e,t){var n=a(b);return function e(t,r,i,a){var u;var h;var m;var $;var y;var b=angular.isDefined(v.appendToBody)?v.appendToBody:false;var w=g(undefined);var x=angular.isDefined(i[d+"Enable"]);var k=t.$new(true);var C=false;var T=angular.isDefined(i[d+"IsOpen"])?f(i[d+"IsOpen"]):false;var S=function(){if(!u){return}if(!y){y=o(function(){u.css({top:0,left:0,width:"auto",height:"auto"});var e=l.position(u);var t=l.positionElements(r,u,k.placement,b);t.top+="px";t.left+="px";t.width=e.width+"px";t.height=e.height+"px";u.css(t);y=null},0,false)}};k.origScope=t;k.isOpen=false;function D(){if(!k.isOpen){E()}else{O()}}function E(){if(x&&!t.$eval(i[d+"Enable"])){return}I();if(k.popupDelay){if(!$){$=o(A,k.popupDelay,false)}}else{A()}}function O(){M();if(!c.$$phase){c.$digest()}}function A(){$=null;if(m){o.cancel(m);m=null}if(!(v.useContentExp?k.contentExp():k.content)){return angular.noop}P();k.isOpen=true;if(T){T.assign(k.origScope,k.isOpen)}if(!c.$$phase){k.$apply()}u.css({display:"block"});S()}function M(){k.isOpen=false;if(T){T.assign(k.origScope,k.isOpen)}o.cancel($);$=null;o.cancel(y);y=null;if(k.animation){if(!m){m=o(N,500)}}else{N()}}function P(){if(u){N()}h=k.$new();u=n(h,function(e){if(b){s.find("body").append(e)}else{r.after(e)}});if(v.useContentExp){h.$watch("contentExp()",function(e){if(!e&&k.isOpen){M()}});h.$watch(function(){if(!C){C=true;h.$$postDigest(function(){C=false;if(k.isOpen){S()}})}})}}function N(){m=null;if(u){u.remove();u=null}if(h){h.$destroy();h=null}}function I(){V();j();R()}k.contentExp=function(){return t.$eval(i[p])};if(!v.useContentExp){i.$observe(p,function(e){k.content=e;if(!e&&k.isOpen){M()}else{S()}})}i.$observe("disabled",function(e){if($&&e){o.cancel($);$=null}if(e&&k.isOpen){M()}});i.$observe(d+"Title",function(e){k.title=e;S()});i.$observe(d+"Placement",function(){if(k.isOpen){j();S()}});if(T){t.$watch(T,function(e){if(e!==k.isOpen){D()}})}function V(){k.popupClass=i[d+"Class"]}function j(){var e=i[d+"Placement"];k.placement=angular.isDefined(e)?e:v.placement}function R(){var e=i[d+"PopupDelay"];var t=parseInt(e,10);k.popupDelay=!isNaN(t)?t:v.popupDelay}var F=function(){w.show.forEach(function(e){r.unbind(e,E)});w.hide.forEach(function(e){r.unbind(e,O)})};function H(){var e=i[d+"Trigger"];F();w=g(e);if(w.show!=="none"){w.show.forEach(function(e,t){if(e===w.hide[t]){r[0].addEventListener(e,D)}else if(e){r[0].addEventListener(e,E);r[0].addEventListener(w.hide[t],O)}})}}H();var U=t.$eval(i[d+"Animation"]);k.animation=angular.isDefined(U)?!!U:v.animation;var q=t.$eval(i[d+"AppendToBody"]);b=angular.isDefined(q)?q:b;if(b){t.$on("$locationChangeSuccess",function e(){if(k.isOpen){M()}})}t.$on("$destroy",function e(){o.cancel(m);o.cancel($);o.cancel(y);F();N();k=null})}}}}}]}).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,a,o){var s=i.$eval(o.tooltipTemplateTranscludeScope);var l=0,u,c,f;var p=function(){if(c){c.remove();c=null}if(u){u.$destroy();u=null}if(f){e.leave(f).then(function(){c=null});c=f;f=null}};i.$watch(t.parseAsResourceUrl(o.tooltipTemplateTransclude),function(t){var o=++l;if(t){r(t,true).then(function(r){if(o!==l){return}var i=s.$new();var c=r;var d=n(c)(i,function(t){p();e.enter(t,a)});u=i;f=d;u.$emit("$includeContentLoaded",t)},function(){if(o===l){p();i.$emit("$includeContentError",t)}});i.$emit("$includeContentRequested",t)}else{p()}});i.$on("$destroy",p)}}}]).directive("tooltipClasses",function(){return{restrict:"A",link:function(e,t,n){if(e.placement){t.addClass(e.placement)}if(e.popupClass){t.addClass(e.popupClass)}if(e.animation()){t.addClass(n.tooltipAnimationClass)}}}}).directive("tooltipPopup",function(){return{restrict:"EA",replace:true,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",function(){return{restrict:"EA",replace:true,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html"}}).directive("tooltipTemplate",["$tooltip",function(e){return e("tooltipTemplate","tooltip","mouseenter",{useContentExp:true})}]).directive("tooltipHtmlPopup",function(){return{restrict:"EA",replace:true,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html"}}).directive("tooltipHtml",["$tooltip",function(e){return e("tooltipHtml","tooltip","mouseenter",{useContentExp:true})}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:true,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}
1).value("tooltipHtmlUnsafeSuppressDeprecated",false).directive("tooltipHtmlUnsafe",["$tooltip","tooltipHtmlUnsafeSuppressDeprecated","$log",function(e,t,n){if(!t){n.warn("tooltip-html-unsafe is now deprecated. Use tooltip-html or tooltip-template instead.")}return e("tooltipHtmlUnsafe","tooltip","mouseenter")}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverTemplatePopup",function(){return{restrict:"EA",replace:true,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html"}}).directive("popoverTemplate",["$tooltip",function(e){return e("popoverTemplate","popover","click",{useContentExp:true})}]).directive("popoverHtmlPopup",function(){return{restrict:"EA",replace:true,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html"}}).directive("popoverHtml",["$tooltip",function(e){return e("popoverHtml","popover","click",{useContentExp:true})}]).directive("popoverPopup",function(){return{restrict:"EA",replace:true,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(e){return e("popover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:true,max:100}).value("$progressSuppressWarning",false).controller("ProgressController",["$scope","$attrs","progressConfig",function(e,t,n){var r=this,i=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[];e.max=angular.isDefined(e.max)?e.max:n.max;this.addBar=function(t,n){if(!i){n.css({transition:"none"})}this.bars.push(t);t.max=e.max;
1t.$watch("value",function(e){t.recalculatePercentage()});t.recalculatePercentage=function(){t.percent=+(100*t.value/t.max).toFixed(2);var e=r.bars.reduce(function(e,t){return e+t.percent},0);if(e>100){t.percent-=e-100}};t.$on("$destroy",function(){n=null;r.removeBar(t)})};this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1)};e.$watch("max",function(t){r.bars.forEach(function(t){t.max=e.max;t.recalculatePercentage()})})}]).directive("uibProgress",function(){return{restrict:"EA",replace:true,transclude:true,controller:"ProgressController",require:"uibProgress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html"}}).directive("progress",["$log","$progressSuppressWarning",function(e,t){return{restrict:"EA",replace:true,transclude:true,controller:"ProgressController",require:"progress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html",link:function(){if(t){e.warn("progress is now deprecated. Use uib-progress instead")}}}}]).directive("uibBar",function(){return{restrict:"EA",replace:true,transclude:true,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t)}}}).directive("bar",["$log","$progressSuppressWarning",function(e,t){return{restrict:"EA",replace:true,transclude:true,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,r,i,a){if(t){e.warn("bar is now deprecated. Use uib-bar instead")}a.addBar(n,r)}}}]).directive("progressbar",function(){return{restrict:"EA",replace:true,transclude:true,controller:"ProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]))}}});angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null,titles:["one","two","three","four","five"]}).controller("RatingController",["$scope","$attrs","ratingConfig",function(e,t,n){var r={$setViewValue:angular.noop};this.init=function(i){r=i;r.$render=this.render;r.$formatters.push(function(e){if(angular.isNumber(e)&&e<<0!==e){e=Math.round(e)}return e});this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn;this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff;var a=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(a)&&a.length>0?a:n.titles;var o=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(o)};this.buildTemplateObjects=function(e){for(var t=0,n=e.length;t<n;t++){e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t])}return e};this.getTitle=function(e){if(e>=this.titles.length){return e+1}else{return this.titles[e]}};e.rate=function(t){if(!e.readonly&&t>=0&&t<=e.range.length){r.$setViewValue(r.$viewValue===t?0:t);r.$render()}};e.enter=function(t){if(!e.readonly){e.value=t}e.onHover({value:t})};e.reset=function(){e.value=r.$viewValue;e.onLeave()};e.onKeydown=function(t){if(/(37|38|39|40)/.test(t.which)){t.preventDefault();t.stopPropagation();e.rate(e.value+(t.which===38||t.which===39?1:-1))}};this.render=function(){e.value=r.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:true,link:function(e,t,n,r){var i=r[0],a=r[1];i.init(a)}}});angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function e(t){var n=this,r=n.tabs=t.tabs=[];n.select=function(e){angular.forEach(r,function(t){if(t.active&&t!==e){t.active=false;t.onDeselect();e.selectCalled=false}});e.active=true;if(!e.selectCalled){e.onSelect();e.selectCalled=true}};n.addTab=function e(t){r.push(t);if(r.length===1&&t.active!==false){t.active=true}else if(t.active){n.select(t)}else{t.active=false}};n.removeTab=function e(t){var a=r.indexOf(t);if(t.active&&r.length>1&&!i){var o=a==r.length-1?a-1:a+1;n.select(r[o])}r.splice(a,1)};var i;t.$on("$destroy",function(){i=true})}]).directive("tabset",function(){return{restrict:"EA",transclude:true,replace:true,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(e,t,n){e.vertical=angular.isDefined(n.vertical)?e.$parent.$eval(n.vertical):false;e.justified=angular.isDefined(n.justified)?e.$parent.$eval(n.justified):false}}}).directive("tab",["$parse","$log",function(e,t){return{require:"^tabset",restrict:"EA",replace:true,templateUrl:"template/tabs/tab.html",transclude:true,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(n,r,i,a,o){n.$watch("active",function(e){if(e){a.select(n)}});n.disabled=false;if(i.disable){n.$parent.$watch(e(i.disable),function(e){n.disabled=!!e})}if(i.disabled){t.warn('Use of "disabled" attribute has been deprecated, please use "disable"');n.$parent.$watch(e(i.disabled),function(e){n.disabled=!!e})}n.select=function(){if(!n.disabled){n.active=true}};a.addTab(n);n.$on("$destroy",function(){a.removeTab(n)});n.$transcludeFn=o}}}]).directive("tabHeadingTransclude",function(){return{restrict:"A",require:"^tab",link:function(e,t,n,r){e.$watch("headingElement",function e(n){if(n){t.html("");t.append(n)}})}}}).directive("tabContentTransclude",function(){return{restrict:"A",require:"^tabset",link:function(t,n,r){var i=t.$eval(r.tabContentTransclude);i.$transcludeFn(i.$parent,function(t){angular.forEach(t,function(t){if(e(t)){i.headingElement=t}else{n.append(t)}})})}};function e(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||e.hasAttribute("x-tab-heading")||e.tagName.toLowerCase()==="tab-heading"||e.tagName.toLowerCase()==="data-tab-heading"||e.tagName.toLowerCase()==="x-tab-heading")}});
1angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:true,meridians:null,readonlyInput:false,mousewheel:true,arrowkeys:true,showSpinners:true}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(e,t,n,r,i,a){var o=new Date,s={$setViewValue:angular.noop},l=angular.isDefined(t.meridians)?e.$parent.$eval(t.meridians):a.meridians||i.DATETIME_FORMATS.AMPMS;this.init=function(n,r){s=n;s.$render=this.render;s.$formatters.unshift(function(e){return e?new Date(e):null});var i=r.eq(0),o=r.eq(1);var l=angular.isDefined(t.mousewheel)?e.$parent.$eval(t.mousewheel):a.mousewheel;if(l){this.setupMousewheelEvents(i,o)}var u=angular.isDefined(t.arrowkeys)?e.$parent.$eval(t.arrowkeys):a.arrowkeys;if(u){this.setupArrowkeyEvents(i,o)}e.readonlyInput=angular.isDefined(t.readonlyInput)?e.$parent.$eval(t.readonlyInput):a.readonlyInput;this.setupInputEvents(i,o)};var u=a.hourStep;if(t.hourStep){e.$parent.$watch(n(t.hourStep),function(e){u=parseInt(e,10)})}var c=a.minuteStep;if(t.minuteStep){e.$parent.$watch(n(t.minuteStep),function(e){c=parseInt(e,10)})}var f;e.$parent.$watch(n(t.min),function(e){var t=new Date(e);f=isNaN(t)?undefined:t});var p;e.$parent.$watch(n(t.max),function(e){var t=new Date(e);p=isNaN(t)?undefined:t});e.noIncrementHours=function(){var e=y(o,u*60);return e>p||e<o&&e<f};e.noDecrementHours=function(){var e=y(o,-u*60);return e<f||e>o&&e>p};e.noIncrementMinutes=function(){var e=y(o,c);return e>p||e<o&&e<f};e.noDecrementMinutes=function(){var e=y(o,-c);return e<f||e>o&&e>p};e.noToggleMeridian=function(){if(o.getHours()<13){return y(o,12*60)>p}else{return y(o,-12*60)<f}};e.showMeridian=a.showMeridian;if(t.showMeridian){e.$parent.$watch(n(t.showMeridian),function(t){e.showMeridian=!!t;if(s.$error.time){var n=d(),r=h();if(angular.isDefined(n)&&angular.isDefined(r)){o.setHours(n);g()}}else{$()}})}function d(){var t=parseInt(e.hours,10);var n=e.showMeridian?t>0&&t<13:t>=0&&t<24;if(!n){return undefined}if(e.showMeridian){if(t===12){t=0}if(e.meridian===l[1]){t=t+12}}return t}function h(){var t=parseInt(e.minutes,10);return t>=0&&t<60?t:undefined}function v(e){return angular.isDefined(e)&&e.toString().length<2?"0"+e:e.toString()}this.setupMousewheelEvents=function(t,n){var r=function(e){if(e.originalEvent){e=e.originalEvent}var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.bind("mousewheel wheel",function(t){e.$apply(r(t)?e.incrementHours():e.decrementHours());t.preventDefault()});n.bind("mousewheel wheel",function(t){e.$apply(r(t)?e.incrementMinutes():e.decrementMinutes());t.preventDefault()})};this.setupArrowkeyEvents=function(t,n){t.bind("keydown",function(t){if(t.which===38){t.preventDefault();e.incrementHours();e.$apply()}else if(t.which===40){t.preventDefault();e.decrementHours();e.$apply()}});n.bind("keydown",function(t){if(t.which===38){t.preventDefault();e.incrementMinutes();e.$apply()}else if(t.which===40){t.preventDefault();e.decrementMinutes();e.$apply()}})};this.setupInputEvents=function(t,n){if(e.readonlyInput){e.updateHours=angular.noop;e.updateMinutes=angular.noop;return}var r=function(t,n){s.$setViewValue(null);s.$setValidity("time",false);if(angular.isDefined(t)){e.invalidHours=t}if(angular.isDefined(n)){e.invalidMinutes=n}};e.updateHours=function(){var e=d(),t=h();if(angular.isDefined(e)&&angular.isDefined(t)){o.setHours(e);if(o<f||o>p){r(true)}else{g("h")}}else{r(true)}};t.bind("blur",function(t){if(!e.invalidHours&&e.hours<10){e.$apply(function(){e.hours=v(e.hours)})}});e.updateMinutes=function(){var e=h(),t=d();if(angular.isDefined(e)&&angular.isDefined(t)){o.setMinutes(e);if(o<f||o>p){r(undefined,true)}else{g("m")}}else{r(undefined,true)}};n.bind("blur",function(t){if(!e.invalidMinutes&&e.minutes<10){e.$apply(function(){e.minutes=v(e.minutes)})}})};this.render=function(){var t=s.$viewValue;if(isNaN(t)){s.$setValidity("time",false);r.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.')}else{if(t){o=t}if(o<f||o>p){s.$setValidity("time",false);
1e.invalidHours=true;e.invalidMinutes=true}else{m()}$()}};function g(e){m();s.$setViewValue(new Date(o));$(e)}function m(){s.$setValidity("time",true);e.invalidHours=false;e.invalidMinutes=false}function $(t){var n=o.getHours(),r=o.getMinutes();if(e.showMeridian){n=n===0||n===12?12:n%12}e.hours=t==="h"?n:v(n);if(t!=="m"){e.minutes=v(r)}e.meridian=o.getHours()<12?l[0]:l[1]}function y(e,t){var n=new Date(e.getTime()+t*6e4);var r=new Date(e);r.setHours(n.getHours(),n.getMinutes());return r}function b(e){o=y(o,e);g()}e.showSpinners=angular.isDefined(t.showSpinners)?e.$parent.$eval(t.showSpinners):a.showSpinners;e.incrementHours=function(){if(!e.noIncrementHours()){b(u*60)}};e.decrementHours=function(){if(!e.noDecrementHours()){b(-u*60)}};e.incrementMinutes=function(){if(!e.noIncrementMinutes()){b(c)}};e.decrementMinutes=function(){if(!e.noDecrementMinutes()){b(-c)}};e.toggleMeridian=function(){if(!e.noToggleMeridian()){b(12*60*(o.getHours()<12?1:-1))}}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",controllerAs:"timepicker",replace:true,scope:{},templateUrl:function(e,t){return t.templateUrl||"template/timepicker/timepicker.html"},link:function(e,t,n,r){var i=r[0],a=r[1];if(a){i.init(a,t.find("input"))}}}});angular.module("ui.bootstrap.transition",[]).value("$transitionSuppressDeprecated",false).factory("$transition",["$q","$timeout","$rootScope","$log","$transitionSuppressDeprecated",function(e,t,n,r,i){if(!i){r.warn("$transition is now deprecated. Use $animate from ngAnimate instead.")}var a=function(r,i,o){o=o||{};var s=e.defer();var l=a[o.animation?"animationEndEventName":"transitionEndEventName"];var u=function(e){n.$apply(function(){r.unbind(l,u);s.resolve(r)})};if(l){r.bind(l,u)}t(function(){if(angular.isString(i)){r.addClass(i)}else if(angular.isFunction(i)){i(r)}else if(angular.isObject(i)){r.css(i)}if(!l){s.resolve(r)}});s.promise.cancel=function(){if(l){r.unbind(l,u)}s.reject("Transition cancelled")};return s.promise};var o=document.createElement("trans");var s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"};var l={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};function u(e){for(var t in e){if(o.style[t]!==undefined){return e[t]}}}a.transitionEndEventName=u(s);a.animationEndEventName=u(l);return a}]);angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position"]).factory("typeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(t);if(!r){throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_"'+' but got "'+n+'".')}return{itemName:r[3],source:e(r[4]),viewMapper:e(r[2]||r[1]),modelMapper:e(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$position","typeaheadParser",function(e,t,n,r,i,a,o,s,l){var u=[9,13,27,38,40];var c=200;return{require:["ngModel","^?ngModelOptions"],link:function(f,p,d,h){var v=h[0];var g=h[1];var m=f.$eval(d.typeaheadMinLength);if(!m&&m!==0){m=1}var $=f.$eval(d.typeaheadWaitMs)||0;var y=f.$eval(d.typeaheadEditable)!==false;var b=t(d.typeaheadLoading).assign||angular.noop;var w=t(d.typeaheadOnSelect);var x=angular.isDefined(d.typeaheadSelectOnBlur)?f.$eval(d.typeaheadSelectOnBlur):false;var k=t(d.typeaheadNoResults).assign||angular.noop;var C=d.typeaheadInputFormatter?t(d.typeaheadInputFormatter):undefined;var T=d.typeaheadAppendToBody?f.$eval(d.typeaheadAppendToBody):false;var S=f.$eval(d.typeaheadFocusFirst)!==false;var D=d.typeaheadSelectOnExact?f.$eval(d.typeaheadSelectOnExact):false;var E=t(d.ngModel);var O=t(d.ngModel+"($$$p)");var A=function(e,t){if(angular.isFunction(E(f))&&g&&g.$options&&g.$options.getterSetter){return O(e,{$$$p:t})}else{return E.assign(e,t)}};var M=l.parse(d.typeahead);var P;var N;var I=f.$new();var V=f.$on("$destroy",function(){I.$destroy()});I.$on("$destroy",V);var j="typeahead-"+I.$id+"-"+Math.floor(Math.random()*1e4);p.attr({"aria-autocomplete":"list","aria-expanded":false,"aria-owns":j});var R=angular.element("<div typeahead-popup></div>");R.attr({id:j,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"});if(angular.isDefined(d.typeaheadTemplateUrl)){R.attr("template-url",d.typeaheadTemplateUrl)}if(angular.isDefined(d.typeaheadPopupTemplateUrl)){R.attr("popup-template-url",d.typeaheadPopupTemplateUrl)}var F=function(){I.matches=[];I.activeIdx=-1;p.attr("aria-expanded",false)};var H=function(e){return j+"-option-"+e};I.$watch("activeIdx",function(e){if(e<0){p.removeAttr("aria-activedescendant")}else{p.attr("aria-activedescendant",H(e))}});var U=function(e,t){if(I.matches.length>t&&e){return e.toUpperCase()===I.matches[t].label.toUpperCase()}return false};var q=function(e){var t={$viewValue:e};b(f,true);k(f,false);n.when(M.source(f,t)).then(function(n){var r=e===v.$viewValue;if(r&&P){if(n&&n.length>0){I.activeIdx=S?0:-1;k(f,false);I.matches.length=0;for(var i=0;i<n.length;i++){t[M.itemName]=n[i];I.matches.push({id:H(i),label:M.viewMapper(I,t),model:n[i]})}I.query=e;B();p.attr("aria-expanded",true);if(D&&I.matches.length===1&&U(e,0)){I.select(0)}}else{F();k(f,true)}}if(r){b(f,false)}},function(){F();b(f,false);k(f,true)})};if(T){angular.element(a).bind("resize",_);i.find("body").bind("scroll",_)}
1var L;I.moveInProgress=false;function _(){if(!I.moveInProgress){I.moveInProgress=true;I.$digest()}if(L){r.cancel(L)}L=r(function(){if(I.matches.length){B()}I.moveInProgress=false;I.$digest()},c)}function B(){I.position=T?s.offset(p):s.position(p);I.position.top+=p.prop("offsetHeight")}F();I.query=undefined;var Y;var W=function(e){Y=r(function(){q(e)},$)};var z=function(){if(Y){r.cancel(Y)}};v.$parsers.unshift(function(e){P=true;if(m===0||e&&e.length>=m){if($>0){z();W(e)}else{q(e)}}else{b(f,false);z();F()}if(y){return e}else{if(!e){v.$setValidity("editable",true);return null}else{v.$setValidity("editable",false);return undefined}}});v.$formatters.push(function(e){var t,n;var r={};if(!y){v.$setValidity("editable",true)}if(C){r.$model=e;return C(f,r)}else{r[M.itemName]=e;t=M.viewMapper(f,r);r[M.itemName]=undefined;n=M.viewMapper(f,r);return t!==n?t:e}});I.select=function(e){var t={};var n,i;N=true;t[M.itemName]=i=I.matches[e].model;n=M.modelMapper(f,t);A(f,n);v.$setValidity("editable",true);v.$setValidity("parse",true);w(f,{$item:i,$model:n,$label:M.viewMapper(f,t)});F();if(I.$eval(d.typeaheadFocusOnSelect)!==false){r(function(){p[0].focus()},0,false)}};p.bind("keydown",function(e){if(I.matches.length===0||u.indexOf(e.which)===-1){return}if(I.activeIdx===-1&&(e.which===9||e.which===13)){F();I.$digest();return}e.preventDefault();if(e.which===40){I.activeIdx=(I.activeIdx+1)%I.matches.length;I.$digest()}else if(e.which===38){I.activeIdx=(I.activeIdx>0?I.activeIdx:I.matches.length)-1;I.$digest()}else if(e.which===13||e.which===9){I.$apply(function(){I.select(I.activeIdx)})}else if(e.which===27){e.stopPropagation();F();I.$digest()}});p.bind("blur",function(){if(x&&I.matches.length&&I.activeIdx!==-1&&!N){N=true;I.$apply(function(){I.select(I.activeIdx)})}P=false;N=false});var X=function(e){if(p[0]!==e.target&&e.which!==3&&I.matches.length!==0){F();if(!o.$$phase){I.$digest()}}};i.bind("click",X);f.$on("$destroy",function(){i.unbind("click",X);if(T){G.remove()}R.remove()});var G=e(R)(I);if(T){i.find("body").append(G)}else{p.after(G)}}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:true,templateUrl:function(e,t){return t.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(e,t,n){e.templateUrl=n.templateUrl;e.isOpen=function(){return e.matches.length>0};e.isActive=function(t){return e.active==t};e.selectActive=function(t){e.active=t};e.selectMatch=function(t){e.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,i,a){var o=n(a.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";e(o).then(function(e){t(e.trim())(r,function(e){i.replaceWith(e)})})}}}]).filter("typeaheadHighlight",["$sce","$injector","$log",function(e,t,n){var r;r=t.has("$sanitize");function i(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function a(e){return/<.*>/g.test(e)}return function(t,o){if(!r&&a(t)){n.warn("Unsafe use of typeahead please use ngSanitize")}t=o?(""+t).replace(new RegExp(i(o),"gi"),"<strong>$&</strong>"):t;if(!r){t=e.trustAsHtml(t)}return t}}]);angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion-group.html","<div class=\"panel {{panelClass || 'panel-default'}}\">\n"+'  <div class="panel-heading" ng-keypress="toggleOpen($event)">\n'+'    <h4 class="panel-title">\n'+'      <a href tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n'+"    </h4>\n"+"  </div>\n"+'  <div class="panel-collapse collapse" collapse="!isOpen">\n'+'\t  <div class="panel-body" ng-transclude></div>\n'+"  </div>\n"+"</div>\n"+"")}]);angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]);angular.module("template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("template/alert/alert.html","<div class=\"alert\" ng-class=\"['alert-' + (type || 'warning'), closeable ? 'alert-dismissible' : null]\" role=\"alert\">
1\n"+'    <button ng-show="closeable" type="button" class="close" ng-click="close($event)">\n'+'        <span aria-hidden="true">&times;</span>\n'+'        <span class="sr-only">Close</span>\n'+"    </button>\n"+"    <div ng-transclude></div>\n"+"</div>\n"+"")}]);angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\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)"></li>\n'+"    </ol>\n"+'    <div class="carousel-inner" ng-transclude></div>\n'+'    <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"></span></a>\n'+'    <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"></span></a>\n'+"</div>\n"+"")}]);angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("template/carousel/slide.html",'<div ng-class="{\n'+"    'active': active\n"+'  }" class="item text-center" ng-transclude></div>\n'+"")}]);angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n'+'  <daypicker ng-switch-when="day" tabindex="0"></daypicker>\n'+'  <monthpicker ng-switch-when="month" tabindex="0"></monthpicker>\n'+'  <yearpicker ng-switch-when="year" tabindex="0"></yearpicker>\n'+"</div>")}]);angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/day.html",'<table 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" 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" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n'+'      <th><button type="button" class="btn btn-default btn-sm pull-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 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 track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n'+'        <button type="button" style="min-width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" 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("template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/month.html",'<table 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" 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" ng-click="toggleMode()" ng-disabled="datepickerMode === max
1Mode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n'+'      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n'+"    </tr>\n"+"  </thead>\n"+"  <tbody>\n"+'    <tr ng-repeat="row in rows track by $index">\n'+'      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n'+'        <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n'+"      </td>\n"+"    </tr>\n"+"  </tbody>\n"+"</table>\n"+"")}]);angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-if="isOpen" style="display: block" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n'+"\t<li ng-transclude></li>\n"+'\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n'+'\t\t<span class="btn-group pull-left">\n'+'\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n'+'\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n'+"\t\t</span>\n"+'\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n'+"\t</li>\n"+"</ul>\n"+"")}]);angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/year.html",'<table 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" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n'+'      <th colspan="3"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n'+'      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n'+"    </tr>\n"+"  </thead>\n"+"  <tbody>\n"+'    <tr ng-repeat="row in rows track by $index">\n'+'      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}">\n'+'        <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n'+"      </td>\n"+"    </tr>\n"+"  </tbody>\n"+"</table>\n"+"")}]);angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("template/modal/backdrop.html",'<div class="modal-backdrop"\n'+'     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("template/modal/window.html",[]).run(["$templateCache",function(e){e.put("template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n'+'    modal-animation-class="fade"\n'+'    modal-in-class="in"\n'+"\tng-style=\"{'z-index': 1050 + index*10, display: 'block'}\" ng-click=\"close($event)\">\n"+'    <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" modal-transclude></div></div>\n'+"</div>\n"+"")}]);angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(e){e.put("template/pagination/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("template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("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("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n'+'  tooltip-animation-class="fade"\n'+"  tooltip-classe
1s\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("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip"\n'+'  tooltip-animation-class="fade"\n'+"  tooltip-classes\n"+'  ng-class="{ in: isOpen() }">\n'+'  <div class="tooltip-arrow"></div>\n'+'  <div class="tooltip-inner" bind-html-unsafe="content"></div>\n'+"</div>\n"+"")}]);angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-popup.html",'<div class="tooltip"\n'+'  tooltip-animation-class="fade"\n'+"  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("template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n'+'  tooltip-animation-class="fade"\n'+"  tooltip-classes\n"+'  ng-class="{ in: isOpen() }">\n'+'  <div class="tooltip-arrow"></div>\n'+'  <div class="tooltip-inner"\n'+'    tooltip-template-transclude="contentExp()"\n'+'    tooltip-template-transclude-scope="originScope()"></div>\n'+"</div>\n"+"")}]);angular.module("template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-html.html",'<div class="popover"\n'+'  tooltip-animation-class="fade"\n'+"  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("template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-template.html",'<div class="popover"\n'+'  tooltip-animation-class="fade"\n'+"  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'+'        tooltip-template-transclude="contentExp()"\n'+'        tooltip-template-transclude-scope="originScope()"></div>\n'+"  </div>\n"+"</div>\n"+"")}]);angular.module("template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover.html",'<div class="popover"\n'+'  tooltip-animation-class="fade"\n'+"  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("template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("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}}%" style="min-width: 0;" ng-transclude></div>\n'+"")}]);angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progress.html",'<div class="progress" ng-transclude></div>')}]);angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("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}}%" style="min-width: 0;" ng-transclude></div>\n'+"</div>\n"+"")}]);angular.module("template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("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}}">
1\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}}" ></i>\n'+"</span>\n"+"")}]);angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n'+'  <a href ng-click="select()" tab-heading-transclude>{{heading}}</a>\n'+"</li>\n"+"")}]);angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("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'+'         tab-content-transclude="tab">\n'+"    </div>\n"+"  </div>\n"+"</div>\n"+"")}]);angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("template/timepicker/timepicker.html","<table>\n"+"  <tbody>\n"+'    <tr class="text-center" ng-show="::showSpinners">\n'+'      <td><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n'+"      <td>&nbsp;</td>\n"+'      <td><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n'+'      <td ng-show="showMeridian"></td>\n'+"    </tr>\n"+"    <tr>\n"+'      <td class="form-group" ng-class="{\'has-error\': invalidHours}">\n'+'        <input style="width:50px;" type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2">\n'+"      </td>\n"+"      <td>:</td>\n"+'      <td class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n'+'        <input style="width:50px;" type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2">\n'+"      </td>\n"+'      <td ng-show="showMeridian"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n'+"    </tr>\n"+'    <tr class="text-center" ng-show="::showSpinners">\n'+'      <td><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n'+"      <td>&nbsp;</td>\n"+'      <td><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n'+'      <td ng-show="showMeridian"></td>\n'+"    </tr>\n"+"  </tbody>\n"+"</table>\n"+"")}]);angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-match.html",'<a href tabindex="-1" ng-bind-html="match.label | typeaheadHighlight:query"></a>\n'+"")}]);angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" style="display: block;" 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)" role="option" id="{{::match.id}}">\n'+'        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n'+"    </li>\n"+"</ul>\n"+"")}]);!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">
1.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>');(function(e){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=e()}else if(typeof define==="function"&&define.amd){define([],e)}else{var t;if(typeof window!=="undefined"){t=window}else if(typeof global!=="undefined"){t=global}else if(typeof self!=="undefined"){t=self}else{t=this}t.angularCreditCards=e()}})(function(){var e,t,n;return function(){function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}return e}()({1:[function(e,t,n){n=t.exports=r;function r(e,t){return function(){var n=[].slice.call(arguments),r=e.slice();r.push.apply(r,n);return t.apply(this,r)}}n.pa=i;function i(e,t){return function(){var n=[].slice.call(arguments);n.push.apply(n,e);return t.apply(this,n)}}n.apa=a;function a(e,t,n){return function(){return n.apply(this,e.concat.apply(e,arguments).concat(t))}}n.partial=o;function o(e){var t=[].slice.call(arguments,1);return r(t,e)}n.partialRight=s;function s(e){var t=[].slice.call(arguments,1);return i(t,e)}n.curry=l;function l(e){return o(o,e)}n.curryRight=function e(t){return o(s,t)}},{}],2:[function(e,t,n){"use strict";var r=e("isarray");t.exports=function e(t){return r(t)?t:[t]}},{isarray:18}],3:[function(e,t,n){"use strict";var r=n.types=e("./src/types");n.Type=e("./src/type");n.find=function e(t){for(var n in r){var i=r[n];var a=t(i);if(a)return i}}},{"./src/type":4,"./src/types":5}],4:[function(e,t,n){"use strict";var r=e("xtend/mutable");t.exports=i;function i(e,t){r(this,{name:e},t)}i.prototype.cvcLength=3;i.prototype.luhn=true;i.prototype.groupPattern=/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?/;i.prototype.group=function(e){return(e.match(this.groupPattern)||[]).slice(1).filter(Boolean)};i.prototype.test=function(e,t){return this[t?"eagerPattern":"pattern"].test(e)}},{"xtend/mutable":25}],5:[function(e,t,n){"use strict";var r=e("./type");var i=/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,3})?/;n.visa=new r("Visa",{pattern:/^4\d{12}(\d{3}|\d{6})?$/,eagerPattern:/^4/,groupPattern:i});n.maestro=new r("Maestro",{pattern:/^(?:5[06789]\d\d|(?!6011[0234])(?!60117[4789])(?!60118[6789])(?!60119)(?!64[456789])(?!65)6\d{3})\d{8,15}$/,eagerPattern:/^(5(018|0[23]|[68])|6[37]|60111|60115|60117([56]|7[56])|60118[0-5]|64[0-3]|66)/,groupPattern:i});n.forbrugsforeningen=new r("Forbrugsforeningen",{pattern:/^600722\d{10}$/,eagerPattern:/^600/});n.dankort=new r("Dankort",{pattern:/^5019\d{12}$/,eagerPattern:/^5019/});n.masterCard=new r("MasterCard",{pattern:/^(5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)\d{12}$/,eagerPattern:/^(2|5[1-5])/});n.americanExpress=new r("American Express",{pattern:/^3[47]\d{13}$/,eagerPattern:/^3[47]/,groupPattern:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,cvcLength:4});n.dinersClub=new r("Diners Club",{pattern:/^3(0[0-5]|[68]\d)\d{11}$/,eagerPattern:/^3(0|[68])/,groupPattern:/(\d{1,4})?(\d{1,6})?(\d{1,4})?/});n.discover=new r("Discover",{pattern:/^6(011(0[0-9]|[2-4]\d|74|7[7-9]|8[6-9]|9[0-9])|4[4-9]\d{3}|5\d{4})\d{10}$/,eagerPattern:/^6(011(0[0-9]|[2-4]|74|7[7-9]|8[6-9]|9[0-9])|4[4-9]|5)/});n.jcb=new r("JCB",{pattern:/^35\d{14}$/,eagerPattern:/^35/});n.unionPay=new r("UnionPay",{pattern:/^62[0-5]\d{13,16}$/,eagerPattern:/^62/,groupPattern:i,luhn:false});n.troy=new r("Troy",{pattern:/^9792\d{12}$/,eagerPattern:/^9792/})},{"./type":4}],6:[function(e,t,n){"use strict";var r=e("fast-luhn");var i=e("./types");t.exports={types:i,parse:a,format:o,type:s,luhn:r,isValid:l};function a(e){if(typeof e!=="string")return"";return e.replace(/[^\d]/g,"")}function o(e,t){var n=u(e,true);if(!n)return e;return n.group(e).join(t||" ")}function s(e,t){var n=u(e,t);return n?n.name:undefined}function l(e,t){if(t){t=i.get(t)}else{t=u(e)}if(!t)return false;return(!t.luhn||r(e))&&t.test(e)}function u(e,t){return i.find(function(n){return n.test(e,t)})}},{"./types":10,"fast-luhn":12}],7:[function(e,t,n){"use strict";var r=e("./types");var i=/^\d{3,4}$/;t.exports={isValid:a};function a(e,t){if(typeof e!=="string")return false;if(!i.test(e))return false;if(!t)return true;return r.get(t).cvcLength===e.length}},{"./types":10}],8:[function(e,t,n){"use strict";var r=e("is-valid-month");var i=e("parse-int");var a=e("parse-year");t.exports={isPast:o,month:{parse:s,isValid:r},year:{parse:a,format:l,isValid:u,isPast:c}};function o(e,t){return Date.now()>=new Date(t,e)}function s(e){return i(e)}function l(e,t){e=e.toString();return t?e.substr(2,4):e}function u(e){if(typeof e!=="number")return false;e=i(e);return e>0}function c(e){return(new Date).getFullYear()>e}},{"is-valid-month":17,"parse-int":19,"parse-year":20}],9:[function(e,t,n){"use strict";
1t.exports={card:e("./card"),cvc:e("./cvc"),expiration:e("./expiration")}},{"./card":6,"./cvc":7,"./expiration":8}],10:[function(e,t,n){"use strict";var r=e("creditcards-types");var i=e("to-camel-case");var a=e("xtend");t.exports=a(r,{get:function e(t){return r.types[i(t)]}})},{"creditcards-types":3,"to-camel-case":21,xtend:24}],11:[function(e,t,n){"use strict";var r=e("zero-fill");var i=e("parse-int");var a=r(2);t.exports=function e(t,n){n=n||new Date;var r=n.getFullYear().toString().substr(0,2);t=i(t);return i(r+a(t))}},{"parse-int":19,"zero-fill":26}],12:[function(e,t,n){"use strict";t.exports=function(e){return function t(n){if(typeof n!=="string")throw new TypeError("Expected string input");if(!n)return false;var r=n.length;var i=1;var a=0;var o;while(r){o=parseInt(n.charAt(--r),10);i^=1;a+=i?e[o]:o}return a%10===0}}([0,2,4,6,8,1,3,5,7,9])},{}],13:[function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ";var i=Array.prototype.slice;var a=Object.prototype.toString;var o="[object Function]";t.exports=function e(t){var n=this;if(typeof n!=="function"||a.call(n)!==o){throw new TypeError(r+n)}var s=i.call(arguments,1);var l;var u=function(){if(this instanceof l){var e=n.apply(this,s.concat(i.call(arguments)));if(Object(e)===e){return e}return this}else{return n.apply(t,s.concat(i.call(arguments)))}};var c=Math.max(0,n.length-s.length);var f=[];for(var p=0;p<c;p++){f.push("$"+p)}l=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(u);if(n.prototype){var d=function e(){};d.prototype=n.prototype;l.prototype=new d;d.prototype=null}return l}},{}],14:[function(e,t,n){"use strict";var r=e("./implementation");t.exports=Function.prototype.bind||r},{"./implementation":13}],15:[function(e,t,n){"use strict";t.exports=Number.isFinite||function(e){return!(typeof e!=="number"||e!==e||e===Infinity||e===-Infinity)}},{}],16:[function(e,t,n){var r=e("is-finite");t.exports=Number.isInteger||function(e){return typeof e==="number"&&r(e)&&Math.floor(e)===e}},{"is-finite":15}],17:[function(e,t,n){"use strict";var r=e("is-integer");t.exports=function e(t){if(typeof t!=="number"||!r(t))return false;return t>=1&&t<=12}},{"is-integer":16}],18:[function(e,t,n){t.exports=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"}},{}],19:[function(e,t,n){"use strict";var r=e("is-integer");var i=/^-?\d+$/;t.exports=function e(t){if(typeof t==="number"){return r(t)?t:undefined}if(typeof t==="string"){return i.test(t)?parseInt(t,10):undefined}}},{"is-integer":16}],20:[function(e,t,n){"use strict";var r=e("parse-int");var i=e("expand-year");t.exports=function e(t,n,a){t=r(t);if(t==null)return;if(!n)return t;return i(t,a)}},{"expand-year":11,"parse-int":19}],21:[function(e,t,n){var r=e("to-space-case");t.exports=i;function i(e){return r(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}},{"to-space-case":23}],22:[function(e,t,n){t.exports=o;var r=/\s/;var i=/(_|-|\.|:)/;var a=/([a-z][A-Z]|[A-Z][a-z])/;function o(e){if(r.test(e))return e.toLowerCase();if(i.test(e))return(l(e)||e).toLowerCase();if(a.test(e))return c(e).toLowerCase();return e.toLowerCase()}var s=/[\W_]+(.|$)/g;function l(e){return e.replace(s,function(e,t){return t?" "+t:""})}var u=/(.)([A-Z]+)/g;function c(e){return e.replace(u,function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")})}},{}],23:[function(e,t,n){var r=e("to-no-case");t.exports=i;function i(e){return r(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?" "+t:""}).trim()}},{"to-no-case":22}],24:[function(e,t,n){t.exports=i;var r=Object.prototype.hasOwnProperty;function i(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var i in n){if(r.call(n,i)){e[i]=n[i]}}}return e}},{}],25:[function(e,t,n){t.exports=i;var r=Object.prototype.hasOwnProperty;function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n){if(r.call(n,i)){e[i]=n[i]}}}return e}},{}],26:[function(e,t,n){t.exports=function e(t,n,r){if(n===undefined){return function(n,r){return e(t,n,r)}}if(r===undefined)r="0";t-=n.toString().length;if(t>0)return new Array(t+(/\./.test(n)?2:1)).join(r)+n;return n+""}},{}],27:[function(e,t,n){"use strict";var r=e("creditcards").cvc;var i=e("function-bind");t.exports=a;a.$inject=["$parse"];function a(e){return{restrict:"A",require:"ngModel",compile:function(t,n){n.$set("maxlength",4);n.$set("pattern","[0-9]*");n.$set("xAutocompletetype","cc-csc");return function(t,n,a,o){o.$validators.ccCvc=function(n){return o.$isEmpty(o.$viewValue)||r.isValid(n,e(a.ccType)(t))};
1if(a.ccType){t.$watch(a.ccType,i.call(o.$validate,o))}}}}}},{creditcards:9,"function-bind":14}],28:[function(e,t,n){"use strict";var r=e("creditcards").expiration;var i=r.month;var a=r.year;var o=e("ap");n=t.exports=function e(){return{restrict:"AE",require:"ccExp",controller:s,link:function(e,t,n,r){r.$watch()}}};s.$inject=["$scope","$element"];function s(e,t){var n={$setValidity:u};var i=t.inheritedData("$formController")||n;var a={year:{},month:{}};this.setMonth=function(e){a.month=e};this.setYear=function(e){a.year=e};function o(e){var n=e.month;var a=e.year;var o=n==null&&a==null||!!n&&!!a&&!r.isPast(n,a);i.$setValidity("ccExp",o,t)}this.$watch=function t(){e.$watch(function e(){return{month:a.month.$modelValue,year:a.year.$modelValue}},o,true)}}var l={setMonth:u,setYear:u};n.month=function e(){return{restrict:"A",require:["ngModel","^?ccExp"],compile:function(e,t){t.$set("maxlength",2);t.$set("pattern","[0-9]*");t.$set("xAutocompletetype","cc-exp-month");return function(e,t,n,r){var a=r[0];var o=r[1]||l;o.setMonth(a);a.$parsers.unshift(i.parse);a.$validators.ccExpMonth=function e(t){return a.$isEmpty(a.$viewValue)||i.isValid(t)}}}}};n.year=function e(){return{restrict:"A",require:["ngModel","^?ccExp"],compile:function(e,t){var n=t.fullYear!==undefined;t.$set("maxlength",n?4:2);t.$set("pattern","[0-9]*");t.$set("xAutocompletetype","cc-exp-year");return function(e,t,r,i){var s=i[0];var u=i[1]||l;u.setYear(s);s.$parsers.unshift(o.partialRight(a.parse,!n));s.$formatters.unshift(function e(t){return t?a.format(t,!n):""});s.$validators.ccExpYear=function e(t){return s.$isEmpty(s.$viewValue)||a.isValid(t)&&!a.isPast(t)}}}}};function u(){}},{ap:1,creditcards:9}],29:[function(e,t,n){"use strict";var r=e("creditcards").card;var i=e("cast-array");var a=e("ap").partial;t.exports=o;o.$inject=["$parse","$timeout"];function o(e,t){return{restrict:"A",require:["ngModel","ccNumber"],controller:function(){this.type=null;this.eagerType=null},compile:function(n,o){o.$set("pattern","[0-9]*");o.$set("xAutocompletetype","cc-number");return function(n,o,s,l){var u=l[0];var c=l[1];n.$watch(s.ngModel,function(e){u.$ccType=c.type=r.type(e)});function f(){return u.$viewValue}function p(e,n){t(function(){if(e.setSelectionRange){e.setSelectionRange(n,n)}else if(e.createTextRange){var t=e.createTextRange();t.move("character",n);t.select()}},0)}if(s.ccEagerType!=null){n.$watch(f,function e(t){t=r.parse(t);u.$ccEagerType=c.eagerType=r.type(t,true)})}if(s.ccType){n.$watch(s.ccType,function(){u.$validate()})}if(s.ccFormat!=null){u.$formatters.unshift(r.format);o.on("input",function e(){var t=o.val();if(!t)return;var n=o[0];var i=r.format(r.parse(t));var a=n.selectionEnd;u.$setViewValue(i);u.$render();if(a===t.length&&t.length<i.length){a=i.length}p(n,a)})}u.$parsers.unshift(r.parse);u.$validators.ccNumber=function e(t){return u.$isEmpty(u.$viewValue)||r.isValid(t)};u.$validators.ccNumberType=function t(o){if(u.$isEmpty(u.$viewValue))return true;var l=e(s.ccType)(n);if(!l)r.isValid(o);return i(l).some(a(r.isValid,o))}}}}}},{ap:1,"cast-array":2,creditcards:9}],30:[function(e,t,n){(function(n){(function(){"use strict";var r=typeof window!=="undefined"?window["angular"]:typeof n!=="undefined"?n["angular"]:null;var i=e("creditcards");var a=e("./number");var o=e("./cvc");var s=e("./expiration");t.exports=r.module("credit-cards",[]).value("creditcards",i).directive("ccNumber",a).directive("ccExp",s).directive("ccExpMonth",s.month).directive("ccExpYear",s.year).directive("ccCvc",o).name}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./cvc":27,"./expiration":28,"./number":29,creditcards:9}]},{},[30])(30)});(function(){"use strict";var e,t,n,r,i,a,o,s,l,u,c,f,p,d,h,v,g,m,y,b=[].slice;i=angular.module("angular-inview",[]).directive("inView",["$parse",function(e){return{restrict:"A",require:"?^inViewContainer",link:function(t,n,i,a){var l,u,c,f,d,h;if(!i.inView){return}l=e(i.inView);u={element:n,wasInView:false,offset:0,customDebouncedCheck:null,callback:function(e,r,i){if(e==null){e={}}return t.$evalAsync(function(a){return function(){e.inViewTarget=n[0];return l(t,{$event:e,$inview:r,$inviewpart:i})}}(this))}};if(i.inViewOptions!=null&&(c=t.$eval(i.inViewOptions))){u.offset=c.offset||[c.offsetTop||0,c.offsetBottom||0];if(c.debounce){u.customDebouncedCheck=s(function(e){return o([u],n[0],e)},c.debounce)}}f=(d=(h=u.customDebouncedCheck)!=null?h:a!=null?a.checkInView:void 0)!=null?d:m;if(a!=null){a.addItem(u)}else{r(u)}setTimeout(f);return t.$on("$destroy",function(){if(a!=null){a.removeItem(u)}return p(u)})}}}]).directive("inViewContainer",function(){return{restrict:"AC",controller:["$element",function(e){this.items=[];this.addItem=function(e){return this.items.push(e)};this.removeItem=function(e){var t;return this.items=function(){var n,r,i,a;i=this.items;a=[];for(n=0,r=i.length;n<r;n++){t=i[n];if(t!==e){a.push(t)}}return a}.call(this)};this.checkInView=function(t){return function(n){var r,i,a,s;s=t.items;for(i=0,a=s.length;i<a;i++){r=s[i];if(r.customDebouncedCheck!=null){r.customDebouncedCheck()}}return o(function(){var e,t,n,i;n=this.items;i=[];for(e=0,t=n.length;e<t;e++){r=n[e];if(r.customDebouncedCheck==null){i.push(r)}}return i}.call(t),e[0],n)}}(this);return this}],link:function(e,t,n,r){t.bind("scroll",r.checkInView);d(r);return e.$on("$destroy",function(){t.unbind("scroll",r.checkInView);return g(r)})}}});n=[];r=function(e){n.push(e);return a()};p=function(e){var t;n=function(){var r,i,a;a=[];for(r=0,i=n.length;r<i;r++){t=n[r];if(t!==e){a.push(t)}}return a}();return v()};e=[];d=function(t){e.push(t);return a()};g=function(t){var n;e=function(){var r,i,a;a=[];for(r=0,i=e.length;r<i;r++){n=e[r];if(n!==t){a.push(n)}}return a}();return v()};t=false;y=function(t){var r,i,a;for(i=0,a=e.length;i<a;i++){r=e[i];r.checkInView(t)}if(n.length){return m(t)}};a=function(){if(t){return}t=true;return angular.element(window).bind("checkInView click ready wheel mousewheel DomMouseScroll MozMousePixelScroll resize scroll touchmove mouseup",y)};v=function(){if(!t){return}if(n.length||e.length){return}t=false;return angular.element(window).unbind("checkInView click ready wheel mousewheel DomMouseScroll MozMousePixelScroll resize scroll touchmove mouseup",y)};h=function(e,t,n,r,i){var a,o;if(n){a=l(t.element[0]).top+window.pageYOffset;o=r&&i&&"neither"||r&&"top"||i&&"bottom"||"both";if(!(t.wasInView&&t.wasInView===o&&a===t.lastOffsetTop)){t.lastOffsetTop=a;t.wasInView=o;return t.callback(e,true,o)}}else if(t.wasInView){t.wasInView=false;return t.callback(e,false)}};o=function(e,t,n){var r,i,a,o,s,p,d,v,g,m,$,y,b,w,x;x={top:0,bottom:c()};if(t&&t!==window){r=l(t);if(r.top>x.bottom||r.bottom<x.top){for(p=0,v=e.length;p<v;p++){s=e[p];h(n,s,false)}return}if(r.top>x.top){x.top=r.top}if(r.bottom<x.bottom){x.bottom=r.bottom}}w=[];for(d=0,g=e.length;d<g;d++){s=e[d];o=s.element[0];r=l(o);a=r.top+(f(s.offset)?u(r,s.offset):parseInt((m=($=s.offset)!=null?$[0]:void 0)!=null?m:s.offset));i=r.bottom+(f(s.offset)?u(r,s.offset):parseInt((y=(b=s.offset)!=null?b[1]:void 0)!=null?y:s.offset));if(a<x.bottom&&i>=x.top){w.push(h(n,s,true,i>x.bottom,a<x.top))}else{w.push(h(n,s,false))}}return w};f=function(e){return typeof e==="string"&&e.slice(-1)==="%"};u=function(e,t){var n;n=t.substring(0,t.length-1);return(e.bottom-e.top)*(n/100)};c=function(){var e,t,n;e=window.innerHeight;if(e){return e}t=document.compatMode;if(t||!(typeof $!=="undefined"&&$!==null?(n=$.support)!=null?n.boxModel:void 0:void 0)){e=t==="CSS1Compat"?document.documentElement.clientHeight:document.body.clientHeight}return e};l=function(e){var t,n,r;if(e.getBoundingClientRect!=null){return e.getBoundingClientRect()}r=0;t=e;while(t){r+=t.offsetTop;t=t.offsetParent}n=e.parentElement;while(n){if(n.scrollTop!=null){r-=n.scrollTop}n=n.parentElement}return{top:r,bottom:r+e.offsetHeight}};s=function(e,t){var n;n=null;return function(){var r;r=1<=arguments.length?b.call(arguments,0):[];if(n!=null){clearTimeout(n)}return n=setTimeout(function(){return e.apply(null,r)},t!=null?t:100)}};m=function(e){var t,r,i;for(r=0,i=n.length;r<i;r++){t=n[r];if(t.customDebouncedCheck!=null){t.customDebouncedCheck()}}return o(function(){var e,r,i;i=[];for(e=0,r=n.length;e<r;e++){t=n[e];if(t.customDebouncedCheck==null){i.push(t)}}return i}(),null,e)};if(typeof define==="function"&&define.amd){define(["angular"],i)}else if(typeof module!=="undefined"&&module&&module.exports){module.exports=i}}).call(this);(function(){"use strict";function e(e,t){t=t||Error;return function(){var n=arguments[0],r="["+(e?e+":":"")+n+"] ",i=arguments[1],a=arguments,o,s;o=r+i.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n;if(t+2<a.length){return toDebugString(a[t+2])}return e});o=o+"\nhttp://errors.angularjs.org/1.3.16/"+(e?e+"/":"")+n;for(s=2;s<arguments.length;s++){o=o+(s==2?"?":"&")+"p"+(s-2)+"="+encodeURIComponent(toDebugString(arguments[s]))}return new t(o)}}function t(t){var n=e("$injector");var r=e("ng");function i(e,t,n){return e[t]||(e[t]=n())}var a=i(t,"angular",Object);a.$$minErr=a.$$minErr||e;return i(a,"module",function(){var e={};return function t(a,o,s){var l=function(e,t){if(e==="hasOwnProperty"){throw r("badname","hasOwnProperty is not a valid {0} name",t)}};l(a,"module");if(o&&e.hasOwnProperty(a)){e[a]=null}return i(e,a,function(){if(!o){throw n("nomod","Module '{0}' is not available! You either misspelled "+"the module name or forgot to load it. If registering a module ensure that you "+"specify the dependencies as the second argument.",a)}var e=[];var t=[];var r=[];
1var i=u("$injector","invoke","push",t);var l={_invokeQueue:e,_configBlocks:t,_runBlocks:r,requires:o,name:a,provider:u("$provide","provider"),factory:u("$provide","factory"),service:u("$provide","service"),value:u("$provide","value"),constant:u("$provide","constant","unshift"),animation:u("$animateProvider","register"),filter:u("$filterProvider","register"),controller:u("$controllerProvider","register"),directive:u("$compileProvider","directive"),config:i,run:function(e){r.push(e);return this}};if(s){i(s)}return l;function u(t,n,r,i){if(!i)i=e;return function(){i[r||"push"]([t,n,arguments]);return l}}})}})}t(window)})(window);angular.Module;(function(e,t){var n=t.isDefined,r=t.isUndefined,i=t.isNumber,a=t.isObject,o=t.isArray,s=t.isString,l=t.extend,u=t.toJson;t.module("LocalStorageModule",[]).provider("localStorageService",function(){this.prefix="ls";this.storageType="localStorage";this.cookie={expiry:30,path:"/",secure:false};this.defaultToCookie=true;this.notify={setItem:true,removeItem:false};this.setPrefix=function(e){this.prefix=e;return this};this.setStorageType=function(e){this.storageType=e;return this};this.setDefaultToCookie=function(e){this.defaultToCookie=!!e;return this};this.setStorageCookie=function(e,t,n){this.cookie.expiry=e;this.cookie.path=t;this.cookie.secure=n;return this};this.setStorageCookieDomain=function(e){this.cookie.domain=e;return this};this.setNotify=function(e,t){this.notify={setItem:e,removeItem:t};return this};this.$get=["$rootScope","$window","$document","$parse","$timeout",function(e,t,c,f,p){var d=this;var h=d.prefix;var v=d.cookie;var g=d.notify;var m=d.storageType;var $;if(!c){c=document}else if(c[0]){c=c[0]}if(h.substr(-1)!=="."){h=!!h?h+".":""}var y=function(e){return h+e};var b=function(e){return e.replace(new RegExp("^"+h,"g"),"")};var w=function(e){return e.indexOf(h)===0};var x=function(){try{var n=m in t&&t[m]!==null;var r=y("__"+Math.round(Math.random()*1e7));if(n){$=t[m];$.setItem(r,"");$.removeItem(r)}return n}catch(t){if(d.defaultToCookie)m="cookie";e.$broadcast("LocalStorageModule.notification.error",t.message);return false}};var k=x();var C=function(t,n,i){var a=I();try{V(i);if(r(n)){n=null}else{n=u(n)}if(!k&&d.defaultToCookie||d.storageType==="cookie"){if(!k){e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED")}if(g.setItem){e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"})}return A(t,n)}try{if($){$.setItem(y(t),n)}if(g.setItem){e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:d.storageType})}}catch(r){e.$broadcast("LocalStorageModule.notification.error",r.message);return A(t,n)}return true}finally{V(a)}};var T=function(t,n){var r=I();try{V(n);if(!k&&d.defaultToCookie||d.storageType==="cookie"){if(!k){e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED")}return M(t)}var i=$?$.getItem(y(t)):null;if(!i||i==="null"){return null}try{return JSON.parse(i)}catch(e){return i}}finally{V(r)}};var S=function(){var t=I();try{var n=0;if(arguments.length>=1&&(arguments[arguments.length-1]==="localStorage"||arguments[arguments.length-1]==="sessionStorage")){n=1;V(arguments[arguments.length-1])}var r,i;for(r=0;r<arguments.length-n;r++){i=arguments[r];if(!k&&d.defaultToCookie||d.storageType==="cookie"){if(!k){e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED")}if(g.removeItem){e.$broadcast("LocalStorageModule.notification.removeitem",{key:i,storageType:"cookie"})}P(i)}else{try{$.removeItem(y(i));if(g.removeItem){e.$broadcast("LocalStorageModule.notification.removeitem",{key:i,storageType:d.storageType})}}catch(t){e.$broadcast("LocalStorageModule.notification.error",t.message);P(i)}}}}finally{V(t)}};var D=function(t){var n=I();try{V(t);if(!k){e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED");return[]}var r=h.length;var i=[];for(var a in $){if(a.substr(0,r)===h){try{i.push(a.substr(r))}catch(t){e.$broadcast("LocalStorageModule.notification.error",t.Description);return[]}}}return i}finally{V(n)}};var E=function(t,n){var r=I();try{V(n);var i=!!h?new RegExp("^"+h):new RegExp;var a=!!t?new RegExp(t):new RegExp;if(!k&&d.defaultToCookie||d.storageType==="cookie"){if(!k){e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED")}return N()}if(!k&&!d.defaultToCookie)return false;var o=h.length;for(var s in $){if(i.test(s)&&a.test(s.substr(o))){try{S(s.substr(o))}catch(t){e.$broadcast("LocalStorageModule.notification.error",t.message);return N()}}}return true}finally{V(r)}};
1var O=function(){try{return t.navigator.cookieEnabled||"cookie"in c&&(c.cookie.length>0||(c.cookie="test").indexOf.call(c.cookie,"test")>-1)}catch(t){e.$broadcast("LocalStorageModule.notification.error",t.message);return false}}();var A=function(t,n,s,l){if(r(n)){return false}else if(o(n)||a(n)){n=u(n)}if(!O){e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED");return false}try{var f="",p=new Date,d="";if(n===null){p.setTime(p.getTime()+-1*24*60*60*1e3);f="; expires="+p.toGMTString();n=""}else if(i(s)&&s!==0){p.setTime(p.getTime()+s*24*60*60*1e3);f="; expires="+p.toGMTString()}else if(v.expiry!==0){p.setTime(p.getTime()+v.expiry*24*60*60*1e3);f="; expires="+p.toGMTString()}if(!!t){var h="; path="+v.path;if(v.domain){d="; domain="+v.domain}if(typeof l==="boolean"){if(l===true){d+="; secure"}}else if(v.secure===true){d+="; secure"}c.cookie=y(t)+"="+encodeURIComponent(n)+f+h+d}}catch(t){e.$broadcast("LocalStorageModule.notification.error",t.message);return false}return true};var M=function(t){if(!O){e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED");return false}var n=c.cookie&&c.cookie.split(";")||[];for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)===" "){i=i.substring(1,i.length)}if(i.indexOf(y(t)+"=")===0){var a=decodeURIComponent(i.substring(h.length+t.length+1,i.length));try{var o=JSON.parse(a);return typeof o==="number"?a:o}catch(e){return a}}}return null};var P=function(e){A(e,null)};var N=function(){var e=null;var t=h.length;var n=c.cookie.split(";");for(var r=0;r<n.length;r++){e=n[r];while(e.charAt(0)===" "){e=e.substring(1,e.length)}var i=e.substring(t,e.indexOf("="));P(i)}};var I=function(){return m};var V=function(e){if(e&&m!==e){m=e;k=x()}return k};var j=function(e,t,r,i,o){i=i||t;var s=T(i,o);if(s===null&&n(r)){s=r}else if(a(s)&&a(r)){s=l(s,r)}f(t).assign(e,s);return e.$watch(t,function(e){C(i,e,o)},a(e[t]))};if(k){if(t.addEventListener){t.addEventListener("storage",R,false);e.$on("$destroy",function(){t.removeEventListener("storage",R)})}else if(t.attachEvent){t.attachEvent("onstorage",R);e.$on("$destroy",function(){t.detachEvent("onstorage",R)})}}function R(n){if(!n){n=t.event}if(g.setItem){if(s(n.key)&&w(n.key)){var r=b(n.key);p(function(){e.$broadcast("LocalStorageModule.notification.changed",{key:r,newvalue:n.newValue,storageType:d.storageType})})}}}var F=function(e){var n=I();try{V(e);var r=0;var i=t[m];for(var a=0;a<i.length;a++){if(i.key(a).indexOf(h)===0){r++}}return r}finally{V(n)}};var H=function(e){h=e};return{isSupported:k,getStorageType:I,setStorageType:V,setPrefix:H,set:C,add:C,get:T,keys:D,remove:S,clearAll:E,bind:j,deriveKey:y,underiveKey:b,length:F,defaultToCookie:this.defaultToCookie,cookie:{isSupported:O,set:A,add:A,get:M,remove:P,clearAll:N}}}]})})(window,window.angular);(function(e,t,n){"use strict";t.mock={};t.mock.$BrowserProvider=function(){this.$get=function(){return new t.mock.$Browser}};t.mock.$Browser=function(){var e=this;this.isMock=true;e.$$url="http://server/";e.$$lastUrl=e.$$url;e.pollFns=[];e.$$completeOutstandingRequest=t.noop;e.$$incOutstandingRequestCount=t.noop;e.onUrlChange=function(t){e.pollFns.push(function(){if(e.$$lastUrl!==e.$$url||e.$$state!==e.$$lastState){e.$$lastUrl=e.$$url;e.$$lastState=e.$$state;t(e.$$url,e.$$state)}});return t};e.$$checkUrlChange=t.noop;e.cookieHash={};e.lastCookieHash={};e.deferredFns=[];e.deferredNextId=0;e.defer=function(t,n){n=n||0;e.deferredFns.push({time:e.defer.now+n,fn:t,id:e.deferredNextId});e.deferredFns.sort(function(e,t){return e.time-t.time});return e.deferredNextId++};e.defer.now=0;e.defer.cancel=function(r){var i;t.forEach(e.deferredFns,function(e,t){if(e.id===r)i=t});if(i!==n){e.deferredFns.splice(i,1);return true}return false};e.defer.flush=function(n){if(t.isDefined(n)){e.defer.now+=n}else{if(e.deferredFns.length){e.defer.now=e.deferredFns[e.deferredFns.length-1].time}else{throw new Error("No deferred tasks to be flushed")}}while(e.deferredFns.length&&e.deferredFns[0].time<=e.defer.now){e.deferredFns.shift().fn()}};e.$$baseHref="/";e.baseHref=function(){return this.$$baseHref}};t.mock.$Browser.prototype={poll:function e(){t.forEach(this.pollFns,function(e){e()})},addPollFn:function(e){this.pollFns.push(e);return e},url:function(e,n,r){if(t.isUndefined(r)){r=null}if(e){this.$$url=e;this.$$state=t.copy(r);return this}return this.$$url},state:function(){return this.$$state},cookies:function(e,n){if(e){if(t.isUndefined(n)){delete this.cookieHash[e]}else{if(t.isString(n)&&n.length<=4096){this.cookieHash[e]=n}}}else{if(!t.equals(this.cookieHash,this.lastCookieHash)){this.lastCookieHash=t.copy(this.cookieHash);this.cookieHash=t.copy(this.cookieHash)}return this.cookieHash}},notifyWhenNoOutstandingRequests:function(e){e()}};t.mock.$ExceptionHandlerProvider=function(){var e;this.mode=function(t){switch(t){case"log":case"rethrow":var n=[];e=function(e){if(arguments.length==1){n.push(e)}else{n.push([].slice.call(arguments,0))}if(t==="rethrow"){throw e}};e.errors=n;break;default:throw new Error("Unknown mode '"+t+"', only 'log'/'rethrow' modes are allowed!")}};this.$get=function(){return e};this.mode("rethrow")};t.mock.$LogProvider=function(){var e=true;function n(e,t,n){return e.concat(Array.prototype.slice.call(t,n))}this.debugEnabled=function(n){if(t.isDefined(n)){e=n;return this}else{return e}};this.$get=function(){var r={log:function(){r.log.logs.push(n([],arguments,0))},warn:function(){r.warn.logs.push(n([],arguments,0))},info:function(){r.info.logs.push(n([],arguments,0))},error:function(){r.error.logs.push(n([],arguments,0))},debug:function(){if(e){r.debug.logs.push(n([],arguments,0))}}};r.reset=function(){r.log.logs=[];r.info.logs=[];r.warn.logs=[];r.error.logs=[];r.debug.logs=[]};r.assertEmpty=function(){var e=[];t.forEach(["error","warn","info","log","debug"],function(n){t.forEach(r[n].logs,function(r){t.forEach(r,function(t){e.push("MOCK $log ("+n+"): "+String(t)+"\n"+(t.stack||""))})})});if(e.length){e.unshift("Expected $log to be empty! Either a message was logged unexpectedly, or "+"an expected log message was not checked and removed:");e.push("");throw new Error(e.join("\n---------\n"))}};r.reset();return r}};t.mock.$IntervalProvider=function(){this.$get=["$browser","$rootScope","$q","$$q",function(e,r,i,a){var o=[],s=0,l=0;var u=function(u,c,f,p){var d=0,h=t.isDefined(p)&&!p,v=(h?a:i).defer(),g=v.promise;f=t.isDefined(f)?f:0;g.then(null,null,u);g.$$intervalId=s;function m(){v.notify(d++);if(f>0&&d>=f){var i;v.resolve(d);t.forEach(o,function(e,t){if(e.id===g.$$intervalId)i=t});if(i!==n){o.splice(i,1)}}if(h){e.defer.flush()}else{r.$apply()}}o.push({nextTime:l+c,delay:c,fn:m,id:s,deferred:v});o.sort(function(e,t){return e.nextTime-t.nextTime});s++;return g};u.cancel=function(e){if(!e)return false;var r;t.forEach(o,function(t,n){if(t.id===e.$$intervalId)r=n});if(r!==n){o[r].deferred.reject("canceled");o.splice(r,1);return true}return false};u.flush=function(e){l+=e;while(o.length&&o[0].nextTime<=l){var t=o[0];t.fn();t.nextTime+=t.delay;o.sort(function(e,t){return e.nextTime-t.nextTime})}return e};return u}]};var r=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;function i(e){var t;if(t=e.match(r)){var n=new Date(0),i=0,o=0;if(t[9]){i=a(t[9]+t[10]);o=a(t[9]+t[11])}n.setUTCFullYear(a(t[1]),a(t[2])-1,a(t[3]));n.setUTCHours(a(t[4]||0)-i,a(t[5]||0)-o,a(t[6]||0),a(t[7]||0));return n}return e}function a(e){return parseInt(e,10)}function o(e,t,n){var r="";if(e<0){r="-";e=-e}e=""+e;while(e.length<t)e="0"+e;if(n)e=e.substr(e.length-t);return r+e}t.mock.TzDate=function(e,n){var r=new Date(0);if(t.isString(n)){var a=n;r.origDate=i(n);n=r.origDate.getTime();if(isNaN(n))throw{name:"Illegal Argument",message:"Arg '"+a+"' passed into TzDate constructor is not a valid date string"}}else{r.origDate=new Date(n)}var s=new Date(n).getTimezoneOffset();r.offsetDiff=s*60*1e3-e*1e3*60*60;r.date=new Date(n+r.offsetDiff);r.getTime=function(){return r.date.getTime()-r.offsetDiff};r.toLocaleDateString=function(){return r.date.toLocaleDateString()};r.getFullYear=function(){return r.date.getFullYear()};r.getMonth=function(){return r.date.getMonth()};r.getDate=function(){return r.date.getDate()};r.getHours=function(){return r.date.getHours()};r.getMinutes=function(){return r.date.getMinutes()};r.getSeconds=function(){return r.date.getSeconds()};r.getMilliseconds=function(){return r.date.getMilliseconds()};r.getTimezoneOffset=function(){return e*60};r.getUTCFullYear=function(){return r.origDate.getUTCFullYear()};r.getUTCMonth=function(){return r.origDate.getUTCMonth()};r.getUTCDate=function(){return r.origDate.getUTCDate()};r.getUTCHours=function(){return r.origDate.getUTCHours()};r.getUTCMinutes=function(){return r.origDate.getUTCMinutes()};r.getUTCSeconds=function(){return r.origDate.getUTCSeconds()};r.getUTCMilliseconds=function(){return r.origDate.getUTCMilliseconds()};r.getDay=function(){return r.date.getDay()};if(r.toISOString){r.toISOString=function(){return o(r.origDate.getUTCFullYear(),4)+"-"+o(r.origDate.getUTCMonth()+1,2)+"-"+o(r.origDate.getUTCDate(),2)+"T"+o(r.origDate.getUTCHours(),2)+":"+o(r.origDate.getUTCMinutes(),2)+":"+o(r.origDate.getUTCSeconds(),2)+"."+o(r.origDate.getUTCMilliseconds(),3)+"Z"}}var l=["getUTCDay","getYear","setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds","setTime","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setYear","toDateString","toGMTString","toJSON","toLocaleFormat","toLocaleStr
1ing","toLocaleTimeString","toSource","toString","toTimeString","toUTCString","valueOf"];t.forEach(l,function(e){r[e]=function(){throw new Error("Method '"+e+"' is not implemented in the TzDate mock")}});return r};t.mock.TzDate.prototype=Date.prototype;t.mock.animate=t.module("ngAnimateMock",["ng"]).config(["$provide",function(e){var n=[];e.value("$$animateReflow",function(e){var t=n.length;n.push(e);return function e(){n.splice(t,1)}});e.decorator("$animate",["$delegate","$$asyncCallback","$timeout","$browser","$rootScope","$$rAF",function(e,r,i,a,o,s){var l={queue:[],cancel:e.cancel,enabled:e.enabled,triggerCallbackEvents:function(){r.flush()},triggerCallbackPromise:function(){i.flush(0)},triggerCallbacks:function(){this.triggerCallbackEvents();this.triggerCallbackPromise()},triggerReflow:function(){t.forEach(n,function(e){e()});n=[]},flush:function(){o.$digest();var e,t=false;do{e=false;if(n.length){e=t=true;this.triggerReflow()}if(s.queue.length){e=t=true;s.flush()}if(r.queue.length){e=t=true;this.triggerCallbackEvents()}if(u()){var i=u();this.triggerCallbackPromise();var l=u();if(l<i){e=t=true}}}while(e);
1if(!t){throw new Error("No pending animations ready to be closed or flushed")}o.$digest();function u(){return a.deferredFns.length}}};t.forEach(["animate","enter","leave","move","addClass","removeClass","setClass"],function(t){l[t]=function(){l.queue.push({event:t,element:arguments[0],options:arguments[arguments.length-1],args:arguments});return e[t].apply(e,arguments)}});return l}])}]);t.mock.dump=function(e){return n(e);function n(e){var i;if(t.isElement(e)){e=t.element(e);i=t.element("<div></div>");t.forEach(e,function(e){i.append(t.element(e).clone())});i=i.html()}else if(t.isArray(e)){i=[];t.forEach(e,function(e){i.push(n(e))});i="[ "+i.join(", ")+" ]"}else if(t.isObject(e)){if(t.isFunction(e.$eval)&&t.isFunction(e.$apply)){i=r(e)}else if(e instanceof Error){i=e.stack||""+e.name+": "+e.message}else{i=t.toJson(e,true)}}else{i=String(e)}return i}function r(e,n){n=n||"  ";var i=[n+"Scope("+e.$id+"): {"];for(var a in e){if(Object.prototype.hasOwnProperty.call(e,a)&&!a.match(/^(\$|this)/)){i.push("  "+a+": "+t.toJson(e[a]))}}var o=e.$$childHead;while(o){i.push(r(o,n+"  "));o=o.$$nextSibling}i.push("}");return i.join("\n"+n)}};t.mock.$HttpBackendProvider=function(){this.$get=["$rootScope","$timeout",s]};function s(e,r,i,a){var o=[],s=[],u=[],f=t.bind(u,u.push),p=t.copy;function d(e,n,r,i){if(t.isFunction(e))return e;return function(){return t.isNumber(e)?[e,n,r,i]:[200,e,n,r]}}function h(e,l,d,h,v,g,m){var $=new c,y=s[0],b=false;function w(e){return t.isString(e)||t.isFunction(e)||e instanceof RegExp?e:t.toJson(e)}function x(t){if(!a&&g){g.then?g.then(o):r(o,g)}return i;function i(){var n=t.response(e,l,d,v);$.$$respHeaders=n[2];h(p(n[0]),p(n[1]),$.getAllResponseHeaders(),p(n[3]||""))}function o(){for(var e=0,t=u.length;e<t;e++){if(u[e]===i){u.splice(e,1);h(-1,n,"");break}}}}if(y&&y.match(e,l)){if(!y.matchData(d))throw new Error("Expected "+y+" with different data\n"+"EXPECTED: "+w(y.data)+"\nGOT:      "+d);if(!y.matchHeaders(v))throw new Error("Expected "+y+" with different headers\n"+"EXPECTED: "+w(y.headers)+"\nGOT:      "+w(v));s.shift();if(y.response){u.push(x(y));return}b=true}var k=-1,C;while(C=o[++k]){if(C.match(e,l,d,v||{})){if(C.response){(a?a.defer:f)(x(C))}else if(C.passThrough){i(e,l,d,h,v,g,m)}else throw new Error("No response defined !");return}}throw b?new Error("No response defined !"):new Error("Unexpected request: "+e+" "+l+"\n"+(y?"Expected "+y:"No more request expected"))}h.when=function(e,t,r,i){var s=new l(e,t,r,i),u={respond:function(e,t,r,i){s.passThrough=n;s.response=d(e,t,r,i);return u}};if(a){u.passThrough=function(){s.response=n;s.passThrough=true;return u}}o.push(s);return u};v("when");h.expect=function(e,t,n,r){var i=new l(e,t,n,r),a={respond:function(e,t,n,r){i.response=d(e,t,n,r);return a}};s.push(i);return a};v("expect");h.flush=function(n,r){if(r!==false)e.$digest();if(!u.length)throw new Error("No pending request to flush !");if(t.isDefined(n)&&n!==null){while(n--){if(!u.length)throw new Error("No more pending request to flush !");u.shift()()}}else{while(u.length){u.shift()()}}h.verifyNoOutstandingExpectation(r)};h.verifyNoOutstandingExpectation=function(t){if(t!==false)e.$digest();if(s.length){throw new Error("Unsatisfied requests: "+s.join(", "))}};h.verifyNoOutstandingRequest=function(){if(u.length){throw new Error("Unflushed requests: "+u.length)}};h.resetExpectations=function(){s.length=0;u.length=0};return h;function v(e){t.forEach(["GET","DELETE","JSONP","HEAD"],function(t){h[e+t]=function(r,i){return h[e](t,r,n,i)}});t.forEach(["PUT","POST","PATCH"],function(t){h[e+t]=function(n,r,i){return h[e](t,n,r,i)}})}}function l(e,n,r,i){this.data=r;this.headers=i;this.match=function(n,r,i,a){if(e!=n)return false;if(!this.matchUrl(r))return false;if(t.isDefined(i)&&!this.matchData(i))return false;if(t.isDefined(a)&&!this.matchHeaders(a))return false;return true};this.matchUrl=function(e){if(!n)return true;if(t.isFunction(n.test))return n.test(e);if(t.isFunction(n))return n(e);return n==e};this.matchHeaders=function(e){if(t.isUndefined(i))return true;if(t.isFunction(i))return i(e);return t.equals(i,e)};this.matchData=function(e){if(t.isUndefined(r))return true;if(r&&t.isFunction(r.test))return r.test(e);
1if(r&&t.isFunction(r))return r(e);if(r&&!t.isString(r)){return t.equals(t.fromJson(t.toJson(r)),t.fromJson(e))}return r==e};this.toString=function(){return e+" "+n}}function u(){return new c}function c(){c.$$lastInstance=this;this.open=function(e,t,n){this.$$method=e;this.$$url=t;this.$$async=n;this.$$reqHeaders={};this.$$respHeaders={}};this.send=function(e){this.$$data=e};this.setRequestHeader=function(e,t){this.$$reqHeaders[e]=t};this.getResponseHeader=function(e){var r=this.$$respHeaders[e];if(r)return r;e=t.lowercase(e);r=this.$$respHeaders[e];if(r)return r;r=n;t.forEach(this.$$respHeaders,function(n,i){if(!r&&t.lowercase(i)==e)r=n});return r};this.getAllResponseHeaders=function(){var e=[];t.forEach(this.$$respHeaders,function(t,n){e.push(n+": "+t)});return e.join("\n")};this.abort=t.noop}t.mock.$TimeoutDecorator=["$delegate","$browser",function(e,n){e.flush=function(e){n.defer.flush(e)};e.verifyNoPendingTasks=function(){if(n.deferredFns.length){throw new Error("Deferred tasks to flush ("+n.deferredFns.length+"): "+r(n.deferredFns))}};function r(e){var n=[];t.forEach(e,function(e){n.push("{id: "+e.id+", "+"time: "+e.time+"}")});return n.join(", ")}return e}];t.mock.$RAFDecorator=["$delegate",function(e){var t,n=function(e){var n=t.length;t.push(e);return function(){t.splice(n,1)}};t=n.queue=[];n.supported=e.supported;n.flush=function(){if(t.length===0){throw new Error("No rAF callbacks present")}var e=t.length;for(var n=0;n<e;n++){t[n]()}t.length=0};return n}];t.mock.$AsyncCallbackDecorator=["$delegate",function(e){var n,r=function(e){n.push(e)};n=r.queue=[];r.flush=function(){t.forEach(n,function(e){e()});n.length=0};return r}];t.mock.$RootElementProvider=function(){this.$get=function(){return t.element("<div ng-app></div>")}};t.mock.$ControllerDecorator=["$delegate",function(e){return function(n,r,i,a){if(i&&typeof i==="object"){var o=e(n,r,true,a);t.extend(o.instance,i);return o()}return e(n,r,i,a)}}];t.module("ngMock",["ng"]).provider({$browser:t.mock.$BrowserProvider,$exceptionHandler:t.mock.$ExceptionHandlerProvider,$log:t.mock.$LogProvider,$interval:t.mock.$IntervalProvider,$httpBackend:t.mock.$HttpBackendProvider,$rootElement:t.mock.$RootElementProvider}).config(["$provide",function(e){e.decorator("$timeout",t.mock.$TimeoutDecorator);e.decorator("$$rAF",t.mock.$RAFDecorator);e.decorator("$$asyncCallback",t.mock.$AsyncCallbackDecorator);e.decorator("$rootScope",t.mock.$RootScopeDecorator);e.decorator("$controller",t.mock.$ControllerDecorator)}]);t.module("ngMockE2E",["ng"]).config(["$provide",function(e){e.decorator("$httpBackend",t.mock.e2e.$httpBackendDecorator)}]);t.mock.e2e={};t.mock.e2e.$httpBackendDecorator=["$rootScope","$timeout","$delegate","$browser",s];t.mock.$RootScopeDecorator=["$delegate",function(e){var t=Object.getPrototypeOf(e);t.$countChildScopes=n;t.$countWatchers=r;return e;function n(){var e=0;var t=[this.$$childHead];var n;while(t.length){n=t.shift();while(n){e+=1;t.push(n.$$childHead);n=n.$$nextSibling}}return e}function r(){var e=this.$$watchers?this.$$watchers.length:0;var t=[this.$$childHead];var n;while(t.length){n=t.shift();while(n){e+=n.$$watchers?n.$$watchers.length:0;t.push(n.$$childHead);n=n.$$nextSibling}}return e}}];if(e.jasmine||e.mocha){var f=null,p=[],d=function(){return!!f};t.mock.$$annotate=t.injector.$$annotate;t.injector.$$annotate=function(e){if(typeof e==="function"&&!e.$inject){p.push(e)}return t.mock.$$annotate.apply(this,arguments)};(e.beforeEach||e.setup)(function(){p=[];f=this});(e.afterEach||e.teardown)(function(){var e=f.$injector;p.forEach(function(e){delete e.$inject});t.forEach(f.$modules,function(e){if(e&&e.$$hashKey){e.$$hashKey=n}});f.$injector=null;f.$modules=null;f=null;if(e){e.get("$rootElement").off();var r=e.get("$browser");if(r.pollFns)r.pollFns.length=0}t.forEach(t.element.fragments,function(e,n){delete t.element.fragments[n]});c.$$lastInstance=null;t.forEach(t.callbacks,function(e,n){delete t.callbacks[n]});t.callbacks.counter=0});e.module=t.mock.module=function(){var e=Array.prototype.slice.call(arguments,0);return d()?n():n;function n(){if(f.$injector){throw new Error("Injector already created, can not register a module!")}else{var n=f.$modules||(f.$modules=[]);t.forEach(e,function(e){if(t.isObject(e)&&!t.isArray(e)){n.push(function(n){t.forEach(e,function(e,t){n.value(t,e)})})}else{n.push(e)}})}}};var h=function(e,t){this.message=e.message;this.name=e.name;if(e.line)this.line=e.line;if(e.sourceId)this.sourceId=e.sourceId;if(e.stack&&t)this.stack=e.stack+"\n"+t.stack;
1if(e.stackArray)this.stackArray=e.stackArray};h.prototype.toString=Error.prototype.toString;e.inject=t.mock.inject=function(){var e=Array.prototype.slice.call(arguments,0);var n=new Error("Declaration Location");return d()?r.call(f):r;function r(){var r=f.$modules||[];var i=!!f.$injectorStrict;r.unshift("ngMock");r.unshift("ng");var a=f.$injector;if(!a){if(i){t.forEach(r,function(e){if(typeof e==="function"){t.injector.$$annotate(e)}})}a=f.$injector=t.injector(r,i);f.$injectorStrict=i}for(var o=0,s=e.length;o<s;o++){if(f.$injectorStrict){a.annotate(e[o])}try{a.invoke(e[o]||t.noop,this)}catch(e){if(e.stack&&n){throw new h(e,n)}throw e}finally{n=null}}}};t.mock.inject.strictDi=function(e){e=arguments.length?!!e:true;return d()?t():t;function t(){if(e!==f.$injectorStrict){if(f.$injector){throw new Error("Injector already created, can not modify strict annotations")}else{f.$injectorStrict=e}}}}}})(window,window.angular);(function(e,t,n){"use strict";var r=t.$$minErr("$sanitize");function i(){this.$get=["$$sanitizeUri",function(e){return function(t){var n=[];A(t,I(n,function(t,n){return!/^unsafe/.test(e(t,n))}));return n.join("")}}]}function a(e){var n=[];var r=I(n,t.noop);r.chars(e);return n.join("")}var o=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,s=/^<\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,u=/^</,c=/^<\//,f=/<!--(.*?)-->/g,p=/<!DOCTYPE([^>]*?)>/i,d=/<!\[CDATA\[(.*?)]]>/g,h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=/([^\#-~| |!])/g;var g=O("area,br,col,hr,img,wbr");var m=O("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$=O("rp,rt"),y=t.extend({},$,m);var b=t.extend({},m,O("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,script,section,table,ul"));var w=t.extend({},$,O("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"));var x=O("animate,animateColor,animateMotion,animateTransform,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,set,"+"stop,svg,switch,text,title,tspan,use");var k=O("script,style");var C=t.extend({},g,b,w,y,x);var T=O("background,cite,href,longdesc,src,usemap,xlink:href");var S=O("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,target,title,type,"+"valign,value,vspace,width");var D=O("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,"+"attributeName,attributeType,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
1-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");var E=t.extend({},T,D,S);function O(e){var t={},n=e.split(","),r;for(r=0;r<n.length;r++)t[n[r]]=true;return t}function A(e,n){if(typeof e!=="string"){if(e===null||typeof e==="undefined"){e=""}else{e=""+e}}var i,a,h,v=[],m=e,$;v.last=function(){return v[v.length-1]};while(e){$="";a=true;if(!v.last()||!k[v.last()]){if(e.indexOf("\x3c!--")===0){i=e.indexOf("--",4);if(i>=0&&e.lastIndexOf("--\x3e",i)===i){if(n.comment)n.comment(e.substring(4,i));e=e.substring(i+3);a=false}}else if(p.test(e)){h=e.match(p);if(h){e=e.replace(h[0],"");a=false}}else if(c.test(e)){h=e.match(s);if(h){e=e.substring(h[0].length);h[0].replace(s,C);a=false}}else if(u.test(e)){h=e.match(o);if(h){if(h[4]){e=e.substring(h[0].length);h[0].replace(o,x)}a=false}else{$+="<";e=e.substring(1)}}if(a){i=e.indexOf("<");$+=i<0?e:e.substring(0,i);e=i<0?"":e.substring(i);if(n.chars)n.chars(P($))}}else{e=e.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+v.last()+"[^>]*>","i"),function(e,t){t=t.replace(f,"$1").replace(d,"$1");if(n.chars)n.chars(P(t));return""});C("",v.last())}if(e==m){throw r("badparse","The sanitizer was unable to parse the following block "+"of html: {0}",e)}m=e}C();function x(e,r,i,a){r=t.lowercase(r);if(b[r]){while(v.last()&&w[v.last()]){C("",v.last())}}if(y[r]&&v.last()==r){C("",r)}a=g[r]||!!a;if(!a)v.push(r);var o={};i.replace(l,function(e,t,n,r,i){var a=n||r||i||"";o[t]=P(a)});if(n.start)n.start(r,o,a)}function C(e,r){var i=0,a;r=t.lowercase(r);if(r)for(i=v.length-1;i>=0;i--)if(v[i]==r)break;
1if(i>=0){for(a=v.length-1;a>=i;a--)if(n.end)n.end(v[a]);v.length=i}}}var M=document.createElement("pre");function P(e){if(!e){return""}M.innerHTML=e.replace(/</g,"&lt;");return M.textContent}function N(e){return e.replace(/&/g,"&amp;").replace(h,function(e){var t=e.charCodeAt(0);var n=e.charCodeAt(1);return"&#"+((t-55296)*1024+(n-56320)+65536)+";"}).replace(v,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function I(e,n){var r=false;var i=t.bind(e,e.push);return{start:function(e,a,o){e=t.lowercase(e);if(!r&&k[e]){r=e}if(!r&&C[e]===true){i("<");i(e);t.forEach(a,function(r,a){var o=t.lowercase(a);var s=e==="img"&&o==="src"||o==="background";if(E[o]===true&&(T[o]!==true||n(r,s))){i(" ");i(a);i('="');i(N(r));i('"')}});i(o?"/>":">")}},end:function(e){e=t.lowercase(e);if(!r&&C[e]===true){i("</");i(e);i(">")}if(e==r){r=false}},chars:function(e){if(!r){i(N(e))}}}}t.module("ngSanitize",[]).provider("$sanitize",i);t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"”’]/,r=/^mailto:/;return function(i,o){if(!i)return i;var s;var l=i;var u=[];var c;var f;while(s=l.match(n)){c=s[0];if(!s[2]&&!s[4]){c=(s[3]?"http://":"mailto:")+c}f=s.index;p(l.substr(0,f));d(c,s[0].replace(r,""));l=l.substring(f+s[0].length)}p(l);return e(u.join(""));function p(e){if(!e){return}u.push(a(e))}function d(e,n){u.push("<a ");if(t.isDefined(o)){u.push('target="',o,'" ')}u.push('href="',e.replace(/"/g,"&quot;"),'">');p(n);u.push("</a>")}}}])})(window,window.angular);!function(e){"use strict";e.module("angulartics.google.analytics",["angulartics"]).config(["$analyticsProvider",function(t){t.settings.trackRelativePath=!0,t.settings.ga={additionalAccountNames:void 0,userId:null},t.registerPageTrack(function(n){window._gaq&&(_gaq.push(["_trackPageview",n]),e.forEach(t.settings.ga.additionalAccountNames,function(e){_gaq.push([e+"._trackPageview",n])})),window.ga&&(t.settings.ga.userId&&ga("set","&uid",t.settings.ga.userId),ga("send","pageview",n),e.forEach(t.settings.ga.additionalAccountNames,function(e){ga(e+".send","pageview",n)}))}),t.registerEventTrack(function(n,r){if(r&&r.category||(r=r||{},r.category="Event"),r.value){var i=parseInt(r.value,10);r.value=isNaN(i)?0:i}if(window.ga){for(var a={eventCategory:r.category,eventAction:n,eventLabel:r.label,eventValue:r.value,nonInteraction:r.noninteraction,page:r.page||window.location.hash.substring(1),userId:t.settings.ga.userId},o=1;20>=o;o++)r["dimension"+o.toString()]&&(a["dimension"+o.toString()]=r["dimension"+o.toString()]),r["metric"+o.toString()]&&(a["metric"+o.toString()]=r["metric"+o.toString()]);ga("send","event",a),e.forEach(t.settings.ga.additionalAccountNames,function(e){ga(e+".send","event",a)})}else window._gaq&&_gaq.push(["_trackEvent",r.category,n,r.label,r.value,r.noninteraction])}),t.registerSetUsername(function(e){t.settings.ga.userId=e})}])}(angular);!function(e,t){"use strict";var n=window.angulartics||(window.angulartics={});n.waitForVendorCount=0,n.waitForVendorApi=function(e,t,r,i,a){a||n.waitForVendorCount++,i||(i=r,r=void 0),!Object.prototype.hasOwnProperty.call(window,e)||void 0!==r&&void 0===window[e][r]?setTimeout(function(){n.waitForVendorApi(e,t,r,i,!0)},t):(n.waitForVendorCount--,i(window[e]))},e.module("angulartics",[]).provider("$analytics",function(){var t={pageTracking:{autoTrackFirstPage:!0,autoTrackVirtualPages:!0,trackRelativePath:!1,autoBasePath:!1,basePath:""},eventTracking:{},bufferFlushDelay:1e3,developerMode:!1},r=["pageTrack","eventTrack","setAlias","setUsername","setUserProperties","setUserPropertiesOnce","setSuperProperties","setSuperPropertiesOnce"],i={},a={},o=function(e){return function(){n.waitForVendorCount&&(i[e]||(i[e]=[]),i[e].push(arguments))}},s=function(t,n){return a[t]||(a[t]=[]),a[t].push(n),function(){var n=arguments;e.forEach(a[t],function(e){e.apply(this,n)},this)}},l={settings:t},u=function(e,t){t?setTimeout(e,t):e()},c={$get:function(){return l},api:l,settings:t,virtualPageviews:function(e){this.settings.pageTracking.autoTrackVirtualPages=e},firstPageview:function(e){this.settings.pageTracking.autoTrackFirstPage=e},withBase:function(t){this.settings.pageTracking.basePath=t?e.element(document).find("base").attr("href"):""},withAutoBase:function(e){this.settings.pageTracking.autoBasePath=e},developerMode:function(e){this.settings.developerMode=e}},f=function(n,r){l[n]=s(n,r);var a=t[n],o=a?a.bufferFlushDelay:null,c=null!==o?o:t.bufferFlushDelay;e.forEach(i[n],function(e,t){u(function(){r.apply(this,e)},t*c)})},p=function(e){return e.replace(/^./,function(e){return e.toUpperCase()})},d=function(e){var t="register"+p(e);c[t]=function(t){f(e,t)},l[e]=s(e,o(e))};return e.forEach(r,d),c}
1).run(["$rootScope","$window","$analytics","$injector",function(t,n,r,i){r.settings.pageTracking.autoTrackFirstPage&&i.invoke(["$location",function(e){var t=!0;if(i.has("$route")){var a=i.get("$route");for(var o in a.routes){t=!1;break}}else if(i.has("$state")){var s=i.get("$state");for(var l in s.get()){t=!1;break}}if(t)if(r.settings.pageTracking.autoBasePath&&(r.settings.pageTracking.basePath=n.location.pathname),r.settings.pageTracking.trackRelativePath){var u=r.settings.pageTracking.basePath+e.url();r.pageTrack(u,e)}else r.pageTrack(e.absUrl(),e)}]),r.settings.pageTracking.autoTrackVirtualPages&&i.invoke(["$location",function(e){r.settings.pageTracking.autoBasePath&&(r.settings.pageTracking.basePath=n.location.pathname+"#"),i.has("$route")&&t.$on("$routeChangeSuccess",function(t,n){if(!n||!(n.$$route||n).redirectTo){var i=r.settings.pageTracking.basePath+e.url();r.pageTrack(i,e)}}),i.has("$state")&&t.$on("$stateChangeSuccess",function(t,n){var i=r.settings.pageTracking.basePath+e.url();r.pageTrack(i,e)})}]),r.settings.developerMode&&e.forEach(r,function(e,t){"function"==typeof e&&(r[t]=function(){})})}]).directive("analyticsOn",["$analytics",function(t){function n(e){return["a:","button:","button:button","button:submit","input:button","input:submit"].indexOf(e.tagName.toLowerCase()+":"+(e.type||""))>=0}function r(e){return n(e),"click"}function i(e){return n(e)?e.innerText||e.value:e.id||e.name||e.tagName}function a(e){return"analytics"===e.substr(0,9)&&-1===["On","Event","If","Properties","EventType"].indexOf(e.substr(9))}function o(e){var t=e.slice(9);return"undefined"!=typeof t&&null!==t&&t.length>0?t.substring(0,1).toLowerCase()+t.substring(1):t}return{restrict:"A",link:function(n,s,l){var u=l.analyticsOn||r(s[0]),c={};e.forEach(l.$attr,function(e,t){a(t)&&(c[o(t)]=l[t],l.$observe(t,function(e){c[o(t)]=e}))}),e.element(s[0]).bind(u,function(r){var a=l.analyticsEvent||i(s[0]);c.eventType=r.type,(!l.analyticsIf||n.$eval(l.analyticsIf))&&(l.analyticsProperties&&e.extend(c,n.$eval(l.analyticsProperties)),t.eventTrack(a,c))})}}}])}(angular);if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]==1&&t[1]==9&&t[2]<1||t[0]>3){throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}}(jQuery);+function(e){"use strict";function t(){var e=document.createElement("bootstrap");var t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t){if(e.style[n]!==undefined){return{end:t[n]}}}return false}e.fn.emulateTransitionEnd=function(t){var n=false;var r=this;e(this).one("bsTransitionEnd",function(){n=true});var i=function(){if(!n)e(r).trigger(e.support.transition.end)};setTimeout(i,t);return this};e(function(){e.support.transition=t();if(!e.support.transition)return;e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}})}(jQuery);+function(e){"use strict";var t='[data-dismiss="alert"]';var n=function(n){e(n).on("click",t,this.close)};n.VERSION="3.3.7";n.TRANSITION_DURATION=150;n.prototype.close=function(t){var r=e(this);var i=r.attr("data-target");if(!i){i=r.attr("href");i=i&&i.replace(/.*(?=#[^\s]*$)/,"")}var a=e(i==="#"?[]:i);if(t)t.preventDefault();if(!a.length){a=r.closest(".alert")}a.trigger(t=e.Event("close.bs.alert"));if(t.isDefaultPrevented())return;a.removeClass("in");function o(){a.detach().trigger("closed.bs.alert").remove()}e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o()};function r(t){return this.each(function(){var r=e(this);var i=r.data("bs.alert");if(!i)r.data("bs.alert",i=new n(this));if(typeof t=="string")i[t].call(r)})}var i=e.fn.alert;e.fn.alert=r;e.fn.alert.Constructor=n;e.fn.alert.noConflict=function(){e.fn.alert=i;return this};
vendor: 10,706 bytes, line 1
1e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery);+function(e){"use strict";var t=function(n,r){this.$element=e(n);this.options=e.extend({},t.DEFAULTS,r);this.isLoading=false};t.VERSION="3.3.7";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var n="disabled";var r=this.$element;var i=r.is("input")?"val":"html";var a=r.data();t+="Text";if(a.resetText==null)r.data("resetText",r[i]());setTimeout(e.proxy(function(){r[i](a[t]==null?this.options[t]:a[t]);if(t=="loadingText"){this.isLoading=true;r.addClass(n).attr(n,n).prop(n,true)}else if(this.isLoading){this.isLoading=false;r.removeClass(n).removeAttr(n).prop(n,false)}},this),0)};t.prototype.toggle=function(){var e=true;var t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");if(n.prop("type")=="radio"){if(n.prop("checked"))e=false;t.find(".active").removeClass("active");this.$element.addClass("active")}else if(n.prop("type")=="checkbox"){if(n.prop("checked")!==this.$element.hasClass("active"))e=false;this.$element.toggleClass("active")}n.prop("checked",this.$element.hasClass("active"));if(e)n.trigger("change")}else{this.$element.attr("aria-pressed",!this.$element.hasClass("active"));this.$element.toggleClass("active")}};function n(n){return this.each(function(){var r=e(this);var i=r.data("bs.button");var a=typeof n=="object"&&n;if(!i)r.data("bs.button",i=new t(this,a));if(n=="toggle")i.toggle();else if(n)i.setState(n)})}var r=e.fn.button;e.fn.button=n;e.fn.button.Constructor=t;e.fn.button.noConflict=function(){e.fn.button=r;return this};e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle");if(!e(t.target).is('input[type="radio"], input[type="checkbox"]')){t.preventDefault();if(r.is("input,button"))r.trigger("focus");else r.find("input:visible,button:visible").first().trigger("focus")}}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(e){"use strict";var t=function(t,n){this.$element=e(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=n;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this));this.options.pause=="hover"&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};t.VERSION="3.3.7";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:true,keyboard:true};t.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return;switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()};t.prototype.cycle=function(t){t||(this.paused=false);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval));return this};t.prototype.getItemIndex=function(e){this.$items=e.parent().children(".item");return this.$items.index(e||this.$active)};t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);var r=e=="prev"&&n===0||e=="next"&&n==this.$items.length-1;if(r&&!this.options.wrap)return t;var i=e=="prev"?-1:1;var a=(n+i)%this.$items.length;return this.$items.eq(a)};t.prototype.to=function(e){var t=this;var n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(e>this.$items.length-1||e<0)return;if(this.sliding)return this.$element.one("slid.bs.carousel",function(){t.to(e)});if(n==e)return this.pause().cycle();return this.slide(e>n?"next":"prev",this.$items.eq(e))};t.prototype.pause=function(t){t||(this.paused=true);if(this.$element.find(".next, .prev").length&&e.support.transition){this.$element.trigger(e.support.transition.end);this.cycle(true)}this.interval=clearInterval(this.interval);return this};t.prototype.next=function(){if(this.sliding)return;return this.slide("next")};t.prototype.prev=function(){if(this.sliding)return;return this.slide("prev")};t.prototype.slide=function(n,r){var i=this.$element.find(".item.active");var a=r||this.getItemForDirection(n,i);var o=this.interval;var s=n=="next"?"left":"right";var l=this;if(a.hasClass("active"))return this.sliding=false;var u=a[0];var c=e.Event("slide.bs.carousel",{relatedTarget:u,direction:s});this.$element.trigger(c);if(c.isDefaultPrevented())return;this.sliding=true;o&&this.pause();if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=e(this.$indicators.children()[this.getItemIndex(a)]);f&&f.addClass("active")}var p=e.Event("slid.bs.carousel",{relatedTarget:u,direction:s});if(e.support.transition&&this.$element.hasClass("slide")){a.addClass(n);a[0].offsetWidth;i.addClass(s);a.addClass(s);i.one("bsTransitionEnd",function(){a.removeClass([n,s].join(" ")).addClass("active");i.removeClass(["active",s].join(" "));l.sliding=false;setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)}else{i.removeClass("active");a.addClass("active");this.sliding=false;this.$element.trigger(p)}o&&this.cycle();return this};function n(n){return this.each(function(){var r=e(this);var i=r.data("bs.carousel");var a=e.extend({},t.DEFAULTS,r.data(),typeof n=="object"&&n);var o=typeof n=="string"?n:a.slide;if(!i)r.data("bs.carousel",i=new t(this,a));if(typeof n=="number")i.to(n);else if(o)i[o]();else if(a.interval)i.pause().cycle()})}var r=e.fn.carousel;e.fn.carousel=n;e.fn.carousel.Constructor=t;e.fn.carousel.noConflict=function(){e.fn.carousel=r;return this};var i=function(t){var r;var i=e(this);var a=e(i.attr("data-target")||(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));if(!a.hasClass("carousel"))return;var o=e.extend({},a.data(),i.data());var s=i.attr("data-slide-to");if(s)o.interval=false;n.call(a,o);if(s){a.data("bs.carousel").to(s)}t.preventDefault()};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i);e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery);+function(e){"use strict";var t=function(n,r){this.$element=e(n);this.options=e.extend({},t.DEFAULTS,r);this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],'+'[data-toggle="collapse"][data-target="#'+n.id+'"]');this.transitioning=null;if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}if(this.options.toggle)this.toggle()};t.VERSION="3.3.7";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:true};t.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"};t.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var n;var i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(i&&i.length){n=i.data("bs.collapse");if(n&&n.transitioning)return}var a=e.Event("show.bs.collapse");this.$element.trigger(a);if(a.isDefaultPrevented())return;if(i&&i.length){r.call(i,"hide");n||i.data("bs.collapse",null)}var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",true);this.$trigger.removeClass("collapsed").attr("aria-expanded",true);this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[o](this.$element[0][l])};t.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var n=e.Event("hide.bs.collapse");this.$element.trigger(n);if(n.isDefaultPrevented())return;var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",false);this.$trigger.addClass("collapsed").attr("aria-expanded",false);this.transitioning=1;var i=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n);t.toggleClass("collapsed",!n).attr("aria-expanded",n)};function n(t){var n;var r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(r)}function r(n){return this.each(function(){var r=e(this);var i=r.data("bs.collapse");var a=e.extend({},t.DEFAULTS,r.data(),typeof n=="object"&&n);if(!i&&a.toggle&&/show|hide/.test(n))a.toggle=false;if(!i)r.data("bs.collapse",i=new t(this,a));if(typeof n=="string")i[n]()})}var i=e.fn.collapse;e.fn.collapse=r;e.fn.collapse.Constructor=t;e.fn.collapse.noConflict=function(){e.fn.collapse=i;return this};e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var i=e(this);if(!i.attr("data-target"))t.preventDefault();var a=n(i);var o=a.data("bs.collapse");var s=o?"toggle":i.data();r.call(a,s)})}(jQuery);+function(e){"use strict";var t=".dropdown-backdrop";var n='[data-toggle="dropdown"]';var r=function(t){e(t).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.7";function i(t){var n=t.attr("data-target");if(!n){n=t.attr("href");n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")}var r=n&&e(n);return r&&r.length?r:t.parent()}function a(r){if(r&&r.which===3)return;e(t).remove();e(n).each(function(){var t=e(this);var n=i(t);var a={relatedTarget:this};if(!n.hasClass("open"))return;if(r&&r.type=="click"&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target))return;n.trigger(r=e.Event("hide.bs.dropdown",a));if(r.isDefaultPrevented())return;t.attr("aria-expanded","false");n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",a))})}r.prototype.toggle=function(t){var n=e(this);if(n.is(".disabled, :disabled"))return;var r=i(n);var o=r.hasClass("open");a();if(!o){if("ontouchstart"in document.documentElement&&!r.closest(".
1navbar-nav").length){e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",a)}var s={relatedTarget:this};r.trigger(t=e.Event("show.bs.dropdown",s));if(t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true");r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return false};r.prototype.keydown=function(t){if(!/(38|40|27|32)/.test(t.which)||/input|textarea/i.test(t.target.tagName))return;var r=e(this);t.preventDefault();t.stopPropagation();if(r.is(".disabled, :disabled"))return;var a=i(r);var o=a.hasClass("open");if(!o&&t.which!=27||o&&t.which==27){if(t.which==27)a.find(n).trigger("focus");return r.trigger("click")}var s=" li:not(.disabled):visible a";var l=a.find(".dropdown-menu"+s);if(!l.length)return;var u=l.index(t.target);if(t.which==38&&u>0)u--;if(t.which==40&&u<l.length-1)u++;if(!~u)u=0;l.eq(u).trigger("focus")};function o(t){return this.each(function(){var n=e(this);var i=n.data("bs.dropdown");if(!i)n.data("bs.dropdown",i=new r(this));if(typeof t=="string")i[t].call(n)})}var s=e.fn.dropdown;e.fn.dropdown=o;e.fn.dropdown.Constructor=r;e.fn.dropdown.noConflict=function(){e.fn.dropdown=s;return this};e(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",n,r.prototype.toggle).on("keydown.bs.dropdown.data-api",n,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery);+function(e){"use strict";var t=function(t,n){this.options=n;this.$body=e(document.body);this.$element=e(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=false;if(this.options.remote){this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}};t.VERSION="3.3.7";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:true,keyboard:true,show:true};t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)};t.prototype.show=function(n){var r=this;var i=e.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(i);if(this.isShown||i.isDefaultPrevented())return;this.isShown=true;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){if(e(t.target).is(r.$element))r.ignoreBackdropClick=true})});this.backdrop(function(){var i=e.support.transition&&r.$element.hasClass("fade");if(!r.$element.parent().length){r.$element.appendTo(r.$body)}r.$element.show().scrollTop(0);r.adjustDialog();if(i){r.$element[0].offsetWidth}r.$element.addClass("in");r.enforceFocus();var a=e.Event("shown.bs.modal",{relatedTarget:n});i?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(a)})};t.prototype.hide=function(n){if(n)n.preventDefault();n=e.Event("hide.bs.modal");this.$element.trigger(n);if(!this.isShown||n.isDefaultPrevented())return;this.isShown=false;this.escape();this.resize();e(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");e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal()};t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){if(document!==e.target&&this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger("focus")}},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off("keydown.dismiss.bs.modal")}};t.prototype.resize=function(){if(this.isShown){e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this))}else{e(window).off("resize.bs.modal")}};t.prototype.hideModal=function(){var e=this;this.$element.hide();this.backdrop(function(){e.$body.removeClass("modal-open");e.resetAdjustments();e.resetScrollbar();e.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(n){var r=this;var i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=e.support.transition&&i;this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false;return}if(e.target!==e.currentTarget)return;this.options.backdrop=="static"?this.$element[0].focus():this.hide()},this));if(a)this.$backdrop[0].offsetWidth;this.$backdrop.addClass("in");if(!n)return;a?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){r.removeBackdrop();n&&n()};
vendor: 19,114 bytes, line 1
1e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):o()}else if(n){n()}};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";if(this.bodyIsOverflowing)this.$body.css("padding-right",e+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure";this.$body.append(e);var t=e.offsetWidth-e.clientWidth;this.$body[0].removeChild(e);return t};function n(n,r){return this.each(function(){var i=e(this);var a=i.data("bs.modal");var o=e.extend({},t.DEFAULTS,i.data(),typeof n=="object"&&n);if(!a)i.data("bs.modal",a=new t(this,o));if(typeof n=="string")a[n](r);else if(o.show)a.show(r)})}var r=e.fn.modal;e.fn.modal=n;e.fn.modal.Constructor=t;e.fn.modal.noConflict=function(){e.fn.modal=r;return this};e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=e(this);var i=r.attr("href");var a=e(r.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,""));var o=a.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},a.data(),r.data());if(r.is("a"))t.preventDefault();a.one("show.bs.modal",function(e){if(e.isDefaultPrevented())return;a.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});n.call(a,o,this)})}(jQuery);+function(e){"use strict";var t=function(e,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",e,t)};t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:true,placement:"top",selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:false,container:false,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,n,r){this.enabled=true;this.type=t;this.$element=e(n);this.options=this.getOptions(r);this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport);this.inState={click:false,hover:false,focus:false};if(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!")}var i=this.options.trigger.split(" ");for(var a=i.length;a--;){var o=i[a];if(o=="click"){this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this))}else if(o!="manual"){var s=o=="hover"?"mouseenter":"focusin";var l=o=="hover"?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this));this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){t=e.extend({},this.getDefaults(),this.$element.data(),t);if(t.delay&&typeof t.delay=="number"){t.delay={show:t.delay,hide:t.delay}}return t};t.prototype.getDelegateOptions=function(){var t={};var n=this.getDefaults();this._options&&e.each(this._options,function(e,r){if(n[e]!=r)t[e]=r});return t};t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(!n){n=new this.constructor(t.currentTarget,this.getDelegateOptions());e(t.currentTarget).data("bs."+this.type,n)}if(t instanceof e.Event){n.inState[t.type=="focusin"?"focus":"hover"]=true}if(n.tip().hasClass("in")||n.hoverState=="in"){n.hoverState="in";return}clearTimeout(n.timeout);n.hoverState="in";if(!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){if(n.hoverState=="in")n.show()},n.options.delay.show)};t.prototype.isInStateTrue=function(){for(var e in this.inState){if(this.inState[e])return true}return false};t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(!n){n=new this.constructor(t.currentTarget,this.getDelegateOptions());e(t.currentTarget).data("bs."+this.type,n)}if(t instanceof e.Event){n.inState[t.type=="focusout"?"focus":"hover"]=false}if(n.isInStateTrue())return;clearTimeout(n.timeout);n.hoverState="out";if(!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){if(n.hoverState=="out")n.hide()},n.options.delay.hide)};t.prototype.show=function(){var n=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var r=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!r)return;var i=this;var a=this.tip();var o=this.getUID(this.type);this.setContent();a.attr("id",o);this.$element.attr("aria-describedby",o);if(this.options.animation)a.addClass("fade");var s=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;var l=/\s?auto?\s?/i;var u=l.test(s);if(u)s=s.replace(l,"")||"top";a.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this);this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition();var f=a[0].offsetWidth;var p=a[0].offsetHeight;if(u){var d=s;var h=this.getPosition(this.$viewport);s=s=="bottom"&&c.bottom+p>h.bottom?"top":s=="top"&&c.top-p<h.top?"bottom":s=="right"&&c.right+f>h.width?"left":s=="left"&&c.left-f<h.left?"right":s;a.removeClass(d).addClass(s)}var v=this.getCalculatedOffset(s,c,f,p);this.applyPlacement(v,s);var g=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type);i.hoverState=null;if(e=="out")i.leave(i)};e.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",g).emulateTransitionEnd(t.TRANSITION_DURATION):g()}};t.prototype.applyPlacement=function(t,n){var r=this.tip();var i=r[0].offsetWidth;var a=r[0].offsetHeight;var o=parseInt(r.css("margin-top"),10);var s=parseInt(r.css("margin-left"),10);if(isNaN(o))o=0;if(isNaN(s))s=0;t.top+=o;t.left+=s;e.offset.setOffset(r[0],e.extend({using:function(e){r.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0);r.addClass("in");var l=r[0].offsetWidth;var u=r[0].offsetHeight;if(n=="top"&&u!=a){t.top=t.top+a-u}var c=this.getViewportAdjustedDelta(n,t,l,u);if(c.left)t.left+=c.left;else t.top+=c.top;var f=/top|bottom/.test(n);var p=f?c.left*2-i+l:c.top*2-a+u;var d=f?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(p,r[0][d],f)};t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")};t.prototype.setContent=function(){var e=this.tip();var t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t);e.removeClass("fade in top bottom left right")};t.prototype.hide=function(n){var r=this;var i=e(this.$tip);var a=e.Event("hide.bs."+this.type);function o(){if(r.hoverState!="in")i.detach();if(r.$element){r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type)}n&&n()}this.$element.trigger(a);if(a.isDefaultPrevented())return;i.removeClass("in");e.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();this.hoverState=null;return this};t.prototype.fixTitle=function(){var e=this.$element;if(e.attr("title")||typeof e.attr("data-original-title")!="string"){e.attr("data-original-title",e.attr("title")||"").attr("title","")}};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var n=t[0];var r=n.tagName=="BODY";var i=n.getBoundingClientRect();if(i.width==null){i=e.extend({},i,{width:i.right-i.left,height:i.bottom-i.top})}var a=window.SVGElement&&n instanceof window.SVGElement;var o=r?{top:0,left:0}:a?null:t.offset();var s={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()};var l=r?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},i,s,l,o)};t.prototype.getCalculatedOffset=function(e,t,n,r){return e=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-n/2}:e=="top"?{top:t.top-r,left:t.left+t.width/2-n/2}:e=="left"?{top:t.top+t.height/2-r/2,left:t.left-n}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(e,t,n,r){var i={top:0,left:0};if(!this.$viewport)return i;var a=this.options.viewport&&this.options.viewport.padding||0;var o=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-a-o.scroll;var l=t.top+a-o.scroll+r;if(s<o.top){i.top=o.top-s}else if(l>o.top+o.height){i.top=o.top+o.height-l}}else{var u=t.left-a;var c=t.left+a+n;if(u<o.left){i.left=o.left-u}else if(c>o.right){i.left=o.left+o.width-c}}return i};t.prototype.getTitle=function(){var e;var t=this.$element;var n=this.options;e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title);return e};t.prototype.getUID=function(e){do{e+=~~(Math.random()*1e6)}while(document.getElementById(e));return e};t.prototype.tip=function(){if(!this.$tip){this.$tip=e(this.options.template);if(this.$tip.length!=1){throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")}}return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=true};t.prototype.disable=function(){this.enabled=false};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var n=this;if(t){n=e(t.currentTarget).data("bs."+this.type);if(!n){n=new this.constructor(t.currentTarget,this.getDelegateOptions());e(t.currentTarget).data("bs."+this.type,n)}}if(t){n.inState.click=!n.inState.click;if(n.isInStateTrue())n.enter(n);else n.leave(n)}else{n.tip().hasClass("in")?n.leave(n):n.enter(n)}};t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout);this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type);if(e.$tip){e.$tip.detach()}e.$tip=null;e.$arrow=null;e.$viewport=null;e.$element=null})};function n(n){return this.each(function(){var r=e(this);var i=r.data("bs.tooltip");var a=typeof n=="object"&&n;if(!i&&/destroy|hide/.test(n))return;if(!i)r.data("bs.tooltip",i=new t(this,a));if(typeof n=="string")i[n]()})}var r=e.fn.tooltip;e.fn.tooltip=n;e.fn.tooltip.Constructor=t;e.fn.tooltip.noConflict=function(){e.fn.tooltip=r;return this}}(jQuery);+function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7";t.DEFAULTS=e.extend({},e.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>'});t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var e=this.tip();var t=this.getTitle();var n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t);e.find(".popover-content").children().detach().end()[this.options.html?typeof n=="string"?"html":"append":"text"](n);e.removeClass("fade top bottom left right in");if(!e.find(".popover-title").html())e.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var e=this.$element;var t=this.options;return e.attr("data-content")||(typeof t.content=="function"?t.content.call(e[0]):t.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};function n(n){return this.each(function(){var r=e(this);var i=r.data("bs.popover");var a=typeof n=="object"&&n;if(!i&&/destroy|hide/.test(n))return;if(!i)r.data("bs.popover",i=new t(this,a));if(typeof n=="string")i[n]()})}var r=e.fn.popover;e.fn.popover=n;e.fn.popover.Constructor=t;e.fn.popover.noConflict=function(){e.fn.popover=r;return this}}(jQuery);+function(e){"use strict";function t(n,r){this.$body=e(document.body);this.$scrollElement=e(n).is(document.body)?e(window):e(n);this.options=e.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this));this.refresh();this.process()}t.VERSION="3.3.7";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this;var n="offset";var r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();if(!e.isWindow(this.$scrollElement[0])){n="position";r=this.$scrollElement.scrollTop()}this.$body.find(this.selector).map(function(){var t=e(this);var i=t.data("target")||t.attr("href");var a=/^#./.test(i)&&e(i);return a&&a.length&&a.is(":visible")&&[[a[n]().top+r,i]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset;var t=this.getScrollHeight();var n=this.options.offset+t-this.$scrollElement.height();var r=this.offsets;var i=this.targets;var a=this.activeTarget;var o;if(this.scrollHeight!=t){this.refresh()}if(e>=n){return a!=(o=i[i.length-1])&&this.activate(o)}if(a&&e<r[0]){this.activeTarget=null;return this.clear()}for(o=r.length;o--;){a!=i[o]&&e>=r[o]&&(r[o+1]===undefined||e<r[o+1])&&this.activate(i[o])}};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]';var r=e(n).parents("li").addClass("active");if(r.parent(".dropdown-menu").length){r=r.closest("li.dropdown").addClass("active")}r.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};function n(n){return this.each(function(){var r=e(this);var i=r.data("bs.scrollspy");var a=typeof n=="object"&&n;if(!i)r.data("bs.scrollspy",i=new t(this,a));if(typeof n=="string")i[n]()})}var r=e.fn.scrollspy;e.fn.scrollspy=n;e.fn.scrollspy.Constructor=t;e.fn.scrollspy.noConflict=function(){e.fn.scrollspy=r;return this};e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery);+function(e){"use strict";var t=function(t){this.element=e(t)};t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element;var n=t.closest("ul:not(.dropdown-menu)");var r=t.data("target");if(!r){r=t.attr("href");r=r&&r.replace(/.*(?=#[^\s]*$)/,"")}if(t.parent("li").hasClass("active"))return;var i=n.find(".active:last a");var a=e.Event("hide.bs.tab",{relatedTarget:t[0]});var o=e.Event("show.bs.tab",{relatedTarget:i[0]});i.trigger(a);t.trigger(o);if(o.isDefaultPrevented()||a.isDefaultPrevented())return;var s=e(r);this.activate(t.closest("li"),n);this.activate(s,s.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})};t.prototype.activate=function(n,r,i){var a=r.find("> .active");var o=i&&e.support.transition&&(a.length&&a.hasClass("fade")||!!r.find("> .fade").length);function s(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",false);n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",true);if(o){n[0].offsetWidth;n.addClass("in")}else{n.removeClass("fade")}if(n.parent(".dropdown-menu").length){n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",true)}i&&i()}a.length&&o?a.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s();a.removeClass("in")};function n(n){return this.each(function(){var r=e(this);var i=r.data("bs.tab");if(!i)r.data("bs.tab",i=new t(this));if(typeof n=="string")i[n]()})}var r=e.fn.tab;e.fn.tab=n;e.fn.tab.Constructor=t;e.fn.tab.noConflict=function(){e.fn.tab=r;return this};var i=function(t){t.preventDefault();n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this));this.$element=e(n);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()};t.VERSION="3.3.7";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop();var a=this.$element.offset();var o=this.$target.height();if(n!=null&&this.affixed=="top")return i<n?"top":false;if(this.affixed=="bottom"){if(n!=null)return i+this.unpin<=a.top?false:"bottom";return i+o<=e-r?false:"bottom"}var s=this.affixed==null;var l=s?i:a.top;var u=s?o:t;if(n!=null&&i<=n)return"top";if(r!=null&&l+u>=e-r)return"bottom";return false};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop();var n=this.$element.offset();return this.pinnedOffset=n.top-e};t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var n=this.$element.height();var r=this.options.offset;var i=r.top;var a=r.bottom;var o=Math.max(e(document).height(),e(document.body).height());if(typeof r!="object")a=i=r;if(typeof i=="function")i=r.top(this.$element);if(typeof a=="function")a=r.bottom(this.$element);var s=this.getState(o,n,i,a);if(this.affixed!=s){if(this.unpin!=null)this.$element.css("top","");var l="affix"+(s?"-"+s:"");var u=e.Event(l+".bs.affix");this.$element.trigger(u);
1if(u.isDefaultPrevented())return;this.affixed=s;this.unpin=s=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}if(s=="bottom"){this.$element.offset({top:o-n-a})}};function n(n){return this.each(function(){var r=e(this);var i=r.data("bs.affix");var a=typeof n=="object"&&n;if(!i)r.data("bs.affix",i=new t(this,a));if(typeof n=="string")i[n]()})}var r=e.fn.affix;e.fn.affix=n;e.fn.affix.Constructor=t;e.fn.affix.noConflict=function(){e.fn.affix=r;return this};e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this);var r=t.data();r.offset=r.offset||{};if(r.offsetBottom!=null)r.offset.bottom=r.offsetBottom;if(r.offsetTop!=null)r.offset.top=r.offsetTop;n.call(t,r)})})}(jQuery);+function(e){"use strict";if(!e.fn.carousel){throw new Error("carousel-swipe required bootstrap carousel")}var t=function(n){this.$element=e(n);this.carousel=this.$element.data("bs.carousel");this.options=e.extend({},t.DEFAULTS,this.carousel.options);this.startX=this.startY=this.startTime=this.cycling=this.$active=this.$items=this.$next=this.$prev=this.dx=null;this.sliding=false;this.$element.on("touchstart",e.proxy(this.touchstart,this)).on("touchmove",e.proxy(this.touchmove,this)).on("touchend",e.proxy(this.touchend,this)).on("slide.bs.carousel",e.proxy(this.startSliding,this)).on("slid.bs.carousel",e.proxy(this.stopSliding,this))};t.DEFAULTS={swipe:50};t.prototype.startSliding=function(){this.sliding=true};t.prototype.stopSliding=function(){this.sliding=false};t.prototype.touchstart=function(e){if(this.sliding||!this.options.swipe)return;var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;this.dx=0;this.startX=t.pageX;this.startY=t.pageY;this.cycling=null;this.width=this.$element.width();this.startTime=e.timeStamp};t.prototype.touchmove=function(e){if(this.sliding||!this.options.swipe||!this.startTime)return;var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;var n=t.pageX-this.startX;var r=t.pageY-this.startY;if(Math.abs(n)<Math.abs(r))return;if(this.cycling===null){this.cycling=!!this.carousel.interval;this.cycling&&this.carousel.pause()}e.preventDefault();this.dx=n/(this.width||1)*100;this.swipe(this.dx)};t.prototype.touchend=function(t){if(this.sliding||!this.options.swipe||!this.startTime)return;if(!this.$active)return;var n=e().add(this.$active).add(this.$prev).add(this.$next).carousel_transition(true);var r=(t.timeStamp-this.startTime)/1e3;var i=Math.abs(this.dx/r);if(this.dx>40||this.dx>0&&i>this.options.swipe){this.carousel.prev()}else if(this.dx<-40||this.dx<0&&i>this.options.swipe){this.carousel.next()}else{this.$active.one(e.support.transition.end,function(){n.removeClass("prev next")}).emulateTransitionEnd(this.$active.css("transition-duration").slice(0,-1)*1e3)}n.css("transform","");this.cycling&&this.carousel.cycle();this.$active=null;this.startTime=null};t.prototype.swipe=function(e){var t=this.$active||this.getActive();if(e<0){this.$prev.css("transform","translate3d(0,0,0)").removeClass("prev").carousel_transition(true);if(!this.$next.length||this.$next.hasClass("active"))return;this.$next.carousel_transition(false).addClass("next").css("transform","translate3d("+(e+100)+"%,0,0)")}else{this.$next.css("transform","").removeClass("next").carousel_transition(true);if(!this.$prev.length||this.$prev.hasClass("active"))return;this.$prev.carousel_transition(false).addClass("prev").css("transform","translate3d("+(e-100)+"%,0,0)")}t.carousel_transition(false).css("transform","translate3d("+e+"%, 0, 0)")};t.prototype.getActive=function(){this.$active=this.$element.find(".item.active");this.$items=this.$active.parent().children();this.$next=this.$active.next();if(!this.$next.length&&this.options.wrap){this.$next=this.$items.first()}this.$prev=this.$active.prev();if(!this.$prev.length&&this.options.wrap){this.$prev=this.$items.last()}return this.$active};var n=e.fn.carousel;e.fn.carousel=function(){n.apply(this,arguments);return this.each(function(){var n=e(this);var r=n.data("bs.carousel.swipe");if(!r)n.data("bs.carousel.swipe",new t(this))})};e.extend(e.fn.carousel,n);e.fn.carousel_transition=function(t){t=t?"":"none";return this.each(function(){e(this).css("-webkit-transition",t).css("transition",t)})}}(jQuery);(function(e){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],e)}else{e(jQuery)}})(function(e){var t="left",n="right",r="up",i="down",a="in",o="out",s="none",l="auto",u="swipe",c="pinch",f="tap",p="doubletap",d="longtap",h="hold",v="horizontal",g="vertical",m="all",$
vendor: 9,673 bytes, line 1
1=10,y="start",b="move",w="end",x="cancel",k="ontouchstart"in window,C=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,T=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,S="TouchSwipe";var D={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};e.fn.swipe=function(t){var n=e(this),r=n.data(S);if(r&&typeof t==="string"){if(r[t]){return r[t].apply(this,Array.prototype.slice.call(arguments,1))}else{e.error("Method "+t+" does not exist on jQuery.swipe")}}else{if(!r&&(typeof t==="object"||!t)){return E.apply(this,arguments)}}return n};e.fn.swipe.defaults=D;e.fn.swipe.phases={PHASE_START:y,PHASE_MOVE:b,PHASE_END:w,PHASE_CANCEL:x};e.fn.swipe.directions={LEFT:t,RIGHT:n,UP:r,DOWN:i,IN:a,OUT:o};e.fn.swipe.pageScroll={NONE:s,HORIZONTAL:v,VERTICAL:g,AUTO:l};e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:m};function E(t){if(t&&(t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined))){t.allowPageScroll=s}if(t.click!==undefined&&t.tap===undefined){t.tap=t.click}if(!t){t={}}t=e.extend({},e.fn.swipe.defaults,t);return this.each(function(){var n=e(this);var r=n.data(S);if(!r){r=new O(this,t);n.data(S,r)}})}function O(h,D){var E=k||T||!D.fallbackToMouseEvents,O=E?T?C?"MSPointerDown":"pointerdown":"touchstart":"mousedown",A=E?T?C?"MSPointerMove":"pointermove":"touchmove":"mousemove",M=E?T?C?"MSPointerUp":"pointerup":"touchend":"mouseup",P=E?null:"mouseleave",N=T?C?"MSPointerCancel":"pointercancel":"touchcancel";var I=0,V=null,j=0,R=0,F=0,H=1,U=0,q=0,L=null;var _=e(h);var B="start";var Y=0;var W=null;var z=0,X=0,G=0,Z=0,K=0;var Q=null,J=null;try{_.bind(O,ee);_.bind(N,re)}catch(t){e.error("events not supported "+O+","+N+" on jQuery.swipe")}this.enable=function(){_.bind(O,ee);_.bind(N,re);return _};this.disable=function(){ae();return _};this.destroy=function(){ae();_.data(S,null);return _};this.option=function(t,n){if(D[t]!==undefined){if(n===undefined){return D[t]}else{D[t]=n}}else{e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null};function ee(t){if(Ve()){return}if(e(t.target).closest(D.excludedElements,_).length>0){return}var n=t.originalEvent?t.originalEvent:t;var r,i=k?n.touches[0]:n;B=y;if(k){Y=n.touches.length}else{t.preventDefault()}I=0;V=null;q=null;j=0;R=0;F=0;H=1;U=0;W=Ue();L=_e();Ne();if(!k||(Y===D.fingers||D.fingers===m)||ve()){Re(0,i);z=Qe();if(Y==2){Re(1,n.touches[1]);R=F=We(W[0].start,W[1].start)}if(D.swipeStatus||D.pinchStatus){r=se(n,B)}}else{r=false}if(r===false){B=x;se(n,B);return r}else{if(D.hold){J=setTimeout(e.proxy(function(){_.trigger("hold",[n.target]);if(D.hold){r=D.hold.call(_,n,n.target)}},this),D.longTapThreshold)}je(true)}return null}function te(e){var t=e.originalEvent?e.originalEvent:e;if(B===w||B===x||Ie()){return}var n,r=k?t.touches[0]:t;var i=Fe(r);X=Qe();if(k){Y=t.touches.length}if(D.hold){clearTimeout(J)}B=b;if(Y==2){if(R==0){Re(1,t.touches[1]);R=F=We(W[0].start,W[1].start)}else{Fe(t.touches[1]);F=We(W[0].end,W[1].end);q=Xe(W[0].end,W[1].end)}H=ze(R,F);U=Math.abs(R-F)}if(Y===D.fingers||D.fingers===m||!k||ve()){V=Ke(i.start,i.end);de(e,V);I=Ge(i.start,i.end);j=Ye();qe(V,I);if(D.swipeStatus||D.pinchStatus){n=se(t,B)}if(!D.triggerOnTouchEnd||D.triggerOnTouchLeave){var a=true;if(D.triggerOnTouchLeave){var o=Je(this);a=et(i.end,o)}if(!D.triggerOnTouchEnd&&a){B=oe(b)}else{if(D.triggerOnTouchLeave&&!a){B=oe(w)}}if(B==x||B==w){se(t,B)}}}else{B=x;se(t,B)}if(n===false){B=x;se(t,B)}}function ne(e){var t=e.originalEvent;if(k){if(t.touches.length>0){Pe();return true}}if(Ie()){Y=Z}X=Qe();j=Ye();if(ce()||!ue()){B=x;se(t,B)}else{if(D.triggerOnTouchEnd||D.triggerOnTouchEnd==false&&B===b){e.preventDefault();B=w;se(t,B)}else{if(!D.triggerOnTouchEnd&&xe()){B=w;le(t,B,f)}else{if(B===b){B=x;se(t,B)}}}}je(false);return null}function re(){Y=0;X=0;z=0;R=0;F=0;H=1;Ne();je(false)}function ie(e){var t=e.originalEvent;if(D.triggerOnTouchLeave){B=oe(w);se(t,B)}}function ae(){_.unbind(O,ee);_.unbind(N,re);_.unbind(A,te);_.unbind(M,ne);if(P){_.unbind(P,ie)}je(false)}function oe(e){var t=e;var n=pe();var r=ue();var i=ce();if(!n||i){t=x}else{if(r&&e==b&&(!D.triggerOnTouchEnd||D.triggerOnTouchLeave)){t=w}else{if(!r&&e==w&&D.triggerOnTouchLeave){t=x}}}return t}function se(e,t){var n=undefined;if(ye()||$e()){n=le(e,t,u)}else{if((ge()||ve())&&n!==false){n=le(e,t,c)}}if(Ae()&&n!==false){n=le(e,t,p)}else{if(Me()&&n!==false){n=le(e,t,d)}else{if(Oe()&&n!==false){n=le(e,t,f)}}}if(t===x){re(e)}if(t===w){if(k){if(e.touches.length==0){re(e)}}else{re(e)}}return n}function le(s,l,h){var v=undefined;if(h==u){_.trigger("swipeStatus",[l,V||null,I||0,j||0,Y,W]);if(D.swipeStatus){v=D.swipeStatus.call(_,s,l,V||null,I||0,j||0,Y,W);if(v===false){return false}}if(l==w&&me()){_.trigger("swipe",[V,I,j,Y,W]);if(D.swipe){v=D.swipe.call(_,s,V,I,j,Y,W);if(v===false){return false}}switch(V){case t:_.trigger("swipeLeft",[V,I,j,Y,W]);if(D.swipeLeft){v=D.swipeLeft.call(_,s,V,I,j,Y,W)}break;case n:_.trigger("swipeRight",[V,I,j,Y,W]);if(D.swipeRight){v=D.swipeRight.call(_,s,V,I,j,Y,W)}break;case r:_.trigger("swipeUp",[V,I,j,Y,W]);if(D.swipeUp){v=D.swipeUp.call(_,s,V,I,j,Y,W)}break;case i:_.trigger("swipeDown",[V,I,j,Y,W]);if(D.swipeDown){v=D.swipeDown.call(_,s,V,I,j,Y,W)}break}}}if(h==c){_.trigger("pinchStatus",[l,q||null,U||0,j||0,Y,H,W]);if(D.pinchStatus){v=D.pinchStatus.call(_,s,l,q||null,U||0,j||0,Y,H,W);if(v===false){return false}}if(l==w&&he()){switch(q){case a:_.trigger("pinchIn",[q||null,U||0,j||0,Y,H,W]);if(D.pinchIn){v=D.pinchIn.call(_,s,q||null,U||0,j||0,Y,H,W)}break;case o:_.trigger("pinchOut",[q||null,U||0,j||0,Y,H,W]);if(D.pinchOut){v=D.pinchOut.call(_,s,q||null,U||0,j||0,Y,H,W)}break}}}if(h==f){if(l===x||l===w){clearTimeout(Q);clearTimeout(J);if(ke()&&!Se()){K=Qe();Q=setTimeout(e.proxy(function(){K=null;_.trigger("tap",[s.target]);if(D.tap){v=D.tap.call(_,s,s.target)}},this),D.doubleTapThreshold)}else{K=null;_.trigger("tap",[s.target]);if(D.tap){v=D.tap.call(_,s,s.target)}}}}else{if(h==p){if(l===x||l===w){clearTimeout(Q);K=null;_.trigger("doubletap",[s.target]);if(D.doubleTap){v=D.doubleTap.call(_,s,s.target)}}}else{if(h==d){if(l===x||l===w){clearTimeout(Q);K=null;_.trigger("longtap",[s.target]);if(D.longTap){v=D.longTap.call(_,s,s.target)}}}}}return v}function ue(){var e=true;if(D.threshold!==null){e=I>=D.threshold}return e}function ce(){var e=false;if(D.cancelThreshold!==null&&V!==null){e=Le(V)-I>=D.cancelThreshold}return e}function fe(){if(D.pinchThreshold!==null){return U>=D.pinchThreshold}return true}function pe(){var e;if(D.maxTimeThreshold){if(j>=D.maxTimeThreshold){e=false}else{e=true}}else{e=true}return e}function de(e,a){if(D.allowPageScroll===s||ve()){e.preventDefault()}else{var o=D.allowPageScroll===l;switch(a){case t:if(D.swipeLeft&&o||!o&&D.allowPageScroll!=v){e.preventDefault()}break;case n:if(D.swipeRight&&o||!o&&D.allowPageScroll!=v){e.preventDefault()}break;case r:if(D.swipeUp&&o||!o&&D.allowPageScroll!=g){e.preventDefault()}break;case i:if(D.swipeDown&&o||!o&&D.allowPageScroll!=g){e.preventDefault()}break}}}function he(){var e=be();var t=we();var n=fe();return e&&t&&n}function ve(){return!!(D.pinchStatus||D.pinchIn||D.pinchOut)}function ge(){return!!(he()&&ve())}function me(){var e=pe();var t=ue();var n=be();var r=we();var i=ce();var a=!i&&r&&n&&t&&e;return a}function $e(){return!!(D.swipe||D.swipeStatus||D.swipeLeft||D.swipeRight||D.swipeUp||D.swipeDown)}function ye(){return!!(me()&&$e())}function be(){return Y===D.fingers||D.fingers===m||!k}function we(){return W[0].end.x!==0}function xe(){return!!D.tap}function ke(){return!!D.doubleTap}function Ce(){return!!D.longTap}function Te(){if(K==null){return false}var e=Qe();return ke()&&e-K<=D.doubleTapThreshold}function Se(){return Te()}function De(){return(Y===1||!k)&&(isNaN(I)||I<D.threshold)}function Ee(){return j>D.longTapThreshold&&I<$}function Oe(){return!!(De()&&xe())}function Ae(){return!!(Te()&&ke())}function Me(){return!!(Ee()&&Ce())}function Pe(){G=Qe();Z=event.touches.length+1}function Ne(){G=0;Z=0}function Ie(){var e=false;if(G){var t=Qe()-G;if(t<=D.fingerReleaseThreshold){e=true}}return e}function Ve(){return!!(_.data(S+"_intouch")===true)}function je(e){if(e===true){_.bind(A,te);_.bind(M,ne);if(P){_.bind(P,ie)}}else{_.unbind(A,te,false);_.unbind(M,ne,false);if(P){_.unbind(P,ie,false)}}_.data(S+"_intouch",e===true)}function Re(e,t){var n=t.identifier!==undefined?t.identifier:0;W[e].identifier=n;W[e].start.x=W[e].end.x=t.pageX||t.clientX;W[e].start.y=W[e].end.y=t.pageY||t.clientY;return W[e]}function Fe(e){var t=e.identifier!==undefined?e.identifier:0;var n=He(t);n.end.x=e.pageX||e.clientX;n.end.y=e.pageY||e.clientY;return n}function He(e){for(var t=0;t<W.length;t++){if(W[t].identifier==e){return W[t]}}}function Ue(){var e=[];for(var t=0;t<=5;t++){e.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return e}function qe(e,t){t=Math.max(t,Le(e));L[e].distance=t}function Le(e){if(L[e]){return L[e].distance}return undefined}function _e(){var e={};e[t]=Be(t);e[n]=Be(n);e[r]=Be(r);e[i]=Be(i);return e}function Be(e){return{direction:e,distance:0}}function Ye(){return X-z}function We(e,t){var n=Math.abs(e.x-t.x);var r=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+r*r))}function ze(e,t){var n=t/e*1;return n.toFixed(2)}
1function Xe(){if(H<1){return o}else{return a}}function Ge(e,t){return Math.round(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)))}function Ze(e,t){var n=e.x-t.x;var r=t.y-e.y;var i=Math.atan2(r,n);var a=Math.round(i*180/Math.PI);if(a<0){a=360-Math.abs(a)}return a}function Ke(e,a){var o=Ze(e,a);if(o<=45&&o>=0){return t}else{if(o<=360&&o>=315){return t}else{if(o>=135&&o<=225){return n}else{if(o>45&&o<135){return i}else{return r}}}}}function Qe(){var e=new Date;return e.getTime()}function Je(t){t=e(t);var n=t.offset();var r={left:n.left,right:n.left+t.outerWidth(),top:n.top,bottom:n.top+t.outerHeight()};return r}function et(e,t){return e.x>t.left&&e.x<t.right&&e.y>t.top&&e.y<t.bottom}}});!function(){"use strict";function e(e){var t='<div class="ngn" ng-class="ngNotify.notifyClass"><span ng-if="ngNotify.notifyHtml" class="ngn-message" ng-bind-html="ngNotify.notifyMessage"></span><span ng-if="!ngNotify.notifyHtml" class="ngn-message" ng-bind="ngNotify.notifyMessage"></span><span ng-show="ngNotify.notifyButton" class="ngn-dismiss" ng-click="dismiss()">&times;</span></div>';e.put(a,t)}function t(e){function t(e,t,n){this.scope=e,this.options=n,this.template=r(t)}var n;t.prototype={show:function(e){this.template.fadeIn(g,e)},dismiss:function(){this.template.fadeOut(p,this.destroy.bind(this))},destroy:function(){e.cancel(n),this.options&&this.options.userCallback&&this.options.userCallback(),this.scope&&this.scope.$destroy(),this.template&&this.template.el.remove(),this.scope=null,this.options=null,this.template=null}};var r=function(e){return new r.fn(e)};return r.fn=function(e){this.el=e},r.fn.prototype._fade=function(t,r,i,a){var o=d/i,s=this.el;s.css("opacity",r);var l=function(){r+=t*o,s.css("opacity",r),(m>=r||r>=$)&&(e.cancel(n),m>=r&&s.css("display","none"),a&&a())};n=e(l,d)},r.fn.prototype.fadeIn=function(e,t){this.el.css("display","block"),this._fade(h,m,e,t)},r.fn.prototype.fadeOut=function(e,t){this._fade(v,$,e,t)},t}function n(){this.$get=["$document","$compile","$log","$rootScope","$timeout","$templateCache","NgNotifyFactory",function(e,t,n,r,p,d,h){var v,g,m={theme:"pure",position:"bottom",duration:f,type:"info",sticky:!1,button:!0,html:!1,target:c},$={notifyClass:"",notifyMessage:""},y={pure:o,prime:"ngn-prime",pastel:"ngn-pastel",pitchy:"ngn-pitchy"},b={info:"ngn-info",error:"ngn-error",success:"ngn-success",warn:"ngn-warn",grimace:"ngn-grimace"},w={bottom:"ngn-bottom",top:"ngn-top"},x=function(){var e=r.$new();return e.ngNotify=angular.extend({},$),e.dismiss=function(){V()},e},k=function(e,n,r){var i={},o=x();"object"==typeof n?i=n:i.type=n;var s=N(i),l={isSticky:E(i),duration:D(i),userCallback:r};angular.extend(o.ngNotify,{notifyHtml:M(i),notifyClass:P(i,l.isSticky,s.found),notifyButton:O(i,l.isSticky),notifyMessage:e});var u=t(d.get(a))(o);return s.target.append(u),new h(o,u,l)},C=function(e){var t=e.type||m.type;return(b[t]||b.info)+s},T=function(e){var t=e.theme||m.theme;return(y[t]||y.pure)+s},S=function(e){var t=e.position||m.position;return(w[t]||w.bottom)+s},D=function(e){var t=e.duration||m.duration;return angular.isNumber(t)?t:f},E=function(e){var t=void 0!==e.sticky?e.sticky:m.sticky;return!!t},O=function(e,t){var n=void 0!==e.button?e.button:m.button;return n&&t},A=function(e){return e.target||m.target},M=function(e){if((e.html||m.html)&&!i)return n.debug("ngNotify warning:\nngSanitize couldn't be located.  In order to use the 'html' option, be sure the ngSanitize source is included in your project."),!1;var t=void 0!==e.html?e.html:m.html;return!!t},P=function(e,t,n){var r=C(e)+T(e)+S(e);return r+=t?l+s:o,r+=A(e)!==c&&n?u+s:o},N=function(e){var t=document.querySelector(A(e));return t?{target:angular.element(t),found:!0}:{target:angular.element(document.querySelector(c)),found:!1}},I=function(){v.options.isSticky||(g=p(function(){v.dismiss()},v.options.duration))},V=function(){v&&v.dismiss()},j=function(e){p.cancel(g),e&&(e.scope&&e.destroy(),e=null)};return{config:function(e){e=e||{},angular.extend(m,e)},set:function(e,t,n){e&&(j(v),v=k(e,t,n),v.show(I))},dismiss:function(){V()},addTheme:function(e,t){e&&t&&(y[e]=t)},addType:function(e,t){e&&t&&(b[e]=t)}}}]}
vendor: 29,455 bytes, line 1
1var r=angular.module("ngNotify",[]);r.run(["$templateCache",e]),r.factory("NgNotifyFactory",["$interval",t]),r.provider("ngNotify",n);var i=!1,a="templates/ng-notify/ng-notify.html",o="",s=" ",l="ngn-sticky",u="ngn-component",c="body",f=3e3,p=500,d=25,h=1,v=-1,g=200,m=0,$=1;try{angular.module("ngSanitize")&&(angular.module("ngNotify").requires.push("ngSanitize"),i=!0)}catch(e){}}();!function(e){function t(e){var t=e.length,r=n.type(e);return"function"===r||n.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}if(!e.jQuery){var n=function(e,t){return new n.fn.init(e,t)};n.isWindow=function(e){return null!=e&&e==e.window},n.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[o.call(e)]||"object":typeof e},n.isArray=Array.isArray||function(e){return"array"===n.type(e)},n.isPlainObject=function(e){var t;if(!e||"object"!==n.type(e)||e.nodeType||n.isWindow(e))return!1;try{if(e.constructor&&!a.call(e,"constructor")&&!a.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||a.call(e,t)},n.each=function(e,n,r){var i,a=0,o=e.length,s=t(e);if(r){if(s)for(;o>a&&(i=n.apply(e[a],r),i!==!1);a++);else for(a in e)if(i=n.apply(e[a],r),i===!1)break}else if(s)for(;o>a&&(i=n.call(e[a],a,e[a]),i!==!1);a++);else for(a in e)if(i=n.call(e[a],a,e[a]),i===!1)break;return e},n.data=function(e,t,i){if(void 0===i){var a=e[n.expando],o=a&&r[a];if(void 0===t)return o;if(o&&t in o)return o[t]}else if(void 0!==t){var a=e[n.expando]||(e[n.expando]=++n.uuid);return r[a]=r[a]||{},r[a][t]=i,i}},n.removeData=function(e,t){var i=e[n.expando],a=i&&r[i];a&&n.each(t,function(e,t){delete a[t]})},n.extend=function(){var e,t,r,i,a,o,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==n.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(a=arguments[l]))for(i in a)e=s[i],r=a[i],s!==r&&(c&&r&&(n.isPlainObject(r)||(t=n.isArray(r)))?(t?(t=!1,o=e&&n.isArray(e)?e:[]):o=e&&n.isPlainObject(e)?e:{},s[i]=n.extend(c,o,r)):void 0!==r&&(s[i]=r));return s},n.queue=function(e,r,i){function a(e,n){var r=n||[];return null!=e&&(t(Object(e))?!function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;)e[i++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e}(r,"string"==typeof e?[e]:e):[].push.call(r,e)),r}if(e){r=(r||"fx")+"queue";var o=n.data(e,r);return i?(!o||n.isArray(i)?o=n.data(e,r,a(i)):o.push(i),o):o||[]}},n.dequeue=function(e,t){n.each(e.nodeType?[e]:e,function(e,r){t=t||"fx";var i=n.queue(r,t),a=i.shift();"inprogress"===a&&(a=i.shift()),a&&("fx"===t&&i.unshift("inprogress"),a.call(r,function(){n.dequeue(r,t)}))})},n.fn=n.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect();return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),r=this.offset(),i=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:n(e).offset();return r.top-=parseFloat(t.style.marginTop)||0,r.left-=parseFloat(t.style.marginLeft)||0,e.style&&(i.top+=parseFloat(e.style.borderTopWidth)||0,i.left+=parseFloat(e.style.borderLeftWidth)||0),{top:r.top-i.top,left:r.left-i.left}}};var r={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var i={},a=i.hasOwnProperty,o=i.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)i["[object "+s[l]+"]"]=s[l].toLowerCase();n.fn.init.prototype=n.fn,e.Velocity={Utilities:n}}}(window),function(e){"object"==typeof module&&"object"==typeof module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):e()}(function(){return function(e,t,n,r){function i(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var i=e[t];i&&r.push(i)}return r}function a(e){return h.isWrapped(e)?e=[].slice.call(e):h.isNode(e)&&(e=[e]),e}function o(e){var t=v.data(e,"velocity");return null===t?r:t}function s(e){return function(t){return Math.round(t*e)*(1/e)}}function l(e,n,r,i){function a(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,n){return((a(t,n)*e+o(t,n))*e+s(t))*e}function u(e,t,n){return 3*a(t,n)*e*e+2*o(t,n)*e+s(t)}function c(t,n){for(var i=0;v>i;++i){var a=u(n,e,r);if(0===a)return n;var o=l(n,e,r)-t;n-=o/a}return n}function f(){for(var t=0;y>t;++t)k[t]=l(t*b,e,r)}function p(t,n,i){var a,o,s=0;do{o=n+(i-n)/2,a=l(o,e,r)-t,a>0?i=o:n=o}while(Math.abs(a)>m&&++s<$);return o}function d(t){for(var n=0,i=1,a=y-1;i!=a&&k[i]<=t;++i)n+=b;--i;var o=(t-k[i])/(k[i+1]-k[i]),s=n+o*b,l=u(s,e,r);return l>=g?c(t,s):0==l?s:p(t,n,n+b)}function h(){C=!0,(e!=n||r!=i)&&f()}var v=4,g=.001,m=1e-7,$=10,y=11,b=1/(y-1),w="Float32Array"in t;if(4!==arguments.length)return!1;for(var x=0;4>x;++x)if("number"!=typeof arguments[x]||isNaN(arguments[x])||!isFinite(arguments[x]))return!1;e=Math.min(e,1),r=Math.min(r,1),e=Math.max(e,0),r=Math.max(r,0);var k=w?new Float32Array(y):new Array(y),C=!1,T=function(t){return C||h(),e===n&&r===i?t:0===t?0:1===t?1:l(d(t),n,i)};T.getControlPoints=function(){return[{x:e,y:n},{x:r,y:i}]};var S="generateBezier("+[e,n,r,i]+")";return T.toString=function(){return S},T}function u(e,t){var n=e;return h.isString(e)?y.Easings[e]||(n=!1):n=h.isArray(e)&&1===e.length?s.apply(null,e):h.isArray(e)&&2===e.length?b.apply(null,e.concat([t])):h.isArray(e)&&4===e.length?l.apply(null,e):!1,n===!1&&(n=y.Easings[y.defaults.easing]?y.defaults.easing:$),n}function c(e){if(e)for(var t=(new Date).getTime(),n=0,i=y.State.calls.length;i>n;n++)if(y.State.calls[n]){var a=y.State.calls[n],s=a[0],l=a[2],u=a[3];u||(u=y.State.calls[n][3]=t-16);for(var p=Math.min((t-u)/l.duration,1),d=0,g=s.length;g>d;d++){var m=s[d],$=m.element;if(o($)){var b=!1;if(l.display!==r&&null!==l.display&&"none"!==l.display){if("flex"===l.display){var x=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];v.each(x,function(e,t){w.setPropertyValue($,"display",t)})}w.setPropertyValue($,"display",l.display)}l.visibility&&"hidden"!==l.visibility&&w.setPropertyValue($,"visibility",l.visibility);for(var C in m)if("element"!==C){var T=m[C],S,D=h.isString(T.easing)?y.Easings[T.easing]:T.easing;if(S=1===p?T.endValue:T.startValue+(T.endValue-T.startValue)*D(p),T.currentValue=S,w.Hooks.registered[C]){var E=w.Hooks.getRoot(C),O=o($).rootPropertyValueCache[E];O&&(T.rootPropertyValue=O)}var A=w.setPropertyValue($,C,T.currentValue+(0===parseFloat(S)?"":T.unitType),T.rootPropertyValue,T.scrollData);w.Hooks.registered[C]&&(o($).rootPropertyValueCache[E]=w.Normalizations.registered[E]?w.Normalizations.registered[E]("extract",null,A[1]):A[1]),"transform"===A[0]&&(b=!0)}l.mobileHA&&o($).transformCache.translate3d===r&&(o($).transformCache.translate3d="(0px, 0px, 0px)",b=!0),b&&w.flushTransformCache($)}}l.display!==r&&"none"!==l.display&&(y.State.calls[n][2].display=!1),l.visibility&&"hidden"!==l.visibility&&(y.State.calls[n][2].visibility=!1),l.progress&&l.progress.call(a[1],a[1],p,Math.max(0,u+l.duration-t),u),1===p&&f(n)}y.State.isTicking&&k(c)}function f(e,t){if(!y.State.calls[e])return!1;for(var n=y.State.calls[e][0],i=y.State.calls[e][1],a=y.State.calls[e][2],s=y.State.calls[e][4],l=!1,u=0,c=n.length;c>u;u++){var f=n[u].element;if(t||a.loop||("none"===a.display&&w.setPropertyValue(f,"display",a.display),"hidden"===a.visibility&&w.setPropertyValue(f,"visibility",a.visibility)),(v.queue(f)[1]===r||!/\.velocityQueueEntryFlag/i.test(v.queue(f)[1]))&&o(f)){o(f).isAnimating=!1,o(f).rootPropertyValueCache={};var p=!1;v.each(w.Lists.transforms3D,function(e,t){var n=/^scale/.test(t)?1:0,i=o(f).transformCache[t];o(f).transformCache[t]!==r&&new RegExp("^\\("+n+"[^.]").test(i)&&(p=!0,delete o(f).transformCache[t])}),a.mobileHA&&(p=!0,delete o(f).transformCache.translate3d),p&&w.flushTransformCache(f),w.Values.removeClass(f,"velocity-animating")}if(!t&&a.complete&&!a.loop&&u===c-1)try{a.complete.call(i,i)}catch(e){setTimeout(function(){throw e},1)}s&&a.loop!==!0&&s(i),a.loop!==!0||t||(v.each(o(f).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360)}),y(f,"reverse",{loop:!0,delay:a.delay})),a.queue!==!1&&v.dequeue(f,a.queue)}y.State.calls[e]=!1;for(var d=0,h=y.State.calls.length;h>d;d++)if(y.State.calls[d]!==!1){l=!0;break}l===!1&&(y.State.isTicking=!1,delete y.State.calls,y.State.calls=[])}var p=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return r}(),d=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var n=(new Date).getTime(),r;return r=Math.max(0,16-(n-e)),e=n+r,setTimeout(function(){t(n+r)},r)}}(),h={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==r&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof SVGElement},isEmptyObject:function(e){var t;for(t in e)return!1;return!0}},v,g=!1;if(e.fn&&e.fn.jquery?(v=e,g=!0):v=t.Velocity.Utilities,8>=p&&!g)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=p)return void(jQuery.fn.velocity=jQuery.fn.animate);var m=400,$="swing",y={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:v,Sequences:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:m,easing:$,begin:null,complete:null,progress:null,display:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){v.data(e,"velocity",{isSVG:h.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},animate:null,hook:null,mock:!1,version:{major:1,minor:0,patch:0},debug:!1};t.pageYOffset!==r?(y.State.scrollAnchor=t,y.State.scrollPropertyLeft="pageXOffset",y.State.scrollPropertyTop="pageYOffset"):(y.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,y.State.scrollPropertyLeft="scrollLeft",y.State.scrollPropertyTop="scrollTop");var b=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,r){var i={x:t.x+r.dx*n,v:t.v+r.dv*n,tension:t.tension,friction:t.friction};return{dx:i.v,dv:e(i)}}function n(n,r){var i={dx:n.v,dv:e(n)},a=t(n,.5*r,i),o=t(n,.5*r,a),s=t(n,r,o),l=1/6*(i.dx+2*(a.dx+o.dx)+s.dx),u=1/6*(i.dv+2*(a.dv+o.dv)+s.dv);return n.x=n.x+l*r,n.v=n.v+u*r,n}return function e(t,r,i){var a={x:-1,v:0,tension:null,friction:null},o=[0],s=0,l=1e-4,u=.016,c,f,p;for(t=parseFloat(t)||500,r=parseFloat(r)||20,i=i||null,a.tension=t,a.friction=r,c=null!==i,c?(s=e(t,r),f=s/i*u):f=u;;)if(p=n(p||a,f),o.push(1+p.x),s+=16,!(Math.abs(p.x)>l&&Math.abs(p.v)>l))break;return c?function(e){return o[e*(o.length-1)|0]}:s}}();y.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},v.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){y.Easings[t[0]]=l.apply(null,t[1])});var w=y.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<w.Lists.colors.length;e++)w.Hooks.templates[w.Lists.colors[e]]=["Red Green Blue Alpha","255 255 255 1"];var t,n,r;if(p)for(t in w.Hooks.templates){n=w.Hooks.templates[t],r=n[0].split(" ");var i=n[1].match(w.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),i.push(i.shift()),w.Hooks.templates[t]=[r.join(" "),i.join(" ")])}for(t in w.Hooks.templates){n=w.Hooks.templates[t],r=n[0].split(" ");for(var e in r){var a=t+r[e],o=e;w.Hooks.registered[a]=[t,o]}}},getRoot:function(e){var t=w.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return w.RegEx.valueUnwrap.test(t)&&(t=t.match(w.Hooks.RegEx.valueUnwrap)[1]),w.Values.isCSSNullValue(t)&&(t=w.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=w.Hooks.registered[e];if(n){var r=n[0],i=n[1];return t=w.Hooks.cleanRootPropertyValue(r,t),t.toString().match(w.RegEx.valueSplit)[i]}return t},injectValue:function(e,t,n){var r=w.Hooks.registered[e];if(r){var i=r[0],a=r[1],o,s;return n=w.Hooks.cleanRootPropertyValue(i,n),o=n.toString().match(w.RegEx.valueSplit),o[a]=t,s=o.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var r;return w.RegEx.wrappedValueAlreadyExtracted.test(n)?r=n:(r=n.toString().match(w.RegEx.valueUnwrap),r=r?r[1].replace(/,(\s+)?/g," "):n),r;case"inject":return"rect("+n+")"}},opacity:function(e,t,n){if(8>=p)switch(e){case"name":return"filter";case"extract":var r=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":return n;case"inject":return n}}},register:function(){9>=p||y.State.isGingerbread||(w.Lists.transformsBase=w.Lists.transformsBase.concat(w.Lists.transforms3D));for(var e=0;e<w.Lists.transformsBase.length;e++)!function(){var t=w.Lists.transformsBase[e];w.Normalizations.registered[t]=function(e,n,i){switch(e){case"name":return"transform";case"extract":return o(n)===r||o(n).transformCache[t]===r?/^scale/i.test(t)?1:0:o(n).transformCache[t].replace(/[()]/g,"");case"inject":var a=!1;switch(t.substr(0,t.length-1)){case"translate":a=!/(%|px|em|rem|vw|vh|\d)$/i.test(i);break;case"scal":case"scale":y.State.isAndroid&&o(n).transformCache[t]===r&&1>i&&(i=1),a=!/(\d)$/i.test(i);break;case"skew":a=!/(deg|\d)$/i.test(i);break;case"rotate":a=!/(deg|\d)$/i.test(i)}return a||(o(n).transformCache[t]="("+i+")"),o(n).transformCache[t]}}}();for(var e=0;e<w.Lists.colors.length;e++)!function(){var t=w.Lists.colors[e];w.Normalizations.registered[t]=function(e,n,i){switch(e){case"name":return t;case"extract":var a;if(w.RegEx.wrappedValueAlreadyExtracted.test(i))a=i;else{var o,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?o=s[i]!==r?s[i]:s.black:w.RegEx.isHex.test(i)?o="rgb("+w.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(o=s.black),a=(o||i).toString().match(w.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=p||3!==a.split(" ").length||(a+=" 1"),a;case"inject":return 8>=p?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(8>=p?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(p||y.State.isAndroid&&!y.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(y.State.prefixMatches[e])return[y.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,r=t.length;r>n;n++){var i;if(i=0===n?e:t[n]+e.replace(/^\w/,function(e){return e.toUpperCase()}),h.isString(y.State.prefixElement.style[i]))return y.State.prefixMatches[e]=i,[i,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r;return e=e.replace(t,function(e,t,n,r){return t+t+n+n+r+r}),r=n.exec(e),r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,n,i,a){function s(e,n){function i(){u&&w.setPropertyValue(e,"display","none")}var l=0;if(8>=p)l=v.css(e,n);else{var u=!1;if(/^(width|height)$/.test(n)&&0===w.getPropertyValue(e,"display")&&(u=!0,w.setPropertyValue(e,"display",w.Values.getDisplayType(e))),!a){if("height"===n&&"border-box"!==w.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var c=e.offsetHeight-(parseFloat(w.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(w.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(w.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(w.getPropertyValue(e,"paddingBottom"))||0);return i(),c}if("width"===n&&"border-box"!==w.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var f=e.offsetWidth-(parseFloat(w.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(w.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(w.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(w.getPropertyValue(e,"paddingRight"))||0);return i(),f}}var d;d=o(e)===r?t.getComputedStyle(e,null):o(e).computedStyle?o(e).computedStyle:o(e).computedStyle=t.getComputedStyle(e,null),(p||y.State.isFirefox)&&"borderColor"===n&&(n="borderTopColor"),l=9===p&&"filter"===n?d.getPropertyValue(n):d[n],(""===l||null===l)&&(l=e.style[n]),i()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(n)){var h=s(e,"position");("fixed"===h||"absolute"===h&&/top|left/i.test(n))&&(l=v(e).position()[n]+"px")}return l}var l;if(w.Hooks.registered[n]){var u=n,c=w.Hooks.getRoot(u);i===r&&(i=w.getPropertyValue(e,w.Names.prefixCheck(c)[0])),w.Normalizations.registered[c]&&(i=w.Normalizations.registered[c]("extract",e,i)),l=w.Hooks.extractValue(u,i)}else if(w.Normalizations.registered[n]){var f,d;f=w.Normalizations.registered[n]("name",e),"transform"!==f&&(d=s(e,w.Names.prefixCheck(f)[0]),w.Values.isCSSNullValue(d)&&w.Hooks.templates[n]&&(d=w.Hooks.templates[n][1])),l=w.Normalizations.registered[n]("extract",e,d)}return/^[\d-]/.test(l)||(l=o(e)&&o(e).isSVG&&w.Names.SVGAttribute(n)?/^(height|width)$/i.test(n)?e.getBBox()[n]:e.getAttribute(n):s(e,w.Names.prefixCheck(n)[0])),w.Values.isCSSNullValue(l)&&(l=0),y.debug>=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(e,n,r,i,a){var s=n;if("scroll"===n)a.container?a.container["scroll"+a.direction]=r:"Left"===a.direction?t.scrollTo(r,a.alternateValue):t.scrollTo(a.alternateValue,r);else if(w.Normalizations.registered[n]&&"transform"===w.Normalizations.registered[n]("name",e))w.Normalizations.registered[n]("inject",e,r),s="transform",r=o(e).transformCache[n];else{if(w.Hooks.registered[n]){var l=n,u=w.Hooks.getRoot(n);i=i||w.getPropertyValue(e,u),r=w.Hooks.injectValue(l,r,i),n=u}if(w.Normalizations.registered[n]&&(r=w.Normalizations.registered[n]("inject",e,r),n=w.Normalizations.registered[n]("name",e)),s=w.Names.prefixCheck(n)[0],8>=p)try{e.style[s]=r}catch(e){y.debug&&console.log("Browser does not support ["+r+"] for ["+s+"]")}else o(e)&&o(e).isSVG&&w.Names.SVGAttribute(n)?e.setAttribute(n,r):e.style[s]=r;y.debug>=2&&console.log("Set "+n+" ("+s+"): "+r)}return[s,r]},flushTransformCache:function(e){function t(t){return parseFloat(w.getPropertyValue(e,t))}var n="";if((p||y.State.isAndroid&&!y.State.isChrome)&&o(e).isSVG){var r={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};v.each(o(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),r[e]&&(n+=e+"("+r[e].join(" ")+") ",delete r[e])})}else{var i,a;v.each(o(e).transformCache,function(t){return i=o(e).transformCache[t],"transformPerspective"===t?(a=i,!0):(9===p&&"rotateZ"===t&&(t="rotate"),void(n+=t+i+" "))}),a&&(n="perspective"+a+" "+n)}w.setPropertyValue(e,"transform",n)}};w.Hooks.register(),w.Normalizations.register(),y.hook=function(e,t,n){var i=r;return e=a(e),v.each(e,function(e,a){if(o(a)===r&&y.init(a),n===r)i===r&&(i=y.CSS.getPropertyValue(a,t));else{var s=y.CSS.setPropertyValue(a,t,n);"transform"===s[0]&&y.CSS.flushTransformCache(a),i=s}}),i};var x=function(){function e(){return p?E.promise||null:d}function s(){function e(e){function p(e,t){var n=r,i=r,o=r;return h.isArray(e)?(n=e[0],!h.isArray(e[1])&&/^[\d-]/.test(e[1])||h.isFunction(e[1])||w.RegEx.isHex.test(e[1])?o=e[1]:(h.isString(e[1])&&!w.RegEx.isHex.test(e[1])||h.isArray(e[1]))&&(i=t?e[1]:u(e[1],s.duration),e[2]!==r&&(o=e[2]))):n=e,t||(i=i||s.easing),h.isFunction(n)&&(n=n.call(a,T,C)),h.isFunction(o)&&(o=o.call(a,T,C)),[n||0,i,o]}function d(e,t){var n,r;return r=(t||0).toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=w.Values.getUnitType(e)),[r,n]}function g(){var e={myParent:a.parentNode||n.body,position:w.getPropertyValue(a,"position"),fontSize:w.getPropertyValue(a,"fontSize")},r=e.position===V.lastPosition&&e.myParent===V.lastParent,i=e.fontSize===V.lastFontSize;V.lastParent=e.myParent,V.lastPosition=e.position,V.lastFontSize=e.fontSize;var s=100,l={};if(i&&r)l.emToPx=V.lastEmToPx,l.percentToPxWidth=V.lastPercentToPxWidth,l.percentToPxHeight=V.lastPercentToPxHeight;else{var u=o(a).isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");y.init(u),e.myParent.appendChild(u),v.each(["overflow","overflowX","overflowY"],function(e,t){y.CSS.setPropertyValue(u,t,"hidden")}),y.CSS.setPropertyValue(u,"position",e.position),y.CSS.setPropertyValue(u,"fontSize",e.fontSize),y.CSS.setPropertyValue(u,"boxSizing","content-box"),v.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){y.CSS.setPropertyValue(u,t,s+"%")}),y.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=V.lastPercentToPxWidth=(parseFloat(w.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=V.lastPercentToPxHeight=(parseFloat(w.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=V.lastEmToPx=(parseFloat(w.getPropertyValue(u,"paddingLeft"))||1)/s,e.myParent.removeChild(u)}return null===V.remToPx&&(V.remToPx=parseFloat(w.getPropertyValue(n.body,"fontSize"))||16),null===V.vwToPx&&(V.vwToPx=parseFloat(t.innerWidth)/100,V.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=V.remToPx,l.vwToPx=V.vwToPx,l.vhToPx=V.vhToPx,y.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),a),l}if(s.begin&&0===T)try{s.begin.call($,$)}catch(e){setTimeout(function(){throw e},1)}if("scroll"===O){var m=/^x$/i.test(s.axis)?"Left":"Top",x=parseFloat(s.offset)||0,S,D,A;s.container?h.isWrapped(s.container)||h.isNode(s.container)?(s.container=s.container[0]||s.container,S=s.container["scroll"+m],A=S+v(a).position()[m.toLowerCase()]+x):s.container=null:(S=y.State.scrollAnchor[y.State["scrollProperty"+m]],D=y.State.scrollAnchor[y.State["scrollProperty"+("Left"===m?"Top":"Left")]],A=v(a).offset()[m.toLowerCase()]+x),l={scroll:{rootPropertyValue:!1,startValue:S,currentValue:S,endValue:A,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:m,alternateValue:D}},element:a},y.debug&&console.log("tweensContainer (scroll): ",l.scroll,a)}else if("reverse"===O){if(!o(a).tweensContainer)return void v.dequeue(a,s.queue);"none"===o(a).opts.display&&(o(a).opts.display="auto"),"hidden"===o(a).opts.visibility&&(o(a).opts.visibility="visible"),o(a).opts.loop=!1,o(a).opts.begin=null,o(a).opts.complete=null,k.easing||delete s.easing,k.duration||delete s.duration,s=v.extend({},o(a).opts,s);var M=v.extend(!0,{},o(a).tweensContainer);for(var P in M)if("element"!==P){var N=M[P].startValue;M[P].startValue=M[P].currentValue=M[P].endValue,M[P].endValue=N,h.isEmptyObject(k)||(M[P].easing=s.easing),y.debug&&console.log("reverse tweensContainer ("+P+"): "+JSON.stringify(M[P]),a)}l=M}else if("start"===O){var M;o(a).tweensContainer&&o(a).isAnimating===!0&&(M=o(a).tweensContainer),v.each(b,function(e,t){if(RegExp("^"+w.Lists.colors.join("$|^")+"$").test(e)){var n=p(t,!0),i=n[0],a=n[1],o=n[2];if(w.RegEx.isHex.test(i)){for(var s=["Red","Green","Blue"],l=w.Values.hexToRgb(i),u=o?w.Values.hexToRgb(o):r,c=0;c<s.length;c++)b[e+s[c]]=[l[c],a,u?u[c]:u];delete b[e]}}});for(var I in b){var R=p(b[I]),F=R[0],H=R[1],U=R[2];I=w.Names.camelCase(I);var q=w.Hooks.getRoot(I),L=!1;if(o(a).isSVG||w.Names.prefixCheck(q)[1]!==!1||w.Normalizations.registered[q]!==r){(s.display!==r&&null!==s.display&&"none"!==s.display||s.visibility&&"hidden"!==s.visibility)&&/opacity|filter/.test(I)&&!U&&0!==F&&(U=0),s._cacheValues&&M&&M[I]?(U===r&&(U=M[I].endValue+M[I].unitType),L=o(a).rootPropertyValueCache[q]):w.Hooks.registered[I]?U===r?(L=w.getPropertyValue(a,q),U=w.getPropertyValue(a,I,L)):L=w.Hooks.templates[q][1]:U===r&&(U=w.getPropertyValue(a,I));var _,B,Y,W=!1;if(_=d(I,U),U=_[0],Y=_[1],_=d(I,F),F=_[0].replace(/^([+-\/*])=/,function(e,t){return W=t,""}),B=_[1],U=parseFloat(U)||0,F=parseFloat(F)||0,"%"===B&&(/^(fontSize|lineHeight)$/.test(I)?(F/=100,B="em"):/^scale/.test(I)?(F/=100,B=""):/(Red|Green|Blue)$/i.test(I)&&(F=F/100*255,B="")),/[\/*]/.test(W))B=Y;else if(Y!==B&&0!==U)if(0===F)B=Y;else{f=f||g();var z=/margin|padding|left|right|width|text|word|letter/i.test(I)||/X$/.test(I)||"x"===I?"x":"y";switch(Y){case"%":U*="x"===z?f.percentToPxWidth:f.percentToPxHeight;break;case"px":break;default:U*=f[Y+"ToPx"]}switch(B){case"%":U*=1/("x"===z?f.percentToPxWidth:f.percentToPxHeight);break;case"px":break;default:U*=1/f[B+"ToPx"]}}switch(W){case"+":F=U+F;break;case"-":F=U-F;break;case"*":F=U*F;break;case"/":F=U/F}l[I]={rootPropertyValue:L,startValue:U,currentValue:U,endValue:F,unitType:B,easing:H},y.debug&&console.log("tweensContainer ("+I+"): "+JSON.stringify(l[I]),a)}else y.debug&&console.log("Skipping ["+q+"] due to a lack of browser support.")}l.element=a}l.element&&(w.Values.addClass(a,"velocity-animating"),j.push(l),""===s.queue&&(o(a).tweensContainer=l,o(a).opts=s),o(a).isAnimating=!0,T===C-1?(y.State.calls.length>1e4&&(y.State.calls=i(y.State.calls)),y.State.calls.push([j,$,s,null,E.resolver]),y.State.isTicking===!1&&(y.State.isTicking=!0,c())):T++)}var a=this,s=v.extend({},y.defaults,k),l={},f;if(o(a)===r&&y.init(a),parseFloat(s.delay)&&s.queue!==!1&&v.queue(a,s.queue,function(e){y.velocityQueueEntryFlag=!0,o(a).delayTimer={setTimeout:setTimeout(e,parseFloat(s.delay)),next:e}}),y.mock===!0)s.duration=1;else switch(s.duration.toString().toLowerCase()){case"fast":s.duration=200;break;case"normal":s.duration=m;break;case"slow":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}s.easing=u(s.easing,s.duration),s.begin&&!h.isFunction(s.begin)&&(s.begin=null),s.progress&&!h.isFunction(s.progress)&&(s.progress=null),s.c
1omplete&&!h.isFunction(s.complete)&&(s.complete=null),s.display!==r&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),"auto"===s.display&&(s.display=y.CSS.Values.getDisplayType(a))),s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&y.State.isMobile&&!y.State.isGingerbread,s.queue===!1?s.delay?setTimeout(e,s.delay):e():v.queue(a,s.queue,function(t,n){return n===!0?(E.promise&&E.resolver($),!0):(y.velocityQueueEntryFlag=!0,void e(t))}),""!==s.queue&&"fx"!==s.queue||"inprogress"===v.queue(a)[0]||v.dequeue(a)}var l=arguments[0]&&(v.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||h.isString(arguments[0].properties)),p,d,g,$,b,k;if(h.isWrapped(this)?(p=!1,g=0,$=this,d=this):(p=!0,g=1,$=l?arguments[0].elements:arguments[0]),$=a($)){l?(b=arguments[0].properties,k=arguments[0].options):(b=arguments[g],k=arguments[g+1]);var C=$.length,T=0;if("stop"!==b&&!v.isPlainObject(k)){var S=g+1;k={};for(var D=S;D<arguments.length;D++)h.isArray(arguments[D])||!/fast|normal|slow/i.test(arguments[D].toString())&&!/^\d/.test(arguments[D])?h.isString(arguments[D])||h.isArray(arguments[D])?k.easing=arguments[D]:h.isFunction(arguments[D])&&(k.complete=arguments[D]):k.duration=arguments[D]}var E={promise:null,resolver:null,rejecter:null};p&&y.Promise&&(E.promise=new y.Promise(function(e,t){E.resolver=e,E.rejecter=t}));var O;switch(b){case"scroll":O="scroll";break;case"reverse":O="reverse";break;case"stop":v.each($,function(e,t){o(t)&&o(t).delayTimer&&(clearTimeout(o(t).delayTimer.setTimeout),o(t).delayTimer.next&&o(t).delayTimer.next(),delete o(t).delayTimer)});var A=[];return v.each(y.State.calls,function(e,t){t&&v.each(t[1],function(n,i){var a=h.isString(k)?k:"";return k!==r&&t[2].queue!==a?!0:void v.each($,function(t,n){n===i&&(k!==r&&(v.each(v.queue(n,a),function(e,t){h.isFunction(t)&&t(null,!0)}),v.queue(n,a,[])),o(n)&&""===a&&v.each(o(n).tweensContainer,function(e,t){t.endValue=t.currentValue}),A.push(e))})})}),v.each(A,function(e,t){f(t,!0)}),E.promise&&E.resolver($),e();default:if(!v.isPlainObject(b)||h.isEmptyObject(b)){if(h.isString(b)&&y.Sequences[b]){var M=v.extend({},k),P=M.duration,N=M.delay||0;return M.backwards===!0&&($=$.reverse()),v.each($,function(e,t){parseFloat(M.stagger)?M.delay=N+parseFloat(M.stagger)*e:h.isFunction(M.stagger)&&(M.delay=N+M.stagger.call(t,e,C)),M.drag&&(M.duration=parseFloat(P)||(/^(callout|transition)/.test(b)?1e3:m),M.duration=Math.max(M.duration*(M.backwards?1-e/C:(e+1)/C),.75*M.duration,200)),y.Sequences[b].call(t,t,M||{},e,C,$,E.promise?E:r)}),e()}var I="Velocity: First argument ("+b+") was not a property map, a known action, or a registered sequence. Aborting.";return E.promise?E.rejecter(new Error(I)):console.log(I),e()}O="start"}var V={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},j=[];v.each($,function(e,t){h.isNode(t)&&s.call(t)});var M=v.extend({},y.defaults,k),R;if(M.loop=parseInt(M.loop),R=2*M.loop-1,M.loop)for(var F=0;R>F;F++){var H={delay:M.delay};F===R-1&&(H.display=M.display,H.visibility=M.visibility,H.complete=M.complete),x($,"reverse",H)}return e()}};y=v.extend(x,y),y.animate=x;var k=t.requestAnimationFrame||d;return y.State.isMobile||n.hidden===r||n.addEventListener("visibilitychange",function(){n.hidden?(k=function(e){return setTimeout(function(){e(!0)},16)},c()):k=t.requestAnimationFrame||d}),e.Velocity=y,e!==t&&(e.fn.velocity=x,e.fn.velocity.defaults=y.defaults),v.each(["Down","Up"],function(e,t){y.Sequences["slide"+t]=function(e,n,i,a,o,s){var l=v.extend({},n),u=l.begin,c=l.complete,f={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},p={};l.display===r&&(l.display="Down"===t?"inline"===y.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(o,o),p.overflow=e.style.overflow,e.style.overflow="hidden";for(var n in f){p[n]=e.style[n];var r=y.CSS.getPropertyValue(e,n);f[n]="Down"===t?[r,0]:[0,r]}},l.complete=function(){for(var t in p)e.style[t]=p[t];
1c&&c.call(o,o),s&&s.resolver(o)},y(e,f,l)}}),v.each(["In","Out"],function(e,t){y.Sequences["fade"+t]=function(e,n,i,a,o,s){var l=v.extend({},n),u={opacity:"In"===t?1:0},c=l.complete;l.complete=i!==a-1?l.begin=null:function(){c&&c.call(o,o),s&&s.resolver(o)},l.display===r&&(l.display="In"===t?"auto":"none"),y(this,u,l)}}),y}(window.jQuery||window.Zepto||window,window,document)});(function(e){if(typeof module==="object"&&typeof module.exports==="object"){module.exports=e()}else if(typeof define==="function"&&define.amd){define(["velocity"],e)}else{e()}})(function(){return function(e,t,n,r){if(!e.Velocity||!e.Velocity.Utilities){t.console&&console.log("Velocity UI Pack: Velocity must be loaded first. Aborting.");return}else if(!e.Velocity.version||e.Velocity.version.major<=0&&e.Velocity.version.minor<=11&&e.Velocity.version.patch<8){var i="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";alert(i);throw new Error(i)}e.Velocity.RegisterUI=function(t,n){function i(t,n,r,i){var a=0,o;e.Velocity.Utilities.each(t.nodeType?[t]:t,function(t,n){if(i){r+=t*i}o=n.parentNode;e.Velocity.Utilities.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(t,r){a+=parseFloat(e.Velocity.CSS.getPropertyValue(n,r))})});e.Velocity.animate(o,{height:(n==="In"?"+":"-")+"="+a},{queue:false,easing:"ease-in-out",duration:r*(n==="In"?.6:1)})}e.Velocity.Sequences[t]=function(a,o,s,l,u,c){var f=s===l-1;for(var p=0;p<n.calls.length;p++){var d=n.calls[p],h=d[0],v=o.duration||n.defaultDuration||1e3,g=d[1],m=d[2]||{},$={};$.duration=v*(g||1);$.queue=o.queue||"";$.easing=m.easing||"ease";$.delay=m.delay||0;$._cacheValues=m._cacheValues||true;if(p===0){$.delay+=o.delay||0;if(s===0){$.begin=function(){o.begin&&o.begin.call(u,u);var e=t.match(/(In|Out)$/);if(o.animateParentHeight&&e){i(u,e[0],v+$.delay,o.stagger)}}}if(o.display!==null){if(o.display!==r&&o.display!=="none"){$.display=o.display}else if(/In$/.test(t)){var y=e.Velocity.CSS.Values.getDisplayType(a);$.display=y==="inline"?"inline-block":y}}if(o.visibility&&o.visibility!=="hidden"){$.visibility=o.visibility}}if(p===n.calls.length-1){function b(){if((o.display===r||o.display==="none")&&/Out$/.test(t)){e.Velocity.Utilities.each(u.nodeType?[u]:u,function(t,n){e.Velocity.CSS.setPropertyValue(n,"display","none")})}o.complete&&o.complete.call(u,u);if(c){c.resolver(u||a)}}$.complete=function(){if(n.reset){for(var t in n.reset){var r=n.reset[t];if(typeof r==="string"||typeof r==="number"){n.reset[t]=[n.reset[t],n.reset[t]]}}var i={duration:0,queue:false};if(f){i.complete=b}e.Velocity.animate(a,n.reset,i)}else if(f){b()}};if(o.visibility==="hidden"){$.visibility=o.visibility}}e.Velocity.animate(a,h,$)}};return e.Velocity};e.Velocity.RegisterUI.packagedEffects={"callout.bounce":{defaultDuration:550,calls:[[{translateY:-30},.25],[{translateY:0},.125],[{translateY:-15},.125],[{translateY:0},.25]]},"callout.shake":{defaultDuration:800,calls:[[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:0},.125]]},"callout.flash":{defaultDuration:1100,calls:[[{opacity:[0,"easeInOutQuad",1]},.25],[{opacity:[1,"easeInOutQuad"]},.25],[{opacity:[0,"easeInOutQuad"]},.25],[{opacity:[1,"easeInOutQuad"]},.25]]},"callout.pulse":{defaultDuration:825,calls:[[{scaleX:1.1,scaleY:1.1},.5],[{scaleX:1,scaleY:1},.5]]},"callout.swing":{defaultDuration:950,calls:[[{rotateZ:15},.2],[{rotateZ:-10},.2],[{rotateZ:5},.2],[{rotateZ:-5},.2],[{rotateZ:0},.2]]},"callout.tada":{defaultDuration:1e3,calls:[[{scaleX:.9,scaleY:.9,rotateZ:-3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:-3},.1],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],[{scaleX:1,scaleY:1,rotateZ:0},.2]]},"transition.fadeIn":{defaultDuration:500,calls:[[{opacity:[1,0]}]]},"transition.fadeOut":{defaultDuration:500,calls:[[{opacity:[0,1]}]]},"transition.flipXIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateY:[0,-55]}]],reset:{transformPerspective:0}},"transition.flipXOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateY:55}]],reset:{transformPerspective:0,rotateY:0}},"transition.flipYIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateX:[0,-45]}]],reset:{transformPerspective:0}},"transition.flipYOut":{defaultDuration:800,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateX:25}]],reset:{transformPerspective:0,rotateX:0}},"transition.flipBounceXIn":{defaultDuration:900,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateY:[-10,90]},.5],[{opacity:.8,rotateY:10},.25],[{opacity:1,rotateY:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceXOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateY:-10},.5],[{opacity:0,rotateY:90},.5]],reset:{transformPerspective:0,rotateY:0}},"transition.flipBounceYIn":{defaultDuration:850,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateX:[-10,90]},.5],[{opacity:.8,rotateX:10},.25],[{opacity:1,rotateX:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceYOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateX:-15},.5],[{opacity:0,rotateX:90},.5]],reset:{transformPerspective:0,rotateX:0}},"transition.swoopIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["100%","50%"],transformOriginY:["100%","100%"],scaleX:[1,0],scaleY:[1,0],translateX:[0,-700],translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%"}},"transition.swoopOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformOriginX:["50%","100%"],transformOriginY:["100%","100%"],scaleX:0,scaleY:0,translateX:-700,translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%",scaleX:1,scaleY:1,translateX:0}},"transition.whirlIn":{defaultDuration:900,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,0],scaleY:[1,0],rotateY:[0,160]}]]},"transition.whirlOut":{defaultDuration:900,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:0,scaleY:0,rotateY:160}]],reset:{scaleX:1,scaleY:1,rotateY:0}},"transition.shrinkIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,1.5],scaleY:[1,1.5],translateZ:0}]]},"transition.shrinkOut":{defaultDuration:650,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:1.3,scaleY:1.3,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.expandIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,.625],scaleY:[1,.625],translateZ:0}]]},"transition.expandOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:.5,scaleY:.5,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.bounceIn":{defaultDuration:800,calls:[[{opacity:[1,0],scaleX:[1.05,.3],scaleY:[1.05,.3]},.4],[{scaleX:.9,scaleY:.9,translateZ:0},.2],[{scaleX:1,scaleY:1},.5]]},"transition.bounceOut":{defaultDuration:800,calls:[[{scaleX:.95,scaleY:.95},.4],[{scaleX:1.1,scaleY:1.1,translateZ:0},.4],[{opacity:[0,1],scaleX:.3,scaleY:.3},.2]],reset:{scaleX:1,scaleY:1}},"transition.bounceUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[-30,1e3]},.6,{easing:"easeOutCirc"}],[{translateY:10},.2],[{translateY:0},.2]]},"transition.bounceUpOut":{defaultDuration:1e3,calls:[[{translateY:20},.2],[{opacity:[0,"easeInCirc",1],translateY:-1e3},.8]],reset:{translateY:0}},"transition.bounceDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[30,-1e3]},.6,{easing:"easeOutCirc"}],[{translateY:-10},.2],[{translateY:0},.2]]},"transition.bounceDownOut":{defaultDuration:1e3,calls:[[{translateY:-20},.2],[{opacity:[0,"easeInCirc",1],translateY:1e3},.8]],reset:{translateY:0}},"transition.bounceLeftIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[30,-1250]},.6,{easing:"easeOutCirc"}],[{translateX:-10},.2],[{translateX:0},.2]]},"transition.bounceLeftOut":{defaultDuration:750,calls:[[{translateX:30},.2],[{opacity:[0,"easeInCirc",1],translateX:-1250},.8]],reset:{translateX:0}},"transition.bounceRightIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[-30,1250]},.6,{easing:"easeOutCirc"}],[{translateX:10},.2],[{translateX:0},.2]]},"transition.bounceRightOut":{defaultDuration:750,calls:[[{translateX:-30},.2],[{opacity:[0,"easeInCirc",1],translateX:1250},.8]],reset:{translateX:0}}
1,"transition.slideUpIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,20],translateZ:0}]]},"transition.slideUpOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:-20,translateZ:0}]],reset:{translateY:0}},"transition.slideDownIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,-20],translateZ:0}]]},"transition.slideDownOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:20,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,-20],translateZ:0}]]},"transition.slideLeftOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:-20,translateZ:0}]],reset:{translateX:0}},"transition.slideRightIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,20],translateZ:0}]]},"transition.slideRightOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:20,translateZ:0}]],reset:{translateX:0}},"transition.slideUpBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,75],translateZ:0}]]},"transition.slideUpBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:-75,translateZ:0}]],reset:{translateY:0}},"transition.slideDownBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,-75],translateZ:0}]]},"transition.slideDownBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:75,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,-75],translateZ:0}]]},"transition.slideLeftBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:-75,translateZ:0}]],reset:{translateX:0}},"transition.slideRightBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,75],translateZ:0}]]},"transition.slideRightBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:75,translateZ:0}]],reset:{translateX:0}},"transition.perspectiveUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveUpOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveDownOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveLeftIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveLeftOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}},"transition.perspectiveRightIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveRightOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}}};for(var a in e.Velocity.RegisterUI.packagedEffects){e.Velocity.RegisterUI(a,e.Velocity.RegisterUI.packagedEffects[a])}}(window.jQuery||window.Zepto||window,window,document)});if(!Object.prototype.watch){Object.defineProperty(Object.prototype,"watch",{enumerable:false,configurable:true,writable:false,value:function(e,t){var n=this[e],r=n,i=function(){return r},a=function(i){n=r;return r=t.call(this,e,n,i)};if(delete this[e]){Object.defineProperty(this,e,{get:i,set:a,enumerable:true,configurable:true})}}})}if(!Object.prototype.unwatch){Object.defineProperty(Object.prototype,"unwatch",{enumerable:false,configurable:true,writable:false,value:function(e){var t=this[e];delete this[e];this[e]=t}})}(function(){"use strict";var e=angular.module("nhfApp",["ngRoute","nhfApp.global","nhfApp.home","nhfApp.pricing","nhfApp.contact","nhfApp.api","nhfApp.privacy-policy","nhfApp.terms-of-use","nhfApp.site-map","nhfApp.login","angulartics","angulartics.google.analytics","nhfApp.mls-identifiers","LocalStorageModule","ngSanitize","vcRecaptcha"]).config(["$routeProvider","$locationProvider",function(e,t){e.otherwise({redirectTo:"home"});t.html5Mode({enabled:true,requireBase:false})}]).config(["localStorageServiceProvider",function(e){e.setPrefix("nhf").setStorageType("sessionStorage").setNotify(true,true)}]).directive("showErrors",["$timeout","showErrorsConfig",function(e,t){var n,r;n=function(e){var n;n=t.showSuccess;if(e&&e.showSuccess!=null){n=e.showSuccess}return n};r=function(t,r,i,a){var o,s,l,u,c,f,p;o=false;c=t.$eval(i.showErrors);f=n(c);s=r[0].querySelector("[name]");u=angular.element(s);l=u.attr("name");if(!l){throw"show-errors element has no child input elements with a 'name' attribute"}u.bind("blur",function(){o=true;return p(a[l].$invalid)});
1t.$watch(function(){return a[l]&&a[l].$invalid},function(e){if(!o){return}return p(e)});t.$on("show-errors-check-validity",function(){return p(a[l].$invalid)});t.$on("show-errors-reset",function(){return e(function(){r.removeClass("has-error");r.removeClass("has-success");return o=false},0,false)});return p=function(e){r.toggleClass("has-error",e);if(e){var n="";angular.forEach(a[l].$error,function(e,r){if(l in t.validationMessages){if(r in t.validationMessages[l]){n+=t.validationMessages[l][r]+"\r\n"}}});if(r.data("bs.tooltip")){r.attr("title",n).tooltip("fixTitle").tooltip("show")}else{r.tooltip({title:n,trigger:"manual"}).tooltip("show")}}else{r.tooltip("destroy")}if(f){return r.toggleClass("has-success",!e)}}};return{restrict:"A",require:"^form",compile:function(e,t){if(!e.hasClass("form-group")){throw"show-errors element does not have the 'form-group' class"}return r}}}]).provider("showErrorsConfig",function(){var e;e=false;this.showSuccess=function(t){return e=t};this.$get=function(){return{showSuccess:e}}}).directive("passwordVerify",function(){return{require:"ngModel",scope:{passwordVerify:"="},link:function(e,t,n,r){e.$watch(function(){var t;if(e.passwordVerify||r.$viewValue){t=e.passwordVerify+"_"+r.$viewValue}return t},function(t){if(t){r.$parsers.unshift(function(t){var n=e.passwordVerify;if(n!==t){r.$setValidity("passwordVerify",false);return}else{r.$setValidity("passwordVerify",true);return t}})}})}}}).directive("velocityToggle",[function(){return{restrict:"A",link:function(e,t,n){$(t).on("click",function(){$(t).closest(".animate-wrapper").toggleClass("in");$(t).siblings(".animate-velocity").toggleClass("in")})}}}]);e.run(["$http",function(e){e.get("/csrfToken").success(function(t){e.defaults.headers.common["x-csrf-token"]=t._csrf})}])})();var is_mobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);var active={nav:""};active.watch("nav",function(e,t,n){$("#navbar-main .active").removeClass("active");$("#navbar-main li > a[href*='"+n+"']").addClass("active");return n});function centerModals(){$(".modal").each(function(e){var t=$(this).clone().css("display","block").appendTo("body");var n=Math.round((t.height()-t.find(".modal-content").height())/2);n=n>0?n:0;t.remove();$(this).find(".modal-content").css("margin-top",n)})}if(is_mobile){$(".nav.navbar-nav li, .brand-logo").on("click",function(){if($("#navbar-main").is(":visible")){$(".navbar-toggle").click()}})}if($(".carousel-inner").length>0){$(".carousel-inner .item:not('.no-swipe')").swipe({swipeLeft:function(e,t,n,r,i){$(this).parent().carousel("next")},swipeRight:function(){$(this).parent().carousel("prev")},threshold:0})}$(window).on("resize",centerModals);(function(){"use strict";angular.module("nhfApp.api",["ngRoute"]).config(["$routeProvider",function(e){e.when("/api",{redirectTo:"contact"})}])})();(function(){"use strict";angular.module("nhfApp.global",["LocalStorageModule","ngNotify"]).controller("NHFCtrl",["$scope","localStorageService","ngNotify",function(e,t,n){n.addTheme("nhfNotification","nhf-notification");n.config({theme:"nhfNotification",position:"top",type:"info",sticky:true,button:true,html:true,target:"#notification-holder"})}])})();(function(){"use strict";angular.module("nhfApp.home",["ngRoute"]).config(["$routeProvider",function(e){e.when("/home",{templateUrl:"/views/home/home.html",controller:"HomeCtrl"})}]).controller("HomeCtrl",["$scope",function(e){}])})();(function(){"use strict";angular.module("nhfApp.login",["ngRoute","ui.bootstrap"]).config(["$routeProvider",function(e){e.when("/login",{templateUrl:"/views/login/login.html",controller:"LoginCtrl"});e.when("/login/passwordReset/:token",{templateUrl:"/views/login/passwordReset.html",controller:"ResetCtrl"})}]).controller("LoginCtrl",["$scope","$http","$window",function(e,t,n){active.nav="login";e.loginFormVisible=true;e.resetFormVisible=false;e.submitLogin=function(){t({method:"POST",url:"/account/login",data:$.param(e.login),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).success(function(t){if(!t.success){e.message=t.message;e.messageClass="danger"}else{e.message=t.message;e.messageClass="success";r(myBaseUrl+"/token-login",t.token)}})};e.forgotPassword=function(){e.loginFormVisible=false;e.resetFormVisible=true};e.submitForgotPassword=function(){t({method:"POST",url:"/account/resetPassword",data:$.param(e.reset),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).success(function(t){if(t.success){e.message=null;e.form_submitted=true;e.resetFormVisible=false;e.loginFormVisible=true;e.message="We just sent you an email containing instructions on how to reset your password.";e.messageClass="success"}else{e.message=e.reset.email_address+" has not been registerd with New Home Feed.";e.messageClass="danger"}})};var r=function(e,t,n){n=n||"post";var r=document.createElement("form");r.setAttribute("method",n);r.setAttribute("action",e);for(var i in t){if(t.hasOwnProperty(i)){var a=document.createElement("input");a.setAttribute("type","hidden");a.setAttribute("name",i);a.setAttribute("value",t[i]);r.appendChild(a)}}document.body.appendChild(r);r.submit()}}]).controller("ResetCtrl",["$scope","$http","$window","$routeParam
1s",function(e,t,n,r){active.nav="";e.resetFormVisible=false;var i=r.token;e.reset={token:i};e.validationMessages={password:{required:"Password is required,",minlength:"Password must be at least 6 characters long."},password_confirmation:{required:"Password is required,",passwordVerify:"Passwords do not match."}};t.get("/account/validateResetPasswordToken",{params:{token:i}}).success(function(t,n){e.resetFormVisible=true;e.reset.email_address=t.email;e.reset.token=i});e.submitReset=function(){t({method:"POST",url:"/account/submitPasswordReset",data:$.param(e.reset),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).success(function(t){if(t.success){e.resetFormVisible=false;e.form_submitted=true}else{e.message="There was an error: ";if(t.error){e.message+=t.error}}})}}])})();(function(){"use strict";angular.module("nhfApp.mls-identifiers",["ngRoute"]).config(["$routeProvider",function(e){e.when("/mls-identifiers",{templateUrl:"/views/mls-identifiers/mls-identifiers.html",controller:"mls-identifiers-Ctrl"})}]).controller("mls-identifiers-Ctrl",["$scope","$http",function(e,t){t.get("/mls-name-list").then(t=>{e.names=t.data.names})}])})();(function(){"use strict";angular.module("nhfApp.pricing",["ngRoute"]).config(["$routeProvider",function(e){e.when("/pricing",{templateUrl:"/views/pricing/pricing.html",controller:"PricingCtrl"})}]).controller("PricingCtrl",["$scope",function(e){active.nav="pricing"}])})();(function(){"use strict";angular.module("nhfApp.privacy-policy",["ngRoute"]).config(["$routeProvider",function(e){e.when("/privacy-policy",{templateUrl:"/views/privacy-policy/privacy-policy.html",controller:"privacy-policy-Ctrl"})}]).controller("privacy-policy-Ctrl",["$scope",function(e){active.nav="privacy-policy"}])})();(function(){"use strict";angular.module("nhfApp.site-map",["ngRoute"]).config(["$routeProvider",function(e){e.when("/site-map",{templateUrl:"/views/site-map/site-map.html",controller:"site-map-Ctrl"})}]).controller("site-map-Ctrl",["$scope",function(e){active.nav="site-map"}])})();(function(){"use strict";angular.module("nhfApp.terms-of-use",["ngRoute"]).config(["$routeProvider",function(e){e.when("/terms-of-use",{templateUrl:"/views/terms-of-use/terms-of-use.html",controller:"terms-of-use-Ctrl"})}]).controller("terms-of-use-Ctrl",["$scope",function(e){active.nav="terms-of-use"}])})();(function(){"use strict";angular.module("nhfApp.contact",["ngRoute","ngAnimate"])})();(function(){"use strict";angular.module("nhfApp.contact").config(["$routeProvider",function(e){e.when("/contact",{templateUrl:"/views/contact/contact.html",controller:"ContactCtrl"})}])})();(function(){"use strict";angular.module("nhfApp.contact").controller("ContactCtrl",["$scope","ValidationService","ContentService","FormSubmitService",function(e,t,n,r){active.nav="contact";e.formSubmitted=false;e.messageClass="danger";e.validationMessages=t.getValidationMessages();e.buildManageOptions=n.getBuildManageOptions();e.submit=function(){r.send("/contact/signup",e.signup).then(function(t){if(t.data.success){e.formSubmitted=true}else{e.message=t.data.errors}})}}])})();(function(){"use strict";angular.module("nhfApp.contact").service("ContentService",[function(){var e={};e.getBuildManageOptions=function(){return[{label:"20+ Communities",value:"20+ Communities"},{label:"10-19 Communities",value:"10-19 Communities"},{label:"5-9 Communities",value:"5-9 Communities"},{label:"1-4 Communities",value:"1-4 Communities"},{label:"Custom builder: 1-9 homes / year",value:"Custom builder: 1-9 homes / year"},{label:"Custom builder: 10-20 homes / year",value:"Custom builder: 10-20 homes / year"},{label:"Other",value:"Other"}]};return e}])})();(function(){"use strict";angular.module("nhfApp.contact").service("FormSubmitService",["$http",function(e){let t={};t.send=function(t,n){let r={success:false,errors:false};return e({method:"POST",url:t,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:$.param(n)}).success(function(e,t,n,i){if(e.success){r.success=true}else{r.errors=e.error.code}}).error(function(e,t,n,r){console.log("FormSubmitService Error")})};return t}])})();(function(){"use strict";angular.module("nhfApp.contact").service("ValidationService",["$http",function(e){var t={};t.getValidationMessages=function(){return{first_name:{required:"First Name is required."},last_name:{required:"Last Name is required,"},email:{required:"Email address is required.",email:"Email address is invali
1d,",accountEmailExists:"This email has already been registered."},company_name:{required:"Company Name is required."},phone:{required:"Phone number is requred.",number:"Please enter a valid phone number.",minlength:"Phone number should be 10 digits.",maxlength:"Phone number should be 10 digits."}}};return t}])})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.