!function(e){"use strict";var t={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(e){if(!U(e))return t;R(e.objectMaxDepth)&&(t.objectMaxDepth=r(e.objectMaxDepth)?e.objectMaxDepth:NaN),R(e.urlErrorParamsEnabled)&&X(e.urlErrorParamsEnabled)&&(t.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function r(e){return F(e)&&e>0}function i(e,n){n=n||Error;var r="https://errors.angularjs.org/1.8.2/",i=r.replace(".","\\.")+"[\\s\\S]*",o=new RegExp(i,"g");return function(){var i,a,s=arguments[0],u=arguments[1],l="["+(e?e+":":"")+s+"] ",c=de(arguments,2).map((function(e){return Ke(e,t.objectMaxDepth)}));if(l+=u.replace(/\{\d+\}/g,(function(e){var t=+e.slice(1,-1);return t<c.length?c[t].replace(o,""):e})),l+="\n"+r+(e?e+"/":"")+s,t.urlErrorParamsEnabled)for(a=0,i="?";a<c.length;a++,i="&")l+=i+"p"+a+"="+encodeURIComponent(c[a]);return new n(l)}}var o,a,s,u,l=/^\/(.+)\/([a-z]*)$/,c="validity",f=Object.prototype.hasOwnProperty,d=function(e){return H(e)?e.toLowerCase():e},p=function(e){return H(e)?e.toUpperCase():e},h=[].slice,v=[].splice,m=[].push,$=Object.prototype.toString,g=Object.getPrototypeOf,y=i("ng"),b=e.angular||(e.angular={}),w=0;function x(e){if(null==e||J(e))return!1;if(z(e)||H(e)||a&&e instanceof a)return!0;var t="length"in Object(e)&&e.length;return F(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function C(e,t,n){var r,i;if(e)if(G(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(z(e)||x(e)){var o="object"!=typeof e;for(r=0,i=e.length;r<i;r++)(o||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==C)e.forEach(t,n,e);else if(q(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)f.call(e,r)&&t.call(n,e[r],r,e);return e}function S(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 k(e){return function(t,n){e(n,t)}}function A(){return++w}function T(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function E(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(U(a)||G(a))for(var s=Object.keys(a),u=0,l=s.length;u<l;u++){var c=s[u],f=a[c];n&&U(f)?B(f)?e[c]=new Date(f.valueOf()):K(f)?e[c]=new RegExp(f):f.nodeName?e[c]=f.cloneNode(!0):ne(f)?e[c]=f.clone():"__proto__"!==c&&(U(e[c])||(e[c]=z(f)?[]:{}),E(e[c],[f],!0)):e[c]=f}}return T(e,r),e}function O(e){return E(e,h.call(arguments,1),!1)}function M(e){return E(e,h.call(arguments,1),!0)}function D(e){return parseInt(e,10)}o=e.document.documentMode;var j=Number.isNaN||function(e){return e!=e};function I(e,t){return O(Object.create(e),t)}function _(){}function V(e){return e}function N(e){return function(){return e}}function P(e){return G(e.toString)&&e.toString!==$}function L(e){return void 0===e}function R(e){return void 0!==e}function U(e){return null!==e&&"object"==typeof e}function q(e){return null!==e&&"object"==typeof e&&!g(e)}function H(e){return"string"==typeof e}function F(e){return"number"==typeof e}function B(e){return"[object Date]"===$.call(e)}function z(e){return Array.isArray(e)||e instanceof Array}function W(e){switch($.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function G(e){return"function"==typeof e}function K(e){return"[object RegExp]"===$.call(e)}function J(e){return e&&e.window===e}function Y(e){return e&&e.$evalAsync&&e.$watch}function X(e){return"boolean"==typeof e}function Z(e){return e&&G(e.then)}_.$inject=[],V.$inject=[];var Q=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var ee=function(e){return H(e)?e.trim():e},te=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function ne(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function re(e){return d(e.nodeName||e[0]&&e[0].nodeName)}function ie(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function oe(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function ae(e,t,n){var i,o=[],a=[];if(n=r(n)?n:NaN,t){if(function(e){return e&&F(e.length)&&Q.test($.call(e))}(t)||(i=t,"[object ArrayBuffer]"===$.call(i)))throw y("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw y("cpi","Can't copy! Source and destination are identical.");return z(t)?t.length=0:C(t,(function(e,n){"$$hashKey"!==n&&delete t[n]})),o.push(e),a.push(t),s(e,t,n)}return u(e,n);function s(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(z(e))for(var o=0,a=e.length;o<a;o++)t.push(u(e[o],n));else if(q(e))for(r in e)t[r]=u(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=u(e[r],n));else for(r in e)f.call(e,r)&&(t[r]=u(e[r],n));return T(t,i),t}function u(e,t){if(!U(e))return e;var n=o.indexOf(e);if(-1!==n)return a[n];if(J(e)||Y(e))throw y("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=function(e){switch($.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(u(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(G(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===i&&(i=z(e)?[]:Object.create(g(e)),r=!0),o.push(e),a.push(i),r?s(e,i,t):i}}function se(e,t){return e===t||e!=e&&t!=t}function ue(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(!z(e)){if(B(e))return!!B(t)&&se(e.getTime(),t.getTime());if(K(e))return!!K(t)&&e.toString()===t.toString();if(Y(e)||Y(t)||J(e)||J(t)||z(t)||B(t)||K(t))return!1;for(r in i=Ue(),e)if("$"!==r.charAt(0)&&!G(e[r])){if(!ue(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&R(t[r])&&!G(t[r]))return!1;return!0}if(!z(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!ue(e[r],t[r]))return!1;return!0}}return!1}var le=function(){if(!R(le.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");le.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else le.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return le.rules},ce=function(){if(R(ce.name_))return ce.name_;var t,n,r,i,o=Ae.length;for(n=0;n<o;++n)if(r=Ae[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return ce.name_=i};function fe(e,t,n){return e.concat(h.call(t,n))}function de(e,t){return h.call(e,t||0)}function pe(e,t){var n=arguments.length>2?de(arguments,2):[];return!G(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,fe(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function he(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:J(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":Y(n)&&(r="$SCOPE"),r}function ve(e,t){if(!L(e))return F(t)||(t=t?2:null),JSON.stringify(e,he,t)}function me(e){return H(e)?JSON.parse(e):e}var $e=/:/g;function ge(e,t){e=e.replace($e,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return j(n)?t:n}function ye(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function be(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return ye(e,n*(ge(t,r)-r))}function we(e){e=a(e).clone().empty();var t=a("<div></div>").append(e).html();try{return e[0].nodeType===Fe?d(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(e,t){return"<"+d(t)}))}catch(e){return d(t)}}function xe(e){try{return decodeURIComponent(e)}catch(e){}}function Ce(e){var t={};return C((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)),R(r=xe(r))&&(i=!R(i)||xe(i),f.call(t,r)?z(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))})),t}function Se(e){return ke(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ke(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var Ae=["ng-","data-ng-","ng:","x-ng-"];var Te=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);function Ee(t,n){var r,i,o={};if(C(Ae,(function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))})),C(Ae,(function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))})),r){if(!Te)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==function(e,t){var n,r,i=Ae.length;for(r=0;r<i;++r)if(n=Ae[r]+t,H(n=e.getAttribute(n)))return n;return null}(r,"strict-di"),n(r,i?[i]:[],o)}}function Oe(t,n,r){U(r)||(r={});r=O({strictDi:!1},r);var i=function(){if((t=a(t)).injector()){var i=t[0]===e.document?"document":we(t);throw y("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=nn(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},o=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&o.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(o,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),b.resumeBootstrap=function(e){return C(e,(function(e){n.push(e)})),i()},G(b.resumeDeferredBootstrap)&&b.resumeDeferredBootstrap()}function Me(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function De(e){var t=b.element(e).injector();if(!t)throw y("test","no injector found for element argument to getTestability");return t.get("$$testability")}var je=/[A-Z]/g;function Ie(e,t){return t=t||"_",e.replace(je,(function(e,n){return(n?t:"")+e.toLowerCase()}))}var _e=!1;function Ve(){$t.legacyXHTMLReplacement=!0}function Ne(e,t,n){if(!e)throw y("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function Pe(e,t,n){return n&&z(e)&&(e=e[e.length-1]),Ne(G(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 y("badname","hasOwnProperty is not a valid {0} name",t)}function Re(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=a(h.call(e,0,i))),t.push(n));return t||e}function Ue(){return Object.create(null)}function qe(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!P(e)||z(e)||B(e)?ve(e):e.toString()}return e}var He=1,Fe=3,Be=8,ze=9,We=11;function Ge(e,t){if(z(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(U(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function Ke(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):L(e)?"undefined":"string"!=typeof e?function(e,t){var n=[];return r(t)&&(e=b.copy(e,null,t)),JSON.stringify(e,(function(e,t){if(U(t=he(e,t))){if(n.indexOf(t)>=0)return"...";n.push(t)}return t}))}(e,t):e}var Je={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};$t.expando="ng339";var Ye=$t.cache={},Xe=1;$t._data=function(e){return this.cache[e[this.expando]]||{}};var Ze=/-([a-z])/g,Qe=/^-ms-/,et={mouseleave:"mouseout",mouseenter:"mouseover"},tt=i("jqLite");function nt(e,t){return t.toUpperCase()}function rt(e){return e.replace(Ze,nt)}var it=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ot=/<|&#?\w+;/,at=/<([\w:-]+)/,st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ut={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};ut.tbody=ut.tfoot=ut.colgroup=ut.caption=ut.thead,ut.th=ut.td;var lt={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var ct in ut){var ft=ut[ct],dt=ft.slice().reverse();lt[ct]=[dt.length,"<"+dt.join("><")+">","</"+ft.join("></")+">"]}function pt(e){return!ot.test(e)}function ht(e){var t=e.nodeType;return t===He||!t||t===ze}function vt(t,n){var r,i,a,s,u,l=n.createDocumentFragment(),c=[];if(pt(t))c.push(n.createTextNode(t));else{if(r=l.appendChild(n.createElement("div")),i=(at.exec(t)||["",""])[1].toLowerCase(),s=$t.legacyXHTMLReplacement?t.replace(st,"<$1></$2>"):t,o<10)for(a=lt[i]||lt._default,r.innerHTML=a[1]+s+a[2],u=a[0];u--;)r=r.firstChild;else{for(u=(a=ut[i]||[]).length;--u>-1;)r.appendChild(e.document.createElement(a[u])),r=r.firstChild;r.innerHTML=s}c=fe(c,r.childNodes),(r=l.firstChild).textContent=""}return l.textContent="",l.innerHTML="",C(c,(function(e){l.appendChild(e)})),l}lt.optgroup=lt.option;var mt=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function $t(t){if(t instanceof $t)return t;var n,r,i,o;if(H(t)&&(t=ee(t),n=!0),!(this instanceof $t)){if(n&&"<"!==t.charAt(0))throw tt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new $t(t)}n?Ot(this,(r=t,i=i||e.document,(o=it.exec(r))?[i.createElement(o[1])]:(o=vt(r,i))?o.childNodes:[])):G(t)?_t(t):Ot(this,t)}function gt(e){return e.cloneNode(!0)}function yt(e,t){!t&&ht(e)&&a.cleanData([e]),e.querySelectorAll&&a.cleanData(e.querySelectorAll("*"))}function bt(e){var t;for(t in e)return!1;return!0}function wt(e){var t=e.ng339,n=t&&Ye[t],r=n&&n.events,i=n&&n.data;i&&!bt(i)||r&&!bt(r)||(delete Ye[t],e.ng339=void 0)}function xt(e,t,n,r){if(R(r))throw tt("offargs","jqLite#off() does not support the `selector` argument");var i=St(e),o=i&&i.events,a=i&&i.handle;if(a){if(t){var s=function(t){var r=o[t];R(n)&&oe(r||[],n),R(n)&&r&&r.length>0||(e.removeEventListener(t,a),delete o[t])};C(t.split(" "),(function(e){s(e),et[e]&&s(et[e])}))}else for(t in o)"$destroy"!==t&&e.removeEventListener(t,a),delete o[t];wt(e)}}function Ct(e,t){var n=e.ng339,r=n&&Ye[n];r&&(t?delete r.data[t]:r.data={},wt(e))}function St(e,t){var n=e.ng339,r=n&&Ye[n];return t&&!r&&(e.ng339=n=++Xe,r=Ye[n]={events:{},data:{},handle:void 0}),r}function kt(e,t,n){if(ht(e)){var r,i=R(n),o=!i&&t&&!U(t),a=!t,s=St(e,!o),u=s&&s.data;if(i)u[rt(t)]=n;else{if(a)return u;if(o)return u&&u[rt(t)];for(r in t)u[rt(r)]=t[r]}}}function At(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Tt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;C(t.split(" "),(function(e){e=ee(e),r=r.replace(" "+e+" "," ")})),r!==n&&e.setAttribute("class",ee(r))}}function Et(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;C(t.split(" "),(function(e){e=ee(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")})),r!==n&&e.setAttribute("class",ee(r))}}function Ot(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 Mt(e,t){return Dt(e,"$"+(t||"ngController")+"Controller")}function Dt(e,t,n){e.nodeType===ze&&(e=e.documentElement);for(var r=z(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(R(n=a.data(e,r[i])))return n;e=e.parentNode||e.nodeType===We&&e.host}}function jt(e){for(yt(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function It(e,t){t||yt(e);var n=e.parentNode;n&&n.removeChild(e)}function _t(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))}var Vt=$t.prototype={ready:_t,toString:function(){var e=[];return C(this,(function(t){e.push(""+t)})),"["+e.join(", ")+"]"},eq:function(e){return a(e>=0?this[e]:this[this.length+e])},length:0,push:m,sort:[].sort,splice:[].splice},Nt={};C("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(e){Nt[d(e)]=e}));var Pt={};C("input,select,option,textarea,button,form,details".split(","),(function(e){Pt[e]=!0}));var Lt={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function Rt(e,t){var n=Nt[t.toLowerCase()];return n&&Pt[re(e)]&&n}function Ut(e,t,n){n.call(e,t)}function qt(e,t,n){var r=t.relatedTarget;r&&(r===e||mt.call(e,r))||n.call(e,t)}function Ht(){this.$get=function(){return O($t,{hasClass:function(e,t){return e.attr&&(e=e[0]),At(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Et(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Tt(e,t)}})}}function Ft(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||A)():r+":"+e}C({data:kt,removeData:Ct,hasData:function(e){for(var t in Ye[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)Ct(e[t]),xt(e[t])}},(function(e,t){$t[t]=e})),C({data:kt,inheritedData:Dt,scope:function(e){return a.data(e,"$scope")||Dt(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return a.data(e,"$isolateScope")||a.data(e,"$isolateScopeNoTemplate")},controller:Mt,injector:function(e){return Dt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:At,css:function(e,t,n){if(t=function(e){return rt(e.replace(Qe,"ms-"))}(t),!R(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==Fe&&2!==i&&i!==Be&&e.getAttribute){var o=d(t),a=Nt[o];if(!R(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(!R(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(L(t)){var n=e.nodeType;return n===He||n===Fe?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(L(t)){if(e.multiple&&"select"===re(e)){var n=[];return C(e.options,(function(e){e.selected&&n.push(e.value||e.text)})),n}return e.value}e.value=t},html:function(e,t){if(L(t))return e.innerHTML;yt(e,!0),e.innerHTML=t},empty:jt},(function(e,t){$t.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==jt&&L(2===e.length&&e!==At&&e!==Mt?t:n)){if(U(t)){for(r=0;r<o;r++)if(e===kt)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=L(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}})),C({removeData:Ct,on:function(e,t,n,r){if(R(r))throw tt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ht(e)){var i=St(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(L(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||Ut;o>1&&(i=Ge(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],et[t]?(l(et[t],qt),l(t,void 0,!0)):l(t)}},off:xt,one:function(e,t,n){(e=a(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;yt(e),C(new $t(t),(function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t}))},children:function(e){var t=[];return C(e.childNodes,(function(e){e.nodeType===He&&t.push(e)})),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===He||n===We)for(var r=0,i=(t=new $t(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(e,t){if(e.nodeType===He){var n=e.firstChild;C(new $t(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,a(t).eq(0).clone()[0])},remove:It,detach:function(e){It(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new $t(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Et,removeClass:Tt,toggleClass:function(e,t,n){t&&C(t.split(" "),(function(t){var r=n;L(r)&&(r=!At(e,t)),(r?Et:Tt)(e,t)}))},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==We?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:gt,triggerHandler:function(e,t,n){var r,i,o,a=t.type||t,s=St(e),u=s&&s.events,l=u&&u[a];l&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:_,type:a,target:e},t.type&&(r=O(r,t)),i=Ge(l),o=n?[r].concat(n):[r],C(i,(function(t){r.isImmediatePropagationStopped()||t.apply(e,o)})))}},(function(e,t){$t.prototype[t]=function(t,n,r){for(var i,o=0,s=this.length;o<s;o++)L(i)?R(i=e(this[o],t,n,r))&&(i=a(i)):Ot(i,e(this[o],t,n,r));return R(i)?i:this}})),$t.prototype.bind=$t.prototype.on,$t.prototype.unbind=$t.prototype.off;var Bt=Object.create(null);function zt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}zt.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return j(e)?Bt: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 Wt=zt,Gt=[function(){this.$get=[function(){return Wt}]}],Kt=/^([^(]+?)=>/,Jt=/^[^(]*\(\s*([^)]*)\)/m,Yt=/,/,Xt=/^\s*(_?)(\S+?)\1\s*$/,Zt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Qt=i("$injector");function en(e){return Function.prototype.toString.call(e)}function tn(e){var t=en(e).replace(Zt,"");return t.match(Kt)||t.match(Jt)}function nn(e,t){t=!0===t;var n={},r="Provider",i=[],a=new Wt,s={$provide:{provider:h(v),factory:h($),service:h((function(e,t){return $(e,["$injector",function(e){return e.instantiate(t)}])})),value:h((function(e,t){return $(e,N(t),!1)})),constant:h((function(e,t){Le(e,"constant"),s[e]=t,c[e]=t})),decorator:function(e,t){var n=l.get(e+r),i=n.$get;n.$get=function(){var e=d.invoke(i,n);return d.invoke(t,null,{$delegate:e})}}}},l=s.$injector=y(s,(function(e,t){throw b.isString(t)&&i.push(t),Qt("unpr","Unknown provider: {0}",i.join(" <- "))})),c={},f=y(c,(function(e,t){var n=l.get(e+r,t);return d.invoke(n.$get,n,void 0,e)})),d=f;s["$injector"+r]={$get:N(f)},d.modules=l.modules=Ue();var p=g(e);return(d=f.get("$injector")).strictDi=t,C(p,(function(e){e&&d.invoke(e)})),d.loadNewModules=function(e){C(g(e),(function(e){e&&d.invoke(e)}))},d;function h(e){return function(t,n){if(!U(t))return e(t,n);C(t,k(e))}}function v(e,t){if(Le(e,"service"),(G(t)||z(t))&&(t=l.instantiate(t)),!t.$get)throw Qt("pget","Provider '{0}' must define $get factory method.",e);return s[e+r]=t}function m(e,t){return function(){var n=d.invoke(t,this);if(L(n))throw Qt("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function $(e,t,n){return v(e,{$get:!1!==n?m(e,t):t})}function g(e){Ne(L(e)||z(e),"modulesToLoad","not an array");var t,n=[];return C(e,(function(e){if(!a.get(e)){a.set(e,!0);try{H(e)?(t=u(e),d.modules[e]=t,n=n.concat(g(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):G(e)||z(e)?n.push(l.invoke(e)):Pe(e,"module")}catch(t){throw z(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Qt("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=l.get(r[0]);i[r[1]].apply(i,r[2])}}})),n}function y(e,a){function u(t,r){if(e.hasOwnProperty(t)){if(e[t]===n)throw Qt("cdep","Circular dependency found: {0}",t+" <- "+i.join(" <- "));return e[t]}try{return i.unshift(t),e[t]=n,e[t]=a(t,r),e[t]}catch(r){throw e[t]===n&&delete e[t],r}finally{i.shift()}}function l(e,n,r){for(var i=[],o=nn.$$annotate(e,t,r),a=0,s=o.length;a<s;a++){var l=o[a];if("string"!=typeof l)throw Qt("itkn","Incorrect injection token! Expected service name as string, got {0}",l);i.push(n&&n.hasOwnProperty(l)?n[l]:u(l,r))}return i}return{invoke:function(e,t,n,r){"string"==typeof n&&(r=n,n=null);var i=l(e,n,r);return z(e)&&(e=e[e.length-1]),function(e){if(o||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return X(t)||(t=e.$$ngIsClass=/^class\b/.test(en(e))),t}(e)?(i.unshift(null),new(Function.prototype.bind.apply(e,i))):e.apply(t,i)},instantiate:function(e,t,n){var r=z(e)?e[e.length-1]:e,i=l(e,t,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:u,annotate:nn.$$annotate,has:function(t){return s.hasOwnProperty(t+r)||e.hasOwnProperty(t)}}}}function rn(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function s(e){if(e){e.scrollIntoView();var t=function(){var e=u.yOffset;if(G(e))e=e();else if(ne(e)){var t=e[0];e="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else F(e)||(e=0);return e}();if(t){var r=e.getBoundingClientRect().top;n.scrollBy(0,r-t)}}else n.scrollTo(0,0)}function u(e){var t,n,i;(e=H(e)?e:F(e)?e.toString():r.hash())?(t=o.getElementById(e))?s(t):(n=o.getElementsByName(e),i=null,Array.prototype.some.call(n,(function(e){if("a"===re(e))return i=e,!0})),(t=i)?s(t):"top"===e&&s(null)):s(null)}return t&&i.$watch((function(){return r.hash()}),(function(t,n){var r,o;t===n&&""===t||(r=function(){i.$evalAsync(u)},"complete"===(o=o||e).document.readyState?o.setTimeout(r):a(o).on("load",r))})),u}]}nn.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw H(n)&&n||(n=e.name||function(e){var t=tn(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Qt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);C(tn(e)[1].split(Yt),(function(e){e.replace(Xt,(function(e,t,n){r.push(n)}))}))}e.$inject=r}}else z(e)?(Pe(e[i=e.length-1],"fn"),r=e.slice(0,i)):Pe(e,"fn",!0);return r};var on=i("$animate"),an="ng-animate";function sn(e,t){return e||t?e?t?(z(e)&&(e=e.join(" ")),z(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function un(e){return U(e)?e:{}}var ln=function(){this.$get=_},cn=function(){var e=new Wt,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:_,on:_,off:_,pin:_,push:function(a,s,u,l){l&&l(),(u=u||{}).from&&a.css(u.from),u.to&&a.css(u.to),(u.addClass||u.removeClass)&&function(n,a,s){var u=e.get(n)||{},l=i(u,a,!0),c=i(u,s,!1);(l||c)&&(e.set(n,u),t.push(n),1===t.length&&r.$$postDigest(o))}(a,u.addClass,u.removeClass);var c=new n;return c.complete(),c}};function i(e,t,n){var r=!1;return t&&C(t=H(t)?t.split(" "):z(t)?t:[],(function(t){t&&(r=!0,e[t]=n)})),r}function o(){C(t,(function(t){var n=e.get(t);if(n){var r=function(e){H(e)&&(e=e.split(" "));var t=Ue();return C(e,(function(e){e.length&&(t[e]=!0)})),t}(t.attr("class")),i="",o="";C(n,(function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:o+=(o.length?" ":"")+t)})),C(t,(function(e){i&&Et(e,i),o&&Tt(e,o)})),e.delete(t)}})),t.length=0}}]},fn=["$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 on("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=G(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&((n=e instanceof RegExp?e:null)&&new RegExp("[(\\s|\\/)]"+an+"[(\\s|\\/)]").test(n.toString())))throw n=null,on("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',an);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(1===n.nodeType)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&&a(r),i=i&&a(i),t(n,r=r||i.parent(),i),e.push(n,"enter",un(o))},move:function(n,r,i,o){return r=r&&a(r),i=i&&a(i),t(n,r=r||i.parent(),i),e.push(n,"move",un(o))},leave:function(t,n){return e.push(t,"leave",un(n),(function(){t.remove()}))},addClass:function(t,n,r){return(r=un(r)).addClass=sn(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return(r=un(r)).removeClass=sn(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return(i=un(i)).addClass=sn(i.addClass,n),i.removeClass=sn(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return(o=un(o)).from=o.from?O(o.from,n):n,o.to=o.to?O(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=sn(o.tempClasses,i),e.push(t,"animate",o)}}}]}],dn=function(){this.$get=["$$rAF",function(e){var t=[];function n(n){t.push(n),t.length>1||e((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var e=!1;return n((function(){e=!0})),function(t){e?t():n(t)}}}]},pn=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function o(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 o.chain=function(e,t){var n=0;!function r(){if(n===e.length)return void t(!0);e[n]((function(e){!1!==e?(n++,r()):t(!1)}))}()},o.all=function(e,t){var n=0,r=!0;function i(i){r=r&&i,++n===e.length&&t(r)}C(e,(function(e){e.done(i)}))},o.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:_,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&&(C(this._doneCallbacks,(function(t){t(e)})),this._doneCallbacks.length=0,this._state=2)}},o}]},hn=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){var i=r||{};i.$$prepared||(i=ae(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(t.css(i.from),i.from=null);var o,a=new n;return{start:s,end:s};function s(){return e((function(){!function(){i.addClass&&(t.addClass(i.addClass),i.addClass=null);i.removeClass&&(t.removeClass(i.removeClass),i.removeClass=null);i.to&&(t.css(i.to),i.to=null)}(),o||a.complete(),o=!0})),a}}}]};function vn(e,t,n,r,i){var o=this,s=e.location,u=e.history,l=e.setTimeout,c=e.clearTimeout,f={},d=i(n);o.isMock=!1,o.$$completeOutstandingRequest=d.completeTask,o.$$incOutstandingRequestCount=d.incTaskCount,o.notifyWhenNoOutstandingRequests=d.notifyWhenNoPendingTasks;var p,h,v=s.href,m=t.find("base"),$=null,g=r.history?function(){try{return u.state}catch(e){}}:_;S(),o.url=function(t,n,i){if(L(i)&&(i=null),s!==e.location&&(s=e.location),u!==e.history&&(u=e.history),t){var a=h===i;if(t=$i(t).href,v===t&&(!r.history||a))return o;var l=v&&hr(v)===hr(t);return v=t,h=i,!r.history||l&&a?(l||($=t),n?s.replace(t):l?s.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):s.href=t,s.href!==t&&($=t)):(u[n?"replaceState":"pushState"](i,"",t),S()),$&&($=t),o}return function(e){return e.replace(/#$/,"")}($||s.href)},o.state=function(){return p};var y=[],b=!1;function w(){$=null,k()}var x=null;function S(){ue(p=L(p=g())?null:p,x)&&(p=x),x=p,h=p}function k(){var e=h;S(),v===o.url()&&e===p||(v=o.url(),h=p,C(y,(function(e){e(o.url(),p)})))}o.onUrlChange=function(t){return b||(r.history&&a(e).on("popstate",w),a(e).on("hashchange",w),b=!0),y.push(t),t},o.$$applicationDestroyed=function(){a(e).off("hashchange popstate",w)},o.$$checkUrlChange=k,o.baseHref=function(){var e=m.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},o.defer=function(e,t,n){var r;return t=t||0,n=n||d.DEFAULT_TASK_TYPE,d.incTaskCount(n),r=l((function(){delete f[r],d.completeTask(e,n)}),t),f[r]=n,r},o.defer.cancel=function(e){if(f.hasOwnProperty(e)){var t=f[e];return delete f[e],c(e),d.completeTask(_,t),!0}return!1}}function mn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new vn(e,r,t,n,i)}]}function $n(){this.$get=function(){var e={};function t(t,n){if(t in e)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var r=0,o=O({},n,{id:t}),a=Ue(),s=n&&n.capacity||Number.MAX_VALUE,u=Ue(),l=null,c=null;return e[t]={put:function(e,t){if(!L(t)){if(s<Number.MAX_VALUE)f(u[e]||(u[e]={key:e}));return e in a||r++,a[e]=t,r>s&&this.remove(c.key),t}},get:function(e){if(s<Number.MAX_VALUE){var t=u[e];if(!t)return;f(t)}return a[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=u[e];if(!t)return;t===l&&(l=t.p),t===c&&(c=t.n),d(t.n,t.p),delete u[e]}e in a&&(delete a[e],r--)},removeAll:function(){a=Ue(),r=0,u=Ue(),l=c=null},destroy:function(){a=null,o=null,u=null,delete e[t]},info:function(){return O({},o,{size:r})}};function f(e){e!==l&&(c?c===e&&(c=e.n):c=e,d(e.n,e.p),d(e,l),(l=e).n=null)}function d(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}}return t.info=function(){var t={};return C(e,(function(e,n){t[n]=e.info()})),t},t.get=function(t){return e[t]},t}}function gn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var yn=i("$compile");var bn=new function(){};function wn(t,n){var r={},i="Directive",s=/^\s*directive:\s*([\w-]+)\s+(.*)$/,u=/(([\w-]+)(?::([^;]+))?;?)/,l=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"),c=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,p=/^(on[a-z]+|formaction)$/,h=Ue();function v(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Ue();return C(e,(function(e,o){if((e=e.trim())in h)i[o]=h[e];else{var a=e.match(r);if(!a)throw yn("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]&&(h[e]=i[o])}})),i}function m(e,t){var n={isolateScope:null,bindToController:null};if(U(e.scope)&&(!0===e.bindToController?(n.bindToController=v(e.scope,t,!0),n.isolateScope={}):n.isolateScope=v(e.scope,t,!1)),U(e.bindToController)&&(n.bindToController=v(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw yn("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function e(n,o){return Ne(n,"name"),Le(n,"directive"),H(n)?(!function(e){var t=e.charAt(0);if(!t||t!==d(t))throw yn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw yn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(n),Ne(o,"directiveFactory"),r.hasOwnProperty(n)||(r[n]=[],t.factory(n+i,["$injector","$exceptionHandler",function(e,t){var i=[];return C(r[n],(function(r,o){try{var a=e.invoke(r);G(a)?a={compile:N(a)}:!a.compile&&a.link&&(a.compile=N(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=function(e){var t=e.require||e.controller&&e.name;return!z(t)&&U(t)&&C(t,(function(e,n){var r=e.match(c);e.substring(r[0].length)||(t[n]=r[0]+n)})),t}(a),a.restrict=function(e,t){if(e&&(!H(e)||!/[EACM]/.test(e)))throw yn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(a.restrict,n),a.$$moduleName=r.$$moduleName,i.push(a)}catch(e){t(e)}})),i}])),r[n].push(o)):C(n,k(e)),this},this.component=function e(t,n){if(!H(t))return C(t,k(pe(this,e))),this;var r=n.controller||function(){};function i(e){function t(t){return G(t)||z(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=n.template||n.templateUrl?n.template:"",o={controller:r,controllerAs:Mn(n.controller)||n.controllerAs||"$ctrl",template:t(i),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return C(n,(function(e,t){"$"===t.charAt(0)&&(o[t]=e)})),o}return C(n,(function(e,t){"$"===t.charAt(0)&&(i[t]=e,G(r)&&(r[t]=e))})),i.$inject=["$injector"],this.directive(t,i)},this.aHrefSanitizationTrustedUrlList=function(e){return R(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 R(e)?(n.imgSrcSanitizationTrustedUrlList(e),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}});var g=!0;this.debugInfoEnabled=function(e){return R(e)?(g=e,this):g};var y=!1;this.strictComponentBindingsEnabled=function(e){return R(e)?(y=e,this):y};var b=10;this.onChangesTtl=function(e){return arguments.length?(b=e,this):b};var w=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(w=e,this):w};var x=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(x=e,this):x};var S=Ue();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in S&&S[r]!==n)throw yn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,S[r],n);return S[r]=n,this},function(){function e(e,t){C(t,(function(t){S[t.toLowerCase()]=e}))}e(Qr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(Qr.CSS,["*|style"]),e(Qr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(Qr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(Qr.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,h,v,k,A,T,E,M){var D,j=/^\w/,N=e.document.createElement("div"),P=w,R=x,q=b;function F(){try{if(! --q)throw D=void 0,yn("infchng","{0} $onChanges() iterations reached. Aborting!\n",b);T.$apply((function(){for(var e=0,t=D.length;e<t;++e)try{D[e]()}catch(e){h(e)}D=void 0}))}finally{q++}}function B(e,t){if(!e)return e;if(!H(e))throw yn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=ee(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+=E.getTrustedMediaUrl(ee(o[u])),n+=" "+ee(o[u+1])}var l=ee(o[2*s]).split(/\s/);return n+=E.getTrustedMediaUrl(ee(l[0])),2===l.length&&(n+=" "+ee(l[1])),n}function K(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 J(e,t){try{e.addClass(t)}catch(e){}}K.prototype={$normalize:kn,$addClass:function(e){e&&e.length>0&&M.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&M.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=An(e,t);n&&n.length&&M.addClass(this.$$element,n);var r=An(t,e);r&&r.length&&M.removeClass(this.$$element,r)},$set:function(e,t,n,r){var i=Rt(this.$$element[0],e),o=Lt[e],a=e;i?(this.$$element.prop(e,t),r=i):o&&(this[o]=t,a=o),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=Ie(e,"-")),"img"===re(this.$$element)&&"srcset"===e&&(this[e]=t=B(t,"$set('srcset', value)")),!1!==n&&(null===t||L(t)?this.$$element.removeAttr(r):j.test(r)?i&&!1===t?this.$$element.removeAttr(r):this.$$element.attr(r,t):function(e,t,n){N.innerHTML="<span "+t+">";var r=N.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}(this.$$element[0],r,t));var s=this.$$observers;s&&C(s[a],(function(e){try{e(t)}catch(e){h(e)}}))},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=Ue()),i=r[e]||(r[e]=[]);return i.push(t),T.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(e)||L(n[e])||t(n[e])})),function(){oe(i,t)}}};var Z=n.startSymbol(),Q=n.endSymbol(),te="{{"===Z&&"}}"===Q?V:function(e){return e.replace(/\{\{/g,Z).replace(/}}/g,Q)},ne=/^ng(Attr|Prop|On)([A-Z].*)$/,ie=/^(.+)Start$/;return ae.$$addBindingInfo=g?function(e,t){var n=e.data("$binding")||[];z(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:_,ae.$$addBindingClass=g?function(e){J(e,"ng-binding")}:_,ae.$$addScopeInfo=g?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:_,ae.$$addScopeClass=g?function(e,t){J(e,t?"ng-isolate-scope":"ng-scope")}:_,ae.$$createComment=function(t,n){var r="";return g&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},ae;function ae(e,t,n,r,i){e instanceof a||(e=a(e));var o=le(e,t,e,n,r,i);ae.$$addScopeClass(e);var s=null;return function(t,n,r){if(!e)throw yn("multilink","This element has already been linked.");Ne(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var u,l,c,f=(r=r||{}).parentBoundTranscludeFn,d=r.transcludeControllers,p=r.futureParentElement;if(f&&f.$$boundTransclude&&(f=f.$$boundTransclude),s||(l=(u=p)&&u[0],s=l&&"foreignobject"!==re(l)&&$.call(l).match(/SVG/)?"svg":"html"),c="html"!==s?a(Ee(s,a("<div></div>").append(e).html())):n?Vt.clone.call(e):e,d)for(var h in d)c.data("$"+h+"Controller",d[h].instance);return ae.$$addScopeInfo(c,t),n&&n(c,t),o&&o(t,c,c,f),n||(e=o=null),c}}function le(e,t,n,r,i,s){for(var u,l,c,f,d,p,h,v=[],m=z(e)||e instanceof a,$=0;$<e.length;$++)u=new K,11===o&&ce(e,$,m),(c=(l=he(e[$],[],u,0===$?r:void 0,i)).length?ge(l,e[$],u,t,n,null,[],[],s):null)&&c.scope&&ae.$$addScopeClass(u.$$element),d=c&&c.terminal||!(f=e[$].childNodes)||!f.length?null:le(f,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||d)&&(v.push($,c,d),p=!0,h=h||c),s=null;return p?function(e,n,r,i){var o,s,u,l,c,f,d,p;if(h){var m=n.length;for(p=new Array(m),c=0;c<v.length;c+=3)p[d=v[c]]=n[d]}else p=n;for(c=0,f=v.length;c<f;)u=p[v[c++]],o=v[c++],s=v[c++],o?(o.scope?(l=e.$new(),ae.$$addScopeInfo(a(u),l)):l=e,o(s,l,u,r,o.transcludeOnThisElement?fe(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?fe(e,t):null)):s&&s(e,u.childNodes,void 0,i)}:null}function ce(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===Fe)for(;(r=o?i.nextSibling:e[t+1])&&r.nodeType===Fe;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}function fe(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=Ue();for(var o in t.$$slots)t.$$slots[o]?i[o]=fe(e,t.$$slots[o],n):i[o]=null;return r}function he(e,t,r,i,o){var a,l,c,f=e.nodeType,d=r.$attr;switch(f){case He:xe(t,kn(l=re(e)),"E",i,o);for(var p,h,v,m,$,g=e.attributes,y=0,b=g&&g.length;y<b;y++){var w,x=!1,C=!1,S=!1,k=!1,A=!1;h=(p=g[y]).name,m=p.value,($=(v=kn(h.toLowerCase())).match(ne))?(S="Attr"===$[1],k="Prop"===$[1],A="On"===$[1],h=h.replace(Cn,"").toLowerCase().substr(4+$[1].length).replace(/_(.)/g,(function(e,t){return t.toUpperCase()}))):(w=v.match(ie))&&Ce(w[1])&&(x=h,C=h.substr(0,h.length-5)+"end",h=h.substr(0,h.length-6)),k||A?(r[v]=m,d[v]=p.name,k?Me(e,t,v,h):De(t,v,h)):(d[v=kn(h.toLowerCase())]=h,!S&&r.hasOwnProperty(v)||(r[v]=m,Rt(e,v)&&(r[v]=!0)),je(e,t,m,v,S),xe(t,v,"A",i,o,x,C))}if("input"===l&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!R)break;if(U(c=e.className)&&(c=c.animVal),H(c)&&""!==c)for(;a=u.exec(c);)xe(t,v=kn(a[2]),"C",i,o)&&(r[v]=ee(a[3])),c=c.substr(a.index+a[0].length);break;case Fe:!function(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&ae.$$addBindingClass(t),function(e,t){var i=t.parent();n||ae.$$addBindingClass(i),ae.$$addBindingInfo(i,r.expressions),e.$watch(r,(function(e){t[0].nodeValue=e}))}}})}(t,e.nodeValue);break;case Be:if(!P)break;!function(e,t,n,r,i){try{var o=s.exec(e.nodeValue);if(o){var a=kn(o[1]);xe(t,a,"M",r,i)&&(n[a]=ee(o[2]))}}catch(e){}}(e,t,r,i,o)}return t.sort(Ae),t}function ve(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw yn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===He&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return a(r)}function me(e,t,n){return function(r,i,o,a,s){return i=ve(i[0],t,n),e(r,i,o,a,s)}}function $e(e,t,n,r,i,o){var a;return e?ae(t,n,r,i,o):function(){return a||(a=ae(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function ge(t,n,r,i,o,s,u,l,c){c=c||{};for(var f,d,p,v,m,$=-Number.MAX_VALUE,g=c.newScopeDirective,y=c.controllerDirectives,b=c.newIsolateScopeDirective,w=c.templateDirective,x=c.nonTlbTranscludeDirective,S=!1,k=!1,T=c.hasElementTranscludeDirective,E=r.$$element=a(n),M=s,D=i,j=!1,I=!1,_=0,V=t.length;_<V;_++){var N=(f=t[_]).$$start,P=f.$$end;if(N&&(E=ve(n,N,P)),p=void 0,$>f.priority)break;if((m=f.scope)&&(f.templateUrl||(U(m)?(Te("new/isolated scope",b||g,f,E),b=f):Te("new/isolated scope",b,f,E)),g=g||f),d=f.name,!j&&(f.replace&&(f.templateUrl||f.template)||f.transclude&&!f.$$tlb)){for(var R,q=_+1;R=t[q++];)if(R.transclude&&!R.$$tlb||R.replace&&(R.templateUrl||R.template)){I=!0;break}j=!0}if(!f.templateUrl&&f.controller&&(y=y||Ue(),Te("'"+d+"' controller",y[d],f,E),y[d]=f),m=f.transclude)if(S=!0,f.$$tlb||(Te("transclusion",x,f,E),x=f),"element"===m)T=!0,$=f.priority,p=E,E=r.$$element=a(ae.$$createComment(d,r[d])),n=E[0],_e(o,de(p),n),D=$e(I,p,i,$,M&&M.name,{nonTlbTranscludeDirective:x});else{var H=Ue();if(U(m)){p=e.document.createDocumentFragment();var F=Ue(),B=Ue();for(var W in C(m,(function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,F[e]=t,H[t]=null,B[t]=n})),C(E.contents(),(function(t){var n=F[kn(re(t))];n?(B[n]=!0,H[n]=H[n]||e.document.createDocumentFragment(),H[n].appendChild(t)):p.appendChild(t)})),C(B,(function(e,t){if(!e)throw yn("reqslot","Required transclusion slot `{0}` was not filled.",t)})),H)if(H[W]){var J=a(H[W].childNodes);H[W]=$e(I,J,i)}p=a(p.childNodes)}else p=a(gt(n)).contents();E.empty(),(D=$e(I,p,i,void 0,void 0,{needsNewScope:f.$$isolateScope||f.$$newScope})).$$slots=H}if(f.template)if(k=!0,Te("template",w,f,E),w=f,m=G(f.template)?f.template(E,r):f.template,m=te(m),f.replace){if(M=f,p=pt(m)?[]:Tn(Ee(f.templateNamespace,ee(m))),n=p[0],1!==p.length||n.nodeType!==He)throw yn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",d,"");_e(o,E,n);var X={$attr:{}},Z=he(n,[],X),Q=t.splice(_+1,t.length-(_+1));(b||g)&&be(Z,b,g),t=t.concat(Z).concat(Q),Se(r,X),V=t.length}else E.html(m);if(f.templateUrl)k=!0,Te("template",w,f,E),w=f,f.replace&&(M=f),oe=ke(t.splice(_,t.length-_),E,r,o,S&&D,u,l,{controllerDirectives:y,newScopeDirective:g!==f&&g,newIsolateScopeDirective:b,templateDirective:w,nonTlbTranscludeDirective:x}),V=t.length;else if(f.compile)try{v=f.compile(E,r,D);var ne=f.$$originalDirective||f;G(v)?ie(null,pe(ne,v),N,P):v&&ie(pe(ne,v.pre),pe(ne,v.post),N,P)}catch(e){h(e,we(E))}f.terminal&&(oe.terminal=!0,$=Math.max($,f.priority))}return oe.scope=g&&!0===g.scope,oe.transcludeOnThisElement=S,oe.templateOnThisElement=k,oe.transclude=D,c.hasElementTranscludeDirective=T,oe;function ie(e,t,n,r){e&&(n&&(e=me(e,n,r)),e.require=f.require,e.directiveName=d,(b===f||f.$$isolateScope)&&(e=Ve(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=me(t,n,r)),t.require=f.require,t.directiveName=d,(b===f||f.$$isolateScope)&&(t=Ve(t,{isolateScope:!0})),l.push(t))}function oe(e,t,i,o,s){var c,f,d,p,v,m,$,x,S,k;for(var E in n===i?(S=r,x=r.$$element):S=new K(x=a(i),r),v=t,b?p=t.$new(!0):g&&(v=t.$parent),s&&($=function(e,t,n,r){var i;Y(e)||(r=n,n=t,t=e,e=void 0);T&&(i=m);n||(n=T?x.parent():x);if(!r)return s(e,t,i,n,I);var o=s.$$slots[r];if(o)return o(e,t,i,n,I);if(L(o))throw yn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,we(x))},$.$$boundTransclude=s,$.isSlotFilled=function(e){return!!s.$$slots[e]}),y&&(m=function(e,t,n,r,i,o,a){var s=Ue();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=A(f,c,!0,l.controllerAs);s[l.name]=d,e.data("$"+l.name+"Controller",d.instance)}return s}(x,S,$,y,p,t,b)),b&&(ae.$$addScopeInfo(x,p,!0,!(w&&(w===b||w===b.$$originalDirective))),ae.$$addScopeClass(x,!0),p.$$isolateBindings=b.$$isolateBindings,(k=Re(t,S,p,p.$$isolateBindings,b)).removeWatches&&p.$on("$destroy",k.removeWatches)),m){var M=y[E],D=m[E],j=M.$$bindings.bindToController;D.instance=D(),x.data("$"+M.name+"Controller",D.instance),D.bindingInfo=Re(v,S,D.instance,j,M)}for(C(y,(function(e,t){var n=e.require;e.bindToController&&!z(n)&&U(n)&&O(m[t].instance,ye(t,n,x,m))})),C(m,(function(e){var t=e.instance;if(G(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){h(e)}if(G(t.$onInit))try{t.$onInit()}catch(e){h(e)}G(t.$doCheck)&&(v.$watch((function(){t.$doCheck()})),t.$doCheck()),G(t.$onDestroy)&&v.$on("$destroy",(function(){t.$onDestroy()}))})),c=0,f=u.length;c<f;c++)Pe(d=u[c],d.isolateScope?p:t,x,S,d.require&&ye(d.directiveName,d.require,x,m),$);var I=t;for(b&&(b.template||null===b.templateUrl)&&(I=p),e&&e(I,i.childNodes,void 0,s),c=l.length-1;c>=0;c--)Pe(d=l[c],d.isolateScope?p:t,x,S,d.require&&ye(d.directiveName,d.require,x,m),$);C(m,(function(e){var t=e.instance;G(t.$postLink)&&t.$postLink()}))}}function ye(e,t,n,r){var i;if(H(t)){var o=t.match(c),a=t.substring(o[0].length),s=o[1]||o[3],u="?"===o[2];if("^^"===s?n=n.parent():i=(i=r&&r[a])&&i.instance,!i){var l="$"+a+"Controller";i="^^"===s&&n[0]&&n[0].nodeType===ze?null:s?n.inheritedData(l):n.data(l)}if(!i&&!u)throw yn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,e)}else if(z(t)){i=[];for(var f=0,d=t.length;f<d;f++)i[f]=ye(e,t[f],n,r)}else U(t)&&(i={},C(t,(function(t,o){i[o]=ye(e,t,n,r)})));return i||null}function be(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=I(e[r],{$$isolateScope:t,$$newScope:n})}function xe(e,n,o,a,s,u,l){if(n===s)return null;var c=null;if(r.hasOwnProperty(n))for(var f,d=t.get(n+i),p=0,h=d.length;p<h;p++)if(f=d[p],(L(a)||a>f.priority)&&-1!==f.restrict.indexOf(o)){if(u&&(f=I(f,{$$start:u,$$end:l})),!f.$$bindings){var v=f.$$bindings=m(f,f.name);U(v.isolateScope)&&(f.$$isolateBindings=v.isolateScope)}e.push(f),c=f}return c}function Ce(e){if(r.hasOwnProperty(e))for(var n=t.get(e+i),o=0,a=n.length;o<a;o++)if(n[o].multiElement)return!0;return!1}function Se(e,t){var n=t.$attr,r=e.$attr;C(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]))})),C(t,(function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function ke(e,t,n,r,i,o,s,u){var l,c,f=[],d=t[0],p=e.shift(),m=I(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),$=G(p.templateUrl)?p.templateUrl(t,n):p.templateUrl,g=p.templateNamespace;return t.empty(),v($).then((function(h){var v,y,b,w;if(h=te(h),p.replace){if(b=pt(h)?[]:Tn(Ee(g,ee(h))),v=b[0],1!==b.length||v.nodeType!==He)throw yn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,$);y={$attr:{}},_e(r,t,v);var x=he(v,[],y);U(p.scope)&&be(x,!0),e=x.concat(e),Se(n,y)}else v=d,t.html(h);for(e.unshift(m),l=ge(e,v,n,i,t,p,o,s,u),C(r,(function(e,n){e===v&&(r[n]=t[0])})),c=le(t[0].childNodes,i);f.length;){var S=f.shift(),k=f.shift(),A=f.shift(),T=f.shift(),E=t[0];if(!S.$$destroyed){if(k!==d){var O=k.className;u.hasElementTranscludeDirective&&p.replace||(E=gt(v)),_e(A,a(k),E),J(a(E),O)}w=l.transcludeOnThisElement?fe(S,l.transclude,T):T,l(c,S,E,r,w)}}f=null})).catch((function(e){W(e)&&h(e)})),function(e,t,n,r,i){var o=i;t.$$destroyed||(f?f.push(t,n,r,o):(l.transcludeOnThisElement&&(o=fe(t,l.transclude,i)),l(c,t,n,r,o)))}}function Ae(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 Te(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw yn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,we(r))}function Ee(t,n){switch(t=d(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 Oe(e){return B(E.valueOf(e),"ng-prop-srcset")}function Me(e,t,n,r){if(p.test(r))throw yn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=re(e),o=function(e,t){var n=t.toLowerCase();return S[e+"|"+n]||S["*|"+n]}(i,r),a=V;"srcset"!==r||"img"!==i&&"source"!==i?o&&(a=E.getTrusted.bind(E,o)):a=Oe,t.push({priority:100,compile:function(e,t){var i=k(t[n]),o=k(t[n],(function(e){return E.valueOf(e)}));return{pre:function(e,t){function n(){var n=i(e);t[0][r]=a(n)}n(),e.$watch(o,n)}}}})}function De(e,t,n){e.push(Go(k,T,h,t,n,!1))}function je(e,t,r,i,o){var a=re(e),s=function(e,t){return"srcdoc"===t?E.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?E.RESOURCE_URL:E.MEDIA_URL:"xlinkHref"===t?"image"===e?E.MEDIA_URL:"a"===e?E.URL:E.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?E.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:E.URL}(a,i),u=!o,c=l[i]||o,f=n(r,u,s,c);if(f){if("multiple"===i&&"select"===a)throw yn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",we(e));if(p.test(i))throw yn("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=Ue()),u=o[i];u!==r&&(f=u&&n(u,!0,s,c),r=u),f&&(o[i]=f(e),(a[i]||(a[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(f,(function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)})))}}}})}}function _e(t,n,r){var i,o,s=n[0],u=n.length,l=s.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===s){t[i++]=r;for(var c=i,f=c+u-1,d=t.length;c<d;c++,f++)f<d?t[c]=t[f]:delete t[c];t.length-=u-1,t.context===s&&(t.context=r);break}l&&l.replaceChild(r,s);var p=e.document.createDocumentFragment();for(i=0;i<u;i++)p.appendChild(n[i]);for(a.hasData(s)&&(a.data(r,a.data(s)),a(s).off("$destroy")),a.cleanData(p.querySelectorAll("*")),i=1;i<u;i++)delete n[i];n[0]=r,n.length=1}function Ve(e,t){return O((function(){return e.apply(null,arguments)}),e,t)}function Pe(e,t,n,r,i,o){try{e(t,n,r,i,o)}catch(e){h(e,we(n))}}function Le(e,t){if(y)throw yn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function Re(e,t,r,i,o){var a,s=[],u={};function l(t,n,i){G(r.$onChanges)&&!se(n,i)&&(D||(e.$$postDigest(F),D=[]),a||(a={},D.push(c)),a[t]&&(i=a[t].previousValue),a[t]=new xn(i,n))}function c(){r.$onChanges(a),a=void 0}return C(i,(function(i,a){var c,d,p,h,v,m=i.attrName,$=i.optional;switch(i.mode){case"@":$||f.call(t,m)||(Le(m,o.name),r[a]=t[m]=void 0),v=t.$observe(m,(function(e){if(H(e)||X(e)){var t=r[a];l(a,e,t),r[a]=e}})),t.$$observers[m].$$scope=e,H(c=t[m])?r[a]=n(c)(e):X(c)&&(r[a]=c),u[a]=new xn(bn,r[a]),s.push(v);break;case"=":if(!f.call(t,m)){if($)break;Le(m,o.name),t[m]=void 0}if($&&!t[m])break;d=k(t[m]),h=d.literal?ue:se,p=d.assign||function(){throw c=r[a]=d(e),yn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[m],m,o.name)},c=r[a]=d(e);var g=function(t){return h(t,r[a])||(h(t,c)?p(e,t=r[a]):r[a]=t),c=t};g.$stateful=!0,v=i.collection?e.$watchCollection(t[m],g):e.$watch(k(t[m],g),null,d.literal),s.push(v);break;case"<":if(!f.call(t,m)){if($)break;Le(m,o.name),t[m]=void 0}if($&&!t[m])break;var y=(d=k(t[m])).literal,b=r[a]=d(e);u[a]=new xn(bn,r[a]),v=e[i.collection?"$watchCollection":"$watch"](d,(function(e,t){if(t===e){if(t===b||y&&ue(t,b))return;t=b}l(a,e,t),r[a]=e})),s.push(v);break;case"&":if($||f.call(t,m)||Le(m,o.name),(d=t.hasOwnProperty(m)?k(t[m]):_)===_&&$)break;r[a]=function(t){return d(e,t)}}})),{initialChanges:u,removeWatches:s.length&&function(){for(var e=0,t=s.length;e<t;++e)s[e]()}}}}]}function xn(e,t){this.previousValue=e,this.currentValue=t}wn.$inject=["$provide","$$sanitizeUriProvider"],xn.prototype.isFirstChange=function(){return this.previousValue===bn};var Cn=/^((?:x|data)[:\-_])/i,Sn=/[:\-_]+(.)/g;function kn(e){return e.replace(Cn,"").replace(Sn,(function(e,t,n){return n?t.toUpperCase():t}))}function An(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 Tn(e){var t=(e=a(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===Be||n.nodeType===Fe&&""===n.nodeValue.trim())&&v.call(e,t,1)}return e}var En=i("$controller"),On=/^(\S+)(\s+as\s+([\w$]+))?$/;function Mn(e,t){if(t&&H(t))return t;if(H(e)){var n=On.exec(e);if(n)return n[3]}}function Dn(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){Le(t,"controller"),U(t)?O(e,t):e[t]=n},this.$get=["$injector",function(t){return function(r,i,o,a){var s,u,l,c;if(o=!0===o,a&&H(a)&&(c=a),H(r)){if(!(u=r.match(On)))throw En("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&&G(e)?pe(o,e):e}(i.$scope,l,!0),!r)throw En("ctrlreg","The controller with the name '{0}' is not registered.",l);Pe(r,l,!0)}if(o){var f=(z(r)?r[r.length-1]:r).prototype;return s=Object.create(f||null),c&&n(i,c,s,l||r.name),O((function(){var e=t.invoke(r,s,i,l);return e!==s&&(U(e)||G(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 n(e,t,n,r){if(!e||!U(e.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);e.$scope[t]=n}}]}function jn(){this.$get=["$window",function(e){return a(e.document)}]}function In(){this.$get=["$document","$rootScope",function(e,t){var n=e[0],r=n&&n.hidden;function i(){r=n.hidden}return e.on("visibilitychange",i),t.$on("$destroy",(function(){e.off("visibilitychange",i)})),function(){return r}}]}function _n(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var Vn=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof a&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Nn="application/json",Pn={"Content-Type":Nn+";charset=utf-8"},Ln=/^\[|^\{(?!\{)/,Rn={"[":/]$/,"{":/}$/},Un=/^\)]\}',?\n/,qn=i("$http");function Hn(e){return U(e)?B(e)?e.toISOString():ve(e):e}function Fn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return S(e,(function(e,n){null===e||L(e)||G(e)||(z(e)?C(e,(function(e){t.push(ke(n)+"="+ke(Hn(e)))})):t.push(ke(n)+"="+ke(Hn(e))))})),t.join("&")}}}function Bn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,r,i){z(n)?C(n,(function(t,n){e(t,r+"["+(U(t)?n:"")+"]")})):U(n)&&!B(n)?S(n,(function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))})):(G(n)&&(n=n()),t.push(ke(r)+"="+(null==n?"":ke(Hn(n)))))}(e,"",!0),t.join("&")}}}function zn(e,t){if(H(e)){var n=e.replace(Un,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf(Nn);if(i||(a=(o=n).match(Ln))&&Rn[a[0]].test(o))try{e=me(n)}catch(t){if(!i)return e;throw qn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var o,a;return e}function Wn(e){var t,n=Ue();function r(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return H(e)?C(e.split("\n"),(function(e){t=e.indexOf(":"),r(d(ee(e.substr(0,t))),ee(e.substr(t+1)))})):U(e)&&C(e,(function(e,t){r(d(t),ee(e))})),n}function Gn(e){var t;return function(n){if(t||(t=Wn(e)),n){var r=t[d(n)];return void 0===r&&(r=null),r}return t}}function Kn(e,t,n,r){return G(r)?r(e,t,n):(C(r,(function(r){e=r(e,t,n)})),e)}function Jn(e){return 200<=e&&e<300}function Yn(){var e=this.defaults={transformResponse:[zn],transformRequest:[function(e){return!U(e)||(t=e,"[object File]"===$.call(t))||function(e){return"[object Blob]"===$.call(e)}(e)||function(e){return"[object FormData]"===$.call(e)}(e)?e:ve(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Ge(Pn),put:Ge(Pn),patch:Ge(Pn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return R(e)?(t=!!e,this):t};var n=this.interceptors=[],r=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(o,a,s,u,l,c,f,h){var v=u("$http");e.paramSerializer=H(e.paramSerializer)?f.get(e.paramSerializer):e.paramSerializer;var m=[];C(n,(function(e){m.unshift(H(e)?f.get(e):f.invoke(e))}));var $,g=($=[vi].concat(r.map($i)),function(e){var t=$i(e);return $.some(gi.bind(null,t))});function y(n){if(!U(n))throw i("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!H(h.valueOf(n.url)))throw i("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",n.url);var r=O({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);r.headers=function(t){var n,r,i,o=e.headers,a=O({},t.headers);o=O({},o.common,o[d(t.method)]);e:for(n in o){for(i in r=d(n),a)if(d(i)===r)continue e;a[n]=o[n]}return function(e,t){var n,r={};return C(e,(function(e,i){G(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e})),r}(a,Ge(t))}(n),r.method=p(r.method),r.paramSerializer=H(r.paramSerializer)?f.get(r.paramSerializer):r.paramSerializer,o.$$incOutstandingRequestCount("$http");var u=[],$=[],b=c.resolve(r);return C(m,(function(e){(e.request||e.requestError)&&u.unshift(e.request,e.requestError),(e.response||e.responseError)&&$.push(e.response,e.responseError)})),b=(b=w(b,u)).then((function(n){var r=n.headers,i=Kn(n.data,Gn(r),void 0,n.transformRequest);L(i)&&C(r,(function(e,t){"content-type"===d(t)&&delete r[t]}));L(n.withCredentials)&&!L(e.withCredentials)&&(n.withCredentials=e.withCredentials);return function(n,r){var i,o,u=c.defer(),f=u.promise,p=n.headers,m="jsonp"===d(n.method),$=n.url;m?$=h.getTrustedResourceUrl($):H($)||($=h.valueOf($));$=function(e,t){t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t);return e}($,n.paramSerializer(n.params)),m&&($=function(e,t){var n=e.split("?");if(n.length>2)throw qn("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return C(Ce(n[1]),(function(n,r){if("JSON_CALLBACK"===n)throw qn("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw qn("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)})),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK",e}($,n.jsonpCallbackParam));y.pendingRequests.push(n),f.then(A,A),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(i=U(n.cache)?n.cache:U(e.cache)?e.cache:v);i&&(R(o=i.get($))?Z(o)?o.then(k,k):z(o)?S(o[1],o[0],Ge(o[2]),o[3],o[4]):S(o,200,{},"OK","complete"):i.put($,f));if(L(o)){var b=g(n.url)?s()[n.xsrfCookieName||e.xsrfCookieName]:void 0;b&&(p[n.xsrfHeaderName||e.xsrfHeaderName]=b),a(n.method,$,r,x,p,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return f;function w(e){if(e){var n={};return C(e,(function(e,r){n[r]=function(n){function r(){e(n)}t?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}})),n}}function x(e,n,r,o,a){function s(){S(n,e,r,o,a)}i&&(Jn(e)?i.put($,[e,n,Wn(r),o,a]):i.remove($)),t?l.$applyAsync(s):(s(),l.$$phase||l.$apply())}function S(e,t,r,i,o){(Jn(t=t>=-1?t:0)?u.resolve:u.reject)({data:e,status:t,headers:Gn(r),config:n,statusText:i,xhrStatus:o})}function k(e){S(e.data,e.status,Ge(e.headers()),e.statusText,e.xhrStatus)}function A(){var e=y.pendingRequests.indexOf(n);-1!==e&&y.pendingRequests.splice(e,1)}}(n,i).then(x,x)})),b=(b=w(b,$)).finally((function(){o.$$completeOutstandingRequest(_,"$http")}));function w(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 x(e){var t=O({},e);return t.data=Kn(e.data,e.headers,e.status,r.transformResponse),Jn(e.status)?t:c.reject(t)}}return y.pendingRequests=[],function(e){C(arguments,(function(e){y[e]=function(t,n){return y(O({},n||{},{method:e,url:t}))}}))}("get","delete","head","jsonp"),function(e){C(arguments,(function(e){y[e]=function(t,n,r){return y(O({},r||{},{method:e,url:t,data:n}))}}))}("post","put","patch"),y.defaults=e,y}]}function Xn(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Zn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return function(e,t,n,r,i){return function(i,a,s,u,l,c,f,p,h,v){if(a=a||e.url(),"jsonp"===d(i))var m=r.createCallback(a),$=o(a,m,(function(e,t){var n=200===e&&r.getResponse(m);A(u,e,n,"",t,"complete"),r.removeCallback(m)}));else{var g=t(i,a),y=!1;g.open(i,a,!0),C(l,(function(e,t){R(e)&&g.setRequestHeader(t,e)})),g.onload=function(){var e=g.statusText||"",t="response"in g?g.response:g.responseText,n=1223===g.status?204:g.status;0===n&&(n=t?200:"file"===$i(a).protocol?404:0),A(u,n,t,g.getAllResponseHeaders(),e,"complete")};var b=function(){A(u,-1,null,null,"","error")},w=function(){A(u,-1,null,null,"",y?"timeout":"abort")},x=function(){A(u,-1,null,null,"","timeout")};if(g.onerror=b,g.ontimeout=x,g.onabort=w,C(h,(function(e,t){g.addEventListener(t,e)})),C(v,(function(e,t){g.upload.addEventListener(t,e)})),f&&(g.withCredentials=!0),p)try{g.responseType=p}catch(e){if("json"!==p)throw e}g.send(L(s)?null:s)}if(c>0)var S=n((function(){k("timeout")}),c);else Z(c)&&c.then((function(){k(R(c.$$timeoutId)?"timeout":"abort")}));function k(e){y="timeout"===e,$&&$(),g&&g.abort()}function A(e,t,r,i,o,a){R(S)&&n.cancel(S),$=g=null,e(t,r,i,o,a)}};function o(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}}(e,r,e.defer,t,n[0])}]}var Qn=b.$interpolateMinErr=i("$interpolate");function er(){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){var o=e.length,a=t.length,s=new RegExp(e.replace(/./g,l),"g"),u=new RegExp(t.replace(/./g,l),"g");function l(e){return"\\\\\\"+e}function c(n){return n.replace(s,e).replace(u,t)}function f(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function d(s,u,l,d){var p=l===i.URL||l===i.MEDIA_URL;if(!s.length||-1===s.indexOf(e)){if(u)return;var h=c(s);p&&(h=i.getTrusted(l,h));var v=N(h);return v.exp=s,v.expressions=[],v.$$watchDelegate=f,v}d=!!d;for(var m,$,g,y,b,w=0,x=[],C=s.length,S=[],k=[];w<C;){if(-1===(m=s.indexOf(e,w))||-1===($=s.indexOf(t,m+o))){w!==C&&S.push(c(s.substring(w)));break}w!==m&&S.push(c(s.substring(w,m))),y=s.substring(m+o,$),x.push(y),w=$+a,k.push(S.length),S.push("")}b=1===S.length&&1===k.length;var A=p&&b?void 0:function(e){try{return e=l&&!p?i.getTrusted(l,e):i.valueOf(e),d&&!R(e)?e:qe(e)}catch(e){r(Qn.interr(s,e))}};if(g=x.map((function(e){return n(e,A)})),!u||x.length){var T=function(e){for(var t=0,n=x.length;t<n;t++){if(d&&L(e[t]))return;S[k[t]]=e[t]}return p?i.getTrusted(l,b?S[0]:S.join("")):(l&&S.length>1&&Qn.throwNoconcat(s),S.join(""))};return O((function(e){var t=0,n=x.length,i=new Array(n);try{for(;t<n;t++)i[t]=g[t](e);return T(i)}catch(e){r(Qn.interr(s,e))}}),{exp:s,expressions:x,$$watchDelegate:function(e,t){var n;return e.$watchGroup(g,(function(r,i){var o=T(r);t.call(this,o,r!==i?n:o,e),n=o}))}})}}return d.startSymbol=function(){return e},d.endSymbol=function(){return t},d}]}Qn.throwNoconcat=function(e){throw Qn("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)},Qn.interr=function(e,t){return Qn("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var tr=i("$interval");function nr(){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 tr("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 Kr(i.promise),i.reject("canceled"),r(t),!0},i}]}function rr(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,o){return function(a,s,u,l){var c=arguments.length>4,f=c?de(arguments,4):[],d=0,p=R(l)&&!l,h=(p?n:t).defer(),v=h.promise;function m(){c?a.apply(null,f):a(d)}return u=R(u)?u:0,v.$$intervalId=i((function(){p?e.defer(m):r.$evalAsync(m),h.notify(d++),u>0&&d>=u&&(h.resolve(d),o(v.$$intervalId)),p||r.$apply()}),s,h,p),v}}}]}var ir=function(){this.$get=function(){var e=b.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]}}}},or=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ar={http:80,https:443,ftp:21},sr=i("$location");function ur(e,t,n){var r,i=(r=[],C(t,(function(e,t){z(e)?C(e,(function(e){r.push(ke(t,!0)+(!0===e?"":"="+ke(e,!0)))})):r.push(ke(t,!0)+(!0===e?"":"="+ke(e,!0)))})),r.length?r.join("&"):""),o=n?"#"+Se(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Se(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(i?"?"+i:"")+o}function lr(e,t){var n=$i(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=D(n.port)||ar[n.protocol]||null}var cr=/^\s*[\\/]{2,}/;function fr(e,t,n){if(cr.test(e))throw sr("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=$i(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=Ce(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function dr(e,t){return e.slice(0,t.length)===t}function pr(e,t){if(dr(t,e))return t.substr(e.length)}function hr(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function vr(e,t,n){this.$$html5=!0,n=n||"",lr(e,this),this.$$parse=function(e){var n=pr(t,e);if(!H(n))throw sr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);fr(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):(R(o=pr(e,r))?(a=o,s=n&&R(o=pr(n,o))?t+(pr("/",o)||o):e+a):R(o=pr(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s);var o,a,s}}function mr(e,t,n){lr(e,this),this.$$parse=function(r){var i,o=pr(e,r)||pr(t,r);L(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",L(o)&&(e=r,this.replace())):L(i=pr(n,o))&&(i=o),fr(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;dr(t,n)&&(t=t.replace(n,""));if(i.exec(t))return e;return(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 hr(e)===hr(t)&&(this.$$parse(t),!0)}}function $r(e,t,n){this.$$html5=!0,mr.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e===hr(r)?o=r:(a=pr(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}}var gr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=ur(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:yr("$$absUrl"),url:function(e){if(L(e))return this.$$url;var t=or.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:yr("$$protocol"),host:yr("$$host"),port:yr("$$port"),path:br("$$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(H(e)||F(e))e=e.toString(),this.$$search=Ce(e);else{if(!U(e))throw sr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");C(e=ae(e,{}),(function(t,n){null==t&&delete e[n]})),this.$$search=e}break;default:L(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:br("$$hash",(function(e){return null!==e?e.toString():""})),replace:function(){return this.$$replace=!0,this}};function yr(e){return function(){return this[e]}}function br(e,t){return function(n){return L(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function wr(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return R(t)?(e=t,this):e},this.html5Mode=function(e){return X(e)?(t.enabled=e,this):U(e)?(X(e.enabled)&&(t.enabled=e.enabled),X(e.requireBase)&&(t.requireBase=e.requireBase),(X(e.rewriteLinks)||H(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){var u,l,c,f,d=r.baseHref(),p=r.url();if(t.enabled){if(!d&&t.requireBase)throw sr("nobase","$location in HTML5 mode requires a <base> tag to be present!");c=(f=p).substring(0,f.indexOf("/",f.indexOf("//")+2))+(d||"/"),l=i.history?vr:$r}else c=hr(p),l=mr;var h=function(e){return e.substr(0,hr(e).lastIndexOf("/")+1)}(c);(u=new l(c,h,"#"+e)).$$parseLinkUrl(p,p),u.$$state=r.state();var v=/^\s*(javascript|mailto):/i;function m(e,t,n){var i=u.url(),o=u.$$state;try{r.url(e,t,n),u.$$state=r.state()}catch(e){throw u.url(i),u.$$state=o,e}}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 s=a(e.target);"a"!==re(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!H(i)||!L(s.attr(i))){var l=s.prop("href"),c=s.attr("href")||s.attr("xlink:href");U(l)&&"[object SVGAnimatedString]"===l.toString()&&(l=$i(l.animVal).href),v.test(l)||!l||s.attr("target")||e.isDefaultPrevented()||u.$$parseLinkUrl(l,c)&&(e.preventDefault(),u.absUrl()!==r.url()&&n.$apply())}}})),u.absUrl()!==p&&r.url(u.absUrl(),!0);var $=!0;return r.onUrlChange((function(e,t){dr(e,h)?(n.$evalAsync((function(){var r,i=u.absUrl(),o=u.$$state;u.$$parse(e),u.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,u.absUrl()===e&&(r?(u.$$parse(i),u.$$state=o,m(i,!1,o)):($=!1,g(i,o)))})),n.$$phase||n.$digest()):s.location.href=e})),n.$watch((function(){if($||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var e=r.url(),t=u.absUrl(),o=r.state(),a=u.$$replace,s=!((l=e)===(c=t)||$i(l).href===$i(c).href)||u.$$html5&&i.history&&o!==u.$$state;($||s)&&($=!1,n.$evalAsync((function(){var t=u.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,u.$$state,o).defaultPrevented;u.absUrl()===t&&(r?(u.$$parse(e),u.$$state=o):(s&&m(t,a,o===u.$$state?null:u.$$state),g(e,o)))})))}var l,c;u.$$replace=!1})),u;function g(e,t){n.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}}]}function xr(){var e=!0,t=this;this.debugEnabled=function(t){return R(t)?(e=t,this):e},this.$get=["$window",function(n){var r,i=o||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:a("log"),info:a("info"),warn:a("warn"),error:a("error"),debug:(r=a("debug"),function(){e&&r.apply(t,arguments)})};function a(e){var t=n.console||{},r=t[e]||t.log||_;return function(){var e=[];return C(arguments,(function(t){e.push(function(e){return W(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)}}}]}C([$r,mr,vr],(function(e){e.prototype=Object.create(gr),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==vr||!this.$$html5)throw sr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=L(t)?null:t,this.$$urlUpdatedByLocation=!0,this}}));var Cr=i("$parse"),Sr={}.constructor.prototype.valueOf;function kr(e){return e+""}var Ar=Ue();C("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(e){Ar[e]=!0}));var Tr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Er=function(e){this.options=e};Er.prototype={constructor:Er,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=Ar[t],o=Ar[n],a=Ar[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=R(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Cr("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=d(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+=Tr[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 Or=function(e,t){this.lexer=e,this.options=t};function Mr(e,t){return void 0!==e?e:t}function Dr(e,t){return void 0===e?t:void 0===t?e:e+t}Or.Program="Program",Or.ExpressionStatement="ExpressionStatement",Or.AssignmentExpression="AssignmentExpression",Or.ConditionalExpression="ConditionalExpression",Or.LogicalExpression="LogicalExpression",Or.BinaryExpression="BinaryExpression",Or.UnaryExpression="UnaryExpression",Or.CallExpression="CallExpression",Or.MemberExpression="MemberExpression",Or.Identifier="Identifier",Or.Literal="Literal",Or.ArrayExpression="ArrayExpression",Or.Property="Property",Or.ObjectExpression="ObjectExpression",Or.ThisExpression="ThisExpression",Or.LocalsExpression="LocalsExpression",Or.NGValueParameter="NGValueParameter",Or.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:Or.Program,body:e}},expressionStatement:function(){return{type:Or.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(!Nr(e))throw Cr("lval","Trying to assign a value to a non l-value");e={type:Or.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:Or.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Or.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Or.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Or.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Or.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Or.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Or.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Or.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=ae(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Or.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:Or.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Or.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Or.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Or.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:Or.Identifier,name:e.text}},constant:function(){return{type:Or.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:Or.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Or.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:Or.ObjectExpression,properties:t}},throwError:function(e,t){throw Cr("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 Cr("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 Cr("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:Or.ThisExpression},$locals:{type:Or.LocalsExpression}}};var jr=1,Ir=2;function _r(e,t,n){var r,i,o,a=e.isPure=function(e,t){switch(e.type){case Or.MemberExpression:if(e.computed)return!1;break;case Or.UnaryExpression:return jr;case Or.BinaryExpression:return"+"!==e.operator&&jr;case Or.CallExpression:return!1}return void 0===t?Ir:t}(e,n);switch(e.type){case Or.Program:r=!0,C(e.body,(function(e){_r(e.expression,t,a),r=r&&e.expression.constant})),e.constant=r;break;case Or.Literal:e.constant=!0,e.toWatch=[];break;case Or.UnaryExpression:_r(e.argument,t,a),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Or.BinaryExpression:_r(e.left,t,a),_r(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Or.LogicalExpression:_r(e.left,t,a),_r(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Or.ConditionalExpression:_r(e.test,t,a),_r(e.alternate,t,a),_r(e.consequent,t,a),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Or.Identifier:e.constant=!1,e.toWatch=[e];break;case Or.MemberExpression:_r(e.object,t,a),e.computed&&_r(e.property,t,a),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case Or.CallExpression:o=!!e.filter&&function(e,t){return!e(t).$stateful}(t,e.callee.name),r=o,i=[],C(e.arguments,(function(e){_r(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=o?i:[e];break;case Or.AssignmentExpression:_r(e.left,t,a),_r(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Or.ArrayExpression:r=!0,i=[],C(e.elements,(function(e){_r(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=i;break;case Or.ObjectExpression:r=!0,i=[],C(e.properties,(function(e){_r(e.value,t,a),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(_r(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))})),e.constant=r,e.toWatch=i;break;case Or.ThisExpression:case Or.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Vr(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length||n[0]!==t?n:void 0}}function Nr(e){return e.type===Or.Identifier||e.type===Or.MemberExpression}function Pr(e){if(1===e.body.length&&Nr(e.body[0].expression))return{type:Or.AssignmentExpression,left:e.body[0].expression,right:{type:Or.NGValueParameter},operator:"="}}function Lr(e){this.$filter=e}function Rr(e){this.$filter=e}function Ur(e,t,n){this.ast=new Or(e,n),this.astCompiler=n.csp?new Rr(t):new Lr(t)}function qr(e){return G(e.valueOf)?e.valueOf():Sr.call(e)}function Hr(){var e,t,n=Ue(),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){var o={csp:le().noUnsafeEval,literals:ae(r),isIdentifierStart:G(e)&&e,isIdentifierContinue:G(t)&&t};return a.$$getAst=function(e){return new Ur(new Er(o),i,o).getAst(e).ast},a;function a(e,t){var r,a;switch(typeof e){case"string":if(e=e.trim(),!(r=n[a=e]))r=new Ur(new Er(o),i,o).parse(e),n[a]=d(r);return p(r,t);case"function":return p(e,t);default:return p(_,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=qr(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&&qr(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&&qr(u))}return t&&(o=r(e,void 0,void 0,c)),o}),t,n,i)}function l(e,t,n,r,i){var o,a,s=r.literal?c:R,u=r.$$intercepted||r,l=r.$$interceptor||V,f=r.inputs&&!u.inputs;return h.literal=r.literal,h.constant=r.constant,h.inputs=r.inputs,d(h),o=e.$watch(h,t,n,i);function p(){s(a)&&o()}function h(e,t,n,r){return a=f&&r?r[0]:u(e,t,n,r),s(a)&&e.$$postDigest(p),l(a)}}function c(e){var t=!0;return C(e,(function(e){R(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===Ir?function(t){return e(t)}:e})))),d(r)}}]}function Fr(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return zr((function(e){t.$evalAsync(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return R(t)?(e=t,this):e}}function Br(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return zr((function(e){t.defer(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return R(t)?(e=t,this):e}}function zr(e,t,n){var r=i("$q",TypeError),o=0,a=[];function s(){return new u}function u(){var e=this.promise=new l;this.resolve=function(t){d(e,t)},this.reject=function(t){h(e,t)},this.notify=function(t){m(e,t)}}function l(){this.$$state={status:0}}function c(){for(;!o&&a.length;){var e=a.shift();if(!Wr(e)){Gr(e);var n="Possibly unhandled rejection: "+Ke(e.value);W(e.value)?t(e.value,n):t(n)}}}function f(r){!n||r.pending||2!==r.status||Wr(r)||(0===o&&0===a.length&&e(c),a.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++o,e((function(){!function(r){var i,a,s;s=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var u=0,l=s.length;u<l;++u){Gr(r),a=s[u][0],i=s[u][r.status];try{G(i)?d(a,i(r.value)):1===r.status?d(a,r.value):h(a,r.value)}catch(e){h(a,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--o,n&&0===o&&e(c)}}(r)})))}function d(e,t){e.$$state.status||(t===e?v(e,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):p(e,t))}function p(e,t){var n,r=!1;try{(U(t)||G(t))&&(n=t.then),G(n)?(e.$$state.status=-1,n.call(t,(function(t){if(r)return;r=!0,p(e,t)}),i,(function(t){m(e,t)}))):(e.$$state.value=t,e.$$state.status=1,f(e.$$state))}catch(e){i(e)}function i(t){r||(r=!0,v(e,t))}}function h(e,t){e.$$state.status||v(e,t)}function v(e,t){e.$$state.value=t,e.$$state.status=2,f(e.$$state)}function m(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{m(n,G(e)?e(r):r)}catch(e){t(e)}}}))}function $(e){var t=new l;return h(t,e),t}function g(e,t,n){var r=null;try{G(n)&&(r=n())}catch(e){return $(e)}return Z(r)?r.then((function(){return t(e)}),$):t(e)}function y(e,t,n,r){var i=new l;return d(i,e),i.then(t,n,r)}O(l.prototype,{then:function(e,t,n){if(L(e)&&L(t)&&L(n))return this;var r=new l;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&f(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then((function(t){return g(t,b,e)}),(function(t){return g(t,$,e)}),t)}});var b=y;function w(e){if(!G(e))throw r("norslvr","Expected resolverFn, got '{0}'",e);var t=new l;return e((function(e){d(t,e)}),(function(e){h(t,e)})),t}return w.prototype=l.prototype,w.defer=s,w.reject=$,w.when=y,w.resolve=b,w.all=function(e){var t=new l,n=0,r=z(e)?[]:{};return C(e,(function(e,i){n++,y(e).then((function(e){r[i]=e,--n||d(t,r)}),(function(e){h(t,e)}))})),0===n&&d(t,r),t},w.race=function(e){var t=s();return C(e,(function(e){y(e).then(t.resolve,t.reject)})),t.promise},w}function Wr(e){return!!e.pur}function Gr(e){e.pur=!0}function Kr(e){e.$$state&&Gr(e.$$state)}function Jr(){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 Yr(){var e=10,t=i("$rootScope"),n=null,r=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(i,a,s){function u(e){e.currentScope.$$destroyed=!0}function l(e){9===o&&(e.$$childHead&&l(e.$$childHead),e.$$nextSibling&&l(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function c(){this.$id=A(),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}c.prototype={constructor:c,$new:function(e,t){var n;return t=t||this,e?(n=new c).$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=A(),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",u),n},$watch:function(e,t,r,i){var o=a(e),s=G(t)?t:_;if(o.$$watchDelegate)return o.$$watchDelegate(this,s,r,o,e);var u=this,l=u.$$watchers,c={fn:s,last:w,get:o,exp:i||e,eq:!!r};return n=null,l||((l=u.$$watchers=[]).$$digestWatchIndex=-1),l.unshift(c),l.$$digestWatchIndex++,y(this,1),function(){var e=oe(l,c);e>=0&&(y(u,-1),e<l.$$digestWatchIndex&&l.$$digestWatchIndex--),n=null}},$watchGroup:function(e,t){var n=new Array(e.length),r=new Array(e.length),i=[],o=this,a=!1,s=!0;if(!e.length){var u=!0;return o.$evalAsync((function(){u&&t(r,r,o)})),function(){u=!1}}if(1===e.length)return this.$watch(e[0],(function(e,i,o){r[0]=e,n[0]=i,t(r,e===i?r:n,o)}));function l(){a=!1;try{s?(s=!1,t(r,r,o)):t(r,n,o)}finally{for(var i=0;i<e.length;i++)n[i]=r[i]}}return C(e,(function(e,t){var n=o.$watch(e,(function(e){r[t]=e,a||(a=!0,o.$evalAsync(l))}));i.push(n)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(e,t){v.$$pure=a(e).literal,v.$stateful=!v.$$pure;var n,r,i,o=this,s=t.length>1,u=0,l=a(e,v),c=[],d={},p=!0,h=0;function v(e){var t,i,o,a;if(!L(n=e)){if(U(n))if(x(n)){r!==c&&(h=(r=c).length=0,u++),t=n.length,h!==t&&(u++,r.length=h=t);for(var s=0;s<t;s++)a=r[s],o=n[s],a!=a&&o!=o||a===o||(u++,r[s]=o)}else{for(i in r!==d&&(r=d={},h=0,u++),t=0,n)f.call(n,i)&&(t++,o=n[i],a=r[i],i in r?a!=a&&o!=o||a===o||(u++,r[i]=o):(h++,r[i]=o,u++));if(h>t)for(i in u++,r)f.call(n,i)||(h--,delete r[i])}else r!==n&&(r=n,u++);return u}}return this.$watch(l,(function(){if(p?(p=!1,t(n,n,o)):t(n,i,o),s)if(U(n))if(x(n)){i=new Array(n.length);for(var e=0;e<n.length;e++)i[e]=n[e]}else for(var r in i={},n)f.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var o,a,u,l,c,f,v,y,b,x=e,C=p.length?d:this,k=[];$("$digest"),s.$$checkUrlChange(),this===d&&null!==r&&(s.defer.cancel(r),S()),n=null;do{c=!1,v=C;for(var A=0;A<p.length;A++){try{(0,(b=p[A]).fn)(b.scope,b.locals)}catch(e){i(e)}n=null}p.length=0;e:do{if(l=!v.$$suspended&&v.$$watchers)for(l.$$digestWatchIndex=l.length;l.$$digestWatchIndex--;)try{if(o=l[l.$$digestWatchIndex])if((a=(0,o.get)(v))===(u=o.last)||(o.eq?ue(a,u):j(a)&&j(u))){if(o===n){c=!1;break e}}else c=!0,n=o,o.last=o.eq?ae(a,null):a,(0,o.fn)(a,u===w?a:u,v),x<5&&(k[y=4-x]||(k[y]=[]),k[y].push({msg:G(o.exp)?"fn: "+(o.exp.name||o.exp.toString()):o.exp,newVal:a,oldVal:u}))}catch(e){i(e)}if(!(f=!v.$$suspended&&v.$$watchersCount&&v.$$childHead||v!==C&&v.$$nextSibling))for(;v!==C&&!(f=v.$$nextSibling);)v=v.$parent}while(v=f);if((c||p.length)&&!x--)throw g(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,k)}while(c||p.length);for(g();m<h.length;)try{h[m++]()}catch(e){i(e)}h.length=m=0,s.$$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===d&&s.$$applicationDestroyed(),y(this,-this.$$watchersCount),this.$$listenerCount)b(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=_,this.$on=this.$watch=this.$watchGroup=function(){return _},this.$$listeners={},this.$$nextSibling=null,l(this)}},$eval:function(e,t){return a(e)(this,t)},$evalAsync:function(e,t){d.$$phase||p.length||s.defer((function(){p.length&&d.$digest()}),null,"$evalAsync"),p.push({scope:this,fn:a(e),locals:t})},$$postDigest:function(e){h.push(e)},$apply:function(e){try{$("$apply");try{return this.$eval(e)}finally{g()}}catch(e){i(e)}finally{try{d.$digest()}catch(e){throw i(e),e}}},$applyAsync:function(e){var t=this;e&&v.push((function(){t.$eval(e)})),e=a(e),null===r&&(r=s.defer((function(){d.$apply(S)}),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],b(i,1,e))}},$emit:function(e,t){var n,r,o,a=[],s=this,u=!1,l={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=fe([l],arguments,1);do{for(n=s.$$listeners[e]||a,l.currentScope=s,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,c)}catch(e){i(e)}else n.splice(r,1),r--,o--;if(u)break;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,t){var n=this,r=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=fe([a],arguments,1);r=o;){for(a.currentScope=r,u=0,l=(s=r.$$listeners[e]||[]).length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(e){i(e)}else s.splice(u,1),u--,l--;if(!(o=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(o=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var d=new c,p=d.$$asyncQueue=[],h=d.$$postDigestQueue=[],v=d.$$applyAsyncQueue=[],m=0;return d;function $(e){if(d.$$phase)throw t("inprog","{0} already in progress",d.$$phase);d.$$phase=e}function g(){d.$$phase=null}function y(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function b(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function w(){}function S(){for(;v.length;)try{v.shift()()}catch(e){i(e)}r=null}}]}function Xr(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return R(t)?(e=t,this):e},this.imgSrcSanitizationTrustedUrlList=function(e){return R(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,o=$i(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}Lr.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},_r(e,t.$filter);var n,r="";if(this.stage="assign",n=Pr(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 o=Vr(e.body);t.stage="inputs",C(o,(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 a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,kr,Mr,Dr);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return C(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 C(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,o){var a,s,u,l,c,f=this;if(r=r||_,!o&&R(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 Or.Program:C(e.body,(function(t,n){f.recurse(t.expression,void 0,void 0,(function(e){s=e})),n!==e.body.length-1?f.current().body.push(s,";"):f.return_(s)}));break;case Or.Literal:l=this.escape(e.value),this.assign(t,l),r(t||l);break;case Or.UnaryExpression:this.recurse(e.argument,void 0,void 0,(function(e){s=e})),l=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,l),r(l);break;case Or.BinaryExpression:this.recurse(e.left,void 0,void 0,(function(e){a=e})),this.recurse(e.right,void 0,void 0,(function(e){s=e})),l="+"===e.operator?this.plus(a,s):"-"===e.operator?this.ifDefined(a,0)+e.operator+this.ifDefined(s,0):"("+a+")"+e.operator+"("+s+")",this.assign(t,l),r(l);break;case Or.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_("&&"===e.operator?t:f.not(t),f.lazyRecurse(e.right,t)),r(t);break;case Or.ConditionalExpression:t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse(e.alternate,t),f.lazyRecurse(e.consequent,t)),r(t);break;case Or.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",e.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){i&&1!==i&&f.if_(f.isNull(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",e.name))}))}),t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),r(t);break;case Or.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,a,void 0,(function(){f.if_(f.notNull(a),(function(){e.computed?(s=f.nextId(),f.recurse(e.property,s),f.getStringValue(s),i&&1!==i&&f.if_(f.not(f.computedMember(a,s)),f.lazyAssign(f.computedMember(a,s),"{}")),l=f.computedMember(a,s),f.assign(t,l),n&&(n.computed=!0,n.name=s)):(i&&1!==i&&f.if_(f.isNull(f.nonComputedMember(a,e.property.name)),f.lazyAssign(f.nonComputedMember(a,e.property.name),"{}")),l=f.nonComputedMember(a,e.property.name),f.assign(t,l),n&&(n.computed=!1,n.name=e.property.name))}),(function(){f.assign(t,"undefined")})),r(t)}),!!i);break;case Or.CallExpression:t=t||this.nextId(),e.filter?(s=f.filter(e.callee.name),u=[],C(e.arguments,(function(e){var t=f.nextId();f.recurse(e,t),u.push(t)})),l=s+"("+u.join(",")+")",f.assign(t,l),r(t)):(s=f.nextId(),a={},u=[],f.recurse(e.callee,s,a,(function(){f.if_(f.notNull(s),(function(){C(e.arguments,(function(t){f.recurse(t,e.constant?void 0:f.nextId(),void 0,(function(e){u.push(e)}))})),l=a.name?f.member(a.context,a.name,a.computed)+"("+u.join(",")+")":s+"("+u.join(",")+")",f.assign(t,l)}),(function(){f.assign(t,"undefined")})),r(t)})));break;case Or.AssignmentExpression:s=this.nextId(),a={},this.recurse(e.left,void 0,a,(function(){f.if_(f.notNull(a.context),(function(){f.recurse(e.right,s),l=f.member(a.context,a.name,a.computed)+e.operator+s,f.assign(t,l),r(t||l)}))}),1);break;case Or.ArrayExpression:u=[],C(e.elements,(function(t){f.recurse(t,e.constant?void 0:f.nextId(),void 0,(function(e){u.push(e)}))})),l="["+u.join(",")+"]",this.assign(t,l),r(t||l);break;case Or.ObjectExpression:u=[],c=!1,C(e.properties,(function(e){e.computed&&(c=!0)})),c?(t=t||this.nextId(),this.assign(t,"{}"),C(e.properties,(function(e){e.computed?(a=f.nextId(),f.recurse(e.key,a)):a=e.key.type===Or.Identifier?e.key.name:""+e.key.value,s=f.nextId(),f.recurse(e.value,s),f.assign(f.member(t,a,e.computed),s)}))):(C(e.properties,(function(t){f.recurse(t.value,e.constant?void 0:f.nextId(),void 0,(function(e){u.push(f.escape(t.key.type===Or.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),l="{"+u.join(",")+"}",this.assign(t,l)),r(t||l);break;case Or.ThisExpression:this.assign(t,"s"),r(t||"s");break;case Or.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case Or.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(H(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(F(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 Cr("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]}},Rr.prototype={compile:function(e){var t,n,r=this;_r(e,r.$filter),(t=Pr(e))&&(n=this.recurse(t));var i,o=Vr(e.body);o&&(i=[],C(o,(function(e,t){var n=r.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=t})));var a=[];C(e.body,(function(e){a.push(r.recurse(e.expression))}));var s=0===e.body.length?_:1===e.body.length?a[0]:function(e,t){var n;return C(a,(function(r){n=r(e,t)})),n};return n&&(s.assign=function(e,t,r){return n(e,r,t)}),i&&(s.inputs=i),s},recurse:function(e,t,n){var r,i,o,a=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Or.Literal:return this.value(e.value,t);case Or.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case Or.BinaryExpression:case Or.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case Or.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Or.Identifier:return a.identifier(e.name,t,n);case Or.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 Or.CallExpression:return o=[],C(e.arguments,(function(e){o.push(a.recurse(e))})),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,a){for(var s=[],u=0;u<o.length;++u)s.push(o[u](e,n,r,a));var l=i.apply(void 0,s,a);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,a){var s,u=i(e,n,r,a);if(null!=u.value){for(var l=[],c=0;c<o.length;++c)l.push(o[c](e,n,r,a));s=u.value.apply(u.context,l)}return t?{value:s}:s};case Or.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 Or.ArrayExpression:return o=[],C(e.elements,(function(e){o.push(a.recurse(e))})),function(e,n,r,i){for(var a=[],s=0;s<o.length;++s)a.push(o[s](e,n,r,i));return t?{value:a}:a};case Or.ObjectExpression:return o=[],C(e.properties,(function(e){e.computed?o.push({key:a.recurse(e.key),computed:!0,value:a.recurse(e.value)}):o.push({key:e.key.type===Or.Identifier?e.key.name:""+e.key.value,computed:!1,value:a.recurse(e.value)})})),function(e,n,r,i){for(var a={},s=0;s<o.length;++s)o[s].computed?a[o[s].key(e,n,r,i)]=o[s].value(e,n,r,i):a[o[s].key]=o[s].value(e,n,r,i);return t?{value:a}:a};case Or.ThisExpression:return function(e){return t?{value:e}:e};case Or.LocalsExpression:return function(e,n){return t?{value:n}:n};case Or.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=R(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=R(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=Dr(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=(R(s)?s:0)-(R(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=kr(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)}}},Ur.prototype={constructor:Ur,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===Or.Literal||e.body[0].expression.type===Or.ArrayExpression||e.body[0].expression.type===Or.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 Zr=i("$sce"),Qr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ei=/_([a-z])/g;function ti(e){return e.replace(ei,nt)}function ni(e){var t=[];return R(e)&&C(e,(function(e){t.push(function(e){if("self"===e)return e;if(H(e)){if(e.indexOf("***")>-1)throw Zr("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=te(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(K(e))return new RegExp("^"+e.source+"$");throw Zr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))})),t}function ri(){this.SCE_CONTEXTS=Qr;var t=["self"],n=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=ni(e)),t},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return arguments.length&&(n=ni(e)),n},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(r,i){var o=function(e){throw Zr("unsafe","Attempting to use an unsafe value in a safe context.")};function a(t,n){return"self"===t?gi(n,vi)||function(t){return gi(t,function(){if(e.document.baseURI)return e.document.baseURI;pi||((pi=e.document.createElement("a")).href=".",pi=pi.cloneNode(!1));return pi.href}())}(n):!!t.exec(n.href)}function s(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}r.has("$sanitize")&&(o=r.get("$sanitize"));var u=s(),l={};return l[Qr.HTML]=s(u),l[Qr.CSS]=s(u),l[Qr.MEDIA_URL]=s(u),l[Qr.URL]=s(l[Qr.MEDIA_URL]),l[Qr.JS]=s(u),l[Qr.RESOURCE_URL]=s(l[Qr.URL]),{trustAs:function(e,t){var n=l.hasOwnProperty(e)?l[e]:null;if(!n)throw Zr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||L(t)||""===t)return t;if("string"!=typeof t)throw Zr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,r){if(null===r||L(r)||""===r)return r;var s=l.hasOwnProperty(e)?l[e]:null;if(s&&r instanceof s)return r.$$unwrapTrustedValue();if(G(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),e===Qr.MEDIA_URL||e===Qr.URL)return i(r.toString(),e===Qr.MEDIA_URL);if(e===Qr.RESOURCE_URL){if(function(e){var r,i,o=$i(e.toString()),s=!1;for(r=0,i=t.length;r<i;r++)if(a(t[r],o)){s=!0;break}if(s)for(r=0,i=n.length;r<i;r++)if(a(n[r],o)){s=!1;break}return s}(r))return r;throw Zr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",r.toString())}if(e===Qr.HTML)return o(r);throw Zr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof u?e.$$unwrapTrustedValue():e}}}]}function ii(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&o<8)throw Zr("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=Ge(Qr);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 C(Qr,(function(e,t){var n=d(t);r[ti("parse_as_"+n)]=function(t){return i(e,t)},r[ti("get_trusted_"+n)]=function(t){return a(e,t)},r[ti("trust_as_"+n)]=function(t){return s(e,t)}})),r}]}function oi(){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=D((/android (\d+)/.exec(d((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=s.body&&s.body.style,l=!1,c=!1;return u&&(l=!(!("transition"in u)&&!("webkitTransition"in u)),c=!(!("animation"in u)&&!("webkitAnimation"in u))),{history:!(!r||i<4||a),hasEvent:function(e){if("input"===e&&o)return!1;if(L(n[e])){var t=s.createElement("div");n[e]="on"+e in t}return n[e]},csp:le(),transitions:l,animations:c,android:i}}]}function ai(){this.$get=N((function(e){return new si(e)}))}function si(e){var t=this,n={},r=[],i=t.ALL_TASKS_TYPE="$$all$$",o=t.DEFAULT_TASK_TYPE="$$default$$";function a(){var e=r.pop();return e&&e.cb}function s(e){for(var t=r.length-1;t>=0;--t){var n=r[t];if(n.type===e)return r.splice(t,1),n.cb}}t.completeTask=function(t,r){r=r||o;try{t()}finally{!function(e){e=e||o,n[e]&&(n[e]--,n[i]--)}(r);var u=n[r],l=n[i];if(!l||!u)for(var c,f=l?s:a;c=f(r);)try{c()}catch(t){e.error(t)}}},t.incTaskCount=function(e){n[e=e||o]=(n[e]||0)+1,n[i]=(n[i]||0)+1},t.notifyWhenNoPendingTasks=function(e,t){n[t=t||i]?r.push({type:t,cb:e}):e()}}var ui=i("$templateRequest");function li(){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++,H(s)&&!L(n.get(s))||(s=o.getTrustedResourceUrl(s));var l=r.defaults&&r.defaults.transformResponse;return z(l)?l=l.filter((function(e){return e!==zn})):l===zn&&(l=null),r.get(s,O({cache:n,transformResponse:l},e)).finally((function(){a.totalPendingRequests--})).then((function(e){return n.put(s,e.data)}),(function(e){u||(e=ui("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e));return i.reject(e)}))}return a.totalPendingRequests=0,a}]}function ci(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={findBindings:function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return C(r,(function(e){var r=b.element(e).data("$binding");r&&C(r,(function(r){n?new RegExp("(^|\\s)"+te(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}]}var fi=i("$timeout");function di(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){var o={};function a(a,s,u){G(a)||(u=s,s=a,a=_);var l,c=de(arguments,3),f=R(u)&&!u,d=(f?r:n).defer(),p=d.promise;return l=t.defer((function(){try{d.resolve(a.apply(null,c))}catch(e){d.reject(e),i(e)}finally{delete o[p.$$timeoutId]}f||e.$apply()}),s,"$timeout"),p.$$timeoutId=l,o[l]=d,p}return a.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw fi("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,r=o[n];return Kr(r.promise),r.reject("canceled"),delete o[n],t.defer.cancel(n)},a}]}var pi,hi=e.document.createElement("a"),vi=$i(e.location.href);hi.href="http://[::1]";var mi="[::1]"===hi.hostname;function $i(e){if(!H(e))return e;var t=e;o&&(hi.setAttribute("href",t),t=hi.href),hi.setAttribute("href",t);var n=hi.hostname;return!mi&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:hi.href,protocol:hi.protocol?hi.protocol.replace(/:$/,""):"",host:hi.host,search:hi.search?hi.search.replace(/^\?/,""):"",hash:hi.hash?hi.hash.replace(/^#/,""):"",hostname:n,port:hi.port,pathname:"/"===hi.pathname.charAt(0)?hi.pathname:"/"+hi.pathname}}function gi(e,t){return e=$i(e),t=$i(t),e.protocol===t.protocol&&e.host===t.host}function yi(){this.$get=N(e)}function bi(e){var t=e[0]||{},n={},r="";function i(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var e,o,a,s,u,l=function(e){try{return e.cookie||""}catch(e){return""}}(t);if(l!==r)for(e=(r=l).split("; "),n={},a=0;a<e.length;a++)(s=(o=e[a]).indexOf("="))>0&&(u=i(o.substring(0,s)),L(n[u])&&(n[u]=i(o.substring(s+1))));return n}}function wi(){this.$get=bi}function xi(e){var t="Filter";function n(r,i){if(U(r)){var o={};return C(r,(function(e,t){o[t]=n(t,e)})),o}return e.factory(r+t,i)}this.register=n,this.$get=["$injector",function(e){return function(n){return e.get(n+t)}}],n("currency",Oi),n("date",qi),n("filter",Ci),n("json",Hi),n("limitTo",zi),n("lowercase",Fi),n("number",Mi),n("orderBy",Gi),n("uppercase",Bi)}function Ci(){return function(e,t,n,r){if(!x(e)){if(null==e)return e;throw i("filter")("notarray","Expected array but received: {0}",e)}var o,a;switch(r=r||"$",ki(t)){case"function":o=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=function(e,t,n,r){var i,o=U(e)&&n in e;!0===t?t=ue:G(t)||(t=function(e,t){return!L(e)&&(null===e||null===t?e===t:!(U(t)||U(e)&&!P(e))&&(e=d(""+e),t=d(""+t),-1!==e.indexOf(t)))});return i=function(i){return o&&!U(i)?Si(i,e[n],t,n,!1):Si(i,e,t,n,r)},i}(t,n,r,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function Si(e,t,n,r,i,o){var a=ki(e),s=ki(t);if("string"===s&&"!"===t.charAt(0))return!Si(e,t.substring(1),n,r,i);if(z(e))return e.some((function(e){return Si(e,t,n,r,i)}));switch(a){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&Si(e[u],t,n,r,!0))return!0;return!o&&Si(e,t,n,r,!1)}if("object"===s){for(u in t){var l=t[u];if(!G(l)&&!L(l)){var c=u===r;if(!Si(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 ki(e){return null===e?"null":typeof e}bi.$inject=["$document"],xi.$inject=["$provide"];var Ai=22,Ti=".",Ei="0";function Oi(e){var t=e.NUMBER_FORMATS;return function(e,n,r){L(n)&&(n=t.CURRENCY_SYM),L(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:Di(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function Mi(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Di(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Di(e,t,n,r,i){if(!H(e)&&!F(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(Ti))>-1&&(e=e.replace(Ti,"")),(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)===Ei;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Ei;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>Ai&&(t=t.splice(0,Ai-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=L(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 ji(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=Ei+e;return n&&(e=e.substr(e.length-t)),i+e}function Ii(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),ji(a,t,r,i)}}function _i(e,t,n){return function(r,i){var o=r["get"+e]();return i[p((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function Vi(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Ni(e){return function(t){var n,r=Vi(t.getFullYear()),i=+(n=t,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+r;return ji(1+Math.round(i/6048e5),e)}}function Pi(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}Oi.$inject=["$locale"],Mi.$inject=["$locale"];var Li={yyyy:Ii("FullYear",4,0,!1,!0),yy:Ii("FullYear",2,0,!0,!0),y:Ii("FullYear",1,0,!1,!0),MMMM:_i("Month"),MMM:_i("Month",!0),MM:Ii("Month",2,1),M:Ii("Month",1,1),LLLL:_i("Month",!1,!0),dd:Ii("Date",2),d:Ii("Date",1),HH:Ii("Hours",2),H:Ii("Hours",1),hh:Ii("Hours",2,-12),h:Ii("Hours",1,-12),mm:Ii("Minutes",2),m:Ii("Minutes",1),ss:Ii("Seconds",2),s:Ii("Seconds",1),sss:Ii("Milliseconds",3),EEEE:_i("Day"),EEE:_i("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,i=r>=0?"+":"";return i+=ji(Math[r>0?"floor":"ceil"](r/60),2)+ji(Math.abs(r%60),2)},ww:Ni(2),w:Ni(1),G:Pi,GG:Pi,GGG:Pi,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},Ri=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Ui=/^-?\d+$/;function qi(e){var t=/^(\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 o,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,H(n)&&(n=Ui.test(n)?D(n):function(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,o=0,a=n[8]?r.setUTCFullYear:r.setFullYear,s=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=D(n[9]+n[10]),o=D(n[9]+n[11])),a.call(r,D(n[1]),D(n[2])-1,D(n[3]));var u=D(n[4]||0)-i,l=D(n[5]||0)-o,c=D(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(r,u,l,c,f),r}return e}(n)),F(n)&&(n=new Date(n)),!B(n)||!isFinite(n.getTime()))return n;for(;r;)(a=Ri.exec(r))?r=(u=fe(u,a,1)).pop():(u.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=ge(i,l),n=be(n,i,!0)),C(u,(function(t){o=Li[t],s+=o?o(n,e.DATETIME_FORMATS,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function Hi(){return function(e,t){return L(t)&&(t=2),ve(e,t)}}qi.$inject=["$locale"];var Fi=N(d),Bi=N(p);function zi(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):D(t),j(t)?e:(F(e)&&(e=e.toString()),x(e)?(n=(n=!n||isNaN(n)?0:D(n))<0?Math.max(0,e.length+n):n,t>=0?Wi(e,n,n+t):0===n?Wi(e,t,e.length):Wi(e,Math.max(0,n+t),n)):e)}}function Wi(e,t,n){return H(e)?e.slice(t,n):h.call(e,t,n)}function Gi(e){return function(r,o,a,s){if(null==r)return r;if(!x(r))throw i("orderBy")("notarray","Expected array but received: {0}",r);z(o)||(o=[o]),0===o.length&&(o=["+"]);var u=o.map((function(t){var n=1,r=V;if(G(t))r=t;else if(H(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}})),l=a?-1:1,c=G(s)?s:n,f=Array.prototype.map.call(r,(function(e,n){return{value:e,tieBreaker:{value:n,type:"number",index:n},predicateValues:u.map((function(r){return function(e,n){var r=typeof e;null===e?r="null":"object"===r&&(e=function(e){if(G(e.valueOf)&&t(e=e.valueOf()))return e;if(P(e)&&t(e=e.toString()))return e;return e}(e));return{value:e,type:r,index:n}}(r.get(e),n)}))}}));return f.sort((function(e,t){for(var r=0,i=u.length;r<i;r++){var o=c(e.predicateValues[r],t.predicateValues[r]);if(o)return o*u[r].descending*l}return(c(e.tieBreaker,t.tieBreaker)||n(e.tieBreaker,t.tieBreaker))*l})),r=f.map((function(e){return e.value}))};function t(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function n(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&&(U(o)&&(o=e.index),U(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}}function Ki(e){return G(e)&&(e={link:e}),e.restrict=e.restrict||"AC",N(e)}Gi.$inject=["$parse"];var Ji=N({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]"===$.call(t.prop("href"))?"xlink:href":"href";t.on("click",(function(e){t.attr(n)||e.preventDefault()}))}}}}),Yi={};C(Nt,(function(e,t){if("multiple"!==e){var n=kn("ng-"+t),r=i;"checked"===e&&(r=function(e,t,r){r.ngModel!==r[n]&&i(e,0,r)}),Yi[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(e,r,i){e.$watch(i[n],(function(e){i.$set(t,!!e)}))}})),C(Lt,(function(e,t){Yi[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(l);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],(function(e){r.$set(t,e)}))}}}})),C(["src","srcset","href"],(function(e){var t=kn("ng-"+e);Yi[t]=["$sce",function(n){return{priority:99,link:function(r,i,a){var s=e,u=e;"href"===e&&"[object SVGAnimatedString]"===$.call(i.prop("href"))&&(u="xlinkHref",a.$attr[u]="xlink:href",s=null),a.$set(t,n.getTrustedMediaUrl(a[t])),a.$observe(t,(function(t){t?(a.$set(u,t),o&&s&&i.prop(s,a[u])):"href"===e&&a.$set(u,null)}))}}}]}));var Xi={$addControl:_,$getControls:N([]),$$renameControl:function(e,t){e.$name=t},$removeControl:_,$setValidity:_,$setDirty:_,$setPristine:_,$setSubmitted:_,$$setSubmitted:_},Zi="ng-pending",Qi="ng-submitted";function eo(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=Xi,this.$$element=e,this.$$animate=r,io(this)}eo.$inject=["$element","$attrs","$scope","$animate","$interpolate"],eo.prototype={$rollbackViewValue:function(){C(this.$$controls,(function(e){e.$rollbackViewValue()}))},$commitViewValue:function(){C(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 Ge(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],C(this.$pending,(function(t,n){this.$setValidity(n,null,e)}),this),C(this.$error,(function(t,n){this.$setValidity(n,null,e)}),this),C(this.$$success,(function(t,n){this.$setValidity(n,null,e)}),this),oe(this.$$controls,e),e.$$parentForm=Xi},$setDirty:function(){this.$$animate.removeClass(this.$$element,ta),this.$$animate.addClass(this.$$element,na),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,ta,na+" "+Qi),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,C(this.$$controls,(function(e){e.$setPristine()}))},$setUntouched:function(){C(this.$$controls,(function(e){e.$setUntouched()}))},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==Xi;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,Qi),this.$submitted=!0,C(this.$$controls,(function(e){e.$$setSubmitted&&e.$$setSubmitted()}))}},oo({clazz:eo,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&&(oe(r,n),0===r.length&&delete e[t])}});var to=function(e){return["$timeout","$parse",function(t,n){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:eo,compile:function(n,i){n.addClass(ta).addClass(Qo);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):_;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),O(s,Xi)}))}}}};function r(e){return""===e?n('this[""]').assign:n(e).assign||_}}]},no=to(),ro=to(!0);function io(e){e.$$classCache={},e.$$classCache[ea]=!(e.$$classCache[Qo]=e.$$element.hasClass(Qo))}function oo(e){var t=e.clazz,n=e.set,r=e.unset;function i(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 o(e,t,n){t=t?"-"+Ie(t,"-"):"",i(e,Qo+t,!0===n),i(e,ea+t,!1===n)}t.prototype.$setValidity=function(e,t,a){var s;L(t)?function(e,t,r,i){e[t]||(e[t]={});n(e[t],r,i)}(this,"$pending",e,a):function(e,t,n,i){e[t]&&r(e[t],n,i);ao(e[t])&&(e[t]=void 0)}(this,"$pending",e,a),X(t)?t?(r(this.$error,e,a),n(this.$$success,e,a)):(n(this.$error,e,a),r(this.$$success,e,a)):(r(this.$error,e,a),r(this.$$success,e,a)),this.$pending?(i(this,Zi,!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(i(this,Zi,!1),this.$valid=ao(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),o(this,e,s=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,s,this)}}function ao(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var so=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,uo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,lo=/^(?=.{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])?)*$/,co=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,fo=/^(\d{4,})-(\d{2})-(\d{2})$/,po=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ho=/^(\d{4,})-W(\d\d)$/,vo=/^(\d{4,})-(\d\d)$/,mo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,$o="keydown wheel mousedown",go=Ue();C("date,datetime-local,month,time,week".split(","),(function(e){go[e]=!0}));var yo={text:function(e,t,n,r,i,o){wo(e,t,n,r,i,o),bo(r)},date:Co("date",fo,xo(fo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Co("datetimelocal",po,xo(po,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Co("time",mo,xo(mo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Co("week",ho,(function(e,t){if(B(e))return e;if(H(e)){ho.lastIndex=0;var n=ho.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=Vi(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:Co("month",vo,xo(vo,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o,a,s){var u;if(So(e,t,n,r,"number"),ko(r),wo(e,t,n,r,i,o),R(n.min)||n.ngMin){var l=n.min||s(n.ngMin)(e);u=Ao(l),r.$validators.min=function(e,t){return r.$isEmpty(t)||L(u)||t>=u},n.$observe("min",(function(e){e!==l&&(u=Ao(e),l=e,r.$validate())}))}if(R(n.max)||n.ngMax){var c=n.max||s(n.ngMax)(e),f=Ao(c);r.$validators.max=function(e,t){return r.$isEmpty(t)||L(f)||t<=f},n.$observe("max",(function(e){e!==c&&(f=Ao(e),c=e,r.$validate())}))}if(R(n.step)||n.ngStep){var d=n.step||s(n.ngStep)(e),p=Ao(d);r.$validators.step=function(e,t){return r.$isEmpty(t)||L(p)||Oo(t,u||0,p)},n.$observe("step",(function(e){e!==d&&(p=Ao(e),d=e,r.$validate())}))}},url:function(e,t,n,r,i,o){wo(e,t,n,r,i,o),bo(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||uo.test(n)}},email:function(e,t,n,r,i,o){wo(e,t,n,r,i,o),bo(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||lo.test(n)}},radio:function(e,t,n,r){var i=!n.ngTrim||"false"!==ee(n.ngTrim);L(n.name)&&t.attr("name",A());t.on("change",(function(e){var o;t[0].checked&&(o=n.value,i&&(o=ee(o)),r.$setViewValue(o,e&&e.type))})),r.$render=function(){var e=n.value;i&&(e=ee(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,o){So(e,t,n,r,"range"),ko(r),wo(e,t,n,r,i,o);var a=r.$$hasNativeValidators&&"range"===t[0].type,s=a?0:void 0,u=a?100:void 0,l=a?1:void 0,c=t[0].validity,f=R(n.min),d=R(n.max),p=R(n.step),h=r.$render;r.$render=a&&R(c.rangeUnderflow)&&R(c.rangeOverflow)?function(){h(),r.$setViewValue(t.val())}:h,f&&(s=Ao(n.min),r.$validators.min=a?function(){return!0}:function(e,t){return r.$isEmpty(t)||L(s)||t>=s},v("min",(function(e){if(s=Ao(e),j(r.$modelValue))return;if(a){var n=t.val();s>n&&(n=s,t.val(n)),r.$setViewValue(n)}else r.$validate()})));d&&(u=Ao(n.max),r.$validators.max=a?function(){return!0}:function(e,t){return r.$isEmpty(t)||L(u)||t<=u},v("max",(function(e){if(u=Ao(e),j(r.$modelValue))return;if(a){var n=t.val();u<n&&(t.val(u),n=u<s?s:u),r.$setViewValue(n)}else r.$validate()})));p&&(l=Ao(n.step),r.$validators.step=a?function(){return!c.stepMismatch}:function(e,t){return r.$isEmpty(t)||L(l)||Oo(t,s||0,l)},v("step",(function(e){if(l=Ao(e),j(r.$modelValue))return;a?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate()})));function v(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,(function(e){e!==i&&(i=e,r(e))}))}},checkbox:function(e,t,n,r,i,o,a,s){var u=Mo(s,e,"ngTrueValue",n.ngTrueValue,!0),l=Mo(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 ue(e,u)})),r.$parsers.push((function(e){return e?u:l}))},hidden:_,button:_,submit:_,reset:_,file:_};function bo(e){e.$formatters.push((function(t){return e.$isEmpty(t)?t:t.toString()}))}function wo(e,t,n,r,i,o){var a,s=d(t[0].type);if(!i.android){var u=!1;t.on("compositionstart",(function(){u=!0})),t.on("compositionupdate",(function(e){(L(e.data)||""===e.data)&&(u=!1)})),t.on("compositionend",(function(){u=!1,l()}))}var l=function(e){if(a&&(o.defer.cancel(a),a=null),!u){var i=t.val(),l=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=ee(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var f=function(e,t,n){a||(a=o.defer((function(){a=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||f(e,this,this.value)})),i.hasEvent("paste")&&t.on("paste cut drop",f)}t.on("change",l),go[s]&&r.$$hasNativeValidators&&s===n.type&&t.on($o,(function(e){if(!a){var t=this[c],n=t.badInput,r=t.typeMismatch;a=o.defer((function(){a=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 xo(e,t){return function(n,r){var i,o;if(B(n))return n;if(H(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),so.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n)){i.shift(),o=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},C(i,(function(e,n){n<t.length&&(o[t[n]]=+e)}));var a=new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0);return o.yyyy<100&&a.setFullYear(o.yyyy),a}}return NaN}}function Co(e,t,n,r){return function(i,o,a,s,u,l,c,f){So(i,o,a,s,e),wo(0,o,a,s,u,l);var d,p,h="time"===e||"datetimelocal"===e;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:t.test(n)?w(n,d):void(s.$$parserName=e)})),s.$formatters.push((function(e){if(e&&!B(e))throw sa("datefmt","Expected `{0}` to be a date",e);if(y(e)){d=e;var t=s.$options.getOption("timezone");return t&&(p=t,d=be(d,t,!0)),function(e,t){var n=r;h&&H(s.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=c("date")(e,n,t);h&&s.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,""));return i}(e,t)}return d=null,p=null,""})),R(a.min)||a.ngMin){var v=a.min||f(a.ngMin)(i),m=b(v);s.$validators.min=function(e){return!y(e)||L(m)||n(e)>=m},a.$observe("min",(function(e){e!==v&&(m=b(e),v=e,s.$validate())}))}if(R(a.max)||a.ngMax){var $=a.max||f(a.ngMax)(i),g=b($);s.$validators.max=function(e){return!y(e)||L(g)||n(e)<=g},a.$observe("max",(function(e){e!==$&&(g=b(e),$=e,s.$validate())}))}function y(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function b(e){return R(e)&&!B(e)?w(e)||void 0:e}function w(e,t){var r=s.$options.getOption("timezone");p&&p!==r&&(t=ye(t,ge(p)));var i=n(e,t);return!isNaN(i)&&r&&(i=be(i,r)),i}}}function So(e,t,n,r,i){var o=t[0];(r.$$hasNativeValidators=U(o.validity))&&r.$parsers.push((function(e){var n=t.prop(c)||{};if(!n.badInput&&!n.typeMismatch)return e;r.$$parserName=i}))}function ko(e){e.$parsers.push((function(t){return e.$isEmpty(t)?null:co.test(t)?parseFloat(t):void(e.$$parserName="number")})),e.$formatters.push((function(t){if(!e.$isEmpty(t)){if(!F(t))throw sa("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}))}function Ao(e){return R(e)&&!F(e)&&(e=parseFloat(e)),j(e)?void 0:e}function To(e){return(0|e)===e}function Eo(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 Oo(e,t,n){var r=Number(e),i=!To(r),o=!To(t),a=!To(n);if(i||o||a){var s=i?Eo(r):0,u=o?Eo(t):0,l=a?Eo(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 Mo(e,t,n,r,i){var o;if(R(r)){if(!(o=e(r)).constant)throw sa("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}var Do=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(yo[d(a.type)]||yo.text)(i,o,a,s[0],t,e,n,r)}}}}],jo=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"===d(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)}}}}},Io=/^(true|false|\d+)$/,_o=function(){function e(e,t,n){var r=R(n)?n:9===o?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return Io.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)}))}}}},Vo=["$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=qe(e)}))}}}}],No=["$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=L(e)?"":e}))}}}}],Po=["$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)||"")}))}}}}],Lo=N({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push((function(){e.$eval(n.ngChange)}))}});function Ro(e,t){var n;return e="ngClass"+e,["$parse",function(a){return{restrict:"AC",link:function(s,u,l){var c,f=u.data("$classCounts"),d=!0;function p(e,t){var n=[];return C(e,(function(e){(t>0||f[e])&&(f[e]=(f[e]||0)+t,f[e]===+(t>0)&&n.push(e))})),n.join(" ")}f||(f=Ue(),u.data("$classCounts",f)),"ngClass"!==e&&(n||(n=a("$index",(function(e){return 1&e}))),s.$watch(n,(function(e){e===t?(n=p(i(n=c),1),l.$addClass(n)):function(e){e=p(i(e),-1),l.$removeClass(e)}(c);var n;d=e}))),s.$watch(a(l[e],o),(function(e){d===t&&function(e,t){var n=i(e),o=i(t),a=r(n,o),s=r(o,n),u=p(a,-1),c=p(s,1);l.$addClass(c),l.$removeClass(u)}(c,e);c=e}))}}}];function r(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 i(e){return e&&e.split(" ")}function o(e){if(!e)return e;var t=e;return z(e)?t=e.map(o).join(" "):U(e)?t=Object.keys(e).filter((function(t){return e[t]})).join(" "):H(e)||(t=e+""),t}}var Uo=Ro("",!0),qo=Ro("Odd",0),Ho=Ro("Even",1),Fo=Ki({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Bo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],zo={},Wo={blur:!0,focus:!0};function Go(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)}))}}}}C("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(e){var t=kn("ng-"+e);zo[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return Go(n,r,i,t,e,Wo[e])}]}));var Ko=["$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=Re(s.clone),e.leave(l).done((function(e){!1!==e&&(l=null)})),s=null))}))}}}],Jo=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:b.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,v=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||!R(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){v(),n.enter(e,null,i).done(u)}));p=s,(f=t).$emit("$includeContentLoaded",o),r.$eval(a)}}),(function(){r.$$destroyed||d===h&&(v(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):(v(),l.template=null)}))}}}}],Yo=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if($.call(r[0]).match(/SVG/))return r.empty(),void t(vt(o.template,e.document).childNodes)(n,(function(e){r.append(e)}),{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],Xo=Ki({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Zo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",o="false"!==n.ngTrim,a=o?ee(i):i;r.$parsers.push((function(e){if(!L(e)){var t=[];return e&&C(e.split(a),(function(e){e&&t.push(o?ee(e):e)})),t}})),r.$formatters.push((function(e){if(z(e))return e.join(i)})),r.$isEmpty=function(e){return!e||!e.length}}}},Qo="ng-valid",ea="ng-invalid",ta="ng-pristine",na="ng-dirty",ra="ng-untouched",ia="ng-touched",oa="ng-empty",aa="ng-not-empty",sa=i("ngModel");function ua(e,t,n,r,i,o,a,s,u){var l;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=Xi,this.$options=la,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,io(this),(l=this).$$scope.$watch((function(e){var t=l.$$ngModelGet(e);return t===l.$modelValue||l.$modelValue!=l.$modelValue&&t!=t||l.$$setModelValue(t),t}))}ua.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],ua.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 G(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){G(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw sa("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,we(this.$$element))},$render:_,$isEmpty:function(e){return L(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,aa),this.$$animate.addClass(this.$$element,oa)):(this.$$animate.removeClass(this.$$element,oa),this.$$animate.addClass(this.$$element,aa))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,na),this.$$animate.addClass(this.$$element,ta)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,ta),this.$$animate.addClass(this.$$element,na),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,ra,ia)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,ia,ra)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!j(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){this.$$currentValidationRunId++;var r,i,o=this.$$currentValidationRunId,a=this;(function(){var e=a.$$parserName;if(!L(a.$$parserValid))return a.$$parserValid||(C(a.$validators,(function(e,t){s(t,null)})),C(a.$asyncValidators,(function(e,t){s(t,null)}))),s(e,a.$$parserValid),a.$$parserValid;s(e,null);return!0})()?!function(){var n=!0;if(C(a.$validators,(function(r,i){var o=Boolean(r(e,t));n=n&&o,s(i,o)})),!n)return C(a.$asyncValidators,(function(e,t){s(t,null)})),!1;return!0}()?u(!1):(r=[],i=!0,C(a.$asyncValidators,(function(n,o){var a=n(e,t);if(!Z(a))throw sa("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),r.push(a.then((function(){s(o,!0)}),(function(){i=!1,s(o,!1)})))})),r.length?a.$$q.all(r).then((function(){u(i)}),_):u(!0)):u(!1);function s(e,t){o===a.$$currentValidationRunId&&a.$setValidity(e,t)}function u(e){o===a.$$currentValidationRunId&&n(e)}},$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(){var e=this.$$lastCommittedViewValue,t=this;if(this.$$parserValid=!L(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(L(e=this.$parsers[n](e))){this.$$parserValid=!1;break}j(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function o(){t.$modelValue!==r&&t.$$writeModelToScope()}this.$$rawModelValue=e,i&&(this.$modelValue=e,o()),this.$$runValidators(e,this.$$lastCommittedViewValue,(function(n){i||(t.$modelValue=n?e:void 0,o())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),C(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");F(t[e])?t=t[e]:F(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:F(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,_))},$$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)}},oo({clazz:ua,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var la,ca=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ua,priority:1,compile:function(t){return t.addClass(ta).addClass(ra).addClass(Qo),{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){var o=i[0];function a(){o.$setTouched()}o.$$setUpdateOnEvents(),n.on("blur",(function(){o.$touched||(e.$$phase?t.$evalAsync(a):t.$apply(a))}))}}}}}],fa=/(\s+|^)default(\s+|$)/;function da(e){this.$$options=e}da.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return C(e=O({},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]=ee(n.replace(fa,(function(){return e.updateOnDefault=!0," "}))))}),this),t&&(delete e["*"],ha(e,this.$$options)),ha(e,la.$$options),new da(e)}},la=new da({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var pa=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:la,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}};function ha(e,t){C(t,(function(t,n){R(e[n])||(e[n]=t)}))}var va=Ki({terminal:!0,priority:1e3}),ma=i("ngOptions"),$a=/^\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]+?))?$/,ga=["$compile","$document","$parse",function(t,n,r){var i=e.document.createElement("option"),o=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=_},post:function(e,s,u,l){for(var c=l[0],f=l[1],d=u.multiple,p=0,h=s.children(),v=h.length;p<v;p++)if(""===h[p].value){c.hasEmptyOption=!0,c.emptyOption=h.eq(p);break}s.empty();var m,$=!!c.emptyOption;a(i.cloneNode(!1)).val("?");var g=function(e,t,n){var i=e.match($a);if(!i)throw ma("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,we(t));var o=i[5]||i[7],a=i[6],s=/ as /.test(i[0])&&i[1],u=i[9],l=r(i[2]?i[1]:o),c=s&&r(s)||l,f=u&&r(u),d=u?function(e,t){return f(n,t)}:function(e){return Ft(e)},p=function(e,t){return d(e,y(e,t))},h=r(i[2]||i[1]),v=r(i[3]||""),m=r(i[4]||""),$=r(i[8]),g={},y=a?function(e,t){return g[a]=t,g[o]=e,g}:function(e){return g[o]=e,g};function b(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function w(e){var t;if(!a&&x(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}return{trackBy:u,getTrackByValue:p,getWatchables:r($,(function(e){for(var t=[],r=w(e=e||[]),o=r.length,a=0;a<o;a++){var s=e===r?a:r[a],u=e[s],l=y(u,s),c=d(u,l);if(t.push(c),i[2]||i[1]){var f=h(n,l);t.push(f)}if(i[4]){var p=m(n,l);t.push(p)}}return t})),getOptions:function(){for(var e=[],t={},r=$(n)||[],i=w(r),o=i.length,a=0;a<o;a++){var s=r===i?a:i[a],l=r[s],f=y(l,s),g=c(n,f),x=d(g,f),C=new b(x,g,h(n,f),v(n,f),m(n,f));e.push(C),t[x]=C}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[p(e)]},getViewValueFromOption:function(e){return u?ae(e.viewValue):e.viewValue}}}}}(u.ngOptions,s,e),y=n[0].createDocumentFragment();function b(e,t){var n=i.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 w(e){var t=m.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}c.generateUnknownOptionValue=function(e){return"?"},d?(c.writeValue=function(e){if(m){var t=e&&e.map(w)||[];m.items.forEach((function(e){e.element.selected&&!ie(t,e)&&(e.element.selected=!1)}))}},c.readValue=function(){var e=s.val()||[],t=[];return C(e,(function(e){var n=m.selectValueMap[e];n&&!n.disabled&&t.push(m.getViewValueFromOption(n))})),t},g.trackBy&&e.$watchCollection((function(){if(z(f.$viewValue))return f.$viewValue.map((function(e){return g.getTrackByValue(e)}))}),(function(){f.$render()}))):(c.writeValue=function(e){if(m){var t=s[0].options[s[0].selectedIndex],n=m.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(c.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(e)}},c.readValue=function(){var e=m.selectValueMap[s.val()];return e&&!e.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),m.getViewValueFromOption(e)):null},g.trackBy&&e.$watch((function(){return g.getTrackByValue(f.$viewValue)}),(function(){f.$render()}))),$&&(t(c.emptyOption)(e),s.prepend(c.emptyOption),c.emptyOption[0].nodeType===Be?(c.hasEmptyOption=!1,c.registerOption=function(e,t){""===t.val()&&(c.hasEmptyOption=!0,c.emptyOption=t,c.emptyOption.removeClass("ng-scope"),f.$render(),t.on("$destroy",(function(){var e=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,e&&f.$render()})))}):c.emptyOption.removeClass("ng-scope")),e.$watchCollection(g.getWatchables,(function(){var e=m&&c.readValue();if(m)for(var t=m.items.length-1;t>=0;t--){var n=m.items[t];R(n.group)?It(n.element.parentNode):It(n.element)}m=g.getOptions();var r={};if(m.items.forEach((function(e){var t;R(e.group)?((t=r[e.group])||(t=o.cloneNode(!1),y.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t),b(e,t)):b(e,y)})),s[0].appendChild(y),f.$render(),!f.$isEmpty(e)){var i=c.readValue();(g.trackBy||d?ue(e,i):e===i)||(f.$setViewValue(i),f.$render())}}))}}}}],ya=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(o,a,s){var u,l=s.count,c=s.$attr.when&&a.attr(s.$attr.when),f=s.offset||0,p=o.$eval(c)||{},h={},v=t.startSymbol(),m=t.endSymbol(),$=v+l+"-"+f+m,g=b.noop;function y(e){a.text(e||"")}C(s,(function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+d(n[2]);p[r]=a.attr(s.$attr[t])}})),C(p,(function(e,n){h[n]=t(e.replace(r,$))})),o.$watch(l,(function(t){var r=parseFloat(t),i=j(r);if(i||r in p||(r=e.pluralCat(r-f)),!(r===u||i&&j(u))){g();var a=h[r];L(a)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+c),g=_,y()):g=o.$watch(a,y),u=r}}))}}}],ba=i("ngRef"),wa=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=kn(re(t)),i=e(n.ngRef),o=i.assign||function(){throw ba("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 ba("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)}))}}}}],xa=["$parse","$animate","$compile",function(e,t,n){var r="$$NG_REMOVED",o=i("ngRepeat"),a=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))},s=function(e){return e.clone[0]},u=function(e){return e.clone[e.clone.length-1]},l=function(e,t,n){return Ft(n)},c=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,d){var p=d.ngRepeat,h=n.$$createComment("end ngRepeat",p),v=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!v)throw o("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var m=v[1],$=v[2],g=v[3],y=v[4];if(!(v=m.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw o("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var b,w=v[3]||v[1],S=v[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 o("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);if(y){var k={$id:Ft},A=e(y);b=function(e,t,n,r){return S&&(k[S]=t),k[w]=n,k.$index=r,A(e,k)}}return function(e,n,i,d,v){var m=Ue();e.$watchCollection($,(function(i){var d,$,y,A,T,E,O,M,D,j,I,_,V=n[0],N=Ue();if(g&&(e[g]=i),x(i))D=i,M=b||l;else for(var P in M=b||c,D=[],i)f.call(i,P)&&"$"!==P.charAt(0)&&D.push(P);for(A=D.length,I=new Array(A),d=0;d<A;d++)if(T=i===D?d:D[d],E=i[T],O=M(e,T,E,d),m[O])j=m[O],delete m[O],N[O]=j,I[d]=j;else{if(N[O])throw C(I,(function(e){e&&e.scope&&(m[e.id]=e)})),o("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,O,E);I[d]={id:O,scope:void 0,clone:void 0},N[O]=!0}for(var L in k&&(k[w]=void 0),m){if(_=Re((j=m[L]).clone),t.leave(_),_[0].parentNode)for(d=0,$=_.length;d<$;d++)_[d][r]=!0;j.scope.$destroy()}for(d=0;d<A;d++)if(T=i===D?d:D[d],E=i[T],(j=I[d]).scope){y=V;do{y=y.nextSibling}while(y&&y[r]);s(j)!==y&&t.move(Re(j.clone),null,V),V=u(j),a(j.scope,d,w,E,S,T,A)}else v((function(e,n){j.scope=n;var r=h.cloneNode(!1);e[e.length++]=r,t.enter(e,null,V),V=r,j.clone=e,N[j.id]=j,a(j.scope,d,w,E,S,T,A)}));m=N}))}}}}],Ca="ng-hide",Sa="ng-hide-animate",ka=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,(function(t){e[t?"removeClass":"addClass"](n,Ca,{tempClasses:Sa})}))}}}],Aa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,(function(t){e[t?"addClass":"removeClass"](n,Ca,{tempClasses:Sa})}))}}}],Ta=Ki((function(e,t,n){e.$watchCollection(n.ngStyle,(function(e,n){n&&e!==n&&C(n,(function(e,n){t.css(n,"")})),e&&t.css(e)}))})),Ea=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var a=i.ngSwitch||i.on,s=[],u=[],l=[],c=[],f=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(a,(function(n){for(var r,i;l.length;)e.cancel(l.pop());for(r=0,i=c.length;r<i;++r){var a=Re(u[r].clone);c[r].$destroy(),(l[r]=e.leave(a)).done(f(l,r))}u.length=0,c.length=0,(s=o.cases["!"+n]||o.cases["?"])&&C(s,(function(n){n.transclude((function(r,i){c.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};u.push(a),e.enter(r,o.parent(),o)}))}))}))}}}],Oa=Ki({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){var o=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(e,t,n){return n[t-1]!==e}));C(o,(function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})}))}}),Ma=Ki({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})}}),Da=i("ngTransclude"),ja=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){if(!o)throw Da("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",we(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var a=r.ngTransclude||r.ngTranscludeSlot;function s(){n(e,(function(e){t.append(e)}))}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!==Fe||r.nodeValue.trim())return!0}}(e)?t.append(e):(s(),n.$destroy())}),null,a),a&&!o.isSlotFilled(a)&&s()}}}}],Ia=["$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)}}}}],_a={$setViewValue:_,$render:_};function Va(e,t){e.prop("selected",t),e.attr("selected",t)}var Na=["$element","$scope",function(t,n){var r=this,i=new Wt;r.selectValueMap={},r.ngModelCtrl=_a,r.multiple=!1,r.unknownOption=a(e.document.createElement("option")),r.hasEmptyOption=!1,r.emptyOption=void 0,r.renderUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),t.prepend(r.unknownOption),Va(r.unknownOption,!0),t.val(n)},r.updateUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),Va(r.unknownOption,!0),t.val(n)},r.generateUnknownOptionValue=function(e){return"? "+Ft(e)+" ?"},r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.selectEmptyOption=function(){r.emptyOption&&(t.val(""),Va(r.emptyOption,!0))},r.unselectEmptyOption=function(){r.hasEmptyOption&&Va(r.emptyOption,!1)},n.$on("$destroy",(function(){r.renderUnknownOption=_})),r.readValue=function(){var e=t.val(),n=e in r.selectValueMap?r.selectValueMap[e]:e;return r.hasOption(n)?n:null},r.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&Va(a(n),!1),r.hasOption(e)){r.removeUnknownOption();var i=Ft(e);t.val(i in r.selectValueMap?i:e);var o=t[0].options[t[0].selectedIndex];Va(a(o),!0)}else r.selectUnknownOrEmptyOption(e)},r.addOption=function(e,t){if(t[0].nodeType!==Be){Le(e,'"option value"'),""===e&&(r.hasEmptyOption=!0,r.emptyOption=t);var n=i.get(e)||0;i.set(e,n+1),s()}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.delete(e),""===e&&(r.hasEmptyOption=!1,r.emptyOption=void 0)):i.set(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.$hasEmptyOption=function(){return r.hasEmptyOption},r.$isUnknownOptionSelected=function(){return t[0].options[0]===r.unknownOption[0]},r.$isEmptyOptionSelected=function(){return r.hasEmptyOption&&t[0].options[t[0].selectedIndex]===r.emptyOption[0]},r.selectUnknownOrEmptyOption=function(e){null==e&&r.emptyOption?(r.removeUnknownOption(),r.selectEmptyOption()):r.unknownOption.parent().length?r.updateUnknownOption(e):r.renderUnknownOption(e)};var o=!1;function s(){o||(o=!0,n.$$postDigest((function(){o=!1,r.ngModelCtrl.$render()})))}var u=!1;function l(e){u||(u=!0,n.$$postDigest((function(){n.$$destroyed||(u=!1,r.ngModelCtrl.$setViewValue(r.readValue()),e&&r.ngModelCtrl.$render())})))}r.registerOption=function(e,t,n,i,o){var a,u;n.$attr.ngValue?n.$observe("value",(function(e){var n,i=t.prop("selected");R(u)&&(r.removeOption(a),delete r.selectValueMap[u],n=!0),u=Ft(e),a=e,r.selectValueMap[u]=e,r.addOption(e,t),t.attr("value",u),n&&i&&l()})):i?n.$observe("value",(function(e){var n;r.readValue();var i=t.prop("selected");R(a)&&(r.removeOption(a),n=!0),a=e,r.addOption(e,t),n&&i&&l()})):o?e.$watch(o,(function(e,i){n.$set("value",e);var o=t.prop("selected");i!==e&&r.removeOption(i),r.addOption(e,t),i&&o&&l()})):r.addOption(n.value,t);n.$observe("disabled",(function(e){("true"===e||e&&t.prop("selected"))&&(r.multiple?l(!0):(r.ngModelCtrl.$setViewValue(null),r.ngModelCtrl.$render()))})),t.on("$destroy",(function(){var e=r.readValue(),t=n.value;r.removeOption(t),s(),(r.multiple&&e&&-1!==e.indexOf(t)||e===t)&&l(!0)}))}}],Pa=function(){return{restrict:"E",require:["select","?ngModel"],controller:Na,priority:1,link:{pre:function(e,t,n,r){var i=r[0],o=r[1];if(!o)return void(i.registerOption=_);if(i.ngModelCtrl=o,t.on("change",(function(){i.removeUnknownOption(),e.$apply((function(){o.$setViewValue(i.readValue())}))})),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return C(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){C(t.find("option"),(function(t){var n=!!e&&(ie(e,t.value)||ie(e,i.selectValueMap[t.value]));n!==t.selected&&Va(a(t),n)}))};var s,u=NaN;e.$watch((function(){u!==o.$viewValue||ue(s,o.$viewValue)||(s=Ge(o.$viewValue),o.$render()),u=o.$viewValue})),o.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,r){var i=r[1];if(!i)return;var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}},La=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return R(n.ngValue)||(R(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o="$selectController",a=t.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(e,t,n,r,i)}}}}],Ra=["$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())}))}}}}],Ua=["$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)&&l.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=Fa(a,r,t);n.$observe("pattern",(function(e){var n=s;s=Fa(e,r,t),(n&&n.toString())!==(s&&s.toString())&&o.$validate()})),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||L(s)||s.test(t)}}}}}}],qa=["$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=Ba(o);r.$observe("maxlength",(function(e){o!==e&&(a=Ba(e),o=e,i.$validate())})),i.$validators.maxlength=function(e,t){return a<0||i.$isEmpty(t)||t.length<=a}}}}}],Ha=["$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=Ba(o)||-1;r.$observe("minlength",(function(e){o!==e&&(a=Ba(e)||-1,o=e,i.$validate())})),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=a}}}}}];function Fa(e,t,n){if(e){if(H(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,we(n));return e}}function Ba(e){var t=D(e);return j(t)?-1:t}e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var t;if(!_e){var n=ce();(s=L(n)?e.jQuery:n?e[n]:void 0)&&s.fn.on?(a=s,O(s.fn,{scope:Vt.scope,isolateScope:Vt.isolateScope,controller:Vt.controller,injector:Vt.injector,inheritedData:Vt.inheritedData})):a=$t,t=a.cleanData,a.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(a._data(r)||{}).events)&&n.$destroy&&a(r).triggerHandler("$destroy");t(e)},b.element=a,_e=!0}}(),function(t){O(t,{errorHandlingConfig:n,bootstrap:Oe,copy:ae,extend:O,merge:M,equals:ue,element:a,forEach:C,injector:nn,noop:_,bind:pe,toJson:ve,fromJson:me,identity:V,isUndefined:L,isDefined:R,isString:H,isFunction:G,isObject:U,isNumber:F,isElement:ne,isArray:z,version:Je,isDate:B,callbacks:{$$counter:0},getTestability:De,reloadWithDebugInfo:Me,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Ve,$$minErr:i,$$csp:le,$$encodeUriSegment:Se,$$encodeUriQuery:ke,$$lowercase:d,$$stringify:qe,$$uppercase:p}),u=function(e){var t=i("$injector"),n=i("ng");function r(e,t,n){return e[t]||(e[t]=n())}var o=r(e,"angular",Object);return o.$$minErr=o.$$minErr||i,r(o,"module",(function(){var e={};return function(i,o,a){var s={};return function(e,t){if("hasOwnProperty"===e)throw n("badname","hasOwnProperty is not a valid {0} name","module")}(i),o&&e.hasOwnProperty(i)&&(e[i]=null),r(e,i,(function(){if(!o)throw t("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var e=[],r=[],u=[],l=f("$injector","invoke","push",r),c={_invokeQueue:e,_configBlocks:r,_runBlocks:u,info:function(e){if(R(e)){if(!U(e))throw n("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:o,name:i,provider:d("$provide","provider"),factory:d("$provide","factory"),service:d("$provide","service"),value:f("$provide","value"),constant:f("$provide","constant","unshift"),decorator:d("$provide","decorator",r),animation:d("$animateProvider","register"),filter:d("$filterProvider","register"),controller:d("$controllerProvider","register"),directive:d("$compileProvider","directive"),component:d("$compileProvider","component"),config:l,run:function(e){return u.push(e),this}};return a&&l(a),c;function f(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),c}}function d(t,n,r){return r||(r=e),function(e,o){return o&&G(o)&&(o.$$moduleName=i),r.push([t,n,arguments]),c}}}))}}))}(e),u("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Xr}),e.provider("$compile",wn).directive({a:Ji,input:Do,textarea:Do,form:no,script:Ia,select:Pa,option:La,ngBind:Vo,ngBindHtml:Po,ngBindTemplate:No,ngClass:Uo,ngClassEven:Ho,ngClassOdd:qo,ngCloak:Fo,ngController:Bo,ngForm:ro,ngHide:Aa,ngIf:Ko,ngInclude:Jo,ngInit:Xo,ngNonBindable:va,ngPluralize:ya,ngRef:wa,ngRepeat:xa,ngShow:ka,ngStyle:Ta,ngSwitch:Ea,ngSwitchWhen:Oa,ngSwitchDefault:Ma,ngOptions:ga,ngTransclude:ja,ngModel:ca,ngList:Zo,ngChange:Lo,pattern:Ua,ngPattern:Ua,required:Ra,ngRequired:Ra,minlength:Ha,ngMinlength:Ha,maxlength:qa,ngMaxlength:qa,ngValue:_o,ngModelOptions:pa}).directive({ngInclude:Yo,input:jo}).directive(Yi).directive(zo),e.provider({$anchorScroll:rn,$animate:fn,$animateCss:hn,$$animateJs:ln,$$animateQueue:cn,$$AnimateRunner:pn,$$animateAsyncRun:dn,$browser:mn,$cacheFactory:$n,$controller:Dn,$document:jn,$$isDocumentHidden:In,$exceptionHandler:_n,$filter:xi,$$forceReflow:Vn,$interpolate:er,$interval:nr,$$intervalFactory:rr,$http:Yn,$httpParamSerializer:Fn,$httpParamSerializerJQLike:Bn,$httpBackend:Zn,$xhrFactory:Xn,$jsonpCallbacks:ir,$location:wr,$log:xr,$parse:Hr,$rootScope:Yr,$q:Fr,$$q:Br,$sce:ii,$sceDelegate:ri,$sniffer:oi,$$taskTrackerFactory:ai,$templateCache:gn,$templateRequest:li,$$testability:ci,$timeout:di,$window:yi,$$rAF:Jr,$$jqLite:Ht,$$Map:Gt,$$cookieReader:wi})}]).info({angularVersion:"1.8.2"})}(b),b.module("ngLocale",[],["$provide",function(e){var t="one",n="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,r){var i=0|e,o=function(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}}(e,r);return 1==i&&0==o.v?t:n}})}]),a((function(){Ee(e.document,Oe)})))}(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";var n,r,i,o,a,s,u,l,c,f,d=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",(function(){var p=!1,h=!1;this.$get=["$$sanitizeUri",function(e){return p=!0,h&&r(k,C),function(t){var n=[];return c(t,f(n,(function(t,n){return!/^unsafe:/.test(e(t,n))}))),n.join("")}}],this.enableSvg=function(e){return a(e)?(h=e,this):h},this.addValidElements=function(e){return p||(o(e)&&(e={htmlElements:e}),j(C,e.svgElements),j($,e.htmlVoidElements),j(k,e.htmlVoidElements),j(k,e.htmlElements)),this},this.addValidAttrs=function(e){return p||r(O,D(e,!0)),this},n=t.bind,r=t.extend,i=t.forEach,o=t.isArray,a=t.isDefined,s=t.$$lowercase,u=t.noop,c=function(e,t){null==e?e="":"string"!=typeof e&&(e=""+e);var n=I(e);if(!n)return"";var r=5;do{if(0===r)throw d("uinput","Failed to sanitize html because the input is unstable");r--,e=n.innerHTML,n=I(e)}while(e!==n.innerHTML);var i=n.firstChild;for(;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),_(i.attributes));break;case 3:t.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),o=P("nextSibling",i))))for(;null==o&&(i=P("parentNode",i))!==n;)o=P("nextSibling",i),1===i.nodeType&&t.end(i.nodeName.toLowerCase());i=o}for(;i=n.firstChild;)n.removeChild(i)},f=function(e,t){var r=!1,o=n(e,e.push);return{start:function(e,n){e=s(e),!r&&S[e]&&(r=e),r||!0!==k[e]||(o("<"),o(e),i(n,(function(n,r){var i=s(r),a="img"===e&&"src"===i||"background"===i;!0!==O[i]||!0===A[i]&&!t(n,a)||(o(" "),o(r),o('="'),o(V(n)),o('"'))})),o(">"))},end:function(e){e=s(e),r||!0!==k[e]||!0===$[e]||(o("</"),o(e),o(">")),e==r&&(r=!1)},chars:function(e){r||o(V(e))}}},l=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var v=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=/([^#-~ |!])/g,$=M("area,br,col,hr,img,wbr"),g=M("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y=M("rp,rt"),b=r({},y,g),w=r({},g,M("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")),x=r({},y,M("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")),C=M("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"),S=M("script,style"),k=r({},$,w,x,b),A=M("background,cite,href,longdesc,src,xlink:href,xml:base"),T=M("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"),E=M("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),O=r({},A,E,T);function M(e,t){return D(e.split(","),t)}function D(e,t){var n,r={};for(n=0;n<e.length;n++)r[t?s(e[n]):e[n]]=!0;return r}function j(e,t){t&&t.length&&r(e,D(t))}var I=function(e,t){if(function(){try{return!!i("")}catch(e){return!1}}())return i;if(!t||!t.implementation)throw d("noinert","Can't create an inert html document");var n=t.implementation.createHTMLDocument("inert"),r=(n.documentElement||n.getDocumentElement()).querySelector("body");return function(e){r.innerHTML=e,t.documentMode&&N(r);return r};function i(t){t="<remove></remove>"+t;try{var n=(new e.DOMParser).parseFromString(t,"text/html").body;return n.firstChild.remove(),n}catch(e){return}}}(e,e.document);function _(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function V(e){return e.replace(/&/g,"&amp;").replace(v,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(m,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function N(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&&N(s),t=P("nextSibling",t)}}function P(e,t){var n=t[e];if(n&&l.call(t,n))throw d("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}})).info({angularVersion:"1.8.2"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,i=t.$$minErr("linky"),o=t.isDefined,a=t.isFunction,s=t.isObject,l=t.isString;return function(t,c,d){if(null==t||""===t)return t;if(!l(t))throw i("notstring","Expected string but received: {0}",t);for(var p,h,v,m=a(d)?d:s(d)?function(){return d}:function(){return{}},$=t,g=[];p=$.match(n);)h=p[0],p[2]||p[4]||(h=(p[3]?"http://":"mailto:")+h),v=p.index,y($.substr(0,v)),b(h,p[0].replace(r,"")),$=$.substring(v+p[0].length);return y($),e(g.join(""));function y(e){var t,n;e&&g.push((t=e,f(n=[],u).chars(t),n.join("")))}function b(e,t){var n,r=m(e);for(n in g.push("<a "),r)g.push(n+'="'+r[n]+'" ');o(c)&&!("target"in r)&&g.push('target="',c,'" '),g.push('href="',e.replace(/"/g,"&quot;"),'">'),y(t),g.push("</a>")}}}])}(window,window.angular),define("angularSanitize",(function(){})),function(e,t){"use strict";var n,r,i,o,a=1,s="-add",u="-remove",l="ng-animate",c="$$ngAnimateChildren";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?("-webkit-",n="WebkitTransition",r="webkitTransitionEnd transitionend"):(n="transition",r="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?("-webkit-",i="WebkitAnimation",o="webkitAnimationEnd animationend"):(i="animation",o="animationend");var f="Duration",d="Property",p="Delay",h="TimingFunction",v=i+p,m=i+f,$=n+p,g=n+f,y=t.$$minErr("ng");function b(e,t,n){if(!e)throw y("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function w(e,t){return e||t?e?t?(J(e)&&(e=e.join(" ")),J(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function x(e,t,n){var r="";return e=J(e)?e:e&&ee(e)&&e.length?e.split(/\s+/):[],K(e,(function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)})),r}function C(e){if(e instanceof ne)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===a)return e;break;default:return ne(S(e))}if(e.nodeType===a)return ne(e)}function S(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===a)return n}}function k(e){return function(t,n){n.addClass&&(!function(e,t,n){K(t,(function(t){e.addClass(t,n)}))}(e,t,n.addClass),n.addClass=null),n.removeClass&&(!function(e,t,n){K(t,(function(t){e.removeClass(t,n)}))}(e,t,n.removeClass),n.removeClass=null)}}function A(e){if(!(e=e||{}).$$prepared){var t=e.domOperation||re;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=re},e.$$prepared=!0}return e}function T(e,t){E(e,t),O(e,t)}function E(e,t){t.from&&(e.css(t.from),t.from=null)}function O(e,t){t.to&&(e.css(t.to),t.to=null)}function M(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),l=function(e,t,n){var r=1,i=-1,o={};e=l(e),t=l(t),K(t,(function(e,t){o[t]=r})),n=l(n),K(n,(function(e,t){o[t]=o[t]===r?null:i}));var a={addClass:"",removeClass:""};function l(e){ee(e)&&(e=e.split(" "));var t={};return K(e,(function(e){e.length&&(t[e]=!0)})),t}return K(o,(function(t,n){var o,l;t===r?(o="addClass",l=!e[n]||e[n+u]):t===i&&(o="removeClass",l=e[n]||e[n+s]),l&&(a[o].length&&(a[o]+=" "),a[o]+=n)})),a}(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=_(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var c=r.domOperation!==re?r.domOperation:null;return G(r,i),c&&(r.domOperation=c),l.addClass?r.addClass=l.addClass:r.addClass=null,l.removeClass?r.removeClass=l.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function D(e){return e instanceof ne?e[0]:e}function j(e,t){var n=t?"paused":"",r=i+"PlayState";return I(e,[r,n]),[r,n]}function I(e,t){var n=t[0],r=t[1];e.style[n]=r}function _(e,t){return e?t?e+" "+t:e:t}var V=function(e,t){var n=t?"-"+t+"s":"";return I(e,[$,n]),[$,n]},N=["$interpolate",function(e){return{link:function(t,n,r){var i=r.ngAnimateChildren;function o(e){e="on"===e||"true"===e,n.data(c,e)}ee(i)&&0===i.length?n.data(c,!0):(o(e(i)(t)),r.$observe("ngAnimateChildren",o))}}}],P="$$animateCss",L=1e3,R={transitionDuration:g,transitionDelay:$,transitionProperty:n+d,animationDuration:m,animationDelay:v,animationIterationCount:i+"IterationCount"},U={transitionDuration:g,transitionDelay:$,animationDuration:m,animationDelay:v};function q(e,t){return[t?v:$,e+"s"]}function H(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return K(n,(function(e,t){var n,o,a=i[e];if(a){var s=a.charAt(0);("-"===s||"+"===s||s>=0)&&(n=0,o=a.split(/\s*,\s*/),K(o,(function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,n=n?Math.max(e,n):e})),a=n),0===a&&(a=null),r[t]=a}})),r}function F(e){return 0===e||null!=e}function B(e,t){var r=n,i=e+"s";return t?r+=f:i+=" linear all",[r,i]}function z(e,t,n){K(n,(function(n){e[n]=Y(e[n])?e[n]:t.style.getPropertyValue(n)}))}var W,G,K,J,Y,X,Z,Q,ee,te,ne,re,ie=["$animateProvider",function(e){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,t,a,l,c,f,p,v,$){var g=k(t);var y=[];function b(e){y.push(e),v.waitUntilQuiet((function(){c.flush();for(var e=f(),t=0;t<y.length;t++)y[t](e);y.length=0}))}function w(t,n,r,i){var o=function(t,n,r,i,o){var a=c.get(r);a||"infinite"===(a=H(e,t,o)).animationIterationCount&&(a.animationIterationCount=1);var s=i||a.transitionDuration>0||a.animationDuration>0;return c.put(r,a,s),a}(t,0,r,i,R),a=o.animationDelay,s=o.transitionDelay;return o.maxDelay=a&&s?Math.max(a,s):a||s,o.maxDuration=Math.max(o.animationDuration*o.animationIterationCount,o.transitionDuration),o}return function(f,v){var y=v||{};y.$$prepared||(y=A(W(y)));var C={},S=D(f);if(!S||!S.parentNode||!$.enabled())return Ee();var k,M,_,N,R,G,Y,X,Z,Q,ee=[],te=(f.attr("class"),function(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}(y)),ne=[];if(0===y.duration||!p.animations&&!p.transitions)return Ee();var ie=y.event&&J(y.event)?y.event.join(" "):y.event,oe=ie&&y.structural,ae="",se="";oe?ae=x(ie,"ng-",!0):ie&&(ae=ie),y.addClass&&(se+=x(y.addClass,s)),y.removeClass&&(se.length&&(se+=" "),se+=x(y.removeClass,u)),y.applyClassesEarly&&se.length&&g(f,y);var ue=[ae,se].join(" ").trim(),le=te.to&&Object.keys(te.to).length>0;if(!((y.keyframeStyle||"").length>0)&&!le&&!ue)return Ee();var ce,fe,de=c.cacheKey(S,ie,y.addClass,y.removeClass);if(c.containsCachedAnimationWithoutDuration(de))return ue=null,Ee();if(y.stagger>0){var pe=parseFloat(y.stagger);ce={transitionDelay:pe,animationDelay:pe,transitionDuration:0,animationDuration:0}}else ce=function(n,r,i,o){var a,s="stagger-"+i;if(c.count(i)>0&&!(a=c.get(s))){var u=x(r,"-stagger");t.addClass(n,u),(a=H(e,n,o)).animationDuration=Math.max(a.animationDuration,0),a.transitionDuration=Math.max(a.transitionDuration,0),t.removeClass(n,u),c.put(s,a,!0)}return a||{}}(S,ue,de,U);if(y.$$skipPreparationClasses||t.addClass(f,ue),y.transitionStyle){var he=[n,y.transitionStyle];I(S,he),ee.push(he)}if(y.duration>=0){fe=S.style[n].length>0;var ve=B(y.duration,fe);I(S,ve),ee.push(ve)}if(y.keyframeStyle){var me=[i,y.keyframeStyle];I(S,me),ee.push(me)}var $e=ce?y.staggerIndex>=0?y.staggerIndex:c.count(de):0,ge=0===$e;ge&&!y.skipBlocking&&V(S,9999);var ye=w(S,0,de,!oe),be=ye.maxDelay;G=Math.max(be,0),X=ye.maxDuration;var we={};if(we.hasTransitions=ye.transitionDuration>0,we.hasAnimations=ye.animationDuration>0,we.hasTransitionAll=we.hasTransitions&&"all"===ye.transitionProperty,we.applyTransitionDuration=le&&(we.hasTransitions&&!we.hasTransitionAll||we.hasAnimations&&!we.hasTransitions),we.applyAnimationDuration=y.duration&&we.hasAnimations,we.applyTransitionDelay=F(y.delay)&&(we.applyTransitionDuration||we.hasTransitions),we.applyAnimationDelay=F(y.delay)&&we.hasAnimations,we.recalculateTimingStyles=se.length>0,(we.applyTransitionDuration||we.applyAnimationDuration)&&(X=y.duration?parseFloat(y.duration):X,we.applyTransitionDuration&&(we.hasTransitions=!0,ye.transitionDuration=X,fe=S.style[n+d].length>0,ee.push(B(X,fe))),we.applyAnimationDuration&&(we.hasAnimations=!0,ye.animationDuration=X,ee.push([m,X+"s"]))),0===X&&!we.recalculateTimingStyles)return Ee();var xe,Ce=x(ue,"-active");null!=y.delay&&("boolean"!=typeof y.delay&&(xe=parseFloat(y.delay),G=Math.max(xe,0)),we.applyTransitionDelay&&ee.push(q(xe)),we.applyAnimationDelay&&ee.push(q(xe,!0)));return null==y.duration&&ye.transitionDuration>0&&(we.recalculateTimingStyles=we.recalculateTimingStyles||ge),Y=G*L,Z=X*L,y.skipBlocking||(we.blockTransition=ye.transitionDuration>0,we.blockKeyframeAnimation=ye.animationDuration>0&&ce.animationDelay>0&&0===ce.animationDuration),y.from&&(y.cleanupStyles&&z(C,S,Object.keys(y.from)),E(f,y)),we.blockTransition||we.blockKeyframeAnimation?Te(X):y.skipBlocking||V(S,!1),{$$willAnimate:!0,end:Se,start:function(){if(!k)return N=new a(R={end:Se,cancel:ke,resume:null,pause:null}),b(Me),N}};function Se(){Ae()}function ke(){Ae(!0)}function Ae(e){if(!(k||_&&M)){k=!0,M=!1,ue&&!y.$$skipPreparationClasses&&t.removeClass(f,ue),Ce&&t.removeClass(f,Ce),j(S,!1),V(S,!1),K(ee,(function(e){S.style[e[0]]=""})),g(f,y),T(f,y),Object.keys(C).length&&K(C,(function(e,t){e?S.style.setProperty(t,e):S.style.removeProperty(t)})),y.onDone&&y.onDone(),ne&&ne.length&&f.off(ne.join(" "),Oe);var n=f.data(P);n&&(l.cancel(n[0].timer),f.removeData(P)),N&&N.complete(!e)}}function Te(e){we.blockTransition&&V(S,e),we.blockKeyframeAnimation&&j(S,!!e)}function Ee(){return N=new a({end:Se,cancel:ke}),b(re),Ae(),{$$willAnimate:!1,start:function(){return N},end:Se}}function Oe(e){e.stopPropagation();var t=e.originalEvent||e;if(t.target===S){var n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-Q,0)>=Y&&r>=X&&(_=!0,Ae())}}function Me(){if(!k)if(S.parentNode){var e=function(e){if(_)M&&e&&(M=!1,Ae());else if(M=!e,ye.animationDuration){var t=j(S,M);M?ee.push(t):(r=t,i=(n=ee).indexOf(r),r>=0&&n.splice(i,1))}var n,r,i},a=$e>0&&(ye.transitionDuration&&0===ce.transitionDuration||ye.animationDuration&&0===ce.animationDuration)&&Math.max(ce.animationDelay,ce.transitionDelay);a?l(s,Math.floor(a*$e*L),!1):s(),R.resume=function(){e(!0)},R.pause=function(){e(!1)}}else Ae();function s(){if(!k){if(Te(!1),K(ee,(function(e){var t=e[0],n=e[1];S.style[t]=n})),g(f,y),t.addClass(f,Ce),we.recalculateTimingStyles){if(S.getAttribute("class")+" "+ue,de=c.cacheKey(S,ie,y.addClass,y.removeClass),ye=w(S,0,de,!1),be=ye.maxDelay,G=Math.max(be,0),0===(X=ye.maxDuration))return void Ae();we.hasTransitions=ye.transitionDuration>0,we.hasAnimations=ye.animationDuration>0}if(we.applyAnimationDelay&&(be="boolean"!=typeof y.delay&&F(y.delay)?parseFloat(y.delay):be,G=Math.max(be,0),ye.animationDelay=be,xe=q(be,!0),ee.push(xe),S.style[xe[0]]=xe[1]),Y=G*L,Z=X*L,y.easing){var e,a=y.easing;we.hasTransitions&&(e=n+h,ee.push([e,a]),S.style[e]=a),we.hasAnimations&&(e=i+h,ee.push([e,a]),S.style[e]=a)}ye.transitionDuration&&ne.push(r),ye.animationDuration&&ne.push(o),Q=Date.now();var s=Y+1.5*Z,d=Q+s,p=f.data(P)||[],v=!0;if(p.length){var m=p[0];(v=d>m.expectedEndTime)?l.cancel(m.timer):p.push(Ae)}if(v){var $=l(u,s,!1);p[0]={timer:$,expectedEndTime:d},p.push(Ae),f.data(P,p)}ne.length&&f.on(ne.join(" "),Oe),y.to&&(y.cleanupStyles&&z(C,S,Object.keys(y.to)),O(f,y))}}function u(){var e=f.data(P);if(e){for(var t=1;t<e.length;t++)e[t]();f.removeData(P)}}}}}]}],oe=["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver");var t="ng-animate-shim",n="ng-anchor",r="ng-anchor-out",i="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,o,a,s,u,l,c){if(!u.animations&&!u.transitions)return re;var f,d=c[0].body,p=D(s),h=ne((f=p).parentNode&&11===f.parentNode.nodeType||d.contains(p)?p:d);return function(o){return o.from&&o.to?function(o,s,u,l){var c=$(o),f=$(s),p=[];if(K(l,(function(o){var s=function(o,s,u){var l=ne(D(s).cloneNode(!0)),c=v(b(l));s.addClass(t),u.addClass(t),l.addClass(n),h.append(l);var f,p=y();if(!p&&!(f=w()))return x();var $=p||f;return{start:function(){var e,t=$.start();return t.done((function(){if(t=null,!f&&(f=w()))return(t=f.start()).done((function(){t=null,x(),e.complete()})),t;x(),e.complete()})),e=new a({end:n,cancel:n});function n(){t&&t.end()}}};function g(e){var t={},n=D(e).getBoundingClientRect();return K(["width","height","top","left"],(function(e){var r=n[e];switch(e){case"top":r+=d.scrollTop;break;case"left":r+=d.scrollLeft}t[e]=Math.floor(r)+"px"})),t}function y(){var t=e(l,{addClass:r,delay:!0,from:g(s)});return t.$$willAnimate?t:null}function b(e){return e.attr("class")||""}function w(){var t=v(b(u)),n=m(t,c),o=m(c,t),a=e(l,{to:g(u),addClass:i+" "+n,removeClass:r+" "+o,delay:!0});return a.$$willAnimate?a:null}function x(){l.remove(),s.removeClass(t),u.removeClass(t)}}(0,o.out,o.in);s&&p.push(s)})),!c&&!f&&0===p.length)return;return{start:function(){var e=[];c&&e.push(c.start()),f&&e.push(f.start()),K(p,(function(t){e.push(t.start())}));var t=new a({end:n,cancel:n});return a.all(e,(function(e){t.complete(e)})),t;function n(){K(e,(function(e){e.end()}))}}}}(o.from,o.to,o.classes,o.anchors):$(o)};function v(e){return e.replace(/\bng-\S+\b/g,"")}function m(e,t){return ee(e)&&(e=e.split(" ")),ee(t)&&(t=t.split(" ")),e.filter((function(e){return-1===t.indexOf(e)})).join(" ")}function $(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}}]}],ae=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){var i=k(r);return function(r,o,a,s){var u=!1;3===arguments.length&&Q(a)&&(s=a,a=null),s=A(s),a||(a=r.attr("class")||"",s.addClass&&(a+=" "+s.addClass),s.removeClass&&(a+=" "+s.removeClass));var l,c,f,d,p,h=s.addClass,v=s.removeClass,m=function(n){n=J(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}(a);m.length&&("leave"===o?(d="leave",f="afterLeave"):(d="before"+o.charAt(0).toUpperCase()+o.substr(1),f=o),"enter"!==o&&"move"!==o&&(l=b(r,o,s,m,d)),c=b(r,o,s,m,f));if(l||c)return{$$willAnimate:!0,end:function(){return p?p.end():(g(),(p=new n).complete(!0)),p},start:function(){if(p)return p;var e;p=new n;var t=[];return l&&t.push((function(t){e=l(t)})),t.length?t.push((function(e){$(),e(!0)})):$(),c&&t.push((function(t){e=c(t)})),p.setHost({end:function(){i()},cancel:function(){i(!0)}}),n.chain(t,r),p;function r(e){g(),p.complete(e)}function i(t){u||((e||re)(t),r(t))}}};function $(){s.domOperation(),i(r,s)}function g(){u=!0,$(),T(r,s)}function y(e,t,r,i,o){var a=[];return K(i,(function(i){var s=i[o];s&&a.push((function(){var i,o,a=!1,u=function(e){a||(a=!0,(o||re)(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,h,v,o];break;case"addClass":a=[t,h,o];break;case"removeClass":a=[t,v,o];break;default:a=[t,o]}a.push(i);var s=e.apply(e,a);if(s)if(Z(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(Z(s))return s;return re}(s,e,t,r,(function(e){u(!1===e)})),i}))})),a}function b(e,t,r,i,o){var a,s,u=y(e,t,r,i,o);0===u.length&&("beforeSetClass"===o?(a=y(e,"removeClass",r,i,"beforeRemoveClass"),s=y(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(a=y(e,"removeClass",r,i,"removeClass"),s=y(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&&K(u,(function(e){t.push(e())})),t.length?n.all(t,e):e(),function(e){K(t,(function(t){e?t.cancel():t.end()}))}}}}}]}],se=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){var e=[];r&&e.push(r.start()),i&&e.push(i.start()),t.all(e,(function(e){n.complete(e)}));var n=new t({end:o(),cancel:o()});return n;function o(){return function(){K(e,(function(e){e.end()}))}}}}}return n(e)};function n(t){var n=t.element,r=t.event,i=t.options,o=t.classes;return e(n,r,o,i)}}]}],ue="data-ng-animate",le="$ngAnimatePin",ce=["$animateProvider",function(t){var n=" ",r=this.rules={skip:[],cancel:[],join:[]};function i(e){return{addClass:e.addClass,removeClass:e.removeClass,from:e.from,to:e.to}}function o(e,t){if(e&&t){var r=function(e){if(!e)return null;var t=e.split(n),r=Object.create(null);return K(t,(function(e){r[e]=!0})),r}(t);return e.split(n).some((function(e){return r[e]}))}}function l(e,t,n){return r[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}r.join.push((function(e,t){return!e.structural&&f(e)})),r.skip.push((function(e,t){return!e.structural&&!f(e)})),r.skip.push((function(e,t){return"leave"===t.event&&e.structural})),r.skip.push((function(e,t){return t.structural&&2===t.state&&!e.structural})),r.cancel.push((function(e,t){return t.structural&&e.structural})),r.cancel.push((function(e,t){return 2===t.state&&e.structural})),r.cancel.push((function(e,t){if(t.structural)return!1;var n=e.addClass,r=e.removeClass,i=t.addClass,a=t.removeClass;return!(te(n)&&te(r)||te(i)&&te(a))&&(o(n,a)||o(r,i))})),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(n,r,o,d,p,h,v,m,$,g,y){var w=new p,E=new p,O=null;function j(e){E.delete(e.target)}var I=r.$watch((function(){return 0===m.totalPendingRequests}),(function(e){e&&(I(),r.$$postDigest((function(){r.$$postDigest((function(){null===O&&(O=!0)}))})))})),V=Object.create(null),N=t.customFilter(),P=t.classNameFilter(),L=function(){return!0},R=N||L,U=P?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return P.test(n)}:L,q=k($);function H(e,t){return M(e,t,{})}var F=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))};function B(e,t,n){var r=S(t);return e.filter((function(e){return!(e.node===r&&(!n||e.callback===n))}))}function z(e,t){"close"!==e||t.parentNode||Z.off(t)}var Z={on:function(e,t,n){var r=S(t);V[e]=V[e]||[],V[e].push({node:r,callback:n}),ne(t).on("$destroy",(function(){w.get(r)||Z.off(e,t,n)}))},off:function(e,t,n){if(1!==arguments.length||ee(arguments[0])){var r=V[e];r&&(V[e]=1===arguments.length?null:B(r,t,n))}else for(var i in t=arguments[0],V)V[i]=B(V[i],t)},pin:function(e,t){b(X(e),"element","not an element"),b(X(t),"parentElement","not an element"),e.data(le,t)},push:function(e,t,p,m){return(p=p||{}).domOperation=m,function(e,t,p){var m=W(p),$=C(e),g=D($),b=g&&g.parentNode;m=A(m);var S=new v,k=(j=!1,function(e){j?e():r.$$postDigest((function(){j=!0,e()}))});var j;J(m.addClass)&&(m.addClass=m.addClass.join(" "));m.addClass&&!ee(m.addClass)&&(m.addClass=null);J(m.removeClass)&&(m.removeClass=m.removeClass.join(" "));m.removeClass&&!ee(m.removeClass)&&(m.removeClass=null);m.from&&!Q(m.from)&&(m.from=null);m.to&&!Q(m.to)&&(m.to=null);if(!(O&&g&&R(g,t,p)&&U(g,m)))return ae(),S;var I=["enter","move","leave"].indexOf(t)>=0,N=y(),P=N||E.get(g),L=!P&&w.get(g)||{},B=!!L.state;P||B&&1===L.state||(P=!function(e,t,n){var r,i=d[0].body,s=D(o),u=e===i||"HTML"===e.nodeName,l=e===s,f=!1,p=E.get(e),h=ne.data(e,le);h&&(t=D(h));for(;t&&(l||(l=t===s),t.nodeType===a);){var v=w.get(t)||{};if(!f){var m=E.get(t);if(!0===m&&!1!==p){p=!0;break}!1===m&&(p=!1),f=v.structural}if(te(r)||!0===r){var $=ne.data(t,c);Y($)&&(r=$)}if(f&&!1===r)break;if(u||(u=t===i),u&&l)break;t=l||!(h=ne.data(t,le))?t.parentNode:D(h)}return(!f||r)&&!0!==p&&l&&u}(g,b));if(P)return N&&oe(S,t,"start",i(m)),ae(),N&&oe(S,t,"close",i(m)),S;I&&function(e){var t=e.querySelectorAll("["+ue+"]");K(t,(function(e){var t=parseInt(e.getAttribute(ue),10),n=w.get(e);if(n)switch(t){case 2:n.runner.end();case 1:w.delete(e)}}))}(g);var G={structural:I,element:$,event:t,addClass:m.addClass,removeClass:m.removeClass,close:ae,options:m,runner:S};if(B){if(l("skip",G,L))return 2===L.state?(ae(),S):(M($,L,G),L.runner);if(l("cancel",G,L))if(2===L.state)L.runner.end();else{if(!L.structural)return M($,L,G),L.runner;L.close()}else if(l("join",G,L)){if(2!==L.state)return function(e,t,n,r){var i="";n&&(i=x(n,"ng-",!0)),r.addClass&&(i=_(i,x(r.addClass,s))),r.removeClass&&(i=_(i,x(r.removeClass,u))),i.length&&(r.preparationClasses=i,t.addClass(i))}(0,$,I?t:null,m),t=G.event=L.event,m=M($,L,G),L.runner;H($,G)}}else H($,G);var X=G.structural;X||(X="animate"===G.event&&Object.keys(G.options.to||{}).length>0||f(G));if(!X)return ae(),re(g),S;var Z=(L.counter||0)+1;return G.counter=Z,ie(g,1,G),r.$$postDigest((function(){$=C(e);var n=w.get(g),r=!n;n=n||{};var o=($.parent()||[]).length>0&&("animate"===n.event||n.structural||f(n));if(r||n.counter!==Z||!o)return r&&(q($,m),T($,m)),(r||I&&n.event!==t)&&(m.domOperation(),S.end()),void(o||re(g));t=!n.structural&&f(n,!0)?"setClass":n.event,ie(g,2);var a=h($,t,n.options);S.setHost(a),oe(S,t,"start",i(m)),a.done((function(e){ae(!e);var n=w.get(g);n&&n.counter===Z&&re(g),oe(S,t,"close",i(m))}))})),S;function oe(e,t,r,i){k((function(){var e=function(e,t,n){var r=[],i=V[n];return i&&K(i,(function(i){(F.call(i.node,t)||"leave"===n&&F.call(i.node,e))&&r.push(i.callback)})),r}(b,g,t);e.length?n((function(){K(e,(function(e){e($,r,i)})),z(r,g)})):z(r,g)})),e.progress(t,r,i)}function ae(e){!function(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}($,m),q($,m),T($,m),m.domOperation(),S.complete(!e)}}(e,t,p)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!O;else if(X(e)){var r=D(e);1===n?t=!E.get(r):(E.has(r)||ne(e).on("$destroy",j),E.set(r,!t))}else t=O=!!e;return t}};return Z;function re(e){e.removeAttribute(ue),w.delete(e)}function ie(e,t,n){(n=n||{}).state=t,e.setAttribute(ue,t);var r=w.get(e),i=r?G(r,n):n;w.set(e,i)}}]}],fe=["$animateProvider",function(e){var t="ng-animate-ref",n=this.drivers=[],r="$$animationRunner",i="$$animatePrepareClasses";function o(e){return e.data(r)}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(e,a,s,u,c,f,d){var p=[],h=k(e);return function(v,m,$){$=A($);var g=["enter","move","leave"].indexOf(m)>=0,y=new u({end:function(){k()},cancel:function(){k(!0)}});if(!n.length)return k(),y;var b=w(v.attr("class"),w($.addClass,$.removeClass)),x=$.tempClasses;return x&&(b+=" "+x,$.tempClasses=null),g&&v.data(i,"ng-"+m+"-prepare"),function(e,t){e.data(r,t)}(v,y),p.push({element:v,classes:b,event:m,structural:g,options:$,beforeStart:function(){x=(x?x+" ":"")+l,e.addClass(v,x);var t=v.data(i);t&&(e.removeClass(v,t),t=null)},close:k}),v.on("$destroy",S),p.length>1||a.$$postDigest((function(){var r=[];K(p,(function(e){o(e.element)?r.push(e):e.close()})),p.length=0;var a=function(e){var n=[],r={};K(e,(function(e,i){var o=D(e.element),a=e.event,s=["enter","move"].indexOf(a)>=0,u=e.structural?function(e){var n="["+t+"]",r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),i=[];return K(r,(function(e){var n=e.getAttribute(t);n&&n.length&&i.push(e)})),i}(o):[];if(u.length){var l=s?"to":"from";K(u,(function(e){var n=e.getAttribute(t);r[n]=r[n]||{},r[n][l]={animationID:i,element:ne(e)}}))}else n.push(e)}));var i={},o={};return K(r,(function(t,r){var a=t.from,s=t.to;if(a&&s){var u=e[a.animationID],l=e[s.animationID],c=a.animationID.toString();if(!o[c]){var f=o[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?n.push(f):(n.push(u),n.push(l))}o[c].anchors.push({out:a.element,in:s.element})}else{var d=a?a.animationID:s.animationID,p=d.toString();i[p]||(i[p]=!0,n.push(e[d]))}})),n}(r),u=[];K(a,(function(e){var t=e.from?e.from.element:e.element,r=$.addClass;r=(r?r+" ":"")+l;var i=d.cacheKey(t[0],e.event,r,$.removeClass);u.push({element:t,domNode:D(t),fn:function(){var t,r=e.close;if(d.containsCachedAnimationWithoutDuration(i))r();else{if(e.beforeStart(),o(e.anchors?e.from.element||e.to.element:e.element)){var a=function(e){for(var t=n.length-1;t>=0;t--){var r=n[t],i=s.get(r)(e);if(i)return i}}(e);a&&(t=a.start)}if(t){var u=t();u.done((function(e){r(!e)})),function(e,t){e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element);function n(e){var n=o(e);n&&n.setHost(t)}}(e,u)}else r()}}})}));for(var h=function(e){var t,n={children:[]},r=new c;for(t=0;t<e.length;t++){var i=e[t];r.set(i.domNode,e[t]={domNode:i.domNode,element:i.element,fn:i.fn,children:[]})}for(t=0;t<e.length;t++)o(e[t]);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}(n);function o(e){if(e.processed)return e;e.processed=!0;var t,i=e.domNode,a=i.parentNode;for(r.set(i,e);a;){if(t=r.get(a)){t.processed||(t=o(t));break}a=a.parentNode}return(t||n).children.push(e),e}}(u),v=0;v<h.length;v++)for(var m=h[v],g=0;g<m.length;g++){var y=m[g],b=y.element;if(h[v][g]=y.fn,0!==v){var w=b.data(i);w&&e.addClass(b,w)}else b.removeData(i)}f(h)})),y;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(){var e=o(v);!e||"leave"===m&&$.$$domOperationFired||e.end()}function k(t){v.off("$destroy",S),function(e){e.removeData(r)}(v),h(v,$),T(v,$),$.domOperation(),x&&e.removeClass(v,x),y.complete(!t)}}}]}];t.module("ngAnimate",[],(function(){re=t.noop,W=t.copy,G=t.extend,ne=t.element,K=t.forEach,J=t.isArray,ee=t.isString,Q=t.isObject,te=t.isUndefined,Y=t.isDefined,Z=t.isFunction,X=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",N).factory("$$rAFScheduler",["$$rAF",function(e){var t,n;function r(e){t=t.concat(e),i()}return t=r.queue=[],r.waitUntilQuiet=function(t){n&&n(),n=e((function(){n=null,t(),i()}))},r;function i(){if(t.length){for(var r=t.shift(),o=0;o<r.length;o++)r[o]();n||e((function(){n||i()}))}}}]).provider("$$animateQueue",ce).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",fe).provider("$animateCss",ie).provider("$$animateCssDriver",oe).provider("$$animateJs",ae).provider("$$animateJsDriver",se)}(window,window.angular),define("angularAnimate",(function(){})),define("angularElement",["jquery","angular"],(function(e,t){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 n=new Date(1,1,2e3,12,0,0),r=!1;function i(){new Date-n<200?setTimeout(i,200):(r=!1,angular.element(window).triggerHandler("resizeEnd"))}angular.element(window).on("resize",(function(){n=new Date,!1===r&&(r=!0,setTimeout(i,200))})),function(e,t){var n,r,i,o,a,s,u,l,c,f,d="",p=document.createElement("div"),h=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,v={};function m(e){return n?n+e:e.toLowerCase()}e.each({Webkit:"webkit",Moz:"",O:"o"},(function(e,r){if(p.style[e+"TransitionProperty"]!==t)return d="-"+e.toLowerCase()+"-",n=r,!1})),r=d+"transform",v[i=d+"transition-property"]=v[o=d+"transition-duration"]=v[s=d+"transition-delay"]=v[a=d+"transition-timing-function"]=v[u=d+"animation-name"]=v[l=d+"animation-duration"]=v[f=d+"animation-delay"]=v[c=d+"animation-timing-function"]="",e.fxz={off:n===t&&p.style.transitionProperty===t,speeds:{_default:400,fast:200,slow:600},cssPrefix:d,transitionEnd:m("TransitionEnd"),animationEnd:m("AnimationEnd")},e.fn.animate3=function(n,r,i,o,a){return e.isFunction(r)&&(o=r,i=t,r=t),e.isFunction(i)&&(o=i,i=t),e.isPlainObject(r)&&(i=r.easing,o=r.complete,a=r.delay,r=r.duration),r&&(r=("number"==typeof r?r:e.fxz.speeds[r]||e.fxz.speeds._default)/1e3),a&&(a=parseFloat(a)/1e3),this.anim3(n,r,i,o,a)},e.fn.anim3=function(n,d,p,m,$){var g,y,b,w={},x="",C=this,S=e.fxz.transitionEnd,k=!1;if(d===t&&(d=e.fxz.speeds._default/1e3),$===t&&($=0),e.fxz.off&&(d=0),"string"==typeof n)w[u]=n,w[l]=d+"s",w[f]=$+"s",w[c]=p||"linear",S=e.fxz.animationEnd;else{for(g in y=[],n)h.test(g)?x+=g+"("+n[g]+") ":(w[g]=n[g],y.push(g.replace(/([a-z])([A-Z])/,"$1-$2").toLowerCase()));x&&(w[r]=x,y.push(r)),d>0&&"object"==typeof n&&(w[i]=y.join(", "),w[o]=d+"s",w[s]=$+"s",w[a]=p||"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(v),m&&m.call(this)},d>0&&(this.bind(S,b),setTimeout((function(){k||b.call(C)}),1e3*(d+$)+25)),this.length&&this.get(0).clientLeft,this.css(w),d<=0&&setTimeout((function(){C.each((function(){b.call(this)}))}),0),this},p=null}(e);var o,a=(o=null,function(){if(null!==o)return o;o=!1;try{var e=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,e)}catch(e){}return o});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","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){n.element=f;var r=e(d[a]).bind(null,t);if(m.ripple||m.delay){function i(){n.isPropagationStopped()||r({$event:n,$element:f})}"delay"in m&&!m.delay?(i(),n.isPropagationStopped()||(t.$$phase?t.$applyAsync(u):t.$apply())):c(i,m.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||m.direct){var u=function(){r({$event:n,$element:f})};t.$$phase?t.$applyAsync(u):(u(),t.$apply())}else t.$applyAsync((function(){r({$event:n,$element:f})}))}},h=d.hmOptions&&r.isObject(t.$eval(d.hmOptions))?t.$eval(d.hmOptions):{},v=o.data("android"),m=r.extend({normal:!1,ripple:v,delay:v?100:0},h);v&&"androiddelay"in m&&(m.delay=m.androiddelay);var $=m.normal&&"vclick"==l?"click":l;if(f&&f.length>0){u(f),"vclick"==$&&(m.ripple?(n.add(f,"center"==m.ripple),f.addClass("a-ripple")):s(f)),i(f).on($,p);var g=function(){i(f).off($,p),"vclick"==$&&(u(f),m.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,v=l.maxspeed,m=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)i.off("vmousemove",x);else{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()}),m),f.prev=n}},C=function(e){clearTimeout(g),i.off("vmousemove",x);var t=(new Date).getTime(),r=Math.max(0,m-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(m,e||Math.min(v,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:v,complete:function(){c.css({transform:"","-webkit-transform":""})}}),f.perc=0,f.x=0,f.prev=0):(a(v),s.removeClass("grab reset"),l.keep||s.triggerHandler("$destroy")),c.oneFirst("click",b),s=!1}d.started=!1}},S=function(){l["max-window-size"];var t=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,v={x:0,perc:0,prev:!1,prevent:!1},m={},$=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-m.startX)<30))if(Math.abs(t.clientY-m.startY)>=25&&!m.started)i.off("vmousemove",k);else{m.started||n.$applyAsync((function(){f({$event:t})})),m.started=!0,t.preventDefault(),s.removeClass("reset"),s.addClass("grab"),r.element(e).trigger("scrollstart");var o=t.clientX;v.prev||(v.prev=o),v.x+=o-v.prev,v.perc=100*v.x/e.innerWidth,"left"==g?(v.x>0&&(v.x=0),v.perc>0&&(v.perc=0)):"right"==g&&(v.x<0&&(v.x=0),v.perc<0&&(v.perc=0)),n.$applyAsync((function(){u({$event:t,$moved:v.perc})})),clearTimeout(b),x="left"==g?o<v.prev:"right"==g?o>v.prev:o!=v.prev,b=setTimeout((function(){x=!1}),200),S||(S=(new Date).getTime()),w=setTimeout((function(){S=(new Date).getTime()}),y),v.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);m.started&&(s&&(s.removeClass("grab"),"left"==g&&v.perc>-1*p.threshold||"right"==g&&v.perc<p.threshold?(s.removeClass("grab reset"),x?n.$applyAsync((function(){l({$event:e,$moved:v.perc})})):n.$applyAsync((function(){c({$event:e,$moved:v.perc})})),v.perc=0,v.x=0,v.prev=0):(s.removeClass("grab reset"),n.$applyAsync((function(){l({$event:e,$moved:v.perc})}))),h.oneFirst("click",C),s=!1),m.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),m.startX=e.clientX,m.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),v=null,m=0,$=this,g=function(e){(!e||m&&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===v&&(v=e);var t=(m=e-v)>=a?1:s(m/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={},c=function(i){var c=i.$id,d={spies:[]};return d.handler=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,v,m,$=s&&t?"bottom":"top";for(h=i.spies,d=i.currentlyActive,p=void 0,f=0;f<h.length;f++)(m=(v=h[f]).getTargetPosition())&&(s&&t||m.top+v.offset-l<20&&(o||-1*m.top+l)<m.height)&&(!p||p[$]<m[$])&&((p={spy:v})[$]=m[$]);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}(d),l[c]=d,i.$on("$destroy",(function(){f(i)})),c},f=function(e){var t=e.$id,n=l[t],r=n.container;r&&r.off("scroll",n.handler),delete l[t]},d=c(e),p=function(e){return l[e.$id]?l[e.$id]:e.$parent?p(e.$parent):l[d]},h=function(e){var t,n,r=e.$scope;if(r)return p(r);for(n in l)if(-1!==(t=l[n]).spies.indexOf(e))return t};return{addSpy:function(e){var t=h(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=h(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:c,destroyContext:f,getContextForScope:p}}]),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){var n=function(e){return Array.isArray?Array.isArray(e):e&&"[object Array]"===Object.prototype.toString.call(e)},r=function(e,t,r,i){if(!n(e))throw new TypeError("forEach called on a non-array type value. The given value is "+typeof e);var o;if(r||(r=e),i)for(a=(s=e.length)-1;a>=0&&("boolean"!=typeof(o=t.call(r,e[a],a,e))||o);a--);else for(var a=0,s=e.length;a<s&&("boolean"!=typeof(o=t.call(r,e[a],a,e))||o);a++);};var i=function(e){return n(e)?e.length<1:null},o=function(e){return String.prototype.trim?String.prototype.trim.call(e):e.replace(/^\s+|\s+$/gm,"")},a=function(e){return"string"==typeof e},s=function(e){return!a(e)||""==e.replace(/\s/g,"")},u=function(e,t,n){if(!a(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))},l=function(e){if(!a(e))throw new TypeError("String.digits called on a non-string. The given value is "+typeof e);return o(e).replace(/[^0-9]/g,"")},c=function(e){return"function"==typeof e},f=function(e){return null!==e&&"object"==typeof e&&!n(e)},d=function(e,t){var n=JSON.parse(JSON.stringify(e));if(!f(e)||!f(t))throw new TypeError("First or second argument is not an plain object");return r(w(t),(function(r){f(t[r])?n[r]=d(e[r]||{},t[r]):n[r]=t[r]})),n};function p(e){if(!f(e)&&!n(e))return e;var t=!n(e),r=t?{}:[],i=0,o=0;if(t){var a=w(e);for(o=a.length;i<o;i++){var s=a[i];r[s]=p(e[s])}}else for(o=e.length;i<o;i++)r[i]=p(e[i]);return r}var h,v,m,$,g,y,b,w=(h=Object.prototype.hasOwnProperty,v=!{toString:null}.propertyIsEnumerable("toString"),$=(m=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("function"==typeof Object.keys)return Object.keys(e);if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on non-object. The given value is "+typeof e);var t=[];for(var n in e)h.call(e,n)&&t.push(n);if(v)for(var r=0;r<$;r++)h.call(e,m[r])&&t.push(m[r]);return t}),x=function(e,t,n){var r,i=n||e;if(!f(e))throw new TypeError("Object.forEach called on non-object. The given value is "+typeof e);if(!c(t))throw new TypeError("The given iterator is not a function");for(var o in e)if((!c(e.hasOwnProperty)||e.hasOwnProperty(o))&&"boolean"==typeof(r=t.apply(i,[e[o],o]))&&!r)break},C="function"!=typeof Object.create?(g=function(){},function(e,t){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");g.prototype=e||{};var n=new g;return g.prototype=null,void 0!==t&&Object.defineProperties(n,t),null===e&&(n.__proto__=null),n}):Object.create,S=y={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(e,t,n,r){if(r=r||5,!A(e)&&(e.indexOf("-")>-1&&(e=e.replace(/-/g,"/")),e.indexOf("/")<0))return"";var i=new Date(y.calcTimeOffset(e,-1*y.current.getTimezoneOffset()/60)),o=y.current.getTime()-i.getTime();o/=1e3,Math.floor(o%60),o/=60;var a=Math.max(1,Math.floor(o%60));o/=60;var s=Math.floor(o%24),u=Math.floor(o/24),l=n?" ":", ";return u>r?y[t?"monthsShort":"months"][i.getMonth()]+" "+i.getDate()+l+(n?"":i.getFullYear()):u>=1?u+" day"+(u>1?"s":"")+" ago":s>=1?s+" hr"+(s>1?"s":"")+". ago":a+" min. ago"},calcTimeOffset:function(e,t){var n=A(e)?new Date(e):new Date,r=n.getTime()+6e4*n.getTimezoneOffset();return new Date(r+36e5*t).getTime()},getDifference:function(e,t,n,r){var i=e.getTimezoneOffset(),o=e.getTime(),a=y.calcTimeOffset(t.getTime(),-1*i/60),s=Math.round(Math.abs(o-a)/36e5),u=Math.round((o-a)/864e5);n||(n="days");var l="days"==n?u:s;return r&&(l=l.toString()+("days"==n?" day":" hr")+(1!==l?"s":"")),l},getElapsedSeconds:function(e,t){var n=e-t;return n/=1e3,Math.round(n%60*100)/100+" sec."},toText:function(e,t,n,r,i,o){var s;if(A(e)||a(e)){if(!A(e)&&e){if(e.indexOf("-")>-1&&(e=e.replace(/-/g,"/")),e.indexOf("/")<0)return""}else if(!e)return"";s=new Date(e)}else{if(!e)return"";s=e}var u=r?" ":", ",l=i?s.getUTCMonth():s.getMonth(),c=i?s.getUTCDate():s.getDate(),f=i?s.getUTCFullYear():s.getFullYear();return o&&(c=c.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"}}(c)),y[t?"monthsShort":"months"][l]+(n?" ":" "+c+u)+(r?"":f)},today:function(){return y.toText(y.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}},k={counter:{start:function(){b=(new Date).getTime()},end:function(e){if(!b)return null;var t=(new Date).getTime()-b;return b=!1,e?(t/=1e3,Math.round(t%60*100)/100+"sec."):t+"ms."}}},A=function(e,t){return"number"==typeof e&&(t&&isNaN(e)||isFinite(e))};function T(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=o+n+(s?a.substring(0,s)+r:"")+a.substring(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 E(e){return null==e||void 0===e}var O=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}(),M="undefined"!=typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame:clearTimeout;return{Array:{isArray:n,forEach:r,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(!n(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 r,i=-1,o=0,a=e.length;o<a;o++)if("boolean"==typeof(r=t(e,e[o],o,e))&&r){i=o;break}return i},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,r){if(!n(e))throw new TypeError("Array.some called on a non-array type value. The given value is "+typeof e);if(!c(t))throw new TypeError("Iterator of Array.some is not a function. The given value is "+typeof t);if(r||(r=e),Array.prototype.some)return Array.prototype.some.call(e,t,r);for(var i=Object(e),o=i.length>>>0,a=0;a<o;a++)if(a in i&&t.call(r,i[a],a,i))return!0;return!1},isEmpty:i,isPopulated:function(e){return!!n(e)&&!i(e)},pushUnique:function(e,t){if(!n(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,r){if(!n(e))throw new TypeError("Array.groupBy called on a non-array type. The given value is "+typeof e);var i=e.reduce((function(e,n){var i=n[t];return e[i]=e[i]||[],e[i].push(n),r&&r(n,e[i]),e}),{}),o=[];return x(i,(function(e){o.push(e)})),o},last:function(e){return n(e)?e[e.length-1]:null}},Number:{isNumber:A,toNumber:function(e){if(a(e)){var t=e.trim(),n=t.replace(/[^0-9.]/g,"");return 0==t.indexOf("-")&&(n="-"+n),parseFloat(n)}return A(e)?e:null},formatMoney:T,formatNumber:function(e,t){var n=!1;e<0&&(n=!0),e=Math.abs(e);var r=t;return r=!isNaN(r=Math.abs(r))&&r>0?Math.pow(10,r):1,e>=1e9?(formattedNumber=(Math.round(e/1e9*r)/r).toString().replace(/\.0$/,"")+"G",n&&(formattedNumber="-"+formattedNumber)):e>=1e6?(formattedNumber=(Math.round(e/1e6*r)/r).toString().replace(/\.0$/,"")+"M",n&&(formattedNumber="-"+formattedNumber)):e>=1e3?(formattedNumber=(Math.round(e/1e3*r)/r).toString().replace(/\.0$/,"")+"K",n&&(formattedNumber="-"+formattedNumber)):formattedNumber=T(e,t,""),formattedNumber},phoneFormat:function(e){return(e?l(e.toString()):"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")},between:function(e,t,n){if(!A(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:a,isEmpty:s,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:o,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(a(e))return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()}))},substr:function(e,t,n){if(a(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:u,containsAny:function(e,t){if(!a(e))throw new TypeError("Contains called on a non-string. The given value is "+typeof e);if(!n(t))return!1;var i=!1;return r(t,(function(t){return!a(t)||(u(e,t)?(i=!0,!1):void 0)})),i},splitCamel:function(e){if(!a(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:l,resolve:function(e,t,n){return a(e)&&!s(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:d,isFunction:c,isObject:f,keys:w,forEach:x,copy:function(e){return p(e)},hasKeys:function(e,t,n){var i=!1;if(!f(e))throw new TypeError("Object.hasKeys called on non-object. The given value is "+typeof e);return r(t,(function(t){if(!(t in e))return i=!1,!1;i=!n||!!e[t]})),i},hasAnyKey:function(e,t,n){var i=!1;if(!f(e))throw new TypeError("Object.hasKeys called on non-object. The given value is "+typeof e);return r(t,(function(t){if(t in e&&(i=!n||!!e[t]),i)return!1})),i},create:C,fromUrlParam:function(e){try{return JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(e,t){return""===e?t:decodeURIComponent(t)}))}catch(e){return{}}}},Date:S,Time:k,uniqid:function(e,t){var n;void 0===e&&(e="");var 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 c(t)?t(e):void 0}},isNullorUndefined:E,isEmpty:function(e){return!!E(e)||(n(e)?i(e):a(e)?s(e):A(e)?0==e:f(e)?w(e).length<=0:!e)},isAnyOf:function(e,t){var n=!1;return r(t,(function(t){if(e===t)return n=!0,!1})),n},forEach:function(e,t,i){if(n(e))r(e,t,i);else{if(!f(e))throw new TypeError("forEach can only be used on arrays or plain objects. The object given is "+typeof value);x(e,t,i)}},requestAnimationFrame:O,cancelAnimationFrame:M,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("-")},generateUUIDV4:function(e){const t=String(e).slice(0,12).padStart(12,"0"),n=function(e){const t=new Uint8Array(Math.ceil(e/2));return window.crypto.getRandomValues(t),Array.from(t).map((e=>e.toString(16).padStart(2,"0"))).join("").slice(0,e)}(20),r=n.substring(0,12)+"4"+n.substring(13),i=(63&parseInt(n.substring(16,18),16)|128).toString(16).padStart(2,"0"),o=r.substring(0,16)+i+r.substring(18)+t;return[o.slice(0,8),o.slice(8,12),o.slice(12,16),o.slice(16,20),o.slice(20,32)].join("-")},Cookie:{get:function(e){var t=e+"=";if(document.cookie){for(var n=document.cookie.split(";"),r=null,i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t)){r=decodeURIComponent(o.substring(t.length,o.length));break}}if("mw_signon"==e&&null!==r&&("{"!=r.slice(0,1)||"}"!=r.slice(-1)))try{r=window.atob(r)}catch(e){console.error("window.atob() failed on 'mw_signon'")}return r}},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()}"mw_signon"==e&&(t=window.btoa(t)),document.cookie=e+"="+encodeURIComponent(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","angular","jquery.vclick","angularElementScroll","angularAnimate","angularElement","polyfills","jquery.ripple"],(function(e){e(["nouislider"]);var t,n,r,i=e("polyfills"),o=e("angular"),a=e("jquery"),s=i.isEmpty,u=i.String.isEmpty,l=i.Number.isNumber,c=i.Number.toNumber,f=e("jquery.ripple");Number.prototype.formatMoney=function(e,t,n,r){return i.Number.formatMoney(this,e,t,n,r)},o.module("extra",["duScroll"]).constant("date",i.Date).constant("$viewport",(t={},n={},r={body:o.element(document).cssSelect("#viewport").eq(0),data:function(e,n){if(null==n)return t[e];t[e]=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()),o.element(document).trigger("scrolling")}))},scrollSave:function(e){n.scrl=void 0!==e?e:this.body.prop("scrollTop")},scrollRestore:function(){this.data("scrollTo",n.scrl||1),n.scrl=1}},r)).run(["$viewport","$rootScope",function(e,t){e.setup()}]).directive("ngDropdown",["$timeout","$viewport","$document","$rootScope",function(e,t,n,r){return{restrict:"A",scope:{modelValue:"=ngModel",disabled:"=disabled",listItems:"=?ngDrpListItems",afterSelect:"=?ngDrpAfterSelect",onSelect:"=?ngDrpOnSelect",tabindex:"=?ngDrpTabindex",labelId:"=?ngDrpLabelId",drpPlaceholder:"=?ngDrpPlaceholder"},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="display_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,v=13,m=38,$=40,g=0;a.activedescendant=null,a.optionid=i.uniqid("option-"),a.display_value="",a.selected_value="",a.$watch("listItems",(function(e){for(var t in d=e||[],f=[],a.selectList=[],a.labelList=[],p=[],d)o.isArray(d[t])?(f[t]=d[t][1],o.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]);i.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("drpPlaceholder",(function(e){e&&(a.placeholder=e)})),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)o.isArray(d[t])?(f[t]=d[t][1],o.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:e.fallbackPlaceholder?e.fallbackPlaceholder:"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 n=document.querySelector("#"+a.list_label);n&&(h=n.textContent)}}),!0),a.$watch("modelValue",(function(e){var t,n,r=f.indexOf(e);r>-1?(t=a.selectList[r],n=a.labelList[r],a.label_value=(h?h+". ":"")+n,o.equals(a.selected_value,t)||(a.selected_value=t,a.display_value=p[r]),a.empty_select=!1):a.empty_select=!0,a.list_opened=!1,a.afterSelect&&a.afterSelect(t,r,e);var i=a.$eval(u.ngDropdown)||{};i.afterSelect&&i.afterSelect(t,r,e)})),a.$watch("list_opened",(function(r){e.cancel(l);var o=s.find("ul"),u=c.offsetParent?s.find("ul").parents(c.offsetParent).prop("scrollHeight"):t.body.prop("scrollHeight"),f=c.offsetParent?s.find("ul").parents(c.offsetParent).prop("clientWidth"):t.body.prop("clientWidth");l=e((function(){if(r){if(a.change_list_position){var e=0,t=i.Number.toNumber(f)-(s.offset().left+s.prop("clientWidth")),l=o.prop("clientWidth");s.prop("clientWidth")+t<l&&(e=s.prop("clientWidth")+t-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"),n.one("vclick",b),n.one("click",b)}else o.removeClass("upwards"),n.off("vclick",b),n.off("click",b)}),50)}));var y=!1;a.select=function(t,n,i){y=!0;var o=f[i],l=a.labelList[i];a.selected_value=n,a.label_value=(h?h+". ":"")+l,a.display_value=p[i],a.modelValue=o,s[0].querySelector('[aria-haspopup="listbox"]').focus(),setTimeout((function(){s[0].querySelector('[aria-haspopup="listbox"]').focus()})),e((function(){a.onSelect&&a.onSelect(n,i,o);var e=a.$eval(u.ngDropdown)||{};e.onSelect&&e.onSelect(n,i,o),a.list_opened=!1}),r.isAndroid?1:100),g=i,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(r){a.disabled||(r.stopPropagation(),e((function(){if(!y){var r=a.$eval(u.ngDropdown)||{};if(!1===r.enabled)return!1;a.list_opened||r.noBubble||n.trigger("vclick"),e((function(){a.list_opened=!a.list_opened}),t.data("android")?200:0)}})))})),a.ListOnKey=function(e){var t=e.keyCode;switch(t){case v:var n=g;i.Number.isNumber(n)&&a.select(null,a.selectList[n],n);break;case m:case $:n=g;g=t==$?n<a.selectList.length-1?n+1:0:n>0?n-1:a.selectList.length-1,a.activedescendant=a.optionid+"-"+g,e.preventDefault()}};var w=function(){n.off("vclick",b),s.off("vclick"),s.off("keydown")};a.$on("$destroy",w),s.one("$destroy",w)}}}}}]).directive("ngSlider",["$document",function(t){return{restrict:"AE",require:"ngModel",link:function(t,n,r,o){var a=n[0],s=!1,u=r.ngModel;e(["nouislider"],(function(e){var f=t.$watch(r.ngSlider,(function(n){var r=i.Object.assign({start:0,step:1,orientation:"horizontal",connect:"lower",range:{min:0,max:100}},n||{});r.range.min||(r.range.min=0),a.noUiSlider&&a.noUiSlider.destroy(),e.create(a,r),a.noUiSlider.off("slide"),a.noUiSlider.on("slide",(function(){s=!0})),a.noUiSlider.off("change"),a.noUiSlider.on("change",(function(e){s=!1,t.$applyAsync((function(){o.$setViewValue(c(e[0])),o.$render()}))})),a.noUiSlider.set(t.$eval(u))}),!0),d=t.$watch(r.ngModel,(function(e){s||a.noUiSlider&&a.noUiSlider.set(l(e)?e:0)}));n.one("$destroy",(function(){f(),d(),a.noUiSlider&&a.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,t,n){var r=function(r){if(8==r.keyCode)return!1;var a=i.String.trim(t.val()).length,s=e.$eval(n.ngTabNext),u=(s.length||c(t.attr("maxlength")))<=a,l=o.element().cssSelect(s.selector);u&&l.focus().caret(0)};t.on("keyup",r),e.$on("$destroy",(function(){t.off("keyup",r)}))}}}]).directive("ngTabPrevious",["$timeout",function(e){return{restrict:"A",link:function(e,t,n){var r=function(r){var a=e.$eval(n.ngTabPrevious),s=o.element().cssSelect(a.selector),u=i.String.trim(t.val()).length;8==r.keyCode&&(0==u||t.caret()<=0)&&s.focus().caret(s.val().length)},a=function(r){var a=e.$eval(n.ngTabPrevious),s=o.element().cssSelect(a.selector),u=i.String.trim(t.val()).length;8==r.keyCode&&0==u&&0==u&&s.focus().caret(s.val().length)};t.on("keyup",r).on("keydown",a),e.$on("$destroy",(function(){t.off("keyup",r).off("keydown",a)}))}}}]).directive("ngTabOnEnter",["$timeout",function(e){return{restrict:"A",link:function(e,t,n){var r=function(r){if(r.preventDefault(),13===r.keyCode){var i=e.$eval(n.ngTabOnEnter),a=o.element().cssSelect(i.selector);return t[0].blur(),setTimeout((function(){a&&a.focus()}),700),!1}};t.on("keyup",r),e.$on("$destroy",(function(){t.off("keyup",r)}))}}}]).directive("ngTogglePassword",["$window","$timeout",function(e,t){return{restrict:"A",scope:{onShow:"=?ngShow",onHide:"=?ngHide",ngdelay:"=?ngDelay"},link:function(n,r,i){r.append("<span class='ng-toggle-btn-pass semi-bold-font' style='visibility:hidden;'>show</span>"),r.css({position:"relative"});var a=r.find(".ng-toggle-btn-pass"),s=r.find("input[type='password']");a&&a.css("visibility","hidden"),s&&s.css({"padding-right":"55px"});var u=function(){t((function(){if(a&&s){var e=s.outerHeight(),t=s.position().top,n=s.outerWidth()+s.position().left-55;a.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"}),s&&!s.val()?a&&a.css("visibility","hidden"):a.css("visibility","")}}),n.ngdelay||0)};function l(e){t((function(){e.target&&e.target.value?u():a&&a.css("visibility","hidden")}))}u(),o.element(e).on("resize",u),s&&s[0]&&s[0].addEventListener("input",l,!0),n.$watch("onShow",(function(e){e&&u()})),n.$watch("onHide",(function(e){e||u()})),a.on("vclick",(function(e){s&&"password"==s.attr("type")?(s.attr("type","text"),a.prop("innerHTML","hide")):s&&(s.attr("type","password"),a.prop("innerHTML","show"))}));var c=function(){o.element(e).off("resize",u),a&&(a.off("vclick"),a.remove()),s&&s[0]&&s[0].removeEventListener("input",l),r.off("vclick"),a=void 0};n.$on("$destroy",c),r.one("$destroy",c)}}}]).directive("ngToolTip",["$animate","$viewport","$compile","$document","$window","$timeout",function(e,t,n,r,i,a){return{restrict:"A",scope:{open_flag:"=?ngToolTipToggle",tipcontent:"=?ngToolTip"},link:function(s,u,d){var p=document.createElement("div"),h=o.element(p),v=o.merge({ripple:!0,width:400,offsetParent:t.body,offset:{top:0,left:0},class:"ng-tooltip",closeClass:"close-bt bf-icon-cross",preventDef:!1},s.$eval(d.ngToolTipOptions)),m=v.offsetParent,$="string"==typeof m?o.element(document).cssSelect(m):m,g=v.useparent?u.parent():$;h.addClass(v.class).addClass("ng-animate-enabled").append('<div class="tail"></div><div tooltip-content-holder></div><div class="'+v.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"),u.css({"touch-action":"manipulation","-webkit-user-select":"none","-webkit-user-drag":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),"static"==u.getStyle("position")&&u.css("position","relative");var b=function(e){e.target&&e.target.href&&window.open(e.target.href,"_parent"),e.preventDefault(),e.stopPropagation()},w=function(){s.$applyAsync((function(){h&&e.leave(h),v.onClose&&v.onClose(),x=!1,s.open_flag=!1}))},x=!1;t.data("android")&&v.ripple&&f.add(u,!0),u.on("vclick",(function(f){var p=s.$eval(d.ngToolTipEnabled);null==p&&(p=!0),p&&(f.stopPropagation(),v.preventDef&&f.preventDefault(),a((function(){if(x)return x=!1,w(),!1;x=!0,r.trigger("vclick"),s.open_flag=!0;var a=document.createElement("div");a.setAttribute("tooltip-content",""),a.setAttribute("class","content"),o.element(a).prop("innerHTML",s.tipcontent);var f=n(o.element(a))(s.$parent);h.cssSelect("[tooltip-content-holder]").after(f),h.cssSelect("[tooltip-content-holder]").remove(),o.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")),r.off("vclick",w),o.element(i).off("resize",w),h.cssSelect("[tooltip-content]").after("<div tooltip-content-holder></div>"),h.cssSelect("[tooltip-content]").remove()})),e.on("enter",h,(function(e,n){if(h&&"start"==n&&(o.element(i).one("resize",w),setTimeout((function(){var e=$.prop("scrollHeight");if(function(){if($.css("overflow-y","scroll"),h){h.css({width:v.width+"px"});var e=u.offset(parent).left;v.usebound&&u[0]&&u[0].getBoundingClientRect()&&(e=u[0].getBoundingClientRect().left);var n,r=Math.min(e+v.offset.left,$.prop("clientWidth")-h.prop("offsetWidth")-15);r<15?(n=v.width+(r-15),r=15):n=v.width;var i=u[0].getBoundingClientRect(),a=i.top+$.prop("scrollTop");if(v.useparent){var s=u[0].parentNode;a=s.offsetHeight+v.offset.top,r=s.offsetWidth+v.offset.left}else{if($.is("body")&&!v.useparent){var f=u[0].offsetParent;for(a=i.top;f;)a+=o.element(f).prop("scrollTop"),f=f.offsetParent}var d=c($.css("border-top-width"));l(d)||(d=0),a-=d;var p=c(t.body.css("padding-top"));l(p)||(p=0),a-=p}var m=Math.min(a+u.prop("offsetHeight")+v.offset.top,$.prop("scrollHeight")-15);!v.useparent&&$.is("body")&&m<u.offset().top?m=Math.min(u.offset().top+u.prop("offsetHeight")+v.offset.top,$.prop("scrollHeight")-15):m<a&&(m=Math.min(a+u.prop("offsetHeight")+v.offset.top,$.prop("scrollHeight")-15)),h.css({width:n+"px",left:r+"px",top:m+"px"}),$.css("overflow-y","")}}(),$.prop("scrollHeight")>e&&h.css({top:h.getStyle("top",!0)-($.prop("scrollHeight")-e+15)+"px"}),h&&h[0]){var n=h[0].getBoundingClientRect(),r=n.left+n.width,i=h.getStyle("left",!0);r>window.innerWidth&&(i-=r-window.innerWidth+15),null!=i&&h.css({left:i+"px"})}})),h.attr("role","dialog"),h.attr("tabindex","0"),null!==v.role&&h&&h[0])){var r=h[0].querySelector("[tooltip-content]");r&&(r.setAttribute("role",v.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&&(o.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)})),r.one("vclick",w))}))})))}));var C=function(){h&&(h.off("vclick"),y.off("vclick",w),w(),e.off(h),h.remove()),r.off("vclick",w),o.element(i).off("resize",w),u.off("vclick"),f.remove(u),h=void 0,p=void 0,y=void 0};s.$on("$destroy",C),u.one("$destroy",C)}}}]).directive("ngAutocomplete",["$animate","$http","$q","$parse","$viewport","$document","$timeout","$injector",function(e,t,n,r,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,r,a){var c,f,d,p,h,v;c=o.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(r){if(e.stopCall)return e.hasResult=!1,void u.cancel(v);u.cancel(v),v=u((function(){if(e.progress=!1,e.autoDisplay=!1,!r||r.length<c.minlength||r==f)return h&&h.resolve(!0),void((!r||r.length<c.minlength)&&(e.hasResult=!1));f=r,h?h.resolve(!0):h=n.defer(),h=n.defer();var i={};i[c.keyName]=r;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=i:a.params=i,e.progress=!0,l.has("$api")&&(t=l.get("$api").http,o=!0),(e.responseData?e.responseData(a):c.url?t(a):n.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 m=200;e.$watch("autoDisplay",(function(t){t?e.ul&&e.ul.length>0&&u((function(){e.hasResult=!0,m=200})):m=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=i.uniqid("ac-"),e.AcOnKey=function(t){var n=t.keyCode;switch(n){case $:var r=b;i.Number.isNumber(r)&&e.select(null,r);break;case g:case y:r=b;if(n==y){if(r<e.ul.length-1)b=r+1;else if(b=0,e.blurOnLimit)return e.blurOnLimit(t),void(e.activedescendant=null)}else if(r>0)b=r-1;else if(b=e.ul.length-1,e.blurOnLimit)return e.blurOnLimit(t),void(e.activedescendant=null);e.activedescendant=e.acid+"-"+b,e.focusHandler&&e.focusHandler(null,e.ul[b]),t.preventDefault()}},e.$watch("hasResult",(function(e){setTimeout((function(){e&&(s.off("vclick",p),s.one("vclick",p))}),m)})),e.$on("$destroy",(function(){h&&h.resolve(!0),s.off("vclick",p),e.progress=!1}))}}}]).directive("ngScrollTo",["$viewport","$parse","$timeout","$rootScope",function(e,t,n,r){return{restrict:"A",link:function(n,i,a){var s=a.ngScrollTo,u=a.ngScrollBefore,l=a.ngScrollAfter,f=n.$watch(s,(function(e){e&&setTimeout((function(){var e;((e=i[0]).offsetWidth||e.offsetHeight||e.getClientRects().length)&&i.triggerHandler("scrollToMeAnim")}))})),d=function(){var t=o.merge({offset:0,parent:e.body},n.$eval(a.ngScrollOptions)),s="string"==typeof t.parent?"document"==t.parent?o.element().cssSelect("body"):o.element(document).cssSelect(t.parent):t.parent;if(t.offset+=c(s.css("border-top-width")),i[0].getBoundingClientRect().top<0&&t.offset==c(s.css("border-top-width"))&&r.isWeb){var u=document.querySelector("#viewport>header");u&&(t.offset=u.offsetHeight)}return t};i.on("scrollToMeAnim",(function(){var r=d(),a="string"==typeof r.parent?"document"==r.parent?o.element(document):o.element(document).cssSelect(r.parent):r.parent;l&&(l=t(l).bind(null,n)),u&&n.$eval(u),void 0!==r.speed&&0==r.speed?(e.body.css("overflow-y","hidden"),a.duScrollToElement(i,r.offset,0).then((function(){var t=a.prop("scrollTop");n.$applyAsync((function(){l&&l({scrollY:t})})),e.body.css("overflow-y","")}))):a.duScrollToElementAnimated(i,r.offset,void 0!==r.speed&&r.speed).then((function(){var e=a.prop("scrollTop");n.$applyAsync((function(){l&&l({scrollY:e})})),a.duScrollToElement(i,r.offset,0)}))})),i.on("scrollToMe",(function(){var e=d(),r=a.ngScrollBefore,s="string"==typeof e.parent?o.element(document).cssSelect(e.parent):e.parent;r&&n.$eval(r),l&&(l=t(l).bind(null,n)),s.duScrollToElement(i,e.offset,0).then((function(){var t=s.prop("scrollTop");n.$applyAsync((function(){l&&l({scrollY:t})})),s.duScrollToElement(i,e.offset,0)}))}));var p=function(){i.off("scrollToMeAnim"),i.off("scrollToMe"),f()};n.$on("$destroy",p),i.on("$destroy",p)}}}]).directive("ngScrollControl",["$animate",function(e){return function(t,n,r){e.on("enter",n,(function(e,t){o.equals(n,e)&&"close"==t&&e.prev().triggerHandler("scrollToMe")}));var i=function(){e.off(n)};t.$on("$destroy",i),n.on("$destroy",i)}}]).directive("ngScrollInView",["$parse","$timeout",function(e,t){return{restrict:"A",scope:{inView:"&ngScrollInView",offView:"&ngScrollOffView",offset:"<ngScrollOffset"},link:function(n,r,i){var o=e(n.inView),s=e(n.offView),u=function(){var e=n.offset||{},i=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))}(r[0],e);t(i?function(){o()}:function(){s()})},l=function(){a(window).off("scrollend",u)};r.one("$destroy",l),n.$on("$destroy",l),u(),a(window).on("scrollend",u)}}}]).directive("ngMaxChar",(function(){return{require:"ngModel",link:function(e,t,n,r){var i=Number(n.ngMaxChar);function o(e){if(e.length>i){var t=e.substring(0,i);return r.$setViewValue(t),r.$render(),t}return e}r.$parsers.push(o),e.$on("$destroy",(function(){r.$parsers.indexOf(o)>-1&&r.$parsers.splice(o,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 i=function(t){var i=e.$eval(n.ngMin)||0;return!s(t)&&t<i?void r.$setValidity("ngMin",!1):(r.$setValidity("ngMin",!0),t)};r.$parsers.push(i),r.$formatters.push(i),e.$on("$destroy",(function(){var e=r.$parsers.indexOf(i),t=r.$formatters.indexOf(i);e>-1&&r.$parsers.splice(i,1),t>-1&&r.$formatters.splice(i,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 i=function(t){var i=e.$eval(n.ngMax)||1/0;return!s(t)&&t>i?void r.$setValidity("ngMax",!1):(r.$setValidity("ngMax",!0),t)};r.$parsers.push(i),r.$formatters.push(i),e.$on("$destroy",(function(){var e=r.$parsers.indexOf(i),t=r.$formatters.indexOf(i);e>-1&&r.$parsers.splice(i,1),t>-1&&r.$formatters.splice(i,1)}))}}})).directive("ngModelSum",(function(){return{require:"?ngModelSumOptions",scope:{total:"=ngModelSum",options:"=ngModelSumOptions"},controller:["$scope",function(e){var t=[],n={min:-1/0,max:1/0};e.$watch("options",(function(e){o.extend(n,e)}),!0),this.register=function(r,i,o,a){t.push({ctrl:i,el:r,focused:!1});var s=t[t.length-1],u=function(){s.focused=!0},l=function(){s.focused=!1},c=function(){r.off("focus",u).off("blur",l),delete t[t.indexOf(s)]};r.on("focus",u).on("blur",l),r.one("$destroy",c),a.$watch(o,(function(){s.focused&&(e.total=function(e){var r,i,o=0,a=n.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:r=t[s];r&&(r.focused?(r.ctrl.$setViewValue(o-i),r.ctrl.$render(),r.el[0].blur(),setTimeout((function(){r.el[0].focus()}))):(r.ctrl.$setViewValue(o-i),r.ctrl.$commitViewValue()))}return o}(i))})),e.$on("$destroy",c),a.$on("$destroy",c)},e.$on("$destroy",(function(){n={},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 o=function(e){if(null==e)return"";var t=e.toString().trim();if(u(t))return"";var n=t.replace(/[^0-9]/g,"");return n!=t&&(r.$setViewValue(n),r.$render()),i?n:parseFloat(n)};r.$parsers.push(o),e.$on("$destroy",(function(){r.$parsers.indexOf(o)>-1&&r.$parsers.splice(o,1)}))}}})).directive("modelMatch",[function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.$watch((function(){var t=e.$eval(n.ngModel),r=e.$eval(n.modelMatch);return o.equals(t,r)}),(function(e){r.$setValidity("match",e)}))}}}]).directive("passMask",["$timeout",function(e){return{require:"ngModel",restrict:"A",link:function(t,n,r,i){var a,s,u,l=null,c=t.$eval(r.ngModel),f=t.$eval(r.passMask)||"•",d=function(e){e.preventDefault()};n.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 r=t.toString(),d=n.caret(),p=r.substring(d-1,d),h=r.substring(0,d-1),v=r.substring(d),m=c.substring(0,h.length),$=c.substring(c.length-v.length),g=p;g==f&&(g=""),c=m+g+$;var y=h.replace(/(.)/g,f)+p+v.replace(/(.)/g,f);u=function(){o.element(document.activeElement).is(n)&&n.caret(d),i.$setViewValue(y),i.$render(),o.element(document.activeElement).is(n)&&n.caret(d)},a&&(e.cancel(a),u());return(a=e((function(){s=!0,y=y.replace(/(.)/g,f),u()}),1e3)).then((function(){s=!1})),c},h=function(){n.off("paste",d);var e=i.$parsers.indexOf(p);e>-1&&i.$parsers.splice(e,1)};i.$parsers.push(p),t.$on("$destroy",h),n.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,n){var r=t.scrollEnd&&!t.data("hasScrollEnd")?t.scrollEnd():null,i=t.data("hasScrollEnd")?"scrollend":"scrollstop";t.on("scrollstart",(function(){o.element(window).trigger("scrollstart")})),t.on(i,(function(){o.element(window).trigger(i)})),t.on("$destroy",(function(){t.off("scrollstart"),t.off(i);try{r&&(r.destroy(),r=null)}catch(e){}})),e.$on("$destroy",(function(){t.off("scrollstart"),t.off(i);try{r&&(r.destroy(),r=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(t,n,r){var o=r.ngObserveAttr,a=i.String.trim;i.String.isString(o)&&!s(o)&&(o=o.split(","),i.Array.isArray(o)&&t.$watch((function(){var e=!0;return i.Array.forEach(o,(function(n){if(!t.$eval(r[a(n)]))return e=!1,!1})),e}),(function(n){e(r.ngObserveDo).bind(null,t)({$value:n})}),!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(u(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 i.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,t,n){function r(e){if("ngAriaHideText"in n)for(var r=t[0],i=0,o=r.childNodes.length;i<o;i++){var s=r.childNodes[i];if(3==s.nodeType){var u=document.createElement(n.ngAriaHideText||"p");a(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 o(e){var o=t.attr("aria-label"),s=o?o+". ":"";if("_self"==e||"_self_split"==e)if("ngAriaTextLinks"in n)!function(){for(var e=t[0],n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(3==i.nodeType){var o=document.createElement("p");a(o).addClass("inline"),i.after(o),o.appendChild(i),o.setAttribute("aria-hidden","true"),o.setAttribute("tabindex","-1")}}var s=e.querySelector(".inline");s&&(s.setAttribute("aria-label",e.innerText),s.setAttribute("tabindex","0"),s.removeAttribute("aria-hidden"))}();else{if(t.attr("aria-label",s+t[0].innerText),"_self_split"==e){for(var u=[],l=0,c=t[0].childNodes.length;l<c;l++){var f=t[0].childNodes[l],d="";1==f.nodeType?f.hasAttribute("aria-label")?(d=i.String.trim(f.getAttribute("aria-label")),f.removeAttribute("aria-label")):d=i.String.trim(f.innerText):3==f.nodeType&&(d=i.String.trim(f.wholeText)),d&&u.push(d)}t.attr("aria-label",s+u.join(". "))}else t.attr("aria-label",s+t[0].innerText);r()}else{var p=document.getElementById(e);p&&t.attr("aria-label",s+p.innerText),r()}}var s=n.ngAriaLabelledbyDelay?e.$eval(n.ngAriaLabelledbyDelay):null,u=e.$eval(n.ngAriaLabelledby);"none"!==u&&(s?setTimeout((function(){o(u)}),s):o(u))}}})).directive("ngRoleAlert",["$rootScope",function(e){return{restrict:"A",link:function(t,n,r){function o(){n.attr("tabindex","0"),e.isWeb?n[0].hasAttribute("aria-live")||(n.attr("aria-live","assertive"),n.attr("aria-atomic","true")):n.attr("role","alert")}var a=t.$eval(r.ngRoleAlert);if(i.isNullorUndefined(a))o();else var s=t.$watch(r.ngRoleAlert,(function(e){e&&(o(),s())}))}}}]).directive("ngAriaLive",(function(){var e=navigator.userAgent,t=navigator.platform?navigator.platform:"";return{restrict:"A",link:function(n,r,i){r.addClass("a11y-visually-hidden");var o=null,a=null!=e.match(/Android/i)||t&&null!=t.match(/Android/i),s=n.$eval(i.liveType)||"assertive";r.attr("aria-live",s),r.attr("aria-atomic","true"),r.attr("role","status"),a&&(r.attr("aria-hidden","true"),r.attr("tabindex","-1")),n.$watch(i.ngAriaLive,(function(e){clearTimeout(o),o=setTimeout((function(){r.prop("innerHTML",e||""),a?r.attr("aria-label",e||""):(r[0].style.display="none",r[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(){var e=navigator.userAgent,t=navigator.platform?navigator.platform:"";return{restrict:"A",link:function(n,r,i){n.$watch(i.ngTabIndex,(function(n){null!=e.match(/iPhone|iPad|iPod/i)||t&&null!=t.match(/iPhone|iPad|iPod/i)||null!=e.match(/Android/i)||t&&null!=t.match(/Android/i)||(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"))}))}}})).directive("imgError",(function(){return{restrict:"A",scope:{src:"=ngSrc",fallback:"@imgError",onImageFailed:"&?imageFailed"},link:function(e,t,n){function r(){e.$applyAsync((function(){e.fallback&&t[0].src!==e.fallback?(t[0].src=e.fallback,t[0].style.display=""):t[0].style.display="none",e.onImageFailed&&e.onImageFailed()}))}e.$on("$destroy",(function(){t.off("error",r)})),t.on("error",r),e.$watch("src",(function(n){!function(n){!n&&e.fallback&&(n=e.fallback),n&&(t.attr("src",n),t[0].style.display="")}(n)}))}}}))})),define("angularAdView",["polyfills","angular","jquery","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(),v=!h.data("hasScrollEnd")&&e.Object.isFunction(h.scrollEnd)?h.scrollEnd():null,m=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(m,w),n(window).off("resizeEnd",w),i&&i[o.aid]&&delete i[o.aid],v&&v.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(m,w),n(window).on("resizeEnd",w),p=!0),w(),k())}))}));else h.on(m,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";var e=Object.prototype.toString,t=Array.isArray||function(t){return"[object Array]"===e.call(t)};function n(e){return"function"==typeof e}function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(e,t){return null!=e&&"object"==typeof e&&t in e}var o=RegExp.prototype.test;var a=/\S/;function s(e){return!function(e,t){return o.call(e,t)}(a,e)}var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};var l=/\s*/,c=/\s+/,f=/\s*=/,d=/\s*\}/,p=/#|\^|\/|>|\{|&|=|!/;function h(e){this.string=e,this.tail=e,this.pos=0}function v(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function m(){this.cache={}}h.prototype.eos=function(){return""===this.tail},h.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},h.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},v.prototype.push=function(e){return new v(e,this)},v.prototype.lookup=function(e){var t,r,o,a=this.cache;if(a.hasOwnProperty(e))t=a[e];else{for(var s,u,l,c=this,f=!1;c;){if(e.indexOf(".")>0)for(s=c.view,u=e.split("."),l=0;null!=s&&l<u.length;)l===u.length-1&&(f=i(s,u[l])||(r=s,o=u[l],null!=r&&"object"!=typeof r&&r.hasOwnProperty&&r.hasOwnProperty(o))),s=s[u[l++]];else s=c.view[e],f=i(c.view,e);if(f){t=s;break}c=c.parent}a[e]=t}return n(t)&&(t=t.call(this.view)),t},m.prototype.clearCache=function(){this.cache={}},m.prototype.parse=function(e,n){var i=this.cache,o=e+":"+(n||$.tags).join(":"),a=i[o];return null==a&&(a=i[o]=function(e,n){if(!e)return[];var i,o,a,u=!1,v=[],m=[],g=[],y=!1,b=!1,w="",x=0;function C(){if(y&&!b)for(;g.length;)delete m[g.pop()];else g=[];y=!1,b=!1}function S(e){if("string"==typeof e&&(e=e.split(c,2)),!t(e)||2!==e.length)throw new Error("Invalid tags: "+e);i=new RegExp(r(e[0])+"\\s*"),o=new RegExp("\\s*"+r(e[1])),a=new RegExp("\\s*"+r("}"+e[1]))}S(n||$.tags);for(var k,A,T,E,O,M,D=new h(e);!D.eos();){if(k=D.pos,T=D.scanUntil(i))for(var j=0,I=T.length;j<I;++j)s(E=T.charAt(j))?(g.push(m.length),w+=E):(b=!0,u=!0,w+=" "),m.push(["text",E,k,k+1]),k+=1,"\n"===E&&(C(),w="",x=0,u=!1);if(!D.scan(i))break;if(y=!0,A=D.scan(p)||"name",D.scan(l),"="===A?(T=D.scanUntil(f),D.scan(f),D.scanUntil(o)):"{"===A?(T=D.scanUntil(a),D.scan(d),D.scanUntil(o),A="&"):T=D.scanUntil(o),!D.scan(o))throw new Error("Unclosed tag at "+D.pos);if(O=">"==A?[A,T,k,D.pos,w,x,u]:[A,T,k,D.pos],x++,m.push(O),"#"===A||"^"===A)v.push(O);else if("/"===A){if(!(M=v.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?b=!0:"="===A&&S(T)}if(C(),M=v.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])[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}(m))}(e,n)),a},m.prototype.render=function(e,t,n,r){var i=this.parse(e,r),o=t instanceof v?t:new v(t,void 0);return this.renderTokens(i,o,n,e,r)},m.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},m.prototype.renderSection=function(e,r,i,o){var a=this,s="",u=r.lookup(e[1]);if(u){if(t(u))for(var l=0,c=u.length;l<c;++l)s+=this.renderTokens(e[4],r.push(u[l]),i,o);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)s+=this.renderTokens(e[4],r.push(u),i,o);else if(n(u)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(u=u.call(r.view,o.slice(e[3],e[5]),(function(e){return a.render(e,r,i)})))&&(s+=u)}else s+=this.renderTokens(e[4],r,i,o);return s}},m.prototype.renderInverted=function(e,n,r,i){var o=n.lookup(e[1]);if(!o||t(o)&&0===o.length)return this.renderTokens(e[4],n,r,i)},m.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")},m.prototype.renderPartial=function(e,t,r,i){if(r){var o=n(r)?r(e[1]):r[e[1]];if(null!=o){var a=e[6],s=e[5],u=e[4],l=o;return 0==s&&u&&(l=this.indentPartial(o,u,a)),this.renderTokens(this.parse(l,i),t,r,l)}}},m.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},m.prototype.escapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return $.escape(n)},m.prototype.rawValue=function(e){return e[1]};var $={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},g=new m;return $.clearCache=function(){return g.clearCache()},$.parse=function(e,t){return g.parse(e,t)},$.render=function(e,n,r,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((t(o=e)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)'));var o;return g.render(e,n,r,i)},$.to_html=function(e,t,r,i){var o=$.render(e,t,r);if(!n(i))return o;i(o)},$.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return u[e]}))},$.Scanner=h,$.Context=v,$.Writer=m,$})),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){var u=o.get(i.tpl);i.$watch("data",(function(o,s){if(e.equals(o,s))return!1;var l=t.render(u,i.data);r.has("$sanitize")?r.invoke(["$sanitize",function(e){var t=i.sanitize;safe=t?e(l):l}]):safe=l,a.html(l),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,v,m,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:m,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){var t;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=(t=this,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}],link:function(e,t,n,r){return t.bind("scroll",r.checkInView),d(r),e.$on("$destroy",(function(){return t.unbind("scroll",r.checkInView),v(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()},v=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 m(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,v,m,$,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,v=e.length;d<v;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,m=e.length;h<m;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)}},m=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){var n,r,i=[".json",".string",".number",".function",".boolean"],o="",a={useSession:function(e){n=e?window.sessionStorage:window.localStorage},ascookies:!1,useMemory:function(e){e&&!r?(r=n,n={_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={}}}):(n=r,r=!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,r){var u=e,l=t,c="";if("expirations"==e)return!1;switch(e=o+e,typeof t){case"object":t=JSON.stringify(t),c=i[0];break;case"function":t=t.toString(),c=i[3];break;case"number":t=t.toString(),c=i[2];break;case"boolean":t=t.toString(),c=i[4];break;default:c=i[1]}for(var f=0;f<i.length;f++)if(n.getItem(e+i[f])){n.removeItem(e+i[f]);break}try{n.setItem(e+c,t)}catch(e){e&&e.message&&"QuotaExceededError"==e.message?s():a.useMemory(!0)}r&&a.expireKey(u,r),this.trigger("valuechange",u,l,r)},get:function(e){var t,r=e;e=o+e;for(var s=0;s<i.length;s++)if(n.getItem(e+i[s])){if(a.isExpired(r))return void n.removeItem(e+i[s]);switch(i[s]){case i[0]:t=JSON.parse(n.getItem(e+i[s]));break;case i[1]:t=n.getItem(e+i[s]);break;case i[2]:t=parseFloat(n.getItem(e+i[s]));break;case i[3]:t=new Function(n.getItem(e+i[s]));break;case i[4]:t=JSON.parse(n.getItem(e+i[s]))}break}return"undefined"==t||null==t?void 0:"true"==t||"false"!=t&&t},remove:function(e){var t=e;e=o+e;for(var r=0;r<i.length;r++)n.getItem(e+i[r])&&n.removeItem(e+i[r]);this.trigger("valuedelete",t)},group:function(e){if(null==e)return o?o.substring(0,o.length-1):"";!1===e&&(o=""),o=e+"_",this.trigger("groupchange",o)},isGroup:function(e){var t=n;for(var r in t)if(0===r.indexOf(e))return!0;return!1},renameGroup:function(e,t,r){var i=e+"_"||o,a={async:(r=r||{}).async||!1,callback:r.callback||!1},s=Object.keys?Object.keys(n):[],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}({},n);if(o=t+"_",a.async&&Object.keys)return function(){if(ix>=s.length)return a.callback?a.callback():null;var e=s[ix];0===e.indexOf(i)&&(n.setItem(o+e.substring(i.length),u[e]),delete n[e]),ix++}();for(var l in u)0===l.indexOf(i)&&(n.setItem(o+l.substring(i.length),u[l]),delete n[l]);this.trigger("groupchange",o)},removeGroup:function(e,t){e=e?e+"_":o;var r={async:(t=t||{}).async||!1,callback:t.callback||!1,exclude:t.exclude||!1},i=n,a=Object.keys?Object.keys(n):[],s=0;if(asyncDelete=function(){if(s>=a.length)return r.callback?r.callback():null;var t=a[s],i=!1;if(0===t.indexOf(e)){if(r.exclude)for(var o in r.exclude){var u=e+r.exclude[o];if(0===t.indexOf(u+".")){i=!0;break}}i||n.removeItem(t)}s++,setTimeout(asyncDelete)},r.async&&Object.keys)return asyncDelete();for(var u in i){var l=!1;if(0===u.indexOf(e)){if(r.exclude)for(var c in r.exclude){var f=e+r.exclude[c];if(0===u.indexOf(f+".")){l=!0;break}}l||n.removeItem(u)}}},expireKey:function(e,t){var r=n.getItem("_expirations.json")||!1;try{(r=JSON.parse(r))||(r={})}catch(e){r={}}r[o+e]={in:t,since:(new Date).getTime()};n.setItem("_expirations.json",JSON.stringify(r))},isExpired:function(e){var t=n.getItem("_expirations.json")||!1;if(!t)return!1;try{if(!(t=JSON.parse(t)))return!1}catch(e){return!1}var r=t[o+e]||!1;return!!r&&(new Date).getTime()-r.since>=r.in},getExpiration:function(e){var t=n.getItem("_expirations.json")||!1;if(!t)return!1;try{if(!(t=JSON.parse(t)))return!1}catch(e){return!1}var r=t[o+e]||!1;return r||!1}};function s(){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)}};a.set=function(t,n,r){e(t=o+t,n,r),this.trigger("valuechange",t,n,r)},a.get=function(e){return n(e=o+e)},a.expireKey=function(t,r){var i=n("_expirations.json")||!1;try{(i=JSON.parse(i))||(i={})}catch(e){i={}}i[o+t]={in:r,since:(new Date).getTime()};e("_expirations.json",JSON.stringify(i));var a=o+t,s=n(a);null!=s&&e(a,s,r)},a.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}var r=t[o+e]||!1;return r||!1},a.remove=function(e){t(e=o+e),this.trigger("valuedelete",e)},a.removeGroup=function(e){var n=function(){for(var e=document.cookie.split(";"),t="",n=1;n<=e.length;n++)t+=n+" "+e[n-1]+"\n";return t}();for(var r in n)0==(""+n[r]).indexOf(e+"_")&&t(r)},a.isExpired=function(){console.warn("not available for cookies")},a.renameGroup=function(){console.warn("not available for cookies")},a.isGroup=function(){console.warn("not available for cookies")},a.ascookies=!0}return function(){var e,t;try{(n=window.localStorage).setItem("test","test"),n.removeItem("test")}catch(t){e=!0}if(e&&(t=!!navigator.cookieEnabled,void 0!==navigator.cookieEnabled||t||(document.cookie="testcookie",t=-1!=document.cookie.indexOf("testcookie")),t?s():a.useMemory(!0),a.getKey=a.get,a.setKey=a.set,a.removeKey=a.remove,!e)){var r=n.getItem("_expirations.json")||!1;if(r)try{var o=JSON.parse(r);r=JSON.parse(r);var u=new Date;for(var l in r){var c=r[l]||!1;if(!c)break;if(u.getTime()-c.since>=c.in)for(var f=0;f<i.length;f++)n.getItem(l+i[f])&&(n.removeItem(l+i[f]),delete o[l])}n.setItem("_expirations.json",JSON.stringify(o))}catch(e){}}}(),a})),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;e([o.js],(function(t){u({js:!0,ctrl:t||null}),r.get(s)&&!o.skiptemplatecache||!o.html?u({html:!0}):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)}))}()}),(function(e){console.error(e),c(e)})),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){var t=[];var n=[];var r=[],i=!1,o=[];function l(e,t){i?r.forEach((function(n){n(e,t)})):o.push({name:e,value:t})}var c=[];var 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),p.standing&&"thinfile"==p.standing.toLowerCase()?p={standing:null,score:null,thinfile:!0}:p.standing&&["invalid","filesuppressed","invalidvendorrequest","thinfile","outofrange","deceased"].indexOf(p.standing.toLowerCase())>-1&&(p={standing:null,score:null,invalid:!0});var h="filters"in s&&null!=s.filters&&"mc"in s.filters&&null!=s.filters.mc,v=null,m=null;return d&&null!=p.standing&&null!=p.score&&(v=p.standing,m=p.score),"ao_mc_override"in s&&(v=s.ao_mc_override,m=4),{setIntro:function(e){t.forEach((function(t){t(e)}))},onIntroChange:function(e){return t.push(e),function(){var n=t.indexOf(e);t.splice(n,1)}},setControllerReady:function(e){n.forEach((function(t){t(e)}))},onControllerLoaded:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}},setFilter:l,onFiltersSet:function(e){return r.push(e),function(){var t=r.indexOf(e);r.splice(t,1)}},ccFiltersReady:function(){i=!0,o.forEach((function(e){l(e.name,e.value)})),o=[]},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 v},get myScore(){return m}}}]),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){var n=e("stApp"),r=e("angular"),i=r.element,o=e("page");function a(){e(["shortcode-js"],(function(e){var t="https://"+location.host;(i(".pl-rates-div").length||i(".pl-terms-box").length)&&e.SetPrsWidgets(window,t),(i(".cc-mini-box").length||i(".cc-list-buttons").length||i(".cc-editorial-box").length||i(".ct-author-box").length)&&(e.ClearBoxes(),e.SetBoxes(window,t)),i(".cc-trust").length&&(e.ClearCCTrust(),e.SetCCTrust())}),(function(e){console.error(e)}))}n.angular.controller("IntroController",["$scope","$injector",function(e,t){var n=t.get("$stService");e.disclosure_scroll=function(){var e,t=r.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=r.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=o.intro,u=o.intro2?o.intro2:"",l=r.element("<div>").html(s),c=r.element("<div>").html(u);function f(e){r.forEach(e,(function(e,t){var n=r.element(e),i="ulistcheck-"+t;n.attr("id",i);var o=n.closest(".cc-list-buttons");if(o.length){var a=o.find("label");a.length&&a.attr("for",i)}}))}function d(e){r.forEach(e,(function(e){var t=i(e);if(!t.hasClass("wh-pro-tip")){t.addClass("wh-pro-tip");var n=t.attr("data-title")||"WalletHub Pro Tip",r=i('<div class="wh-tip-content"></div>').html(t.html());t.html("").append('<span class="protip-icon"></span>','<div class="wh-tip-title">'+n+"</div>",r)}}))}function p(e,t){r.forEach(e,(function(e,n){var r=i(e);if(!r.hasClass("wh-drawer")){r.addClass("wh-drawer");var o="wh-drawer-"+t+n,a=r.attr("data-title")||"",s=r.attr("data-title-style")||"h2",u="<"+(s=["h1","h2","h3","h4","h5","h6","h2-small"].indexOf(s.toLowerCase())>=0?s:"h2")+">"+a+"</"+s+">";"h2-small"==s&&(u='<h2 class="small">'+a+"</h2>");var l='<div class="wh-drawer-content">'+r.html()+"</div>";r.html("").html('<input class="wh-drawer-checkbox" type="checkbox" hidden id="'+o+'"><label class="wh-drawer-hd" for="'+o+'">'+u+'<span class="dd-t-exp"></span></label>'+l)}}))}function h(e){r.forEach(e,(function(e,t){var n=r.element(e),i=r.element("<div></div>");i.addClass("summary-picks-grid");var o=n.attr("data-cc-trust"),a=n.attr("data-title")||"",s=n.attr("data-version")||"v1",u="summary-accordion-"+t,l="ccid-trust-"+t;o&&i.addClass("has-cc-trust");var c="";(c+='<div class="top-summary-col"><div class="top-summary-accordion"><input type="checkbox" class="accordion-checkbox" id="'+u+'" hidden /><label for="'+u+'" class="accordion-header"><span tabindex="-1" aria-hidden="true"><em class="wh-card-icon"></em></span><div>Summary of Editor’s Picks</div><span class="exp-btn"></span></label><div class="accordion-content-wrapper"><div class="accordion-content"><div class="accordion-content-title">'+a+'</div><ul class="accordion-list">',r.forEach(n.find("li"),(function(e){var t=r.element(e);c+='<li class="accordion-list-item"><span><em aria-hidden="true"></em></span><span>'+t.html()+"</span></li>"})),c+="</ul></div></div></div></div>",o)&&(c+='<div><div class="best-cc-trust"><input class="cct-checkbox" type="checkbox" id="'+l+'"><label class="cc-trust-hd cct-'+s+'" for="'+l+'"><span><em class="wh-icon"></em></span><div>'+("v2"!==s?"People Trust WalletHub":"WalletHub Shows You Cards Other Sites Won’t")+'</div><span class="cc-t-exp"></span></label>',c+="v2"!==s?'<div class="cct-content-wrapper"><div class="cc-trust-grid"><div class="cct-content">WalletHub’s credit card experts are committed to helping users find the best credit cards for their needs, above all else. That’s why we use a data-driven approach to compare more than 1,500 credit card offers across the website, removing subjectivity from the equation, and it’s why we have developed the most robust <a class="link" href="https://wallethub.com/edu/cc/credit-card-rating-system/125319">credit card rating system</a> and abide by a strong <a class="link" href="https://wallethub.com/edu/wallethub-editorial-policy/25756">editorial policy</a>.</div><div class="cct-list"><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>1,500+ credit cards tracked site-wide</span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>100-point proprietary rating system</span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>75,000+ data points tracked site-wide</span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>100% editorial independence</span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>15 years of experience</span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>We tell you about cards other sites won’t</span></div></div></div></div>':'<div class="cct-content-wrapper cct-v2"><div class="cc-trust-grid"><div class="cct-list cct-v2"><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>WalletHub tracks 1,500+ credit cards <span class="cct-meta">(other sites only consider a much smaller number of cards, so they naturally miss a lot of great cards)</span></span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>WalletHub picks the best credit cards overall <span class="cct-meta">(other sites pick the best cards from their advertising partners)</span></span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>WalletHub uses a <a class="link" target="_blank" href="https://wallethub.com/edu/cc/credit-card-rating-system/125319">sophisticated card rating system</a> to objectively find the best cards <span class="cct-meta">(other sites’ picks are influenced by their own biases)</span></span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>WalletHub has <a class="link" target="_blank" href="https://wallethub.com/edu/wallethub-editorial-policy/25756">100% editorial independence</a> <span class="cct-meta">(other sites just provide a billboard for advertisers)</span></span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>WalletHub does not have a conflict of interest <span class="cct-meta">(other sites are biased due to promoting their own lending and banking offers)</span></span></div><div class="cct-list-item"><span><em aria-hidden="true"></em></span><span>WalletHub has 15+ years of credit card experience <span class="cct-meta">(other sites simply don’t have the same expertise)</span></span></div></div></div></div>',c+="</div></div>");i.html(c),n.replaceWith(i)}))}function v(t){e.$applyAsync((function(){s=l.html(),u=c.html(),"intro"in o&&""!=(o.intro+"").trim()&&(e.pageintro=window.TruncateHTML.truncate(s,window.get_intro_limit()),e.pageintro2=u,setTimeout((function(){t&&window.requestIdleCallback?window.requestIdleCallback(a):a()})))}))}d(i(l.find("[data-pro-tip]"))),p(i(l.find("[data-wh-drawer]")),"pri"),d(i(c.find("[data-pro-tip]"))),p(i(c.find("[data-wh-drawer]")),"sec"),f(i(l.find(".ulistcheck"))),f(i(c.find(".ulistcheck"))),h(i(l.find(".cc-picks-summary"))),h(i(c.find(".cc-picks-summary"))),r.element(window).on("resize",v),v(!0);var m=n.onIntroChange((function(e){"top"in e&&(s=e.top||""),"btm"in e&&(u=e.btm||""),l=r.element("<div>").html(s),c=r.element("<div>").html(u),v()}));e.$on("$destroy",(function(){m(),r.element(window).off("resize",v)})),e.toggleIntro=function(e){var t=r.element(e.target).closest("[data-ng-html-content='pageintro']");t.toggleClass("more");var n=t.hasClass("more"),i=t[0].querySelector("[data-show-more]");i&&(i.setAttribute("aria-hidden",n?"true":"false"),i.setAttribute("tabindex",n?"-1":"0")),t[0].focus(),setTimeout((function(){t[0].focus(),a()}))}}])}));