!function(e){"use strict";function t(e){if(!w(e))return mr;b(e.objectMaxDepth)&&(mr.objectMaxDepth=n(e.objectMaxDepth)?e.objectMaxDepth:NaN),b(e.urlErrorParamsEnabled)&&j(e.urlErrorParamsEnabled)&&(mr.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function n(e){return S(e)&&e>0}function r(e,t){t=t||Error;var n="https://errors.angularjs.org/1.8.2/",r=n.replace(".","\\.")+"[\\s\\S]*",i=new RegExp(r,"g");return function(){var r,o,a=arguments[0],s=arguments[1],u="["+(e?e+":":"")+a+"] ",l=H(arguments,2).map((function(e){return he(e,mr.objectMaxDepth)}));if(u+=s.replace(/\{\d+\}/g,(function(e){var t=+e.slice(1,-1);return t<l.length?l[t].replace(i,""):e})),u+="\n"+n+(e?e+"/":"")+a,mr.urlErrorParamsEnabled)for(o=0,r="?";o<l.length;o++,r="&")u+=r+"p"+o+"="+encodeURIComponent(l[o]);return new t(u)}}function i(e){if(null==e||M(e))return!1;if(A(e)||C(e)||dr&&e instanceof dr)return!0;var t="length"in Object(e)&&e.length;return S(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(E(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(A(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r<a;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(x(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)gr.call(e,r)&&t.call(n,e[r],r,e);return e}function a(e,t,n){for(var r=Object.keys(e).sort(),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 u(){return++Er}function l(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function c(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(w(a)||E(a))for(var s=Object.keys(a),u=0,f=s.length;u<f;u++){var d=s[u],p=a[d];n&&w(p)?k(p)?e[d]=new Date(p.valueOf()):O(p)?e[d]=new RegExp(p):p.nodeName?e[d]=p.cloneNode(!0):V(p)?e[d]=p.clone():"__proto__"!==d&&(w(e[d])||(e[d]=A(p)?[]:{}),c(e[d],[p],!0)):e[d]=p}}return l(e,r),e}function f(e){return c(e,wr.call(arguments,1),!1)}function d(e){return c(e,wr.call(arguments,1),!0)}function p(e){return parseInt(e,10)}function h(e,t){return f(Object.create(e),t)}function m(){}function v(e){return e}function $(e){return function(){return e}}function g(e){return E(e.toString)&&e.toString!==Sr}function y(e){return void 0===e}function b(e){return void 0!==e}function w(e){return null!==e&&"object"==typeof e}function x(e){return null!==e&&"object"==typeof e&&!kr(e)}function C(e){return"string"==typeof e}function S(e){return"number"==typeof e}function k(e){return"[object Date]"===Sr.call(e)}function A(e){return Array.isArray(e)||e instanceof Array}function T(e){switch(Sr.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function E(e){return"function"==typeof e}function O(e){return"[object RegExp]"===Sr.call(e)}function M(e){return e&&e.window===e}function D(e){return e&&e.$evalAsync&&e.$watch}function j(e){return"boolean"==typeof e}function I(e){return e&&E(e.then)}function V(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function _(e){return yr(e.nodeName||e[0]&&e[0].nodeName)}function N(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function P(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function L(e,t,r){function i(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(A(e))for(var o=0,s=e.length;o<s;o++)t.push(a(e[o],n));else if(x(e))for(r in e)t[r]=a(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=a(e[r],n));else for(r in e)gr.call(e,r)&&(t[r]=a(e[r],n));return l(t,i),t}function a(e,t){if(!w(e))return e;var n=s.indexOf(e);if(-1!==n)return u[n];if(M(e)||D(e))throw Ar("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=function(e){switch(Sr.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(a(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(E(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===o&&(o=A(e)?[]:Object.create(kr(e)),r=!0),s.push(e),u.push(o),r?i(e,o,t):o}var s=[],u=[];if(r=n(r)?r:NaN,t){if(function(e){return e&&S(e.length)&&Mr.test(Sr.call(e))}(t)||function(e){return"[object ArrayBuffer]"===Sr.call(e)}(t))throw Ar("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Ar("cpi","Can't copy! Source and destination are identical.");return A(t)?t.length=0:o(t,(function(e,n){"$$hashKey"!==n&&delete t[n]})),s.push(e),u.push(t),i(e,t,r)}return a(e,r)}function R(e,t){return e===t||e!=e&&t!=t}function q(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o===typeof t&&"object"===o){if(!A(e)){if(k(e))return!!k(t)&&R(e.getTime(),t.getTime());if(O(e))return!!O(t)&&e.toString()===t.toString();if(D(e)||D(t)||M(e)||M(t)||A(t)||k(t)||O(t))return!1;for(r in i=fe(),e)if("$"!==r.charAt(0)&&!E(e[r])){if(!q(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&b(t[r])&&!E(t[r]))return!1;return!0}if(!A(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!q(e[r],t[r]))return!1;return!0}}return!1}function U(e,t,n){return e.concat(wr.call(t,n))}function H(e,t){return wr.call(e,t||0)}function F(e,t){var n=arguments.length>2?H(arguments,2):[];return!E(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,U(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function B(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:M(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":D(n)&&(r="$SCOPE"),r}function z(e,t){if(!y(e))return S(t)||(t=t?2:null),JSON.stringify(e,B,t)}function W(e){return C(e)?JSON.parse(e):e}function G(e,t){e=e.replace(_r,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return Or(n)?t:n}function K(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function J(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return K(e,n*(G(t,r)-r))}function Y(e){e=dr(e).clone().empty();var t=dr("<div></div>").append(e).html();try{return e[0].nodeType===Ur?yr(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(e,t){return"<"+yr(t)}))}catch(e){return yr(t)}}function X(e){try{return decodeURIComponent(e)}catch(e){}}function Z(e){var t={};return o((e||"").split("&"),(function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),b(r=X(r))&&(i=!b(i)||X(i),gr.call(t,r)?A(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))})),t}function Q(e){return ee(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ee(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":"+")}function te(t,n){var r,i,a={};if(o(Nr,(function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))})),o(Nr,(function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))})),r){if(!Pr)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==function(e,t){var n,r,i=Nr.length;for(r=0;r<i;++r)if(n=Nr[r]+t,C(n=e.getAttribute(n)))return n;return null}(r,"strict-di"),n(r,i?[i]:[],a)}}function ne(t,n,r){w(r)||(r={}),r=f({strictDi:!1},r);var i=function(){if((t=dr(t)).injector()){var i=t[0]===e.document?"document":Y(t);throw Ar("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=Ke(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply((function(){t.data("$injector",r),n(t)(e)}))}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),Tr.resumeBootstrap=function(e){return o(e,(function(e){n.push(e)})),i()},E(Tr.resumeDeferredBootstrap)&&Tr.resumeDeferredBootstrap()}function re(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ie(e){var t=Tr.element(e).injector();if(!t)throw Ar("test","no injector found for element argument to getTestability");return t.get("$$testability")}function oe(e,t){return t=t||"_",e.replace(Lr,(function(e,n){return(n?t:"")+e.toLowerCase()}))}function ae(){we.legacyXHTMLReplacement=!0}function se(e,t,n){if(!e)throw Ar("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function ue(e,t,n){return n&&A(e)&&(e=e[e.length-1]),se(E(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function le(e,t){if("hasOwnProperty"===e)throw Ar("badname","hasOwnProperty is not a valid {0} name",t)}function ce(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=dr(wr.call(e,0,i))),t.push(n));return t||e}function fe(){return Object.create(null)}function de(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!g(e)||A(e)||k(e)?z(e):e.toString()}return e}function pe(e,t){if(A(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(w(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function he(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):y(e)?"undefined":"string"!=typeof e?function(e,t){var r=[];return n(t)&&(e=Tr.copy(e,null,t)),JSON.stringify(e,(function(e,t){if(w(t=B(e,t))){if(r.indexOf(t)>=0)return"...";r.push(t)}return t}))}(e,t):e}function me(e,t){return t.toUpperCase()}function ve(e){return e.replace(Kr,me)}function $e(e){return!Qr.test(e)}function ge(e){var t=e.nodeType;return t===qr||!t||t===Fr}function ye(t,n){var r,i,a,s,u,l=n.createDocumentFragment(),c=[];if($e(t))c.push(n.createTextNode(t));else{if(r=l.appendChild(n.createElement("div")),i=(ei.exec(t)||["",""])[1].toLowerCase(),s=we.legacyXHTMLReplacement?t.replace(ti,"<$1></$2>"):t,fr<10)for(a=ri[i]||ri._default,r.innerHTML=a[1]+s+a[2],u=a[0];u--;)r=r.firstChild;else{for(u=(a=ni[i]||[]).length;--u>-1;)r.appendChild(e.document.createElement(a[u])),r=r.firstChild;r.innerHTML=s}c=U(c,r.childNodes),(r=l.firstChild).textContent=""}return l.textContent="",l.innerHTML="",o(c,(function(e){l.appendChild(e)})),l}function be(t,n){var r;return n=n||e.document,(r=Zr.exec(t))?[n.createElement(r[1])]:(r=ye(t,n))?r.childNodes:[]}function we(e){if(e instanceof we)return e;var t;if(C(e)&&(e=Dr(e),t=!0),!(this instanceof we)){if(t&&"<"!==e.charAt(0))throw Xr("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new we(e)}t?Ie(this,be(e)):E(e)?Re(e):Ie(this,e)}function xe(e){return e.cloneNode(!0)}function Ce(e,t){!t&&ge(e)&&dr.cleanData([e]),e.querySelectorAll&&dr.cleanData(e.querySelectorAll("*"))}function Se(e){var t;for(t in e)return!1;return!0}function ke(e){var t=e.ng339,n=t&&Wr[t],r=n&&n.events,i=n&&n.data;i&&!Se(i)||r&&!Se(r)||(delete Wr[t],e.ng339=void 0)}function Ae(e,t,n,r){if(b(r))throw Xr("offargs","jqLite#off() does not support the `selector` argument");var i=Ee(e),a=i&&i.events,s=i&&i.handle;if(s){if(t){var u=function(t){var r=a[t];b(n)&&P(r||[],n),b(n)&&r&&r.length>0||(e.removeEventListener(t,s),delete a[t])};o(t.split(" "),(function(e){u(e),Yr[e]&&u(Yr[e])}))}else for(t in a)"$destroy"!==t&&e.removeEventListener(t,s),delete a[t];ke(e)}}function Te(e,t){var n=e.ng339,r=n&&Wr[n];r&&(t?delete r.data[t]:r.data={},ke(e))}function Ee(e,t){var n=e.ng339,r=n&&Wr[n];return t&&!r&&(e.ng339=n=++Gr,r=Wr[n]={events:{},data:{},handle:void 0}),r}function Oe(e,t,n){if(ge(e)){var r,i=b(n),o=!i&&t&&!w(t),a=!t,s=Ee(e,!o),u=s&&s.data;if(i)u[ve(t)]=n;else{if(a)return u;if(o)return u&&u[ve(t)];for(r in t)u[ve(r)]=t[r]}}}function Me(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function De(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),(function(e){e=Dr(e),r=r.replace(" "+e+" "," ")})),r!==n&&e.setAttribute("class",Dr(r))}}function je(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),(function(e){e=Dr(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")})),r!==n&&e.setAttribute("class",Dr(r))}}function Ie(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Ve(e,t){return _e(e,"$"+(t||"ngController")+"Controller")}function _e(e,t,n){e.nodeType===Fr&&(e=e.documentElement);for(var r=A(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(b(n=dr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===Br&&e.host}}function Ne(e){for(Ce(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Pe(e,t){t||Ce(e);var n=e.parentNode;n&&n.removeChild(e)}function Le(t,n){"complete"===(n=n||e).document.readyState?n.setTimeout(t):dr(n).on("load",t)}function Re(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}function qe(e,t){var n=li[t.toLowerCase()];return n&&ci[_(e)]&&n}function Ue(e,t,n){n.call(e,t)}function He(e,t,n){var r=t.relatedTarget;r&&(r===e||si.call(e,r))||n.call(e,t)}function Fe(){this.$get=function(){return f(we,{hasClass:function(e,t){return e.attr&&(e=e[0]),Me(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),je(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),De(e,t)}})}}function Be(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return"function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||u)():r+":"+e}function ze(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function We(e){return Function.prototype.toString.call(e)}function Ge(e){var t=We(e).replace(yi,"");return t.match(mi)||t.match(vi)}function Ke(e,t){function n(e){return function(t,n){if(!w(t))return e(t,n);o(t,s(e))}}function r(e,t){if(le(e,"service"),(E(t)||A(t))&&(t=m.instantiate(t)),!t.$get)throw bi("pget","Provider '{0}' must define $get factory method.",e);return h[e+f]=t}function i(e,t){return function(){var n=b.invoke(t,this);if(y(n))throw bi("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function a(e,t,n){return r(e,{$get:!1!==n?i(e,t):t})}function u(e){se(y(e)||A(e),"modulesToLoad","not an array");var t,n=[];return o(e,(function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=m.get(r[0]);i[r[1]].apply(i,r[2])}}if(!p.get(e)){p.set(e,!0);try{C(e)?(t=hr(e),b.modules[e]=t,n=n.concat(u(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):E(e)||A(e)?n.push(m.invoke(e)):ue(e,"module")}catch(t){throw A(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),bi("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}})),n}function l(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===c)throw bi("cdep","Circular dependency found: {0}",t+" <- "+d.join(" <- "));return e[t]}try{return d.unshift(t),e[t]=c,e[t]=n(t,r),e[t]}catch(n){throw e[t]===c&&delete e[t],n}finally{d.shift()}}function i(e,n,i){for(var o=[],a=Ke.$$annotate(e,t,i),s=0,u=a.length;s<u;s++){var l=a[s];if("string"!=typeof l)throw bi("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}return{invoke:function(e,t,n,r){"string"==typeof n&&(r=n,n=null);var o=i(e,n,r);return A(e)&&(e=e[e.length-1]),function(e){if(fr||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return j(t)||(t=e.$$ngIsClass=/^class\b/.test(We(e))),t}(e)?(o.unshift(null),new(Function.prototype.bind.apply(e,o))):e.apply(t,o)},instantiate:function(e,t,n){var r=A(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))},get:r,annotate:Ke.$$annotate,has:function(t){return h.hasOwnProperty(t+f)||e.hasOwnProperty(t)}}}t=!0===t;var c={},f="Provider",d=[],p=new pi,h={$provide:{provider:n(r),factory:n(a),service:n((function(e,t){return a(e,["$injector",function(e){return e.instantiate(t)}])})),value:n((function(e,t){return a(e,$(t),!1)})),constant:n((function(e,t){le(e,"constant"),h[e]=t,v[e]=t})),decorator:function(e,t){var n=m.get(e+f),r=n.$get;n.$get=function(){var e=b.invoke(r,n);return b.invoke(t,null,{$delegate:e})}}}},m=h.$injector=l(h,(function(e,t){throw Tr.isString(t)&&d.push(t),bi("unpr","Unknown provider: {0}",d.join(" <- "))})),v={},g=l(v,(function(e,t){var n=m.get(e+f,t);return b.invoke(n.$get,n,void 0,e)})),b=g;h["$injector"+f]={$get:$(g)},b.modules=m.modules=fe();var x=u(e);return(b=g.get("$injector")).strictDi=t,o(x,(function(e){e&&b.invoke(e)})),b.loadNewModules=function(e){o(u(e),(function(e){e&&b.invoke(e)}))},b}function Je(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){if(e){e.scrollIntoView();var n=function(){var e=o.yOffset;if(E(e))e=e();else if(V(e)){var n=e[0];e="fixed"!==t.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom}else S(e)||(e=0);return e}();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function o(e){var t;(e=C(e)?e:S(e)?e.toString():n.hash())?(t=a.getElementById(e))||(t=function(e){var t=null;return Array.prototype.some.call(e,(function(e){if("a"===_(e))return t=e,!0})),t}(a.getElementsByName(e)))?i(t):"top"===e&&i(null):i(null)}var a=t.document;return e&&r.$watch((function(){return n.hash()}),(function(e,t){e===t&&""===e||Le((function(){r.$evalAsync(o)}))})),o}]}function Ye(e,t){return e||t?e?t?(A(e)&&(e=e.join(" ")),A(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function Xe(e){return w(e)?e:{}}function Ze(e,t,n,r,i){function a(){x=null,u()}function s(){q($=y($=C())?null:$,A)&&($=A),A=$,g=$}function u(){var e=g;s(),b===l.url()&&e===$||(b=l.url(),g=$,o(S,(function(e){e(l.url(),$)})))}var l=this,c=e.location,f=e.history,d=e.setTimeout,p=e.clearTimeout,h={},v=i(n);l.isMock=!1,l.$$completeOutstandingRequest=v.completeTask,l.$$incOutstandingRequestCount=v.incTaskCount,l.notifyWhenNoOutstandingRequests=v.notifyWhenNoPendingTasks;var $,g,b=c.href,w=t.find("base"),x=null,C=r.history?function(){try{return f.state}catch(e){}}:m;s(),l.url=function(t,n,i){if(y(i)&&(i=null),c!==e.location&&(c=e.location),f!==e.history&&(f=e.history),t){var o=g===i;if(t=$n(t).href,b===t&&(!r.history||o))return l;var a=b&&Dt(b)===Dt(t);return b=t,g=i,!r.history||a&&o?(a||(x=t),n?c.replace(t):a?c.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):c.href=t,c.href!==t&&(x=t)):(f[n?"replaceState":"pushState"](i,"",t),s()),x&&(x=t),l}return function(e){return e.replace(/#$/,"")}(x||c.href)},l.state=function(){return $};var S=[],k=!1,A=null;l.onUrlChange=function(t){return k||(r.history&&dr(e).on("popstate",a),dr(e).on("hashchange",a),k=!0),S.push(t),t},l.$$applicationDestroyed=function(){dr(e).off("hashchange popstate",a)},l.$$checkUrlChange=u,l.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},l.defer=function(e,t,n){var r;return t=t||0,n=n||v.DEFAULT_TASK_TYPE,v.incTaskCount(n),r=d((function(){delete h[r],v.completeTask(e,n)}),t),h[r]=n,r},l.defer.cancel=function(e){if(h.hasOwnProperty(e)){var t=h[e];return delete h[e],p(e),v.completeTask(m,t),!0}return!1}}function Qe(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new Ze(e,r,t,n,i)}]}function et(){this.$get=function(){function e(e,n){function i(e){e!==d&&(p?p===e&&(p=e.n):p=e,o(e.n,e.p),o(e,d),(d=e).n=null)}function o(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},n,{id:e}),u=fe(),l=n&&n.capacity||Number.MAX_VALUE,c=fe(),d=null,p=null;return t[e]={put:function(e,t){if(!y(t))return l<Number.MAX_VALUE&&i(c[e]||(c[e]={key:e})),e in u||a++,u[e]=t,a>l&&this.remove(p.key),t},get:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;t===d&&(d=t.p),t===p&&(p=t.n),o(t.n,t.p),delete c[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=fe(),a=0,c=fe(),d=p=null},destroy:function(){u=null,s=null,c=null,delete t[e]},info:function(){return f({},s,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,(function(t,n){e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function tt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function nt(t,n){function r(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=fe();return o(e,(function(e,o){if((e=e.trim())in S)i[o]=S[e];else{var a=e.match(r);if(!a)throw Oi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(S[e]=i[o])}})),i}function i(e,t){var n={isolateScope:null,bindToController:null};if(w(e.scope)&&(!0===e.bindToController?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw Oi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}function a(e){var t=e.require||e.controller&&e.name;return!A(t)&&w(t)&&o(t,(function(e,n){var r=e.match(g);e.substring(r[0].length)||(t[n]=r[0]+n)})),t}var u={},l="Directive",c=/^\s*directive:\s*([\w-]+)\s+(.*)$/,d=/(([\w-]+)(?::([^;]+))?;?)/,p=function(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),g=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,x=/^(on[a-z]+|formaction)$/,S=fe();this.directive=function e(n,r){return se(n,"name"),le(n,"directive"),C(n)?(function(e){var t=e.charAt(0);if(!t||t!==yr(t))throw Oi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Oi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(n),se(r,"directiveFactory"),u.hasOwnProperty(n)||(u[n]=[],t.factory(n+l,["$injector","$exceptionHandler",function(e,t){var r=[];return o(u[n],(function(i,o){try{var s=e.invoke(i);E(s)?s={compile:$(s)}:!s.compile&&s.link&&(s.compile=$(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||n,s.require=a(s),s.restrict=function(e,t){if(e&&(!C(e)||!/[EACM]/.test(e)))throw Oi("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(s.restrict,n),s.$$moduleName=i.$$moduleName,r.push(s)}catch(e){t(e)}})),r}])),u[n].push(r)):o(n,s(e)),this},this.component=function e(t,n){function r(e){function t(t){return E(t)||A(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var r=n.template||n.templateUrl?n.template:"",a={controller:i,controllerAs:st(n.controller)||n.controllerAs||"$ctrl",template:t(r),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return o(n,(function(e,t){"$"===t.charAt(0)&&(a[t]=e)})),a}if(!C(t))return o(t,s(F(this,e))),this;var i=n.controller||function(){};return o(n,(function(e,t){"$"===t.charAt(0)&&(r[t]=e,E(i)&&(i[t]=e))})),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(e){return b(e)?(n.aHrefSanitizationTrustedUrlList(e),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return b(e)?(n.imgSrcSanitizationTrustedUrlList(e),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}});var k=!0;this.debugInfoEnabled=function(e){return b(e)?(k=e,this):k};var O=!1;this.strictComponentBindingsEnabled=function(e){return b(e)?(O=e,this):O};var M=10;this.onChangesTtl=function(e){return arguments.length?(M=e,this):M};var I=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(I=e,this):I};var V=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(V=e,this):V};var N=fe();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in N&&N[r]!==n)throw Oi("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,N[r],n);return N[r]=n,this},function(){function e(e,t){o(t,(function(t){N[t.toLowerCase()]=e}))}e(ao.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(ao.CSS,["*|style"]),e(ao.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(ao.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(ao.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,r,a,s,$,b,S,L){function U(){try{if(! --Ve)throw Oe=void 0,Oi("infchng","{0} $onChanges() iterations reached. Aborting!\n",M);b.$apply((function(){for(var e=0,t=Oe.length;e<t;++e)try{Oe[e]()}catch(e){r(e)}Oe=void 0}))}finally{Ve++}}function B(e,t){if(!e)return e;if(!C(e))throw Oi("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=Dr(e),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(i),a=Math.floor(o.length/2),s=0;s<a;s++){var u=2*s;n+=S.getTrustedMediaUrl(Dr(o[u])),n+=" "+Dr(o[u+1])}var l=Dr(o[2*s]).split(/\s/);return n+=S.getTrustedMediaUrl(Dr(l[0])),2===l.length&&(n+=" "+Dr(l[1])),n}function z(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=t[i]}else this.$attr={};this.$$element=e}function W(e,t){try{e.addClass(t)}catch(e){}}function G(e,t,n,r,i){e instanceof dr||(e=dr(e));var o=K(e,t,e,n,r,i);G.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw Oi("multilink","This element has already been linked.");se(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var s,u=(r=r||{}).parentBoundTranscludeFn,l=r.transcludeControllers,c=r.futureParentElement;if(u&&u.$$boundTransclude&&(u=u.$$boundTransclude),a||(a=function(e){var t=e&&e[0];return t&&"foreignobject"!==_(t)&&Sr.call(t).match(/SVG/)?"svg":"html"}(c)),s="html"!==a?dr(ge(a,dr("<div></div>").append(e).html())):n?ui.clone.call(e):e,l)for(var f in l)s.data("$"+f+"Controller",l[f].instance);return G.$$addScopeInfo(s,t),n&&n(s,t),o&&o(t,s,s,u),n||(e=o=null),s}}function K(e,t,n,r,i,o){for(var a,s,u,l,c,f,d,p=[],h=A(e)||e instanceof dr,m=0;m<e.length;m++)a=new z,11===fr&&J(e,m,h),(u=(s=Z(e[m],[],a,0===m?r:void 0,i)).length?re(s,e[m],a,t,n,null,[],[],o):null)&&u.scope&&G.$$addScopeClass(a.$$element),c=u&&u.terminal||!(l=e[m].childNodes)||!l.length?null:K(l,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:t),(u||c)&&(p.push(m,u,c),f=!0,d=d||u),o=null;return f?function(e,n,r,i){var o,a,s,u,l,c,f,h;if(d){var m=n.length;for(h=new Array(m),l=0;l<p.length;l+=3)h[f=p[l]]=n[f]}else h=n;for(l=0,c=p.length;l<c;)s=h[p[l++]],o=p[l++],a=p[l++],o?(o.scope?(u=e.$new(),G.$$addScopeInfo(dr(s),u)):u=e,o(a,u,s,r,o.transcludeOnThisElement?X(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?X(e,t):null)):a&&a(e,s.childNodes,void 0,i)}:null}function J(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===Ur)for(;(r=o?i.nextSibling:e[t+1])&&r.nodeType===Ur;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}function X(e,t,n){function r(r,i,o,a,s){return r||((r=e.$new(!1,s)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=fe();for(var o in t.$$slots)t.$$slots[o]?i[o]=X(e,t.$$slots[o],n):i[o]=null;return r}function Z(e,t,n,r,i){var o,a,s,u=e.nodeType,l=n.$attr;switch(u){case qr:le(t,it(a=_(e)),"E",r,i);for(var c,f,p,h,m,v=e.attributes,$=0,g=v&&v.length;$<g;$++){var y,b=!1,x=!1,S=!1,k=!1,A=!1;f=(c=v[$]).name,h=c.value,(m=(p=it(f.toLowerCase())).match(Le))?(S="Attr"===m[1],k="Prop"===m[1],A="On"===m[1],f=f.replace(Di,"").toLowerCase().substr(4+m[1].length).replace(/_(.)/g,(function(e,t){return t.toUpperCase()}))):(y=p.match(Re))&&ce(y[1])&&(b=f,x=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),k||A?(n[p]=h,l[p]=c.name,k?be(e,t,p,f):we(t,p,f)):(l[p=it(f.toLowerCase())]=f,!S&&n.hasOwnProperty(p)||(n[p]=h,qe(e,p)&&(n[p]=!0)),Ce(e,t,h,p,S),le(t,p,"A",r,i,b,x))}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!Ie)break;if(w(s=e.className)&&(s=s.animVal),C(s)&&""!==s)for(;o=d.exec(s);)le(t,p=it(o[2]),"C",r,i)&&(n[p]=Dr(o[3])),s=s.substr(o.index+o[0].length);break;case Ur:ve(t,e.nodeValue);break;case Hr:if(!je)break;Q(e,t,n,r,i)}return t.sort(he),t}function Q(e,t,n,r,i){try{var o=c.exec(e.nodeValue);if(o){var a=it(o[1]);le(t,a,"M",r,i)&&(n[a]=Dr(o[2]))}}catch(e){}}function ee(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Oi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===qr&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return dr(r)}function te(e,t,n){return function(r,i,o,a,s){return i=ee(i[0],t,n),e(r,i,o,a,s)}}function ne(e,t,n,r,i,o){var a;return e?G(t,n,r,i,o):function(){return a||(a=G(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function re(t,n,i,a,s,u,l,c,d){function p(e,t,n,r){e&&(n&&(e=te(e,n,r)),e.require=m.require,e.directiveName=v,(k===m||m.$$isolateScope)&&(e=ke(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=te(t,n,r)),t.require=m.require,t.directiveName=v,(k===m||m.$$isolateScope)&&(t=ke(t,{isolateScope:!0})),c.push(t))}function h(e,t,a,s,u){var d,p,h,m,v,$,g,b,x,O;for(var M in n===a?(x=i,b=i.$$element):x=new z(b=dr(a),i),v=t,k?m=t.$new(!0):C&&(v=t.$parent),u&&(g=function(e,t,n,r){var i;if(D(e)||(r=n,n=t,t=e,e=void 0),I&&(i=$),n||(n=I?b.parent():b),!r)return u(e,t,i,n,N);var o=u.$$slots[r];if(o)return o(e,t,i,n,N);if(y(o))throw Oi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Y(b))},g.$$boundTransclude=u,g.isSlotFilled=function(e){return!!u.$$slots[e]}),S&&($=ae(b,x,g,S,m,t,k)),k&&(G.$$addScopeInfo(b,m,!0,!(T&&(T===k||T===k.$$originalDirective))),G.$$addScopeClass(b,!0),m.$$isolateBindings=k.$$isolateBindings,(O=Ee(t,x,m,m.$$isolateBindings,k)).removeWatches&&m.$on("$destroy",O.removeWatches)),$){var j=S[M],V=$[M],_=j.$$bindings.bindToController;V.instance=V(),b.data("$"+j.name+"Controller",V.instance),V.bindingInfo=Ee(v,x,V.instance,_,j)}for(o(S,(function(e,t){var n=e.require;e.bindToController&&!A(n)&&w(n)&&f($[t].instance,ie(t,n,b,$))})),o($,(function(e){var t=e.instance;if(E(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(E(t.$onInit))try{t.$onInit()}catch(e){r(e)}E(t.$doCheck)&&(v.$watch((function(){t.$doCheck()})),t.$doCheck()),E(t.$onDestroy)&&v.$on("$destroy",(function(){t.$onDestroy()}))})),d=0,p=l.length;d<p;d++)Ae(h=l[d],h.isolateScope?m:t,b,x,h.require&&ie(h.directiveName,h.require,b,$),g);var N=t;for(k&&(k.template||null===k.templateUrl)&&(N=m),e&&e(N,a.childNodes,void 0,u),d=c.length-1;d>=0;d--)Ae(h=c[d],h.isolateScope?m:t,b,x,h.require&&ie(h.directiveName,h.require,b,$),g);o($,(function(e){var t=e.instance;E(t.$postLink)&&t.$postLink()}))}d=d||{};for(var m,v,$,g,b,x=-Number.MAX_VALUE,C=d.newScopeDirective,S=d.controllerDirectives,k=d.newIsolateScopeDirective,T=d.templateDirective,O=d.nonTlbTranscludeDirective,M=!1,j=!1,I=d.hasElementTranscludeDirective,V=i.$$element=dr(n),N=u,P=a,L=!1,R=!1,q=0,U=t.length;q<U;q++){var B=(m=t[q]).$$start,W=m.$$end;if(B&&(V=ee(n,B,W)),$=void 0,x>m.priority)break;if((b=m.scope)&&(m.templateUrl||(w(b)?(me("new/isolated scope",k||C,m,V),k=m):me("new/isolated scope",k,m,V)),C=C||m),v=m.name,!L&&(m.replace&&(m.templateUrl||m.template)||m.transclude&&!m.$$tlb)){for(var K,J=q+1;K=t[J++];)if(K.transclude&&!K.$$tlb||K.replace&&(K.templateUrl||K.template)){R=!0;break}L=!0}if(!m.templateUrl&&m.controller&&(S=S||fe(),me("'"+v+"' controller",S[v],m,V),S[v]=m),b=m.transclude)if(M=!0,m.$$tlb||(me("transclusion",O,m,V),O=m),"element"===b)I=!0,x=m.priority,$=V,V=i.$$element=dr(G.$$createComment(v,i[v])),n=V[0],Se(s,H($),n),P=ne(R,$,a,x,N&&N.name,{nonTlbTranscludeDirective:O});else{var X=fe();if(w(b)){$=e.document.createDocumentFragment();var Q=fe(),re=fe();for(var oe in o(b,(function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,Q[e]=t,X[t]=null,re[t]=n})),o(V.contents(),(function(t){var n=Q[it(_(t))];n?(re[n]=!0,X[n]=X[n]||e.document.createDocumentFragment(),X[n].appendChild(t)):$.appendChild(t)})),o(re,(function(e,t){if(!e)throw Oi("reqslot","Required transclusion slot `{0}` was not filled.",t)})),X)if(X[oe]){var se=dr(X[oe].childNodes);X[oe]=ne(R,se,a)}$=dr($.childNodes)}else $=dr(xe(n)).contents();V.empty(),(P=ne(R,$,a,void 0,void 0,{needsNewScope:m.$$isolateScope||m.$$newScope})).$$slots=X}if(m.template)if(j=!0,me("template",T,m,V),T=m,b=E(m.template)?m.template(V,i):m.template,b=Pe(b),m.replace){if(N=m,$=$e(b)?[]:at(ge(m.templateNamespace,Dr(b))),n=$[0],1!==$.length||n.nodeType!==qr)throw Oi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v,"");Se(s,V,n);var le={$attr:{}},ce=Z(n,[],le),he=t.splice(q+1,t.length-(q+1));(k||C)&&ue(ce,k,C),t=t.concat(ce).concat(he),de(i,le),U=t.length}else V.html(b);if(m.templateUrl)j=!0,me("template",T,m,V),T=m,m.replace&&(N=m),h=pe(t.splice(q,t.length-q),V,i,s,M&&P,l,c,{controllerDirectives:S,newScopeDirective:C!==m&&C,newIsolateScopeDirective:k,templateDirective:T,nonTlbTranscludeDirective:O}),U=t.length;else if(m.compile)try{g=m.compile(V,i,P);var ve=m.$$originalDirective||m;E(g)?p(null,F(ve,g),B,W):g&&p(F(ve,g.pre),F(ve,g.post),B,W)}catch(e){r(e,Y(V))}m.terminal&&(h.terminal=!0,x=Math.max(x,m.priority))}return h.scope=C&&!0===C.scope,h.transcludeOnThisElement=M,h.templateOnThisElement=j,h.transclude=P,d.hasElementTranscludeDirective=I,h}function ie(e,t,n,r){var i;if(C(t)){var a=t.match(g),s=t.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():i=(i=r&&r[s])&&i.instance,!i){var c="$"+s+"Controller";i="^^"===u&&n[0]&&n[0].nodeType===Fr?null:u?n.inheritedData(c):n.data(c)}if(!i&&!l)throw Oi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(A(t)){i=[];for(var f=0,d=t.length;f<d;f++)i[f]=ie(e,t[f],n,r)}else w(t)&&(i={},o(t,(function(t,o){i[o]=ie(e,t,n,r)})));return i||null}function ae(e,t,n,r,i,o,a){var s=fe();for(var u in r){var l=r[u],c={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=l.controller;"@"===f&&(f=t[l.name]);var d=$(f,c,!0,l.controllerAs);s[l.name]=d,e.data("$"+l.name+"Controller",d.instance)}return s}function ue(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=h(e[r],{$$isolateScope:t,$$newScope:n})}function le(e,n,r,o,a,s,c){if(n===a)return null;var f=null;if(u.hasOwnProperty(n))for(var d,p=t.get(n+l),m=0,v=p.length;m<v;m++)if(d=p[m],(y(o)||o>d.priority)&&-1!==d.restrict.indexOf(r)){if(s&&(d=h(d,{$$start:s,$$end:c})),!d.$$bindings){var $=d.$$bindings=i(d,d.name);w($.isolateScope)&&(d.$$isolateBindings=$.isolateScope)}e.push(d),f=d}return f}function ce(e){if(u.hasOwnProperty(e))for(var n=t.get(e+l),r=0,i=n.length;r<i;r++)if(n[r].multiElement)return!0;return!1}function de(e,t){var n=t.$attr,r=e.$attr;o(e,(function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))})),o(t,(function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function pe(e,t,n,i,s,u,l,c){var f,d,p=[],m=t[0],v=e.shift(),$=h(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),g=E(v.templateUrl)?v.templateUrl(t,n):v.templateUrl,y=v.templateNamespace;return t.empty(),a(g).then((function(r){var a,h,b,x;if(r=Pe(r),v.replace){if(b=$e(r)?[]:at(ge(y,Dr(r))),a=b[0],1!==b.length||a.nodeType!==qr)throw Oi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,g);h={$attr:{}},Se(i,t,a);var C=Z(a,[],h);w(v.scope)&&ue(C,!0),e=C.concat(e),de(n,h)}else a=m,t.html(r);for(e.unshift($),f=re(e,a,n,s,t,v,u,l,c),o(i,(function(e,n){e===a&&(i[n]=t[0])})),d=K(t[0].childNodes,s);p.length;){var S=p.shift(),k=p.shift(),A=p.shift(),T=p.shift(),E=t[0];if(!S.$$destroyed){if(k!==m){var O=k.className;c.hasElementTranscludeDirective&&v.replace||(E=xe(a)),Se(A,dr(k),E),W(dr(E),O)}x=f.transcludeOnThisElement?X(S,f.transclude,T):T,f(d,S,E,i,x)}}p=null})).catch((function(e){T(e)&&r(e)})),function(e,t,n,r,i){var o=i;t.$$destroyed||(p?p.push(t,n,r,o):(f.transcludeOnThisElement&&(o=X(t,f.transclude,i)),f(d,t,n,r,o)))}}function he(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function me(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Oi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,Y(r))}function ve(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&G.$$addBindingClass(t),function(e,t){var i=t.parent();n||G.$$addBindingClass(i),G.$$addBindingInfo(i,r.expressions),e.$watch(r,(function(e){t[0].nodeValue=e}))}}})}function ge(t,n){switch(t=yr(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function ye(e){return B(S.valueOf(e),"ng-prop-srcset")}function be(e,t,n,r){if(x.test(r))throw Oi("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=_(e),o=function(e,t){var n=t.toLowerCase();return N[e+"|"+n]||N["*|"+n]}(i,r),a=v;"srcset"!==r||"img"!==i&&"source"!==i?o&&(a=S.getTrusted.bind(S,o)):a=ye,t.push({priority:100,compile:function(e,t){var i=s(t[n]),o=s(t[n],(function(e){return S.valueOf(e)}));return{pre:function(e,t){function n(){var n=i(e);t[0][r]=a(n)}n(),e.$watch(o,n)}}}})}function we(e,t,n){e.push(ir(s,b,r,t,n,!1))}function Ce(e,t,r,i,o){var a=_(e),s=function(e,t){return"srcdoc"===t?S.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?S.RESOURCE_URL:S.MEDIA_URL:"xlinkHref"===t?"image"===e?S.MEDIA_URL:"a"===e?S.URL:S.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?S.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:S.URL}(a,i),u=!o,l=p[i]||o,c=n(r,u,s,l);if(c){if("multiple"===i&&"select"===a)throw Oi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Y(e));if(x.test(i))throw Oi("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var a=o.$$observers||(o.$$observers=fe()),u=o[i];u!==r&&(c=u&&n(u,!0,s,l),r=u),c&&(o[i]=c(e),(a[i]||(a[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(c,(function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)})))}}}})}}function Se(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===a){t[i++]=r;for(var l=i,c=l+s-1,f=t.length;l<f;l++,c++)c<f?t[l]=t[c]:delete t[l];t.length-=s-1,t.context===a&&(t.context=r);break}u&&u.replaceChild(r,a);var d=e.document.createDocumentFragment();for(i=0;i<s;i++)d.appendChild(n[i]);for(dr.hasData(a)&&(dr.data(r,dr.data(a)),dr(a).off("$destroy")),dr.cleanData(d.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function ke(e,t){return f((function(){return e.apply(null,arguments)}),e,t)}function Ae(e,t,n,i,o,a){try{e(t,n,i,o,a)}catch(e){r(e,Y(n))}}function Te(e,t){if(O)throw Oi("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function Ee(e,t,r,i,a){function u(t,n,i){E(r.$onChanges)&&!R(n,i)&&(Oe||(e.$$postDigest(U),Oe=[]),c||(c={},Oe.push(l)),c[t]&&(i=c[t].previousValue),c[t]=new rt(i,n))}function l(){r.$onChanges(c),c=void 0}var c,f=[],d={};return o(i,(function(i,o){var l,c,p,h,v,$=i.attrName,g=i.optional;switch(i.mode){case"@":g||gr.call(t,$)||(Te($,a.name),r[o]=t[$]=void 0),v=t.$observe($,(function(e){if(C(e)||j(e)){var t=r[o];u(o,e,t),r[o]=e}})),t.$$observers[$].$$scope=e,C(l=t[$])?r[o]=n(l)(e):j(l)&&(r[o]=l),d[o]=new rt(Mi,r[o]),f.push(v);break;case"=":if(!gr.call(t,$)){if(g)break;Te($,a.name),t[$]=void 0}if(g&&!t[$])break;c=s(t[$]),h=c.literal?q:R,p=c.assign||function(){throw l=r[o]=c(e),Oi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[$],$,a.name)},l=r[o]=c(e);var y=function(t){return h(t,r[o])||(h(t,l)?p(e,t=r[o]):r[o]=t),l=t};y.$stateful=!0,v=i.collection?e.$watchCollection(t[$],y):e.$watch(s(t[$],y),null,c.literal),f.push(v);break;case"<":if(!gr.call(t,$)){if(g)break;Te($,a.name),t[$]=void 0}if(g&&!t[$])break;var b=(c=s(t[$])).literal,w=r[o]=c(e);d[o]=new rt(Mi,r[o]),v=e[i.collection?"$watchCollection":"$watch"](c,(function(e,t){if(t===e){if(t===w||b&&q(t,w))return;t=w}u(o,e,t),r[o]=e})),f.push(v);break;case"&":if(g||gr.call(t,$)||Te($,a.name),(c=t.hasOwnProperty($)?s(t[$]):m)===m&&g)break;r[o]=function(t){return c(e,t)}}})),{initialChanges:d,removeWatches:f.length&&function(){for(var e=0,t=f.length;e<t;++e)f[e]()}}}var Oe,Me=/^\w/,De=e.document.createElement("div"),je=I,Ie=V,Ve=M;z.prototype={$normalize:it,$addClass:function(e){e&&e.length>0&&L.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&L.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=ot(e,t);n&&n.length&&L.addClass(this.$$element,n);var r=ot(t,e);r&&r.length&&L.removeClass(this.$$element,r)},$set:function(e,t,n,i){var a=qe(this.$$element[0],e),s=function(e){return fi[e]}(e),u=e;a?(this.$$element.prop(e,t),i=a):s&&(this[s]=t,u=s),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=oe(e,"-")),"img"===_(this.$$element)&&"srcset"===e&&(this[e]=t=B(t,"$set('srcset', value)")),!1!==n&&(null===t||y(t)?this.$$element.removeAttr(i):Me.test(i)?a&&!1===t?this.$$element.removeAttr(i):this.$$element.attr(i,t):function(e,t,n){De.innerHTML="<span "+t+">";var r=De.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}(this.$$element[0],i,t));var l=this.$$observers;l&&o(l[u],(function(e){try{e(t)}catch(e){r(e)}}))},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=fe()),i=r[e]||(r[e]=[]);return i.push(t),b.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(e)||y(n[e])||t(n[e])})),function(){P(i,t)}}};var _e=n.startSymbol(),Ne=n.endSymbol(),Pe="{{"===_e&&"}}"===Ne?v:function(e){return e.replace(/\{\{/g,_e).replace(/}}/g,Ne)},Le=/^ng(Attr|Prop|On)([A-Z].*)$/,Re=/^(.+)Start$/;return G.$$addBindingInfo=k?function(e,t){var n=e.data("$binding")||[];A(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:m,G.$$addBindingClass=k?function(e){W(e,"ng-binding")}:m,G.$$addScopeInfo=k?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:m,G.$$addScopeClass=k?function(e,t){W(e,t?"ng-isolate-scope":"ng-scope")}:m,G.$$createComment=function(t,n){var r="";return k&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},G}]}function rt(e,t){this.previousValue=e,this.currentValue=t}function it(e){return e.replace(Di,"").replace(ji,(function(e,t,n){return n?t.toUpperCase():t}))}function ot(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function at(e){var t=(e=dr(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===Hr||n.nodeType===Ur&&""===n.nodeValue.trim())&&xr.call(e,t,1)}return e}function st(e,t){if(t&&C(t))return t;if(C(e)){var n=Vi.exec(e);if(n)return n[3]}}function ut(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){le(t,"controller"),w(t)?f(e,t):e[t]=n},this.$get=["$injector",function(t){function n(e,t,n,i){if(!e||!w(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,i,o,a){var s,u,l,c;if(o=!0===o,a&&C(a)&&(c=a),C(r)){if(!(u=r.match(Vi)))throw Ii("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(l=u[1],c=c||u[3],!(r=e.hasOwnProperty(l)?e[l]:function(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&E(e)?F(o,e):e}(i.$scope,l,!0)))throw Ii("ctrlreg","The controller with the name '{0}' is not registered.",l);ue(r,l,!0)}if(o){var d=(A(r)?r[r.length-1]:r).prototype;return s=Object.create(d||null),c&&n(i,c,s,l||r.name),f((function(){var e=t.invoke(r,s,i,l);return e!==s&&(w(e)||E(e))&&(s=e,c&&n(i,c,s,l||r.name)),s}),{instance:s,identifier:c})}return s=t.instantiate(r,i,l),c&&n(i,c,s,l||r.name),s}}]}function lt(){this.$get=["$window",function(e){return dr(e.document)}]}function ct(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",(function(){e.off("visibilitychange",n)})),function(){return i}}]}function ft(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function dt(e){return w(e)?k(e)?e.toISOString():z(e):e}function pt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,(function(e,n){null===e||y(e)||E(e)||(A(e)?o(e,(function(e){t.push(ee(n)+"="+ee(dt(e)))})):t.push(ee(n)+"="+ee(dt(e))))})),t.join("&")}}}function ht(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,r,i){A(n)?o(n,(function(t,n){e(t,r+"["+(w(t)?n:"")+"]")})):w(n)&&!k(n)?a(n,(function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))})):(E(n)&&(n=n()),t.push(ee(r)+"="+(null==n?"":ee(dt(n)))))}(e,"",!0),t.join("&")}}}function mt(e,t){if(C(e)){var n=e.replace(qi,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf(Ni);if(i||function(e){var t=e.match(Li);return t&&Ri[t[0]].test(e)}(n))try{e=W(n)}catch(t){if(!i)return e;throw Ui("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}return e}function vt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=fe();return C(e)?o(e.split("\n"),(function(e){n=e.indexOf(":"),t(yr(Dr(e.substr(0,n))),Dr(e.substr(n+1)))})):w(e)&&o(e,(function(e,n){t(yr(n),Dr(e))})),r}function $t(e){var t;return function(n){if(t||(t=vt(e)),n){var r=t[yr(n)];return void 0===r&&(r=null),r}return t}}function gt(e,t,n,r){return E(r)?r(e,t,n):(o(r,(function(r){e=r(e,t,n)})),e)}function yt(e){return 200<=e&&e<300}function bt(){var e=this.defaults={transformResponse:[mt],transformRequest:[function(e){return!w(e)||function(e){return"[object File]"===Sr.call(e)}(e)||function(e){return"[object Blob]"===Sr.call(e)}(e)||function(e){return"[object FormData]"===Sr.call(e)}(e)?e:z(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:pe(Pi),put:pe(Pi),patch:pe(Pi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return b(e)?(t=!!e,this):t};var n=this.interceptors=[],i=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(a,s,u,l,c,d,p,h){function v(t){function n(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function i(e,t){var n,r={};return o(e,(function(e,i){E(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e})),r}function s(e){var t=f({},e);return t.data=gt(e.data,e.headers,e.status,u.transformResponse),yt(e.status)?t:d.reject(t)}if(!w(t))throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",t);if(!C(h.valueOf(t.url)))throw r("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",t.url);var u=f({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},t);u.headers=function(t){var n,r,o,a=e.headers,s=f({},t.headers);a=f({},a.common,a[yr(t.method)]);e:for(n in a){for(o in r=yr(n),s)if(yr(o)===r)continue e;s[n]=a[n]}return i(s,pe(t))}(t),u.method=br(u.method),u.paramSerializer=C(u.paramSerializer)?p.get(u.paramSerializer):u.paramSerializer,a.$$incOutstandingRequestCount("$http");var l=[],c=[],v=d.resolve(u);return o(x,(function(e){(e.request||e.requestError)&&l.unshift(e.request,e.requestError),(e.response||e.responseError)&&c.push(e.response,e.responseError)})),v=(v=n(v,l)).then((function(t){var n=t.headers,r=gt(t.data,$t(n),void 0,t.transformRequest);return y(r)&&o(n,(function(e,t){"content-type"===yr(t)&&delete n[t]})),y(t.withCredentials)&&!y(e.withCredentials)&&(t.withCredentials=e.withCredentials),$(t,r).then(s,s)})),(v=n(v,c)).finally((function(){a.$$completeOutstandingRequest(m,"$http")}))}function $(n,r){function i(e){if(e){var n={};return o(e,(function(e,r){n[r]=function(n){function r(){e(n)}t?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}})),n}}function a(e,t,r,i,o){(yt(t=t>=-1?t:0)?$.resolve:$.reject)({data:e,status:t,headers:$t(r),config:n,statusText:i,xhrStatus:o})}function l(e){a(e.data,e.status,pe(e.headers()),e.statusText,e.xhrStatus)}function f(){var e=v.pendingRequests.indexOf(n);-1!==e&&v.pendingRequests.splice(e,1)}var p,m,$=d.defer(),x=$.promise,k=n.headers,T="jsonp"===yr(n.method),E=n.url;if(T?E=h.getTrustedResourceUrl(E):C(E)||(E=h.valueOf(E)),E=function(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}(E,n.paramSerializer(n.params)),T&&(E=function(e,t){var n=e.split("?");if(n.length>2)throw Ui("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return o(Z(n[1]),(function(n,r){if("JSON_CALLBACK"===n)throw Ui("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw Ui("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)})),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}(E,n.jsonpCallbackParam)),v.pendingRequests.push(n),x.then(f,f),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(p=w(n.cache)?n.cache:w(e.cache)?e.cache:g),p&&(b(m=p.get(E))?I(m)?m.then(l,l):A(m)?a(m[1],m[0],pe(m[2]),m[3],m[4]):a(m,200,{},"OK","complete"):p.put(E,x)),y(m)){var O=S(n.url)?u()[n.xsrfCookieName||e.xsrfCookieName]:void 0;O&&(k[n.xsrfHeaderName||e.xsrfHeaderName]=O),s(n.method,E,r,(function(e,n,r,i,o){function s(){a(n,e,r,i,o)}p&&(yt(e)?p.put(E,[e,n,vt(r),i,o]):p.remove(E)),t?c.$applyAsync(s):(s(),c.$$phase||c.$apply())}),k,n.timeout,n.withCredentials,n.responseType,i(n.eventHandlers),i(n.uploadEventHandlers))}return x}var g=l("$http");e.paramSerializer=C(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var x=[];o(n,(function(e){x.unshift(C(e)?p.get(e):p.invoke(e))}));var S=function(e){var t=[fo].concat(e.map($n));return function(e){var n=$n(e);return t.some(gn.bind(null,n))}}(i);return v.pendingRequests=[],function(e){o(arguments,(function(e){v[e]=function(t,n){return v(f({},n||{},{method:e,url:t}))}}))}("get","delete","head","jsonp"),function(e){o(arguments,(function(e){v[e]=function(t,n,r){return v(f({},r||{},{method:e,url:t,data:n}))}}))}("post","put","patch"),v.defaults=e,v}]}function wt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function xt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return function(e,t,n,r,i){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}return function(i,s,u,l,c,f,d,p,h,m){function v(e){C="timeout"===e,w&&w(),x&&x.abort()}function $(e,t,r,i,o,a){b(T)&&n.cancel(T),w=x=null,e(t,r,i,o,a)}if(s=s||e.url(),"jsonp"===yr(i))var g=r.createCallback(s),w=a(s,g,(function(e,t){var n=200===e&&r.getResponse(g);$(l,e,n,"",t,"complete"),r.removeCallback(g)}));else{var x=t(i,s),C=!1;x.open(i,s,!0),o(c,(function(e,t){b(e)&&x.setRequestHeader(t,e)})),x.onload=function(){var e=x.statusText||"",t="response"in x?x.response:x.responseText,n=1223===x.status?204:x.status;0===n&&(n=t?200:"file"===$n(s).protocol?404:0),$(l,n,t,x.getAllResponseHeaders(),e,"complete")};var S=function(){$(l,-1,null,null,"","error")},k=function(){$(l,-1,null,null,"",C?"timeout":"abort")},A=function(){$(l,-1,null,null,"","timeout")};if(x.onerror=S,x.ontimeout=A,x.onabort=k,o(h,(function(e,t){x.addEventListener(t,e)})),o(m,(function(e,t){x.upload.addEventListener(t,e)})),d&&(x.withCredentials=!0),p)try{x.responseType=p}catch(e){if("json"!==p)throw e}x.send(y(u)?null:u)}if(f>0)var T=n((function(){v("timeout")}),f);else I(f)&&f.then((function(){v(b(f.$$timeoutId)?"timeout":"abort")}))}}(e,r,e.defer,t,n[0])}]}function Ct(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(d,e).replace(p,t)}function s(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function u(o,u,d,p){var h=d===i.URL||d===i.MEDIA_URL;if(!o.length||-1===o.indexOf(e)){if(u)return;var m=a(o);h&&(m=i.getTrusted(d,m));var v=$(m);return v.exp=o,v.expressions=[],v.$$watchDelegate=s,v}p=!!p;for(var g,w,x,C,S,k=0,A=[],T=o.length,E=[],O=[];k<T;){if(-1===(g=o.indexOf(e,k))||-1===(w=o.indexOf(t,g+l))){k!==T&&E.push(a(o.substring(k)));break}k!==g&&E.push(a(o.substring(k,g))),C=o.substring(g+l,w),A.push(C),k=w+c,O.push(E.length),E.push("")}S=1===E.length&&1===O.length;var M=h&&S?void 0:function(e){try{return e=d&&!h?i.getTrusted(d,e):i.valueOf(e),p&&!b(e)?e:de(e)}catch(e){r(Hi.interr(o,e))}};if(x=A.map((function(e){return n(e,M)})),!u||A.length){var D=function(e){for(var t=0,n=A.length;t<n;t++){if(p&&y(e[t]))return;E[O[t]]=e[t]}return h?i.getTrusted(d,S?E[0]:E.join("")):(d&&E.length>1&&Hi.throwNoconcat(o),E.join(""))};return f((function(e){var t=0,n=A.length,i=new Array(n);try{for(;t<n;t++)i[t]=x[t](e);return D(i)}catch(e){r(Hi.interr(o,e))}}),{exp:o,expressions:A,$$watchDelegate:function(e,t){var n;return e.$watchGroup(x,(function(r,i){var o=D(r);t.call(this,o,r!==i?n:o,e),n=o}))}})}}var l=e.length,c=t.length,d=new RegExp(e.replace(/./g,o),"g"),p=new RegExp(t.replace(/./g,o),"g");return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function St(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},r=function(e){t.clearInterval(e),delete n[e]},i=e((function(e,r,i){var o=t.setInterval(e,r);return n[o]=i,o}),r);return i.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Fi("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,i=n[t];return nn(i.promise),i.reject("canceled"),r(t),!0},i}]}function kt(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,o){return function(a,s,u,l){function c(){f?a.apply(null,d):a(p)}var f=arguments.length>4,d=f?H(arguments,4):[],p=0,h=b(l)&&!l,m=(h?n:t).defer(),v=m.promise;return u=b(u)?u:0,v.$$intervalId=i((function(){h?e.defer(c):r.$evalAsync(c),m.notify(p++),u>0&&p>=u&&(m.resolve(p),o(v.$$intervalId)),h||r.$apply()}),s,m,h),v}}}]}function At(e,t,n){var r=function(e){var t=[];return o(e,(function(e,n){A(e)?o(e,(function(e){t.push(ee(n,!0)+(!0===e?"":"="+ee(e,!0)))})):t.push(ee(n,!0)+(!0===e?"":"="+ee(e,!0)))})),t.length?t.join("&"):""}(t),i=n?"#"+Q(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Q(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(r?"?"+r:"")+i}function Tt(e,t){var n=$n(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=p(n.port)||Wi[n.protocol]||null}function Et(e,t,n){if(Ki.test(e))throw Gi("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=$n(e),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=function(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(o,n),t.$$search=Z(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Ot(e,t){return e.slice(0,t.length)===t}function Mt(e,t){if(Ot(t,e))return t.substr(e.length)}function Dt(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function jt(e,t,n){this.$$html5=!0,n=n||"",Tt(e,this),this.$$parse=function(e){var n=Mt(t,e);if(!C(n))throw Gi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Et(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(b(o=Mt(e,r))?(a=o,s=n&&b(o=Mt(n,o))?t+(Mt("/",o)||o):e+a):b(o=Mt(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s);var o,a,s}}function It(e,t,n){Tt(e,this),this.$$parse=function(r){var i,o=Mt(e,r)||Mt(t,r);y(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",y(o)&&(e=r,this.replace())):y(i=Mt(n,o))&&(i=o),Et(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return Ot(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e))?r[1]:e}(this.$$path,i,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return Dt(e)===Dt(t)&&(this.$$parse(t),!0)}}function Vt(e,t,n){this.$$html5=!0,It.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e===Dt(r)?o=r:(a=Mt(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o);var o,a},this.$$normalizeUrl=function(t){return e+n+t}}function _t(e){return function(){return this[e]}}function Nt(e,t){return function(n){return y(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Pt(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return j(e)?(t.enabled=e,this):w(e)?(j(e.enabled)&&(t.enabled=e.enabled),j(e.requireBase)&&(t.requireBase=e.requireBase),(j(e.rewriteLinks)||C(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(e){throw l.url(i),l.$$state=o,e}}function u(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c,f,d=r.baseHref(),p=r.url();if(t.enabled){if(!d&&t.requireBase)throw Gi("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=function(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}(p)+(d||"/"),c=i.history?jt:Vt}else f=Dt(p),c=It;var h=function(e){return e.substr(0,Dt(e).lastIndexOf("/")+1)}(f);(l=new c(f,h,"#"+e)).$$parseLinkUrl(p,p),l.$$state=r.state();var m=/^\s*(javascript|mailto):/i;o.on("click",(function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var a=dr(e.target);"a"!==_(a[0]);)if(a[0]===o[0]||!(a=a.parent())[0])return;if(!C(i)||!y(a.attr(i))){var s=a.prop("href"),u=a.attr("href")||a.attr("xlink:href");w(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=$n(s.animVal).href),m.test(s)||!s||a.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(e.preventDefault(),l.absUrl()!==r.url()&&n.$apply())}}})),l.absUrl()!==p&&r.url(l.absUrl(),!0);var v=!0;return r.onUrlChange((function(e,t){Ot(e,h)?(n.$evalAsync((function(){var r,i=l.absUrl(),o=l.$$state;l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(v=!1,u(i,o)))})),n.$$phase||n.$digest()):a.location.href=e})),n.$watch((function(){if(v||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var e=r.url(),t=l.absUrl(),o=r.state(),a=l.$$replace,c=!function(e,t){return e===t||$n(e).href===$n(t).href}(e,t)||l.$$html5&&i.history&&o!==l.$$state;(v||c)&&(v=!1,n.$evalAsync((function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(c&&s(t,a,o===l.$$state?null:l.$$state),u(e,o)))})))}l.$$replace=!1})),l}]}function Lt(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){var t=n.console||{},r=t[e]||t.log||m;return function(){var e=[];return o(arguments,(function(t){e.push(function(e){return T(e)&&(e.stack&&i?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}(t))})),Function.prototype.apply.call(r,t,e)}}var i=fr||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:r("log"),info:r("info"),warn:r("warn"),error:r("error"),debug:function(){var n=r("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Rt(e){return e+""}function qt(e,t){return void 0!==e?e:t}function Ut(e,t){return void 0===e?t:void 0===t?e:e+t}function Ht(e,t,n){var r,i,a,s=e.isPure=function(e,t){switch(e.type){case to.MemberExpression:if(e.computed)return!1;break;case to.UnaryExpression:return no;case to.BinaryExpression:return"+"!==e.operator&&no;case to.CallExpression:return!1}return void 0===t?ro:t}(e,n);switch(e.type){case to.Program:r=!0,o(e.body,(function(e){Ht(e.expression,t,s),r=r&&e.expression.constant})),e.constant=r;break;case to.Literal:e.constant=!0,e.toWatch=[];break;case to.UnaryExpression:Ht(e.argument,t,s),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case to.BinaryExpression:Ht(e.left,t,s),Ht(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case to.LogicalExpression:Ht(e.left,t,s),Ht(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case to.ConditionalExpression:Ht(e.test,t,s),Ht(e.alternate,t,s),Ht(e.consequent,t,s),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case to.Identifier:e.constant=!1,e.toWatch=[e];break;case to.MemberExpression:Ht(e.object,t,s),e.computed&&Ht(e.property,t,s),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case to.CallExpression:a=!!e.filter&&function(e,t){return!e(t).$stateful}(t,e.callee.name),r=a,i=[],o(e.arguments,(function(e){Ht(e,t,s),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=a?i:[e];break;case to.AssignmentExpression:Ht(e.left,t,s),Ht(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case to.ArrayExpression:r=!0,i=[],o(e.elements,(function(e){Ht(e,t,s),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=i;break;case to.ObjectExpression:r=!0,i=[],o(e.properties,(function(e){Ht(e.value,t,s),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(Ht(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))})),e.constant=r,e.toWatch=i;break;case to.ThisExpression:case to.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Ft(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length||n[0]!==t?n:void 0}}function Bt(e){return e.type===to.Identifier||e.type===to.MemberExpression}function zt(e){if(1===e.body.length&&Bt(e.body[0].expression))return{type:to.AssignmentExpression,left:e.body[0].expression,right:{type:to.NGValueParameter},operator:"="}}function Wt(e){this.$filter=e}function Gt(e){this.$filter=e}function Kt(e,t,n){this.ast=new to(e,n),this.astCompiler=n.csp?new Gt(t):new Wt(t)}function Jt(e){return E(e.valueOf)?e.valueOf():Xi.call(e)}function Yt(){var e,t,n=fe(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function a(e,t){var r,o;switch(typeof e){case"string":return e=e.trim(),(r=n[o=e])||(r=new Kt(new eo(h),i,h).parse(e),n[o]=d(r)),p(r,t);case"function":return p(e,t);default:return p(m,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Jt(e))&&!n)&&(e===t||e!=e&&t!=t)}function u(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var u=s;return a=a[0],e.$watch((function(e){var t=a(e);return s(t,u,a.isPure)||(o=r(e,void 0,void 0,[t]),u=t&&Jt(t)),o}),t,n,i)}for(var l=[],c=[],f=0,d=a.length;f<d;f++)l[f]=s,c[f]=null;return e.$watch((function(e){for(var t=!1,n=0,i=a.length;n<i;n++){var u=a[n](e);(t||(t=!s(u,l[n],a[n].isPure)))&&(c[n]=u,l[n]=u&&Jt(u))}return t&&(o=r(e,void 0,void 0,c)),o}),t,n,i)}function l(e,t,n,r,i){function o(){l(u)&&s()}function a(e,t,n,r){return u=h&&r?r[0]:f(e,t,n,r),l(u)&&e.$$postDigest(o),p(u)}var s,u,l=r.literal?c:b,f=r.$$intercepted||r,p=r.$$interceptor||v,h=r.inputs&&!f.inputs;return a.literal=r.literal,a.constant=r.constant,a.inputs=r.inputs,d(a),s=e.$watch(a,t,n,i)}function c(e){var t=!0;return o(e,(function(e){b(e)||(t=!1)})),t}function f(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function d(e){return e.constant?e.$$watchDelegate=f:e.oneTime?e.$$watchDelegate=l:e.inputs&&(e.$$watchDelegate=u),e}function p(e,t){if(!t)return e;e.$$interceptor&&(t=function(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}(e.$$interceptor,t),e=e.$$intercepted);var n=!1,r=function(r,i,o,a){var s=n&&a?a[0]:e(r,i,o,a);return t(s)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map((function(e){return e.isPure===ro?function(t){return e(t)}:e})))),d(r)}var h={csp:Ir().noUnsafeEval,literals:L(r),isIdentifierStart:E(e)&&e,isIdentifierContinue:E(t)&&t};return a.$$getAst=function(e){return new Kt(new eo(h),i,h).getAst(e).ast},a}]}function Xt(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Qt((function(e){t.$evalAsync(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function Zt(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Qt((function(e){t.defer(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function Qt(e,t,n){function i(){return new a}function a(){var e=this.promise=new s;this.resolve=function(t){d(e,t)},this.reject=function(t){h(e,t)},this.notify=function(t){v(e,t)}}function s(){this.$$state={status:0}}function u(r){var i,o,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var s=0,u=a.length;s<u;++s){tn(r),o=a[s][0],i=a[s][r.status];try{E(i)?d(o,i(r.value)):1===r.status?d(o,r.value):h(o,r.value)}catch(e){h(o,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--S,n&&0===S&&e(l)}}function l(){for(;!S&&k.length;){var e=k.shift();if(!en(e)){tn(e);var n="Possibly unhandled rejection: "+he(e.value);T(e.value)?t(e.value,n):t(n)}}}function c(t){!n||t.pending||2!==t.status||en(t)||(0===S&&0===k.length&&e(l),k.push(t)),!t.processScheduled&&t.pending&&(t.processScheduled=!0,++S,e((function(){u(t)})))}function d(e,t){e.$$state.status||(t===e?m(e,C("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):p(e,t))}function p(e,t){function n(t){i||(i=!0,m(e,t))}var r,i=!1;try{(w(t)||E(t))&&(r=t.then),E(r)?(e.$$state.status=-1,r.call(t,(function(t){i||(i=!0,p(e,t))}),n,(function(t){v(e,t)}))):(e.$$state.value=t,e.$$state.status=1,c(e.$$state))}catch(e){n(e)}}function h(e,t){e.$$state.status||m(e,t)}function m(e,t){e.$$state.value=t,e.$$state.status=2,c(e.$$state)}function v(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&e((function(){for(var e,n,o=0,a=i.length;o<a;o++){n=i[o][0],e=i[o][3];try{v(n,E(e)?e(r):r)}catch(e){t(e)}}}))}function $(e){var t=new s;return h(t,e),t}function g(e,t,n){var r=null;try{E(n)&&(r=n())}catch(e){return $(e)}return I(r)?r.then((function(){return t(e)}),$):t(e)}function b(e,t,n,r){var i=new s;return d(i,e),i.then(t,n,r)}function x(e){if(!E(e))throw C("norslvr","Expected resolverFn, got '{0}'",e);var t=new s;return e((function(e){d(t,e)}),(function(e){h(t,e)})),t}var C=r("$q",TypeError),S=0,k=[];f(s.prototype,{then:function(e,t,n){if(y(e)&&y(t)&&y(n))return this;var r=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&c(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then((function(t){return g(t,O,e)}),(function(t){return g(t,$,e)}),t)}});var O=b;return x.prototype=s.prototype,x.defer=i,x.reject=$,x.when=b,x.resolve=O,x.all=function(e){var t=new s,n=0,r=A(e)?[]:{};return o(e,(function(e,i){n++,b(e).then((function(e){r[i]=e,--n||d(t,r)}),(function(e){h(t,e)}))})),0===n&&d(t,r),t},x.race=function(e){var t=i();return o(e,(function(e){b(e).then(t.resolve,t.reject)})),t.promise},x}function en(e){return!!e.pur}function tn(e){e.pur=!0}function nn(e){e.$$state&&tn(e.$$state)}function rn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function on(){var e=10,t=r("$rootScope"),n=null,a=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(r,s,l){function c(e){e.currentScope.$$destroyed=!0}function f(e){9===fr&&(e.$$childHead&&f(e.$$childHead),e.$$nextSibling&&f(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function d(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(e){if(x.$$phase)throw t("inprog","{0} already in progress",x.$$phase);x.$$phase=e}function h(){x.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function $(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function g(){}function b(){for(;k.length;)try{k.shift()()}catch(e){r(e)}a=null}d.prototype={constructor:d,$new:function(e,t){var n;return t=t||this,e?(n=new d).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!==this)&&n.$on("$destroy",c),n},$watch:function(e,t,r,i){var o=s(e),a=E(t)?t:m;if(o.$$watchDelegate)return o.$$watchDelegate(this,a,r,o,e);var u=this,l=u.$$watchers,c={fn:a,last:g,get:o,exp:i||e,eq:!!r};return n=null,l||((l=u.$$watchers=[]).$$digestWatchIndex=-1),l.unshift(c),l.$$digestWatchIndex++,v(this,1),function(){var e=P(l,c);e>=0&&(v(u,-1),e<l.$$digestWatchIndex&&l.$$digestWatchIndex--),n=null}},$watchGroup:function(e,t){function n(){u=!1;try{l?(l=!1,t(i,i,s)):t(i,r,s)}finally{for(var n=0;n<e.length;n++)r[n]=i[n]}}var r=new Array(e.length),i=new Array(e.length),a=[],s=this,u=!1,l=!0;if(!e.length){var c=!0;return s.$evalAsync((function(){c&&t(i,i,s)})),function(){c=!1}}return 1===e.length?this.$watch(e[0],(function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)})):(o(e,(function(e,t){var r=s.$watch(e,(function(e){i[t]=e,u||(u=!0,s.$evalAsync(n))}));a.push(r)})),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){var t,n,a,s;if(!y(r=e)){if(w(r))if(i(r)){o!==d&&(m=(o=d).length=0,c++),t=r.length,m!==t&&(c++,o.length=m=t);for(var u=0;u<t;u++)s=o[u],a=r[u],s!=s&&a!=a||s===a||(c++,o[u]=a)}else{for(n in o!==p&&(o=p={},m=0,c++),t=0,r)gr.call(r,n)&&(t++,a=r[n],s=o[n],n in o?s!=s&&a!=a||s===a||(c++,o[n]=a):(m++,o[n]=a,c++));if(m>t)for(n in c++,o)gr.call(r,n)||(m--,delete o[n])}else o!==r&&(o=r,c++);return c}}n.$$pure=s(e).literal,n.$stateful=!n.$$pure;var r,o,a,u=this,l=t.length>1,c=0,f=s(e,n),d=[],p={},h=!0,m=0;return this.$watch(f,(function(){if(h?(h=!1,t(r,r,u)):t(r,a,u),l)if(w(r))if(i(r)){a=new Array(r.length);for(var e=0;e<r.length;e++)a[e]=r[e]}else for(var n in a={},r)gr.call(r,n)&&(a[n]=r[n]);else a=r}))},$digest:function(){var i,o,s,u,c,f,d,m,v,$=e,y=C.length?x:this,w=[];p("$digest"),l.$$checkUrlChange(),this===x&&null!==a&&(l.defer.cancel(a),b()),n=null;do{c=!1,d=y;for(var k=0;k<C.length;k++){try{(0,(v=C[k]).fn)(v.scope,v.locals)}catch(i){r(i)}n=null}C.length=0;e:do{if(u=!d.$$suspended&&d.$$watchers)for(u.$$digestWatchIndex=u.length;u.$$digestWatchIndex--;)try{if(i=u[u.$$digestWatchIndex])if((o=(0,i.get)(d))===(s=i.last)||(i.eq?q(o,s):Or(o)&&Or(s))){if(i===n){c=!1;break e}}else c=!0,n=i,i.last=i.eq?L(o,null):o,(0,i.fn)(o,s===g?o:s,d),$<5&&(w[m=4-$]||(w[m]=[]),w[m].push({msg:E(i.exp)?"fn: "+(i.exp.name||i.exp.toString()):i.exp,newVal:o,oldVal:s}))}catch(i){r(i)}if(!(f=!d.$$suspended&&d.$$watchersCount&&d.$$childHead||d!==y&&d.$$nextSibling))for(;d!==y&&!(f=d.$$nextSibling);)d=d.$parent}while(d=f);if((c||C.length)&&!$--)throw h(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,w)}while(c||C.length);for(h();A<S.length;)try{S[A++]()}catch(i){r(i)}S.length=A=0,l.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===x&&l.$$applicationDestroyed(),v(this,-this.$$watchersCount),this.$$listenerCount)$(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=m,this.$on=this.$watch=this.$watchGroup=function(){return m},this.$$listeners={},this.$$nextSibling=null,f(this)}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e,t){x.$$phase||C.length||l.defer((function(){C.length&&x.$digest()}),null,"$evalAsync"),C.push({scope:this,fn:s(e),locals:t})},$$postDigest:function(e){S.push(e)},$apply:function(e){try{p("$apply");try{return this.$eval(e)}finally{h()}}catch(e){r(e)}finally{try{x.$digest()}catch(e){throw r(e),e}}},$applyAsync:function(e){var t=this;e&&k.push((function(){t.$eval(e)})),e=s(e),null===a&&(a=l.defer((function(){x.$apply(b)}),null,"$applyAsync"))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(delete n[r],$(i,1,e))}},$emit:function(e,t){var n,i,o,a=[],s=this,u=!1,l={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=U([l],arguments,1);do{for(n=s.$$listeners[e]||a,l.currentScope=s,i=0,o=n.length;i<o;i++)if(n[i])try{n[i].apply(null,c)}catch(e){r(e)}else n.splice(i,1),i--,o--;if(u)break;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,t){var n=this,i=n,o=n,a={name:e,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return a;for(var s,u,l,c=U([a],arguments,1);i=o;){for(a.currentScope=i,u=0,l=(s=i.$$listeners[e]||[]).length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(e){r(e)}else s.splice(u,1),u--,l--;if(!(o=i.$$listenerCount[e]&&i.$$childHead||i!==n&&i.$$nextSibling))for(;i!==n&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var x=new d,C=x.$$asyncQueue=[],S=x.$$postDigestQueue=[],k=x.$$applyAsyncQueue=[],A=0;return x}]}function an(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return b(t)?(e=t,this):e},this.imgSrcSanitizationTrustedUrlList=function(e){return b(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,o=$n(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}function sn(e){return e.replace(so,me)}function un(e){var t=[];return b(e)&&o(e,(function(e){t.push(function(e){if("self"===e)return e;if(C(e)){if(e.indexOf("***")>-1)throw oo("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=jr(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(O(e))return new RegExp("^"+e.source+"$");throw oo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))})),t}function ln(){this.SCE_CONTEXTS=ao;var e=["self"],t=[];this.trustedResourceUrlList=function(t){return arguments.length&&(e=un(t)),e},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return arguments.length&&(t=un(e)),t},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(n,r){function i(e,t){return"self"===e?function(e){return gn(e,fo)}(t)||function(e){return gn(e,yn())}(t):!!e.exec(t.href)}function o(n){var r,o,a=$n(n.toString()),s=!1;for(r=0,o=e.length;r<o;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;r<o;r++)if(i(t[r],a)){s=!1;break}return s}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var s=function(e){throw oo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(s=n.get("$sanitize"));var u=a(),l={};return l[ao.HTML]=a(u),l[ao.CSS]=a(u),l[ao.MEDIA_URL]=a(u),l[ao.URL]=a(l[ao.MEDIA_URL]),l[ao.JS]=a(u),l[ao.RESOURCE_URL]=a(l[ao.URL]),{trustAs:function(e,t){var n=l.hasOwnProperty(e)?l[e]:null;if(!n)throw oo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||y(t)||""===t)return t;if("string"!=typeof t)throw oo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,t){if(null===t||y(t)||""===t)return t;var n=l.hasOwnProperty(e)?l[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(E(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),e===ao.MEDIA_URL||e===ao.URL)return r(t.toString(),e===ao.MEDIA_URL);if(e===ao.RESOURCE_URL){if(o(t))return t;throw oo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===ao.HTML)return s(t);throw oo("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof u?e.$$unwrapTrustedValue():e}}}]}function cn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&fr<8)throw oo("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=pe(ao);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=v),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,(function(t){return r.getTrusted(e,t)}))};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(ao,(function(e,t){var n=yr(t);r[sn("parse_as_"+n)]=function(t){return i(e,t)},r[sn("get_trusted_"+n)]=function(t){return a(e,t)},r[sn("trust_as_"+n)]=function(t){return s(e,t)}})),r}]}function fn(){this.$get=["$window","$document",function(e,t){var n={},r=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=p((/android (\d+)/.exec(yr((e.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((e.navigator||{}).userAgent),a=t[0]||{},s=a.body&&a.body.style,u=!1,l=!1;return s&&(u=!(!("transition"in s)&&!("webkitTransition"in s)),l=!(!("animation"in s)&&!("webkitAnimation"in s))),{history:!(!r||i<4||o),hasEvent:function(e){if("input"===e&&fr)return!1;if(y(n[e])){var t=a.createElement("div");n[e]="on"+e in t}return n[e]},csp:Ir(),transitions:u,animations:l,android:i}}]}function dn(){this.$get=$((function(e){return new pn(e)}))}function pn(e){function t(){var e=o.pop();return e&&e.cb}function n(e){for(var t=o.length-1;t>=0;--t){var n=o[t];if(n.type===e)return o.splice(t,1),n.cb}}var r=this,i={},o=[],a=r.ALL_TASKS_TYPE="$$all$$",s=r.DEFAULT_TASK_TYPE="$$default$$";r.completeTask=function(r,o){o=o||s;try{r()}finally{!function(e){e=e||s,i[e]&&(i[e]--,i[a]--)}(o);var u=i[o],l=i[a];if(!l||!u)for(var c,f=l?n:t;c=f(o);)try{c()}catch(r){e.error(r)}}},r.incTaskCount=function(e){i[e=e||s]=(i[e]||0)+1,i[a]=(i[a]||0)+1},r.notifyWhenNoPendingTasks=function(e,t){i[t=t||a]?o.push({type:t,cb:e}):e()}}function hn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,u){a.totalPendingRequests++,C(s)&&!y(n.get(s))||(s=o.getTrustedResourceUrl(s));var l=r.defaults&&r.defaults.transformResponse;return A(l)?l=l.filter((function(e){return e!==mt})):l===mt&&(l=null),r.get(s,f({cache:n,transformResponse:l},e)).finally((function(){a.totalPendingRequests--})).then((function(e){return n.put(s,e.data)}),(function(e){return u||(e=uo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e)),i.reject(e)}))}return a.totalPendingRequests=0,a}]}function mn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={findBindings:function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,(function(e){var r=Tr.element(e).data("$binding");r&&o(r,(function(r){n?new RegExp("(^|\\s)"+jr(t)+"(\\s|\\||$)").test(r)&&i.push(e):-1!==r.indexOf(t)&&i.push(e)}))})),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]',a=e.querySelectorAll(o);if(a.length)return a}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}};return r}]}function vn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){E(o)||(u=s,s=o,o=m);var l,c=H(arguments,3),f=b(u)&&!u,d=(f?r:n).defer(),p=d.promise;return l=t.defer((function(){try{d.resolve(o.apply(null,c))}catch(e){d.reject(e),i(e)}finally{delete a[p.$$timeoutId]}f||e.$apply()}),s,"$timeout"),p.$$timeoutId=l,a[l]=d,p}var a={};return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw lo("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!a.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,r=a[n];return nn(r.promise),r.reject("canceled"),delete a[n],t.defer.cancel(n)},o}]}function $n(e){if(!C(e))return e;var t=e;fr&&(co.setAttribute("href",t),t=co.href),co.setAttribute("href",t);var n=co.hostname;return!po&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:co.href,protocol:co.protocol?co.protocol.replace(/:$/,""):"",host:co.host,search:co.search?co.search.replace(/^\?/,""):"",hash:co.hash?co.hash.replace(/^#/,""):"",hostname:n,port:co.port,pathname:"/"===co.pathname.charAt(0)?co.pathname:"/"+co.pathname}}function gn(e,t){return e=$n(e),t=$n(t),e.protocol===t.protocol&&e.host===t.host}function yn(){return e.document.baseURI?e.document.baseURI:(io||((io=e.document.createElement("a")).href=".",io=io.cloneNode(!1)),io.href)}function bn(){this.$get=$(e)}function wn(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var n=e[0]||{},r={},i="";return function(){var e,o,a,s,u,l=function(e){try{return e.cookie||""}catch(e){return""}}(n);if(l!==i)for(e=(i=l).split("; "),r={},a=0;a<e.length;a++)(s=(o=e[a]).indexOf("="))>0&&(u=t(o.substring(0,s)),y(r[u])&&(r[u]=t(o.substring(s+1))));return r}}function xn(){this.$get=wn}function Cn(e){function t(r,i){if(w(r)){var a={};return o(r,(function(e,n){a[n]=t(n,e)})),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Tn),t("date",Nn),t("filter",Sn),t("json",Pn),t("limitTo",Ln),t("lowercase",bo),t("number",En),t("orderBy",qn),t("uppercase",wo)}function Sn(){return function(e,t,n,o){if(!i(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}var a,s;switch(o=o||"$",An(t)){case"function":a=t;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=function(e,t,n,r){var i=w(e)&&n in e;return!0===t?t=q:E(t)||(t=function(e,t){return!(y(e)||(null===e||null===t?e!==t:w(t)||w(e)&&!g(e)||(e=yr(""+e),t=yr(""+t),-1===e.indexOf(t))))}),function(o){return i&&!w(o)?kn(o,e[n],t,n,!1):kn(o,e,t,n,r)}}(t,n,o,s);break;default:return e}return Array.prototype.filter.call(e,a)}}function kn(e,t,n,r,i,o){var a=An(e),s=An(t);if("string"===s&&"!"===t.charAt(0))return!kn(e,t.substring(1),n,r,i);if(A(e))return e.some((function(e){return kn(e,t,n,r,i)}));switch(a){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&kn(e[u],t,n,r,!0))return!0;return!o&&kn(e,t,n,r,!1)}if("object"===s){for(u in t){var l=t[u];if(!E(l)&&!y(l)){var c=u===r;if(!kn(c?e:e[u],l,n,r,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function An(e){return null===e?"null":typeof e}function Tn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){y(n)&&(n=t.CURRENCY_SYM),y(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:On(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function En(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:On(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function On(e,t,n,r,i){if(!C(e)&&!S(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",l="";if(a)l="∞";else{o=function(e){var t,n,r,i,o,a=0;for((n=e.indexOf(mo))>-1&&(e=e.replace(mo,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===vo;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===vo;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>ho&&(t=t.splice(0,ho-1),a=n-1,n=1),{d:t,e:a,i:n}}(u),function(e,t,n,r){var i=e.d,o=i.length-e.i,a=(t=y(t)?Math.min(Math.max(n,o),r):+t)+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight((function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)}),0);f&&(i.unshift(f),e.i++)}(o,i,t.minFrac,t.maxFrac);var c=o.d,f=o.i,d=o.e,p=[];for(s=c.reduce((function(e,t){return e&&!t}),!0);f<0;)c.unshift(0),f++;f>0?p=c.splice(f,c.length):(p=c,c=[0]);var h=[];for(c.length>=t.lgSize&&h.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)h.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&h.unshift(c.join("")),l=h.join(n),p.length&&(l+=r+p.join("")),d&&(l+="e+"+d)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Mn(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=vo+e;return n&&(e=e.substr(e.length-t)),i+e}function Dn(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),Mn(a,t,r,i)}}function jn(e,t,n){return function(r,i){var o=r["get"+e]();return i[br((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function In(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Vn(e){return function(t){var n=In(t.getFullYear()),r=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}(t),i=+r-+n;return Mn(1+Math.round(i/6048e5),e)}}function _n(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function Nn(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(r,p(t[1]),p(t[2])-1,p(t[3]));var u=p(t[4]||0)-i,l=p(t[5]||0)-o,c=p(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,l,c,f),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,u="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,C(n)&&(n=yo.test(n)?p(n):t(n)),S(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;r;)(s=go.exec(r))?r=(l=U(l,s,1)).pop():(l.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=G(i,c),n=J(n,i,!0)),o(l,(function(t){a=$o[t],u+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),u}}function Pn(){return function(e,t){return y(t)&&(t=2),z(e,t)}}function Ln(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):p(t),Or(t)?e:(S(e)&&(e=e.toString()),i(e)?(n=(n=!n||isNaN(n)?0:p(n))<0?Math.max(0,e.length+n):n,t>=0?Rn(e,n,n+t):0===n?Rn(e,t,e.length):Rn(e,Math.max(0,n+t),n)):e)}}function Rn(e,t,n){return C(e)?e.slice(t,n):wr.call(e,t,n)}function qn(e){function t(t){return t.map((function(t){var n=1,r=v;if(E(t))r=t;else if(C(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).constant)){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}}))}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return E(e.valueOf)&&n(e=e.valueOf())||g(e)&&n(e=e.toString()),e}function a(e,t){var n=typeof e;return null===e?n="null":"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(w(o)&&(o=e.index),w(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}return function(e,n,o,u){if(null==e)return e;if(!i(e))throw r("orderBy")("notarray","Expected array but received: {0}",e);A(n)||(n=[n]),0===n.length&&(n=["+"]);var l=t(n),c=o?-1:1,f=E(u)?u:s,d=Array.prototype.map.call(e,(function(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:l.map((function(n){return a(n.get(e),t)}))}}));return d.sort((function(e,t){for(var n=0,r=l.length;n<r;n++){var i=f(e.predicateValues[n],t.predicateValues[n]);if(i)return i*l[n].descending*c}return(f(e.tieBreaker,t.tieBreaker)||s(e.tieBreaker,t.tieBreaker))*c})),d.map((function(e){return e.value}))}}function Un(e){return E(e)&&(e={link:e}),e.restrict=e.restrict||"AC",$(e)}function Hn(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=So,this.$$element=e,this.$$animate=r,Fn(this)}function Fn(e){e.$$classCache={},e.$$classCache[ua]=!(e.$$classCache[sa]=e.$$element.hasClass(sa))}function Bn(e){function t(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function n(e,n,r){n=n?"-"+oe(n,"-"):"",t(e,sa+n,!0===r),t(e,ua+n,!1===r)}var r=e.clazz,i=e.set,o=e.unset;r.prototype.$setValidity=function(e,r,a){var s;y(r)?function(e,t,n,r){e[t]||(e[t]={}),i(e[t],n,r)}(this,"$pending",e,a):function(e,t,n,r){e[t]&&o(e[t],n,r),zn(e[t])&&(e[t]=void 0)}(this,"$pending",e,a),j(r)?r?(o(this.$error,e,a),i(this.$$success,e,a)):(i(this.$error,e,a),o(this.$$success,e,a)):(o(this.$error,e,a),o(this.$$success,e,a)),this.$pending?(t(this,ko,!0),this.$valid=this.$invalid=void 0,n(this,"",null)):(t(this,ko,!1),this.$valid=zn(this.$error),this.$invalid=!this.$valid,n(this,"",this.$valid)),n(this,e,s=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,s,this)}}function zn(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Wn(e){e.$formatters.push((function(t){return e.$isEmpty(t)?t:t.toString()}))}function Gn(e,t,n,r,i,o){var a=yr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",(function(){s=!0})),t.on("compositionupdate",(function(e){(y(e.data)||""===e.data)&&(s=!1)})),t.on("compositionend",(function(){s=!1,l()}))}var u,l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Dr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){u||(u=o.defer((function(){u=null,t&&t.value===n||l(e)})))};t.on("keydown",(function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)})),i.hasEvent("paste")&&t.on("paste cut drop",c)}t.on("change",l),Ro[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(Lo,(function(e){if(!u){var t=this[$r],n=t.badInput,r=t.typeMismatch;u=o.defer((function(){u=null,t.badInput===n&&t.typeMismatch===r||l(e)}))}})),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function Kn(e,t){return function(n,r){var i,a;if(k(n))return n;if(C(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Oo.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n)){i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,(function(e,n){n<t.length&&(a[t[n]]=+e)}));var s=new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0);return a.yyyy<100&&s.setFullYear(a.yyyy),s}}return NaN}}function Jn(e,t,n,r){return function(i,o,a,s,u,l,c,f){function d(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function p(e){return b(e)&&!k(e)?h(e)||void 0:e}function h(e,t){var r=s.$options.getOption("timezone");v&&v!==r&&(t=K(t,G(v)));var i=n(e,t);return!isNaN(i)&&r&&(i=J(i,r)),i}Yn(i,o,a,s,e),Gn(0,o,a,s,u,l);var m,v,$="time"===e||"datetimelocal"===e;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:t.test(n)?h(n,m):void(s.$$parserName=e)})),s.$formatters.push((function(e){if(e&&!k(e))throw fa("datefmt","Expected `{0}` to be a date",e);if(d(e)){m=e;var t=s.$options.getOption("timezone");return t&&(v=t,m=J(m,t,!0)),function(e,t){var n=r;$&&C(s.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=c("date")(e,n,t);return $&&s.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,"")),i}(e,t)}return m=null,v=null,""})),b(a.min)||a.ngMin){var g=a.min||f(a.ngMin)(i),w=p(g);s.$validators.min=function(e){return!d(e)||y(w)||n(e)>=w},a.$observe("min",(function(e){e!==g&&(w=p(e),g=e,s.$validate())}))}if(b(a.max)||a.ngMax){var x=a.max||f(a.ngMax)(i),S=p(x);s.$validators.max=function(e){return!d(e)||y(S)||n(e)<=S},a.$observe("max",(function(e){e!==x&&(S=p(e),x=e,s.$validate())}))}}}function Yn(e,t,n,r,i){var o=t[0];(r.$$hasNativeValidators=w(o.validity))&&r.$parsers.push((function(e){var n=t.prop($r)||{};return n.badInput||n.typeMismatch?void(r.$$parserName=i):e}))}function Xn(e){e.$parsers.push((function(t){return e.$isEmpty(t)?null:jo.test(t)?parseFloat(t):void(e.$$parserName="number")})),e.$formatters.push((function(t){if(!e.$isEmpty(t)){if(!S(t))throw fa("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}))}function Zn(e){return b(e)&&!S(e)&&(e=parseFloat(e)),Or(e)?void 0:e}function Qn(e){return(0|e)===e}function er(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function tr(e,t,n){var r=Number(e),i=!Qn(r),o=!Qn(t),a=!Qn(n);if(i||o||a){var s=i?er(r):0,u=o?er(t):0,l=a?er(n):0,c=Math.max(s,u,l),f=Math.pow(10,c);r*=f,t*=f,n*=f,i&&(r=Math.round(r)),o&&(t=Math.round(t)),a&&(n=Math.round(n))}return(r-t)%n==0}function nr(e,t,n,r,i){var o;if(b(r)){if(!(o=e(r)).constant)throw fa("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function rr(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function r(e){return e&&e.split(" ")}function i(e){if(!e)return e;var t=e;return A(e)?t=e.map(i).join(" "):w(e)?t=Object.keys(e).filter((function(t){return e[t]})).join(" "):C(e)||(t=e+""),t}var a;return e="ngClass"+e,["$parse",function(s){return{restrict:"AC",link:function(u,l,c){function f(e,t){var n=[];return o(e,(function(e){(t>0||p[e])&&(p[e]=(p[e]||0)+t,p[e]===+(t>0)&&n.push(e))})),n.join(" ")}var d,p=l.data("$classCounts"),h=!0;p||(p=fe(),l.data("$classCounts",p)),"ngClass"!==e&&(a||(a=s("$index",(function(e){return 1&e}))),u.$watch(a,(function(e){e===t?function(e){e=f(r(e),1),c.$addClass(e)}(d):function(e){e=f(r(e),-1),c.$removeClass(e)}(d),h=e}))),u.$watch(s(c[e],i),(function(e){h===t&&function(e,t){var i=r(e),o=r(t),a=n(i,o),s=n(o,i),u=f(a,-1),l=f(s,1);c.$addClass(l),c.$removeClass(u)}(d,e),d=e}))}}}]}function ir(e,t,n,r,i,o){return{restrict:"A",compile:function(a,s){var u=e(s[r]);return function(e,r){r.on(i,(function(r){var i=function(){u(e,{$event:r})};if(t.$$phase)if(o)e.$evalAsync(i);else try{i()}catch(e){n(e)}else e.$apply(i)}))}}}}function or(e,t,n,r,i,o,a,s,u){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(n.name||"",!1)(e),this.$$parentForm=So,this.$options=da,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,Fn(this),function(e){e.$$scope.$watch((function(t){var n=e.$$ngModelGet(t);return n===e.$modelValue||e.$modelValue!=e.$modelValue&&n!=n||e.$$setModelValue(n),n}))}(this)}function ar(e){this.$$options=e}function sr(e,t){o(t,(function(t,n){b(e[n])||(e[n]=t)}))}function ur(e,t){e.prop("selected",t),e.attr("selected",t)}function lr(e,t,n){if(e){if(C(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,Y(n));return e}}function cr(e){var t=p(e);return Or(t)?-1:t}var fr,dr,pr,hr,mr={objectMaxDepth:5,urlErrorParamsEnabled:!0},vr=/^\/(.+)\/([a-z]*)$/,$r="validity",gr=Object.prototype.hasOwnProperty,yr=function(e){return C(e)?e.toLowerCase():e},br=function(e){return C(e)?e.toUpperCase():e},wr=[].slice,xr=[].splice,Cr=[].push,Sr=Object.prototype.toString,kr=Object.getPrototypeOf,Ar=r("ng"),Tr=e.angular||(e.angular={}),Er=0;fr=e.document.documentMode;var Or=Number.isNaN||function(e){return e!=e};m.$inject=[],v.$inject=[];var Mr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,Dr=function(e){return C(e)?e.trim():e},jr=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ir=function(){if(!b(Ir.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Ir.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else Ir.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return Ir.rules},Vr=function(){if(b(Vr.name_))return Vr.name_;var t,n,r,i,o=Nr.length;for(n=0;n<o;++n)if(r=Nr[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Vr.name_=i},_r=/:/g,Nr=["ng-","data-ng-","ng:","x-ng-"],Pr=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every((function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(e.document),Lr=/[A-Z]/g,Rr=!1,qr=1,Ur=3,Hr=8,Fr=9,Br=11,zr={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};we.expando="ng339";var Wr=we.cache={},Gr=1;we._data=function(e){return this.cache[e[this.expando]]||{}};var Kr=/-([a-z])/g,Jr=/^-ms-/,Yr={mouseleave:"mouseout",mouseenter:"mouseover"},Xr=r("jqLite"),Zr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Qr=/<|&#?\w+;/,ei=/<([\w:-]+)/,ti=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ni={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};ni.tbody=ni.tfoot=ni.colgroup=ni.caption=ni.thead,ni.th=ni.td;var ri={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var ii in ni){var oi=ni[ii],ai=oi.slice().reverse();ri[ii]=[ai.length,"<"+ai.join("><")+">","</"+oi.join("></")+">"]}ri.optgroup=ri.option;var si=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},ui=we.prototype={ready:Re,toString:function(){var e=[];return o(this,(function(t){e.push(""+t)})),"["+e.join(", ")+"]"},eq:function(e){return dr(e>=0?this[e]:this[this.length+e])},length:0,push:Cr,sort:[].sort,splice:[].splice},li={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(e){li[yr(e)]=e}));var ci={};o("input,select,option,textarea,button,form,details".split(","),(function(e){ci[e]=!0}));var fi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:Oe,removeData:Te,hasData:function(e){for(var t in Wr[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)Te(e[t]),Ae(e[t])}},(function(e,t){we[t]=e})),o({data:Oe,inheritedData:_e,scope:function(e){return dr.data(e,"$scope")||_e(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return dr.data(e,"$isolateScope")||dr.data(e,"$isolateScopeNoTemplate")},controller:Ve,injector:function(e){return _e(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Me,css:function(e,t,n){if(t=function(e){return ve(e.replace(Jr,"ms-"))}(t),!b(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==Ur&&2!==i&&i!==Hr&&e.getAttribute){var o=yr(t),a=li[o];if(!b(n))return r=e.getAttribute(t),a&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&a?e.removeAttribute(t):e.setAttribute(t,a?o:n)}},prop:function(e,t,n){if(!b(n))return e[t];e[t]=n},text:function(){function e(e,t){if(y(t)){var n=e.nodeType;return n===qr||n===Ur?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(y(t)){if(e.multiple&&"select"===_(e)){var n=[];return o(e.options,(function(e){e.selected&&n.push(e.value||e.text)})),n}return e.value}e.value=t},html:function(e,t){if(y(t))return e.innerHTML;Ce(e,!0),e.innerHTML=t},empty:Ne},(function(e,t){we.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Ne&&y(2===e.length&&e!==Me&&e!==Ve?t:n)){if(w(t)){for(r=0;r<o;r++)if(e===Oe)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=y(a)?Math.min(o,1):o,u=0;u<s;u++){var l=e(this[u],t,n);a=a?a+l:l}return a}for(r=0;r<o;r++)e(this[r],t,n);return this}})),o({removeData:Te,on:function(e,t,n,r){if(b(r))throw Xr("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ge(e)){var i=Ee(e,!0),o=i.events,a=i.handle;a||(a=i.handle=function(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(y(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||Ue;o>1&&(i=pe(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length,l=function(t,r,i){var s=o[t];s||((s=o[t]=[]).specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,a)),s.push(n)};u--;)t=s[u],Yr[t]?(l(Yr[t],He),l(t,void 0,!0)):l(t)}},off:Ae,one:function(e,t,n){(e=dr(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;Ce(e),o(new we(t),(function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t}))},children:function(e){var t=[];return o(e.childNodes,(function(e){e.nodeType===qr&&t.push(e)})),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===qr||n===Br)for(var r=0,i=(t=new we(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(e,t){if(e.nodeType===qr){var n=e.firstChild;o(new we(t),(function(t){e.insertBefore(t,n)}))}},wrap:function(e,t){!function(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}(e,dr(t).eq(0).clone()[0])},remove:Pe,detach:function(e){Pe(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new we(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:je,removeClass:De,toggleClass:function(e,t,n){t&&o(t.split(" "),(function(t){var r=n;y(r)&&(r=!Me(e,t)),(r?je:De)(e,t)}))},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==Br?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:xe,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,u=Ee(e),l=u&&u.events,c=l&&l[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:m,type:s,target:e},t.type&&(r=f(r,t)),i=pe(c),a=n?[r].concat(n):[r],o(i,(function(t){r.isImmediatePropagationStopped()||t.apply(e,a)})))}},(function(e,t){we.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)y(i)?b(i=e(this[o],t,n,r))&&(i=dr(i)):Ie(i,e(this[o],t,n,r));return b(i)?i:this}})),we.prototype.bind=we.prototype.on,we.prototype.unbind=we.prototype.off;var di=Object.create(null);ze.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return Or(e)?di:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var pi=ze,hi=[function(){this.$get=[function(){return pi}]}],mi=/^([^(]+?)=>/,vi=/^[^(]*\(\s*([^)]*)\)/m,$i=/,/,gi=/^\s*(_?)(\S+?)\1\s*$/,yi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,bi=r("$injector");Ke.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw C(n)&&n||(n=e.name||function(e){var t=Ge(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),bi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o(Ge(e)[1].split($i),(function(e){e.replace(gi,(function(e,t,n){r.push(n)}))}))}e.$inject=r}}else A(e)?(ue(e[i=e.length-1],"fn"),r=e.slice(0,i)):ue(e,"fn",!0);return r};var wi=r("$animate"),xi=1,Ci=function(){this.$get=m},Si=function(){var e=new pi,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&o(t=C(t)?t.split(" "):A(t)?t:[],(function(t){t&&(r=!0,e[t]=n)})),r}function a(){o(t,(function(t){var n=e.get(t);if(n){var r=function(e){C(e)&&(e=e.split(" "));var t=fe();return o(e,(function(e){e.length&&(t[e]=!0)})),t}(t.attr("class")),i="",a="";o(n,(function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)})),o(t,(function(e){i&&je(e,i),a&&De(e,a)})),e.delete(t)}})),t.length=0}function s(n,o,s){var u=e.get(n)||{},l=i(u,o,!0),c=i(u,s,!1);(l||c)&&(e.set(n,u),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:m,on:m,off:m,pin:m,push:function(e,t,r,i){i&&i(),(r=r||{}).from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},ki=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw wi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=E(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)&&new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,wi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate");return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===xi)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,r,i,o){return r=r&&dr(r),i=i&&dr(i),t(n,r=r||i.parent(),i),e.push(n,"enter",Xe(o))},move:function(n,r,i,o){return r=r&&dr(r),i=i&&dr(i),t(n,r=r||i.parent(),i),e.push(n,"move",Xe(o))},leave:function(t,n){return e.push(t,"leave",Xe(n),(function(){t.remove()}))},addClass:function(t,n,r){return(r=Xe(r)).addClass=Ye(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return(r=Xe(r)).removeClass=Ye(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return(i=Xe(i)).addClass=Ye(i.addClass,n),i.removeClass=Ye(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return(o=Xe(o)).from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=Ye(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Ai=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e((function(){for(var e=0;e<n.length;e++)n[e]();n=[]}))}var n=[];return function(){var e=!1;return t((function(){e=!0})),function(n){e?n():t(n)}}}]},Ti=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){r()?function(e){i(e,0,!1)}(e):t(e)},this._state=0}return a.chain=function(e,t){var n=0;!function r(){n!==e.length?e[n]((function(e){!1!==e?(n++,r()):t(!1)})):t(!0)}()},a.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,(function(e){e.done(n)}))},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:m,getPromise:function(){if(!this.promise){var t=this;this.promise=e((function(e,n){t.done((function(t){!1===t?n():e()}))}))}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick((function(){t._resolve(e)})))},_resolve:function(e){2!==this._state&&(o(this._doneCallbacks,(function(t){t(e)})),this._doneCallbacks.length=0,this._state=2)}},a}]},Ei=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e((function(){o.addClass&&(t.addClass(o.addClass),o.addClass=null),o.removeClass&&(t.removeClass(o.removeClass),o.removeClass=null),o.to&&(t.css(o.to),o.to=null),a||s.complete(),a=!0})),s}var o=r||{};o.$$prepared||(o=L(o)),o.cleanupStyles&&(o.from=o.to=null),o.from&&(t.css(o.from),o.from=null);var a,s=new n;return{start:i,end:i}}}]},Oi=r("$compile"),Mi=new function(){};nt.$inject=["$provide","$$sanitizeUriProvider"],rt.prototype.isFirstChange=function(){return this.previousValue===Mi};var Di=/^((?:x|data)[:\-_])/i,ji=/[:\-_]+(.)/g,Ii=r("$controller"),Vi=/^(\S+)(\s+as\s+([\w$]+))?$/,_i=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof dr&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Ni="application/json",Pi={"Content-Type":Ni+";charset=utf-8"},Li=/^\[|^\{(?!\{)/,Ri={"[":/]$/,"{":/}$/},qi=/^\)]\}',?\n/,Ui=r("$http"),Hi=Tr.$interpolateMinErr=r("$interpolate");Hi.throwNoconcat=function(e){throw Hi("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",e)},Hi.interr=function(e,t){return Hi("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Fi=r("$interval"),Bi=function(){this.$get=function(){var e=Tr.callbacks,t={};return{createCallback:function(n){var r="_"+(e.$$counter++).toString(36),i="angular.callbacks."+r,o=function(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}(r);return t[i]=e[r]=o,i},wasCalled:function(e){return t[e].called},getResponse:function(e){return t[e].data},removeCallback:function(n){var r=t[n];delete e[r.id],delete t[n]}}}},zi=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Wi={http:80,https:443,ftp:21},Gi=r("$location"),Ki=/^\s*[\\/]{2,}/,Ji={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=At(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:_t("$$absUrl"),url:function(e){if(y(e))return this.$$url;var t=zi.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:_t("$$protocol"),host:_t("$$host"),port:_t("$$port"),path:Nt("$$path",(function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e})),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(C(e)||S(e))e=e.toString(),this.$$search=Z(e);else{if(!w(e))throw Gi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");o(e=L(e,{}),(function(t,n){null==t&&delete e[n]})),this.$$search=e}break;default:y(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Nt("$$hash",(function(e){return null!==e?e.toString():""})),replace:function(){return this.$$replace=!0,this}};o([Vt,It,jt],(function(e){e.prototype=Object.create(Ji),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==jt||!this.$$html5)throw Gi("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=y(t)?null:t,this.$$urlUpdatedByLocation=!0,this}}));var Yi=r("$parse"),Xi={}.constructor.prototype.valueOf,Zi=fe();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(e){Zi[e]=!0}));var Qi={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},eo=function(e){this.options=e};eo.prototype={constructor:eo,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];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.isIdentifierStart(this.peekMultichar()))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(),r=n+this.peek(2),i=Zi[t],o=Zi[n],a=Zi[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Yi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=yr(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else n+=Qi[o]||o;i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var to=function(e,t){this.lexer=e,this.options=t};to.Program="Program",to.ExpressionStatement="ExpressionStatement",to.AssignmentExpression="AssignmentExpression",to.ConditionalExpression="ConditionalExpression",to.LogicalExpression="LogicalExpression",to.BinaryExpression="BinaryExpression",to.UnaryExpression="UnaryExpression",to.CallExpression="CallExpression",to.MemberExpression="MemberExpression",to.Identifier="Identifier",to.Literal="Literal",to.ArrayExpression="ArrayExpression",to.Property="Property",to.ObjectExpression="ObjectExpression",to.ThisExpression="ThisExpression",to.LocalsExpression="LocalsExpression",to.NGValueParameter="NGValueParameter",to.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:to.Program,body:e}},expressionStatement:function(){return{type:to.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Bt(e))throw Yi("lval","Trying to assign a value to a non l-value");e={type:to.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:to.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:to.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:to.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:to.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:to.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:to.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:to.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:to.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=L(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:to.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:to.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:to.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:to.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:to.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:to.Identifier,name:e.text}},constant:function(){return{type:to.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:to.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:to.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:to.ObjectExpression,properties:t}},throwError:function(e,t){throw Yi("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))},consume:function(e){if(0===this.tokens.length)throw Yi("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Yi("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 o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:to.ThisExpression},$locals:{type:to.LocalsExpression}}};var no=1,ro=2;Wt.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Ht(e,t.$filter);var n,r="";if(this.stage="assign",n=zt(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var a=Ft(e.body);t.stage="inputs",o(a,(function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(e);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,Rt,qt,Ut);return this.state=this.stage=void 0,u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,(function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")})),t.length&&e.push("fn.inputs=["+t.map((function(e){return e.name})).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,(function(n,r){e.push(n+"=$filter("+t.escape(r)+")")})),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,a){var s,u,l,c,f,d=this;if(r=r||m,!a&&b(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case to.Program:o(e.body,(function(t,n){d.recurse(t.expression,void 0,void 0,(function(e){u=e})),n!==e.body.length-1?d.current().body.push(u,";"):d.return_(u)}));break;case to.Literal:c=this.escape(e.value),this.assign(t,c),r(t||c);break;case to.UnaryExpression:this.recurse(e.argument,void 0,void 0,(function(e){u=e})),c=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,c),r(c);break;case to.BinaryExpression:this.recurse(e.left,void 0,void 0,(function(e){s=e})),this.recurse(e.right,void 0,void 0,(function(e){u=e})),c="+"===e.operator?this.plus(s,u):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(u,0):"("+s+")"+e.operator+"("+u+")",this.assign(t,c),r(c);break;case to.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),r(t);break;case to.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),r(t);break;case to.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),(function(){d.if_("inputs"===d.stage||"s",(function(){i&&1!==i&&d.if_(d.isNull(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),d.assign(t,d.nonComputedMember("s",e.name))}))}),t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),r(t);break;case to.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,s,void 0,(function(){d.if_(d.notNull(s),(function(){e.computed?(u=d.nextId(),d.recurse(e.property,u),d.getStringValue(u),i&&1!==i&&d.if_(d.not(d.computedMember(s,u)),d.lazyAssign(d.computedMember(s,u),"{}")),c=d.computedMember(s,u),d.assign(t,c),n&&(n.computed=!0,n.name=u)):(i&&1!==i&&d.if_(d.isNull(d.nonComputedMember(s,e.property.name)),d.lazyAssign(d.nonComputedMember(s,e.property.name),"{}")),c=d.nonComputedMember(s,e.property.name),d.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))}),(function(){d.assign(t,"undefined")})),r(t)}),!!i);break;case to.CallExpression:t=t||this.nextId(),e.filter?(u=d.filter(e.callee.name),l=[],o(e.arguments,(function(e){var t=d.nextId();d.recurse(e,t),l.push(t)})),c=u+"("+l.join(",")+")",d.assign(t,c),r(t)):(u=d.nextId(),s={},l=[],d.recurse(e.callee,u,s,(function(){d.if_(d.notNull(u),(function(){o(e.arguments,(function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,(function(e){l.push(e)}))})),c=s.name?d.member(s.context,s.name,s.computed)+"("+l.join(",")+")":u+"("+l.join(",")+")",d.assign(t,c)}),(function(){d.assign(t,"undefined")})),r(t)})));break;case to.AssignmentExpression:u=this.nextId(),s={},this.recurse(e.left,void 0,s,(function(){d.if_(d.notNull(s.context),(function(){d.recurse(e.right,u),c=d.member(s.context,s.name,s.computed)+e.operator+u,d.assign(t,c),r(t||c)}))}),1);break;case to.ArrayExpression:l=[],o(e.elements,(function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,(function(e){l.push(e)}))})),c="["+l.join(",")+"]",this.assign(t,c),r(t||c);break;case to.ObjectExpression:l=[],f=!1,o(e.properties,(function(e){e.computed&&(f=!0)})),f?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,(function(e){e.computed?(s=d.nextId(),d.recurse(e.key,s)):s=e.key.type===to.Identifier?e.key.name:""+e.key.value,u=d.nextId(),d.recurse(e.value,u),d.assign(d.member(t,s,e.computed),u)}))):(o(e.properties,(function(t){d.recurse(t.value,e.constant?void 0:d.nextId(),void 0,(function(e){l.push(d.escape(t.key.type===to.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),c="{"+l.join(",")+"}",this.assign(t,c)),r(t||c);break;case to.ThisExpression:this.assign(t,"s"),r(t||"s");break;case to.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case to.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(C(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(S(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Yi("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Gt.prototype={compile:function(e){var t,n,r=this;Ht(e,r.$filter),(t=zt(e))&&(n=this.recurse(t));var i,a=Ft(e.body);a&&(i=[],o(a,(function(e,t){var n=r.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=t})));var s=[];o(e.body,(function(e){s.push(r.recurse(e.expression))}));var u=0===e.body.length?m:1===e.body.length?s[0]:function(e,t){var n;return o(s,(function(r){n=r(e,t)})),n};return n&&(u.assign=function(e,t,r){return n(e,r,t)}),i&&(u.inputs=i),u},recurse:function(e,t,n){var r,i,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case to.Literal:return this.value(e.value,t);case to.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case to.BinaryExpression:case to.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case to.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case to.Identifier:return s.identifier(e.name,t,n);case to.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case to.CallExpression:return a=[],o(e.arguments,(function(e){a.push(s.recurse(e))})),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var s=[],u=0;u<a.length;++u)s.push(a[u](e,n,r,o));var l=i.apply(void 0,s,o);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,o){var s,u=i(e,n,r,o);if(null!=u.value){for(var l=[],c=0;c<a.length;++c)l.push(a[c](e,n,r,o));s=u.value.apply(u.context,l)}return t?{value:s}:s};case to.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,a){var s=r(e,n,o,a),u=i(e,n,o,a);return s.context[s.name]=u,t?{value:u}:u};case to.ArrayExpression:return a=[],o(e.elements,(function(e){a.push(s.recurse(e))})),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case to.ObjectExpression:return a=[],o(e.properties,(function(e){e.computed?a.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):a.push({key:e.key.type===to.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})})),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case to.ThisExpression:return function(e){return t?{value:e}:e};case to.LocalsExpression:return function(e,n){return t?{value:n}:n};case to.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?-a:-0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=Ut(e(r,i,o,a),t(r,i,o,a));return n?{value:s}:s}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=(b(s)?s:0)-(b(u)?u:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,n,r){return function(i,o,a,s){var u,l,c=e(i,o,a,s);return null!=c&&(u=Rt(u=t(i,o,a,s)),r&&1!==r&&c&&!c[u]&&(c[u]={}),l=c[u]),n?{context:c,name:u,value:l}:l}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s);r&&1!==r&&u&&null==u[t]&&(u[t]={});var l=null!=u?u[t]:void 0;return n?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},Kt.prototype={constructor:Kt,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=function(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===to.Literal||e.body[0].expression.type===to.ArrayExpression||e.body[0].expression.type===to.ObjectExpression)}(t.ast),n.constant=function(e){return e.constant}(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var io,oo=r("$sce"),ao={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},so=/_([a-z])/g,uo=r("$templateRequest"),lo=r("$timeout"),co=e.document.createElement("a"),fo=$n(e.location.href);co.href="http://[::1]";var po="[::1]"===co.hostname;wn.$inject=["$document"],Cn.$inject=["$provide"];var ho=22,mo=".",vo="0";Tn.$inject=["$locale"],En.$inject=["$locale"];var $o={yyyy:Dn("FullYear",4,0,!1,!0),yy:Dn("FullYear",2,0,!0,!0),y:Dn("FullYear",1,0,!1,!0),MMMM:jn("Month"),MMM:jn("Month",!0),MM:Dn("Month",2,1),M:Dn("Month",1,1),LLLL:jn("Month",!1,!0),dd:Dn("Date",2),d:Dn("Date",1),HH:Dn("Hours",2),H:Dn("Hours",1),hh:Dn("Hours",2,-12),h:Dn("Hours",1,-12),mm:Dn("Minutes",2),m:Dn("Minutes",1),ss:Dn("Seconds",2),s:Dn("Seconds",1),sss:Dn("Milliseconds",3),EEEE:jn("Day"),EEE:jn("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var r=-1*n;return(r>=0?"+":"")+(Mn(Math[r>0?"floor":"ceil"](r/60),2)+Mn(Math.abs(r%60),2))},ww:Vn(2),w:Vn(1),G:_n,GG:_n,GGG:_n,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},go=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,yo=/^-?\d+$/;Nn.$inject=["$locale"];var bo=$(yr),wo=$(br);qn.$inject=["$parse"];var xo=$({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Sr.call(t.prop("href"))?"xlink:href":"href";t.on("click",(function(e){t.attr(n)||e.preventDefault()}))}}}}),Co={};o(li,(function(e,t){function n(e,n,i){e.$watch(i[r],(function(e){i.$set(t,!!e)}))}if("multiple"!==e){var r=it("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,0,i)}),Co[r]=function(){return{restrict:"A",priority:100,link:i}}}})),o(fi,(function(e,t){Co[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(vr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],(function(e){r.$set(t,e)}))}}}})),o(["src","srcset","href"],(function(e){var t=it("ng-"+e);Co[t]=["$sce",function(n){return{priority:99,link:function(r,i,o){var a=e,s=e;"href"===e&&"[object SVGAnimatedString]"===Sr.call(i.prop("href"))&&(s="xlinkHref",o.$attr[s]="xlink:href",a=null),o.$set(t,n.getTrustedMediaUrl(o[t])),o.$observe(t,(function(t){t?(o.$set(s,t),fr&&a&&i.prop(a,o[s])):"href"===e&&o.$set(s,null)}))}}}]}));var So={$addControl:m,$getControls:$([]),$$renameControl:function(e,t){e.$name=t},$removeControl:m,$setValidity:m,$setDirty:m,$setPristine:m,$setSubmitted:m,$$setSubmitted:m},ko="ng-pending";Hn.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Hn.prototype={$rollbackViewValue:function(){o(this.$$controls,(function(e){e.$rollbackViewValue()}))},$commitViewValue:function(){o(this.$$controls,(function(e){e.$commitViewValue()}))},$addControl:function(e){le(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return pe(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,(function(t,n){this.$setValidity(n,null,e)}),this),o(this.$error,(function(t,n){this.$setValidity(n,null,e)}),this),o(this.$$success,(function(t,n){this.$setValidity(n,null,e)}),this),P(this.$$controls,e),e.$$parentForm=So},$setDirty:function(){this.$$animate.removeClass(this.$$element,la),this.$$animate.addClass(this.$$element,ca),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,la,ca+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,(function(e){e.$setPristine()}))},$setUntouched:function(){o(this.$$controls,(function(e){e.$setUntouched()}))},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==So;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,o(this.$$controls,(function(e){e.$$setSubmitted&&e.$$setSubmitted()}))}},Bn({clazz:Hn,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(P(r,n),0===r.length&&delete e[t])}});var Ao=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||m}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Hn,compile:function(n,i){n.addClass(la).addClass(sa);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",(function(){t((function(){n[0].removeEventListener("submit",u)}),0,!1)}))}(a[1]||s.$$parentForm).$addControl(s);var l=o?r(s.$name):m;o&&(l(e,s),i.$observe(o,(function(t){s.$name!==t&&(l(e,void 0),s.$$parentForm.$$renameControl(s,t),(l=r(s.$name))(e,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),l(e,void 0),f(s,So)}))}}}}}]},To=Ao(),Eo=Ao(!0),Oo=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Mo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Do=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,jo=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Io=/^(\d{4,})-(\d{2})-(\d{2})$/,Vo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,_o=/^(\d{4,})-W(\d\d)$/,No=/^(\d{4,})-(\d\d)$/,Po=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Lo="keydown wheel mousedown",Ro=fe();o("date,datetime-local,month,time,week".split(","),(function(e){Ro[e]=!0}));var qo={text:function(e,t,n,r,i,o){Gn(e,t,n,r,i,o),Wn(r)},date:Jn("date",Io,Kn(Io,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Jn("datetimelocal",Vo,Kn(Vo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Jn("time",Po,Kn(Po,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Jn("week",_o,(function(e,t){if(k(e))return e;if(C(e)){_o.lastIndex=0;var n=_o.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=In(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}),"yyyy-Www"),month:Jn("month",No,Kn(No,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o,a,s){var u;if(Yn(0,t,0,r,"number"),Xn(r),Gn(0,t,n,r,i,o),b(n.min)||n.ngMin){var l=n.min||s(n.ngMin)(e);u=Zn(l),r.$validators.min=function(e,t){return r.$isEmpty(t)||y(u)||t>=u},n.$observe("min",(function(e){e!==l&&(u=Zn(e),l=e,r.$validate())}))}if(b(n.max)||n.ngMax){var c=n.max||s(n.ngMax)(e),f=Zn(c);r.$validators.max=function(e,t){return r.$isEmpty(t)||y(f)||t<=f},n.$observe("max",(function(e){e!==c&&(f=Zn(e),c=e,r.$validate())}))}if(b(n.step)||n.ngStep){var d=n.step||s(n.ngStep)(e),p=Zn(d);r.$validators.step=function(e,t){return r.$isEmpty(t)||y(p)||tr(t,u||0,p)},n.$observe("step",(function(e){e!==d&&(p=Zn(e),d=e,r.$validate())}))}},url:function(e,t,n,r,i,o){Gn(0,t,n,r,i,o),Wn(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Mo.test(n)}},email:function(e,t,n,r,i,o){Gn(0,t,n,r,i,o),Wn(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Do.test(n)}},radio:function(e,t,n,r){var i=!n.ngTrim||"false"!==Dr(n.ngTrim);y(n.name)&&t.attr("name",u()),t.on("change",(function(e){var o;t[0].checked&&(o=n.value,i&&(o=Dr(o)),r.$setViewValue(o,e&&e.type))})),r.$render=function(){var e=n.value;i&&(e=Dr(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,o){function a(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,(function(e){e!==i&&(i=e,r(e))}))}Yn(0,t,0,r,"range"),Xn(r),Gn(0,t,n,r,i,o);var s=r.$$hasNativeValidators&&"range"===t[0].type,u=s?0:void 0,l=s?100:void 0,c=s?1:void 0,f=t[0].validity,d=b(n.min),p=b(n.max),h=b(n.step),m=r.$render;r.$render=s&&b(f.rangeUnderflow)&&b(f.rangeOverflow)?function(){m(),r.$setViewValue(t.val())}:m,d&&(u=Zn(n.min),r.$validators.min=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||y(u)||t>=u},a("min",(function(e){if(u=Zn(e),!Or(r.$modelValue))if(s){var n=t.val();u>n&&(n=u,t.val(n)),r.$setViewValue(n)}else r.$validate()}))),p&&(l=Zn(n.max),r.$validators.max=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||y(l)||t<=l},a("max",(function(e){if(l=Zn(e),!Or(r.$modelValue))if(s){var n=t.val();l<n&&(t.val(l),n=l<u?u:l),r.$setViewValue(n)}else r.$validate()}))),h&&(c=Zn(n.step),r.$validators.step=s?function(){return!f.stepMismatch}:function(e,t){return r.$isEmpty(t)||y(c)||tr(t,u||0,c)},a("step",(function(e){c=Zn(e),Or(r.$modelValue)||(s?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate())})))},checkbox:function(e,t,n,r,i,o,a,s){var u=nr(s,e,"ngTrueValue",n.ngTrueValue,!0),l=nr(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",(function(e){r.$setViewValue(t[0].checked,e&&e.type)})),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push((function(e){return q(e,u)})),r.$parsers.push((function(e){return e?u:l}))},hidden:m,button:m,submit:m,reset:m,file:m},Uo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(qo[yr(a.type)]||qo.text)(i,o,a,s[0],t,e,n,r)}}}}],Ho=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===yr(n.type))return{pre:function(t,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",e)}}}}},Fo=/^(true|false|\d+)$/,Bo=function(){function e(e,t,n){var r=b(n)?n:9===fr?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return Fo.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,(function(t){e(n,r,t)}))}}}},zo=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,(function(e){n.textContent=de(e)}))}}}}],Wo=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",(function(e){r.textContent=y(e)?"":e}))}}}}],Go=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,(function(t){return e.valueOf(t)}));return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,(function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")}))}}}}],Ko=$({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push((function(){e.$eval(n.ngChange)}))}}),Jo=rr("",!0),Yo=rr("Odd",0),Xo=rr("Even",1),Zo=Un({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Qo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ea={},ta={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(e){var t=it("ng-"+e);ea[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return ir(n,r,i,t,e,ta[e])}]}));var na=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,(function(n){n?u||a((function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)})):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=ce(s.clone),e.leave(l).done((function(e){!1!==e&&(l=null)})),s=null))}))}}}],ra=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Tr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,d,p,h=0,m=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).done((function(e){!1!==e&&(d=null)})),d=p,p=null)};r.$watch(o,(function(o){var u=function(e){!1===e||!b(s)||s&&!r.$eval(s)||t()},d=++h;o?(e(o,!0).then((function(e){if(!r.$$destroyed&&d===h){var t=r.$new();l.template=e;var s=c(t,(function(e){m(),n.enter(e,null,i).done(u)}));p=s,(f=t).$emit("$includeContentLoaded",o),r.$eval(a)}}),(function(){r.$$destroyed||d===h&&(m(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):(m(),l.template=null)}))}}}}],ia=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(Sr.call(r[0]).match(/SVG/))return r.empty(),void t(ye(o.template,e.document).childNodes)(n,(function(e){r.append(e)}),{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],oa=Un({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),aa=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",a="false"!==n.ngTrim,s=a?Dr(i):i;r.$parsers.push((function(e){if(!y(e)){var t=[];return e&&o(e.split(s),(function(e){e&&t.push(a?Dr(e):e)})),t}})),r.$formatters.push((function(e){if(A(e))return e.join(i)})),r.$isEmpty=function(e){return!e||!e.length}}}},sa="ng-valid",ua="ng-invalid",la="ng-pristine",ca="ng-dirty",fa=r("ngModel");or.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],or.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return E(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){E(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw fa("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Y(this.$$element))},$render:m,$isEmpty:function(e){return y(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,ca),this.$$animate.addClass(this.$$element,la)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,la),this.$$animate.addClass(this.$$element,ca),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!Or(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,(function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())}))}},$$runValidators:function(e,t,n){function r(e,t){a===s.$$currentValidationRunId&&s.$setValidity(e,t)}function i(e){a===s.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var a=this.$$currentValidationRunId,s=this;return function(){var e=s.$$parserName;return y(s.$$parserValid)?(r(e,null),!0):(s.$$parserValid||(o(s.$validators,(function(e,t){r(t,null)})),o(s.$asyncValidators,(function(e,t){r(t,null)}))),r(e,s.$$parserValid),s.$$parserValid)}()&&function(){var n=!0;return o(s.$validators,(function(i,o){var a=Boolean(i(e,t));n=n&&a,r(o,a)})),!!n||(o(s.$asyncValidators,(function(e,t){r(t,null)})),!1)}()?void function(){var n=[],a=!0;o(s.$asyncValidators,(function(i,o){var s=i(e,t);if(!I(s))throw fa("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);r(o,void 0),n.push(s.then((function(){r(o,!0)}),(function(){a=!1,r(o,!1)})))})),n.length?s.$$q.all(n).then((function(){i(a)}),m):i(!0)}():void i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){n.$modelValue!==i&&n.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=this;if(this.$$parserValid=!y(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var r=0;r<this.$parsers.length;r++)if(y(t=this.$parsers[r](t))){this.$$parserValid=!1;break}Or(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var i=this.$modelValue,o=this.$options.getOption("allowInvalid");this.$$rawModelValue=t,o&&(this.$modelValue=t,e()),this.$$runValidators(t,this.$$lastCommittedViewValue,(function(r){o||(n.$modelValue=r?t:void 0,e())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,(function(e){try{e()}catch(e){this.$$exceptionHandler(e)}}),this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");S(t[e])?t=t[e]:S(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:S(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,m))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},Bn({clazz:or,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var da,pa=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:or,priority:1,compile:function(t){return t.addClass(la).addClass("ng-untouched").addClass(sa),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",(function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)})),e.$on("$destroy",(function(){i.$$parentForm.$removeControl(i)}))},post:function(t,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$$setUpdateOnEvents(),n.on("blur",(function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))}))}}}}}],ha=/(\s+|^)default(\s+|$)/;ar.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return o(e=f({},e),(function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=Dr(n.replace(ha,(function(){return e.updateOnDefault=!0," "}))))}),this),t&&(delete e["*"],sr(e,this.$$options)),sr(e,da.$$options),new ar(e)}},da=new ar({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var ma=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:da,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},va=Un({terminal:!0,priority:1e3}),$a=r("ngOptions"),ga=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ya=["$compile","$document","$parse",function(t,n,r){function a(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&i(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}var s=e.match(ga);if(!s)throw $a("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Y(t));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],d=r(s[2]?s[1]:u),p=c&&r(c)||d,h=f&&r(f),m=f?function(e,t){return h(n,t)}:function(e){return Be(e)},v=function(e,t){return m(e,x(e,t))},$=r(s[2]||s[1]),g=r(s[3]||""),y=r(s[4]||""),b=r(s[8]),w={},x=l?function(e,t){return w[l]=t,w[u]=e,w}:function(e){return w[u]=e,w};return{trackBy:f,getTrackByValue:v,getWatchables:r(b,(function(e){for(var t=[],r=a(e=e||[]),i=r.length,o=0;o<i;o++){var u=e===r?o:r[o],l=e[u],c=x(l,u),f=m(l,c);if(t.push(f),s[2]||s[1]){var d=$(n,c);t.push(d)}if(s[4]){var p=y(n,c);t.push(p)}}return t})),getOptions:function(){for(var e=[],t={},r=b(n)||[],i=a(r),s=i.length,u=0;u<s;u++){var l=r===i?u:i[u],c=r[l],d=x(c,l),h=p(n,d),w=m(h,d),C=new o(w,h,$(n,d),g(n,d),y(n,d));e.push(C),t[w]=C}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return f?L(e.viewValue):e.viewValue}}}}}var s=e.document.createElement("option"),u=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=m},post:function(e,r,i,l){function c(e,t){var n=s.cloneNode(!1);t.appendChild(n),function(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}(e,n)}function f(e){var t=y.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}for(var d=l[0],p=l[1],h=i.multiple,m=0,v=r.children(),$=v.length;m<$;m++)if(""===v[m].value){d.hasEmptyOption=!0,d.emptyOption=v.eq(m);break}r.empty();var g=!!d.emptyOption;dr(s.cloneNode(!1)).val("?");var y,w=a(i.ngOptions,r,e),x=n[0].createDocumentFragment();d.generateUnknownOptionValue=function(e){return"?"},h?(d.writeValue=function(e){if(y){var t=e&&e.map(f)||[];y.items.forEach((function(e){e.element.selected&&!N(t,e)&&(e.element.selected=!1)}))}},d.readValue=function(){var e=r.val()||[],t=[];return o(e,(function(e){var n=y.selectValueMap[e];n&&!n.disabled&&t.push(y.getViewValueFromOption(n))})),t},w.trackBy&&e.$watchCollection((function(){if(A(p.$viewValue))return p.$viewValue.map((function(e){return w.getTrackByValue(e)}))}),(function(){p.$render()}))):(d.writeValue=function(e){if(y){var t=r[0].options[r[0].selectedIndex],n=y.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(r[0].value!==n.selectValue&&(d.removeUnknownOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):d.selectUnknownOrEmptyOption(e)}},d.readValue=function(){var e=y.selectValueMap[r.val()];return e&&!e.disabled?(d.unselectEmptyOption(),d.removeUnknownOption(),y.getViewValueFromOption(e)):null},w.trackBy&&e.$watch((function(){return w.getTrackByValue(p.$viewValue)}),(function(){p.$render()}))),g&&(t(d.emptyOption)(e),r.prepend(d.emptyOption),d.emptyOption[0].nodeType===Hr?(d.hasEmptyOption=!1,d.registerOption=function(e,t){""===t.val()&&(d.hasEmptyOption=!0,d.emptyOption=t,d.emptyOption.removeClass("ng-scope"),p.$render(),t.on("$destroy",(function(){var e=d.$isEmptyOptionSelected();d.hasEmptyOption=!1,d.emptyOption=void 0,e&&p.$render()})))}):d.emptyOption.removeClass("ng-scope")),e.$watchCollection(w.getWatchables,(function(){var e=y&&d.readValue();if(y)for(var t=y.items.length-1;t>=0;t--){var n=y.items[t];Pe(b(n.group)?n.element.parentNode:n.element)}y=w.getOptions();var i={};if(y.items.forEach((function(e){var t;b(e.group)?((t=i[e.group])||(t=u.cloneNode(!1),x.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),c(e,t)):c(e,x)})),r[0].appendChild(x),p.$render(),!p.$isEmpty(e)){var o=d.readValue();(w.trackBy||h?q(e,o):e===o)||(p.$setViewValue(o),p.$render())}}))}}}}],ba=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(e){s.text(e||"")}var c,f=u.count,d=u.$attr.when&&s.attr(u.$attr.when),p=u.offset||0,h=a.$eval(d)||{},v={},$=t.startSymbol(),g=t.endSymbol(),b=$+f+"-"+p+g,w=Tr.noop;o(u,(function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+yr(n[2]);h[r]=s.attr(u.$attr[t])}})),o(h,(function(e,n){v[n]=t(e.replace(r,b))})),a.$watch(f,(function(t){var r=parseFloat(t),i=Or(r);if(i||r in h||(r=e.pluralCat(r-p)),!(r===c||i&&Or(c))){w();var o=v[r];y(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+d),w=m,l()):w=a.$watch(o,l),c=r}}))}}}],wa=r("ngRef"),xa=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=it(_(t)),i=e(n.ngRef),o=i.assign||function(){throw wa("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,a){var s;if(a.hasOwnProperty("ngRefRead")){if("$element"===a.ngRefRead)s=t;else if(!(s=t.data("$"+a.ngRefRead+"Controller")))throw wa("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',a.ngRefRead,n.ngRef)}else s=t.data("$"+r+"Controller");o(e,s=s||t),t.on("$destroy",(function(){i(e)===s&&o(e,null)}))}}}}],Ca=["$parse","$animate","$compile",function(e,t,n){var a=r("ngRepeat"),s=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},u=function(e){return e.clone[0]},l=function(e){return e.clone[e.clone.length-1]},c=function(e,t,n){return Be(n)},f=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,d){var p=d.ngRepeat,h=n.$$createComment("end ngRepeat",p),m=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var v=m[1],$=m[2],g=m[3],y=m[4];if(!(m=v.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var b,w=m[3]||m[1],x=m[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw a("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);if(y){var C={$id:Be},S=e(y);b=function(e,t,n,r){return x&&(C[x]=t),C[w]=n,C.$index=r,S(e,C)}}return function(e,n,r,d,m){var v=fe();e.$watchCollection($,(function(r){var d,$,y,S,k,A,T,E,O,M,D,j,I=n[0],V=fe();if(g&&(e[g]=r),i(r))O=r,E=b||c;else for(var _ in E=b||f,O=[],r)gr.call(r,_)&&"$"!==_.charAt(0)&&O.push(_);for(S=O.length,D=new Array(S),d=0;d<S;d++)if(k=r===O?d:O[d],A=r[k],T=E(e,k,A,d),v[T])M=v[T],delete v[T],V[T]=M,D[d]=M;else{if(V[T])throw o(D,(function(e){e&&e.scope&&(v[e.id]=e)})),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,T,A);D[d]={id:T,scope:void 0,clone:void 0},V[T]=!0}for(var N in C&&(C[w]=void 0),v){if(j=ce((M=v[N]).clone),t.leave(j),j[0].parentNode)for(d=0,$=j.length;d<$;d++)j[d].$$NG_REMOVED=!0;M.scope.$destroy()}for(d=0;d<S;d++)if(k=r===O?d:O[d],A=r[k],(M=D[d]).scope){y=I;do{y=y.nextSibling}while(y&&y.$$NG_REMOVED);u(M)!==y&&t.move(ce(M.clone),null,I),I=l(M),s(M.scope,d,w,A,x,k,S)}else m((function(e,n){M.scope=n;var r=h.cloneNode(!1);e[e.length++]=r,t.enter(e,null,I),I=r,M.clone=e,V[M.id]=M,s(M.scope,d,w,A,x,k,S)}));v=V}))}}}}],Sa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,(function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],ka=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,(function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],Aa=Un((function(e,t,n){e.$watchCollection(n.ngStyle,(function(e,n){n&&e!==n&&o(n,(function(e,n){t.css(n,"")})),e&&t.css(e)}))})),Ta=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,u=[],l=[],c=[],f=[],d=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(s,(function(n){for(var r,i;c.length;)e.cancel(c.pop());for(r=0,i=f.length;r<i;++r){var s=ce(l[r].clone);f[r].$destroy(),(c[r]=e.leave(s)).done(d(c,r))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&o(u,(function(n){n.transclude((function(r,i){f.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)}))}))}))}}}],Ea=Un({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(e,t,n){return n[t-1]!==e})),(function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})}))}}),Oa=Un({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Ma=r("ngTransclude"),Da=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function a(){n(e,(function(e){t.append(e)}))}if(!o)throw Ma("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Y(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var s=r.ngTransclude||r.ngTranscludeSlot;o((function(e,n){e.length&&function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==Ur||r.nodeValue.trim())return!0}}(e)?t.append(e):(a(),n.$destroy())}),null,s),s&&!o.isSlotFilled(s)&&a()}}}}],ja=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Ia={$setViewValue:m,$render:m},Va=["$element","$scope",function(t,n){function r(){s||(s=!0,n.$$postDigest((function(){s=!1,o.ngModelCtrl.$render()})))}function i(e){u||(u=!0,n.$$postDigest((function(){n.$$destroyed||(u=!1,o.ngModelCtrl.$setViewValue(o.readValue()),e&&o.ngModelCtrl.$render())})))}var o=this,a=new pi;o.selectValueMap={},o.ngModelCtrl=Ia,o.multiple=!1,o.unknownOption=dr(e.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),t.prepend(o.unknownOption),ur(o.unknownOption,!0),t.val(n)},o.updateUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),ur(o.unknownOption,!0),t.val(n)},o.generateUnknownOptionValue=function(e){return"? "+Be(e)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(t.val(""),ur(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&ur(o.emptyOption,!1)},n.$on("$destroy",(function(){o.renderUnknownOption=m})),o.readValue=function(){var e=t.val(),n=e in o.selectValueMap?o.selectValueMap[e]:e;return o.hasOption(n)?n:null},o.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&ur(dr(n),!1),o.hasOption(e)){o.removeUnknownOption();var r=Be(e);t.val(r in o.selectValueMap?r:e);var i=t[0].options[t[0].selectedIndex];ur(dr(i),!0)}else o.selectUnknownOrEmptyOption(e)},o.addOption=function(e,t){if(t[0].nodeType!==Hr){le(e,'"option value"'),""===e&&(o.hasEmptyOption=!0,o.emptyOption=t);var n=a.get(e)||0;a.set(e,n+1),r()}},o.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.delete(e),""===e&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):a.set(e,t-1))},o.hasOption=function(e){return!!a.get(e)},o.$hasEmptyOption=function(){return o.hasEmptyOption},o.$isUnknownOptionSelected=function(){return t[0].options[0]===o.unknownOption[0]},o.$isEmptyOptionSelected=function(){return o.hasEmptyOption&&t[0].options[t[0].selectedIndex]===o.emptyOption[0]},o.selectUnknownOrEmptyOption=function(e){null==e&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(e):o.renderUnknownOption(e)};var s=!1,u=!1;o.registerOption=function(e,t,n,a,s){var u,l;n.$attr.ngValue?n.$observe("value",(function(e){var n,r=t.prop("selected");b(l)&&(o.removeOption(u),delete o.selectValueMap[l],n=!0),l=Be(e),u=e,o.selectValueMap[l]=e,o.addOption(e,t),t.attr("value",l),n&&r&&i()})):a?n.$observe("value",(function(e){o.readValue();var n,r=t.prop("selected");b(u)&&(o.removeOption(u),n=!0),u=e,o.addOption(e,t),n&&r&&i()})):s?e.$watch(s,(function(e,r){n.$set("value",e);var a=t.prop("selected");r!==e&&o.removeOption(r),o.addOption(e,t),r&&a&&i()})):o.addOption(n.value,t);n.$observe("disabled",(function(e){("true"===e||e&&t.prop("selected"))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))})),t.on("$destroy",(function(){var e=o.readValue(),t=n.value;o.removeOption(t),r(),(o.multiple&&e&&-1!==e.indexOf(t)||e===t)&&i(!0)}))}}],_a=function(){return{restrict:"E",require:["select","?ngModel"],controller:Va,priority:1,link:{pre:function(e,t,n,r){var i=r[0],a=r[1];if(a){if(i.ngModelCtrl=a,t.on("change",(function(){i.removeUnknownOption(),e.$apply((function(){a.$setViewValue(i.readValue())}))})),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return o(t.find("option"),(function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),e},i.writeValue=function(e){o(t.find("option"),(function(t){var n=!!e&&(N(e,t.value)||N(e,i.selectValueMap[t.value]));n!==t.selected&&ur(dr(t),n)}))};var s,u=NaN;e.$watch((function(){u!==a.$viewValue||q(s,a.$viewValue)||(s=pe(a.$viewValue),a.$render()),u=a.$viewValue})),a.$isEmpty=function(e){return!e||0===e.length}}}else i.registerOption=m},post:function(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},Na=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return b(n.ngValue)||(b(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(e,t,n,r,i)}}}}],Pa=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.hasOwnProperty("required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),i.$validators.required=function(e,t){return!o||!i.$isEmpty(t)},r.$observe("required",(function(e){o!==e&&(o=e,i.$validate())}))}}}}],La=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&vr.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,o){if(o){var a=n.pattern;n.ngPattern?a=i(e):r=n.pattern;var s=lr(a,r,t);n.$observe("pattern",(function(e){var n=s;s=lr(e,r,t),(n&&n.toString())!==(s&&s.toString())&&o.$validate()})),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||y(s)||s.test(t)}}}}}}],Ra=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.maxlength||e(r.ngMaxlength)(t),a=cr(o);r.$observe("maxlength",(function(e){o!==e&&(a=cr(e),o=e,i.$validate())})),i.$validators.maxlength=function(e,t){return a<0||i.$isEmpty(t)||t.length<=a}}}}}],qa=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.minlength||e(r.ngMinlength)(t),a=cr(o)||-1;r.$observe("minlength",(function(e){o!==e&&(a=cr(e)||-1,o=e,i.$validate())})),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=a}}}}}];e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var t;if(!Rr){var n=Vr();(pr=y(n)?e.jQuery:n?e[n]:void 0)&&pr.fn.on?(dr=pr,f(pr.fn,{scope:ui.scope,isolateScope:ui.isolateScope,controller:ui.controller,injector:ui.injector,inheritedData:ui.inheritedData})):dr=we,t=dr.cleanData,dr.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(dr._data(r)||{}).events)&&n.$destroy&&dr(r).triggerHandler("$destroy");t(e)},Tr.element=dr,Rr=!0}}(),function(n){f(n,{errorHandlingConfig:t,bootstrap:ne,copy:L,extend:f,merge:d,equals:q,element:dr,forEach:o,injector:Ke,noop:m,bind:F,toJson:z,fromJson:W,identity:v,isUndefined:y,isDefined:b,isString:C,isFunction:E,isObject:w,isNumber:S,isElement:V,isArray:A,version:zr,isDate:k,callbacks:{$$counter:0},getTestability:ie,reloadWithDebugInfo:re,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:ae,$$minErr:r,$$csp:Ir,$$encodeUriSegment:Q,$$encodeUriQuery:ee,$$lowercase:yr,$$stringify:de,$$uppercase:br}),hr=function(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",(function(){var e={};return function(r,o,a){var s={};return function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name","module")}(r),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,(function(){function e(e,t,n,r){return r||(r=u),function(){return r[n||"push"]([e,t,arguments]),d}}function t(e,t,n){return n||(n=u),function(i,o){return o&&E(o)&&(o.$$moduleName=r),n.push([e,t,arguments]),d}}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.",r);var u=[],l=[],c=[],f=e("$injector","invoke","push",l),d={_invokeQueue:u,_configBlocks:l,_runBlocks:c,info:function(e){if(b(e)){if(!w(e))throw i("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:o,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator",l),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:f,run:function(e){return c.push(e),this}};return a&&f(a),d}))}}))}(e),hr("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:an}),e.provider("$compile",nt).directive({a:xo,input:Uo,textarea:Uo,form:To,script:ja,select:_a,option:Na,ngBind:zo,ngBindHtml:Go,ngBindTemplate:Wo,ngClass:Jo,ngClassEven:Xo,ngClassOdd:Yo,ngCloak:Zo,ngController:Qo,ngForm:Eo,ngHide:ka,ngIf:na,ngInclude:ra,ngInit:oa,ngNonBindable:va,ngPluralize:ba,ngRef:xa,ngRepeat:Ca,ngShow:Sa,ngStyle:Aa,ngSwitch:Ta,ngSwitchWhen:Ea,ngSwitchDefault:Oa,ngOptions:ya,ngTransclude:Da,ngModel:pa,ngList:aa,ngChange:Ko,pattern:La,ngPattern:La,required:Pa,ngRequired:Pa,minlength:qa,ngMinlength:qa,maxlength:Ra,ngMaxlength:Ra,ngValue:Bo,ngModelOptions:ma}).directive({ngInclude:ia,input:Ho}).directive(Co).directive(ea),e.provider({$anchorScroll:Je,$animate:ki,$animateCss:Ei,$$animateJs:Ci,$$animateQueue:Si,$$AnimateRunner:Ti,$$animateAsyncRun:Ai,$browser:Qe,$cacheFactory:et,$controller:ut,$document:lt,$$isDocumentHidden:ct,$exceptionHandler:ft,$filter:Cn,$$forceReflow:_i,$interpolate:Ct,$interval:St,$$intervalFactory:kt,$http:bt,$httpParamSerializer:pt,$httpParamSerializerJQLike:ht,$httpBackend:xt,$xhrFactory:wt,$jsonpCallbacks:Bi,$location:Pt,$log:Lt,$parse:Yt,$rootScope:on,$q:Xt,$$q:Zt,$sce:cn,$sceDelegate:ln,$sniffer:fn,$$taskTrackerFactory:dn,$templateCache:tt,$templateRequest:hn,$$testability:mn,$timeout:vn,$window:bn,$$rAF:rn,$$jqLite:Fe,$$Map:hi,$$cookieReader:xn})}]).info({angularVersion:"1.8.2"})}(Tr),Tr.module("ngLocale",[],["$provide",function(e){function t(e,t){var n=t;void 0===n&&(n=Math.min(function(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}(e),3));var r=Math.pow(10,n);return{v:n,f:(e*r|0)%r}}var n="one",r="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,i){var o=0|e,a=t(e,i);return 1==o&&0==a.v?n:r}})}]),dr((function(){te(e.document,ne)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}')),define("angular",function(e){return function(){return e.angular}}(this)),function(e,t){"use strict";function n(e){var t=[];return d(t,l).chars(e),t.join("")}var r,i,o,a,s,u,l,c,f,d,p=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",(function(){function n(e,t){return h(e.split(","),t)}function h(e,t){var n,r={};for(n=0;n<e.length;n++)r[t?u(e[n]):e[n]]=!0;return r}function m(e,t){t&&t.length&&i(e,h(t))}function v(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function $(e){return e.replace(/&/g,"&amp;").replace(x,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(C,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function g(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&g(s),t=y("nextSibling",t)}}function y(e,t){var n=t[e];if(n&&c.call(t,n))throw p("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}var b=!1,w=!1;this.$get=["$$sanitizeUri",function(e){return b=!0,w&&i(j,M),function(t){var n=[];return f(t,d(n,(function(t,n){return!/^unsafe:/.test(e(t,n))}))),n.join("")}}],this.enableSvg=function(e){return s(e)?(w=e,this):w},this.addValidElements=function(e){return b||(a(e)&&(e={htmlElements:e}),m(M,e.svgElements),m(S,e.htmlVoidElements),m(j,e.htmlVoidElements),m(j,e.htmlElements)),this},this.addValidAttrs=function(e){return b||i(N,h(e,!0)),this},r=t.bind,i=t.extend,o=t.forEach,a=t.isArray,s=t.isDefined,u=t.$$lowercase,l=t.noop,f=function(e,t){null==e?e="":"string"!=typeof e&&(e=""+e);var n=P(e);if(!n)return"";var r=5;do{if(0===r)throw p("uinput","Failed to sanitize html because the input is unstable");r--,e=n.innerHTML,n=P(e)}while(e!==n.innerHTML);for(var i=n.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),v(i.attributes));break;case 3:t.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),o=y("nextSibling",i))))for(;null==o&&(i=y("parentNode",i))!==n;)o=y("nextSibling",i),1===i.nodeType&&t.end(i.nodeName.toLowerCase());i=o}for(;i=n.firstChild;)n.removeChild(i)},d=function(e,t){var n=!1,i=r(e,e.push);return{start:function(e,r){e=u(e),!n&&D[e]&&(n=e),n||!0!==j[e]||(i("<"),i(e),o(r,(function(n,r){var o=u(r),a="img"===e&&"src"===o||"background"===o;!0!==N[o]||!0===I[o]&&!t(n,a)||(i(" "),i(r),i('="'),i($(n)),i('"'))})),i(">"))},end:function(e){e=u(e),n||!0!==j[e]||!0===S[e]||(i("</"),i(e),i(">")),e==n&&(n=!1)},chars:function(e){n||i($(e))}}},c=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var x=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C=/([^#-~ |!])/g,S=n("area,br,col,hr,img,wbr"),k=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),A=n("rp,rt"),T=i({},A,k),E=i({},k,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),O=i({},A,n("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")),M=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),D=n("script,style"),j=i({},S,E,O,T),I=n("background,cite,href,longdesc,src,xlink:href,xml:base"),V=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),_=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),N=i({},I,_,V),P=function(e,t){function n(t){t="<remove></remove>"+t;try{var n=(new e.DOMParser).parseFromString(t,"text/html").body;return n.firstChild.remove(),n}catch(e){return}}if(function(){try{return!!n("")}catch(e){return!1}}())return n;if(!t||!t.implementation)throw p("noinert","Can't create an inert html document");var r=t.implementation.createHTMLDocument("inert"),i=(r.documentElement||r.getDocumentElement()).querySelector("body");return function(e){return i.innerHTML=e,t.documentMode&&g(i),i}}(e,e.document)})).info({angularVersion:"1.8.2"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var r=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),a=t.isDefined,s=t.isFunction,u=t.isObject,l=t.isString;return function(t,c,f){function d(e){e&&g.push(n(e))}if(null==t||""===t)return t;if(!l(t))throw o("notstring","Expected string but received: {0}",t);for(var p,h,m,v=s(f)?f:u(f)?function(){return f}:function(){return{}},$=t,g=[];p=$.match(r);)h=p[0],p[2]||p[4]||(h=(p[3]?"http://":"mailto:")+h),m=p.index,d($.substr(0,m)),function(e,t){var n,r=v(e);for(n in g.push("<a "),r)g.push(n+'="'+r[n]+'" ');!a(c)||"target"in r||g.push('target="',c,'" '),g.push('href="',e.replace(/"/g,"&quot;"),'">'),d(t),g.push("</a>")}(h,p[0].replace(i,"")),$=$.substring(m+p[0].length);return d($),e(g.join(""))}}])}(window,window.angular),define("angularSanitize",(function(){})),function(e,t){"use strict";function n(e,t,n){if(!e)throw Q("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(P(e)&&(e=e.join(" ")),P(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e,t,n){var r="";return e=P(e)?e:e&&H(e)&&e.length?e.split(/\s+/):[],N(e,(function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)})),r}function o(e){if(e instanceof B)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===E)return e;break;default:return B(a(e))}if(e.nodeType===E)return B(e)}function a(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===E)return n}}function s(e){return function(t,n){n.addClass&&(function(e,t,n){N(t,(function(t){e.addClass(t,n)}))}(e,t,n.addClass),n.addClass=null),n.removeClass&&(function(e,t,n){N(t,(function(t){e.removeClass(t,n)}))}(e,t,n.removeClass),n.removeClass=null)}}function u(e){if(!(e=e||{}).$$prepared){var t=e.domOperation||z;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=z},e.$$prepared=!0}return e}function l(e,t){c(e,t),f(e,t)}function c(e,t){t.from&&(e.css(t.from),t.from=null)}function f(e,t){t.to&&(e.css(t.to),t.to=null)}function d(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=function(e,t,n){function r(e){H(e)&&(e=e.split(" "));var t={};return N(e,(function(e){e.length&&(t[e]=!0)})),t}var i={};e=r(e),t=r(t),N(t,(function(e,t){i[t]=1})),n=r(n),N(n,(function(e,t){i[t]=1===i[t]?null:-1}));var o={addClass:"",removeClass:""};return N(i,(function(t,n){var r,i;1===t?(r="addClass",i=!e[n]||e[n+M]):-1===t&&(r="removeClass",i=e[n]||e[n+O]),i&&(o[r].length&&(o[r]+=" "),o[r]+=n)})),o}(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=$(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==z?r.domOperation:null;return _(r,i),u&&(r.domOperation=u),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function p(e){return e instanceof B?e[0]:e}function h(e,t,n,r){var o="";n&&(o=i(n,D,!0)),r.addClass&&(o=$(o,i(r.addClass,O))),r.removeClass&&(o=$(o,i(r.removeClass,M))),o.length&&(r.preparationClasses=o,t.addClass(o))}function m(e,t){var n=t?"paused":"",r=A+K;return v(e,[r,n]),[r,n]}function v(e,t){var n=t[0],r=t[1];e.style[n]=r}function $(e,t){return e?t?e+" "+t:e:t}function g(e){return[Y,e+"s"]}function y(e,t){return[t?J:X,e+"s"]}function b(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return N(n,(function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=function(e){var t=0,n=e.split(/\s*,\s*/);return N(n,(function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e})),t}(n)),0===n&&(n=null),r[t]=n}})),r}function w(e){return 0===e||null!=e}function x(e,t){var n=S,r=e+"s";return t?n+=W:r+=" linear all",[n,r]}function C(e,t,n){N(n,(function(n){e[n]=L(e[n])?e[n]:t.style.getPropertyValue(n)}))}var S,k,A,T,E=1,O="-add",M="-remove",D="ng-",j="ng-animate",I="$$ngAnimateChildren";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?(S="WebkitTransition",k="webkitTransitionEnd transitionend"):(S="transition",k="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?(A="WebkitAnimation",T="webkitAnimationEnd animationend"):(A="animation",T="animationend");var V,_,N,P,L,R,q,U,H,F,B,z,W="Duration",G="TimingFunction",K="PlayState",J=A+"Delay",Y=A+W,X=S+"Delay",Z=S+W,Q=t.$$minErr("ng"),ee=function(e,t){var n=t?"-"+t+"s":"";return v(e,[X,n]),[X,n]},te=["$interpolate",function(e){return{link:function(t,n,r){function i(e){e="on"===e||"true"===e,n.data(I,e)}var o=r.ngAnimateChildren;H(o)&&0===o.length?n.data(I,!0):(i(e(o)(t)),r.$observe("ngAnimateChildren",i))}}}],ne="$$animateCss",re=1e3,ie={transitionDuration:Z,transitionDelay:X,transitionProperty:S+"Property",animationDuration:Y,animationDelay:J,animationIterationCount:A+"IterationCount"},oe={transitionDuration:Z,transitionDelay:X,animationDuration:Y,animationDelay:J},ae=["$animateProvider",function(e){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,t,n,r,o,a,d,h,$){function E(t,n,r,i,a){var s=o.get(r);s||"infinite"===(s=b(e,t,a)).animationIterationCount&&(s.animationIterationCount=1);var u=i||s.transitionDuration>0||s.animationDuration>0;return o.put(r,s,u),s}function j(n,r,a,s){var u,l="stagger-"+a;if(o.count(a)>0&&!(u=o.get(l))){var c=i(r,"-stagger");t.addClass(n,c),(u=b(e,n,s)).animationDuration=Math.max(u.animationDuration,0),u.transitionDuration=Math.max(u.transitionDuration,0),t.removeClass(n,c),o.put(l,u,!0)}return u||{}}function I(e){R.push(e),h.waitUntilQuiet((function(){o.flush();for(var e=a(),t=0;t<R.length;t++)R[t](e);R.length=0}))}function _(e,t,n,r){var i=E(e,0,n,r,ie),o=i.animationDelay,a=i.transitionDelay;return i.maxDelay=o&&a?Math.max(o,a):o||a,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}var L=s(t),R=[];return function(e,a){function s(){b()}function h(){b(!0)}function b(n){if(!(W||J&&K)){W=!0,K=!1,he&&!H.$$skipPreparationClasses&&t.removeClass(e,he),Oe&&t.removeClass(e,Oe),m(B,!1),ee(B,!1),N(se,(function(e){B.style[e[0]]=""})),L(e,H),l(e,H),Object.keys(F).length&&N(F,(function(e,t){e?B.style.setProperty(t,e):B.style.removeProperty(t)})),H.onDone&&H.onDone(),le&&le.length&&e.off(le.join(" "),q);var i=e.data(ne);i&&(r.cancel(i[0].timer),e.removeData(ne)),Y&&Y.complete(!n)}}function E(e){Te.blockTransition&&ee(B,e),Te.blockKeyframeAnimation&&m(B,!!e)}function R(){return Y=new n({end:s,cancel:h}),I(z),b(),{$$willAnimate:!1,start:function(){return Y},end:s}}function q(e){e.stopPropagation();var t=e.originalEvent||e;if(t.target===B){var n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-ae,0)>=Q&&r>=te&&(J=!0,b())}}function U(){function n(){if(!W){if(E(!1),N(se,(function(e){var t=e[0],n=e[1];B.style[t]=n})),L(e,H),t.addClass(e,Oe),Te.recalculateTimingStyles){if(B.getAttribute("class")+" "+he,ge=o.cacheKey(B,ce,H.addClass,H.removeClass),ke=_(B,0,ge,!1),Ae=ke.maxDelay,Z=Math.max(Ae,0),0===(te=ke.maxDuration))return void b();Te.hasTransitions=ke.transitionDuration>0,Te.hasAnimations=ke.animationDuration>0}if(Te.applyAnimationDelay&&(Ae="boolean"!=typeof H.delay&&w(H.delay)?parseFloat(H.delay):Ae,Z=Math.max(Ae,0),ke.animationDelay=Ae,Ee=y(Ae,!0),se.push(Ee),B.style[Ee[0]]=Ee[1]),Q=Z*re,ie=te*re,H.easing){var n,a=H.easing;Te.hasTransitions&&(n=S+G,se.push([n,a]),B.style[n]=a),Te.hasAnimations&&(n=A+G,se.push([n,a]),B.style[n]=a)}ke.transitionDuration&&le.push(k),ke.animationDuration&&le.push(T),ae=Date.now();var s=Q+1.5*ie,u=ae+s,l=e.data(ne)||[],c=!0;if(l.length){var d=l[0];(c=u>d.expectedEndTime)?r.cancel(d.timer):l.push(b)}if(c){var p=r(i,s,!1);l[0]={timer:p,expectedEndTime:u},l.push(b),e.data(ne,l)}le.length&&e.on(le.join(" "),q),H.to&&(H.cleanupStyles&&C(F,B,Object.keys(H.to)),f(e,H))}}function i(){var t=e.data(ne);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(ne)}}if(!W){if(!B.parentNode)return void b();var a=function(e){if(J)K&&e&&(K=!1,b());else if(K=!e,ke.animationDuration){var t=m(B,K);K?se.push(t):function(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}(se,t)}},s=Ce>0&&(ke.transitionDuration&&0===ve.transitionDuration||ke.animationDuration&&0===ve.animationDuration)&&Math.max(ve.animationDelay,ve.transitionDelay);s?r(n,Math.floor(s*Ce*re),!1):n(),X.resume=function(){a(!0)},X.pause=function(){a(!1)}}}var H=a||{};H.$$prepared||(H=u(V(H)));var F={},B=p(e);if(!B||!B.parentNode||!$.enabled())return R();var W,K,J,Y,X,Z,Q,te,ie,ae,se=[],ue=(e.attr("class"),function(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}(H)),le=[];if(0===H.duration||!d.animations&&!d.transitions)return R();var ce=H.event&&P(H.event)?H.event.join(" "):H.event,fe=ce&&H.structural,de="",pe="";fe?de=i(ce,D,!0):ce&&(de=ce),H.addClass&&(pe+=i(H.addClass,O)),H.removeClass&&(pe.length&&(pe+=" "),pe+=i(H.removeClass,M)),H.applyClassesEarly&&pe.length&&L(e,H);var he=[de,pe].join(" ").trim(),me=ue.to&&Object.keys(ue.to).length>0;if(!((H.keyframeStyle||"").length>0||me||he))return R();var ve,$e,ge=o.cacheKey(B,ce,H.addClass,H.removeClass);if(o.containsCachedAnimationWithoutDuration(ge))return he=null,R();if(H.stagger>0){var ye=parseFloat(H.stagger);ve={transitionDelay:ye,animationDelay:ye,transitionDuration:0,animationDuration:0}}else ve=j(B,he,ge,oe);if(H.$$skipPreparationClasses||t.addClass(e,he),H.transitionStyle){var be=[S,H.transitionStyle];v(B,be),se.push(be)}if(H.duration>=0){$e=B.style[S].length>0;var we=x(H.duration,$e);v(B,we),se.push(we)}if(H.keyframeStyle){var xe=[A,H.keyframeStyle];v(B,xe),se.push(xe)}var Ce=ve?H.staggerIndex>=0?H.staggerIndex:o.count(ge):0,Se=0===Ce;Se&&!H.skipBlocking&&ee(B,9999);var ke=_(B,0,ge,!fe),Ae=ke.maxDelay;Z=Math.max(Ae,0),te=ke.maxDuration;var Te={};if(Te.hasTransitions=ke.transitionDuration>0,Te.hasAnimations=ke.animationDuration>0,Te.hasTransitionAll=Te.hasTransitions&&"all"===ke.transitionProperty,Te.applyTransitionDuration=me&&(Te.hasTransitions&&!Te.hasTransitionAll||Te.hasAnimations&&!Te.hasTransitions),Te.applyAnimationDuration=H.duration&&Te.hasAnimations,Te.applyTransitionDelay=w(H.delay)&&(Te.applyTransitionDuration||Te.hasTransitions),Te.applyAnimationDelay=w(H.delay)&&Te.hasAnimations,Te.recalculateTimingStyles=pe.length>0,(Te.applyTransitionDuration||Te.applyAnimationDuration)&&(te=H.duration?parseFloat(H.duration):te,Te.applyTransitionDuration&&(Te.hasTransitions=!0,ke.transitionDuration=te,$e=B.style[S+"Property"].length>0,se.push(x(te,$e))),Te.applyAnimationDuration&&(Te.hasAnimations=!0,ke.animationDuration=te,se.push(g(te)))),0===te&&!Te.recalculateTimingStyles)return R();var Ee,Oe=i(he,"-active");null!=H.delay&&("boolean"!=typeof H.delay&&(Ee=parseFloat(H.delay),Z=Math.max(Ee,0)),Te.applyTransitionDelay&&se.push(y(Ee)),Te.applyAnimationDelay&&se.push(y(Ee,!0)));return null==H.duration&&ke.transitionDuration>0&&(Te.recalculateTimingStyles=Te.recalculateTimingStyles||Se),Q=Z*re,ie=te*re,H.skipBlocking||(Te.blockTransition=ke.transitionDuration>0,Te.blockKeyframeAnimation=ke.animationDuration>0&&ve.animationDelay>0&&0===ve.animationDuration),H.from&&(H.cleanupStyles&&C(F,B,Object.keys(H.from)),c(e,H)),Te.blockTransition||Te.blockKeyframeAnimation?E(te):H.skipBlocking||ee(B,!1),{$$willAnimate:!0,end:s,start:function(){if(!W)return Y=new n(X={end:s,cancel:h,resume:null,pause:null}),I(U),Y}}}}]}],se=["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver");var t="ng-animate-shim",n="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,r,i,o,a,s,u){function l(e){return e.replace(/\bng-\S+\b/g,"")}function c(e,t){return H(e)&&(e=e.split(" ")),H(t)&&(t=t.split(" ")),e.filter((function(e){return-1===t.indexOf(e)})).join(" ")}function f(r,o,a){function s(e){var t={},n=p(e).getBoundingClientRect();return N(["width","height","top","left"],(function(e){var r=n[e];switch(e){case"top":r+=h.scrollTop;break;case"left":r+=h.scrollLeft}t[e]=Math.floor(r)+"px"})),t}function u(e){return e.attr("class")||""}function f(){var t=l(u(a)),r=c(t,$),i=c($,t),o=e(m,{to:s(a),addClass:"ng-anchor-in "+r,removeClass:n+" "+i,delay:!0});return o.$$willAnimate?o:null}function d(){m.remove(),o.removeClass(t),a.removeClass(t)}var m=B(p(o).cloneNode(!0)),$=l(u(m));o.addClass(t),a.addClass(t),m.addClass("ng-anchor"),v.append(m);var g,y=function(){var t=e(m,{addClass:n,delay:!0,from:s(o)});return t.$$willAnimate?t:null}();if(!y&&!(g=f()))return d();var b=y||g;return{start:function(){function e(){n&&n.end()}var t,n=b.start();return n.done((function(){if(n=null,!g&&(g=f()))return(n=g.start()).done((function(){n=null,d(),t.complete()})),n;d(),t.complete()})),t=new i({end:e,cancel:e})}}}function d(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=$(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!a.animations&&!a.transitions)return z;var h=u[0].body,m=p(o),v=B(function(e){return e.parentNode&&11===e.parentNode.nodeType}(m)||h.contains(m)?m:h);return function(e){return e.from&&e.to?function(e,t,n,r){var o=d(e),a=d(t),s=[];if(N(r,(function(e){var t=f(0,e.out,e.in);t&&s.push(t)})),o||a||0!==s.length)return{start:function(){function e(){N(t,(function(e){e.end()}))}var t=[];o&&t.push(o.start()),a&&t.push(a.start()),N(s,(function(e){t.push(e.start())}));var n=new i({end:e,cancel:e});return i.all(t,(function(e){n.complete(e)})),n}}}(e.from,e.to,e.classes,e.anchors):d(e)}}]}],ue=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=P(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=e.$$registeredAnimations[a];s&&!i[a]&&(r.push(t.get(s)),i[a]=!0)}return r}var o=s(r);return function(e,t,r,a){function s(){a.domOperation(),o(e,a)}function c(){p=!0,s(),l(e,a)}function f(e,t,r,i,o){var a=[];return N(i,(function(i){var s=i[o];s&&a.push((function(){var i,o,a=!1,u=function(e){a||(a=!0,(o||z)(e),i.complete(!e))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=function(e,t,r,i,o){var a;switch(r){case"animate":a=[t,i.from,i.to,o];break;case"setClass":a=[t,y,b,o];break;case"addClass":a=[t,y,o];break;case"removeClass":a=[t,b,o];break;default:a=[t,o]}a.push(i);var s=e.apply(e,a);if(s)if(q(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(q(s))return s;return z}(s,e,t,r,(function(e){u(!1===e)})),i}))})),a}function d(e,t,r,i,o){var a,s,u=f(e,t,r,i,o);0===u.length&&("beforeSetClass"===o?(a=f(e,"removeClass",r,i,"beforeRemoveClass"),s=f(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(a=f(e,"removeClass",r,i,"removeClass"),s=f(e,"addClass",r,i,"addClass")),a&&(u=u.concat(a)),s&&(u=u.concat(s)));if(0!==u.length)return function(e){var t=[];return u.length&&N(u,(function(e){t.push(e())})),t.length?n.all(t,e):e(),function(e){N(t,(function(t){e?t.cancel():t.end()}))}}}var p=!1;3===arguments.length&&U(r)&&(a=r,r=null),a=u(a),r||(r=e.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var h,m,v,$,g,y=a.addClass,b=a.removeClass,w=i(r);w.length&&("leave"===t?($="leave",v="afterLeave"):($="before"+t.charAt(0).toUpperCase()+t.substr(1),v=t),"enter"!==t&&"move"!==t&&(h=d(e,t,a,w,$)),m=d(e,t,a,w,v));if(h||m)return{$$willAnimate:!0,end:function(){return g?g.end():(c(),(g=new n).complete(!0)),g},start:function(){function e(e){c(),g.complete(e)}function t(t){p||((r||z)(t),e(t))}if(g)return g;g=new n;var r,i=[];return h&&i.push((function(e){r=h(e)})),i.length?i.push((function(e){s(),e(!0)})):s(),m&&i.push((function(e){r=m(e)})),g.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(i,e),g}}}}]}],le=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,i=t.options,o=t.classes;return e(n,r,o,i)}return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){function e(){return function(){N(n,(function(e){e.end()}))}}var n=[];r&&n.push(r.start()),i&&n.push(i.start()),t.all(n,(function(e){o.complete(e)}));var o=new t({end:e(),cancel:e()});return o}}}return n(e)}}]}],ce="data-ng-animate",fe="$ngAnimatePin",de=["$animateProvider",function(t){function r(e){return{addClass:e.addClass,removeClass:e.removeClass,from:e.from,to:e.to}}function i(e,t){if(e&&t){var n=function(e){if(!e)return null;var t=e.split(m),n=Object.create(null);return N(t,(function(e){n[e]=!0})),n}(t);return e.split(m).some((function(e){return n[e]}))}}function c(e,t,n){return v[e].some((function(e){return e(t,n)}))}function f(e,t){var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var m=" ",v=this.rules={skip:[],cancel:[],join:[]};v.join.push((function(e,t){return!e.structural&&f(e)})),v.skip.push((function(e,t){return!e.structural&&!f(e)})),v.skip.push((function(e,t){return"leave"===t.event&&e.structural})),v.skip.push((function(e,t){return t.structural&&2===t.state&&!e.structural})),v.cancel.push((function(e,t){return t.structural&&e.structural})),v.cancel.push((function(e,t){return 2===t.state&&e.structural})),v.cancel.push((function(e,t){if(t.structural)return!1;var n=e.addClass,r=e.removeClass,o=t.addClass,a=t.removeClass;return!(F(n)&&F(r)||F(o)&&F(a))&&(i(n,a)||i(r,o))})),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(i,m,v,$,g,y,b,w,x,C,S){function k(e){W.delete(e.target)}function A(e,t){return d(e,t,{})}function T(e,t,n){var r=a(t);return e.filter((function(e){return!(e.node===r&&(!n||e.callback===n))}))}function O(e,t){"close"!==e||t.parentNode||re.off(t)}function M(e,t,n){function a(e,t,n,r){C((function(){var e=function(e,t,n){var r=[],i=J[n];return i&&N(i,(function(i){(ne.call(i.node,t)||"leave"===n&&ne.call(i.node,e))&&r.push(i.callback)})),r}(w,g,t);e.length?i((function(){N(e,(function(e){e($,n,r)})),O(n,g)})):O(n,g)})),e.progress(t,n,r)}function s(e){(function(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)})($,v),te($,v),l($,v),v.domOperation(),x.complete(!e)}var v=V(n),$=o(e),g=p($),w=g&&g.parentNode;v=u(v);var x=new b,C=function(){var e=!1;return function(t){e?t():m.$$postDigest((function(){e=!0,t()}))}}();if(P(v.addClass)&&(v.addClass=v.addClass.join(" ")),v.addClass&&!H(v.addClass)&&(v.addClass=null),P(v.removeClass)&&(v.removeClass=v.removeClass.join(" ")),v.removeClass&&!H(v.removeClass)&&(v.removeClass=null),v.from&&!U(v.from)&&(v.from=null),v.to&&!U(v.to)&&(v.to=null),!(G&&g&&Q(g,t,n)&&ee(g,v)))return s(),x;var k=["enter","move","leave"].indexOf(t)>=0,T=S(),E=T||W.get(g),M=!E&&z.get(g)||{},I=!!M.state;if(E||I&&1===M.state||(E=!j(g,w,t)),E)return T&&a(x,t,"start",r(v)),s(),T&&a(x,t,"close",r(v)),x;k&&function(e){var t=e.querySelectorAll("["+ce+"]");N(t,(function(e){var t=parseInt(e.getAttribute(ce),10),n=z.get(e);if(n)switch(t){case 2:n.runner.end();case 1:z.delete(e)}}))}(g);var _={structural:k,element:$,event:t,addClass:v.addClass,removeClass:v.removeClass,close:s,options:v,runner:x};if(I){if(c("skip",_,M))return 2===M.state?(s(),x):(d($,M,_),M.runner);if(c("cancel",_,M))if(2===M.state)M.runner.end();else{if(!M.structural)return d($,M,_),M.runner;M.close()}else if(c("join",_,M)){if(2!==M.state)return h(0,$,k?t:null,v),t=_.event=M.event,v=d($,M,_),M.runner;A($,_)}}else A($,_);var L=_.structural;if(L||(L="animate"===_.event&&Object.keys(_.options.to||{}).length>0||f(_)),!L)return s(),D(g),x;var R=(M.counter||0)+1;return _.counter=R,q(g,1,_),m.$$postDigest((function(){$=o(e);var n=z.get(g),i=!n;n=n||{};var u=($.parent()||[]).length>0&&("animate"===n.event||n.structural||f(n));if(i||n.counter!==R||!u)return i&&(te($,v),l($,v)),(i||k&&n.event!==t)&&(v.domOperation(),x.end()),void(u||D(g));t=!n.structural&&f(n,!0)?"setClass":n.event,q(g,2);var c=y($,t,n.options);x.setHost(c),a(x,t,"start",r(v)),c.done((function(e){s(!e);var n=z.get(g);n&&n.counter===R&&D(g),a(x,t,"close",r(v))}))})),x}function D(e){e.removeAttribute(ce),z.delete(e)}function j(e,t,n){var r,i=$[0].body,o=p(v),a=e===i||"HTML"===e.nodeName,s=e===o,u=!1,l=W.get(e),c=B.data(e,fe);for(c&&(t=p(c));t&&(s||(s=t===o),t.nodeType===E);){var f=z.get(t)||{};if(!u){var d=W.get(t);if(!0===d&&!1!==l){l=!0;break}!1===d&&(l=!1),u=f.structural}if(F(r)||!0===r){var h=B.data(t,I);L(h)&&(r=h)}if(u&&!1===r)break;if(a||(a=t===i),a&&s)break;t=s||!(c=B.data(t,fe))?t.parentNode:p(c)}return(!u||r)&&!0!==l&&s&&a}function q(e,t,n){(n=n||{}).state=t,e.setAttribute(ce,t);var r=z.get(e),i=r?_(r,n):n;z.set(e,i)}var z=new g,W=new g,G=null,K=m.$watch((function(){return 0===w.totalPendingRequests}),(function(e){e&&(K(),m.$$postDigest((function(){m.$$postDigest((function(){null===G&&(G=!0)}))})))})),J=Object.create(null),Y=t.customFilter(),X=t.classNameFilter(),Z=function(){return!0},Q=Y||Z,ee=X?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return X.test(n)}:Z,te=s(x),ne=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},re={on:function(e,t,n){var r=a(t);J[e]=J[e]||[],J[e].push({node:r,callback:n}),B(t).on("$destroy",(function(){z.get(r)||re.off(e,t,n)}))},off:function(e,t,n){if(1!==arguments.length||H(arguments[0])){var r=J[e];r&&(J[e]=1===arguments.length?null:T(r,t,n))}else for(var i in t=arguments[0],J)J[i]=T(J[i],t)},pin:function(e,t){n(R(e),"element","not an element"),n(R(t),"parentElement","not an element"),e.data(fe,t)},push:function(e,t,n,r){return(n=n||{}).domOperation=r,M(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!G;else if(R(e)){var r=p(e);1===n?t=!W.get(r):(W.has(r)||B(e).on("$destroy",k),W.set(r,!t))}else t=G=!!e;return t}};return re}]}],pe=["$animateProvider",function(e){function t(e,t){e.data(c,t)}function n(e){e.removeData(c)}function i(e){return e.data(c)}var o="ng-animate-ref",a=this.drivers=[],c="$$animationRunner",f="$$animatePrepareClasses";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(e,c,d,h,m,v,$){function g(e){function t(e){if(e.processed)return e;e.processed=!0;var n,o=e.domNode,a=o.parentNode;for(i.set(o,e);a;){if(n=i.get(a)){n.processed||(n=t(n));break}a=a.parentNode}return(n||r).children.push(e),e}var n,r={children:[]},i=new m;for(n=0;n<e.length;n++){var o=e[n];i.set(o.domNode,e[n]={domNode:o.domNode,element:o.element,fn:o.fn,children:[]})}for(n=0;n<e.length;n++)t(e[n]);return function(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var i=r.length,o=0,a=[];for(t=0;t<r.length;t++){var s=r[t];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s),s.children.forEach((function(e){o++,r.push(e)})),i--}return a.length&&n.push(a),n}(r)}var y=[],b=s(e);return function(s,m,w){function x(e){var t=[],n={};N(e,(function(e,r){var i=p(e.element),a=e.event,s=["enter","move"].indexOf(a)>=0,u=e.structural?function(e){var t="["+o+"]",n=e.hasAttribute(o)?[e]:e.querySelectorAll(t),r=[];return N(n,(function(e){var t=e.getAttribute(o);t&&t.length&&r.push(e)})),r}(i):[];if(u.length){var l=s?"to":"from";N(u,(function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][l]={animationID:r,element:B(e)}}))}else t.push(e)}));var r={},i={};return N(n,(function(n,o){var a=n.from,s=n.to;if(a&&s){var u=e[a.animationID],l=e[s.animationID],c=a.animationID.toString();if(!i[c]){var f=i[c]={structural:!0,beforeStart:function(){u.beforeStart(),l.beforeStart()},close:function(){u.close(),l.close()},classes:C(u.classes,l.classes),from:u,to:l,anchors:[]};f.classes.length?t.push(f):(t.push(u),t.push(l))}i[c].anchors.push({out:a.element,in:s.element})}else{var d=a?a.animationID:s.animationID,p=d.toString();r[p]||(r[p]=!0,t.push(e[d]))}})),t}function C(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}function S(e){for(var t=a.length-1;t>=0;t--){var n=a[t],r=d.get(n)(e);if(r)return r}}function k(){var e=i(s);!e||"leave"===m&&w.$$domOperationFired||e.end()}function A(t){s.off("$destroy",k),n(s),b(s,w),l(s,w),w.domOperation(),M&&e.removeClass(s,M),E.complete(!t)}w=u(w);var T=["enter","move","leave"].indexOf(m)>=0,E=new h({end:function(){A()},cancel:function(){A(!0)}});if(!a.length)return A(),E;var O=r(s.attr("class"),r(w.addClass,w.removeClass)),M=w.tempClasses;return M&&(O+=" "+M,w.tempClasses=null),T&&s.data(f,"ng-"+m+"-prepare"),t(s,E),y.push({element:s,classes:O,event:m,structural:T,options:w,beforeStart:function(){M=(M?M+" ":"")+j,e.addClass(s,M);var t=s.data(f);t&&(e.removeClass(s,t),t=null)},close:A}),s.on("$destroy",k),y.length>1||c.$$postDigest((function(){var t=[];N(y,(function(e){i(e.element)?t.push(e):e.close()})),y.length=0;var n=x(t),r=[];N(n,(function(e){var t=e.from?e.from.element:e.element,n=w.addClass;n=(n?n+" ":"")+j;var o=$.cacheKey(t[0],e.event,n,w.removeClass);r.push({element:t,domNode:p(t),fn:function(){var t,n=e.close;if($.containsCachedAnimationWithoutDuration(o))n();else{if(e.beforeStart(),i(e.anchors?e.from.element||e.to.element:e.element)){var r=S(e);r&&(t=r.start)}if(t){var a=t();a.done((function(e){n(!e)})),function(e,t){function n(e){var n=i(e);n&&n.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}(e,a)}else n()}}})}));for(var o=g(r),a=0;a<o.length;a++)for(var s=o[a],u=0;u<s.length;u++){var l=s[u],c=l.element;if(o[a][u]=l.fn,0!==a){var d=c.data(f);d&&e.addClass(c,d)}else c.removeData(f)}v(o)})),E}}]}];t.module("ngAnimate",[],(function(){z=t.noop,V=t.copy,_=t.extend,B=t.element,N=t.forEach,P=t.isArray,H=t.isString,U=t.isObject,F=t.isUndefined,L=t.isDefined,q=t.isFunction,R=t.isElement})).info({angularVersion:"1.8.2"}).directive("ngAnimateSwap",["$animate",function(e){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r.for,(function(t){a&&e.leave(a),s&&(s.$destroy(),s=null),(t||0===t)&&o((function(t,r){a=t,s=r,e.enter(t,null,n)}))}))}}}]).directive("ngAnimateChildren",te).factory("$$rAFScheduler",["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o<t.length;o++)t[o]();i||e((function(){i||n()}))}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e((function(){i=null,t(),n()}))},t}]).provider("$$animateQueue",de).provider("$$animateCache",(function(){var e="$$ngAnimateParentKey",t=0,n=Object.create(null);this.$get=[function(){return{cacheKey:function(n,r,i,o){var a=n.parentNode,s=[a[e]||(a[e]=++t),r,n.getAttribute("class")];return i&&s.push(i),o&&s.push(o),s.join(" ")},containsCachedAnimationWithoutDuration:function(e){var t=n[e];return t&&!t.isValid||!1},flush:function(){n=Object.create(null)},count:function(e){var t=n[e];return t?t.total:0},get:function(e){var t=n[e];return t&&t.value},put:function(e,t,r){n[e]?(n[e].total++,n[e].value=t):n[e]={total:1,value:t,isValid:r}}}}]})).provider("$$animation",pe).provider("$animateCss",ae).provider("$$animateCssDriver",se).provider("$$animateJs",ue).provider("$$animateJsDriver",le)}(window,window.angular),define("angularAnimate",(function(){})),define("angularElement",["jquery.tiny","angular"],(function(e,t){function n(){new Date-r<o?setTimeout(n,o):(i=!1,angular.element(window).triggerHandler("resizeEnd"))}e.fn.replaceClass=function(t,n){this.length<1||angular.forEach(this,(function(r){var i=this.getAttribute("class");i.length<1?e(this).addClass(n):i=i.replace(t,n),this.setAttribute("class",i)}))},e.fn.cssSelect=function(t){return e(this.length<1?document:this).find(t)},e.fn.offset=function(e){var t=this[0],n=0,r=0;do{t&&(n+=t.offsetTop||0,r+=t.offsetLeft||0,t=t.offsetParent),e&&t==e&&(t=!1)}while(t);return{top:Math.round(n),left:Math.round(r)}},e.fn.getStyle=function(t,n){var r=this[0],i=e(r).css(t);return n?parseFloat(i):i},e.fn.contentSize=function(){var e=this[0],t=getComputedStyle(e),n=e.clientHeight,r=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),{width:r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),height:n}};var r=new Date(1,1,2e3,12,0,0),i=!1,o=200;angular.element(window).on("resize",(function(){r=new Date,!1===i&&(i=!0,setTimeout(n,o))})),function(e,t){function n(e){return e.replace(/([a-z])([A-Z])/,"$1-$2").toLowerCase()}function r(e){return i?i+e:e.toLowerCase()}var i,o,a,s,u,l,c,f,d,p,h="",m=document.createElement("div"),v=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,$={};e.each({Webkit:"webkit",Moz:"",O:"o"},(function(e,t){if(void 0!==m.style[e+"TransitionProperty"])return h="-"+e.toLowerCase()+"-",i=t,!1})),o=h+"transform",$[a=h+"transition-property"]=$[s=h+"transition-duration"]=$[l=h+"transition-delay"]=$[u=h+"transition-timing-function"]=$[c=h+"animation-name"]=$[f=h+"animation-duration"]=$[p=h+"animation-delay"]=$[d=h+"animation-timing-function"]="",e.fxz={off:void 0===i&&void 0===m.style.transitionProperty,speeds:{_default:400,fast:200,slow:600},cssPrefix:h,transitionEnd:r("TransitionEnd"),animationEnd:r("AnimationEnd")},e.fn.animate3=function(t,n,r,i,o){return e.isFunction(n)&&(i=n,r=void 0,n=void 0),e.isFunction(r)&&(i=r,r=void 0),e.isPlainObject(n)&&(r=n.easing,i=n.complete,o=n.delay,n=n.duration),n&&(n=("number"==typeof n?n:e.fxz.speeds[n]||e.fxz.speeds._default)/1e3),o&&(o=parseFloat(o)/1e3),this.anim3(t,n,r,i,o)},e.fn.anim3=function(t,r,i,h,m){var g,y,b,w={},x="",C=this,S=e.fxz.transitionEnd,k=!1;if(void 0===r&&(r=e.fxz.speeds._default/1e3),void 0===m&&(m=0),e.fxz.off&&(r=0),"string"==typeof t)w[c]=t,w[f]=r+"s",w[p]=m+"s",w[d]=i||"linear",S=e.fxz.animationEnd;else{for(g in y=[],t)v.test(g)?x+=g+"("+t[g]+") ":(w[g]=t[g],y.push(n(g)));x&&(w[o]=x,y.push(o)),r>0&&"object"==typeof t&&(w[a]=y.join(", "),w[s]=r+"s",w[l]=m+"s",w[u]=i||"linear")}return b=function(t){if(void 0!==t){if(t.target!==t.currentTarget)return;e(t.target).unbind(S,b)}else e(this).unbind(S,b);k=!0,e(this).css($),h&&h.call(this)},r>0&&(this.bind(S,b),setTimeout((function(){k||b.call(C)}),1e3*(r+m)+25)),this.length&&this.get(0).clientLeft,this.css(w),r<=0&&setTimeout((function(){C.each((function(){b.call(this)}))}),0),this},m=null}(e);var a=function(){var e=null;return function(){if(null!==e)return e;e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}}();e.fn.scrollEnd=function(){var t=e(this),n=function(){t.data("scrollTimeout")&&clearTimeout(t.data("scrollTimeout")),t.data("scrollTimeout",setTimeout((function(){t.trigger("scrollend")}),250))};return t.data("hasScrollEnd",!0),t[0].addEventListener("scroll",n,!!a()&&{passive:!0}),{destroy:function(){t[0].removeEventListener("scroll",n),t.data("hasScrollEnd",!1),clearTimeout(t.data("scrollTimeout"))}}}})),define("angularJqEv",["angular","jquery.tiny","jquery.ripple","jquery.vclick"],(function(e,t,n){!function(e,r,i){if(void 0===r)throw Error("angular-jqev: AngularJS is undefined but is necessary.");if(void 0===t)throw Error("angular-jqev: jQuery is undefined but is necessary.");var o=r.module("hmTouchEvents",[]),a=[],s=function(e){var t=i(e);t.on("touchstart",l),t.on("touchend touchcancel",c),a.push(e)},u=function(e){var t=i(e);t.off("touchstart",l),t.off("touchend touchcancel",c),t.removeClass("mob");var n=a.indexOf(e);n>-1&&a.splice(n,1)},l=function(e){if(!(e.originalEvent.type.indexOf("mouse")>-1)){var t=this;setTimeout((function(){f||(i(t).addClass("mob"),e.originalEvent.type.indexOf("mouse")<0?i(t).addClass("touch"):i(t).removeClass("touch"))}))}},c=function(){var e=this;setTimeout((function(){i(e).removeClass("touch")}),80)},f=!1;i(e).on("scrollstart",(function(){for(var e in f=!0,a)i(a[e]).removeClass("touch")})),i(e).on("scrollstop",(function(){f=!1})),i(e).on("scrollend",(function(){f=!1})),i(document).on("touchend touchcancel",(function(){for(var e in a)setTimeout((function(){i(a[e]).removeClass("touch")}),80)})),r.forEach(["hmTap:vclick","vClick:vclick","vMouseover:vmouseover","vMouseout:vmouseout","vMousedown:vmousedown"],(function(e){var t=e.split(":"),a=t[0],l=t[1];o.directive(a,["$parse","$window","$viewport","$timeout",function(e,t,o,c){return{restrict:"A",scope:!1,priority:1,link:function(t,f,d){var p=function(n){function r(){n.isPropagationStopped()||i({$event:n,$element:f})}n.element=f;var i=e(d[a]).bind(null,t);if(v.ripple||v.delay)"delay"in v&&!v.delay?(r(),n.isPropagationStopped()||(t.$$phase?t.$applyAsync(u):t.$apply())):c(r,v.delay||100);else if(!n.isPropagationStopped()){var o;if(n.target&&n.target.tagName){var s=n.target.tagName.toLowerCase();o="label"==s||"input"==s}if(o||v.direct){var u=function(){i({$event:n,$element:f})};t.$$phase?t.$applyAsync(u):(u(),t.$apply())}else t.$applyAsync((function(){i({$event:n,$element:f})}))}},h=d.hmOptions&&r.isObject(t.$eval(d.hmOptions))?t.$eval(d.hmOptions):{},m=o.data("android"),v=r.extend({normal:!1,ripple:m,delay:m?100:0},h);m&&"androiddelay"in v&&(v.delay=v.androiddelay);var $=v.normal&&"vclick"==l?"click":l;if(f&&f.length>0){u(f),"vclick"==$&&(v.ripple?(n.add(f,"center"==v.ripple),f.addClass("a-ripple")):s(f)),i(f).on($,p);var g=function(){i(f).off($,p),"vclick"==$&&(u(f),v.ripple&&(n.remove(f),f.removeClass("a-ripple")))};t.$on("$destroy",g),f.one("$destroy",g)}}}}])})),o.directive("hmUrl",["$parse","$httpParamSerializer","$timeout",function(t,n,r){return{restrict:"A",scope:!1,link:function(i,o,a){var s=t(a.hmUrlClicked).bind(null,i),u=t(a.hmUrlIntercept).bind(null,i),l=t(a.hmUrlChange).bind(null,i),c=i.$eval(a.hmUrl),f=function(e){e.preventDefault()};i.$on("$destroy",(function(){o.off("vclick").off("click",f)})),o.one("$destroy",(function(){o.off("vclick").off("click",f)})),o.on("vclick",(function(t){var r=i.$eval(a.hmUrlParams),l=o.attr("href")||"",f=o.attr("target")||"_parent";if(r){r=n(r);var d,p=l;l.indexOf("#")>-1&&(d=(p=l.split("#"))[1],l=p[0]),r&&(l.indexOf("?")>-1?l+="&"+r:l+="?"+r),d&&(l+="#"+d)}try{t.preventDefault()}catch(e){}c&&t.stopPropagation(),i.$applyAsync((function(){var n=u({$link:l});("boolean"!=typeof n||n)&&(s({$event:t,$url:l}),e.open(l,f))}))})).on("click",f),a.hmUrlChange&&"ngHref"in a&&i.$watch((function(e){return a.ngHref}),(function(e){r((function(){var t=l({$url:e});o.attr("href",t)}))}))}}}]),o.directive("hmHighlight",["$viewport",function(e){return{restrict:"A",scope:!1,priority:1,link:function(t,i,o){var a=o.hmHighlight&&r.isObject(t.$eval(o.hmHighlight))?t.$eval(o.hmHighlight):{},l=r.extend({ripple:e.data("android")},a);s(i),l.ripple?n.add(i,"center"==l.ripple):s(i),t.$on("$destroy",(function(){l.ripple?n.remove(i):u(i)})),i.one("$destroy",(function(){l.ripple?n.remove(i):u(i)}))}}}]).directive("hmSwipeRemove",["$parse","$animateCss","$document",function(t,n,i){return{restrict:"A",scope:!1,link:function(n,o,a){var s,u=t(a.hmSwipeRemove).bind(null,n),l=r.merge({direction:"right",enabled:!0,minspeed:180,maxspeed:100},n.$eval(a.hmSwipeRemoveOptions)),c=o,f={x:0,perc:0,prev:!1,prevent:!1},d={},p=l.enabled,h=l.direction,m=l.maxspeed,v=l.maxspeed;if(p){var $,g,y=!1,b=function(e){e.stopPropagation()},w=0,x=function(t){if(s&&!(Math.abs(t.clientX-d.startX)<30)){if(Math.abs(t.clientY-d.startY)>=25&&!d.started)return void i.off("vmousemove",x);d.started=!0,t.preventDefault(),s.removeClass("reset"),s.addClass("grab"),r.element(e).trigger("scrollstart");var n=t.clientX;f.prev||(f.prev=n),f.x+=n-f.prev,f.perc=100*f.x/e.innerWidth,"left"==h?(f.x>0&&(f.x=0),f.perc>0&&(f.perc=0)):(f.x<0&&(f.x=0),f.perc<0&&(f.perc=0)),s.css({transform:"translate3d("+f.perc+"%,0,0)","-webkit-transform":"translate3d("+f.perc+"%,0,0)"}),clearTimeout($),y="left"==h?n<f.prev:n>f.prev,$=setTimeout((function(){y=!1}),200),w||(w=(new Date).getTime()),g=setTimeout((function(){w=(new Date).getTime()}),v),f.prev=n}},C=function(e){clearTimeout(g),i.off("vmousemove",x);var t=(new Date).getTime(),r=Math.max(0,v-Math.round(100*(t-w))/100);if(d.started){if(s){s.removeClass("grab");var o="left"==h?-100:100,a=function(e){var t=Math.max(v,e||Math.min(m,r));s.animate3({translate3d:o+"%,0,0"},{duration:t,complete:function(){c.css({"transition-duration":"0s","-webkit-transition-duration":"0s"}),n.$applyAsync((function(){u()})),setTimeout((function(){c.css({transform:"","-webkit-transform":"","transition-duration":"","-webkit-transition-duration":""})}))}})};"left"==h&&f.perc>-70||"right"==h&&f.perc<70?(s.removeClass("grab reset"),y?a():s.animate3({translate3d:"0%,0,0"},{duration:m,complete:function(){c.css({transform:"","-webkit-transform":""})}}),f.perc=0,f.x=0,f.prev=0):(a(m),s.removeClass("grab reset"),l.keep||s.triggerHandler("$destroy")),c.oneFirst("click",b),s=!1}d.started=!1}},S=function(){var t=(l["max-window-size"],e.innerWidth);k=t<=880},k=!0;c.addClass("touch-element-swipeh-cl"),c.on("vmousedown",(function(e){if(!k)return!0;e.button&&2==e.button||(s=c,c.off("click",b),i.on("vmousemove",x),d.startX=e.clientX,d.startY=e.clientY)})),c.on("vmouseup",C),i.on("vmouseup",C),c.on("$destroy",(function(){c.off("vmousedown").off("vmouseup"),i.off("vmouseup",C).off("vmousemove",x),c.removeClass("grab reset").removeClass("touch-element-swipeh-cl"),r.element(e).off("resize",S)})),l["max-window-size"]&&(r.element(e).on("resize",S),S()),n.$on("$destroy",(function(){c.triggerHandler("$destroy"),r.element(e).off("resize",S)}))}}}}]).directive("hmSwipe",["$parse","$animateCss","$document",function(t,n,i){return{restrict:"A",scope:!1,link:function(n,o,a){var s,u=t(a.hmSwipe).bind(null,n),l=t(a.hmSwipeThreshold).bind(null,n),c=t(a.hmSwipeThresholdReset).bind(null,n),f=t(a.hmSwipeStart).bind(null,n),d=t(a.hmSwipeEnd).bind(null,n),p=r.merge({direction:"both",enabled:!0,minspeed:180,maxspeed:100,threshold:70},n.$eval(a.hmSwipeOptions)),h=o,m={x:0,perc:0,prev:!1,prevent:!1},v={},$=p.enabled,g=p.direction,y=(p.maxspeed,p.maxspeed);if(!$)return!1;var b,w,x=!1,C=function(e){e.stopPropagation()},S=0,k=function(t){if(s&&!(Math.abs(t.clientX-v.startX)<30)){if(Math.abs(t.clientY-v.startY)>=25&&!v.started)return void i.off("vmousemove",k);v.started||n.$applyAsync((function(){f({$event:t})})),v.started=!0,t.preventDefault(),s.removeClass("reset"),s.addClass("grab"),r.element(e).trigger("scrollstart");var o=t.clientX;m.prev||(m.prev=o),m.x+=o-m.prev,m.perc=100*m.x/e.innerWidth,"left"==g?(m.x>0&&(m.x=0),m.perc>0&&(m.perc=0)):"right"==g&&(m.x<0&&(m.x=0),m.perc<0&&(m.perc=0)),n.$applyAsync((function(){u({$event:t,$moved:m.perc})})),clearTimeout(b),x="left"==g?o<m.prev:"right"==g?o>m.prev:o!=m.prev,b=setTimeout((function(){x=!1}),200),S||(S=(new Date).getTime()),w=setTimeout((function(){S=(new Date).getTime()}),y),m.prev=o}},A=function(e){clearTimeout(w),i.off("vmousemove",k);var t=(new Date).getTime();Math.max(0,y-Math.round(100*(t-S))/100),v.started&&(s&&(s.removeClass("grab"),"left"==g&&m.perc>-1*p.threshold||"right"==g&&m.perc<p.threshold?(s.removeClass("grab reset"),x?n.$applyAsync((function(){l({$event:e,$moved:m.perc})})):n.$applyAsync((function(){c({$event:e,$moved:m.perc})})),m.perc=0,m.x=0,m.prev=0):(s.removeClass("grab reset"),n.$applyAsync((function(){l({$event:e,$moved:m.perc})}))),h.oneFirst("click",C),s=!1),v.started=!1,n.$applyAsync((function(){d({$event:e})})))},T=function(){var t=p["max-window-size"],n=e.innerWidth;E=!t||n<=t},E=!0;h.addClass("touch-element-swipeh-cl"),h.on("vmousedown",(function(e){if(!E)return!0;e.button&&2==e.button||(s=h,h.off("click",C),i.on("vmousemove",k),v.startX=e.clientX,v.startY=e.clientY)})),h.on("vmouseup",A),i.on("vmouseup",A),h.on("$destroy",(function(){h.off("vmousedown").off("vmouseup"),i.off("vmouseup",A).off("vmousemove",k),h.removeClass("grab reset").removeClass("touch-element-swipeh-cl"),r.element(e).off("resize",T)})),p["max-window-size"]&&(r.element(e).on("resize",T),T()),n.$on("$destroy",(function(){h.triggerHandler("$destroy"),r.element(e).off("resize",T)}))}}}])}(window,e,t)})),define("angularElementScroll",["angular"],(function(e){e.module("duScroll",["duScroll.scrollspy","duScroll.smoothScroll","duScroll.scrollContainer","duScroll.spyContext","duScroll.scrollHelpers"]).value("duScrollDuration",350).value("duScrollSpyWait",100).value("duScrollGreedy",!1).value("duScrollOffset",0).value("duScrollEasing",(function(e){"use strict";return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2})).value("duScrollCancelOnEvents","scroll mousedown mousewheel touchmove keydown").value("duScrollBottomSpy",!1).value("duScrollActiveClass","active"),e.module("duScroll.scrollHelpers",["duScroll.requestAnimation"]).run(["$window","$q","cancelAnimation","requestAnimation","duScrollEasing","duScrollDuration","duScrollOffset","duScrollCancelOnEvents",function(t,n,r,i,o,a,s,u){"use strict";var l,c,f={},d=function(e){return"undefined"!=typeof HTMLDocument&&e instanceof HTMLDocument||e.nodeType&&e.nodeType===e.DOCUMENT_NODE},p=function(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||e.nodeType&&e.nodeType===e.ELEMENT_NODE},h=function(e){return p(e)||d(e)?e:e[0]};f.duScrollTo=function(n,r,i,o){var a;if(e.isElement(n)?a=this.duScrollToElement:e.isDefined(i)&&(a=this.duScrollToAnimated),a)return a.apply(this,arguments);var s=h(this);if(d(s))return t.scrollTo(n,r);s.scrollLeft=n,s.scrollTop=r},f.duScrollToAnimated=function(e,t,a,s){a&&!s&&(s=o);var f=this.duScrollLeft(),d=this.duScrollTop(),p=Math.round(e-f),h=Math.round(t-d),m=null,v=0,$=this,g=function(e){(!e||v&&e.which>0)&&(u&&$.unbind(u,g),r(l),c.reject(),l=null)};if(l&&g(),c=n.defer(),0===a||!p&&!h)return 0===a&&$.duScrollTo(e,t),c.resolve(),c.promise;var y=function(e){null===m&&(m=e);var t=(v=e-m)>=a?1:s(v/a);$.scrollTo(f+Math.ceil(p*t),d+Math.ceil(h*t)),t<1?l=i(y):(u&&$.unbind(u,g),l=null,c.resolve())};return $.duScrollTo(f,d),u&&$.bind(u,g),l=i(y),c.promise},f.duScrollToElement=function(t,n,r,i){var o=h(this);e.isNumber(n)&&!isNaN(n)||(n=s);var a=this.duScrollTop()+h(t).getBoundingClientRect().top-n;return p(o)&&(a-=o.getBoundingClientRect().top),this.duScrollTo(0,a,r,i)},f.duScrollLeft=function(n,r,i){if(e.isNumber(n))return this.duScrollTo(n,this.duScrollTop(),r,i);var o=h(this);return d(o)?t.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft:o.scrollLeft},f.duScrollTop=function(n,r,i){if(e.isNumber(n))return this.duScrollTo(this.duScrollLeft(),n,r,i);var o=h(this);return d(o)?t.scrollY||document.documentElement.scrollTop||document.body.scrollTop:o.scrollTop},f.duScrollToElementAnimated=function(e,t,n,r){return this.duScrollToElement(e,t,n||a,r)},f.duScrollTopAnimated=function(e,t,n){return this.duScrollTop(e,t||a,n)},f.duScrollLeftAnimated=function(e,t,n){return this.duScrollLeft(e,t||a,n)},e.forEach(f,(function(t,n){e.element.prototype[n]=t;var r=n.replace(/^duScroll/,"scroll");e.isUndefined(e.element.prototype[r])&&(e.element.prototype[r]=t)}))}]),e.module("duScroll.polyfill",[]).factory("polyfill",["$window",function(e){"use strict";var t=["webkit","moz","o","ms"];return function(n,r){if(e[n])return e[n];for(var i,o=n.substr(0,1).toUpperCase()+n.substr(1),a=0;a<t.length;a++)if(e[i=t[a]+o])return e[i];return r}}]),e.module("duScroll.requestAnimation",["duScroll.polyfill"]).factory("requestAnimation",["polyfill","$timeout",function(e,t){"use strict";var n=0;return e("requestAnimationFrame",(function(e,r){var i=(new Date).getTime(),o=Math.max(0,16-(i-n)),a=t((function(){e(i+o)}),o);return n=i+o,a}))}]).factory("cancelAnimation",["polyfill","$timeout",function(e,t){"use strict";return e("cancelAnimationFrame",(function(e){t.cancel(e)}))}]),e.module("duScroll.spyAPI",["duScroll.scrollContainerAPI"]).factory("spyAPI",["$rootScope","$timeout","$window","$document","scrollContainerAPI","duScrollGreedy","duScrollSpyWait","duScrollBottomSpy","duScrollActiveClass",function(e,t,n,r,i,o,a,s,u){"use strict";var l=function(i){var l=!1,c=!1,f=function(){c=!1;var t,a=i.container[0],l=0;"undefined"!=typeof HTMLElement&&a instanceof HTMLElement||a.nodeType&&a.nodeType===a.ELEMENT_NODE?(l=a.getBoundingClientRect().top,t=Math.round(a.scrollTop+a.clientHeight)>=a.scrollHeight):t=Math.round(n.pageYOffset+n.innerHeight)>=r[0].body.scrollHeight;var f,d,p,h,m,v,$=s&&t?"bottom":"top";for(h=i.spies,d=i.currentlyActive,p=void 0,f=0;f<h.length;f++)(v=(m=h[f]).getTargetPosition())&&(s&&t||v.top+m.offset-l<20&&(o||-1*v.top+l)<v.height)&&(!p||p[$]<v[$])&&((p={spy:m})[$]=v[$]);p&&(p=p.spy),d===p||o&&!p||(d&&(d.$element.removeClass(u),e.$broadcast("duScrollspy:becameInactive",d.$element)),p&&(p.$element.addClass(u),e.$broadcast("duScrollspy:becameActive",p.$element)),i.currentlyActive=p)};return a?function(){l?c=!0:(f(),l=t((function(){l=!1,c&&f()}),a,!1))}:f},c={},f=function(e){var t=e.$id,n={spies:[]};return n.handler=l(n),c[t]=n,e.$on("$destroy",(function(){d(e)})),t},d=function(e){var t=e.$id,n=c[t],r=n.container;r&&r.off("scroll",n.handler),delete c[t]},p=f(e),h=function(e){return c[e.$id]?c[e.$id]:e.$parent?h(e.$parent):c[p]},m=function(e){var t,n,r=e.$scope;if(r)return h(r);for(n in c)if(-1!==(t=c[n]).spies.indexOf(e))return t};return{addSpy:function(e){var t=m(e);t&&(t.spies.push(e),t.container&&function(e){for(;e.parentNode;)if((e=e.parentNode)===document)return!0;return!1}(t.container)||(t.container&&t.container.off("scroll",t.handler),t.container=i.getContainer(e.$scope),t.container.on("scroll",t.handler).triggerHandler("scroll")))},removeSpy:function(e){var t=m(e);if(t){e===t.currentlyActive&&(t.currentlyActive=null);var n=t.spies.indexOf(e);-1!==n&&t.spies.splice(n,1),e.$element=null}},createContext:f,destroyContext:d,getContextForScope:h}}]),e.module("duScroll.scrollContainerAPI",[]).factory("scrollContainerAPI",["$document",function(e){"use strict";var t={},n=function(e){return t[e.$id]?e.$id:e.$parent?n(e.$parent):void 0};return{getContainerId:n,getContainer:function(r){var i=n(r);return i?t[i]:e},setContainer:function(e,n){var r=e.$id;return t[r]=n,r},removeContainer:function(e){var r=n(e);r&&delete t[r]}}}]),e.module("duScroll.smoothScroll",["duScroll.scrollHelpers","duScroll.scrollContainerAPI"]).directive("duSmoothScroll",["duScrollDuration","duScrollOffset","scrollContainerAPI",function(t,n,r){"use strict";return{link:function(i,o,a){o.on("click",(function(o){if(a.href&&-1!==a.href.indexOf("#")||""!==a.duSmoothScroll){var s=a.href?a.href.replace(/.*(?=#[^\s]+$)/,"").substring(1):a.duSmoothScroll,u=document.getElementById(s)||document.getElementsByName(s)[0];if(u&&u.getBoundingClientRect){o.stopPropagation&&o.stopPropagation(),o.preventDefault&&o.preventDefault();var l=a.offset?parseInt(a.offset,10):n,c=a.duration?parseInt(a.duration,10):t;r.getContainer(i).duScrollToElement(e.element(u),isNaN(l)?0:l,isNaN(c)?0:c)}}}))}}}]),e.module("duScroll.spyContext",["duScroll.spyAPI"]).directive("duSpyContext",["spyAPI",function(e){"use strict";return{restrict:"A",scope:!0,compile:function(t,n,r){return{pre:function(t,n,r,i){e.createContext(t)}}}}}]),e.module("duScroll.scrollContainer",["duScroll.scrollContainerAPI"]).directive("duScrollContainer",["scrollContainerAPI",function(t){"use strict";return{restrict:"A",scope:!0,compile:function(n,r,i){return{pre:function(n,r,i,o){i.$observe("duScrollContainer",(function(i){e.isString(i)&&(i=document.getElementById(i)),i=e.isElement(i)?e.element(i):r,t.setContainer(n,i),n.$on("$destroy",(function(){t.removeContainer(n)}))}))}}}}}]),e.module("duScroll.scrollspy",["duScroll.spyAPI"]).directive("duScrollspy",["spyAPI","duScrollOffset","$timeout","$rootScope",function(t,n,r,i){"use strict";var o=function(t,n,r,i){e.isElement(t)?this.target=t:e.isString(t)&&(this.targetId=t),this.$scope=n,this.$element=r,this.offset=i};return o.prototype.getTargetElement=function(){return!this.target&&this.targetId&&(this.target=document.getElementById(this.targetId)||document.getElementsByName(this.targetId)[0]),this.target},o.prototype.getTargetPosition=function(){var e=this.getTargetElement();if(e)return e.getBoundingClientRect()},o.prototype.flushTargetCache=function(){this.targetId&&(this.target=void 0)},{link:function(e,a,s){var u,l=s.ngHref||s.href;l&&-1!==l.indexOf("#")?u=l.replace(/.*(?=#[^\s]+$)/,"").substring(1):s.duScrollspy?u=s.duScrollspy:s.duSmoothScroll&&(u=s.duSmoothScroll),u&&r((function(){var r=new o(u,e,a,-(s.offset?parseInt(s.offset,10):n));t.addSpy(r),e.$on("$locationChangeSuccess",r.flushTargetCache.bind(r));var l=i.$on("$stateChangeSuccess",r.flushTargetCache.bind(r));e.$on("$destroy",(function(){t.removeSpy(r),l()}))}),0,!1)}}}])})),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("polyfills",["require","exports"],e)}((function(e,t){function n(e){if(!h(e)&&!o(e))return e;var t=!o(e),r=t?{}:[],i=0,a=0;if(t){var s=v(e);for(a=s.length;i<a;i++){var u=s[i];r[u]=n(e[u])}}else for(a=e.length;i<a;i++)r[i]=n(e[i]);return r}function r(e,t,n,r,i){t=!isNaN(t=Math.abs(t))&&t>0?Math.pow(10,t):1,n=void 0!==n?n:"$",r=r||",",i=i||".";var o=e<0?"-":"",a=parseInt(e=Math.round(Math.abs(+e||0)*t)/t,10)+"",s=(s=a.length)>3?s%3:0,u=n+o+(s?a.substr(0,s)+r:"")+a.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+r);return t>1&&Math.round(Math.abs(e-a)>0)&&(u+=i+(Math.round(Math.abs(e-a)*t)/t).toString().substring(2)),u}function i(e){return null==e||void 0===e}var o=function(e){return Array.isArray?Array.isArray(e):e&&"[object Array]"===Object.prototype.toString.call(e)},a=function(e,t,n,r){if(!o(e))throw new TypeError("forEach called on a non-array type value. The given value is "+typeof e);var i;if(n||(n=e),r)for(var a=(s=e.length)-1;a>=0&&("boolean"!=typeof(i=t.call(n,e[a],a,e))||i);a--);else{a=0;for(var s=e.length;a<s&&("boolean"!=typeof(i=t.call(n,e[a],a,e))||i);a++);}},s=function(e){return o(e)?e.length<1:null},u=function(e){return String.prototype.trim?String.prototype.trim.call(e):e.replace(/^\s+|\s+$/gm,"")},l=function(e){return"string"==typeof e},c=function(e){return!l(e)||""==e.replace(/\s/g,"")},f=function(e,t,n){if(!l(e))throw new TypeError("String.includes called on a non-string");return String.prototype.includes?String.prototype.includes.call(e,t,n):("number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n))},d=function(e){if(!l(e))throw new TypeError("String.digits called on a non-string. The given value is "+typeof e);return u(e).replace(/[^0-9]/g,"")},p=function(e){return"function"==typeof e},h=function(e){return null!==e&&"object"==typeof e&&!o(e)},m=function(e,t){var n=JSON.parse(JSON.stringify(e));if(!h(e)||!h(t))throw new TypeError("First or second argument is not an plain object");return a(v(t),(function(r){h(t[r])?n[r]=m(e[r]||{},t[r]):n[r]=t[r]})),n},v=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(i){if("function"==typeof Object.keys)return Object.keys(i);if("object"!=typeof i&&"function"!=typeof i||null===i)throw new TypeError("Object.keys called on non-object. The given value is "+typeof i);var o=[];for(var a in i)e.call(i,a)&&o.push(a);if(t)for(var s=0;s<r;s++)e.call(i,n[s])&&o.push(n[s]);return o}}(),$=function(e,t,n){var r,i=n||e;if(!h(e))throw new TypeError("Object.forEach called on non-object. The given value is "+typeof e);if(!p(t))throw new TypeError("The given iterator is not a function");for(var o in e)if((!p(e.hasOwnProperty)||e.hasOwnProperty(o))&&"boolean"==typeof(r=t.apply(i,[e[o],o]))&&!r)break},g="function"!=typeof Object.create?function(e){var t=function(){};return function(e,n){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");t.prototype=e||{};var r=new t;return t.prototype=null,void 0!==n&&Object.defineProperties(r,n),null===e&&(r.__proto__=null),r}}():Object.create,y=function(){var e={current:new Date,months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fromToday:function(t,n,r,i){if(i=i||5,!w(t)&&(t.indexOf("-")>-1&&(t=t.replace(/-/g,"/")),t.indexOf("/")<0))return"";var o=new Date(e.calcTimeOffset(t,-1*e.current.getTimezoneOffset()/60)),a=e.current.getTime()-o.getTime();a/=1e3,Math.floor(a%60),a/=60;var s=Math.max(1,Math.floor(a%60));a/=60;var u=Math.floor(a%24),l=Math.floor(a/24),c=r?" ":", ";return l>i?e[n?"monthsShort":"months"][o.getMonth()]+" "+o.getDate()+c+(r?"":o.getFullYear()):l>=1?l+" day"+(l>1?"s":"")+" ago":u>=1?u+" hr"+(u>1?"s":"")+". ago":s+" min. ago"},calcTimeOffset:function(e,t){var n=w(e)?new Date(e):new Date,r=n.getTime()+6e4*n.getTimezoneOffset();return new Date(r+36e5*t).getTime()},getDifference:function(t,n,r,i){var o=t.getTimezoneOffset(),a=t.getTime(),s=e.calcTimeOffset(n.getTime(),-1*o/60),u=Math.round(Math.abs(a-s)/36e5),l=Math.round((a-s)/864e5);r||(r="days");var c="days"==r?l:u;return i&&(c=c.toString()+("days"==r?" day":" hr")+(1!==c?"s":"")),c},getElapsedSeconds:function(e,t){var n=e-t;return n/=1e3,Math.round(n%60*100)/100+" sec."},toText:function(t,n,r,i,o,a){var s;if(w(t)||l(t)){if(!w(t)&&t){if(t.indexOf("-")>-1&&(t=t.replace(/-/g,"/")),t.indexOf("/")<0)return""}else if(!t)return"";s=new Date(t)}else{if(!t)return"";s=t}var u=i?" ":", ",c=o?s.getUTCMonth():s.getMonth(),f=o?s.getUTCDate():s.getDate(),d=o?s.getUTCFullYear():s.getFullYear();return a&&(f=f.toString()+function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(f)),e[n?"monthsShort":"months"][c]+(r?" ":" "+f+u)+(i?"":d)},today:function(){return e.toText(e.current.getTime(),!0)},getAge:function(e,t,n){var r=new Date,i=r.getFullYear(),o=r.getMonth(),a=r.getDate(),s=i-n;return o<e-1&&s--,e-1==o&&a<t&&s--,s},toUTC:function(e){return e.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),e.setUTCHours(e.getHours()),e.setUTCMinutes(e.getMinutes()),e}};return e}(),b=function(){var e;return{counter:{start:function(){e=(new Date).getTime()},end:function(t){if(!e)return null;var n=(new Date).getTime()-e;return e=!1,t?(n/=1e3,Math.round(n%60*100)/100+"sec."):n+"ms."}}}}(),w=function(e,t){return"number"==typeof e&&(t&&isNaN(e)||isFinite(e))},x=function(){if("undefined"!=typeof window){if(window.requestAnimationFrame)return function(e,t){return window.requestAnimationFrame.apply(window,[e,t])};var e=0,t=function(t,n){var r=(new Date).getTime(),i=Math.max(0,16-(r-e)),o=window.setTimeout((function(){t(r+i)}),i);return e=r+i,o}}else t=function(e){e()};return t}(),C="undefined"!=typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame:clearTimeout;return{Array:{isArray:o,forEach:a,filter:function(e,t){if(Array.prototype.filter)return Array.prototype.filter.call(e,t);for(var n=[],r=0,i=e.length;r<i;r++)t(e[r])&&n.push(e[r]);return n},findIndex:function(e,t){if(!o(e))throw new TypeError("Array.findIndex called on a non-array type. The given value is "+typeof e);if(Array.prototype.findIndex)return Array.prototype.findIndex.call(e,t);for(var n,r=-1,i=0,a=e.length;i<a;i++)if("boolean"==typeof(n=t(e,e[i],i,e))&&n){r=i;break}return r},map:function(e,t){if(Array.prototype.map)return Array.prototype.map.call(e,t);for(var n=[],r=0,i=e.length;r<i;r++)n.push(t(e[r]));return n},some:function(e,t,n){if(!o(e))throw new TypeError("Array.some called on a non-array type value. The given value is "+typeof e);if(!p(t))throw new TypeError("Iterator of Array.some is not a function. The given value is "+typeof t);if(n||(n=e),Array.prototype.some)return Array.prototype.some.call(e,t,n);for(var r=Object(e),i=r.length>>>0,a=0;a<i;a++)if(a in r&&t.call(n,r[a],a,r))return!0;return!1},isEmpty:s,isPopulated:function(e){return!!o(e)&&!s(e)},pushUnique:function(e,t){if(!o(e))throw new TypeError("Array.pushUnique called on a non-array type. The given value is "+typeof e);e.indexOf(t)<0&&e.push(t)},groupBy:function(e,t,n){if(!o(e))throw new TypeError("Array.groupBy called on a non-array type. The given value is "+typeof e);var r=e.reduce((function(e,r){var i=r[t];return e[i]=e[i]||[],e[i].push(r),n&&n(r,e[i]),e}),{}),i=[];return $(r,(function(e){i.push(e)})),i},last:function(e){return o(e)?e[e.length-1]:null}},Number:{isNumber:w,toNumber:function(e){if(l(e)){var t=e.trim(),n=t.replace(/[^0-9.]/g,"");return 0==t.indexOf("-")&&(n="-"+n),parseFloat(n)}return w(e)?e:null},formatMoney:r,formatNumber:function(e,t){var n=!1;e<0&&(n=!0),e=Math.abs(e);var i=t;return i=!isNaN(i=Math.abs(i))&&i>0?Math.pow(10,i):1,e>=1e9?(formattedNumber=(Math.round(e/1e9*i)/i).toString().replace(/\.0$/,"")+"G",n&&(formattedNumber="-"+formattedNumber)):e>=1e6?(formattedNumber=(Math.round(e/1e6*i)/i).toString().replace(/\.0$/,"")+"M",n&&(formattedNumber="-"+formattedNumber)):e>=1e3?(formattedNumber=(Math.round(e/1e3*i)/i).toString().replace(/\.0$/,"")+"K",n&&(formattedNumber="-"+formattedNumber)):formattedNumber=r(e,t,""),formattedNumber},phoneFormat:function(e){return(e?d(e.toString()):"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")},between:function(e,t,n){if(!w(e))throw new TypeError("Number.between called on non-number. The given value is "+typeof e);return n?e>=t[0]&&e<=t[1]:e>t[0]&&e<t[1]}},String:{isString:l,isEmpty:c,trimLeft:function(e){return String.prototype.trimLeft?String.prototype.trimLeft.call(e):e.replace(/^\s+/,"")},trimRight:function(e){return String.prototype.trimRight?String.prototype.trimRight.call(e):e.replace(/\s+$/,"")},trim:u,format:function(e,t){var n=Array.prototype.slice.call(arguments);return n.shift().replace(/\{(\d+)\}/g,(function(e,t){return void 0!==n[t]&&null!==n[t]?n[t]:e}))},capitalize:function(e){if(l(e))return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()}))},substr:function(e,t,n){if(l(e))return"b"!="ab".substring(-1)?String.prototype.substr.call(e,t<0?e.length+t:t,n):String.prototype.substr.call(e,t,n);throw new TypeError("String.substr called on a non-string. The given value is "+typeof e)},includes:f,containsAny:function(e,t){if(!l(e))throw new TypeError("Contains called on a non-string. The given value is "+typeof e);if(!o(t))return!1;var n=!1;return a(t,(function(t){return!l(t)||(f(e,t)?(n=!0,!1):void 0)})),n},splitCamel:function(e){if(!l(e))throw new TypeError("String.splitCamel called on a non-string. The given value is "+typeof e);return e.replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()}))},digits:d,resolve:function(e,t,n){return l(e)&&!c(e)?e+(t?" ":""):n||""}},Math:{degrees:function(e){return e*(180/Math.PI)},getAngle:function(e,t,n,r){var i=Math.abs(r-t),o=Math.abs(n-e),a=i/Math.sqrt(i*i+o*o);return Math.degrees(Math.asin(a))},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}},Object:{assign:function(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");if("function"==typeof Object.assign)return Object.assign.apply(this,arguments);for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],l=Object.getOwnPropertyDescriptor(i,u);void 0!==l&&l.enumerable&&(n[u]=i[u])}}return n},merge:m,isFunction:p,isObject:h,keys:v,forEach:$,copy:function(e){return n(e)},hasKeys:function(e,t,n){var r=!1;if(!h(e))throw new TypeError("Object.hasKeys called on non-object. The given value is "+typeof e);return a(t,(function(t){if(!(t in e))return r=!1,!1;r=!n||!!e[t]})),r},hasAnyKey:function(e,t,n){var r=!1;if(!h(e))throw new TypeError("Object.hasKeys called on non-object. The given value is "+typeof e);return a(t,(function(t){if(t in e&&(r=!n||!!e[t]),r)return!1})),r},create:g,fromUrlParam:function(e){return JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(e,t){return""===e?t:decodeURIComponent(t)}))}},Date:y,Time:b,uniqid:function(e,t){void 0===e&&(e="");var n,r=function(e,t){return t<(e=parseInt(e,10).toString(16)).length?e.slice(e.length-t):t>e.length?Array(t-e.length+1).join("0")+e:e};return this.php_js||(this.php_js={}),this.php_js.uniqidSeed||(this.php_js.uniqidSeed=Math.floor(123456789*Math.random())),this.php_js.uniqidSeed++,n=e,n+=r(parseInt((new Date).getTime()/1e3,10),8),n+=r(this.php_js.uniqidSeed,5),t&&(n+=(10*Math.random()).toFixed(8).toString()),n},tryCatch:function(e,t){try{return e()}catch(e){return p(t)?t(e):void 0}},isNullorUndefined:i,isEmpty:function(e){return!!i(e)||(o(e)?s(e):l(e)?c(e):w(e)?0==e:h(e)?v(e).length<=0:!e)},isAnyOf:function(e,t){var n=!1;return a(t,(function(t){if(e===t)return n=!0,!1})),n},forEach:function(e,t,n){if(o(e))a(e,t,n);else{if(!h(e))throw new TypeError("forEach can only be used on arrays or plain objects. The object given is "+typeof value);$(e,t,n)}},requestAnimationFrame:x,cancelAnimationFrame:C,versionCompare:function(e,t){var n,r,i,o=e,a=t,s=/(\.0)+[^\.]*$/;for(o=(o+"").replace(s,"").split("."),a=(a+"").replace(s,"").split("."),i=Math.min(o.length,a.length),n=0;n<i;n++)if(0!=(r=parseInt(o[n],10)-parseInt(a[n],10)))return r;return o.length-a.length},generateUUID:function(e){var t=(new Date).getTime().toString(),n=e.toString(),r=32-t.length-n.length,i=t+"A".repeat(r)+n;return[i.slice(0,8),i.slice(8,12),i.slice(12,16),i.slice(16,20),i.slice(20,32)].join("-")},Cookie:{get:function(e){var t=e+"=";if(document.cookie)for(var n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return unescape(i.substring(t.length,i.length))}},set:function(e,t,n){var r;if(0===n)r='expires=""';else{n||(n=0);var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),r="expires="+i.toUTCString()}document.cookie=e+"="+t+"; "+r+"; path=/; domain=."+document.domain+"; secure"},check:function(){return!1!==navigator.cookieEnabled&&(document.cookie="testcookie=1",-1!=document.cookie.indexOf("testcookie"))}},Browser:{iOS:function(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].indexOf(navigator.platform)||(navigator.userAgent.includes("Mac")&&"ontouchend"in document)>-1}}}})),define("angularExtras",["require","jquery.tiny","angular","jquery.vclick","angularElementScroll","angularAnimate","angularElement","polyfills","jquery.ripple"],(function(e){e(["nouislider"]);var t=e("polyfills"),n=e("angular"),r=e("jquery.tiny"),i=t.isEmpty,o=t.String.isEmpty,a=t.Number.isNumber,s=t.Number.toNumber,u=e("jquery.ripple");Number.prototype.formatMoney=function(e,n,r,i){return t.Number.formatMoney(this,e,n,r,i)},n.module("extra",["duScroll"]).constant("date",t.Date).constant("$viewport",function(){var e={},t={},r={body:n.element(document).cssSelect("#viewport").eq(0),data:function(t,n){if(null==n)return e[t];e[t]=n},scrolling:!1,scrollTop:function(e){if(null==e)return this.body.prop("scrollTop");this.body.prop("scrollTop",e)},scrollStop:function(e){setTimeout((function(){for(var t=r.data("scrollTop");r.scrollTop()!=t;)r.scrollTop(t);e&&e()}))},scrollHeight:function(){return this.body.prop("scrollHeight")},scrollTopFixed:function(e,t){var n,i=function(e){r.scrollTop()!==n&&r.scrollTop(n),e.preventDefault(),e.stopImmediatePropagation()};n=t||this.scrollTop(),this.body.off("scroll",i),e&&this.body.on("scroll",i)},setBody:function(e){r.body=e},setup:function(){r.data("scrollTop",0),r.body.on("scroll",(function(){r.data("scrollTop",r.scrollTop()),n.element(document).trigger("scrolling")}))},scrollSave:function(e){t.scrl=void 0!==e?e:this.body.prop("scrollTop")},scrollRestore:function(){this.data("scrollTo",t.scrl||1),t.scrl=1}};return r}()).run(["$viewport","$rootScope",function(e,t){e.setup()}]).directive("ngDropdown",["$timeout","$viewport","$document","$rootScope",function(e,r,i,o){return{restrict:"A",scope:{modelValue:"=ngModel",disabled:"=disabled",listItems:"=?ngDrpListItems",afterSelect:"=?ngDrpAfterSelect",onSelect:"=?ngDrpOnSelect",tabindex:"=?ngDrpTabindex",labelId:"=?ngDrpLabelId"},transclude:!0,template:'<span tabindex="{{tabindex || 0}}" role="button" aria-haspopup="listbox" aria-expanded="{{list_opened}}" class="{{selected_class}}" ng-if="!no_select && !empty_select && !disabled" ng-aria-label="label_value" hm-highlight data-sel-id="dropdown-selected">{{display_value}}</span><span tabindex="{{tabindex || 0}}" role="button" aria-haspopup="listbox" aria-expanded="{{list_opened}}" class="{{placeholder_class}}" ng-if="(no_select || empty_select) && placeholder && !disabled"  hm-highlight>{{placeholder}}</span><span tabindex="0" role="text" class="{{selected_class}}" ng-if="disabled" data-sel-id="dropdown-selected">{{display_value || placeholder}}</span><ul aria-labelledby="{{list_label}}" aria-activedescendant="{{activedescendant}}" role="listbox" tabindex="0" class="ng-animate-enabled basic-trans ng-hide" ng-class="[list_class,{ fast: !$root.isAndroid, enter : !$root.isAndroid }]" ng-show="list_opened" ng-keydown="ListOnKey($event)" hm-tap="preventEv($event)" hm-options="{ ripple: false, delay : 0 }"><li ng-attr-id="{{optionid+\'-\'+$index}}" ng-attr-aria-selected="{{value == selected_value || false}}" role="option" ng-class="[item_class,{ active : value == selected_value  }]" ng-repeat="value in selectList track by $index" hm-tap="select($event,value,$index)" hm-options="{ ripple: false, delay : 0 }" ng-focus-when="(!(no_select || empty_select) && selected_value == value) || ((no_select || empty_select) && $index == 0)" ng-bind-html="value" ng-aria-label="labelList[$index]" data-sel-id="dropdown-item"></li></ul>',compile:function(a,s){return{pre:function(e,t,n){var r=e.$eval(n.ngDropdown)||{};e.list_opened=!1,e.preventEv=function(e){e.stopPropagation()},e.selectList=[];var i=void 0!==r.arrowClass?r.arrowClass:"ng-dropdown-arrow bf-icon-down-open";i&&t.append('<span class="'+i+'" tabindex="-1" aria-hidden="true"></span>')},post:function(a,s,u){var l,c=a.$eval(u.ngDropdown)||{},f=[],d=[],p=[],h=null,m=13,v=38,$=40,g=0;a.activedescendant=null,a.optionid=t.uniqid("option-"),a.display_value="",a.selected_value="",a.$watch("listItems",(function(e){for(var r in d=e||[],f=[],a.selectList=[],a.labelList=[],p=[],d)n.isArray(d[r])?(f[r]=d[r][1],n.isArray(d[r][0])?(a.selectList[r]=d[r][0][0],a.labelList[r]=d[r][0][d[r][0].length-1]||d[r][0][0],3==d[r][0].length?p[r]=d[r][0][1]:p[r]=d[r][0][0]):(a.selectList[r]=d[r][0],a.labelList[r]=d[r][0],p[r]=d[r][0])):(f[r]=d[r],a.selectList[r]=d[r],a.labelList[r]=d[r],p[r]=d[r]);t.Array.forEach(a.selectList,(function(e,t){if(a.selected_value==e)return a.activedescendant=a.optionid+"-"+t.toString(),g=t,a.label_value=(h?h+". ":"")+a.labelList[t],!1})),a.activedescendant||(a.activedescendant=a.optionid+"-0",g=0)}),!0),a.$watch(u.ngDropdown,(function(e){if(e=a.$eval(u.ngDropdown)||{},!a.listItems&&e.list)for(var t in d=e.list||[],f=[],p=[],a.selectList=[],a.labelList=[],d)n.isArray(d[t])?(f[t]=d[t][1],n.isArray(d[t][0])?(a.selectList[t]=d[t][0][0],a.labelList[t]=d[t][0][d[t][0].length-1]||d[t][0][0],3==d[t][0].length?p[t]=d[t][0][1]:p[t]=d[t][0][0]):(a.selectList[t]=d[t][0],a.labelList[t]=d[t][0],p[t]=d[t][0])):(f[t]=d[t],a.selectList[t]=d[t],a.labelList[t]=d[t],p[t]=d[t]);if(a.list_label=a.labelId||e["list-label-id"]||"",a.list_class=e.listClass||"ng-dropdown-list",a.item_class=e.itemClass||"ng-dropdown-item",a.placeholder_class=e.placeholderClass||"ng-dropdown-placeholder",a.selected_class=e.selectedClass||"ng-dropdown-selected",a.no_select=void 0!==e.noSelect&&e.noSelect,a.placeholder=void 0!==e.placeholder?e.placeholder:"Choose",a.change_list_position=e.changeListPosition,a.list_position_offset=e.listPositionOffset||0,null==h)if(e.listTitle)h=e.listTitle;else if(a.list_label){var r=document.querySelector("#"+a.list_label);r&&(h=r.textContent)}}),!0),a.$watch("modelValue",(function(e){var t,r,i=f.indexOf(e);i>-1?(t=a.selectList[i],r=a.labelList[i],a.label_value=(h?h+". ":"")+r,n.equals(a.selected_value,t)||(a.selected_value=t,a.display_value=p[i]),a.empty_select=!1):a.empty_select=!0,a.list_opened=!1,a.afterSelect&&a.afterSelect(t,i,e);var o=a.$eval(u.ngDropdown)||{};o.afterSelect&&o.afterSelect(t,i,e)})),a.$watch("list_opened",(function(n){e.cancel(l);var o=s.find("ul"),u=c.offsetParent?s.find("ul").parents(c.offsetParent).prop("scrollHeight"):r.body.prop("scrollHeight"),f=c.offsetParent?s.find("ul").parents(c.offsetParent).prop("clientWidth"):r.body.prop("clientWidth");l=e((function(){if(n){if(a.change_list_position){var e=0,r=t.Number.toNumber(f)-(s.offset().left+s.prop("clientWidth")),l=o.prop("clientWidth");s.prop("clientWidth")+r<l&&(e=s.prop("clientWidth")+r-l-15),void 0!==a.list_position_offset&&(e-=a.list_position_offset),o.css({left:e+"px"})}var d=o.offset(!!c.offsetParent&&s.find("ul").parents(c.offsetParent)).top+o.prop("offsetHeight");u<d?o.addClass("upwards"):o.removeClass("upwards"),i.one("vclick",b),i.one("click",b)}else o.removeClass("upwards"),i.off("vclick",b),i.off("click",b)}),50)}));var y=!1;a.select=function(t,n,r){y=!0;var i=f[r],l=a.labelList[r];a.selected_value=n,a.label_value=(h?h+". ":"")+l,a.display_value=p[r],a.modelValue=i,s[0].querySelector('[aria-haspopup="listbox"]').focus(),setTimeout((function(){s[0].querySelector('[aria-haspopup="listbox"]').focus()})),e((function(){a.onSelect&&a.onSelect(n,r,i);var e=a.$eval(u.ngDropdown)||{};e.onSelect&&e.onSelect(n,r,i),a.list_opened=!1}),o.isAndroid?1:100),g=r,a.activedescendant=a.optionid+"-"+g,t&&t.stopPropagation(),setTimeout((function(){y=!1}),50)},a.indexSelect=function(e){a.selected_value=a.selectList[e],a.label_value=(h?h+". ":"")+a.labelList[e],a.modelValue=f[e],a.display_value=p[e]};var b=function(e){a.$applyAsync((function(){a.list_opened=!1}))};s.on("vclick",(function(t){a.disabled||(t.stopPropagation(),e((function(){if(!y){var t=a.$eval(u.ngDropdown)||{};if(!1===t.enabled)return!1;a.list_opened||t.noBubble||i.trigger("vclick"),e((function(){a.list_opened=!a.list_opened}),r.data("android")?200:0)}})))})),a.ListOnKey=function(e){var n=e.keyCode;switch(n){case m:var r=g;t.Number.isNumber(r)&&a.select(null,a.selectList[r],r);break;case v:case $:r=g;g=n==$?r<a.selectList.length-1?r+1:0:r>0?r-1:a.selectList.length-1,a.activedescendant=a.optionid+"-"+g,e.preventDefault()}};var w=function(){i.off("vclick",b),s.off("vclick"),s.off("keydown")};a.$on("$destroy",w),s.one("$destroy",w)}}}}}]).directive("ngSlider",["$document",function(n){return{restrict:"AE",require:"ngModel",link:function(n,r,i,o){var u=r[0],l=!1,c=i.ngModel;e(["nouislider"],(function(e){var f=n.$watch(i.ngSlider,(function(r){var i=t.Object.assign({start:0,step:1,orientation:"horizontal",connect:"lower",range:{min:0,max:100}},r||{});i.range.min||(i.range.min=0),u.noUiSlider&&u.noUiSlider.destroy(),e.create(u,i),u.noUiSlider.off("slide"),u.noUiSlider.on("slide",(function(){l=!0})),u.noUiSlider.off("change"),u.noUiSlider.on("change",(function(e){l=!1,n.$applyAsync((function(){o.$setViewValue(s(e[0])),o.$render()}))})),u.noUiSlider.set(n.$eval(c))}),!0),d=n.$watch(i.ngModel,(function(e){l||u.noUiSlider&&u.noUiSlider.set(a(e)?e:0)}));r.one("$destroy",(function(){f(),d(),u.noUiSlider&&u.noUiSlider.destroy()}))}))}}}]).directive("ngHtmlContent",["$compile","$injector","$timeout","$parse",function(e,t,n,r){return{restrict:"A",link:function(i,o,a){i.$watch(a.ngHtmlContent,(function(s,u){var l;t.has("$sanitize")?t.invoke(["$sanitize",function(e){var t=i.$eval(a.ngHtmlSanitize);l=t?e(s):s}]):l=s;var c=r(a.ngHtmlContentBefore).bind(null,i),f=r(a.ngHtmlContentAfter).bind(null,i);c({$element:o[0]}),o.html(l),e(o.contents())(i),n((function(){f({$element:o[0]})}))}))}}}]).directive("ngHtmlDirect",["$compile","$injector","$timeout","$parse",function(e,t,n,r){return{restrict:"A",link:function(t,n,r){t.$watch(r.ngHtmlDirect,(function(r,i){n.html(r),e(n.contents())(t)}))}}}]).directive("ngSrcSafe",(function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngSrcSafe,(function(e){t[0].setAttribute("src",e)}))}}})).directive("ngNoAutoFocus",["$timeout",function(e){return{restrict:"A",compile:function(t,n){return{pre:function(e,t,n){t.attr("readonly","true")},post:function(t,n,r){e((function(){n.removeAttr("readonly")}),500)}}}}}]).directive("ngFocusWhen",["$timeout",function(e){return{restrict:"A",link:function(e,t,n){var r=e.$eval(n.ngFocusClick);e.$watch(n.ngFocusWhen,(function(e){e&&(r&&t[0].click(),t[0].focus(),setTimeout((function(){r&&t[0].click(),t[0].focus()})))}))}}}]).directive("ngFocusToggle",(function(){return{restrict:"A",scope:{flag:"=ngFocusToggle"},link:function(e,t,n){function r(){e.$applyAsync((function(){e.flag=!0}))}function i(){e.$applyAsync((function(){e.flag=!1}))}t.on("focus",r),t.on("blur",i),e.$on("$destroy",(function(){t.off("focus",r),t.off("blur",i)}))}}})).directive("ngTabNext",["$timeout",function(e){return{restrict:"A",link:function(e,r,i){var o=function(o){if(8==o.keyCode)return!1;var a=t.String.trim(r.val()).length,u=e.$eval(i.ngTabNext),l=(u.length||s(r.attr("maxlength")))<=a,c=n.element().cssSelect(u.selector);l&&c.focus().caret(0)};r.on("keyup",o),e.$on("$destroy",(function(){r.off("keyup",o)}))}}}]).directive("ngTabPrevious",["$timeout",function(e){return{restrict:"A",link:function(e,r,i){var o=function(o){var a=e.$eval(i.ngTabPrevious),s=n.element().cssSelect(a.selector),u=t.String.trim(r.val()).length;8==o.keyCode&&(0==u||r.caret()<=0)&&s.focus().caret(s.val().length)},a=function(o){var a=e.$eval(i.ngTabPrevious),s=n.element().cssSelect(a.selector),u=t.String.trim(r.val()).length;8==o.keyCode&&0==u&&0==u&&s.focus().caret(s.val().length)};r.on("keyup",o).on("keydown",a),e.$on("$destroy",(function(){r.off("keyup",o).off("keydown",a)}))}}}]).directive("ngTabOnEnter",["$timeout",function(e){return{restrict:"A",link:function(e,t,r){var i=function(i){if(i.preventDefault(),13===i.keyCode){var o=e.$eval(r.ngTabOnEnter),a=n.element().cssSelect(o.selector);return t[0].blur(),setTimeout((function(){a&&a.focus()}),700),!1}};t.on("keyup",i),e.$on("$destroy",(function(){t.off("keyup",i)}))}}}]).directive("ngTogglePassword",["$window","$timeout",function(e,t){return{restrict:"A",scope:{onShow:"=?ngShow",onHide:"=?ngHide",ngdelay:"=?ngDelay"},link:function(r,i,o){function a(e){t((function(){e.target&&e.target.value?l():s&&s.css("visibility","hidden")}))}i.append("<span class='ng-toggle-btn-pass semi-bold-font' style='visibility:hidden;'>show</span>"),i.css({position:"relative"});var s=i.find(".ng-toggle-btn-pass"),u=i.find("input[type='password']");s&&s.css("visibility","hidden"),u&&u.css({"padding-right":"55px"});var l=function(){t((function(){if(s&&u){var e=u.outerHeight(),t=u.position().top,n=u.outerWidth()+u.position().left-55;s.css({position:"absolute","font-size":"13px",right:"auto",display:"block",width:"55px",height:e+"px","line-height":e-2+"px",top:t+"px",left:n+"px",cursor:"pointer","text-align":"center"}),u&&!u.val()?s&&s.css("visibility","hidden"):s.css("visibility","")}}),r.ngdelay||0)};l(),n.element(e).on("resize",l),u&&u[0]&&u[0].addEventListener("input",a,!0),r.$watch("onShow",(function(e){e&&l()})),r.$watch("onHide",(function(e){e||l()})),s.on("vclick",(function(e){u&&"password"==u.attr("type")?(u.attr("type","text"),s.prop("innerHTML","hide")):u&&(u.attr("type","password"),s.prop("innerHTML","show"))}));var c=function(){n.element(e).off("resize",l),s&&(s.off("vclick"),s.remove()),u&&u[0]&&u[0].removeEventListener("input",a),i.off("vclick"),s=void 0};r.$on("$destroy",c),i.one("$destroy",c)}}}]).directive("ngToolTip",["$animate","$viewport","$compile","$document","$window","$timeout",function(e,t,r,i,o,l){return{restrict:"A",scope:{open_flag:"=?ngToolTipToggle",tipcontent:"=?ngToolTip"},link:function(c,f,d){var p=document.createElement("div"),h=n.element(p),m=n.merge({ripple:!0,width:400,offsetParent:t.body,offset:{top:0,left:0},class:"ng-tooltip",closeClass:"close-bt bf-icon-cross",preventDef:!1},c.$eval(d.ngToolTipOptions)),v=m.offsetParent,$="string"==typeof v?n.element(document).cssSelect(v):v,g=m.useparent?f.parent():$;h.addClass(m.class).addClass("ng-animate-enabled").append('<div class="tail"></div><div tooltip-content-holder></div><div class="'+m.closeClass+'"></div>');var y=h.children("div").eq(2);y.css({"touch-action":"manipulation","-webkit-user-select":"none","-webkit-user-drag":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),y.attr("role","button"),y.attr("aria-label","Close Popup"),y.attr("tabindex","0"),f.css({"touch-action":"manipulation","-webkit-user-select":"none","-webkit-user-drag":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),"static"==f.getStyle("position")&&f.css("position","relative");var b=function(e){e.target&&e.target.href&&window.open(e.target.href,"_parent"),e.preventDefault(),e.stopPropagation()},w=function(){c.$applyAsync((function(){h&&e.leave(h),m.onClose&&m.onClose(),C=!1,c.open_flag=!1}))},x=function(){if($.css("overflow-y","scroll"),h){h.css({width:m.width+"px"});var e=f.offset(parent).left;m.usebound&&f[0]&&f[0].getBoundingClientRect()&&(e=f[0].getBoundingClientRect().left);var r,i=Math.min(e+m.offset.left,$.prop("clientWidth")-h.prop("offsetWidth")-15);i<15?(r=m.width+(i-15),i=15):r=m.width;var o=f[0].getBoundingClientRect(),u=o.top+$.prop("scrollTop");if(m.useparent){var l=f[0].parentNode;u=l.offsetHeight+m.offset.top,i=l.offsetWidth+m.offset.left}else{if($.is("body")&&!m.useparent){var c=f[0].offsetParent;for(u=o.top;c;)u+=n.element(c).prop("scrollTop"),c=c.offsetParent}var d=s($.css("border-top-width"));a(d)||(d=0),u-=d;var p=s(t.body.css("padding-top"));a(p)||(p=0),u-=p}var v=Math.min(u+f.prop("offsetHeight")+m.offset.top,$.prop("scrollHeight")-15);!m.useparent&&$.is("body")&&v<f.offset().top?v=Math.min(f.offset().top+f.prop("offsetHeight")+m.offset.top,$.prop("scrollHeight")-15):v<u&&(v=Math.min(u+f.prop("offsetHeight")+m.offset.top,$.prop("scrollHeight")-15)),h.css({width:r+"px",left:i+"px",top:v+"px"}),$.css("overflow-y","")}},C=!1;t.data("android")&&m.ripple&&u.add(f,!0),f.on("vclick",(function(t){var a=c.$eval(d.ngToolTipEnabled);null==a&&(a=!0),a&&(t.stopPropagation(),m.preventDef&&t.preventDefault(),l((function(){if(C)return C=!1,w(),!1;C=!0,i.trigger("vclick"),c.open_flag=!0;var t=document.createElement("div");t.setAttribute("tooltip-content",""),t.setAttribute("class","content"),n.element(t).prop("innerHTML",c.tipcontent);var a=r(n.element(t))(c.$parent);h.cssSelect("[tooltip-content-holder]").after(a),h.cssSelect("[tooltip-content-holder]").remove(),n.forEach(h.find("input"),(function(e,t,n){n.data("disabled",n.attr("disabled")),n.attr("disabled","disabled")})),h.css({width:"0px",left:"-999px",top:"-999px"}),e.on("leave",h,(function(e,t){h&&(h.off("vclick"),h.find(".close-bt").off("vclick")),i.off("vclick",w),n.element(o).off("resize",w),h.cssSelect("[tooltip-content]").after("<div tooltip-content-holder></div>"),h.cssSelect("[tooltip-content]").remove()})),e.on("enter",h,(function(e,t){if(h&&"start"==t&&(n.element(o).one("resize",w),setTimeout((function(){var e=$.prop("scrollHeight");if(x(),$.prop("scrollHeight")>e&&h.css({top:h.getStyle("top",!0)-($.prop("scrollHeight")-e+15)+"px"}),h&&h[0]){var t=h[0].getBoundingClientRect(),n=t.left+t.width,r=h.getStyle("left",!0);n>window.innerWidth&&(r-=n-window.innerWidth+15),null!=r&&h.css({left:r+"px"})}})),h.attr("role","dialog"),h.attr("tabindex","0"),null!==m.role&&h&&h[0])){var r=h[0].querySelector("[tooltip-content]");r&&(r.setAttribute("role",m.role||"tooltip"),r.setAttribute("ng-speak","'header'"),r.setAttribute("tabindex","0"))}})),e.enter(h,g[0]||null,g[0]&&g[0].lastChild||null).then((function(){h&&(n.forEach(h.find("input"),(function(e,t,n){n.data("disabled")?n.attr("disabled",n.data("disabled")):n.removeAttr("disabled")})),h.on("vclick",b),y.one("vclick",(function(e){w(),b(e)})),i.one("vclick",w))}))})))}));var S=function(){h&&(h.off("vclick"),y.off("vclick",w),w(),e.off(h),h.remove()),i.off("vclick",w),n.element(o).off("resize",w),f.off("vclick"),u.remove(f),h=void 0,p=void 0,y=void 0};c.$on("$destroy",S),f.one("$destroy",S)}}}]).directive("ngAutocomplete",["$animate","$http","$q","$parse","$viewport","$document","$timeout","$injector",function(e,r,i,o,a,s,u,l){return{restrict:"A",scope:{key:"=ngKey",selectHandler:"=?ngAutoselect",progress:"=?ngAutoprogress",responseHandler:"=?ngAutoresponse",cancelHandler:"=?ngAutocanceled",autoDisplay:"=?ngAutodisplay",responseData:"=?ngAutoData",activedescendant:"=?ngAcActive",focusHandler:"=?ngAcHighlight",blurOnLimit:"=?ngAcBlurOnLimit",stopCall:"=?ngAcStopCall"},transclude:!0,template:'<ul tabindex="0" role="listbox" ng-attr-id="{{ listid || \'\' }}" class="ng-autocomplete-list ng-animate-enabled basic-trans enter fast ng-hide" ng-show="hasResult" ng-focus="GoToFirst(0)" ng-keydown="AcOnKey($event)" aria-labelledby="{{list_label}}" ng-aria-activedescendant="activedescendant"><li role="option" tabindex="-1" ng-attr-id="{{acid+\'-\'+$index}}" class="ng-autocomplete-item" data-ng-repeat="value in ul track by $index" hm-tap="select($event,$index)" ng-bind-html="value" aria-selected="false" ng-class="{\'selected\' : activedescendant == acid+\'-\'+$index}" ng-focus="GoToFirst($index)"></li></ul>',link:function(e,o,a){var c,f,d,p,h,m;c=n.extend({minlength:1,url:!1,list:"list",method:"GET",keyName:"key"},e.$eval(a.ngAutocomplete)),e.listid=c["list-id"]||"",e.list_label=c["list-label"]||"",e.is_list_object="object"==c.list,e.list_object_key=c["object-key"]?c["object-key"]:"name",e.select=function(t,n){var r=[t];if(e.is_list_object)e.key=e.list[n]&&e.list[n][e.list_object_key]?e.list[n][e.list_object_key]:"",f=e.key,r.push(e.list[n]);else for(var i in e.key=e.list[0][n],f=e.key,e.list)r.push(e.list[i][n]);e.selectHandler&&e.selectHandler.apply(this,r),d=!0,setTimeout((function(){d=!1,s.off("vclick",p)}),100),e.hasResult=!1},f=e.key,p=function(t){e.$applyAsync((function(){e.hasResult=!1,e.$emit("$autocomplete:listdisplay",!1),e.cancelHandler&&!d&&e.cancelHandler()}))},e.$watch("key",(function(t){if(e.stopCall)return e.hasResult=!1,void u.cancel(m);u.cancel(m),m=u((function(){if(e.progress=!1,e.autoDisplay=!1,!t||t.length<c.minlength||t==f)return h&&h.resolve(!0),void((!t||t.length<c.minlength)&&(e.hasResult=!1));f=t,h?h.resolve(!0):h=i.defer(),h=i.defer();var n={};n[c.keyName]=t;var o,a={url:c.url,method:c.method,timeout:h.promise,id:"auto-complete-list",events:!1,ignore_connection:!0,anonymous:!0,required:!1};"POST"==c.method?a.data=n:a.params=n,e.progress=!0,l.has("$api")&&(r=l.get("$api").http,o=!0),(e.responseData?e.responseData(a):c.url?r(a):i.resolve({})).then((function(t){var n,r=o?t:t.data,i=e.responseHandler?e.responseHandler(r):r;if(e.ul=[],"object"==c.list){e.ul=[];for(var a=c["object-key"]?c["object-key"]:"name",s=0;s<i.length;s++)e.ul.push(i[s][a]);e.list=i}else n=c.list.indexOf("|")>-1?c.list.split("|"):[c.list],e.ul=i[n[0]]||[],e.list=function(){for(var e=[],t=0,r=n.length;t<r;t++)e.push(i[n[t]]);return e}();e.activedescendant=null,b=0,e.ul.length>0?e.hasResult=!0:e.hasResult=!1,e.progress=!1,e.$emit("$autocomplete:listdisplay",e.hasResult)}),(function(t){e.hasResult=!1,t.xhrStatus&&"abort"==t.xhrStatus||(e.progress=!1),e.$emit("$autocomplete:listdisplay",!1),e.ul=[]}))}),150)}));var v=200;e.$watch("autoDisplay",(function(t){t?e.ul&&e.ul.length>0&&u((function(){e.hasResult=!0,v=200})):v=0}));var $=13,g=38,y=40,b=0;e.GoToFirst=function(t){t&&(b=t),e.activedescendant=e.acid+"-"+b,e.focusHandler&&e.focusHandler(null,e.ul[b])},e.activedescendant=null,e.acid=t.uniqid("ac-"),e.AcOnKey=function(n){var r=n.keyCode;switch(r){case $:var i=b;t.Number.isNumber(i)&&e.select(null,i);break;case g:case y:i=b;if(r==y){if(i<e.ul.length-1)b=i+1;else if(b=0,e.blurOnLimit)return e.blurOnLimit(n),void(e.activedescendant=null)}else if(i>0)b=i-1;else if(b=e.ul.length-1,e.blurOnLimit)return e.blurOnLimit(n),void(e.activedescendant=null);e.activedescendant=e.acid+"-"+b,e.focusHandler&&e.focusHandler(null,e.ul[b]),n.preventDefault()}},e.$watch("hasResult",(function(e){setTimeout((function(){e&&(s.off("vclick",p),s.one("vclick",p))}),v)})),e.$on("$destroy",(function(){h&&h.resolve(!0),s.off("vclick",p),e.progress=!1}))}}}]).directive("ngScrollTo",["$viewport","$parse","$timeout","$rootScope",function(e,t,r,i){return{restrict:"A",link:function(r,o,a){var u=a.ngScrollTo,l=a.ngScrollBefore,c=a.ngScrollAfter,f=r.$watch(u,(function(e){e&&setTimeout((function(){(function(e){return!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)})(o[0])||o.triggerHandler("scrollToMeAnim")}))})),d=function(){var t=n.merge({offset:0,parent:e.body},r.$eval(a.ngScrollOptions)),u="string"==typeof t.parent?"document"==t.parent?n.element().cssSelect("body"):n.element(document).cssSelect(t.parent):t.parent;if(t.offset+=s(u.css("border-top-width")),o[0].getBoundingClientRect().top<0&&t.offset==s(u.css("border-top-width"))&&i.isWeb){var l=document.querySelector("#viewport>header");l&&(t.offset=l.offsetHeight)}return t};o.on("scrollToMeAnim",(function(){var i=d(),a="string"==typeof i.parent?"document"==i.parent?n.element(document):n.element(document).cssSelect(i.parent):i.parent;c&&(c=t(c).bind(null,r)),l&&r.$eval(l),void 0!==i.speed&&0==i.speed?(e.body.css("overflow-y","hidden"),a.duScrollToElement(o,i.offset,0).then((function(){var t=a.prop("scrollTop");r.$applyAsync((function(){c&&c({scrollY:t})})),e.body.css("overflow-y","")}))):a.duScrollToElementAnimated(o,i.offset,void 0!==i.speed&&i.speed).then((function(){var e=a.prop("scrollTop");r.$applyAsync((function(){c&&c({scrollY:e})})),a.duScrollToElement(o,i.offset,0)}))})),o.on("scrollToMe",(function(){var e=d(),i=a.ngScrollBefore,s="string"==typeof e.parent?n.element(document).cssSelect(e.parent):e.parent;i&&r.$eval(i),c&&(c=t(c).bind(null,r)),s.duScrollToElement(o,e.offset,0).then((function(){var t=s.prop("scrollTop");r.$applyAsync((function(){c&&c({scrollY:t})})),s.duScrollToElement(o,e.offset,0)}))}));var p=function(){o.off("scrollToMeAnim"),o.off("scrollToMe"),f()};r.$on("$destroy",p),o.on("$destroy",p)}}}]).directive("ngScrollControl",["$animate",function(e){return function(t,r,i){e.on("enter",r,(function(e,t){n.equals(r,e)&&"close"==t&&e.prev().triggerHandler("scrollToMe")}));var o=function(){e.off(r)};t.$on("$destroy",o),r.on("$destroy",o)}}]).directive("ngScrollInView",["$parse","$timeout",function(e,t){return{restrict:"A",scope:{inView:"&ngScrollInView",offView:"&ngScrollOffView",offset:"<ngScrollOffset"},link:function(n,i,o){var a=e(n.inView),s=e(n.offView),u=function(){var e=n.offset||{},r=function(e,t){var n=e.getBoundingClientRect().top+(t&&t.top||0),r=e.getBoundingClientRect().bottom+(t&&t.bottom||0),i=e.getBoundingClientRect().height,o=window.innerHeight,a=Math.round(.45*o),s=Math.round(.55*o),u=i>Math.round(.45*o);return i>0&&(n>=0&&r<=o||u&&(r>=s&&r<=o||n>=0&&n<=a||n<=0&&r>=o))}(i[0],e);t(r?function(){a()}:function(){s()})},l=function(){r(window).off("scrollend",u)};i.one("$destroy",l),n.$on("$destroy",l),u(),r(window).on("scrollend",u)}}}]).directive("ngMaxChar",(function(){return{require:"ngModel",link:function(e,t,n,r){function i(e){if(e.length>o){var t=e.substring(0,o);return r.$setViewValue(t),r.$render(),t}return e}var o=Number(n.ngMaxChar);r.$parsers.push(i),e.$on("$destroy",(function(){r.$parsers.indexOf(i)>-1&&r.$parsers.splice(i,1)}))}}})).directive("ngMin",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.$watch(n.ngMin,(function(){r.$setViewValue(r.$viewValue)}));var o=function(t){var o=e.$eval(n.ngMin)||0;return!i(t)&&t<o?void r.$setValidity("ngMin",!1):(r.$setValidity("ngMin",!0),t)};r.$parsers.push(o),r.$formatters.push(o),e.$on("$destroy",(function(){var e=r.$parsers.indexOf(o),t=r.$formatters.indexOf(o);e>-1&&r.$parsers.splice(o,1),t>-1&&r.$formatters.splice(o,1)}))}}})).directive("ngMax",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.$watch(n.ngMax,(function(){r.$setViewValue(r.$viewValue)}));var o=function(t){var o=e.$eval(n.ngMax)||1/0;return!i(t)&&t>o?void r.$setValidity("ngMax",!1):(r.$setValidity("ngMax",!0),t)};r.$parsers.push(o),r.$formatters.push(o),e.$on("$destroy",(function(){var e=r.$parsers.indexOf(o),t=r.$formatters.indexOf(o);e>-1&&r.$parsers.splice(o,1),t>-1&&r.$formatters.splice(o,1)}))}}})).directive("ngModelSum",(function(){return{require:"?ngModelSumOptions",scope:{total:"=ngModelSum",options:"=ngModelSumOptions"},controller:["$scope",function(e){var t=[],r={min:-1/0,max:1/0},i=function(e){var n,i,o=0,a=r.max;for(var s in t)o+=isNaN(t[s].ctrl.$modelValue)?0:t[s].ctrl.$modelValue;if(o>a){for(var s in o=a,i=0,t)t[s].ctrl!=e?i+=t[s].ctrl.$modelValue:n=t[s];n&&(n.focused?(n.ctrl.$setViewValue(o-i),n.ctrl.$render(),n.el[0].blur(),setTimeout((function(){n.el[0].focus()}))):(n.ctrl.$setViewValue(o-i),n.ctrl.$commitViewValue()))}return o};e.$watch("options",(function(e){n.extend(r,e)}),!0),this.register=function(n,r,o,a){t.push({ctrl:r,el:n,focused:!1});var s=t[t.length-1],u=function(){s.focused=!0},l=function(){s.focused=!1},c=function(){n.off("focus",u).off("blur",l),delete t[t.indexOf(s)]};n.on("focus",u).on("blur",l),n.one("$destroy",c),a.$watch(o,(function(){s.focused&&(e.total=i(r))})),e.$on("$destroy",c),a.$on("$destroy",c)},e.$on("$destroy",(function(){r={},t=[]}))}]}})).directive("ngSum",(function(){return{require:["^ngModelSum","ngModel"],link:function(e,t,n,r){var i=r[0],o=r[1];i.register(t,o,n.ngModel,e)}}})).directive("onlyNumbers",(function(){return{require:"ngModel",restrict:"A",link:function(e,t,n,r){var i=n.onlyNumbers;i="string"==i;var a=function(e){if(null==e)return"";var t=e.toString().trim();if(o(t))return"";var n=t.replace(/[^0-9]/g,"");return n!=t&&(r.$setViewValue(n),r.$render()),i?n:parseFloat(n)};r.$parsers.push(a),e.$on("$destroy",(function(){r.$parsers.indexOf(a)>-1&&r.$parsers.splice(a,1)}))}}})).directive("modelMatch",[function(){return{restrict:"A",require:"ngModel",link:function(e,t,r,i){e.$watch((function(){var t=e.$eval(r.ngModel),i=e.$eval(r.modelMatch);return n.equals(t,i)}),(function(e){i.$setValidity("match",e)}))}}}]).directive("passMask",["$timeout",function(e){return{require:"ngModel",restrict:"A",link:function(t,r,i,o){var a,s,u,l=null,c=t.$eval(i.ngModel),f=t.$eval(i.passMask)||"•",d=function(e){e.preventDefault()};r.on("paste",d);var p=function(t){if(null==t)return"";if(s)return c;c=void 0!==c?c.toString():"",l&&(t.length,l.length),l=t;var i=t.toString(),d=r.caret(),p=i.substring(d-1,d),h=i.substring(0,d-1),m=i.substring(d),v=c.substring(0,h.length),$=c.substring(c.length-m.length),g=p;g==f&&(g=""),c=v+g+$;var y=h.replace(/(.)/g,f)+p+m.replace(/(.)/g,f);return u=function(){n.element(document.activeElement).is(r)&&r.caret(d),o.$setViewValue(y),o.$render(),n.element(document.activeElement).is(r)&&r.caret(d)},a&&(e.cancel(a),u()),(a=e((function(){s=!0,y=y.replace(/(.)/g,f),u()}),1e3)).then((function(){s=!1})),c},h=function(){r.off("paste",d);var e=o.$parsers.indexOf(p);e>-1&&o.$parsers.splice(e,1)};o.$parsers.push(p),t.$on("$destroy",h),r.one("$destroy",h)}}}]).directive("customOnChange",(function(){return{restrict:"A",link:function(e,t,n){var r=e.$eval(n.customOnChange);t.on("change",r),e.$on("$destroy",(function(){t.unbind("change",r)})),t.one("$destroy",(function(){t.off("change",r)}))}}})).directive("ngComposed",["$parse",function(e){return{require:"ngModel",restrict:"A",link:function(t,n,r){t.$watch(r.ngComposed,(function(n){e(r.ngModel).assign(t,n.join(""))}))}}}]).directive("fallbackSrc",[function(){return{restrict:"A",link:function(e,t,n){t.on("error",(function(){var r=e.$eval(n.fallbackSrc);t.attr("src",r),t.off("error")})),e.$on("$destroy",(function(){t.off("error")}))}}}]).directive("ngError",["$parse",function(e){return{restrict:"A",link:function(t,n,r){n.on("error",(function(i){var o=e(r.ngError).bind(null,t);t.$applyAsync((function(){o({$event:i,$element:n})}))}))}}}]).directive("unfocusPlaceholder",[function(){return{restrict:"A",link:function(e,t,n){var r,i=function(){(r=t.attr("placeholder"))&&t.prop("placeholder","")},o=function(){t.prop("placeholder",r||"")};t.on("focus",i),t.on("blur",o),e.$on("$destroy",(function(){t.off("focus",i),t.off("blur",o)}))}}}]).directive("windowScroll",[function(){return{restrict:"A",link:function(e,t,r){var i=t.scrollEnd&&!t.data("hasScrollEnd")?t.scrollEnd():null,o=t.data("hasScrollEnd")?"scrollend":"scrollstop";t.on("scrollstart",(function(){n.element(window).trigger("scrollstart")})),t.on(o,(function(){n.element(window).trigger(o)})),t.on("$destroy",(function(){t.off("scrollstart"),t.off(o);try{i&&(i.destroy(),i=null)}catch(e){}})),e.$on("$destroy",(function(){t.off("scrollstart"),t.off(o);try{i&&(i.destroy(),i=null)}catch(e){}}))}}}]).directive("ngObserve",["$parse",function(e){return{restrict:"A",priority:1e3,link:function(t,n,r){t.$watch(r.ngObserve,(function(n){e(r.ngObserveDo).bind(null,t)({$value:n})}))}}}]).directive("ngObserveAttr",["$parse",function(e){return{restrict:"A",priority:999,link:function(n,r,o){var a=o.ngObserveAttr,s=t.String.trim;t.String.isString(a)&&!i(a)&&(a=a.split(","),t.Array.isArray(a)&&n.$watch((function(){var e=!0;return t.Array.forEach(a,(function(t){if(!n.$eval(o[s(t)]))return e=!1,!1})),e}),(function(t){e(o.ngObserveDo).bind(null,n)({$value:t})}),!0))}}}]).directive("forceBlur",["$timeout",function(e){return{restrict:"A",link:function(t,n,r){e((function(){n.val().length>0&&n.triggerHandler("blur")}))}}}]).directive("dateFieldCorrect",(function(){return{require:"ngModel",restrict:"A",link:function(e,t,n,r){var i=function(e){if(null==e)return"";var t=e.toString().trim();if(o(t))return"";var n=t.replace(/[^0-9]/g,"");return 1==n.length&&parseFloat(n)>1&&(n="0"+n,r.$setViewValue(n),r.$render()),n};r.$parsers.push(i),e.$on("$destroy",(function(){r.$parsers.indexOf(i)>-1&&r.$parsers.splice(i,1)}))}}})).directive("ngHidden",(function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngHidden,(function(e){e?t.attr("hidden","hidden"):t.removeAttr("hidden")}))}}})).directive("ngFormOnChange",["$parse",function(e){return{require:"form",link:function(t,n,r){var i=e(r.formOnChange);n.on("change",(function(){i(t)}))}}}]).directive("ngGetElement",["$parse",function(e){return{restrict:"A",scope:!1,priority:1,link:function(t,n,r){e(r.ngGetElement).bind(null,t)({$element:n,$scope:t})}}}]).value("duScrollCancelOnEvents",!1).filter("truncate",(function(){return function(e,t,n){if(void 0!==e)return isNaN(t)&&(t=10),n=n||"...",e.length<=t||e.length-n.length<=t?e:String(e).substring(0,t-n.length)+n}})).filter("capitalize",(function(){return function(e){return t.String.capitalize(e)}})).directive("ngBindValue",(function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngBindValue,(function(e){t.attr("value",e)}))}}})).directive("ngScroll",["$parse",function(e){return{restrict:"A",link:function(t,n,r){n.on("scroll",(function(){e(r.ngScroll).bind(null,t)({$event:n[0].scrollTop})}))}}}]).directive("ngAriaHidden",(function(){return{restrict:"A",link:function(e,t,n){var r=t.attr("tabindex"),i=e.$eval(n.ngAriaHidden);void 0===i||void 0===i?(t.attr("tabindex","-1"),t.attr("aria-hidden","true")):e.$watch(n.ngAriaHidden,(function(e){e?(t.attr("tabindex","-1"),t.attr("aria-hidden","true")):(r?t.attr("tabindex",r):t.removeAttr("tabindex"),t.attr("aria-hidden","false"))}))}}})).directive("ngAriaLabelledby",(function(){return{restrict:"A",priority:100,link:function(e,n,i){function o(e){if("ngAriaHideText"in i)for(var t=n[0],o=0,a=t.childNodes.length;o<a;o++){var s=t.childNodes[o];if(3==s.nodeType){var u=document.createElement(i.ngAriaHideText||"p");r(u).addClass("inline"),s.after(u),u.appendChild(s),u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex","-1")}else 1==s.nodeType&&(s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex","-1"))}}function a(){for(var e=n[0],t=0,i=e.childNodes.length;t<i;t++){var o=e.childNodes[t];if(3==o.nodeType){var a=document.createElement("p");r(a).addClass("inline"),o.after(a),a.appendChild(o),a.setAttribute("aria-hidden","true"),a.setAttribute("tabindex","-1")}}var s=e.querySelector(".inline");s&&(s.setAttribute("aria-label",e.innerText),s.setAttribute("tabindex","0"),s.removeAttribute("aria-hidden"))}function s(e){var r=n.attr("aria-label"),s=r?r+". ":"";if("_self"==e||"_self_split"==e)if("ngAriaTextLinks"in i)a();else{if(n.attr("aria-label",s+n[0].innerText),"_self_split"==e){for(var u=[],l=0,c=n[0].childNodes.length;l<c;l++){var f=n[0].childNodes[l],d="";1==f.nodeType?f.hasAttribute("aria-label")?(d=t.String.trim(f.getAttribute("aria-label")),f.removeAttribute("aria-label")):d=t.String.trim(f.innerText):3==f.nodeType&&(d=t.String.trim(f.wholeText)),d&&u.push(d)}n.attr("aria-label",s+u.join(". "))}else n.attr("aria-label",s+n[0].innerText);o()}else{var p=document.getElementById(e);p&&n.attr("aria-label",s+p.innerText),o()}}var u=i.ngAriaLabelledbyDelay?e.$eval(i.ngAriaLabelledbyDelay):null,l=e.$eval(i.ngAriaLabelledby);"none"!==l&&(u?setTimeout((function(){s(l)}),u):s(l))}}})).directive("ngRoleAlert",["$rootScope",function(e){return{restrict:"A",link:function(n,r,i){function o(){r.attr("tabindex","0"),e.isWeb?r[0].hasAttribute("aria-live")||(r.attr("aria-live","assertive"),r.attr("aria-atomic","true")):r.attr("role","alert")}var a=n.$eval(i.ngRoleAlert);if(t.isNullorUndefined(a))o();else var s=n.$watch(i.ngRoleAlert,(function(e){e&&(o(),s())}))}}}]).directive("ngAriaLive",(function(){function e(){return null!=t.match(/Android/i)||n&&null!=n.match(/Android/i)}var t=navigator.userAgent,n=navigator.platform?navigator.platform:"";return{restrict:"A",link:function(t,n,r){n.addClass("a11y-visually-hidden");var i=null,o=e(),a=t.$eval(r.liveType)||"assertive";n.attr("aria-live",a),n.attr("aria-atomic","true"),n.attr("role","status"),o&&(n.attr("aria-hidden","true"),n.attr("tabindex","-1")),t.$watch(r.ngAriaLive,(function(e){clearTimeout(i),i=setTimeout((function(){n.prop("innerHTML",e||""),o?n.attr("aria-label",e||""):(n[0].style.display="none",n[0].style.display="inline")}))}))}}})).directive("ngAriaExpanded",(function(){return{restrict:"A",link:function(e,t,n){t.attr("aria-expanded","false"),e.$watch(n.ngAriaExpanded,(function(e){t.attr("aria-expanded",e?"true":"false")}))}}})).directive("ngAriaSelected",(function(){return{restrict:"A",link:function(e,t,n){t.attr("aria-selected","false"),e.$watch(n.ngAriaSelected,(function(e){t.attr("aria-selected",e?"true":"false")}))}}})).directive("ngAriaLabel",(function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngAriaLabel,(function(e){t.attr("aria-label",e)}))}}})).directive("ngAriaActivedescendant",(function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngAriaActivedescendant,(function(e){t.attr("aria-activedescendant",e)}))}}})).directive("ngTabIndex",(function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngTabIndex,(function(e){"disabled"==e?t.removeAttr("tabindex"):t.attr("tabindex",e?"0":"-1")}))}}})).directive("ngDesktopRoleText",(function(){function e(){return null!=n.match(/iPhone|iPad|iPod/i)||r&&null!=r.match(/iPhone|iPad|iPod/i)}function t(){return null!=n.match(/Android/i)||r&&null!=r.match(/Android/i)}var n=navigator.userAgent,r=navigator.platform?navigator.platform:"";return{restrict:"A",link:function(n,r,i){n.$watch(i.ngTabIndex,(function(n){e()||t()||(r.attr("role","text"),r.attr("tabindex","0"))}))}}})).directive("ngRoleText",(function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngRoleText,(function(e){e?(t.attr("role","text"),t.attr("tabindex","0")):(t.removeAttr("role"),t.removeAttr("tabindex"))}))}}}))})),define("angularAdView",["polyfills","angular","jquery.tiny","angularElement"],(function(e,t,n){function r(e,t){var n=e.getBoundingClientRect().top,r=e.getBoundingClientRect().bottom,i=e.getBoundingClientRect().height,o=window.innerHeight-(t||0),a=Math.round(.45*o),s=Math.round(.55*o),u=i>Math.round(.45*o);return i>0&&(n>=0&&r<=o||u&&(r>=s&&r<=o||n>=0&&n<=a||n<=0&&r>=o))}var i,o=t.module("ngAdView",[]);window.requirejs&&window.require&&require.defined&&require.defined("myWallet")&&(o=require("myWallet").register),o.directive("ngAdContainer",(function(){return{restrict:"A",scope:{},link:function(e,t,n){e.AdViews={},i=e.AdViews,e.$on("$destroy",(function(){i=!1}))}}})),o.factory("$adviewscroller",(function(){var e,t={get:function(){return e},set:function(t){e=n(t)},reset:function(){e=n(window)}};return t.reset(),t})),o.directive("ngAdView",["$parse","$timeout","$adviewscroller",function(t,o,a){return{restrict:"A",scope:{viewid:"=?ngAdViewId",enabled:"<ngAdEnabled",aid:"<ngAdId",onViewed:"&ngAdOnViewed",onDistinctViewed:"&ngAdOnViewedById",onViewedOnce:"&ngAdOnViewedOnce",onInit:"&ngAdOnInit",childview:"=?ngAdViewChild"},link:function(o,s,u){var l,c,f,d=e.uniqid();i&&void 0!==o.aid&&(i[o.aid]?(d=i[o.aid].id,l=!i[o.aid].viewed):(i[o.aid]={id:d,viewed:!1},l=!0)),o.viewid=d;var p,h=a.get(),m=!h.data("hasScrollEnd")&&e.Object.isFunction(h.scrollEnd)?h.scrollEnd():null,v=h.data("hasScrollEnd")?"scrollend":"scrollstop",$=t(o.onViewed),g=t(o.onViewedOnce),y=t(o.onDistinctViewed),b=t(o.onInit),w=function(){if(!o.enabled&&null!=o.enabled)return!0;var t=o.$eval(u.ngAdView)||{},n=r(s[0],t.viewportoffset);if(!n&&o.childview)try{var i=o.childview.split(";");e.Array.forEach(i,(function(i){var o=e.String.trim(i),a=s.cssSelect(o);if(n)return!1;e.forEach(a,(function(i,o){return!e.Number.isNumber(e.Number.toNumber(o))||!(n=r(i,t.viewportoffset))&&void 0}))}))}catch(e){console.error(e)}n!=f&&(f=n,o.$applyAsync((function(){n?C():S()})))},x=function(){h.off(v,w),n(window).off("resizeEnd",w),i&&i[o.aid]&&delete i[o.aid],m&&m.destroy()},C=function(){$({$adId:d}),c||(c=!0,g({$adId:d})),l&&(y({$adId:d}),l=!1,i&&void 0!==o.aid&&i[o.aid]&&(i[o.aid].viewed=!0))},S=function(){};if(s.one("$destroy",x),o.$on("$destroy",x),b({$adId:d}),s.attr("ngAdEnabled")||u.ngAdEnabled)var k=o.$watch("enabled",(function(e){setTimeout((function(){(null==e||e)&&(p||(h.on(v,w),n(window).on("resizeEnd",w),p=!0),w(),k())}))}));else h.on(v,w),n(window).on("resizeEnd",w),w()}}}])})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("mustache",t):(e=e||self).Mustache=t()}(this,(function(){"use strict";function e(e){return"function"==typeof e}function t(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function n(e,t){return null!=e&&"object"==typeof e&&t in e}function r(e,t){return null!=e&&"object"!=typeof e&&e.hasOwnProperty&&e.hasOwnProperty(t)}function i(e){return!function(e,t){return f.call(e,t)}(d,e)}function o(e,n){function r(){if(w&&!x)for(;b.length;)delete p[b.pop()];else b=[];w=!1,x=!1}function o(e){if("string"==typeof e&&(e=e.split(m,2)),!c(e)||2!==e.length)throw new Error("Invalid tags: "+e);s=new RegExp(t(e[0])+"\\s*"),u=new RegExp("\\s*"+t(e[1])),l=new RegExp("\\s*"+t("}"+e[1]))}if(!e)return[];var s,u,l,f=!1,d=[],p=[],b=[],w=!1,x=!1,C="",S=0;o(n||y.tags);for(var k,A,T,E,O,M,D=new a(e);!D.eos();){if(k=D.pos,T=D.scanUntil(s))for(var j=0,I=T.length;j<I;++j)i(E=T.charAt(j))?(b.push(p.length),C+=E):(x=!0,f=!0,C+=" "),p.push(["text",E,k,k+1]),k+=1,"\n"===E&&(r(),C="",S=0,f=!1);if(!D.scan(s))break;if(w=!0,A=D.scan(g)||"name",D.scan(h),"="===A?(T=D.scanUntil(v),D.scan(v),D.scanUntil(u)):"{"===A?(T=D.scanUntil(l),D.scan($),D.scanUntil(u),A="&"):T=D.scanUntil(u),!D.scan(u))throw new Error("Unclosed tag at "+D.pos);if(O=">"==A?[A,T,k,D.pos,C,S,f]:[A,T,k,D.pos],S++,p.push(O),"#"===A||"^"===A)d.push(O);else if("/"===A){if(!(M=d.pop()))throw new Error('Unopened section "'+T+'" at '+k);if(M[1]!==T)throw new Error('Unclosed section "'+M[1]+'" at '+k)}else"name"===A||"{"===A||"&"===A?x=!0:"="===A&&o(T)}if(r(),M=d.pop())throw new Error('Unclosed section "'+M[1]+'" at '+D.pos);return function(e){for(var t,n=[],r=n,i=[],o=0,a=e.length;o<a;++o)switch(t=e[o],t[0]){case"#":case"^":r.push(t),i.push(t),r=t[4]=[];break;case"/":i.pop()[5]=t[2],r=i.length>0?i[i.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],i=0,o=e.length;i<o;++i)(t=e[i])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}(p))}function a(e){this.string=e,this.tail=e,this.pos=0}function s(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function u(){this.cache={}}var l=Object.prototype.toString,c=Array.isArray||function(e){return"[object Array]"===l.call(e)},f=RegExp.prototype.test,d=/\S/,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},h=/\s*/,m=/\s+/,v=/\s*=/,$=/\s*\}/,g=/#|\^|\/|>|\{|&|=|!/;a.prototype.eos=function(){return""===this.tail},a.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},a.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},s.prototype.push=function(e){return new s(e,this)},s.prototype.lookup=function(t){var i,o=this.cache;if(o.hasOwnProperty(t))i=o[t];else{for(var a,s,u,l=this,c=!1;l;){if(t.indexOf(".")>0)for(a=l.view,s=t.split("."),u=0;null!=a&&u<s.length;)u===s.length-1&&(c=n(a,s[u])||r(a,s[u])),a=a[s[u++]];else a=l.view[t],c=n(l.view,t);if(c){i=a;break}l=l.parent}o[t]=i}return e(i)&&(i=i.call(this.view)),i},u.prototype.clearCache=function(){this.cache={}},u.prototype.parse=function(e,t){var n=this.cache,r=e+":"+(t||y.tags).join(":"),i=n[r];return null==i&&(i=n[r]=o(e,t)),i},u.prototype.render=function(e,t,n,r){var i=this.parse(e,r),o=t instanceof s?t:new s(t,void 0);return this.renderTokens(i,o,n,e,r)},u.prototype.renderTokens=function(e,t,n,r,i){for(var o,a,s,u="",l=0,c=e.length;l<c;++l)s=void 0,"#"===(a=(o=e[l])[0])?s=this.renderSection(o,t,n,r):"^"===a?s=this.renderInverted(o,t,n,r):">"===a?s=this.renderPartial(o,t,n,i):"&"===a?s=this.unescapedValue(o,t):"name"===a?s=this.escapedValue(o,t):"text"===a&&(s=this.rawValue(o)),void 0!==s&&(u+=s);return u},u.prototype.renderSection=function(t,n,r,i){var o=this,a="",s=n.lookup(t[1]);if(s){if(c(s))for(var u=0,l=s.length;u<l;++u)a+=this.renderTokens(t[4],n.push(s[u]),r,i);else if("object"==typeof s||"string"==typeof s||"number"==typeof s)a+=this.renderTokens(t[4],n.push(s),r,i);else if(e(s)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");s=s.call(n.view,i.slice(t[3],t[5]),(function(e){return o.render(e,n,r)})),null!=s&&(a+=s)}else a+=this.renderTokens(t[4],n,r,i);return a}},u.prototype.renderInverted=function(e,t,n,r){var i=t.lookup(e[1]);if(!i||c(i)&&0===i.length)return this.renderTokens(e[4],t,n,r)},u.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,""),i=e.split("\n"),o=0;o<i.length;o++)i[o].length&&(o>0||!n)&&(i[o]=r+i[o]);return i.join("\n")},u.prototype.renderPartial=function(t,n,r,i){if(r){var o=e(r)?r(t[1]):r[t[1]];if(null!=o){var a=t[6],s=t[5],u=t[4],l=o;return 0==s&&u&&(l=this.indentPartial(o,u,a)),this.renderTokens(this.parse(l,i),n,r,l)}}},u.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},u.prototype.escapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return y.escape(n)},u.prototype.rawValue=function(e){return e[1]};var y={name:"mustache.js",version:"3.2.1",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,to_html:void 0,Scanner:void 0,Context:void 0,Writer:void 0},b=new u;return y.clearCache=function(){return b.clearCache()},y.parse=function(e,t){return b.parse(e,t)},y.render=function(e,t,n,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+function(e){return c(e)?"array":typeof e}(e)+'" was given as the first argument for mustache#render(template, view, partials)');return b.render(e,t,n,r)},y.to_html=function(t,n,r,i){var o=y.render(t,n,r);if(!e(i))return o;i(o)},y.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return p[e]}))},y.Scanner=a,y.Context=s,y.Writer=u,y})),define("angularMustache",["angular","mustache"],(function(e,t){e.module("ngMustache",[]).directive("mustacheRender",["$compile","$injector","$timeout","$templateCache",function(n,r,i,o){return{restrict:"A",scope:{data:"=data",tpl:"=template",sanitize:"=sanitize"},link:function(i,a,s){function u(){return t.render(l,i.data)}var l=o.get(i.tpl);i.$watch("data",(function(t,o){if(e.equals(t,o))return!1;var s=u();r.has("$sanitize")?r.invoke(["$sanitize",function(e){var t=i.sanitize;safe=t?e(s):s}]):safe=s,a.html(s),n(a.contents())(i.$parent)}),!0)}}}]).directive("blinkClass",(function(){return{restrict:"A",link:function(t,n){e.element(n).addClass("blink-start").removeClass("blink-end"),setTimeout((function(){e.element(n).addClass("blink-end").removeClass("blink-start")}))}}}))})),define("angularInView",["angular"],(function(){(function(){"use strict";var e,t,n,r,i,o,a,s,u,l,c,f,d,p,h,m,v,g,y=[].slice;angular.module("angular-inview",[]).directive("inView",["$parse",function(e){return{restrict:"A",require:"?^inViewContainer",link:function(t,n,i,s){var u,l,c,d,p,h;if(i.inView)return u=e(i.inView),l={element:n,wasInView:!1,offset:0,customDebouncedCheck:null,callback:function(e,r,i){return null==e&&(e={}),t.$evalAsync((function(){return e.inViewTarget=n[0],u(t,{$event:e,$inview:r,$inviewpart:i})}))}},null!=i.inViewOptions&&(c=t.$eval(i.inViewOptions))&&(l.offset=c.offset||[c.offsetTop||0,c.offsetBottom||0],c.debounce&&(l.customDebouncedCheck=a((function(e){return o([l],n[0],e)}),c.debounce))),d=null!=(p=null!=(h=l.customDebouncedCheck)?h:null!=s?s.checkInView:void 0)?p:v,null!=s?s.addItem(l):r(l),setTimeout(d),t.$on("$destroy",(function(){return null!=s&&s.removeItem(l),f(l)}))}}}]).directive("inViewContainer",(function(){return{restrict:"AC",controller:["$element",function(e){return 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,o;for(o=[],n=0,r=(i=this.items).length;n<r;n++)(t=i[n])!==e&&o.push(t);return o}.call(this)},this.checkInView=function(t){return function(n){var r,i,a,s;for(i=0,a=(s=t.items).length;i<a;i++)null!=(r=s[i]).customDebouncedCheck&&r.customDebouncedCheck();return o(function(){var e,t,n,i;for(i=[],e=0,t=(n=this.items).length;e<t;e++)null==(r=n[e]).customDebouncedCheck&&i.push(r);return i}.call(t),e[0],n)}}(this),this}],link:function(e,t,n,r){return t.bind("scroll",r.checkInView),d(r),e.$on("$destroy",(function(){return t.unbind("scroll",r.checkInView),m(r)}))}}})),n=[],r=function(e){return n.push(e),i()},f=function(e){var t;return n=function(){var r,i,o;for(o=[],r=0,i=n.length;r<i;r++)(t=n[r])!==e&&o.push(t);return o}(),h()},e=[],d=function(t){return e.push(t),i()},m=function(t){var n;return e=function(){var r,i,o;for(o=[],r=0,i=e.length;r<i;r++)(n=e[r])!==t&&o.push(n);return o}(),h()},t=!1,g=function(t){var r,i;for(r=0,i=e.length;r<i;r++)e[r].checkInView(t);if(n.length)return v(t)},i=function(){if(!t)return t=!0,angular.element(window).bind("checkInView click ready wheel mousewheel DomMouseScroll MozMousePixelScroll resize scroll touchmove mouseup",g)},h=function(){if(t&&!n.length&&!e.length)return t=!1,angular.element(window).unbind("checkInView click ready wheel mousewheel DomMouseScroll MozMousePixelScroll resize scroll touchmove mouseup",g)},p=function(e,t,n,r,i){var o,a;if(n){if(o=s(t.element[0]).top+window.pageYOffset,a=(r&&i?"neither":r&&"top")||i&&"bottom"||"both",!t.wasInView||t.wasInView!==a||o!==t.lastOffsetTop)return t.lastOffsetTop=o,t.wasInView=a,t.callback(e,!0,a)}else if(t.wasInView)return t.wasInView=!1,t.callback(e,!1)},o=function(e,t,n){var r,i,o,a,f,d,h,m,v,$,g,y,b,w,x;if(x={top:0,bottom:l()},t&&t!==window){if((r=s(t)).top>x.bottom||r.bottom<x.top){for(d=0,m=e.length;d<m;d++)f=e[d],p(n,f,!1);return}r.top>x.top&&(x.top=r.top),r.bottom<x.bottom&&(x.bottom=r.bottom)}for(w=[],h=0,v=e.length;h<v;h++)a=(f=e[h]).element[0],o=(r=s(a)).top+(c(f.offset)?u(r,f.offset):parseInt(null!=($=null!=(g=f.offset)?g[0]:void 0)?$:f.offset)),i=r.bottom+(c(f.offset)?u(r,f.offset):parseInt(null!=(y=null!=(b=f.offset)?b[1]:void 0)?y:f.offset)),o<x.bottom&&i>=x.top?w.push(p(n,f,!0,i>x.bottom,o<x.top)):w.push(p(n,f,!1));return w},c=function(e){return"string"==typeof e&&"%"===e.slice(-1)},u=function(e,t){var n;return n=t.substring(0,t.length-1),(e.bottom-e.top)*(n/100)},l=function(){var e,t,n;return(e=window.innerHeight)||(!(t=document.compatMode)&&("undefined"!=typeof $&&null!==$&&null!=(n=$.support)?n.boxModel:void 0)||(e="CSS1Compat"===t?document.documentElement.clientHeight:document.body.clientHeight)),e},s=function(e){var t,n,r;if(null!=e.getBoundingClientRect)return e.getBoundingClientRect();for(r=0,t=e;t;)r+=t.offsetTop,t=t.offsetParent;for(n=e.parentElement;n;)null!=n.scrollTop&&(r-=n.scrollTop),n=n.parentElement;return{top:r,bottom:r+e.offsetHeight}},a=function(e,t){var n;return n=null,function(){var r;return r=1<=arguments.length?y.call(arguments,0):[],null!=n&&clearTimeout(n),n=setTimeout((function(){return e.apply(null,r)}),null!=t?t:100)}},v=function(e){var t,r,i;for(r=0,i=n.length;r<i;r++)null!=(t=n[r]).customDebouncedCheck&&t.customDebouncedCheck();return o(function(){var e,r,i;for(i=[],e=0,r=n.length;e<r;e++)null==(t=n[e]).customDebouncedCheck&&i.push(t);return i}(),null,e)}}).call(this)})),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd?define("pitLS",["require","exports"],e):window.pitLS=e((function(e){return window[e]}),{})}((function(e,t){function n(){var e=function(e,t,n){var r=new Date;r.setTime(r.getTime()+(n||2592e6));var i="expires="+r.toUTCString();document.cookie=e+"="+t+"; "+i+"; path=/; secure"},t=function(e){document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},n=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}};u.set=function(t,n,r){e(t=a+t,n,r),this.trigger("valuechange",t,n,r)},u.get=function(e){return n(e=a+e)},u.expireKey=function(t,r){var i=n("_expirations.json")||!1;try{(i=JSON.parse(i))||(i={})}catch(e){i={}}i[a+t]={in:r,since:(new Date).getTime()},e("_expirations.json",JSON.stringify(i));var o=a+t,s=n(o);null!=s&&e(o,s,r)},u.getExpiration=function(e){var t=n("_expirations.json")||!1;if(!t)return!1;try{if(!(t=JSON.parse(t)))return!1}catch(e){return!1}return t[a+e]||!1||!1},u.remove=function(e){t(e=a+e),this.trigger("valuedelete",e)},u.removeGroup=function(e){var n=s();for(var r in n)0==(""+n[r]).indexOf(e+"_")&&t(r)},u.isExpired=function(){console.warn("not available for cookies")},u.renameGroup=function(){console.warn("not available for cookies")},u.isGroup=function(){console.warn("not available for cookies")},u.ascookies=!0}var r,i,o=[".json",".string",".number",".function",".boolean"],a="",s=function(){for(var e=document.cookie.split(";"),t="",n=1;n<=e.length;n++)t+=n+" "+e[n-1]+"\n";return t},u={useSession:function(e){r=e?window.sessionStorage:window.localStorage},ascookies:!1,useMemory:function(e){e&&!i?(i=r,r={_data:{},setItem:function(e,t){return this._data[e]=String(t)},getItem:function(e){return e in this._data?this._data[e]:void 0},removeItem:function(e){return delete this._data[e]},clear:function(){return this._data={}}}):(r=i,i=!1)},events:[],on:function(e,t,n){this.events[e]||(this.events[e]=[]),n?this.events[e][n+"-key"]=t:this.events[e].push(t)},off:function(e,t){t?this.events[e][t+"-key"]&&delete this.events[e][t+"-key"]:delete this.events[e]},trigger:function(e){if(this.events[e]){var t=arguments;for(var n in this.events[e]){var r=this.events[e][n].apply(this,t);if(this.events[e][n].prototype.once&&delete this.events[e][n],void 0!==r&&!1===r)break}}},one:function(e,t){this.on(e,t),this.events[e][this.events[e].length-1].prototype.once=!0},set:function(e,t,i){var s=e,l=t,c="";if("expirations"==e)return!1;switch(e=a+e,typeof t){case"object":t=JSON.stringify(t),c=o[0];break;case"function":t=t.toString(),c=o[3];break;case"number":t=t.toString(),c=o[2];break;case"boolean":t=t.toString(),c=o[4];break;default:c=o[1]}for(var f=0;f<o.length;f++)if(r.getItem(e+o[f])){r.removeItem(e+o[f]);break}try{r.setItem(e+c,t)}catch(e){e&&e.message&&"QuotaExceededError"==e.message?n():u.useMemory(!0)}i&&u.expireKey(s,i),this.trigger("valuechange",s,l,i)},get:function(e){var t,n=e;e=a+e;for(var i=0;i<o.length;i++)if(r.getItem(e+o[i])){if(u.isExpired(n))return void r.removeItem(e+o[i]);switch(o[i]){case o[0]:t=JSON.parse(r.getItem(e+o[i]));break;case o[1]:t=r.getItem(e+o[i]);break;case o[2]:t=parseFloat(r.getItem(e+o[i]));break;case o[3]:t=new Function(r.getItem(e+o[i]));break;case o[4]:t=JSON.parse(r.getItem(e+o[i]))}break}return"undefined"==t||null==t?void 0:"true"==t||"false"!=t&&t},remove:function(e){var t=e;e=a+e;for(var n=0;n<o.length;n++)r.getItem(e+o[n])&&r.removeItem(e+o[n]);this.trigger("valuedelete",t)},group:function(e){if(null==e)return a?a.substring(0,a.length-1):"";!1===e&&(a=""),a=e+"_",this.trigger("groupchange",a)},isGroup:function(e){var t=r;for(var n in t)if(0===n.indexOf(e))return!0;return!1},renameGroup:function(e,t,n){var i=e+"_"||a,o={async:(n=n||{}).async||!1,callback:n.callback||!1},s=Object.keys?Object.keys(r):[],u=function(e,t){for(var n in t)t[n]&&t[n].constructor&&t[n].constructor===Object?(e[n]=e[n]||{},arguments.callee(e[n],t[n])):e[n]=t[n];return e}({},r);if(a=t+"_",o.async&&Object.keys)return function(){if(ix>=s.length)return o.callback?o.callback():null;var e=s[ix];0===e.indexOf(i)&&(r.setItem(a+e.substring(i.length),u[e]),delete r[e]),ix++}();for(var l in u)0===l.indexOf(i)&&(r.setItem(a+l.substring(i.length),u[l]),delete r[l]);this.trigger("groupchange",a)},removeGroup:function(e,t){e=e?e+"_":a;var n={async:(t=t||{}).async||!1,callback:t.callback||!1,exclude:t.exclude||!1},i=r,o=Object.keys?Object.keys(r):[],s=0;if(asyncDelete=function(){if(s>=o.length)return n.callback?n.callback():null;var t=o[s],i=!1;if(0===t.indexOf(e)){if(n.exclude)for(var a in n.exclude){var u=e+n.exclude[a];if(0===t.indexOf(u+".")){i=!0;break}}i||r.removeItem(t)}s++,setTimeout(asyncDelete)},n.async&&Object.keys)return asyncDelete();for(var u in i){var l=!1;if(0===u.indexOf(e)){if(n.exclude)for(var c in n.exclude){var f=e+n.exclude[c];if(0===u.indexOf(f+".")){l=!0;break}}l||r.removeItem(u)}}},expireKey:function(e,t){var n=r.getItem("_expirations.json")||!1;try{(n=JSON.parse(n))||(n={})}catch(e){n={}}n[a+e]={in:t,since:(new Date).getTime()},r.setItem("_expirations.json",JSON.stringify(n))},isExpired:function(e){var t=r.getItem("_expirations.json")||!1;if(!t)return!1;try{if(!(t=JSON.parse(t)))return!1}catch(e){return!1}var n=t[a+e]||!1;return!!n&&(new Date).getTime()-n.since>=n.in},getExpiration:function(e){var t=r.getItem("_expirations.json")||!1;if(!t)return!1;try{if(!(t=JSON.parse(t)))return!1}catch(e){return!1}return t[a+e]||!1||!1}};return function(){var e;try{(r=window.localStorage).setItem("test","test"),r.removeItem("test")}catch(t){e=!0}if(e&&(function(){var e=!!navigator.cookieEnabled;return void 0!==navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!=document.cookie.indexOf("testcookie")),!!e}()?n():u.useMemory(!0),u.getKey=u.get,u.setKey=u.set,u.removeKey=u.remove,!e)){var t=r.getItem("_expirations.json")||!1;if(t)try{var i=JSON.parse(t);t=JSON.parse(t);var a=new Date;for(var s in t){var l=t[s]||!1;if(!l)break;if(a.getTime()-l.since>=l.in)for(var c=0;c<o.length;c++)r.getItem(s+o[c])&&(r.removeItem(s+o[c]),delete i[s])}r.setItem("_expirations.json",JSON.stringify(i))}catch(e){}}}(),u})),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("pitApp",["require","exports","angularAnimate","angular"],e)}((function(e,t){var n=e("angular");return function(t,r,i){var o=!1,a=this,s={stack:{},ready:{bootstrap:!1},on:function(e,t){this.ready[e]?t():(this.stack[e]||(this.stack[e]=[]),this.stack[e].push(t))},trigger:function(e){if(this.stack[e])for(var t in this.stack[e]){var n=this.stack[e][t];try{n()}catch(e){}}this.ready[e]||(this.ready[e]=!0)}};this.eventBind=function(e,t){s.on(e,t)},this.eventTrigger=function(e){s.trigger(e)};var u={};this.data=function(e,t){return t?("delete"==t?delete u[e]:u[e]=t,a):!!u[e]&&u[e]};var l={},c={};this.registerScope=function(e,t,r){if(l[e]={scope:t,args:r||[]},c[e])for(var i in c[e])c[e][i]&&n.isFunction(c[e][i])&&(c[e][i].apply(l[e].scope,l[e].args),c[e][i].prototype.once&&delete c[e][i])},this.whenScope=function(e,t,n){c[e]||(c[e]=[]),n&&(t.prototype.once=!0),c[e].indexOf(t)<0&&c[e].push(t)},this.forScope=function(e,t){if(l[e])try{l[e].scope.$applyAsync((function(){t.apply(l[e].scope,l[e].args)}))}catch(t){console.log("$scope "+e+" not available, action ignored."),console.log(t)}else console.log("$scope "+e+" not available, action ignored.")},this.offScope=function(e,t){t?c[e]&&c[e].indexOf(t)>-1&&c[e].splice(c[e].indexOf(t),1):c[e]&&delete c[e]},this.scopeApply=function(e,t){t||(t=function(){}),e.$applyAsync((function(){t.call(e)}))},this.moduleLoad=null,this.pageInjector=null,this.register=null,this.bootstrap=null,this.angular=n.module(t,r.concat(["ngAnimate"])),this.angular.factory("$locationParams",(function(){var e,t;return{params:{get from_url(){return e},get to_url(){return t}},setParams:function(n,r){e=r,t=n}}})).run(["$rootScope","$templateCache","$q","$http","$injector",function(t,r,i,o,s){a.moduleLoad=function(t,i){var o={js:(i=i||{}).js||"js/modules/"+t,html:void 0!==i.html?i.html:"views/modules/"+t,css:void 0!==i.css?i.css:"css/modules/"+t,success:i.success||n.noop,failed:i.failed||n.noop,skiptemplatecache:i.skiptemplatecache||!1},a={css:!1,html:!1,js:!1,ctrl:null},s=t+".mode",u=function(e){n.extend(a,e),a.js&&a.css&&a.html&&(o.html?l(o.skiptemplatecache||r.get(s)?s:null,a.ctrl,o.skiptemplatecache?e.htmltpl:null):l(a.ctrl))},l=o.success||n.noop,c=o.failed||n.noop,f=function(){var t=o.html;t.indexOf(".html")!==t.length-5&&(t+=".html");var n=requirejs.s.contexts._.config;(n.map["*"]&&n.map["*"][o.html]||n.paths[o.html])&&!e.specified("text!"+t)&&(t=o.html),e(["text!"+t],(function(e){o.skiptemplatecache||r.put(s,e),u({html:!0,htmltpl:o.skiptemplatecache?e:null})}),(function(e){u({html:!0}),console.error(e)}))};e([o.js],(function(e){u({js:!0,ctrl:e||null}),r.get(s)&&!o.skiptemplatecache||!o.html?u({html:!0}):f()}),(function(e){console.error(e),c(e.xhr)})),o.css?e(["css!"+o.css],(function(e){u({css:!0})}),(function(e){u({css:!0})})):u({css:!0})},a.pageInjector=s}]).config(["$controllerProvider","$compileProvider","$filterProvider","$animateProvider","$provide",function(e,t,n,r,i){a.register={controller:function(t,n){var r=n;return e.register(t,r),a},directive:function(e,n){return t.directive(e,n),a},filter:function(e,t){return n.register(e,t),a},factory:function(e,t){return i.factory(e,t),a},service:function(e,t){return i.service(e,t),a},constant:function(e,t){return i.constant(e,t),a},value:function(e,t){return i.value(e,t),a},animation:function(e,t){return r.register(e,t),a},provider:function(e,t){return i.provider(e,t),a}}}]).config(["$animateProvider",function(e){e.classNameFilter(/ng-animate-enabled/)}]),a.bootstrap=function(){o||(n.bootstrap(document,[t]),s.trigger("bootstrap"),o=!0)},i||o||a.bootstrap()}}));var v,q=window.location.search;"?"==q.charAt(0)&&(q=q.substring(1)),v=null==(v=q.match(/(?:^|&)v=([^&]+)/))?"0":v[1],v="13",define("stApp",["require","pitApp","ith-cc-tplModel-v"+v,"page","cookie-helper","jquery","jquery.vclick","angular","angularJqEv","angularExtras","angularInView","angularMustache","angularAdView","angularSanitize","pitLS"],(function(e,t,n){var r=e("angular"),i=new t("searchTools",["hmTouchEvents","ngAnimate","extra","angular-inview","ngMustache","ngAdView","ngSanitize"],!0),o=e("jquery"),a=e("cookie-helper"),s=e("page"),u=e("pitLS");i.angular.directive("removeClass",(function(){return{restrict:"A",link:function(e,t,n){t.removeClass(n.removeClass)}}})),i.angular.factory("$stService",["$injector",function(e){function t(e,t){o?i.forEach((function(n){n(e,t)})):l.push({name:e,value:t})}var n=[],r=[],i=[],o=!1,l=[],c=[],f=u.group();u.group("mw");var d=a.is_logged_in()&&u.get("has-sess")&&u.get("full"),p={standing:null,score:null};d&&(u.get("vs")&&(p.score=u.get("vs"),"null"===p.score&&(p.score=null)),u.get("crd")&&(p.standing=u.get("crd"),"null"===p.standing&&(p.standing=null)),u.get("logout_group_id")&&(p.group=u.get("logout_group_id"))),u.group(f),"Thinfile"==p.standing?p={standing:null,score:null,thinfile:!0}:["Invalid","FileSuppressed","InvalidVendorRequest","Thinfile","OutOfRange","Deceased"].indexOf(p.standing)>-1&&(p={standing:null,score:null,invalid:!0});var h="filters"in s&&null!=s.filters&&"mc"in s.filters&&null!=s.filters.mc,m=null,v=null;return d&&null!=p.standing&&null!=p.score&&(m=p.standing,v=p.score),"ao_mc_override"in s&&(m=s.ao_mc_override,v=4),{setIntro:function(e){n.forEach((function(t){t(e)}))},onIntroChange:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}},setControllerReady:function(e){r.forEach((function(t){t(e)}))},onControllerLoaded:function(e){return r.push(e),function(){var t=r.indexOf(e);r.splice(t,1)}},setFilter:t,onFiltersSet:function(e){return i.push(e),function(){var t=i.indexOf(e);i.splice(t,1)}},ccFiltersReady:function(){o=!0,l.forEach((function(e){t(e.name,e.value)})),l=[]},showCreditPopup:function(e){c.forEach((function(t){t(e)}))},onCreditPopup:function(e){return c.push(e),function(){var t=c.indexOf(e);c.splice(t,1)}},get loggedInData(){return p},get isSessionActive(){return d},get hasCreditFilter(){return h},get myStanding(){return m},get myScore(){return v}}}]),i.angular.directive("ngStFilter",(function(){return{restrict:"A",template:function(e){var t=document.createElement("div"),n=e[0].querySelector("[data-model]");if(e.attr("tabindex",0),n){var r=document.createElement("input"),i=n.innerHTML;t.innerHTML=i;for(var o=0,a=n.attributes.length;o<a;o++){var s=n.attributes[o];0==s.name.indexOf("data-")&&("data-type"==s.name?(r.setAttribute("type",s.value),e.attr("role",s.value)):r.setAttribute(s.name,s.value))}t.insertBefore(r,t.childNodes[0]),e.removeClass("checked")}else t.innerHTML=e[0].innerHTML;return t.innerHTML},link:function(e,t){var n=t[0].querySelector('input[type="radio"],input[type="checkbox"]');if(n){n.setAttribute("tabindex","-1"),n.setAttribute("aria-hidden","true"),t.attr("aria-checked",n.checked.toString()),t.attr("aria-label",t.prop("innerText")),t.children().attr("tabindex","-1"),t.children().attr("aria-hidden","true");var r=!1;e.$watch((function(){r||(r=!0,e.$$postDigest((function(){r=!1,t.attr("aria-checked",n.checked.toString())})))}))}}}})),i.angular.directive("ngRepeatDone",["$timeout",function(e){return{restrict:"A",link:function(t){!0===t.$last&&e((function(){t.$emit("repeat-done")}))}}}]),i.angular.factory("$url",["$rootScope",function(e){var t=!1;return{filters:{},uri:null,previous:null,entry:"system",ignoreChange:function(){t=!0;var n=e.$on("$locationChangeSuccess",(function(){t=!1,n()}))},isIgnored:function(){return t}}}]),i.angular.factory("csrfTokenInterceptor",["$q","$injector",function(e,t){var n=a.get_csrf_token()||a.read("XSRF-TOKEN"),r=a.get_whid();return{request:function(i){if("POST"!=i.method)return i;if(n)return i.headers["X-XSRF-TOKEN"]=n,a.enabled()||(i.headers["X-XSRF-WHID"]=r),i;var o=e.defer();return t.invoke(["$http",function(e){e.get("/sid.php?a=1&cb="+(new Date).getTime()+"&from="+encodeURI(window.location.href),{headers:{"X-Requested-With":"XMLHttpRequest"}}).then((function(e){e.data&&("XSRF-TOKEN"in e.data&&(n=i.headers["X-XSRF-TOKEN"]=e.data["XSRF-TOKEN"]),"__whid"in e.data&&(r=i.headers["X-XSRF-WHID"]=e.data.__whid),i.headers["X-XSRF-RETRY"]="1"),o.resolve(i)}),(function(e){o.reject(e)}))}]),o.promise}}}]),i.angular.config(["$httpProvider",function(e){e.defaults.transformRequest=function(e){return void 0===e?e:o.param(e)},e.interceptors.push("csrfTokenInterceptor"),e.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"}]).config(["$locationProvider","$viewport","$anchorScrollProvider",function(e,t,n){e.html5Mode({enabled:!0}).hashPrefix("!"),t.setBody(r.element().cssSelect("body")),n.disableAutoScrolling()}]).run(["$rootScope","$location","$url","$templateCache","$httpParamSerializer",function(e,t,i,o,a){o.put("cc-template-model",n),e.$on("$locationChangeSuccess",(function(){i.filters={};var n,o=t.search();if("q"in o&&o.q)for(o=o.q.split(/;/g),n=0;n<o.length;n++)o[n]=o[n].split(":"),i.filters[o[n][0]]=o[n][1].split(/,/g);if(i.uri=t.path().replace(/(^\/|\/$)/g,""),window.location.hash.length>2?i.expert=window.location.hash.substring(1).replace(/(^\/|\/$)/g,""):i.expert=null,r.element().cssSelect('.experts-answers .content-part .content[data-slug="'+i.expert+'"]').length<1&&(i.expert=null),!i.isIgnored()){var s="?"+a(t.search());"?"==s&&(s=""),e.$broadcast("$url:changed",i.previous,i.uri+s),i.previous=i.uri+s}})),e.app_loaded=!0,e.isWeb=!0,e.show_ask_overlay=!1}]),i.angular.directive("lazyController",["$controller",function(e){return{restrict:"A",scope:!0,link:function(t,n,r){var i=t.$watch(r.lazyController,(function(o){o&&(n.attr("ng-controller",o),n.data("$Controller",e(o,{$scope:t,$element:n,$attrs:r})),i())}))}}}]),i.angular.controller("SearchToolController",["$scope","$injector",function(e,t){var n=t.get("$stService");e.IntroController=null,e.CommunitySearchController=null,e.CommunitySearchAskFormController=null,e.cardCompareBarController=null,e.cardCompareController=null,e.SearchToolCardsController=null,n.onControllerLoaded((function(t){e.$applyAsync((function(){"IntroController"==t?e.IntroController="IntroController":"CommunitySearchController"==t?e.CommunitySearchController="CommunitySearchController":"CommunitySearchAskFormController"==t?e.CommunitySearchAskFormController="CommunitySearchAskFormController":"SearchToolCardsController"==t?e.SearchToolCardsController="SearchToolCardsController":"cardCompareBarController"==t?e.cardCompareBarController="cardCompareBarController":"cardCompareController"==t&&(e.cardCompareController="cardCompareController")}))})),e.has_no_credit_filter=!1,e.close_credit_popup=function(){e.has_no_credit_filter=!1,r.element().cssSelect("body").removeClass("popup-credit")},e.select_credit=function(t){n.setFilter("mc",t),e.close_credit_popup()};var i=0;r.element(window).on("scroll",(function(){i<5&&(i+=1),e.has_no_credit_filter&&i>1&&e.close_credit_popup()})),n.onCreditPopup((function(t){e.$applyAsync((function(){t&&i<=1&&(e.has_no_credit_filter=!0,r.element().cssSelect("body").addClass("popup-credit"),setTimeout((function(){var e=document.querySelector(".cp-heading");e&&e.focus()}),200))}))})),e.init_page_title=e.pagetitle=f,e.init_page_headline=e.pageheadline=c,e.init_page_intro=d,"filtername"in s&&""!=(s.filtername+"").trim()&&(e.filtername=s.filtername),e.pagebreadcrumbs=[];var o=document.querySelector("[data-header-footer]");o&&!o.innerHTML.length&&(o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true")),n.onIntroChange((function(t){e.$applyAsync((function(){"title"in t&&(e.pagetitle=t.title),"headline"in t&&(e.pageheadline=t.headline),"filtername"in t&&(e.filtername=t.filtername),"breadcrumbs"in t&&(e.pagebreadcrumbs=t.breadcrumbs)}))}))}]);var l=document.querySelector("main >#content");l&&l.setAttribute("data-ng-controller","SearchToolController");var c=r.element().cssSelect(".page-header-pr").text(),f=r.element().cssSelect(".page-header-top h1").text(),d=r.element().cssSelect("[data-ng-html-content=pageintro]").text();return r.element().cssSelect("#custom-searchtools-page").length>0&&(f=r.element().cssSelect(".header-container .left h1").text()),i})),define("stIntro",["require","exports","page","stApp","angular"],(function(e,t){function n(){e(["shortcode-js"],(function(e){var t="https://"+location.host;(o(".pl-rates-div").length||o(".pl-terms-box").length)&&e.SetPrsWidgets(window,t),(o(".cc-mini-box").length||o(".cc-list-buttons").length||o(".cc-editorial-box").length||o(".ct-author-box").length)&&(e.ClearBoxes(),e.SetBoxes(window,t)),o(".cc-trust").length&&(e.ClearCCTrust(),e.SetCCTrust())}),(function(e){console.error(e)}))}var r=e("stApp"),i=e("angular"),o=i.element,a=e("page");r.angular.controller("IntroController",["$scope","$injector",function(e,t){function r(t){e.$applyAsync((function(){"intro"in a&&""!=(a.intro+"").trim()&&(e.pageintro=window.TruncateHTML.truncate(s,window.get_intro_limit()),e.pageintro2=u,setTimeout((function(){t&&window.requestIdleCallback?window.requestIdleCallback(n):n()})))}))}var o=t.get("$stService");e.disclosure_scroll=function(){var e,t=i.element().cssSelect(".mob-disclosure");"block"==t.css("display")?(window.scrollTo(0,t.prop("offsetTop")-50),(e=t.cssSelect("p:last-child")).addClass("yellow"),e[0].focus(),setTimeout((function(){e.removeClass("yellow")}),2e3)):(e=i.element().cssSelect(".sidebar .box:last-child p:last-child"),window.scrollTo(0,e.prop("offsetTop")-20),e.addClass("yellow"),e[0].focus(),setTimeout((function(){e.removeClass("yellow")}),2e3))};var s=a.intro,u=a.intro2?a.intro2:"";i.element(window).on("resize",r),r(!0);var l=o.onIntroChange((function(e){"top"in e&&(s=e.top||""),"btm"in e&&(u=e.btm||""),r()}));e.$on("$destroy",(function(){l(),i.element(window).off("resize",r)})),e.toggleIntro=function(e){var t=i.element(e.target).closest("[data-ng-html-content='pageintro']");t.toggleClass("more");var r=t.hasClass("more"),o=t[0].querySelector("[data-show-more]");o&&(o.setAttribute("aria-hidden",r?"true":"false"),o.setAttribute("tabindex",r?"-1":"0")),t[0].focus(),setTimeout((function(){t[0].focus(),n()}))}}])}));