+++ /dev/null
-!function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,r,i=arguments[0],o=arguments[1],a="["+(e?e+":":"")+i+"] ",s=W(arguments,2).map(function(e){return Ce(e,Dr.objectMaxDepth)});for(a+=o.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t<s.length?s[t]:e}),a+="\nhttp://errors.angularjs.org/1.6.4/"+(e?e+"/":"")+i,r=0,n="?";r<s.length;r++,n="&")a+=n+"p"+r+"="+encodeURIComponent(s[r]);return new t(a)}}function n(e){if(!E(e))return Dr;y(e.objectMaxDepth)&&(Dr.objectMaxDepth=r(e.objectMaxDepth)?e.objectMaxDepth:NaN)}function r(e){return M(e)&&e>0}function i(e){if(null==e||T(e))return!1;if(Kr(e)||w(e)||Pr&&e instanceof Pr)return!0;var t="length"in Object(e)&&e.length;return M(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(x(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(Kr(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r<a;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(C(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)Nr.call(e,r)&&t.call(n,e[r],r,e);return e}function a(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function s(e){return function(t,n){e(n,t)}}function c(){return++Wr}function l(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function d(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(E(a)||x(a))for(var s=Object.keys(a),c=0,u=s.length;c<u;c++){var m=s[c],p=a[m];n&&E(p)?A(p)?e[m]=new Date(p.valueOf()):k(p)?e[m]=new RegExp(p):p.nodeName?e[m]=p.cloneNode(!0):R(p)?e[m]=p.clone():(E(e[m])||(e[m]=Kr(p)?[]:{}),d(e[m],[p],!0)):e[m]=p}}return l(e,r),e}function u(e){return d(e,jr.call(arguments,1),!1)}function m(e){return d(e,jr.call(arguments,1),!0)}function p(e){return parseInt(e,10)}function h(e,t){return u(Object.create(e),t)}function f(){}function g(e){return e}function v(e){return function(){return e}}function $(e){return x(e.toString)&&e.toString!==Ur}function b(e){return void 0===e}function y(e){return void 0!==e}function E(e){return null!==e&&"object"==typeof e}function C(e){return null!==e&&"object"==typeof e&&!qr(e)}function w(e){return"string"==typeof e}function M(e){return"number"==typeof e}function A(e){return"[object Date]"===Ur.call(e)}function x(e){return"function"==typeof e}function k(e){return"[object RegExp]"===Ur.call(e)}function T(e){return e&&e.window===e}function _(e){return e&&e.$evalAsync&&e.$watch}function S(e){return"[object File]"===Ur.call(e)}function N(e){return"[object FormData]"===Ur.call(e)}function D(e){return"[object Blob]"===Ur.call(e)}function O(e){return"boolean"==typeof e}function I(e){return e&&x(e.then)}function H(e){return e&&M(e.length)&&Gr.test(Ur.call(e))}function P(e){return"[object ArrayBuffer]"===Ur.call(e)}function R(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function L(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function j(e){return Or(e.nodeName||e[0]&&e[0].nodeName)}function B(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function F(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function U(e,t,n){function i(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(Kr(e))for(var o=0,s=e.length;o<s;o++)t.push(a(e[o],n));else if(C(e))for(r in e)t[r]=a(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=a(e[r],n));else for(r in e)Nr.call(e,r)&&(t[r]=a(e[r],n));return l(t,i),t}function a(e,t){if(!E(e))return e;var n=c.indexOf(e);if(-1!==n)return d[n];if(T(e)||_(e))throw Vr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=s(e);return void 0===o&&(o=Kr(e)?[]:Object.create(qr(e)),r=!0),c.push(e),d.push(o),r?i(e,o,t):o}function s(e){switch(Ur.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(a(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(x(e.cloneNode))return e.cloneNode(!0)}var c=[],d=[];if(n=r(n)?n:NaN,t){if(H(t)||P(t))throw Vr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Vr("cpi","Can't copy! Source and destination are identical.");return Kr(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),c.push(e),d.push(t),i(e,t,n)}return a(e,n)}function q(e,t){return e===t||e!==e&&t!==t}function V(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(!Kr(e)){if(A(e))return!!A(t)&&q(e.getTime(),t.getTime());if(k(e))return!!k(t)&&e.toString()===t.toString();if(_(e)||_(t)||T(e)||T(t)||Kr(t)||A(t)||k(t))return!1;i=ve();for(r in e)if("$"!==r.charAt(0)&&!x(e[r])){if(!V(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&y(t[r])&&!x(t[r]))return!1;return!0}if(!Kr(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!V(e[r],t[r]))return!1;return!0}}return!1}function z(e,t,n){return e.concat(jr.call(t,n))}function W(e,t){return jr.call(e,t||0)}function Y(e,t){var n=arguments.length>2?W(arguments,2):[];return!x(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,z(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function K(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:T(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":_(n)&&(r="$SCOPE"),r}function G(e,t){if(!b(e))return M(t)||(t=t?2:null),JSON.stringify(e,K,t)}function X(e){return w(e)?JSON.parse(e):e}function Z(e,t){e=e.replace(ei,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return Yr(n)?t:n}function J(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function Q(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return J(e,n*(Z(t,r)-r))}function ee(e){e=Pr(e).clone();try{e.empty()}catch(e){}var t=Pr("<div>").append(e).html();try{return e[0].nodeType===ai?Or(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Or(t)})}catch(e){return Or(t)}}function te(e){try{return decodeURIComponent(e)}catch(e){}}function ne(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),y(r=te(r))&&(i=!y(i)||te(i),Nr.call(t,r)?Kr(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function re(e){var t=[];return o(e,function(e,n){Kr(e)?o(e,function(e){t.push(oe(n,!0)+(!0===e?"":"="+oe(e,!0)))}):t.push(oe(n,!0)+(!0===e?"":"="+oe(e,!0)))}),t.length?t.join("&"):""}function ie(e){return oe(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function oe(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ae(e,t){var n,r,i=ti.length;for(r=0;r<i;++r)if(n=ti[r]+t,w(n=e.getAttribute(n)))return n;return null}function se(t,n){var r,i,a={};if(o(ti,function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))}),o(ti,function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))}),r){if(!ni)return void e.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==ae(r,"strict-di"),n(r,i?[i]:[],a)}}function ce(t,n,r){E(r)||(r={}),r=u({strictDi:!1},r);var i=function(){if((t=Pr(t)).injector()){var i=t[0]===e.document?"document":ee(t);throw Vr("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"<").replace(/>/,">"))}(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=at(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),zr.resumeBootstrap=function(e){return o(e,function(e){n.push(e)}),i()},x(zr.resumeDeferredBootstrap)&&zr.resumeDeferredBootstrap()}function le(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function de(e){var t=zr.element(e).injector();if(!t)throw Vr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function ue(e,t){return t=t||"_",e.replace(ri,function(e,n){return(n?t:"")+e.toLowerCase()})}function me(e,t,n){if(!e)throw Vr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function pe(e,t,n){return n&&Kr(e)&&(e=e[e.length-1]),me(x(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function he(e,t){if("hasOwnProperty"===e)throw Vr("badname","hasOwnProperty is not a valid {0} name",t)}function fe(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&&x(e)?Y(o,e):e}function ge(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=Pr(jr.call(e,0,i))),t.push(n));return t||e}function ve(){return Object.create(null)}function $e(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!$(e)||Kr(e)||A(e)?G(e):e.toString()}return e}function be(e){function n(e,t,n){return e[t]||(e[t]=n())}var r=t("$injector"),i=t("ng"),o=n(e,"angular",Object);return o.$$minErr=o.$$minErr||t,n(o,"module",function(){var e={};return function(t,o,a){var s={};return function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)}(t,"module"),o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,r){return r||(r=c),function(){return r[n||"push"]([e,t,arguments]),m}}function n(e,n,r){return r||(r=c),function(i,o){return o&&x(o)&&(o.$$moduleName=t),r.push([e,n,arguments]),m}}if(!o)throw r("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.",t);var c=[],l=[],d=[],u=e("$injector","invoke","push",l),m={_invokeQueue:c,_configBlocks:l,_runBlocks:d,info:function(e){if(y(e)){if(!E(e))throw i("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator",l),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:u,run:function(e){return d.push(e),this}};return a&&u(a),m})}})}function ye(e,t){if(Kr(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(E(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function Ee(e,t){var n=[];return r(t)&&(e=U(e,null,t)),JSON.stringify(e,function(e,t){if(t=K(e,t),E(t)){if(n.indexOf(t)>=0)return"...";n.push(t)}return t})}function Ce(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):b(e)?"undefined":"string"!=typeof e?Ee(e,t):e}function we(){return++mi}function Me(e){return xe(e.replace(hi,"ms-"))}function Ae(e,t){return t.toUpperCase()}function xe(e){return e.replace(pi,Ae)}function ke(e){return!$i.test(e)}function Te(e){var t=e.nodeType;return t===oi||!t||t===ci}function _e(e,t){var n,r,i,a,s=t.createDocumentFragment(),c=[];if(ke(e))c.push(t.createTextNode(e));else{for(n=s.appendChild(t.createElement("div")),r=(bi.exec(e)||["",""])[1].toLowerCase(),i=Ei[r]||Ei._default,n.innerHTML=i[1]+e.replace(yi,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;c=z(c,n.childNodes),(n=s.firstChild).textContent=""}return s.textContent="",s.innerHTML="",o(c,function(e){s.appendChild(e)}),s}function Se(t,n){n=n||e.document;var r;return(r=vi.exec(t))?[n.createElement(r[1])]:(r=_e(t,n))?r.childNodes:[]}function Ne(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function De(e){if(e instanceof De)return e;var t;if(w(e)&&(e=Xr(e),t=!0),!(this instanceof De)){if(t&&"<"!==e.charAt(0))throw gi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new De(e)}t?Ue(this,Se(e)):x(e)?Ke(e):Ue(this,e)}function Oe(e){return e.cloneNode(!0)}function Ie(e,t){!t&&Te(e)&&Pr.cleanData([e]),e.querySelectorAll&&Pr.cleanData(e.querySelectorAll("*"))}function He(e,t,n,r){if(y(r))throw gi("offargs","jqLite#off() does not support the `selector` argument");var i=Re(e),a=i&&i.events,s=i&&i.handle;if(s)if(t){var c=function(t){var r=a[t];y(n)&&F(r||[],n),y(n)&&r&&r.length>0||(e.removeEventListener(t,s),delete a[t])};o(t.split(" "),function(e){c(e),fi[e]&&c(fi[e])})}else for(t in a)"$destroy"!==t&&e.removeEventListener(t,s),delete a[t]}function Pe(e,t){var n=e.ng339,r=n&&ui[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),He(e)),delete ui[n],e.ng339=void 0}}function Re(e,t){var n=e.ng339,r=n&&ui[n];return t&&!r&&(e.ng339=n=we(),r=ui[n]={events:{},data:{},handle:void 0}),r}function Le(e,t,n){if(Te(e)){var r,i=y(n),o=!i&&t&&!E(t),a=!t,s=Re(e,!o),c=s&&s.data;if(i)c[xe(t)]=n;else{if(a)return c;if(o)return c&&c[xe(t)];for(r in t)c[xe(r)]=t[r]}}}function je(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Be(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",Xr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Xr(t)+" "," ")))})}function Fe(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=Xr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Xr(n))}}function Ue(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 qe(e,t){return Ve(e,"$"+(t||"ngController")+"Controller")}function Ve(e,t,n){e.nodeType===ci&&(e=e.documentElement);for(var r=Kr(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(y(n=Pr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===li&&e.host}}function ze(e){for(Ie(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function We(e,t){t||Ie(e);var n=e.parentNode;n&&n.removeChild(e)}function Ye(t,n){"complete"===(n=n||e).document.readyState?n.setTimeout(t):Pr(n).on("load",t)}function Ke(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}function Ge(e,t){var n=Mi[t.toLowerCase()];return n&&Ai[j(e)]&&n}function Xe(e){return xi[e]}function Ze(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(b(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||Je;o>1&&(i=ye(i));for(var c=0;c<o;c++)n.isImmediatePropagationStopped()||s(e,n,i[c])}};return n.elem=e,n}function Je(e,t,n){n.call(e,t)}function Qe(e,t,n){var r=t.relatedTarget;r&&(r===e||Ci.call(e,r))||n.call(e,t)}function et(){this.$get=function(){return u(De,{hasClass:function(e,t){return e.attr&&(e=e[0]),je(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Fe(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Be(e,t)}})}}function tt(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||c)():r+":"+e}function nt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function rt(e){return Function.prototype.toString.call(e)}function it(e){var t=rt(e).replace(Ii,"");return t.match(Si)||t.match(Ni)}function ot(e){var t=it(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function at(e,t){function n(e){return function(t,n){if(!E(t))return e(t,n);o(t,s(e))}}function r(e,t){if(he(e,"service"),(x(t)||Kr(t))&&(t=f.instantiate(t)),!t.$get)throw Hi("pget","Provider '{0}' must define $get factory method.",e);return h[e+u]=t}function i(e,t){return function(){var n=y.invoke(t,this);if(b(n))throw Hi("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function a(e,t,n){return r(e,{$get:!1!==n?i(e,t):t})}function c(e){me(b(e)||Kr(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=f.get(r[0]);i[r[1]].apply(i,r[2])}}if(!p.get(e)){p.set(e,!0);try{w(e)?(t=Lr(e),y.modules[e]=t,n=n.concat(c(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):x(e)?n.push(f.invoke(e)):Kr(e)?n.push(f.invoke(e)):pe(e,"module")}catch(t){throw Kr(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Hi("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),n}function l(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===d)throw Hi("cdep","Circular dependency found: {0}",t+" <- "+m.join(" <- "));return e[t]}try{return m.unshift(t),e[t]=d,e[t]=n(t,r),e[t]}catch(n){throw e[t]===d&&delete e[t],n}finally{m.shift()}}function i(e,n,i){for(var o=[],a=at.$$annotate(e,t,i),s=0,c=a.length;s<c;s++){var l=a[s];if("string"!=typeof l)throw Hi("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(e){if(Hr||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return O(t)||(t=e.$$ngIsClass=/^(?:class\b|constructor\()/.test(rt(e))),t}return{invoke:function(e,t,n,r){"string"==typeof n&&(r=n,n=null);var a=i(e,n,r);return Kr(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)},instantiate:function(e,t,n){var r=Kr(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))},get:r,annotate:at.$$annotate,has:function(t){return h.hasOwnProperty(t+u)||e.hasOwnProperty(t)}}}t=!0===t;var d={},u="Provider",m=[],p=new Ti,h={$provide:{provider:n(r),factory:n(a),service:n(function(e,t){return a(e,["$injector",function(e){return e.instantiate(t)}])}),value:n(function(e,t){return a(e,v(t),!1)}),constant:n(function(e,t){he(e,"constant"),h[e]=t,g[e]=t}),decorator:function(e,t){var n=f.get(e+u),r=n.$get;n.$get=function(){var e=y.invoke(r,n);return y.invoke(t,null,{$delegate:e})}}}},f=h.$injector=l(h,function(e,t){throw zr.isString(t)&&m.push(t),Hi("unpr","Unknown provider: {0}",m.join(" <- "))}),g={},$=l(g,function(e,t){var n=f.get(e+u,t);return y.invoke(n.$get,n,void 0,e)}),y=$;h["$injector"+u]={$get:v($)},y.modules=f.modules=ve();var C=c(e);return y=$.get("$injector"),y.strictDi=t,o(C,function(e){e&&y.invoke(e)}),y}function st(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===j(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(x(e))e=e();else if(R(e)){var n=e[0];e="fixed"!==t.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom}else M(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){var t;(e=w(e)?e:M(e)?e.toString():n.hash())?(t=c.getElementById(e))?a(t):(t=i(c.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var c=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Ye(function(){r.$evalAsync(s)})}),s}]}function ct(e,t){return e||t?e?t?(Kr(e)&&(e=e.join(" ")),Kr(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function lt(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Ri)return n}}function dt(e){w(e)&&(e=e.split(" "));var t=ve();return o(e,function(e){e.length&&(t[e]=!0)}),t}function ut(e){return E(e)?e:{}}function mt(e,t,n,r){function i(e){try{e.apply(null,W(arguments,1))}finally{if(0==--v)for(;$.length;)try{$.pop()()}catch(e){n.error(e)}}}function a(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function s(){M=null,l()}function c(){y=A(),V(y=b(y)?null:y,T)&&(y=T),T=y,E=y}function l(){var e=E;c(),C===d.url()&&e===y||(C=d.url(),E=y,o(x,function(e){e(d.url(),y)}))}var d=this,u=e.location,m=e.history,p=e.setTimeout,h=e.clearTimeout,g={};d.isMock=!1;var v=0,$=[];d.$$completeOutstandingRequest=i,d.$$incOutstandingRequestCount=function(){v++},d.notifyWhenNoOutstandingRequests=function(e){0===v?e():$.push(e)};var y,E,C=u.href,w=t.find("base"),M=null,A=r.history?function(){try{return m.state}catch(e){}}:f;c(),d.url=function(t,n,i){if(b(i)&&(i=null),u!==e.location&&(u=e.location),m!==e.history&&(m=e.history),t){var o=E===i;if(C===t&&(!r.history||o))return d;var s=C&&Wt(C)===Wt(t);return C=t,E=i,!r.history||s&&o?(s||(M=t),n?u.replace(t):s?u.hash=a(t):u.href=t,u.href!==t&&(M=t)):(m[n?"replaceState":"pushState"](i,"",t),c()),M&&(M=t),d}return M||u.href.replace(/%27/g,"'")},d.state=function(){return y};var x=[],k=!1,T=null;d.onUrlChange=function(t){return k||(r.history&&Pr(e).on("popstate",s),Pr(e).on("hashchange",s),k=!0),x.push(t),t},d.$$applicationDestroyed=function(){Pr(e).off("hashchange popstate",s)},d.$$checkUrlChange=l,d.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},d.defer=function(e,t){var n;return v++,n=p(function(){delete g[n],i(e)},t||0),g[n]=!0,n},d.defer.cancel=function(e){return!!g[e]&&(delete g[e],h(e),i(f),!0)}}function pt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new mt(e,r,t,n)}]}function ht(){this.$get=function(){function e(e,r){function i(e){e!==m&&(p?p===e&&(p=e.n):p=e,o(e.n,e.p),o(e,m),(m=e).n=null)}function o(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=u({},r,{id:e}),c=ve(),l=r&&r.capacity||Number.MAX_VALUE,d=ve(),m=null,p=null;return n[e]={put:function(e,t){if(!b(t))return l<Number.MAX_VALUE&&i(d[e]||(d[e]={key:e})),e in c||a++,c[e]=t,a>l&&this.remove(p.key),t},get:function(e){if(l<Number.MAX_VALUE){var t=d[e];if(!t)return;i(t)}return c[e]},remove:function(e){if(l<Number.MAX_VALUE){var t=d[e];if(!t)return;t===m&&(m=t.p),t===p&&(p=t.n),o(t.n,t.p),delete d[e]}e in c&&(delete c[e],a--)},removeAll:function(){c=ve(),a=0,d=ve(),m=p=null},destroy:function(){c=null,s=null,d=null,delete n[e]},info:function(){return u({},s,{size:a})}}}var n={};return e.info=function(){var e={};return o(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function ft(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function gt(t,n){function r(e,t,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,i=ve();return o(e,function(e,o){if(e in k)i[o]=k[e];else{var a=e.match(r);if(!a)throw Vi("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]&&(k[e]=i[o])}}),i}function i(e,t){var n={isolateScope:null,bindToController:null};if(E(e.scope)&&(!0===e.bindToController?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),E(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw Vi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}function a(e){var t=e.charAt(0);if(!t||t!==Or(t))throw Vi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Vi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function c(e){var t=e.require||e.controller&&e.name;return!Kr(t)&&E(t)&&o(t,function(e,n){var r=e.match(M);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}function l(e,t){if(e&&(!w(e)||!/[EACM]/.test(e)))throw Vi("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}var d={},m="Directive",p=/^\s*directive:\s*([\w-]+)\s+(.*)$/,$=/(([\w-]+)(?::([^;]+))?;?)/,C=L("ngSrc,ngSrcset,src,srcset"),M=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,A=/^(on[a-z]+|formaction)$/,k=ve();this.directive=function e(n,r){return me(n,"name"),he(n,"directive"),w(n)?(a(n),me(r,"directiveFactory"),d.hasOwnProperty(n)||(d[n]=[],t.factory(n+m,["$injector","$exceptionHandler",function(e,t){var r=[];return o(d[n],function(i,o){try{var a=e.invoke(i);x(a)?a={compile:v(a)}:!a.compile&&a.link&&(a.compile=v(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=c(a),a.restrict=l(a.restrict,n),a.$$moduleName=i.$$moduleName,r.push(a)}catch(e){t(e)}}),r}])),d[n].push(r)):o(n,s(e)),this},this.component=function(e,t){function n(e){function n(t){return x(t)||Kr(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=t.template||t.templateUrl?t.template:"",a={controller:r,controllerAs:Et(t.controller)||t.controllerAs||"$ctrl",template:n(i),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return o(t,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}var r=t.controller||function(){};return o(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,x(r)&&(r[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return y(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var T=!0;this.debugInfoEnabled=function(e){return y(e)?(T=e,this):T};var S=!1;this.preAssignBindingsEnabled=function(e){return y(e)?(S=e,this):S};var N=10;this.onChangesTtl=function(e){return arguments.length?(N=e,this):N};var D=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(D=e,this):D};var I=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(I=e,this):I},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,r,a,s,c,l,v,k,H){function P(){try{if(!--Se)throw Me=void 0,Vi("infchng","{0} $onChanges() iterations reached. Aborting!\n",N);l.$apply(function(){for(var e=[],t=0,n=Me.length;t<n;++t)try{Me[t]()}catch(t){e.push(t)}if(Me=void 0,e.length)throw e})}finally{Se++}}function R(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 L(e,t,n){xe.innerHTML="<span "+t+">";var r=xe.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function B(e,t){try{e.addClass(t)}catch(e){}}function U(e,t,n,r,i){e instanceof Pr||(e=Pr(e));var o=K(e,t,e,n,r,i);U.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw Vi("multilink","This element has already been linked.");me(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var s=(r=r||{}).parentBoundTranscludeFn,c=r.transcludeControllers,l=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=z(l));var d;if(d="html"!==a?Pr(ge(a,Pr("<div>").append(e).html())):n?wi.clone.call(e):e,c)for(var u in c)d.data("$"+u+"Controller",c[u].instance);return U.$$addScopeInfo(d,t),n&&n(d,t),o&&o(t,d,d,s),n||(e=o=null),d}}function z(e){var t=e&&e[0];return t&&"foreignobject"!==j(t)&&Ur.call(t).match(/SVG/)?"svg":"html"}function K(e,t,n,r,i,o){for(var a,s,c,l,d,u,m,p=[],h=Kr(e)||e instanceof Pr,f=0;f<e.length;f++)a=new R,11===Hr&&G(e,f,h),(c=(s=Z(e[f],[],a,0===f?r:void 0,i)).length?re(s,e[f],a,t,n,null,[],[],o):null)&&c.scope&&U.$$addScopeClass(a.$$element),d=c&&c.terminal||!(l=e[f].childNodes)||!l.length?null:K(l,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||d)&&(p.push(f,c,d),u=!0,m=m||c),o=null;return u?function(e,n,r,i){var o,a,s,c,l,d,u,h;if(m){var f=n.length;for(h=new Array(f),l=0;l<p.length;l+=3)h[u=p[l]]=n[u]}else h=n;for(l=0,d=p.length;l<d;)s=h[p[l++]],o=p[l++],a=p[l++],o?(o.scope?(c=e.$new(),U.$$addScopeInfo(Pr(s),c)):c=e,o(a,c,s,r,o.transcludeOnThisElement?X(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?X(e,t):null)):a&&a(e,s.childNodes,void 0,i)}:null}function G(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===ai)for(;;){if(!(r=o?i.nextSibling:e[t+1])||r.nodeType!==ai)break;i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}}function X(e,t,n){function r(r,i,o,a,s){return r||((r=e.$new(!1,s)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=ve();for(var o in t.$$slots)t.$$slots[o]?i[o]=X(e,t.$$slots[o],n):i[o]=null;return r}function Z(e,t,n,r,i){var o,a,s,c=e.nodeType,l=n.$attr;switch(c){case oi:se(t,$t(a=j(e)),"E",r,i);for(var d,u,m,p,h,f,g=e.attributes,v=0,b=g&&g.length;v<b;v++){var y=!1,C=!1;u=(d=g[v]).name,h=d.value,p=$t(u),(f=He.test(p))&&(u=u.replace(Wi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var M=p.match(Pe);M&&ce(M[1])&&(y=u,C=u.substr(0,u.length-5)+"end",u=u.substr(0,u.length-6)),l[m=$t(u.toLowerCase())]=u,!f&&n.hasOwnProperty(m)||(n[m]=h,Ge(e,m)&&(n[m]=!0)),be(e,t,h,m,f),se(t,m,"A",r,i,y,C)}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!_e)break;if(s=e.className,E(s)&&(s=s.animVal),w(s)&&""!==s)for(;o=$.exec(s);)se(t,m=$t(o[2]),"C",r,i)&&(n[m]=Xr(o[3])),s=s.substr(o.index+o[0].length);break;case ai:fe(t,e.nodeValue);break;case si:if(!Te)break;J(e,t,n,r,i)}return t.sort(pe),t}function J(e,t,n,r,i){try{var o=p.exec(e.nodeValue);if(o){var a=$t(o[1]);se(t,a,"M",r,i)&&(n[a]=Xr(o[2]))}}catch(e){}}function Q(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Vi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===oi&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return Pr(r)}function te(e,t,n){return function(r,i,o,a,s){return i=Q(i[0],t,n),e(r,i,o,a,s)}}function ne(e,t,n,r,i,o){var a;return e?U(t,n,r,i,o):function(){return a||(a=U(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function re(e,t,n,i,a,s,c,l,d){function m(e,t,n,r){e&&(n&&(e=te(e,n,r)),e.require=h.require,e.directiveName=f,(M===h||h.$$isolateScope)&&(e=Ee(e,{isolateScope:!0})),c.push(e)),t&&(n&&(t=te(t,n,r)),t.require=h.require,t.directiveName=f,(M===h||h.$$isolateScope)&&(t=Ee(t,{isolateScope:!0})),l.push(t))}function p(e,i,a,s,d){var m,p,h,f,g,v,$,y,k,T;t===a?(k=n,y=n.$$element):k=new R(y=Pr(a),n),g=i,M?f=i.$new(!0):C&&(g=i.$parent),d&&(($=function(e,t,n,r){var i;if(_(e)||(r=n,n=t,t=e,e=void 0),D&&(i=v),n||(n=D?y.parent():y),!r)return d(e,t,i,n,L);var o=d.$$slots[r];if(o)return o(e,t,i,n,L);if(b(o))throw Vi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ee(y))}).$$boundTransclude=d,$.isSlotFilled=function(e){return!!d.$$slots[e]}),w&&(v=oe(y,k,$,w,f,i,M)),M&&(U.$$addScopeInfo(y,f,!0,!(A&&(A===M||A===M.$$originalDirective))),U.$$addScopeClass(y,!0),f.$$isolateBindings=M.$$isolateBindings,(T=we(i,k,f,f.$$isolateBindings,M)).removeWatches&&f.$on("$destroy",T.removeWatches));for(var N in v){var O=w[N],I=v[N],H=O.$$bindings.bindToController;if(S){I.bindingInfo=H?we(g,k,I.instance,H,O):{};var P=I();P!==I.instance&&(I.instance=P,y.data("$"+O.name+"Controller",P),I.bindingInfo.removeWatches&&I.bindingInfo.removeWatches(),I.bindingInfo=we(g,k,I.instance,H,O))}else I.instance=I(),y.data("$"+O.name+"Controller",I.instance),I.bindingInfo=we(g,k,I.instance,H,O)}for(o(w,function(e,t){var n=e.require;e.bindToController&&!Kr(n)&&E(n)&&u(v[t].instance,ie(t,n,y,v))}),o(v,function(e){var t=e.instance;if(x(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(x(t.$onInit))try{t.$onInit()}catch(e){r(e)}x(t.$doCheck)&&(g.$watch(function(){t.$doCheck()}),t.$doCheck()),x(t.$onDestroy)&&g.$on("$destroy",function(){t.$onDestroy()})}),m=0,p=c.length;m<p;m++)Ce(h=c[m],h.isolateScope?f:i,y,k,h.require&&ie(h.directiveName,h.require,y,v),$);var L=i;for(M&&(M.template||null===M.templateUrl)&&(L=f),e&&e(L,a.childNodes,void 0,d),m=l.length-1;m>=0;m--)Ce(h=l[m],h.isolateScope?f:i,y,k,h.require&&ie(h.directiveName,h.require,y,v),$);o(v,function(e){var t=e.instance;x(t.$postLink)&&t.$postLink()})}d=d||{};for(var h,f,g,v,$,y=-Number.MAX_VALUE,C=d.newScopeDirective,w=d.controllerDirectives,M=d.newIsolateScopeDirective,A=d.templateDirective,k=d.nonTlbTranscludeDirective,T=!1,N=!1,D=d.hasElementTranscludeDirective,O=n.$$element=Pr(t),I=s,H=i,P=!1,L=!1,B=0,F=e.length;B<F;B++){var q=(h=e[B]).$$start,V=h.$$end;if(q&&(O=Q(t,q,V)),g=void 0,y>h.priority)break;if(($=h.scope)&&(h.templateUrl||(E($)?(he("new/isolated scope",M||C,h,O),M=h):he("new/isolated scope",M,h,O)),C=C||h),f=h.name,!P&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var z,K=B+1;z=e[K++];)if(z.transclude&&!z.$$tlb||z.replace&&(z.templateUrl||z.template)){L=!0;break}P=!0}if(!h.templateUrl&&h.controller&&(w=w||ve(),he("'"+f+"' controller",w[f],h,O),w[f]=h),$=h.transclude)if(T=!0,h.$$tlb||(he("transclusion",k,h,O),k=h),"element"===$)D=!0,y=h.priority,g=O,O=n.$$element=Pr(U.$$createComment(f,n[f])),t=O[0],ye(a,W(g),t),g[0].$$parentNode=g[0].parentNode,H=ne(L,g,i,y,I&&I.name,{nonTlbTranscludeDirective:k});else{var G=ve();if(E($)){g=[];var X=ve(),J=ve();o($,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,X[e]=t,G[t]=null,J[t]=n}),o(O.contents(),function(e){var t=X[$t(j(e))];t?(J[t]=!0,G[t]=G[t]||[],G[t].push(e)):g.push(e)}),o(J,function(e,t){if(!e)throw Vi("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var re in G)G[re]&&(G[re]=ne(L,G[re],i))}else g=Pr(Oe(t)).contents();O.empty(),(H=ne(L,g,i,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope})).$$slots=G}if(h.template)if(N=!0,he("template",A,h,O),A=h,$=x(h.template)?h.template(O,n):h.template,$=Ie($),h.replace){if(I=h,g=ke($)?[]:yt(ge(h.templateNamespace,Xr($))),t=g[0],1!==g.length||t.nodeType!==oi)throw Vi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f,"");ye(a,O,t);var se={$attr:{}},ce=Z(t,[],se),ue=e.splice(B+1,e.length-(B+1));(M||C)&&ae(ce,M,C),e=e.concat(ce).concat(ue),le(n,se),F=e.length}else O.html($);if(h.templateUrl)N=!0,he("template",A,h,O),A=h,h.replace&&(I=h),p=de(e.splice(B,e.length-B),O,n,a,T&&H,c,l,{controllerDirectives:w,newScopeDirective:C!==h&&C,newIsolateScopeDirective:M,templateDirective:A,nonTlbTranscludeDirective:k}),F=e.length;else if(h.compile)try{v=h.compile(O,n,H);var me=h.$$originalDirective||h;x(v)?m(null,Y(me,v),q,V):v&&m(Y(me,v.pre),Y(me,v.post),q,V)}catch(e){r(e,ee(O))}h.terminal&&(p.terminal=!0,y=Math.max(y,h.priority))}return p.scope=C&&!0===C.scope,p.transcludeOnThisElement=T,p.templateOnThisElement=N,p.transclude=H,d.hasElementTranscludeDirective=D,p}function ie(e,t,n,r){var i;if(w(t)){var a=t.match(M),s=t.substring(a[0].length),c=a[1]||a[3],l="?"===a[2];if("^^"===c?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var d="$"+s+"Controller";i=c?n.inheritedData(d):n.data(d)}if(!i&&!l)throw Vi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(Kr(t)){i=[];for(var u=0,m=t.length;u<m;u++)i[u]=ie(e,t[u],n,r)}else E(t)&&(i={},o(t,function(t,o){i[o]=ie(e,t,n,r)}));return i||null}function oe(e,t,n,r,i,o,a){var s=ve();for(var l in r){var d=r[l],u={$scope:d===a||d.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},m=d.controller;"@"===m&&(m=t[d.name]);var p=c(m,u,!0,d.controllerAs);s[d.name]=p,e.data("$"+d.name+"Controller",p.instance)}return s}function ae(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=h(e[r],{$$isolateScope:t,$$newScope:n})}function se(e,n,r,o,a,s,c){if(n===a)return null;var l=null;if(d.hasOwnProperty(n))for(var u,p=t.get(n+m),f=0,g=p.length;f<g;f++)if(u=p[f],(b(o)||o>u.priority)&&-1!==u.restrict.indexOf(r)){if(s&&(u=h(u,{$$start:s,$$end:c})),!u.$$bindings){var v=u.$$bindings=i(u,u.name);E(v.isolateScope)&&(u.$$isolateBindings=v.isolateScope)}e.push(u),l=u}return l}function ce(e){if(d.hasOwnProperty(e))for(var n=t.get(e+m),r=0,i=n.length;r<i;r++)if(n[r].multiElement)return!0;return!1}function le(e,t){var n=t.$attr,r=e.$attr;o(e,function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function de(e,t,n,i,s,c,l,d){var u,m,p=[],f=t[0],g=e.shift(),v=h(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),$=x(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,b=g.templateNamespace;return t.empty(),a($).then(function(r){var a,h,y,C;if(r=Ie(r),g.replace){if(y=ke(r)?[]:yt(ge(b,Xr(r))),a=y[0],1!==y.length||a.nodeType!==oi)throw Vi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,$);h={$attr:{}},ye(i,t,a);var w=Z(a,[],h);E(g.scope)&&ae(w,!0),e=w.concat(e),le(n,h)}else a=f,t.html(r);for(e.unshift(v),u=re(e,a,n,s,t,g,c,l,d),o(i,function(e,n){e===a&&(i[n]=t[0])}),m=K(t[0].childNodes,s);p.length;){var M=p.shift(),A=p.shift(),x=p.shift(),k=p.shift(),T=t[0];if(!M.$$destroyed){if(A!==f){var _=A.className;d.hasElementTranscludeDirective&&g.replace||(T=Oe(a)),ye(x,Pr(A),T),B(Pr(T),_)}C=u.transcludeOnThisElement?X(M,u.transclude,k):k,u(m,M,T,i,C)}}p=null}).catch(function(e){e instanceof Error&&r(e)}),function(e,t,n,r,i){var o=i;t.$$destroyed||(p?p.push(t,n,r,o):(u.transcludeOnThisElement&&(o=X(t,u.transclude,i)),u(m,t,n,r,o)))}}function pe(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 he(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Vi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,ee(r))}function fe(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&U.$$addBindingClass(t),function(e,t){var i=t.parent();n||U.$$addBindingClass(i),U.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}function ge(t,n){switch(t=Or(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 $e(e,t){if("srcdoc"===t)return v.HTML;var n=j(e);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(n))return v.RESOURCE_URL}else if("xlinkHref"===t||"form"===n&&"action"===t||"link"===n&&"href"===t)return v.RESOURCE_URL}function be(e,t,r,i,o){var a=$e(e,i),s=!o,c=C[i]||o,l=n(r,s,a,c);if(l){if("multiple"===i&&"select"===j(e))throw Vi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ee(e));if(A.test(i))throw Vi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=ve()),d=o[i];d!==r&&(l=d&&n(d,!0,a,c),r=d),l&&(o[i]=l(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(l,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function ye(t,n,r){var i,o,a=n[0],s=n.length,c=a.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===a){t[i++]=r;for(var l=i,d=l+s-1,u=t.length;l<u;l++,d++)d<u?t[l]=t[d]:delete t[l];t.length-=s-1,t.context===a&&(t.context=r);break}c&&c.replaceChild(r,a);var m=e.document.createDocumentFragment();for(i=0;i<s;i++)m.appendChild(n[i]);for(Pr.hasData(a)&&(Pr.data(r,Pr.data(a)),Pr(a).off("$destroy")),Pr.cleanData(m.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function Ee(e,t){return u(function(){return e.apply(null,arguments)},e,t)}function Ce(e,t,n,i,o,a){try{e(t,n,i,o,a)}catch(e){r(e,ee(n))}}function we(e,t,r,i,a){function c(t,n,i){x(r.$onChanges)&&!q(n,i)&&(Me||(e.$$postDigest(P),Me=[]),d||(d={},Me.push(l)),d[t]&&(i=d[t].previousValue),d[t]=new vt(i,n))}function l(){r.$onChanges(d),d=void 0}var d,u=[],m={};return o(i,function(i,o){var l,d,p,h,g,v=i.attrName,$=i.optional;switch(i.mode){case"@":$||Nr.call(t,v)||(r[o]=t[v]=void 0),g=t.$observe(v,function(e){if(w(e)||O(e)){var t=r[o];c(o,e,t),r[o]=e}}),t.$$observers[v].$$scope=e,w(l=t[v])?r[o]=n(l)(e):O(l)&&(r[o]=l),m[o]=new vt(zi,r[o]),u.push(g);break;case"=":if(!Nr.call(t,v)){if($)break;t[v]=void 0}if($&&!t[v])break;d=s(t[v]),h=d.literal?V:q,p=d.assign||function(){throw l=r[o]=d(e),Vi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,a.name)},l=r[o]=d(e);var b=function(t){return h(t,r[o])||(h(t,l)?p(e,t=r[o]):r[o]=t),l=t};b.$stateful=!0,g=i.collection?e.$watchCollection(t[v],b):e.$watch(s(t[v],b),null,d.literal),u.push(g);break;case"<":if(!Nr.call(t,v)){if($)break;t[v]=void 0}if($&&!t[v])break;var y=(d=s(t[v])).literal,E=r[o]=d(e);m[o]=new vt(zi,r[o]),g=e.$watch(d,function(e,t){if(t===e){if(t===E||y&&V(t,E))return;t=E}c(o,e,t),r[o]=e},y),u.push(g);break;case"&":if((d=t.hasOwnProperty(v)?s(t[v]):f)===f&&$)break;r[o]=function(t){return d(e,t)}}}),{initialChanges:m,removeWatches:u.length&&function(){for(var e=0,t=u.length;e<t;++e)u[e]()}}}var Me,Ae=/^\w/,xe=e.document.createElement("div"),Te=D,_e=I,Se=N;R.prototype={$normalize:$t,$addClass:function(e){e&&e.length>0&&k.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&k.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=bt(e,t);n&&n.length&&k.addClass(this.$$element,n);var r=bt(t,e);r&&r.length&&k.removeClass(this.$$element,r)},$set:function(e,t,n,i){var a,s=Ge(this.$$element[0],e),c=Xe(e),l=e;if(s?(this.$$element.prop(e,t),i=s):c&&(this[c]=t,l=c),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=ue(e,"-")),"a"===(a=j(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=H(t,"src"===e);else if("img"===a&&"srcset"===e&&y(t)){for(var d="",u=Xr(t),m=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(u)?m:/(,)/,h=u.split(p),f=Math.floor(h.length/2),g=0;g<f;g++){var v=2*g;d+=H(Xr(h[v]),!0),d+=" "+Xr(h[v+1])}var $=Xr(h[2*g]).split(/\s/);d+=H(Xr($[0]),!0),2===$.length&&(d+=" "+Xr($[1])),this[e]=t=d}!1!==n&&(null===t||b(t)?this.$$element.removeAttr(i):Ae.test(i)?this.$$element.attr(i,t):L(this.$$element[0],i,t));var E=this.$$observers;E&&o(E[l],function(e){try{e(t)}catch(e){r(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=ve()),i=r[e]||(r[e]=[]);return i.push(t),l.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||b(n[e])||t(n[e])}),function(){F(i,t)}}};var Ne=n.startSymbol(),De=n.endSymbol(),Ie="{{"===Ne&&"}}"===De?g:function(e){return e.replace(/\{\{/g,Ne).replace(/}}/g,De)},He=/^ngAttr[A-Z]/,Pe=/^(.+)Start$/;return U.$$addBindingInfo=T?function(e,t){var n=e.data("$binding")||[];Kr(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:f,U.$$addBindingClass=T?function(e){B(e,"ng-binding")}:f,U.$$addScopeInfo=T?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:f,U.$$addScopeClass=T?function(e,t){B(e,t?"ng-isolate-scope":"ng-scope")}:f,U.$$createComment=function(t,n){var r="";return T&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},U}]}function vt(e,t){this.previousValue=e,this.currentValue=t}function $t(e){return e.replace(Wi,"").replace(Yi,Ae)}function bt(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 yt(e){var t=(e=Pr(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===si||n.nodeType===ai&&""===n.nodeValue.trim())&&Br.call(e,t,1)}return e}function Et(e,t){if(t&&w(t))return t;if(w(e)){var n=Gi.exec(e);if(n)return n[3]}}function Ct(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){he(t,"controller"),E(t)?u(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(e,n,r,i){if(!e||!E(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);e.$scope[n]=r}return function(t,a,s,c){var l,d,m,p;if(s=!0===s,c&&w(c)&&(p=c),w(t)){if(!(d=t.match(Gi)))throw Ki("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);if(m=d[1],p=p||d[3],!(t=e.hasOwnProperty(m)?e[m]:fe(a.$scope,m,!0)||(n?fe(i,m,!0):void 0)))throw Ki("ctrlreg","The controller with the name '{0}' is not registered.",m);pe(t,m,!0)}if(s){var h=(Kr(t)?t[t.length-1]:t).prototype;return l=Object.create(h||null),p&&o(a,p,l,m||t.name),u(function(){var e=r.invoke(t,l,a,m);return e!==l&&(E(e)||x(e))&&(l=e,p&&o(a,p,l,m||t.name)),l},{instance:l,identifier:p})}return l=r.instantiate(t,a,m),p&&o(a,p,l,m||t.name),l}}]}function wt(){this.$get=["$window",function(e){return Pr(e.document)}]}function Mt(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function At(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function xt(e){return E(e)?A(e)?e.toISOString():G(e):e}function kt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||b(e)||(Kr(e)?o(e,function(e){t.push(oe(n)+"="+oe(xt(e)))}):t.push(oe(n)+"="+oe(xt(e))))}),t.join("&")}}}function Tt(){this.$get=function(){return function(e){function t(e,r,i){null===e||b(e)||(Kr(e)?o(e,function(e,n){t(e,r+"["+(E(e)?n:"")+"]")}):E(e)&&!A(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):n.push(oe(r)+"="+oe(xt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function _t(e,t){if(w(e)){var n=e.replace(to,"").trim();if(n){var r=t("Content-Type");if(r&&0===r.indexOf(Zi)||St(n))try{e=X(n)}catch(t){throw no("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}return e}function St(e){var t=e.match(Qi);return t&&eo[t[0]].test(e)}function Nt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=ve();return w(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(Or(Xr(e.substr(0,n))),Xr(e.substr(n+1)))}):E(e)&&o(e,function(e,n){t(Or(n),Xr(e))}),r}function Dt(e){var t;return function(n){if(t||(t=Nt(e)),n){var r=t[Or(n)];return void 0===r&&(r=null),r}return t}}function Ot(e,t,n,r){return x(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function It(e){return 200<=e&&e<300}function Ht(){var e=this.defaults={transformResponse:[_t],transformRequest:[function(e){return!E(e)||S(e)||D(e)||N(e)?e:G(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ye(Ji),put:ye(Ji),patch:ye(Ji)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},n=!1;this.useApplyAsync=function(e){return y(e)?(n=!!e,this):n};var r=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,a,s,c,l,d,m,p){function h(n){function r(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 a(e,t){var n,r={};return o(e,function(e,i){x(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e}),r}function s(e){var t=u({},e);return t.data=Ot(e.data,e.headers,e.status,c.transformResponse),It(e.status)?t:d.reject(t)}if(!E(n))throw t("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(p.valueOf(n.url)))throw t("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);var c=u({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);c.headers=function(t){var n,r,i,o=e.headers,s=u({},t.headers);o=u({},o.common,o[Or(t.method)]);e:for(n in o){r=Or(n);for(i in s)if(Or(i)===r)continue e;s[n]=o[n]}return a(s,ye(t))}(n),c.method=Ir(c.method),c.paramSerializer=w(c.paramSerializer)?m.get(c.paramSerializer):c.paramSerializer,i.$$incOutstandingRequestCount();var l=[],h=[],v=d.resolve(c);return o(M,function(e){(e.request||e.requestError)&&l.unshift(e.request,e.requestError),(e.response||e.responseError)&&h.push(e.response,e.responseError)}),v=r(v,l),v=v.then(function(t){var n=t.headers,r=Ot(t.data,Dt(n),void 0,t.transformRequest);return b(r)&&o(n,function(e,t){"content-type"===Or(t)&&delete n[t]}),b(t.withCredentials)&&!b(e.withCredentials)&&(t.withCredentials=e.withCredentials),g(t,r).then(s,s)}),v=r(v,h),v=v.finally(function(){i.$$completeOutstandingRequest(f)})}function g(t,r){function i(e){if(e){var t={};return o(e,function(e,r){t[r]=function(t){function r(){e(t)}n?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),t}}function c(e,n,r,i){(It(n=n>=-1?n:0)?M.resolve:M.reject)({data:e,status:n,headers:Dt(r),config:t,statusText:i})}function u(e){c(e.data,e.status,ye(e.headers()),e.statusText)}function m(){var e=h.pendingRequests.indexOf(t);-1!==e&&h.pendingRequests.splice(e,1)}var f,g,M=d.defer(),A=M.promise,x=t.headers,k="jsonp"===Or(t.method),T=t.url;if(k?T=p.getTrustedResourceUrl(T):w(T)||(T=p.valueOf(T)),T=v(T,t.paramSerializer(t.params)),k&&(T=$(T,t.jsonpCallbackParam)),h.pendingRequests.push(t),A.then(m,m),!t.cache&&!e.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(f=E(t.cache)?t.cache:E(e.cache)?e.cache:C),f&&(y(g=f.get(T))?I(g)?g.then(u,u):Kr(g)?c(g[1],g[0],ye(g[2]),g[3]):c(g,200,{},"OK"):f.put(T,A)),b(g)){var _=Hn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;_&&(x[t.xsrfHeaderName||e.xsrfHeaderName]=_),a(t.method,T,r,function(e,t,r,i){function o(){c(t,e,r,i)}f&&(It(e)?f.put(T,[e,t,Nt(r),i]):f.remove(T)),n?l.$applyAsync(o):(o(),l.$$phase||l.$apply())},x,t.timeout,t.withCredentials,t.responseType,i(t.eventHandlers),i(t.uploadEventHandlers))}return A}function v(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}function $(e,t){if(/[&?][^=]+=JSON_CALLBACK/.test(e))throw no("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(new RegExp("[&?]"+t+"=").test(e))throw no("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e);return e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}var C=c("$http");e.paramSerializer=w(e.paramSerializer)?m.get(e.paramSerializer):e.paramSerializer;var M=[];return o(r,function(e){M.unshift(w(e)?m.get(e):m.invoke(e))}),h.pendingRequests=[],function(e){o(arguments,function(e){h[e]=function(t,n){return h(u({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){h[e]=function(t,n,r){return h(u({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),h.defaults=e,h}]}function Pt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Rt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Lt(e,r,e.defer,t,n[0])}]}function Lt(e,t,n,r,i){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,c="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),c=e.type,s="error"===e.type?404:200),n&&n(s,c)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}return function(i,s,c,l,d,u,m,p,h,f){function g(){E&&E(),C&&C.abort()}function v(e,t,r,i,o){y(M)&&n.cancel(M),E=C=null,e(t,r,i,o)}if(s=s||e.url(),"jsonp"===Or(i))var $=r.createCallback(s),E=a(s,$,function(e,t){var n=200===e&&r.getResponse($);v(l,e,n,"",t),r.removeCallback($)});else{var C=t(i,s);C.open(i,s,!0),o(d,function(e,t){y(e)&&C.setRequestHeader(t,e)}),C.onload=function(){var e=C.statusText||"",t="response"in C?C.response:C.responseText,n=1223===C.status?204:C.status;0===n&&(n=t?200:"file"===In(s).protocol?404:0),v(l,n,t,C.getAllResponseHeaders(),e)};var w=function(){v(l,-1,null,null,"")};if(C.onerror=w,C.onabort=w,C.ontimeout=w,o(h,function(e,t){C.addEventListener(t,e)}),o(f,function(e,t){C.upload.addEventListener(t,e)}),m&&(C.withCredentials=!0),p)try{C.responseType=p}catch(e){if("json"!==p)throw e}C.send(b(c)?null:c)}if(u>0)var M=n(g,u);else I(u)&&u.then(g)}}function jt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(m,e).replace(p,t)}function s(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function c(o,c,m,p){if(!o.length||-1===o.indexOf(e)){var h;return c||((h=v(a(o))).exp=o,h.expressions=[],h.$$watchDelegate=s),h}p=!!p;for(var f,g,$,E=0,C=[],w=[],M=o.length,A=[],k=[];E<M;){if(-1===(f=o.indexOf(e,E))||-1===(g=o.indexOf(t,f+l))){E!==M&&A.push(a(o.substring(E)));break}E!==f&&A.push(a(o.substring(E,f))),$=o.substring(f+l,g),C.push($),w.push(n($,function(e){try{return e=_(e),p&&!y(e)?e:$e(e)}catch(e){r(ro.interr(o,e))}})),E=g+d,k.push(A.length),A.push("")}if(m&&A.length>1&&ro.throwNoconcat(o),!c||C.length){var T=function(e){for(var t=0,n=C.length;t<n;t++){if(p&&b(e[t]))return;A[k[t]]=e[t]}return A.join("")},_=function(e){return m?i.getTrusted(m,e):i.valueOf(e)};return u(function(e){var t=0,n=C.length,i=new Array(n);try{for(;t<n;t++)i[t]=w[t](e);return T(i)}catch(e){r(ro.interr(o,e))}},{exp:o,expressions:C,$$watchDelegate:function(e,t){var n;return e.$watchGroup(w,function(r,i){var o=T(r);x(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var l=e.length,d=t.length,m=new RegExp(e.replace(/./g,o),"g"),p=new RegExp(t.replace(/./g,o),"g");return c.startSymbol=function(){return e},c.endSymbol=function(){return t},c}]}function Bt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,c,l){function d(){u?o.apply(null,m):o(f)}var u=arguments.length>4,m=u?W(arguments,4):[],p=t.setInterval,h=t.clearInterval,f=0,g=y(l)&&!l,v=(g?r:n).defer(),$=v.promise;return c=y(c)?c:0,$.$$intervalId=p(function(){g?i.defer(d):e.$evalAsync(d),v.notify(f++),c>0&&f>=c&&(v.resolve(f),h($.$$intervalId),delete a[$.$$intervalId]),g||e.$apply()},s),a[$.$$intervalId]=v,$}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].promise.catch(f),a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function Ft(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ie(t[n]);return t.join("/")}function Ut(e,t){var n=In(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=p(n.port)||ao[n.protocol]||null}function qt(e,t){if(co.test(e))throw so("badpath",'Invalid url "{0}".',e);var n="/"!==e.charAt(0);n&&(e="/"+e);var r=In(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=ne(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Vt(e,t){return e.slice(0,t.length)===t}function zt(e,t){if(Vt(t,e))return t.substr(e.length)}function Wt(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Yt(e){return e.replace(/(#.+)|#$/,"$1")}function Kt(e){return e.substr(0,Wt(e).lastIndexOf("/")+1)}function Gt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Xt(e,t,n){this.$$html5=!0,n=n||"",Ut(e,this),this.$$parse=function(e){var n=zt(t,e);if(!w(n))throw so("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);qt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=re(this.$$search),n=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=Ft(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return y(o=zt(e,r))?(a=o,s=n&&y(o=zt(n,o))?t+(zt("/",o)||o):e+a):y(o=zt(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function Zt(e,t,n){Ut(e,this),this.$$parse=function(r){var i,o=zt(e,r)||zt(t,r);b(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",b(o)&&(e=r,this.replace())):b(i=zt(n,o))&&(i=o),qt(i,this),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return Vt(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e))?r[1]:e}(this.$$path,i,e),this.$$compose()},this.$$compose=function(){var t=re(this.$$search),r=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=Ft(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(t,n){return Wt(e)===Wt(t)&&(this.$$parse(t),!0)}}function Jt(e,t,n){this.$$html5=!0,Zt.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e===Wt(r)?o=r:(a=zt(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=re(this.$$search),r=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=Ft(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url,this.$$urlUpdatedByLocation=!0}}function Qt(e){return function(){return this[e]}}function en(e,t){return function(n){return b(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function tn(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(e){return O(e)?(t.enabled=e,this):E(e)?(O(e.enabled)&&(t.enabled=e.enabled),O(e.requireBase)&&(t.requireBase=e.requireBase),(O(e.rewriteLinks)||w(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(e){throw l.url(i),l.$$state=o,e}}function c(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,d,u,m=r.baseHref(),p=r.url();if(t.enabled){if(!m&&t.requireBase)throw so("nobase","$location in HTML5 mode requires a <base> tag to be present!");u=Gt(p)+(m||"/"),d=i.history?Xt:Jt}else u=Wt(p),d=Zt;var h=Kt(u);(l=new d(u,h,"#"+e)).$$parseLinkUrl(p,p),l.$$state=r.state();var f=/^\s*(javascript|mailto):/i;o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=Pr(e.target);"a"!==j(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!w(i)||!b(s.attr(i))){var c=s.prop("href"),d=s.attr("href")||s.attr("xlink:href");E(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=In(c.animVal).href),f.test(c)||!c||s.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(c,d)&&(e.preventDefault(),l.absUrl()!==r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}}),Yt(l.absUrl())!==Yt(p)&&r.url(l.absUrl(),!0);var g=!0;return r.onUrlChange(function(e,t){Vt(e,h)?(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;e=Yt(e),l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(g=!1,c(i,o)))}),n.$$phase||n.$digest()):a.location.href=e}),n.$watch(function(){if(g||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var e=Yt(r.url()),t=Yt(l.absUrl()),o=r.state(),a=l.$$replace,d=e!==t||l.$$html5&&i.history&&o!==l.$$state;(g||d)&&(g=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(d&&s(t,a,o===l.$$state?null:l.$$state),c(e,o)))}))}l.$$replace=!1}),l}]}function nn(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack&&a?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}function i(e){var t=n.console||{},i=t[e]||t.log||f,a=!1;try{a=!!i.apply}catch(e){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}var a=Hr||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function rn(e){return e+""}function on(e,t){return void 0!==e?e:t}function an(e,t){return void 0===e?t:void 0===t?e:e+t}function sn(e,t){return!e(t).$stateful}function cn(e,t){var n,r,i;switch(e.type){case go.Program:n=!0,o(e.body,function(e){cn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case go.Literal:e.constant=!0,e.toWatch=[];break;case go.UnaryExpression:cn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case go.BinaryExpression:cn(e.left,t),cn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case go.LogicalExpression:cn(e.left,t),cn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case go.ConditionalExpression:cn(e.test,t),cn(e.alternate,t),cn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case go.Identifier:e.constant=!1,e.toWatch=[e];break;case go.MemberExpression:cn(e.object,t),e.computed&&cn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case go.CallExpression:i=!!e.filter&&sn(t,e.callee.name),n=i,r=[],o(e.arguments,function(e){cn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=i?r:[e];break;case go.AssignmentExpression:cn(e.left,t),cn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case go.ArrayExpression:n=!0,r=[],o(e.elements,function(e){cn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case go.ObjectExpression:n=!0,r=[],o(e.properties,function(e){cn(e.value,t),n=n&&e.value.constant&&!e.computed,e.value.constant||r.push.apply(r,e.value.toWatch),e.computed&&(cn(e.key,t),e.key.constant||r.push.apply(r,e.key.toWatch))}),e.constant=n,e.toWatch=r;break;case go.ThisExpression:case go.LocalsExpression:e.constant=!1,e.toWatch=[]}}function ln(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function dn(e){return e.type===go.Identifier||e.type===go.MemberExpression}function un(e){if(1===e.body.length&&dn(e.body[0].expression))return{type:go.AssignmentExpression,left:e.body[0].expression,right:{type:go.NGValueParameter},operator:"="}}function mn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===go.Literal||e.body[0].expression.type===go.ArrayExpression||e.body[0].expression.type===go.ObjectExpression)}function pn(e){return e.constant}function hn(e){this.$filter=e}function fn(e){this.$filter=e}function gn(e,t,n){this.ast=new go(e,n),this.astCompiler=n.csp?new fn(t):new hn(t)}function vn(e){return x(e.valueOf)?e.valueOf():mo.call(e)}function $n(){var e,t,n=ve(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function a(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=vn(e))&&!n)&&(e===t||e!==e&&t!==t)}function s(e,t,n,r,i){var o,s=r.inputs;if(1===s.length){var c=a;return s=s[0],e.$watch(function(e){var t=s(e);return a(t,c,r.literal)||(o=r(e,void 0,void 0,[t]),c=t&&vn(t)),o},t,n,i)}for(var l=[],d=[],u=0,m=s.length;u<m;u++)l[u]=a,d[u]=null;return e.$watch(function(e){for(var t=!1,n=0,i=s.length;n<i;n++){var c=s[n](e);(t||(t=!a(c,l[n],r.literal)))&&(d[n]=c,l[n]=c&&vn(c))}return t&&(o=r(e,void 0,void 0,d)),o},t,n,i)}function c(e,t,n,r,i){function o(e,n,r){c=e,x(t)&&t(e,n,r),d(e)&&r.$$postDigest(function(){d(c)&&a()})}var a,c,d=r.literal?l:y;return a=r.inputs?s(e,o,n,r,i):e.$watch(function(e){return r(e)},o,n)}function l(e){var t=!0;return o(e,function(e){y(e)||(t=!1)}),t}function d(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function u(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=e.literal?l:y,o=e.oneTime?function(n,o,a,s){var c=r&&s?s[0]:e(n,o,a,s),l=t(c,n,o);return i(c)?l:c}:function(n,i,o,a){var s=r&&a?a[0]:e(n,i,o,a);return t(s,n,i)};return o.literal=e.literal,o.oneTime=e.oneTime,r=!e.inputs,n&&n!==s?(o.$$watchDelegate=n,o.inputs=e.inputs):t.$stateful||(o.$$watchDelegate=s,o.inputs=e.inputs?e.inputs:[e]),o}var m={csp:Jr().noUnsafeEval,literals:U(r),isIdentifierStart:x(e)&&e,isIdentifierContinue:x(t)&&t};return function(e,t){var r,o,a;switch(typeof e){case"string":return e=e.trim(),a=e,(r=n[a])||(":"===e.charAt(0)&&":"===e.charAt(1)&&(o=!0,e=e.substring(2)),(r=new gn(new fo(m),i,m).parse(e)).constant?r.$$watchDelegate=d:o?(r.oneTime=!0,r.$$watchDelegate=c):r.inputs&&(r.$$watchDelegate=s),n[a]=r),u(r,t);case"function":return u(e,t);default:return u(f,t)}}}]}function bn(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return En(function(e){t.$evalAsync(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return y(t)?(e=t,this):e}}function yn(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return En(function(e){t.defer(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return y(t)?(e=t,this):e}}function En(e,n,r){function i(){return new a}function a(){var e=this.promise=new s;this.resolve=function(t){m(e,t)},this.reject=function(t){h(e,t)},this.notify=function(t){g(e,t)}}function s(){this.$$state={status:0}}function c(t){var n,i,o;o=t.pending,t.processScheduled=!1,t.pending=void 0;try{for(var a=0,s=o.length;a<s;++a){t.pur=!0,i=o[a][0],n=o[a][t.status];try{x(n)?m(i,n(t.value)):1===t.status?m(i,t.value):h(i,t.value)}catch(e){h(i,e)}}}finally{--M,r&&0===M&&e(l)}}function l(){for(;!M&&A.length;){var e=A.shift();if(!e.pur){e.pur=!0;var t="Possibly unhandled rejection: "+Ce(e.value);e.value instanceof Error?n(e.value,t):n(t)}}}function d(t){!r||t.pending||2!==t.status||t.pur||(0===M&&0===A.length&&e(l),A.push(t)),!t.processScheduled&&t.pending&&(t.processScheduled=!0,++M,e(function(){c(t)}))}function m(e,t){e.$$state.status||(t===e?f(e,w("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):p(e,t))}function p(e,t){function n(t){i||(i=!0,f(e,t))}var r,i=!1;try{(E(t)||x(t))&&(r=t.then),x(r)?(e.$$state.status=-1,r.call(t,function(t){i||(i=!0,p(e,t))},n,function(t){g(e,t)})):(e.$$state.value=t,e.$$state.status=1,d(e.$$state))}catch(e){n(e)}}function h(e,t){e.$$state.status||f(e,t)}function f(e,t){e.$$state.value=t,e.$$state.status=2,d(e.$$state)}function g(t,r){var i=t.$$state.pending;t.$$state.status<=0&&i&&i.length&&e(function(){for(var e,t,o=0,a=i.length;o<a;o++){t=i[o][0],e=i[o][3];try{g(t,x(e)?e(r):r)}catch(e){n(e)}}})}function v(e){var t=new s;return h(t,e),t}function $(e,t,n){var r=null;try{x(n)&&(r=n())}catch(e){return v(e)}return I(r)?r.then(function(){return t(e)},v):t(e)}function y(e,t,n,r){var i=new s;return m(i,e),i.then(t,n,r)}function C(e){if(!x(e))throw w("norslvr","Expected resolverFn, got '{0}'",e);var t=new s;return e(function(e){m(t,e)},function(e){h(t,e)}),t}var w=t("$q",TypeError),M=0,A=[];u(s.prototype,{then:function(e,t,n){if(b(e)&&b(t)&&b(n))return this;var r=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&d(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return $(t,k,e)},function(t){return $(t,v,e)},t)}});var k=y;return C.prototype=s.prototype,C.defer=i,C.reject=v,C.when=y,C.resolve=k,C.all=function(e){var t=new s,n=0,r=Kr(e)?[]:{};return o(e,function(e,i){n++,y(e).then(function(e){r[i]=e,--n||m(t,r)},function(e){h(t,e)})}),0===n&&m(t,r),t},C.race=function(e){var t=i();return o(e,function(e){y(e).then(t.resolve,t.reject)}),t.promise},C}function Cn(){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 wn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=c(),this.$$ChildScope=null}return t.prototype=e,t}var n=10,r=t("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(n=e),n},this.$get=["$exceptionHandler","$parse","$browser",function(t,l,d){function u(e){e.currentScope.$$destroyed=!0}function m(e){9===Hr&&(e.$$childHead&&m(e.$$childHead),e.$$nextSibling&&m(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function p(){this.$id=c(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function h(e){if(M.$$phase)throw r("inprog","{0} already in progress",M.$$phase);M.$$phase=e}function g(){M.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function $(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function y(){}function C(){for(;T.length;)try{T.shift()()}catch(e){t(e)}s=null}function w(){null===s&&(s=d.defer(function(){M.$apply(C)}))}p.prototype={constructor:p,$new:function(t,n){var r;return n=n||this,t?(r=new p).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!==this)&&r.$on("$destroy",u),r},$watch:function(e,t,n,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,s=o.$$watchers,c={fn:t,last:y,get:i,exp:r||e,eq:!!n};return a=null,x(t)||(c.fn=f),s||((s=o.$$watchers=[]).$$digestWatchIndex=-1),s.unshift(c),s.$$digestWatchIndex++,v(this,1),function(){var e=F(s,c);e>=0&&(v(o,-1),e<s.$$digestWatchIndex&&s.$$digestWatchIndex--),a=null}},$watchGroup:function(e,t){function n(){c=!1,l?(l=!1,t(i,i,s)):t(i,r,s)}var r=new Array(e.length),i=new Array(e.length),a=[],s=this,c=!1,l=!0;if(!e.length){var d=!0;return s.$evalAsync(function(){d&&t(i,i,s)}),function(){d=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var o=s.$watch(e,function(e,o){i[t]=e,r[t]=o,c||(c=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){var t,n,a,s;if(!b(r=e)){if(E(r))if(i(r)){o!==m&&(f=(o=m).length=0,d++),t=r.length,f!==t&&(d++,o.length=f=t);for(var c=0;c<t;c++)s=o[c],a=r[c],s!==s&&a!==a||s===a||(d++,o[c]=a)}else{o!==p&&(o=p={},f=0,d++),t=0;for(n in r)Nr.call(r,n)&&(t++,a=r[n],s=o[n],n in o?s!==s&&a!==a||s===a||(d++,o[n]=a):(f++,o[n]=a,d++));if(f>t){d++;for(n in o)Nr.call(r,n)||(f--,delete o[n])}}else o!==r&&(o=r,d++);return d}}n.$stateful=!0;var r,o,a,s=this,c=t.length>1,d=0,u=l(e,n),m=[],p={},h=!0,f=0;return this.$watch(u,function(){if(h?(h=!1,t(r,r,s)):t(r,a,s),c)if(E(r))if(i(r)){a=new Array(r.length);for(var e=0;e<r.length;e++)a[e]=r[e]}else{a={};for(var n in r)Nr.call(r,n)&&(a[n]=r[n])}else a=r})},$digest:function(){var e,i,o,c,l,u,m,p,f,v,$=n,b=this,E=[];h("$digest"),d.$$checkUrlChange(),this===M&&null!==s&&(d.defer.cancel(s),C()),a=null;do{u=!1,p=b;for(var w=0;w<A.length;w++){try{(0,(v=A[w]).fn)(v.scope,v.locals)}catch(e){t(e)}a=null}A.length=0;e:do{if(l=p.$$watchers)for(l.$$digestWatchIndex=l.length;l.$$digestWatchIndex--;)try{if(e=l[l.$$digestWatchIndex])if(c=e.get,(i=c(p))===(o=e.last)||(e.eq?V(i,o):Yr(i)&&Yr(o))){if(e===a){u=!1;break e}}else u=!0,a=e,e.last=e.eq?U(i,null):i,(0,e.fn)(i,o===y?i:o,p),$<5&&(E[f=4-$]||(E[f]=[]),E[f].push({msg:x(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:i,oldVal:o}))}catch(e){t(e)}if(!(m=p.$$watchersCount&&p.$$childHead||p!==b&&p.$$nextSibling))for(;p!==b&&!(m=p.$$nextSibling);)p=p.$parent}while(p=m);if((u||A.length)&&!$--)throw g(),r("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",n,E)}while(u||A.length);for(g();_<k.length;)try{k[_++]()}catch(e){t(e)}k.length=_=0,d.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===M&&d.$$applicationDestroyed(),v(this,-this.$$watchersCount);for(var t in this.$$listenerCount)$(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=f,this.$on=this.$watch=this.$watchGroup=function(){return f},this.$$listeners={},this.$$nextSibling=null,m(this)}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){M.$$phase||A.length||d.defer(function(){A.length&&M.$digest()}),A.push({scope:this,fn:l(e),locals:t})},$$postDigest:function(e){k.push(e)},$apply:function(e){try{h("$apply");try{return this.$eval(e)}finally{g()}}catch(e){t(e)}finally{try{M.$digest()}catch(e){throw t(e),e}}},$applyAsync:function(e){var t=this;e&&T.push(function(){t.$eval(e)}),e=l(e),w()},$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&&(n[r]=null,$(i,1,e))}},$emit:function(e,n){var r,i,o,a=[],s=this,c=!1,l={name:e,targetScope:s,stopPropagation:function(){c=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},d=z([l],arguments,1);do{for(r=s.$$listeners[e]||a,l.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,d)}catch(e){t(e)}else r.splice(i,1),i--,o--;if(c)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,n){var r=this,i=r,o=r,a={name:e,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[e])return a;for(var s,c,l,d=z([a],arguments,1);i=o;){for(a.currentScope=i,c=0,l=(s=i.$$listeners[e]||[]).length;c<l;c++)if(s[c])try{s[c].apply(null,d)}catch(e){t(e)}else s.splice(c,1),c--,l--;if(!(o=i.$$listenerCount[e]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var M=new p,A=M.$$asyncQueue=[],k=M.$$postDigestQueue=[],T=M.$$applyAsyncQueue=[],_=0;return M}]}function Mn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return""===(i=In(n).href)||i.match(o)?n:"unsafe:"+i}}}function An(e){return e.replace(bo,Ae)}function xn(e){if("self"===e)return e;if(w(e)){if(e.indexOf("***")>-1)throw vo("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Zr(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(k(e))return new RegExp("^"+e.source+"$");throw vo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function kn(e){var t=[];return y(e)&&o(e,function(e){t.push(xn(e))}),t}function Tn(){this.SCE_CONTEXTS=$o;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=kn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=kn(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Hn(t):!!e.exec(t.href)}function i(n){var i,o,a=In(n.toString()),s=!1;for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!0;break}if(s)for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!1;break}return s}function o(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var a=function(e){throw vo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(a=n.get("$sanitize"));var s=o(),c={};return c[$o.HTML]=o(s),c[$o.CSS]=o(s),c[$o.URL]=o(s),c[$o.JS]=o(s),c[$o.RESOURCE_URL]=o(c[$o.URL]),{trustAs:function(e,t){var n=c.hasOwnProperty(e)?c[e]:null;if(!n)throw vo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||b(t)||""===t)return t;if("string"!=typeof t)throw vo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,t){if(null===t||b(t)||""===t)return t;var n=c.hasOwnProperty(e)?c[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===$o.RESOURCE_URL){if(i(t))return t;throw vo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===$o.HTML)return a(t);throw vo("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof s?e.$$unwrapTrustedValue():e}}}]}function _n(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Hr<8)throw vo("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=ye($o);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=g),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o($o,function(e,t){var n=Or(t);r[An("parse_as_"+n)]=function(t){return i(e,t)},r[An("get_trusted_"+n)]=function(t){return a(e,t)},r[An("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function Sn(){this.$get=["$window","$document",function(e,t){var n={},r=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=p((/android (\d+)/.exec(Or((e.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((e.navigator||{}).userAgent),a=t[0]||{},s=a.body&&a.body.style,c=!1,l=!1;return s&&(c=!!("transition"in s||"webkitTransition"in s),l=!!("animation"in s||"webkitAnimation"in s)),{history:!(!r||i<4||o),hasEvent:function(e){if("input"===e&&Hr)return!1;if(b(n[e])){var t=a.createElement("div");n[e]="on"+e in t}return n[e]},csp:Jr(),transitions:c,animations:l,android:i}}]}function Nn(){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,c){a.totalPendingRequests++,w(s)&&!b(n.get(s))||(s=o.getTrustedResourceUrl(s));var l=r.defaults&&r.defaults.transformResponse;return Kr(l)?l=l.filter(function(e){return e!==_t}):l===_t&&(l=null),r.get(s,u({cache:n,transformResponse:l},e)).finally(function(){a.totalPendingRequests--}).then(function(e){return n.put(s,e.data),e.data},function(e){return c||(e=yo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e)),i.reject(e)})}return a.totalPendingRequests=0,a}]}function Dn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=[];return o(e.getElementsByClassName("ng-binding"),function(e){var i=zr.element(e).data("$binding");i&&o(i,function(i){n?new RegExp("(^|\\s)"+Zr(t)+"(\\s|\\||$)").test(i)&&r.push(e):-1!==i.indexOf(t)&&r.push(e)})}),r},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function On(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,c){x(o)||(c=s,s=o,o=f);var l,d=W(arguments,3),u=y(c)&&!c,m=(u?r:n).defer(),p=m.promise;return l=t.defer(function(){try{m.resolve(o.apply(null,d))}catch(e){m.reject(e),i(e)}finally{delete a[p.$$timeoutId]}u||e.$apply()},s),p.$$timeoutId=l,a[l]=m,p}var a={};return o.cancel=function(e){return!!(e&&e.$$timeoutId in a)&&(a[e.$$timeoutId].promise.catch(f),a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},o}]}function In(e){var t=e;return Hr&&(Eo.setAttribute("href",t),t=Eo.href),Eo.setAttribute("href",t),{href:Eo.href,protocol:Eo.protocol?Eo.protocol.replace(/:$/,""):"",host:Eo.host,search:Eo.search?Eo.search.replace(/^\?/,""):"",hash:Eo.hash?Eo.hash.replace(/^#/,""):"",hostname:Eo.hostname,port:Eo.port,pathname:"/"===Eo.pathname.charAt(0)?Eo.pathname:"/"+Eo.pathname}}function Hn(e){var t=w(e)?In(e):e;return t.protocol===Co.protocol&&t.host===Co.host}function Pn(){this.$get=v(e)}function Rn(e){function t(e){try{return e.cookie||""}catch(e){return""}}function n(e){try{return decodeURIComponent(e)}catch(t){return e}}var r=e[0]||{},i={},o="";return function(){var e,a,s,c,l,d=t(r);if(d!==o)for(e=(o=d).split("; "),i={},s=0;s<e.length;s++)(c=(a=e[s]).indexOf("="))>0&&(l=n(a.substring(0,c)),b(i[l])&&(i[l]=n(a.substring(c+1))));return i}}function Ln(){this.$get=Rn}function jn(e){function t(r,i){if(E(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Vn),t("date",nr),t("filter",Bn),t("json",rr),t("limitTo",ir),t("lowercase",_o),t("number",zn),t("orderBy",ar),t("uppercase",So)}function Bn(){return function(e,n,r,o){if(!i(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var a,s;switch(qn(n)){case"function":a=n;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=Fn(n,r,o,s);break;default:return e}return Array.prototype.filter.call(e,a)}}function Fn(e,t,n,r){var i=E(e)&&n in e;return!0===t?t=V:x(t)||(t=function(e,t){return!b(e)&&(null===e||null===t?e===t:!(E(t)||E(e)&&!$(e))&&(e=Or(""+e),t=Or(""+t),-1!==e.indexOf(t)))}),function(o){return i&&!E(o)?Un(o,e[n],t,n,!1):Un(o,e,t,n,r)}}function Un(e,t,n,r,i,o){var a=qn(e),s=qn(t);if("string"===s&&"!"===t.charAt(0))return!Un(e,t.substring(1),n,r,i);if(Kr(e))return e.some(function(e){return Un(e,t,n,r,i)});switch(a){case"object":var c;if(i){for(c in e)if(c.charAt&&"$"!==c.charAt(0)&&Un(e[c],t,n,r,!0))return!0;return!o&&Un(e,t,n,r,!1)}if("object"===s){for(c in t){var l=t[c];if(!x(l)&&!b(l)){var d=c===r;if(!Un(d?e:e[c],l,n,r,d,d))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function qn(e){return null===e?"null":typeof e}function Vn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return b(n)&&(n=t.CURRENCY_SYM),b(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Kn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function zn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Kn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Wn(e){var t,n,r,i,o,a=0;for((n=e.indexOf(Mo))>-1&&(e=e.replace(Mo,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===Ao;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Ao;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>wo&&(t=t.splice(0,wo-1),a=n-1,n=1),{d:t,e:a,i:n}}function Yn(e,t,n,r){var i=e.d,o=i.length-e.i,a=(t=b(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 c=a;c<i.length;c++)i[c]=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 d=0;d>a;d--)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 u=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);u&&(i.unshift(u),e.i++)}function Kn(e,t,n,r,i){if(!w(e)&&!M(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,c=Math.abs(e)+"",l="";if(a)l="∞";else{Yn(o=Wn(c),i,t.minFrac,t.maxFrac);var d=o.d,u=o.i,m=o.e,p=[];for(s=d.reduce(function(e,t){return e&&!t},!0);u<0;)d.unshift(0),u++;u>0?p=d.splice(u,d.length):(p=d,d=[0]);var h=[];for(d.length>=t.lgSize&&h.unshift(d.splice(-t.lgSize,d.length).join(""));d.length>t.gSize;)h.unshift(d.splice(-t.gSize,d.length).join(""));d.length&&h.unshift(d.join("")),l=h.join(n),p.length&&(l+=r+p.join("")),m&&(l+="e+"+m)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Gn(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=Ao+e;return n&&(e=e.substr(e.length-t)),i+e}function Xn(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),Gn(a,t,r,i)}}function Zn(e,t,n){return function(r,i){var o=r["get"+e]();return i[Ir((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function Jn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Qn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function er(e){return function(t){var n=Jn(t.getFullYear()),r=+Qn(t)-+n;return Gn(1+Math.round(r/6048e5),e)}}function tr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function nr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(r,p(t[1]),p(t[2])-1,p(t[3]));var c=p(t[4]||0)-i,l=p(t[5]||0)-o,d=p(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,c,l,d,u),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,c="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,w(n)&&(n=To.test(n)?p(n):t(n)),M(n)&&(n=new Date(n)),!A(n)||!isFinite(n.getTime()))return n;for(;r;)(s=ko.exec(r))?r=(l=z(l,s,1)).pop():(l.push(r),r=null);var d=n.getTimezoneOffset();return i&&(d=Z(i,d),n=Q(n,i,!0)),o(l,function(t){a=xo[t],c+=a?a(n,e.DATETIME_FORMATS,d):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function rr(){return function(e,t){return b(t)&&(t=2),G(e,t)}}function ir(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):p(t),Yr(t)?e:(M(e)&&(e=e.toString()),i(e)?(n=!n||isNaN(n)?0:p(n),n=n<0?Math.max(0,e.length+n):n,t>=0?or(e,n,n+t):0===n?or(e,t,e.length):or(e,Math.max(0,n+t),n)):e)}}function or(e,t,n){return w(e)?e.slice(t,n):jr.call(e,t,n)}function ar(e){function n(t){return t.map(function(t){var n=1,r=g;if(x(t))r=t;else if(w(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).constant)){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function r(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return x(e.valueOf)&&(e=e.valueOf(),r(e))?e:($(e)&&(e=e.toString(),r(e)),e)}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(E(o)&&(o=e.index),E(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n=r<i?-1:1;return n}return function(e,r,o,c){if(null==e)return e;if(!i(e))throw t("orderBy")("notarray","Expected array but received: {0}",e);Kr(r)||(r=[r]),0===r.length&&(r=["+"]);var l=n(r),d=o?-1:1,u=x(c)?c:s,m=Array.prototype.map.call(e,function(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:l.map(function(n){return a(n.get(e),t)})}});return m.sort(function(e,t){for(var n=0,r=l.length;n<r;n++){var i=u(e.predicateValues[n],t.predicateValues[n]);if(i)return i*l[n].descending*d}return u(e.tieBreaker,t.tieBreaker)*d}),e=m.map(function(e){return e.value})}}function sr(e){return x(e)&&(e={link:e}),e.restrict=e.restrict||"AC",v(e)}function cr(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=Oo,this.$$element=e,this.$$animate=r,lr(this)}function lr(e){e.$$classCache={},e.$$classCache[ga]=!(e.$$classCache[fa]=e.$$element.hasClass(fa))}function dr(e){function t(e,t,n,r){e[t]||(e[t]={}),a(e[t],n,r)}function n(e,t,n,r){e[t]&&s(e[t],n,r),ur(e[t])&&(e[t]=void 0)}function r(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 i(e,t,n){t=t?"-"+ue(t,"-"):"",r(e,fa+t,!0===n),r(e,ga+t,!1===n)}var o=e.clazz,a=e.set,s=e.unset;o.prototype.$setValidity=function(e,o,c){b(o)?t(this,"$pending",e,c):n(this,"$pending",e,c),O(o)?o?(s(this.$error,e,c),a(this.$$success,e,c)):(a(this.$error,e,c),s(this.$$success,e,c)):(s(this.$error,e,c),s(this.$$success,e,c)),this.$pending?(r(this,Io,!0),this.$valid=this.$invalid=void 0,i(this,"",null)):(r(this,Io,!1),this.$valid=ur(this.$error),this.$invalid=!this.$valid,i(this,"",this.$valid));var l;i(this,e,l=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,l,this)}}function ur(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function mr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function pr(e,t,n,r,i,o){var a=Or(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,l()})}var c,l=function(e){if(c&&(o.defer.cancel(c),c=null),!s){var i=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Xr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var d=function(e,t,n){c||(c=o.defer(function(){c=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||d(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",d)}t.on("change",l),Ko[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(Yo,function(e){if(!c){var t=this[Sr],n=t.badInput,r=t.typeMismatch;c=o.defer(function(){c=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 hr(e,t){return function(n,r){var i,a;if(A(n))return n;if(w(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Lo.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function fr(e,t,n,r){return function(i,o,a,s,c,l,d){function u(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function m(e){return y(e)&&!A(e)?n(e)||void 0:e}gr(i,o,a,s),pr(i,o,a,s,c,l);var p,h=s&&s.$options.getOption("timezone");if(s.$$parserName=e,s.$parsers.push(function(e){if(s.$isEmpty(e))return null;if(t.test(e)){var r=n(e,p);return h&&(r=Q(r,h)),r}}),s.$formatters.push(function(e){if(e&&!A(e))throw ba("datefmt","Expected `{0}` to be a date",e);return u(e)?((p=e)&&h&&(p=Q(p,h,!0)),d("date")(e,r,h)):(p=null,"")}),y(a.min)||a.ngMin){var f;s.$validators.min=function(e){return!u(e)||b(f)||n(e)>=f},a.$observe("min",function(e){f=m(e),s.$validate()})}if(y(a.max)||a.ngMax){var g;s.$validators.max=function(e){return!u(e)||b(g)||n(e)<=g},a.$observe("max",function(e){g=m(e),s.$validate()})}}}function gr(e,t,n,r){var i=t[0];(r.$$hasNativeValidators=E(i.validity))&&r.$parsers.push(function(e){var n=t.prop(Sr)||{};return n.badInput||n.typeMismatch?void 0:e})}function vr(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:Fo.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!M(t))throw ba("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function $r(e){return y(e)&&!M(e)&&(e=parseFloat(e)),Yr(e)?void 0:e}function br(e){return(0|e)===e}function yr(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 Er(e,t,n){var r=Number(e),i=!br(r),o=!br(t),a=!br(n);if(i||o||a){var s=i?yr(r):0,c=o?yr(t):0,l=a?yr(n):0,d=Math.max(s,c,l),u=Math.pow(10,d);r*=u,t*=u,n*=u,i&&(r=Math.round(r)),o&&(t=Math.round(t)),a&&(n=Math.round(n))}return(r-t)%n==0}function Cr(e,t,n,r,i){var o;if(y(r)){if(!(o=e(r)).constant)throw ba("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function wr(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function r(e){return e&&e.split(" ")}function i(e){var t=e;return Kr(e)?t=e.map(i).join(" "):E(e)&&(t=Object.keys(e).filter(function(t){return e[t]}).join(" ")),t}e="ngClass"+e;var a;return["$parse",function(s){return{restrict:"AC",link:function(c,l,d){function u(e){e=h(r(e),1),d.$addClass(e)}function m(e){e=h(r(e),-1),d.$removeClass(e)}function p(e,t){var i=r(e),o=r(t),a=n(i,o),s=n(o,i),c=h(a,-1),l=h(s,1);d.$addClass(l),d.$removeClass(c)}function h(e,t){var n=[];return o(e,function(e){(t>0||g[e])&&(g[e]=(g[e]||0)+t,g[e]===+(t>0)&&n.push(e))}),n.join(" ")}var f,g=l.data("$classCounts"),v=!0;g||(g=ve(),l.data("$classCounts",g)),"ngClass"!==e&&(a||(a=s("$index",function(e){return 1&e})),c.$watch(a,function(e){e===t?u(f):m(f),v=e})),c.$watch(s(d[e],i),function(e){w(e)||(e=i(e)),v===t&&p(f,e),f=e})}}}]}function Mr(e,t,n,r,i,o,a,s,c){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=c(n.name||"",!1)(e),this.$$parentForm=Oo,this.$options=ya,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.$$currentValidationRunId=0,Object.defineProperty(this,"$$scope",{value:e}),this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,lr(this),Ar(this)}function Ar(e){e.$$scope.$watch(function(t){var n=e.$$ngModelGet(t);if(n!==e.$modelValue&&(e.$modelValue===e.$modelValue||n===n)){e.$modelValue=e.$$rawModelValue=n,e.$$parserValid=void 0;for(var r=e.$formatters,i=r.length,o=n;i--;)o=r[i](o);e.$viewValue!==o&&(e.$$updateEmptyClasses(o),e.$viewValue=e.$$lastCommittedViewValue=o,e.$render(),e.$$runValidators(e.$modelValue,e.$viewValue,f))}return n})}function xr(e){this.$$options=e}function kr(e,t){o(t,function(t,n){y(e[n])||(e[n]=t)})}function Tr(e,t){e.prop("selected",t),e.attr("selected",t)}var _r=/^\/(.+)\/([a-z]*)$/,Sr="validity",Nr=Object.prototype.hasOwnProperty,Dr={objectMaxDepth:5},Or=function(e){return w(e)?e.toLowerCase():e},Ir=function(e){return w(e)?e.toUpperCase():e};"i"!=="I".toLowerCase()&&(Or=function(e){return w(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Ir=function(e){return w(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e});var Hr,Pr,Rr,Lr,jr=[].slice,Br=[].splice,Fr=[].push,Ur=Object.prototype.toString,qr=Object.getPrototypeOf,Vr=t("ng"),zr=e.angular||(e.angular={}),Wr=0;Hr=e.document.documentMode;var Yr=Number.isNaN||function(e){return e!==e};f.$inject=[],g.$inject=[];var Kr=Array.isArray,Gr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,Xr=function(e){return w(e)?e.trim():e},Zr=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Jr=function(){if(!y(Jr.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");Jr.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else Jr.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return Jr.rules},Qr=function(){if(y(Qr.name_))return Qr.name_;var t,n,r,i,o=ti.length;for(n=0;n<o;++n)if(r=ti[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Qr.name_=i},ei=/:/g,ti=["ng-","data-ng-","ng:","x-ng-"],ni=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),ri=/[A-Z]/g,ii=!1,oi=1,ai=3,si=8,ci=9,li=11,di={full:"1.6.4",major:1,minor:6,dot:4,codeName:"phenomenal-footnote"};De.expando="ng339";var ui=De.cache={},mi=1;De._data=function(e){return this.cache[e[this.expando]]||{}};var pi=/-([a-z])/g,hi=/^-ms-/,fi={mouseleave:"mouseout",mouseenter:"mouseover"},gi=t("jqLite"),vi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,$i=/<|&#?\w+;/,bi=/<([\w:-]+)/,yi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ei={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ei.optgroup=Ei.option,Ei.tbody=Ei.tfoot=Ei.colgroup=Ei.caption=Ei.thead,Ei.th=Ei.td;var Ci=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},wi=De.prototype={ready:Ke,toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Pr(e>=0?this[e]:this[this.length+e])},length:0,push:Fr,sort:[].sort,splice:[].splice},Mi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Mi[Or(e)]=e});var Ai={};o("input,select,option,textarea,button,form,details".split(","),function(e){Ai[e]=!0});var xi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:Le,removeData:Pe,hasData:function(e){for(var t in ui[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)Pe(e[t])}},function(e,t){De[t]=e}),o({data:Le,inheritedData:Ve,scope:function(e){return Pr.data(e,"$scope")||Ve(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Pr.data(e,"$isolateScope")||Pr.data(e,"$isolateScopeNoTemplate")},controller:qe,injector:function(e){return Ve(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:je,css:function(e,t,n){if(t=Me(t),!y(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==ai&&2!==i&&i!==si&&e.getAttribute){var o=Or(t),a=Mi[o];if(!y(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(!y(n))return e[t];e[t]=n},text:function(){function e(e,t){if(b(t)){var n=e.nodeType;return n===oi||n===ai?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(b(t)){if(e.multiple&&"select"===j(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){if(b(t))return e.innerHTML;Ie(e,!0),e.innerHTML=t},empty:ze},function(e,t){De.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==ze&&b(2===e.length&&e!==je&&e!==qe?t:n)){if(E(t)){for(r=0;r<o;r++)if(e===Le)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=b(a)?Math.min(o,1):o,c=0;c<s;c++){var l=e(this[c],t,n);a=a?a+l:l}return a}for(r=0;r<o;r++)e(this[r],t,n);return this}}),o({removeData:Pe,on:function(e,t,n,r){if(y(r))throw gi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Te(e)){var i=Re(e,!0),o=i.events,a=i.handle;a||(a=i.handle=Ze(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],c=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)};c--;)t=s[c],fi[t]?(l(fi[t],Qe),l(t,void 0,!0)):l(t)}},off:He,one:function(e,t,n){(e=Pr(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;Ie(e),o(new De(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===oi&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===oi||n===li)for(var r=0,i=(t=new De(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(e,t){if(e.nodeType===oi){var n=e.firstChild;o(new De(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Ne(e,Pr(t).eq(0).clone()[0])},remove:We,detach:function(e){We(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new De(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Fe,removeClass:Be,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;b(r)&&(r=!je(e,t)),(r?Fe:Be)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==li?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Oe,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,c=Re(e),l=c&&c.events,d=l&&l[s];d&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:f,type:s,target:e},t.type&&(r=u(r,t)),i=ye(d),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){De.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)b(i)?y(i=e(this[o],t,n,r))&&(i=Pr(i)):Ue(i,e(this[o],t,n,r));return y(i)?i:this}}),De.prototype.bind=De.prototype.on,De.prototype.unbind=De.prototype.off;var ki=Object.create(null);nt.prototype={_idx:function(e){return e===this._lastKey?this._lastIndex:(this._lastKey=e,this._lastIndex=this._keys.indexOf(e),this._lastIndex)},_transformKey:function(e){return Yr(e)?ki:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},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 Ti=nt,_i=[function(){this.$get=[function(){return Ti}]}],Si=/^([^(]+?)=>/,Ni=/^[^(]*\(\s*([^)]*)\)/m,Di=/,/,Oi=/^\s*(_?)(\S+?)\1\s*$/,Ii=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Hi=t("$injector");at.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw w(n)&&n||(n=e.name||ot(e)),Hi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o(it(e)[1].split(Di),function(e){e.replace(Oi,function(e,t,n){r.push(n)})})}e.$inject=r}}else Kr(e)?(pe(e[i=e.length-1],"fn"),r=e.slice(0,i)):pe(e,"fn",!0);return r};var Pi=t("$animate"),Ri=1,Li=function(){this.$get=f},ji=function(){var e=new Ti,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&o(t=w(t)?t.split(" "):Kr(t)?t:[],function(t){t&&(r=!0,e[t]=n)}),r}function a(){o(t,function(t){var n=e.get(t);if(n){var r=dt(t.attr("class")),i="",a="";o(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&Fe(e,i),a&&Be(e,a)}),e.delete(t)}}),t.length=0}function s(n,o,s){var c=e.get(n)||{},l=i(c,o,!0),d=i(c,s,!1);(l||d)&&(e.set(n,c),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:f,on:f,off:f,pin:f,push:function(e,t,r,i){i&&i(),(r=r||{}).from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Bi=["$provide",function(e){var t=this,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Pi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)&&new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,Pi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate");return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=lt(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.end&&e.end()},enter:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",ut(o))},move:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",ut(o))},leave:function(t,n){return e.push(t,"leave",ut(n),function(){t.remove()})},addClass:function(t,n,r){return r=ut(r),r.addClass=ct(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=ut(r),r.removeClass=ct(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=ut(i),i.addClass=ct(i.addClass,n),i.removeClass=ct(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=ut(o),o.from=o.from?u(o.from,n):n,o.to=o.to?u(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=ct(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Fi=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Ui=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n(),o=function(e){i(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){r()?o(e):t(e)},this._state=0}return a.chain=function(e,t){function n(){r!==e.length?e[r](function(e){!1!==e?(r++,n()):t(!1)}):t(!0)}var r=0;n()},a.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:f,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},a}]},qi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),s||c.complete(),s=!0}),c}function o(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=U(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var s,c=new n;return{start:i,end:i}}}]},Vi=t("$compile"),zi=new function(){};gt.$inject=["$provide","$$sanitizeUriProvider"],vt.prototype.isFirstChange=function(){return this.previousValue===zi};var Wi=/^((?:x|data)[:\-_])/i,Yi=/[:\-_]+(.)/g,Ki=t("$controller"),Gi=/^(\S+)(\s+as\s+([\w$]+))?$/,Xi=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Pr&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Zi="application/json",Ji={"Content-Type":Zi+";charset=utf-8"},Qi=/^\[|^\{(?!\{)/,eo={"[":/]$/,"{":/}$/},to=/^\)]\}',?\n/,no=t("$http"),ro=zr.$interpolateMinErr=t("$interpolate");ro.throwNoconcat=function(e){throw ro("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)},ro.interr=function(e,t){return ro("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var io=function(){this.$get=function(){function e(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}var t=zr.callbacks,n={};return{createCallback:function(r){var i="_"+(t.$$counter++).toString(36),o="angular.callbacks."+i,a=e(i);return n[o]=t[i]=a,o},wasCalled:function(e){return n[e].called},getResponse:function(e){return n[e].data},removeCallback:function(e){var r=n[e];delete t[r.id],delete n[e]}}}},oo=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ao={http:80,https:443,ftp:21},so=t("$location"),co=/^\s*[\\/]{2,}/,lo={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Qt("$$absUrl"),url:function(e){if(b(e))return this.$$url;var t=oo.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:Qt("$$protocol"),host:Qt("$$host"),port:Qt("$$port"),path:en("$$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(w(e)||M(e))e=e.toString(),this.$$search=ne(e);else{if(!E(e))throw so("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");o(e=U(e,{}),function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:b(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:en("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([Jt,Zt,Xt],function(e){e.prototype=Object.create(lo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Xt||!this.$$html5)throw so("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=b(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var uo=t("$parse"),mo={}.constructor.prototype.valueOf,po=ve();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){po[e]=!0});var ho={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},fo=function(e){this.options=e};fo.prototype={constructor:fo,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=po[t],o=po[n],a=po[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=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw uo("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=Or(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+=ho[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 go=function(e,t){this.lexer=e,this.options=t};go.Program="Program",go.ExpressionStatement="ExpressionStatement",go.AssignmentExpression="AssignmentExpression",go.ConditionalExpression="ConditionalExpression",go.LogicalExpression="LogicalExpression",go.BinaryExpression="BinaryExpression",go.UnaryExpression="UnaryExpression",go.CallExpression="CallExpression",go.MemberExpression="MemberExpression",go.Identifier="Identifier",go.Literal="Literal",go.ArrayExpression="ArrayExpression",go.Property="Property",go.ObjectExpression="ObjectExpression",go.ThisExpression="ThisExpression",go.LocalsExpression="LocalsExpression",go.NGValueParameter="NGValueParameter",go.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:go.Program,body:e}},expressionStatement:function(){return{type:go.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(!dn(e))throw uo("lval","Trying to assign a value to a non l-value");e={type:go.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:go.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:go.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:go.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:go.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:go.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=U(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:go.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());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:go.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:go.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:go.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:go.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:go.Identifier,name:e.text}},constant:function(){return{type:go.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:go.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:go.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:go.ObjectExpression,properties:t}},throwError:function(e,t){throw uo("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 uo("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 uo("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:go.ThisExpression},$locals:{type:go.LocalsExpression}}},hn.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},cn(e,t.$filter);var n,r="";if(this.stage="assign",n=un(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var a=ln(e.body);t.stage="inputs",o(a,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push(r),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(e);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",c=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,rn,on,an);return this.state=this.stage=void 0,c},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,a){var s,c,l,d,u,m=this;if(r=r||f,!a&&y(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 go.Program:o(e.body,function(t,n){m.recurse(t.expression,void 0,void 0,function(e){c=e}),n!==e.body.length-1?m.current().body.push(c,";"):m.return_(c)});break;case go.Literal:d=this.escape(e.value),this.assign(t,d),r(t||d);break;case go.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){c=e}),d=e.operator+"("+this.ifDefined(c,0)+")",this.assign(t,d),r(d);break;case go.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){c=e}),d="+"===e.operator?this.plus(s,c):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(c,0):"("+s+")"+e.operator+"("+c+")",this.assign(t,d),r(d);break;case go.LogicalExpression:t=t||this.nextId(),m.recurse(e.left,t),m.if_("&&"===e.operator?t:m.not(t),m.lazyRecurse(e.right,t)),r(t);break;case go.ConditionalExpression:t=t||this.nextId(),m.recurse(e.test,t),m.if_(t,m.lazyRecurse(e.alternate,t),m.lazyRecurse(e.consequent,t)),r(t);break;case go.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===m.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),m.if_("inputs"===m.stage||m.not(m.getHasOwnProperty("l",e.name)),function(){m.if_("inputs"===m.stage||"s",function(){i&&1!==i&&m.if_(m.isNull(m.nonComputedMember("s",e.name)),m.lazyAssign(m.nonComputedMember("s",e.name),"{}")),m.assign(t,m.nonComputedMember("s",e.name))})},t&&m.lazyAssign(t,m.nonComputedMember("l",e.name))),r(t);break;case go.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),m.recurse(e.object,s,void 0,function(){m.if_(m.notNull(s),function(){e.computed?(c=m.nextId(),m.recurse(e.property,c),m.getStringValue(c),i&&1!==i&&m.if_(m.not(m.computedMember(s,c)),m.lazyAssign(m.computedMember(s,c),"{}")),d=m.computedMember(s,c),m.assign(t,d),n&&(n.computed=!0,n.name=c)):(i&&1!==i&&m.if_(m.isNull(m.nonComputedMember(s,e.property.name)),m.lazyAssign(m.nonComputedMember(s,e.property.name),"{}")),d=m.nonComputedMember(s,e.property.name),m.assign(t,d),n&&(n.computed=!1,n.name=e.property.name))},function(){m.assign(t,"undefined")}),r(t)},!!i);break;case go.CallExpression:t=t||this.nextId(),e.filter?(c=m.filter(e.callee.name),l=[],o(e.arguments,function(e){var t=m.nextId();m.recurse(e,t),l.push(t)}),d=c+"("+l.join(",")+")",m.assign(t,d),r(t)):(c=m.nextId(),s={},l=[],m.recurse(e.callee,c,s,function(){m.if_(m.notNull(c),function(){o(e.arguments,function(t){m.recurse(t,e.constant?void 0:m.nextId(),void 0,function(e){l.push(e)})}),d=s.name?m.member(s.context,s.name,s.computed)+"("+l.join(",")+")":c+"("+l.join(",")+")",m.assign(t,d)},function(){m.assign(t,"undefined")}),r(t)}));break;case go.AssignmentExpression:c=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){m.if_(m.notNull(s.context),function(){m.recurse(e.right,c),d=m.member(s.context,s.name,s.computed)+e.operator+c,m.assign(t,d),r(t||d)})},1);break;case go.ArrayExpression:l=[],o(e.elements,function(t){m.recurse(t,e.constant?void 0:m.nextId(),void 0,function(e){l.push(e)})}),d="["+l.join(",")+"]",this.assign(t,d),r(t||d);break;case go.ObjectExpression:l=[],u=!1,o(e.properties,function(e){e.computed&&(u=!0)}),u?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,function(e){e.computed?(s=m.nextId(),m.recurse(e.key,s)):s=e.key.type===go.Identifier?e.key.name:""+e.key.value,c=m.nextId(),m.recurse(e.value,c),m.assign(m.member(t,s,e.computed),c)})):(o(e.properties,function(t){m.recurse(t.value,e.constant?void 0:m.nextId(),void 0,function(e){l.push(m.escape(t.key.type===go.Identifier?t.key.name:""+t.key.value)+":"+e)})}),d="{"+l.join(",")+"}",this.assign(t,d)),r(t||d);break;case go.ThisExpression:this.assign(t,"s"),r(t||"s");break;case go.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case go.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){var n=/[^$_a-zA-Z0-9]/g;return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(n,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(w(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(M(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 uo("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]}},fn.prototype={compile:function(e){var t=this;cn(e,t.$filter);var n,r;(n=un(e))&&(r=this.recurse(n));var i,a=ln(e.body);a&&(i=[],o(a,function(e,n){var r=t.recurse(e);e.input=r,i.push(r),e.watchId=n}));var s=[];o(e.body,function(e){s.push(t.recurse(e.expression))});var c=0===e.body.length?f:1===e.body.length?s[0]:function(e,t){var n;return o(s,function(r){n=r(e,t)}),n};return r&&(c.assign=function(e,t,n){return r(e,n,t)}),i&&(c.inputs=i),c},recurse:function(e,t,n){var r,i,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case go.Literal:return this.value(e.value,t);case go.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case go.BinaryExpression:case go.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case go.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case go.Identifier:return s.identifier(e.name,t,n);case go.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 go.CallExpression:return a=[],o(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var s=[],c=0;c<a.length;++c)s.push(a[c](e,n,r,o));var l=i.apply(void 0,s,o);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,o){var s,c=i(e,n,r,o);if(null!=c.value){for(var l=[],d=0;d<a.length;++d)l.push(a[d](e,n,r,o));s=c.value.apply(c.context,l)}return t?{value:s}:s};case go.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),c=i(e,n,o,a);return s.context[s.name]=c,t?{value:c}:c};case go.ArrayExpression:return a=[],o(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case go.ObjectExpression:return a=[],o(e.properties,function(e){e.computed?a.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):a.push({key:e.key.type===go.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case go.ThisExpression:return function(e){return t?{value:e}:e};case go.LocalsExpression:return function(e,n){return t?{value:n}:n};case go.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=y(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=y(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=an(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),c=t(r,i,o,a),l=(y(s)?s:0)-(y(c)?c: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 c=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:c}:c}},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 c=s?s[e]:void 0;return t?{context:s,name:e,value:c}:c}},computedMember:function(e,t,n,r){return function(i,o,a,s){var c,l,d=e(i,o,a,s);return null!=d&&(c=rn(c=t(i,o,a,s)),r&&1!==r&&d&&!d[c]&&(d[c]={}),l=d[c]),n?{context:d,name:c,value:l}:l}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var c=e(i,o,a,s);r&&1!==r&&c&&null==c[t]&&(c[t]={});var l=null!=c?c[t]:void 0;return n?{context:c,name:t,value:l}:l}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},gn.prototype={constructor:gn,parse:function(e){var t=this.ast.ast(e),n=this.astCompiler.compile(t);return n.literal=mn(t),n.constant=pn(t),n}};var vo=t("$sce"),$o={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},bo=/_([a-z])/g,yo=t("$compile"),Eo=e.document.createElement("a"),Co=In(e.location.href);Rn.$inject=["$document"],jn.$inject=["$provide"];var wo=22,Mo=".",Ao="0";Vn.$inject=["$locale"],zn.$inject=["$locale"];var xo={yyyy:Xn("FullYear",4,0,!1,!0),yy:Xn("FullYear",2,0,!0,!0),y:Xn("FullYear",1,0,!1,!0),MMMM:Zn("Month"),MMM:Zn("Month",!0),MM:Xn("Month",2,1),M:Xn("Month",1,1),LLLL:Zn("Month",!1,!0),dd:Xn("Date",2),d:Xn("Date",1),HH:Xn("Hours",2),H:Xn("Hours",1),hh:Xn("Hours",2,-12),h:Xn("Hours",1,-12),mm:Xn("Minutes",2),m:Xn("Minutes",1),ss:Xn("Seconds",2),s:Xn("Seconds",1),sss:Xn("Milliseconds",3),EEEE:Zn("Day"),EEE:Zn("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+=Gn(Math[r>0?"floor":"ceil"](r/60),2)+Gn(Math.abs(r%60),2)},ww:er(2),w:er(1),G:tr,GG:tr,GGG:tr,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},ko=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,To=/^-?\d+$/;nr.$inject=["$locale"];var _o=v(Or),So=v(Ir);ar.$inject=["$parse"];var No=v({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]"===Ur.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Do={};o(Mi,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=$t("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,0,i)}),Do[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(xi,function(e,t){Do[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(_r);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=$t("ng-"+e);Do[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Ur.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){t?(i.$set(a,t),Hr&&o&&r.prop(o,i[a])):"href"===e&&i.$set(a,null)})}}}});var Oo={$addControl:f,$$renameControl:function(e,t){e.$name=t},$removeControl:f,$setValidity:f,$setDirty:f,$setPristine:f,$setSubmitted:f},Io="ng-pending";cr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],cr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){he(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),o(this.$error,function(t,n){this.$setValidity(n,null,e)},this),o(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),F(this.$$controls,e),e.$$parentForm=Oo},$setDirty:function(){this.$$animate.removeClass(this.$$element,va),this.$$animate.addClass(this.$$element,$a),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,va,$a+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},dr({clazz:cr,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&&(F(r,n),0===r.length&&delete e[t])}});var Ho=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||f}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:cr,compile:function(n,i){n.addClass(va).addClass(fa);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 c=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",c),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",c)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var l=o?r(s.$name):f;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),u(s,Oo)})}}}}}]},Po=Ho(),Ro=Ho(!0),Lo=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,jo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Bo=/^(?=.{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])?)*$/,Fo=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Uo=/^(\d{4,})-(\d{2})-(\d{2})$/,qo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Vo=/^(\d{4,})-W(\d\d)$/,zo=/^(\d{4,})-(\d\d)$/,Wo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yo="keydown wheel mousedown",Ko=ve();o("date,datetime-local,month,time,week".split(","),function(e){Ko[e]=!0});var Go={text:function(e,t,n,r,i,o){pr(e,t,n,r,i,o),mr(r)},date:fr("date",Uo,hr(Uo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":fr("datetimelocal",qo,hr(qo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:fr("time",Wo,hr(Wo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:fr("week",Vo,function(e,t){if(A(e))return e;if(w(e)){Vo.lastIndex=0;var n=Vo.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,c=0,l=Jn(r),d=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),c=t.getMilliseconds()),new Date(r,0,l.getDate()+d,o,a,s,c)}}return NaN},"yyyy-Www"),month:fr("month",zo,hr(zo,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o){gr(e,t,n,r),vr(r),pr(e,t,n,r,i,o);var a,s;if((y(n.min)||n.ngMin)&&(r.$validators.min=function(e){return r.$isEmpty(e)||b(a)||e>=a},n.$observe("min",function(e){a=$r(e),r.$validate()})),(y(n.max)||n.ngMax)&&(r.$validators.max=function(e){return r.$isEmpty(e)||b(s)||e<=s},n.$observe("max",function(e){s=$r(e),r.$validate()})),y(n.step)||n.ngStep){var c;r.$validators.step=function(e,t){return r.$isEmpty(t)||b(c)||Er(t,a||0,c)},n.$observe("step",function(e){c=$r(e),r.$validate()})}},url:function(e,t,n,r,i,o){pr(e,t,n,r,i,o),mr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||jo.test(n)}},email:function(e,t,n,r,i,o){pr(e,t,n,r,i,o),mr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Bo.test(n)}},radio:function(e,t,n,r){var i=!n.ngTrim||"false"!==Xr(n.ngTrim);b(n.name)&&t.attr("name",c());t.on("click",function(e){var o;t[0].checked&&(o=n.value,i&&(o=Xr(o)),r.$setViewValue(o,e&&e.type))}),r.$render=function(){var e=n.value;i&&(e=Xr(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,o){function a(e,r){t.attr(e,n[e]),n.$observe(e,r)}gr(e,t,n,r),vr(r),pr(e,t,n,r,i,o);var s=r.$$hasNativeValidators&&"range"===t[0].type,c=s?0:void 0,l=s?100:void 0,d=s?1:void 0,u=t[0].validity,m=y(n.min),p=y(n.max),h=y(n.step),f=r.$render;r.$render=s&&y(u.rangeUnderflow)&&y(u.rangeOverflow)?function(){f(),r.$setViewValue(t.val())}:f,m&&(r.$validators.min=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||b(c)||t>=c},a("min",function(e){if(c=$r(e),!Yr(r.$modelValue))if(s){var n=t.val();c>n&&(n=c,t.val(n)),r.$setViewValue(n)}else r.$validate()})),p&&(r.$validators.max=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||b(l)||t<=l},a("max",function(e){if(l=$r(e),!Yr(r.$modelValue))if(s){var n=t.val();l<n&&(t.val(l),n=l<c?c:l),r.$setViewValue(n)}else r.$validate()})),h&&(r.$validators.step=s?function(){return!u.stepMismatch}:function(e,t){return r.$isEmpty(t)||b(d)||Er(t,c||0,d)},a("step",function(e){d=$r(e),Yr(r.$modelValue)||(s&&r.$viewValue!==t.val()?r.$setViewValue(t.val()):r.$validate())}))},checkbox:function(e,t,n,r,i,o,a,s){var c=Cr(s,e,"ngTrueValue",n.ngTrueValue,!0),l=Cr(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("click",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 V(e,c)}),r.$parsers.push(function(e){return e?c:l})},hidden:f,button:f,submit:f,reset:f,file:f},Xo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Go[Or(a.type)]||Go.text)(i,o,a,s[0],t,e,n,r)}}}}],Zo=/^(true|false|\d+)$/,Jo=function(){function e(e,t,n){var r=y(n)?n:9===Hr?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return Zo.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)})}}}},Qo=["$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=$e(e)})}}}}],ea=["$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=b(e)?"":e})}}}}],ta=["$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)||"")})}}}}],na=v({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),ra=wr("",!0),ia=wr("Odd",0),oa=wr("Even",1),aa=sr({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),sa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ca={},la={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=$t("ng-"+e);ca[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t]);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};la[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var da=["$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,c,l;n.$watch(i.ngIf,function(n){n?c||a(function(n,o){c=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),c&&(c.$destroy(),c=null),s&&(l=ge(s.clone),e.leave(l).done(function(e){!1!==e&&(l=null)}),s=null))})}}}],ua=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:zr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,c,l,d){var u,m,p,h=0,f=function(){m&&(m.remove(),m=null),u&&(u.$destroy(),u=null),p&&(n.leave(p).done(function(e){!1!==e&&(m=null)}),m=p,p=null)};r.$watch(o,function(o){var c=function(e){!1===e||!y(s)||s&&!r.$eval(s)||t()},m=++h;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&m===h){var t=r.$new();l.template=e;var s=d(t,function(e){f(),n.enter(e,null,i).done(c)});p=s,(u=t).$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||m===h&&(f(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(f(),l.template=null)})}}}}],ma=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(Ur.call(r[0]).match(/SVG/))return r.empty(),void t(_e(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],pa=sr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),ha=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",a="false"!==n.ngTrim,s=a?Xr(i):i;r.$parsers.push(function(e){if(!b(e)){var t=[];return e&&o(e.split(s),function(e){e&&t.push(a?Xr(e):e)}),t}}),r.$formatters.push(function(e){if(Kr(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},fa="ng-valid",ga="ng-invalid",va="ng-pristine",$a="ng-dirty",ba=t("ngModel");Mr.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Mr.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 x(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){x(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw ba("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,ee(this.$$element))},$render:f,$isEmpty:function(e){return b(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,$a),this.$$animate.addClass(this.$$element,va)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,va),this.$$animate.addClass(this.$$element,$a),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!Yr(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function r(e,t){a===s.$$currentValidationRunId&&s.$setValidity(e,t)}function i(e){a===s.$$currentValidationRunId&&n(e)}var a=++this.$$currentValidationRunId,s=this;!function(){var e=s.$$parserName||"parse";return b(s.$$parserValid)?(r(e,null),!0):(s.$$parserValid||(o(s.$validators,function(e,t){r(t,null)}),o(s.$asyncValidators,function(e,t){r(t,null)})),r(e,s.$$parserValid),s.$$parserValid)}()?i(!1):function(){var n=!0;return o(s.$validators,function(i,o){var a=Boolean(i(e,t));n=n&&a,r(o,a)}),!!n||(o(s.$asyncValidators,function(e,t){r(t,null)}),!1)}()?function(){var n=[],a=!0;o(s.$asyncValidators,function(i,o){var s=i(e,t);if(!I(s))throw ba("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);r(o,void 0),n.push(s.then(function(){r(o,!0)},function(){a=!1,r(o,!1)}))}),n.length?s.$$q.all(n).then(function(){i(a)},f):i(!0)}():i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){n.$modelValue!==i&&n.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=this;if(this.$$parserValid=!b(t)||void 0,this.$$parserValid)for(var r=0;r<this.$parsers.length;r++)if(t=this.$parsers[r](t),b(t)){this.$$parserValid=!1;break}Yr(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var i=this.$modelValue,o=this.$options.getOption("allowInvalid");this.$$rawModelValue=t,o&&(this.$modelValue=t,e()),this.$$runValidators(t,this.$$lastCommittedViewValue,function(r){o||(n.$modelValue=r?t:void 0,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");M(t[e])?t=t[e]:M(t.default)&&(t=t.default),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e)}},dr({clazz:Mr,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var ya,Ea=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Mr,priority:1,compile:function(t){return t.addClass(va).addClass("ng-untouched").addClass(fa),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$options.getOption("updateOn")&&n.on(a.$options.getOption("updateOn"),function(e){a.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],Ca=/(\s+|^)default(\s+|$)/;xr.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=u({},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]=Xr(n.replace(Ca,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],kr(e,this.$$options)),kr(e,ya.$$options),new xr(e)}},ya=new xr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var wa=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:ya,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},Ma=sr({terminal:!0,priority:1e3}),Aa=t("ngOptions"),xa=/^\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]+?))?$/,ka=["$compile","$document","$parse",function(t,n,r){function a(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match(xa);if(!s)throw Aa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,ee(t));var c=s[5]||s[7],l=s[6],d=/ as /.test(s[0])&&s[1],u=s[9],m=r(s[2]?s[1]:c),p=d&&r(d)||m,h=u&&r(u),f=u?function(e,t){return h(n,t)}:function(e){return tt(e)},g=function(e,t){return f(e,C(e,t))},v=r(s[2]||s[1]),$=r(s[3]||""),b=r(s[4]||""),y=r(s[8]),E={},C=l?function(e,t){return E[l]=t,E[c]=e,E}:function(e){return E[c]=e,E};return{trackBy:u,getTrackByValue:g,getWatchables:r(y,function(e){for(var t=[],r=a(e=e||[]),i=r.length,o=0;o<i;o++){var c=e===r?o:r[o],l=e[c],d=C(l,c),u=f(l,d);if(t.push(u),s[2]||s[1]){var m=v(n,d);t.push(m)}if(s[4]){var p=b(n,d);t.push(p)}}return t}),getOptions:function(){for(var e=[],t={},r=y(n)||[],i=a(r),s=i.length,c=0;c<s;c++){var l=r===i?c:i[c],d=C(r[l],l),m=p(n,d),h=f(m,d),E=new o(h,m,v(n,d),$(n,d),b(n,d));e.push(E),t[h]=E}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[g(e)]},getViewValueFromOption:function(e){return u?U(e.viewValue):e.viewValue}}}}}var s=e.document.createElement("option"),c=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=f},post:function(e,r,i,l){function d(e,t){var n=s.cloneNode(!1);t.appendChild(n),m(e,n)}function u(e){var t=C.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}function m(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}function p(){var e=C&&h.readValue();if(C)for(var t=C.items.length-1;t>=0;t--){var n=C.items[t];We(y(n.group)?n.element.parentNode:n.element)}C=w.getOptions();var i={};if(E&&r.prepend(h.emptyOption),C.items.forEach(function(e){var t;y(e.group)?((t=i[e.group])||(t=c.cloneNode(!1),M.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),d(e,t)):d(e,M)}),r[0].appendChild(M),f.$render(),!f.$isEmpty(e)){var o=h.readValue();(w.trackBy||g?V(e,o):e===o)||(f.$setViewValue(o),f.$render())}}for(var h=l[0],f=l[1],g=i.multiple,v=0,$=r.children(),b=$.length;v<b;v++)if(""===$[v].value){h.hasEmptyOption=!0,h.emptyOption=$.eq(v);break}var E=!!h.emptyOption;Pr(s.cloneNode(!1)).val("?");var C,w=a(i.ngOptions,r,e),M=n[0].createDocumentFragment();h.generateUnknownOptionValue=function(e){return"?"},g?(h.writeValue=function(e){var t=e&&e.map(u)||[];C.items.forEach(function(e){e.element.selected&&!B(t,e)&&(e.element.selected=!1)})},h.readValue=function(){var e=[];return o(r.val()||[],function(t){var n=C.selectValueMap[t];n&&!n.disabled&&e.push(C.getViewValueFromOption(n))}),e},w.trackBy&&e.$watchCollection(function(){if(Kr(f.$viewValue))return f.$viewValue.map(function(e){return w.getTrackByValue(e)})},function(){f.$render()})):(h.writeValue=function(e){var t=C.selectValueMap[r.val()],n=C.getOptionFromViewValue(e);t&&t.element.removeAttribute("selected"),n?(r[0].value!==n.selectValue&&(h.removeUnknownOption(),h.unselectEmptyOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):E?h.selectEmptyOption():h.unknownOption.parent().length?h.updateUnknownOption(e):h.renderUnknownOption(e)},h.readValue=function(){var e=C.selectValueMap[r.val()];return e&&!e.disabled?(h.unselectEmptyOption(),h.removeUnknownOption(),C.getViewValueFromOption(e)):null},w.trackBy&&e.$watch(function(){return w.getTrackByValue(f.$viewValue)},function(){f.$render()})),E&&(h.emptyOption.remove(),t(h.emptyOption)(e),h.emptyOption[0].nodeType===si?(h.hasEmptyOption=!1,h.registerOption=function(e,t){""===t.val()&&(h.hasEmptyOption=!0,h.emptyOption=t,h.emptyOption.removeClass("ng-scope"),f.$render(),t.on("$destroy",function(){h.hasEmptyOption=!1,h.emptyOption=void 0}))}):h.emptyOption.removeClass("ng-scope")),r.empty(),p(),e.$watchCollection(w.getWatchables,p)}}}}],Ta=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,c){function l(e){s.text(e||"")}var d,u=c.count,m=c.$attr.when&&s.attr(c.$attr.when),p=c.offset||0,h=a.$eval(m)||{},g={},v=t.startSymbol(),$=t.endSymbol(),y=v+u+"-"+p+$,E=zr.noop;o(c,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+Or(n[2]);h[r]=s.attr(c.$attr[t])}}),o(h,function(e,n){g[n]=t(e.replace(r,y))}),a.$watch(u,function(t){var r=parseFloat(t),i=Yr(r);if(i||r in h||(r=e.pluralCat(r-p)),!(r===d||i&&Yr(d))){E();var o=g[r];b(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+m),E=f,l()):E=a.$watch(o,l),d=r}})}}}],_a=["$parse","$animate","$compile",function(e,n,r){var a=t("ngRepeat"),s=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},c=function(e){return e.clone[0]},l=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,d){var u=d.ngRepeat,m=r.$$createComment("end ngRepeat",u),p=u.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",u);var h=p[1],f=p[2],g=p[3],v=p[4];if(!(p=h.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);var $=p[3]||p[1],b=p[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw a("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var y,E,C,w,M={$id:tt};return v?y=e(v):(C=function(e,t){return tt(t)},w=function(e){return e}),function(e,t,r,d,p){y&&(E=function(t,n,r){return b&&(M[b]=t),M[$]=n,M.$index=r,y(e,M)});var h=ve();e.$watchCollection(f,function(r){var d,f,v,y,M,A,x,k,T,_,S,N,D=t[0],O=ve();if(g&&(e[g]=r),i(r))T=r,k=E||C;else{k=E||w,T=[];for(var I in r)Nr.call(r,I)&&"$"!==I.charAt(0)&&T.push(I)}for(y=T.length,S=new Array(y),d=0;d<y;d++)if(M=r===T?d:T[d],A=r[M],x=k(M,A,d),h[x])_=h[x],delete h[x],O[x]=_,S[d]=_;else{if(O[x])throw o(S,function(e){e&&e.scope&&(h[e.id]=e)}),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",u,x,A);S[d]={id:x,scope:void 0,clone:void 0},O[x]=!0}for(var H in h){if(_=h[H],N=ge(_.clone),n.leave(N),N[0].parentNode)for(d=0,f=N.length;d<f;d++)N[d].$$NG_REMOVED=!0;_.scope.$destroy()}for(d=0;d<y;d++)if(M=r===T?d:T[d],A=r[M],(_=S[d]).scope){v=D;do{v=v.nextSibling}while(v&&v.$$NG_REMOVED);c(_)!==v&&n.move(ge(_.clone),null,D),D=l(_),s(_.scope,d,$,A,b,M,y)}else p(function(e,t){_.scope=t;var r=m.cloneNode(!1);e[e.length++]=r,n.enter(e,null,D),D=r,_.clone=e,O[_.id]=_,s(_.scope,d,$,A,b,M,y)});h=O})}}}}],Sa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Na=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Da=sr(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Oa=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,c=[],l=[],d=[],u=[],m=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(s,function(n){for(var r,i;d.length;)e.cancel(d.pop());for(r=0,i=u.length;r<i;++r){var s=ge(l[r].clone);u[r].$destroy(),(d[r]=e.leave(s)).done(m(d,r))}l.length=0,u.length=0,(c=a.cases["!"+n]||a.cases["?"])&&o(c,function(n){n.transclude(function(r,i){u.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],Ia=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})})}}),Ha=sr({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})}}),Pa=t("ngTransclude"),Ra=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function a(){n(e,function(e){t.append(e)})}function s(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==ai||r.nodeValue.trim())return!0}}if(!o)throw Pa("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ee(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var c=r.ngTransclude||r.ngTranscludeSlot;o(function(e,n){e.length&&s(e)?t.append(e):(a(),n.$destroy())},null,c),c&&!o.isSlotFilled(c)&&a()}}}}],La=["$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)}}}}],ja={$setViewValue:f,$render:f},Ba=["$element","$scope",function(t,n){function r(){s||(s=!0,n.$$postDigest(function(){s=!1,o.ngModelCtrl.$render()}))}function i(e){c||(c=!0,n.$$postDigest(function(){n.$$destroyed||(c=!1,o.ngModelCtrl.$setViewValue(o.readValue()),e&&o.ngModelCtrl.$render())}))}var o=this,a=new Ti;o.selectValueMap={},o.ngModelCtrl=ja,o.multiple=!1,o.unknownOption=Pr(e.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),t.prepend(o.unknownOption),Tr(o.unknownOption,!0),t.val(n)},o.updateUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),Tr(o.unknownOption,!0),t.val(n)},o.generateUnknownOptionValue=function(e){return"? "+tt(e)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(t.val(""),Tr(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&o.emptyOption.removeAttr("selected")},n.$on("$destroy",function(){o.renderUnknownOption=f}),o.readValue=function(){var e=t.val(),n=e in o.selectValueMap?o.selectValueMap[e]:e;return o.hasOption(n)?n:null},o.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&Tr(Pr(n),!1),o.hasOption(e)){o.removeUnknownOption();var r=tt(e);t.val(r in o.selectValueMap?r:e);var i=t[0].options[t[0].selectedIndex];Tr(Pr(i),!0)}else null==e&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(e):o.renderUnknownOption(e)},o.addOption=function(e,t){if(t[0].nodeType!==si){he(e,'"option value"'),""===e&&(o.hasEmptyOption=!0,o.emptyOption=t);var n=a.get(e)||0;a.set(e,n+1),r()}},o.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.delete(e),""===e&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):a.set(e,t-1))},o.hasOption=function(e){return!!a.get(e)};var s=!1,c=!1;o.registerOption=function(e,t,n,a,s){if(n.$attr.ngValue){var c,l=NaN;n.$observe("value",function(e){var n,r=t.prop("selected");y(l)&&(o.removeOption(c),delete o.selectValueMap[l],n=!0),l=tt(e),c=e,o.selectValueMap[l]=e,o.addOption(e,t),t.attr("value",l),n&&r&&i()})}else a?n.$observe("value",function(e){o.readValue();var n,r=t.prop("selected");y(c)&&(o.removeOption(c),n=!0),c=e,o.addOption(e,t),n&&r&&i()}):s?e.$watch(s,function(e,r){n.$set("value",e);var a=t.prop("selected");r!==e&&o.removeOption(r),o.addOption(e,t),r&&a&&i()}):o.addOption(n.value,t);n.$observe("disabled",function(e){("true"===e||e&&t.prop("selected"))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))}),t.on("$destroy",function(){var e=o.readValue(),t=n.value;o.removeOption(t),r(),(o.multiple&&e&&-1!==e.indexOf(t)||e===t)&&i(!0)})}}],Fa=function(){return{restrict:"E",require:["select","?ngModel"],controller:Ba,priority:1,link:{pre:function(e,t,n,r){var i=r[0],a=r[1];if(a){if(i.ngModelCtrl=a,t.on("change",function(){i.removeUnknownOption(),e.$apply(function(){a.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return o(t.find("option"),function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}}),e},i.writeValue=function(e){o(t.find("option"),function(t){var n=!!e&&(B(e,t.value)||B(e,i.selectValueMap[t.value]));n!==t.selected&&Tr(Pr(t),n)})};var s,c=NaN;e.$watch(function(){c!==a.$viewValue||V(s,a.$viewValue)||(s=ye(a.$viewValue),a.$render()),c=a.$viewValue}),a.$isEmpty=function(e){return!e||0===e.length}}}else i.registerOption=f},post:function(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},Ua=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return y(n.ngValue)||(y(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(e,t,n,r,i)}}}}],qa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},Va=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(w(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,ee(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||b(o)||o.test(t)}}}}},za=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=p(e);i=Yr(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},Wa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=p(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load angular more than once."):(!function(){var t;if(!ii){var n=Qr();(Rr=b(n)?e.jQuery:n?e[n]:void 0)&&Rr.fn.on?(Pr=Rr,u(Rr.fn,{scope:wi.scope,isolateScope:wi.isolateScope,controller:wi.controller,injector:wi.injector,inheritedData:wi.inheritedData}),t=Rr.cleanData,Rr.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=Rr._data(r,"events"))&&n.$destroy&&Rr(r).triggerHandler("$destroy");t(e)}):Pr=De,zr.element=Pr,ii=!0}}(),function(r){u(r,{errorHandlingConfig:n,bootstrap:ce,copy:U,extend:u,merge:m,equals:V,element:Pr,forEach:o,injector:at,noop:f,bind:Y,toJson:G,fromJson:X,identity:g,isUndefined:b,isDefined:y,isString:w,isFunction:x,isObject:E,isNumber:M,isElement:R,isArray:Kr,version:di,isDate:A,lowercase:Or,uppercase:Ir,callbacks:{$$counter:0},getTestability:de,reloadWithDebugInfo:le,$$minErr:t,$$csp:Jr,$$encodeUriSegment:ie,$$encodeUriQuery:oe,$$stringify:$e}),(Lr=be(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Mn}),e.provider("$compile",gt).directive({a:No,input:Xo,textarea:Xo,form:Po,script:La,select:Fa,option:Ua,ngBind:Qo,ngBindHtml:ta,ngBindTemplate:ea,ngClass:ra,ngClassEven:oa,ngClassOdd:ia,ngCloak:aa,ngController:sa,ngForm:Ro,ngHide:Na,ngIf:da,ngInclude:ua,ngInit:pa,ngNonBindable:Ma,ngPluralize:Ta,ngRepeat:_a,ngShow:Sa,ngStyle:Da,ngSwitch:Oa,ngSwitchWhen:Ia,ngSwitchDefault:Ha,ngOptions:ka,ngTransclude:Ra,ngModel:Ea,ngList:ha,ngChange:na,pattern:Va,ngPattern:Va,required:qa,ngRequired:qa,minlength:Wa,ngMinlength:Wa,maxlength:za,ngMaxlength:za,ngValue:Jo,ngModelOptions:wa}).directive({ngInclude:ma}).directive(Do).directive(ca),e.provider({$anchorScroll:st,$animate:Bi,$animateCss:qi,$$animateJs:Li,$$animateQueue:ji,$$AnimateRunner:Ui,$$animateAsyncRun:Fi,$browser:pt,$cacheFactory:ht,$controller:Ct,$document:wt,$$isDocumentHidden:Mt,$exceptionHandler:At,$filter:jn,$$forceReflow:Xi,$interpolate:jt,$interval:Bt,$http:Ht,$httpParamSerializer:kt,$httpParamSerializerJQLike:Tt,$httpBackend:Rt,$xhrFactory:Pt,$jsonpCallbacks:io,$location:tn,$log:nn,$parse:$n,$rootScope:wn,$q:bn,$$q:yn,$sce:_n,$sceDelegate:Tn,$sniffer:Sn,$templateCache:ft,$templateRequest:Nn,$$testability:Dn,$timeout:On,$window:Pn,$$rAF:Cn,$$jqLite:et,$$Map:_i,$$cookieReader:Ln})}]).info({angularVersion:"1.6.4"})}(zr),zr.module("ngLocale",[],["$provide",function(e){function t(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r);return{v:r,f:(e*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"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,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),Pr(function(){se(e.document,ce)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(e,t){"use strict";function n(e,t,n){if(!e)throw ce("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(W(e)&&(e=e.join(" ")),W(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var r="";return e=W(e)?e:e&&Z(e)&&e.length?e.split(/\s+/):[],z(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof Q)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===R)return e;break;default:return Q(c(e))}if(e.nodeType===R)return Q(e)}function c(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===R)return n}}function l(e,t,n){z(t,function(t){e.addClass(t,n)})}function d(e,t,n){z(t,function(t){e.removeClass(t,n)})}function u(e){return function(t,n){n.addClass&&(l(e,t,n.addClass),n.addClass=null),n.removeClass&&(d(e,t,n.removeClass),n.removeClass=null)}}function m(e){if(!(e=e||{}).$$prepared){var t=e.domOperation||ee;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=ee},e.$$prepared=!0}return e}function p(e,t){h(e,t),f(e,t)}function h(e,t){t.from&&(e.css(t.from),t.from=null)}function f(e,t){t.to&&(e.css(t.to),t.to=null)}function g(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=v(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=M(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var c=r.domOperation!==ee?r.domOperation:null;return V(r,i),c&&(r.domOperation=c),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function v(e,t,n){function r(e){Z(e)&&(e=e.split(" "));var t={};return z(e,function(e){e.length&&(t[e]=!0)}),t}var i={};e=r(e),t=r(t),z(t,function(e,t){i[t]=1}),n=r(n),z(n,function(e,t){i[t]=1===i[t]?null:-1});var o={addClass:"",removeClass:""};return z(i,function(t,n){var r,i;1===t?(r="addClass",i=!e[n]||e[n+j]):-1===t&&(r="removeClass",i=e[n]||e[n+L]),i&&(o[r].length&&(o[r]+=" "),o[r]+=n)}),o}function $(e){return e instanceof Q?e[0]:e}function b(e,t,n){var r="";t&&(r=o(t,B,!0)),n.addClass&&(r=M(r,o(n.addClass,L))),n.removeClass&&(r=M(r,o(n.removeClass,j))),r.length&&(n.preparationClasses=r,e.addClass(r))}function y(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function E(e,t){var n=t?"-"+t+"s":"";return w(e,[ae,n]),[ae,n]}function C(e,t){var n=t?"paused":"",r=H+re;return w(e,[r,n]),[r,n]}function w(e,t){var n=t[0],r=t[1];e.style[n]=r}function M(e,t){return e?t?e+" "+t:e:t}function A(e){return[oe,e+"s"]}function x(e,t){return[t?ie:ae,e+"s"]}function k(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return z(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=T(n)),0===n&&(n=null),r[t]=n}}),r}function T(e){var t=0,n=e.split(/\s*,\s*/);return z(n,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function _(e){return 0===e||null!=e}function S(e,t){var n=O,r=e+"s";return t?n+=te:r+=" linear all",[n,r]}function N(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function D(e,t,n){z(n,function(n){e[n]=Y(e[n])?e[n]:t.style.getPropertyValue(n)})}var O,I,H,P,R=1,L="-add",j="-remove",B="ng-",F="ng-animate",U="$$ngAnimateChildren";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?("-webkit-",O="WebkitTransition",I="webkitTransitionEnd transitionend"):(O="transition",I="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?("-webkit-",H="WebkitAnimation",P="webkitAnimationEnd animationend"):(H="animation",P="animationend");var q,V,z,W,Y,K,G,X,Z,J,Q,ee,te="Duration",ne="TimingFunction",re="PlayState",ie=H+"Delay",oe=H+te,ae=O+"Delay",se=O+te,ce=t.$$minErr("ng"),le=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o<t.length;o++)t[o]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}],de=["$interpolate",function(e){return{link:function(t,n,r){function i(e){e="on"===e||"true"===e,n.data(U,e)}var o=r.ngAnimateChildren;Z(o)&&0===o.length?n.data(U,!0):(i(e(o)(t)),r.$observe("ngAnimateChildren",i))}}}],ue="$$animateCss",me=1e3,pe=3,he=1.5,fe={transitionDuration:se,transitionDelay:ae,transitionProperty:O+"Property",animationDuration:oe,animationDelay:ie,animationIterationCount:H+"IterationCount"},ge={transitionDuration:se,transitionDelay:ae,animationDuration:oe,animationDelay:ie},ve=["$animateProvider",function(e){var t=N(),n=N();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,r,s,c,l,d,g,v){function b(e,t){var n="$$ngAnimateParentKey",r=e.parentNode;return(r[n]||(r[n]=++F))+"-"+e.getAttribute("class")+"-"+t}function y(n,r,i,o){var a=t.get(i);return a||"infinite"===(a=k(e,n,o)).animationIterationCount&&(a.animationIterationCount=1),t.put(i,a),a}function M(i,a,s,c){var l;if(t.count(s)>0&&!(l=n.get(s))){var d=o(a,"-stagger");r.addClass(i,d),(l=k(e,i,c)).animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,d),n.put(s,l)}return l||{}}function T(e){U.push(e),g.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=l(),r=0;r<U.length;r++)U[r](e);U.length=0})}function N(e,t,n){var r=y(e,t,n,fe),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var R=u(r),F=0,U=[];return function(e,n){function l(){g()}function u(){g(!0)}function g(t){if(!(G||Z&&X)){G=!0,X=!1,V.$$skipPreparationClasses||r.removeClass(e,be),r.removeClass(e,Ee),C(K,!1),E(K,!1),z(se,function(e){K.style[e[0]]=""}),R(e,V),p(e,V),Object.keys(Y).length&&z(Y,function(e,t){e?K.style.setProperty(t,e):K.style.removeProperty(t)}),V.onDone&&V.onDone(),de&&de.length&&e.off(de.join(" "),F);var n=e.data(ue);n&&(c.cancel(n[0].timer),e.removeData(ue)),J&&J.complete(!t)}}function y(e){Ie.blockTransition&&E(K,e),Ie.blockKeyframeAnimation&&C(K,!!e)}function k(){return J=new s({end:l,cancel:u}),T(ee),g(),{$$willAnimate:!1,start:function(){return J},end:l}}function F(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(pe));Math.max(n-ae,0)>=re&&r>=ie&&(Z=!0,g())}function U(){function t(){if(!G){if(y(!1),z(se,function(e){var t=e[0],n=e[1];K.style[t]=n}),R(e,V),r.addClass(e,Ee),Ie.recalculateTimingStyles){if(ye=K.getAttribute("class")+" "+be,we=b(K,ye),De=N(K,ye,we),Oe=De.maxDelay,te=Math.max(Oe,0),0===(ie=De.maxDuration))return void g();Ie.hasTransitions=De.transitionDuration>0,Ie.hasAnimations=De.animationDuration>0}if(Ie.applyAnimationDelay&&(Oe="boolean"!=typeof V.delay&&_(V.delay)?parseFloat(V.delay):Oe,te=Math.max(Oe,0),De.animationDelay=Oe,He=x(Oe,!0),se.push(He),K.style[He[0]]=He[1]),re=te*me,oe=ie*me,V.easing){var t,i=V.easing;Ie.hasTransitions&&(t=O+ne,se.push([t,i]),K.style[t]=i),Ie.hasAnimations&&(t=H+ne,se.push([t,i]),K.style[t]=i)}De.transitionDuration&&de.push(I),De.animationDuration&&de.push(P),ae=Date.now();var o=re+he*oe,a=ae+o,s=e.data(ue)||[],l=!0;if(s.length){var d=s[0];(l=a>d.expectedEndTime)?c.cancel(d.timer):s.push(g)}if(l){var u=c(n,o,!1);s[0]={timer:u,expectedEndTime:a},s.push(g),e.data(ue,s)}de.length&&e.on(de.join(" "),F),V.to&&(V.cleanupStyles&&D(Y,K,Object.keys(V.to)),f(e,V))}}function n(){var t=e.data(ue);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(ue)}}if(!G)if(K.parentNode){var i=function(e){if(Z)X&&e&&(X=!1,g());else if(X=!e,De.animationDuration){var t=C(K,X);X?se.push(t):a(se,t)}},o=Se>0&&(De.transitionDuration&&0===Me.transitionDuration||De.animationDuration&&0===Me.animationDuration)&&Math.max(Me.animationDelay,Me.transitionDelay);o?c(t,Math.floor(o*Se*me),!1):t(),Q.resume=function(){i(!0)},Q.pause=function(){i(!1)}}else g()}var V=n||{};V.$$prepared||(V=m(q(V)));var Y={},K=$(e);if(!K||!K.parentNode||!v.enabled())return k();var G,X,Z,J,Q,te,re,ie,oe,ae,se=[],ce=e.attr("class"),le=i(V),de=[];if(0===V.duration||!d.animations&&!d.transitions)return k();var fe=V.event&&W(V.event)?V.event.join(" "):V.event,ve="",$e="";fe&&V.structural?ve=o(fe,B,!0):fe&&(ve=fe),V.addClass&&($e+=o(V.addClass,L)),V.removeClass&&($e.length&&($e+=" "),$e+=o(V.removeClass,j)),V.applyClassesEarly&&$e.length&&R(e,V);var be=[ve,$e].join(" ").trim(),ye=ce+" "+be,Ee=o(be,"-active"),Ce=le.to&&Object.keys(le.to).length>0;if(!((V.keyframeStyle||"").length>0)&&!Ce&&!be)return k();var we,Me;if(V.stagger>0){var Ae=parseFloat(V.stagger);Me={transitionDelay:Ae,animationDelay:Ae,transitionDuration:0,animationDuration:0}}else we=b(K,ye),Me=M(K,be,we,ge);V.$$skipPreparationClasses||r.addClass(e,be);var xe;if(V.transitionStyle){var ke=[O,V.transitionStyle];w(K,ke),se.push(ke)}if(V.duration>=0){xe=K.style[O].length>0;var Te=S(V.duration,xe);w(K,Te),se.push(Te)}if(V.keyframeStyle){var _e=[H,V.keyframeStyle];w(K,_e),se.push(_e)}var Se=Me?V.staggerIndex>=0?V.staggerIndex:t.count(we):0,Ne=0===Se;Ne&&!V.skipBlocking&&E(K,9999);var De=N(K,ye,we),Oe=De.maxDelay;te=Math.max(Oe,0),ie=De.maxDuration;var Ie={};if(Ie.hasTransitions=De.transitionDuration>0,Ie.hasAnimations=De.animationDuration>0,Ie.hasTransitionAll=Ie.hasTransitions&&"all"===De.transitionProperty,Ie.applyTransitionDuration=Ce&&(Ie.hasTransitions&&!Ie.hasTransitionAll||Ie.hasAnimations&&!Ie.hasTransitions),Ie.applyAnimationDuration=V.duration&&Ie.hasAnimations,Ie.applyTransitionDelay=_(V.delay)&&(Ie.applyTransitionDuration||Ie.hasTransitions),Ie.applyAnimationDelay=_(V.delay)&&Ie.hasAnimations,Ie.recalculateTimingStyles=$e.length>0,(Ie.applyTransitionDuration||Ie.applyAnimationDuration)&&(ie=V.duration?parseFloat(V.duration):ie,Ie.applyTransitionDuration&&(Ie.hasTransitions=!0,De.transitionDuration=ie,xe=K.style[O+"Property"].length>0,se.push(S(ie,xe))),Ie.applyAnimationDuration&&(Ie.hasAnimations=!0,De.animationDuration=ie,se.push(A(ie)))),0===ie&&!Ie.recalculateTimingStyles)return k();if(null!=V.delay){var He;"boolean"!=typeof V.delay&&(He=parseFloat(V.delay),te=Math.max(He,0)),Ie.applyTransitionDelay&&se.push(x(He)),Ie.applyAnimationDelay&&se.push(x(He,!0))}return null==V.duration&&De.transitionDuration>0&&(Ie.recalculateTimingStyles=Ie.recalculateTimingStyles||Ne),re=te*me,oe=ie*me,V.skipBlocking||(Ie.blockTransition=De.transitionDuration>0,Ie.blockKeyframeAnimation=De.animationDuration>0&&Me.animationDelay>0&&0===Me.animationDuration),V.from&&(V.cleanupStyles&&D(Y,K,Object.keys(V.from)),h(e,V)),Ie.blockTransition||Ie.blockKeyframeAnimation?y(ie):V.skipBlocking||E(K,!1),{$$willAnimate:!0,end:l,start:function(){if(!G)return Q={end:l,cancel:u,resume:null,pause:null},J=new s(Q),T(U),J}}}}]}],$e=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,a,s,c,l,d,u){function m(e){return e.replace(/\bng-\S+\b/g,"")}function p(e,t){return Z(e)&&(e=e.split(" ")),Z(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function h(t,a,c){function l(e){var t={},n=$(e).getBoundingClientRect();return z(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=v.scrollTop;break;case"left":r+=v.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function d(e){return e.attr("class")||""}function u(){var t=m(d(c)),n=p(t,g),r=p(g,t),a=e(f,{to:l(c),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function h(){f.remove(),a.removeClass(n),c.removeClass(n)}var f=Q($(a).cloneNode(!0)),g=m(d(f));a.addClass(n),c.addClass(n),f.addClass(r),y.append(f);var b,E=function(){var t=e(f,{addClass:i,delay:!0,from:l(a)});return t.$$willAnimate?t:null}();if(!E&&!(b=u()))return h();var C=E||b;return{start:function(){function e(){n&&n.end()}var t,n=C.start();return n.done(function(){if(n=null,!b&&(b=u()))return(n=b.start()).done(function(){n=null,h(),t.complete()}),n;h(),t.complete()}),t=new s({end:e,cancel:e})}}}function f(e,t,n,r){var i=g(e),o=g(t),a=[];if(z(r,function(e){var t=e.out,r=e.in,i=h(n,t,r);i&&a.push(i)}),i||o||0!==a.length)return{start:function(){function e(){z(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),z(a,function(e){t.push(e.start())});var n=new s({end:e,cancel:e});return s.all(t,function(e){n.complete(e)}),n}}}function g(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=M(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return ee;var v=u[0].body,b=$(c),y=Q(t(b)||v.contains(b)?b:v);return function(e){return e.from&&e.to?f(e.from,e.to,e.classes,e.anchors):g(e)}}]}],be=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=W(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=e.$$registeredAnimations[a];s&&!i[a]&&(r.push(t.get(s)),i[a]=!0)}return r}var o=u(r);return function(e,t,r,a){function s(){a.domOperation(),o(e,a)}function c(){h=!0,s(),p(e,a)}function l(e,t,r,i,o){var a;switch(r){case"animate":a=[t,i.from,i.to,o];break;case"setClass":a=[t,v,$,o];break;case"addClass":a=[t,v,o];break;case"removeClass":a=[t,$,o];break;default:a=[t,o]}a.push(i);var s=e.apply(e,a);if(s)if(G(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(G(s))return s;return ee}function d(e,t,r,i,o){var a=[];return z(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,c=function(e){a||(a=!0,(o||ee)(e),i.complete(!e))};return i=new n({end:function(){c()},cancel:function(){c(!0)}}),o=l(s,e,t,r,function(e){c(!1===e)}),i})}),a}function u(e,t,r,i,o){var a=d(e,t,r,i,o);if(0===a.length){var s,c;"beforeSetClass"===o?(s=d(e,"removeClass",r,i,"beforeRemoveClass"),c=d(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=d(e,"removeClass",r,i,"removeClass"),c=d(e,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),c&&(a=a.concat(c))}if(0!==a.length)return function(e){var t=[];return a.length&&z(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){z(t,function(t){e?t.cancel():t.end()})}}}var h=!1;3===arguments.length&&X(r)&&(a=r,r=null),a=m(a),r||(r=e.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var f,g,v=a.addClass,$=a.removeClass,b=i(r);if(b.length){var y,E;"leave"===t?(E="leave",y="afterLeave"):(E="before"+t.charAt(0).toUpperCase()+t.substr(1),y=t),"enter"!==t&&"move"!==t&&(f=u(e,t,a,b,E)),g=u(e,t,a,b,y)}if(f||g){var C;return{$$willAnimate:!0,end:function(){return C?C.end():(c(),(C=new n).complete(!0)),C},start:function(){function e(e){c(e),C.complete(e)}function t(t){h||((r||ee)(t),e(t))}if(C)return C;C=new n;var r,i=[];return f&&i.push(function(e){r=f(e)}),i.length?i.push(function(e){s(),e(!0)}):s(),g&&i.push(function(e){r=g(e)}),C.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(i,e),C}}}}}]}],ye=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,i=t.options,o=t.classes;return e(n,r,o,i)}return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){function e(){return function(){z(n,function(e){e.end()})}}var n=[];r&&n.push(r.start()),i&&n.push(i.start()),t.all(n,function(e){o.complete(e)});var o=new t({end:e(),cancel:e()});return o}}}return n(e)}}]}],Ee="data-ng-animate",Ce="$ngAnimatePin",we=["$animateProvider",function(t){function r(e){if(!e)return null;var t=e.split(h),n=Object.create(null);return z(t,function(e){n[e]=!0}),n}function i(e,t){if(e&&t){var n=r(t);return e.split(h).some(function(e){return n[e]})}}function o(e,t,n){return f[e].some(function(e){return e(t,n)})}function a(e,t){var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var l=1,d=2,h=" ",f=this.rules={skip:[],cancel:[],join:[]};f.join.push(function(e,t){return!e.structural&&a(e)}),f.skip.push(function(e,t){return!e.structural&&!a(e)}),f.skip.push(function(e,t){return"leave"===t.event&&e.structural}),f.skip.push(function(e,t){return t.structural&&t.state===d&&!e.structural}),f.cancel.push(function(e,t){return t.structural&&e.structural}),f.cancel.push(function(e,t){return t.state===d&&e.structural}),f.cancel.push(function(e,t){if(t.structural)return!1;var n=e.addClass,r=e.removeClass,o=t.addClass,a=t.removeClass;return!(J(n)&&J(r)||J(o)&&J(a))&&(i(n,a)||i(r,o))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(r,i,h,f,v,E,C,w,M,A,x){function k(){var e=!1;return function(t){e?t():i.$$postDigest(function(){e=!0,t()})}}function T(e,t){return g(e,t,{})}function _(e,t,n){var r=[],i=G[n];return i&&z(i,function(i){re.call(i.node,t)?r.push(i.callback):"leave"===n&&re.call(i.node,e)&&r.push(i.callback)}),r}function S(e,t,n){var r=c(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function N(e,t){"close"!==e||t.parentNode||ie.off(t)}function D(e,t,n){function c(e,t,n,i){A(function(){var e=_(w,v,t);e.length?r(function(){z(e,function(e){e(f,n,i)}),N(n,v)}):N(n,v)}),e.progress(t,n,i)}function u(e){y(f,h),ne(f,h),p(f,h),h.domOperation(),M.complete(!e)}var h=q(n),f=s(e),v=$(f),w=v&&v.parentNode;h=m(h);var M=new C,A=k();if(W(h.addClass)&&(h.addClass=h.addClass.join(" ")),h.addClass&&!Z(h.addClass)&&(h.addClass=null),W(h.removeClass)&&(h.removeClass=h.removeClass.join(" ")),h.removeClass&&!Z(h.removeClass)&&(h.removeClass=null),h.from&&!X(h.from)&&(h.from=null),h.to&&!X(h.to)&&(h.to=null),!v)return u(),M;var S=[v.getAttribute("class"),h.addClass,h.removeClass].join(" ");if(!te(S))return u(),M;var D=["enter","move","leave"].indexOf(t)>=0,R=x(),F=!B||R||j.get(v),U=!F&&L.get(v)||{},V=!!U.state;if(F||V&&U.state===l||(F=!H(v,w,t)),F)return R&&c(M,t,"start"),u(),R&&c(M,t,"close"),M;D&&O(v);var Y={structural:D,element:f,event:t,addClass:h.addClass,removeClass:h.removeClass,close:u,options:h,runner:M};if(V){if(o("skip",Y,U))return U.state===d?(u(),M):(g(f,U,Y),U.runner);if(o("cancel",Y,U))if(U.state===d)U.runner.end();else{if(!U.structural)return g(f,U,Y),U.runner;U.close()}else if(o("join",Y,U)){if(U.state!==d)return b(f,D?t:null,h),t=Y.event=U.event,h=g(f,U,Y),U.runner;T(f,Y)}}else T(f,Y);var K=Y.structural;if(K||(K="animate"===Y.event&&Object.keys(Y.options.to||{}).length>0||a(Y)),!K)return u(),I(v),M;var G=(U.counter||0)+1;return Y.counter=G,P(v,l,Y),i.$$postDigest(function(){f=s(e);var n=L.get(v),r=!n;n=n||{};var i=(f.parent()||[]).length>0&&("animate"===n.event||n.structural||a(n));if(r||n.counter!==G||!i)return r&&(ne(f,h),p(f,h)),(r||D&&n.event!==t)&&(h.domOperation(),M.end()),void(i||I(v));t=!n.structural&&a(n,!0)?"setClass":n.event,P(v,d);var o=E(f,t,n.options);M.setHost(o),c(M,t,"start",{}),o.done(function(e){u(!e);var n=L.get(v);n&&n.counter===G&&I(v),c(M,t,"close",{})})}),M}function O(e){var t=e.querySelectorAll("["+Ee+"]");z(t,function(e){var t=parseInt(e.getAttribute(Ee),10),n=L.get(e);if(n)switch(t){case d:n.runner.end();case l:L.delete(e)}})}function I(e){e.removeAttribute(Ee),L.delete(e)}function H(e,t,n){var r,i=f[0].body,o=$(h),a=e===i||"HTML"===e.nodeName,s=e===o,c=!1,l=j.get(e),d=Q.data(e,Ce);for(d&&(t=$(d));t&&(s||(s=t===o),t.nodeType===R);){var u=L.get(t)||{};if(!c){var m=j.get(t);if(!0===m&&!1!==l){l=!0;break}!1===m&&(l=!1),c=u.structural}if(J(r)||!0===r){var p=Q.data(t,U);Y(p)&&(r=p)}if(c&&!1===r)break;if(a||(a=t===i),a&&s)break;t=s||!(d=Q.data(t,Ce))?t.parentNode:$(d)}return(!c||r)&&!0!==l&&s&&a}function P(e,t,n){(n=n||{}).state=t,e.setAttribute(Ee,t);var r=L.get(e),i=r?V(r,n):n;L.set(e,i)}var L=new v,j=new v,B=null,F=i.$watch(function(){return 0===w.totalPendingRequests},function(e){e&&(F(),i.$$postDigest(function(){i.$$postDigest(function(){null===B&&(B=!0)})}))}),G=Object.create(null),ee=t.classNameFilter(),te=ee?function(e){return ee.test(e)}:function(){return!0},ne=u(M),re=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},ie={on:function(e,t,n){var r=c(t);G[e]=G[e]||[],G[e].push({node:r,callback:n}),Q(t).on("$destroy",function(){L.get(r)||ie.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||Z(arguments[0])){var r=G[e];r&&(G[e]=1===arguments.length?null:S(r,t,n))}else{t=arguments[0];for(var i in G)G[i]=S(G[i],t)}},pin:function(e,t){n(K(e),"element","not an element"),n(K(t),"parentElement","not an element"),e.data(Ce,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,D(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!B;else if(K(e)){var r=$(e);1===n?t=!j.get(r):j.set(r,!t)}else t=B=!!e;return t}};return ie}]}],Me=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function i(e){return e.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler",function(e,s,c,l,d,h){function f(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,o=n.parentNode;i.set(n,e);for(var a;o;){if(a=i.get(o)){a.processed||(a=t(a));break}o=o.parentNode}return(a||r).children.push(e),e}var n,r={children:[]},i=new d;for(n=0;n<e.length;n++){var o=e[n];i.set(o.domNode,e[n]={domNode:o.domNode,fn:o.fn,children:[]})}for(n=0;n<e.length;n++)t(e[n]);return function(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var i=r.length,o=0,a=[];for(t=0;t<r.length;t++){var s=r[t];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(e){o++,r.push(e)}),i--}return a.length&&n.push(a),n}(r)}var g=[],v=u(e);return function(d,u,b){function y(e){var t="["+o+"]",n=e.hasAttribute(o)?[e]:e.querySelectorAll(t),r=[];return z(n,function(e){var t=e.getAttribute(o);t&&t.length&&r.push(e)}),r}function E(e){var t=[],n={};z(e,function(e,r){var i=$(e.element),a=e.event,s=["enter","move"].indexOf(a)>=0,c=e.structural?y(i):[];if(c.length){var l=s?"to":"from";z(c,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][l]={animationID:r,element:Q(e)}})}else t.push(e)});var r={},i={};return z(n,function(n,o){var a=n.from,s=n.to;if(a&&s){var c=e[a.animationID],l=e[s.animationID],d=a.animationID.toString();if(!i[d]){var u=i[d]={structural:!0,beforeStart:function(){c.beforeStart(),l.beforeStart()},close:function(){c.close(),l.close()},classes:C(c.classes,l.classes),from:c,to:l,anchors:[]};u.classes.length?t.push(u):(t.push(c),t.push(l))}i[d].anchors.push({out:a.element,in:s.element})}else{var m=a?a.animationID:s.animationID,p=m.toString();r[p]||(r[p]=!0,t.push(e[m]))}}),t}function C(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}function w(e){for(var t=a.length-1;t>=0;t--){var n=a[t],r=c.get(n)(e);if(r)return r}}function M(e,t){function n(e){var n=i(e);n&&n.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function A(){var e=i(d);!e||"leave"===u&&b.$$domOperationFired||e.end()}function x(t){d.off("$destroy",A),n(d),v(d,b),p(d,b),b.domOperation(),S&&e.removeClass(d,S),d.removeClass(F),T.complete(!t)}b=m(b);var k=["enter","move","leave"].indexOf(u)>=0,T=new l({end:function(){x()},cancel:function(){x(!0)}});if(!a.length)return x(),T;t(d,T);var _=r(d.attr("class"),r(b.addClass,b.removeClass)),S=b.tempClasses;S&&(_+=" "+S,b.tempClasses=null);var N;return k&&(N="ng-"+u+"-prepare",e.addClass(d,N)),g.push({element:d,classes:_,event:u,structural:k,options:b,beforeStart:function(){d.addClass(F),S&&e.addClass(d,S),N&&(e.removeClass(d,N),N=null)},close:x}),d.on("$destroy",A),g.length>1?T:(s.$$postDigest(function(){var e=[];z(g,function(t){i(t.element)?e.push(t):t.close()}),g.length=0;var t=E(e),n=[];z(t,function(e){n.push({domNode:$(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close;if(i(e.anchors?e.from.element||e.to.element:e.element)){var r=w(e);r&&(t=r.start)}if(t){var o=t();o.done(function(e){n(!e)}),M(e,o)}else n()}})}),h(f(n))}),T)}}]}],Ae=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r.for,function(r){a&&e.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[],function(){ee=t.noop,q=t.copy,V=t.extend,Q=t.element,z=t.forEach,W=t.isArray,Z=t.isString,X=t.isObject,J=t.isUndefined,Y=t.isDefined,G=t.isFunction,K=t.isElement}).info({angularVersion:"1.6.4"}).directive("ngAnimateSwap",Ae).directive("ngAnimateChildren",de).factory("$$rAFScheduler",le).provider("$$animateQueue",we).provider("$$animation",Me).provider("$animateCss",ve).provider("$$animateCssDriver",$e).provider("$$animateJs",be).provider("$$animateJsDriver",ye)}(window,window.angular),function(e,t){"use strict";var n=t.module("ngAria",["ng"]).info({angularVersion:"1.6.4"}).provider("$aria",function(){function e(e,t,r,o){return function(a,s,c){var l=c.$normalize(t);!n[l]||i(s,r)||c[l]||a.$watch(c[e],function(e){e=o?!e:!!e,s.attr(t,e)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};this.config=function(e){n=t.extend(n,e)},this.$get=function(){return{config:function(e){return n[e]},$$watchExpr:e}}}),r=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],i=function(e,t){if(-1!==t.indexOf(e[0].nodeName))return!0};n.directive("ngShow",["$aria",function(e){return e.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(e){return e.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(e){return e.$$watchExpr("ngValue","aria-checked",r,!1)}]).directive("ngChecked",["$aria",function(e){return e.$$watchExpr("ngChecked","aria-checked",r,!1)}]).directive("ngReadonly",["$aria",function(e){return e.$$watchExpr("ngReadonly","aria-readonly",r,!1)}]).directive("ngRequired",["$aria",function(e){return e.$$watchExpr("ngRequired","aria-required",r,!1)}]).directive("ngModel",["$aria",function(e){function t(t,n,o,a){return e.config(n)&&!o.attr(t)&&(a||!i(o,r))}function n(e,t){return!t.attr("role")&&t.attr("type")===e&&!i(t,r)}function o(e,t){var n=e.type,r=e.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(r,i){var a=o(i);return{post:function(r,i,o,s){function c(){return s.$modelValue}var l=t("tabindex","tabindex",i,!1);switch(a){case"radio":case"checkbox":n(a,i)&&i.attr("role",a),t("aria-checked","ariaChecked",i,!1)&&r.$watch(c,"radio"===a?function(e){var t=o.value==s.$viewValue;i.attr("aria-checked",t)}:function(){i.attr("aria-checked",!s.$isEmpty(s.$viewValue))}),l&&i.attr("tabindex",0);break;case"range":if(n(a,i)&&i.attr("role","slider"),e.config("ariaValue")){var d=!i.attr("aria-valuemin")&&(o.hasOwnProperty("min")||o.hasOwnProperty("ngMin")),u=!i.attr("aria-valuemax")&&(o.hasOwnProperty("max")||o.hasOwnProperty("ngMax")),m=!i.attr("aria-valuenow");d&&o.$observe("min",function(e){i.attr("aria-valuemin",e)}),u&&o.$observe("max",function(e){i.attr("aria-valuemax",e)}),m&&r.$watch(c,function(e){i.attr("aria-valuenow",e)})}l&&i.attr("tabindex",0)}!o.hasOwnProperty("ngRequired")&&s.$validators.required&&t("aria-required","ariaRequired",i,!1)&&o.$observe("required",function(){i.attr("aria-required",!!o.required)}),t("aria-invalid","ariaInvalid",i,!0)&&r.$watch(function(){return s.$invalid},function(e){i.attr("aria-invalid",!!e)})}}}}}]).directive("ngDisabled",["$aria",function(e){return e.$$watchExpr("ngDisabled","aria-disabled",r,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(e,t,n,r){t.attr("aria-live")||t.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(e,t){return{restrict:"A",compile:function(n,o){var a=t(o.ngClick);return function(t,n,o){i(n,r)||(e.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),e.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!e.config("bindKeydown")||o.ngKeydown||o.ngKeypress||o.ngKeyup||n.on("keydown",function(e){var n=e.which||e.keyCode;32!==n&&13!==n||t.$apply(function(){a(t,{$event:e})})}))}}}}]).directive("ngDblclick",["$aria",function(e){return function(t,n,o){!e.config("tabindex")||n.attr("tabindex")||i(n,r)||n.attr("tabindex",0)}}])}(window,window.angular),function(e,t){"use strict";function n(){function e(e,t){if(e)return i(e)?e.indexOf(t)>=0:e.hasOwnProperty(t)}return["$animate",function(t){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(n,r,o,a,s){var c,l=r[0],d=o.ngMessage||o.when,u=o.ngMessageExp||o.whenExp,m=function(e){c=e?i(e)?e:e.split(/[\s,]+/):null,a.reRender()};u?(m(n.$eval(u)),n.$watchCollection(u,m)):m(d);var p,h;a.register(l,h={test:function(t){return e(c,t)},attach:function(){p||s(function(e,n){t.enter(e,null,r);var i=(p=e).$$attachId=a.getAttachId();p.on("$destroy",function(){p&&p.$$attachId===i&&(a.deregister(l),h.detach()),n.$destroy()})})},detach:function(){if(p){var e=p;p=null,t.leave(e)}}})}}}]}var r,i,o,a;t.module("ngMessages",[],function(){r=t.forEach,i=t.isArray,o=t.isString,a=t.element}).info({angularVersion:"1.6.4"}).directive("ngMessages",["$animate",function(e){function t(e,t){return o(t)&&0===t.length||n(e.$eval(t))}function n(e){return o(e)?e.length:!!e}return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(i,o,a){function s(e,t){for(var n=t,r=[];n&&n!==e;){var i=n.$$ngMessageNode;if(i&&i.length)return f[i];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}function c(e,t,n){var r=f[n];if(d.head){var i=s(e,t);i?(r.next=i.next,i.next=r):(r.next=d.head,d.head=r)}else d.head=r}function l(e,t,n){var r=f[n],i=s(e,t);i?i.next=r.next:d.head=r.next}var d=this,u=0,m=0;this.getAttachId=function(){return m++};var p,h,f=this.messages={};this.render=function(s){p=!1,h=s=s||{};for(var c=t(o,a.ngMessagesMultiple)||t(o,a.multiple),l=[],u={},m=d.head,f=!1,g=0;null!=m;){g++;var v=m.message,$=!1;f||r(s,function(e,t){if(!$&&n(e)&&v.test(t)){if(u[t])return;u[t]=!0,$=!0,v.attach()}}),$?f=!c:l.push(v),m=m.next}r(l,function(e){e.detach()}),l.length!==g?e.setClass(i,"ng-active","ng-inactive"):e.setClass(i,"ng-inactive","ng-active")},o.$watchCollection(a.ngMessages||a.for,d.render),i.on("$destroy",function(){r(f,function(e){e.message.detach()})}),this.reRender=function(){p||(p=!0,o.$evalAsync(function(){p&&h&&d.render(h)}))},this.register=function(e,t){var n=u.toString();f[n]={message:t},c(i[0],e,n),e.$$ngMessageNode=n,u++,d.reRender()},this.deregister=function(e){var t=e.$$ngMessageNode;delete e.$$ngMessageNode,l(i[0],e,t),delete f[t],d.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(e,t,n){function r(e,r){var i=n.$$createComment?n.$$createComment("ngMessagesInclude",r):t[0].createComment(" ngMessagesInclude: "+r+" "),o=a(i);e.after(o),e.remove()}return{restrict:"AE",require:"^^ngMessages",link:function(t,i,a){var s=a.ngMessagesInclude||a.src;e(s).then(function(e){t.$$destroyed||(o(e)&&!e.trim()?r(i,s):n(e)(t,function(e){i.after(e),r(i,s)}))})}}}]).directive("ngMessage",n()).directive("ngMessageExp",n())}(window,window.angular),function(e,t,n){"use strict";t.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.interaction","material.core.gestures","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","material.core.animate","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.colors","material.components.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menu","material.components.menuBar","material.components.navBar","material.components.progressCircular","material.components.panel","material.components.progressLinear","material.components.radioButton","material.components.showHide","material.components.sidenav","material.components.select","material.components.slider","material.components.sticky","material.components.subheader","material.components.switch","material.components.swipe","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.truncate","material.components.virtualRepeat","material.components.whiteframe"]),function(){function e(e,t){if(t.has("$swipe")){e.warn("You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!")}}function n(e,t){e.decorator("$$rAF",["$delegate",r]),e.decorator("$q",["$delegate",i]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function r(e){return e.throttle=function(t){var n,r,i,o;return function(){n=arguments,o=this,i=t,r||(r=!0,e(function(){i.apply(o,Array.prototype.slice.call(n)),r=!1}))}},e}function i(e){return e.resolve||(e.resolve=e.when),e}e.$inject=["$log","$injector"],n.$inject=["$provide","$mdThemingProvider"],r.$inject=["$delegate"],i.$inject=["$delegate"],t.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(n).run(e)}(),function(){function e(e){return{restrict:"A",link:{pre:function(n,r,i){function o(e){t.isUndefined(e)&&(e=!0),r.toggleClass("md-autofocus",!!e)}var a=i.mdAutoFocus||i.mdAutofocus||i.mdSidenavFocus;o(e(a)(n)),a&&n.$watch(a,o)}}}}e.$inject=["$parse"],t.module("material.core").directive("mdAutofocus",e).directive("mdAutoFocus",e).directive("mdSidenavFocus",e)}(),function(){t.module("material.core").factory("$mdColorUtil",function(){return{rgbaToHex:function(e){return((e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"").toUpperCase()},hexToRgba:function(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,r=t.substr(0,n),i=t.substr(n,n),o=t.substr(2*n);return 1===n&&(r+=r,i+=i,o+=o),"rgba("+parseInt(r,16)+","+parseInt(i,16)+","+parseInt(o,16)+",0.1)"},rgbToRgba:function(e){return e.replace(")",", 0.1)").replace("(","a(")},rgbaToRgb:function(e){return e?e.replace("rgba","rgb").replace(/,[^\),]+\)/,")"):"rgb(0,0,0)"}}})}(),function(){t.module("material.core").factory("$mdConstant",function(){function e(e){var t=r(o+"-"+e),a=t.charAt(0).toLowerCase()+t.substring(1);return n(i,e)?e:n(i,t)?t:n(i,a)?a:e}function n(e,n){return t.isDefined(e.style[n])}function r(e){return e.replace(s,function(e,t,n,r){return r?n.toUpperCase():n})}var i=document.createElement("div"),o=function(e){var t,n,r=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=r.exec(t))return n[0]}(i),a=/webkit/i.test(o),s=/([:\-_]+(.))/g,c={isInputKey:function(e){return e.keyCode>=31&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&e.keyCode>=97&&e.keyCode<=105},isMetaKey:function(e){return e.keyCode>=91&&e.keyCode<=93},isFnLockKey:function(e){return e.keyCode>=112&&e.keyCode<=145},isNavigationKey:function(e){var t=c.KEY_CODE;return-1!=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW].indexOf(e.keyCode)},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(a?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(a?" webkitAnimationEnd":""),TRANSFORM:e("transform"),TRANSFORM_ORIGIN:e("transformOrigin"),TRANSITION:e("transition"),TRANSITION_DURATION:e("transitionDuration"),ANIMATION_PLAY_STATE:e("animationPlayState"),ANIMATION_DURATION:e("animationDuration"),ANIMATION_NAME:e("animationName"),ANIMATION_TIMING:e("animationTimingFunction"),ANIMATION_DIRECTION:e("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return c})}(),function(){function e(e,n){function r(e){return d.length&&e>-1&&e<d.length}function i(e){return d.indexOf(e)}function o(e){return e&&i(e)>-1}function a(){return d.length?d[0]:null}function s(){return d.length?d[d.length-1]:null}function c(e,o,c,u){c=c||l;for(var m=i(o);;){if(!r(m))return null;var p=m+(e?-1:1),h=null;if(r(p)?h=d[p]:n&&(p=i(h=e?s():a())),null===h||p===u)return null;if(c(h))return h;t.isUndefined(u)&&(u=p),m=p}}var l=function(){return!0};e&&!t.isArray(e)&&(e=Array.prototype.slice.call(e)),n=!!n;var d=e||[];return{items:function(){return[].concat(d)},count:function(){return d.length},inRange:r,contains:o,indexOf:i,itemAt:function(e){return r(e)?d[e]:null},findBy:function(e,t){return d.filter(function(n){return n[e]===t})},add:function(e,n){return e?(t.isNumber(n)||(n=d.length),d.splice(n,0,e),i(e)):-1},remove:function(e){o(e)&&d.splice(i(e),1)},first:a,last:s,next:t.bind(null,c,!1),previous:t.bind(null,c,!0),hasPrevious:function(e){return!!e&&r(i(e)-1)},hasNext:function(e){return!!e&&r(i(e)+1)}}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.iterator=e,t}])}])}(),function(){function e(e,n,r){function i(e){var n=l[e];t.isUndefined(n)&&(n=l[e]=o(e));var r=u[n];return t.isUndefined(r)&&(r=a(n)),r}function o(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}function a(e){var t=d[e];return t||(t=d[e]=r.matchMedia(e)),t.addListener(s),u[t.media]=!!t.matches}function s(e){n.$evalAsync(function(){u[e.media]=!!e.matches})}function c(e,t){return m[t]||(m[t]=e.$normalize(t))}var l={},d={},u={},m={};return i.getResponsiveAttribute=function(t,n){for(var r=0;r<e.MEDIA_PRIORITY.length;r++){var i=e.MEDIA_PRIORITY[r];if(d[l[i]].matches){var o=c(t,n+"-"+i);if(t[o])return t[o]}}return t[c(t,n)]},i.getQuery=function(e){return d[e]},i.watchResponsiveAttributes=function(n,r,i){var o=[];return n.forEach(function(n){var a=c(r,n);t.isDefined(r[a])&&o.push(r.$observe(a,t.bind(void 0,i,null)));for(var s in e.MEDIA)a=c(r,n+"-"+s),t.isDefined(r[a])&&o.push(r.$observe(a,t.bind(void 0,i,s)))}),function(){o.forEach(function(e){e()})}},i}e.$inject=["$mdConstant","$rootScope","$window"],t.module("material.core").factory("$mdMedia",e)}(),function(){function e(e,n){function r(e){return(e=t.isArray(e)?e:[e]).forEach(function(t){a.forEach(function(n){e.push(n+"-"+t)})}),e}function i(e){return e=t.isArray(e)?e:[e],r(e).map(function(e){return"["+e+"]"}).join(",")}function o(e){if((e=e[0]||e).nodeType)return e}var a=["data","x"];return e?n?i(e):r(e):{buildList:r,buildSelector:i,hasAttribute:function(e,t){if(!(e=o(e)))return!1;for(var n=r(t),i=0;i<n.length;i++)if(e.hasAttribute(n[i]))return!0;return!1},removeAttribute:function(e,t){(e=o(e))&&r(t).forEach(function(t){e.removeAttribute(t)})}}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.prefixer=e,t}])}])}(),function(){function r(r,o,a,s,c,l,d,u,m,p){function h(e){return e?f(e)||g(e)?e:e+"px":"0"}function f(e){return String(e).indexOf("px")>-1}function g(e){return String(e).indexOf("%")>-1}function v(e){return e[0]||e}var $=l.startSymbol(),b=l.endSymbol(),y="{{"===$&&"}}"===b,E=function(e,n,r){var i=!1;if(e&&e.length){var o=m.getComputedStyle(e[0]);i=t.isDefined(o[n])&&(!r||o[n]==r)}return i},C={dom:{},now:e.performance&&e.performance.now?t.bind(e.performance,e.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(e,t){if(e.$options){var n=e.$options;return n.getOption?n.getOption(t):n[t]}},bidi:function(e,n,i,o){var a=!("rtl"==r[0].dir||"rtl"==r[0].body.dir);if(0==arguments.length)return a?"ltr":"rtl";var s=t.element(e);a&&t.isDefined(i)?s.css(n,h(i)):!a&&t.isDefined(o)&&s.css(n,h(o))},bidiProperty:function(e,n,i,o){var a=!("rtl"==r[0].dir||"rtl"==r[0].body.dir),s=t.element(e);a&&t.isDefined(n)?(s.css(n,h(o)),s.css(i,"")):!a&&t.isDefined(i)&&(s.css(i,h(o)),s.css(n,""))},clientRect:function(e,t,n){var r=v(e);t=v(t||r.offsetParent||document.body);var i=r.getBoundingClientRect(),o=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:i.left-o.left,top:i.top-o.top,width:i.width,height:i.height}},offsetRect:function(e,t){return C.clientRect(e,t,!0)},nodesToArray:function(e){e=e||[];for(var t=[],n=0;n<e.length;++n)t.push(e.item(n));return t},getViewportTop:function(){return e.scrollY||e.pageYOffset||0},findFocusTarget:function(e,n){function r(e,n){var r,i=e[0].querySelectorAll(n);return i&&i.length&&i.length&&t.forEach(i,function(e){(e=t.element(e)).hasClass("md-autofocus")&&(r=e)}),r}var i,o=this.prefixer("md-autofocus",!0);return(i=r(e,n||o))||n==o||(i=r(e,this.prefixer("md-auto-focus",!0)))||(i=r(e,o)),i},disableScrollAround:function(e,n,i){if(i=i||{},C.disableScrollAround._count=Math.max(0,C.disableScrollAround._count||0),C.disableScrollAround._count++,C.disableScrollAround._restoreScroll)return C.disableScrollAround._restoreScroll;var o=r[0].body,a=function(){var e=r[0].documentElement,n=e.style.cssText||"",i=o.style.cssText||"",a=C.getViewportTop(),s=o.clientWidth,c=o.scrollHeight>o.clientHeight+1;return c&&t.element(o).css({position:"fixed",width:"100%",top:-a+"px"}),o.clientWidth<s&&(o.style.overflow="hidden"),c&&(e.style.overflowY="scroll"),function(){o.style.cssText=i,e.style.cssText=n,o.scrollTop=a}}(),s=function(e){function n(e){e.preventDefault()}e=t.element(e||o);var r;return i.disableScrollMask?r=e:(r=t.element('<div class="md-scroll-mask"> <div class="md-scroll-mask-bar"></div></div>'),e.append(r)),r.on("wheel",n),r.on("touchmove",n),function(){r.off("wheel"),r.off("touchmove"),i.disableScrollMask||r[0].parentNode.removeChild(r[0])}}(n);return C.disableScrollAround._restoreScroll=function(){--C.disableScrollAround._count<=0&&(a(),s(),delete C.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===n){var e=t.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),r[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth==e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(t){var n=t[0]||t;document.addEventListener("click",function e(t){t.target===n&&t.$focus&&(n.focus(),t.stopImmediatePropagation(),t.preventDefault(),n.removeEventListener("click",e))},!0);var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!1,!0,e,{},0,0,0,0,!1,!1,!1,!1,0,null),r.$material=!0,r.$focus=!0,n.dispatchEvent(r)},createBackdrop:function(e,t){return a(C.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,t,n){return n=n||/\{([^\{\}]*)\}/g,e.replace(n,function(e,n){var r=n.split("."),i=t;try{for(var o in r)r.hasOwnProperty(o)&&(i=i[r[o]])}catch(t){i=e}return"string"==typeof i||"number"==typeof i?i:e})},fakeNgModel:function(){return{$fake:!0,$setTouched:t.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:t.noop}},debounce:function(e,t,r,i){var a;return function(){var s=r,c=Array.prototype.slice.call(arguments);o.cancel(a),a=o(function(){a=n,e.apply(s,c)},t||10,i)}},throttle:function(e,t){var n;return function(){var r=this,i=arguments,o=C.now();(!n||o-n>t)&&(e.apply(r,i),n=o)}},time:function(e){var t=C.now();return e(),C.now()-t},valueOnUse:function(e,t,n){var r=null,i=Array.prototype.slice.call(arguments),o=i.length>3?i.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===r&&(r=n.apply(e,o)),r}})},nextUid:function(){return""+i++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,n=t.$parent;t.$$disconnected=!1,t.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=t,n.$$childTail=t):n.$$childHead=n.$$childTail=t}},getClosest:function(e,n,r){if(t.isString(n)){var i=n.toUpperCase();n=function(e){return e.nodeName.toUpperCase()===i}}if(e instanceof t.element&&(e=e[0]),r&&(e=e.parentNode),!e)return null;do{if(n(e))return e}while(e=e.parentNode);return null},elementContains:function(n,r){return(e.Node&&e.Node.prototype&&Node.prototype.contains?t.bind(n,n.contains):t.bind(n,function(e){return n===r||!!(16&this.compareDocumentPosition(e))}))(r)},extractElementByName:function(e,n,r,i){function o(e){return a(e)||(r?s(e):null)}function a(e){if(e)for(var t=0,r=e.length;t<r;t++)if(e[t].nodeName.toLowerCase()===n)return e[t];return null}function s(e){var t;if(e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if(!t)for(var a=0,s=i.childNodes.length;a<s;a++)t=t||o([i.childNodes[a]])}return t}var c=o(e);return!c&&i&&d.warn(C.supplant("Unable to find node '{0}' in element '{1}'.",[n,e[0].outerHTML])),t.element(c||e)},initOptionalProperties:function(e,n,r){r=r||{},t.forEach(e.$$isolateBindings,function(i,o){if(i.optional&&t.isUndefined(e[o])){var a=t.isDefined(n[i.attrName]);e[o]=t.isDefined(r[o])?r[o]:a}})},nextTick:function(e,t,n){var r=C.nextTick,i=r.timeout,a=r.queue||[];return a.push({scope:n,callback:e}),null==t&&(t=!0),r.digest=r.digest||t,r.queue=a,i||(r.timeout=o(function(){var e=r.queue,t=r.digest;r.queue=[],r.timeout=null,r.digest=!1,e.forEach(function(e){e.scope&&e.scope.$$destroyed||e.callback()}),t&&s.$digest()},0,!1))},processTemplate:function(e){return y?e:e&&t.isString(e)?e.replace(/\{\{/g,$).replace(/}}/g,b):e},getParentWithPointerEvents:function(e){for(var t=e.parent();E(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&&t!==u[0]&&t!==document.body&&"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},checkStickySupport:function(){var e,n=t.element("<div>");r[0].body.appendChild(n[0]);for(var i=["sticky","-webkit-sticky"],o=0;o<i.length;++o)if(n.css({position:i[o],top:0,"z-index":2}),n.css("position")==i[o]){e=i[o];break}return n.remove(),e},parseAttributeBoolean:function(e,t){return""===e||!!e&&(!1===t||"false"!==e&&"0"!==e)},hasComputedStyle:E,isParentFormSubmitted:function(e){var n=C.getClosest(e,"form"),r=n?t.element(n).controller("form"):null;return!!r&&r.$submitted},animateScrollTo:function(e,t,n){function r(){var n=i();e.scrollTop=n,(c?n<t:n>t)&&p(r)}function i(){var e=n||1e3;return o(C.now()-l,a,s,e)}function o(e,t,n,r){if(e>r)return t+n;var i=(e/=r)*e;return t+n*(-2*(i*e)+3*i)}var a=e.scrollTop,s=t-a,c=a<t,l=C.now();p(r)},uniq:function(e){if(e)return e.filter(function(e,t,n){return n.indexOf(e)===t})}};return C.dom.animator=c(C),C}r.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var i=0;t.module("material.core").factory("$mdUtil",r),t.element.prototype.focus=t.element.prototype.focus||function(){return this.length&&this[0].focus(),this},t.element.prototype.blur=t.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),function(){function e(e,t,n,r,i){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=r,this.$controller=i}e.$inject=["$q","$templateRequest","$injector","$compile","$controller"],t.module("material.core").service("$mdCompiler",e),e.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},e.prototype._prepareContentElement=function(e){var t=this._fetchContentElement(e);return this.$q.resolve({element:t.element,cleanup:t.restore,locals:{},link:function(){return t.element}})},e.prototype._compileTemplate=function(e){var n=this,r=e.templateUrl,i=e.template||"",o=t.extend({},e.resolve),a=t.extend({},e.locals),s=e.transformTemplate||t.identity;return t.forEach(o,function(e,r){t.isString(e)?o[r]=n.$injector.get(e):o[r]=n.$injector.invoke(e)}),t.extend(o,a),o.$$ngTemplate=r?this.$templateRequest(r):this.$q.when(i),this.$q.all(o).then(function(r){var i=s(r.$$ngTemplate,e),o=e.element||t.element("<div>").html(i.trim()).contents();return n._compileElement(r,o,e)})},e.prototype._compileElement=function(e,n,r){var i=this,o=this.$compile(n),a={element:n,cleanup:n.remove.bind(n),locals:e,link:function(s){if(e.$scope=s,r.controller){var c=t.extend(e,{$element:n}),l=i.$controller(r.controller,c,!0,r.controllerAs);r.bindToController&&t.extend(l.instance,e);var d=l();n.data("$ngControllerController",d),n.children().data("$ngControllerController",d),a.controller=d}return o(s)}};return a},e.prototype._fetchContentElement=function(e){function n(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}var r=e.contentElement,i=null;return t.isString(r)?i=n(r=document.querySelector(r)):(r=r[0]||r,i=document.contains(r)?n(r):function(){r.parentNode&&r.parentNode.removeChild(r)}),{element:t.element(r),restore:i}}}(),function(){function e(e,n,r,i){function o(e,r,i){var o=t.element(e)[0]||e;!o||o.hasAttribute(r)&&0!==o.getAttribute(r).length||c(o,r)||((i=t.isString(i)?i.trim():"").length?e.attr(r,i):u&&n.warn('ARIA: Attribute "',r,'", required for accessibility, is missing on node:',o))}function a(t,n,r){e(function(){o(t,n,r())})}function s(e){e=e[0]||e;for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),r="";t=n.nextNode();)(function(t){for(;t.parentNode&&(t=t.parentNode)!==e;)if(t.getAttribute&&"true"===t.getAttribute("aria-hidden"))return!0})(t)||(r+=t.textContent);return r.trim()||""}function c(e,t){var n=!1;if(e.hasChildNodes())for(var i=e.childNodes,o=0;o<i.length;o++){var a=i[o];1===a.nodeType&&a.hasAttribute(t)&&(function(e){return"none"===(e.currentStyle?e.currentStyle:r.getComputedStyle(e)).display}(a)||(n=!0))}return n}function l(e){var n=t.element(e)[0]||e;return!!n.hasAttribute&&(n.hasAttribute("aria-label")||n.hasAttribute("aria-labelledby")||n.hasAttribute("aria-describedby"))}function d(e,n){n=n||1;var r=t.element(e)[0]||e;return!!r.parentNode&&(!!function(e){if(!l(e))return!1;if(e.hasAttribute("role"))switch(e.getAttribute("role").toLowerCase()){case"command":case"definition":case"directory":case"grid":case"list":case"listitem":case"log":case"marquee":case"menu":case"menubar":case"note":case"presentation":case"separator":case"scrollbar":case"status":case"tablist":return!1}switch(e.tagName.toLowerCase()){case"abbr":case"acronym":case"address":case"applet":case"audio":case"b":case"bdi":case"bdo":case"big":case"blockquote":case"br":case"canvas":case"caption":case"center":case"cite":case"code":case"col":case"data":case"dd":case"del":case"dfn":case"dir":case"div":case"dl":case"em":case"embed":case"fieldset":case"figcaption":case"font":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"hgroup":case"html":case"i":case"ins":case"isindex":case"kbd":case"keygen":case"label":case"legend":case"li":case"map":case"mark":case"menu":case"object":case"ol":case"output":case"pre":case"presentation":case"q":case"rt":case"ruby":case"samp":case"small":case"source":case"span":case"status":case"strike":case"strong":case"sub":case"sup":case"svg":case"tbody":case"td":case"th":case"thead":case"time":case"tr":case"track":case"tt":case"ul":case"var":return!1}return!0}(r.parentNode)||!!--n&&d(r.parentNode,n))}var u=this.showWarnings;return{expect:o,expectAsync:a,expectWithText:function(e,t){var n=s(e)||"";n.indexOf(i.startSymbol())>-1?a(e,t,function(){return s(e)}):o(e,t,n)},expectWithoutText:function(e,t){var n=s(e);n.indexOf(i.startSymbol())>-1||n||o(e,t,n)},getText:s,hasAriaLabel:l,parentHasAriaLabel:d}}e.$inject=["$$rAF","$log","$window","$interpolate"],t.module("material.core").provider("$mdAria",function(){var t={showWarnings:!0};return{disableWarnings:function(){t.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(n,r,i,o){return e.apply(t,arguments)}]}})}(),function(){function n(e,n){this.$timeout=e,this.$mdUtil=n,this.bodyElement=t.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents()}n.$inject=["$timeout","$mdUtil"],t.module("material.core.interaction",[]).service("$mdInteraction",n),n.prototype.initializeEvents=function(){var t="MSPointerEvent"in e?"MSPointerDown":"PointerEvent"in e?"pointerdown":null;this.bodyElement.on("keydown mousedown",this.onInputEvent.bind(this)),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.onBufferInputEvent.bind(this)),t&&this.bodyElement.on(t,this.onInputEvent.bind(this))},n.prototype.onInputEvent=function(e){if(!this.isBuffering){var t=this.inputEventMap[e.type];"pointer"===t&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now()}},n.prototype.onBufferInputEvent=function(e){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(e),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},n.prototype.getLastInteractionType=function(){return this.lastInteractionType},n.prototype.isUserInvoked=function(e){var n=t.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-n}}(),function(){function n(){}function r(n,r,i){function o(e){return function(t,n){n.distance<this.state.options.maxDistance&&this.dispatchEvent(t,e,n)}}var s=navigator.userAgent||navigator.vendor||e.opera,c=s.match(/ipad|iphone|ipod/i),d=s.match(/android/i),u=function(){for(var e=document.createElement("div"),n=["","webkit","Moz","MS","ms","o"],r=0;r<n.length;r++){var i=n[r],o=i?i+"TouchAction":"touchAction";if(t.isDefined(e.style[o]))return o}}(),m=void 0!==e.jQuery&&t.element===e.jQuery,f={handler:function(e,r){var i=new n(e);return t.extend(i,r),p[e]=i,f},register:function(e,t,n){var r=p[t.replace(/^\$md./,"")];if(!r)throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(p).join(", "));return r.registerElement(e,n)},isHijackingClicks:(c||d)&&!m&&!h};if(f.isHijackingClicks){f.handler("click",{options:{maxDistance:6},onEnd:o("click")}),f.handler("focus",{options:{maxDistance:6},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&function(e){var t=["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"];return"-1"!=e.getAttribute("tabindex")&&!e.hasAttribute("DISABLED")&&(e.hasAttribute("tabindex")||e.hasAttribute("href")||e.isContentEditable||-1!=t.indexOf(e.nodeName))}(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),f.handler("mouseup",{options:{maxDistance:6},onEnd:o("mouseup")}),f.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})}return f.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){i.cancel(this.state.timeout)},onStart:function(e,n){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:n.x,y:n.y},this.state.timeout=i(t.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(e,t){u||"touchmove"!==e.type||e.preventDefault();var n=this.state.pos.x-t.x,r=this.state.pos.y-t.y;Math.sqrt(n*n+r*r)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){u&&(this.oldTouchAction=e[0].style[u],e[0].style[u]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[u]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,r;u||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,r=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,r=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=a(e),l(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):r&&this.cancel())},dispatchDragMove:r.throttle(function(e){this.state.isRunning&&(l(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(l(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function i(e){this.name=e,this.state={}}function o(e,n){function r(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||c(e)||(e.preventDefault(),e.stopPropagation())}function i(e,t){var r;for(var i in p)(r=p[i])instanceof n&&("start"===e&&r.cancel(),r[e](t,u))}document.contains||(document.contains=function(e){return document.body.contains(e)}),!g&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t=0===e.clientX&&0===e.clientY,n=e.target&&"submit"===e.target.type;t||e.$material||e.isIonicTap||c(e)||n?(f=null,"label"==e.target.tagName.toLowerCase()&&(f={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),f=null)},!0),document.addEventListener("mouseup",r,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("focus",r,!0),g=!0);t.element(document).on("mousedown touchstart pointerdown",function(e){if(!u){var t=+Date.now();m&&!s(e,m)&&t-m.endTime<1500||(u=a(e),i("start",e))}}).on("mousemove touchmove pointermove",function(e){u&&s(e,u)&&(l(e,u),i("move",e))}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){u&&s(e,u)&&(l(e,u),u.endTime=+Date.now(),i("end",e),m=u,u=null)}).on("$$mdGestureReset",function(){m=u=null})}function a(e){var t=d(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function s(e,t){return e&&t&&e.type.charAt(0)===t.type}function c(e){return f&&f.x==e.x&&f.y==e.y}function l(e,t){var n=d(e),r=t.x=n.pageX,i=t.y=n.pageY;t.distanceX=r-t.startX,t.distanceY=i-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=t.distanceX>0?"right":t.distanceX<0?"left":"",t.directionY=t.distanceY>0?"down":t.distanceY<0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function d(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}r.$inject=["$$MdGestureHandler","$$rAF","$timeout"],o.$inject=["$mdGesture","$$MdGestureHandler"];var u,m,p={},h=!1,f=null,g=!1;t.module("material.core.gestures",[]).provider("$mdGesture",n).factory("$$MdGestureHandler",function(){var n=void 0!==e.jQuery&&t.element===e.jQuery;return i.prototype={options:{},dispatchEvent:n?function(e,n,r){r=r||u;var i=new t.element.Event(n);i.$material=!0,i.pointer=r,i.srcEvent=e,t.extend(i,{clientX:r.x,clientY:r.y,screenX:r.x,screenY:r.y,pageX:r.x,pageY:r.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),t.element(r.target).trigger(i)}:function(t,n,r){r=r||u;var i;"click"===n||"mouseup"==n||"mousedown"==n?(i=document.createEvent("MouseEvents")).initMouseEvent(n,!0,!0,e,t.detail,r.x,r.y,r.x,r.y,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget||null):(i=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,{}),i.$material=!0,i.pointer=r,i.srcEvent=t,r.target.dispatchEvent(i)},onSetup:t.noop,onCleanup:t.noop,onStart:t.noop,onMove:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(e,n){if(!this.state.isRunning){var r=this.getNearestParent(e.target),i=r&&r.$mdGesture[this.name]||{};this.state={isRunning:!0,options:t.extend({},this.options,i),registeredParent:r},this.onStart(e,n)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.onEnd(e,t),this.state.isRunning=!1)},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){function n(){delete e[0].$mdGesture[r.name],e.off("$destroy",n),r.onCleanup(e,t||{})}var r=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",n),r.onSetup(e,t||{}),n}},i}).run(o),n.prototype={skipClickHijack:function(){return h=!0},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,n){return new r(e,t,n)}]}}(),function(){t.module("material.core").provider("$$interimElement",function(){function e(e){function n(n,r){function a(t,n){var i={};return i[e]=d,r.invoke(t||function(){return n},{},i)}var s,c,l=n(),d={hide:l.hide,cancel:l.cancel,show:function(e){return(e=e||{})._options&&(e=e._options),l.show(t.extend({},c,e))},destroy:function(e){return l.destroy(e)}};return s=o.methods||[],c=a(o.optionsFactory,{}),t.forEach(i,function(e,t){d[t]=e}),t.forEach(o.presets,function(e,n){function r(e){this._options=t.extend({},i,e)}var i=a(e.optionsFactory,{}),o=(e.methods||[]).concat(s);if(t.extend(i,{$type:n}),t.forEach(o,function(e){r.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption){var c="show"+n.charAt(0).toUpperCase()+n.slice(1);d[c]=function(e){var t=d[n](e);return d.show(t)}}d[n]=function(n){return arguments.length&&e.argOption&&!t.isObject(n)&&!t.isArray(n)?(new r)[e.argOption](n):new r(n)}}),d}n.$inject=["$$interimElement","$injector"];var r=["onHide","onShow","onRemove"],i={},o={presets:{}},a={setDefaults:function(e){return o.optionsFactory=e.options,o.methods=(e.methods||[]).concat(r),a},addPreset:function(t,n){if(n=n||{},n.methods=n.methods||[],n.options=n.options||function(){return{}},/^cancel|hide|show$/.test(t))throw new Error("Preset '"+t+"' in "+e+" is reserved!");if(n.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+e+" is reserved!");return o.presets[t]={methods:n.methods.concat(r),optionsFactory:n.options,argOption:n.argOption},a},addMethod:function(e,t){return i[e]=t,a},$get:n};return a.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),a}function r(e,r,i,o,a,s,c,l,d,u,m){return function(){function p(e){return function(){var t=arguments;return b.length?e.apply(f,t):v.length?v[0].finally(function(){return e.apply(f,t)}):r.when("No interim elements currently showing up.")}}function h(u){function m(e){return(e.skipCompile?null:l.compile(e))||r(function(t){t({locals:{},link:function(){return e.element}})})}function p(e,n){t.extend(e.locals,n);var r=e.link(n.scope);return n.element=r,n.parent=h(r,n),n.themable&&d(r),r}function h(n,r){var i=r.parent;if(!((i=t.isFunction(i)?i(r.scope,n,r):t.isString(i)?t.element(e[0].querySelector(i)):t.element(i))||{}).length){var o;return a[0]&&a[0].querySelector&&(o=a[0].querySelector(":not(svg) > body")),o||(o=a[0]),"#comment"==o.nodeName&&(o=e[0].body),t.element(o)}return i}function g(){var e,r=t.noop;u.hideDelay&&(e=o(f.hide,u.hideDelay),r=function(){o.cancel(e)}),u.cancelAutoHide=function(){r(),u.cancelAutoHide=n}}function v(e,n,i){var o=n.onShowing||t.noop,a=n.onComplete||t.noop;try{o(n.scope,e,n,i)}catch(e){return r.reject(e)}return r(function(t,o){try{r.when(n.onShow(n.scope,e,n,i)).then(function(){a(n.scope,e,n),g(),t(e)},o)}catch(e){o(e.message)}})}function $(e,n){var i=n.onRemoving||t.noop;return r(function(t,o){try{var a=r.when(n.onRemove(n.scope,e,n)||!0);i(e,a),n.$destroy?(t(e),!n.preserveScope&&n.scope&&a.then(function(){n.scope.$destroy()})):a.then(function(){!n.preserveScope&&n.scope&&n.scope.$destroy(),t(e)},o)}catch(e){o(e.message)}})}var b,y,E=r.when(!0);return u=function(e){return(e=e||{}).template&&(e.template=c.processTemplate(e.template)),t.extend({preserveScope:!1,cancelAutoHide:t.noop,scope:e.scope||i.$new(e.isolateScope),onShow:function(e,t,n){return s.enter(t,n.parent)},onRemove:function(e,t){return t&&s.leave(t)||r.when()}},e)}(u),b={options:u,deferred:r.defer(),show:function(){return r(function(e,t){function n(e){b.deferred.reject(e),t(e)}u.onCompiling&&u.onCompiling(u),m(u).then(function(t){y=p(t,u),u.cleanupElement=t.cleanup,E=v(y,u,t.controller).then(e,n)}).catch(n)})},remove:function(e,n,i){function o(e){b.deferred.resolve(e)}function a(e){b.deferred.reject(e)}return y?((u=t.extend(u||{},i||{})).cancelAutoHide&&u.cancelAutoHide(),u.element.triggerHandler("$mdInterimElementRemove"),!0===u.$destroy?$(u.element,u).then(function(){n&&a(e)||o(e)}):(r.when(E).finally(function(){$(u.element,u).then(function(){n?a(e):o(e)},a)}),b.deferred.promise)):r.when(!1)}}}var f,g=!1,v=[],$=[],b=[];return f={show:function(e){var t=new h((e=e||{})||{}),n=e.multiple?r.resolve():r.all(v);e.multiple||(n=n.then(function(){var e=$.concat(b.map(f.cancel));return r.all(e)}));var i=n.then(function(){return t.show().catch(function(e){return e}).finally(function(){v.splice(v.indexOf(i),1),b.push(t)})});return v.push(i),t.deferred.promise.catch(function(e){return e instanceof Error&&m(e),e}),t.deferred.promise},hide:p(function(e,t){function i(n){var r=n.remove(e,!1,t||{}).catch(function(e){return e}).finally(function(){$.splice($.indexOf(r),1)});return b.splice(b.indexOf(n),1),$.push(r),n.deferred.promise}return(t=t||{}).closeAll?r.all(b.slice().reverse().map(i)):t.closeTo!==n?r.all(b.slice(t.closeTo).map(i)):i(b[b.length-1])}),cancel:p(function(e,n){var i=b.pop();if(!i)return r.when(e);var o=i.remove(e,!0,n||{}).catch(function(e){return e}).finally(function(){$.splice($.indexOf(o),1)});return $.push(o),i.deferred.promise.catch(t.noop)}),destroy:function(e){var n=e?null:b.shift(),i=t.element(e).length&&t.element(e)[0].parentNode;if(i){var o=b.filter(function(e){return e.options.element[0]===i});o.length&&(n=o[0],b.splice(b.indexOf(n),1))}return n?n.remove(g,!1,{$destroy:!0}):r.when(g)},$injector_:u}}}return r.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=r,e})}(),function(){function e(){var e=!!document.querySelector("[md-layouts-disabled]");M.enabled=!e}function n(){return M.enabled=!1,{restrict:"A",priority:"900"}}function r(e){return["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(r){return M.enabled?(r.addClass(e),function(t,r){n(function(){r.removeClass(e)},10,!1)}):t.noop}}}]}function i(e){function n(t,n,r){var i=a(n,e),o=r.$observe(r.$normalize(e),i);i(m(e,r,"")),t.$on("$destroy",function(){o()})}return["$mdUtil","$interpolate","$log",function(r,i,o){return f=r,g=i,v=o,{restrict:"A",compile:function(r,i){var o;return M.enabled&&(c(e,i,r,v),l(e,m(e,i,""),d(r,e,i)),o=n),o||t.noop}}}]}function o(e){function n(t,n){n.addClass(e)}return["$mdUtil","$interpolate","$log",function(r,i,o){return f=r,g=i,v=o,{restrict:"A",compile:function(r,i){var o;return M.enabled&&(l(e,m(e,i,""),d(r,e,i)),n(0,r),o=n),o||t.noop}}}]}function a(e,n){var r;return function(i){var o=l(n,i||"");t.isDefined(o)&&(r&&e.removeClass(r),r=o?n+"-"+o.trim().replace(b,"-"):n,e.addClass(r))}}function s(e){var n=e.split("-");return["$log",function(r){return r.warn(e+"has been deprecated. Please use a `"+n[0]+"-gt-<xxx>` variant."),t.noop}]}function c(e,t,n,r){var i,o,a,s=n[0].nodeName.toLowerCase();switch(e.replace($,"")){case"flex":"md-button"!=s&&"fieldset"!=s||(o="<"+s+" "+e+"></"+s+">",a="https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers",i="Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",r.warn(f.supplant(i,[o,a])))}}function l(e,n,r){if(!u(n)){switch(e.replace($,"")){case"layout":p(n,E)||(n=E[0]);break;case"flex":p(n,y)||isNaN(n)&&(n="");break;case"flex-offset":case"flex-order":n&&!isNaN(+n)||(n="0");break;case"layout-align":var i=h(n);n=f.supplant("{main}-{cross}",i);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":case"layout-nowrap":n=""}void 0!=n&&(r||t.noop)(n)}return n?n.trim():""}function d(e,t,n){return function(e){u(e)||(n[n.$normalize(t)]=e)}}function u(e){return(e||"").indexOf(g.startSymbol())>-1}function m(e,t,n){var r=t.$normalize(e);return t[r]?t[r].trim().replace(b,"-"):n||null}function p(e,t,n){var r=!1;return(e=n&&e?e.replace(b,n):e)&&t.forEach(function(t){t=n?t.replace(b,n):t,r=r||t===e}),r}function h(e){var t,n={main:"start",cross:"stretch"};return 0!==(e=e||"").indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e),(t=e.toLowerCase().trim().replace(b,"-").split("-")).length&&"space"===t[0]&&(t=[t[0]+"-"+t[1],t[2]]),t.length>0&&(n.main=t[0]||n.main),t.length>1&&(n.cross=t[1]||n.cross),C.indexOf(n.main)<0&&(n.main="start"),w.indexOf(n.cross)<0&&(n.cross="stretch"),n}var f,g,v,$=/(-gt)?-(sm|md|lg|print)/g,b=/\s+/g,y=["grow","initial","auto","none","noshrink","nogrow"],E=["row","column"],C=["","start","center","end","stretch","space-around","space-between"],w=["","start","center","end","stretch"],M={enabled:!0,breakpoints:[]};!function(a){function d(e){return e.replace(u,"").replace(m,function(e,t,n,r){return r?n.toUpperCase():n})}var u=/^((?:x|data)[\:\-_])/i,m=/([\:\-\_]+(.))/g,p=["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],h=["layout","flex","flex-order","flex-offset","layout-align"],f=["show","hide","layout-padding","layout-margin"];t.forEach(p,function(e){t.forEach(h,function(t){var n=e?t+"-"+e:t;a.directive(d(n),i(n))}),t.forEach(f,function(t){var n=e?t+"-"+e:t;a.directive(d(n),o(n))})}),a.provider("$$mdLayout",function(){return{$get:t.noop,validateAttributeValue:l,validateAttributeUsage:c,disableLayouts:function(e){M.enabled=!0!==e}}}).directive("mdLayoutCss",n).directive("ngCloak",r("ng-cloak")).directive("layoutWrap",o("layout-wrap")).directive("layoutNowrap",o("layout-nowrap")).directive("layoutNoWrap",o("layout-no-wrap")).directive("layoutFill",o("layout-fill")).directive("layoutLtMd",s("layout-lt-md")).directive("layoutLtLg",s("layout-lt-lg")).directive("flexLtMd",s("flex-lt-md")).directive("flexLtLg",s("flex-lt-lg")).directive("layoutAlignLtMd",s("layout-align-lt-md")).directive("layoutAlignLtLg",s("layout-align-lt-lg")).directive("flexOrderLtMd",s("flex-order-lt-md")).directive("flexOrderLtLg",s("flex-order-lt-lg")).directive("offsetLtMd",s("flex-offset-lt-md")).directive("offsetLtLg",s("flex-offset-lt-lg")).directive("hideLtMd",s("hide-lt-md")).directive("hideLtLg",s("hide-lt-lg")).directive("showLtMd",s("show-lt-md")).directive("showLtLg",s("show-lt-lg")).config(e)}(t.module("material.core.layout",["ng"]))}(),function(){function e(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}e.$inject=["$timeout"],t.module("material.core").service("$mdLiveAnnouncer",e),e.prototype.announce=function(e,t){t||(t="polite");var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout(function(){n._liveElement.textContent=e},n._announceTimeout,!1)},e.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e}}(),t.module("material.core.meta",[]).provider("$$mdMeta",function(){function e(e){if(r[e])return!0;var n=document.getElementsByName(e)[0];return!!n&&(r[e]=t.element(n),!0)}var n=t.element(document.head),r={},i={setMeta:function(i,o){if(e(i),r[i])r[i].attr("content",o);else{var a=t.element('<meta name="'+i+'" content="'+o+'"/>');n.append(a),r[i]=a}return function(){r[i].attr("content",""),r[i].remove(),delete r[i]}},getMeta:function(t){if(!e(t))throw Error("$$mdMeta: could not find a meta tag with the name '"+t+"'");return r[t].attr("content")}};return t.extend({},i,{$get:function(){return i}})}),function(){function e(e,r){function i(e){return e&&""!==e}var o,a=[],s={};return o={notFoundError:function(t,n){e.error((n||"")+"No instance found for handle",t)},getInstances:function(){return a},get:function(e){if(!i(e))return null;var t,n,r;for(t=0,n=a.length;t<n;t++)if((r=a[t]).$$mdHandle===e)return r;return null},register:function(e,n){return n?(e.$$mdHandle=n,a.push(e),function(){var t=s[n];t&&(t.forEach(function(t){t.resolve(e)}),delete s[n])}(),function(){var t=a.indexOf(e);-1!==t&&a.splice(t,1)}):t.noop},when:function(e){if(i(e)){var t=r.defer(),a=o.get(e);return a?t.resolve(a):(s[e]===n&&(s[e]=[]),s[e].push(t)),t.promise}return r.reject("Invalid `md-component-id` value.")}}}e.$inject=["$log","$q"],t.module("material.core").factory("$mdComponentRegistry",e)}(),function(){function e(e){function n(e){return e.hasClass("md-icon-button")?{isMenuItem:e.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:e.hasClass("md-menu-item"),dimBackground:!0}}return{attach:function(r,i,o){return o=t.extend(n(i),o),e.attach(r,i,o)}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdButtonInkRipple",e)}(),function(){function e(e){return{attach:function(n,r,i){return e.attach(n,r,t.extend({center:!0,dimBackground:!1,fitRipple:!0},i))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdCheckboxInkRipple",e)}(),function(){function e(e){return{attach:function(n,r,i){return e.attach(n,r,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdListInkRipple",e)}(),function(){function e(e,n){return{controller:t.noop,link:function(t,r,i){i.hasOwnProperty("mdInkRippleCheckbox")?n.attach(t,r):e.attach(t,r)}}}function n(e,n,r,i,o,a,s){this.$window=i,this.$timeout=o,this.$mdUtil=a,this.$mdColorUtil=s,this.$scope=e,this.$element=n,this.options=r,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,a.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(n.controller("mdInkRipple")||{}).createRipple=t.bind(this,this.createRipple),(n.controller("mdInkRipple")||{}).setColor=t.bind(this,this.color),this.bindEvents()}function r(e,n){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(t.bind(e,n),!1))}function i(){return{controller:t.noop}}n.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],t.module("material.core").provider("$mdInkRipple",function(){var e=!1;return{disableInkRipple:function(){e=!0},$get:["$injector",function(r){return{attach:function(i,o,a){return e||o.controller("mdNoInk")?t.noop:r.instantiate(n,{$scope:i,$element:o,rippleOptions:a})}}}]}}).directive("mdInkRipple",e).directive("mdNoInk",i).directive("mdNoBar",i).directive("mdNoStretch",i);n.prototype.color=function(e){var n=this;return t.isDefined(e)&&(n._color=n._parseColor(e)),n._color||n._parseColor(n.inkRipple())||n._parseColor(function(){var e=n.options&&n.options.colorElement?n.options.colorElement:[],t=e.length?e[0]:n.$element[0];return t?n.$window.getComputedStyle(t).color:"rgb(0,0,0)"}())},n.prototype.calculateColor=function(){return this.color()},n.prototype._parseColor=function(e,t){t=t||1;var n=this.$mdColorUtil;if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?n.rgbToRgba(e):0===e.indexOf("#")?n.hexToRgba(e):void 0},n.prototype.bindEvents=function(){this.$element.on("mousedown",t.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",t.bind(this,this.handleMouseup)),this.$element.on("mouseleave",t.bind(this,this.handleMouseup)),this.$element.on("touchmove",t.bind(this,this.handleTouchmove))},n.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;this.createRipple(n,r)}else this.createRipple(e.offsetX,e.offsetY)},n.prototype.handleMouseup=function(){r(this,this.clearRipples)},n.prototype.handleTouchmove=function(){r(this,this.deleteRipples)},n.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},n.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},n.prototype.createContainer=function(){var e=t.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},n.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},n.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&t.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},n.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},n.prototype.createRipple=function(e,n){if(this.isRippleAllowed()){var r=this,i=r.$mdColorUtil,o=t.element('<div class="md-ripple"></div>'),a=this.$element.prop("clientWidth"),s=this.$element.prop("clientHeight"),c=2*Math.max(Math.abs(a-e),e),l=2*Math.max(Math.abs(s-n),n),d=function(e,t,n){return e?Math.max(t,n):Math.sqrt(Math.pow(t,2)+Math.pow(n,2))}(this.options.fitRipple,c,l),u=this.calculateColor();o.css({left:e+"px",top:n+"px",background:"black",width:d+"px",height:d+"px",backgroundColor:i.rgbaToRgb(u),borderColor:i.rgbaToRgb(u)}),this.lastRipple=o,this.clearTimeout(),this.timeout=this.$timeout(function(){r.clearTimeout(),r.mousedown||r.fadeInComplete(o)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:u}),this.container.append(o),this.ripples.push(o),o.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){o.addClass("md-ripple-scaled md-ripple-active"),r.$timeout(function(){r.clearRipples()},450,!1)},!1)}},n.prototype.fadeInComplete=function(e){this.lastRipple===e?this.timeout||this.mousedown||this.removeRipple(e):this.removeRipple(e)},n.prototype.removeRipple=function(e){var t=this;this.ripples.indexOf(e)<0||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),e.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){t.fadeOutComplete(e)},450,!1))},n.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){function e(e){return{attach:function(n,r,i){return e.attach(n,r,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdTabInkRipple",e)}(),t.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100",contrastStrongLightColors:"400 500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A700",contrastStrongLightColors:"600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100 A200",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#ffffff",A200:"#000000",A400:"#303030",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A200 A400 A700"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200",contrastStrongLightColors:"400 500 700"}}),function(e){function t(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}function r(t,r){function i(e,t){var n=A.filter(function(e){return!t[e]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function o(t,n){if(p[t])return p[t];var r="string"==typeof(n=n||"default")?p[n]:n,i=new s(t);return r&&e.forEach(r.colors,function(t,n){i.colors[n]={name:t.name,hues:e.extend({},t.hues)}}),p[t]=i,i}function s(t){function n(t){if((t=0===arguments.length||!!t)!==r.isDark){r.isDark=t,r.foregroundPalette=r.isDark?f:h,r.foregroundShadow=r.isDark?g:v;var n=r.isDark?M:w,i=r.isDark?w:M;return e.forEach(n,function(e,t){var n=r.colors[t],o=i[t];if(n)for(var a in n.hues)n.hues[a]===o[a]&&(n.hues[a]=e[a])}),r}}var r=this;r.name=t,r.colors={},r.dark=n,n(!1),E.forEach(function(t){var n=(r.isDark?M:w)[t];r[t+"Palette"]=function(i,o){var a=r.colors[t]={name:i,hues:e.extend({},n,o)};return Object.keys(a.hues).forEach(function(e){if(!n[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",r.name).replace("%3",i).replace("%4",Object.keys(n).join(", ")))}),Object.keys(a.hues).map(function(e){return a.hues[e]}).forEach(function(e){if(-1==A.indexOf(e))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",r.name).replace("%3",t).replace("%4",i).replace("%5",A.join(", ")))}),r},r[t+"Color"]=function(){var e=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+t+"Color() has been deprecated. Use $mdThemingProviderTheme."+t+"Palette() instead."),r[t+"Palette"].apply(r,e)}})}function l(t,r,i,a){function s(e){return e===n||""===e||l.THEMES[e]!==n}var l=function(e,r){r===n&&(r=e,e=n),e===n&&(e=t),l.inherit(r,r)};return Object.defineProperty(l,"THEMES",{get:function(){return e.extend({},p)}}),Object.defineProperty(l,"PALETTES",{get:function(){return e.extend({},m)}}),Object.defineProperty(l,"ALWAYS_WATCH",{get:function(){return $}}),l.inherit=function(e,t){function n(t){if(t){s(t)||a.warn("Attempted to use unregistered theme '"+t+"'. Register it with $mdThemingProvider.theme().");var n=e.data("$mdThemeName");n&&e.removeClass("md-"+n+"-theme"),e.addClass("md-"+t+"-theme"),e.data("$mdThemeName",t),i&&e.data("$mdThemeController",i)}}var i=t.controller("mdTheme")||e.data("$mdThemeController");if(n(i&&i.$mdTheme||("default"==b?"":b)),i)var o=$||i.$shouldWatch||r.parseAttributeBoolean(e.attr("md-theme-watch")),c=i.registerChanges(function(t){n(t),o?e.on("$destroy",c):c()})},l.registered=s,l.defaultTheme=function(){return b},l.generateTheme=function(e){c(p[e],e,x.nonce)},l.defineTheme=function(e,t){t=t||{};var n=o(e);return t.primary&&n.primaryPalette(t.primary),t.accent&&n.accentPalette(t.accent),t.warn&&n.warnPalette(t.warn),t.background&&n.backgroundPalette(t.background),t.dark&&n.dark(),this.generateTheme(e),i.resolve(e)},l.setBrowserColor=C,l}l.$inject=["$rootScope","$mdUtil","$q","$log"],m={};var d,p={},$=!1,b="default";e.extend(m,t);var y=function(e){var t=r.setMeta("theme-color",e),n=r.setMeta("msapplication-navbutton-color",e);return function(){t(),n()}},C=function(t){var n=(t=e.isObject(t)?t:{}).theme||"default",r=t.hue||"800",i=m[t.palette]||m[p[n].colors[t.palette||"primary"].name],o=e.isObject(i[r])?i[r].hex:i[r];return y(o)};return d={definePalette:function(e,t){return t=t||{},m[e]=i(e,t),d},extendPalette:function(t,n){return i(t,e.extend({},m[t]||{},n))},theme:o,configuration:function(){return e.extend({},x,{defaultTheme:b,alwaysWatchTheme:$,registeredStyles:[].concat(x.registeredStyles)})},disableTheming:function(t){x.disableTheming=e.isUndefined(t)||!!t},registerStyles:function(e){x.registeredStyles.push(e)},setNonce:function(e){x.nonce=e},generateThemesOnDemand:function(e){x.generateOnDemand=e},setDefaultTheme:function(e){b=e},alwaysWatchTheme:function(e){$=e},enableBrowserColor:C,$get:l,_LIGHT_DEFAULT_HUES:w,_DARK_DEFAULT_HUES:M,_PALETTES:m,_THEMES:p,_parseRules:a,_rgba:u}}function i(t,n,r,i,o,a){return{priority:101,link:{pre:function(s,c,l){var d=[],u=n.startSymbol(),m=n.endSymbol(),p=l.mdTheme.trim(),h=p.substr(0,u.length)===u&&p.lastIndexOf(m)===p.length-m.length,f="::"===l.mdTheme.split(u).join("").split(m).join("").trim().substr(0,"::".length),g={registerChanges:function(t,n){return n&&(t=e.bind(n,t)),d.push(t),function(){var e=d.indexOf(t);e>-1&&d.splice(e,1)}},$setTheme:function(e){t.registered(e)||a.warn("attempted to use unregistered theme '"+e+"'"),g.$mdTheme=e;for(var n=d.length;n--;)d[n](e)},$shouldWatch:i.parseAttributeBoolean(c.attr("md-theme-watch"))||t.ALWAYS_WATCH||h&&!f};c.data("$mdThemeController",g);var v=function(){var e=n(l.mdTheme)(s);return r(e)(s)||e},$=function(t){if("string"==typeof t)return g.$setTheme(t);o.when(e.isFunction(t)?t():t).then(function(e){g.$setTheme(e)})};$(v());var b=s.$watch(v,function(e){e&&($(e),g.$shouldWatch||b())})}}}}function o(e){return e}function a(t,n,r){l(t,n),r=r.replace(/THEME_NAME/g,t.name);var i=[],o=t.colors[n],a=new RegExp("\\.md-"+t.name+"-theme","g"),s=new RegExp("('|\")?{{\\s*("+n+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),c=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,d=m[o.name];return r=r.replace(c,function(e,n,r,i,o){return"foreground"===n?"shadow"==r?t.foregroundShadow:t.foregroundPalette[r]||t.foregroundPalette[1]:(0!==r.indexOf("hue")&&"default"!==r||(r=t.colors[n].hues[r]),u((m[t.colors[n].name][r]||"")[o?"contrast":"value"],i))}),e.forEach(o.hues,function(e,n){var o=r.replace(s,function(t,n,r,i,o){return u(d[e]["color"===i?"value":"contrast"],o)});if("default"!==n&&(o=o.replace(a,".md-"+t.name+"-theme.md-"+n)),"default"==t.name){var c=/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g;o=o.replace(c,function(e,t,n){return e+", "+t+n})}i.push(o)}),i}function s(t,n){var r=document.head,i=r?r.firstElementChild:null,o=!x.disableTheming&&t.has("$MD_THEME_CSS")?t.get("$MD_THEME_CSS"):"";if(o+=x.registeredStyles.join(""),i&&0!==o.length){e.forEach(m,function(t,n){var r=t.contrastDefaultColor,i=t.contrastLightColors||[],o=t.contrastStrongLightColors||[],a=t.contrastDarkColors||[];"string"==typeof i&&(i=i.split(" ")),"string"==typeof o&&(o=o.split(" ")),"string"==typeof a&&(a=a.split(" ")),delete t.contrastDefaultColor,delete t.contrastLightColors,delete t.contrastStrongLightColors,delete t.contrastDarkColors,e.forEach(t,function(n,s){if(!e.isObject(n)){var c=d(n);if(!c)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",n).replace("%2",t.name).replace("%3",s));t[s]={hex:t[s],value:c,contrast:"light"===r?a.indexOf(s)>-1?$:o.indexOf(s)>-1?y:b:i.indexOf(s)>-1?o.indexOf(s)>-1?y:b:$}}})});var a=o.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.trim().length}).map(function(e){return e.trim()+"}"}),s=new RegExp("md-("+E.join("|")+")","g");E.forEach(function(e){k[e]=""}),a.forEach(function(e){e.match(s);for(var t,n=0;t=E[n];n++)if(e.indexOf(".md-"+t)>-1)return k[t]+=e;for(n=0;t=E[n];n++)if(e.indexOf(t)>-1)return k[t]+=e;return k[C]+=e}),x.generateOnDemand||e.forEach(n.THEMES,function(e){p[e.name]||"default"!==n.defaultTheme()&&"default"===e.name||c(e,e.name,x.nonce)})}}function c(e,t,n){var r=document.head,i=r?r.firstElementChild:null;p[t]||(E.forEach(function(t){for(var o=a(e,t,k[t]);o.length;){var s=o.shift();if(s){var c=document.createElement("style");c.setAttribute("md-theme-style",""),n&&c.setAttribute("nonce",n),c.appendChild(document.createTextNode(s)),r.insertBefore(c,i)}}}),p[e.name]=!0)}function l(e,t){if(!m[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(m).join(", ")))}function d(t){if(e.isArray(t)&&3==t.length)return t;if(/^rgb/.test(t))return t.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==t.charAt(0)&&(t=t.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(t)){var n=t.length/3,r=t.substr(0,n),i=t.substr(n,n),o=t.substr(2*n);return 1===n&&(r+=r,i+=i,o+=o),[parseInt(r,16),parseInt(i,16),parseInt(o,16)]}}function u(t,n){return t?(4==t.length&&(t=e.copy(t),n?t.pop():n=t.pop()),n&&("number"==typeof n||"string"==typeof n&&n.length)?"rgba("+t.join(",")+","+n+")":"rgb("+t.join(",")+")"):"rgb('0,0,0')"}t.$inject=["$mdThemingProvider"],i.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],o.$inject=["$mdTheming"],r.$inject=["$mdColorPalette","$$mdMetaProvider"],s.$inject=["$injector","$mdTheming"],e.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",i).directive("mdThemable",o).directive("mdThemesDisabled",function(){return x.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",r).config(t).run(s);var m,p={},h={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.38)",4:"rgba(0,0,0,0.12)"},f={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.5)",4:"rgba(255,255,255,0.12)"},g="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",v="",$=d("rgba(0,0,0,0.87)"),b=d("rgba(255,255,255,0.87)"),y=d("rgb(255,255,255)"),E=["primary","accent","warn","background"],C="primary",w={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},M={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};E.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};w[e]||(w[e]=t),M[e]||(M[e]=t)});var A=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],x={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null},k={}}(e.angular),function(){function n(n,r,i,o,a){var s;return s={translate3d:function(e,t,n,r){function i(n){return a(e,{to:n||t,addClass:r.transitionOutClass,removeClass:r.transitionInClass,duration:r.duration}).start()}return a(e,{from:t,to:n,addClass:r.transitionInClass,removeClass:r.transitionOutClass,duration:r.duration}).start().then(function(){return i})},waitTransitionEnd:function(t,n){var a=3e3;return r(function(r,s){function c(e){e&&e.target!==t[0]||(e&&i.cancel(l),t.off(o.CSS.TRANSITIONEND,c),r())}(function(n){return"0s"==(n=n||e.getComputedStyle(t[0])).transitionDuration||!n.transition&&!n.transitionProperty})((n=n||{}).cachedTransitionStyles)&&(a=0);var l=i(c,n.timeout||a);t.on(o.CSS.TRANSITIONEND,c)})},calculateTransformValues:function(e,t){var n=t.element,r=t.bounds;if(n||r){var i=n?s.clientRect(n)||function(){var t=e?e.parent():null,n=t?t.parent():null;return n?s.clientRect(n):null}():s.copyRect(r),o=s.copyRect(e[0].getBoundingClientRect()),a=s.centerPointFor(o),c=s.centerPointFor(i);return{centerX:c.x-a.x,centerY:c.y-a.y,scaleX:Math.round(100*Math.min(.5,i.width/o.width))/100,scaleY:Math.round(100*Math.min(.5,i.height/o.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,r){return t.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )")(s.calculateTransformValues(e,r))},calculateSlideToOrigin:function(e,r){return t.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(s.calculateTransformValues(e,r))},toCss:function(e){function n(e,n,i){t.forEach(n.split(" "),function(e){r[e]=i})}var r={};return t.forEach(e,function(e,i){if(!t.isUndefined(e))if("left top right bottom width height x y min-width min-height max-width max-height".indexOf(i)>=0)r[i]=e+"px";else switch(i){case"transition":n(0,o.CSS.TRANSITION,e);break;case"transform":n(0,o.CSS.TRANSFORM,e);break;case"transformOrigin":n(0,o.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":r["font-size"]=e}}),r},toTransformCss:function(e,n,r){var i={};return t.forEach(o.CSS.TRANSFORM.split(" "),function(t){i[t]=e}),n&&(r=r||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",i.transition=r),i},copyRect:function(e,n){return e?(n=n||{},t.forEach("left top right bottom width height".split(" "),function(t){n[t]=Math.round(e[t])}),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(e){var n=t.element(e)[0].getBoundingClientRect();return function(e){return e&&e.width>0&&e.height>0}(n)?s.copyRect(n):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}}}t.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(e,t,r,i){return function(o){return n(o,e,t,r,i)}}])}(),t.version.minor>=4?t.module("material.core.animate",[]):function(){function e(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}var n=t.forEach,r=t.isDefined(document.documentElement.style.WebkitAppearance),i=r?"-webkit-":"",o=(r?"webkitTransitionEnd ":"")+"transitionend",a=(r?"webkitAnimationEnd ":"")+"animationend",s=["$document",function(e){return function(){return e[0].body.clientWidth+1}}],c=["$$rAF",function(e){return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}],l=["$q","$$rAFMutex",function(e,r){function i(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=r(),this._state=0}return i.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:t.noop,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._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(n(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},i.all=function(e,t){function r(n){o=o&&n,++i===e.length&&t(o)}var i=0,o=!0;n(e,function(e){e.done(r)})},i}];t.module("material.core.animate",[]).factory("$$forceReflow",s).factory("$$AnimateRunner",l).factory("$$rAFMutex",c).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(t,s,c,l,d,u,m){function p(e,t){t.addClass&&(d.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(d.removeClass(e,t.removeClass),t.removeClass=null)}function h(e){function n(e){return r?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}var i=y(e),o=t.getComputedStyle(i),a=f(o[n("transitionDuration")]),s=f(o[n("animationDuration")]),c=f(o[n("transitionDelay")]),l=f(o[n("animationDelay")]);return s*=parseInt(o[n("animationIterationCount")],10)||1,{duration:Math.max(s,a),delay:Math.max(l,c),animationDuration:s,transitionDuration:a,animationDelay:l,transitionDelay:c}}function f(e){var t=0,r=(e||"").split(/\s*,\s*/);return n(r,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function g(e){C&&C(),w.push(e),C=s(function(){C=null;for(var e=l(),t=0;t<w.length;t++)w[t](e);w.length=0})}function v(e,t){$(e,t),b(e,t)}function $(e,t){t.from&&(e.css(t.from),t.from=null)}function b(e,t){t.to&&(e.css(t.to),t.to=null)}function y(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function E(t,n){var r=y(t),o=e(i+"transition-delay");r.style[o]=n?"-9999s":""}var C,w=[];return function(r,s){var l=[],d=y(r),f=d&&m.enabled(),C=!1,w=!1;f&&(s.transitionStyle&&l.push([i+"transition",s.transitionStyle]),s.keyframeStyle&&l.push([i+"animation",s.keyframeStyle]),s.delay&&l.push([i+"transition-delay",s.delay+"s"]),s.duration&&l.push([i+"transition-duration",s.duration+"s"]),C=s.keyframeStyle||s.to&&(s.duration>0||s.transitionStyle),w=!!s.addClass||!!s.removeClass,E(r,!0));var M=f&&(C||w);$(r,s);var A,x,k=!1;return{close:t.close,start:function(){function t(){if(!k)return k=!0,A&&x&&r.off(A,x),p(r,s),v(r,s),n(l,function(t){d.style[e(t[0])]=""}),m.complete(!0),m}var m=new c;return g(function(){if(E(r,!1),!M)return t();n(l,function(t){var n=t[0],r=t[1];d.style[e(n)]=r}),p(r,s);var c=h(r);if(0===c.duration)return t();var m=[];s.easing&&(c.transitionDuration&&m.push([i+"transition-timing-function",s.easing]),c.animationDuration&&m.push([i+"animation-timing-function",s.easing])),s.delay&&c.animationDelay&&m.push([i+"animation-delay",s.delay+"s"]),s.duration&&c.animationDuration&&m.push([i+"animation-duration",s.duration+"s"]),n(m,function(t){var n=t[0],r=t[1];d.style[e(n)]=r,l.push(t)});var f=1e3*c.delay,g=c.duration,v=1e3*g,$=Date.now();A=[],c.transitionDuration&&A.push(o),c.animationDuration&&A.push(a),A=A.join(" "),x=function(e){e.stopPropagation();var n=e.originalEvent||e,r=n.timeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(r-$,0)>=f&&i>=g&&t()},r.on(A,x),b(r,s),u(t,f+1.5*v,!1)}),m}}}}])}(),t.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(e,n,r,i,o,a,s,c){var l="<md-backdrop> may not work properly in a scrolled, static-positioned parent container.";return{restrict:"E",link:function(d,u,m){function p(){var e=parseInt(h.height,10)+Math.abs(parseInt(h.top,10));u.css("height",e+"px")}r.pin&&r.pin(u,i);var h;s(function(){if("fixed"===(h=o.getComputedStyle(c[0].body)).position){var r=n.debounce(function(){h=o.getComputedStyle(c[0].body),p()},60,null,!1);p(),t.element(o).on("resize",r),d.$on("$destroy",function(){t.element(o).off("resize",r)})}var i=u.parent();i.length&&("BODY"===i[0].nodeName&&u.css("position","fixed"),"static"===o.getComputedStyle(i[0]).position&&a.warn(l),e.inherit(u,i))})}}}]),function(){function e(e){return{restrict:"E",link:function(t,n){n.addClass("_md"),t.$on("$destroy",function(){e.destroy()})}}}function n(e){function n(e,n,o,a,s,c,l,d){function u(e,t){function a(t){e.css(n.CSS.TRANSITION_DURATION,"0ms")}function c(t){var r=t.pointer.distanceY;r<5&&(r=Math.max(-i,r/2)),e.css(n.CSS.TRANSFORM,"translate3d(0,"+(i+r)+"px,0)")}function d(t){if(t.pointer.distanceY>0&&(t.pointer.distanceY>20||Math.abs(t.pointer.velocityY)>r)){var i=e.prop("offsetHeight")-t.pointer.distanceY,a=Math.min(i/t.pointer.velocityY*.75,500);e.css(n.CSS.TRANSITION_DURATION,a+"ms"),o.nextTick(s.cancel,!0)}else e.css(n.CSS.TRANSITION_DURATION,""),e.css(n.CSS.TRANSFORM,"")}var u=l.register(t,"drag",{horizontal:!1});return t.on("$md.dragstart",a).on("$md.drag",c).on("$md.dragend",d),{element:e,cleanup:function(){u(),t.off("$md.dragstart",a),t.off("$md.drag",c),t.off("$md.dragend",d)}}}var m;return{themable:!0,onShow:function(r,i,l,p){(i=o.extractElementByName(i,"md-bottom-sheet")).attr("tabindex","-1"),i.hasClass("ng-cloak")&&d.warn("$mdBottomSheet: using `<md-bottom-sheet ng-cloak >` will affect the bottom-sheet opening animations.",i[0]);l.disableBackdrop||((m=o.createBackdrop(r,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,l.clickOutsideToClose&&m.on("click",function(){o.nextTick(s.cancel,!0)}),a.inherit(m,l.parent),e.enter(m,l.parent,null));var h=new u(i,l.parent);return l.bottomSheet=h,a.inherit(h.element,l.parent),l.disableParentScroll&&(l.restoreScroll=o.disableScrollAround(h.element,l.parent)),e.enter(h.element,l.parent,m).then(function(){var e=o.findFocusTarget(i)||t.element(i[0].querySelector("button")||i[0].querySelector("a")||i[0].querySelector(o.prefixer("ng-click",!0)))||m;l.escapeToClose&&(l.rootElementKeyupCallback=function(e){e.keyCode===n.KEY_CODE.ESCAPE&&o.nextTick(s.cancel,!0)},c.on("keyup",l.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(t,n,r){var i=r.bottomSheet;return r.disableBackdrop||e.leave(m),e.leave(i.element).then(function(){r.disableParentScroll&&(r.restoreScroll(),delete r.restoreScroll),i.cleanup()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0}}n.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var r=.5,i=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:n})}e.$inject=["$mdBottomSheet"],n.$inject=["$$interimElementProvider"],t.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",e).provider("$mdBottomSheet",n)}(),function(){function e(e){return{restrict:"E",link:function(t,n){e(n)}}}function n(e,n,r,i){function o(e){return t.isDefined(e.href)||t.isDefined(e.ngHref)||t.isDefined(e.ngLink)||t.isDefined(e.uiSref)}return{restrict:"EA",replace:!0,transclude:!0,template:function(e,t){return o(t)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" type="'+(void 0===t.type?"button":t.type)+'" ng-transclude></button>'},link:function(a,s,c){n(s),e.attach(a,s),r.expectWithoutText(s,"aria-label"),o(c)&&t.isDefined(c.ngDisabled)&&a.$watch(c.ngDisabled,function(e){s.attr("tabindex",e?-1:0)}),s.on("click",function(e){!0===c.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),s.hasClass("md-no-focus")||(s.on("focus",function(){i.isUserInvoked()&&"keyboard"!==i.getLastInteractionType()||s.addClass("md-focused")}),s.on("blur",function(){s.removeClass("md-focused")}))}}}n.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],e.$inject=["$mdTheming"],t.module("material.components.button",["material.core"]).directive("mdButton",n).directive("a",e)}(),function(){function e(e){return{restrict:"E",link:function(t,n,r){n.addClass("_md"),e(n)}}}e.$inject=["$mdTheming"],t.module("material.components.card",["material.core"]).directive("mdCard",e)}(),function(){function e(e,n,r,i,o,a){return e=e[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:r.BEFORE_NG_ARIA,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:function(s,c){return c.$set("tabindex",c.tabindex||"0"),c.$set("type","checkbox"),c.$set("role",c.type),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:function(s,c,l,d){function u(e){c[0].hasAttribute("disabled")||s.skipToggle||s.$apply(function(){var t=l.ngChecked&&l.ngClick?l.checked:!f.$viewValue;f.$setViewValue(t,e&&e.type),f.$render()})}function m(e){(p=!1!==e)&&c.attr("aria-checked","mixed"),c.toggleClass("md-indeterminate",p)}var p,h=d[0],f=d[1]||o.fakeNgModel(),g=d[2];if(h){var v=h.isErrorGetter||function(){return f.$invalid&&(f.$touched||g&&g.$submitted)};h.input=c,s.$watch(v,h.setInvalid)}i(c),c.children().on("focus",function(){c.focus()}),o.parseAttributeBoolean(l.mdIndeterminate)&&(m(),s.$watch(l.mdIndeterminate,m)),l.ngChecked&&s.$watch(s.$eval.bind(s,l.ngChecked),function(e){f.$setViewValue(e),f.$render()}),function(e,t,n){l[e]&&s.$watch(l[e],function(e){n[e]&&c.attr(t,n[e])})}("ngDisabled","tabindex",{true:"-1",false:l.tabindex}),n.expectWithText(c,"aria-label"),e.link.pre(s,{on:t.noop,0:{}},l,[f]),c.on("click",u).on("keypress",function(e){var t=e.which||e.keyCode;t!==r.KEY_CODE.SPACE&&t!==r.KEY_CODE.ENTER||(e.preventDefault(),c.addClass("md-focused"),u(e))}).on("focus",function(){"keyboard"===a.getLastInteractionType()&&c.addClass("md-focused")}).on("blur",function(){c.removeClass("md-focused")}),f.$render=function(){c.toggleClass("md-checked",!!f.$viewValue&&!p)}}}}}}e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],t.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e)}(),t.module("material.components.chips",["material.core","material.components.autocomplete"]),function(){function e(e,n,r){function o(t,r){r=r||!1;var i=e.PALETTES[t.palette][t.hue];return i=r?i.contrast:i.value,n.supplant("rgba({0}, {1}, {2}, {3})",[i[0],i[1],i[2],i[3]||t.opacity])}function a(e){var n={},r=e.hasOwnProperty("color");return t.forEach(e,function(e,t){var i=s(e),a=t.indexOf("background")>-1;n[t]=o(i),a&&!r&&(n.color=o(i,!0))}),n}function s(n){var r=n.split("-"),i=t.isDefined(e.THEMES[r[0]])?r.splice(0,1)[0]:e.defaultTheme();return{theme:i,palette:c(r,i),hue:l(r,i),opacity:r[2]||1}}function c(t,r){var o=t.length>1&&-1!==i.indexOf(t[1]),a=t[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if(o&&(a=t[0]+"-"+t.splice(1,1)),-1===i.indexOf(a)){var s=e.THEMES[r].colors[a];if(!s)throw new Error(n.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:a}));a=s.name}return a}function l(t,r){var i=e.THEMES[r].colors;if("hue"===t[1]){var o=parseInt(t.splice(2,1)[0],10);if(o<1||o>3)throw new Error(n.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:o}));if(t[1]="hue-"+o,!(t[0]in i))throw new Error(n.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(i).join(", "),usedTheme:t[0]}));return i[t[0]].hues[t[1]]}return t[1]||i[t[0]in i?t[0]:"primary"].hues.default}return i=i||Object.keys(e.PALETTES),{applyThemeColors:function(e,t){try{t&&e.css(a(t))}catch(e){r.error(e.message)}},getThemeColor:function(e){return o(s(e))},hasTheme:function(n){return t.isDefined(e.THEMES[n.split("-")[0]])}}}function n(e,n,i,o){return{restrict:"A",require:["^?mdTheme"],compile:function(a,s){var c=function(){var e=s.mdColors,i=e.indexOf("::")>-1,o=!!i||r.test(s.mdColors);s.mdColors=e.replace("::","");var a=t.isDefined(s.mdColorsWatch);return!i&&!o&&(!a||n.parseAttributeBoolean(s.mdColorsWatch))}();return function(n,r,a,s){var l=s[0],d={},u=function(t){"string"!=typeof t&&(t=""),a.mdColors||(a.mdColors="{}");var r=o(a.mdColors)(n);return l&&Object.keys(r).forEach(function(n){var i=r[n];e.hasTheme(i)||(r[n]=(t||l.$mdTheme)+"-"+i)}),m(r),r},m=function(e){if(!t.equals(e,d)){var n=Object.keys(d);d.background&&!n.color&&n.push("color"),n.forEach(function(e){r.css(e,"")})}d=e},p=t.noop;l&&(p=l.registerChanges(function(t){e.applyThemeColors(r,u(t))})),n.$on("$destroy",function(){p()});try{c?n.$watch(u,t.bind(this,e.applyThemeColors,r),!0):e.applyThemeColors(r,u())}catch(e){i.error(e.message)}}}}}n.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var r=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,i=null;t.module("material.components.colors",["material.core"]).directive("mdColors",n).service("$mdColors",e)}(),function(){function e(e){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],link:function(t,r){r.addClass("_md"),e(r),t.$broadcast("$mdContentLoaded",r),n(r[0])}}}function n(e){t.element(e).on("$md.pressdown",function(t){"t"===t.pointer.type&&(t.$materialScrollFixed||(t.$materialScrollFixed=!0,0===e.scrollTop?e.scrollTop=1:e.scrollHeight===e.scrollTop+e.offsetHeight&&(e.scrollTop-=1)))})}e.$inject=["$mdTheming"],t.module("material.components.content",["material.core"]).directive("mdContent",e)}(),t.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){function e(e,n,r){return{restrict:"E",link:function(i,o){o.addClass("_md"),n(o),e(function(){function e(){o.toggleClass("md-content-overflow",a.scrollHeight>a.clientHeight)}var n,a=o[0].querySelector("md-dialog-content");a&&(n=a.getElementsByTagName("img"),e(),t.element(n).on("load",e)),i.$on("$destroy",function(){r.destroy(o)})})}}}function r(e){function r(e,t){return{template:['<md-dialog md-theme="{{ dialog.theme || dialog.defaultTheme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">',' <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">',' <h2 class="md-title">{{ dialog.title }}</h2>',' <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ',' ng-bind-html="::dialog.mdHtmlContent"></div>',' <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body">'," <p>{{::dialog.mdTextContent}}</p>"," </div>",' <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">',' <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result" placeholder="{{::dialog.placeholder}}">'," </md-input-container>"," </md-dialog-content>"," <md-dialog-actions>",' <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'" ng-click="dialog.abort()" class="md-primary md-cancel-button">'," {{ dialog.cancel }}"," </md-button>",' <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'">'," {{ dialog.ok }}"," </md-button>"," </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:function(){var n="prompt"==this.$type;n&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){e.hide(!n||this.result)},this.abort=function(){e.cancel()},this.keypress=function(n){n.keyCode===t.KEY_CODE.ENTER&&e.hide(this.result)}},controllerAs:"dialog",bindToController:!0}}function i(e,r,i,s,c,l,d,u,m,p,h,f,g){function v(e){var n;e.targetEvent&&e.targetEvent.target&&(n=t.element(e.targetEvent.target));var r=n&&n.controller("mdTheme");if(r){e.themeWatch=r.$shouldWatch;var i=e.theme||r.$mdTheme;i&&(e.scope.theme=i);var o=r.registerChanges(function(t){e.scope.theme=t,e.themeWatch||o()})}}function $(e){function r(e,r){var i=t.element(e||{});if(i&&i.length){var o={top:0,left:0,height:0,width:0},a=t.isFunction(i[0].getBoundingClientRect);return t.extend(r||{},{element:a?i:n,bounds:a?i[0].getBoundingClientRect():t.extend({},o,i[0]),focus:t.bind(i,i.focus)})}}function i(e,n){return t.isString(e)&&(e=l[0].querySelector(e)),t.element(e||n)}e.origin=t.extend({element:null,bounds:null,focus:t.noop},e.origin||{}),e.parent=i(e.parent,u),e.closeTo=r(i(e.closeTo)),e.openFrom=r(i(e.openFrom)),e.targetEvent&&(e.origin=r(e.targetEvent.target,e.origin),e.originInteraction=g.getLastInteractionType())}function b(n,r){var o=t.element(d),a=i.debounce(function(){w(n,r)},60),c=[],l=function(){var t="alert"==r.$type?e.hide:e.cancel;i.nextTick(t,!0)};if(r.escapeToClose){var u=r.parent,m=function(e){e.keyCode===s.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),l())};n.on("keydown",m),u.on("keydown",m),c.push(function(){n.off("keydown",m),u.off("keydown",m)})}if(o.on("resize",a),c.push(function(){o.off("resize",a)}),r.clickOutsideToClose){var p,h=n,f=function(e){p=e.target},g=function(e){p===h[0]&&e.target===h[0]&&(e.stopPropagation(),e.preventDefault(),l())};h.on("mousedown",f),h.on("mouseup",g),c.push(function(){h.off("mousedown",f),h.off("mouseup",g)})}r.deactivateListeners=function(){c.forEach(function(e){e()}),r.deactivateListeners=null}}function y(e,t,n){n.disableParentScroll&&(n.restoreScroll=i.disableScrollAround(t,n.parent)),n.hasBackdrop&&(n.backdrop=i.createBackdrop(e,"md-dialog-backdrop md-opaque"),c.enter(n.backdrop,n.parent)),n.hideBackdrop=function(e){n.backdrop&&(e?n.backdrop.remove():c.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}function E(e,t){var n="alert"===t.$type?"alertdialog":"dialog",s=e.find("md-dialog-content"),c=e.attr("id"),l="dialogContent_"+(c||i.nextUid());e.attr({role:n,tabIndex:"-1"}),0===s.length&&(s=e,c&&(l=c)),s.attr("id",l),e.attr("aria-describedby",l),t.ariaLabel?r.expect(e,"aria-label",t.ariaLabel):r.expectAsync(e,"aria-label",function(){var e=s.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")}),(o=document.createElement("div")).classList.add("md-dialog-focus-trap"),o.tabIndex=0,a=o.cloneNode(!1);var d=function(){e.focus()};o.addEventListener("focus",d),a.addEventListener("focus",d),e[0].parentNode.insertBefore(o,e[0]),e.after(a)}function C(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var t=e.parentNode.children,i=0;i<t.length;i++)e===t[i]||x(t[i],["SCRIPT","STYLE"])||t[i].setAttribute("aria-hidden",r);n(e=e.parentNode)}}var r=!0;n(e[0]),t.unlockScreenReader=function(){r=!1,n(e[0]),t.unlockScreenReader=null}}function w(e,t){var n="fixed"==d.getComputedStyle(l[0].body).position,r=t.backdrop?d.getComputedStyle(t.backdrop[0]):null,i=r?Math.min(l[0].body.clientHeight,Math.ceil(Math.abs(parseInt(r.height,10)))):0,o={top:e.css("top"),height:e.css("height")},a=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?a:0)+"px",height:i?i+"px":"100%"}),function(){e.css(o)}}function M(e,t){t.parent.append(e),t.reverseContainerStretch=w(e,t);var n=e.find("md-dialog"),r=i.dom.animator,o=r.calculateZoomToOrigin,a={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},s=r.toTransformCss(o(n,t.openFrom||t.origin)),c=r.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),r.translate3d(n,s,c,a).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(a={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},s=c,c=r.toTransformCss(o(n,t.closeTo)),r.translate3d(n,s,c,a)):e(c=r.toTransformCss(o(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([a.transitionOutClass,a.transitionInClass].join(" ")),r.translate3d(n,c,r.toTransformCss(""),{})},!0})}function A(e,t){return t.reverseAnimate().then(function(){t.contentElement&&t.clearAnimate()})}function x(e,t){if(-1!==t.indexOf(e.nodeName))return!0}return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=h.defaultTheme(),v(e)},onShow:function(e,n,r,o){function a(){n[0].querySelector(".md-actions")&&m.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>.")}function s(){r.focusOnOpen&&(i.findFocusTarget(n)||n[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||c).focus()}t.element(l[0].body).addClass("md-dialog-is-showing");var c=n.find("md-dialog");c.hasClass("ng-cloak")&&m.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",n[0]);return $(r),E(c,r),y(e,n,r),b(n,r),M(n,r).then(function(){C(n,r),a(),s()})},onShowing:function(e,t,n,r){if(r){var i=r.htmlContent||n.htmlContent||"",o=r.textContent||n.textContent||r.content||n.content||"";if(i&&!p.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&o)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");r.mdHtmlContent=i,r.mdTextContent=o}},onRemove:function(e,n,r){function i(){t.element(l[0].body).removeClass("md-dialog-is-showing"),r.contentElement&&r.reverseContainerStretch(),r.cleanupElement(),r.$destroy||"keyboard"!==r.originInteraction||r.origin.focus()}return r.deactivateListeners(),r.unlockScreenReader(),r.hideBackdrop(r.$destroy),o&&o.parentNode&&o.parentNode.removeChild(o),a&&a.parentNode&&a.parentNode.removeChild(a),r.$destroy?i():A(0,r).then(i)},clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){var n=f.startSymbol(),r=f.endSymbol();return'<div class="md-dialog-container" tabindex="-1" md-theme="'+(n+(t.themeWatch?"":"::")+"theme"+r)+'">'+function(e){return t.autoWrap&&!/<\/md-dialog>/g.test(e)?"<md-dialog>"+(e||"")+"</md-dialog>":e||""}(e)+"</div>"}}}r.$inject=["$mdDialog","$mdConstant"],i.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"];var o,a;return e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:i}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:r}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:r}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css"],options:r})}e.$inject=["$$rAF","$mdTheming","$mdDialog"],r.$inject=["$$interimElementProvider"],t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",r)}(),function(){function e(e){return{restrict:"E",link:e}}e.$inject=["$mdTheming"],t.module("material.components.divider",["material.core"]).directive("mdDivider",e)}(),function(){function e(e){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(t,n){var r=t.children();e.prefixer().hasAttribute(r,"ng-repeat")?r.addClass("md-fab-action-item"):r.wrap('<div class="md-fab-action-item">')}}}e.$inject=["$mdUtil"],t.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}(),function(){function e(e,n,r,i,o,a){function s(){S.direction=S.direction||"down",S.isOpen=S.isOpen||!1,d(),n.addClass("md-animations-waiting")}function c(){var r=["click","focusin","focusout"];t.forEach(r,function(e){n.on(e,l)}),e.$on("$destroy",function(){t.forEach(r,function(e){n.off(e,l)}),h()})}function l(e){"click"==e.type&&k(e),"focusout"!=e.type||D||(D=a(function(){S.close()},100,!1)),"focusin"==e.type&&D&&(a.cancel(D),D=null)}function d(){S.currentActionIndex=-1}function u(){e.$watch("vm.direction",function(e,t){r.removeClass(n,"md-"+t),r.addClass(n,"md-"+e),d()});var t,i;e.$watch("vm.isOpen",function(e){d(),t&&i||(t=T(),i=_()),e?p():h();var o=e?"md-is-open":"",a=e?"":"md-is-open";t.attr("aria-haspopup",!0),t.attr("aria-expanded",e),i.attr("aria-hidden",!e),r.setClass(n,o,a)})}function m(){n[0].scrollHeight>0?r.addClass(n,"_md-animations-ready").then(function(){n.removeClass("md-animations-waiting")}):N<10&&(a(m,100),N+=1)}function p(){n.on("keydown",g),i.nextTick(function(){t.element(document).on("click touchend",f)})}function h(){n.off("keydown",g),t.element(document).off("click touchend",f)}function f(e){if(e.target){var t=i.getClosest(e.target,"md-fab-trigger"),n=i.getClosest(e.target,"md-fab-actions");t||n||S.close()}}function g(e){switch(e.which){case o.KEY_CODE.ESCAPE:return S.close(),e.preventDefault(),!1;case o.KEY_CODE.LEFT_ARROW:return E(e),!1;case o.KEY_CODE.UP_ARROW:return C(e),!1;case o.KEY_CODE.RIGHT_ARROW:return w(e),!1;case o.KEY_CODE.DOWN_ARROW:return M(e),!1}}function v(e){b(e,-1)}function $(e){b(e,1)}function b(e,n){var r=y();S.currentActionIndex=S.currentActionIndex+n,S.currentActionIndex=Math.min(r.length-1,S.currentActionIndex),S.currentActionIndex=Math.max(0,S.currentActionIndex);var i=t.element(r[S.currentActionIndex]).children()[0];t.element(i).attr("tabindex",0),i.focus(),e.preventDefault(),e.stopImmediatePropagation()}function y(){var e=_()[0].querySelectorAll(".md-fab-action-item");return t.forEach(e,function(e){t.element(t.element(e).children()[0]).attr("tabindex",-1)}),e}function E(e){"left"===S.direction?$(e):v(e)}function C(e){"down"===S.direction?v(e):$(e)}function w(e){"left"===S.direction?v(e):$(e)}function M(e){"up"===S.direction?v(e):$(e)}function A(e){return i.getClosest(e,"md-fab-trigger")}function x(e){return i.getClosest(e,"md-fab-actions")}function k(e){A(e.target)&&S.toggle(),x(e.target)&&S.close()}function T(){return n.find("md-fab-trigger")}function _(){return n.find("md-fab-actions")}var S=this,N=0;S.open=function(){e.$evalAsync("vm.isOpen = true")},S.close=function(){e.$evalAsync("vm.isOpen = false"),n.find("md-fab-trigger")[0].focus()},S.toggle=function(){e.$evalAsync("vm.isOpen = !vm.isOpen")},S.$onInit=function(){s(),c(),u(),m()},1===t.version.major&&t.version.minor<=4&&this.$onInit();var D}e.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],t.module("material.components.fabShared",["material.core"]).controller("MdFabController",e)}(),function(){function n(n){function r(e){n(e,i,!1)}function o(n){if(!n.hasClass("md-animations-waiting")||n.hasClass("_md-animations-ready")){var r=n[0],i=n.controller("mdFabSpeedDial"),o=r.querySelectorAll(".md-fab-action-item"),a=r.querySelector("md-fab-trigger"),s=r.querySelector("._md-css-variables"),c=parseInt(e.getComputedStyle(s).zIndex);t.forEach(o,function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=o.length-t+c}),a.style.zIndex=c+o.length+1,i.isOpen||t.forEach(o,function(e,t){var n,r,o=e.style,s=(a.clientHeight-e.clientHeight)/2,c=(a.clientWidth-e.clientWidth)/2;switch(i.direction){case"up":n=e.scrollHeight*(t+1)+s,r="Y";break;case"down":n=-(e.scrollHeight*(t+1)+s),r="Y";break;case"left":n=e.scrollWidth*(t+1)+c,r="X";break;case"right":n=-(e.scrollWidth*(t+1)+c),r="X"}var l="translate"+r+"("+n+"px)";o.transform=o.webkitTransform=l})}}return{addClass:function(e,t,n){e.hasClass("md-fling")?(o(e),r(n)):n()},removeClass:function(e,t,n){o(e),r(n)}}}function r(n){function r(e){n(e,i,!1)}function o(n){var r=n[0],i=n.controller("mdFabSpeedDial"),o=r.querySelectorAll(".md-fab-action-item"),s=r.querySelector("._md-css-variables"),c=parseInt(e.getComputedStyle(s).zIndex);t.forEach(o,function(e,t){var n=e.style,r=t*a;n.opacity=i.isOpen?1:0,n.transform=n.webkitTransform=i.isOpen?"scale(1)":"scale(0)",n.transitionDelay=(i.isOpen?r:o.length-r)+"ms",n.zIndex=o.length-t+c})}var a=65;return{addClass:function(e,t,n){o(e),r(n)},removeClass:function(e,t,n){o(e),r(n)}}}n.$inject=["$timeout"],r.$inject=["$timeout"];var i=300;t.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",function(){return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t){t.prepend('<div class="_md-css-variables"></div>')}}}).animation(".md-fling",n).animation(".md-scale",r).service("mdFabSpeedDialFlingAnimation",n).service("mdFabSpeedDialScaleAnimation",r)}(),function(){function n(){function n(n,r,i){if(r){var o=n[0],a=n.controller("mdFabToolbar"),s=o.querySelector(".md-fab-toolbar-background"),c=o.querySelector("md-fab-trigger button"),l=o.querySelector("md-toolbar"),d=o.querySelector("md-fab-trigger button md-icon"),u=n.find("md-fab-actions").children();if(c&&s){var m=e.getComputedStyle(c).getPropertyValue("background-color"),p=o.offsetWidth,h=(o.offsetHeight,p/c.offsetWidth*2);s.style.backgroundColor=m,s.style.borderRadius=p+"px",a.isOpen?(l.style.pointerEvents="inherit",s.style.width=c.offsetWidth+"px",s.style.height=c.offsetHeight+"px",s.style.transform="scale("+h+")",s.style.transitionDelay="0ms",d&&(d.style.transitionDelay=".3s"),t.forEach(u,function(e,t){e.style.transitionDelay=25*(u.length-t)+"ms"})):(l.style.pointerEvents="none",s.style.transform="scale(1)",s.style.top="0",n.hasClass("md-right")&&(s.style.left="0",s.style.right=null),n.hasClass("md-left")&&(s.style.right="0",s.style.left=null),s.style.transitionDelay="200ms",d&&(d.style.transitionDelay="0ms"),t.forEach(u,function(e,t){e.style.transitionDelay=200+25*t+"ms"}))}}}return{addClass:function(e,t,r){n(e,t),r()},removeClass:function(e,t,r){n(e,t),r()}}}t.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",function(){return{restrict:"E",transclude:!0,template:'<div class="md-fab-toolbar-wrapper"> <div class="md-fab-toolbar-content" ng-transclude></div></div>',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}}}).animation(".md-fab-toolbar",n).service("mdFabToolbarAnimation",n)}(),function(){function e(e,r,i,o){return{restrict:"E",controller:n,scope:{mdOnLayout:"&"},link:function(n,a,s,c){function l(e){null==e?c.invalidateLayout():o(e)&&c.invalidateLayout()}function d(e){return w+e+M}function u(e,t,n,r,i,o,a){var s=1/n*100,c=(n-1)/n,l=A({share:s,gutterShare:c,gutter:i}),d="rtl"!=document.dir&&"rtl"!=document.body.dir?{left:x({unit:l,offset:e.col,gutter:i}),width:k({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{right:x({unit:l,offset:e.col,gutter:i}),width:k({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(o){case"fixed":d.top=x({unit:a,offset:e.row,gutter:i}),d.height=k({unit:a,span:t.row,gutter:i});break;case"ratio":m=A({share:u=s/a,gutterShare:c,gutter:i}),d.paddingTop=k({unit:m,span:t.row,gutter:i}),d.marginTop=x({unit:m,offset:e.row,gutter:i});break;case"fit":var u=1/r*100,m=A({share:u,gutterShare:(r-1)/r,gutter:i});d.top=x({unit:m,offset:e.row,gutter:i}),d.height=k({unit:m,span:t.row,gutter:i})}return d}function m(e,t,n,r,i){var o={};switch(r){case"fixed":o.height=k({unit:i,span:t,gutter:n}),o.paddingBottom="";break;case"ratio":var a=A({share:1/e*100*(1/i),gutterShare:1===e?0:(e-1)/e,gutter:n});o.height="",o.paddingBottom=k({unit:a,span:t,gutter:n})}return o}function p(){return[].filter.call(a.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed})}function h(e){return[].map.call(e,function(e){var n=t.element(e).controller("mdGridTile");return{row:parseInt(o.getResponsiveAttribute(n.$attrs,"md-rowspan"),10)||1,col:parseInt(o.getResponsiveAttribute(n.$attrs,"md-colspan"),10)||1}})}function f(){var e=parseInt(o.getResponsiveAttribute(s,"md-cols"),10);if(isNaN(e))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return e}function g(){return b(o.getResponsiveAttribute(s,"md-gutter")||1)}function v(){var e=o.getResponsiveAttribute(s,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch($()){case"fixed":return b(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}function $(){var e=o.getResponsiveAttribute(s,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function b(e){return/\D$/.test(e)?e:e+"px"}a.addClass("_md"),a.attr("role","list"),c.layoutDelegate=function(e){var r=p(),o={tileSpans:h(r),colCount:f(),rowMode:$(),rowHeight:v(),gutter:g()};if(e||!t.equals(o,C)){var s=i(o.colCount,o.tileSpans,r).map(function(e,n){return{grid:{element:a,style:m(o.colCount,n,o.gutter,o.rowMode,o.rowHeight)},tiles:e.map(function(e,i){return{element:t.element(r[i]),style:u(e.position,e.spans,o.colCount,n,o.gutter,o.rowMode,o.rowHeight)}})}}).reflow().performance();n.mdOnLayout({$event:{performance:s}}),C=o}};var y=t.bind(c,c.invalidateLayout),E=function(){for(var e in r.MEDIA)o(e),o.getQuery(r.MEDIA[e]).addListener(y);return o.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],s,l)}();n.$on("$destroy",function(){c.layoutDelegate=t.noop,E();for(var e in r.MEDIA)o.getQuery(r.MEDIA[e]).removeListener(y)});var C,w=e.startSymbol(),M=e.endSymbol(),A=e(d("share")+"% - ("+d("gutter")+" * "+d("gutterShare")+")"),x=e("calc(("+d("unit")+" + "+d("gutter")+") * "+d("offset")+")"),k=e("calc(("+d("unit")+") * "+d("span")+" + ("+d("span")+" - 1) * "+d("gutter")+")")}}}function n(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=t.noop}function r(e){function n(t,n){var r,a,s,c,l,d;return c=e.time(function(){a=i(t,n)}),r={layoutInfo:function(){return a},map:function(t){return l=e.time(function(){var e=r.layoutInfo();s=t(e.positioning,e.rowCount)}),r},reflow:function(t){return d=e.time(function(){(t||o)(s.grid,s.tiles)}),r},performance:function(){return{tileCount:n.length,layoutTime:c,mapTime:l,reflowTime:d,totalTime:c+l+d}}}}function r(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}function i(e,t){function n(t,n){if(t.col>e)throw"md-grid-list: Tile at position "+n+" has a colspan ("+t.col+") that exceeds the column count ("+e+")";for(var l=0,d=0;d-l<t.col;)a>=e?r():-1!==(l=c.indexOf(0,a))&&-1!==(d=o(l+1))?a=d+1:(l=d=0,r());return i(l,t.col,t.row),a=l+t.col,{col:l,row:s}}function r(){a=0,s++,i(0,e,-1)}function i(e,t,n){for(var r=e;r<e+t;r++)c[r]=Math.max(c[r]+n,0)}function o(e){var t;for(t=e;t<c.length;t++)if(0!==c[t])return t;if(t===c.length)return t}var a=0,s=0,c=function(){for(var t=[],n=0;n<e;n++)t.push(0);return t}();return{positioning:t.map(function(e,t){return{spans:e,position:n(e,t)}}),rowCount:s+Math.max.apply(Math,c)}}var o=r;return n.animateWith=function(e){o=t.isFunction(e)?e:r},n}function i(e){return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:function(n,r,i,o){r.attr("role","listitem");var a=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],i,t.bind(o,o.invalidateLayout));o.invalidateTiles(),n.$on("$destroy",function(){r[0].$$mdDestroyed=!0,a(),o.invalidateLayout()}),t.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(e,t){e!==t&&o.invalidateTiles()})}}}function o(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}n.$inject=["$mdUtil"],r.$inject=["$mdUtil"],e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],i.$inject=["$mdMedia"],t.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",i).directive("mdGridTileFooter",o).directive("mdGridTileHeader",o).factory("$mdGridLayout",r),n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(t.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),t.module("material.components.icon",["material.core"]),function(){function n(e,t){function n(e,n,r,i){var o=this;o.isErrorGetter=r.mdIsError&&t(r.mdIsError),o.delegateClick=function(){o.input.focus()},o.element=n,o.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},o.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},o.setHasPlaceholder=function(e){n.toggleClass("md-input-has-placeholder",!!e)},o.setInvalid=function(e){e?i.addClass(n,"md-input-invalid"):i.removeClass(n,"md-input-invalid")},e.$watch(function(){return o.label&&o.input},function(e){e&&!o.label.attr("for")&&o.label.attr("for",o.input.attr("id"))})}n.$inject=["$scope","$element","$attrs","$animate"];var r=["INPUT","TEXTAREA","SELECT","MD-SELECT"],i=r.reduce(function(e,t){return e.concat(["md-icon ~ "+t,".md-icon ~ "+t])},[]).join(","),o=r.reduce(function(e,t){return e.concat([t+" ~ md-icon",t+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:function(t){var n=t[0].querySelector(i),r=t[0].querySelector(o);return n&&t.addClass("md-icon-left"),r&&t.addClass("md-icon-right"),function(t,n){e(n)}},controller:n}}function r(e,n,r,i,o){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(a,s,c,l){function d(e){return m.setHasValue(!h.$isEmpty(e)),e}function u(){m.setHasValue(s.val().length>0||(s[0].validity||{}).badInput)}var m=l[0],p=!!l[1],h=l[1]||e.fakeNgModel(),f=l[2],g=t.isDefined(c.readonly),v=e.parseAttributeBoolean(c.mdNoAsterisk),$=s[0].tagName.toLowerCase();if(m)if("hidden"!==c.type){if(m.input){if(m.input[0].contains(s[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}m.input=s,m.label&&c.$observe("required",function(e){m.label.toggleClass("md-required",e&&!v)});var b=t.element('<div class="md-errors-spacer">');s.after(b),m.label||r.expect(s,"aria-label",c.placeholder),s.addClass("md-input"),s.attr("id")||s.attr("id","input_"+e.nextUid()),"input"===$&&"number"===c.type&&c.min&&c.max&&!c.step?s.attr("step","any"):"textarea"===$&&function(){function r(){s.attr("rows",1).css("height","auto").addClass("md-no-flex");var e=l();if(!b){var t=s[0].style.padding||"";b=s.css("padding",0).prop("offsetHeight"),s[0].style.padding=t}if(g&&b&&(e=Math.max(e,b*g)),v&&b){var n=b*v;n<e?(s.attr("md-no-autogrow",""),e=n):s.removeAttr("md-no-autogrow")}b&&s.attr("rows",Math.round(e/b)),s.css("height",e+"px").removeClass("md-no-flex")}function l(){var e=y.offsetHeight,t=y.scrollHeight-e;return e+Math.max(t,0)}function d(t){return e.nextTick(r),t}function u(){if(f&&(f=!1,t.element(n).off("resize",r),$&&$(),s.attr("md-no-autogrow","").off("input",r),p)){var e=h.$formatters.indexOf(d);e>-1&&h.$formatters.splice(e,1)}}var f=!c.hasOwnProperty("mdNoAutogrow");if(function(){function e(e){e.preventDefault(),d=!0,p=e.clientY,h=parseFloat(s.css("height"))||s.prop("offsetHeight")}function n(e){d&&(e.preventDefault(),u(),f.addClass("md-input-resized"))}function r(e){d&&s.css("height",h+e.pointer.distanceY+"px")}function i(e){d&&(d=!1,f.removeClass("md-input-resized"))}if(!c.hasOwnProperty("mdNoResize")){var l=t.element('<div class="md-resize-handle"></div>'),d=!1,p=null,h=0,f=m.element,g=o.register(l,"drag",{horizontal:!1});s.wrap('<div class="md-resize-wrapper">').after(l),l.on("mousedown",e),f.on("$md.dragstart",n).on("$md.drag",r).on("$md.dragend",i),a.$on("$destroy",function(){l.off("mousedown",e).remove(),f.off("$md.dragstart",n).off("$md.drag",r).off("$md.dragend",i),g(),l=null,f=null,g=null})}}(),f){var g=c.hasOwnProperty("rows")?parseInt(c.rows):NaN,v=c.hasOwnProperty("maxRows")?parseInt(c.maxRows):NaN,$=a.$on("md-resize-textarea",r),b=null,y=s[0];if(i(function(){e.nextTick(r)},10,!1),s.on("input",r),p&&h.$formatters.push(d),g||s.attr("rows",1),t.element(n).on("resize",r),a.$on("$destroy",u),c.hasOwnProperty("mdDetectHidden")){var E=function(){var e=!1;return function(){var t=0===y.offsetHeight;!1===t&&!0===e&&r(),e=t}}();a.$watch(function(){return e.nextTick(E,!1),!0})}}}(),p||u();var y=m.isErrorGetter||function(){return h.$invalid&&(h.$touched||f&&f.$submitted)};a.$watch(y,m.setInvalid),c.ngValue&&c.$observe("value",u),h.$parsers.push(d),h.$formatters.push(d),s.on("input",u),g||s.on("focus",function(t){e.nextTick(function(){m.setFocused(!0)})}).on("blur",function(t){e.nextTick(function(){m.setFocused(!1),u()})}),a.$on("$destroy",function(){m.setFocused(!1),m.setHasValue(!1),m.input=null})}else s.attr("aria-hidden","true")}}}function i(e,n){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(r,i,o,a){function s(e){return l.parent?(l.text(String(i.val()||e||"").length+" / "+c),e):e}var c,l,d,u=a[0],m=a[1];n.nextTick(function(){d=t.element(m.element[0].querySelector(".md-errors-spacer")),l=t.element('<div class="md-char-counter">'),d.append(l),o.$set("ngTrim","false"),r.$watch(o.mdMaxlength,function(n){c=n,t.isNumber(n)&&n>0?(l.parent().length||e.enter(l,d),s()):e.leave(l)}),u.$validators["md-maxlength"]=function(e,n){return!t.isNumber(c)||c<0||(s(),(e||i.val()||n||"").length<=c)}})}}}function o(e){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(n,r,i,o){if(o){var a=o.element.find("label"),s=o.element.attr("md-no-float");if(a&&a.length||""===s||n.$eval(s))o.setHasPlaceholder(!0);else if("MD-SELECT"!=r[0].nodeName){var c=t.element('<label ng-click="delegateClick()" tabindex="-1">'+i.placeholder+"</label>");i.$set("placeholder",null),o.element.addClass("md-icon-float").prepend(c),e(c)(n)}}}}}}function a(e){return{restrict:"A",link:function(t,n,r){function i(){a=!0,e(function(){n[0].select(),a=!1},1,!1)}function o(e){a&&e.preventDefault()}if("INPUT"===n[0].nodeName||"TEXTAREA"===n[0].nodeName){var a=!1;n.on("focus",i).on("mouseup",o),t.$on("$destroy",function(){n.off("focus",i).off("mouseup",o)})}}}}function s(e){return{restrict:"EA",compile:function(t){function n(t){return!!e.getClosest(t,"md-input-container")}function r(e){e.toggleClass("md-input-message-animation",!0)}if(n(t))r(t);else if(function(){for(var e=t[0];e=e.parentNode;)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(e,i){n(i)&&r(t)}},priority:100}}function c(e,t,n,r){return v(e,t,n,r),{addClass:function(e,t,n){u(e,n)}}}function l(e,t,n,r){return v(e,t,n,r),{enter:function(e,t){u(e,t)},leave:function(e,t){m(e,t)},addClass:function(e,t,n){"ng-hide"==t?m(e,n):n()},removeClass:function(e,t,n){"ng-hide"==t?u(e,n):n()}}}function d(e,t,n,r){return v(e,t,n,r),{enter:function(e,t){p(e).start().done(t)},leave:function(e,t){h(e).start().done(t)}}}function u(e,n){var r,i=[],o=g(e),a=o.children();if(0==o.length||0==a.length)return C.warn("mdInput messages show animation called on invalid messages element: ",e),void n();t.forEach(a,function(e){r=p(t.element(e)),i.push(r.start())}),b.all(i,n)}function m(e,n){var r,i=[],o=g(e),a=o.children();if(0==o.length||0==a.length)return C.warn("mdInput messages hide animation called on invalid messages element: ",e),void n();t.forEach(a,function(e){r=h(t.element(e)),i.push(r.start())}),b.all(i,n)}function p(t){var n=parseInt(e.getComputedStyle(t[0]).height),r=parseInt(e.getComputedStyle(t[0]).marginTop),i=g(t),o=f(t);return r>-n||i.hasClass("md-auto-hide")&&!o.hasClass("md-input-invalid")?y(t,{}):y(t,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-n+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function h(t){var n=t[0].offsetHeight,r=e.getComputedStyle(t[0]);return 0===parseInt(r.opacity)?y(t,{}):y(t,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-n+"px"},duration:.3})}function f(e){return e.controller("mdInputContainer").element}function g(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?t.element(E.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):t.element(e[0].querySelector(".md-input-messages-animation"))}function v(e,t,n,r){b=e,y=t,E=n,C=r}n.$inject=["$mdTheming","$parse"],r.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],i.$inject=["$animate","$mdUtil"],o.$inject=["$compile"],s.$inject=["$mdUtil"],a.$inject=["$timeout"],c.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],l.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],d.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var $=t.module("material.components.input",["material.core"]).directive("mdInputContainer",n).directive("label",function(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,r){!r||n.mdNoFloat||t.hasClass("md-container-ignore")||(r.label=t,e.$on("$destroy",function(){r.label=null}))}}}).directive("input",r).directive("textarea",r).directive("mdMaxlength",i).directive("placeholder",o).directive("ngMessages",function(){function e(e){return w.some(function(t){return e[t]})}return{restrict:"EA",link:function(t,n,r,i){i&&(n.toggleClass("md-input-messages-animation",!0),n.toggleClass("md-auto-hide",!0),("false"==r.mdAutoHide||e(r))&&n.toggleClass("md-auto-hide",!1))},require:"^^?mdInputContainer"}}).directive("ngMessage",s).directive("ngMessageExp",s).directive("mdSelectOnFocus",a).animation(".md-input-invalid",c).animation(".md-input-messages-animation",l).animation(".md-input-message-animation",d);e._mdMocksIncluded&&$.service("$$mdInput",function(){return{messages:{show:u,hide:m,getElement:g}}}).service("mdInputInvalidAnimation",c).service("mdInputMessagesAnimation",l).service("mdInputMessageAnimation",d);var b,y,E,C,w=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"]}(),function(){function e(e){return{restrict:"E",compile:function(t){return t[0].setAttribute("role","list"),e}}}function n(e,n,r,i){var o=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(a,s){function c(n){if("div"==n)(v=t.element('<div class="md-no-style md-list-item-inner">')).append(a.contents()),a.addClass("md-proxy-focus");else{v=t.element('<div class="md-button md-no-style"> <div class="md-list-item-inner"></div></div>');var r=t.element('<md-button class="md-no-style"></md-button>');d(a[0],r[0]),r.attr("aria-label")||r.attr("aria-label",e.getText(a)),a.hasClass("md-no-focus")&&r.addClass("md-no-focus"),v.prepend(r),v.children().eq(1).append(a.contents()),a.addClass("_md-button-wrap")}a[0].setAttribute("tabindex","-1"),a.append(v)}function l(n,r){if(n&&!m(n)&&n.hasAttribute("ng-click")){e.expect(n,"aria-label");var i=t.element('<md-button class="md-secondary md-icon-button">');d(n,i[0],["ng-if","ng-hide","ng-show"]),n.setAttribute("tabindex","-1"),i.append(n),n=i[0]}n&&(!p(n)||!s.ngClick&&u(n))&&t.element(n).removeClass("md-secondary"),a.addClass("md-with-secondary"),r.append(n)}function d(e,n,i){var o=r.prefixer(["ng-if","ng-click","ng-dblclick","aria-label","ng-disabled","ui-sref","href","ng-href","target","ng-attr-ui-sref","ui-sref-opts"]);i&&(o=o.concat(r.prefixer(i))),t.forEach(o,function(t){e.hasAttribute(t)&&(n.setAttribute(t,e.getAttribute(t)),e.removeAttribute(t))})}function u(e){return-1!=o.indexOf(e.nodeName.toLowerCase())}function m(e){var t=e.nodeName.toUpperCase();return"MD-BUTTON"==t||"BUTTON"==t}function p(e){for(var t=e.attributes,n=0;n<t.length;n++)if("ngClick"===s.$normalize(t[n].name))return!0;return!1}var h,f,g=a[0].querySelectorAll(".md-secondary"),v=a;if(a[0].setAttribute("role","listitem"),s.ngClick||s.ngDblclick||s.ngHref||s.href||s.uiSref||s.ngAttrUiSref)c("button");else if(!a.hasClass("md-no-proxy")){for(var $,b=0;$=o[b];++b)if(f=a[0].querySelector($)){h=!0;break}h?c("div"):a.addClass("md-no-proxy")}return function(){var e=t.element('<div class="md-secondary-container">');t.forEach(g,function(t){l(t,e)}),v.append(e)}(),function(){for(var e,t,n=["md-switch","md-checkbox"],r=0;t=n[r];++r)if((e=a.find(t)[0])&&!e.hasAttribute("aria-label")){var i=a.find("p")[0];if(!i)return;e.setAttribute("aria-label","Toggle "+i.textContent)}}(),h&&"MD-MENU"===f.nodeName&&function(){var e=t.element(f),n="left";(e.parent().hasClass("md-secondary-container")||f.parentNode.firstElementChild!==f)&&(n="right"),e.attr("md-position-mode")||e.attr("md-position-mode",n+" target");var r=e.children().eq(0);p(r[0])||r.attr("ng-click","$mdMenu.open($event)"),r.attr("aria-label")||r.attr("aria-label","Open List Menu")}(),function(e,a,s,c){function l(e){var t=["md-slider"];if(!e.path)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var n=e.path.indexOf(a.children()[0]),r=0;r<n;r++)if(-1!==t.indexOf(e.path[r].tagName.toLowerCase()))return!0}a.addClass("_md");var d=[],u=a[0].firstElementChild,m=a.hasClass("_md-button-wrap")?u.firstElementChild:u,h=m&&p(m),f=a.hasClass("md-no-proxy");u&&u.children&&!h&&!f&&t.forEach(o,function(e){t.forEach(u.querySelectorAll(e+":not(.md-secondary)"),function(e){d.push(e)})}),(1==d.length||h)&&(a.addClass("md-clickable"),h||c.attachRipple(e,t.element(a[0].querySelector(".md-no-style")))),d.length&&t.forEach(d,function(n){n=t.element(n),e.mouseActive=!1,n.on("mousedown",function(){e.mouseActive=!0,i(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&a.addClass("md-focused"),n.on("blur",function e(){a.removeClass("md-focused"),n.off("blur",e)})})});var g=function(e){"INPUT"==e.target.nodeName||"TEXTAREA"==e.target.nodeName||e.target.isContentEditable||(e.which||e.keyCode)==n.KEY_CODE.SPACE&&m&&(m.click(),e.preventDefault(),e.stopPropagation())};h||d.length||m&&m.addEventListener("keypress",g),a.off("click"),a.off("keypress"),1==d.length&&m&&a.children().eq(0).on("click",function(e){l(e)||!r.getClosest(e.target,"BUTTON")&&m.contains(e.target)&&t.forEach(d,function(n){e.target===n||n.contains(e.target)||("MD-MENU"===n.nodeName&&(n=n.children[0]),t.element(n).triggerHandler("click"))})}),e.$on("$destroy",function(){m&&m.removeEventListener("keypress",g)})}}}}function r(e,t,n){this.attachRipple=function(e,t){var r={};n.attach(e,t,r)}}r.$inject=["$scope","$element","$mdListInkRipple"],e.$inject=["$mdTheming"],n.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],t.module("material.components.list",["material.core"]).controller("MdListController",r).directive("mdList",e).directive("mdListItem",n)}(),t.module("material.components.menu",["material.core","material.components.backdrop"]),t.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),function(){function e(e,n){return{restrict:"E",transclude:!0,controller:r,controllerAs:"ctrl",bindToController:!0,scope:{mdSelectedNavItem:"=?",mdNoInkBar:"=?",navBarAriaLabel:"@?"},template:'<div class="md-nav-bar"><nav role="navigation"><ul class="_md-nav-bar-list" ng-transclude role="listbox"tabindex="0"ng-focus="ctrl.onFocus()"ng-keydown="ctrl.onKeydown($event)"aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar ng-hide="ctrl.mdNoInkBar"></md-nav-ink-bar></div>',link:function(r,i,o,a){n(i),a.navBarAriaLabel||e.expectAsync(i,"aria-label",t.noop)}}}function r(e,t,n,r){this._$timeout=n,this._$scope=t,this._$mdConstant=r,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=e[0],this._inkbar;var i=this,o=this._$scope.$watch(function(){return i._navBarEl.querySelectorAll("._md-nav-button").length},function(e){e>0&&(i._initTabs(),o())})}function i(e,n){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:o,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(e,t){var n,r,i,o=t.mdNavClick,a=t.mdNavHref,s=t.mdNavSref,c=t.srefOpts;if((o?1:0)+(a?1:0)+(s?1:0)>1)throw Error("Must not specify more than one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");return o?n='ng-click="ctrl.mdNavClick()"':a?n='ng-href="{{ctrl.mdNavHref}}"':s&&(n='ui-sref="{{ctrl.mdNavSref}}"'),r=c?'ui-sref-opts="{{ctrl.srefOpts}}" ':"",n&&(i='<md-button class="_md-nav-button md-accent" ng-class="ctrl.getNgClassMap()" ng-blur="ctrl.setFocused(false)" tabindex="-1" '+r+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="option" aria-selected="{{ctrl.isSelected()}}">'+(i||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@"},link:function(r,i,o,a){n(function(){var n=a[0],o=a[1],s=t.element(i[0].querySelector("._md-nav-button"));n.name||(n.name=t.element(i[0].querySelector("._md-nav-button-text")).text().trim()),s.on("click",function(){o.mdSelectedNavItem=n.name,r.$apply()}),e.expectWithText(i,"aria-label")})}}}function o(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this._selected=!1,this._focused=!1}r.$inject=["$element","$scope","$timeout","$mdConstant"],i.$inject=["$mdAria","$$rAF"],o.$inject=["$element"],e.$inject=["$mdAria","$mdTheming"],t.module("material.components.navBar",["material.core"]).controller("MdNavBarController",r).directive("mdNavBar",e).controller("MdNavItemController",o).directive("mdNavItem",i),r.prototype._initTabs=function(){this._inkbar=t.element(this._navBarEl.querySelector("md-nav-ink-bar"));var e=this;this._$timeout(function(){e._updateTabs(e.mdSelectedNavItem,n)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(t,n){e._$timeout(function(){e._updateTabs(t,n)})})},r.prototype._updateTabs=function(e,t){var n=this,r=this._getTabs();if(r){var i=-1,o=-1,a=this._getTabByName(e),s=this._getTabByName(t);s&&(s.setSelected(!1),i=r.indexOf(s)),a&&(a.setSelected(!0),o=r.indexOf(a)),this._$timeout(function(){n._updateInkBarStyles(a,o,i)})}},r.prototype._updateInkBarStyles=function(e,t,n){if(this._inkbar.toggleClass("_md-left",t<n).toggleClass("_md-right",t>n),this._inkbar.css({display:t<0?"none":""}),e){var r=e.getButtonEl(),i=r.offsetLeft;this._inkbar.css({left:i+"px",width:r.offsetWidth+"px"})}},r.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(e){return t.element(e).controller("mdNavItem")});return e.indexOf(n)?e:null},r.prototype._getTabByName=function(e){return this._findTab(function(t){return t.getName()==e})},r.prototype._getSelectedTab=function(){return this._findTab(function(e){return e.isSelected()})},r.prototype.getFocusedTab=function(){return this._findTab(function(e){return e.hasFocus()})},r.prototype._findTab=function(e){for(var t=this._getTabs(),n=0;n<t.length;n++)if(e(t[n]))return t[n];return null},r.prototype.onFocus=function(){var e=this._getSelectedTab();e&&e.setFocused(!0)},r.prototype._moveFocus=function(e,t){e.setFocused(!1),t.setFocused(!0)},r.prototype.onKeydown=function(e){var t=this._$mdConstant.KEY_CODE,n=this._getTabs(),r=this.getFocusedTab();if(r){var i=n.indexOf(r);switch(e.keyCode){case t.UP_ARROW:case t.LEFT_ARROW:i>0&&this._moveFocus(r,n[i-1]);break;case t.DOWN_ARROW:case t.RIGHT_ARROW:i<n.length-1&&this._moveFocus(r,n[i+1]);break;case t.SPACE:case t.ENTER:this._$timeout(function(){r.getButtonEl().click()})}}},o.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},o.prototype.getName=function(){return this.name},o.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},o.prototype.setSelected=function(e){this._selected=e},o.prototype.isSelected=function(){return this._selected},o.prototype.setFocused=function(e){this._focused=e,e&&this.getButtonEl().focus()},o.prototype.hasFocus=function(){return this._focused}}(),t.module("material.components.progressCircular",["material.core"]),function(){function e(e,t){if(!e||!t)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(h.hasOwnProperty(e))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete t.id,delete t.position,delete t.animation,h[e]=t}function r(){return t.copy(h)}function i(){h={}}function o(){return["$rootElement","$rootScope","$injector","$window",function(e,t,n,r){return new a(h,e,t,n,r)}]}function a(e,n,r,i,o){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:t.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:m},this._config={},this._presets=e,this._$rootElement=n,this._$rootScope=r,this._$injector=i,this._$window=o,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=l.animation,this.xPosition=c.xPosition,this.yPosition=c.yPosition,this.interceptorTypes=s.interceptorTypes,this.closeReasons=s.closeReasons,this.absPosition=c.absPosition}function s(e,t){this._$q=t.get("$q"),this._$mdCompiler=t.get("$mdCompiler"),this._$mdConstant=t.get("$mdConstant"),this._$mdUtil=t.get("$mdUtil"),this._$mdTheming=t.get("$mdTheming"),this._$rootScope=t.get("$rootScope"),this._$animate=t.get("$animate"),this._$mdPanel=t.get("$mdPanel"),this._$log=t.get("$log"),this._$window=t.get("$window"),this._$$rAF=t.get("$$rAF"),this.id=e.id,this.config=e,this.panelContainer,this.panelEl,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap,this._bottomFocusTrap,this._backdropRef,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:"",classes:""}}function c(e){this._$window=e.get("$window"),this._isRTL="rtl"===e.get("$mdUtil").bidi(),this._$mdConstant=e.get("$mdConstant"),this._absolute=!1,this._relativeToEl,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition}function l(e){this._$mdUtil=e.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function d(e){var n=t.isString(e)?document.querySelector(e):e;return t.element(n)}function u(e,t){var n=getComputedStyle(e[0]||e)[t],r=n.indexOf("("),i=n.lastIndexOf(")"),o={x:0,y:0};if(r>-1&&i>-1){var a=n.substring(r+1,i).split(", ").slice(-2);o.x=parseInt(a[0]),o.y=parseInt(a[1])}return o}a.$inject=["presets","$rootElement","$rootScope","$injector","$window"],t.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",function(){return{definePreset:e,getAllPresets:r,clearPresets:i,$get:o()}});var m=80,p=t.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),h={};a.prototype.create=function(e,n){if("string"==typeof e?e=this._getPresetByName(e):"object"!=typeof e||!t.isUndefined(n)&&n||(n=e,e={}),e=e||{},n=n||{},t.isDefined(n.id)&&this._trackedPanels[n.id]){var r=this._trackedPanels[n.id];return t.extend(r.config,n),r}this._config=t.extend({id:n.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,n,e);var i=new s(this._config,this._$injector);return this._trackedPanels[n.id]=i,this._config.groupName&&(t.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),t.forEach(this._config.groupName,function(e){i.addToGroup(e)})),this._config.scope.$on("$destroy",t.bind(i,i.detach)),i},a.prototype.open=function(e,t){var n=this.create(e,t);return n.open().then(function(){return n})},a.prototype._getPresetByName=function(e){if(!this._presets[e])throw new Error("mdPanel: The panel preset configuration that you requested does not exist. Use the $mdPanelProvider to create a preset before requesting one.");return this._presets[e]},a.prototype.newPanelPosition=function(){return new c(this._$injector)},a.prototype.newPanelAnimation=function(){return new l(this._$injector)},a.prototype.newPanelGroup=function(e,t){if(!this._groups[e]){var n={panels:[],openPanels:[],maxOpen:(t=t||{}).maxOpen>0?t.maxOpen:1/0};this._groups[e]=n}return this._groups[e]},a.prototype.setGroupMaxOpen=function(e,t){if(!this._groups[e])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[e].maxOpen=t},a.prototype._openCountExceedsMaxOpen=function(e){if(this._groups[e]){var t=this._groups[e];return t.maxOpen>0&&t.openPanels.length>t.maxOpen}return!1},a.prototype._closeFirstOpenedPanel=function(e){this._groups[e].openPanels[0].close()},a.prototype._wrapTemplate=function(e){return'<div class="md-panel-outer-wrapper"> <div class="md-panel _md-panel-offscreen">'+(e||"")+"</div></div>"},a.prototype._wrapContentElement=function(e){var n=t.element('<div class="md-panel-outer-wrapper">');return e.addClass("md-panel _md-panel-offscreen"),n.append(e),n},s.interceptorTypes={CLOSE:"onClose"},s.prototype.open=function(){var e=this;return this._$q(function(n,r){var i=e._done(n,e),o=e._simpleBind(e.show,e);e.attach().then(o).then(function(){e.config.groupName&&t.forEach(e.config.groupName,function(t){e._$mdPanel._openCountExceedsMaxOpen(t)&&e._$mdPanel._closeFirstOpenedPanel(t)})}).then(i).catch(r)})},s.prototype.close=function(e){var n=this;return this._$q(function(r,i){n._callInterceptors(s.interceptorTypes.CLOSE).then(function(){var o=n._done(r,n),a=n._simpleBind(n.detach,n),s=n.config.onCloseSuccess||t.noop;s=t.bind(n,s,n,e),n.hide().then(a).then(o).then(s).catch(i)},i)})},s.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var e=this;return this._$q(function(n,r){var i=e._done(n,e),o=e.config.onDomAdded||t.noop;e._$q.all([e._createBackdrop(),e._createPanel().then(function(t){return e.isAttached=!0,e._addEventListeners(),t}).catch(r)]).then(o).then(i).catch(r)})},s.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var e=this,n=e.config.onDomRemoved||t.noop,r=function(){return e._removeEventListeners(),e._topFocusTrap&&e._topFocusTrap.parentNode&&e._topFocusTrap.parentNode.removeChild(e._topFocusTrap),e._bottomFocusTrap&&e._bottomFocusTrap.parentNode&&e._bottomFocusTrap.parentNode.removeChild(e._bottomFocusTrap),e._restoreCache.classes&&(e.panelEl[0].className=e._restoreCache.classes),e.panelEl[0].style.cssText=e._restoreCache.styles||"",e._compilerCleanup(),e.panelContainer.remove(),e.isAttached=!1,e._$q.when(e)};return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(t,i){var o=e._done(t,e);e._$q.all([r(),!e._backdropRef||e._backdropRef.detach()]).then(n).then(o).catch(i)})},s.prototype.destroy=function(){var e=this;this.config.groupName&&t.forEach(this.config.groupName,function(t){e.removeFromGroup(t)}),this.config.scope.$destroy(),this.config.locals=null,this._interceptors=null},s.prototype.show=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(!this.panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var e=this,n=function(){return e.panelContainer.removeClass("_md-panel-hidden"),e._animateOpen()};return this._$q(function(r,i){var o=e._done(r,e),a=e.config.onOpenComplete||t.noop;e._$q.all([e._backdropRef?e._backdropRef.show():e,n().then(function(){e._focusOnOpen()},i)]).then(a).then(function(){e.config.groupName&&t.forEach(e.config.groupName,function(t){e._$mdPanel._groups[t].openPanels.push(e)})}).then(o).catch(i)})},s.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(this.panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var e=this;return this._$q(function(n,r){var i=e._done(n,e),o=e.config.onRemoving||t.noop;e._$q.all([e._backdropRef?e._backdropRef.hide():e,e._animateClose().then(o).then(function(){e.panelContainer.addClass("_md-panel-hidden")}).then(function(){if(e.config.groupName){var n;t.forEach(e.config.groupName,function(t){t=e._$mdPanel._groups[t],(n=t.openPanels.indexOf(e))>-1&&t.openPanels.splice(n,1)})}}).then(function(){var t=e.config.origin;t&&d(t).focus()}).catch(r)]).then(i,r)})},s.prototype.addClass=function(e,t){if(this._$log.warn("mdPanel: The addClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t||this.panelContainer.hasClass(e)?t&&!this.panelEl.hasClass(e)&&this.panelEl.addClass(e):this.panelContainer.addClass(e)},s.prototype.removeClass=function(e,t){if(this._$log.warn("mdPanel: The removeClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");!t&&this.panelContainer.hasClass(e)?this.panelContainer.removeClass(e):t&&this.panelEl.hasClass(e)&&this.panelEl.removeClass(e)},s.prototype.toggleClass=function(e,t){if(this._$log.warn("mdPanel: The toggleClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t?this.panelEl.toggleClass(e):this.panelContainer.toggleClass(e)},s.prototype._compile=function(){var e=this;return e._$mdCompiler.compile(e.config).then(function(n){var r=e.config;if(r.contentElement){var i=n.element;e._restoreCache.styles=i[0].style.cssText,e._restoreCache.classes=i[0].className,e.panelContainer=e._$mdPanel._wrapContentElement(i),e.panelEl=i}else e.panelContainer=n.link(r.scope),e.panelEl=t.element(e.panelContainer[0].querySelector(".md-panel"));return e._compilerCleanup=n.cleanup,d(e.config.attachTo).append(e.panelContainer),e})},s.prototype._createPanel=function(){var e=this;return this._$q(function(t,n){e.config.locals||(e.config.locals={}),e.config.locals.mdPanelRef=e,e._compile().then(function(){e.config.disableParentScroll&&(e._restoreScroll=e._$mdUtil.disableScrollAround(null,e.panelContainer,{disableScrollMask:!0})),e.config.panelClass&&e.panelEl.addClass(e.config.panelClass),e.config.propagateContainerEvents&&e.panelContainer.css("pointer-events","none"),e._$animate.pin&&e._$animate.pin(e.panelContainer,d(e.config.attachTo)),e._configureTrapFocus(),e._addStyles().then(function(){t(e)},n)},n)})},s.prototype._addStyles=function(){var e=this;return this._$q(function(t){e.panelContainer.css("z-index",e.config.zIndex),e.panelEl.css("z-index",e.config.zIndex+1);var n=function(){e._setTheming(),e.panelEl.removeClass("_md-panel-offscreen"),e.panelContainer.addClass("_md-panel-hidden"),t(e)};if(e.config.fullscreen)return e.panelEl.addClass("_md-panel-fullscreen"),void n();e.config.position?e._$rootScope.$$postDigest(function(){e._updatePosition(!0),e._setTheming(),t(e)}):n()})},s.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},s.prototype.updatePosition=function(e){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=e,this._updatePosition()},s.prototype._updatePosition=function(e){var t=this.config.position;t&&(t._setPanelPosition(this.panelEl),e&&(this.panelEl.removeClass("_md-panel-offscreen"),this.panelContainer.addClass("_md-panel-hidden")),this.panelEl.css(c.absPosition.TOP,t.getTop()),this.panelEl.css(c.absPosition.BOTTOM,t.getBottom()),this.panelEl.css(c.absPosition.LEFT,t.getLeft()),this.panelEl.css(c.absPosition.RIGHT,t.getRight()))},s.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var e=this;this._$rootScope.$$postDigest(function(){(e._$mdUtil.findFocusTarget(e.panelEl)||e.panelEl).focus()})}},s.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var e=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&e.duration(this.config.animation._rawDuration);var t={animation:e,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(t)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},s.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},s.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(e){e()}),this._removeListeners=[]},s.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var e=d(this.config.attachTo),t=this,n=function(e){e.keyCode===t._$mdConstant.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),t.close(s.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),e.on("keydown",n),this._removeListeners.push(function(){t.panelContainer.off("keydown",n),e.off("keydown",n)})}},s.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var e,n=this.config.propagateContainerEvents?t.element(document.body):this.panelContainer,r=function(t){e=t.target},i=this,o=function(t){i.config.propagateContainerEvents?e===i.panelEl[0]||i.panelEl[0].contains(e)||i.close():e===n[0]&&t.target===n[0]&&(t.stopPropagation(),t.preventDefault(),i.close(s.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",r),n.on("mouseup",o),this._removeListeners.push(function(){n.off("mousedown",r),n.off("mouseup",o)})}},s.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var e=t.bind(this,this._updatePosition),n=this._$$rAF.throttle(e),r=this,i=function(){n()};this._$window.addEventListener("scroll",i,!0),this._removeListeners.push(function(){r._$window.removeEventListener("scroll",i,!0)})}},s.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var e=this.panelEl;this._topFocusTrap=p.clone()[0],this._bottomFocusTrap=p.clone()[0];var t=function(){e.focus()};this._topFocusTrap.addEventListener("focus",t),this._bottomFocusTrap.addEventListener("focus",t),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",t),this._bottomFocusTrap.removeEventListener("focus",t)},this)),e[0].parentNode.insertBefore(this._topFocusTrap,e[0]),e.after(this._bottomFocusTrap)}},s.prototype.updateAnimation=function(e){this.config.animation=e,this._backdropRef&&this._backdropRef.config.animation.duration(e._rawDuration)},s.prototype._animateOpen=function(){this.panelContainer.addClass("md-panel-is-showing");var e=this.config.animation;if(!e)return this.panelContainer.addClass("_md-panel-shown"),this._$q.when(this);var t=this;return this._$q(function(n){var r=t._done(n,t);e.animateOpen(t.panelEl).then(r,function(){t._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),r()})})},s.prototype._animateClose=function(){var e=this.config.animation;if(!e)return this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this);var t=this;return this._$q(function(n){var r=function(){t.panelContainer.removeClass("md-panel-is-showing"),n(t)};e.animateClose(t.panelEl).then(r,function(){t._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),r()})})},s.prototype.registerInterceptor=function(e,n){var r=null;if(t.isString(e)?t.isFunction(n)||(r="Interceptor callback must be a function, instead got "+typeof n):r="Interceptor type must be a string, instead got "+typeof e,r)throw new Error("MdPanel: "+r);var i=this._interceptors[e]=this._interceptors[e]||[];return-1===i.indexOf(n)&&i.push(n),this},s.prototype.removeInterceptor=function(e,t){var n=this._interceptors[e]?this._interceptors[e].indexOf(t):-1;return n>-1&&this._interceptors[e].splice(n,1),this},s.prototype.removeAllInterceptors=function(e){return e?this._interceptors[e]=[]:this._interceptors=Object.create(null),this},s.prototype._callInterceptors=function(e){var n=this,r=n._$q;return(n._interceptors&&n._interceptors[e]||[]).reduceRight(function(e,i){var o=i&&t.isFunction(i.then)?i:null;return e.then(function(){if(!o)try{o=i(n)}catch(e){o=r.reject(e)}return o})},r.resolve(n))},s.prototype._simpleBind=function(e,t){return function(n){return e.apply(t,n)}},s.prototype._done=function(e,t){return function(){e(t)}},s.prototype.addToGroup=function(e){this._$mdPanel._groups[e]||this._$mdPanel.newPanelGroup(e);var t=this._$mdPanel._groups[e];t.panels.indexOf(this)<0&&t.panels.push(this)},s.prototype.removeFromGroup=function(e){if(!this._$mdPanel._groups[e])throw new Error("mdPanel: The group "+e+" does not exist.");var t=this._$mdPanel._groups[e],n=t.panels.indexOf(this);n>-1&&t.panels.splice(n,1)},s.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},c.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},c.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},c.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},c.viewportMargin=8,c.prototype.absolute=function(){return this._absolute=!0,this},c.prototype._setPosition=function(e,n){if(e===c.absPosition.RIGHT||e===c.absPosition.LEFT)this._left=this._right="";else{if(e!==c.absPosition.BOTTOM&&e!==c.absPosition.TOP){var r=Object.keys(c.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+r+".")}this._top=this._bottom=""}return this["_"+e]=t.isString(n)?n:"0",this},c.prototype.top=function(e){return this._setPosition(c.absPosition.TOP,e)},c.prototype.bottom=function(e){return this._setPosition(c.absPosition.BOTTOM,e)},c.prototype.start=function(e){var t=this._isRTL?c.absPosition.RIGHT:c.absPosition.LEFT;return this._setPosition(t,e)},c.prototype.end=function(e){var t=this._isRTL?c.absPosition.LEFT:c.absPosition.RIGHT;return this._setPosition(t,e)},c.prototype.left=function(e){return this._setPosition(c.absPosition.LEFT,e)},c.prototype.right=function(e){return this._setPosition(c.absPosition.RIGHT,e)},c.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},c.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},c.prototype.center=function(){return this.centerHorizontally().centerVertically()},c.prototype.relativeTo=function(e){return this._absolute=!1,this._relativeToEl=d(e),this},c.prototype.addPanelPosition=function(e,t){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return this._validateXPosition(e),this._validateYPosition(t),this._positions.push({x:e,y:t}),this},c.prototype._validateYPosition=function(e){if(null!=e){for(var t,n=Object.keys(c.yPosition),r=[],i=0;t=n[i];i++){var o=c.yPosition[t];if(r.push(o),o===e)return}throw new Error("mdPanel: Panel y position only accepts the following values:\n"+r.join(" | "))}},c.prototype._validateXPosition=function(e){if(null!=e){for(var t,n=Object.keys(c.xPosition),r=[],i=0;t=n[i];i++){var o=c.xPosition[t];if(r.push(o),o===e)return}throw new Error("mdPanel: Panel x Position only accepts the following values:\n"+r.join(" | "))}},c.prototype.withOffsetX=function(e){return this._translateX.push(e),this},c.prototype.withOffsetY=function(e){return this._translateY.push(e),this},c.prototype.getTop=function(){return this._top},c.prototype.getBottom=function(){return this._bottom},c.prototype.getLeft=function(){return this._left},c.prototype.getRight=function(){return this._right},c.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},c.prototype._setTransform=function(e){return e.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},c.prototype._isOnscreen=function(e){var t=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var r=u(e,this._$mdConstant.CSS.TRANSFORM);t+=r.x,n+=r.y}var i=t+e[0].offsetWidth,o=n+e[0].offsetHeight;return t>=0&&n>=0&&o<=this._$window.innerHeight&&i<=this._$window.innerWidth},c.prototype.getActualPosition=function(){return this._actualPosition},c.prototype._reduceTranslateValues=function(e,n){return n.map(function(n){var r=t.isFunction(n)?n(this):n;return e+"("+r+")"},this).join(" ")},c.prototype._setPanelPosition=function(e){if(e.removeClass("_md-panel-position-adjusted"),this._absolute)this._setTransform(e);else{if(this._actualPosition)return this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),void this._constrainToViewport(e);for(var t=0;t<this._positions.length;t++)if(this._actualPosition=this._positions[t],this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),this._isOnscreen(e))return;this._constrainToViewport(e)}},c.prototype._constrainToViewport=function(e){var t=c.viewportMargin,n=this._top,r=this._left;if(this.getTop()){var i=parseInt(this.getTop()),o=e[0].offsetHeight+i,a=this._$window.innerHeight;i<t?this._top=t+"px":o>a&&(this._top=i-(o-a+t)+"px")}if(this.getLeft()){var s=parseInt(this.getLeft()),l=e[0].offsetWidth+s,d=this._$window.innerWidth;s<t?this._left=t+"px":l>d&&(this._left=s-(l-d+t)+"px")}e.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==r)},c.prototype._reverseXPosition=function(e){if(e!==c.xPosition.CENTER){return e.indexOf("start")>-1?e.replace("start","end"):e.replace("end","start")}},c.prototype._bidi=function(e){return this._isRTL?this._reverseXPosition(e):e},c.prototype._calculatePanelPosition=function(e,t){var n=e[0].getBoundingClientRect(),r=n.width,i=n.height,o=this._relativeToEl[0].getBoundingClientRect(),a=o.left,s=o.right,l=o.width;switch(this._bidi(t.x)){case c.xPosition.OFFSET_START:this._left=a-r+"px";break;case c.xPosition.ALIGN_END:this._left=s-r+"px";break;case c.xPosition.CENTER:var d=a+.5*l-.5*r;this._left=d+"px";break;case c.xPosition.ALIGN_START:this._left=a+"px";break;case c.xPosition.OFFSET_END:this._left=s+"px"}var u=o.top,m=o.bottom,p=o.height;switch(t.y){case c.yPosition.ABOVE:this._top=u-i+"px";break;case c.yPosition.ALIGN_BOTTOMS:this._top=m-i+"px";break;case c.yPosition.CENTER:var h=u+.5*p-.5*i;this._top=h+"px";break;case c.yPosition.ALIGN_TOPS:this._top=u+"px";break;case c.yPosition.BELOW:this._top=m+"px"}},l.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},l.prototype.openFrom=function(e){return e=e.target?e.target:e,this._openFrom=this._getPanelAnimationTarget(e),this._closeTo||(this._closeTo=this._openFrom),this},l.prototype.closeTo=function(e){return this._closeTo=this._getPanelAnimationTarget(e),this},l.prototype.duration=function(e){function n(e){if(t.isNumber(e))return e/1e3}return e&&(t.isNumber(e)?this._openDuration=this._closeDuration=n(e):t.isObject(e)&&(this._openDuration=n(e.open),this._closeDuration=n(e.close))),this._rawDuration=e,this},l.prototype._getPanelAnimationTarget=function(e){return t.isDefined(e.top)||t.isDefined(e.left)?{element:n,bounds:{top:e.top||0,left:e.left||0}}:this._getBoundingClientRect(d(e))},l.prototype.withAnimation=function(e){return this._animationClass=e,this},l.prototype.animateOpen=function(e){var n=this._$mdUtil.dom.animator;this._fixBounds(e);var r={},i=e[0].style.transform||"",o=n.toTransformCss(i),a=n.toTransformCss(i);switch(this._animationClass){case l.animation.SLIDE:e.css("opacity","1"),r={transitionInClass:"_md-panel-animate-enter"};var s=n.calculateSlideToOrigin(e,this._openFrom)||"";o=n.toTransformCss(s+" "+i);break;case l.animation.SCALE:r={transitionInClass:"_md-panel-animate-enter"};var c=n.calculateZoomToOrigin(e,this._openFrom)||"";o=n.toTransformCss(c+" "+i);break;case l.animation.FADE:r={transitionInClass:"_md-panel-animate-enter"};break;default:r=t.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return r.duration=this._openDuration,n.translate3d(e,o,a,r)},l.prototype.animateClose=function(e){var n=this._$mdUtil.dom.animator,r={},i=e[0].style.transform||"",o=n.toTransformCss(i),a=n.toTransformCss(i);switch(this._animationClass){case l.animation.SLIDE:e.css("opacity","1"),r={transitionInClass:"_md-panel-animate-leave"};var s=n.calculateSlideToOrigin(e,this._closeTo)||"";a=n.toTransformCss(s+" "+i);break;case l.animation.SCALE:r={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};var c=n.calculateZoomToOrigin(e,this._closeTo)||"";a=n.toTransformCss(c+" "+i);break;case l.animation.FADE:r={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:r=t.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return r.duration=this._closeDuration,n.translate3d(e,o,a,r)},l.prototype._fixBounds=function(e){var t=e[0].offsetWidth,n=e[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=n),this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=t),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=t)},l.prototype._getBoundingClientRect=function(e){if(e instanceof t.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),function(){function e(e,n,r){function i(r,i,u){function m(){var e=(u.mdMode||"").trim();if(e)switch(e){case a:case s:case c:case l:break;default:e=s}return e}function p(e,r){if(!f&&m()){var i=n.supplant("translateX({0}%) scale({1},1)",[(r-100)/2,r/100]),o=g({transform:i});t.element(e).css(o)}}e(i);var h,f=u.hasOwnProperty("disabled"),g=n.dom.animator.toCss,v=t.element(i[0].querySelector(".md-bar1")),$=t.element(i[0].querySelector(".md-bar2")),b=t.element(i[0].querySelector(".md-container"));i.attr("md-mode",m()).toggleClass(d,f),function(){if(t.isUndefined(u.mdMode)){var e=t.isDefined(u.value)?a:s;i.attr("md-mode",e),u.mdMode=e}}(),u.$observe("value",function(e){var t=o(e);i.attr("aria-valuenow",t),m()!=l&&p($,t)}),u.$observe("mdBufferValue",function(e){p(v,o(e))}),u.$observe("disabled",function(e){f=!0===e||!1===e?!!e:t.isDefined(e),i.toggleClass(d,f),b.toggleClass(h,!f)}),u.$observe("mdMode",function(e){switch(h&&b.removeClass(h),e){case l:case c:case a:case s:b.addClass(h="md-mode-"+e);break;default:b.addClass(h="md-mode-"+s)}})}function o(e){return Math.max(0,Math.min(e||0,100))}var a="determinate",s="indeterminate",c="buffer",l="query",d="_md-progress-linear-disabled";return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:function(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),i}}}e.$inject=["$mdTheming","$mdUtil","$log"],t.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",e)}(),function(){function e(e,n,r,i){function o(e){this._radioButtonRenderFns=[],this.$element=e}function a(n,r){var i=e.iterator(n[0].querySelectorAll("md-radio-button"),!0);if(i.count()){var o=n[0].querySelector("md-radio-button.md-checked"),a=i[r<0?"previous":"next"](o,function(e){return!t.element(e).attr("disabled")})||i.first();t.element(a).triggerHandler("click")}}return o.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=t.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){var t=this._radioButtonRenderFns.indexOf(e);-1!==t&&this._radioButtonRenderFns.splice(t,1)},render:function(){this._radioButtonRenderFns.forEach(function(e){e()})},setViewValue:function(e,t){this._ngModelCtrl.$setViewValue(e,t),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return a(this.$element,1)},selectPrevious:function(){return a(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)},isDisabled:function(){return this.$element[0].hasAttribute("disabled")}},{restrict:"E",controller:["$element",o],require:["mdRadioGroup","?ngModel"],link:{pre:function(o,a,s,c){function l(){a.hasClass("md-focused")||a.addClass("md-focused")}a.addClass("_md"),r(a);var d=c[0],u=c[1]||e.fakeNgModel();d.init(u),o.mouseActive=!1,a.attr({role:"radiogroup",tabIndex:a.attr("tabindex")||"0"}).on("keydown",function(r){var i=r.which||r.keyCode;if(i==n.KEY_CODE.ENTER||r.currentTarget==r.target)switch(i){case n.KEY_CODE.LEFT_ARROW:case n.KEY_CODE.UP_ARROW:r.preventDefault(),d.selectPrevious(),l();break;case n.KEY_CODE.RIGHT_ARROW:case n.KEY_CODE.DOWN_ARROW:r.preventDefault(),d.selectNext(),l();break;case n.KEY_CODE.ENTER:var o=t.element(e.getClosest(a[0],"form"));o.length>0&&o.triggerHandler("submit")}}).on("mousedown",function(e){o.mouseActive=!0,i(function(){o.mouseActive=!1},100)}).on("focus",function(){!1===o.mouseActive&&d.$element.addClass("md-focused")}).on("blur",function(){d.$element.removeClass("md-focused")})}}}}function n(e,t,n){var r="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:function(i,o,a,s){function c(){if(!s)throw"RadioButton: No RadioGroupController could be found.";s.add(d),a.$observe("value",d),o.on("click",l).on("$destroy",function(){s.remove(d)})}function l(e){o[0].hasAttribute("disabled")||s.isDisabled()||i.$apply(function(){s.setViewValue(a.value,e&&e.type)})}function d(){var e=s.getViewValue()==a.value;e!==u&&("md-radio-group"!==o[0].parentNode.nodeName.toLowerCase()&&o.parent().toggleClass(r,e),e&&s.setActiveDescendant(o.attr("id")),u=e,o.attr("aria-checked",e).toggleClass(r,e))}var u;n(o),function(n,r){n.attr({id:a.id||"radio_"+t.nextUid(),role:"radio","aria-checked":"false"}),e.expectWithText(n,"aria-label")}(o),a.ngValue?t.nextTick(c,!1):c()}}}e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],n.$inject=["$mdAria","$mdUtil","$mdTheming"],t.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",n)}(),function(){function e(e,t){return["$mdUtil","$window",function(n,r){return{restrict:"A",multiElement:!0,link:function(i,o,a){var s=i.$on("$md-resize-enable",function(){s();var c=o[0],l=c.nodeType===r.Node.ELEMENT_NODE?r.getComputedStyle(c):{};i.$watch(a[e],function(e){if(!!e===t){n.nextTick(function(){i.$broadcast("$md-resize")});var r={cachedTransitionStyles:l};n.dom.animator.waitTransitionEnd(o,r).then(function(){i.$broadcast("$md-resize")})}})})}}}]}t.module("material.components.showHide",["material.core"]).directive("ngShow",e("ngShow",!0)).directive("ngHide",e("ngHide",!1))}(),function(){function e(e,r,i,o){function a(e,n){var o=function(){return!1},a=function(){return i.when(r.supplant(c,[n||""]))};return t.extend({isLockedOpen:o,isOpen:o,toggle:a,open:a,close:a,onClose:t.noop,then:function(e){return s(n).then(e||t.noop)}},e)}function s(t){return e.when(t).catch(o.error)}var c="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",l={find:function(t,i){var a=e.get(t);return a||i?a:(o.error(r.supplant(c,[t||""])),n)},waitFor:s};return function(e,n){if(t.isUndefined(e))return l;var r=!0===n,i=l.find(e,r);return!i&&r?l.waitFor(e):!i&&t.isUndefined(n)?a(l,e):i}}function r(e,r,i,o,a,s,c,l,d,u,m,p,h){function f(c,f,g,v){function $(e,t){var n=f[0],r=e[0].scrollTop;if(t&&r){A={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var i={top:r+"px",bottom:"auto",height:e[0].clientHeight+"px"};f.css(i),w.css(i)}if(!t&&A)return function(){n.style.top=A.top,n.style.bottom=A.bottom,n.style.height=A.height,w[0].style.top=null,w[0].style.bottom=null,w[0].style.height=null,A=null}}function b(e){e&&!C?(C=x.css("overflow"),x.css("overflow","hidden")):t.isDefined(C)&&(x.css("overflow",C),C=n)}function y(e){return e.keyCode===i.KEY_CODE.ESCAPE?E(e):u.when(!0)}function E(e){return e.preventDefault(),v.close()}var C,w,M,A,x=null,k=null,T=u.when(!0),_=l(g.mdIsLockedOpen),S=t.element(p);g.mdDisableScrollTarget&&((x=m[0].querySelector(g.mdDisableScrollTarget))?x=t.element(x):d.warn(r.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:g.mdDisableScrollTarget}))),x||(x=f.parent()),g.hasOwnProperty("mdDisableBackdrop")||(w=r.createBackdrop(c,"md-sidenav-backdrop md-opaque ng-enter")),f.addClass("_md"),o(f),w&&o.inherit(w,f),f.on("$destroy",function(){w&&w.remove(),v.destroy()}),c.$on("$destroy",function(){w&&w.remove()}),c.$watch(function(){return _(c.$parent,{$media:function(t){return d.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),e(t)},$mdMedia:e})},function(e,t){c.isLockedOpen=e,e===t?f.toggleClass("md-locked-open",!!e):s[e?"addClass":"removeClass"](f,"md-locked-open"),w&&w.toggleClass("md-locked-open",!!e)}),c.$watch("isOpen",function(e){var t=r.findFocusTarget(f)||r.findFocusTarget(f,"[md-sidenav-focus]")||f,n=f.parent();n[e?"on":"off"]("keydown",y),w&&w[e?"on":"off"]("click",E);var i=$(n,e);return e&&(k=m[0].activeElement,M=a.getLastInteractionType()),b(e),T=u.all([e&&w?s.enter(w,n):w?s.leave(w):u.when(!0),s[e?"removeClass":"addClass"](f,"md-closed")]).then(function(){c.isOpen&&(h(function(){S.triggerHandler("resize")}),t&&t.focus()),i&&i()})}),v.$toggleOpen=function(e){return c.isOpen==e?u.when(!0):(c.isOpen&&v.onCloseCb&&v.onCloseCb(),u(function(t){c.isOpen=e,r.nextTick(function(){T.then(function(e){!c.isOpen&&k&&"keyboard"===M&&(k.focus(),k=null),t(e)})})}))}}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),f}}}function i(e,t,n,r,i){var o=this;o.isOpen=function(){return!!e.isOpen},o.isLockedOpen=function(){return!!e.isLockedOpen},o.onClose=function(e){return o.onCloseCb=e,o},o.open=function(){return o.$toggleOpen(!0)},o.close=function(){return o.$toggleOpen(!1)},o.toggle=function(){return o.$toggleOpen(!e.isOpen)},o.$toggleOpen=function(t){return r.when(e.isOpen=t)};var a=t.mdComponentId,s=a&&a.indexOf(i.startSymbol())>-1,c=s?i(a)(e.$parent):a;o.destroy=n.register(o,c),s&&t.$observe("mdComponentId",function(e){e&&e!==o.$$mdHandle&&(o.destroy(),o.destroy=n.register(o,e))})}e.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],r.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],i.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],t.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",r).directive("mdSidenavFocus",function(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,r){}}}).controller("$mdSidenavController",i)}(),function(){function r(e,r,i,o,a,c,l,d){var u=i.KEY_CODE;u.SPACE,u.ENTER,u.UP_ARROW,u.DOWN_ARROW;return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:function(d,u){var m=t.element("<md-select-value><span></span></md-select-value>");if(m.append('<span class="md-select-icon" aria-hidden="true"></span>'),m.addClass("md-select-value"),m[0].hasAttribute("id")||m.attr("id","select_value_label_"+r.nextUid()),d.find("md-content").length||d.append(t.element("<md-content>").append(d.contents())),u.mdOnOpen&&(d.find("md-content").prepend(t.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),d.find("md-option").attr("ng-show","$$loadingAsyncDone")),u.name){var p=t.element('<select class="md-visually-hidden">');p.attr({name:u.name,"aria-hidden":"true",tabindex:"-1"});var h=d.find("md-option");t.forEach(h,function(e){var n=t.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?n.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&n.attr("value",e.getAttribute("value")),p.append(n)}),p.append('<option ng-value="'+u.ngModel+'" selected></option>'),d.parent().append(p)}var f=r.parseAttributeBoolean(u.multiple),g=f?"multiple":"",v='<div class="md-select-menu-container" aria-hidden="true"><md-select-menu {0}>{1}</md-select-menu></div>';return v=r.supplant(v,[g,d.html()]),d.empty().append(m),d.append(v),u.tabindex||u.$set("tabindex",0),function(d,u,m,p){function h(){var e=u.attr("aria-label")||u.attr("placeholder");!e&&M&&M.label&&(e=M.label.text()),C=e,a.expect(u,"aria-label",e)}function g(){D&&(I=I||D.find("md-select-menu").controller("mdSelectMenu"),A.setLabelText(I.selectedLabels()))}function v(){if(C){var e=I.selectedLabels({mode:"aria"});u.attr("aria-label",e.length?C+": "+e:C)}}function $(){M&&M.setHasValue(I.selectedLabels().length>0||(u[0].validity||{}).badInput)}function b(e){if(i.isNavigationKey(e))e.preventDefault(),y();else if(s(e,i)){e.preventDefault();var n=I.optNodeForKeyboardSearch(e);if(!n||n.hasAttribute("disabled"))return;var r=t.element(n).controller("mdOption");I.isMultiple||I.deselect(Object.keys(I.selected)[0]),I.select(r.hashKey,r.value),I.refreshViewValue()}}function y(){O._mdSelectIsOpen=!0,u.attr("aria-expanded","true"),e.show({scope:O,preserveScope:!0,skipCompile:!0,element:D,target:u[0],selectCtrl:A,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!m.mdOnOpen&&(d.$eval(m.mdOnOpen)||!0)}).finally(function(){O._mdSelectIsOpen=!1,u.focus(),u.attr("aria-expanded","false"),x.$setTouched()})}var E,C,w=!0,M=p[0],A=p[1],x=p[2],k=p[3],T=u.find("md-select-value"),_=t.isDefined(m.readonly),S=r.parseAttributeBoolean(m.mdNoAsterisk);if(S&&u.addClass("md-no-asterisk"),M){var N=M.isErrorGetter||function(){return x.$invalid&&(x.$touched||k&&k.$submitted)};if(M.input&&u.find("md-select-header").find("input")[0]!==M.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");M.input=u,M.label||a.expect(u,"aria-label",u.attr("placeholder")),d.$watch(N,M.setInvalid)}var D,O,I;!function(){if(D=t.element(u[0].querySelector(".md-select-menu-container")),O=d,m.mdContainerClass){var e=D[0].getAttribute("class")+" "+m.mdContainerClass;D[0].setAttribute("class",e)}(I=D.find("md-select-menu").controller("mdSelectMenu")).init(x,m.ngModel),u.on("$destroy",function(){D.remove()})}(),o(u),k&&t.isDefined(m.multiple)&&r.nextTick(function(){(x.$modelValue||x.$viewValue)&&k.$setPristine()});var H=x.$render;x.$render=function(){H(),g(),v(),$()},m.$observe("placeholder",x.$render),M&&M.label&&m.$observe("required",function(e){M.label.toggleClass("md-required",e&&!S)}),A.setLabelText=function(e){A.setIsPlaceholder(!e);var t=!1;if(m.mdSelectedText&&m.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");m.mdSelectedText||m.mdSelectedHtml?(e=c(m.mdSelectedText||m.mdSelectedHtml)(d),t=!0):e||(e=m.placeholder||(M&&M.label?M.label.text():"")||"",t=!0);var n=T.children().eq(0);m.mdSelectedHtml?n.html(l.getTrustedHtml(e)):t?n.text(e):n.html(e)},A.setIsPlaceholder=function(e){e?(T.addClass("md-select-placeholder"),M&&M.label&&M.label.addClass("md-placeholder")):(T.removeClass("md-select-placeholder"),M&&M.label&&M.label.removeClass("md-placeholder"))},_||(u.on("focus",function(e){M&&M.setFocused(!0)}),u.on("blur",function(e){w&&(w=!1,O._mdSelectIsOpen&&e.stopImmediatePropagation()),O._mdSelectIsOpen||(M&&M.setFocused(!1),$())})),A.triggerClose=function(){c(m.mdOnClose)(d)},d.$$postDigest(function(){h(),g(),v()}),d.$watch(function(){return I.selectedLabels()},g);var P;m.$observe("ngMultiple",function(e){P&&P();var t=c(e);P=d.$watch(function(){return t(d)},function(e,t){e===n&&t===n||(e?u.attr("multiple","multiple"):u.removeAttr("multiple"),u.attr("aria-multiselectable",e?"true":"false"),D&&(I.setMultiple(e),H=x.$render,x.$render=function(){H(),g(),v(),$()},x.$render()))})}),m.$observe("disabled",function(e){t.isString(e)&&(e=!0),E!==n&&E===e||(E=e,e?u.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",y).off("keydown",b):u.attr({tabindex:m.tabindex,"aria-disabled":"false"}).on("click",y).on("keydown",b))}),m.hasOwnProperty("disabled")||m.hasOwnProperty("ngDisabled")||(u.attr({"aria-disabled":"false"}),u.on("click",y),u.on("keydown",b));var R={role:"listbox","aria-expanded":"false","aria-multiselectable":f&&!m.ngMultiple?"true":"false"};u[0].hasAttribute("id")||(R.id="select_"+r.nextUid());var L="select_container_"+r.nextUid();D.attr("id",L),R["aria-owns"]=L,u.attr(R),d.$on("$destroy",function(){e.destroy().finally(function(){M&&(M.setFocused(!1),M.setHasValue(!1),M.input=null),x.$setTouched()})})}},controller:function(){}}}function i(e,r,i,o){function a(o,a,s){function c(){var e=u.ngModel.$modelValue||u.ngModel.$viewValue||[];if(t.isArray(e)){var n=Object.keys(u.selected),r=e.map(u.hashGetter);n.filter(function(e){return-1===r.indexOf(e)}).forEach(u.deselect),r.forEach(function(t,n){u.select(t,e[n])})}}function d(){var e=u.ngModel.$viewValue||u.ngModel.$modelValue;Object.keys(u.selected).forEach(u.deselect),u.select(u.hashGetter(e),e)}var u=this;u.isMultiple=t.isDefined(a.multiple),u.selected={},u.options={},o.$watchCollection(function(){return u.options},function(){u.ngModel.$render()});var m;u.setMultiple=function(e){function n(e,n){return t.isArray(e||n||[])}var r=u.ngModel;m=m||r.$isEmpty,u.isMultiple=e,u.isMultiple?(r.$validators["md-multiple"]=n,r.$render=c,o.$watchCollection(u.modelBinding,function(e){n(e)&&c(),u.ngModel.$setPristine()}),r.$isEmpty=function(e){return!e||0===e.length}):(delete r.$validators["md-multiple"],r.$render=d)};var p,h,f,g="";u.optNodeForKeyboardSearch=function(e){p&&clearTimeout(p),p=setTimeout(function(){p=n,g="",f=n,h=n},300);var r=e.keyCode-(i.isNumPadKey(e)?48:0);g+=String.fromCharCode(r);var o=new RegExp("^"+g,"i");h||(h=s.find("md-option"),f=new Array(h.length),t.forEach(h,function(e,t){f[t]=e.textContent.trim()}));for(var a=0;a<f.length;++a)if(o.test(f[a]))return h[a]},u.init=function(n,i){u.ngModel=n,u.modelBinding=i,u.ngModel.$isEmpty=function(e){return!u.options[u.hashGetter(e)]};var a=r.getModelOption(n,"trackBy");if(a){var s={},c=e(a);u.hashGetter=function(e,t){return s.$value=e,c(t||o,s)}}else u.hashGetter=function(e){return t.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++l)):e};u.setMultiple(u.isMultiple)},u.selectedLabels=function(e){var t=(e=e||{}).mode||"html",n=r.nodesToArray(s[0].querySelectorAll("md-option[selected]"));if(n.length){var i;return"html"==t?i=function(e){if(e.hasAttribute("md-option-empty"))return"";var t=e.innerHTML,n=e.querySelector(".md-ripple-container");n&&(t=t.replace(n.outerHTML,""));var r=e.querySelector(".md-container");return r&&(t=t.replace(r.outerHTML,"")),t}:"aria"==t&&(i=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),r.uniq(n.map(i)).join(", ")}return""},u.select=function(e,t){var n=u.options[e];n&&n.setSelected(!0),u.selected[e]=t},u.deselect=function(e){var t=u.options[e];t&&t.setSelected(!1),delete u.selected[e]},u.addOption=function(e,n){if(t.isDefined(u.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');u.options[e]=n,t.isDefined(u.selected[e])&&(u.select(e,n.value),t.isDefined(u.ngModel.$modelValue)&&u.hashGetter(u.ngModel.$modelValue)===e&&u.ngModel.$validate(),u.refreshViewValue())},u.removeOption=function(e){delete u.options[e]},u.refreshViewValue=function(){var e,n=[];for(var i in u.selected)(e=u.options[i])?n.push(e.value):n.push(u.selected[i]);var o=r.getModelOption(u.ngModel,"trackBy"),a=u.isMultiple?n:n[0],s=u.ngModel.$modelValue;(o?t.equals(s,a):s+""===a)||(u.ngModel.$setViewValue(a),u.ngModel.$render())}}return a.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu"],scope:!1,controller:a,link:{pre:function(e,n,i,a){function s(n){var i=r.getClosest(n.target,"md-option"),o=i&&t.element(i).data("$mdOptionController");if(i&&o){if(i.hasAttribute("disabled"))return n.stopImmediatePropagation(),!1;var a=c.hashGetter(o.value),s=t.isDefined(c.selected[a]);e.$apply(function(){c.isMultiple?s?c.deselect(a):c.select(a,o.value):s||(c.deselect(Object.keys(c.selected)[0]),c.select(a,o.value)),c.refreshViewValue()})}}var c=a[0];n.addClass("_md"),o(n),n.on("click",s),n.on("keypress",function(e){13!=e.keyCode&&32!=e.keyCode||s(e)})}}}}function o(e,n,r){function i(e){var t=e.value,n=e.ngValue;return t||n}function o(i,o,a,s){function c(e,t,n){if(u.hashGetter){var r=u.hashGetter(t,i),o=u.hashGetter(e,i);l.hashKey=o,l.value=e,u.removeOption(r,l),u.addOption(o,l)}else n||i.$$postDigest(function(){c(e,t,!0)})}var l=s[0],u=s[1];r(o),u.isMultiple&&(o.addClass("md-checkbox-enabled"),o.prepend(d.clone())),t.isDefined(a.ngValue)?i.$watch(a.ngValue,c):t.isDefined(a.value)?c(a.value):i.$watch(function(){return o.text().trim()},c),a.$observe("disabled",function(e){e?o.attr("tabindex","-1"):o.attr("tabindex","0")}),i.$$postDigest(function(){a.$observe("selected",function(e){t.isDefined(e)&&("string"==typeof e&&(e=!0),e?(u.isMultiple||u.deselect(Object.keys(u.selected)[0]),u.select(l.hashKey,l.value)):u.deselect(l.hashKey),u.refreshViewValue())})}),e.attach(i,o),function(){var e={role:"option","aria-selected":"false"};o[0].hasAttribute("id")||(e.id="select_option_"+n.nextUid()),o.attr(e)}(),i.$on("$destroy",function(){u.removeOption(l.hashKey,l)})}function a(e){this.selected=!1,this.setSelected=function(t){t&&!this.selected?e.attr({selected:"selected","aria-selected":"true"}):!t&&this.selected&&(e.removeAttr("selected"),e.attr("aria-selected","false")),this.selected=t}}return a.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:a,compile:function(e,n){return e.append(t.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",n.tabindex||"0"),i(n)||e.attr("md-option-empty",""),o}}}function a(r){function i(r,i,u,m,p,h,f,g,v){function $(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setLabelText(n?n.selectedLabels():""),t.triggerClose()}}function b(n,r,i){var s,p=r[0],h=i.target[0].children[0],f=v[0].body,g=i.selectEl[0],$=i.contentEl[0],b=f.getBoundingClientRect(),y=h.getBoundingClientRect(),E={left:b.left+c,top:c,bottom:b.height-c,right:b.width-c-(u.floatingScrollbars()?16:0)},C={top:y.top-E.top,left:y.left-E.left,right:E.right-(y.left+y.width),bottom:E.bottom-(y.top+y.height)},w=b.width-2*c,M=g.querySelector("md-option[selected]"),A=g.getElementsByTagName("md-option"),x=g.getElementsByTagName("md-optgroup"),k=d(r,$);s=o(i.loadingAsync)?$.firstElementChild||$:M||(x.length?x[0]:A.length?A[0]:$.firstElementChild||$),$.offsetWidth>w?$.style["max-width"]=w+"px":$.style.maxWidth=null,k&&g.classList.add("md-overflow");var T=s;"MD-OPTGROUP"===(T.tagName||"").toUpperCase()&&(s=T=A[0]||$.firstElementChild||$),i.focusedNode=T,p.style.display="block";var _=g.getBoundingClientRect(),S=l(s);if(s){var N=m.getComputedStyle(s);S.paddingLeft=parseInt(N.paddingLeft,10)||0,S.paddingRight=parseInt(N.paddingRight,10)||0}if(k){var D=$.offsetHeight/2;$.scrollTop=S.top+S.height/2-D,C.top<D?$.scrollTop=Math.min(S.top,$.scrollTop+D-C.top):C.bottom<D&&($.scrollTop=Math.max(S.top+S.height-_.height,$.scrollTop-D+C.bottom))}var O,I,H,P,R;O=y.left+S.left-S.paddingLeft+2,I=Math.floor(y.top+y.height/2-S.height/2-S.top+$.scrollTop)+2,H=S.left+y.width/2+"px "+(S.top+S.height/2-$.scrollTop)+"px 0px",P=Math.min(y.width+S.paddingLeft+S.paddingRight,w),R=e.getComputedStyle(h)["font-size"];var L=p.getBoundingClientRect(),j=Math.round(100*Math.min(y.width/_.width,1))/100,B=Math.round(100*Math.min(y.height/_.height,1))/100;return{container:{element:t.element(p),styles:{left:Math.floor(a(E.left,O,E.right-L.width)),top:Math.floor(a(E.top,I,E.bottom-L.height)),"min-width":P,"font-size":R}},dropDown:{element:t.element(g),styles:{transformOrigin:H,transform:i.alreadyOpen?"":u.supplant("scale({0},{1})",[j,B])}}}}var y="$mdSelect.show() expected a target element in options.target but got '{0}'!",E=u.dom.animator,C=i.KEY_CODE;return{parent:"body",themable:!0,onShow:function(e,o,a){function c(){return p(function(e){if(a.isRemoved)return p.reject(!1);var t=b(0,o,a);t.container.element.css(E.toCss(t.container.styles)),t.dropDown.element.css(E.toCss(t.dropDown.styles)),h(function(){o.addClass("md-active"),t.dropDown.element.css(E.toCss({transform:""})),l(a.focusedNode),e()})})}function l(e){e&&!e.hasAttribute("disabled")&&e.focus()}function d(){var e=function(e,t,n){return function(){if(!n.isRemoved){var e=b(0,t,n),r=e.container,i=e.dropDown;r.element.css(E.toCss(r.styles)),i.element.css(E.toCss(i.styles))}}}(0,o,a),n=t.element(m);return n.on("resize",e),n.on("orientationchange",e),function(){n.off("resize",e),n.off("orientationchange",e)}}function $(){function e(e){e.preventDefault(),e.stopPropagation(),a.restoreFocus=!1,u.nextTick(r.hide,!0)}function t(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case C.UP_ARROW:return d();case C.DOWN_ARROW:return l();case C.SPACE:case C.ENTER:var t=u.getClosest(e.target,"md-option");t&&(p.triggerHandler({type:"click",target:t}),e.preventDefault()),m(e);break;case C.TAB:case C.ESCAPE:e.stopPropagation(),e.preventDefault(),a.restoreFocus=!0,u.nextTick(r.hide,!0);break;default:if(s(e,i)){var n=p.controller("mdSelectMenu").optNodeForKeyboardSearch(e);a.focusedNode=n||a.focusedNode,n&&n.focus()}}}function c(e){var t,r=u.nodesToArray(a.optionNodes),i=r.indexOf(a.focusedNode);do{-1===i?i=0:"next"===e&&i<r.length-1?i++:"prev"===e&&i>0&&i--,(t=r[i]).hasAttribute("disabled")&&(t=n)}while(!t&&i<r.length-1&&i>0);t&&t.focus(),a.focusedNode=t}function l(){c("next")}function d(){c("prev")}function m(e){if(!(e&&"click"==e.type&&e.currentTarget!=p[0]||function(){var t=!1;if(e&&e.currentTarget.children.length>0){var n=e.currentTarget.children[0];n.scrollHeight>n.clientHeight&&n.children.length>0&&e.pageX-e.currentTarget.getBoundingClientRect().left>n.querySelector("md-option").offsetWidth&&(t=!0)}return t}())){var t=u.getClosest(e.target,"md-option");t&&t.hasAttribute&&!t.hasAttribute("disabled")&&(e.preventDefault(),e.stopPropagation(),h.isMultiple||(a.restoreFocus=!0,u.nextTick(function(){r.hide(h.ngModel.$viewValue)},!0)))}}if(!a.isRemoved){var p=a.selectEl,h=p.controller("mdSelectMenu")||{};return o.addClass("md-clickable"),a.backdrop&&a.backdrop.on("click",e),p.on("keydown",t),p.on("click",m),function(){a.backdrop&&a.backdrop.off("click",e),p.off("keydown",t),p.off("click",m),o.removeClass("md-clickable"),a.isRemoved=!0}}}return a.loadingAsync&&!a.isRemoved&&(e.$$loadingAsyncDone=!1,p.when(a.loadingAsync).then(function(){e.$$loadingAsyncDone=!0,delete a.loadingAsync}).then(function(){h(c)})),function(e,n){var r=o.find("md-select-menu");if(!n.target)throw new Error(u.supplant(y,[n.target]));t.extend(n,{isRemoved:!1,target:t.element(n.target),parent:t.element(n.parent),selectEl:r,contentEl:o.find("md-content"),optionNodes:r[0].getElementsByTagName("md-option")})}(0,a),a.hideBackdrop=function(e,t,n){return n.disableParentScroll&&!u.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=u.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1,n.hasBackdrop&&(n.backdrop=u.createBackdrop(e,"md-select-backdrop md-click-catcher"),g.enter(n.backdrop,v[0].body,null,{duration:0})),function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll(),delete n.restoreScroll}}(e,0,a),function(e,t,n){return n.parent.append(t),p(function(e,n){try{f(t,{removeClass:"md-leave",duration:0}).start().then(c).then(e)}catch(e){n(e)}})}(0,o,a).then(function(e){return o.attr("aria-hidden","false"),a.alreadyOpen=!0,a.cleanupInteraction=$(),a.cleanupResizing=d(),e},a.hideBackdrop)},onRemove:function(e,t,n){function r(){t.removeClass("md-active"),t.attr("aria-hidden","true"),t[0].style.display="none",$(n),!n.$destroy&&n.restoreFocus&&n.target.focus()}return(n=n||{}).cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),!0===n.$destroy?r():f(t,{addClass:"md-leave"}).start().then(r)},hasBackdrop:!0,disableParentScroll:!0}}function o(e){return e&&t.isFunction(e.then)}function a(e,t,n){return Math.max(e,Math.min(t,n))}function l(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}function d(e,t){var n=!1;try{var r=e[0].style.display;e[0].style.display="block",n=t.scrollHeight>t.offsetHeight,e[0].style.display=r}finally{}return n}return i.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],r("$mdSelect").setDefaults({methods:["target"],options:i})}function s(e,t){var n=String.fromCharCode(e.keyCode),r=e.keyCode<=31;return n&&n.length&&!r&&!t.isMetaKey(e)&&!t.isFnLockKey(e)&&!t.hasModifierKey(e)}r.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],i.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],o.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],a.$inject=["$$interimElementProvider"];var c=8,l=0,d=t.element('<div class="md-container"><div class="md-icon"></div></div>');t.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",r).directive("mdSelectMenu",i).directive("mdOption",o).directive("mdOptgroup",function(){return{restrict:"E",compile:function(e,n){e.parent().find("md-select-header").length||function(){var r=e.find("label");r.length||(r=t.element("<label>"),e.prepend(r)),r.addClass("md-container-ignore"),n.label&&r.text(n.label)}()}}}).directive("mdSelectHeader",function(){return{restrict:"E"}}).provider("$mdSelect",a)}(),function(){function e(e,n,r,i,o,a,s,c,l,d){function u(r,u,m,p){function h(){E(),M()}function f(e){X=parseFloat(e),u.attr("aria-valuemin",e),h()}function g(e){Z=parseFloat(e),u.attr("aria-valuemax",e),h()}function v(e){J=parseFloat(e)}function $(e){Q=A(parseInt(e),0,6)}function b(){if(Y&&!R()&&!t.isUndefined(J)){if(J<=0){var e="Slider step value must be greater than zero when in discrete mode";throw l.error(e),new Error(e)}var r=Math.floor((Z-X)/J);ee||(ee=t.element("<canvas>").css("position","absolute"),q.append(ee),te=ee[0].getContext("2d"));var i=C();!i||i.height||i.width||(E(),i=ne),ee[0].width=i.width,ee[0].height=i.height;for(var o,a=0;a<=r;a++){var s=n.getComputedStyle(q[0]);te.fillStyle=s.color||"black",o=Math.floor((W?i.height:i.width)*(a/r)),te.fillRect(W?0:o-1,W?o-1:0,W?i.width:2,W?2:i.height)}}}function y(){if(ee&&te){var e=C();te.clearRect(0,0,e.width,e.height)}}function E(){ne=F[0].getBoundingClientRect()}function C(){return z(),ne}function w(e){H.$setViewValue(A(x(e)))}function M(){isNaN(H.$viewValue)&&(H.$viewValue=H.$modelValue),H.$viewValue=A(H.$viewValue);var e=I(H.$viewValue);r.modelValue=H.$viewValue,u.attr("aria-valuenow",H.$viewValue),k(e),j.text(H.$viewValue)}function A(e,n,r){if(t.isNumber(e))return n=t.isNumber(n)?n:X,r=t.isNumber(r)?r:Z,Math.max(n,Math.min(r,e))}function x(e){if(t.isNumber(e)){var n=Math.round((e-X)/J)*J+X;return n=Math.round(n*Math.pow(10,Q))/Math.pow(10,Q),P&&P.fitInputWidthToTextLength&&i.debounce(function(){P.fitInputWidthToTextLength(n.toString().length)},100)(),n}}function k(e){var t=100*(e=N(e))+"%",n=K?100*(1-e)+"%":t;W?B.css("bottom",t):i.bidiProperty(B,"left","right",t),U.css(W?"height":"width",n),u.toggleClass(K?"md-max":"md-min",0===e),u.toggleClass(K?"md-min":"md-max",1===e)}function T(e){Y?S(W?e.pointer.y:e.pointer.x):_(W?e.pointer.y:e.pointer.x)}function _(e){r.$evalAsync(function(){w(O(D(e)))})}function S(e){var t=A(x(O(D(e))));k(D(e)),j.text(t)}function N(e){return Math.max(0,Math.min(e||0,1))}function D(e){var t=(e-(W?ne.top:ne.left))/(W?ne.height:ne.width);return W||"rtl"!==i.bidi()||(t=1-t),Math.max(0,Math.min(1,W?1-t:t))}function O(e){return X+(K?1-e:e)*(Z-X)}function I(e){var t=(e-X)/(Z-X);return K?1-t:t}a(u);var H=p[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},P=p[1],R=(t.element(i.getClosest(u,"_md-slider-container",!0)),m.ngDisabled?t.bind(null,c(m.ngDisabled),r.$parent):function(){return u[0].hasAttribute("disabled")}),L=t.element(u[0].querySelector(".md-thumb")),j=t.element(u[0].querySelector(".md-thumb-text")),B=L.parent(),F=t.element(u[0].querySelector(".md-track-container")),U=t.element(u[0].querySelector(".md-track-fill")),q=t.element(u[0].querySelector(".md-track-ticks")),V=t.element(u[0].getElementsByClassName("md-slider-wrapper")),z=(t.element(u[0].getElementsByClassName("md-slider-content")),i.throttle(E,5e3)),W=t.isDefined(m.mdVertical),Y=t.isDefined(m.mdDiscrete),K=t.isDefined(m.mdInvert);t.isDefined(m.min)?m.$observe("min",f):f(0),t.isDefined(m.max)?m.$observe("max",g):g(100),t.isDefined(m.step)?m.$observe("step",v):v(1),t.isDefined(m.round)?m.$observe("round",$):$(3);t.noop;m.ngDisabled&&r.$parent.$watch(m.ngDisabled,function(){u.attr("aria-disabled",!!R())}),s.register(V,"drag",{horizontal:!W}),r.mouseActive=!1,V.on("keydown",function(e){if(!R()){var t;(W?e.keyCode===o.KEY_CODE.DOWN_ARROW:e.keyCode===o.KEY_CODE.LEFT_ARROW)?t=-J:(W?e.keyCode===o.KEY_CODE.UP_ARROW:e.keyCode===o.KEY_CODE.RIGHT_ARROW)&&(t=J),(t=K?-t:t)&&((e.metaKey||e.ctrlKey||e.altKey)&&(t*=4),e.preventDefault(),e.stopPropagation(),r.$evalAsync(function(){w(H.$viewValue+t)}))}}).on("mousedown",function(){b(),r.mouseActive=!0,V.removeClass("md-focused"),d(function(){r.mouseActive=!1},100)}).on("focus",function(){!1===r.mouseActive&&V.addClass("md-focused")}).on("blur",function(){V.removeClass("md-focused"),u.removeClass("md-active"),y()}).on("$md.pressdown",function(e){if(!R()){u.addClass("md-active"),u[0].focus(),E();var t=A(x(O(D(W?e.pointer.y:e.pointer.x))));r.$apply(function(){w(t),k(I(t))})}}).on("$md.pressup",function(e){if(!R()){u.removeClass("md-dragging");var t=A(x(O(D(W?e.pointer.y:e.pointer.x))));r.$apply(function(){w(t),M()})}}).on("$md.dragstart",function(e){R()||(re=!0,e.stopPropagation(),u.addClass("md-dragging"),T(e))}).on("$md.drag",function(e){re&&(e.stopPropagation(),T(e))}).on("$md.dragend",function(e){re&&(e.stopPropagation(),re=!1)}),setTimeout(h,0);var G=e.throttle(h);t.element(n).on("resize",G),r.$on("$destroy",function(){t.element(n).off("resize",G)}),H.$render=M,H.$viewChangeListeners.push(M),H.$formatters.push(A),H.$formatters.push(x);var X,Z,J,Q,ee,te,ne={};E();var re=!1}return{scope:{},require:["?ngModel","?^mdSliderContainer"],template:'<div class="md-slider-wrapper"><div class="md-slider-content"><div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div></div></div>',compile:function(e,n){var i=t.element(e[0].getElementsByClassName("md-slider-wrapper")),o=n.tabindex||0;return i.attr("tabindex",o),(n.disabled||n.ngDisabled)&&i.attr("tabindex",-1),i.attr("role","slider"),r.expect(e,"aria-label"),u}}}e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],t.module("material.components.slider",["material.core"]).directive("mdSlider",e).directive("mdSliderContainer",function(){return{controller:function(){},compile:function(e){var r=e.find("md-slider");if(r)return r.attr("md-vertical")!==n&&e.attr("md-vertical",""),r.attr("flex")||r.attr("flex",""),function(e,n,r,i){function o(e){n.children().attr("disabled",e),n.find("input").attr("disabled",e)}n.addClass("_md");var a=t.noop;r.disabled?o(!0):r.ngDisabled&&(a=e.$watch(r.ngDisabled,function(e){o(e)})),e.$on("$destroy",function(){a()});var s;i.fitInputWidthToTextLength=function(e){var t=n[0].querySelector("md-input-container");if(t){var r=getComputedStyle(t),i=parseInt(r.minWidth),o=2*parseInt(r.padding);s=s||parseInt(r.maxWidth);var a=Math.max(s,i+o+i/2*e);t.style.maxWidth=a+"px"}}}}}})}(),function(){function e(e,t,r,i){function o(i){function o(){h.items.forEach(s),h.items=h.items.sort(function(e,t){return e.top<t.top?-1:1});for(var e,t=m.prop("scrollTop"),n=h.items.length-1;n>=0;n--)if(t>h.items[n].top){e=h.items[n];break}l(e)}function s(e){var t=e.element[0];for(e.top=0,e.left=0,e.right=0;t&&t!==m[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t.offsetParent&&(e.right+=t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft),t=t.offsetParent;e.height=e.element.prop("offsetHeight");var i=r.floatingScrollbars()?"0":n;r.bidi(e.clone,"margin-left",e.left,i),r.bidi(e.clone,"margin-right",i,e.right)}function c(){var e=m.prop("scrollTop"),t=e>(c.prevScrollTop||0);if(c.prevScrollTop=e,0!==e){if(t){if(h.next&&h.next.top<=e)return void l(h.next);if(h.current&&h.next&&h.next.top-e<=h.next.height)return void u(h.current,e+(h.next.top-h.next.height-e))}if(!t){if(h.current&&h.prev&&e<h.current.top)return void l(h.prev);if(h.next&&h.current&&e>=h.next.top-h.current.height)return void u(h.current,e+(h.next.top-e-h.current.height))}h.current&&u(h.current,e)}else l(null)}function l(e){if(h.current!==e){h.current&&(u(h.current,null),d(h.current,null)),e&&d(e,"active"),h.current=e;var t=h.items.indexOf(e);h.next=h.items[t+1],h.prev=h.items[t-1],d(h.next,"next"),d(h.prev,"prev")}}function d(e,t){e&&e.state!==t&&(e.state&&(e.clone.attr("sticky-prev-state",e.state),e.element.attr("sticky-prev-state",e.state)),e.clone.attr("sticky-state",t),e.element.attr("sticky-state",t),e.state=t)}function u(t,i){t&&(null===i||i===n?t.translateY&&(t.translateY=null,t.clone.css(e.CSS.TRANSFORM,"")):(t.translateY=i,r.bidi(t.clone,e.CSS.TRANSFORM,"translate3d("+t.left+"px,"+i+"px,0)","translateY("+i+"px)")))}var m=i.$element,p=t.throttle(o);a(m),m.on("$scrollstart",p),m.on("$scroll",c);var h;return h={prev:null,current:null,next:null,items:[],add:function(e,t){t.addClass("md-sticky-clone");var n={element:e,clone:t};return h.items.push(n),r.nextTick(function(){m.prepend(n.clone)}),p(),function(){h.items.forEach(function(t,n){t.element[0]===e[0]&&(h.items.splice(n,1),t.clone.remove())}),p()}},refreshElements:o}}function a(e){function n(){+r.now()-o>a?(i=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),t.throttle(n))}var i,o,a=200;e.on("scroll touchmove",function(){i||(i=!0,t.throttle(n),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),o=+r.now()})}var s=r.checkStickySupport();return function(e,t,n){var r=t.controller("mdContent");if(r)if(s)t.css({position:s,top:0,"z-index":2});else{var a=r.$element.data("$$sticky");a||(a=o(r),r.$element.data("$$sticky",a));var c=n||i(t.clone())(e),l=a.add(t,c);e.$on("$destroy",l)}}}e.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],t.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",e)}(),function(){function e(e,n,r,i,o){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader _md"> <div class="md-subheader-inner"> <div class="md-subheader-content"></div> </div></div>',link:function(a,s,c,l,d){function u(e){return t.element(e[0].querySelector(".md-subheader-content"))}r(s),s.addClass("_md"),i.prefixer().removeAttribute(s,"ng-repeat");var m=s[0].outerHTML;c.$set("role","heading"),o.expect(s,"aria-level","2"),d(a,function(e){u(s).append(e)}),s.hasClass("md-no-sticky")||d(a,function(t){var r=n('<div class="md-subheader-wrapper" aria-hidden="true">'+m+"</div>")(a);i.nextTick(function(){u(r).append(t)}),e(a,s,r)})}}}e.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],t.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",e)}(),function(){function e(e,n,r,i,o,a,s){var c=e[0];return{restrict:"E",priority:r.BEFORE_NG_ARIA,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:["^?mdInputContainer","?ngModel","?^form"],compile:function(e,l){var d=c.compile(e,l).post;return e.addClass("md-dragging"),function(e,c,l,u){function m(t){e.$apply(function(){p.$setViewValue(t),p.$render()})}u[0];var p=u[1]||n.fakeNgModel(),h=(u[2],null);null!=l.disabled?h=function(){return!0}:l.ngDisabled&&(h=i(l.ngDisabled));var f=t.element(c[0].querySelector(".md-thumb-container")),g=t.element(c[0].querySelector(".md-container")),v=t.element(c[0].querySelector(".md-label"));o(function(){c.removeClass("md-dragging")}),d(e,c,l,u),h&&e.$watch(h,function(e){c.attr("tabindex",e?-1:0)}),l.$observe("mdInvert",function(e){var t=n.parseAttributeBoolean(e);t?c.prepend(v):c.prepend(g),c.toggleClass("md-inverted",t)}),a.register(g,"drag"),g.on("$md.dragstart",function(t){h&&h(e)||(t.stopPropagation(),c.addClass("md-dragging"),$={width:f.prop("offsetWidth")})}).on("$md.drag",function(e){if($){e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/$.width,n=p.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),f.css(r.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),$.translate=n}}).on("$md.dragend",function(t){$&&(t.stopPropagation(),c.removeClass("md-dragging"),f.css(r.CSS.TRANSFORM,""),(p.$viewValue?$.translate<.5:$.translate>.5)&&m(!p.$viewValue),$=null,e.skipToggle=!0,s(function(){e.skipToggle=!1},1))});var $}}}}e.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],t.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e)}(),function(){function e(e){function t(e){return{restrict:"A",link:function(t,i,o){i.css("touch-action",o.mdSwipeTouchAction||"none");var a=e(o[n]);i.on(r,function(e){t.$applyAsync(function(){a(t,{$event:e})})})}}}t.$inject=["$parse"];var n="md"+e,r="$md."+e.toLowerCase();return t}t.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",e("SwipeLeft")).directive("mdSwipeRight",e("SwipeRight")).directive("mdSwipeUp",e("SwipeUp")).directive("mdSwipeDown",e("SwipeDown"))}(),t.module("material.components.tabs",["material.core","material.components.icon"]),function(){function e(e){return{restrict:"E",link:function(t,n){n.addClass("_md"),t.$on("$destroy",function(){e.destroy()})}}}function n(e){function n(e){i=e}function r(e,n,r,o){function a(e){return o("gt-xs")?"md-toast-open-"+(e.indexOf("top")>-1?"top":"bottom"):"md-toast-open-bottom"}var s="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(t,c,l){i=l.textContent||l.content;var d=!o("gt-sm");return c=r.extractElementByName(c,"md-toast",!0),l.element=c,l.onSwipe=function(e,t){var i=e.type.replace("$md.",""),o=i.replace("swipe","");"down"===o&&-1!=l.position.indexOf("top")&&!d||"up"===o&&(-1!=l.position.indexOf("bottom")||d)||("left"!==o&&"right"!==o||!d)&&(c.addClass("md-"+i),r.nextTick(n.cancel))},l.openClass=a(l.position),c.addClass(l.toastClass),l.parent.addClass(l.openClass),r.hasComputedStyle(l.parent,"position","static")&&l.parent.css("position","relative"),c.on(s,l.onSwipe),c.addClass(d?"md-bottom":l.position.split(" ").map(function(e){return"md-"+e}).join(" ")),l.parent&&l.parent.addClass("md-toast-animating"),e.enter(c,l.parent).then(function(){l.parent&&l.parent.removeClass("md-toast-animating")})},onRemove:function(t,n,i){return n.off(s,i.onSwipe),i.parent&&i.parent.addClass("md-toast-animating"),i.openClass&&i.parent.removeClass(i.openClass),(1==i.$destroy?n.remove():e.leave(n)).then(function(){i.parent&&i.parent.removeClass("md-toast-animating"),r.hasComputedStyle(i.parent,"position","static")&&i.parent.css("position","")})},toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(e,n){if(n.autoWrap&&e&&!/md-toast-content/g.test(e)){var r=document.createElement("md-template");r.innerHTML=e;for(var i=0;i<r.children.length;i++)if("MD-TOAST"===r.children[i].nodeName){var o=t.element('<div class="md-toast-content">');o.append(t.element(r.children[i].childNodes)),r.children[i].appendChild(o[0])}return r.innerHTML}return e||""}}}r.$inject=["$animate","$mdToast","$mdUtil","$mdMedia"];var i;return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:r}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","highlightAction","highlightClass","theme","parent"],options:["$mdToast","$mdTheming",function(e,t){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}"> <div class="md-toast-content"> <span class="md-toast-text" role="alert" aria-relevant="all" aria-atomic="true"> {{ toast.content }} </span> <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="highlightClasses"> {{ toast.action }} </md-button> </div></md-toast>',controller:["$scope",function(t){var n=this;n.highlightAction&&(t.highlightClasses=["md-highlight",n.highlightClass]),t.$watch(function(){return i},function(){n.content=i}),this.resolve=function(){e.hide("ok")}}],theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",n).addMethod("updateContent",n)}e.$inject=["$mdToast"],n.$inject=["$$interimElementProvider"],t.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",n)}(),function(){function e(e,n,r,i,o){var a=t.bind(null,r.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(s,c,l){c.addClass("_md"),i(c),r.nextTick(function(){c.addClass("_md-toolbar-transitions")},!1),t.isDefined(l.mdScrollShrink)&&function(){function i(e,t){t&&c.parent()[0]===t.parent()[0]&&(h&&h.off("scroll",b),h=t,f=u())}function d(e){var t=e?e.target.scrollTop:v;y(),g=Math.min(p/$,Math.max(0,g+t-v)),c.css(n.CSS.TRANSFORM,a([-g*$])),h.css(n.CSS.TRANSFORM,a([(p-g)*$])),v=t,r.nextTick(function(){var e=c.hasClass("md-whiteframe-z1");e&&!g?o.removeClass(c,"md-whiteframe-z1"):!e&&g&&o.addClass(c,"md-whiteframe-z1")})}function u(){return h?(h.on("scroll",b),h.attr("scroll-shrink","true"),r.nextTick(m,!1),function(){h.off("scroll",b),h.attr("scroll-shrink","false"),m()}):t.noop}function m(){var e=-(p=c.prop("offsetHeight"))*$+"px";h.css({"margin-top":e,"margin-bottom":e}),d()}var p,h,f=t.noop,g=0,v=0,$=l.mdShrinkSpeedFactor||.5,b=e.throttle(d),y=r.debounce(m,5e3);s.$on("$mdContentLoaded",i),l.$observe("mdScrollShrink",function(e){var t=c.parent().find("md-content");!h&&t.length&&i(0,t),!1===(e=s.$eval(e))?f():f=u()}),l.ngShow&&s.$watch(l.ngShow,m),l.ngHide&&s.$watch(l.ngHide,m),s.$on("$destroy",f)}()}}}e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],t.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e)}(),function(){function n(e,n,r,i,o,a,s,c){var l="focus touchstart mouseenter",d="blur touchcancel mouseleave",u=100,m=0,p="bottom",h={top:{x:s.xPosition.CENTER,y:s.yPosition.ABOVE},right:{x:s.xPosition.OFFSET_END,y:s.yPosition.CENTER},bottom:{x:s.xPosition.CENTER,y:s.yPosition.BELOW},left:{x:s.xPosition.OFFSET_START,y:s.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:function(f,g,v){function $(){f.mdZIndex=f.mdZIndex||u,f.mdDelay=f.mdDelay||m,h[f.mdDirection]||(f.mdDirection=p)}function b(e){var t=e||o(g.text().trim())(f.$parent);(!D.attr("aria-label")&&!D.attr("aria-labelledby")||D.attr("md-labeled-by-tooltip"))&&(D.attr("aria-label",t),D.attr("md-labeled-by-tooltip")||D.attr("md-labeled-by-tooltip",N))}function y(){$(),T&&T.panelEl&&T.panelEl.removeClass(A),A="md-origin-"+f.mdDirection,x=h[f.mdDirection],k=s.newPanelPosition().relativeTo(D).addPanelPosition(x.x,x.y),T&&T.panelEl&&(T.panelEl.addClass(A),T.updatePosition(k))}function E(t){E.queued&&E.value===!!t||!E.queued&&f.mdVisible===!!t||(E.value=!!t,E.queued||(t?(E.queued=!0,S=e(function(){f.mdVisible=E.value,E.queued=!1,S=null,f.visibleWatcher||C(f.mdVisible)},f.mdDelay)):a.nextTick(function(){f.mdVisible=!1,f.visibleWatcher||C(!1)})))}function C(e){e?w():M()}function w(){if(!g[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!T){var e=t.element(document.body),n=s.newPanelAnimation().openFrom(D).closeTo(D).withAnimation({open:"md-show",close:"md-hide"}),r={id:N,attachTo:e,contentElement:g,propagateContainerEvents:!0,panelClass:"md-tooltip "+A,animation:n,position:k,zIndex:f.mdZIndex,focusOnOpen:!1};T=s.create(r)}T.open().then(function(){T.panelEl.attr("role","tooltip")})}function M(){T&&T.close()}var A,x,k,T,_,S,N="md-tooltip-"+a.nextUid(),D=a.getParentWithPointerEvents(g),O=r.throttle(y),I=!1,H=null;$(),b(),g.detach(),y(),function(){function t(e){return e.some(function(e){return"disabled"===e.attributeName&&D[0].disabled}),!1}function r(){E(!1)}function o(){H=document.activeElement===D[0]}function s(e){"focus"===e.type&&H?H=!1:f.mdVisible||(D.on(d,u),E(!0),"touchstart"===e.type&&D.one("touchend",function(){a.nextTick(function(){i.one("touchend",u)},!1)}))}function u(){((_=f.hasOwnProperty("mdAutohide")?f.mdAutohide:v.hasOwnProperty("mdAutohide"))||I||i[0].activeElement!==D[0])&&(S&&(e.cancel(S),E.queued=!1,S=null),D.off(d,u),D.triggerHandler("blur"),E(!1)),I=!1}function m(){I=!0}if(D[0]&&"MutationObserver"in n){var p=new MutationObserver(function(e){t(e)&&a.nextTick(function(){E(!1)})});p.observe(D[0],{attributes:!0})}H=!1,c.register("scroll",r,!0),c.register("blur",o),c.register("resize",O),f.$on("$destroy",function(){c.deregister("scroll",r,!0),c.deregister("blur",o),c.deregister("resize",O),D.off(l,s).off(d,u).off("mousedown",m),u(),p&&p.disconnect()}),D.on("mousedown",m),D.on(l,s)}(),function(){function e(){f.$destroy()}if(g[0]&&"MutationObserver"in n){var t=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||f.visibleWatcher||(f.visibleWatcher=f.$watch("mdVisible",C))})});t.observe(g[0],{attributes:!0}),v.hasOwnProperty("mdVisible")&&(f.visibleWatcher=f.$watch("mdVisible",C))}else f.visibleWatcher=f.$watch("mdVisible",C);f.$watch("mdDirection",y),g.one("$destroy",e),D.one("$destroy",e),f.$on("$destroy",function(){E(!1),T&&T.destroy(),t&&t.disconnect(),g.remove()}),g.text().indexOf(o.startSymbol())>-1&&f.$watch(function(){return g.text().trim()},b)}()}}}n.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],t.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",n).service("$$mdTooltipRegistry",function(){function n(e){r[e.type]&&r[e.type].forEach(function(t){t.call(this,e)},this)}var r={},i=t.element(e);return{register:function(t,o,a){var s=r[t]=r[t]||[];s.length||(a?e.addEventListener(t,n,!0):i.on(t,n)),-1===s.indexOf(o)&&s.push(o)},deregister:function(t,o,a){var s=r[t],c=s?s.indexOf(o):-1;c>-1&&(s.splice(c,1),0===s.length&&(a?e.removeEventListener(t,n,!0):i.off(t,n)))}}})}(),function(){function e(e){e.addClass("md-truncate")}e.$inject=["$element"],t.module("material.components.truncate",["material.core"]).directive("mdTruncate",function(){return{restrict:"AE",controller:e,controllerAs:"$ctrl",bindToController:!0}})}(),function(){function e(e){return'<div class="md-virtual-repeat-scroller"><div class="md-virtual-repeat-sizer"></div><div class="md-virtual-repeat-offsetter">'+e[0].innerHTML+"</div></div>"}function n(e,n,r,i,o,a,s,c,l){this.$rootScope=o,this.$scope=s,this.$element=c,this.$attrs=l,this.size=0,this.scrollSize=0,this.scrollOffset=0,this.horizontal=this.$attrs.hasOwnProperty("mdOrientHorizontal"),this.repeater=null,this.autoShrink=this.$attrs.hasOwnProperty("mdAutoShrink"),this.autoShrinkMin=parseInt(this.$attrs.mdAutoShrinkMin,10)||0,this.originalSize=null,this.offsetSize=parseInt(this.$attrs.mdOffsetSize,10)||0,this.oldElementSize=null,this.maxElementPixels=r.ELEMENT_MAX_PIXELS,this.$attrs.mdTopIndex?(this.bindTopIndex=i(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),t.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,t.bind(this,function(e){e!==this.topIndex&&this.scrollToIndex(e)}))):this.topIndex=0,this.scroller=c[0].querySelector(".md-virtual-repeat-scroller"),this.sizer=this.scroller.querySelector(".md-virtual-repeat-sizer"),this.offsetter=this.scroller.querySelector(".md-virtual-repeat-offsetter");var d=t.bind(this,this.updateSize);e(t.bind(this,function(){d();var e=n.debounce(d,10,null,!1),r=t.element(a);this.size||e(),r.on("resize",e),s.$on("$destroy",function(){r.off("resize",e)}),s.$emit("$md-resize-enable"),s.$on("$md-resize",d)}))}function r(e){return{controller:i,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(t,n){var r=n.mdVirtualRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),i=r[1],o=e(r[2]),a=n.mdExtraName&&e(n.mdExtraName);return function(e,t,n,r,s){r[0].link_(r[1],s,i,o,a)}}}}function i(e,n,r,i,o,a,s,c){this.$scope=e,this.$element=n,this.$attrs=r,this.$browser=i,this.$document=o,this.$rootScope=a,this.$$rAF=s,this.onDemand=c.parseAttributeBoolean(r.mdOnDemand),this.browserCheckUrlChange=i.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=e.$eval(r.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=t.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",t.bind(this,this.cleanupBlocks_))}function o(e){if(!t.isFunction(e.getItemAtIndex)||!t.isFunction(e.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength() ");this.model=e}n.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],i.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],r.$inject=["$parse"],t.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",function(){return{controller:n,template:e,compile:function(e,t){e.addClass("md-virtual-repeat-container").addClass(t.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}).directive("mdVirtualRepeat",r);n.prototype.register=function(e){this.repeater=e,t.element(this.scroller).on("scroll wheel touchmove touchend",t.bind(this,this.handleScroll_))},n.prototype.isHorizontal=function(){return this.horizontal},n.prototype.getSize=function(){return this.size},n.prototype.setSize_=function(e){var t=this.getDimensionName_();this.size=e,this.$element[0].style[t]=e+"px"},n.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},n.prototype.updateSize=function(){this.originalSize||(this.size=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight,this.handleScroll_(),this.repeater&&this.repeater.containerUpdated())},n.prototype.getScrollSize=function(){return this.scrollSize},n.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},n.prototype.sizeScroller_=function(e){var t=this.getDimensionName_(),n=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",e<this.maxElementPixels)this.sizer.style[t]=e+"px";else{this.sizer.style[t]="auto",this.sizer.style[n]="auto";var r=Math.floor(e/this.maxElementPixels),i=document.createElement("div");i.style[t]=this.maxElementPixels+"px",i.style[n]="1px";for(var o=0;o<r;o++)this.sizer.appendChild(i.cloneNode(!1));i.style[t]=e-r*this.maxElementPixels+"px",this.sizer.appendChild(i)}},n.prototype.autoShrink_=function(e){var t=Math.max(e,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&t!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var n=this.originalSize||this.size;if(!n||t<n)this.originalSize||(this.originalSize=this.size),this.setSize_(t);else if(null!==this.originalSize){this.unsetSize_();var r=this.originalSize;this.originalSize=null,r||this.updateSize(),this.setSize_(r||this.size)}this.repeater.containerUpdated()}},n.prototype.setScrollSize=function(e){var t=e+this.offsetSize;this.scrollSize!==t&&(this.sizeScroller_(t),this.autoShrink_(t),this.scrollSize=t)},n.prototype.getScrollOffset=function(){return this.scrollOffset},n.prototype.scrollTo=function(e){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=e,this.handleScroll_()},n.prototype.scrollToIndex=function(e){var t=this.repeater.getItemSize(),n=this.repeater.itemsLength;e>n&&(e=n-1),this.scrollTo(t*e)},n.prototype.resetScroll=function(){this.scrollTo(0)},n.prototype.handleScroll_=function(){var e="rtl"!=document.dir&&"rtl"!=document.body.dir;e||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var t=this.isHorizontal()?e?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(t===this.scrollOffset||t>this.scrollSize-this.size)){var n=this.repeater.getItemSize();if(n){var r=Math.max(0,Math.floor(t/n)-3),i=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||e?r*n:-r*n)+"px)";if(this.scrollOffset=t,this.offsetter.style.webkitTransform=i,this.offsetter.style.transform=i,this.bindTopIndex){var o=Math.floor(t/n);o!==this.topIndex&&o<this.repeater.getItemCount()&&(this.topIndex=o,this.bindTopIndex.assign(this.$scope,o),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},i.prototype.link_=function(e,n,r,i,o){this.container=e,this.transclude=n,this.repeatName=r,this.rawRepeatListExpression=i,this.extraName=o,this.sized=!1,this.repeatListExpression=t.bind(this,this.repeatListExpression_),this.container.register(this)},i.prototype.cleanupBlocks_=function(){t.forEach(this.pooledBlocks,function(e){e.element.remove()})},i.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var e=this.getBlock_(0);e.element[0].parentNode||this.parentNode.appendChild(e.element[0]),this.itemSize=e.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=e,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},i.prototype.repeatListExpression_=function(e){var t=this.rawRepeatListExpression(e);if(this.onDemand&&t){var n=new o(t);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return t},i.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==t.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,t.bind(this,function(e){e&&e.length&&this.readItemSize_()})),void(this.$rootScope.$$phase||this.$scope.$digest());this.sized||(this.items=this.repeatListExpression(this.$scope)),this.sized||(this.unwatchItemSize_(),this.sized=!0,this.$scope.$watchCollection(this.repeatListExpression,t.bind(this,function(e,t){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(e,t)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof o&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},i.prototype.getItemSize=function(){return this.itemSize},i.prototype.getItemCount=function(){return this.itemsLength},i.prototype.virtualRepeatUpdate_=function(e,n){this.isVirtualRepeatUpdating_=!0;var r=e&&e.length||0,i=!1;if(this.items&&r<this.items.length&&0!==this.container.getScrollOffset()){this.items=e;var o=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(o)}r!==this.itemsLength&&(i=!0,this.itemsLength=r),this.items=e,(e!==n||i)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,i&&this.container.setScrollSize(r*this.itemSize);var a,s=!1;this.isFirstRender&&(s=!0,this.isFirstRender=!1,a=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex,this.container.scrollToIndex(a)),Object.keys(this.blocks).forEach(function(e){var t=parseInt(e,10);(t<this.newStartIndex||t>=this.newEndIndex)&&this.poolBlock_(t)},this),this.$browser.$$checkUrlChange=t.noop;var c,l,d=[],u=[];for(c=this.newStartIndex;c<this.newEndIndex&&null==this.blocks[c];c++)l=this.getBlock_(c),this.updateBlock_(l,c),d.push(l);for(;null!=this.blocks[c];c++)this.updateBlock_(this.blocks[c],c);for(var m=c-1;c<this.newEndIndex;c++)l=this.getBlock_(c),this.updateBlock_(l,c),u.push(l);d.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(d),this.$element[0].nextSibling),u.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(u),this.blocks[m]&&this.blocks[m].element[0].nextSibling),s&&this.container.scrollToIndex(a),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isVirtualRepeatUpdating_=!1},i.prototype.getBlock_=function(e){if(this.pooledBlocks.length)return this.pooledBlocks.pop();var n;return this.transclude(t.bind(this,function(t,r){n={element:t,new:!0,scope:r},this.updateScope_(r,e),this.parentNode.appendChild(t[0])})),n},i.prototype.updateBlock_=function(e,t){this.blocks[t]=e,(e.new||e.scope.$index!==t||e.scope[this.repeatName]!==this.items[t])&&(e.new=!1,this.updateScope_(e.scope,t),this.$rootScope.$$phase||e.scope.$digest())},i.prototype.updateScope_=function(e,t){e.$index=t,e[this.repeatName]=this.items&&this.items[t],this.extraName&&(e[this.extraName(this.$scope)]=this.items[t])},i.prototype.poolBlock_=function(e){this.pooledBlocks.push(this.blocks[e]),this.parentNode.removeChild(this.blocks[e].element[0]),delete this.blocks[e]},i.prototype.domFragmentFromBlocks_=function(e){var t=this.$document[0].createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element[0])}),t},i.prototype.updateIndexes_=function(){var e=this.items?this.items.length:0,t=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(e-t,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+t+3,this.newEndIndex=Math.min(e,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},o.prototype.$$includeIndexes=function(e,t){for(var n=e;n<t;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()}}(),function(){function e(e){var t=-1,n=1,r=24,i=4;return{link:function(o,a,s){var c="";s.$observe("mdWhiteframe",function(o){(o=parseInt(o,10)||i)!=t&&(o>r||o<n)&&(e.warn("md-whiteframe attribute value is invalid. It should be a number between "+n+" and "+r,a[0]),o=i);var l=o==t?"":"md-whiteframe-"+o+"dp";s.$updateClass(l,c),c=l})}}}e.$inject=["$log"],t.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",e)}(),function(){function e(e,s,c,l,d,u,m,p,h,f,g,v){function $(){e.requireMatch&&be&&be.$setValidity("md-require-match",!!e.selectedItem||!e.searchText)}function b(){if(!me)return c.nextTick(b,!1,e);var t,n=(e.dropdownItems||i)*r,l=me.wrap.getBoundingClientRect(),d=me.snap.getBoundingClientRect(),u=me.root.getBoundingClientRect(),m=d.bottom-u.top,p=u.bottom-d.top,f=l.left-u.left,g=l.width,v=function(){var e=0,t=s.find("md-input-container");if(t.length){var n=t.find("input");e=t.prop("offsetHeight"),e-=n.prop("offsetTop"),e-=n.prop("offsetHeight"),e+=t.prop("offsetTop")}return e}(),$=e.dropdownPosition;if($||($=m>p&&u.height-m-o<n?"top":"bottom"),h.mdFloatingLabel&&(f+=a,g-=2*a),t={left:f+"px",minWidth:g+"px",maxWidth:Math.max(l.right-u.left,u.right-l.left)-o+"px"},"top"===$)t.top="auto",t.bottom=p+"px",t.maxHeight=Math.min(n,l.top-u.top-o)+"px";else{var y=u.bottom-l.bottom-o+c.getViewportTop();t.top=m-v+"px",t.bottom="auto",t.maxHeight=Math.min(n,y)+"px"}me.$.scrollContainer.css(t),c.nextTick(function(){var e=me.scrollContainer.getBoundingClientRect(),t={};e.right>u.right-o&&(t.left=l.right-e.width+"px"),me.$.scrollContainer.css(t)},!1)}function y(){me.$.root.length&&(d(me.$.scrollContainer),me.$.scrollContainer.detach(),me.$.root.append(me.$.scrollContainer),m.pin&&m.pin(me.$.scrollContainer,p))}function E(){me.input.focus()}function C(){var n=parseInt(e.delay,10)||0;h.$observe("disabled",function(e){le.isDisabled=c.parseAttributeBoolean(e,!1)}),h.$observe("required",function(e){le.isRequired=c.parseAttributeBoolean(e,!1)}),h.$observe("readonly",function(e){le.isReadonly=c.parseAttributeBoolean(e,!1)}),e.$watch("searchText",n?c.debounce(O,n):O),e.$watch("selectedItem",_),t.element(u).on("resize",ye),e.$on("$destroy",w)}function w(){if(le.hidden||c.enableScrolling(),t.element(u).off("resize",ye),me){var e=["ul","scroller","scrollContainer","input"];t.forEach(e,function(e){me.$[e].remove()})}}function M(){var e=A();(me={main:s[0],scrollContainer:s[0].querySelector(".md-virtual-repeat-container"),scroller:s[0].querySelector(".md-virtual-repeat-scroller"),ul:s.find("ul")[0],input:s.find("input")[0],wrap:e.wrap,snap:e.snap,root:document.body}).li=me.ul.getElementsByTagName("li"),me.$=x(me),be=me.$.input.controller("ngModel")}function A(){var e,n;for(e=s;e.length&&(n=e.attr("md-autocomplete-snap"),!t.isDefined(n));e=e.parent());if(e.length)return{snap:e[0],wrap:"width"===n.toLowerCase()?e[0]:s.find("md-autocomplete-wrap")[0]};var r=s.find("md-autocomplete-wrap")[0];return{snap:r,wrap:r}}function x(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t.element(e[r]));return n}function k(e){function t(e){e.preventDefault()}return e.on("wheel",t),e.on("touchmove",t),function(){e.off("wheel",t),e.off("touchmove",t)}}function T(){ge||le.hidden||me.input.focus(),he=!1,le.hidden=B()}function _(n,r){$(),n?P(n).then(function(t){e.searchText=t,D(n,r)}):r&&e.searchText&&P(r).then(function(n){t.isString(e.searchText)&&n.toString().toLowerCase()===e.searchText.toLowerCase()&&(e.searchText="")}),n!==r&&S()}function S(){t.isFunction(e.itemChange)&&e.itemChange(R(e.selectedItem))}function N(){t.isFunction(e.textChange)&&e.textChange()}function D(e,t){fe.forEach(function(n){n(e,t)})}function O(t,n){le.index=L(),t!==n&&($(),P(e.selectedItem).then(function(r){t!==r&&(e.selectedItem=null,t!==n&&N(),K()?oe():(le.matches=[],j(!1),Q(!1,Ee.Count)))}))}function I(e){e&&(he=!1,ge=!1),me.input.blur()}function H(){return t.isNumber(e.minLength)?e.minLength:1}function P(n){return f.when(function(t){return t&&e.itemText?e.itemText(R(t)):null}(n)||n).then(function(e){return e&&!t.isString(e)&&g.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e})}function R(e){if(!e)return n;var t={};return le.itemName&&(t[le.itemName]=e),t}function L(){return e.autoselect?0:-1}function j(e){le.loading!=e&&(le.loading=e),le.hidden=B()}function B(){return!F()||!V()}function F(){return!(le.loading&&!z())&&(!W()&&!!ge)}function U(){return q("blur")||!le.hidden||le.loading||q("clear")&&e.searchText}function q(t){return!e.escapeOptions||-1!==e.escapeOptions.toLowerCase().indexOf(t)}function V(){return K()&&z()||ie()}function z(){return!!le.matches.length}function W(){return!!le.scope.selectedItem}function Y(){return P(le.matches[le.index])}function K(){return(e.searchText||"").length>=H()}function G(t){c.nextTick(function(){P(le.matches[t]).then(function(e){var t=me.$.input.controller("ngModel");t.$setViewValue(e),t.$render()}).finally(function(){e.selectedItem=le.matches[t],j(!1)})},!1)}function X(){le.index=0,le.matches=[]}function Z(){j(!0),e.searchText="";var t=document.createEvent("CustomEvent");t.initCustomEvent("change",!0,!0,{value:""}),me.input.dispatchEvent(t),me.input.blur(),e.searchText="",me.input.focus()}function J(n){function r(t){pe[o]=t,(n||"")===(e.searchText||"")&&ae(t)}var i=e.$parent.$eval(ue),o=n.toLowerCase(),a=t.isArray(i),s=!!i.then;a?r(i):s&&function(t){t&&(t=f.when(t),ve++,j(!0),c.nextTick(function(){t.then(r).finally(function(){0==--ve&&j(!1)})},!0,e))}(i)}function Q(e,t){var n=e?"polite":"assertive",r=[];t&Ee.Selected&&-1!==le.index&&r.push(Y()),t&Ee.Count&&r.push(f.resolve(ee())),f.all(r).then(function(e){v.announce(e.join(" "),n)})}function ee(){switch(le.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+le.matches.length+" matches available."}}function te(){if(me.li[0]){var e=me.li[0].offsetHeight,t=e*le.index,n=t+e,r=me.scroller.clientHeight,i=me.scroller.scrollTop;t<i?re(t):n>i+r&&re(n-r)}}function ne(){return 0!==ve}function re(e){me.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function ie(){var e=(le.scope.searchText||"").length;return le.hasNotFound&&!z()&&(!le.loading||ne())&&e>=H()&&(ge||he)&&!W()}function oe(){var t=e.searchText||"",n=t.toLowerCase();!e.noCache&&pe[n]?ae(pe[n]):J(t),le.hidden=B()}function ae(t){le.matches=t,le.hidden=B(),le.loading&&j(!1),e.selectOnMatch&&se(),b(),Q(!0,Ee.Count)}function se(){var t=e.searchText,n=le.matches,r=n[0];1===n.length&&P(r).then(function(n){var r=t==n;e.matchInsensitive&&!r&&(r=t.toLowerCase()==n.toLowerCase()),r&&G(0)})}function ce(t,n){h[t]&&e.$parent.$eval(h[t],n||{})}var le=this,de=e.itemsExpr.split(/ in /i),ue=de[1],me=null,pe={},he=!1,fe=[],ge=!1,ve=0,$e=null,be=null,ye=c.debounce(function(){le.hidden||b()});!function(e,t,n){Object.defineProperty(le,e,{get:function(){return n},set:function(e){var r=n;n=e,t(e,r)}})}("hidden",function(e,n){!e&&n?(b(),Q(!0,Ee.Count|Ee.Selected),me&&(c.disableScrollAround(me.ul),$e=k(t.element(me.wrap)))):e&&!n&&(c.enableScrolling(),$e&&($e(),$e=null))},!0),le.scope=e,le.parent=e.$parent,le.itemName=de[0],le.matches=[],le.loading=!1,le.hidden=!0,le.index=null,le.id=c.nextUid(),le.isDisabled=null,le.isRequired=null,le.isReadonly=null,le.hasNotFound=!1,le.keydown=function(t){switch(t.keyCode){case l.KEY_CODE.DOWN_ARROW:if(le.loading)return;t.stopPropagation(),t.preventDefault(),le.index=Math.min(le.index+1,le.matches.length-1),te(),Q(!1,Ee.Selected);break;case l.KEY_CODE.UP_ARROW:if(le.loading)return;t.stopPropagation(),t.preventDefault(),le.index=le.index<0?le.matches.length-1:Math.max(0,le.index-1),te(),Q(!1,Ee.Selected);break;case l.KEY_CODE.TAB:if(T(),le.hidden||le.loading||le.index<0||le.matches.length<1)return;G(le.index);break;case l.KEY_CODE.ENTER:if(le.hidden||le.loading||le.index<0||le.matches.length<1)return;if(W())return;t.stopPropagation(),t.preventDefault(),G(le.index);break;case l.KEY_CODE.ESCAPE:if(t.preventDefault(),!U())return;t.stopPropagation(),X(),e.searchText&&q("clear")&&Z(),le.hidden=!0,q("blur")&&I(!0)}},le.blur=function(e){ge=!1,he||(le.hidden=B(),ce("ngBlur",{$event:e}))},le.focus=function(e){ge=!0,F()&&K()&&oe(),le.hidden=B(),ce("ngFocus",{$event:e})},le.clear=function(){X(),Z()},le.select=G,le.listEnter=function(){he=!0},le.listLeave=T,le.mouseUp=function(){me.input.focus()},le.getCurrentDisplayValue=Y,le.registerSelectedItemWatcher=function(e){-1==fe.indexOf(e)&&fe.push(e)},le.unregisterSelectedItemWatcher=function(e){var t=fe.indexOf(e);-1!=t&&fe.splice(t,1)},le.notFoundVisible=ie,le.loadingIsVisible=function(){return le.loading&&!W()},le.positionDropdown=b;var Ee={Count:1,Selected:2};return c.initOptionalProperties(e,h,{searchText:"",selectedItem:null,clearButton:!1}),d(s),C(),void c.nextTick(function(){M(),y(),e.autofocus&&s.on("focus",E)})}e.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],t.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var r=48,i=5,o=8,a=2}(),function(){function e(e){return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",noCache:"=?mdNoCache",requireMatch:"=?mdRequireMatch",selectOnMatch:"=?mdSelectOnMatch",matchInsensitive:"=?mdMatchCaseInsensitive",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",inputId:"@?mdInputId",escapeOptions:"@?mdEscapeOptions",dropdownItems:"=?mdDropdownItems",dropdownPosition:"@?mdDropdownPosition",clearButton:"=?mdClearButton"},compile:function(e,n){var r=["md-select-on-focus","md-no-asterisk","ng-trim","ng-pattern"],i=e.find("input");return r.forEach(function(e){var t=n[n.$normalize(e)];null!==t&&i.attr(e,t)}),function(e,n,r,i){i.hasNotFound=!!n.attr("md-has-not-found"),t.isDefined(r.mdClearButton)||e.floatingLabel||(e.clearButton=!0)}},template:function(t,n){var r=function(){var e=t.find("md-not-found").detach(),n=e.length?e.html():"";return n?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()" md-autocomplete-parent-scope>'+n+"</li>":""}(),i=function(){var e=t.find("md-item-template").detach(),n=e.length?e.html():t.html();return e.length||t.empty(),"<md-autocomplete-parent-scope md-autocomplete-replace>"+n+"</md-autocomplete-parent-scope>"}(),o=t.html(),a=n.tabindex;return r&&t.attr("md-has-not-found",!0),t.attr("tabindex","-1")," <md-autocomplete-wrap ng-class=\"{ 'md-whiteframe-z1': !floatingLabel, 'md-menu-showing': !$mdAutocompleteCtrl.hidden, 'md-show-clear-button': !!clearButton }\"> "+(n.mdFloatingLabel?' <md-input-container ng-if="floatingLabel"> <label>{{floatingLabel}}</label> <input type="search" '+(null!=a?'tabindex="'+a+'"':"")+' id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" autocomplete="off" ng-required="$mdAutocompleteCtrl.isRequired" ng-readonly="$mdAutocompleteCtrl.isReadonly" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-disabled="$mdAutocompleteCtrl.isDisabled" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-model-options="{ allowInvalid: true }" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{floatingLabel}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/> <div md-autocomplete-parent-scope md-autocomplete-replace>'+o+"</div> </md-input-container>":' <input type="search" '+(null!=a?'tabindex="'+a+'"':"")+' id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" ng-if="!floatingLabel" autocomplete="off" ng-required="$mdAutocompleteCtrl.isRequired" ng-disabled="$mdAutocompleteCtrl.isDisabled" ng-readonly="$mdAutocompleteCtrl.isReadonly" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" placeholder="{{placeholder}}" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{placeholder}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>')+' <button type="button" aria-label="Clear Input" tabindex="-1" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText && !$mdAutocompleteCtrl.isDisabled" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+e.mdClose+'"></md-icon></button> <md-progress-linear class="'+(n.mdFloatingLabel?"md-inline":"")+'" ng-if="$mdAutocompleteCtrl.loadingIsVisible()" md-mode="indeterminate"></md-progress-linear> <md-virtual-repeat-container md-auto-shrink md-auto-shrink-min="1" ng-mouseenter="$mdAutocompleteCtrl.listEnter()" ng-mouseleave="$mdAutocompleteCtrl.listLeave()" ng-mouseup="$mdAutocompleteCtrl.mouseUp()" ng-hide="$mdAutocompleteCtrl.hidden" class="md-autocomplete-suggestions-container md-whiteframe-z1" ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }" role="presentation"> <ul class="md-autocomplete-suggestions" ng-class="::menuClass" id="ul-{{$mdAutocompleteCtrl.id}}"> <li md-virtual-repeat="item in $mdAutocompleteCtrl.matches" ng-class="{ selected: $index === $mdAutocompleteCtrl.index }" ng-click="$mdAutocompleteCtrl.select($index)" md-extra-name="$mdAutocompleteCtrl.itemName"> '+i+" </li>"+r+" </ul> </md-virtual-repeat-container> </md-autocomplete-wrap>"}}}e.$inject=["$$mdSvgRegistry"],t.module("material.components.autocomplete").directive("mdAutocomplete",e)}(),function(){function e(e,t){return{restrict:"AE",compile:function(e,n,r){return function(e,n,i){function o(n,r){s[r]=e[n],e.$watch(n,function(e){t.nextTick(function(){s[r]=e})})}var a=e.$mdAutocompleteCtrl,s=a.parent.$new(),c=a.itemName;o("$index","$index"),o("item",c),function(){var t=!1,n=!1;e.$watch(function(){n||t||(t=!0,e.$$postDigest(function(){n||s.$digest(),t=n=!1}))}),s.$watch(function(){n=!0})}(),r(s,function(e){n.after(e)})}},terminal:!0,transclude:"element"}}e.$inject=["$compile","$mdUtil"],t.module("material.components.autocomplete").directive("mdAutocompleteParentScope",e)}(),function(){function e(e,t,n){this.$scope=e,this.$element=t,this.$attrs=n,this.regex=null}e.$inject=["$scope","$element","$attrs"],t.module("material.components.autocomplete").controller("MdHighlightCtrl",e),e.prototype.init=function(e,t){this.flags=this.$attrs.mdHighlightFlags||"",this.unregisterFn=this.$scope.$watch(function(n){return{term:e(n),contentText:t(n)}}.bind(this),this.onRender.bind(this),!0),this.$element.on("$destroy",this.unregisterFn)},e.prototype.onRender=function(e,t){var n=e.contentText;null!==this.regex&&e.term===t.term||(this.regex=this.createRegex(e.term,this.flags)),e.term?this.applyRegex(n):this.$element.text(n)},e.prototype.applyRegex=function(e){var n=this.resolveTokens(e);this.$element.empty(),n.forEach(function(e){if(e.isMatch){var n=t.element('<span class="highlight">').text(e.text);this.$element.append(n)}else this.$element.append(document.createTextNode(e))}.bind(this))},e.prototype.resolveTokens=function(e){function t(t,r){var i=e.slice(t,r);i&&n.push(i)}var n=[],r=0;return e.replace(this.regex,function(e,i){t(r,i),n.push({text:e,isMatch:!0}),r=i+e.length}),t(r),n},e.prototype.createRegex=function(e,t){var n="",r="",i=this.sanitizeRegex(e);return t.indexOf("^")>=0&&(n="^"),t.indexOf("$")>=0&&(r="$"),new RegExp(n+i+r,t.replace(/[$\^]/g,""))},e.prototype.sanitizeRegex=function(e){return e&&e.toString().replace(/[\\\^\$\*\+\?\.\(\)\|\{}\[\]]/g,"\\$&")}}(),function(){function e(e,t){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(n,r){var i=t(r.mdHighlightText),o=e(n.html());return function(e,t,n,r){r.init(i,o)}}}}e.$inject=["$interpolate","$parse"],t.module("material.components.autocomplete").directive("mdHighlightText",e)}(),function(){function r(e,t,r,i,o){this.$scope=e,this.$element=t,this.$mdConstant=r,this.$timeout=i,this.$mdUtil=o,this.isEditting=!1,this.parentController=n,this.enableChipEdit=!1}r.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],t.module("material.components.chips").controller("MdChipCtrl",r),r.prototype.init=function(e){this.parentController=e,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on("keydown",this.chipKeyDown.bind(this)),this.$element.on("mousedown",this.chipMouseDown.bind(this)),this.getChipContent().addClass("_md-chip-content-edit-is-enabled"))},r.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return t.element(e[0])},r.prototype.getContentElement=function(){return t.element(this.getChipContent().children()[0])},r.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},r.prototype.goOutOfEditMode=function(){if(this.isEditting){this.isEditting=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var e=this.getChipIndex();this.getContentElement().text()?(this.parentController.updateChipContents(e,this.getContentElement().text()),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===e&&this.parentController.focusChip(e)}.bind(this))):this.parentController.removeChipAndFocusInput(e)}},r.prototype.selectNodeContents=function(t){var n,r;document.body.createTextRange?((n=document.body.createTextRange()).moveToElementText(t),n.select()):e.getSelection&&(r=e.getSelection(),(n=document.createRange()).selectNodeContents(t),r.removeAllRanges(),r.addRange(n))},r.prototype.goInEditMode=function(){this.isEditting=!0,this.$element.addClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="true",this.getChipContent().on("blur",function(){this.goOutOfEditMode()}.bind(this)),this.selectNodeContents(this.getChipContent()[0])},r.prototype.chipKeyDown=function(e){this.isEditting||e.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&e.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditting&&e.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(e.preventDefault(),this.goOutOfEditMode()):(e.preventDefault(),this.goInEditMode())},r.prototype.chipMouseDown=function(){this.getChipIndex()==this.parentController.selectedChip&&this.enableChipEdit&&!this.isEditting&&this.goInEditMode()}}(),function(){function e(e,r,i,o){var a=r.processTemplate(n);return{restrict:"E",require:["^?mdChips","mdChip"],link:function(n,r,s,c){var l=c.shift(),d=c.shift(),u=t.element(r[0].querySelector(".md-chip-content"));e(r),l&&(d.init(l),u.append(i(a)(n)),u.on("blur",function(){l.resetSelectedChip(),l.$scope.$applyAsync()})),o(function(){l&&l.shouldFocusLastChip&&l.focusLastChipThenInput()})},controller:"MdChipCtrl"}}e.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],t.module("material.components.chips").directive("mdChip",e);var n=' <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden"> {{$mdChipsCtrl.deleteHint}} </span>'}(),function(){function e(e){return{restrict:"A",require:"^mdChips",scope:!1,link:function(t,n,r,i){n.on("click",function(e){t.$apply(function(){i.removeChip(t.$$replacedScope.$index)})}),e(function(){n.attr({tabindex:-1,"aria-hidden":!0}),n.find("button").attr("tabindex","-1")})}}}e.$inject=["$timeout"],t.module("material.components.chips").directive("mdChipRemove",e)}(),function(){function e(e){return{restrict:"EA",terminal:!0,link:function(t,n,r){var i=t.$parent.$mdChipsCtrl,o=i.parent.$new(!1,i.parent);o.$$replacedScope=t,o.$chip=t.$chip,o.$index=t.$index,o.$mdChipsCtrl=i;var a=i.$scope.$eval(r.mdChipTransclude);n.html(a),e(n.contents())(o)},scope:!1}}e.$inject=["$compile"],t.module("material.components.chips").directive("mdChipTransclude",e)}(),function(){function e(e,t,r,i,o,a,s){this.$timeout=a,this.$mdConstant=r,this.$scope=e,this.parent=e.$parent,this.$mdUtil=s,this.$log=i,this.$element=o,this.$attrs=t,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=s.parseAttributeBoolean(t.mdEnableChipEdit),this.addOnBlur=s.parseAttributeBoolean(t.mdAddOnBlur),this.inputAriaLabel="Chips input.",this.containerHint="Chips container. Use arrow keys to select chips.",this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.wrapperId="",this.contentIds=[],this.ariaTabIndex=null,this.chipAppendDelay=n,this.init()}e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil"];var n=300;t.module("material.components.chips").controller("MdChipsCtrl",e),e.prototype.init=function(){var e=this;e.wrapperId="_md-chips-wrapper-"+e.$mdUtil.nextUid(),e.$scope.$watchCollection("$mdChipsCtrl.items",function(){e.setupInputAria(),e.setupWrapperAria()}),e.$attrs.$observe("mdChipAppendDelay",function(t){e.chipAppendDelay=parseInt(t)||n})},e.prototype.setupInputAria=function(){var e=this.$element.find("input");e&&(e.attr("role","textbox"),e.attr("aria-multiline",!0))},e.prototype.setupWrapperAria=function(){var e=this,t=this.$element.find("md-chips-wrap");this.items&&this.items.length?(t.attr("role","listbox"),this.contentIds=this.items.map(function(){return e.wrapperId+"-chip-"+e.$mdUtil.nextUid()}),t.attr("aria-owns",this.contentIds.join(" "))):(t.removeAttr("role"),t.removeAttr("aria-owns"))},e.prototype.inputKeydown=function(e){var t=this.getChipBuffer();if(!(this.autocompleteCtrl&&e.isDefaultPrevented&&e.isDefaultPrevented())){if(e.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(e.target))return;return e.preventDefault(),e.stopPropagation(),void(this.items.length&&this.selectAndFocusChipSafe(this.items.length-1))}if((!this.separatorKeys||this.separatorKeys.length<1)&&(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1!==this.separatorKeys.indexOf(e.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!t)return;if(e.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(t.trim()),this.resetChipBuffer(),!1}}},e.prototype.getCursorPosition=function(e){try{if(e.selectionStart===e.selectionEnd)return e.selectionStart}catch(t){if(!e.value)return 0}},e.prototype.updateChipContents=function(e,t){e>=0&&e<this.items.length&&(this.items[e]=t,this.ngModelCtrl.$setDirty())},e.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!t.isDefined(this.removable)||this.removable)},e.prototype.chipKeydown=function(e){if(!this.getChipBuffer()&&!this.isEditingChip())switch(e.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(e.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:e.preventDefault(),(this.selectedChip<0||this.readonly&&0==this.selectedChip)&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:e.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;e.preventDefault(),this.onFocus()}},e.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""==this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},e.prototype.removeAndSelectAdjacentChip=function(e){var t=this,n=t.getAdjacentChipIndex(e);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+e+'"]');t.removeChip(e),t.$timeout(function(){t.$timeout(function(){t.selectAndFocusChipSafe(n)})})},e.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},e.prototype.getAdjacentChipIndex=function(e){var t=this.items.length-1;return 0==t?-1:e==t?e-1:e},e.prototype.appendChip=function(e){if(this.shouldFocusLastChip=!0,this.useTransformChip&&this.transformChip){var n=this.transformChip({$chip:e});t.isDefined(n)&&(e=n)}if(!(t.isObject(e)&&this.items.some(function(n){return t.equals(e,n)})||null==e||this.items.indexOf(e)+1)){var r=this.items.push(e)-1;this.ngModelCtrl.$setDirty(),this.validateModel(),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:e,$index:r})}},e.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},e.prototype.useOnAddExpression=function(){this.useOnAdd=!0},e.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},e.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},e.prototype.getChipBuffer=function(){var e=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return t.isString(e)?e:""},e.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},e.prototype.hasMaxChipsReached=function(){return t.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),this.maxChips>0&&this.items.length>=this.maxChips},e.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached())},e.prototype.removeChip=function(e){var t=this.items.splice(e,1);this.ngModelCtrl.$setDirty(),this.validateModel(),t&&t.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:t[0],$index:e})},e.prototype.removeChipAndFocusInput=function(e){this.removeChip(e),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){if(!this.items.length||-1===e)return this.focusInput();if(e>=this.items.length){if(!this.readonly)return this.onFocus();e=0}e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),this.focusChip(e)},e.prototype.focusLastChipThenInput=function(){var e=this;e.shouldFocusLastChip=!1,e.focusChip(this.items.length-1),e.$timeout(function(){e.focusInput()},e.chipAppendDelay)},e.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},e.prototype.selectChip=function(e){e>=-1&&e<=this.items.length?(this.selectedChip=e,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[e]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.selectAndFocusChip=function(e){this.selectChip(e),-1!=e&&this.focusChip(e)},e.prototype.focusChip=function(e){var t=this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content');this.ariaTabIndex=e,t.focus()},e.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$render=function(){t.items=t.ngModelCtrl.$viewValue}},e.prototype.onFocus=function(){var e=this.$element[0].querySelector("input");e&&e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},e.prototype.configureUserInput=function(e){this.userInputElement=e;var n=e.controller("ngModel");n!=this.ngModelCtrl&&(this.userInputNgModelCtrl=n);var r=this.$scope,i=this,o=function(e,n){r.$evalAsync(t.bind(i,n,e))};e.attr({tabindex:0}).on("keydown",function(e){o(e,i.inputKeydown)}).on("focus",function(e){o(e,i.onInputFocus)}).on("blur",function(e){o(e,i.onInputBlur)})},e.prototype.configureAutocomplete=function(e){e&&(this.autocompleteCtrl=e,e.registerSelectedItemWatcher(t.bind(this,function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}})),this.$element.find("input").on("focus",t.bind(this,this.onInputFocus)).on("blur",t.bind(this,this.onInputBlur)))},e.prototype.shouldAddOnBlur=function(){this.validateModel();var e=this.getChipBuffer().trim(),t=this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(t=t&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&e&&t&&!n},e.prototype.hasFocus=function(){return this.inputHasFocus||this.selectedChip>=0},e.prototype.contentIdFor=function(e){return this.contentIds[e]}}(),function(){function e(e,t,a,s,c,l){var d={chips:t.processTemplate(n),input:t.processTemplate(r),default:t.processTemplate(i),remove:t.processTemplate(o)};return{template:function(e,t){return t.$mdUserTemplate=e.clone(),d.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(n,r){function i(e){if(r.ngModel){var t=o[0].querySelector(e);return t&&t.outerHTML}}var o=r.$mdUserTemplate;r.$mdUserTemplate=null;var u=i("md-chips>md-chip-template"),m=i(t.prefixer().buildList("md-chip-remove").map(function(e){return"md-chips>*["+e+"]"}).join(","))||d.remove,p=u||d.default,h=i("md-chips>md-autocomplete")||i("md-chips>input")||d.input,f=o.find("md-chip");return o[0].querySelector("md-chip-template>*[md-chip-remove]")&&s.warn("invalid placement of md-chip-remove within md-chip-template."),function(n,i,o,s){t.initOptionalProperties(n,r),e(i);var g=s[0];if(u&&(g.enableChipEdit=!1),g.chipContentsTemplate=p,g.chipRemoveTemplate=m,g.chipInputTemplate=h,g.mdCloseIcon=l.mdClose,i.attr({tabindex:-1}).on("focus",function(){g.onFocus()}),r.ngModel&&(g.configureNgModel(i.controller("ngModel")),o.mdTransformChip&&g.useTransformChipExpression(),o.mdOnAppend&&g.useOnAppendExpression(),o.mdOnAdd&&g.useOnAddExpression(),o.mdOnRemove&&g.useOnRemoveExpression(),o.mdOnSelect&&g.useOnSelectExpression(),h!=d.input&&n.$watch("$mdChipsCtrl.readonly",function(e){e||t.nextTick(function(){if(0===h.indexOf("<md-autocomplete")){var e=i.find("md-autocomplete");g.configureAutocomplete(e.controller("mdAutocomplete"))}g.configureUserInput(i.find("input"))})}),t.nextTick(function(){var e=i.find("input");e&&e.toggleClass("md-input",!0)})),f.length>0){var v=a(f.clone())(n.$parent);c(function(){i.find("md-chips-wrap").prepend(v)})}}},scope:{readonly:"=readonly",removable:"=mdRemovable",placeholder:"@",secondaryPlaceholder:"@",maxChips:"@mdMaxChips",transformChip:"&mdTransformChip",onAppend:"&mdOnAppend",onAdd:"&mdOnAdd",onRemove:"&mdOnRemove",onSelect:"&mdOnSelect",inputAriaLabel:"@",containerHint:"@",deleteHint:"@",deleteButtonLabel:"@",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch",chipAppendDelayString:"@?mdChipAppendDelay"}}}e.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],t.module("material.components.chips").directive("mdChips",e);var n=' <md-chips-wrap id="{{$mdChipsCtrl.wrapperId}}" tabindex="{{$mdChipsCtrl.readonly ? 0 : -1}}" ng-keydown="$mdChipsCtrl.chipKeydown($event)" ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(), \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly, \'md-removable\': $mdChipsCtrl.isRemovable() }" aria-setsize="{{$mdChipsCtrl.items.length}}" class="md-chips"> <span ng-if="$mdChipsCtrl.readonly" class="md-visually-hidden"> {{$mdChipsCtrl.containerHint}} </span> <md-chip ng-repeat="$chip in $mdChipsCtrl.items" index="{{$index}}" ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly}"> <div class="md-chip-content" tabindex="{{$mdChipsCtrl.ariaTabIndex == $index ? 0 : -1}}" id="{{$mdChipsCtrl.contentIdFor($index)}}" role="option" aria-selected="{{$mdChipsCtrl.selectedChip == $index}}" aria-posinset="{{$index}}" ng-click="!$mdChipsCtrl.readonly && $mdChipsCtrl.focusChip($index)" ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)" md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div> <div ng-if="$mdChipsCtrl.isRemovable()" class="md-chip-remove-container" tabindex="-1" md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div> </md-chip> <div class="md-chip-input-container" ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl"> <div md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div> </div> </md-chips-wrap>',r=' <input class="md-input" tabindex="0" aria-label="{{$mdChipsCtrl.inputAriaLabel}}" placeholder="{{$mdChipsCtrl.getPlaceholder()}}" ng-model="$mdChipsCtrl.chipBuffer" ng-focus="$mdChipsCtrl.onInputFocus()" ng-blur="$mdChipsCtrl.onInputBlur()" ng-keydown="$mdChipsCtrl.inputKeydown($event)">',i=" <span>{{$chip}}</span>",o=' <button class="md-chip-remove" ng-if="$mdChipsCtrl.isRemovable()" ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)" type="button" tabindex="-1"> <md-icon md-svg-src="{{ $mdChipsCtrl.mdCloseIcon }}"></md-icon> <span class="md-visually-hidden"> {{$mdChipsCtrl.deleteButtonLabel}} </span> </button>'}(),function(){function e(){this.selectedItem=null,this.searchText=""}t.module("material.components.chips").controller("MdContactChipsCtrl",e),e.prototype.queryContact=function(e){return this.contactQuery({$query:e})},e.prototype.itemName=function(e){return e[this.contactName]}}(),function(){function e(e,t){return{template:function(e,t){return n},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:function(n,r){return function(n,i,o,a){var s=a;t.initOptionalProperties(n,r),e(i),i.attr("tabindex","-1"),o.$observe("mdChipAppendDelay",function(e){s.chipAppendDelay=e})}},scope:{contactQuery:"&mdContacts",placeholder:"@",secondaryPlaceholder:"@",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",requireMatch:"=?mdRequireMatch",minLength:"=?mdMinLength",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay"}}}e.$inject=["$mdTheming","$mdUtil"],t.module("material.components.chips").directive("mdContactChips",e);var n=' <md-chips class="md-contact-chips" ng-model="$mdContactChipsCtrl.contacts" md-require-match="$mdContactChipsCtrl.requireMatch" md-chip-append-delay="{{$mdContactChipsCtrl.chipAppendDelay}}" md-autocomplete-snap> <md-autocomplete md-menu-class="md-contact-chips-suggestions" md-selected-item="$mdContactChipsCtrl.selectedItem" md-search-text="$mdContactChipsCtrl.searchText" md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)" md-item-text="$mdContactChipsCtrl.itemName(item)" md-no-cache="true" md-min-length="$mdContactChipsCtrl.minLength" md-autoselect placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ? $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}"> <div class="md-contact-suggestion"> <img ng-src="{{item[$mdContactChipsCtrl.contactImage]}}" alt="{{item[$mdContactChipsCtrl.contactName]}}" ng-if="item[$mdContactChipsCtrl.contactImage]" /> <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText" md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}"> {{item[$mdContactChipsCtrl.contactName]}} </span> <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span> </div> </md-autocomplete> <md-chip-template> <div class="md-contact-avatar"> <img ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}" alt="{{$chip[$mdContactChipsCtrl.contactName]}}" ng-if="$chip[$mdContactChipsCtrl.contactImage]" /> </div> <div class="md-contact-name"> {{$chip[$mdContactChipsCtrl.contactName]}} </div> </md-chip-template> </md-chips>'}(),function(){function e(e,n,i,o,a,s,c,l,d){s(e),this.$element=e,this.$scope=n,this.dateUtil=i,this.$mdUtil=o,this.keyCode=a.KEY_CODE,this.$$rAF=c,this.$mdDateLocale=d,this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=null,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=r++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,l.tabindex||e.attr("tabindex","-1");var u,m=t.bind(this,this.handleKeyEvent);(u=e.parent().hasClass("md-datepicker-calendar")?t.element(document.body):e).on("keydown",m),n.$on("$destroy",function(){u.off("keydown",m)}),1===t.version.major&&t.version.minor<=4&&this.$onInit()}e.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendar",function(){return{template:function(e,t){return'<div ng-switch="calendarCtrl.currentView" '+(t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"')+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>'},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:e,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0];r[1].configureNgModel(i)}}});var n=340,r=0;e.prototype.$onInit=function(){this.currentView=this._currentView||"month";var e=this.$mdDateLocale;this.minDate&&this.minDate>e.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=e.firstRenderableDate,this.maxDate&&this.maxDate<e.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=e.lastRenderableDate},e.prototype.configureNgModel=function(e){var t=this;t.ngModelCtrl=e,t.$mdUtil.nextTick(function(){t.isInitialized=!0}),e.$render=function(){var e=this.$viewValue;t.$scope.$broadcast("md-calendar-parent-changed",e),t.selectedDate||(t.selectedDate=e),t.displayDate||(t.displayDate=t.selectedDate||t.today)}},e.prototype.setNgModelValue=function(e){var t=this.dateUtil.createDateAtMidnight(e);return this.focus(t),this.$scope.$emit("md-calendar-change",t),this.ngModelCtrl.$setViewValue(t),this.ngModelCtrl.$render(),t},e.prototype.setCurrentView=function(e,n){var r=this;r.$mdUtil.nextTick(function(){r.currentView=e,n&&(r.displayDate=t.isDate(n)?n:new Date(n))})},e.prototype.focus=function(e){if(this.dateUtil.isValidDate(e)){var t=this.$element[0].querySelector(".md-focus");t&&t.classList.remove(this.FOCUSED_DATE_CLASS);var n=this.getDateId(e,this.currentView),r=document.getElementById(n);r&&(r.classList.add(this.FOCUSED_DATE_CLASS),r.focus(),this.displayDate=e)}else{var i=this.$element[0].querySelector("[ng-switch]");i&&i.focus()}},e.prototype.getActionFromKeyEvent=function(e){var t=this.keyCode;switch(e.which){case t.ENTER:return"select";case t.RIGHT_ARROW:return"move-right";case t.LEFT_ARROW:return"move-left";case t.DOWN_ARROW:return e.metaKey?"move-page-down":"move-row-down";case t.UP_ARROW:return e.metaKey?"move-page-up":"move-row-up";case t.PAGE_DOWN:return"move-page-down";case t.PAGE_UP:return"move-page-up";case t.HOME:return"start";case t.END:return"end";default:return null}},e.prototype.handleKeyEvent=function(e){var t=this;this.$scope.$apply(function(){if(e.which==t.keyCode.ESCAPE||e.which==t.keyCode.TAB)return t.$scope.$emit("md-calendar-close"),void(e.which==t.keyCode.TAB&&e.preventDefault());var n=t.getActionFromKeyEvent(e);n&&(e.preventDefault(),e.stopPropagation(),t.$scope.$broadcast("md-calendar-parent-action",n))})},e.prototype.hideVerticalScrollbar=function(e){function t(){var t=r.width||n,i=r.scrollbarWidth,a=e.calendarScroller;o.style.width=t+"px",a.style.width=t+i+"px",a.style.paddingRight=i+"px"}var r=this,i=e.$element[0],o=i.querySelector(".md-calendar-scroll-mask");r.width>0?t():r.$$rAF(function(){var n=e.calendarScroller;r.scrollbarWidth=n.offsetWidth-n.clientWidth,r.width=i.querySelector("table").offsetWidth,t()})},e.prototype.getDateId=function(e,t){if(!t)throw new Error("A namespace for the date id has to be specified.");return["md",this.id,t,e.getFullYear(),e.getMonth(),e.getDate()].join("-")},e.prototype.updateVirtualRepeat=function(){var e=this.$scope,t=e.$on("$md-resize-enable",function(){e.$$phase||e.$apply(),t()})}}(),function(){function e(e,t,n,r,i,o){this.$element=e,this.$scope=t,this.$animate=n,this.$q=r,this.dateUtil=i,this.dateLocale=o,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var a=this;this.cellClickHandler=function(){var e=i.getTimestampFromNode(this);a.$scope.$apply(function(){a.calendarCtrl.setNgModelValue(e)})},this.headerClickHandler=function(){a.calendarCtrl.setCurrentView("year",i.getTimestampFromNode(this))}}e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarMonth",function(){return{template:'<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table><div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="'+(r-n)+'"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-month-body role="rowgroup" md-virtual-repeat="i in monthCtrl.items" md-month-offset="$index" class="md-calendar-month" md-start-index="monthCtrl.getSelectedMonthIndex()" md-item-size="'+n+'"><tr aria-hidden="true" style="height:'+n+'px;"></tr></tbody></table></md-virtual-repeat-container></div>',require:["^^mdCalendar","mdCalendarMonth"],controller:e,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0];r[1].initialize(i)}}});var n=265,r=45;e.prototype.initialize=function(e){this.items={length:this.dateUtil.getMonthDistance(e.firstRenderableDate,e.lastRenderableDate)+2},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},e.prototype.getSelectedMonthIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getMonthDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},e.prototype.changeSelectedDate=function(e){var t=this.calendarCtrl,n=t.selectedDate;t.selectedDate=e,this.changeDisplayDate(e).then(function(){var r=t.SELECTED_DATE_CLASS;if(n){var i=document.getElementById(t.getDateId(n,"month"));i&&(i.classList.remove(r),i.setAttribute("aria-selected","false"))}if(e){var o=document.getElementById(t.getDateId(e,"month"));o&&(o.classList.add(r),o.setAttribute("aria-selected","true"))}})},e.prototype.changeDisplayDate=function(e){if(!this.isInitialized)return this.buildWeekHeader(),this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(!this.dateUtil.isValidDate(e)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var t=this.animateDateChange(e);this.calendarCtrl.displayDate=e;var n=this;return t.then(function(){n.isMonthTransitionInProgress=!1}),t},e.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*n}return this.$q.when()},e.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,n=document.createElement("tr"),r=0;r<7;r++){var i=document.createElement("th");i.textContent=t[(r+e)%7],n.appendChild(i)}this.$element.find("thead").append(n)},e.prototype.attachScopeListeners=function(){var e=this;e.$scope.$on("md-calendar-parent-changed",function(t,n){e.changeSelectedDate(n)}),e.$scope.$on("md-calendar-parent-action",t.bind(this,this.handleKeyEvent))},e.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,r=n.displayDate;if("select"===t)n.setNgModelValue(r);else{var i=null,o=this.dateUtil;switch(t){case"move-right":i=o.incrementDays(r,1);break;case"move-left":i=o.incrementDays(r,-1);break;case"move-page-down":i=o.incrementMonths(r,1);break;case"move-page-up":i=o.incrementMonths(r,-1);break;case"move-row-down":i=o.incrementDays(r,7);break;case"move-row-up":i=o.incrementDays(r,-7);break;case"start":i=o.getFirstDateOfMonth(r);break;case"end":i=o.getLastDateOfMonth(r)}i&&(i=this.dateUtil.clampDate(i,n.minDate,n.maxDate),this.changeDisplayDate(i).then(function(){n.focus(i)}))}}}(),function(){function e(e,r){var i=e('<md-icon md-svg-src="'+r.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:n,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,n,r,o){var a=o[0],s=o[1],c=o[2];c.calendarCtrl=a,c.monthCtrl=s,c.arrowIcon=i.cloneNode(!0),e.$watch(function(){return c.offset},function(e){t.isNumber(e)&&c.generateContent()})}}}function n(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$compile","$$mdSvgRegistry"],n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarMonthBody",e),n.prototype.generateContent=function(){var e=this.dateUtil.incrementMonths(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForMonth(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildDateCell=function(e){var t=this.monthCtrl,n=this.calendarCtrl,r=document.createElement("td");if(r.tabIndex=-1,r.classList.add("md-calendar-date"),r.setAttribute("role","gridcell"),e){r.setAttribute("tabindex","-1"),r.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),r.id=n.getDateId(e,"month"),r.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,n.today)&&r.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameDay(e,n.selectedDate)&&(r.classList.add(n.SELECTED_DATE_CLASS),r.setAttribute("aria-selected","true"));var i=this.dateLocale.dates[e.getDate()];if(this.isDateEnabled(e)){var o=document.createElement("span");o.classList.add("md-calendar-date-selection-indicator"),o.textContent=i,r.appendChild(o),r.addEventListener("click",t.cellClickHandler),n.displayDate&&this.dateUtil.isSameDay(e,n.displayDate)&&(this.focusAfterAppend=r)}else r.classList.add("md-calendar-date-disabled"),r.textContent=i}return r},n.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!t.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},n.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},n.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,n=this.dateUtil.getFirstDateOfMonth(t),r=this.getLocaleDay_(n),i=this.dateUtil.getNumberOfDaysInMonth(t),o=document.createDocumentFragment(),a=1,s=this.buildDateRow(a);o.appendChild(s);var c=this.offset===this.monthCtrl.items.length-1,l=0,d=document.createElement("td"),u=document.createElement("span");if(u.textContent=this.dateLocale.monthHeaderFormatter(t),d.appendChild(u),d.classList.add("md-calendar-month-label"),this.calendarCtrl.maxDate&&n>this.calendarCtrl.maxDate?d.classList.add("md-calendar-month-label-disabled"):(d.addEventListener("click",this.monthCtrl.headerClickHandler),d.setAttribute("data-timestamp",n.getTime()),d.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),d.appendChild(this.arrowIcon.cloneNode(!0))),r<=2){d.setAttribute("colspan","7");var m=this.buildDateRow();if(m.appendChild(d),o.insertBefore(m,s),c)return o}else l=3,d.setAttribute("colspan","3"),s.appendChild(d);for(var p=l;p<r;p++)s.appendChild(this.buildDateCell());for(var h=r,f=n,g=1;g<=i;g++){if(7===h){if(c)return o;h=0,a++,s=this.buildDateRow(a),o.appendChild(s)}f.setDate(g);var v=this.buildDateCell(f);s.appendChild(v),h++}for(;s.childNodes.length<7;)s.appendChild(this.buildDateCell());for(;o.childNodes.length<6;){for(var $=this.buildDateRow(),b=0;b<7;b++)$.appendChild(this.buildDateCell());o.appendChild($)}return o},n.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}(),function(){function e(e,t,n,r,i){this.$element=e,this.$scope=t,this.$animate=n,this.$q=r,this.dateUtil=i,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var o=this;this.cellClickHandler=function(){o.calendarCtrl.setCurrentView("month",i.getTimestampFromNode(this))}}e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil"],t.module("material.components.datepicker").directive("mdCalendarYear",function(){return{template:'<div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-year-body role="rowgroup" md-virtual-repeat="i in yearCtrl.items" md-year-offset="$index" class="md-calendar-year" md-start-index="yearCtrl.getFocusedYearIndex()" md-item-size="'+n+'"><tr aria-hidden="true" style="height:'+n+'px;"></tr></tbody></table></md-virtual-repeat-container></div>',require:["^^mdCalendar","mdCalendarYear"],controller:e,controllerAs:"yearCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0];r[1].initialize(i)}}});var n=88;e.prototype.initialize=function(e){this.items={length:this.dateUtil.getYearDistance(e.firstRenderableDate,e.lastRenderableDate)+1},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},e.prototype.getFocusedYearIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getYearDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},e.prototype.changeDate=function(e){if(!this.isInitialized)return this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(this.dateUtil.isValidDate(e)&&!this.isMonthTransitionInProgress){var t=this,n=this.animateDateChange(e);return t.isMonthTransitionInProgress=!0,t.calendarCtrl.displayDate=e,n.then(function(){t.isMonthTransitionInProgress=!1})}},e.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*n}return this.$q.when()},e.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,r=n.displayDate;if("select"===t)this.changeDate(r).then(function(){n.setCurrentView("month",r),n.focus(r)});else{var i=null,o=this.dateUtil;switch(t){case"move-right":i=o.incrementMonths(r,1);break;case"move-left":i=o.incrementMonths(r,-1);break;case"move-row-down":i=o.incrementMonths(r,6);break;case"move-row-up":i=o.incrementMonths(r,-6)}if(i){var a=n.minDate?o.getFirstDateOfMonth(n.minDate):null,s=n.maxDate?o.getFirstDateOfMonth(n.maxDate):null;i=o.getFirstDateOfMonth(this.dateUtil.clampDate(i,a,s)),this.changeDate(i).then(function(){n.focus(i)})}}},e.prototype.attachScopeListeners=function(){var e=this;e.$scope.$on("md-calendar-parent-changed",function(t,n){e.changeDate(n)}),e.$scope.$on("md-calendar-parent-action",t.bind(e,e.handleKeyEvent))}}(),function(){function e(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$element","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarYearBody",function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:e,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,n,r,i){var o=i[0],a=i[1],s=i[2];s.calendarCtrl=o,s.yearCtrl=a,e.$watch(function(){return s.offset},function(e){t.isNumber(e)&&s.generateContent()})}}}),e.prototype.generateContent=function(){var e=this.dateUtil.incrementYears(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForYear(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},e.prototype.buildMonthCell=function(e,t){var n=this.calendarCtrl,r=this.yearCtrl,i=this.buildBlankCell(),o=new Date(e,t,1);i.setAttribute("aria-label",this.dateLocale.monthFormatter(o)),i.id=n.getDateId(o,"year"),i.setAttribute("data-timestamp",o.getTime()),this.dateUtil.isSameMonthAndYear(o,n.today)&&i.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameMonthAndYear(o,n.selectedDate)&&(i.classList.add(n.SELECTED_DATE_CLASS),i.setAttribute("aria-selected","true"));var a=this.dateLocale.shortMonths[t];if(this.dateUtil.isMonthWithinRange(o,n.minDate,n.maxDate)){var s=document.createElement("span");s.classList.add("md-calendar-date-selection-indicator"),s.textContent=a,i.appendChild(s),i.addEventListener("click",r.cellClickHandler),n.displayDate&&this.dateUtil.isSameMonthAndYear(o,n.displayDate)&&(this.focusAfterAppend=i)}else i.classList.add("md-calendar-date-disabled"),i.textContent=a;return i},e.prototype.buildBlankCell=function(){var e=document.createElement("td");return e.tabIndex=-1,e.classList.add("md-calendar-date"),e.setAttribute("role","gridcell"),e.setAttribute("tabindex","-1"),e},e.prototype.buildCalendarForYear=function(e){var t,n=e.getFullYear(),r=document.createDocumentFragment(),i=document.createElement("tr"),o=document.createElement("td");for(o.className="md-calendar-month-label",o.textContent=n,i.appendChild(o),t=0;t<6;t++)i.appendChild(this.buildMonthCell(n,t));r.appendChild(i);var a=document.createElement("tr");for(a.appendChild(this.buildBlankCell()),t=6;t<12;t++)a.appendChild(this.buildMonthCell(n,t));return r.appendChild(a),r}}(),t.module("material.components.datepicker").config(["$provide",function(e){function t(){this.months=null,this.shortMonths=null,this.days=null,this.shortDays=null,this.dates=null,this.firstDayOfWeek=0,this.formatDate=null,this.parseDate=null,this.monthHeaderFormatter=null,this.weekNumberFormatter=null,this.longDateFormatter=null,this.msgCalendar="",this.msgOpenCalendar=""}t.prototype.$get=function(e,t){for(var n=e.DATETIME_FORMATS.SHORTDAY.map(function(e){return e.substring(0,1)}),r=Array(32),i=1;i<=31;i++)r[i]=i;var o=new Date(1880,0,1),a=new Date(o.getFullYear()+250,0,1),s={months:this.months||e.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||e.DATETIME_FORMATS.SHORTMONTH,days:this.days||e.DATETIME_FORMATS.DAY,shortDays:this.shortDays||n,dates:this.dates||r,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||function(e,n){if(!e)return"";var r=e.toLocaleTimeString(),i=e;return 0!==e.getHours()||-1===r.indexOf("11:")&&-1===r.indexOf("23:")||(i=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),t("date")(i,"M/d/yyyy",n)},parseDate:this.parseDate||function(e){return new Date(e)},isDateComplete:this.isDateComplete||function(e){return e=e.trim(),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ \.,]+|[\/\-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/.test(e)},monthHeaderFormatter:this.monthHeaderFormatter||function(e){return s.shortMonths[e.getMonth()]+" "+e.getFullYear()},monthFormatter:this.monthFormatter||function(e){return s.months[e.getMonth()]+" "+e.getFullYear()},weekNumberFormatter:this.weekNumberFormatter||function(e){return"Week "+e},longDateFormatter:this.longDateFormatter||function(e){return[s.days[e.getDay()],s.months[e.getMonth()],s.dates[e.getDate()],e.getFullYear()].join(" ")},msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||o,lastRenderableDate:this.lastRenderableDate||a};return s},t.prototype.$get.$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}]),t.module("material.components.datepicker").factory("$$mdDateUtil",function(){function e(e){return new Date(e.getFullYear(),e.getMonth(),1)}function n(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function r(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function i(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function o(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function a(e,t){var r=new Date(e.getFullYear(),e.getMonth()+t,1),i=n(r);return i<e.getDate()?r.setDate(i):r.setDate(e.getDate()),r}function s(e){return e&&e.getTime&&!isNaN(e.getTime())}function c(e){s(e)&&e.setHours(0,0,0,0)}function l(e){var n;return n=t.isUndefined(e)?new Date:new Date(e),c(n),n}return{getFirstDateOfMonth:e,getNumberOfDaysInMonth:n,getDateInNextMonth:r,getDateInPreviousMonth:i,isInNextMonth:function(e,t){return o(r(e),t)},isInPreviousMonth:function(e,t){return o(t,i(e))},getDateMidpoint:function(e,t){return l((e.getTime()+t.getTime())/2)},isSameMonthAndYear:o,getWeekOfMonth:function(t){var n=e(t);return Math.floor((n.getDay()+t.getDate()-1)/7)},incrementDays:function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},incrementMonths:a,getLastDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),n(e))},isSameDay:function(e,t){return e.getDate()==t.getDate()&&o(e,t)},getMonthDistance:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},isValidDate:s,setDateTimeToMidnight:c,createDateAtMidnight:l,isDateWithinRange:function(e,t,n){var r=l(e),i=s(t)?l(t):null,o=s(n)?l(n):null;return(!i||i<=r)&&(!o||o>=r)},incrementYears:function(e,t){return a(e,12*t)},getYearDistance:function(e,t){return t.getFullYear()-e.getFullYear()},clampDate:function(e,t,n){var r=e;return t&&e<t&&(r=new Date(t.getTime())),n&&e>n&&(r=new Date(n.getTime())),r},getTimestampFromNode:function(e){if(e&&e.hasAttribute("data-timestamp"))return Number(e.getAttribute("data-timestamp"))},isMonthWithinRange:function(e,t,n){var r=e.getMonth(),i=e.getFullYear();return(!t||t.getFullYear()<i||t.getMonth()<=r)&&(!n||n.getFullYear()>i||n.getMonth()>=r)}}}),function(){function n(e,n,i,c){return{template:function(t,n){var r=n.mdHideIcons,i=n.ariaLabel||n.mdPlaceholder,o="all"===r||"calendar"===r?"":'<md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"><md-icon class="md-datepicker-calendar-icon" aria-label="md-calendar" md-svg-src="'+e.mdCalendar+'"></md-icon></md-button>',a="";return"all"!==r&&"triangle"!==r&&(a='<md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.locale.msgOpenCalendar}}"><div class="md-datepicker-expand-triangle"></div></md-button>',t.addClass(s)),o+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(i?'aria-label="'+i+'" ':"")+'class="md-datepicker-input" aria-haspopup="true" aria-expanded="{{ctrl.isCalendarOpen}}" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+a+'</div><div class="md-datepicker-calendar-pane md-whiteframe-z1" id="{{::ctrl.calendarPaneId}}"><div class="md-datepicker-input-mask"><div class="md-datepicker-input-mask-opaque"></div></div><div class="md-datepicker-calendar"><md-calendar role="dialog" aria-label="{{::ctrl.locale.msgCalendar}}" md-current-view="{{::ctrl.currentView}}"md-min-date="ctrl.minDate"md-max-date="ctrl.maxDate"md-date-filter="ctrl.dateFilter"ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"></md-calendar></div></div>'},require:["ngModel","mdDatepicker","?^mdInputContainer","?^form"],scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",placeholder:"@mdPlaceholder",currentView:"@mdCurrentView",dateFilter:"=mdDateFilter",isOpen:"=?mdIsOpen",debounceInterval:"=mdDebounceInterval",dateLocale:"=mdDateLocale"},controller:r,controllerAs:"ctrl",bindToController:!0,link:function(e,r,s,l){var d=l[0],u=l[1],m=l[2],p=l[3],h=n.parseAttributeBoolean(s.mdNoAsterisk);if(u.configureNgModel(d,m,c),m){var f=r[0].querySelector(".md-errors-spacer");f&&r.after(t.element("<div>").append(f)),m.setHasPlaceholder(s.mdPlaceholder),m.input=r,m.element.addClass(o).toggleClass(a,"calendar"!==s.mdHideIcons&&"all"!==s.mdHideIcons),m.label?h||s.$observe("required",function(e){m.label.toggleClass("md-required",!!e)}):i.expect(r,"aria-label",s.mdPlaceholder),e.$watch(m.isErrorGetter||function(){return d.$invalid&&(d.$touched||p&&p.$submitted)},m.setInvalid)}else if(p)var g=e.$watch(function(){return p.$submitted},function(e){e&&(u.updateErrorState(),g())})}}}function r(n,r,i,o,a,s,l,d,u,m,p){this.$window=o,this.dateUtil=u,this.$mdConstant=a,this.$mdUtil=l,this.$$rAF=m,this.$mdDateLocale=d,this.documentElement=t.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=r[0].querySelector("input"),this.ngInputElement=t.element(this.inputElement),this.inputContainer=r[0].querySelector(".md-datepicker-input-container"),this.calendarPane=r[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=r[0].querySelector(".md-datepicker-button"),this.inputMask=t.element(r[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=r,this.$attrs=i,this.$scope=n,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(r[0].disabled||t.isString(i.disabled)),this.isCalendarOpen=!1,this.openOnFocus=i.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+l.nextUid(),this.bodyClickHandler=t.bind(this,this.handleBodyClick),this.windowEventName=c.test(navigator.userAgent||navigator.vendor||e.opera)?"orientationchange":"resize",this.windowEventHandler=l.debounce(t.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=t.bind(this,this.handleWindowBlur),this.ngDateFilter=p("date"),this.leftMargin=20,this.topMargin=null,i.tabindex?(this.ngInputElement.attr("tabindex",i.tabindex),i.$set("tabindex",null)):i.$set("tabindex","-1"),i.$set("aria-owns",this.calendarPaneId),s(r),s(t.element(this.calendarPane));var h=this;n.$on("$destroy",function(){h.detachCalendarPane()}),i.mdIsOpen&&n.$watch("ctrl.isOpen",function(e){e?h.openCalendarPane({target:h.inputElement}):h.closeCalendarPane()}),1===t.version.major&&t.version.minor<=4&&this.$onInit()}r.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter"],n.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],t.module("material.components.datepicker").directive("mdDatepicker",n);var i="md-datepicker-open",o="_md-datepicker-floating-label",a="_md-datepicker-has-calendar-icon",s="_md-datepicker-has-triangle-icon",c=/ipad|iphone|ipod|android/i;r.prototype.$onInit=function(){this.locale=this.dateLocale?t.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},r.prototype.configureNgModel=function(e,n,r){this.ngModelCtrl=e,this.mdInputContainer=n,this.$attrs.$set("type","date"),r[0].link.pre(this.$scope,{on:t.noop,val:t.noop,0:{}},this.$attrs,[e]);var i=this;i.ngModelCtrl.$formatters.push(function(e){var n=t.isDefined(e)?Date.parse(e):null;if(!isNaN(n)&&t.isNumber(n)&&(e=new Date(n)),e&&!(e instanceof Date))throw Error("The ng-model for md-datepicker must be a Date instance or a value that can be parsed into a date. Currently the model is of type: "+typeof e);return i.onExternalChange(e),e}),e.$viewChangeListeners.unshift(t.bind(this,this.updateErrorState));var o=i.$mdUtil.getModelOption(e,"updateOn");o&&this.ngInputElement.on(o,t.bind(this.$element,this.$element.triggerHandler,o))},r.prototype.attachChangeListeners=function(){var e=this;e.$scope.$on("md-calendar-change",function(t,n){e.setModelValue(n),e.onExternalChange(n),e.closeCalendarPane()}),e.ngInputElement.on("input",t.bind(e,e.resizeInputElement));var n=t.isDefined(this.debounceInterval)?this.debounceInterval:500;e.ngInputElement.on("input",e.$mdUtil.debounce(e.handleInputEvent,n,e))},r.prototype.attachInteractionListeners=function(){var e=this,n=this.$scope,r=this.$mdConstant.KEY_CODE;e.ngInputElement.on("keydown",function(t){t.altKey&&t.keyCode==r.DOWN_ARROW&&(e.openCalendarPane(t),n.$digest())}),e.openOnFocus&&(e.ngInputElement.on("focus",t.bind(e,e.openCalendarPane)),t.element(e.$window).on("blur",e.windowBlurHandler),n.$on("$destroy",function(){t.element(e.$window).off("blur",e.windowBlurHandler)})),n.$on("md-calendar-close",function(){e.closeCalendarPane()})},r.prototype.installPropertyInterceptors=function(){var e=this;if(this.$attrs.ngDisabled){var t=this.$scope.$parent;t&&t.$watch(this.$attrs.ngDisabled,function(t){e.setDisabled(t)})}Object.defineProperty(this,"placeholder",{get:function(){return e.inputElement.placeholder},set:function(t){e.inputElement.placeholder=t||""}})},r.prototype.setDisabled=function(e){this.isDisabled=e,this.inputElement.disabled=e,this.calendarButton&&(this.calendarButton.disabled=e)},r.prototype.updateErrorState=function(e){var n=e||this.date;if(this.clearErrorState(),this.dateUtil.isValidDate(n)){if(n=this.dateUtil.createDateAtMidnight(n),this.dateUtil.isValidDate(this.minDate)){var r=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",n>=r)}if(this.dateUtil.isValidDate(this.maxDate)){var i=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",n<=i)}t.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(n))}else this.ngModelCtrl.$setValidity("valid",null==n);t.element(this.inputContainer).toggleClass("md-datepicker-invalid",!this.ngModelCtrl.$valid)},r.prototype.clearErrorState=function(){this.inputContainer.classList.remove("md-datepicker-invalid"),["mindate","maxdate","filtered","valid"].forEach(function(e){this.ngModelCtrl.$setValidity(e,!0)},this)},r.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+3},r.prototype.handleInputEvent=function(){var e=this.inputElement.value,t=e?this.locale.parseDate(e):null;this.dateUtil.setDateTimeToMidnight(t),(""==e||this.dateUtil.isValidDate(t)&&this.locale.isDateComplete(e)&&this.isDateEnabled(t))&&(this.setModelValue(t),this.date=t),this.updateErrorState(t)},r.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.minDate,this.maxDate)&&(!t.isFunction(this.dateFilter)||this.dateFilter(e))},r.prototype.attachCalendarPane=function(){var e=this.calendarPane,n=document.body;e.style.transform="",this.$element.addClass(i),this.mdInputContainer&&this.mdInputContainer.element.addClass(i),t.element(n).addClass("md-datepicker-is-showing");var r=this.inputContainer.getBoundingClientRect(),o=n.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var a=r.top-o.top-this.topMargin,s=r.left-o.left-this.leftMargin,c=o.top<0&&0==document.body.scrollTop?-o.top:document.body.scrollTop,l=o.left<0&&0==document.body.scrollLeft?-o.left:document.body.scrollLeft,d=c+this.$window.innerHeight,u=l+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:r.width-1+"px",height:r.height-2+"px"}),s+360>u){if(u-360>0)s=u-360;else{s=l;var m=this.$window.innerWidth/360;e.style.transform="scale("+m+")"}e.classList.add("md-datepicker-pos-adjusted")}a+368>d&&d-368>c&&(a=d-368,e.classList.add("md-datepicker-pos-adjusted")),e.style.left=s+"px",e.style.top=a+"px",document.body.appendChild(e),this.$$rAF(function(){e.classList.add("md-pane-open")})},r.prototype.detachCalendarPane=function(){this.$element.removeClass(i),this.mdInputContainer&&this.mdInputContainer.element.removeClass(i),t.element(document.body).removeClass("md-datepicker-is-showing"),this.calendarPane.classList.remove("md-pane-open"),this.calendarPane.classList.remove("md-datepicker-pos-adjusted"),this.isCalendarOpen&&this.$mdUtil.enableScrolling(),this.calendarPane.parentNode&&this.calendarPane.parentNode.removeChild(this.calendarPane)},r.prototype.openCalendarPane=function(t){if(!this.isCalendarOpen&&!this.isDisabled&&!this.inputFocusedOnWindowBlur){this.isCalendarOpen=this.isOpen=!0,this.calendarPaneOpenedFrom=t.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar(),this.evalAttr("ngFocus");var n=this;this.$mdUtil.nextTick(function(){n.documentElement.on("click touchstart",n.bodyClickHandler)},!1),e.addEventListener(this.windowEventName,this.windowEventHandler)}},r.prototype.closeCalendarPane=function(){function t(){n.isCalendarOpen=n.isOpen=!1}if(this.isCalendarOpen){var n=this;n.detachCalendarPane(),n.ngModelCtrl.$setTouched(),n.evalAttr("ngBlur"),n.documentElement.off("click touchstart",n.bodyClickHandler),e.removeEventListener(n.windowEventName,n.windowEventHandler),n.calendarPaneOpenedFrom.focus(),n.calendarPaneOpenedFrom=null,n.openOnFocus?n.$mdUtil.nextTick(t):t()}},r.prototype.getCalendarCtrl=function(){return t.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},r.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick(function(){e.getCalendarCtrl().focus()},!1)},r.prototype.setFocused=function(e){e||this.ngModelCtrl.$setTouched(),this.openOnFocus||this.evalAttr(e?"ngFocus":"ngBlur"),this.isFocused=e},r.prototype.handleBodyClick=function(e){this.isCalendarOpen&&(this.$mdUtil.getClosest(e.target,"md-calendar")||this.closeCalendarPane(),this.$scope.$digest())},r.prototype.handleWindowBlur=function(){this.inputFocusedOnWindowBlur=document.activeElement===this.inputElement},r.prototype.evalAttr=function(e){this.$attrs[e]&&this.$scope.$parent.$eval(this.$attrs[e])},r.prototype.setModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t))},r.prototype.onExternalChange=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.date=e,this.inputElement.value=this.locale.formatDate(e,t),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!e),this.resizeInputElement(),this.updateErrorState()}}(),function(){t.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",function(e,t,n,r){return{restrict:"E",link:function(r,i,o){function a(){if(!o.mdSvgIcon&&!o.mdSvgSrc){o.mdFontIcon&&(i.removeClass(s),i.addClass(o.mdFontIcon),s=o.mdFontIcon);var t=e.fontSet(o.mdFontSet);c!==t&&(i.removeClass(c),i.addClass(t),c=t)}}t(i);var s=o.mdFontIcon,c=e.fontSet(o.mdFontSet);o.mdSvgIcon||o.mdSvgSrc||(o.mdFontIcon&&i.addClass("md-font "+o.mdFontIcon),i.addClass(c)),o.$observe("mdFontIcon",a),o.$observe("mdFontSet",a),i[0].getAttribute(o.$attr.mdSvgSrc);var l=o.$normalize(o.$attr.mdSvgIcon||o.$attr.mdSvgSrc||"");if(o.role||(n.expect(i,"role","img"),o.role="img"),"img"===o.role&&!o.ariaHidden&&!n.hasAriaLabel(i)){var d;o.alt?n.expect(i,"aria-label",o.alt):n.parentHasAriaLabel(i,2)?n.expect(i,"aria-hidden","true"):(d=o.mdFontIcon||o.mdSvgIcon||i.text())?n.expect(i,"aria-label",d):n.expect(i,"aria-hidden","true")}l&&o.$observe(l,function(t){i.empty(),t&&e(t).then(function(e){i.empty(),i.append(e)})})}}}])}(),function(){function n(){}function r(e,t){this.url=e,this.viewBoxSize=t||o.defaultViewBoxSize}function i(n,r,i,o,a,s){function c(e){return e=e||"",t.isString(e)||(e=s.getTrustedUrl(e)),g[e]?i.when(l(g[e])):$.test(e)||b.test(e)?p(e).then(d(e)):(-1==e.indexOf(":")&&(e="$default:"+e),(n[e]?u:m)(e).then(d(e)))}function l(e){var n=e.clone(),r="_cache"+a.nextUid();return n.id&&(n.id+=r),t.forEach(n.querySelectorAll("[id]"),function(e){e.id+=r}),n}function d(e){return function(t){return g[e]=h(t)?t:new f(t,n[e]),g[e].clone()}}function u(e){var t=n[e];return p(t.url).then(function(e){return new f(e,t)})}function m(e){function t(e){var t="icon "+e+" not found";return o.warn(t),i.reject(t||e)}var r=e.substring(0,e.lastIndexOf(":"))||"$default",a=n[r];return a?p(a.url).then(function(n){var r=e.slice(e.lastIndexOf(":")+1),i=n.querySelector("#"+r);return i?new f(i,a):t(e)}):t(e)}function p(n){return b.test(n)?function(n){var r=b.exec(n),o=/base64/i.test(n)?e.atob(r[2]):r[2];return i.when(t.element(o)[0])}(n):function(e){return i(function(n,i){r(e,!0).then(function(r){v[e]||(v[e]=t.element("<div>").append(r)[0].querySelector("svg")),n(v[e])},function(e){var n=t.isString(e)?e:e.message||e.data||e.statusText;o.warn(n),i(e)})})}(n)}function h(e){return t.isDefined(e.element)&&t.isDefined(e.config)}function f(e,n){e&&"svg"!=e.tagName&&(e=t.element('<svg xmlns="http://www.w3.org/2000/svg">').append(e.cloneNode(!0))[0]),e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=e,this.config=n,this.prepare()}var g={},v={},$=/[-\w@:%\+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%\+.~#?&//=]*)?/i,b=/^data:image\/svg\+xml[\s*;\w\-\=]*?(base64)?,(.*)$/i;return f.prototype={clone:function(){return this.element.cloneNode(!0)},prepare:function(){var e=this.config?this.config.viewBoxSize:n.defaultViewBoxSize;t.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+e+" "+e,focusable:!1},function(e,t){this.element.setAttribute(t,e)},this)}},c.fontSet=function(e){if(t.isUndefined(e)||!e||!e.length)return n.defaultFontSet;var r=e;return t.forEach(n.fontSets,function(t){t.alias==e&&(r=t.fontSet||r)}),r},c}i.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],t.module("material.components.icon").constant("$$mdSvgRegistry",{mdTabsArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4=",mdClose:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xOSA2LjQxbC0xLjQxLTEuNDEtNS41OSA1LjU5LTUuNTktNS41OS0xLjQxIDEuNDEgNS41OSA1LjU5LTUuNTkgNS41OSAxLjQxIDEuNDEgNS41OS01LjU5IDUuNTkgNS41OSAxLjQxLTEuNDEtNS41OS01LjU5eiIvPjwvZz48L3N2Zz4=",mdCancel:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xMiAyYy01LjUzIDAtMTAgNC40Ny0xMCAxMHM0LjQ3IDEwIDEwIDEwIDEwLTQuNDcgMTAtMTAtNC40Ny0xMC0xMC0xMHptNSAxMy41OWwtMS40MSAxLjQxLTMuNTktMy41OS0zLjU5IDMuNTktMS40MS0xLjQxIDMuNTktMy41OS0zLjU5LTMuNTkgMS40MS0xLjQxIDMuNTkgMy41OSAzLjU5LTMuNTkgMS40MSAxLjQxLTMuNTkgMy41OSAzLjU5IDMuNTl6Ii8+PC9nPjwvc3ZnPg==",mdMenu:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0zLDZIMjFWOEgzVjZNMywxMUgyMVYxM0gzVjExTTMsMTZIMjFWMThIM1YxNloiIC8+PC9zdmc+",mdToggleArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==",mdCalendar:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgM2gtMVYxaC0ydjJIOFYxSDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDE5YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVY4aDE0djExek03IDEwaDV2NUg3eiIvPjwvc3ZnPg==",mdChecked:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+"}).provider("$mdIcon",n);var o={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};n.prototype={icon:function(e,t,n){return-1==e.indexOf(":")&&(e="$default:"+e),o[e]=new r(t,n),this},iconSet:function(e,t,n){return o[e]=new r(t,n),this},defaultIconSet:function(e,t){return o.$default||(o.$default=new r(e,t)),o.$default.viewBoxSize=t||o.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return o.defaultViewBoxSize=e,this},fontSet:function(e,t){return o.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return o.defaultFontSet=e||"",this},defaultIconSize:function(e){return o.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,r,a){return i(o,e,t,n,r,a)}]}}(),function(){function e(e,r,i,o,a,s,c,l,d){var u,m,p=a.prefixer(),h=this;this.nestLevel=parseInt(r.mdNestLevel,10)||0,this.init=function(n,r){r=r||{},u=n,(m=i[0].querySelector(p.buildSelector(["ng-click","ng-mouseenter"]))).setAttribute("aria-expanded","false"),this.isInMenuBar=r.isInMenuBar,this.nestedMenus=a.nodesToArray(u[0].querySelectorAll(".md-nested-menu")),u.on("$mdInterimElementRemove",function(){h.isOpen=!1,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)})}),a.nextTick(function(){h.onIsOpenChanged(h.isOpen)});var s="menu_container_"+a.nextUid();u.attr("id",s),t.element(m).attr({"aria-owns":s,"aria-haspopup":"true"}),o.$on("$destroy",t.bind(this,function(){this.disableHoverListener(),e.destroy()})),u.on("$destroy",function(){e.destroy()})};var f,g,v=[];this.enableHoverListener=function(){v.push(c.$on("$mdMenuOpen",function(e,t){u[0].contains(t[0])&&(h.currentlyOpenMenu=t.controller("mdMenu"),h.isAlreadyOpening=!1,h.currentlyOpenMenu.registerContainerProxy(h.triggerContainerProxy.bind(h)))})),v.push(c.$on("$mdMenuClose",function(e,t){u[0].contains(t[0])&&(h.currentlyOpenMenu=n)})),(g=t.element(a.nodesToArray(u[0].children[0].children))).on("mouseenter",h.handleMenuItemHover),g.on("mouseleave",h.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;v.length;)v.shift()();g&&g.off("mouseenter",h.handleMenuItemHover),g&&g.off("mouseleave",h.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!h.isAlreadyOpening){var n=e.target.querySelector("md-menu")||a.getClosest(e.target,"MD-MENU");f=s(function(){if(n&&(n=t.element(n).controller("mdMenu")),h.currentlyOpenMenu&&h.currentlyOpenMenu!=n){var e=h.nestLevel+1;h.currentlyOpenMenu.close(!0,{closeTo:e}),h.isAlreadyOpening=!!n,n&&n.open()}else n&&!n.isOpen&&n.open&&(h.isAlreadyOpening=!!n,n&&n.open())},n?100:250);var r=e.currentTarget.querySelector(".md-button:not([disabled])");r&&r.focus()}},this.handleMenuItemMouseLeave=function(){f&&(s.cancel(f),f=n)},this.open=function(t){t&&t.stopPropagation(),t&&t.preventDefault(),h.isOpen||(h.enableHoverListener(),h.isOpen=!0,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)}),(m=m||(t?t.target:i[0])).setAttribute("aria-expanded","true"),o.$emit("$mdMenuOpen",i),e.show({scope:o,mdMenuCtrl:h,nestLevel:h.nestLevel,element:u,target:m,preserveElement:!0,parent:"body"}).finally(function(){m.setAttribute("aria-expanded","false"),h.disableHoverListener()}))},this.onIsOpenChanged=function(e){e?(u.attr("aria-hidden","false"),i[0].classList.add("md-open"),t.forEach(h.nestedMenus,function(e){e.classList.remove("md-open")})):(u.attr("aria-hidden","true"),i[0].classList.remove("md-open")),o.$mdMenuIsOpen=h.isOpen},this.focusMenuContainer=function(){var e=u[0].querySelector(p.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=u[0].querySelector(".md-button:not([disabled])")),e.focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&&this.containerProxy(e)},this.destroy=function(){return h.isOpen?e.destroy():l.when(!1)},this.close=function(n,r){if(h.isOpen){h.isOpen=!1,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)});var s=t.extend({},r,{skipFocus:n});if(o.$emit("$mdMenuClose",i,s),e.hide(null,r),!n){var c=h.restoreFocusTo||i.find("button")[0];c instanceof t.element&&(c=c[0]),c&&c.focus()}}},this.positionMode=function(){var e=(r.mdPositionMode||"target").split(" ");return 1==e.length&&e.push(e[0]),{left:e[0],top:e[1]}},this.offsets=function(){var e=(r.mdOffset||"0 0").split(" ").map(parseFloat);if(2==e.length)return{left:e[0],top:e[1]};if(1==e.length)return{top:e[0],left:e[0]};throw Error("Invalid offsets specified. Please follow format <x, y> or <n>")},o.$mdMenu={open:this.open,close:this.close},o.$mdOpenMenu=t.bind(this,function(){return d.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}e.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],t.module("material.components.menu").controller("mdMenuCtrl",e)}(),function(){function e(e){function n(e,n,r,i){var o=i[0],a=!!i[1],s=t.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),c=n.children()[1];n.addClass("_md"),c.hasAttribute("role")||c.setAttribute("role","menu"),s.append(c),n.on("$destroy",function(){s.remove()}),n.append(s),s[0].style.display="none",o.init(s,{isInMenuBar:a})}var r="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:function(i){i.addClass("md-menu");var o=i.children()[0],a=i.children()[1],s=e.prefixer();s.hasAttribute(o,"ng-click")||(o=o.querySelector(s.buildSelector(["ng-click","ng-mouseenter"]))||o);var c="MD-BUTTON"===o.nodeName||"BUTTON"===o.nodeName;if(o&&c&&!o.hasAttribute("type")&&o.setAttribute("type","button"),!o)throw Error(r+"Expected the menu to have a trigger element.");if(!a||"MD-MENU-CONTENT"!==a.nodeName)throw Error(r+"Expected the menu to contain a `md-menu-content` element.");o&&o.setAttribute("aria-haspopup","true");var l=i[0].querySelectorAll("md-menu"),d=parseInt(i[0].getAttribute("md-nest-level"),10)||0;return l&&t.forEach(e.nodesToArray(l),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",d+1)}),n}}}e.$inject=["$mdUtil"],t.module("material.components.menu").directive("mdMenu",e)}(),function(){function e(e){function r(e,r,a,s,c,l,d,u,m,p){function h(n,r,i){return i.nestLevel?t.noop:(i.disableParentScroll&&!e.getClosest(i.target,"MD-DIALOG")?i.restoreScroll=e.disableScrollAround(i.element,i.parent):i.disableParentScroll=!1,i.hasBackdrop&&(i.backdrop=e.createBackdrop(n,"md-menu-backdrop md-click-catcher"),m.enter(i.backdrop,s[0].body)),function(){i.backdrop&&i.backdrop.remove(),i.disableParentScroll&&i.restoreScroll()})}function f(t,n,r,i){for(var o,a=e.getClosest(t.target,"MD-MENU-ITEM"),s=e.nodesToArray(n[0].children),c=s.indexOf(a)+i;c>=0&&c<s.length&&!(o=g(s[c].querySelector(".md-button")));c+=i);return o}function g(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),s[0].activeElement==e}function v(e,t){t.preserveElement?i(e).style.display="none":i(e).parentNode===i(t.parent)&&i(t.parent).removeChild(i(e))}function $(t,r){var i,a=t[0],l=t[0].firstElementChild,d=l.getBoundingClientRect(),u=s[0].body.getBoundingClientRect(),m=c.getComputedStyle(l),p=r.target[0].querySelector(b.buildSelector("md-menu-origin"))||r.target[0],h=p.getBoundingClientRect(),f={left:u.left+o,top:Math.max(u.top,0)+o,bottom:Math.max(u.bottom,Math.max(u.top,0)+u.height)-o,right:u.right-o},g={top:0,left:0,right:0,bottom:0},v={top:0,left:0,right:0,bottom:0},$=r.mdMenuCtrl.positionMode();"target"!=$.top&&"target"!=$.left&&"target-right"!=$.left||(i=function(){for(var e=0;e<l.children.length;++e)if("none"!=c.getComputedStyle(l.children[e]).display)return l.children[e]}())&&(g=(i=(i=i.firstElementChild||i).querySelector(b.buildSelector("md-menu-align-target"))||i).getBoundingClientRect(),v={top:parseFloat(a.style.top||0),left:parseFloat(a.style.left||0)});var y={},E="top ";switch($.top){case"target":y.top=v.top+h.top-g.top;break;case"cascade":y.top=h.top-parseFloat(m.paddingTop)-p.style.top;break;case"bottom":y.top=h.top+h.height;break;default:throw new Error('Invalid target mode "'+$.top+'" specified for md-menu on Y axis.')}var C="rtl"==e.bidi();switch($.left){case"target":y.left=v.left+h.left-g.left,E+=C?"right":"left";break;case"target-left":y.left=h.left,E+="left";break;case"target-right":y.left=h.right-d.width+(d.right-g.right),E+="right";break;case"cascade":var w=C?h.left-d.width<f.left:h.right+d.width<f.right;y.left=w?h.right-p.style.left:h.left-p.style.left-d.width,E+=w?"left":"right";break;case"right":C?(y.left=h.right-h.width,E+="left"):(y.left=h.right-d.width,E+="right");break;case"left":C?(y.left=h.right-d.width,E+="right"):(y.left=h.left,E+="left");break;default:throw new Error('Invalid target mode "'+$.left+'" specified for md-menu on X axis.')}var M=r.mdMenuCtrl.offsets();y.top+=M.top,y.left+=M.left,function(e){e.top=Math.max(Math.min(e.top,f.bottom-a.offsetHeight),f.top),e.left=Math.max(Math.min(e.left,f.right-a.offsetWidth),f.left)}(y);var A=Math.round(100*Math.min(h.width/a.offsetWidth,1))/100,x=Math.round(100*Math.min(h.height/a.offsetHeight,1))/100;return{top:Math.round(y.top),left:Math.round(y.left),transform:r.alreadyOpen?n:e.supplant("scale({0},{1})",[A,x]),transformOrigin:E}}var b=e.prefixer(),y=e.dom.animator;return{parent:"body",onShow:function(n,i,o){function s(){return o.backdrop?(o.backdrop.on("click",m),function(){o.backdrop.off("click",m)}):t.noop}function m(e){e.preventDefault(),e.stopPropagation(),n.$apply(function(){o.mdMenuCtrl.close(!0,{closeAll:!0})})}function g(){function r(t){var n;switch(t.keyCode){case a.KEY_CODE.ESCAPE:o.mdMenuCtrl.close(!1,{closeAll:!0}),n=!0;break;case a.KEY_CODE.UP_ARROW:f(t,o.menuContentEl,0,-1)||o.nestLevel||o.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case a.KEY_CODE.DOWN_ARROW:f(t,o.menuContentEl,0,1)||o.nestLevel||o.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case a.KEY_CODE.LEFT_ARROW:o.nestLevel?o.mdMenuCtrl.close():o.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case a.KEY_CODE.RIGHT_ARROW:var r=e.getClosest(t.target,"MD-MENU");r&&r!=o.parent[0]?t.target.click():o.mdMenuCtrl.triggerContainerProxy(t),n=!0}n&&(t.preventDefault(),t.stopImmediatePropagation())}function i(t){function r(e,t){if(!e)return!1;for(var n,r=0;n=t[r];++r)if(b.hasAttribute(e,n))return!0;return!1}var i=t.target;do{if(i==o.menuContentEl[0])return;if((r(i,["ng-click","ng-href","ui-sref"])||"BUTTON"==i.nodeName||"MD-BUTTON"==i.nodeName)&&!r(i,["md-prevent-menu-close"])){var a=e.getClosest(i,"MD-MENU");i.hasAttribute("disabled")||a&&a!=o.parent[0]||n.$apply(function(){o.mdMenuCtrl.close(!0,{closeAll:!0})});break}}while(i=i.parentNode)}if(!o.menuContentEl[0])return t.noop;o.menuContentEl.on("keydown",r),o.menuContentEl[0].addEventListener("click",i,!0);var s=o.menuContentEl[0].querySelector(b.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!s)for(var c=o.menuContentEl[0].children.length,l=0;l<c;l++){var d=o.menuContentEl[0].children[l];if(s=d.querySelector(".md-button:not([disabled])"))break;if(d.firstElementChild&&!d.firstElementChild.disabled){s=d.firstElementChild;break}}return s&&s.focus(),function(){o.menuContentEl.off("keydown",r),o.menuContentEl[0].removeEventListener("click",i,!0)}}return function(){if(!o.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");t.extend(o,{alreadyOpen:!1,isRemoved:!1,target:t.element(o.target),parent:t.element(o.parent),menuContentEl:t.element(i[0].querySelector("md-menu-content"))})}(),o.menuContentEl[0]?r.inherit(o.menuContentEl,o.target):p.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",i),o.cleanupResizing=function(){var e=function(e,t){return d.throttle(function(){if(!o.isRemoved){var n=$(e,t);e.css(y.toCss(n))}})}(i,o);return c.addEventListener("resize",e),c.addEventListener("orientationchange",e),function(){c.removeEventListener("resize",e),c.removeEventListener("orientationchange",e)}}(),o.hideBackdrop=h(n,i,o),(o.parent.append(i),i[0].style.display="",l(function(e){var t=$(i,o);i.removeClass("md-leave"),u(i,{addClass:"md-active",from:y.toCss(t),to:y.toCss({transform:""})}).start().then(e)})).then(function(e){return o.alreadyOpen=!0,o.cleanupInteraction=g(),o.cleanupBackdrop=s(),i.addClass("md-clickable"),e})},onRemove:function(e,t,n){function r(){t.removeClass("md-active"),v(t,n),n.alreadyOpen=!1}return n.cleanupInteraction(),n.cleanupBackdrop(),n.cleanupResizing(),n.hideBackdrop(),t.removeClass("md-clickable"),!0===n.$destroy?r():u(t,{addClass:"md-leave"}).start().then(r)},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0}}function i(e){return e instanceof t.element&&(e=e[0]),e}r.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var o=8;return e("$mdMenu").setDefaults({methods:["target"],options:r})}e.$inject=["$$interimElementProvider"],t.module("material.components.menu").provider("$mdMenu",e)}(),function(){function e(e,n,i,o,a,s,c,l){this.$element=i,this.$attrs=o,this.$mdConstant=a,this.$mdUtil=c,this.$document=s,this.$scope=e,this.$rootScope=n,this.$timeout=l;var d=this;t.forEach(r,function(e){d[e]=t.bind(d,d[e])})}e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],t.module("material.components.menuBar").controller("MenuBarController",e);var r=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];e.prototype.init=function(){var e=this.$element,t=this.$mdUtil,r=this.$scope,i=this,o=[];e.on("keydown",this.handleKeyDown),this.parentToolbar=t.getClosest(e,"MD-TOOLBAR"),o.push(this.$rootScope.$on("$mdMenuOpen",function(t,n){-1!=i.getMenus().indexOf(n[0])&&(e[0].classList.add("md-open"),n[0].classList.add("md-open"),i.currentlyOpenMenu=n.controller("mdMenu"),i.currentlyOpenMenu.registerContainerProxy(i.handleKeyDown),i.enableOpenOnHover())})),o.push(this.$rootScope.$on("$mdMenuClose",function(r,o,a){var s=i.getMenus();if(-1!=s.indexOf(o[0])&&(e[0].classList.remove("md-open"),o[0].classList.remove("md-open")),e[0].contains(o[0])){for(var c=o[0];c&&-1==s.indexOf(c);)c=t.getClosest(c,"MD-MENU",!0);c&&(a.skipFocus||c.querySelector("button:not([disabled])").focus(),i.currentlyOpenMenu=n,i.disableOpenOnHover(),i.setKeyboardMode(!0))}})),r.$on("$destroy",function(){for(i.disableOpenOnHover();o.length;)o.shift()()}),this.setKeyboardMode(!0)},e.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},e.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var e=this;e.openOnHoverEnabled=!0,e.parentToolbar&&(e.parentToolbar.classList.add("md-has-open-menu"),e.$mdUtil.nextTick(function(){t.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),t.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},e.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},e.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),t.element(this.parentToolbar).off("click",this.handleParentClick)),t.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},e.prototype.scheduleOpenHoveredMenu=function(e){var n=t.element(e.currentTarget).controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(n)},e.prototype.scheduleOpenMenu=function(e){var t=this,r=this.$timeout;e!=t.currentlyOpenMenu&&(r.cancel(t.pendingMenuOpen),t.pendingMenuOpen=r(function(){t.pendingMenuOpen=n,t.currentlyOpenMenu&&t.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},e.prototype.handleKeyDown=function(e){var n=this.$mdConstant.KEY_CODE,r=this.currentlyOpenMenu,i=r&&r.isOpen;this.setKeyboardMode(!0);var o,a,s;switch(e.keyCode){case n.DOWN_ARROW:r?r.focusMenuContainer():this.openFocusedMenu(),o=!0;break;case n.UP_ARROW:r&&r.close(),o=!0;break;case n.LEFT_ARROW:a=this.focusMenu(-1),i&&(s=t.element(a).controller("mdMenu"),this.scheduleOpenMenu(s)),o=!0;break;case n.RIGHT_ARROW:a=this.focusMenu(1),i&&(s=t.element(a).controller("mdMenu"),this.scheduleOpenMenu(s)),o=!0}o&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},e.prototype.focusMenu=function(e){var t=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&&(n=this.getOpenMenuIndex());var r=!1;if(-1==n?(n=0,r=!0):(e<0&&n>0||e>0&&n<t.length-e)&&(n+=e,r=!0),r)return t[n].querySelector("button").focus(),t[n]},e.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&t.element(e).controller("mdMenu").open()},e.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter(function(e){return"MD-MENU"==e.nodeName})},e.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},e.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil.getClosest(this.$document[0].activeElement,"MD-MENU");return e?this.getMenus().indexOf(e):-1},e.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),t=0;t<e.length;++t)if(e[t].classList.contains("md-open"))return t;return-1},e.prototype.handleParentClick=function(e){var n=this.querySelector("md-menu.md-open");n&&!n.contains(e.target)&&t.element(n).controller("mdMenu").close(!0,{closeAll:!0})}}(),function(){function e(e,n){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(r,i){return i.ariaRole||r[0].setAttribute("role","menubar"),t.forEach(r[0].children,function(n){if("MD-MENU"==n.nodeName){n.hasAttribute("md-position-mode")||(n.setAttribute("md-position-mode","left bottom"),n.querySelector("button, a, md-button").setAttribute("role","menuitem"));var r=e.nodesToArray(n.querySelectorAll("md-menu-content"));t.forEach(r,function(e){e.classList.add("md-menu-bar-menu"),e.classList.add("md-dense"),e.hasAttribute("width")||e.setAttribute("width",5)})}}),r.find("md-menu-item").addClass("md-in-menu-bar"),function(e,t,r,i){t.addClass("_md"),n(e,t),i.init()}}}}e.$inject=["$mdUtil","$mdTheming"],t.module("material.components.menuBar").directive("mdMenuBar",e)}(),function(){t.module("material.components.menuBar").directive("mdMenuDivider",function(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}})}(),function(){function e(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}e.$inject=["$scope","$element","$attrs"],t.module("material.components.menuBar").controller("MenuItemController",e),e.prototype.init=function(e){var t=this.$element,n=this.$attrs;this.ngModel=e,"checkbox"!=n.type&&"radio"!=n.type||(this.mode=n.type,this.iconEl=t[0].children[0],this.buttonEl=t[0].children[1],e&&this.initClickListeners())},e.prototype.clearNgAria=function(){var e=this.$element[0],n=["role","tabindex","aria-invalid","aria-checked"];t.forEach(n,function(t){e.removeAttribute(t)})},e.prototype.initClickListeners=function(){function e(){if("radio"==s){var e=a.ngValue?o.$eval(a.ngValue):a.value;return i.$modelValue==e}return i.$modelValue}function n(e){e?l.off("click",d):l.on("click",d)}var r=this,i=this.ngModel,o=this.$scope,a=this.$attrs,s=(this.$element,this.mode);this.handleClick=t.bind(this,this.handleClick);var c=this.iconEl,l=t.element(this.buttonEl),d=this.handleClick;a.$observe("disabled",n),n(a.disabled),i.$render=function(){r.clearNgAria(),e()?(c.style.display="",l.attr("aria-checked","true")):(c.style.display="none",l.attr("aria-checked","false"))},o.$$postDigest(i.$render)},e.prototype.handleClick=function(e){var t,n=this.mode,r=this.ngModel,i=this.$attrs;"checkbox"==n?t=!r.$modelValue:"radio"==n&&(t=i.ngValue?this.$scope.$eval(i.ngValue):i.value),r.$setViewValue(t),r.$render()}}(),function(){function e(e,n,r){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:n.BEFORE_NG_ARIA,compile:function(n,i){function o(e,r,i){(i=i||n)instanceof t.element&&(i=i[0]),i.hasAttribute(e)||i.setAttribute(e,r)}var a=i.type;if("checkbox"!=a&&"radio"!=a||!n.hasClass("md-in-menu-bar"))o("role","menuitem",n[0].querySelector("md-button, button, a"));else{var s=n[0].textContent,c=t.element('<md-button type="button"></md-button>'),l='<md-icon md-svg-src="'+r.mdChecked+'"></md-icon>';c.html(s),c.attr("tabindex","0"),n.html(""),n.append(t.element(l)),n.append(c),n.addClass("md-indent").removeClass("md-in-menu-bar"),o("role","checkbox"==a?"menuitemcheckbox":"menuitemradio",c),function(r){var i=e.prefixer(r);t.forEach(i,function(e){if(n[0].hasAttribute(e)){var t=n[0].getAttribute(e);c[0].setAttribute(e,t),n[0].removeAttribute(e)}})}("ng-disabled")}return function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}}}e.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],t.module("material.components.menuBar").directive("mdMenuItem",e)}(),function(){function e(e,n,r,i,o,a){function s(a,s,b){function y(t,r,o,s,c,d){function h(e){T.attr("stroke-dashoffset",l($,b,e,w)),T.attr("transform","rotate("+C+" "+$/2+" "+$/2+")")}var f=++D,g=i.now(),v=r-t,$=u(a.mdDiameter),b=m($),y=o||n.easeFn,E=s||n.duration,C=-90*(c||0),w=d||100;r===t?h(r):M=p(function n(){var r=e.Math.max(0,e.Math.min(i.now()-g,E));h(y(r,t,v,E)),f===D&&r<E&&(M=p(n))})}function E(){y(_,S,n.easeFnIndeterminate,n.durationIndeterminate,N,75),N=++N%4}function C(){A||(A=o(E,n.durationIndeterminate,0,!1),E(),s.addClass($).removeAttr("aria-valuenow"))}function w(){A&&(o.cancel(A),A=null,s.removeClass($))}var M,A,x=s[0],k=t.element(x.querySelector("svg")),T=t.element(x.querySelector("path")),_=n.startIndeterminate,S=n.endIndeterminate,N=0,D=0;r(s),s.toggleClass(v,b.hasOwnProperty("disabled")),a.mdMode===g&&C(),a.$on("$destroy",function(){w(),M&&h(M)}),a.$watchGroup(["value","mdMode",function(){var e=x.disabled;return!0===e||!1===e?e:t.isDefined(s.attr("disabled"))}],function(e,t){var n=e[1],r=e[2];if(r!==t[2]&&s.toggleClass(v,!!r),r)w();else if(n!==f&&n!==g&&(n=g,b.$set("mdMode",n)),n===g)C();else{var i=d(e[0]);w(),s.attr("aria-valuenow",i),y(d(t[0]),i)}}),a.$watch("mdDiameter",function(t){var n=u(t),r=m(n),i=d(a.value),o=n/2+"px",p={width:n+"px",height:n+"px"};k[0].setAttribute("viewBox","0 0 "+n+" "+n),k.css(p).css("transform-origin",o+" "+o+" "+o),s.css(p),T.attr("stroke-width",r),T.attr("stroke-linecap","square"),a.mdMode==g?(T.attr("d",c(n,r,!0)),T.attr("stroke-dasharray",(n-r)*e.Math.PI*.75),T.attr("stroke-dashoffset",l(n,r,1,75))):(T.attr("d",c(n,r,!1)),T.attr("stroke-dasharray",(n-r)*e.Math.PI),T.attr("stroke-dashoffset",l(n,r,0,100)),y(i,i))})}function c(e,t,n){var r=e/2,i=t/2,o=r+","+i,a=r-i;return"M"+o+"A"+a+","+a+" 0 1 1 "+(i+","+r)+(n?"":"A"+a+","+a+" 0 0 1 "+o)}function l(t,n,r,i){return(t-n)*e.Math.PI*(3*(i||100)/100-r/100)}function d(t){return e.Math.max(0,e.Math.min(t||0,100))}function u(e){var t=n.progressSize;if(e){var r=parseFloat(e);return e.lastIndexOf("%")===e.length-1&&(r=r/100*t),r}return t}function m(e){return n.strokeWidth/100*e}var p=e.requestAnimationFrame||e.webkitRequestAnimationFrame||t.noop,h=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame||t.noop,f="determinate",g="indeterminate",v="_md-progress-circular-disabled",$="md-mode-indeterminate";return{restrict:"E",scope:{value:"@",mdDiameter:"@",mdMode:"@"},template:'<svg xmlns="http://www.w3.org/2000/svg"><path fill="none"/></svg>',compile:function(e,n){if(e.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),t.isUndefined(n.mdMode)){var r=n.hasOwnProperty("value")?f:g;n.$set("mdMode",r)}else n.$set("mdMode",n.mdMode.trim());return s}}}e.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],t.module("material.components.progressCircular").directive("mdProgressCircular",e)}(),function(){t.module("material.components.progressCircular").provider("$mdProgressCircular",function(){function e(e,t,n,r){return n*e/r+t}function n(e,t,n,r){var i=(e/=r)*e,o=i*e;return t+n*(6*o*i+-15*i*i+10*o)}var r={progressSize:50,strokeWidth:10,duration:100,easeFn:e,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:n,easingPresets:{linearEase:e,materialEase:n}};return{configure:function(e){return r=t.extend(r,e||{})},$get:function(){return r}}})}(),function(){t.module("material.components.tabs").directive("mdTab",function(){function e(e,r,i,o){if(o){var a=o.getTabElementIndex(r),s=n(r,"md-tab-body").remove(),c=n(r,"md-tab-label").remove(),l=o.insertTab({scope:e,parent:e.$parent,index:a,element:r,template:s.html(),label:c.html()},a);e.select=e.select||t.noop,e.deselect=e.deselect||t.noop,e.$watch("active",function(e){e&&o.select(l.getIndex(),!0)}),e.$watch("disabled",function(){o.refreshIndex()}),e.$watch(function(){return o.getTabElementIndex(r)},function(e){l.index=e,o.updateTabOrder()}),e.$on("$destroy",function(){o.removeTab(l)})}}function n(e,n){for(var r=e[0].children,i=0,o=r.length;i<o;i++){var a=r[i];if(a.tagName===n.toUpperCase())return t.element(a)}return t.element()}return{require:"^?mdTabs",terminal:!0,compile:function(r,i){var o=n(r,"md-tab-label"),a=n(r,"md-tab-body");if(0===o.length&&(o=t.element("<md-tab-label></md-tab-label>"),i.label?o.text(i.label):o.append(r.contents()),0===a.length)){var s=r.contents().detach();(a=t.element("<md-tab-body></md-tab-body>")).append(s)}return r.append(o),a.html()&&r.append(a),e},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect"}}})}(),function(){t.module("material.components.tabs").directive("mdTabItem",function(){return{require:"^?mdTabs",link:function(e,t,n,r){r&&r.attachRipple(e,t)}}})}(),function(){t.module("material.components.tabs").directive("mdTabLabel",function(){return{terminal:!0}})}(),function(){function e(e){return{restrict:"A",compile:function(t,n){var r=e(n.mdTabScroll,null,!0);return function(e,t){t.on("mousewheel",function(t){e.$apply(function(){r(e,{$event:t})})})}}}}e.$inject=["$parse"],t.module("material.components.tabs").directive("mdTabScroll",e)}(),function(){function e(e,r,i,o,a,s,c,l,d,u,m){function p(){Q.selectedIndex=Q.selectedIndex||0,h(),g(),f(),u(r),s.nextTick(function(){te=O(),K(),V(),G(),Q.tabs[Q.selectedIndex]&&Q.tabs[Q.selectedIndex].scope.select(),ie=!0,j()})}function h(){var e=l.$mdTabsTemplate,n=t.element(r[0].querySelector("md-tab-data"));n.html(e),d(n.contents())(Q.parent),delete l.$mdTabsTemplate}function f(){t.element(i).on("resize",S),e.$on("$destroy",b)}function g(){e.$watch("$mdTabsCtrl.selectedIndex",k)}function v(e,t){var n=l.$normalize("md-"+e);t&&L(e,t),l.$observe(n,function(t){Q[e]=t})}function $(e,t){function n(t){Q[e]="false"!==t}var r=l.$normalize("md-"+e);t&&L(e,t),l.hasOwnProperty(r)&&n(l[r]),l.$observe(r,n)}function b(){re=!0,t.element(i).off("resize",S)}function y(e){var n=O();t.element(n.wrapper).toggleClass("md-stretch-tabs",I()),G()}function E(e){Q.shouldCenterTabs=H()}function C(e,n){if(e!==n){var r=O();t.forEach(r.tabs,function(t){t.style.maxWidth=e+"px"}),s.nextTick(Q.updateInkBarStyles)}}function w(e,t){e!==t&&(Q.maxTabWidth=F(),Q.shouldCenterTabs=H(),s.nextTick(function(){Q.maxTabWidth=F(),V(Q.selectedIndex)}))}function M(e){r[e?"removeClass":"addClass"]("md-no-tab-content")}function A(n){var r=O(),i=Q.shouldCenterTabs?"":"-"+n+"px";t.element(r.paging).css(o.CSS.TRANSFORM,"translate3d("+i+", 0, 0)"),e.$broadcast("$mdTabsPaginationChanged")}function x(e,t){e!==t&&O().tabs[e]&&(V(),q())}function k(t,n){t!==n&&(Q.selectedIndex=R(t),Q.lastSelectedIndex=n,Q.updateInkBarStyles(),K(),V(t),e.$broadcast("$mdTabsChanged"),Q.tabs[n]&&Q.tabs[n].scope.deselect(),Q.tabs[t]&&Q.tabs[t].scope.select())}function T(){T.watcher||(T.watcher=e.$watch(function(){s.nextTick(function(){T.watcher&&r.prop("offsetParent")&&(T.watcher(),T.watcher=null,S())},!1)}))}function _(e,t){ee||(Q.focusIndex=Q.selectedIndex=e),t&&Q.noSelectClick||s.nextTick(function(){Q.tabs[e].element.triggerHandler("click")},!1)}function S(){Q.lastSelectedIndex=Q.selectedIndex,Q.offsetLeft=Z(Q.offsetLeft),s.nextTick(function(){Q.updateInkBarStyles(),j()})}function N(e){t.element(O().inkBar).toggleClass("ng-hide",e)}function D(e){r.toggleClass("md-dynamic-height",e)}function O(){var e={},t=r[0];return e.wrapper=t.querySelector("md-tabs-wrapper"),e.canvas=e.wrapper.querySelector("md-tabs-canvas"),e.paging=e.canvas.querySelector("md-pagination-wrapper"),e.inkBar=e.paging.querySelector("md-ink-bar"),e.contents=t.querySelectorAll("md-tabs-content-wrapper > md-tab-content"),e.tabs=e.paging.querySelectorAll("md-tab-item"),e.dummies=e.canvas.querySelectorAll("md-dummy-tab"),e}function I(){switch(Q.stretchTabs){case"always":return!0;case"never":return!1;default:return!Q.shouldPaginate&&i.matchMedia("(max-width: 600px)").matches}}function H(){return Q.centerTabs&&!Q.shouldPaginate}function P(){if(Q.noPagination||!ie)return!1;var e=r.prop("clientWidth");return t.forEach(O().dummies,function(t){e-=t.offsetWidth}),e<0}function R(e){if(-1===e)return-1;var t,n,r=Math.max(Q.tabs.length-e,e);for(t=0;t<=r;t++){if((n=Q.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=Q.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function L(e,t,n){Object.defineProperty(Q,e,{get:function(){return n},set:function(e){var r=n;n=e,t&&t(e,r)}})}function j(){Q.maxTabWidth=F(),Q.shouldPaginate=P()}function B(e){var n=0;return t.forEach(e,function(e){n+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(n)}function F(){return r.prop("clientWidth")}function U(e,t){var n,r=t?"focusIndex":"selectedIndex";for(n=Q[r]+e;Q.tabs[n]&&Q.tabs[n].scope.disabled;n+=e);Q.tabs[n]&&(Q[r]=n)}function q(){Q.styleTabItemFocus="keyboard"===m.getLastInteractionType(),O().dummies[Q.focusIndex].focus()}function V(e){var n=O();if(t.isNumber(e)||(e=Q.focusIndex),n.tabs[e]&&!Q.shouldCenterTabs){var r=n.tabs[e],i=r.offsetLeft,o=r.offsetWidth+i;Q.offsetLeft=Math.max(Q.offsetLeft,Z(o-n.canvas.clientWidth+64)),Q.offsetLeft=Math.min(Q.offsetLeft,Z(i))}}function z(){ne.forEach(function(e){s.nextTick(e)}),ne=[]}function W(){for(var e=!1,t=0;t<Q.tabs.length;t++)if(Q.tabs[t].hasContent){e=!0;break}Q.hasContent=e}function Y(){Q.selectedIndex=R(Q.selectedIndex),Q.focusIndex=R(Q.focusIndex)}function K(){if(!Q.dynamicHeight)return r.css("height","");if(!Q.tabs.length)return ne.push(K);var e=O(),t=e.contents[Q.selectedIndex],i=t?t.offsetHeight:0,o=e.wrapper.offsetHeight,a=i+o,l=r.prop("clientHeight");if(l!==a){"bottom"===r.attr("md-align-tabs")&&(l-=o,a-=o,r.attr("md-border-bottom")!==n&&++l),ee=!0;var d={height:l+"px"},u={height:a+"px"};r.css(d),c(r,{from:d,to:u,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){r.css({transition:"none",height:""}),s.nextTick(function(){r.css("transition","")}),ee=!1})}}function G(){var e=O();if(e.tabs[Q.selectedIndex]){if(!Q.tabs.length)return ne.push(Q.updateInkBarStyles);if(!r.prop("offsetParent"))return T();var n=Q.selectedIndex,i=e.paging.offsetWidth,o=e.tabs[n],a=o.offsetLeft,c=i-a-o.offsetWidth;Q.shouldCenterTabs&&i>B(e.tabs)&&s.nextTick(G,!1),X(),t.element(e.inkBar).css({left:a+"px",right:c+"px"})}else t.element(e.inkBar).css({left:"auto",right:"auto"})}function X(){var e=O(),n=Q.selectedIndex,r=Q.lastSelectedIndex,i=t.element(e.inkBar);t.isNumber(r)&&i.toggleClass("md-left",n<r).toggleClass("md-right",n>r)}function Z(e){var t=O();if(!t.tabs.length||!Q.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],r=n.offsetLeft+n.offsetWidth;return e=Math.max(0,e),e=Math.min(r-t.canvas.clientWidth,e)}function J(e){if(e.hasContent){var n=r[0].querySelectorAll('[md-tab-id="'+e.id+'"]');t.element(n).attr("aria-controls",Q.tabContentPrefix+e.id)}}var Q=this,ee=!1,te=O(),ne=[],re=!1,ie=!1;Q.$onInit=function(){v("stretchTabs",y),L("focusIndex",x,Q.selectedIndex||0),L("offsetLeft",A,0),L("hasContent",M,!1),L("maxTabWidth",C,F()),L("shouldPaginate",w,!1),$("noInkBar",N),$("dynamicHeight",D),$("noPagination"),$("swipeContent"),$("noDisconnect"),$("autoselect"),$("noSelectClick"),$("centerTabs",E),$("enableDisconnect"),Q.scope=e,Q.parent=e.$parent,Q.tabs=[],Q.lastSelectedIndex=null,Q.hasFocus=!1,Q.styleTabItemFocus=!1,Q.shouldCenterTabs=H(),Q.tabContentPrefix="tab-content-",p()},Q.updatePagination=s.debounce(j,100),Q.redirectFocus=q,Q.attachRipple=function(e,n){var r=O(),i={colorElement:t.element(r.inkBar)};a.attach(e,n,i)},Q.insertTab=function(e,n){var r=ie,i={getIndex:function(){return Q.tabs.indexOf(o)},isActive:function(){return this.getIndex()===Q.selectedIndex},isLeft:function(){return this.getIndex()<Q.selectedIndex},isRight:function(){return this.getIndex()>Q.selectedIndex},shouldRender:function(){return!Q.noDisconnect||this.isActive()},hasFocus:function(){return Q.styleTabItemFocus&&Q.hasFocus&&this.getIndex()===Q.focusIndex},id:s.nextUid(),hasContent:!(!e.template||!e.template.trim())},o=t.extend(i,e);return t.isDefined(n)?Q.tabs.splice(n,0,o):Q.tabs.push(o),z(),W(),s.nextTick(function(){j(),J(o),r&&Q.autoselect&&s.nextTick(function(){s.nextTick(function(){_(Q.tabs.indexOf(o))})})}),o},Q.removeTab=function(e){if(!re){var t=Q.selectedIndex,n=Q.tabs.splice(e.getIndex(),1)[0];Y(),Q.selectedIndex===t&&(n.scope.deselect(),Q.tabs[Q.selectedIndex]&&Q.tabs[Q.selectedIndex].scope.select()),s.nextTick(function(){j(),Q.offsetLeft=Z(Q.offsetLeft)})}},Q.select=_,Q.scroll=function(e){Q.shouldPaginate&&(e.preventDefault(),Q.offsetLeft=Z(Q.offsetLeft-e.wheelDelta))},Q.nextPage=function(){var e,t,n=O(),r=n.canvas.clientWidth,i=r+Q.offsetLeft;for(e=0;e<n.tabs.length&&!((t=n.tabs[e]).offsetLeft+t.offsetWidth>i);e++);r>t.offsetWidth?Q.offsetLeft=Z(t.offsetLeft):Q.offsetLeft=Z(t.offsetLeft+(t.offsetWidth-r+1))},Q.previousPage=function(){var e,t,n=O();for(e=0;e<n.tabs.length&&!((t=n.tabs[e]).offsetLeft+t.offsetWidth>=Q.offsetLeft);e++);n.canvas.clientWidth>t.offsetWidth?Q.offsetLeft=Z(t.offsetLeft+t.offsetWidth-n.canvas.clientWidth):Q.offsetLeft=Z(t.offsetLeft)},Q.keydown=function(e){switch(e.keyCode){case o.KEY_CODE.LEFT_ARROW:e.preventDefault(),U(-1,!0);break;case o.KEY_CODE.RIGHT_ARROW:e.preventDefault(),U(1,!0);break;case o.KEY_CODE.SPACE:case o.KEY_CODE.ENTER:e.preventDefault(),ee||_(Q.focusIndex)}},Q.canPageForward=function(){var e=O(),t=e.tabs[e.tabs.length-1];return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+Q.offsetLeft},Q.canPageBack=function(){return Q.offsetLeft>0},Q.refreshIndex=Y,Q.incrementIndex=U,Q.getTabElementIndex=function(e){var t=r[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},Q.updateInkBarStyles=s.debounce(G,100),Q.updateTabOrder=s.debounce(function(){var e=Q.tabs[Q.selectedIndex],t=Q.tabs[Q.focusIndex];Q.tabs=Q.tabs.sort(function(e,t){return e.index-t.index}),Q.selectedIndex=Q.tabs.indexOf(e),Q.focusIndex=Q.tabs.indexOf(t)},100),Q.getFocusedTabId=function(){var e=Q.tabs[Q.focusIndex];return e&&e.id?"tab-item-"+e.id:null},1===t.version.major&&t.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction"],t.module("material.components.tabs").controller("MdTabsController",e)}(),function(){function e(e){return{scope:{selectedIndex:"=?mdSelected"},template:function(t,n){return n.$mdTabsTemplate=t.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" aria-activedescendant="{{$mdTabsCtrl.getFocusedTabId()}}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)" role="tablist"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)"> <md-tab-item tabindex="-1" class="md-tab" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-class="{ \'md-active\': tab.isActive(), \'md-focused\': tab.hasFocus(), \'md-disabled\': tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-touch-action="pan-y" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <md-tabs-dummy-wrapper class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </md-tabs-dummy-wrapper> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> <md-tab-content id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" class="_md" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" md-swipe-touch-action="pan-y" ng-if="tab.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\': tab.isActive(), \'md-left\': tab.isLeft(), \'md-right\': tab.isRight(), \'md-no-scroll\': $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}e.$inject=["$$mdSvgRegistry"],t.module("material.components.tabs").directive("mdTabs",e)}(),function(){function e(e,t){return{require:"^?mdTabs",link:function(n,r,i,o){if(o){var a,s,c=function(){o.updatePagination(),o.updateInkBarStyles()};if("MutationObserver"in t){var l={childList:!0,subtree:!0,characterData:!0};(a=new MutationObserver(c)).observe(r[0],l),s=a.disconnect.bind(a)}else{var d=e.debounce(c,15,null,!1);r.on("DOMSubtreeModified",d),s=r.off.bind(r,"DOMSubtreeModified",d)}n.$on("$destroy",function(){s()})}}}}e.$inject=["$mdUtil","$window"],t.module("material.components.tabs").directive("mdTabsDummyWrapper",e)}(),function(){function e(e,t){return{restrict:"A",link:function(n,r,i,o){function a(){o.enableDisconnect&&t.disconnectScope(c)}function s(){o.enableDisconnect&&t.reconnectScope(c)}if(o){var c=o.enableDisconnect?n.compileScope.$new():n.compileScope;return r.html(n.template),e(r.contents())(c),t.nextTick(function(){n.$watch("connected",function(e){!1===e?a():s()}),n.$on("$destroy",s)})}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}e.$inject=["$compile","$mdUtil"],t.module("material.components.tabs").directive("mdTabsTemplate",e)}(),t.module("material.core").constant("$MD_THEME_CSS",'md-autocomplete.md-THEME_NAME-theme{background:"{{background-A100}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-100}}"}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:"{{background-600}}"}md-autocomplete.md-THEME_NAME-theme button:after{background:"{{background-600-0.3}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-A100}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li{color:"{{background-900}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li .highlight{color:"{{background-600}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover{background:"{{background-200}}"}md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-bottom-sheet.md-THEME_NAME-theme{background-color:"{{background-50}}";border-top-color:"{{background-300}}"}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:"{{foreground-1}}"}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:"{{background-50}}";color:"{{foreground-1}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:"{{primary-contrast}}";background-color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:"{{primary-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:"{{primary-600}}"}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-fab{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-raised{color:"{{background-900}}";background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon{color:"{{background-900}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:"{{background-200}}"}.md-button.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:"{{warn-contrast}}";background-color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:"{{warn-contrast}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:"{{warn-600}}"}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:"{{accent-contrast}}";background-color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}";cursor:default}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon{color:"{{foreground-3}}"}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:"{{foreground-4}}"}.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent}._md a.md-THEME_NAME-theme:not(.md-button).md-primary{color:"{{primary-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-primary:hover{color:"{{primary-700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent{color:"{{accent-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent:hover{color:"{{accent-A700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn{color:"{{warn-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn:hover{color:"{{warn-700}}"}md-card.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-hue-1}}";border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0}md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon{color:"{{background-color}}";background-color:"{{foreground-3}}"}md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead,md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme .md-ripple{color:"{{accent-A700}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:"{{accent-color-0.26}}"}md-checkbox.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:"{{accent-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:"{{primary-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:"{{primary-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:"{{warn-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:"{{warn-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled]:not(.md-checked) .md-icon{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon:after{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px "{{foreground-4}}"}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px "{{primary-color}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input{color:"{{foreground-1}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-moz-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-moz-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme md-chip{background:"{{background-300}}";color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip md-icon{color:"{{background-700}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused{background:"{{primary-color}}";color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused md-icon{color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip._md-chip-editing{background:transparent;color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:"{{background-500}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-content.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-default}}"}.md-calendar.md-THEME_NAME-theme{background:"{{background-A100}}";color:"{{background-A200-0.87}}"}.md-calendar.md-THEME_NAME-theme tr:last-child td{border-bottom-color:"{{background-200}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-300}}";color:"{{background-A200-0.87}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator{border:1px solid "{{primary-500}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled{color:"{{primary-500-0.6}}"}.md-calendar-date.md-focus .md-THEME_NAME-theme .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover{background:"{{background-300}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator{background:"{{primary-500}}";color:"{{primary-500-contrast}}";border-color:transparent}.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled{color:"{{background-A200-0.435}}"}.md-THEME_NAME-theme .md-datepicker-input{color:"{{foreground-1}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input-container{border-bottom-color:"{{foreground-4}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid,.md-warn .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar-pane{border-color:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle{border-top-color:"{{foreground-2}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon,.md-THEME_NAME-theme .md-datepicker-open.md-accent .md-datepicker-calendar-icon{color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-open.md-warn .md-datepicker-calendar-icon,.md-warn .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar{background:"{{background-A100}}"}.md-THEME_NAME-theme .md-datepicker-input-mask-opaque{box-shadow:0 0 0 9999px "{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-input-container{background:"{{background-hue-1}}"}md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions,md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions,md-divider.md-THEME_NAME-theme{border-top-color:"{{foreground-4}}"}.layout-gt-lg-row>md-divider.md-THEME_NAME-theme,.layout-gt-md-row>md-divider.md-THEME_NAME-theme,.layout-gt-sm-row>md-divider.md-THEME_NAME-theme,.layout-gt-xs-row>md-divider.md-THEME_NAME-theme,.layout-lg-row>md-divider.md-THEME_NAME-theme,.layout-md-row>md-divider.md-THEME_NAME-theme,.layout-row>md-divider.md-THEME_NAME-theme,.layout-sm-row>md-divider.md-THEME_NAME-theme,.layout-xl-row>md-divider.md-THEME_NAME-theme,.layout-xs-row>md-divider.md-THEME_NAME-theme{border-right-color:"{{foreground-4}}"}md-icon.md-THEME_NAME-theme{color:"{{foreground-2}}"}md-icon.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}md-icon.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}md-icon.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-input-container.md-THEME_NAME-theme .md-input{color:"{{foreground-1}}";border-color:"{{foreground-4}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme label.md-required:after{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-focused):not(.md-input-invalid) label.md-required:after{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation,md-input-container.md-THEME_NAME-theme .md-input-messages-animation{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation .md-char-counter,md-input-container.md-THEME_NAME-theme .md-input-messages-animation .md-char-counter{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-moz-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent md-icon{color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn md-icon{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input-message-animation,md-input-container.md-THEME_NAME-theme.md-input-invalid label{color:"{{warn-A700}}"}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:"{{foreground-3}}";background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:"{{foreground-1}}"}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:"{{background-100}}"}md-list.md-THEME_NAME-theme md-list-item .md-avatar-icon{background-color:"{{foreground-3}}";color:"{{background-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:"{{primary-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:"{{accent-color}}"}md-menu-content.md-THEME_NAME-theme{background-color:"{{background-A100}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{background-A200-0.87}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled],md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled] md-icon{color:"{{background-A200-0.25}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{background-A200-0.11}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-2}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu.md-open>button,md-menu-bar.md-THEME_NAME-theme md-menu>button:focus{outline:none;background:"{{background-200}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.2}}"}md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover{background:transparent}md-menu-content.md-THEME_NAME-theme .md-menu>.md-button:after{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.2}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-A100}}";color:"{{background-A200}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{background-A100-0.87}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{background-A100-0.87}}"}md-nav-bar.md-THEME_NAME-theme .md-nav-bar{background-color:transparent;border-color:"{{foreground-4}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button.md-unselected{color:"{{foreground-2}}"}md-nav-bar.md-THEME_NAME-theme md-nav-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar{background-color:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar{background-color:"{{warn-color}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar{background-color:"{{primary-color}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{primary-color}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-progress-circular.md-THEME_NAME-theme path{stroke:"{{primary-color}}"}md-progress-circular.md-THEME_NAME-theme.md-warn path{stroke:"{{warn-color}}"}md-progress-circular.md-THEME_NAME-theme.md-accent path{stroke:"{{accent-color}}"}._md-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-progress-linear.md-THEME_NAME-theme .md-container{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:"{{primary-color}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:"{{warn-color}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:radial-gradient("{{warn-100}}" 0,"{{warn-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:radial-gradient("{{accent-100}}" 0,"{{accent-100}}" 16%,transparent 42%)}md-radio-button.md-THEME_NAME-theme .md-off{border-color:"{{foreground-2}}"}md-radio-button.md-THEME_NAME-theme .md-on{background-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:"{{accent-A700}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on{background-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off{border-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple{color:"{{primary-600}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on{background-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off{border-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple{color:"{{warn-600}}"}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:"{{foreground-3}}"}md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple{color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple,md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple{color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked.md-primary .md-ink-ripple{color:"{{warn-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before{background-color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before{background-color:"{{warn-color-0.26}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background:"{{background-A100}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{background-600-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{background-900-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{background-400-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background:"{{background-200}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{background-900-0.87}}"}md-slider.md-THEME_NAME-theme .md-track{background-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme .md-track-ticks{color:"{{background-contrast}}"}md-slider.md-THEME_NAME-theme .md-focus-ring{background-color:"{{accent-A200-0.2}}"}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:"{{background-color}}";background-color:"{{background-color}}"}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:"{{background-color}}";border-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme.md-min .md-focus-ring{background-color:"{{foreground-3-0.38}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-thumb:after{background-color:"{{background-contrast}}";border-color:transparent}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:"{{accent-color}}";background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb-text{color:"{{accent-contrast}}"}md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring{background-color:"{{warn-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:"{{warn-color}}";background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:"{{warn-contrast}}"}md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring{background-color:"{{primary-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:"{{primary-color}}";background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:"{{primary-contrast}}"}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:transparent}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after,md-slider.md-THEME_NAME-theme[disabled][md-discrete] .md-thumb:after{background-color:"{{foreground-3}}";border-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{border-color:transparent;background-color:transparent}md-slider-container[disabled]>:first-child:not(md-slider),md-slider-container[disabled]>:last-child:not(md-slider){color:"{{foreground-3}}"}.md-subheader.md-THEME_NAME-theme{color:"{{ foreground-2-0.23 }}";background-color:"{{background-default}}"}.md-subheader.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-subheader.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-subheader.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme .md-ink-ripple{color:"{{background-500}}"}md-switch.md-THEME_NAME-theme .md-thumb{background-color:"{{background-50}}"}md-switch.md-THEME_NAME-theme .md-bar{background-color:"{{background-500}}"}md-switch.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before{background-color:"{{warn-color-0.26}}"}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:"{{background-400}}"}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toast.md-THEME_NAME-theme .md-toast-content{background-color:#323232;color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button{color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight{color:"{{accent-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-primary{color:"{{primary-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn{color:"{{warn-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar){background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon{color:"{{primary-contrast}}";fill:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{color:"{{primary-contrast-0.26}}";fill:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-contrast}}";fill:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-contrast-0.26}}";fill:"{{accent-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{color:"{{background-700-contrast}}";background-color:"{{background-700}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}')}(window,window.angular),window.ngMaterial={version:{full:"1.1.4"}},function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.io=t():e.io=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e,t){"object"===(void 0===e?"undefined":i(e))&&(t=e,e=void 0),t=t||{};var n,r=o(e),a=r.source,d=r.id,u=r.path,m=l[d]&&u in l[d].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||m?(c("ignoring socket cache for %s",a),n=s(a,t)):(l[d]||(c("new io instance for %s",a),l[d]=s(a,t)),n=l[d]),r.query&&!t.query&&(t.query=r.query),n.socket(r.path,t)}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(1),a=n(7),s=n(13),c=n(3)("socket.io-client");e.exports=t=r;var l=t.managers={};t.protocol=a.protocol,t.connect=r,t.Manager=n(13),t.Socket=n(39)},function(e,t,n){(function(t){"use strict";var r=n(2),i=n(3)("socket.io-client:url");e.exports=function(e,n){var o=e;n=n||t.location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(i("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),i("parse %s",e),o=r(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var a=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+a+":"+o.port,o.href=o.protocol+"://"+a+(n&&n.port===o.port?"":":"+o.port),o}}).call(t,function(){return this}())},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));for(var a=n.exec(e||""),s={},c=14;c--;)s[r[c]]=a[c]||"";return-1!=i&&-1!=o&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(e,t,n){(function(r){function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(5)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}).call(t,n(4))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(d===setTimeout)return setTimeout(e,0);if((d===n||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function o(e){if(u===clearTimeout)return clearTimeout(e);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{return u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}function a(){f&&p&&(f=!1,p.length?h=p.concat(h):g=-1,h.length&&s())}function s(){if(!f){var e=i(a);f=!0;for(var t=h.length;t;){for(p=h,h=[];++g<t;)p&&p[g].run();g=-1,t=h.length}p=null,f=!1,o(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var d,u,m=e.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:n}catch(e){d=n}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}();var p,h=[],f=!1,g=-1;m.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new c(e,t)),1!==h.length||f||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=l,m.addListener=l,m.once=l,m.off=l,m.removeListener=l,m.removeAllListeners=l,m.emit=l,m.prependListener=l,m.prependOnceListener=l,m.listeners=function(e){return[]},m.binding=function(e){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(e){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function i(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;c++;var i=t.formatters[r];if("function"==typeof i){var o=a[c];n=i.call(e,o),a.splice(c,1),c--}return n}),t.formatArgs.call(e,a),(n.log||t.log||console.log.bind(console)).apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(e=n[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(6),t.names=[],t.skips=[],t.formatters={};var o},function(e,t){function n(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*d;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=l?Math.round(e/l)+"d":e>=c?Math.round(e/c)+"h":e>=s?Math.round(e/s)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function i(e){return o(e,l,"day")||o(e,c,"hour")||o(e,s,"minute")||o(e,a,"second")||e+" ms"}function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var a=1e3,s=60*a,c=60*s,l=24*c,d=365.25*l;e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return n(e);if("number"===o&&!1===isNaN(e))return t.long?i(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){function r(){}function i(e){var n=""+e.type;return t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data&&(n+=JSON.stringify(e.data)),u("encoded %j as %s",e,n),n}function o(e,t){h.removeBlobs(e,function(e){var n=h.deconstructPacket(e),r=i(n.packet),o=n.buffers;o.unshift(r),t(o)})}function a(){this.reconstructor=null}function s(e){var n=0,r={type:Number(e.charAt(0))};if(null==t.types[r.type])return d();if(t.BINARY_EVENT===r.type||t.BINARY_ACK===r.type){for(var i="";"-"!==e.charAt(++n)&&(i+=e.charAt(n),n!=e.length););if(i!=Number(i)||"-"!==e.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(n+1))for(r.nsp="";++n&&","!==(a=e.charAt(n))&&(r.nsp+=a,n!==e.length););else r.nsp="/";var o=e.charAt(n+1);if(""!==o&&Number(o)==o){for(r.id="";++n;){var a=e.charAt(n);if(null==a||Number(a)!=a){--n;break}if(r.id+=e.charAt(n),n===e.length)break}r.id=Number(r.id)}return e.charAt(++n)&&(r=c(r,e.substr(n))),u("decoded %s as %j",e,r),r}function c(e,t){try{e.data=JSON.parse(t)}catch(e){return d()}return e}function l(e){this.reconPack=e,this.buffers=[]}function d(){return{type:t.ERROR,data:"parser error"}}var u=n(3)("socket.io-parser"),m=n(8),p=n(9),h=n(11),f=n(12);t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=r,t.Decoder=a,r.prototype.encode=function(e,n){e.type!==t.EVENT&&e.type!==t.ACK||!p(e.data)||(e.type=e.type===t.EVENT?t.BINARY_EVENT:t.BINARY_ACK),u("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type?o(e,n):n([i(e)])},m(a.prototype),a.prototype.add=function(e){var n;if("string"==typeof e)n=s(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new l(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!f(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},l.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=h.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){function r(e){if(e)return i(e)}function i(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t);return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){(function(t){function r(e){if(!e||"object"!=typeof e)return!1;if(i(e)){for(var n=0,o=e.length;n<o;n++)if(r(e[n]))return!0;return!1}if("function"==typeof t.Buffer&&t.Buffer.isBuffer&&t.Buffer.isBuffer(e)||"function"==typeof t.ArrayBuffer&&e instanceof ArrayBuffer||a&&e instanceof Blob||s&&e instanceof File)return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return r(e.toJSON(),!0);for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)&&r(e[c]))return!0;return!1}var i=n(10),o=Object.prototype.toString,a="function"==typeof t.Blob||"[object BlobConstructor]"===o.call(t.Blob),s="function"==typeof t.File||"[object FileConstructor]"===o.call(t.File);e.exports=r}).call(t,function(){return this}())},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(e){function r(e,t){if(!e)return e;if(a(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(o(e)){for(var i=new Array(e.length),s=0;s<e.length;s++)i[s]=r(e[s],t);return i}if("object"==typeof e&&!(e instanceof Date)){i={};for(var c in e)i[c]=r(e[c],t);return i}return e}function i(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(o(e))for(var n=0;n<e.length;n++)e[n]=i(e[n],t);else if("object"==typeof e)for(var r in e)e[r]=i(e[r],t);return e}var o=n(10),a=n(12),s=Object.prototype.toString,c="function"==typeof e.Blob||"[object BlobConstructor]"===s.call(e.Blob),l="function"==typeof e.File||"[object FileConstructor]"===s.call(e.File);t.deconstructPacket=function(e){var t=[],n=e.data,i=e;return i.data=r(n,t),i.attachments=t.length,{packet:i,buffers:t}},t.reconstructPacket=function(e,t){return e.data=i(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){function n(e,s,d){if(!e)return e;if(c&&e instanceof Blob||l&&e instanceof File){r++;var u=new FileReader;u.onload=function(){d?d[s]=this.result:i=this.result,--r||t(i)},u.readAsArrayBuffer(e)}else if(o(e))for(var m=0;m<e.length;m++)n(e[m],m,e);else if("object"==typeof e&&!a(e))for(var p in e)n(e[p],p,e)}var r=0,i=e;n(i),r||t(i)}}).call(t,function(){return this}())},function(e,t){(function(t){e.exports=function(e){return t.Buffer&&t.Buffer.isBuffer(e)||t.ArrayBuffer&&e instanceof ArrayBuffer}}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e,t){if(!(this instanceof r))return new r(e,t);e&&"object"===(void 0===e?"undefined":i(e))&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(14),a=n(39),s=n(8),c=n(7),l=n(41),d=n(42),u=n(3)("socket.io-client:manager"),m=n(37),p=n(43),h=Object.prototype.hasOwnProperty;e.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)h.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},r.prototype.updateSocketIds=function(){for(var e in this.nsps)h.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},r.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},s(r.prototype),r.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},r.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},r.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(e,t){if(u("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=o(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=l(n,"open",function(){r.onopen(),e&&e()}),a=l(n,"error",function(t){if(u("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var s=this._timeout;u("connect attempt will timeout after %d",s);var c=setTimeout(function(){u("connect attempt timed out after %d",s),i.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(i),this.subs.push(a),this},r.prototype.onopen=function(){u("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(l(e,"data",d(this,"ondata"))),this.subs.push(l(e,"ping",d(this,"onping"))),this.subs.push(l(e,"pong",d(this,"onpong"))),this.subs.push(l(e,"error",d(this,"onerror"))),this.subs.push(l(e,"close",d(this,"onclose"))),this.subs.push(l(this.decoder,"decoded",d(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(e){this.decoder.add(e)},r.prototype.ondecoded=function(e){this.emit("packet",e)},r.prototype.onerror=function(e){u("error",e),this.emitAll("error",e)},r.prototype.socket=function(e,t){function n(){~m(i.connecting,r)||i.connecting.push(r)}var r=this.nsps[e];if(!r){r=new a(this,e,t),this.nsps[e]=r;var i=this;r.on("connecting",n),r.on("connect",function(){r.id=i.generateId(e)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(e){var t=m(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},r.prototype.packet=function(e){u("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},r.prototype.cleanup=function(){u("cleanup");for(var e=this.subs.length,t=0;t<e;t++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){u("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(e){u("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();u("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(u("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(u("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(u("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){e.exports=n(15)},function(e,t,n){e.exports=n(16),e.exports.parser=n(23)},function(e,t,n){(function(t){function r(e,n){if(!(this instanceof r))return new r(e,n);n=n||{},e&&"object"==typeof e&&(n=e,e=null),e?(e=d(e),n.hostname=e.host,n.secure="https"===e.protocol||"wss"===e.protocol,n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=d(n.host).host),this.secure=null!=n.secure?n.secure:t.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(t.location?location.hostname:"localhost"),this.port=n.port||(t.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=m.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode;var i="object"==typeof t&&t;i.global===i&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function i(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var o=n(17),a=n(8),s=n(3)("engine.io-client:socket"),c=n(37),l=n(23),d=n(2),u=n(38),m=n(31);e.exports=r,r.priorWebsocketSuccess=!1,a(r.prototype),r.protocol=l.protocol,r.Socket=r,r.Transport=n(22),r.transports=n(17),r.parser=n(23),r.prototype.createTransport=function(e){s('creating transport "%s"',e);var t=i(this.query);t.EIO=l.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new o[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0})},r.prototype.open=function(){var e;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},r.prototype.setTransport=function(e){s("setting transport %s",e.name);var t=this;this.transport&&(s("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},r.prototype.probe=function(e){function t(){if(m.onlyBinaryUpgrades){var t=!this.supportsBinary&&m.transport.supportsBinary;u=u||t}u||(s('probe transport "%s" opened',e),d.send([{type:"ping",data:"probe"}]),d.once("packet",function(t){if(!u)if("pong"===t.type&&"probe"===t.data){if(s('probe transport "%s" pong',e),m.upgrading=!0,m.emit("upgrading",d),!d)return;r.priorWebsocketSuccess="websocket"===d.name,s('pausing current transport "%s"',m.transport.name),m.transport.pause(function(){u||"closed"!==m.readyState&&(s("changing transport and sending upgrade packet"),l(),m.setTransport(d),d.send([{type:"upgrade"}]),m.emit("upgrade",d),d=null,m.upgrading=!1,m.flush())})}else{s('probe transport "%s" failed',e);var n=new Error("probe error");n.transport=d.name,m.emit("upgradeError",n)}}))}function n(){u||(u=!0,l(),d.close(),d=null)}function i(t){var r=new Error("probe error: "+t);r.transport=d.name,n(),s('probe transport "%s" failed because of error: %s',e,t),m.emit("upgradeError",r)}function o(){i("transport closed")}function a(){i("socket closed")}function c(e){d&&e.name!==d.name&&(s('"%s" works - aborting "%s"',e.name,d.name),n())}function l(){d.removeListener("open",t),d.removeListener("error",i),d.removeListener("close",o),m.removeListener("close",a),m.removeListener("upgrading",c)}s('probing transport "%s"',e);var d=this.createTransport(e,{probe:1}),u=!1,m=this;r.priorWebsocketSuccess=!1,d.once("open",t),d.once("error",i),d.once("close",o),this.once("close",a),this.once("upgrading",c),d.open()},r.prototype.onOpen=function(){if(s("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){s("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},r.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(s('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(u(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else s('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},r.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){s("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},r.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(s("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},r.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function e(){r.onClose("forced close"),s("socket closing - telling transport to close"),r.transport.close()}function t(){r.removeListener("upgrade",t),r.removeListener("upgradeError",t),e()}function n(){r.once("upgrade",t),r.once("upgradeError",t)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():e()}):this.upgrading?n():e()}return this},r.prototype.onError=function(e){s("socket error %j",e),r.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},r.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){s('socket close with reason: "%s"',e);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~c(this.transports,e[n])&&t.push(e[n]);return t}}).call(t,function(){return this}())},function(e,t,n){(function(e){var r=n(18),i=n(20),o=n(34),a=n(35);t.polling=function(t){var n=!1,a=!1,s=!1!==t.jsonp;if(e.location){var c="https:"===location.protocol,l=location.port;l||(l=c?443:80),n=t.hostname!==location.hostname||l!==t.port,a=t.secure!==c}if(t.xdomain=n,t.xscheme=a,"open"in new r(t)&&!t.forceJSONP)return new i(t);if(!s)throw new Error("JSONP disabled");return new o(t)},t.websocket=a}).call(t,function(){return this}())},function(e,t,n){(function(t){var r=n(19);e.exports=function(e){var n=e.xdomain,i=e.xscheme,o=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!i&&o)return new XDomainRequest}catch(e){}if(!n)try{return new(t[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}}).call(t,function(){return this}())},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){(function(t){function r(){}function i(e){if(c.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,t.location){var n="https:"===location.protocol,r=location.port;r||(r=n?443:80),this.xd=e.hostname!==t.location.hostname||r!==e.port,this.xs=e.secure!==n}}function o(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function a(){for(var e in o.requests)o.requests.hasOwnProperty(e)&&o.requests[e].abort()}var s=n(18),c=n(21),l=n(8),d=n(32),u=n(3)("engine.io-client:polling-xhr");e.exports=i,e.exports.Request=o,d(i,c),i.prototype.supportsBinary=!0,i.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new o(e)},i.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),i=this;r.on("success",t),r.on("error",function(e){i.onError("xhr post error",e)}),this.sendXhr=r},i.prototype.doPoll=function(){u("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},l(o.prototype),o.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new s(e),r=this;try{u("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var i in this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.extraHeaders[i])}}catch(e){}if("POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){if(2===n.readyState){var e;try{e=n.getResponseHeader("Content-Type")}catch(e){}"application/octet-stream"===e&&(n.responseType="arraybuffer")}4===n.readyState&&(200===n.status||1223===n.status?r.onLoad():setTimeout(function(){r.onError(n.status)},0))},u("xhr data %s",this.data),n.send(this.data)}catch(e){return void setTimeout(function(){r.onError(e)},0)}t.document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},o.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},o.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,e)try{this.xhr.abort()}catch(e){}t.document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e="application/octet-stream"===t?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},o.prototype.hasXDR=function(){return void 0!==t.XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},o.requestsCount=0,o.requests={},t.document&&(t.attachEvent?t.attachEvent("onunload",a):t.addEventListener&&t.addEventListener("beforeunload",a,!1))}).call(t,function(){return this}())},function(e,t,n){function r(e){var t=e&&e.forceBase64;d&&!t||(this.supportsBinary=!1),i.call(this,e)}var i=n(22),o=n(31),a=n(23),s=n(32),c=n(33),l=n(3)("engine.io-client:polling");e.exports=r;var d=null!=new(n(18))({xdomain:!1}).responseType;s(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(e){function t(){l("paused"),n.readyState="paused",e()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){l("pre-pause polling complete"),--r||t()})),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",function(){l("pre-pause writing complete"),--r||t()}))}else t()},r.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(e){var t=this;l("polling got data %s",e);a.decodePayload(e,this.socket.binaryType,function(e,n,r){return"opening"===t.readyState&&t.onOpen(),"close"===e.type?(t.onClose(),!1):void t.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function e(){l("writing close packet"),t.write([{type:"close"}])}var t=this;"open"===this.readyState?(l("transport open - closing"),e()):(l("transport not open - deferring close"),this.once("open",e))},r.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};a.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){function r(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}var i=n(23),o=n(8);e.exports=r,o(r.prototype),r.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(e){var t=i.decodePacket(e,this.socket.binaryType);this.onPacket(t)},r.prototype.onPacket=function(e){this.emit("packet",e)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){(function(e){function r(e,n){return n("b"+t.packets[e.type]+e.data.data)}function i(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var i=e.data,o=new Uint8Array(i),a=new Uint8Array(1+i.byteLength);a[0]=$[e.type];for(var s=0;s<o.length;s++)a[s+1]=o[s];return r(a.buffer)}function o(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var i=new FileReader;return i.onload=function(){e.data=i.result,t.encodePacket(e,n,!0,r)},i.readAsArrayBuffer(e.data)}function a(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(v)return o(e,n,r);var i=new Uint8Array(1);return i[0]=$[e.type],r(new E([i.buffer,e.data]))}function s(e){try{e=h.decode(e,{strict:!1})}catch(e){return!1}return e}function c(e,t,n){for(var r=new Array(e.length),i=p(e.length,n),o=0;o<e.length;o++)!function(e,n,i){t(n,function(t,n){r[e]=n,i(t,r)})}(o,e[o],i)}var l,d=n(24),u=n(9),m=n(25),p=n(26),h=n(27);e&&e.ArrayBuffer&&(l=n(29));var f="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),v=f||g;t.protocol=3;var $=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},b=d($),y={type:"error",data:"parser error"},E=n(30);t.encodePacket=function(t,n,o,s){"function"==typeof n&&(s=n,n=!1),"function"==typeof o&&(s=o,o=null);var c=void 0===t.data?void 0:t.data.buffer||t.data;if(e.ArrayBuffer&&c instanceof ArrayBuffer)return i(t,n,s);if(E&&c instanceof e.Blob)return a(t,n,s);if(c&&c.base64)return r(t,s);var l=$[t.type];return void 0!==t.data&&(l+=o?h.encode(String(t.data),{strict:!1}):String(t.data)),s(""+l)},t.encodeBase64Packet=function(n,r){var i="b"+t.packets[n.type];if(E&&n.data instanceof e.Blob){var o=new FileReader;return o.onload=function(){var e=o.result.split(",")[1];r(i+e)},o.readAsDataURL(n.data)}var a;try{a=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(e){for(var s=new Uint8Array(n.data),c=new Array(s.length),l=0;l<s.length;l++)c[l]=s[l];a=String.fromCharCode.apply(null,c)}return i+=e.btoa(a),r(i)},t.decodePacket=function(e,n,r){if(void 0===e)return y;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=s(e)))return y;i=e.charAt(0);return Number(i)==i&&b[i]?e.length>1?{type:b[i],data:e.substring(1)}:{type:b[i]}:y}var i=new Uint8Array(e)[0],o=m(e,1);return E&&"blob"===n&&(o=new E([o])),{type:b[i],data:o}},t.decodeBase64Packet=function(e,t){var n=b[e.charAt(0)];if(!l)return{type:n,data:{base64:!0,data:e.substr(1)}};var r=l.decode(e.substr(1));return"blob"===t&&E&&(r=new E([r])),{type:n,data:r}},t.encodePayload=function(e,n,r){function i(e){return e.length+":"+e}"function"==typeof n&&(r=n,n=null);var o=u(e);return n&&o?E&&!v?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r):e.length?void c(e,function(e,r){t.encodePacket(e,!!o&&n,!1,function(e){r(null,i(e))})},function(e,t){return r(t.join(""))}):r("0:")},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);"function"==typeof n&&(r=n,n=null);var i;if(""===e)return r(y,0,1);for(var o,a,s="",c=0,l=e.length;c<l;c++){var d=e.charAt(c);if(":"===d){if(""===s||s!=(o=Number(s)))return r(y,0,1);if(a=e.substr(c+1,o),s!=a.length)return r(y,0,1);if(a.length){if(i=t.decodePacket(a,n,!1),y.type===i.type&&y.data===i.data)return r(y,0,1);if(!1===r(i,c+o,l))return}c+=o,s=""}else s+=d}return""!==s?r(y,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){return e.length?void c(e,function(e,n){t.encodePacket(e,!0,!0,function(e){return n(null,e)})},function(e,t){var r=t.reduce(function(e,t){var n;return n="string"==typeof t?t.length:t.byteLength,e+n.toString().length+n+2},0),i=new Uint8Array(r),o=0;return t.forEach(function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);n=r.buffer}i[o++]=t?0:1;for(var s=n.byteLength.toString(),a=0;a<s.length;a++)i[o++]=parseInt(s[a]);i[o++]=255;for(var r=new Uint8Array(n),a=0;a<r.length;a++)i[o++]=r[a]}),n(i.buffer)}):n(new ArrayBuffer(0))},t.encodePayloadAsBlob=function(e,n){c(e,function(e,n){t.encodePacket(e,!0,!0,function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);e=r.buffer,t[0]=0}for(var o=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),a=new Uint8Array(o.length+1),i=0;i<o.length;i++)a[i]=parseInt(o[i]);if(a[o.length]=255,E){var s=new E([t.buffer,a.buffer,e]);n(null,s)}})},function(e,t){return n(new E(t))})},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var i=e,o=[];i.byteLength>0;){for(var a=new Uint8Array(i),s=0===a[0],c="",l=1;255!==a[l];l++){if(c.length>310)return r(y,0,1);c+=a[l]}i=m(i,2+c.length),c=parseInt(c);var d=m(i,0,c);if(s)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(e){var u=new Uint8Array(d);d="";for(l=0;l<u.length;l++)d+=String.fromCharCode(u[l])}o.push(d),i=m(i,c)}var p=o.length;o.forEach(function(e,i){r(t.decodePacket(e,n,!0),i,p)})}}).call(t,function(){return this}())},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(e),o=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)o[s]=i[a];return o.buffer}},function(e,t){function n(){}e.exports=function(e,t,r){function i(e,n){if(i.count<=0)throw new Error("after called too many times");--i.count,e?(o=!0,t(e),t=r):0!==i.count||o||t(null,n)}var o=!1;return r=r||n,i.count=e,0===e?t():i}},function(e,t,n){var r;(function(e,i){!function(o){function a(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function s(e){for(var t,n=e.length,r=-1,i="";++r<n;)(t=e[r])>65535&&(t-=65536,i+=v(t>>>10&1023|55296),t=56320|1023&t),i+=v(t);return i}function c(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(e,t){return v(e>>t&63|128)}function d(e,t){if(0==(4294967168&e))return v(e);var n="";return 0==(4294965248&e)?n=v(e>>6&31|192):0==(4294901760&e)?(c(e,t)||(e=65533),n=v(e>>12&15|224),n+=l(e,6)):0==(4292870144&e)&&(n=v(e>>18&7|240),n+=l(e,12),n+=l(e,6)),n+=v(63&e|128)}function u(){if(g>=f)throw Error("Invalid byte index");var e=255&h[g];if(g++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function m(e){var t,n,r,i,o;if(g>f)throw Error("Invalid byte index");if(g==f)return!1;if(t=255&h[g],g++,0==(128&t))return t;if(192==(224&t)){if(n=u(),(o=(31&t)<<6|n)>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&t)){if(n=u(),r=u(),(o=(15&t)<<12|n<<6|r)>=2048)return c(o,e)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(n=u(),r=u(),i=u(),(o=(7&t)<<18|n<<12|r<<6|i)>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}var p=("object"==typeof e&&e&&e.exports,"object"==typeof i&&i);var h,f,g,v=String.fromCharCode,$={version:"2.1.2",encode:function(e,t){for(var n,r=!1!==(t=t||{}).strict,i=a(e),o=i.length,s=-1,c="";++s<o;)n=i[s],c+=d(n,r);return c},decode:function(e,t){var n=!1!==(t=t||{}).strict;h=a(e),f=h.length,g=0;for(var r,i=[];!1!==(r=m(n));)i.push(r);return s(i)}};void 0!==(r=function(){return $}.call(t,n,t,e))&&(e.exports=r)}()}).call(t,n(28)(e),function(){return this}())},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<e.length;r++)n[e.charCodeAt(r)]=r;t.encode=function(t){var n,r=new Uint8Array(t),i=r.length,o="";for(n=0;n<i;n+=3)o+=e[r[n]>>2],o+=e[(3&r[n])<<4|r[n+1]>>4],o+=e[(15&r[n+1])<<2|r[n+2]>>6],o+=e[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},t.decode=function(e){var t,r,i,o,a,s=.75*e.length,c=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var d=new ArrayBuffer(s),u=new Uint8Array(d);for(t=0;t<c;t+=4)r=n[e.charCodeAt(t)],i=n[e.charCodeAt(t+1)],o=n[e.charCodeAt(t+2)],a=n[e.charCodeAt(t+3)],u[l++]=r<<2|i>>4,u[l++]=(15&i)<<4|o>>2,u[l++]=(3&o)<<6|63&a;return d}}()},function(e,t){(function(t){function n(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var i=new Uint8Array(n.byteLength);i.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=i.buffer}e[t]=r}}}function r(e,t){t=t||{};var r=new o;n(e);for(var i=0;i<e.length;i++)r.append(e[i]);return t.type?r.getBlob(t.type):r.getBlob()}function i(e,t){return n(e),new Blob(e,t||{})}var o=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),s=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),c=o&&o.prototype.append&&o.prototype.getBlob;e.exports=a?s?t.Blob:i:c?r:void 0}).call(t,function(){return this}())},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){"use strict";function n(e){var t="";do{t=o[e%a]+t,e=Math.floor(e/a)}while(e>0);return t}function r(){var e=n(+new Date);return e!==i?(c=0,i=e):e+"."+n(c++)}for(var i,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,s={},c=0,l=0;l<a;l++)s[o[l]]=l;r.encode=n,r.decode=function(e){var t=0;for(l=0;l<e.length;l++)t=t*a+s[e.charAt(l)];return t},e.exports=r},function(e,t,n){(function(t){function r(){}function i(e){o.call(this,e),this.query=this.query||{},s||(t.___eio||(t.___eio=[]),s=t.___eio),this.index=s.length;var n=this;s.push(function(e){n.onData(e)}),this.query.j=this.index,t.document&&t.addEventListener&&t.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var o=n(21),a=n(32);e.exports=i;var s,c=/\n/g,l=/\\n/g;a(i,o),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},i.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},i.prototype.doWrite=function(e,t){function n(){r(),t()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(e){i.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+i.iframeId+'">';o=document.createElement(e)}catch(e){(o=document.createElement("iframe")).name=i.iframeId,o.src="javascript:0"}o.id=i.iframeId,i.form.appendChild(o),i.iframe=o}var i=this;if(!this.form){var o,a=document.createElement("form"),s=document.createElement("textarea"),d=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=d,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),e=e.replace(l,"\\\n"),this.area.value=e.replace(c,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===i.iframe.readyState&&n()}:this.iframe.onload=n}}).call(t,function(){return this}())},function(e,t,n){(function(t){function r(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=u&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(m=i),o.call(this,e)}var i,o=n(22),a=n(23),s=n(31),c=n(32),l=n(33),d=n(3)("engine.io-client:websocket"),u=t.WebSocket||t.MozWebSocket;if("undefined"==typeof window)try{i=n(36)}catch(e){}var m=u;m||"undefined"!=typeof window||(m=i),e.exports=r,c(r,o),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?t?new m(e,t):new m(e):new m(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},r.prototype.write=function(e){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var i=e.length,o=0,s=i;o<s;o++)!function(e){a.encodePacket(e,r.supportsBinary,function(o){if(!r.usingBrowserWebSocket){var a={};e.options&&(a.compress=e.options.compress),r.perMessageDeflate&&("string"==typeof o?t.Buffer.byteLength(o):o.length)<r.perMessageDeflate.threshold&&(a.compress=!1)}try{r.usingBrowserWebSocket?r.ws.send(o):r.ws.send(o,a)}catch(e){d("websocket closed before onclose event")}--i||n()})}(e[o])},r.prototype.onClose=function(){o.prototype.onClose.call(this)},r.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=l()),this.supportsBinary||(e.b64=1),(e=s.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},r.prototype.check=function(){return!(!m||"__initialize"in m&&this.name===r.prototype.name)}}).call(t,function(){return this}())},function(e,t){},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t){(function(t){var n=/^[\],:{}\s]*$/,r=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,i=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,a=/^\s+/,s=/\s+$/;e.exports=function(e){return"string"==typeof e&&e?(e=e.replace(a,"").replace(s,""),t.JSON&&JSON.parse?JSON.parse(e):n.test(e.replace(r,"@").replace(i,"]").replace(o,""))?new Function("return "+e)():void 0):null}}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(7),a=n(8),s=n(40),c=n(41),l=n(42),d=n(3)("socket.io-client:socket"),u=n(31);e.exports=r;var m={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=a.prototype.emit;a(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[c(e,"open",l(this,"onopen")),c(e,"packet",l(this,"onpacket")),c(e,"close",l(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var e=s(arguments);return e.unshift("message"),this.emit.apply(this,e),this},r.prototype.emit=function(e){if(m.hasOwnProperty(e))return p.apply(this,arguments),this;var t=s(arguments),n={type:o.EVENT,data:t};return n.options={},n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(d("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),delete this.flags,this},r.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},r.prototype.onopen=function(){if(d("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"===i(this.query)?u.encode(this.query):this.query;d("sending connect packet with query %s",e),this.packet({type:o.CONNECT,query:e})}else this.packet({type:o.CONNECT})},r.prototype.onclose=function(e){d("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},r.prototype.onpacket=function(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:this.onconnect();break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",e.data)}},r.prototype.onevent=function(e){var t=e.data||[];d("emitting event %j",t),null!=e.id&&(d("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?p.apply(this,t):this.receiveBuffer.push(t)},r.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var r=s(arguments);d("sending ack %j",r),t.packet({type:o.ACK,id:e,data:r})}}},r.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(d("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):d("bad ack %s",e.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)p.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){d("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(d("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(e){return this.flags=this.flags||{},this.flags.compress=e,this}},function(e,t){e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},function(e,t){"use strict";e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},function(e,t){var n=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}}])}),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};t.m=e,t.c=n,t.p="/assets/",t(0)}([function(e,t,n){"use strict";window.sforce=window.sforce||{},sforce.opencti=n(1),sforce.opencti.initialize()},function(e,t,n){"use strict";var r=n(2),i=n(3),o=/(\.force\.com|\.salesforce\.com)(:\d+)?$/;e.exports={initialize:function(){var e=i.parseUrlQueryString(location.search),t=e.sfdcIframeOrigin;if(!(t&&e.mode&&o.test(t)&&0===t.indexOf(window.location.protocol)))throw"Failed to initialize Open CTI. Ensure that it is loaded from the right frame with correct URL parameters";r.sfdcIframeOrigin=e.sfdcIframeOrigin,r.mode=e.mode,window.addEventListener("message",i.processPostMessage,!1)},setSoftphonePanelVisibility:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("setSoftphonePanelVisibility",{visible:e.visible},t)},isSoftphonePanelVisible:function(e){i.validateArguments(arguments),i.validateCallback(e),i.invokeApiCall("isSoftphonePanelVisible",{},e.callback)},SCREENPOP_TYPE:{URL:"url",SOBJECT:"sobject",OBJECTHOME:"objecthome",LIST:"list",SEARCH:"search",NEW_RECORD_MODAL:"newRecord"},screenPop:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("screenPop",{type:e.type,params:e.params},t)},CALL_TYPE:{INBOUND:"inbound",OUTBOUND:"outbound",INTERNAL:"internal"},searchAndScreenPop:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("searchAndScreenPop",{searchParams:e.searchParams,callType:e.callType,queryParams:e.queryParams,defaultFieldValues:e.defaultFieldValues,deferred:e.deferred},t)},getAppViewInfo:function(e){i.validateArguments(arguments),i.validateCallback(e),i.invokeApiCall("getAppViewInfo",{},e.callback)},saveLog:function(e){i.validateArguments(arguments),i.validateValueObject(e);var t=e?e.callback:void 0;i.invokeApiCall("saveLog",{object:e.value},t)},refreshView:function(e){i.validateArguments(arguments,!0);var t=e?e.callback:void 0;i.invokeApiCall("refreshView",{},t)},setSoftphoneItemLabel:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("setSoftphoneItemLabel",{label:e.label},t)},setSoftphonePanelLabel:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("setSoftphonePanelLabel",{label:e.label},t)},setSoftphoneItemIcon:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("setSoftphoneItemIcon",{key:e.key},t)},setSoftphonePanelIcon:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("setSoftphonePanelIcon",{key:e.key},t)},setSoftphonePanelHeight:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("setSoftphonePanelHeight",{heightPX:e.heightPX},t)},setSoftphonePanelWidth:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("setSoftphonePanelWidth",{widthPX:e.widthPX},t)},getCallCenterSettings:function(e){i.validateArguments(arguments),i.validateCallback(e),i.invokeApiCall("getCallCenterSettings",{},e.callback)},onClickToDial:function(e){i.validateArguments(arguments),i.validateListener(e),i.invokeApiCall("onClickToDial",{},void 0,e.listener)},enableClickToDial:function(e){i.validateArguments(arguments,!0);var t=e?e.callback:void 0;i.invokeApiCall("enableClickToDial",{},t)},disableClickToDial:function(e){i.validateArguments(arguments,!0);var t=e?e.callback:void 0;i.invokeApiCall("disableClickToDial",{},t)},getSoftphoneLayout:function(e){i.validateArguments(arguments),i.validateCallback(e),i.invokeApiCall("getSoftphoneLayout",{},e.callback)},onNavigationChange:function(e){i.validateArguments(arguments),i.validateListener(e),i.invokeApiCall("onNavigationChange",{},void 0,e.listener)},runApex:function(e){i.validateArguments(arguments);var t=e?e.callback:void 0;i.invokeApiCall("runApex",{apexClass:e.apexClass,methodName:e.methodName,methodParams:e.methodParams},t)}}},function(e,t){"use strict";e.exports={API_VERSION:40,API_TYPE:"opencti",sfdcIframeOrigin:null,mode:null}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(2),o=n(4),a=n(5),s=function(){var e=0;return function(){return e++}}();e.exports={processPostMessage:function(e){var t=e.data;t&&t.apiVersion===i.API_VERSION&&t.apiType===i.API_TYPE&&e.origin===i.sfdcIframeOrigin&&(o.executeCallback(t.methodName,t.callId,t.response),a.executeListeners(t.methodName,t.response))},parseUrlQueryString:function(e){var t={};if("string"!=typeof e)return t;if("?"===e.charAt(0)&&(e=e.slice(1)),0===e.length)return t;for(var n=e.split("&"),i=0;i<n.length;i++){var o=n[i].split("=");if(o[0])if(t[o[0]])if("object"===r(t[o[0]]))t[o[0]].push(o[1]?decodeURIComponent(o[1]):null);else{var a=t[o[0]];t[o[0]]=[],t[o[0]].push(a),t[o[0]].push(o[1]?decodeURIComponent(o[1]):null)}else t[o[0]]=o[1]?decodeURIComponent(o[1]):null}return t},invokeApiCall:function(e,t,n,r){var c={methodName:e,callId:s(),apiVersion:i.API_VERSION,apiType:i.API_TYPE,isCallbackRegistered:!1,isListenerRegistered:!1,args:t};"function"==typeof n&&(o.registerCallback(c.methodName,c.callId,n),c.isCallbackRegistered=!0),"function"==typeof r&&(a.registerListener(c.methodName,r),c.isListenerRegistered=!0),parent.postMessage(c,i.sfdcIframeOrigin)},validateCallback:function(e){if(!e||"function"!=typeof e.callback)throw new Error("Missing the required argument `callback`!")},validateListener:function(e){if(!e||"function"!=typeof e.listener)throw new Error("Missing the required argument `listener`!")},validateValueObject:function(e){if(!e||"object"!==r(e.value))throw new Error("Missing the required argument `value object`!")},validateArguments:function(e,t){if((t&&e.length||!t)&&(1!==e.length||"object"!==r(e[0])||!Object.keys(e[0]).length))throw new Error("Must pass in only one object which holds arguments to this API method call.")}}},function(e,t){"use strict";var n={},r=function(e,t){return e+"_"+t};e.exports={registerCallback:function(e,t,i){n[r(e,t)]=i},executeCallback:function(e,t,i){var o=r(e,t);n[o]&&(n[o].call(null,i),delete n[o])}}},function(e,t){"use strict";var n={};e.exports={registerListener:function(e,t){n[e]?n[e].push(t):n[e]=[t]},executeListeners:function(e,t){var r=n[e];r&&r.forEach(function(e){e.call(null,t)})}}}]);
\ No newline at end of file
--- /dev/null
+!function(t){"use strict";function e(t,e){return e=e||Error,function(){var n,r,i=arguments[0],o=arguments[1],a="["+(t?t+":":"")+i+"] ",s=W(arguments,2).map(function(t){return Ct(t,Or.objectMaxDepth)});for(a+=o.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1);return e<s.length?s[e]:t}),a+="\nhttp://errors.angularjs.org/1.6.4/"+(t?t+"/":"")+i,r=0,n="?";r<s.length;r++,n="&")a+=n+"p"+r+"="+encodeURIComponent(s[r]);return new e(a)}}function n(t){if(!E(t))return Or;y(t.objectMaxDepth)&&(Or.objectMaxDepth=r(t.objectMaxDepth)?t.objectMaxDepth:NaN)}function r(t){return M(t)&&t>0}function i(t){if(null==t||T(t))return!1;if(Kr(t)||w(t)||Pr&&t instanceof Pr)return!0;var e="length"in Object(t)&&t.length;return M(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function o(t,e,n){var r,a;if(t)if(k(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else if(Kr(t)||i(t)){var s="object"!=typeof t;for(r=0,a=t.length;r<a;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==o)t.forEach(e,n,t);else if(C(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)Nr.call(t,r)&&e.call(n,t[r],r,t);return t}function a(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function s(t){return function(e,n){t(n,e)}}function c(){return++Wr}function l(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function u(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(E(a)||k(a))for(var s=Object.keys(a),c=0,d=s.length;c<d;c++){var m=s[c],p=a[m];n&&E(p)?A(p)?t[m]=new Date(p.valueOf()):x(p)?t[m]=new RegExp(p):p.nodeName?t[m]=p.cloneNode(!0):H(p)?t[m]=p.clone():(E(t[m])||(t[m]=Kr(p)?[]:{}),u(t[m],[p],!0)):t[m]=p}}return l(t,r),t}function d(t){return u(t,jr.call(arguments,1),!1)}function m(t){return u(t,jr.call(arguments,1),!0)}function p(t){return parseInt(t,10)}function h(t,e){return d(Object.create(t),e)}function f(){}function g(t){return t}function v(t){return function(){return t}}function $(t){return k(t.toString)&&t.toString!==Br}function b(t){return void 0===t}function y(t){return void 0!==t}function E(t){return null!==t&&"object"==typeof t}function C(t){return null!==t&&"object"==typeof t&&!qr(t)}function w(t){return"string"==typeof t}function M(t){return"number"==typeof t}function A(t){return"[object Date]"===Br.call(t)}function k(t){return"function"==typeof t}function x(t){return"[object RegExp]"===Br.call(t)}function T(t){return t&&t.window===t}function _(t){return t&&t.$evalAsync&&t.$watch}function S(t){return"[object File]"===Br.call(t)}function N(t){return"[object FormData]"===Br.call(t)}function O(t){return"[object Blob]"===Br.call(t)}function I(t){return"boolean"==typeof t}function D(t){return t&&k(t.then)}function R(t){return t&&M(t.length)&&Gr.test(Br.call(t))}function P(t){return"[object ArrayBuffer]"===Br.call(t)}function H(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function L(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function j(t){return Ir(t.nodeName||t[0]&&t[0].nodeName)}function F(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function V(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function B(t,e,n){function i(t,e,n){if(--n<0)return"...";var r,i=e.$$hashKey;if(Kr(t))for(var o=0,s=t.length;o<s;o++)e.push(a(t[o],n));else if(C(t))for(r in t)e[r]=a(t[r],n);else if(t&&"function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(e[r]=a(t[r],n));else for(r in t)Nr.call(t,r)&&(e[r]=a(t[r],n));return l(e,i),e}function a(t,e){if(!E(t))return t;var n=c.indexOf(t);if(-1!==n)return u[n];if(T(t)||_(t))throw Ur("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=s(t);return void 0===o&&(o=Kr(t)?[]:Object.create(qr(t)),r=!0),c.push(t),u.push(o),r?i(t,o,e):o}function s(t){switch(Br.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(a(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(k(t.cloneNode))return t.cloneNode(!0)}var c=[],u=[];if(n=r(n)?n:NaN,e){if(R(e)||P(e))throw Ur("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Ur("cpi","Can't copy! Source and destination are identical.");return Kr(e)?e.length=0:o(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),c.push(t),u.push(e),i(t,e,n)}return a(t,n)}function q(t,e){return t===e||t!==t&&e!==e}function U(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,o=typeof t;if(o===typeof e&&"object"===o){if(!Kr(t)){if(A(t))return!!A(e)&&q(t.getTime(),e.getTime());if(x(t))return!!x(e)&&t.toString()===e.toString();if(_(t)||_(e)||T(t)||T(e)||Kr(e)||A(e)||x(e))return!1;i=vt();for(r in t)if("$"!==r.charAt(0)&&!k(t[r])){if(!U(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&y(e[r])&&!k(e[r]))return!1;return!0}if(!Kr(e))return!1;if((n=t.length)===e.length){for(r=0;r<n;r++)if(!U(t[r],e[r]))return!1;return!0}}return!1}function z(t,e,n){return t.concat(jr.call(e,n))}function W(t,e){return jr.call(t,e||0)}function Y(t,e){var n=arguments.length>2?W(arguments,2):[];return!k(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,z(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function K(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:T(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":_(n)&&(r="$SCOPE"),r}function G(t,e){if(!b(t))return M(e)||(e=e?2:null),JSON.stringify(t,K,e)}function X(t){return w(t)?JSON.parse(t):t}function J(t,e){t=t.replace(ti,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return Yr(n)?e:n}function Q(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function Z(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return Q(t,n*(J(e,r)-r))}function tt(t){t=Pr(t).clone();try{t.empty()}catch(t){}var e=Pr("<div>").append(t).html();try{return t[0].nodeType===ai?Ir(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(t,e){return"<"+Ir(e)})}catch(t){return Ir(e)}}function et(t){try{return decodeURIComponent(t)}catch(t){}}function nt(t){var e={};return o((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(r=t.substring(0,n),i=t.substring(n+1)),y(r=et(r))&&(i=!y(i)||et(i),Nr.call(e,r)?Kr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function rt(t){var e=[];return o(t,function(t,n){Kr(t)?o(t,function(t){e.push(ot(n,!0)+(!0===t?"":"="+ot(t,!0)))}):e.push(ot(n,!0)+(!0===t?"":"="+ot(t,!0)))}),e.length?e.join("&"):""}function it(t){return ot(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ot(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function at(t,e){var n,r,i=ei.length;for(r=0;r<i;++r)if(n=ei[r]+e,w(n=t.getAttribute(n)))return n;return null}function st(e,n){var r,i,a={};if(o(ei,function(t){var n=t+"app";!r&&e.hasAttribute&&e.hasAttribute(n)&&(r=e,i=e.getAttribute(n))}),o(ei,function(t){var n,o=t+"app";!r&&(n=e.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))}),r){if(!ni)return void t.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==at(r,"strict-di"),n(r,i?[i]:[],a)}}function ct(e,n,r){E(r)||(r={}),r=d({strictDi:!1},r);var i=function(){if((e=Pr(e)).injector()){var i=e[0]===t.document?"document":tt(e);throw Ur("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"<").replace(/>/,">"))}(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=ae(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(t&&a.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(a,"")),t&&!s.test(t.name))return i();t.name=t.name.replace(s,""),zr.resumeBootstrap=function(t){return o(t,function(t){n.push(t)}),i()},k(zr.resumeDeferredBootstrap)&&zr.resumeDeferredBootstrap()}function lt(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ut(t){var e=zr.element(t).injector();if(!e)throw Ur("test","no injector found for element argument to getTestability");return e.get("$$testability")}function dt(t,e){return e=e||"_",t.replace(ri,function(t,n){return(n?e:"")+t.toLowerCase()})}function mt(t,e,n){if(!t)throw Ur("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function pt(t,e,n){return n&&Kr(t)&&(t=t[t.length-1]),mt(k(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ht(t,e){if("hasOwnProperty"===t)throw Ur("badname","hasOwnProperty is not a valid {0} name",e)}function ft(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,a=i.length,s=0;s<a;s++)r=i[s],t&&(t=(o=t)[r]);return!n&&k(t)?Y(o,t):t}function gt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=Pr(jr.call(t,0,i))),e.push(n));return e||t}function vt(){return Object.create(null)}function $t(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=!$(t)||Kr(t)||A(t)?G(t):t.toString()}return t}function bt(t){function n(t,e,n){return t[e]||(t[e]=n())}var r=e("$injector"),i=e("ng"),o=n(t,"angular",Object);return o.$$minErr=o.$$minErr||e,n(o,"module",function(){var t={};return function(e,o,a){var s={};return function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)}(e,"module"),o&&t.hasOwnProperty(e)&&(t[e]=null),n(t,e,function(){function t(t,e,n,r){return r||(r=c),function(){return r[n||"push"]([t,e,arguments]),m}}function n(t,n,r){return r||(r=c),function(i,o){return o&&k(o)&&(o.$$moduleName=e),r.push([t,n,arguments]),m}}if(!o)throw r("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.",e);var c=[],l=[],u=[],d=t("$injector","invoke","push",l),m={_invokeQueue:c,_configBlocks:l,_runBlocks:u,info:function(t){if(y(t)){if(!E(t))throw i("aobj","Argument '{0}' must be an object","value");return s=t,this}return s},requires:o,name:e,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator",l),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:d,run:function(t){return u.push(t),this}};return a&&d(a),m})}})}function yt(t,e){if(Kr(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(E(t)){e=e||{};for(var i in t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i])}return e||t}function Et(t,e){var n=[];return r(e)&&(t=B(t,null,e)),JSON.stringify(t,function(t,e){if(e=K(t,e),E(e)){if(n.indexOf(e)>=0)return"...";n.push(e)}return e})}function Ct(t,e){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):b(t)?"undefined":"string"!=typeof t?Et(t,e):t}function wt(){return++mi}function Mt(t){return kt(t.replace(hi,"ms-"))}function At(t,e){return e.toUpperCase()}function kt(t){return t.replace(pi,At)}function xt(t){return!$i.test(t)}function Tt(t){var e=t.nodeType;return e===oi||!e||e===ci}function _t(t,e){var n,r,i,a,s=e.createDocumentFragment(),c=[];if(xt(t))c.push(e.createTextNode(t));else{for(n=s.appendChild(e.createElement("div")),r=(bi.exec(t)||["",""])[1].toLowerCase(),i=Ei[r]||Ei._default,n.innerHTML=i[1]+t.replace(yi,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;c=z(c,n.childNodes),(n=s.firstChild).textContent=""}return s.textContent="",s.innerHTML="",o(c,function(t){s.appendChild(t)}),s}function St(e,n){n=n||t.document;var r;return(r=vi.exec(e))?[n.createElement(r[1])]:(r=_t(e,n))?r.childNodes:[]}function Nt(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function Ot(t){if(t instanceof Ot)return t;var e;if(w(t)&&(t=Xr(t),e=!0),!(this instanceof Ot)){if(e&&"<"!==t.charAt(0))throw gi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Ot(t)}e?Bt(this,St(t)):k(t)?Kt(t):Bt(this,t)}function It(t){return t.cloneNode(!0)}function Dt(t,e){!e&&Tt(t)&&Pr.cleanData([t]),t.querySelectorAll&&Pr.cleanData(t.querySelectorAll("*"))}function Rt(t,e,n,r){if(y(r))throw gi("offargs","jqLite#off() does not support the `selector` argument");var i=Ht(t),a=i&&i.events,s=i&&i.handle;if(s)if(e){var c=function(e){var r=a[e];y(n)&&V(r||[],n),y(n)&&r&&r.length>0||(t.removeEventListener(e,s),delete a[e])};o(e.split(" "),function(t){c(t),fi[t]&&c(fi[t])})}else for(e in a)"$destroy"!==e&&t.removeEventListener(e,s),delete a[e]}function Pt(t,e){var n=t.ng339,r=n&&di[n];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Rt(t)),delete di[n],t.ng339=void 0}}function Ht(t,e){var n=t.ng339,r=n&&di[n];return e&&!r&&(t.ng339=n=wt(),r=di[n]={events:{},data:{},handle:void 0}),r}function Lt(t,e,n){if(Tt(t)){var r,i=y(n),o=!i&&e&&!E(e),a=!e,s=Ht(t,!o),c=s&&s.data;if(i)c[kt(e)]=n;else{if(a)return c;if(o)return c&&c[kt(e)];for(r in e)c[kt(r)]=e[r]}}}function jt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Ft(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",Xr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Xr(e)+" "," ")))})}function Vt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=Xr(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",Xr(n))}}function Bt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function qt(t,e){return Ut(t,"$"+(e||"ngController")+"Controller")}function Ut(t,e,n){t.nodeType===ci&&(t=t.documentElement);for(var r=Kr(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(y(n=Pr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===li&&t.host}}function zt(t){for(Dt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Wt(t,e){e||Dt(t);var n=t.parentNode;n&&n.removeChild(t)}function Yt(e,n){"complete"===(n=n||t).document.readyState?n.setTimeout(e):Pr(n).on("load",e)}function Kt(e){function n(){t.document.removeEventListener("DOMContentLoaded",n),t.removeEventListener("load",n),e()}"complete"===t.document.readyState?t.setTimeout(e):(t.document.addEventListener("DOMContentLoaded",n),t.addEventListener("load",n))}function Gt(t,e){var n=Mi[e.toLowerCase()];return n&&Ai[j(t)]&&n}function Xt(t){return ki[t]}function Jt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(b(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||Qt;o>1&&(i=yt(i));for(var c=0;c<o;c++)n.isImmediatePropagationStopped()||s(t,n,i[c])}};return n.elem=t,n}function Qt(t,e,n){n.call(t,e)}function Zt(t,e,n){var r=e.relatedTarget;r&&(r===t||Ci.call(t,r))||n.call(t,e)}function te(){this.$get=function(){return d(Ot,{hasClass:function(t,e){return t.attr&&(t=t[0]),jt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Vt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Ft(t,e)}})}}function ee(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"===r||"object"===r&&null!==t?t.$$hashKey=r+":"+(e||c)():r+":"+t}function ne(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function re(t){return Function.prototype.toString.call(t)}function ie(t){var e=re(t).replace(Di,"");return e.match(Si)||e.match(Ni)}function oe(t){var e=ie(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ae(t,e){function n(t){return function(e,n){if(!E(e))return t(e,n);o(e,s(t))}}function r(t,e){if(ht(t,"service"),(k(e)||Kr(e))&&(e=f.instantiate(e)),!e.$get)throw Ri("pget","Provider '{0}' must define $get factory method.",t);return h[t+d]=e}function i(t,e){return function(){var n=y.invoke(e,this);if(b(n))throw Ri("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function a(t,e,n){return r(t,{$get:!1!==n?i(t,e):e})}function c(t){mt(b(t)||Kr(t),"modulesToLoad","not an array");var e,n=[];return o(t,function(t){function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=f.get(r[0]);i[r[1]].apply(i,r[2])}}if(!p.get(t)){p.set(t,!0);try{w(t)?(e=Lr(t),y.modules[t]=e,n=n.concat(c(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):k(t)?n.push(f.invoke(t)):Kr(t)?n.push(f.invoke(t)):pt(t,"module")}catch(e){throw Kr(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ri("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}}),n}function l(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===u)throw Ri("cdep","Circular dependency found: {0}",e+" <- "+m.join(" <- "));return t[e]}try{return m.unshift(e),t[e]=u,t[e]=n(e,r),t[e]}catch(n){throw t[e]===u&&delete t[e],n}finally{m.shift()}}function i(t,n,i){for(var o=[],a=ae.$$annotate(t,e,i),s=0,c=a.length;s<c;s++){var l=a[s];if("string"!=typeof l)throw Ri("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(t){if(Rr||"function"!=typeof t)return!1;var e=t.$$ngIsClass;return I(e)||(e=t.$$ngIsClass=/^(?:class\b|constructor\()/.test(re(t))),e}return{invoke:function(t,e,n,r){"string"==typeof n&&(r=n,n=null);var a=i(t,n,r);return Kr(t)&&(t=t[t.length-1]),o(t)?(a.unshift(null),new(Function.prototype.bind.apply(t,a))):t.apply(e,a)},instantiate:function(t,e,n){var r=Kr(t)?t[t.length-1]:t,o=i(t,e,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))},get:r,annotate:ae.$$annotate,has:function(e){return h.hasOwnProperty(e+d)||t.hasOwnProperty(e)}}}e=!0===e;var u={},d="Provider",m=[],p=new Ti,h={$provide:{provider:n(r),factory:n(a),service:n(function(t,e){return a(t,["$injector",function(t){return t.instantiate(e)}])}),value:n(function(t,e){return a(t,v(e),!1)}),constant:n(function(t,e){ht(t,"constant"),h[t]=e,g[t]=e}),decorator:function(t,e){var n=f.get(t+d),r=n.$get;n.$get=function(){var t=y.invoke(r,n);return y.invoke(e,null,{$delegate:t})}}}},f=h.$injector=l(h,function(t,e){throw zr.isString(e)&&m.push(e),Ri("unpr","Unknown provider: {0}",m.join(" <- "))}),g={},$=l(g,function(t,e){var n=f.get(t+d,e);return y.invoke(n.$get,n,void 0,t)}),y=$;h["$injector"+d]={$get:v($)},y.modules=f.modules=vt();var C=c(t);return y=$.get("$injector"),y.strictDi=e,o(C,function(t){t&&y.invoke(t)}),y}function se(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){if("a"===j(t))return e=t,!0}),e}function o(){var t=s.yOffset;if(k(t))t=t();else if(H(t)){var n=t[0];t="fixed"!==e.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom}else M(t)||(t=0);return t}function a(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function s(t){var e;(t=w(t)?t:M(t)?t.toString():n.hash())?(e=c.getElementById(t))?a(e):(e=i(c.getElementsByName(t)))?a(e):"top"===t&&a(null):a(null)}var c=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){t===e&&""===t||Yt(function(){r.$evalAsync(s)})}),s}]}function ce(t,e){return t||e?t?e?(Kr(t)&&(t=t.join(" ")),Kr(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function le(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===Hi)return n}}function ue(t){w(t)&&(t=t.split(" "));var e=vt();return o(t,function(t){t.length&&(e[t]=!0)}),e}function de(t){return E(t)?t:{}}function me(t,e,n,r){function i(t){try{t.apply(null,W(arguments,1))}finally{if(0==--v)for(;$.length;)try{$.pop()()}catch(t){n.error(t)}}}function a(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}function s(){M=null,l()}function c(){y=A(),U(y=b(y)?null:y,T)&&(y=T),T=y,E=y}function l(){var t=E;c(),C===u.url()&&t===y||(C=u.url(),E=y,o(k,function(t){t(u.url(),y)}))}var u=this,d=t.location,m=t.history,p=t.setTimeout,h=t.clearTimeout,g={};u.isMock=!1;var v=0,$=[];u.$$completeOutstandingRequest=i,u.$$incOutstandingRequestCount=function(){v++},u.notifyWhenNoOutstandingRequests=function(t){0===v?t():$.push(t)};var y,E,C=d.href,w=e.find("base"),M=null,A=r.history?function(){try{return m.state}catch(t){}}:f;c(),u.url=function(e,n,i){if(b(i)&&(i=null),d!==t.location&&(d=t.location),m!==t.history&&(m=t.history),e){var o=E===i;if(C===e&&(!r.history||o))return u;var s=C&&We(C)===We(e);return C=e,E=i,!r.history||s&&o?(s||(M=e),n?d.replace(e):s?d.hash=a(e):d.href=e,d.href!==e&&(M=e)):(m[n?"replaceState":"pushState"](i,"",e),c()),M&&(M=e),u}return M||d.href.replace(/%27/g,"'")},u.state=function(){return y};var k=[],x=!1,T=null;u.onUrlChange=function(e){return x||(r.history&&Pr(t).on("popstate",s),Pr(t).on("hashchange",s),x=!0),k.push(e),e},u.$$applicationDestroyed=function(){Pr(t).off("hashchange popstate",s)},u.$$checkUrlChange=l,u.baseHref=function(){var t=w.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},u.defer=function(t,e){var n;return v++,n=p(function(){delete g[n],i(t)},e||0),g[n]=!0,n},u.defer.cancel=function(t){return!!g[t]&&(delete g[t],h(t),i(f),!0)}}function pe(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new me(t,r,e,n)}]}function he(){this.$get=function(){function t(t,r){function i(t){t!==m&&(p?p===t&&(p=t.n):p=t,o(t.n,t.p),o(t,m),(m=t).n=null)}function o(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}if(t in n)throw e("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var a=0,s=d({},r,{id:t}),c=vt(),l=r&&r.capacity||Number.MAX_VALUE,u=vt(),m=null,p=null;return n[t]={put:function(t,e){if(!b(e))return l<Number.MAX_VALUE&&i(u[t]||(u[t]={key:t})),t in c||a++,c[t]=e,a>l&&this.remove(p.key),e},get:function(t){if(l<Number.MAX_VALUE){var e=u[t];if(!e)return;i(e)}return c[t]},remove:function(t){if(l<Number.MAX_VALUE){var e=u[t];if(!e)return;e===m&&(m=e.p),e===p&&(p=e.n),o(e.n,e.p),delete u[t]}t in c&&(delete c[t],a--)},removeAll:function(){c=vt(),a=0,u=vt(),m=p=null},destroy:function(){c=null,s=null,u=null,delete n[t]},info:function(){return d({},s,{size:a})}}}var n={};return t.info=function(){var t={};return o(n,function(e,n){t[n]=e.info()}),t},t.get=function(t){return n[t]},t}}function fe(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function ge(e,n){function r(t,e,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,i=vt();return o(t,function(t,o){if(t in x)i[o]=x[t];else{var a=t.match(r);if(!a)throw Ui("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,o,t,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]&&(x[t]=i[o])}}),i}function i(t,e){var n={isolateScope:null,bindToController:null};if(E(t.scope)&&(!0===t.bindToController?(n.bindToController=r(t.scope,e,!0),n.isolateScope={}):n.isolateScope=r(t.scope,e,!1)),E(t.bindToController)&&(n.bindToController=r(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw Ui("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}function a(t){var e=t.charAt(0);if(!e||e!==Ir(e))throw Ui("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Ui("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}function c(t){var e=t.require||t.controller&&t.name;return!Kr(e)&&E(e)&&o(e,function(t,n){var r=t.match(M);t.substring(r[0].length)||(e[n]=r[0]+n)}),e}function l(t,e){if(t&&(!w(t)||!/[EACM]/.test(t)))throw Ui("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}var u={},m="Directive",p=/^\s*directive:\s*([\w-]+)\s+(.*)$/,$=/(([\w-]+)(?::([^;]+))?;?)/,C=L("ngSrc,ngSrcset,src,srcset"),M=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,A=/^(on[a-z]+|formaction)$/,x=vt();this.directive=function t(n,r){return mt(n,"name"),ht(n,"directive"),w(n)?(a(n),mt(r,"directiveFactory"),u.hasOwnProperty(n)||(u[n]=[],e.factory(n+m,["$injector","$exceptionHandler",function(t,e){var r=[];return o(u[n],function(i,o){try{var a=t.invoke(i);k(a)?a={compile:v(a)}:!a.compile&&a.link&&(a.compile=v(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=c(a),a.restrict=l(a.restrict,n),a.$$moduleName=i.$$moduleName,r.push(a)}catch(t){e(t)}}),r}])),u[n].push(r)):o(n,s(t)),this},this.component=function(t,e){function n(t){function n(e){return k(e)||Kr(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var i=e.template||e.templateUrl?e.template:"",a={controller:r,controllerAs:Ee(e.controller)||e.controllerAs||"$ctrl",template:n(i),templateUrl:n(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return o(e,function(t,e){"$"===e.charAt(0)&&(a[e]=t)}),a}var r=e.controller||function(){};return o(e,function(t,e){"$"===e.charAt(0)&&(n[e]=t,k(r)&&(r[e]=t))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(t){return y(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var T=!0;this.debugInfoEnabled=function(t){return y(t)?(T=t,this):T};var S=!1;this.preAssignBindingsEnabled=function(t){return y(t)?(S=t,this):S};var N=10;this.onChangesTtl=function(t){return arguments.length?(N=t,this):N};var O=!0;this.commentDirectivesEnabled=function(t){return arguments.length?(O=t,this):O};var D=!0;this.cssClassDirectivesEnabled=function(t){return arguments.length?(D=t,this):D},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,n,r,a,s,c,l,v,x,R){function P(){try{if(!--St)throw Mt=void 0,Ui("infchng","{0} $onChanges() iterations reached. Aborting!\n",N);l.$apply(function(){for(var t=[],e=0,n=Mt.length;e<n;++e)try{Mt[e]()}catch(e){t.push(e)}if(Mt=void 0,t.length)throw t})}finally{St++}}function H(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=e[i]}else this.$attr={};this.$$element=t}function L(t,e,n){kt.innerHTML="<span "+e+">";var r=kt.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}function F(t,e){try{t.addClass(e)}catch(t){}}function B(t,e,n,r,i){t instanceof Pr||(t=Pr(t));var o=K(t,e,t,n,r,i);B.$$addScopeClass(t);var a=null;return function(e,n,r){if(!t)throw Ui("multilink","This element has already been linked.");mt(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new());var s=(r=r||{}).parentBoundTranscludeFn,c=r.transcludeControllers,l=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=z(l));var u;if(u="html"!==a?Pr(gt(a,Pr("<div>").append(t).html())):n?wi.clone.call(t):t,c)for(var d in c)u.data("$"+d+"Controller",c[d].instance);return B.$$addScopeInfo(u,e),n&&n(u,e),o&&o(e,u,u,s),n||(t=o=null),u}}function z(t){var e=t&&t[0];return e&&"foreignobject"!==j(e)&&Br.call(e).match(/SVG/)?"svg":"html"}function K(t,e,n,r,i,o){for(var a,s,c,l,u,d,m,p=[],h=Kr(t)||t instanceof Pr,f=0;f<t.length;f++)a=new H,11===Rr&&G(t,f,h),(c=(s=J(t[f],[],a,0===f?r:void 0,i)).length?rt(s,t[f],a,e,n,null,[],[],o):null)&&c.scope&&B.$$addScopeClass(a.$$element),u=c&&c.terminal||!(l=t[f].childNodes)||!l.length?null:K(l,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:e),(c||u)&&(p.push(f,c,u),d=!0,m=m||c),o=null;return d?function(t,n,r,i){var o,a,s,c,l,u,d,h;if(m){var f=n.length;for(h=new Array(f),l=0;l<p.length;l+=3)h[d=p[l]]=n[d]}else h=n;for(l=0,u=p.length;l<u;)s=h[p[l++]],o=p[l++],a=p[l++],o?(o.scope?(c=t.$new(),B.$$addScopeInfo(Pr(s),c)):c=t,o(a,c,s,r,o.transcludeOnThisElement?X(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?X(t,e):null)):a&&a(t,s.childNodes,void 0,i)}:null}function G(t,e,n){var r,i=t[e],o=i.parentNode;if(i.nodeType===ai)for(;;){if(!(r=o?i.nextSibling:t[e+1])||r.nodeType!==ai)break;i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===t[e+1]&&t.splice(e+1,1)}}function X(t,e,n){function r(r,i,o,a,s){return r||((r=t.$new(!1,s)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=vt();for(var o in e.$$slots)e.$$slots[o]?i[o]=X(t,e.$$slots[o],n):i[o]=null;return r}function J(t,e,n,r,i){var o,a,s,c=t.nodeType,l=n.$attr;switch(c){case oi:st(e,$e(a=j(t)),"E",r,i);for(var u,d,m,p,h,f,g=t.attributes,v=0,b=g&&g.length;v<b;v++){var y=!1,C=!1;d=(u=g[v]).name,h=u.value,p=$e(d),(f=Rt.test(p))&&(d=d.replace(Wi,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var M=p.match(Pt);M&&ct(M[1])&&(y=d,C=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),l[m=$e(d.toLowerCase())]=d,!f&&n.hasOwnProperty(m)||(n[m]=h,Gt(t,m)&&(n[m]=!0)),bt(t,e,h,m,f),st(e,m,"A",r,i,y,C)}if("input"===a&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),!_t)break;if(s=t.className,E(s)&&(s=s.animVal),w(s)&&""!==s)for(;o=$.exec(s);)st(e,m=$e(o[2]),"C",r,i)&&(n[m]=Xr(o[3])),s=s.substr(o.index+o[0].length);break;case ai:ft(e,t.nodeValue);break;case si:if(!Tt)break;Q(t,e,n,r,i)}return e.sort(pt),e}function Q(t,e,n,r,i){try{var o=p.exec(t.nodeValue);if(o){var a=$e(o[1]);st(e,a,"M",r,i)&&(n[a]=Xr(o[2]))}}catch(t){}}function Z(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw Ui("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType===oi&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return Pr(r)}function et(t,e,n){return function(r,i,o,a,s){return i=Z(i[0],e,n),t(r,i,o,a,s)}}function nt(t,e,n,r,i,o){var a;return t?B(e,n,r,i,o):function(){return a||(a=B(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function rt(t,e,n,i,a,s,c,l,u){function m(t,e,n,r){t&&(n&&(t=et(t,n,r)),t.require=h.require,t.directiveName=f,(M===h||h.$$isolateScope)&&(t=Et(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=et(e,n,r)),e.require=h.require,e.directiveName=f,(M===h||h.$$isolateScope)&&(e=Et(e,{isolateScope:!0})),l.push(e))}function p(t,i,a,s,u){var m,p,h,f,g,v,$,y,x,T;e===a?(x=n,y=n.$$element):x=new H(y=Pr(a),n),g=i,M?f=i.$new(!0):C&&(g=i.$parent),u&&(($=function(t,e,n,r){var i;if(_(t)||(r=n,n=e,e=t,t=void 0),O&&(i=v),n||(n=O?y.parent():y),!r)return u(t,e,i,n,L);var o=u.$$slots[r];if(o)return o(t,e,i,n,L);if(b(o))throw Ui("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,tt(y))}).$$boundTransclude=u,$.isSlotFilled=function(t){return!!u.$$slots[t]}),w&&(v=ot(y,x,$,w,f,i,M)),M&&(B.$$addScopeInfo(y,f,!0,!(A&&(A===M||A===M.$$originalDirective))),B.$$addScopeClass(y,!0),f.$$isolateBindings=M.$$isolateBindings,(T=wt(i,x,f,f.$$isolateBindings,M)).removeWatches&&f.$on("$destroy",T.removeWatches));for(var N in v){var I=w[N],D=v[N],R=I.$$bindings.bindToController;if(S){D.bindingInfo=R?wt(g,x,D.instance,R,I):{};var P=D();P!==D.instance&&(D.instance=P,y.data("$"+I.name+"Controller",P),D.bindingInfo.removeWatches&&D.bindingInfo.removeWatches(),D.bindingInfo=wt(g,x,D.instance,R,I))}else D.instance=D(),y.data("$"+I.name+"Controller",D.instance),D.bindingInfo=wt(g,x,D.instance,R,I)}for(o(w,function(t,e){var n=t.require;t.bindToController&&!Kr(n)&&E(n)&&d(v[e].instance,it(e,n,y,v))}),o(v,function(t){var e=t.instance;if(k(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){r(t)}if(k(e.$onInit))try{e.$onInit()}catch(t){r(t)}k(e.$doCheck)&&(g.$watch(function(){e.$doCheck()}),e.$doCheck()),k(e.$onDestroy)&&g.$on("$destroy",function(){e.$onDestroy()})}),m=0,p=c.length;m<p;m++)Ct(h=c[m],h.isolateScope?f:i,y,x,h.require&&it(h.directiveName,h.require,y,v),$);var L=i;for(M&&(M.template||null===M.templateUrl)&&(L=f),t&&t(L,a.childNodes,void 0,u),m=l.length-1;m>=0;m--)Ct(h=l[m],h.isolateScope?f:i,y,x,h.require&&it(h.directiveName,h.require,y,v),$);o(v,function(t){var e=t.instance;k(e.$postLink)&&e.$postLink()})}u=u||{};for(var h,f,g,v,$,y=-Number.MAX_VALUE,C=u.newScopeDirective,w=u.controllerDirectives,M=u.newIsolateScopeDirective,A=u.templateDirective,x=u.nonTlbTranscludeDirective,T=!1,N=!1,O=u.hasElementTranscludeDirective,I=n.$$element=Pr(e),D=s,R=i,P=!1,L=!1,F=0,V=t.length;F<V;F++){var q=(h=t[F]).$$start,U=h.$$end;if(q&&(I=Z(e,q,U)),g=void 0,y>h.priority)break;if(($=h.scope)&&(h.templateUrl||(E($)?(ht("new/isolated scope",M||C,h,I),M=h):ht("new/isolated scope",M,h,I)),C=C||h),f=h.name,!P&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var z,K=F+1;z=t[K++];)if(z.transclude&&!z.$$tlb||z.replace&&(z.templateUrl||z.template)){L=!0;break}P=!0}if(!h.templateUrl&&h.controller&&(w=w||vt(),ht("'"+f+"' controller",w[f],h,I),w[f]=h),$=h.transclude)if(T=!0,h.$$tlb||(ht("transclusion",x,h,I),x=h),"element"===$)O=!0,y=h.priority,g=I,I=n.$$element=Pr(B.$$createComment(f,n[f])),e=I[0],yt(a,W(g),e),g[0].$$parentNode=g[0].parentNode,R=nt(L,g,i,y,D&&D.name,{nonTlbTranscludeDirective:x});else{var G=vt();if(E($)){g=[];var X=vt(),Q=vt();o($,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,X[t]=e,G[e]=null,Q[e]=n}),o(I.contents(),function(t){var e=X[$e(j(t))];e?(Q[e]=!0,G[e]=G[e]||[],G[e].push(t)):g.push(t)}),o(Q,function(t,e){if(!t)throw Ui("reqslot","Required transclusion slot `{0}` was not filled.",e)});for(var rt in G)G[rt]&&(G[rt]=nt(L,G[rt],i))}else g=Pr(It(e)).contents();I.empty(),(R=nt(L,g,i,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope})).$$slots=G}if(h.template)if(N=!0,ht("template",A,h,I),A=h,$=k(h.template)?h.template(I,n):h.template,$=Dt($),h.replace){if(D=h,g=xt($)?[]:ye(gt(h.templateNamespace,Xr($))),e=g[0],1!==g.length||e.nodeType!==oi)throw Ui("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f,"");yt(a,I,e);var st={$attr:{}},ct=J(e,[],st),dt=t.splice(F+1,t.length-(F+1));(M||C)&&at(ct,M,C),t=t.concat(ct).concat(dt),lt(n,st),V=t.length}else I.html($);if(h.templateUrl)N=!0,ht("template",A,h,I),A=h,h.replace&&(D=h),p=ut(t.splice(F,t.length-F),I,n,a,T&&R,c,l,{controllerDirectives:w,newScopeDirective:C!==h&&C,newIsolateScopeDirective:M,templateDirective:A,nonTlbTranscludeDirective:x}),V=t.length;else if(h.compile)try{v=h.compile(I,n,R);var mt=h.$$originalDirective||h;k(v)?m(null,Y(mt,v),q,U):v&&m(Y(mt,v.pre),Y(mt,v.post),q,U)}catch(t){r(t,tt(I))}h.terminal&&(p.terminal=!0,y=Math.max(y,h.priority))}return p.scope=C&&!0===C.scope,p.transcludeOnThisElement=T,p.templateOnThisElement=N,p.transclude=R,u.hasElementTranscludeDirective=O,p}function it(t,e,n,r){var i;if(w(e)){var a=e.match(M),s=e.substring(a[0].length),c=a[1]||a[3],l="?"===a[2];if("^^"===c?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var u="$"+s+"Controller";i=c?n.inheritedData(u):n.data(u)}if(!i&&!l)throw Ui("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(Kr(e)){i=[];for(var d=0,m=e.length;d<m;d++)i[d]=it(t,e[d],n,r)}else E(e)&&(i={},o(e,function(e,o){i[o]=it(t,e,n,r)}));return i||null}function ot(t,e,n,r,i,o,a){var s=vt();for(var l in r){var u=r[l],d={$scope:u===a||u.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},m=u.controller;"@"===m&&(m=e[u.name]);var p=c(m,d,!0,u.controllerAs);s[u.name]=p,t.data("$"+u.name+"Controller",p.instance)}return s}function at(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=h(t[r],{$$isolateScope:e,$$newScope:n})}function st(t,n,r,o,a,s,c){if(n===a)return null;var l=null;if(u.hasOwnProperty(n))for(var d,p=e.get(n+m),f=0,g=p.length;f<g;f++)if(d=p[f],(b(o)||o>d.priority)&&-1!==d.restrict.indexOf(r)){if(s&&(d=h(d,{$$start:s,$$end:c})),!d.$$bindings){var v=d.$$bindings=i(d,d.name);E(v.isolateScope)&&(d.$$isolateBindings=v.isolateScope)}t.push(d),l=d}return l}function ct(t){if(u.hasOwnProperty(t))for(var n=e.get(t+m),r=0,i=n.length;r<i;r++)if(n[r].multiElement)return!0;return!1}function lt(t,e){var n=e.$attr,r=t.$attr;o(t,function(r,i){"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))}),o(e,function(e,i){t.hasOwnProperty(i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function ut(t,e,n,i,s,c,l,u){var d,m,p=[],f=e[0],g=t.shift(),v=h(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),$=k(g.templateUrl)?g.templateUrl(e,n):g.templateUrl,b=g.templateNamespace;return e.empty(),a($).then(function(r){var a,h,y,C;if(r=Dt(r),g.replace){if(y=xt(r)?[]:ye(gt(b,Xr(r))),a=y[0],1!==y.length||a.nodeType!==oi)throw Ui("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,$);h={$attr:{}},yt(i,e,a);var w=J(a,[],h);E(g.scope)&&at(w,!0),t=w.concat(t),lt(n,h)}else a=f,e.html(r);for(t.unshift(v),d=rt(t,a,n,s,e,g,c,l,u),o(i,function(t,n){t===a&&(i[n]=e[0])}),m=K(e[0].childNodes,s);p.length;){var M=p.shift(),A=p.shift(),k=p.shift(),x=p.shift(),T=e[0];if(!M.$$destroyed){if(A!==f){var _=A.className;u.hasElementTranscludeDirective&&g.replace||(T=It(a)),yt(k,Pr(A),T),F(Pr(T),_)}C=d.transcludeOnThisElement?X(M,d.transclude,x):x,d(m,M,T,i,C)}}p=null}).catch(function(t){t instanceof Error&&r(t)}),function(t,e,n,r,i){var o=i;e.$$destroyed||(p?p.push(e,n,r,o):(d.transcludeOnThisElement&&(o=X(e,d.transclude,i)),d(m,e,n,r,o)))}}function pt(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function ht(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Ui("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,tt(r))}function ft(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&B.$$addBindingClass(e),function(t,e){var i=e.parent();n||B.$$addBindingClass(i),B.$$addBindingInfo(i,r.expressions),t.$watch(r,function(t){e[0].nodeValue=t})}}})}function gt(e,n){switch(e=Ir(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function $t(t,e){if("srcdoc"===e)return v.HTML;var n=j(t);if("src"===e||"ngSrc"===e){if(-1===["img","video","audio","source","track"].indexOf(n))return v.RESOURCE_URL}else if("xlinkHref"===e||"form"===n&&"action"===e||"link"===n&&"href"===e)return v.RESOURCE_URL}function bt(t,e,r,i,o){var a=$t(t,i),s=!o,c=C[i]||o,l=n(r,s,a,c);if(l){if("multiple"===i&&"select"===j(t))throw Ui("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",tt(t));if(A.test(i))throw Ui("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");e.push({priority:100,compile:function(){return{pre:function(t,e,o){var s=o.$$observers||(o.$$observers=vt()),u=o[i];u!==r&&(l=u&&n(u,!0,a,c),r=u),l&&(o[i]=l(t),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||t).$watch(l,function(t,e){"class"===i&&t!==e?o.$updateClass(t,e):o.$set(i,t)}))}}}})}}function yt(e,n,r){var i,o,a=n[0],s=n.length,c=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]===a){e[i++]=r;for(var l=i,u=l+s-1,d=e.length;l<d;l++,u++)u<d?e[l]=e[u]:delete e[l];e.length-=s-1,e.context===a&&(e.context=r);break}c&&c.replaceChild(r,a);var m=t.document.createDocumentFragment();for(i=0;i<s;i++)m.appendChild(n[i]);for(Pr.hasData(a)&&(Pr.data(r,Pr.data(a)),Pr(a).off("$destroy")),Pr.cleanData(m.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function Et(t,e){return d(function(){return t.apply(null,arguments)},t,e)}function Ct(t,e,n,i,o,a){try{t(e,n,i,o,a)}catch(t){r(t,tt(n))}}function wt(t,e,r,i,a){function c(e,n,i){k(r.$onChanges)&&!q(n,i)&&(Mt||(t.$$postDigest(P),Mt=[]),u||(u={},Mt.push(l)),u[e]&&(i=u[e].previousValue),u[e]=new ve(i,n))}function l(){r.$onChanges(u),u=void 0}var u,d=[],m={};return o(i,function(i,o){var l,u,p,h,g,v=i.attrName,$=i.optional;switch(i.mode){case"@":$||Nr.call(e,v)||(r[o]=e[v]=void 0),g=e.$observe(v,function(t){if(w(t)||I(t)){var e=r[o];c(o,t,e),r[o]=t}}),e.$$observers[v].$$scope=t,w(l=e[v])?r[o]=n(l)(t):I(l)&&(r[o]=l),m[o]=new ve(zi,r[o]),d.push(g);break;case"=":if(!Nr.call(e,v)){if($)break;e[v]=void 0}if($&&!e[v])break;u=s(e[v]),h=u.literal?U:q,p=u.assign||function(){throw l=r[o]=u(t),Ui("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[v],v,a.name)},l=r[o]=u(t);var b=function(e){return h(e,r[o])||(h(e,l)?p(t,e=r[o]):r[o]=e),l=e};b.$stateful=!0,g=i.collection?t.$watchCollection(e[v],b):t.$watch(s(e[v],b),null,u.literal),d.push(g);break;case"<":if(!Nr.call(e,v)){if($)break;e[v]=void 0}if($&&!e[v])break;var y=(u=s(e[v])).literal,E=r[o]=u(t);m[o]=new ve(zi,r[o]),g=t.$watch(u,function(t,e){if(e===t){if(e===E||y&&U(e,E))return;e=E}c(o,t,e),r[o]=t},y),d.push(g);break;case"&":if((u=e.hasOwnProperty(v)?s(e[v]):f)===f&&$)break;r[o]=function(e){return u(t,e)}}}),{initialChanges:m,removeWatches:d.length&&function(){for(var t=0,e=d.length;t<e;++t)d[t]()}}}var Mt,At=/^\w/,kt=t.document.createElement("div"),Tt=O,_t=D,St=N;H.prototype={$normalize:$e,$addClass:function(t){t&&t.length>0&&x.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&x.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=be(t,e);n&&n.length&&x.addClass(this.$$element,n);var r=be(e,t);r&&r.length&&x.removeClass(this.$$element,r)},$set:function(t,e,n,i){var a,s=Gt(this.$$element[0],t),c=Xt(t),l=t;if(s?(this.$$element.prop(t,e),i=s):c&&(this[c]=e,l=c),this[t]=e,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=dt(t,"-")),"a"===(a=j(this.$$element))&&("href"===t||"xlinkHref"===t)||"img"===a&&"src"===t)this[t]=e=R(e,"src"===t);else if("img"===a&&"srcset"===t&&y(e)){for(var u="",d=Xr(e),m=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(d)?m:/(,)/,h=d.split(p),f=Math.floor(h.length/2),g=0;g<f;g++){var v=2*g;u+=R(Xr(h[v]),!0),u+=" "+Xr(h[v+1])}var $=Xr(h[2*g]).split(/\s/);u+=R(Xr($[0]),!0),2===$.length&&(u+=" "+Xr($[1])),this[t]=e=u}!1!==n&&(null===e||b(e)?this.$$element.removeAttr(i):At.test(i)?this.$$element.attr(i,e):L(this.$$element[0],i,e));var E=this.$$observers;E&&o(E[l],function(t){try{t(e)}catch(t){r(t)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=vt()),i=r[t]||(r[t]=[]);return i.push(e),l.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||b(n[t])||e(n[t])}),function(){V(i,e)}}};var Nt=n.startSymbol(),Ot=n.endSymbol(),Dt="{{"===Nt&&"}}"===Ot?g:function(t){return t.replace(/\{\{/g,Nt).replace(/}}/g,Ot)},Rt=/^ngAttr[A-Z]/,Pt=/^(.+)Start$/;return B.$$addBindingInfo=T?function(t,e){var n=t.data("$binding")||[];Kr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:f,B.$$addBindingClass=T?function(t){F(t,"ng-binding")}:f,B.$$addScopeInfo=T?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:f,B.$$addScopeClass=T?function(t,e){F(t,e?"ng-isolate-scope":"ng-scope")}:f,B.$$createComment=function(e,n){var r="";return T&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},B}]}function ve(t,e){this.previousValue=t,this.currentValue=e}function $e(t){return t.replace(Wi,"").replace(Yi,At)}function be(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue t;n+=(n.length>0?" ":"")+a}return n}function ye(t){var e=(t=Pr(t)).length;if(e<=1)return t;for(;e--;){var n=t[e];(n.nodeType===si||n.nodeType===ai&&""===n.nodeValue.trim())&&Fr.call(t,e,1)}return t}function Ee(t,e){if(e&&w(e))return e;if(w(t)){var n=Gi.exec(t);if(n)return n[3]}}function Ce(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){ht(e,"controller"),E(e)?d(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(t,n,r,i){if(!t||!E(t.$scope))throw e("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=r}return function(e,a,s,c){var l,u,m,p;if(s=!0===s,c&&w(c)&&(p=c),w(e)){if(!(u=e.match(Gi)))throw Ki("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(m=u[1],p=p||u[3],!(e=t.hasOwnProperty(m)?t[m]:ft(a.$scope,m,!0)||(n?ft(i,m,!0):void 0)))throw Ki("ctrlreg","The controller with the name '{0}' is not registered.",m);pt(e,m,!0)}if(s){var h=(Kr(e)?e[e.length-1]:e).prototype;return l=Object.create(h||null),p&&o(a,p,l,m||e.name),d(function(){var t=r.invoke(e,l,a,m);return t!==l&&(E(t)||k(t))&&(l=t,p&&o(a,p,l,m||e.name)),l},{instance:l,identifier:p})}return l=r.instantiate(e,a,m),p&&o(a,p,l,m||e.name),l}}]}function we(){this.$get=["$window",function(t){return Pr(t.document)}]}function Me(){this.$get=["$document","$rootScope",function(t,e){function n(){i=r.hidden}var r=t[0],i=r&&r.hidden;return t.on("visibilitychange",n),e.$on("$destroy",function(){t.off("visibilitychange",n)}),function(){return i}}]}function Ae(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function ke(t){return E(t)?A(t)?t.toISOString():G(t):t}function xe(){this.$get=function(){return function(t){if(!t)return"";var e=[];return a(t,function(t,n){null===t||b(t)||(Kr(t)?o(t,function(t){e.push(ot(n)+"="+ot(ke(t)))}):e.push(ot(n)+"="+ot(ke(t))))}),e.join("&")}}}function Te(){this.$get=function(){return function(t){function e(t,r,i){null===t||b(t)||(Kr(t)?o(t,function(t,n){e(t,r+"["+(E(t)?n:"")+"]")}):E(t)&&!A(t)?a(t,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):n.push(ot(r)+"="+ot(ke(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function _e(t,e){if(w(t)){var n=t.replace(eo,"").trim();if(n){var r=e("Content-Type");if(r&&0===r.indexOf(Ji)||Se(n))try{t=X(n)}catch(e){throw no("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}return t}function Se(t){var e=t.match(Zi);return e&&to[e[0]].test(t)}function Ne(t){function e(t,e){t&&(r[t]=r[t]?r[t]+", "+e:e)}var n,r=vt();return w(t)?o(t.split("\n"),function(t){n=t.indexOf(":"),e(Ir(Xr(t.substr(0,n))),Xr(t.substr(n+1)))}):E(t)&&o(t,function(t,n){e(Ir(n),Xr(t))}),r}function Oe(t){var e;return function(n){if(e||(e=Ne(t)),n){var r=e[Ir(n)];return void 0===r&&(r=null),r}return e}}function Ie(t,e,n,r){return k(r)?r(t,e,n):(o(r,function(r){t=r(t,e,n)}),t)}function De(t){return 200<=t&&t<300}function Re(){var t=this.defaults={transformResponse:[_e],transformRequest:[function(t){return!E(t)||S(t)||O(t)||N(t)?t:G(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:yt(Qi),put:yt(Qi),patch:yt(Qi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},n=!1;this.useApplyAsync=function(t){return y(t)?(n=!!t,this):n};var r=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,a,s,c,l,u,m,p){function h(n){function r(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function a(t,e){var n,r={};return o(t,function(t,i){k(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t}),r}function s(t){var e=d({},t);return e.data=Ie(t.data,t.headers,t.status,c.transformResponse),De(t.status)?e:u.reject(e)}if(!E(n))throw e("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(p.valueOf(n.url)))throw e("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);var c=d({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer,jsonpCallbackParam:t.jsonpCallbackParam},n);c.headers=function(e){var n,r,i,o=t.headers,s=d({},e.headers);o=d({},o.common,o[Ir(e.method)]);t:for(n in o){r=Ir(n);for(i in s)if(Ir(i)===r)continue t;s[n]=o[n]}return a(s,yt(e))}(n),c.method=Dr(c.method),c.paramSerializer=w(c.paramSerializer)?m.get(c.paramSerializer):c.paramSerializer,i.$$incOutstandingRequestCount();var l=[],h=[],v=u.resolve(c);return o(M,function(t){(t.request||t.requestError)&&l.unshift(t.request,t.requestError),(t.response||t.responseError)&&h.push(t.response,t.responseError)}),v=r(v,l),v=v.then(function(e){var n=e.headers,r=Ie(e.data,Oe(n),void 0,e.transformRequest);return b(r)&&o(n,function(t,e){"content-type"===Ir(e)&&delete n[e]}),b(e.withCredentials)&&!b(t.withCredentials)&&(e.withCredentials=t.withCredentials),g(e,r).then(s,s)}),v=r(v,h),v=v.finally(function(){i.$$completeOutstandingRequest(f)})}function g(e,r){function i(t){if(t){var e={};return o(t,function(t,r){e[r]=function(e){function r(){t(e)}n?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),e}}function c(t,n,r,i){(De(n=n>=-1?n:0)?M.resolve:M.reject)({data:t,status:n,headers:Oe(r),config:e,statusText:i})}function d(t){c(t.data,t.status,yt(t.headers()),t.statusText)}function m(){var t=h.pendingRequests.indexOf(e);-1!==t&&h.pendingRequests.splice(t,1)}var f,g,M=u.defer(),A=M.promise,k=e.headers,x="jsonp"===Ir(e.method),T=e.url;if(x?T=p.getTrustedResourceUrl(T):w(T)||(T=p.valueOf(T)),T=v(T,e.paramSerializer(e.params)),x&&(T=$(T,e.jsonpCallbackParam)),h.pendingRequests.push(e),A.then(m,m),!e.cache&&!t.cache||!1===e.cache||"GET"!==e.method&&"JSONP"!==e.method||(f=E(e.cache)?e.cache:E(t.cache)?t.cache:C),f&&(y(g=f.get(T))?D(g)?g.then(d,d):Kr(g)?c(g[1],g[0],yt(g[2]),g[3]):c(g,200,{},"OK"):f.put(T,A)),b(g)){var _=Rn(e.url)?s()[e.xsrfCookieName||t.xsrfCookieName]:void 0;_&&(k[e.xsrfHeaderName||t.xsrfHeaderName]=_),a(e.method,T,r,function(t,e,r,i){function o(){c(e,t,r,i)}f&&(De(t)?f.put(T,[t,e,Ne(r),i]):f.remove(T)),n?l.$applyAsync(o):(o(),l.$$phase||l.$apply())},k,e.timeout,e.withCredentials,e.responseType,i(e.eventHandlers),i(e.uploadEventHandlers))}return A}function v(t,e){return e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e),t}function $(t,e){if(/[&?][^=]+=JSON_CALLBACK/.test(t))throw no("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',t);if(new RegExp("[&?]"+e+"=").test(t))throw no("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',e,t);return t+=(-1===t.indexOf("?")?"?":"&")+e+"=JSON_CALLBACK"}var C=c("$http");t.paramSerializer=w(t.paramSerializer)?m.get(t.paramSerializer):t.paramSerializer;var M=[];return o(r,function(t){M.unshift(w(t)?m.get(t):m.invoke(t))}),h.pendingRequests=[],function(t){o(arguments,function(t){h[t]=function(e,n){return h(d({},n||{},{method:t,url:e}))}})}("get","delete","head","jsonp"),function(t){o(arguments,function(t){h[t]=function(e,n,r){return h(d({},r||{},{method:t,url:e,data:n}))}})}("post","put","patch"),h.defaults=t,h}]}function Pe(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function He(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return Le(t,r,t.defer,e,n[0])}]}function Le(t,e,n,r,i){function a(t,e,n){t=t.replace("JSON_CALLBACK",e);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=t,o.async=!0,a=function(t){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,c="unknown";t&&("load"!==t.type||r.wasCalled(e)||(t={type:"error"}),c=t.type,s="error"===t.type?404:200),n&&n(s,c)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}return function(i,s,c,l,u,d,m,p,h,f){function g(){E&&E(),C&&C.abort()}function v(t,e,r,i,o){y(M)&&n.cancel(M),E=C=null,t(e,r,i,o)}if(s=s||t.url(),"jsonp"===Ir(i))var $=r.createCallback(s),E=a(s,$,function(t,e){var n=200===t&&r.getResponse($);v(l,t,n,"",e),r.removeCallback($)});else{var C=e(i,s);C.open(i,s,!0),o(u,function(t,e){y(t)&&C.setRequestHeader(e,t)}),C.onload=function(){var t=C.statusText||"",e="response"in C?C.response:C.responseText,n=1223===C.status?204:C.status;0===n&&(n=e?200:"file"===Dn(s).protocol?404:0),v(l,n,e,C.getAllResponseHeaders(),t)};var w=function(){v(l,-1,null,null,"")};if(C.onerror=w,C.onabort=w,C.ontimeout=w,o(h,function(t,e){C.addEventListener(e,t)}),o(f,function(t,e){C.upload.addEventListener(e,t)}),m&&(C.withCredentials=!0),p)try{C.responseType=p}catch(t){if("json"!==p)throw t}C.send(b(c)?null:c)}if(d>0)var M=n(g,d);else D(d)&&d.then(g)}}function je(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function a(n){return n.replace(m,t).replace(p,e)}function s(t,e,n,r){var i=t.$watch(function(t){return i(),r(t)},e,n);return i}function c(o,c,m,p){if(!o.length||-1===o.indexOf(t)){var h;return c||((h=v(a(o))).exp=o,h.expressions=[],h.$$watchDelegate=s),h}p=!!p;for(var f,g,$,E=0,C=[],w=[],M=o.length,A=[],x=[];E<M;){if(-1===(f=o.indexOf(t,E))||-1===(g=o.indexOf(e,f+l))){E!==M&&A.push(a(o.substring(E)));break}E!==f&&A.push(a(o.substring(E,f))),$=o.substring(f+l,g),C.push($),w.push(n($,function(t){try{return t=_(t),p&&!y(t)?t:$t(t)}catch(t){r(ro.interr(o,t))}})),E=g+u,x.push(A.length),A.push("")}if(m&&A.length>1&&ro.throwNoconcat(o),!c||C.length){var T=function(t){for(var e=0,n=C.length;e<n;e++){if(p&&b(t[e]))return;A[x[e]]=t[e]}return A.join("")},_=function(t){return m?i.getTrusted(m,t):i.valueOf(t)};return d(function(t){var e=0,n=C.length,i=new Array(n);try{for(;e<n;e++)i[e]=w[e](t);return T(i)}catch(t){r(ro.interr(o,t))}},{exp:o,expressions:C,$$watchDelegate:function(t,e){var n;return t.$watchGroup(w,function(r,i){var o=T(r);k(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var l=t.length,u=e.length,m=new RegExp(t.replace(/./g,o),"g"),p=new RegExp(e.replace(/./g,o),"g");return c.startSymbol=function(){return t},c.endSymbol=function(){return e},c}]}function Fe(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(t,e,n,r,i){function o(o,s,c,l){function u(){d?o.apply(null,m):o(f)}var d=arguments.length>4,m=d?W(arguments,4):[],p=e.setInterval,h=e.clearInterval,f=0,g=y(l)&&!l,v=(g?r:n).defer(),$=v.promise;return c=y(c)?c:0,$.$$intervalId=p(function(){g?i.defer(u):t.$evalAsync(u),v.notify(f++),c>0&&f>=c&&(v.resolve(f),h($.$$intervalId),delete a[$.$$intervalId]),g||t.$apply()},s),a[$.$$intervalId]=v,$}var a={};return o.cancel=function(t){return!!(t&&t.$$intervalId in a)&&(a[t.$$intervalId].promise.catch(f),a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0)},o}]}function Ve(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=it(e[n]);return e.join("/")}function Be(t,e){var n=Dn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=p(n.port)||ao[n.protocol]||null}function qe(t,e){if(co.test(t))throw so("badpath",'Invalid url "{0}".',t);var n="/"!==t.charAt(0);n&&(t="/"+t);var r=Dn(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=nt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Ue(t,e){return t.slice(0,e.length)===e}function ze(t,e){if(Ue(e,t))return e.substr(t.length)}function We(t){var e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function Ye(t){return t.replace(/(#.+)|#$/,"$1")}function Ke(t){return t.substr(0,We(t).lastIndexOf("/")+1)}function Ge(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Xe(t,e,n){this.$$html5=!0,n=n||"",Be(t,this),this.$$parse=function(t){var n=ze(e,t);if(!w(n))throw so("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);qe(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=rt(this.$$search),n=this.$$hash?"#"+it(this.$$hash):"";this.$$url=Ve(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return y(o=ze(t,r))?(a=o,s=n&&y(o=ze(n,o))?e+(ze("/",o)||o):t+a):y(o=ze(e,r))?s=e+o:e===r+"/"&&(s=e),s&&this.$$parse(s),!!s}}function Je(t,e,n){Be(t,this),this.$$parse=function(r){var i,o=ze(t,r)||ze(e,r);b(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",b(o)&&(t=r,this.replace())):b(i=ze(n,o))&&(i=o),qe(i,this),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return Ue(e,n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t))?r[1]:t}(this.$$path,i,t),this.$$compose()},this.$$compose=function(){var e=rt(this.$$search),r=this.$$hash?"#"+it(this.$$hash):"";this.$$url=Ve(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(e,n){return We(t)===We(e)&&(this.$$parse(e),!0)}}function Qe(t,e,n){this.$$html5=!0,Je.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return t===We(r)?o=r:(a=ze(e,r))?o=t+n+a:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=rt(this.$$search),r=this.$$hash?"#"+it(this.$$hash):"";this.$$url=Ve(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url,this.$$urlUpdatedByLocation=!0}}function Ze(t){return function(){return this[t]}}function tn(t,e){return function(n){return b(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function en(){var t="!",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return I(t)?(e.enabled=t,this):E(t)?(I(t.enabled)&&(e.enabled=t.enabled),I(t.requireBase)&&(e.requireBase=t.requireBase),(I(t.rewriteLinks)||w(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(t,e,n){var i=l.url(),o=l.$$state;try{r.url(t,e,n),l.$$state=r.state()}catch(t){throw l.url(i),l.$$state=o,t}}function c(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}var l,u,d,m=r.baseHref(),p=r.url();if(e.enabled){if(!m&&e.requireBase)throw so("nobase","$location in HTML5 mode requires a <base> tag to be present!");d=Ge(p)+(m||"/"),u=i.history?Xe:Qe}else d=We(p),u=Je;var h=Ke(d);(l=new u(d,h,"#"+t)).$$parseLinkUrl(p,p),l.$$state=r.state();var f=/^\s*(javascript|mailto):/i;o.on("click",function(t){var i=e.rewriteLinks;if(i&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var s=Pr(t.target);"a"!==j(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!w(i)||!b(s.attr(i))){var c=s.prop("href"),u=s.attr("href")||s.attr("xlink:href");E(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=Dn(c.animVal).href),f.test(c)||!c||s.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(c,u)&&(t.preventDefault(),l.absUrl()!==r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}}),Ye(l.absUrl())!==Ye(p)&&r.url(l.absUrl(),!0);var g=!0;return r.onUrlChange(function(t,e){Ue(t,h)?(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;t=Ye(t),l.$$parse(t),l.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,l.absUrl()===t&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(g=!1,c(i,o)))}),n.$$phase||n.$digest()):a.location.href=t}),n.$watch(function(){if(g||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var t=Ye(r.url()),e=Ye(l.absUrl()),o=r.state(),a=l.$$replace,u=t!==e||l.$$html5&&i.history&&o!==l.$$state;(g||u)&&(g=!1,n.$evalAsync(function(){var e=l.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,l.$$state,o).defaultPrevented;l.absUrl()===e&&(r?(l.$$parse(t),l.$$state=o):(u&&s(e,a,o===l.$$state?null:l.$$state),c(t,o)))}))}l.$$replace=!1}),l}]}function nn(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=["$window",function(n){function r(t){return t instanceof Error&&(t.stack&&a?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function i(t){var e=n.console||{},i=e[t]||e.log||f,a=!1;try{a=!!i.apply}catch(t){}return a?function(){var t=[];return o(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}var a=Rr||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function rn(t){return t+""}function on(t,e){return void 0!==t?t:e}function an(t,e){return void 0===t?e:void 0===e?t:t+e}function sn(t,e){return!t(e).$stateful}function cn(t,e){var n,r,i;switch(t.type){case go.Program:n=!0,o(t.body,function(t){cn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case go.Literal:t.constant=!0,t.toWatch=[];break;case go.UnaryExpression:cn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case go.BinaryExpression:cn(t.left,e),cn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case go.LogicalExpression:cn(t.left,e),cn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case go.ConditionalExpression:cn(t.test,e),cn(t.alternate,e),cn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case go.Identifier:t.constant=!1,t.toWatch=[t];break;case go.MemberExpression:cn(t.object,e),t.computed&&cn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case go.CallExpression:i=!!t.filter&&sn(e,t.callee.name),n=i,r=[],o(t.arguments,function(t){cn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=i?r:[t];break;case go.AssignmentExpression:cn(t.left,e),cn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case go.ArrayExpression:n=!0,r=[],o(t.elements,function(t){cn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case go.ObjectExpression:n=!0,r=[],o(t.properties,function(t){cn(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||r.push.apply(r,t.value.toWatch),t.computed&&(cn(t.key,e),t.key.constant||r.push.apply(r,t.key.toWatch))}),t.constant=n,t.toWatch=r;break;case go.ThisExpression:case go.LocalsExpression:t.constant=!1,t.toWatch=[]}}function ln(t){if(1===t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length?n:n[0]!==e?n:void 0}}function un(t){return t.type===go.Identifier||t.type===go.MemberExpression}function dn(t){if(1===t.body.length&&un(t.body[0].expression))return{type:go.AssignmentExpression,left:t.body[0].expression,right:{type:go.NGValueParameter},operator:"="}}function mn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===go.Literal||t.body[0].expression.type===go.ArrayExpression||t.body[0].expression.type===go.ObjectExpression)}function pn(t){return t.constant}function hn(t){this.$filter=t}function fn(t){this.$filter=t}function gn(t,e,n){this.ast=new go(t,n),this.astCompiler=n.csp?new fn(e):new hn(e)}function vn(t){return k(t.valueOf)?t.valueOf():mo.call(t)}function $n(){var t,e,n=vt(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){r[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(i){function a(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=vn(t))&&!n)&&(t===e||t!==t&&e!==e)}function s(t,e,n,r,i){var o,s=r.inputs;if(1===s.length){var c=a;return s=s[0],t.$watch(function(t){var e=s(t);return a(e,c,r.literal)||(o=r(t,void 0,void 0,[e]),c=e&&vn(e)),o},e,n,i)}for(var l=[],u=[],d=0,m=s.length;d<m;d++)l[d]=a,u[d]=null;return t.$watch(function(t){for(var e=!1,n=0,i=s.length;n<i;n++){var c=s[n](t);(e||(e=!a(c,l[n],r.literal)))&&(u[n]=c,l[n]=c&&vn(c))}return e&&(o=r(t,void 0,void 0,u)),o},e,n,i)}function c(t,e,n,r,i){function o(t,n,r){c=t,k(e)&&e(t,n,r),u(t)&&r.$$postDigest(function(){u(c)&&a()})}var a,c,u=r.literal?l:y;return a=r.inputs?s(t,o,n,r,i):t.$watch(function(t){return r(t)},o,n)}function l(t){var e=!0;return o(t,function(t){y(t)||(e=!1)}),e}function u(t,e,n,r){var i=t.$watch(function(t){return i(),r(t)},e,n);return i}function d(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=t.literal?l:y,o=t.oneTime?function(n,o,a,s){var c=r&&s?s[0]:t(n,o,a,s),l=e(c,n,o);return i(c)?l:c}:function(n,i,o,a){var s=r&&a?a[0]:t(n,i,o,a);return e(s,n,i)};return o.literal=t.literal,o.oneTime=t.oneTime,r=!t.inputs,n&&n!==s?(o.$$watchDelegate=n,o.inputs=t.inputs):e.$stateful||(o.$$watchDelegate=s,o.inputs=t.inputs?t.inputs:[t]),o}var m={csp:Qr().noUnsafeEval,literals:B(r),isIdentifierStart:k(t)&&t,isIdentifierContinue:k(e)&&e};return function(t,e){var r,o,a;switch(typeof t){case"string":return t=t.trim(),a=t,(r=n[a])||(":"===t.charAt(0)&&":"===t.charAt(1)&&(o=!0,t=t.substring(2)),(r=new gn(new fo(m),i,m).parse(t)).constant?r.$$watchDelegate=u:o?(r.oneTime=!0,r.$$watchDelegate=c):r.inputs&&(r.$$watchDelegate=s),n[a]=r),d(r,e);case"function":return d(t,e);default:return d(f,e)}}}]}function bn(){var t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return En(function(t){e.$evalAsync(t)},n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function yn(){var t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return En(function(t){e.defer(t)},n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function En(t,n,r){function i(){return new a}function a(){var t=this.promise=new s;this.resolve=function(e){m(t,e)},this.reject=function(e){h(t,e)},this.notify=function(e){g(t,e)}}function s(){this.$$state={status:0}}function c(e){var n,i,o;o=e.pending,e.processScheduled=!1,e.pending=void 0;try{for(var a=0,s=o.length;a<s;++a){e.pur=!0,i=o[a][0],n=o[a][e.status];try{k(n)?m(i,n(e.value)):1===e.status?m(i,e.value):h(i,e.value)}catch(t){h(i,t)}}}finally{--M,r&&0===M&&t(l)}}function l(){for(;!M&&A.length;){var t=A.shift();if(!t.pur){t.pur=!0;var e="Possibly unhandled rejection: "+Ct(t.value);t.value instanceof Error?n(t.value,e):n(e)}}}function u(e){!r||e.pending||2!==e.status||e.pur||(0===M&&0===A.length&&t(l),A.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++M,t(function(){c(e)}))}function m(t,e){t.$$state.status||(e===t?f(t,w("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):p(t,e))}function p(t,e){function n(e){i||(i=!0,f(t,e))}var r,i=!1;try{(E(e)||k(e))&&(r=e.then),k(r)?(t.$$state.status=-1,r.call(e,function(e){i||(i=!0,p(t,e))},n,function(e){g(t,e)})):(t.$$state.value=e,t.$$state.status=1,u(t.$$state))}catch(t){n(t)}}function h(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,u(t.$$state)}function g(e,r){var i=e.$$state.pending;e.$$state.status<=0&&i&&i.length&&t(function(){for(var t,e,o=0,a=i.length;o<a;o++){e=i[o][0],t=i[o][3];try{g(e,k(t)?t(r):r)}catch(t){n(t)}}})}function v(t){var e=new s;return h(e,t),e}function $(t,e,n){var r=null;try{k(n)&&(r=n())}catch(t){return v(t)}return D(r)?r.then(function(){return e(t)},v):e(t)}function y(t,e,n,r){var i=new s;return m(i,t),i.then(e,n,r)}function C(t){if(!k(t))throw w("norslvr","Expected resolverFn, got '{0}'",t);var e=new s;return t(function(t){m(e,t)},function(t){h(e,t)}),e}var w=e("$q",TypeError),M=0,A=[];d(s.prototype,{then:function(t,e,n){if(b(t)&&b(e)&&b(n))return this;var r=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&u(this.$$state),r},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then(function(e){return $(e,x,t)},function(e){return $(e,v,t)},e)}});var x=y;return C.prototype=s.prototype,C.defer=i,C.reject=v,C.when=y,C.resolve=x,C.all=function(t){var e=new s,n=0,r=Kr(t)?[]:{};return o(t,function(t,i){n++,y(t).then(function(t){r[i]=t,--n||m(e,r)},function(t){h(e,t)})}),0===n&&m(e,r),e},C.race=function(t){var e=i();return o(t,function(t){y(t).then(e.resolve,e.reject)}),e.promise},C}function Cn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function wn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=c(),this.$$ChildScope=null}return e.prototype=t,e}var n=10,r=e("$rootScope"),a=null,s=null;this.digestTtl=function(t){return arguments.length&&(n=t),n},this.$get=["$exceptionHandler","$parse","$browser",function(e,l,u){function d(t){t.currentScope.$$destroyed=!0}function m(t){9===Rr&&(t.$$childHead&&m(t.$$childHead),t.$$nextSibling&&m(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function p(){this.$id=c(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function h(t){if(M.$$phase)throw r("inprog","{0} already in progress",M.$$phase);M.$$phase=t}function g(){M.$$phase=null}function v(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function $(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function y(){}function C(){for(;T.length;)try{T.shift()()}catch(t){e(t)}s=null}function w(){null===s&&(s=u.defer(function(){M.$apply(C)}))}p.prototype={constructor:p,$new:function(e,n){var r;return n=n||this,e?(r=new p).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!==this)&&r.$on("$destroy",d),r},$watch:function(t,e,n,r){var i=l(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,s=o.$$watchers,c={fn:e,last:y,get:i,exp:r||t,eq:!!n};return a=null,k(e)||(c.fn=f),s||((s=o.$$watchers=[]).$$digestWatchIndex=-1),s.unshift(c),s.$$digestWatchIndex++,v(this,1),function(){var t=V(s,c);t>=0&&(v(o,-1),t<s.$$digestWatchIndex&&s.$$digestWatchIndex--),a=null}},$watchGroup:function(t,e){function n(){c=!1,l?(l=!1,e(i,i,s)):e(i,r,s)}var r=new Array(t.length),i=new Array(t.length),a=[],s=this,c=!1,l=!0;if(!t.length){var u=!0;return s.$evalAsync(function(){u&&e(i,i,s)}),function(){u=!1}}return 1===t.length?this.$watch(t[0],function(t,n,o){i[0]=t,r[0]=n,e(i,t===n?i:r,o)}):(o(t,function(t,e){var o=s.$watch(t,function(t,o){i[e]=t,r[e]=o,c||(c=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function n(t){var e,n,a,s;if(!b(r=t)){if(E(r))if(i(r)){o!==m&&(f=(o=m).length=0,u++),e=r.length,f!==e&&(u++,o.length=f=e);for(var c=0;c<e;c++)s=o[c],a=r[c],s!==s&&a!==a||s===a||(u++,o[c]=a)}else{o!==p&&(o=p={},f=0,u++),e=0;for(n in r)Nr.call(r,n)&&(e++,a=r[n],s=o[n],n in o?s!==s&&a!==a||s===a||(u++,o[n]=a):(f++,o[n]=a,u++));if(f>e){u++;for(n in o)Nr.call(r,n)||(f--,delete o[n])}}else o!==r&&(o=r,u++);return u}}n.$stateful=!0;var r,o,a,s=this,c=e.length>1,u=0,d=l(t,n),m=[],p={},h=!0,f=0;return this.$watch(d,function(){if(h?(h=!1,e(r,r,s)):e(r,a,s),c)if(E(r))if(i(r)){a=new Array(r.length);for(var t=0;t<r.length;t++)a[t]=r[t]}else{a={};for(var n in r)Nr.call(r,n)&&(a[n]=r[n])}else a=r})},$digest:function(){var t,i,o,c,l,d,m,p,f,v,$=n,b=this,E=[];h("$digest"),u.$$checkUrlChange(),this===M&&null!==s&&(u.defer.cancel(s),C()),a=null;do{d=!1,p=b;for(var w=0;w<A.length;w++){try{(0,(v=A[w]).fn)(v.scope,v.locals)}catch(t){e(t)}a=null}A.length=0;t:do{if(l=p.$$watchers)for(l.$$digestWatchIndex=l.length;l.$$digestWatchIndex--;)try{if(t=l[l.$$digestWatchIndex])if(c=t.get,(i=c(p))===(o=t.last)||(t.eq?U(i,o):Yr(i)&&Yr(o))){if(t===a){d=!1;break t}}else d=!0,a=t,t.last=t.eq?B(i,null):i,(0,t.fn)(i,o===y?i:o,p),$<5&&(E[f=4-$]||(E[f]=[]),E[f].push({msg:k(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:i,oldVal:o}))}catch(t){e(t)}if(!(m=p.$$watchersCount&&p.$$childHead||p!==b&&p.$$nextSibling))for(;p!==b&&!(m=p.$$nextSibling);)p=p.$parent}while(p=m);if((d||A.length)&&!$--)throw g(),r("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",n,E)}while(d||A.length);for(g();_<x.length;)try{x[_++]()}catch(t){e(t)}x.length=_=0,u.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===M&&u.$$applicationDestroyed(),v(this,-this.$$watchersCount);for(var e in this.$$listenerCount)$(this,this.$$listenerCount[e],e);t&&t.$$childHead===this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail===this&&(t.$$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=f,this.$on=this.$watch=this.$watchGroup=function(){return f},this.$$listeners={},this.$$nextSibling=null,m(this)}},$eval:function(t,e){return l(t)(this,e)},$evalAsync:function(t,e){M.$$phase||A.length||u.defer(function(){A.length&&M.$digest()}),A.push({scope:this,fn:l(t),locals:e})},$$postDigest:function(t){x.push(t)},$apply:function(t){try{h("$apply");try{return this.$eval(t)}finally{g()}}catch(t){e(t)}finally{try{M.$digest()}catch(t){throw e(t),t}}},$applyAsync:function(t){var e=this;t&&T.push(function(){e.$eval(t)}),t=l(t),w()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do{r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(n[r]=null,$(i,1,t))}},$emit:function(t,n){var r,i,o,a=[],s=this,c=!1,l={name:t,targetScope:s,stopPropagation:function(){c=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},u=z([l],arguments,1);do{for(r=s.$$listeners[t]||a,l.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,u)}catch(t){e(t)}else r.splice(i,1),i--,o--;if(c)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(t,n){var r=this,i=r,o=r,a={name:t,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[t])return a;for(var s,c,l,u=z([a],arguments,1);i=o;){for(a.currentScope=i,c=0,l=(s=i.$$listeners[t]||[]).length;c<l;c++)if(s[c])try{s[c].apply(null,u)}catch(t){e(t)}else s.splice(c,1),c--,l--;if(!(o=i.$$listenerCount[t]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var M=new p,A=M.$$asyncQueue=[],x=M.$$postDigestQueue=[],T=M.$$applyAsyncQueue=[],_=0;return M}]}function Mn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return""===(i=Dn(n).href)||i.match(o)?n:"unsafe:"+i}}}function An(t){return t.replace(bo,At)}function kn(t){if("self"===t)return t;if(w(t)){if(t.indexOf("***")>-1)throw vo("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=Jr(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(x(t))return new RegExp("^"+t.source+"$");throw vo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function xn(t){var e=[];return y(t)&&o(t,function(t){e.push(kn(t))}),e}function Tn(){this.SCE_CONTEXTS=$o;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=xn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=xn(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Rn(e):!!t.exec(e.href)}function i(n){var i,o,a=Dn(n.toString()),s=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!0;break}if(s)for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!1;break}return s}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}var a=function(t){throw vo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(a=n.get("$sanitize"));var s=o(),c={};return c[$o.HTML]=o(s),c[$o.CSS]=o(s),c[$o.URL]=o(s),c[$o.JS]=o(s),c[$o.RESOURCE_URL]=o(c[$o.URL]),{trustAs:function(t,e){var n=c.hasOwnProperty(t)?c[t]:null;if(!n)throw vo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||b(e)||""===e)return e;if("string"!=typeof e)throw vo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(t,e){if(null===e||b(e)||""===e)return e;var n=c.hasOwnProperty(t)?c[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===$o.RESOURCE_URL){if(i(e))return e;throw vo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",e.toString())}if(t===$o.HTML)return a(e);throw vo("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof s?t.$$unwrapTrustedValue():t}}}]}function _n(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&Rr<8)throw vo("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=yt($o);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=g),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o($o,function(t,e){var n=Ir(e);r[An("parse_as_"+n)]=function(e){return i(t,e)},r[An("get_trusted_"+n)]=function(e){return a(t,e)},r[An("trust_as_"+n)]=function(e){return s(t,e)}}),r}]}function Sn(){this.$get=["$window","$document",function(t,e){var n={},r=!(!(t.nw&&t.nw.process)&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id))&&t.history&&t.history.pushState,i=p((/android (\d+)/.exec(Ir((t.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},s=a.body&&a.body.style,c=!1,l=!1;return s&&(c=!!("transition"in s||"webkitTransition"in s),l=!!("animation"in s||"webkitAnimation"in s)),{history:!(!r||i<4||o),hasEvent:function(t){if("input"===t&&Rr)return!1;if(b(n[t])){var e=a.createElement("div");n[t]="on"+t in e}return n[t]},csp:Qr(),transitions:c,animations:l,android:i}}]}function Nn(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,o){function a(s,c){a.totalPendingRequests++,w(s)&&!b(n.get(s))||(s=o.getTrustedResourceUrl(s));var l=r.defaults&&r.defaults.transformResponse;return Kr(l)?l=l.filter(function(t){return t!==_e}):l===_e&&(l=null),r.get(s,d({cache:n,transformResponse:l},t)).finally(function(){a.totalPendingRequests--}).then(function(t){return n.put(s,t.data),t.data},function(t){return c||(t=yo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,t.status,t.statusText),e(t)),i.reject(t)})}return a.totalPendingRequests=0,a}]}function On(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={};return r.findBindings=function(t,e,n){var r=[];return o(t.getElementsByClassName("ng-binding"),function(t){var i=zr.element(t).data("$binding");i&&o(i,function(i){n?new RegExp("(^|\\s)"+Jr(e)+"(\\s|\\||$)").test(i)&&r.push(t):-1!==i.indexOf(e)&&r.push(t)})}),r},r.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+e+'"]',s=t.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},r.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},r}]}function In(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,s,c){k(o)||(c=s,s=o,o=f);var l,u=W(arguments,3),d=y(c)&&!c,m=(d?r:n).defer(),p=m.promise;return l=e.defer(function(){try{m.resolve(o.apply(null,u))}catch(t){m.reject(t),i(t)}finally{delete a[p.$$timeoutId]}d||t.$apply()},s),p.$$timeoutId=l,a[l]=m,p}var a={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in a)&&(a[t.$$timeoutId].promise.catch(f),a[t.$$timeoutId].reject("canceled"),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function Dn(t){var e=t;return Rr&&(Eo.setAttribute("href",e),e=Eo.href),Eo.setAttribute("href",e),{href:Eo.href,protocol:Eo.protocol?Eo.protocol.replace(/:$/,""):"",host:Eo.host,search:Eo.search?Eo.search.replace(/^\?/,""):"",hash:Eo.hash?Eo.hash.replace(/^#/,""):"",hostname:Eo.hostname,port:Eo.port,pathname:"/"===Eo.pathname.charAt(0)?Eo.pathname:"/"+Eo.pathname}}function Rn(t){var e=w(t)?Dn(t):t;return e.protocol===Co.protocol&&e.host===Co.host}function Pn(){this.$get=v(t)}function Hn(t){function e(t){try{return t.cookie||""}catch(t){return""}}function n(t){try{return decodeURIComponent(t)}catch(e){return t}}var r=t[0]||{},i={},o="";return function(){var t,a,s,c,l,u=e(r);if(u!==o)for(t=(o=u).split("; "),i={},s=0;s<t.length;s++)(c=(a=t[s]).indexOf("="))>0&&(l=n(a.substring(0,c)),b(i[l])&&(i[l]=n(a.substring(c+1))));return i}}function Ln(){this.$get=Hn}function jn(t){function e(r,i){if(E(r)){var a={};return o(r,function(t,n){a[n]=e(n,t)}),a}return t.factory(r+n,i)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Un),e("date",nr),e("filter",Fn),e("json",rr),e("limitTo",ir),e("lowercase",_o),e("number",zn),e("orderBy",ar),e("uppercase",So)}function Fn(){return function(t,n,r,o){if(!i(t)){if(null==t)return t;throw e("filter")("notarray","Expected array but received: {0}",t)}o=o||"$";var a,s;switch(qn(n)){case"function":a=n;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=Vn(n,r,o,s);break;default:return t}return Array.prototype.filter.call(t,a)}}function Vn(t,e,n,r){var i=E(t)&&n in t;return!0===e?e=U:k(e)||(e=function(t,e){return!b(t)&&(null===t||null===e?t===e:!(E(e)||E(t)&&!$(t))&&(t=Ir(""+t),e=Ir(""+e),-1!==t.indexOf(e)))}),function(o){return i&&!E(o)?Bn(o,t[n],e,n,!1):Bn(o,t,e,n,r)}}function Bn(t,e,n,r,i,o){var a=qn(t),s=qn(e);if("string"===s&&"!"===e.charAt(0))return!Bn(t,e.substring(1),n,r,i);if(Kr(t))return t.some(function(t){return Bn(t,e,n,r,i)});switch(a){case"object":var c;if(i){for(c in t)if(c.charAt&&"$"!==c.charAt(0)&&Bn(t[c],e,n,r,!0))return!0;return!o&&Bn(t,e,n,r,!1)}if("object"===s){for(c in e){var l=e[c];if(!k(l)&&!b(l)){var u=c===r;if(!Bn(u?t:t[c],l,n,r,u,u))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function qn(t){return null===t?"null":typeof t}function Un(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return b(n)&&(n=e.CURRENCY_SYM),b(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Kn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function zn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Kn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Wn(t){var e,n,r,i,o,a=0;for((n=t.indexOf(Mo))>-1&&(t=t.replace(Mo,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)===Ao;r++);if(r===(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)===Ao;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>wo&&(e=e.splice(0,wo-1),a=n-1,n=1),{d:e,e:a,i:n}}function Yn(t,e,n,r){var i=t.d,o=i.length-t.i,a=(e=b(e)?Math.min(Math.max(n,o),r):+e)+t.i,s=i[a];if(a>0){i.splice(Math.max(t.i,a));for(var c=a;c<i.length;c++)i[c]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,a=e+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var u=0;u>a;u--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[a-1]++;for(;o<Math.max(0,e);o++)i.push(0);var d=i.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0);d&&(i.unshift(d),t.i++)}function Kn(t,e,n,r,i){if(!w(t)&&!M(t)||isNaN(t))return"";var o,a=!isFinite(t),s=!1,c=Math.abs(t)+"",l="";if(a)l="∞";else{Yn(o=Wn(c),i,e.minFrac,e.maxFrac);var u=o.d,d=o.i,m=o.e,p=[];for(s=u.reduce(function(t,e){return t&&!e},!0);d<0;)u.unshift(0),d++;d>0?p=u.splice(d,u.length):(p=u,u=[0]);var h=[];for(u.length>=e.lgSize&&h.unshift(u.splice(-e.lgSize,u.length).join(""));u.length>e.gSize;)h.unshift(u.splice(-e.gSize,u.length).join(""));u.length&&h.unshift(u.join("")),l=h.join(n),p.length&&(l+=r+p.join("")),m&&(l+="e+"+m)}return t<0&&!s?e.negPre+l+e.negSuf:e.posPre+l+e.posSuf}function Gn(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=1-t:(t=-t,i="-")),t=""+t;t.length<e;)t=Ao+t;return n&&(t=t.substr(t.length-e)),i+t}function Xn(t,e,n,r,i){return n=n||0,function(o){var a=o["get"+t]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),Gn(a,e,r,i)}}function Jn(t,e,n){return function(r,i){var o=r["get"+t]();return i[Dr((n?"STANDALONE":"")+(e?"SHORT":"")+t)][o]}}function Qn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Zn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tr(t){return function(e){var n=Qn(e.getFullYear()),r=+Zn(e)-+n;return Gn(1+Math.round(r/6048e5),t)}}function er(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function nr(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,a=e[8]?r.setUTCFullYear:r.setFullYear,s=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=p(e[9]+e[10]),o=p(e[9]+e[11])),a.call(r,p(e[1]),p(e[2])-1,p(e[3]));var c=p(e[4]||0)-i,l=p(e[5]||0)-o,u=p(e[6]||0),d=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(r,c,l,u,d),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,c="",l=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,w(n)&&(n=To.test(n)?p(n):e(n)),M(n)&&(n=new Date(n)),!A(n)||!isFinite(n.getTime()))return n;for(;r;)(s=xo.exec(r))?r=(l=z(l,s,1)).pop():(l.push(r),r=null);var u=n.getTimezoneOffset();return i&&(u=J(i,u),n=Z(n,i,!0)),o(l,function(e){a=ko[e],c+=a?a(n,t.DATETIME_FORMATS,u):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function rr(){return function(t,e){return b(e)&&(e=2),G(t,e)}}function ir(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):p(e),Yr(e)?t:(M(t)&&(t=t.toString()),i(t)?(n=!n||isNaN(n)?0:p(n),n=n<0?Math.max(0,t.length+n):n,e>=0?or(t,n,n+e):0===n?or(t,e,t.length):or(t,Math.max(0,n+e),n)):t)}}function or(t,e,n){return w(t)?t.slice(e,n):jr.call(t,e,n)}function ar(t){function n(e){return e.map(function(e){var n=1,r=g;if(k(e))r=e;else if(w(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e)).constant)){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})}function r(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function o(t){return k(t.valueOf)&&(t=t.valueOf(),r(t))?t:($(t)&&(t=t.toString(),r(t)),t)}function a(t,e){var n=typeof t;return null===t?(n="string",t="null"):"object"===n&&(t=o(t)),{value:t,type:n,index:e}}function s(t,e){var n=0,r=t.type,i=e.type;if(r===i){var o=t.value,a=e.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(E(o)&&(o=t.index),E(a)&&(a=e.index)),o!==a&&(n=o<a?-1:1)}else n=r<i?-1:1;return n}return function(t,r,o,c){if(null==t)return t;if(!i(t))throw e("orderBy")("notarray","Expected array but received: {0}",t);Kr(r)||(r=[r]),0===r.length&&(r=["+"]);var l=n(r),u=o?-1:1,d=k(c)?c:s,m=Array.prototype.map.call(t,function(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:l.map(function(n){return a(n.get(t),e)})}});return m.sort(function(t,e){for(var n=0,r=l.length;n<r;n++){var i=d(t.predicateValues[n],e.predicateValues[n]);if(i)return i*l[n].descending*u}return d(t.tieBreaker,e.tieBreaker)*u}),t=m.map(function(t){return t.value})}}function sr(t){return k(t)&&(t={link:t}),t.restrict=t.restrict||"AC",v(t)}function cr(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Io,this.$$element=t,this.$$animate=r,lr(this)}function lr(t){t.$$classCache={},t.$$classCache[ga]=!(t.$$classCache[fa]=t.$$element.hasClass(fa))}function ur(t){function e(t,e,n,r){t[e]||(t[e]={}),a(t[e],n,r)}function n(t,e,n,r){t[e]&&s(t[e],n,r),dr(t[e])&&(t[e]=void 0)}function r(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function i(t,e,n){e=e?"-"+dt(e,"-"):"",r(t,fa+e,!0===n),r(t,ga+e,!1===n)}var o=t.clazz,a=t.set,s=t.unset;o.prototype.$setValidity=function(t,o,c){b(o)?e(this,"$pending",t,c):n(this,"$pending",t,c),I(o)?o?(s(this.$error,t,c),a(this.$$success,t,c)):(a(this.$error,t,c),s(this.$$success,t,c)):(s(this.$error,t,c),s(this.$$success,t,c)),this.$pending?(r(this,Do,!0),this.$valid=this.$invalid=void 0,i(this,"",null)):(r(this,Do,!1),this.$valid=dr(this.$error),this.$invalid=!this.$valid,i(this,"",this.$valid));var l;i(this,t,l=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null)),this.$$parentForm.$setValidity(t,l,this)}}function dr(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function mr(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function pr(t,e,n,r,i,o){var a=Ir(e[0].type);if(!i.android){var s=!1;e.on("compositionstart",function(){s=!0}),e.on("compositionend",function(){s=!1,l()})}var c,l=function(t){if(c&&(o.defer.cancel(c),c=null),!s){var i=e.val(),l=t&&t.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Xr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))e.on("input",l);else{var u=function(t,e,n){c||(c=o.defer(function(){c=null,e&&e.value===n||l(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||u(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",u)}e.on("change",l),Ko[a]&&r.$$hasNativeValidators&&a===n.type&&e.on(Yo,function(t){if(!c){var e=this[Sr],n=e.badInput,r=e.typeMismatch;c=o.defer(function(){c=null,e.badInput===n&&e.typeMismatch===r||l(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function hr(t,e){return function(n,r){var i,a;if(A(n))return n;if(w(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Lo.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(t,n){n<e.length&&(a[e[n]]=+t)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function fr(t,e,n,r){return function(i,o,a,s,c,l,u){function d(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function m(t){return y(t)&&!A(t)?n(t)||void 0:t}gr(i,o,a,s),pr(i,o,a,s,c,l);var p,h=s&&s.$options.getOption("timezone");if(s.$$parserName=t,s.$parsers.push(function(t){if(s.$isEmpty(t))return null;if(e.test(t)){var r=n(t,p);return h&&(r=Z(r,h)),r}}),s.$formatters.push(function(t){if(t&&!A(t))throw ba("datefmt","Expected `{0}` to be a date",t);return d(t)?((p=t)&&h&&(p=Z(p,h,!0)),u("date")(t,r,h)):(p=null,"")}),y(a.min)||a.ngMin){var f;s.$validators.min=function(t){return!d(t)||b(f)||n(t)>=f},a.$observe("min",function(t){f=m(t),s.$validate()})}if(y(a.max)||a.ngMax){var g;s.$validators.max=function(t){return!d(t)||b(g)||n(t)<=g},a.$observe("max",function(t){g=m(t),s.$validate()})}}}function gr(t,e,n,r){var i=e[0];(r.$$hasNativeValidators=E(i.validity))&&r.$parsers.push(function(t){var n=e.prop(Sr)||{};return n.badInput||n.typeMismatch?void 0:t})}function vr(t){t.$$parserName="number",t.$parsers.push(function(e){return t.$isEmpty(e)?null:Vo.test(e)?parseFloat(e):void 0}),t.$formatters.push(function(e){if(!t.$isEmpty(e)){if(!M(e))throw ba("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e})}function $r(t){return y(t)&&!M(t)&&(t=parseFloat(t)),Yr(t)?void 0:t}function br(t){return(0|t)===t}function yr(t){var e=t.toString(),n=e.indexOf(".");if(-1===n){if(-1<t&&t<1){var r=/e-(\d+)$/.exec(e);if(r)return Number(r[1])}return 0}return e.length-n-1}function Er(t,e,n){var r=Number(t),i=!br(r),o=!br(e),a=!br(n);if(i||o||a){var s=i?yr(r):0,c=o?yr(e):0,l=a?yr(n):0,u=Math.max(s,c,l),d=Math.pow(10,u);r*=d,e*=d,n*=d,i&&(r=Math.round(r)),o&&(e=Math.round(e)),a&&(n=Math.round(n))}return(r-e)%n==0}function Cr(t,e,n,r,i){var o;if(y(r)){if(!(o=t(r)).constant)throw ba("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function wr(t,e){function n(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i===e[o])continue t;n.push(i)}return n}function r(t){return t&&t.split(" ")}function i(t){var e=t;return Kr(t)?e=t.map(i).join(" "):E(t)&&(e=Object.keys(t).filter(function(e){return t[e]}).join(" ")),e}t="ngClass"+t;var a;return["$parse",function(s){return{restrict:"AC",link:function(c,l,u){function d(t){t=h(r(t),1),u.$addClass(t)}function m(t){t=h(r(t),-1),u.$removeClass(t)}function p(t,e){var i=r(t),o=r(e),a=n(i,o),s=n(o,i),c=h(a,-1),l=h(s,1);u.$addClass(l),u.$removeClass(c)}function h(t,e){var n=[];return o(t,function(t){(e>0||g[t])&&(g[t]=(g[t]||0)+e,g[t]===+(e>0)&&n.push(t))}),n.join(" ")}var f,g=l.data("$classCounts"),v=!0;g||(g=vt(),l.data("$classCounts",g)),"ngClass"!==t&&(a||(a=s("$index",function(t){return 1&t})),c.$watch(a,function(t){t===e?d(f):m(f),v=t})),c.$watch(s(u[t],i),function(t){w(t)||(t=i(t)),v===e&&p(f,t),f=t})}}}]}function Mr(t,e,n,r,i,o,a,s,c){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=c(n.name||"",!1)(t),this.$$parentForm=Io,this.$options=ya,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.$$currentValidationRunId=0,Object.defineProperty(this,"$$scope",{value:t}),this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=e,lr(this),Ar(this)}function Ar(t){t.$$scope.$watch(function(e){var n=t.$$ngModelGet(e);if(n!==t.$modelValue&&(t.$modelValue===t.$modelValue||n===n)){t.$modelValue=t.$$rawModelValue=n,t.$$parserValid=void 0;for(var r=t.$formatters,i=r.length,o=n;i--;)o=r[i](o);t.$viewValue!==o&&(t.$$updateEmptyClasses(o),t.$viewValue=t.$$lastCommittedViewValue=o,t.$render(),t.$$runValidators(t.$modelValue,t.$viewValue,f))}return n})}function kr(t){this.$$options=t}function xr(t,e){o(e,function(e,n){y(t[n])||(t[n]=e)})}function Tr(t,e){t.prop("selected",e),t.attr("selected",e)}var _r=/^\/(.+)\/([a-z]*)$/,Sr="validity",Nr=Object.prototype.hasOwnProperty,Or={objectMaxDepth:5},Ir=function(t){return w(t)?t.toLowerCase():t},Dr=function(t){return w(t)?t.toUpperCase():t};"i"!=="I".toLowerCase()&&(Ir=function(t){return w(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Dr=function(t){return w(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t});var Rr,Pr,Hr,Lr,jr=[].slice,Fr=[].splice,Vr=[].push,Br=Object.prototype.toString,qr=Object.getPrototypeOf,Ur=e("ng"),zr=t.angular||(t.angular={}),Wr=0;Rr=t.document.documentMode;var Yr=Number.isNaN||function(t){return t!==t};f.$inject=[],g.$inject=[];var Kr=Array.isArray,Gr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,Xr=function(t){return w(t)?t.trim():t},Jr=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Qr=function(){if(!y(Qr.rules)){var e=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(e){var n=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");Qr.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else Qr.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return Qr.rules},Zr=function(){if(y(Zr.name_))return Zr.name_;var e,n,r,i,o=ei.length;for(n=0;n<o;++n)if(r=ei[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return Zr.name_=i},ti=/:/g,ei=["ng-","data-ng-","ng:","x-ng-"],ni=function(e){var n=e.currentScript;if(!n)return!0;if(!(n instanceof t.HTMLScriptElement||n instanceof t.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every(function(t){if(!t)return!0;if(!t.value)return!1;var n=e.createElement("a");if(n.href=t.value,e.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}})}(t.document),ri=/[A-Z]/g,ii=!1,oi=1,ai=3,si=8,ci=9,li=11,ui={full:"1.6.4",major:1,minor:6,dot:4,codeName:"phenomenal-footnote"};Ot.expando="ng339";var di=Ot.cache={},mi=1;Ot._data=function(t){return this.cache[t[this.expando]]||{}};var pi=/-([a-z])/g,hi=/^-ms-/,fi={mouseleave:"mouseout",mouseenter:"mouseover"},gi=e("jqLite"),vi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,$i=/<|&#?\w+;/,bi=/<([\w:-]+)/,yi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ei={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ei.optgroup=Ei.option,Ei.tbody=Ei.tfoot=Ei.colgroup=Ei.caption=Ei.thead,Ei.th=Ei.td;var Ci=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},wi=Ot.prototype={ready:Kt,toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Pr(t>=0?this[t]:this[this.length+t])},length:0,push:Vr,sort:[].sort,splice:[].splice},Mi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){Mi[Ir(t)]=t});var Ai={};o("input,select,option,textarea,button,form,details".split(","),function(t){Ai[t]=!0});var ki={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:Lt,removeData:Pt,hasData:function(t){for(var e in di[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)Pt(t[e])}},function(t,e){Ot[e]=t}),o({data:Lt,inheritedData:Ut,scope:function(t){return Pr.data(t,"$scope")||Ut(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Pr.data(t,"$isolateScope")||Pr.data(t,"$isolateScopeNoTemplate")},controller:qt,injector:function(t){return Ut(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:jt,css:function(t,e,n){if(e=Mt(e),!y(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r,i=t.nodeType;if(i!==ai&&2!==i&&i!==si&&t.getAttribute){var o=Ir(e),a=Mi[o];if(!y(n))return r=t.getAttribute(e),a&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&a?t.removeAttribute(e):t.setAttribute(e,a?o:n)}},prop:function(t,e,n){if(!y(n))return t[e];t[e]=n},text:function(){function t(t,e){if(b(e)){var n=t.nodeType;return n===oi||n===ai?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(b(e)){if(t.multiple&&"select"===j(t)){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),n}return t.value}t.value=e},html:function(t,e){if(b(e))return t.innerHTML;Dt(t,!0),t.innerHTML=e},empty:zt},function(t,e){Ot.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==zt&&b(2===t.length&&t!==jt&&t!==qt?e:n)){if(E(e)){for(r=0;r<o;r++)if(t===Lt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var a=t.$dv,s=b(a)?Math.min(o,1):o,c=0;c<s;c++){var l=t(this[c],e,n);a=a?a+l:l}return a}for(r=0;r<o;r++)t(this[r],e,n);return this}}),o({removeData:Pt,on:function(t,e,n,r){if(y(r))throw gi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Tt(t)){var i=Ht(t,!0),o=i.events,a=i.handle;a||(a=i.handle=Jt(t,o));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],c=s.length,l=function(e,r,i){var s=o[e];s||((s=o[e]=[]).specialHandlerWrapper=r,"$destroy"===e||i||t.addEventListener(e,a)),s.push(n)};c--;)e=s[c],fi[e]?(l(fi[e],Zt),l(e,void 0,!0)):l(e)}},off:Rt,one:function(t,e,n){(t=Pr(t)).on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;Dt(t),o(new Ot(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){t.nodeType===oi&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===oi||n===li)for(var r=0,i=(e=new Ot(e)).length;r<i;r++){var o=e[r];t.appendChild(o)}},prepend:function(t,e){if(t.nodeType===oi){var n=t.firstChild;o(new Ot(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){Nt(t,Pr(e).eq(0).clone()[0])},remove:Wt,detach:function(t){Wt(t,!0)},after:function(t,e){var n=t,r=t.parentNode;if(r)for(var i=0,o=(e=new Ot(e)).length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Vt,removeClass:Ft,toggleClass:function(t,e,n){e&&o(e.split(" "),function(e){var r=n;b(r)&&(r=!jt(t,e)),(r?Vt:Ft)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==li?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:It,triggerHandler:function(t,e,n){var r,i,a,s=e.type||e,c=Ht(t),l=c&&c.events,u=l&&l[s];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:f,type:s,target:t},e.type&&(r=d(r,e)),i=yt(u),a=n?[r].concat(n):[r],o(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,a)}))}},function(t,e){Ot.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o<a;o++)b(i)?y(i=t(this[o],e,n,r))&&(i=Pr(i)):Bt(i,t(this[o],e,n,r));return y(i)?i:this}}),Ot.prototype.bind=Ot.prototype.on,Ot.prototype.unbind=Ot.prototype.off;var xi=Object.create(null);ne.prototype={_idx:function(t){return t===this._lastKey?this._lastIndex:(this._lastKey=t,this._lastIndex=this._keys.indexOf(t),this._lastIndex)},_transformKey:function(t){return Yr(t)?xi:t},get:function(t){t=this._transformKey(t);var e=this._idx(t);if(-1!==e)return this._values[e]},set:function(t,e){t=this._transformKey(t);var n=this._idx(t);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=t,this._values[n]=e},delete:function(t){t=this._transformKey(t);var e=this._idx(t);return-1!==e&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Ti=ne,_i=[function(){this.$get=[function(){return Ti}]}],Si=/^([^(]+?)=>/,Ni=/^[^(]*\(\s*([^)]*)\)/m,Oi=/,/,Ii=/^\s*(_?)(\S+?)\1\s*$/,Di=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ri=e("$injector");ae.$$annotate=function(t,e,n){var r,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw w(n)&&n||(n=t.name||oe(t)),Ri("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o(ie(t)[1].split(Oi),function(t){t.replace(Ii,function(t,e,n){r.push(n)})})}t.$inject=r}}else Kr(t)?(pt(t[i=t.length-1],"fn"),r=t.slice(0,i)):pt(t,"fn",!0);return r};var Pi=e("$animate"),Hi=1,Li=function(){this.$get=f},ji=function(){var t=new Ti,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(t,e,n){var r=!1;return e&&o(e=w(e)?e.split(" "):Kr(e)?e:[],function(e){e&&(r=!0,t[e]=n)}),r}function a(){o(e,function(e){var n=t.get(e);if(n){var r=ue(e.attr("class")),i="",a="";o(n,function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:a+=(a.length?" ":"")+e)}),o(e,function(t){i&&Vt(t,i),a&&Ft(t,a)}),t.delete(e)}}),e.length=0}function s(n,o,s){var c=t.get(n)||{},l=i(c,o,!0),u=i(c,s,!1);(l||u)&&(t.set(n,c),e.push(n),1===e.length&&r.$$postDigest(a))}return{enabled:f,on:f,off:f,pin:f,push:function(t,e,r,i){i&&i(),(r=r||{}).from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&s(t,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Fi=["$provide",function(t){var e=this,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Pi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null)&&new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,Pi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate");return n},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=le(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",de(o))},move:function(n,r,i,o){return r=r&&Pr(r),i=i&&Pr(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",de(o))},leave:function(e,n){return t.push(e,"leave",de(n),function(){e.remove()})},addClass:function(e,n,r){return r=de(r),r.addClass=ce(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=de(r),r.removeClass=ce(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=de(i),i.addClass=ce(i.addClass,n),i.removeClass=ce(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return o=de(o),o.from=o.from?d(o.from,n):n,o.to=o.to?d(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=ce(o.tempClasses,i),t.push(e,"animate",o)}}}]}],Vi=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]},Bi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,r,i){function a(t){this.setHost(t);var e=n(),o=function(t){i(t,0,!1)};this._doneCallbacks=[],this._tick=function(t){r()?o(t):e(t)},this._state=0}return a.chain=function(t,e){function n(){r!==t.length?t[r](function(t){!1!==t?(r++,n()):e(!1)}):e(!0)}var r=0;n()},a.all=function(t,e){function n(n){i=i&&n,++r===t.length&&e(i)}var r=0,i=!0;o(t,function(t){t.done(n)})},a.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:f,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){!1===e?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._tick(function(){e._resolve(t)}))},_resolve:function(t){2!==this._state&&(o(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},a}]},qi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){function i(){return t(function(){o(),s||c.complete(),s=!0}),c}function o(){a.addClass&&(e.addClass(a.addClass),a.addClass=null),a.removeClass&&(e.removeClass(a.removeClass),a.removeClass=null),a.to&&(e.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=B(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(e.css(a.from),a.from=null);var s,c=new n;return{start:i,end:i}}}]},Ui=e("$compile"),zi=new function(){};ge.$inject=["$provide","$$sanitizeUriProvider"],ve.prototype.isFirstChange=function(){return this.previousValue===zi};var Wi=/^((?:x|data)[:\-_])/i,Yi=/[:\-_]+(.)/g,Ki=e("$controller"),Gi=/^(\S+)(\s+as\s+([\w$]+))?$/,Xi=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Pr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Ji="application/json",Qi={"Content-Type":Ji+";charset=utf-8"},Zi=/^\[|^\{(?!\{)/,to={"[":/]$/,"{":/}$/},eo=/^\)]\}',?\n/,no=e("$http"),ro=zr.$interpolateMinErr=e("$interpolate");ro.throwNoconcat=function(t){throw ro("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",t)},ro.interr=function(t,e){return ro("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var io=function(){this.$get=function(){function t(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}var e=zr.callbacks,n={};return{createCallback:function(r){var i="_"+(e.$$counter++).toString(36),o="angular.callbacks."+i,a=t(i);return n[o]=e[i]=a,o},wasCalled:function(t){return n[t].called},getResponse:function(t){return n[t].data},removeCallback:function(t){var r=n[t];delete e[r.id],delete n[t]}}}},oo=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ao={http:80,https:443,ftp:21},so=e("$location"),co=/^\s*[\\/]{2,}/,lo={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Ze("$$absUrl"),url:function(t){if(b(t))return this.$$url;var e=oo.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Ze("$$protocol"),host:Ze("$$host"),port:Ze("$$port"),path:tn("$$path",function(t){return"/"===(t=null!==t?t.toString():"").charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(w(t)||M(t))t=t.toString(),this.$$search=nt(t);else{if(!E(t))throw so("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");o(t=B(t,{}),function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:b(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:tn("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};o([Qe,Je,Xe],function(t){t.prototype=Object.create(lo),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Xe||!this.$$html5)throw so("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=b(e)?null:e,this.$$urlUpdatedByLocation=!0,this}});var uo=e("$parse"),mo={}.constructor.prototype.valueOf,po=vt();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){po[t]=!0});var ho={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},fo=function(t){this.options=t};fo.prototype={constructor:fo,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=po[e],o=po[n],a=po[r];if(i||o||a){var s=a?r:o?n:e;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(t,e){return-1!==e.indexOf(t)},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw uo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Ir(this.text.charAt(this.index));if("."===n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,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+=ho[o]||o;i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var go=function(t,e){this.lexer=t,this.options=e};go.Program="Program",go.ExpressionStatement="ExpressionStatement",go.AssignmentExpression="AssignmentExpression",go.ConditionalExpression="ConditionalExpression",go.LogicalExpression="LogicalExpression",go.BinaryExpression="BinaryExpression",go.UnaryExpression="UnaryExpression",go.CallExpression="CallExpression",go.MemberExpression="MemberExpression",go.Identifier="Identifier",go.Literal="Literal",go.ArrayExpression="ArrayExpression",go.Property="Property",go.ObjectExpression="ObjectExpression",go.ThisExpression="ThisExpression",go.LocalsExpression="LocalsExpression",go.NGValueParameter="NGValueParameter",go.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:go.Program,body:t}},expressionStatement:function(){return{type:go.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();if(this.expect("=")){if(!un(t))throw uo("lval","Trying to assign a value to a non l-value");t={type:go.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:go.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:go.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:go.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:go.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:go.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:go.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:go.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:go.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=B(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:go.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:go.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:go.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:go.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:go.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:go.Identifier,name:t.text}},constant:function(){return{type:go.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:go.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:go.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:go.ObjectExpression,properties:e}},throwError:function(t,e){throw uo("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw uo("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw uo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],a=o.text;if(a===e||a===n||a===r||a===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:go.ThisExpression},$locals:{type:go.LocalsExpression}}},hn.prototype={compile:function(t){var e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},cn(t,e.$filter);var n,r="";if(this.stage="assign",n=dn(t)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var a=ln(t.body);e.stage="inputs",o(a,function(t,n){var r="fn"+n;e.state[r]={vars:[],body:[],own:{}},e.state.computing=r;var i=e.nextId();e.recurse(t,i),e.return_(i),e.state.inputs.push(r),t.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(t);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",c=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,rn,on,an);return this.state=this.stage=void 0,c},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return o(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return o(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,r,i,a){var s,c,l,u,d,m=this;if(r=r||f,!a&&y(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,r,i,!0));switch(t.type){case go.Program:o(t.body,function(e,n){m.recurse(e.expression,void 0,void 0,function(t){c=t}),n!==t.body.length-1?m.current().body.push(c,";"):m.return_(c)});break;case go.Literal:u=this.escape(t.value),this.assign(e,u),r(e||u);break;case go.UnaryExpression:this.recurse(t.argument,void 0,void 0,function(t){c=t}),u=t.operator+"("+this.ifDefined(c,0)+")",this.assign(e,u),r(u);break;case go.BinaryExpression:this.recurse(t.left,void 0,void 0,function(t){s=t}),this.recurse(t.right,void 0,void 0,function(t){c=t}),u="+"===t.operator?this.plus(s,c):"-"===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(c,0):"("+s+")"+t.operator+"("+c+")",this.assign(e,u),r(u);break;case go.LogicalExpression:e=e||this.nextId(),m.recurse(t.left,e),m.if_("&&"===t.operator?e:m.not(e),m.lazyRecurse(t.right,e)),r(e);break;case go.ConditionalExpression:e=e||this.nextId(),m.recurse(t.test,e),m.if_(e,m.lazyRecurse(t.alternate,e),m.lazyRecurse(t.consequent,e)),r(e);break;case go.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===m.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),m.if_("inputs"===m.stage||m.not(m.getHasOwnProperty("l",t.name)),function(){m.if_("inputs"===m.stage||"s",function(){i&&1!==i&&m.if_(m.isNull(m.nonComputedMember("s",t.name)),m.lazyAssign(m.nonComputedMember("s",t.name),"{}")),m.assign(e,m.nonComputedMember("s",t.name))})},e&&m.lazyAssign(e,m.nonComputedMember("l",t.name))),r(e);break;case go.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),m.recurse(t.object,s,void 0,function(){m.if_(m.notNull(s),function(){t.computed?(c=m.nextId(),m.recurse(t.property,c),m.getStringValue(c),i&&1!==i&&m.if_(m.not(m.computedMember(s,c)),m.lazyAssign(m.computedMember(s,c),"{}")),u=m.computedMember(s,c),m.assign(e,u),n&&(n.computed=!0,n.name=c)):(i&&1!==i&&m.if_(m.isNull(m.nonComputedMember(s,t.property.name)),m.lazyAssign(m.nonComputedMember(s,t.property.name),"{}")),u=m.nonComputedMember(s,t.property.name),m.assign(e,u),n&&(n.computed=!1,n.name=t.property.name))},function(){m.assign(e,"undefined")}),r(e)},!!i);break;case go.CallExpression:e=e||this.nextId(),t.filter?(c=m.filter(t.callee.name),l=[],o(t.arguments,function(t){var e=m.nextId();m.recurse(t,e),l.push(e)}),u=c+"("+l.join(",")+")",m.assign(e,u),r(e)):(c=m.nextId(),s={},l=[],m.recurse(t.callee,c,s,function(){m.if_(m.notNull(c),function(){o(t.arguments,function(e){m.recurse(e,t.constant?void 0:m.nextId(),void 0,function(t){l.push(t)})}),u=s.name?m.member(s.context,s.name,s.computed)+"("+l.join(",")+")":c+"("+l.join(",")+")",m.assign(e,u)},function(){m.assign(e,"undefined")}),r(e)}));break;case go.AssignmentExpression:c=this.nextId(),s={},this.recurse(t.left,void 0,s,function(){m.if_(m.notNull(s.context),function(){m.recurse(t.right,c),u=m.member(s.context,s.name,s.computed)+t.operator+c,m.assign(e,u),r(e||u)})},1);break;case go.ArrayExpression:l=[],o(t.elements,function(e){m.recurse(e,t.constant?void 0:m.nextId(),void 0,function(t){l.push(t)})}),u="["+l.join(",")+"]",this.assign(e,u),r(e||u);break;case go.ObjectExpression:l=[],d=!1,o(t.properties,function(t){t.computed&&(d=!0)}),d?(e=e||this.nextId(),this.assign(e,"{}"),o(t.properties,function(t){t.computed?(s=m.nextId(),m.recurse(t.key,s)):s=t.key.type===go.Identifier?t.key.name:""+t.key.value,c=m.nextId(),m.recurse(t.value,c),m.assign(m.member(e,s,t.computed),c)})):(o(t.properties,function(e){m.recurse(e.value,t.constant?void 0:m.nextId(),void 0,function(t){l.push(m.escape(e.key.type===go.Identifier?e.key.name:""+e.key.value)+":"+t)})}),u="{"+l.join(",")+"}",this.assign(e,u)),r(e||u);break;case go.ThisExpression:this.assign(e,"s"),r(e||"s");break;case go.LocalsExpression:this.assign(e,"l"),r(e||"l");break;case go.NGValueParameter:this.assign(e,"v"),r(e||"v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},isNull:function(t){return t+"==null"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){var n=/[^$_a-zA-Z0-9]/g;return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?t+"."+e:t+'["'+e.replace(n,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(w(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(M(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw uo("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},fn.prototype={compile:function(t){var e=this;cn(t,e.$filter);var n,r;(n=dn(t))&&(r=this.recurse(n));var i,a=ln(t.body);a&&(i=[],o(a,function(t,n){var r=e.recurse(t);t.input=r,i.push(r),t.watchId=n}));var s=[];o(t.body,function(t){s.push(e.recurse(t.expression))});var c=0===t.body.length?f:1===t.body.length?s[0]:function(t,e){var n;return o(s,function(r){n=r(t,e)}),n};return r&&(c.assign=function(t,e,n){return r(t,n,e)}),i&&(c.inputs=i),c},recurse:function(t,e,n){var r,i,a,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case go.Literal:return this.value(t.value,e);case go.UnaryExpression:return i=this.recurse(t.argument),this["unary"+t.operator](i,e);case go.BinaryExpression:case go.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this["binary"+t.operator](r,i,e);case go.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case go.Identifier:return s.identifier(t.name,e,n);case go.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case go.CallExpression:return a=[],o(t.arguments,function(t){a.push(s.recurse(t))}),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r,o){for(var s=[],c=0;c<a.length;++c)s.push(a[c](t,n,r,o));var l=i.apply(void 0,s,o);return e?{context:void 0,name:void 0,value:l}:l}:function(t,n,r,o){var s,c=i(t,n,r,o);if(null!=c.value){for(var l=[],u=0;u<a.length;++u)l.push(a[u](t,n,r,o));s=c.value.apply(c.context,l)}return e?{value:s}:s};case go.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,o,a){var s=r(t,n,o,a),c=i(t,n,o,a);return s.context[s.name]=c,e?{value:c}:c};case go.ArrayExpression:return a=[],o(t.elements,function(t){a.push(s.recurse(t))}),function(t,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](t,n,r,i));return e?{value:o}:o};case go.ObjectExpression:return a=[],o(t.properties,function(t){t.computed?a.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):a.push({key:t.key.type===go.Identifier?t.key.name:""+t.key.value,computed:!1,value:s.recurse(t.value)})}),function(t,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(t,n,r,i)]=a[s].value(t,n,r,i):o[a[s].key]=a[s].value(t,n,r,i);return e?{value:o}:o};case go.ThisExpression:return function(t){return e?{value:t}:t};case go.LocalsExpression:return function(t,n){return e?{value:n}:n};case go.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=y(a)?+a:0,e?{value:a}:a}},"unary-":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=y(a)?-a:-0,e?{value:a}:a}},"unary!":function(t,e){return function(n,r,i,o){var a=!t(n,r,i,o);return e?{value:a}:a}},"binary+":function(t,e,n){return function(r,i,o,a){var s=an(t(r,i,o,a),e(r,i,o,a));return n?{value:s}:s}},"binary-":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),c=e(r,i,o,a),l=(y(s)?s:0)-(y(c)?c:0);return n?{value:l}:l}},"binary*":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)*e(r,i,o,a);return n?{value:s}:s}},"binary/":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)/e(r,i,o,a);return n?{value:s}:s}},"binary%":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)%e(r,i,o,a);return n?{value:s}:s}},"binary===":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)===e(r,i,o,a);return n?{value:s}:s}},"binary!==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!==e(r,i,o,a);return n?{value:s}:s}},"binary==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)==e(r,i,o,a);return n?{value:s}:s}},"binary!=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!=e(r,i,o,a);return n?{value:s}:s}},"binary<":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<e(r,i,o,a);return n?{value:s}:s}},"binary>":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>e(r,i,o,a);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<=e(r,i,o,a);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>=e(r,i,o,a);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)&&e(r,i,o,a);return n?{value:s}:s}},"binary||":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)||e(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(t,e,n,r){return function(i,o,a,s){var c=t(i,o,a,s)?e(i,o,a,s):n(i,o,a,s);return r?{value:c}:c}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n){return function(r,i,o,a){var s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});var c=s?s[t]:void 0;return e?{context:s,name:t,value:c}:c}},computedMember:function(t,e,n,r){return function(i,o,a,s){var c,l,u=t(i,o,a,s);return null!=u&&(c=rn(c=e(i,o,a,s)),r&&1!==r&&u&&!u[c]&&(u[c]={}),l=u[c]),n?{context:u,name:c,value:l}:l}},nonComputedMember:function(t,e,n,r){return function(i,o,a,s){var c=t(i,o,a,s);r&&1!==r&&c&&null==c[e]&&(c[e]={});var l=null!=c?c[e]:void 0;return n?{context:c,name:e,value:l}:l}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}},gn.prototype={constructor:gn,parse:function(t){var e=this.ast.ast(t),n=this.astCompiler.compile(e);return n.literal=mn(e),n.constant=pn(e),n}};var vo=e("$sce"),$o={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},bo=/_([a-z])/g,yo=e("$compile"),Eo=t.document.createElement("a"),Co=Dn(t.location.href);Hn.$inject=["$document"],jn.$inject=["$provide"];var wo=22,Mo=".",Ao="0";Un.$inject=["$locale"],zn.$inject=["$locale"];var ko={yyyy:Xn("FullYear",4,0,!1,!0),yy:Xn("FullYear",2,0,!0,!0),y:Xn("FullYear",1,0,!1,!0),MMMM:Jn("Month"),MMM:Jn("Month",!0),MM:Xn("Month",2,1),M:Xn("Month",1,1),LLLL:Jn("Month",!1,!0),dd:Xn("Date",2),d:Xn("Date",1),HH:Xn("Hours",2),H:Xn("Hours",1),hh:Xn("Hours",2,-12),h:Xn("Hours",1,-12),mm:Xn("Minutes",2),m:Xn("Minutes",1),ss:Xn("Seconds",2),s:Xn("Seconds",1),sss:Xn("Milliseconds",3),EEEE:Jn("Day"),EEE:Jn("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Gn(Math[r>0?"floor":"ceil"](r/60),2)+Gn(Math.abs(r%60),2)},ww:tr(2),w:tr(1),G:er,GG:er,GGG:er,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},xo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,To=/^-?\d+$/;nr.$inject=["$locale"];var _o=v(Ir),So=v(Dr);ar.$inject=["$parse"];var No=v({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Br.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Oo={};o(Mi,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!==t){var r=$e("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),Oo[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(ki,function(t,e){Oo[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(_r);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),o(["src","srcset","href"],function(t){var e=$e("ng-"+t);Oo[e]=function(){return{priority:99,link:function(n,r,i){var o=t,a=t;"href"===t&&"[object SVGAnimatedString]"===Br.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(e,function(e){e?(i.$set(a,e),Rr&&o&&r.prop(o,i[a])):"href"===t&&i.$set(a,null)})}}}});var Io={$addControl:f,$$renameControl:function(t,e){t.$name=e},$removeControl:f,$setValidity:f,$setDirty:f,$setPristine:f,$setSubmitted:f},Do="ng-pending";cr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],cr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(t){t.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(t){t.$commitViewValue()})},$addControl:function(t){ht(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl:function(t){t.$name&&this[t.$name]===t&&delete this[t.$name],o(this.$pending,function(e,n){this.$setValidity(n,null,t)},this),o(this.$error,function(e,n){this.$setValidity(n,null,t)},this),o(this.$$success,function(e,n){this.$setValidity(n,null,t)},this),V(this.$$controls,t),t.$$parentForm=Io},$setDirty:function(){this.$$animate.removeClass(this.$$element,va),this.$$animate.addClass(this.$$element,$a),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,va,$a+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(t){t.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(t){t.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},ur({clazz:cr,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&&r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(V(r,n),0===r.length&&delete t[e])}});var Ro=function(t){return["$timeout","$parse",function(e,n){function r(t){return""===t?n('this[""]').assign:n(t).assign||f}return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:cr,compile:function(n,i){n.addClass(va).addClass(fa);var o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,a){var s=a[0];if(!("action"in i)){var c=function(e){t.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),e.preventDefault()};n[0].addEventListener("submit",c),n.on("$destroy",function(){e(function(){n[0].removeEventListener("submit",c)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var l=o?r(s.$name):f;o&&(l(t,s),i.$observe(o,function(e){s.$name!==e&&(l(t,void 0),s.$$parentForm.$$renameControl(s,e),(l=r(s.$name))(t,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),l(t,void 0),d(s,Io)})}}}}}]},Po=Ro(),Ho=Ro(!0),Lo=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,jo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Fo=/^(?=.{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])?)*$/,Vo=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Bo=/^(\d{4,})-(\d{2})-(\d{2})$/,qo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Uo=/^(\d{4,})-W(\d\d)$/,zo=/^(\d{4,})-(\d\d)$/,Wo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yo="keydown wheel mousedown",Ko=vt();o("date,datetime-local,month,time,week".split(","),function(t){Ko[t]=!0});var Go={text:function(t,e,n,r,i,o){pr(t,e,n,r,i,o),mr(r)},date:fr("date",Bo,hr(Bo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":fr("datetimelocal",qo,hr(qo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:fr("time",Wo,hr(Wo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:fr("week",Uo,function(t,e){if(A(t))return t;if(w(t)){Uo.lastIndex=0;var n=Uo.exec(t);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,c=0,l=Qn(r),u=7*(i-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),c=e.getMilliseconds()),new Date(r,0,l.getDate()+u,o,a,s,c)}}return NaN},"yyyy-Www"),month:fr("month",zo,hr(zo,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,r,i,o){gr(t,e,n,r),vr(r),pr(t,e,n,r,i,o);var a,s;if((y(n.min)||n.ngMin)&&(r.$validators.min=function(t){return r.$isEmpty(t)||b(a)||t>=a},n.$observe("min",function(t){a=$r(t),r.$validate()})),(y(n.max)||n.ngMax)&&(r.$validators.max=function(t){return r.$isEmpty(t)||b(s)||t<=s},n.$observe("max",function(t){s=$r(t),r.$validate()})),y(n.step)||n.ngStep){var c;r.$validators.step=function(t,e){return r.$isEmpty(e)||b(c)||Er(e,a||0,c)},n.$observe("step",function(t){c=$r(t),r.$validate()})}},url:function(t,e,n,r,i,o){pr(t,e,n,r,i,o),mr(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||jo.test(n)}},email:function(t,e,n,r,i,o){pr(t,e,n,r,i,o),mr(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Fo.test(n)}},radio:function(t,e,n,r){var i=!n.ngTrim||"false"!==Xr(n.ngTrim);b(n.name)&&e.attr("name",c());e.on("click",function(t){var o;e[0].checked&&(o=n.value,i&&(o=Xr(o)),r.$setViewValue(o,t&&t.type))}),r.$render=function(){var t=n.value;i&&(t=Xr(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i,o){function a(t,r){e.attr(t,n[t]),n.$observe(t,r)}gr(t,e,n,r),vr(r),pr(t,e,n,r,i,o);var s=r.$$hasNativeValidators&&"range"===e[0].type,c=s?0:void 0,l=s?100:void 0,u=s?1:void 0,d=e[0].validity,m=y(n.min),p=y(n.max),h=y(n.step),f=r.$render;r.$render=s&&y(d.rangeUnderflow)&&y(d.rangeOverflow)?function(){f(),r.$setViewValue(e.val())}:f,m&&(r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||b(c)||e>=c},a("min",function(t){if(c=$r(t),!Yr(r.$modelValue))if(s){var n=e.val();c>n&&(n=c,e.val(n)),r.$setViewValue(n)}else r.$validate()})),p&&(r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||b(l)||e<=l},a("max",function(t){if(l=$r(t),!Yr(r.$modelValue))if(s){var n=e.val();l<n&&(e.val(l),n=l<c?c:l),r.$setViewValue(n)}else r.$validate()})),h&&(r.$validators.step=s?function(){return!d.stepMismatch}:function(t,e){return r.$isEmpty(e)||b(u)||Er(e,c||0,u)},a("step",function(t){u=$r(t),Yr(r.$modelValue)||(s&&r.$viewValue!==e.val()?r.$setViewValue(e.val()):r.$validate())}))},checkbox:function(t,e,n,r,i,o,a,s){var c=Cr(s,t,"ngTrueValue",n.ngTrueValue,!0),l=Cr(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",function(t){r.$setViewValue(e[0].checked,t&&t.type)}),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return U(t,c)}),r.$parsers.push(function(t){return t?c:l})},hidden:f,button:f,submit:f,reset:f,file:f},Xo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Go[Ir(a.type)]||Go.text)(i,o,a,s[0],e,t,n,r)}}}}],Jo=/^(true|false|\d+)$/,Qo=function(){function t(t,e,n){var r=y(n)?n:9===Rr?"":null;t.prop("value",r),e.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,n){return Jo.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,function(e){t(n,r,e)})}}}},Zo=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=$t(t)})}}}}],ta=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=b(t)?"":t})}}}}],ea=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,function(e){return t.valueOf(e)});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")})}}}}],na=v({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),ra=wr("",!0),ia=wr("Odd",0),oa=wr("Even",1),aa=sr({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),sa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ca={},la={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=$e("ng-"+t);ca[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[e]);return function(e,n){n.on(t,function(n){var i=function(){a(e,{$event:n})};la[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var ua=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,c,l;n.$watch(i.ngIf,function(n){n?c||a(function(n,o){c=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),s={clone:n},t.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),c&&(c.$destroy(),c=null),s&&(l=gt(s.clone),t.leave(l).done(function(t){!1!==t&&(l=null)}),s=null))})}}}],da=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:zr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,c,l,u){var d,m,p,h=0,f=function(){m&&(m.remove(),m=null),d&&(d.$destroy(),d=null),p&&(n.leave(p).done(function(t){!1!==t&&(m=null)}),m=p,p=null)};r.$watch(o,function(o){var c=function(t){!1===t||!y(s)||s&&!r.$eval(s)||e()},m=++h;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&m===h){var e=r.$new();l.template=t;var s=u(e,function(t){f(),n.enter(t,null,i).done(c)});p=s,(d=e).$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||m===h&&(f(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(f(),l.template=null)})}}}}],ma=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(Br.call(r[0]).match(/SVG/))return r.empty(),void e(_t(o.template,t.document).childNodes)(n,function(t){r.append(t)},{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],pa=sr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),ha=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,r){var i=n.ngList||", ",a="false"!==n.ngTrim,s=a?Xr(i):i;r.$parsers.push(function(t){if(!b(t)){var e=[];return t&&o(t.split(s),function(t){t&&e.push(a?Xr(t):t)}),e}}),r.$formatters.push(function(t){if(Kr(t))return t.join(i)}),r.$isEmpty=function(t){return!t||!t.length}}}},fa="ng-valid",ga="ng-invalid",va="ng-pristine",$a="ng-dirty",ba=e("ngModel");Mr.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Mr.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var t=this.$$parse(this.$$attr.ngModel+"()"),e=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var n=this.$$parsedNgModel(e);return k(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){k(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw ba("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,tt(this.$$element))},$render:f,$isEmpty:function(t){return b(t)||""===t||null===t||t!==t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,$a),this.$$animate.addClass(this.$$element,va)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,va),this.$$animate.addClass(this.$$element,$a),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!Yr(this.$modelValue)){var t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(e,t,function(t){i||n===t||(o.$modelValue=t?e:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(t,e,n){function r(t,e){a===s.$$currentValidationRunId&&s.$setValidity(t,e)}function i(t){a===s.$$currentValidationRunId&&n(t)}var a=++this.$$currentValidationRunId,s=this;!function(){var t=s.$$parserName||"parse";return b(s.$$parserValid)?(r(t,null),!0):(s.$$parserValid||(o(s.$validators,function(t,e){r(e,null)}),o(s.$asyncValidators,function(t,e){r(e,null)})),r(t,s.$$parserValid),s.$$parserValid)}()?i(!1):function(){var n=!0;return o(s.$validators,function(i,o){var a=Boolean(i(t,e));n=n&&a,r(o,a)}),!!n||(o(s.$asyncValidators,function(t,e){r(e,null)}),!1)}()?function(){var n=[],a=!0;o(s.$asyncValidators,function(i,o){var s=i(t,e);if(!D(s))throw ba("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);r(o,void 0),n.push(s.then(function(){r(o,!0)},function(){a=!1,r(o,!1)}))}),n.length?s.$$q.all(n).then(function(){i(a)},f):i(!0)}():i(!1)},$commitViewValue:function(){var t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function t(){n.$modelValue!==i&&n.$$writeModelToScope()}var e=this.$$lastCommittedViewValue,n=this;if(this.$$parserValid=!b(e)||void 0,this.$$parserValid)for(var r=0;r<this.$parsers.length;r++)if(e=this.$parsers[r](e),b(e)){this.$$parserValid=!1;break}Yr(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var i=this.$modelValue,o=this.$options.getOption("allowInvalid");this.$$rawModelValue=e,o&&(this.$modelValue=e,t()),this.$$runValidators(e,this.$$lastCommittedViewValue,function(r){o||(n.$modelValue=r?e:void 0,t())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,function(t){try{t()}catch(t){this.$$exceptionHandler(t)}},this)},$setViewValue:function(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit:function(t){var e=this.$options.getOption("debounce");M(e[t])?e=e[t]:M(e.default)&&(e=e.default),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;e>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},e):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t)}},ur({clazz:Mr,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var ya,Ea=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Mr,priority:1,compile:function(e){return e.addClass(va).addClass("ng-untouched").addClass(fa),{pre:function(t,e,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(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$options.getOption("updateOn")&&n.on(a.$options.getOption("updateOn"),function(t){a.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(){a.$touched||(t.$$phase?e.$evalAsync(o):e.$apply(o))})}}}}}],Ca=/(\s+|^)default(\s+|$)/;kr.prototype={getOption:function(t){return this.$$options[t]},createChild:function(t){var e=!1;return t=d({},t),o(t,function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=Xr(n.replace(Ca,function(){return t.updateOnDefault=!0," "})))},this),e&&(delete t["*"],xr(t,this.$$options)),xr(t,ya.$$options),new kr(t)}},ya=new kr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var wa=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:ya,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}},Ma=sr({terminal:!0,priority:1e3}),Aa=e("ngOptions"),ka=/^\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]+?))?$/,xa=["$compile","$document","$parse",function(e,n,r){function a(t,e,n){function o(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function a(t){var e;if(!l&&i(t))e=t;else{e=[];for(var n in t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n)}return e}var s=t.match(ka);if(!s)throw Aa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,tt(e));var c=s[5]||s[7],l=s[6],u=/ as /.test(s[0])&&s[1],d=s[9],m=r(s[2]?s[1]:c),p=u&&r(u)||m,h=d&&r(d),f=d?function(t,e){return h(n,e)}:function(t){return ee(t)},g=function(t,e){return f(t,C(t,e))},v=r(s[2]||s[1]),$=r(s[3]||""),b=r(s[4]||""),y=r(s[8]),E={},C=l?function(t,e){return E[l]=e,E[c]=t,E}:function(t){return E[c]=t,E};return{trackBy:d,getTrackByValue:g,getWatchables:r(y,function(t){for(var e=[],r=a(t=t||[]),i=r.length,o=0;o<i;o++){var c=t===r?o:r[o],l=t[c],u=C(l,c),d=f(l,u);if(e.push(d),s[2]||s[1]){var m=v(n,u);e.push(m)}if(s[4]){var p=b(n,u);e.push(p)}}return e}),getOptions:function(){for(var t=[],e={},r=y(n)||[],i=a(r),s=i.length,c=0;c<s;c++){var l=r===i?c:i[c],u=C(r[l],l),m=p(n,u),h=f(m,u),E=new o(h,m,v(n,u),$(n,u),b(n,u));t.push(E),e[h]=E}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[g(t)]},getViewValueFromOption:function(t){return d?B(t.viewValue):t.viewValue}}}}}var s=t.document.createElement("option"),c=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=f},post:function(t,r,i,l){function u(t,e){var n=s.cloneNode(!1);e.appendChild(n),m(t,n)}function d(t){var e=C.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}function m(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),e.value=t.selectValue}function p(){var t=C&&h.readValue();if(C)for(var e=C.items.length-1;e>=0;e--){var n=C.items[e];Wt(y(n.group)?n.element.parentNode:n.element)}C=w.getOptions();var i={};if(E&&r.prepend(h.emptyOption),C.items.forEach(function(t){var e;y(t.group)?((e=i[t.group])||(e=c.cloneNode(!1),M.appendChild(e),e.label=null===t.group?"null":t.group,i[t.group]=e),u(t,e)):u(t,M)}),r[0].appendChild(M),f.$render(),!f.$isEmpty(t)){var o=h.readValue();(w.trackBy||g?U(t,o):t===o)||(f.$setViewValue(o),f.$render())}}for(var h=l[0],f=l[1],g=i.multiple,v=0,$=r.children(),b=$.length;v<b;v++)if(""===$[v].value){h.hasEmptyOption=!0,h.emptyOption=$.eq(v);break}var E=!!h.emptyOption;Pr(s.cloneNode(!1)).val("?");var C,w=a(i.ngOptions,r,t),M=n[0].createDocumentFragment();h.generateUnknownOptionValue=function(t){return"?"},g?(h.writeValue=function(t){var e=t&&t.map(d)||[];C.items.forEach(function(t){t.element.selected&&!F(e,t)&&(t.element.selected=!1)})},h.readValue=function(){var t=[];return o(r.val()||[],function(e){var n=C.selectValueMap[e];n&&!n.disabled&&t.push(C.getViewValueFromOption(n))}),t},w.trackBy&&t.$watchCollection(function(){if(Kr(f.$viewValue))return f.$viewValue.map(function(t){return w.getTrackByValue(t)})},function(){f.$render()})):(h.writeValue=function(t){var e=C.selectValueMap[r.val()],n=C.getOptionFromViewValue(t);e&&e.element.removeAttribute("selected"),n?(r[0].value!==n.selectValue&&(h.removeUnknownOption(),h.unselectEmptyOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):E?h.selectEmptyOption():h.unknownOption.parent().length?h.updateUnknownOption(t):h.renderUnknownOption(t)},h.readValue=function(){var t=C.selectValueMap[r.val()];return t&&!t.disabled?(h.unselectEmptyOption(),h.removeUnknownOption(),C.getViewValueFromOption(t)):null},w.trackBy&&t.$watch(function(){return w.getTrackByValue(f.$viewValue)},function(){f.$render()})),E&&(h.emptyOption.remove(),e(h.emptyOption)(t),h.emptyOption[0].nodeType===si?(h.hasEmptyOption=!1,h.registerOption=function(t,e){""===e.val()&&(h.hasEmptyOption=!0,h.emptyOption=e,h.emptyOption.removeClass("ng-scope"),f.$render(),e.on("$destroy",function(){h.hasEmptyOption=!1,h.emptyOption=void 0}))}):h.emptyOption.removeClass("ng-scope")),r.empty(),p(),t.$watchCollection(w.getWatchables,p)}}}}],Ta=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,c){function l(t){s.text(t||"")}var u,d=c.count,m=c.$attr.when&&s.attr(c.$attr.when),p=c.offset||0,h=a.$eval(m)||{},g={},v=e.startSymbol(),$=e.endSymbol(),y=v+d+"-"+p+$,E=zr.noop;o(c,function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+Ir(n[2]);h[r]=s.attr(c.$attr[e])}}),o(h,function(t,n){g[n]=e(t.replace(r,y))}),a.$watch(d,function(e){var r=parseFloat(e),i=Yr(r);if(i||r in h||(r=t.pluralCat(r-p)),!(r===u||i&&Yr(u))){E();var o=g[r];b(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+m),E=f,l()):E=a.$watch(o,l),u=r}})}}}],_a=["$parse","$animate","$compile",function(t,n,r){var a=e("ngRepeat"),s=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))},c=function(t){return t.clone[0]},l=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,u){var d=u.ngRepeat,m=r.$$createComment("end ngRepeat",d),p=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var h=p[1],f=p[2],g=p[3],v=p[4];if(!(p=h.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);var $=p[3]||p[1],b=p[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw a("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var y,E,C,w,M={$id:ee};return v?y=t(v):(C=function(t,e){return ee(e)},w=function(t){return t}),function(t,e,r,u,p){y&&(E=function(e,n,r){return b&&(M[b]=e),M[$]=n,M.$index=r,y(t,M)});var h=vt();t.$watchCollection(f,function(r){var u,f,v,y,M,A,k,x,T,_,S,N,O=e[0],I=vt();if(g&&(t[g]=r),i(r))T=r,x=E||C;else{x=E||w,T=[];for(var D in r)Nr.call(r,D)&&"$"!==D.charAt(0)&&T.push(D)}for(y=T.length,S=new Array(y),u=0;u<y;u++)if(M=r===T?u:T[u],A=r[M],k=x(M,A,u),h[k])_=h[k],delete h[k],I[k]=_,S[u]=_;else{if(I[k])throw o(S,function(t){t&&t.scope&&(h[t.id]=t)}),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,k,A);S[u]={id:k,scope:void 0,clone:void 0},I[k]=!0}for(var R in h){if(_=h[R],N=gt(_.clone),n.leave(N),N[0].parentNode)for(u=0,f=N.length;u<f;u++)N[u].$$NG_REMOVED=!0;_.scope.$destroy()}for(u=0;u<y;u++)if(M=r===T?u:T[u],A=r[M],(_=S[u]).scope){v=O;do{v=v.nextSibling}while(v&&v.$$NG_REMOVED);c(_)!==v&&n.move(gt(_.clone),null,O),O=l(_),s(_.scope,u,$,A,b,M,y)}else p(function(t,e){_.scope=e;var r=m.cloneNode(!1);t[t.length++]=r,n.enter(t,null,O),O=r,_.clone=t,I[_.id]=_,s(_.scope,u,$,A,b,M,y)});h=I})}}}}],Sa=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Na=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Oa=sr(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&o(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),Ia=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,c=[],l=[],u=[],d=[],m=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};n.$watch(s,function(n){for(var r,i;u.length;)t.cancel(u.pop());for(r=0,i=d.length;r<i;++r){var s=gt(l[r].clone);d[r].$destroy(),(u[r]=t.leave(s)).done(m(u,r))}l.length=0,d.length=0,(c=a.cases["!"+n]||a.cases["?"])&&o(c,function(n){n.transclude(function(r,i){d.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),t.enter(r,o.parent(),o)})})})}}}],Da=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(t,e,n){return n[e-1]!==t}),function(t){r.cases["!"+t]=r.cases["!"+t]||[],r.cases["!"+t].push({transclude:i,element:e})})}}),Ra=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Pa=e("ngTransclude"),Ha=["$compile",function(t){return{restrict:"EAC",terminal:!0,compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,r,i,o){function a(){n(t,function(t){e.append(t)})}function s(t){for(var e=0,n=t.length;e<n;e++){var r=t[e];if(r.nodeType!==ai||r.nodeValue.trim())return!0}}if(!o)throw Pa("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",tt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var c=r.ngTransclude||r.ngTranscludeSlot;o(function(t,n){t.length&&s(t)?e.append(t):(a(),n.$destroy())},null,c),c&&!o.isSlotFilled(c)&&a()}}}}],La=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"===n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],ja={$setViewValue:f,$render:f},Fa=["$element","$scope",function(e,n){function r(){s||(s=!0,n.$$postDigest(function(){s=!1,o.ngModelCtrl.$render()}))}function i(t){c||(c=!0,n.$$postDigest(function(){n.$$destroyed||(c=!1,o.ngModelCtrl.$setViewValue(o.readValue()),t&&o.ngModelCtrl.$render())}))}var o=this,a=new Ti;o.selectValueMap={},o.ngModelCtrl=ja,o.multiple=!1,o.unknownOption=Pr(t.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(t){var n=o.generateUnknownOptionValue(t);o.unknownOption.val(n),e.prepend(o.unknownOption),Tr(o.unknownOption,!0),e.val(n)},o.updateUnknownOption=function(t){var n=o.generateUnknownOptionValue(t);o.unknownOption.val(n),Tr(o.unknownOption,!0),e.val(n)},o.generateUnknownOptionValue=function(t){return"? "+ee(t)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(e.val(""),Tr(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&o.emptyOption.removeAttr("selected")},n.$on("$destroy",function(){o.renderUnknownOption=f}),o.readValue=function(){var t=e.val(),n=t in o.selectValueMap?o.selectValueMap[t]:t;return o.hasOption(n)?n:null},o.writeValue=function(t){var n=e[0].options[e[0].selectedIndex];if(n&&Tr(Pr(n),!1),o.hasOption(t)){o.removeUnknownOption();var r=ee(t);e.val(r in o.selectValueMap?r:t);var i=e[0].options[e[0].selectedIndex];Tr(Pr(i),!0)}else null==t&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(t):o.renderUnknownOption(t)},o.addOption=function(t,e){if(e[0].nodeType!==si){ht(t,'"option value"'),""===t&&(o.hasEmptyOption=!0,o.emptyOption=e);var n=a.get(t)||0;a.set(t,n+1),r()}},o.removeOption=function(t){var e=a.get(t);e&&(1===e?(a.delete(t),""===t&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):a.set(t,e-1))},o.hasOption=function(t){return!!a.get(t)};var s=!1,c=!1;o.registerOption=function(t,e,n,a,s){if(n.$attr.ngValue){var c,l=NaN;n.$observe("value",function(t){var n,r=e.prop("selected");y(l)&&(o.removeOption(c),delete o.selectValueMap[l],n=!0),l=ee(t),c=t,o.selectValueMap[l]=t,o.addOption(t,e),e.attr("value",l),n&&r&&i()})}else a?n.$observe("value",function(t){o.readValue();var n,r=e.prop("selected");y(c)&&(o.removeOption(c),n=!0),c=t,o.addOption(t,e),n&&r&&i()}):s?t.$watch(s,function(t,r){n.$set("value",t);var a=e.prop("selected");r!==t&&o.removeOption(r),o.addOption(t,e),r&&a&&i()}):o.addOption(n.value,e);n.$observe("disabled",function(t){("true"===t||t&&e.prop("selected"))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))}),e.on("$destroy",function(){var t=o.readValue(),e=n.value;o.removeOption(e),r(),(o.multiple&&t&&-1!==t.indexOf(e)||t===e)&&i(!0)})}}],Va=function(){return{restrict:"E",require:["select","?ngModel"],controller:Fa,priority:1,link:{pre:function(t,e,n,r){var i=r[0],a=r[1];if(a){if(i.ngModelCtrl=a,e.on("change",function(){i.removeUnknownOption(),t.$apply(function(){a.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var t=[];return o(e.find("option"),function(e){if(e.selected&&!e.disabled){var n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}}),t},i.writeValue=function(t){o(e.find("option"),function(e){var n=!!t&&(F(t,e.value)||F(t,i.selectValueMap[e.value]));n!==e.selected&&Tr(Pr(e),n)})};var s,c=NaN;t.$watch(function(){c!==a.$viewValue||U(s,a.$viewValue)||(s=yt(a.$viewValue),a.$render()),c=a.$viewValue}),a.$isEmpty=function(t){return!t||0===t.length}}}else i.registerOption=f},post:function(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},Ba=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){var r,i;return y(n.ngValue)||(y(n.value)?r=t(n.value,!0):(i=t(e.text(),!0))||n.$set("value",e.text())),function(t,e,n){var o=e.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(t,e,n,r,i)}}}}],qa=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},Ua=function(){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if(w(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw e("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,tt(n));o=t||void 0,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||b(o)||o.test(e)}}}}},za=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=p(t);i=Yr(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},Wa=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=p(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load angular more than once."):(!function(){var e;if(!ii){var n=Zr();(Hr=b(n)?t.jQuery:n?t[n]:void 0)&&Hr.fn.on?(Pr=Hr,d(Hr.fn,{scope:wi.scope,isolateScope:wi.isolateScope,controller:wi.controller,injector:wi.injector,inheritedData:wi.inheritedData}),e=Hr.cleanData,Hr.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)(n=Hr._data(r,"events"))&&n.$destroy&&Hr(r).triggerHandler("$destroy");e(t)}):Pr=Ot,zr.element=Pr,ii=!0}}(),function(r){d(r,{errorHandlingConfig:n,bootstrap:ct,copy:B,extend:d,merge:m,equals:U,element:Pr,forEach:o,injector:ae,noop:f,bind:Y,toJson:G,fromJson:X,identity:g,isUndefined:b,isDefined:y,isString:w,isFunction:k,isObject:E,isNumber:M,isElement:H,isArray:Kr,version:ui,isDate:A,lowercase:Ir,uppercase:Dr,callbacks:{$$counter:0},getTestability:ut,reloadWithDebugInfo:lt,$$minErr:e,$$csp:Qr,$$encodeUriSegment:it,$$encodeUriQuery:ot,$$stringify:$t}),(Lr=bt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Mn}),t.provider("$compile",ge).directive({a:No,input:Xo,textarea:Xo,form:Po,script:La,select:Va,option:Ba,ngBind:Zo,ngBindHtml:ea,ngBindTemplate:ta,ngClass:ra,ngClassEven:oa,ngClassOdd:ia,ngCloak:aa,ngController:sa,ngForm:Ho,ngHide:Na,ngIf:ua,ngInclude:da,ngInit:pa,ngNonBindable:Ma,ngPluralize:Ta,ngRepeat:_a,ngShow:Sa,ngStyle:Oa,ngSwitch:Ia,ngSwitchWhen:Da,ngSwitchDefault:Ra,ngOptions:xa,ngTransclude:Ha,ngModel:Ea,ngList:ha,ngChange:na,pattern:Ua,ngPattern:Ua,required:qa,ngRequired:qa,minlength:Wa,ngMinlength:Wa,maxlength:za,ngMaxlength:za,ngValue:Qo,ngModelOptions:wa}).directive({ngInclude:ma}).directive(Oo).directive(ca),t.provider({$anchorScroll:se,$animate:Fi,$animateCss:qi,$$animateJs:Li,$$animateQueue:ji,$$AnimateRunner:Bi,$$animateAsyncRun:Vi,$browser:pe,$cacheFactory:he,$controller:Ce,$document:we,$$isDocumentHidden:Me,$exceptionHandler:Ae,$filter:jn,$$forceReflow:Xi,$interpolate:je,$interval:Fe,$http:Re,$httpParamSerializer:xe,$httpParamSerializerJQLike:Te,$httpBackend:He,$xhrFactory:Pe,$jsonpCallbacks:io,$location:en,$log:nn,$parse:$n,$rootScope:wn,$q:bn,$$q:yn,$sce:_n,$sceDelegate:Tn,$sniffer:Sn,$templateCache:fe,$templateRequest:Nn,$$testability:On,$timeout:In,$window:Pn,$$rAF:Cn,$$jqLite:te,$$Map:_i,$$cookieReader:Ln})}]).info({angularVersion:"1.6.4"})}(zr),zr.module("ngLocale",[],["$provide",function(t){function e(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}function n(t,n){var r=n;void 0===r&&(r=Math.min(e(t),3));var i=Math.pow(10,r);return{v:r,f:(t*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.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(t,e){var i=0|t,o=n(t,e);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),Pr(function(){st(t.document,ct)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(t,e){"use strict";function n(t,e,n){if(!t)throw ct("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function r(t,e){return t||e?t?e?(W(t)&&(t=t.join(" ")),W(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function i(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}function o(t,e,n){var r="";return t=W(t)?t:t&&J(t)&&t.length?t.split(/\s+/):[],z(t,function(t,i){t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)}),r}function a(t,e){var n=t.indexOf(e);e>=0&&t.splice(n,1)}function s(t){if(t instanceof Z)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===H)return t;break;default:return Z(c(t))}if(t.nodeType===H)return Z(t)}function c(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===H)return n}}function l(t,e,n){z(e,function(e){t.addClass(e,n)})}function u(t,e,n){z(e,function(e){t.removeClass(e,n)})}function d(t){return function(e,n){n.addClass&&(l(t,e,n.addClass),n.addClass=null),n.removeClass&&(u(t,e,n.removeClass),n.removeClass=null)}}function m(t){if(!(t=t||{}).$$prepared){var e=t.domOperation||tt;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=tt},t.$$prepared=!0}return t}function p(t,e){h(t,e),f(t,e)}function h(t,e){e.from&&(t.css(e.from),e.from=null)}function f(t,e){e.to&&(t.css(e.to),e.to=null)}function g(t,e,n){var r=e.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=v(t.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=M(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var c=r.domOperation!==tt?r.domOperation:null;return U(r,i),c&&(r.domOperation=c),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function v(t,e,n){function r(t){J(t)&&(t=t.split(" "));var e={};return z(t,function(t){t.length&&(e[t]=!0)}),e}var i={};t=r(t),e=r(e),z(e,function(t,e){i[e]=1}),n=r(n),z(n,function(t,e){i[e]=1===i[e]?null:-1});var o={addClass:"",removeClass:""};return z(i,function(e,n){var r,i;1===e?(r="addClass",i=!t[n]||t[n+j]):-1===e&&(r="removeClass",i=t[n]||t[n+L]),i&&(o[r].length&&(o[r]+=" "),o[r]+=n)}),o}function $(t){return t instanceof Z?t[0]:t}function b(t,e,n){var r="";e&&(r=o(e,F,!0)),n.addClass&&(r=M(r,o(n.addClass,L))),n.removeClass&&(r=M(r,o(n.removeClass,j))),r.length&&(n.preparationClasses=r,t.addClass(r))}function y(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}function E(t,e){var n=e?"-"+e+"s":"";return w(t,[at,n]),[at,n]}function C(t,e){var n=e?"paused":"",r=R+rt;return w(t,[r,n]),[r,n]}function w(t,e){var n=e[0],r=e[1];t.style[n]=r}function M(t,e){return t?e?t+" "+e:t:e}function A(t){return[ot,t+"s"]}function k(t,e){return[e?it:at,t+"s"]}function x(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return z(n,function(t,e){var n=i[t];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=T(n)),0===n&&(n=null),r[e]=n}}),r}function T(t){var e=0,n=t.split(/\s*,\s*/);return z(n,function(t){"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function _(t){return 0===t||null!=t}function S(t,e){var n=I,r=t+"s";return e?n+=et:r+=" linear all",[n,r]}function N(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function O(t,e,n){z(n,function(n){t[n]=Y(t[n])?t[n]:e.style.getPropertyValue(n)})}var I,D,R,P,H=1,L="-add",j="-remove",F="ng-",V="ng-animate",B="$$ngAnimateChildren";void 0===t.ontransitionend&&void 0!==t.onwebkittransitionend?("-webkit-",I="WebkitTransition",D="webkitTransitionEnd transitionend"):(I="transition",D="transitionend"),void 0===t.onanimationend&&void 0!==t.onwebkitanimationend?("-webkit-",R="WebkitAnimation",P="webkitAnimationEnd animationend"):(R="animation",P="animationend");var q,U,z,W,Y,K,G,X,J,Q,Z,tt,et="Duration",nt="TimingFunction",rt="PlayState",it=R+"Delay",ot=R+et,at=I+"Delay",st=I+et,ct=e.$$minErr("ng"),lt=["$$rAF",function(t){function e(t){r=r.concat(t),n()}function n(){if(r.length){for(var e=r.shift(),o=0;o<e.length;o++)e[o]();i||t(function(){i||n()})}}var r,i;return r=e.queue=[],e.waitUntilQuiet=function(e){i&&i(),i=t(function(){i=null,e(),n()})},e}],ut=["$interpolate",function(t){return{link:function(e,n,r){function i(t){t="on"===t||"true"===t,n.data(B,t)}var o=r.ngAnimateChildren;J(o)&&0===o.length?n.data(B,!0):(i(t(o)(e)),r.$observe("ngAnimateChildren",i))}}}],dt="$$animateCss",mt=1e3,pt=3,ht=1.5,ft={transitionDuration:st,transitionDelay:at,transitionProperty:I+"Property",animationDuration:ot,animationDelay:it,animationIterationCount:R+"IterationCount"},gt={transitionDuration:st,transitionDelay:at,animationDuration:ot,animationDelay:it},vt=["$animateProvider",function(t){var e=N(),n=N();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(t,r,s,c,l,u,g,v){function b(t,e){var n="$$ngAnimateParentKey",r=t.parentNode;return(r[n]||(r[n]=++V))+"-"+t.getAttribute("class")+"-"+e}function y(n,r,i,o){var a=e.get(i);return a||"infinite"===(a=x(t,n,o)).animationIterationCount&&(a.animationIterationCount=1),e.put(i,a),a}function M(i,a,s,c){var l;if(e.count(s)>0&&!(l=n.get(s))){var u=o(a,"-stagger");r.addClass(i,u),(l=x(t,i,c)).animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,u),n.put(s,l)}return l||{}}function T(t){B.push(t),g.waitUntilQuiet(function(){e.flush(),n.flush();for(var t=l(),r=0;r<B.length;r++)B[r](t);B.length=0})}function N(t,e,n){var r=y(t,e,n,ft),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var H=d(r),V=0,B=[];return function(t,n){function l(){g()}function d(){g(!0)}function g(e){if(!(G||J&&X)){G=!0,X=!1,U.$$skipPreparationClasses||r.removeClass(t,bt),r.removeClass(t,Et),C(K,!1),E(K,!1),z(st,function(t){K.style[t[0]]=""}),H(t,U),p(t,U),Object.keys(Y).length&&z(Y,function(t,e){t?K.style.setProperty(e,t):K.style.removeProperty(e)}),U.onDone&&U.onDone(),ut&&ut.length&&t.off(ut.join(" "),V);var n=t.data(dt);n&&(c.cancel(n[0].timer),t.removeData(dt)),Q&&Q.complete(!e)}}function y(t){Dt.blockTransition&&E(K,t),Dt.blockKeyframeAnimation&&C(K,!!t)}function x(){return Q=new s({end:l,cancel:d}),T(tt),g(),{$$willAnimate:!1,start:function(){return Q},end:l}}function V(t){t.stopPropagation();var e=t.originalEvent||t,n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(pt));Math.max(n-at,0)>=rt&&r>=it&&(J=!0,g())}function B(){function e(){if(!G){if(y(!1),z(st,function(t){var e=t[0],n=t[1];K.style[e]=n}),H(t,U),r.addClass(t,Et),Dt.recalculateTimingStyles){if(yt=K.getAttribute("class")+" "+bt,wt=b(K,yt),Ot=N(K,yt,wt),It=Ot.maxDelay,et=Math.max(It,0),0===(it=Ot.maxDuration))return void g();Dt.hasTransitions=Ot.transitionDuration>0,Dt.hasAnimations=Ot.animationDuration>0}if(Dt.applyAnimationDelay&&(It="boolean"!=typeof U.delay&&_(U.delay)?parseFloat(U.delay):It,et=Math.max(It,0),Ot.animationDelay=It,Rt=k(It,!0),st.push(Rt),K.style[Rt[0]]=Rt[1]),rt=et*mt,ot=it*mt,U.easing){var e,i=U.easing;Dt.hasTransitions&&(e=I+nt,st.push([e,i]),K.style[e]=i),Dt.hasAnimations&&(e=R+nt,st.push([e,i]),K.style[e]=i)}Ot.transitionDuration&&ut.push(D),Ot.animationDuration&&ut.push(P),at=Date.now();var o=rt+ht*ot,a=at+o,s=t.data(dt)||[],l=!0;if(s.length){var u=s[0];(l=a>u.expectedEndTime)?c.cancel(u.timer):s.push(g)}if(l){var d=c(n,o,!1);s[0]={timer:d,expectedEndTime:a},s.push(g),t.data(dt,s)}ut.length&&t.on(ut.join(" "),V),U.to&&(U.cleanupStyles&&O(Y,K,Object.keys(U.to)),f(t,U))}}function n(){var e=t.data(dt);if(e){for(var n=1;n<e.length;n++)e[n]();t.removeData(dt)}}if(!G)if(K.parentNode){var i=function(t){if(J)X&&t&&(X=!1,g());else if(X=!t,Ot.animationDuration){var e=C(K,X);X?st.push(e):a(st,e)}},o=St>0&&(Ot.transitionDuration&&0===Mt.transitionDuration||Ot.animationDuration&&0===Mt.animationDuration)&&Math.max(Mt.animationDelay,Mt.transitionDelay);o?c(e,Math.floor(o*St*mt),!1):e(),Z.resume=function(){i(!0)},Z.pause=function(){i(!1)}}else g()}var U=n||{};U.$$prepared||(U=m(q(U)));var Y={},K=$(t);if(!K||!K.parentNode||!v.enabled())return x();var G,X,J,Q,Z,et,rt,it,ot,at,st=[],ct=t.attr("class"),lt=i(U),ut=[];if(0===U.duration||!u.animations&&!u.transitions)return x();var ft=U.event&&W(U.event)?U.event.join(" "):U.event,vt="",$t="";ft&&U.structural?vt=o(ft,F,!0):ft&&(vt=ft),U.addClass&&($t+=o(U.addClass,L)),U.removeClass&&($t.length&&($t+=" "),$t+=o(U.removeClass,j)),U.applyClassesEarly&&$t.length&&H(t,U);var bt=[vt,$t].join(" ").trim(),yt=ct+" "+bt,Et=o(bt,"-active"),Ct=lt.to&&Object.keys(lt.to).length>0;if(!((U.keyframeStyle||"").length>0)&&!Ct&&!bt)return x();var wt,Mt;if(U.stagger>0){var At=parseFloat(U.stagger);Mt={transitionDelay:At,animationDelay:At,transitionDuration:0,animationDuration:0}}else wt=b(K,yt),Mt=M(K,bt,wt,gt);U.$$skipPreparationClasses||r.addClass(t,bt);var kt;if(U.transitionStyle){var xt=[I,U.transitionStyle];w(K,xt),st.push(xt)}if(U.duration>=0){kt=K.style[I].length>0;var Tt=S(U.duration,kt);w(K,Tt),st.push(Tt)}if(U.keyframeStyle){var _t=[R,U.keyframeStyle];w(K,_t),st.push(_t)}var St=Mt?U.staggerIndex>=0?U.staggerIndex:e.count(wt):0,Nt=0===St;Nt&&!U.skipBlocking&&E(K,9999);var Ot=N(K,yt,wt),It=Ot.maxDelay;et=Math.max(It,0),it=Ot.maxDuration;var Dt={};if(Dt.hasTransitions=Ot.transitionDuration>0,Dt.hasAnimations=Ot.animationDuration>0,Dt.hasTransitionAll=Dt.hasTransitions&&"all"===Ot.transitionProperty,Dt.applyTransitionDuration=Ct&&(Dt.hasTransitions&&!Dt.hasTransitionAll||Dt.hasAnimations&&!Dt.hasTransitions),Dt.applyAnimationDuration=U.duration&&Dt.hasAnimations,Dt.applyTransitionDelay=_(U.delay)&&(Dt.applyTransitionDuration||Dt.hasTransitions),Dt.applyAnimationDelay=_(U.delay)&&Dt.hasAnimations,Dt.recalculateTimingStyles=$t.length>0,(Dt.applyTransitionDuration||Dt.applyAnimationDuration)&&(it=U.duration?parseFloat(U.duration):it,Dt.applyTransitionDuration&&(Dt.hasTransitions=!0,Ot.transitionDuration=it,kt=K.style[I+"Property"].length>0,st.push(S(it,kt))),Dt.applyAnimationDuration&&(Dt.hasAnimations=!0,Ot.animationDuration=it,st.push(A(it)))),0===it&&!Dt.recalculateTimingStyles)return x();if(null!=U.delay){var Rt;"boolean"!=typeof U.delay&&(Rt=parseFloat(U.delay),et=Math.max(Rt,0)),Dt.applyTransitionDelay&&st.push(k(Rt)),Dt.applyAnimationDelay&&st.push(k(Rt,!0))}return null==U.duration&&Ot.transitionDuration>0&&(Dt.recalculateTimingStyles=Dt.recalculateTimingStyles||Nt),rt=et*mt,ot=it*mt,U.skipBlocking||(Dt.blockTransition=Ot.transitionDuration>0,Dt.blockKeyframeAnimation=Ot.animationDuration>0&&Mt.animationDelay>0&&0===Mt.animationDuration),U.from&&(U.cleanupStyles&&O(Y,K,Object.keys(U.from)),h(t,U)),Dt.blockTransition||Dt.blockKeyframeAnimation?y(it):U.skipBlocking||E(K,!1),{$$willAnimate:!0,end:l,start:function(){if(!G)return Z={end:l,cancel:d,resume:null,pause:null},Q=new s(Z),T(B),Q}}}}]}],$t=["$$animationProvider",function(t){function e(t){return t.parentNode&&11===t.parentNode.nodeType}t.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(t,a,s,c,l,u,d){function m(t){return t.replace(/\bng-\S+\b/g,"")}function p(t,e){return J(t)&&(t=t.split(" ")),J(e)&&(e=e.split(" ")),t.filter(function(t){return-1===e.indexOf(t)}).join(" ")}function h(e,a,c){function l(t){var e={},n=$(t).getBoundingClientRect();return z(["width","height","top","left"],function(t){var r=n[t];switch(t){case"top":r+=v.scrollTop;break;case"left":r+=v.scrollLeft}e[t]=Math.floor(r)+"px"}),e}function u(t){return t.attr("class")||""}function d(){var e=m(u(c)),n=p(e,g),r=p(g,e),a=t(f,{to:l(c),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function h(){f.remove(),a.removeClass(n),c.removeClass(n)}var f=Z($(a).cloneNode(!0)),g=m(u(f));a.addClass(n),c.addClass(n),f.addClass(r),y.append(f);var b,E=function(){var e=t(f,{addClass:i,delay:!0,from:l(a)});return e.$$willAnimate?e:null}();if(!E&&!(b=d()))return h();var C=E||b;return{start:function(){function t(){n&&n.end()}var e,n=C.start();return n.done(function(){if(n=null,!b&&(b=d()))return(n=b.start()).done(function(){n=null,h(),e.complete()}),n;h(),e.complete()}),e=new s({end:t,cancel:t})}}}function f(t,e,n,r){var i=g(t),o=g(e),a=[];if(z(r,function(t){var e=t.out,r=t.in,i=h(n,e,r);i&&a.push(i)}),i||o||0!==a.length)return{start:function(){function t(){z(e,function(t){t.end()})}var e=[];i&&e.push(i.start()),o&&e.push(o.start()),z(a,function(t){e.push(t.start())});var n=new s({end:t,cancel:t});return s.all(e,function(t){n.complete(t)}),n}}}function g(e){var n=e.element,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=M(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return tt;var v=d[0].body,b=$(c),y=Z(e(b)||v.contains(b)?b:v);return function(t){return t.from&&t.to?f(t.from,t.to,t.classes,t.anchors):g(t)}}]}],bt=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(e,n,r){function i(n){n=W(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=t.$$registeredAnimations[a];s&&!i[a]&&(r.push(e.get(s)),i[a]=!0)}return r}var o=d(r);return function(t,e,r,a){function s(){a.domOperation(),o(t,a)}function c(){h=!0,s(),p(t,a)}function l(t,e,r,i,o){var a;switch(r){case"animate":a=[e,i.from,i.to,o];break;case"setClass":a=[e,v,$,o];break;case"addClass":a=[e,v,o];break;case"removeClass":a=[e,$,o];break;default:a=[e,o]}a.push(i);var s=t.apply(t,a);if(s)if(G(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(G(s))return s;return tt}function u(t,e,r,i,o){var a=[];return z(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,c=function(t){a||(a=!0,(o||tt)(t),i.complete(!t))};return i=new n({end:function(){c()},cancel:function(){c(!0)}}),o=l(s,t,e,r,function(t){c(!1===t)}),i})}),a}function d(t,e,r,i,o){var a=u(t,e,r,i,o);if(0===a.length){var s,c;"beforeSetClass"===o?(s=u(t,"removeClass",r,i,"beforeRemoveClass"),c=u(t,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=u(t,"removeClass",r,i,"removeClass"),c=u(t,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),c&&(a=a.concat(c))}if(0!==a.length)return function(t){var e=[];return a.length&&z(a,function(t){e.push(t())}),e.length?n.all(e,t):t(),function(t){z(e,function(e){t?e.cancel():e.end()})}}}var h=!1;3===arguments.length&&X(r)&&(a=r,r=null),a=m(a),r||(r=t.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var f,g,v=a.addClass,$=a.removeClass,b=i(r);if(b.length){var y,E;"leave"===e?(E="leave",y="afterLeave"):(E="before"+e.charAt(0).toUpperCase()+e.substr(1),y=e),"enter"!==e&&"move"!==e&&(f=d(t,e,a,b,E)),g=d(t,e,a,b,y)}if(f||g){var C;return{$$willAnimate:!0,end:function(){return C?C.end():(c(),(C=new n).complete(!0)),C},start:function(){function t(t){c(t),C.complete(t)}function e(e){h||((r||tt)(e),t(e))}if(C)return C;C=new n;var r,i=[];return f&&i.push(function(t){r=f(t)}),i.length?i.push(function(t){s(),t(!0)}):s(),g&&i.push(function(t){r=g(t)}),C.setHost({end:function(){e()},cancel:function(){e(!0)}}),n.chain(i,t),C}}}}}]}],yt=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){function n(e){var n=e.element,r=e.event,i=e.options,o=e.classes;return t(n,r,o,i)}return function(t){if(t.from&&t.to){var r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start:function(){function t(){return function(){z(n,function(t){t.end()})}}var n=[];r&&n.push(r.start()),i&&n.push(i.start()),e.all(n,function(t){o.complete(t)});var o=new e({end:t(),cancel:t()});return o}}}return n(t)}}]}],Et="data-ng-animate",Ct="$ngAnimatePin",wt=["$animateProvider",function(e){function r(t){if(!t)return null;var e=t.split(h),n=Object.create(null);return z(e,function(t){n[t]=!0}),n}function i(t,e){if(t&&e){var n=r(e);return t.split(h).some(function(t){return n[t]})}}function o(t,e,n){return f[t].some(function(t){return t(e,n)})}function a(t,e){var n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}var l=1,u=2,h=" ",f=this.rules={skip:[],cancel:[],join:[]};f.join.push(function(t,e){return!t.structural&&a(t)}),f.skip.push(function(t,e){return!t.structural&&!a(t)}),f.skip.push(function(t,e){return"leave"===e.event&&t.structural}),f.skip.push(function(t,e){return e.structural&&e.state===u&&!t.structural}),f.cancel.push(function(t,e){return e.structural&&t.structural}),f.cancel.push(function(t,e){return e.state===u&&t.structural}),f.cancel.push(function(t,e){if(e.structural)return!1;var n=t.addClass,r=t.removeClass,o=e.addClass,a=e.removeClass;return!(Q(n)&&Q(r)||Q(o)&&Q(a))&&(i(n,a)||i(r,o))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(r,i,h,f,v,E,C,w,M,A,k){function x(){var t=!1;return function(e){t?e():i.$$postDigest(function(){t=!0,e()})}}function T(t,e){return g(t,e,{})}function _(t,e,n){var r=[],i=G[n];return i&&z(i,function(i){rt.call(i.node,e)?r.push(i.callback):"leave"===n&&rt.call(i.node,t)&&r.push(i.callback)}),r}function S(t,e,n){var r=c(e);return t.filter(function(t){return!(t.node===r&&(!n||t.callback===n))})}function N(t,e){"close"!==t||e.parentNode||it.off(e)}function O(t,e,n){function c(t,e,n,i){A(function(){var t=_(w,v,e);t.length?r(function(){z(t,function(t){t(f,n,i)}),N(n,v)}):N(n,v)}),t.progress(e,n,i)}function d(t){y(f,h),nt(f,h),p(f,h),h.domOperation(),M.complete(!t)}var h=q(n),f=s(t),v=$(f),w=v&&v.parentNode;h=m(h);var M=new C,A=x();if(W(h.addClass)&&(h.addClass=h.addClass.join(" ")),h.addClass&&!J(h.addClass)&&(h.addClass=null),W(h.removeClass)&&(h.removeClass=h.removeClass.join(" ")),h.removeClass&&!J(h.removeClass)&&(h.removeClass=null),h.from&&!X(h.from)&&(h.from=null),h.to&&!X(h.to)&&(h.to=null),!v)return d(),M;var S=[v.getAttribute("class"),h.addClass,h.removeClass].join(" ");if(!et(S))return d(),M;var O=["enter","move","leave"].indexOf(e)>=0,H=k(),V=!F||H||j.get(v),B=!V&&L.get(v)||{},U=!!B.state;if(V||U&&B.state===l||(V=!R(v,w,e)),V)return H&&c(M,e,"start"),d(),H&&c(M,e,"close"),M;O&&I(v);var Y={structural:O,element:f,event:e,addClass:h.addClass,removeClass:h.removeClass,close:d,options:h,runner:M};if(U){if(o("skip",Y,B))return B.state===u?(d(),M):(g(f,B,Y),B.runner);if(o("cancel",Y,B))if(B.state===u)B.runner.end();else{if(!B.structural)return g(f,B,Y),B.runner;B.close()}else if(o("join",Y,B)){if(B.state!==u)return b(f,O?e:null,h),e=Y.event=B.event,h=g(f,B,Y),B.runner;T(f,Y)}}else T(f,Y);var K=Y.structural;if(K||(K="animate"===Y.event&&Object.keys(Y.options.to||{}).length>0||a(Y)),!K)return d(),D(v),M;var G=(B.counter||0)+1;return Y.counter=G,P(v,l,Y),i.$$postDigest(function(){f=s(t);var n=L.get(v),r=!n;n=n||{};var i=(f.parent()||[]).length>0&&("animate"===n.event||n.structural||a(n));if(r||n.counter!==G||!i)return r&&(nt(f,h),p(f,h)),(r||O&&n.event!==e)&&(h.domOperation(),M.end()),void(i||D(v));e=!n.structural&&a(n,!0)?"setClass":n.event,P(v,u);var o=E(f,e,n.options);M.setHost(o),c(M,e,"start",{}),o.done(function(t){d(!t);var n=L.get(v);n&&n.counter===G&&D(v),c(M,e,"close",{})})}),M}function I(t){var e=t.querySelectorAll("["+Et+"]");z(e,function(t){var e=parseInt(t.getAttribute(Et),10),n=L.get(t);if(n)switch(e){case u:n.runner.end();case l:L.delete(t)}})}function D(t){t.removeAttribute(Et),L.delete(t)}function R(t,e,n){var r,i=f[0].body,o=$(h),a=t===i||"HTML"===t.nodeName,s=t===o,c=!1,l=j.get(t),u=Z.data(t,Ct);for(u&&(e=$(u));e&&(s||(s=e===o),e.nodeType===H);){var d=L.get(e)||{};if(!c){var m=j.get(e);if(!0===m&&!1!==l){l=!0;break}!1===m&&(l=!1),c=d.structural}if(Q(r)||!0===r){var p=Z.data(e,B);Y(p)&&(r=p)}if(c&&!1===r)break;if(a||(a=e===i),a&&s)break;e=s||!(u=Z.data(e,Ct))?e.parentNode:$(u)}return(!c||r)&&!0!==l&&s&&a}function P(t,e,n){(n=n||{}).state=e,t.setAttribute(Et,e);var r=L.get(t),i=r?U(r,n):n;L.set(t,i)}var L=new v,j=new v,F=null,V=i.$watch(function(){return 0===w.totalPendingRequests},function(t){t&&(V(),i.$$postDigest(function(){i.$$postDigest(function(){null===F&&(F=!0)})}))}),G=Object.create(null),tt=e.classNameFilter(),et=tt?function(t){return tt.test(t)}:function(){return!0},nt=d(M),rt=t.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))},it={on:function(t,e,n){var r=c(e);G[t]=G[t]||[],G[t].push({node:r,callback:n}),Z(e).on("$destroy",function(){L.get(r)||it.off(t,e,n)})},off:function(t,e,n){if(1!==arguments.length||J(arguments[0])){var r=G[t];r&&(G[t]=1===arguments.length?null:S(r,e,n))}else{e=arguments[0];for(var i in G)G[i]=S(G[i],e)}},pin:function(t,e){n(K(t),"element","not an element"),n(K(e),"parentElement","not an element"),t.data(Ct,e)},push:function(t,e,n,r){return n=n||{},n.domOperation=r,O(t,e,n)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!F;else if(K(t)){var r=$(t);1===n?e=!j.get(r):j.set(r,!e)}else e=F=!!t;return e}};return it}]}],Mt=["$animateProvider",function(t){function e(t,e){t.data(s,e)}function n(t){t.removeData(s)}function i(t){return t.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler",function(t,s,c,l,u,h){function f(t){function e(t){if(t.processed)return t;t.processed=!0;var n=t.domNode,o=n.parentNode;i.set(n,t);for(var a;o;){if(a=i.get(o)){a.processed||(a=e(a));break}o=o.parentNode}return(a||r).children.push(t),t}var n,r={children:[]},i=new u;for(n=0;n<t.length;n++){var o=t[n];i.set(o.domNode,t[n]={domNode:o.domNode,fn:o.fn,children:[]})}for(n=0;n<t.length;n++)e(t[n]);return function(t){var e,n=[],r=[];for(e=0;e<t.children.length;e++)r.push(t.children[e]);var i=r.length,o=0,a=[];for(e=0;e<r.length;e++){var s=r[e];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(t){o++,r.push(t)}),i--}return a.length&&n.push(a),n}(r)}var g=[],v=d(t);return function(u,d,b){function y(t){var e="["+o+"]",n=t.hasAttribute(o)?[t]:t.querySelectorAll(e),r=[];return z(n,function(t){var e=t.getAttribute(o);e&&e.length&&r.push(t)}),r}function E(t){var e=[],n={};z(t,function(t,r){var i=$(t.element),a=t.event,s=["enter","move"].indexOf(a)>=0,c=t.structural?y(i):[];if(c.length){var l=s?"to":"from";z(c,function(t){var e=t.getAttribute(o);n[e]=n[e]||{},n[e][l]={animationID:r,element:Z(t)}})}else e.push(t)});var r={},i={};return z(n,function(n,o){var a=n.from,s=n.to;if(a&&s){var c=t[a.animationID],l=t[s.animationID],u=a.animationID.toString();if(!i[u]){var d=i[u]={structural:!0,beforeStart:function(){c.beforeStart(),l.beforeStart()},close:function(){c.close(),l.close()},classes:C(c.classes,l.classes),from:c,to:l,anchors:[]};d.classes.length?e.push(d):(e.push(c),e.push(l))}i[u].anchors.push({out:a.element,in:s.element})}else{var m=a?a.animationID:s.animationID,p=m.toString();r[p]||(r[p]=!0,e.push(t[m]))}}),e}function C(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],r=0;r<t.length;r++){var i=t[r];if("ng-"!==i.substring(0,3))for(var o=0;o<e.length;o++)if(i===e[o]){n.push(i);break}}return n.join(" ")}function w(t){for(var e=a.length-1;e>=0;e--){var n=a[e],r=c.get(n)(t);if(r)return r}}function M(t,e){function n(t){var n=i(t);n&&n.setHost(e)}t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element)}function A(){var t=i(u);!t||"leave"===d&&b.$$domOperationFired||t.end()}function k(e){u.off("$destroy",A),n(u),v(u,b),p(u,b),b.domOperation(),S&&t.removeClass(u,S),u.removeClass(V),T.complete(!e)}b=m(b);var x=["enter","move","leave"].indexOf(d)>=0,T=new l({end:function(){k()},cancel:function(){k(!0)}});if(!a.length)return k(),T;e(u,T);var _=r(u.attr("class"),r(b.addClass,b.removeClass)),S=b.tempClasses;S&&(_+=" "+S,b.tempClasses=null);var N;return x&&(N="ng-"+d+"-prepare",t.addClass(u,N)),g.push({element:u,classes:_,event:d,structural:x,options:b,beforeStart:function(){u.addClass(V),S&&t.addClass(u,S),N&&(t.removeClass(u,N),N=null)},close:k}),u.on("$destroy",A),g.length>1?T:(s.$$postDigest(function(){var t=[];z(g,function(e){i(e.element)?t.push(e):e.close()}),g.length=0;var e=E(t),n=[];z(e,function(t){n.push({domNode:$(t.from?t.from.element:t.element),fn:function(){t.beforeStart();var e,n=t.close;if(i(t.anchors?t.from.element||t.to.element:t.element)){var r=w(t);r&&(e=r.start)}if(e){var o=e();o.done(function(t){n(!t)}),M(t,o)}else n()}})}),h(f(n))}),T)}}]}],At=["$animate","$rootScope",function(t,e){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(e,n,r,i,o){var a,s;e.$watchCollection(r.ngAnimateSwap||r.for,function(r){a&&t.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=e.$new(),o(s,function(e){a=e,t.enter(e,null,n)}))})}}}];e.module("ngAnimate",[],function(){tt=e.noop,q=e.copy,U=e.extend,Z=e.element,z=e.forEach,W=e.isArray,J=e.isString,X=e.isObject,Q=e.isUndefined,Y=e.isDefined,G=e.isFunction,K=e.isElement}).info({angularVersion:"1.6.4"}).directive("ngAnimateSwap",At).directive("ngAnimateChildren",ut).factory("$$rAFScheduler",lt).provider("$$animateQueue",wt).provider("$$animation",Mt).provider("$animateCss",vt).provider("$$animateCssDriver",$t).provider("$$animateJs",bt).provider("$$animateJsDriver",yt)}(window,window.angular),function(t,e){"use strict";var n=e.module("ngAria",["ng"]).info({angularVersion:"1.6.4"}).provider("$aria",function(){function t(t,e,r,o){return function(a,s,c){var l=c.$normalize(e);!n[l]||i(s,r)||c[l]||a.$watch(c[t],function(t){t=o?!t:!!t,s.attr(e,t)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};this.config=function(t){n=e.extend(n,t)},this.$get=function(){return{config:function(t){return n[t]},$$watchExpr:t}}}),r=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],i=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};n.directive("ngShow",["$aria",function(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(t){return t.$$watchExpr("ngValue","aria-checked",r,!1)}]).directive("ngChecked",["$aria",function(t){return t.$$watchExpr("ngChecked","aria-checked",r,!1)}]).directive("ngReadonly",["$aria",function(t){return t.$$watchExpr("ngReadonly","aria-readonly",r,!1)}]).directive("ngRequired",["$aria",function(t){return t.$$watchExpr("ngRequired","aria-required",r,!1)}]).directive("ngModel",["$aria",function(t){function e(e,n,o,a){return t.config(n)&&!o.attr(e)&&(a||!i(o,r))}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!i(e,r)}function o(t,e){var n=t.type,r=t.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(r,i){var a=o(i);return{post:function(r,i,o,s){function c(){return s.$modelValue}var l=e("tabindex","tabindex",i,!1);switch(a){case"radio":case"checkbox":n(a,i)&&i.attr("role",a),e("aria-checked","ariaChecked",i,!1)&&r.$watch(c,"radio"===a?function(t){var e=o.value==s.$viewValue;i.attr("aria-checked",e)}:function(){i.attr("aria-checked",!s.$isEmpty(s.$viewValue))}),l&&i.attr("tabindex",0);break;case"range":if(n(a,i)&&i.attr("role","slider"),t.config("ariaValue")){var u=!i.attr("aria-valuemin")&&(o.hasOwnProperty("min")||o.hasOwnProperty("ngMin")),d=!i.attr("aria-valuemax")&&(o.hasOwnProperty("max")||o.hasOwnProperty("ngMax")),m=!i.attr("aria-valuenow");u&&o.$observe("min",function(t){i.attr("aria-valuemin",t)}),d&&o.$observe("max",function(t){i.attr("aria-valuemax",t)}),m&&r.$watch(c,function(t){i.attr("aria-valuenow",t)})}l&&i.attr("tabindex",0)}!o.hasOwnProperty("ngRequired")&&s.$validators.required&&e("aria-required","ariaRequired",i,!1)&&o.$observe("required",function(){i.attr("aria-required",!!o.required)}),e("aria-invalid","ariaInvalid",i,!0)&&r.$watch(function(){return s.$invalid},function(t){i.attr("aria-invalid",!!t)})}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",r,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(t,e,n,r){e.attr("aria-live")||e.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(t,e){return{restrict:"A",compile:function(n,o){var a=e(o.ngClick);return function(e,n,o){i(n,r)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!t.config("bindKeydown")||o.ngKeydown||o.ngKeypress||o.ngKeyup||n.on("keydown",function(t){var n=t.which||t.keyCode;32!==n&&13!==n||e.$apply(function(){a(e,{$event:t})})}))}}}}]).directive("ngDblclick",["$aria",function(t){return function(e,n,o){!t.config("tabindex")||n.attr("tabindex")||i(n,r)||n.attr("tabindex",0)}}])}(window,window.angular),function(t,e){"use strict";function n(){function t(t,e){if(t)return i(t)?t.indexOf(e)>=0:t.hasOwnProperty(e)}return["$animate",function(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(n,r,o,a,s){var c,l=r[0],u=o.ngMessage||o.when,d=o.ngMessageExp||o.whenExp,m=function(t){c=t?i(t)?t:t.split(/[\s,]+/):null,a.reRender()};d?(m(n.$eval(d)),n.$watchCollection(d,m)):m(u);var p,h;a.register(l,h={test:function(e){return t(c,e)},attach:function(){p||s(function(t,n){e.enter(t,null,r);var i=(p=t).$$attachId=a.getAttachId();p.on("$destroy",function(){p&&p.$$attachId===i&&(a.deregister(l),h.detach()),n.$destroy()})})},detach:function(){if(p){var t=p;p=null,e.leave(t)}}})}}}]}var r,i,o,a;e.module("ngMessages",[],function(){r=e.forEach,i=e.isArray,o=e.isString,a=e.element}).info({angularVersion:"1.6.4"}).directive("ngMessages",["$animate",function(t){function e(t,e){return o(e)&&0===e.length||n(t.$eval(e))}function n(t){return o(t)?t.length:!!t}return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(i,o,a){function s(t,e){for(var n=e,r=[];n&&n!==t;){var i=n.$$ngMessageNode;if(i&&i.length)return f[i];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}function c(t,e,n){var r=f[n];if(u.head){var i=s(t,e);i?(r.next=i.next,i.next=r):(r.next=u.head,u.head=r)}else u.head=r}function l(t,e,n){var r=f[n],i=s(t,e);i?i.next=r.next:u.head=r.next}var u=this,d=0,m=0;this.getAttachId=function(){return m++};var p,h,f=this.messages={};this.render=function(s){p=!1,h=s=s||{};for(var c=e(o,a.ngMessagesMultiple)||e(o,a.multiple),l=[],d={},m=u.head,f=!1,g=0;null!=m;){g++;var v=m.message,$=!1;f||r(s,function(t,e){if(!$&&n(t)&&v.test(e)){if(d[e])return;d[e]=!0,$=!0,v.attach()}}),$?f=!c:l.push(v),m=m.next}r(l,function(t){t.detach()}),l.length!==g?t.setClass(i,"ng-active","ng-inactive"):t.setClass(i,"ng-inactive","ng-active")},o.$watchCollection(a.ngMessages||a.for,u.render),i.on("$destroy",function(){r(f,function(t){t.message.detach()})}),this.reRender=function(){p||(p=!0,o.$evalAsync(function(){p&&h&&u.render(h)}))},this.register=function(t,e){var n=d.toString();f[n]={message:e},c(i[0],t,n),t.$$ngMessageNode=n,d++,u.reRender()},this.deregister=function(t){var e=t.$$ngMessageNode;delete t.$$ngMessageNode,l(i[0],t,e),delete f[e],u.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(t,e,n){function r(t,r){var i=n.$$createComment?n.$$createComment("ngMessagesInclude",r):e[0].createComment(" ngMessagesInclude: "+r+" "),o=a(i);t.after(o),t.remove()}return{restrict:"AE",require:"^^ngMessages",link:function(e,i,a){var s=a.ngMessagesInclude||a.src;t(s).then(function(t){e.$$destroyed||(o(t)&&!t.trim()?r(i,s):n(t)(e,function(t){i.after(t),r(i,s)}))})}}}]).directive("ngMessage",n()).directive("ngMessageExp",n())}(window,window.angular),function(t,e,n){"use strict";e.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.interaction","material.core.gestures","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","material.core.animate","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.colors","material.components.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menu","material.components.menuBar","material.components.navBar","material.components.progressCircular","material.components.panel","material.components.progressLinear","material.components.radioButton","material.components.showHide","material.components.sidenav","material.components.select","material.components.slider","material.components.sticky","material.components.subheader","material.components.switch","material.components.swipe","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.truncate","material.components.virtualRepeat","material.components.whiteframe"]),function(){function t(t,e){if(e.has("$swipe")){t.warn("You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!")}}function n(t,e){t.decorator("$$rAF",["$delegate",r]),t.decorator("$q",["$delegate",i]),e.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function r(t){return t.throttle=function(e){var n,r,i,o;return function(){n=arguments,o=this,i=e,r||(r=!0,t(function(){i.apply(o,Array.prototype.slice.call(n)),r=!1}))}},t}function i(t){return t.resolve||(t.resolve=t.when),t}t.$inject=["$log","$injector"],n.$inject=["$provide","$mdThemingProvider"],r.$inject=["$delegate"],i.$inject=["$delegate"],e.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(n).run(t)}(),function(){function t(t){return{restrict:"A",link:{pre:function(n,r,i){function o(t){e.isUndefined(t)&&(t=!0),r.toggleClass("md-autofocus",!!t)}var a=i.mdAutoFocus||i.mdAutofocus||i.mdSidenavFocus;o(t(a)(n)),a&&n.$watch(a,o)}}}}t.$inject=["$parse"],e.module("material.core").directive("mdAutofocus",t).directive("mdAutoFocus",t).directive("mdSidenavFocus",t)}(),function(){e.module("material.core").factory("$mdColorUtil",function(){return{rgbaToHex:function(t){return((t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):"").toUpperCase()},hexToRgba:function(t){var e="#"===t[0]?t.substr(1):t,n=e.length/3,r=e.substr(0,n),i=e.substr(n,n),o=e.substr(2*n);return 1===n&&(r+=r,i+=i,o+=o),"rgba("+parseInt(r,16)+","+parseInt(i,16)+","+parseInt(o,16)+",0.1)"},rgbToRgba:function(t){return t.replace(")",", 0.1)").replace("(","a(")},rgbaToRgb:function(t){return t?t.replace("rgba","rgb").replace(/,[^\),]+\)/,")"):"rgb(0,0,0)"}}})}(),function(){e.module("material.core").factory("$mdConstant",function(){function t(t){var e=r(o+"-"+t),a=e.charAt(0).toLowerCase()+e.substring(1);return n(i,t)?t:n(i,e)?e:n(i,a)?a:t}function n(t,n){return e.isDefined(t.style[n])}function r(t){return t.replace(s,function(t,e,n,r){return r?n.toUpperCase():n})}var i=document.createElement("div"),o=function(t){var e,n,r=/^(Moz|webkit|ms)(?=[A-Z])/;for(e in t.style)if(n=r.exec(e))return n[0]}(i),a=/webkit/i.test(o),s=/([:\-_]+(.))/g,c={isInputKey:function(t){return t.keyCode>=31&&t.keyCode<=90},isNumPadKey:function(t){return 3===t.location&&t.keyCode>=97&&t.keyCode<=105},isMetaKey:function(t){return t.keyCode>=91&&t.keyCode<=93},isFnLockKey:function(t){return t.keyCode>=112&&t.keyCode<=145},isNavigationKey:function(t){var e=c.KEY_CODE;return-1!=[e.SPACE,e.ENTER,e.UP_ARROW,e.DOWN_ARROW].indexOf(t.keyCode)},hasModifierKey:function(t){return t.ctrlKey||t.metaKey||t.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(a?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(a?" webkitAnimationEnd":""),TRANSFORM:t("transform"),TRANSFORM_ORIGIN:t("transformOrigin"),TRANSITION:t("transition"),TRANSITION_DURATION:t("transitionDuration"),ANIMATION_PLAY_STATE:t("animationPlayState"),ANIMATION_DURATION:t("animationDuration"),ANIMATION_NAME:t("animationName"),ANIMATION_TIMING:t("animationTimingFunction"),ANIMATION_DIRECTION:t("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return c})}(),function(){function t(t,n){function r(t){return u.length&&t>-1&&t<u.length}function i(t){return u.indexOf(t)}function o(t){return t&&i(t)>-1}function a(){return u.length?u[0]:null}function s(){return u.length?u[u.length-1]:null}function c(t,o,c,d){c=c||l;for(var m=i(o);;){if(!r(m))return null;var p=m+(t?-1:1),h=null;if(r(p)?h=u[p]:n&&(p=i(h=t?s():a())),null===h||p===d)return null;if(c(h))return h;e.isUndefined(d)&&(d=p),m=p}}var l=function(){return!0};t&&!e.isArray(t)&&(t=Array.prototype.slice.call(t)),n=!!n;var u=t||[];return{items:function(){return[].concat(u)},count:function(){return u.length},inRange:r,contains:o,indexOf:i,itemAt:function(t){return r(t)?u[t]:null},findBy:function(t,e){return u.filter(function(n){return n[t]===e})},add:function(t,n){return t?(e.isNumber(n)||(n=u.length),u.splice(n,0,t),i(t)):-1},remove:function(t){o(t)&&u.splice(i(t),1)},first:a,last:s,next:e.bind(null,c,!1),previous:e.bind(null,c,!0),hasPrevious:function(t){return!!t&&r(i(t)-1)},hasNext:function(t){return!!t&&r(i(t)+1)}}}e.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.iterator=t,e}])}])}(),function(){function t(t,n,r){function i(t){var n=l[t];e.isUndefined(n)&&(n=l[t]=o(t));var r=d[n];return e.isUndefined(r)&&(r=a(n)),r}function o(e){return t.MEDIA[e]||("("!==e.charAt(0)?"("+e+")":e)}function a(t){var e=u[t];return e||(e=u[t]=r.matchMedia(t)),e.addListener(s),d[e.media]=!!e.matches}function s(t){n.$evalAsync(function(){d[t.media]=!!t.matches})}function c(t,e){return m[e]||(m[e]=t.$normalize(e))}var l={},u={},d={},m={};return i.getResponsiveAttribute=function(e,n){for(var r=0;r<t.MEDIA_PRIORITY.length;r++){var i=t.MEDIA_PRIORITY[r];if(u[l[i]].matches){var o=c(e,n+"-"+i);if(e[o])return e[o]}}return e[c(e,n)]},i.getQuery=function(t){return u[t]},i.watchResponsiveAttributes=function(n,r,i){var o=[];return n.forEach(function(n){var a=c(r,n);e.isDefined(r[a])&&o.push(r.$observe(a,e.bind(void 0,i,null)));for(var s in t.MEDIA)a=c(r,n+"-"+s),e.isDefined(r[a])&&o.push(r.$observe(a,e.bind(void 0,i,s)))}),function(){o.forEach(function(t){t()})}},i}t.$inject=["$mdConstant","$rootScope","$window"],e.module("material.core").factory("$mdMedia",t)}(),function(){function t(t,n){function r(t){return(t=e.isArray(t)?t:[t]).forEach(function(e){a.forEach(function(n){t.push(n+"-"+e)})}),t}function i(t){return t=e.isArray(t)?t:[t],r(t).map(function(t){return"["+t+"]"}).join(",")}function o(t){if((t=t[0]||t).nodeType)return t}var a=["data","x"];return t?n?i(t):r(t):{buildList:r,buildSelector:i,hasAttribute:function(t,e){if(!(t=o(t)))return!1;for(var n=r(e),i=0;i<n.length;i++)if(t.hasAttribute(n[i]))return!0;return!1},removeAttribute:function(t,e){(t=o(t))&&r(e).forEach(function(e){t.removeAttribute(e)})}}}e.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.prefixer=t,e}])}])}(),function(){function r(r,o,a,s,c,l,u,d,m,p){function h(t){return t?f(t)||g(t)?t:t+"px":"0"}function f(t){return String(t).indexOf("px")>-1}function g(t){return String(t).indexOf("%")>-1}function v(t){return t[0]||t}var $=l.startSymbol(),b=l.endSymbol(),y="{{"===$&&"}}"===b,E=function(t,n,r){var i=!1;if(t&&t.length){var o=m.getComputedStyle(t[0]);i=e.isDefined(o[n])&&(!r||o[n]==r)}return i},C={dom:{},now:t.performance&&t.performance.now?e.bind(t.performance,t.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(t,e){if(t.$options){var n=t.$options;return n.getOption?n.getOption(e):n[e]}},bidi:function(t,n,i,o){var a=!("rtl"==r[0].dir||"rtl"==r[0].body.dir);if(0==arguments.length)return a?"ltr":"rtl";var s=e.element(t);a&&e.isDefined(i)?s.css(n,h(i)):!a&&e.isDefined(o)&&s.css(n,h(o))},bidiProperty:function(t,n,i,o){var a=!("rtl"==r[0].dir||"rtl"==r[0].body.dir),s=e.element(t);a&&e.isDefined(n)?(s.css(n,h(o)),s.css(i,"")):!a&&e.isDefined(i)&&(s.css(i,h(o)),s.css(n,""))},clientRect:function(t,e,n){var r=v(t);e=v(e||r.offsetParent||document.body);var i=r.getBoundingClientRect(),o=n?e.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:i.left-o.left,top:i.top-o.top,width:i.width,height:i.height}},offsetRect:function(t,e){return C.clientRect(t,e,!0)},nodesToArray:function(t){t=t||[];for(var e=[],n=0;n<t.length;++n)e.push(t.item(n));return e},getViewportTop:function(){return t.scrollY||t.pageYOffset||0},findFocusTarget:function(t,n){function r(t,n){var r,i=t[0].querySelectorAll(n);return i&&i.length&&i.length&&e.forEach(i,function(t){(t=e.element(t)).hasClass("md-autofocus")&&(r=t)}),r}var i,o=this.prefixer("md-autofocus",!0);return(i=r(t,n||o))||n==o||(i=r(t,this.prefixer("md-auto-focus",!0)))||(i=r(t,o)),i},disableScrollAround:function(t,n,i){if(i=i||{},C.disableScrollAround._count=Math.max(0,C.disableScrollAround._count||0),C.disableScrollAround._count++,C.disableScrollAround._restoreScroll)return C.disableScrollAround._restoreScroll;var o=r[0].body,a=function(){var t=r[0].documentElement,n=t.style.cssText||"",i=o.style.cssText||"",a=C.getViewportTop(),s=o.clientWidth,c=o.scrollHeight>o.clientHeight+1;return c&&e.element(o).css({position:"fixed",width:"100%",top:-a+"px"}),o.clientWidth<s&&(o.style.overflow="hidden"),c&&(t.style.overflowY="scroll"),function(){o.style.cssText=i,t.style.cssText=n,o.scrollTop=a}}(),s=function(t){function n(t){t.preventDefault()}t=e.element(t||o);var r;return i.disableScrollMask?r=t:(r=e.element('<div class="md-scroll-mask"> <div class="md-scroll-mask-bar"></div></div>'),t.append(r)),r.on("wheel",n),r.on("touchmove",n),function(){r.off("wheel"),r.off("touchmove"),i.disableScrollMask||r[0].parentNode.removeChild(r[0])}}(n);return C.disableScrollAround._restoreScroll=function(){--C.disableScrollAround._count<=0&&(a(),s(),delete C.disableScrollAround._restoreScroll)}},enableScrolling:function(){var t=this.disableScrollAround._restoreScroll;t&&t()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===n){var t=e.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});t.children().css("height","60px"),r[0].body.appendChild(t[0]),this.floatingScrollbars.cached=t[0].offsetWidth==t[0].childNodes[0].offsetWidth,t.remove()}return this.floatingScrollbars.cached},forceFocus:function(e){var n=e[0]||e;document.addEventListener("click",function t(e){e.target===n&&e.$focus&&(n.focus(),e.stopImmediatePropagation(),e.preventDefault(),n.removeEventListener("click",t))},!0);var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!1,!0,t,{},0,0,0,0,!1,!1,!1,!1,0,null),r.$material=!0,r.$focus=!0,n.dispatchEvent(r)},createBackdrop:function(t,e){return a(C.supplant('<md-backdrop class="{0}">',[e]))(t)},supplant:function(t,e,n){return n=n||/\{([^\{\}]*)\}/g,t.replace(n,function(t,n){var r=n.split("."),i=e;try{for(var o in r)r.hasOwnProperty(o)&&(i=i[r[o]])}catch(e){i=t}return"string"==typeof i||"number"==typeof i?i:t})},fakeNgModel:function(){return{$fake:!0,$setTouched:e.noop,$setViewValue:function(t){this.$viewValue=t,this.$render(t),this.$viewChangeListeners.forEach(function(t){t()})},$isEmpty:function(t){return 0===(""+t).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:e.noop}},debounce:function(t,e,r,i){var a;return function(){var s=r,c=Array.prototype.slice.call(arguments);o.cancel(a),a=o(function(){a=n,t.apply(s,c)},e||10,i)}},throttle:function(t,e){var n;return function(){var r=this,i=arguments,o=C.now();(!n||o-n>e)&&(t.apply(r,i),n=o)}},time:function(t){var e=C.now();return t(),C.now()-e},valueOnUse:function(t,e,n){var r=null,i=Array.prototype.slice.call(arguments),o=i.length>3?i.slice(3):[];Object.defineProperty(t,e,{get:function(){return null===r&&(r=n.apply(t,o)),r}})},nextUid:function(){return""+i++},disconnectScope:function(t){if(t&&t.$root!==t&&!t.$$destroyed){var e=t.$parent;t.$$disconnected=!0,e.$$childHead===t&&(e.$$childHead=t.$$nextSibling),e.$$childTail===t&&(e.$$childTail=t.$$prevSibling),t.$$prevSibling&&(t.$$prevSibling.$$nextSibling=t.$$nextSibling),t.$$nextSibling&&(t.$$nextSibling.$$prevSibling=t.$$prevSibling),t.$$nextSibling=t.$$prevSibling=null}},reconnectScope:function(t){if(t&&t.$root!==t&&t.$$disconnected){var e=t,n=e.$parent;e.$$disconnected=!1,e.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=e,n.$$childTail=e):n.$$childHead=n.$$childTail=e}},getClosest:function(t,n,r){if(e.isString(n)){var i=n.toUpperCase();n=function(t){return t.nodeName.toUpperCase()===i}}if(t instanceof e.element&&(t=t[0]),r&&(t=t.parentNode),!t)return null;do{if(n(t))return t}while(t=t.parentNode);return null},elementContains:function(n,r){return(t.Node&&t.Node.prototype&&Node.prototype.contains?e.bind(n,n.contains):e.bind(n,function(t){return n===r||!!(16&this.compareDocumentPosition(t))}))(r)},extractElementByName:function(t,n,r,i){function o(t){return a(t)||(r?s(t):null)}function a(t){if(t)for(var e=0,r=t.length;e<r;e++)if(t[e].nodeName.toLowerCase()===n)return t[e];return null}function s(t){var e;if(t)for(var n=0,r=t.length;n<r;n++){var i=t[n];if(!e)for(var a=0,s=i.childNodes.length;a<s;a++)e=e||o([i.childNodes[a]])}return e}var c=o(t);return!c&&i&&u.warn(C.supplant("Unable to find node '{0}' in element '{1}'.",[n,t[0].outerHTML])),e.element(c||t)},initOptionalProperties:function(t,n,r){r=r||{},e.forEach(t.$$isolateBindings,function(i,o){if(i.optional&&e.isUndefined(t[o])){var a=e.isDefined(n[i.attrName]);t[o]=e.isDefined(r[o])?r[o]:a}})},nextTick:function(t,e,n){var r=C.nextTick,i=r.timeout,a=r.queue||[];return a.push({scope:n,callback:t}),null==e&&(e=!0),r.digest=r.digest||e,r.queue=a,i||(r.timeout=o(function(){var t=r.queue,e=r.digest;r.queue=[],r.timeout=null,r.digest=!1,t.forEach(function(t){t.scope&&t.scope.$$destroyed||t.callback()}),e&&s.$digest()},0,!1))},processTemplate:function(t){return y?t:t&&e.isString(t)?t.replace(/\{\{/g,$).replace(/}}/g,b):t},getParentWithPointerEvents:function(t){for(var e=t.parent();E(e,"pointer-events","none");)e=e.parent();return e},getNearestContentElement:function(t){for(var e=t.parent()[0];e&&e!==d[0]&&e!==document.body&&"MD-CONTENT"!==e.nodeName.toUpperCase();)e=e.parentNode;return e},checkStickySupport:function(){var t,n=e.element("<div>");r[0].body.appendChild(n[0]);for(var i=["sticky","-webkit-sticky"],o=0;o<i.length;++o)if(n.css({position:i[o],top:0,"z-index":2}),n.css("position")==i[o]){t=i[o];break}return n.remove(),t},parseAttributeBoolean:function(t,e){return""===t||!!t&&(!1===e||"false"!==t&&"0"!==t)},hasComputedStyle:E,isParentFormSubmitted:function(t){var n=C.getClosest(t,"form"),r=n?e.element(n).controller("form"):null;return!!r&&r.$submitted},animateScrollTo:function(t,e,n){function r(){var n=i();t.scrollTop=n,(c?n<e:n>e)&&p(r)}function i(){var t=n||1e3;return o(C.now()-l,a,s,t)}function o(t,e,n,r){if(t>r)return e+n;var i=(t/=r)*t;return e+n*(-2*(i*t)+3*i)}var a=t.scrollTop,s=e-a,c=a<e,l=C.now();p(r)},uniq:function(t){if(t)return t.filter(function(t,e,n){return n.indexOf(t)===e})}};return C.dom.animator=c(C),C}r.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var i=0;e.module("material.core").factory("$mdUtil",r),e.element.prototype.focus=e.element.prototype.focus||function(){return this.length&&this[0].focus(),this},e.element.prototype.blur=e.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),function(){function t(t,e,n,r,i){this.$q=t,this.$templateRequest=e,this.$injector=n,this.$compile=r,this.$controller=i}t.$inject=["$q","$templateRequest","$injector","$compile","$controller"],e.module("material.core").service("$mdCompiler",t),t.prototype.compile=function(t){return t.contentElement?this._prepareContentElement(t):this._compileTemplate(t)},t.prototype._prepareContentElement=function(t){var e=this._fetchContentElement(t);return this.$q.resolve({element:e.element,cleanup:e.restore,locals:{},link:function(){return e.element}})},t.prototype._compileTemplate=function(t){var n=this,r=t.templateUrl,i=t.template||"",o=e.extend({},t.resolve),a=e.extend({},t.locals),s=t.transformTemplate||e.identity;return e.forEach(o,function(t,r){e.isString(t)?o[r]=n.$injector.get(t):o[r]=n.$injector.invoke(t)}),e.extend(o,a),o.$$ngTemplate=r?this.$templateRequest(r):this.$q.when(i),this.$q.all(o).then(function(r){var i=s(r.$$ngTemplate,t),o=t.element||e.element("<div>").html(i.trim()).contents();return n._compileElement(r,o,t)})},t.prototype._compileElement=function(t,n,r){var i=this,o=this.$compile(n),a={element:n,cleanup:n.remove.bind(n),locals:t,link:function(s){if(t.$scope=s,r.controller){var c=e.extend(t,{$element:n}),l=i.$controller(r.controller,c,!0,r.controllerAs);r.bindToController&&e.extend(l.instance,t);var u=l();n.data("$ngControllerController",u),n.children().data("$ngControllerController",u),a.controller=u}return o(s)}};return a},t.prototype._fetchContentElement=function(t){function n(t){var e=t.parentNode,n=t.nextElementSibling;return function(){n?e.insertBefore(t,n):e.appendChild(t)}}var r=t.contentElement,i=null;return e.isString(r)?i=n(r=document.querySelector(r)):(r=r[0]||r,i=document.contains(r)?n(r):function(){r.parentNode&&r.parentNode.removeChild(r)}),{element:e.element(r),restore:i}}}(),function(){function t(t,n,r,i){function o(t,r,i){var o=e.element(t)[0]||t;!o||o.hasAttribute(r)&&0!==o.getAttribute(r).length||c(o,r)||((i=e.isString(i)?i.trim():"").length?t.attr(r,i):d&&n.warn('ARIA: Attribute "',r,'", required for accessibility, is missing on node:',o))}function a(e,n,r){t(function(){o(e,n,r())})}function s(t){t=t[0]||t;for(var e,n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),r="";e=n.nextNode();)(function(e){for(;e.parentNode&&(e=e.parentNode)!==t;)if(e.getAttribute&&"true"===e.getAttribute("aria-hidden"))return!0})(e)||(r+=e.textContent);return r.trim()||""}function c(t,e){var n=!1;if(t.hasChildNodes())for(var i=t.childNodes,o=0;o<i.length;o++){var a=i[o];1===a.nodeType&&a.hasAttribute(e)&&(function(t){return"none"===(t.currentStyle?t.currentStyle:r.getComputedStyle(t)).display}(a)||(n=!0))}return n}function l(t){var n=e.element(t)[0]||t;return!!n.hasAttribute&&(n.hasAttribute("aria-label")||n.hasAttribute("aria-labelledby")||n.hasAttribute("aria-describedby"))}function u(t,n){n=n||1;var r=e.element(t)[0]||t;return!!r.parentNode&&(!!function(t){if(!l(t))return!1;if(t.hasAttribute("role"))switch(t.getAttribute("role").toLowerCase()){case"command":case"definition":case"directory":case"grid":case"list":case"listitem":case"log":case"marquee":case"menu":case"menubar":case"note":case"presentation":case"separator":case"scrollbar":case"status":case"tablist":return!1}switch(t.tagName.toLowerCase()){case"abbr":case"acronym":case"address":case"applet":case"audio":case"b":case"bdi":case"bdo":case"big":case"blockquote":case"br":case"canvas":case"caption":case"center":case"cite":case"code":case"col":case"data":case"dd":case"del":case"dfn":case"dir":case"div":case"dl":case"em":case"embed":case"fieldset":case"figcaption":case"font":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"hgroup":case"html":case"i":case"ins":case"isindex":case"kbd":case"keygen":case"label":case"legend":case"li":case"map":case"mark":case"menu":case"object":case"ol":case"output":case"pre":case"presentation":case"q":case"rt":case"ruby":case"samp":case"small":case"source":case"span":case"status":case"strike":case"strong":case"sub":case"sup":case"svg":case"tbody":case"td":case"th":case"thead":case"time":case"tr":case"track":case"tt":case"ul":case"var":return!1}return!0}(r.parentNode)||!!--n&&u(r.parentNode,n))}var d=this.showWarnings;return{expect:o,expectAsync:a,expectWithText:function(t,e){var n=s(t)||"";n.indexOf(i.startSymbol())>-1?a(t,e,function(){return s(t)}):o(t,e,n)},expectWithoutText:function(t,e){var n=s(t);n.indexOf(i.startSymbol())>-1||n||o(t,e,n)},getText:s,hasAriaLabel:l,parentHasAriaLabel:u}}t.$inject=["$$rAF","$log","$window","$interpolate"],e.module("material.core").provider("$mdAria",function(){var e={showWarnings:!0};return{disableWarnings:function(){e.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(n,r,i,o){return t.apply(e,arguments)}]}})}(),function(){function n(t,n){this.$timeout=t,this.$mdUtil=n,this.bodyElement=e.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents()}n.$inject=["$timeout","$mdUtil"],e.module("material.core.interaction",[]).service("$mdInteraction",n),n.prototype.initializeEvents=function(){var e="MSPointerEvent"in t?"MSPointerDown":"PointerEvent"in t?"pointerdown":null;this.bodyElement.on("keydown mousedown",this.onInputEvent.bind(this)),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.onBufferInputEvent.bind(this)),e&&this.bodyElement.on(e,this.onInputEvent.bind(this))},n.prototype.onInputEvent=function(t){if(!this.isBuffering){var e=this.inputEventMap[t.type];"pointer"===e&&(e=this.iePointerMap[t.pointerType]||t.pointerType),this.lastInteractionType=e,this.lastInteractionTime=this.$mdUtil.now()}},n.prototype.onBufferInputEvent=function(t){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(t),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},n.prototype.getLastInteractionType=function(){return this.lastInteractionType},n.prototype.isUserInvoked=function(t){var n=e.isNumber(t)?t:15;return this.lastInteractionTime>=this.$mdUtil.now()-n}}(),function(){function n(){}function r(n,r,i){function o(t){return function(e,n){n.distance<this.state.options.maxDistance&&this.dispatchEvent(e,t,n)}}var s=navigator.userAgent||navigator.vendor||t.opera,c=s.match(/ipad|iphone|ipod/i),u=s.match(/android/i),d=function(){for(var t=document.createElement("div"),n=["","webkit","Moz","MS","ms","o"],r=0;r<n.length;r++){var i=n[r],o=i?i+"TouchAction":"touchAction";if(e.isDefined(t.style[o]))return o}}(),m=void 0!==t.jQuery&&e.element===t.jQuery,f={handler:function(t,r){var i=new n(t);return e.extend(i,r),p[t]=i,f},register:function(t,e,n){var r=p[e.replace(/^\$md./,"")];if(!r)throw new Error("Failed to register element with handler "+e+". Available handlers: "+Object.keys(p).join(", "));return r.registerElement(t,n)},isHijackingClicks:(c||u)&&!m&&!h};if(f.isHijackingClicks){f.handler("click",{options:{maxDistance:6},onEnd:o("click")}),f.handler("focus",{options:{maxDistance:6},onEnd:function(t,e){e.distance<this.state.options.maxDistance&&function(t){var e=["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"];return"-1"!=t.getAttribute("tabindex")&&!t.hasAttribute("DISABLED")&&(t.hasAttribute("tabindex")||t.hasAttribute("href")||t.isContentEditable||-1!=e.indexOf(t.nodeName))}(t.target)&&(this.dispatchEvent(t,"focus",e),t.target.focus())}}),f.handler("mouseup",{options:{maxDistance:6},onEnd:o("mouseup")}),f.handler("mousedown",{onStart:function(t){this.dispatchEvent(t,"mousedown")}})}return f.handler("press",{onStart:function(t,e){this.dispatchEvent(t,"$md.pressdown")},onEnd:function(t,e){this.dispatchEvent(t,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){i.cancel(this.state.timeout)},onStart:function(t,n){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:n.x,y:n.y},this.state.timeout=i(e.bind(this,function(){this.dispatchEvent(t,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(t,e){d||"touchmove"!==t.type||t.preventDefault();var n=this.state.pos.x-e.x,r=this.state.pos.y-e.y;Math.sqrt(n*n+r*r)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(t,e){d&&(this.oldTouchAction=t[0].style[d],t[0].style[d]=e.horizontal?"pan-y":"pan-x")},onCleanup:function(t){this.oldTouchAction&&(t[0].style[d]=this.oldTouchAction)},onStart:function(t){this.state.registeredParent||this.cancel()},onMove:function(t,e){var n,r;d||"touchmove"!==t.type||t.preventDefault(),this.state.dragPointer?this.dispatchDragMove(t):(this.state.options.horizontal?(n=Math.abs(e.distanceX)>this.state.options.minDistance,r=Math.abs(e.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(e.distanceY)>this.state.options.minDistance,r=Math.abs(e.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=a(t),l(t,this.state.dragPointer),this.dispatchEvent(t,"$md.dragstart",this.state.dragPointer)):r&&this.cancel())},dispatchDragMove:r.throttle(function(t){this.state.isRunning&&(l(t,this.state.dragPointer),this.dispatchEvent(t,"$md.drag",this.state.dragPointer))}),onEnd:function(t,e){this.state.dragPointer&&(l(t,this.state.dragPointer),this.dispatchEvent(t,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(t,e){var n;Math.abs(e.velocityX)>this.state.options.minVelocity&&Math.abs(e.distanceX)>this.state.options.minDistance?(n="left"==e.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(t,n)):Math.abs(e.velocityY)>this.state.options.minVelocity&&Math.abs(e.distanceY)>this.state.options.minDistance&&(n="up"==e.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(t,n))}})}function i(t){this.name=t,this.state={}}function o(t,n){function r(t){!t.clientX&&!t.clientY||t.$material||t.isIonicTap||c(t)||(t.preventDefault(),t.stopPropagation())}function i(t,e){var r;for(var i in p)(r=p[i])instanceof n&&("start"===t&&r.cancel(),r[t](e,d))}document.contains||(document.contains=function(t){return document.body.contains(t)}),!g&&t.isHijackingClicks&&(document.addEventListener("click",function(t){var e=0===t.clientX&&0===t.clientY,n=t.target&&"submit"===t.target.type;e||t.$material||t.isIonicTap||c(t)||n?(f=null,"label"==t.target.tagName.toLowerCase()&&(f={x:t.x,y:t.y})):(t.preventDefault(),t.stopPropagation(),f=null)},!0),document.addEventListener("mouseup",r,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("focus",r,!0),g=!0);e.element(document).on("mousedown touchstart pointerdown",function(t){if(!d){var e=+Date.now();m&&!s(t,m)&&e-m.endTime<1500||(d=a(t),i("start",t))}}).on("mousemove touchmove pointermove",function(t){d&&s(t,d)&&(l(t,d),i("move",t))}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(t){d&&s(t,d)&&(l(t,d),d.endTime=+Date.now(),i("end",t),m=d,d=null)}).on("$$mdGestureReset",function(){m=d=null})}function a(t){var e=u(t),n={startTime:+Date.now(),target:t.target,type:t.type.charAt(0)};return n.startX=n.x=e.pageX,n.startY=n.y=e.pageY,n}function s(t,e){return t&&e&&t.type.charAt(0)===e.type}function c(t){return f&&f.x==t.x&&f.y==t.y}function l(t,e){var n=u(t),r=e.x=n.pageX,i=e.y=n.pageY;e.distanceX=r-e.startX,e.distanceY=i-e.startY,e.distance=Math.sqrt(e.distanceX*e.distanceX+e.distanceY*e.distanceY),e.directionX=e.distanceX>0?"right":e.distanceX<0?"left":"",e.directionY=e.distanceY>0?"down":e.distanceY<0?"up":"",e.duration=+Date.now()-e.startTime,e.velocityX=e.distanceX/e.duration,e.velocityY=e.distanceY/e.duration}function u(t){return(t=t.originalEvent||t).touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0]||t}r.$inject=["$$MdGestureHandler","$$rAF","$timeout"],o.$inject=["$mdGesture","$$MdGestureHandler"];var d,m,p={},h=!1,f=null,g=!1;e.module("material.core.gestures",[]).provider("$mdGesture",n).factory("$$MdGestureHandler",function(){var n=void 0!==t.jQuery&&e.element===t.jQuery;return i.prototype={options:{},dispatchEvent:n?function(t,n,r){r=r||d;var i=new e.element.Event(n);i.$material=!0,i.pointer=r,i.srcEvent=t,e.extend(i,{clientX:r.x,clientY:r.y,screenX:r.x,screenY:r.y,pageX:r.x,pageY:r.y,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey}),e.element(r.target).trigger(i)}:function(e,n,r){r=r||d;var i;"click"===n||"mouseup"==n||"mousedown"==n?(i=document.createEvent("MouseEvents")).initMouseEvent(n,!0,!0,t,e.detail,r.x,r.y,r.x,r.y,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget||null):(i=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,{}),i.$material=!0,i.pointer=r,i.srcEvent=e,r.target.dispatchEvent(i)},onSetup:e.noop,onCleanup:e.noop,onStart:e.noop,onMove:e.noop,onEnd:e.noop,onCancel:e.noop,start:function(t,n){if(!this.state.isRunning){var r=this.getNearestParent(t.target),i=r&&r.$mdGesture[this.name]||{};this.state={isRunning:!0,options:e.extend({},this.options,i),registeredParent:r},this.onStart(t,n)}},move:function(t,e){this.state.isRunning&&this.onMove(t,e)},end:function(t,e){this.state.isRunning&&(this.onEnd(t,e),this.state.isRunning=!1)},cancel:function(t,e){this.onCancel(t,e),this.state={}},getNearestParent:function(t){for(var e=t;e;){if((e.$mdGesture||{})[this.name])return e;e=e.parentNode}return null},registerElement:function(t,e){function n(){delete t[0].$mdGesture[r.name],t.off("$destroy",n),r.onCleanup(t,e||{})}var r=this;return t[0].$mdGesture=t[0].$mdGesture||{},t[0].$mdGesture[this.name]=e||{},t.on("$destroy",n),r.onSetup(t,e||{}),n}},i}).run(o),n.prototype={skipClickHijack:function(){return h=!0},$get:["$$MdGestureHandler","$$rAF","$timeout",function(t,e,n){return new r(t,e,n)}]}}(),function(){e.module("material.core").provider("$$interimElement",function(){function t(t){function n(n,r){function a(e,n){var i={};return i[t]=u,r.invoke(e||function(){return n},{},i)}var s,c,l=n(),u={hide:l.hide,cancel:l.cancel,show:function(t){return(t=t||{})._options&&(t=t._options),l.show(e.extend({},c,t))},destroy:function(t){return l.destroy(t)}};return s=o.methods||[],c=a(o.optionsFactory,{}),e.forEach(i,function(t,e){u[e]=t}),e.forEach(o.presets,function(t,n){function r(t){this._options=e.extend({},i,t)}var i=a(t.optionsFactory,{}),o=(t.methods||[]).concat(s);if(e.extend(i,{$type:n}),e.forEach(o,function(t){r.prototype[t]=function(e){return this._options[t]=e,this}}),t.argOption){var c="show"+n.charAt(0).toUpperCase()+n.slice(1);u[c]=function(t){var e=u[n](t);return u.show(e)}}u[n]=function(n){return arguments.length&&t.argOption&&!e.isObject(n)&&!e.isArray(n)?(new r)[t.argOption](n):new r(n)}}),u}n.$inject=["$$interimElement","$injector"];var r=["onHide","onShow","onRemove"],i={},o={presets:{}},a={setDefaults:function(t){return o.optionsFactory=t.options,o.methods=(t.methods||[]).concat(r),a},addPreset:function(e,n){if(n=n||{},n.methods=n.methods||[],n.options=n.options||function(){return{}},/^cancel|hide|show$/.test(e))throw new Error("Preset '"+e+"' in "+t+" is reserved!");if(n.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+t+" is reserved!");return o.presets[e]={methods:n.methods.concat(r),optionsFactory:n.options,argOption:n.argOption},a},addMethod:function(t,e){return i[t]=e,a},$get:n};return a.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),a}function r(t,r,i,o,a,s,c,l,u,d,m){return function(){function p(t){return function(){var e=arguments;return b.length?t.apply(f,e):v.length?v[0].finally(function(){return t.apply(f,e)}):r.when("No interim elements currently showing up.")}}function h(d){function m(t){return(t.skipCompile?null:l.compile(t))||r(function(e){e({locals:{},link:function(){return t.element}})})}function p(t,n){e.extend(t.locals,n);var r=t.link(n.scope);return n.element=r,n.parent=h(r,n),n.themable&&u(r),r}function h(n,r){var i=r.parent;if(!((i=e.isFunction(i)?i(r.scope,n,r):e.isString(i)?e.element(t[0].querySelector(i)):e.element(i))||{}).length){var o;return a[0]&&a[0].querySelector&&(o=a[0].querySelector(":not(svg) > body")),o||(o=a[0]),"#comment"==o.nodeName&&(o=t[0].body),e.element(o)}return i}function g(){var t,r=e.noop;d.hideDelay&&(t=o(f.hide,d.hideDelay),r=function(){o.cancel(t)}),d.cancelAutoHide=function(){r(),d.cancelAutoHide=n}}function v(t,n,i){var o=n.onShowing||e.noop,a=n.onComplete||e.noop;try{o(n.scope,t,n,i)}catch(t){return r.reject(t)}return r(function(e,o){try{r.when(n.onShow(n.scope,t,n,i)).then(function(){a(n.scope,t,n),g(),e(t)},o)}catch(t){o(t.message)}})}function $(t,n){var i=n.onRemoving||e.noop;return r(function(e,o){try{var a=r.when(n.onRemove(n.scope,t,n)||!0);i(t,a),n.$destroy?(e(t),!n.preserveScope&&n.scope&&a.then(function(){n.scope.$destroy()})):a.then(function(){!n.preserveScope&&n.scope&&n.scope.$destroy(),e(t)},o)}catch(t){o(t.message)}})}var b,y,E=r.when(!0);return d=function(t){return(t=t||{}).template&&(t.template=c.processTemplate(t.template)),e.extend({preserveScope:!1,cancelAutoHide:e.noop,scope:t.scope||i.$new(t.isolateScope),onShow:function(t,e,n){return s.enter(e,n.parent)},onRemove:function(t,e){return e&&s.leave(e)||r.when()}},t)}(d),b={options:d,deferred:r.defer(),show:function(){return r(function(t,e){function n(t){b.deferred.reject(t),e(t)}d.onCompiling&&d.onCompiling(d),m(d).then(function(e){y=p(e,d),d.cleanupElement=e.cleanup,E=v(y,d,e.controller).then(t,n)}).catch(n)})},remove:function(t,n,i){function o(t){b.deferred.resolve(t)}function a(t){b.deferred.reject(t)}return y?((d=e.extend(d||{},i||{})).cancelAutoHide&&d.cancelAutoHide(),d.element.triggerHandler("$mdInterimElementRemove"),!0===d.$destroy?$(d.element,d).then(function(){n&&a(t)||o(t)}):(r.when(E).finally(function(){$(d.element,d).then(function(){n?a(t):o(t)},a)}),b.deferred.promise)):r.when(!1)}}}var f,g=!1,v=[],$=[],b=[];return f={show:function(t){var e=new h((t=t||{})||{}),n=t.multiple?r.resolve():r.all(v);t.multiple||(n=n.then(function(){var t=$.concat(b.map(f.cancel));return r.all(t)}));var i=n.then(function(){return e.show().catch(function(t){return t}).finally(function(){v.splice(v.indexOf(i),1),b.push(e)})});return v.push(i),e.deferred.promise.catch(function(t){return t instanceof Error&&m(t),t}),e.deferred.promise},hide:p(function(t,e){function i(n){var r=n.remove(t,!1,e||{}).catch(function(t){return t}).finally(function(){$.splice($.indexOf(r),1)});return b.splice(b.indexOf(n),1),$.push(r),n.deferred.promise}return(e=e||{}).closeAll?r.all(b.slice().reverse().map(i)):e.closeTo!==n?r.all(b.slice(e.closeTo).map(i)):i(b[b.length-1])}),cancel:p(function(t,n){var i=b.pop();if(!i)return r.when(t);var o=i.remove(t,!0,n||{}).catch(function(t){return t}).finally(function(){$.splice($.indexOf(o),1)});return $.push(o),i.deferred.promise.catch(e.noop)}),destroy:function(t){var n=t?null:b.shift(),i=e.element(t).length&&e.element(t)[0].parentNode;if(i){var o=b.filter(function(t){return t.options.element[0]===i});o.length&&(n=o[0],b.splice(b.indexOf(n),1))}return n?n.remove(g,!1,{$destroy:!0}):r.when(g)},$injector_:d}}}return r.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],t.$get=r,t})}(),function(){function t(){var t=!!document.querySelector("[md-layouts-disabled]");M.enabled=!t}function n(){return M.enabled=!1,{restrict:"A",priority:"900"}}function r(t){return["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(r){return M.enabled?(r.addClass(t),function(e,r){n(function(){r.removeClass(t)},10,!1)}):e.noop}}}]}function i(t){function n(e,n,r){var i=a(n,t),o=r.$observe(r.$normalize(t),i);i(m(t,r,"")),e.$on("$destroy",function(){o()})}return["$mdUtil","$interpolate","$log",function(r,i,o){return f=r,g=i,v=o,{restrict:"A",compile:function(r,i){var o;return M.enabled&&(c(t,i,r,v),l(t,m(t,i,""),u(r,t,i)),o=n),o||e.noop}}}]}function o(t){function n(e,n){n.addClass(t)}return["$mdUtil","$interpolate","$log",function(r,i,o){return f=r,g=i,v=o,{restrict:"A",compile:function(r,i){var o;return M.enabled&&(l(t,m(t,i,""),u(r,t,i)),n(0,r),o=n),o||e.noop}}}]}function a(t,n){var r;return function(i){var o=l(n,i||"");e.isDefined(o)&&(r&&t.removeClass(r),r=o?n+"-"+o.trim().replace(b,"-"):n,t.addClass(r))}}function s(t){var n=t.split("-");return["$log",function(r){return r.warn(t+"has been deprecated. Please use a `"+n[0]+"-gt-<xxx>` variant."),e.noop}]}function c(t,e,n,r){var i,o,a,s=n[0].nodeName.toLowerCase();switch(t.replace($,"")){case"flex":"md-button"!=s&&"fieldset"!=s||(o="<"+s+" "+t+"></"+s+">",a="https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers",i="Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",r.warn(f.supplant(i,[o,a])))}}function l(t,n,r){if(!d(n)){switch(t.replace($,"")){case"layout":p(n,E)||(n=E[0]);break;case"flex":p(n,y)||isNaN(n)&&(n="");break;case"flex-offset":case"flex-order":n&&!isNaN(+n)||(n="0");break;case"layout-align":var i=h(n);n=f.supplant("{main}-{cross}",i);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":case"layout-nowrap":n=""}void 0!=n&&(r||e.noop)(n)}return n?n.trim():""}function u(t,e,n){return function(t){d(t)||(n[n.$normalize(e)]=t)}}function d(t){return(t||"").indexOf(g.startSymbol())>-1}function m(t,e,n){var r=e.$normalize(t);return e[r]?e[r].trim().replace(b,"-"):n||null}function p(t,e,n){var r=!1;return(t=n&&t?t.replace(b,n):t)&&e.forEach(function(e){e=n?e.replace(b,n):e,r=r||e===t}),r}function h(t){var e,n={main:"start",cross:"stretch"};return 0!==(t=t||"").indexOf("-")&&0!==t.indexOf(" ")||(t="none"+t),(e=t.toLowerCase().trim().replace(b,"-").split("-")).length&&"space"===e[0]&&(e=[e[0]+"-"+e[1],e[2]]),e.length>0&&(n.main=e[0]||n.main),e.length>1&&(n.cross=e[1]||n.cross),C.indexOf(n.main)<0&&(n.main="start"),w.indexOf(n.cross)<0&&(n.cross="stretch"),n}var f,g,v,$=/(-gt)?-(sm|md|lg|print)/g,b=/\s+/g,y=["grow","initial","auto","none","noshrink","nogrow"],E=["row","column"],C=["","start","center","end","stretch","space-around","space-between"],w=["","start","center","end","stretch"],M={enabled:!0,breakpoints:[]};!function(a){function u(t){return t.replace(d,"").replace(m,function(t,e,n,r){return r?n.toUpperCase():n})}var d=/^((?:x|data)[\:\-_])/i,m=/([\:\-\_]+(.))/g,p=["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],h=["layout","flex","flex-order","flex-offset","layout-align"],f=["show","hide","layout-padding","layout-margin"];e.forEach(p,function(t){e.forEach(h,function(e){var n=t?e+"-"+t:e;a.directive(u(n),i(n))}),e.forEach(f,function(e){var n=t?e+"-"+t:e;a.directive(u(n),o(n))})}),a.provider("$$mdLayout",function(){return{$get:e.noop,validateAttributeValue:l,validateAttributeUsage:c,disableLayouts:function(t){M.enabled=!0!==t}}}).directive("mdLayoutCss",n).directive("ngCloak",r("ng-cloak")).directive("layoutWrap",o("layout-wrap")).directive("layoutNowrap",o("layout-nowrap")).directive("layoutNoWrap",o("layout-no-wrap")).directive("layoutFill",o("layout-fill")).directive("layoutLtMd",s("layout-lt-md")).directive("layoutLtLg",s("layout-lt-lg")).directive("flexLtMd",s("flex-lt-md")).directive("flexLtLg",s("flex-lt-lg")).directive("layoutAlignLtMd",s("layout-align-lt-md")).directive("layoutAlignLtLg",s("layout-align-lt-lg")).directive("flexOrderLtMd",s("flex-order-lt-md")).directive("flexOrderLtLg",s("flex-order-lt-lg")).directive("offsetLtMd",s("flex-offset-lt-md")).directive("offsetLtLg",s("flex-offset-lt-lg")).directive("hideLtMd",s("hide-lt-md")).directive("hideLtLg",s("hide-lt-lg")).directive("showLtMd",s("show-lt-md")).directive("showLtLg",s("show-lt-lg")).config(t)}(e.module("material.core.layout",["ng"]))}(),function(){function t(t){this._$timeout=t,this._liveElement=this._createLiveElement(),this._announceTimeout=100}t.$inject=["$timeout"],e.module("material.core").service("$mdLiveAnnouncer",t),t.prototype.announce=function(t,e){e||(e="polite");var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",e),n._$timeout(function(){n._liveElement.textContent=t},n._announceTimeout,!1)},t.prototype._createLiveElement=function(){var t=document.createElement("div");return t.classList.add("md-visually-hidden"),t.setAttribute("role","status"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),document.body.appendChild(t),t}}(),e.module("material.core.meta",[]).provider("$$mdMeta",function(){function t(t){if(r[t])return!0;var n=document.getElementsByName(t)[0];return!!n&&(r[t]=e.element(n),!0)}var n=e.element(document.head),r={},i={setMeta:function(i,o){if(t(i),r[i])r[i].attr("content",o);else{var a=e.element('<meta name="'+i+'" content="'+o+'"/>');n.append(a),r[i]=a}return function(){r[i].attr("content",""),r[i].remove(),delete r[i]}},getMeta:function(e){if(!t(e))throw Error("$$mdMeta: could not find a meta tag with the name '"+e+"'");return r[e].attr("content")}};return e.extend({},i,{$get:function(){return i}})}),function(){function t(t,r){function i(t){return t&&""!==t}var o,a=[],s={};return o={notFoundError:function(e,n){t.error((n||"")+"No instance found for handle",e)},getInstances:function(){return a},get:function(t){if(!i(t))return null;var e,n,r;for(e=0,n=a.length;e<n;e++)if((r=a[e]).$$mdHandle===t)return r;return null},register:function(t,n){return n?(t.$$mdHandle=n,a.push(t),function(){var e=s[n];e&&(e.forEach(function(e){e.resolve(t)}),delete s[n])}(),function(){var e=a.indexOf(t);-1!==e&&a.splice(e,1)}):e.noop},when:function(t){if(i(t)){var e=r.defer(),a=o.get(t);return a?e.resolve(a):(s[t]===n&&(s[t]=[]),s[t].push(e)),e.promise}return r.reject("Invalid `md-component-id` value.")}}}t.$inject=["$log","$q"],e.module("material.core").factory("$mdComponentRegistry",t)}(),function(){function t(t){function n(t){return t.hasClass("md-icon-button")?{isMenuItem:t.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:t.hasClass("md-menu-item"),dimBackground:!0}}return{attach:function(r,i,o){return o=e.extend(n(i),o),t.attach(r,i,o)}}}t.$inject=["$mdInkRipple"],e.module("material.core").factory("$mdButtonInkRipple",t)}(),function(){function t(t){return{attach:function(n,r,i){return t.attach(n,r,e.extend({center:!0,dimBackground:!1,fitRipple:!0},i))}}}t.$inject=["$mdInkRipple"],e.module("material.core").factory("$mdCheckboxInkRipple",t)}(),function(){function t(t){return{attach:function(n,r,i){return t.attach(n,r,e.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}}}t.$inject=["$mdInkRipple"],e.module("material.core").factory("$mdListInkRipple",t)}(),function(){function t(t,n){return{controller:e.noop,link:function(e,r,i){i.hasOwnProperty("mdInkRippleCheckbox")?n.attach(e,r):t.attach(e,r)}}}function n(t,n,r,i,o,a,s){this.$window=i,this.$timeout=o,this.$mdUtil=a,this.$mdColorUtil=s,this.$scope=t,this.$element=n,this.options=r,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,a.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(n.controller("mdInkRipple")||{}).createRipple=e.bind(this,this.createRipple),(n.controller("mdInkRipple")||{}).setColor=e.bind(this,this.color),this.bindEvents()}function r(t,n){(t.mousedown||t.lastRipple)&&(t.mousedown=!1,t.$mdUtil.nextTick(e.bind(t,n),!1))}function i(){return{controller:e.noop}}n.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],t.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],e.module("material.core").provider("$mdInkRipple",function(){var t=!1;return{disableInkRipple:function(){t=!0},$get:["$injector",function(r){return{attach:function(i,o,a){return t||o.controller("mdNoInk")?e.noop:r.instantiate(n,{$scope:i,$element:o,rippleOptions:a})}}}]}}).directive("mdInkRipple",t).directive("mdNoInk",i).directive("mdNoBar",i).directive("mdNoStretch",i);n.prototype.color=function(t){var n=this;return e.isDefined(t)&&(n._color=n._parseColor(t)),n._color||n._parseColor(n.inkRipple())||n._parseColor(function(){var t=n.options&&n.options.colorElement?n.options.colorElement:[],e=t.length?t[0]:n.$element[0];return e?n.$window.getComputedStyle(e).color:"rgb(0,0,0)"}())},n.prototype.calculateColor=function(){return this.color()},n.prototype._parseColor=function(t,e){e=e||1;var n=this.$mdColorUtil;if(t)return 0===t.indexOf("rgba")?t.replace(/\d?\.?\d*\s*\)\s*$/,(.1*e).toString()+")"):0===t.indexOf("rgb")?n.rgbToRgba(t):0===t.indexOf("#")?n.hexToRgba(t):void 0},n.prototype.bindEvents=function(){this.$element.on("mousedown",e.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",e.bind(this,this.handleMouseup)),this.$element.on("mouseleave",e.bind(this,this.handleMouseup)),this.$element.on("touchmove",e.bind(this,this.handleTouchmove))},n.prototype.handleMousedown=function(t){if(!this.mousedown)if(t.hasOwnProperty("originalEvent")&&(t=t.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(t.srcElement!==this.$element[0]){var e=this.$element[0].getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;this.createRipple(n,r)}else this.createRipple(t.offsetX,t.offsetY)},n.prototype.handleMouseup=function(){r(this,this.clearRipples)},n.prototype.handleTouchmove=function(){r(this,this.deleteRipples)},n.prototype.deleteRipples=function(){for(var t=0;t<this.ripples.length;t++)this.ripples[t].remove()},n.prototype.clearRipples=function(){for(var t=0;t<this.ripples.length;t++)this.fadeInComplete(this.ripples[t])},n.prototype.createContainer=function(){var t=e.element('<div class="md-ripple-container"></div>');return this.$element.append(t),t},n.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},n.prototype.isRippleAllowed=function(){var t=this.$element[0];do{if(!t.tagName||"BODY"===t.tagName)break;if(t&&e.isFunction(t.hasAttribute)){if(t.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(t=t.parentNode);return!0},n.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},n.prototype.createRipple=function(t,n){if(this.isRippleAllowed()){var r=this,i=r.$mdColorUtil,o=e.element('<div class="md-ripple"></div>'),a=this.$element.prop("clientWidth"),s=this.$element.prop("clientHeight"),c=2*Math.max(Math.abs(a-t),t),l=2*Math.max(Math.abs(s-n),n),u=function(t,e,n){return t?Math.max(e,n):Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}(this.options.fitRipple,c,l),d=this.calculateColor();o.css({left:t+"px",top:n+"px",background:"black",width:u+"px",height:u+"px",backgroundColor:i.rgbaToRgb(d),borderColor:i.rgbaToRgb(d)}),this.lastRipple=o,this.clearTimeout(),this.timeout=this.$timeout(function(){r.clearTimeout(),r.mousedown||r.fadeInComplete(o)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:d}),this.container.append(o),this.ripples.push(o),o.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){o.addClass("md-ripple-scaled md-ripple-active"),r.$timeout(function(){r.clearRipples()},450,!1)},!1)}},n.prototype.fadeInComplete=function(t){this.lastRipple===t?this.timeout||this.mousedown||this.removeRipple(t):this.removeRipple(t)},n.prototype.removeRipple=function(t){var e=this;this.ripples.indexOf(t)<0||(this.ripples.splice(this.ripples.indexOf(t),1),t.removeClass("md-ripple-active"),t.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){e.fadeOutComplete(t)},450,!1))},n.prototype.fadeOutComplete=function(t){t.remove(),this.lastRipple=null}}(),function(){function t(t){return{attach:function(n,r,i){return t.attach(n,r,e.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}}}t.$inject=["$mdInkRipple"],e.module("material.core").factory("$mdTabInkRipple",t)}(),e.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100",contrastStrongLightColors:"400 500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A700",contrastStrongLightColors:"600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100 A200",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#ffffff",A200:"#000000",A400:"#303030",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A200 A400 A700"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200",contrastStrongLightColors:"400 500 700"}}),function(t){function e(t){var e=!!document.querySelector("[md-themes-disabled]");t.disableTheming(e)}function r(e,r){function i(t,e){var n=A.filter(function(t){return!e[t]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",t));return e}function o(e,n){if(p[e])return p[e];var r="string"==typeof(n=n||"default")?p[n]:n,i=new s(e);return r&&t.forEach(r.colors,function(e,n){i.colors[n]={name:e.name,hues:t.extend({},e.hues)}}),p[e]=i,i}function s(e){function n(e){if((e=0===arguments.length||!!e)!==r.isDark){r.isDark=e,r.foregroundPalette=r.isDark?f:h,r.foregroundShadow=r.isDark?g:v;var n=r.isDark?M:w,i=r.isDark?w:M;return t.forEach(n,function(t,e){var n=r.colors[e],o=i[e];if(n)for(var a in n.hues)n.hues[a]===o[a]&&(n.hues[a]=t[a])}),r}}var r=this;r.name=e,r.colors={},r.dark=n,n(!1),E.forEach(function(e){var n=(r.isDark?M:w)[e];r[e+"Palette"]=function(i,o){var a=r.colors[e]={name:i,hues:t.extend({},n,o)};return Object.keys(a.hues).forEach(function(t){if(!n[t])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",t).replace("%2",r.name).replace("%3",i).replace("%4",Object.keys(n).join(", ")))}),Object.keys(a.hues).map(function(t){return a.hues[t]}).forEach(function(t){if(-1==A.indexOf(t))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",t).replace("%2",r.name).replace("%3",e).replace("%4",i).replace("%5",A.join(", ")))}),r},r[e+"Color"]=function(){var t=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+e+"Color() has been deprecated. Use $mdThemingProviderTheme."+e+"Palette() instead."),r[e+"Palette"].apply(r,t)}})}function l(e,r,i,a){function s(t){return t===n||""===t||l.THEMES[t]!==n}var l=function(t,r){r===n&&(r=t,t=n),t===n&&(t=e),l.inherit(r,r)};return Object.defineProperty(l,"THEMES",{get:function(){return t.extend({},p)}}),Object.defineProperty(l,"PALETTES",{get:function(){return t.extend({},m)}}),Object.defineProperty(l,"ALWAYS_WATCH",{get:function(){return $}}),l.inherit=function(t,e){function n(e){if(e){s(e)||a.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme().");var n=t.data("$mdThemeName");n&&t.removeClass("md-"+n+"-theme"),t.addClass("md-"+e+"-theme"),t.data("$mdThemeName",e),i&&t.data("$mdThemeController",i)}}var i=e.controller("mdTheme")||t.data("$mdThemeController");if(n(i&&i.$mdTheme||("default"==b?"":b)),i)var o=$||i.$shouldWatch||r.parseAttributeBoolean(t.attr("md-theme-watch")),c=i.registerChanges(function(e){n(e),o?t.on("$destroy",c):c()})},l.registered=s,l.defaultTheme=function(){return b},l.generateTheme=function(t){c(p[t],t,k.nonce)},l.defineTheme=function(t,e){e=e||{};var n=o(t);return e.primary&&n.primaryPalette(e.primary),e.accent&&n.accentPalette(e.accent),e.warn&&n.warnPalette(e.warn),e.background&&n.backgroundPalette(e.background),e.dark&&n.dark(),this.generateTheme(t),i.resolve(t)},l.setBrowserColor=C,l}l.$inject=["$rootScope","$mdUtil","$q","$log"],m={};var u,p={},$=!1,b="default";t.extend(m,e);var y=function(t){var e=r.setMeta("theme-color",t),n=r.setMeta("msapplication-navbutton-color",t);return function(){e(),n()}},C=function(e){var n=(e=t.isObject(e)?e:{}).theme||"default",r=e.hue||"800",i=m[e.palette]||m[p[n].colors[e.palette||"primary"].name],o=t.isObject(i[r])?i[r].hex:i[r];return y(o)};return u={definePalette:function(t,e){return e=e||{},m[t]=i(t,e),u},extendPalette:function(e,n){return i(e,t.extend({},m[e]||{},n))},theme:o,configuration:function(){return t.extend({},k,{defaultTheme:b,alwaysWatchTheme:$,registeredStyles:[].concat(k.registeredStyles)})},disableTheming:function(e){k.disableTheming=t.isUndefined(e)||!!e},registerStyles:function(t){k.registeredStyles.push(t)},setNonce:function(t){k.nonce=t},generateThemesOnDemand:function(t){k.generateOnDemand=t},setDefaultTheme:function(t){b=t},alwaysWatchTheme:function(t){$=t},enableBrowserColor:C,$get:l,_LIGHT_DEFAULT_HUES:w,_DARK_DEFAULT_HUES:M,_PALETTES:m,_THEMES:p,_parseRules:a,_rgba:d}}function i(e,n,r,i,o,a){return{priority:101,link:{pre:function(s,c,l){var u=[],d=n.startSymbol(),m=n.endSymbol(),p=l.mdTheme.trim(),h=p.substr(0,d.length)===d&&p.lastIndexOf(m)===p.length-m.length,f="::"===l.mdTheme.split(d).join("").split(m).join("").trim().substr(0,"::".length),g={registerChanges:function(e,n){return n&&(e=t.bind(n,e)),u.push(e),function(){var t=u.indexOf(e);t>-1&&u.splice(t,1)}},$setTheme:function(t){e.registered(t)||a.warn("attempted to use unregistered theme '"+t+"'"),g.$mdTheme=t;for(var n=u.length;n--;)u[n](t)},$shouldWatch:i.parseAttributeBoolean(c.attr("md-theme-watch"))||e.ALWAYS_WATCH||h&&!f};c.data("$mdThemeController",g);var v=function(){var t=n(l.mdTheme)(s);return r(t)(s)||t},$=function(e){if("string"==typeof e)return g.$setTheme(e);o.when(t.isFunction(e)?e():e).then(function(t){g.$setTheme(t)})};$(v());var b=s.$watch(v,function(t){t&&($(t),g.$shouldWatch||b())})}}}}function o(t){return t}function a(e,n,r){l(e,n),r=r.replace(/THEME_NAME/g,e.name);var i=[],o=e.colors[n],a=new RegExp("\\.md-"+e.name+"-theme","g"),s=new RegExp("('|\")?{{\\s*("+n+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),c=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,u=m[o.name];return r=r.replace(c,function(t,n,r,i,o){return"foreground"===n?"shadow"==r?e.foregroundShadow:e.foregroundPalette[r]||e.foregroundPalette[1]:(0!==r.indexOf("hue")&&"default"!==r||(r=e.colors[n].hues[r]),d((m[e.colors[n].name][r]||"")[o?"contrast":"value"],i))}),t.forEach(o.hues,function(t,n){var o=r.replace(s,function(e,n,r,i,o){return d(u[t]["color"===i?"value":"contrast"],o)});if("default"!==n&&(o=o.replace(a,".md-"+e.name+"-theme.md-"+n)),"default"==e.name){var c=/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g;o=o.replace(c,function(t,e,n){return t+", "+e+n})}i.push(o)}),i}function s(e,n){var r=document.head,i=r?r.firstElementChild:null,o=!k.disableTheming&&e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(o+=k.registeredStyles.join(""),i&&0!==o.length){t.forEach(m,function(e,n){var r=e.contrastDefaultColor,i=e.contrastLightColors||[],o=e.contrastStrongLightColors||[],a=e.contrastDarkColors||[];"string"==typeof i&&(i=i.split(" ")),"string"==typeof o&&(o=o.split(" ")),"string"==typeof a&&(a=a.split(" ")),delete e.contrastDefaultColor,delete e.contrastLightColors,delete e.contrastStrongLightColors,delete e.contrastDarkColors,t.forEach(e,function(n,s){if(!t.isObject(n)){var c=u(n);if(!c)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",n).replace("%2",e.name).replace("%3",s));e[s]={hex:e[s],value:c,contrast:"light"===r?a.indexOf(s)>-1?$:o.indexOf(s)>-1?y:b:i.indexOf(s)>-1?o.indexOf(s)>-1?y:b:$}}})});var a=o.split(/\}(?!(\}|'|"|;))/).filter(function(t){return t&&t.trim().length}).map(function(t){return t.trim()+"}"}),s=new RegExp("md-("+E.join("|")+")","g");E.forEach(function(t){x[t]=""}),a.forEach(function(t){t.match(s);for(var e,n=0;e=E[n];n++)if(t.indexOf(".md-"+e)>-1)return x[e]+=t;for(n=0;e=E[n];n++)if(t.indexOf(e)>-1)return x[e]+=t;return x[C]+=t}),k.generateOnDemand||t.forEach(n.THEMES,function(t){p[t.name]||"default"!==n.defaultTheme()&&"default"===t.name||c(t,t.name,k.nonce)})}}function c(t,e,n){var r=document.head,i=r?r.firstElementChild:null;p[e]||(E.forEach(function(e){for(var o=a(t,e,x[e]);o.length;){var s=o.shift();if(s){var c=document.createElement("style");c.setAttribute("md-theme-style",""),n&&c.setAttribute("nonce",n),c.appendChild(document.createTextNode(s)),r.insertBefore(c,i)}}}),p[t.name]=!0)}function l(t,e){if(!m[(t.colors[e]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",t.name).replace("%2",e).replace("%3",Object.keys(m).join(", ")))}function u(e){if(t.isArray(e)&&3==e.length)return e;if(/^rgb/.test(e))return e.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(t,e){return 3==e?parseFloat(t,10):parseInt(t,10)});if("#"==e.charAt(0)&&(e=e.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(e)){var n=e.length/3,r=e.substr(0,n),i=e.substr(n,n),o=e.substr(2*n);return 1===n&&(r+=r,i+=i,o+=o),[parseInt(r,16),parseInt(i,16),parseInt(o,16)]}}function d(e,n){return e?(4==e.length&&(e=t.copy(e),n?e.pop():n=e.pop()),n&&("number"==typeof n||"string"==typeof n&&n.length)?"rgba("+e.join(",")+","+n+")":"rgb("+e.join(",")+")"):"rgb('0,0,0')"}e.$inject=["$mdThemingProvider"],i.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],o.$inject=["$mdTheming"],r.$inject=["$mdColorPalette","$$mdMetaProvider"],s.$inject=["$injector","$mdTheming"],t.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",i).directive("mdThemable",o).directive("mdThemesDisabled",function(){return k.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",r).config(e).run(s);var m,p={},h={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.38)",4:"rgba(0,0,0,0.12)"},f={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.5)",4:"rgba(255,255,255,0.12)"},g="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",v="",$=u("rgba(0,0,0,0.87)"),b=u("rgba(255,255,255,0.87)"),y=u("rgb(255,255,255)"),E=["primary","accent","warn","background"],C="primary",w={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},M={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};E.forEach(function(t){var e={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};w[t]||(w[t]=e),M[t]||(M[t]=e)});var A=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],k={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null},x={}}(t.angular),function(){function n(n,r,i,o,a){var s;return s={translate3d:function(t,e,n,r){function i(n){return a(t,{to:n||e,addClass:r.transitionOutClass,removeClass:r.transitionInClass,duration:r.duration}).start()}return a(t,{from:e,to:n,addClass:r.transitionInClass,removeClass:r.transitionOutClass,duration:r.duration}).start().then(function(){return i})},waitTransitionEnd:function(e,n){var a=3e3;return r(function(r,s){function c(t){t&&t.target!==e[0]||(t&&i.cancel(l),e.off(o.CSS.TRANSITIONEND,c),r())}(function(n){return"0s"==(n=n||t.getComputedStyle(e[0])).transitionDuration||!n.transition&&!n.transitionProperty})((n=n||{}).cachedTransitionStyles)&&(a=0);var l=i(c,n.timeout||a);e.on(o.CSS.TRANSITIONEND,c)})},calculateTransformValues:function(t,e){var n=e.element,r=e.bounds;if(n||r){var i=n?s.clientRect(n)||function(){var e=t?t.parent():null,n=e?e.parent():null;return n?s.clientRect(n):null}():s.copyRect(r),o=s.copyRect(t[0].getBoundingClientRect()),a=s.centerPointFor(o),c=s.centerPointFor(i);return{centerX:c.x-a.x,centerY:c.y-a.y,scaleX:Math.round(100*Math.min(.5,i.width/o.width))/100,scaleY:Math.round(100*Math.min(.5,i.height/o.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(t,r){return e.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )")(s.calculateTransformValues(t,r))},calculateSlideToOrigin:function(t,r){return e.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(s.calculateTransformValues(t,r))},toCss:function(t){function n(t,n,i){e.forEach(n.split(" "),function(t){r[t]=i})}var r={};return e.forEach(t,function(t,i){if(!e.isUndefined(t))if("left top right bottom width height x y min-width min-height max-width max-height".indexOf(i)>=0)r[i]=t+"px";else switch(i){case"transition":n(0,o.CSS.TRANSITION,t);break;case"transform":n(0,o.CSS.TRANSFORM,t);break;case"transformOrigin":n(0,o.CSS.TRANSFORM_ORIGIN,t);break;case"font-size":r["font-size"]=t}}),r},toTransformCss:function(t,n,r){var i={};return e.forEach(o.CSS.TRANSFORM.split(" "),function(e){i[e]=t}),n&&(r=r||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",i.transition=r),i},copyRect:function(t,n){return t?(n=n||{},e.forEach("left top right bottom width height".split(" "),function(e){n[e]=Math.round(t[e])}),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(t){var n=e.element(t)[0].getBoundingClientRect();return function(t){return t&&t.width>0&&t.height>0}(n)?s.copyRect(n):null},centerPointFor:function(t){return t?{x:Math.round(t.left+t.width/2),y:Math.round(t.top+t.height/2)}:{x:0,y:0}}}}e.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(t,e,r,i){return function(o){return n(o,t,e,r,i)}}])}(),e.version.minor>=4?e.module("material.core.animate",[]):function(){function t(t){return t.replace(/-[a-z]/g,function(t){return t.charAt(1).toUpperCase()})}var n=e.forEach,r=e.isDefined(document.documentElement.style.WebkitAppearance),i=r?"-webkit-":"",o=(r?"webkitTransitionEnd ":"")+"transitionend",a=(r?"webkitAnimationEnd ":"")+"animationend",s=["$document",function(t){return function(){return t[0].body.clientWidth+1}}],c=["$$rAF",function(t){return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}],l=["$q","$$rAFMutex",function(t,r){function i(t){this.setHost(t),this._doneCallbacks=[],this._runInAnimationFrame=r(),this._state=0}return i.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:e.noop,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){!1===e?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._runInAnimationFrame(function(){e._resolve(t)}))},_resolve:function(t){2!==this._state&&(n(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},i.all=function(t,e){function r(n){o=o&&n,++i===t.length&&e(o)}var i=0,o=!0;n(t,function(t){t.done(r)})},i}];e.module("material.core.animate",[]).factory("$$forceReflow",s).factory("$$AnimateRunner",l).factory("$$rAFMutex",c).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(e,s,c,l,u,d,m){function p(t,e){e.addClass&&(u.addClass(t,e.addClass),e.addClass=null),e.removeClass&&(u.removeClass(t,e.removeClass),e.removeClass=null)}function h(t){function n(t){return r?"Webkit"+t.charAt(0).toUpperCase()+t.substr(1):t}var i=y(t),o=e.getComputedStyle(i),a=f(o[n("transitionDuration")]),s=f(o[n("animationDuration")]),c=f(o[n("transitionDelay")]),l=f(o[n("animationDelay")]);return s*=parseInt(o[n("animationIterationCount")],10)||1,{duration:Math.max(s,a),delay:Math.max(l,c),animationDuration:s,transitionDuration:a,animationDelay:l,transitionDelay:c}}function f(t){var e=0,r=(t||"").split(/\s*,\s*/);return n(r,function(t){"s"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function g(t){C&&C(),w.push(t),C=s(function(){C=null;for(var t=l(),e=0;e<w.length;e++)w[e](t);w.length=0})}function v(t,e){$(t,e),b(t,e)}function $(t,e){e.from&&(t.css(e.from),e.from=null)}function b(t,e){e.to&&(t.css(e.to),e.to=null)}function y(t){for(var e=0;e<t.length;e++)if(1===t[e].nodeType)return t[e]}function E(e,n){var r=y(e),o=t(i+"transition-delay");r.style[o]=n?"-9999s":""}var C,w=[];return function(r,s){var l=[],u=y(r),f=u&&m.enabled(),C=!1,w=!1;f&&(s.transitionStyle&&l.push([i+"transition",s.transitionStyle]),s.keyframeStyle&&l.push([i+"animation",s.keyframeStyle]),s.delay&&l.push([i+"transition-delay",s.delay+"s"]),s.duration&&l.push([i+"transition-duration",s.duration+"s"]),C=s.keyframeStyle||s.to&&(s.duration>0||s.transitionStyle),w=!!s.addClass||!!s.removeClass,E(r,!0));var M=f&&(C||w);$(r,s);var A,k,x=!1;return{close:e.close,start:function(){function e(){if(!x)return x=!0,A&&k&&r.off(A,k),p(r,s),v(r,s),n(l,function(e){u.style[t(e[0])]=""}),m.complete(!0),m}var m=new c;return g(function(){if(E(r,!1),!M)return e();n(l,function(e){var n=e[0],r=e[1];u.style[t(n)]=r}),p(r,s);var c=h(r);if(0===c.duration)return e();var m=[];s.easing&&(c.transitionDuration&&m.push([i+"transition-timing-function",s.easing]),c.animationDuration&&m.push([i+"animation-timing-function",s.easing])),s.delay&&c.animationDelay&&m.push([i+"animation-delay",s.delay+"s"]),s.duration&&c.animationDuration&&m.push([i+"animation-duration",s.duration+"s"]),n(m,function(e){var n=e[0],r=e[1];u.style[t(n)]=r,l.push(e)});var f=1e3*c.delay,g=c.duration,v=1e3*g,$=Date.now();A=[],c.transitionDuration&&A.push(o),c.animationDuration&&A.push(a),A=A.join(" "),k=function(t){t.stopPropagation();var n=t.originalEvent||t,r=n.timeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(r-$,0)>=f&&i>=g&&e()},r.on(A,k),b(r,s),d(e,f+1.5*v,!1)}),m}}}}])}(),e.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),e.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(t,n,r,i,o,a,s,c){var l="<md-backdrop> may not work properly in a scrolled, static-positioned parent container.";return{restrict:"E",link:function(u,d,m){function p(){var t=parseInt(h.height,10)+Math.abs(parseInt(h.top,10));d.css("height",t+"px")}r.pin&&r.pin(d,i);var h;s(function(){if("fixed"===(h=o.getComputedStyle(c[0].body)).position){var r=n.debounce(function(){h=o.getComputedStyle(c[0].body),p()},60,null,!1);p(),e.element(o).on("resize",r),u.$on("$destroy",function(){e.element(o).off("resize",r)})}var i=d.parent();i.length&&("BODY"===i[0].nodeName&&d.css("position","fixed"),"static"===o.getComputedStyle(i[0]).position&&a.warn(l),t.inherit(d,i))})}}}]),function(){function t(t){return{restrict:"E",link:function(e,n){n.addClass("_md"),e.$on("$destroy",function(){t.destroy()})}}}function n(t){function n(t,n,o,a,s,c,l,u){function d(t,e){function a(e){t.css(n.CSS.TRANSITION_DURATION,"0ms")}function c(e){var r=e.pointer.distanceY;r<5&&(r=Math.max(-i,r/2)),t.css(n.CSS.TRANSFORM,"translate3d(0,"+(i+r)+"px,0)")}function u(e){if(e.pointer.distanceY>0&&(e.pointer.distanceY>20||Math.abs(e.pointer.velocityY)>r)){var i=t.prop("offsetHeight")-e.pointer.distanceY,a=Math.min(i/e.pointer.velocityY*.75,500);t.css(n.CSS.TRANSITION_DURATION,a+"ms"),o.nextTick(s.cancel,!0)}else t.css(n.CSS.TRANSITION_DURATION,""),t.css(n.CSS.TRANSFORM,"")}var d=l.register(e,"drag",{horizontal:!1});return e.on("$md.dragstart",a).on("$md.drag",c).on("$md.dragend",u),{element:t,cleanup:function(){d(),e.off("$md.dragstart",a),e.off("$md.drag",c),e.off("$md.dragend",u)}}}var m;return{themable:!0,onShow:function(r,i,l,p){(i=o.extractElementByName(i,"md-bottom-sheet")).attr("tabindex","-1"),i.hasClass("ng-cloak")&&u.warn("$mdBottomSheet: using `<md-bottom-sheet ng-cloak >` will affect the bottom-sheet opening animations.",i[0]);l.disableBackdrop||((m=o.createBackdrop(r,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,l.clickOutsideToClose&&m.on("click",function(){o.nextTick(s.cancel,!0)}),a.inherit(m,l.parent),t.enter(m,l.parent,null));var h=new d(i,l.parent);return l.bottomSheet=h,a.inherit(h.element,l.parent),l.disableParentScroll&&(l.restoreScroll=o.disableScrollAround(h.element,l.parent)),t.enter(h.element,l.parent,m).then(function(){var t=o.findFocusTarget(i)||e.element(i[0].querySelector("button")||i[0].querySelector("a")||i[0].querySelector(o.prefixer("ng-click",!0)))||m;l.escapeToClose&&(l.rootElementKeyupCallback=function(t){t.keyCode===n.KEY_CODE.ESCAPE&&o.nextTick(s.cancel,!0)},c.on("keyup",l.rootElementKeyupCallback),t&&t.focus())})},onRemove:function(e,n,r){var i=r.bottomSheet;return r.disableBackdrop||t.leave(m),t.leave(i.element).then(function(){r.disableParentScroll&&(r.restoreScroll(),delete r.restoreScroll),i.cleanup()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0}}n.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var r=.5,i=80;return t("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:n})}t.$inject=["$mdBottomSheet"],n.$inject=["$$interimElementProvider"],e.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",t).provider("$mdBottomSheet",n)}(),function(){function t(t){return{restrict:"E",link:function(e,n){t(n)}}}function n(t,n,r,i){function o(t){return e.isDefined(t.href)||e.isDefined(t.ngHref)||e.isDefined(t.ngLink)||e.isDefined(t.uiSref)}return{restrict:"EA",replace:!0,transclude:!0,template:function(t,e){return o(e)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" type="'+(void 0===e.type?"button":e.type)+'" ng-transclude></button>'},link:function(a,s,c){n(s),t.attach(a,s),r.expectWithoutText(s,"aria-label"),o(c)&&e.isDefined(c.ngDisabled)&&a.$watch(c.ngDisabled,function(t){s.attr("tabindex",t?-1:0)}),s.on("click",function(t){!0===c.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),s.hasClass("md-no-focus")||(s.on("focus",function(){i.isUserInvoked()&&"keyboard"!==i.getLastInteractionType()||s.addClass("md-focused")}),s.on("blur",function(){s.removeClass("md-focused")}))}}}n.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],t.$inject=["$mdTheming"],e.module("material.components.button",["material.core"]).directive("mdButton",n).directive("a",t)}(),function(){function t(t){return{restrict:"E",link:function(e,n,r){n.addClass("_md"),t(n)}}}t.$inject=["$mdTheming"],e.module("material.components.card",["material.core"]).directive("mdCard",t)}(),function(){function t(t,n,r,i,o,a){return t=t[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:r.BEFORE_NG_ARIA,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:function(s,c){return c.$set("tabindex",c.tabindex||"0"),c.$set("type","checkbox"),c.$set("role",c.type),{pre:function(t,e){e.on("click",function(t){this.hasAttribute("disabled")&&t.stopImmediatePropagation()})},post:function(s,c,l,u){function d(t){c[0].hasAttribute("disabled")||s.skipToggle||s.$apply(function(){var e=l.ngChecked&&l.ngClick?l.checked:!f.$viewValue;f.$setViewValue(e,t&&t.type),f.$render()})}function m(t){(p=!1!==t)&&c.attr("aria-checked","mixed"),c.toggleClass("md-indeterminate",p)}var p,h=u[0],f=u[1]||o.fakeNgModel(),g=u[2];if(h){var v=h.isErrorGetter||function(){return f.$invalid&&(f.$touched||g&&g.$submitted)};h.input=c,s.$watch(v,h.setInvalid)}i(c),c.children().on("focus",function(){c.focus()}),o.parseAttributeBoolean(l.mdIndeterminate)&&(m(),s.$watch(l.mdIndeterminate,m)),l.ngChecked&&s.$watch(s.$eval.bind(s,l.ngChecked),function(t){f.$setViewValue(t),f.$render()}),function(t,e,n){l[t]&&s.$watch(l[t],function(t){n[t]&&c.attr(e,n[t])})}("ngDisabled","tabindex",{true:"-1",false:l.tabindex}),n.expectWithText(c,"aria-label"),t.link.pre(s,{on:e.noop,0:{}},l,[f]),c.on("click",d).on("keypress",function(t){var e=t.which||t.keyCode;e!==r.KEY_CODE.SPACE&&e!==r.KEY_CODE.ENTER||(t.preventDefault(),c.addClass("md-focused"),d(t))}).on("focus",function(){"keyboard"===a.getLastInteractionType()&&c.addClass("md-focused")}).on("blur",function(){c.removeClass("md-focused")}),f.$render=function(){c.toggleClass("md-checked",!!f.$viewValue&&!p)}}}}}}t.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],e.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",t)}(),e.module("material.components.chips",["material.core","material.components.autocomplete"]),function(){function t(t,n,r){function o(e,r){r=r||!1;var i=t.PALETTES[e.palette][e.hue];return i=r?i.contrast:i.value,n.supplant("rgba({0}, {1}, {2}, {3})",[i[0],i[1],i[2],i[3]||e.opacity])}function a(t){var n={},r=t.hasOwnProperty("color");return e.forEach(t,function(t,e){var i=s(t),a=e.indexOf("background")>-1;n[e]=o(i),a&&!r&&(n.color=o(i,!0))}),n}function s(n){var r=n.split("-"),i=e.isDefined(t.THEMES[r[0]])?r.splice(0,1)[0]:t.defaultTheme();return{theme:i,palette:c(r,i),hue:l(r,i),opacity:r[2]||1}}function c(e,r){var o=e.length>1&&-1!==i.indexOf(e[1]),a=e[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if(o&&(a=e[0]+"-"+e.splice(1,1)),-1===i.indexOf(a)){var s=t.THEMES[r].colors[a];if(!s)throw new Error(n.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:a}));a=s.name}return a}function l(e,r){var i=t.THEMES[r].colors;if("hue"===e[1]){var o=parseInt(e.splice(2,1)[0],10);if(o<1||o>3)throw new Error(n.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:o}));if(e[1]="hue-"+o,!(e[0]in i))throw new Error(n.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(i).join(", "),usedTheme:e[0]}));return i[e[0]].hues[e[1]]}return e[1]||i[e[0]in i?e[0]:"primary"].hues.default}return i=i||Object.keys(t.PALETTES),{applyThemeColors:function(t,e){try{e&&t.css(a(e))}catch(t){r.error(t.message)}},getThemeColor:function(t){return o(s(t))},hasTheme:function(n){return e.isDefined(t.THEMES[n.split("-")[0]])}}}function n(t,n,i,o){return{restrict:"A",require:["^?mdTheme"],compile:function(a,s){var c=function(){var t=s.mdColors,i=t.indexOf("::")>-1,o=!!i||r.test(s.mdColors);s.mdColors=t.replace("::","");var a=e.isDefined(s.mdColorsWatch);return!i&&!o&&(!a||n.parseAttributeBoolean(s.mdColorsWatch))}();return function(n,r,a,s){var l=s[0],u={},d=function(e){"string"!=typeof e&&(e=""),a.mdColors||(a.mdColors="{}");var r=o(a.mdColors)(n);return l&&Object.keys(r).forEach(function(n){var i=r[n];t.hasTheme(i)||(r[n]=(e||l.$mdTheme)+"-"+i)}),m(r),r},m=function(t){if(!e.equals(t,u)){var n=Object.keys(u);u.background&&!n.color&&n.push("color"),n.forEach(function(t){r.css(t,"")})}u=t},p=e.noop;l&&(p=l.registerChanges(function(e){t.applyThemeColors(r,d(e))})),n.$on("$destroy",function(){p()});try{c?n.$watch(d,e.bind(this,t.applyThemeColors,r),!0):t.applyThemeColors(r,d())}catch(t){i.error(t.message)}}}}}n.$inject=["$mdColors","$mdUtil","$log","$parse"],t.$inject=["$mdTheming","$mdUtil","$log"];var r=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,i=null;e.module("material.components.colors",["material.core"]).directive("mdColors",n).service("$mdColors",t)}(),function(){function t(t){return{restrict:"E",controller:["$scope","$element",function(t,e){this.$scope=t,this.$element=e}],link:function(e,r){r.addClass("_md"),t(r),e.$broadcast("$mdContentLoaded",r),n(r[0])}}}function n(t){e.element(t).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===t.scrollTop?t.scrollTop=1:t.scrollHeight===t.scrollTop+t.offsetHeight&&(t.scrollTop-=1)))})}t.$inject=["$mdTheming"],e.module("material.components.content",["material.core"]).directive("mdContent",t)}(),e.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){function t(t,n,r){return{restrict:"E",link:function(i,o){o.addClass("_md"),n(o),t(function(){function t(){o.toggleClass("md-content-overflow",a.scrollHeight>a.clientHeight)}var n,a=o[0].querySelector("md-dialog-content");a&&(n=a.getElementsByTagName("img"),t(),e.element(n).on("load",t)),i.$on("$destroy",function(){r.destroy(o)})})}}}function r(t){function r(t,e){return{template:['<md-dialog md-theme="{{ dialog.theme || dialog.defaultTheme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">',' <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">',' <h2 class="md-title">{{ dialog.title }}</h2>',' <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ',' ng-bind-html="::dialog.mdHtmlContent"></div>',' <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body">'," <p>{{::dialog.mdTextContent}}</p>"," </div>",' <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">',' <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result" placeholder="{{::dialog.placeholder}}">'," </md-input-container>"," </md-dialog-content>"," <md-dialog-actions>",' <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'" ng-click="dialog.abort()" class="md-primary md-cancel-button">'," {{ dialog.cancel }}"," </md-button>",' <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'">'," {{ dialog.ok }}"," </md-button>"," </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:function(){var n="prompt"==this.$type;n&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){t.hide(!n||this.result)},this.abort=function(){t.cancel()},this.keypress=function(n){n.keyCode===e.KEY_CODE.ENTER&&t.hide(this.result)}},controllerAs:"dialog",bindToController:!0}}function i(t,r,i,s,c,l,u,d,m,p,h,f,g){function v(t){var n;t.targetEvent&&t.targetEvent.target&&(n=e.element(t.targetEvent.target));var r=n&&n.controller("mdTheme");if(r){t.themeWatch=r.$shouldWatch;var i=t.theme||r.$mdTheme;i&&(t.scope.theme=i);var o=r.registerChanges(function(e){t.scope.theme=e,t.themeWatch||o()})}}function $(t){function r(t,r){var i=e.element(t||{});if(i&&i.length){var o={top:0,left:0,height:0,width:0},a=e.isFunction(i[0].getBoundingClientRect);return e.extend(r||{},{element:a?i:n,bounds:a?i[0].getBoundingClientRect():e.extend({},o,i[0]),focus:e.bind(i,i.focus)})}}function i(t,n){return e.isString(t)&&(t=l[0].querySelector(t)),e.element(t||n)}t.origin=e.extend({element:null,bounds:null,focus:e.noop},t.origin||{}),t.parent=i(t.parent,d),t.closeTo=r(i(t.closeTo)),t.openFrom=r(i(t.openFrom)),t.targetEvent&&(t.origin=r(t.targetEvent.target,t.origin),t.originInteraction=g.getLastInteractionType())}function b(n,r){var o=e.element(u),a=i.debounce(function(){w(n,r)},60),c=[],l=function(){var e="alert"==r.$type?t.hide:t.cancel;i.nextTick(e,!0)};if(r.escapeToClose){var d=r.parent,m=function(t){t.keyCode===s.KEY_CODE.ESCAPE&&(t.stopPropagation(),t.preventDefault(),l())};n.on("keydown",m),d.on("keydown",m),c.push(function(){n.off("keydown",m),d.off("keydown",m)})}if(o.on("resize",a),c.push(function(){o.off("resize",a)}),r.clickOutsideToClose){var p,h=n,f=function(t){p=t.target},g=function(t){p===h[0]&&t.target===h[0]&&(t.stopPropagation(),t.preventDefault(),l())};h.on("mousedown",f),h.on("mouseup",g),c.push(function(){h.off("mousedown",f),h.off("mouseup",g)})}r.deactivateListeners=function(){c.forEach(function(t){t()}),r.deactivateListeners=null}}function y(t,e,n){n.disableParentScroll&&(n.restoreScroll=i.disableScrollAround(e,n.parent)),n.hasBackdrop&&(n.backdrop=i.createBackdrop(t,"md-dialog-backdrop md-opaque"),c.enter(n.backdrop,n.parent)),n.hideBackdrop=function(t){n.backdrop&&(t?n.backdrop.remove():c.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}function E(t,e){var n="alert"===e.$type?"alertdialog":"dialog",s=t.find("md-dialog-content"),c=t.attr("id"),l="dialogContent_"+(c||i.nextUid());t.attr({role:n,tabIndex:"-1"}),0===s.length&&(s=t,c&&(l=c)),s.attr("id",l),t.attr("aria-describedby",l),e.ariaLabel?r.expect(t,"aria-label",e.ariaLabel):r.expectAsync(t,"aria-label",function(){var t=s.text().split(/\s+/);return t.length>3&&(t=t.slice(0,3).concat("...")),t.join(" ")}),(o=document.createElement("div")).classList.add("md-dialog-focus-trap"),o.tabIndex=0,a=o.cloneNode(!1);var u=function(){t.focus()};o.addEventListener("focus",u),a.addEventListener("focus",u),t[0].parentNode.insertBefore(o,t[0]),t.after(a)}function C(t,e){function n(t){for(;t.parentNode;){if(t===document.body)return;for(var e=t.parentNode.children,i=0;i<e.length;i++)t===e[i]||k(e[i],["SCRIPT","STYLE"])||e[i].setAttribute("aria-hidden",r);n(t=t.parentNode)}}var r=!0;n(t[0]),e.unlockScreenReader=function(){r=!1,n(t[0]),e.unlockScreenReader=null}}function w(t,e){var n="fixed"==u.getComputedStyle(l[0].body).position,r=e.backdrop?u.getComputedStyle(e.backdrop[0]):null,i=r?Math.min(l[0].body.clientHeight,Math.ceil(Math.abs(parseInt(r.height,10)))):0,o={top:t.css("top"),height:t.css("height")},a=Math.abs(e.parent[0].getBoundingClientRect().top);return t.css({top:(n?a:0)+"px",height:i?i+"px":"100%"}),function(){t.css(o)}}function M(t,e){e.parent.append(t),e.reverseContainerStretch=w(t,e);var n=t.find("md-dialog"),r=i.dom.animator,o=r.calculateZoomToOrigin,a={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},s=r.toTransformCss(o(n,e.openFrom||e.origin)),c=r.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!e.fullscreen),r.translate3d(n,s,c,a).then(function(t){return e.reverseAnimate=function(){return delete e.reverseAnimate,e.closeTo?(a={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},s=c,c=r.toTransformCss(o(n,e.closeTo)),r.translate3d(n,s,c,a)):t(c=r.toTransformCss(o(n,e.origin)))},e.clearAnimate=function(){return delete e.clearAnimate,n.removeClass([a.transitionOutClass,a.transitionInClass].join(" ")),r.translate3d(n,c,r.toTransformCss(""),{})},!0})}function A(t,e){return e.reverseAnimate().then(function(){e.contentElement&&e.clearAnimate()})}function k(t,e){if(-1!==e.indexOf(t.nodeName))return!0}return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(t){t.defaultTheme=h.defaultTheme(),v(t)},onShow:function(t,n,r,o){function a(){n[0].querySelector(".md-actions")&&m.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>.")}function s(){r.focusOnOpen&&(i.findFocusTarget(n)||n[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||c).focus()}e.element(l[0].body).addClass("md-dialog-is-showing");var c=n.find("md-dialog");c.hasClass("ng-cloak")&&m.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",n[0]);return $(r),E(c,r),y(t,n,r),b(n,r),M(n,r).then(function(){C(n,r),a(),s()})},onShowing:function(t,e,n,r){if(r){var i=r.htmlContent||n.htmlContent||"",o=r.textContent||n.textContent||r.content||n.content||"";if(i&&!p.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&o)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");r.mdHtmlContent=i,r.mdTextContent=o}},onRemove:function(t,n,r){function i(){e.element(l[0].body).removeClass("md-dialog-is-showing"),r.contentElement&&r.reverseContainerStretch(),r.cleanupElement(),r.$destroy||"keyboard"!==r.originInteraction||r.origin.focus()}return r.deactivateListeners(),r.unlockScreenReader(),r.hideBackdrop(r.$destroy),o&&o.parentNode&&o.parentNode.removeChild(o),a&&a.parentNode&&a.parentNode.removeChild(a),r.$destroy?i():A(0,r).then(i)},clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(t,e){var n=f.startSymbol(),r=f.endSymbol();return'<div class="md-dialog-container" tabindex="-1" md-theme="'+(n+(e.themeWatch?"":"::")+"theme"+r)+'">'+function(t){return e.autoWrap&&!/<\/md-dialog>/g.test(t)?"<md-dialog>"+(t||"")+"</md-dialog>":t||""}(t)+"</div>"}}}r.$inject=["$mdDialog","$mdConstant"],i.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"];var o,a;return t("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:i}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:r}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:r}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css"],options:r})}t.$inject=["$$rAF","$mdTheming","$mdDialog"],r.$inject=["$$interimElementProvider"],e.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",t).provider("$mdDialog",r)}(),function(){function t(t){return{restrict:"E",link:t}}t.$inject=["$mdTheming"],e.module("material.components.divider",["material.core"]).directive("mdDivider",t)}(),function(){function t(t){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(e,n){var r=e.children();t.prefixer().hasAttribute(r,"ng-repeat")?r.addClass("md-fab-action-item"):r.wrap('<div class="md-fab-action-item">')}}}t.$inject=["$mdUtil"],e.module("material.components.fabActions",["material.core"]).directive("mdFabActions",t)}(),function(){function t(t,n,r,i,o,a){function s(){S.direction=S.direction||"down",S.isOpen=S.isOpen||!1,u(),n.addClass("md-animations-waiting")}function c(){var r=["click","focusin","focusout"];e.forEach(r,function(t){n.on(t,l)}),t.$on("$destroy",function(){e.forEach(r,function(t){n.off(t,l)}),h()})}function l(t){"click"==t.type&&x(t),"focusout"!=t.type||O||(O=a(function(){S.close()},100,!1)),"focusin"==t.type&&O&&(a.cancel(O),O=null)}function u(){S.currentActionIndex=-1}function d(){t.$watch("vm.direction",function(t,e){r.removeClass(n,"md-"+e),r.addClass(n,"md-"+t),u()});var e,i;t.$watch("vm.isOpen",function(t){u(),e&&i||(e=T(),i=_()),t?p():h();var o=t?"md-is-open":"",a=t?"":"md-is-open";e.attr("aria-haspopup",!0),e.attr("aria-expanded",t),i.attr("aria-hidden",!t),r.setClass(n,o,a)})}function m(){n[0].scrollHeight>0?r.addClass(n,"_md-animations-ready").then(function(){n.removeClass("md-animations-waiting")}):N<10&&(a(m,100),N+=1)}function p(){n.on("keydown",g),i.nextTick(function(){e.element(document).on("click touchend",f)})}function h(){n.off("keydown",g),e.element(document).off("click touchend",f)}function f(t){if(t.target){var e=i.getClosest(t.target,"md-fab-trigger"),n=i.getClosest(t.target,"md-fab-actions");e||n||S.close()}}function g(t){switch(t.which){case o.KEY_CODE.ESCAPE:return S.close(),t.preventDefault(),!1;case o.KEY_CODE.LEFT_ARROW:return E(t),!1;case o.KEY_CODE.UP_ARROW:return C(t),!1;case o.KEY_CODE.RIGHT_ARROW:return w(t),!1;case o.KEY_CODE.DOWN_ARROW:return M(t),!1}}function v(t){b(t,-1)}function $(t){b(t,1)}function b(t,n){var r=y();S.currentActionIndex=S.currentActionIndex+n,S.currentActionIndex=Math.min(r.length-1,S.currentActionIndex),S.currentActionIndex=Math.max(0,S.currentActionIndex);var i=e.element(r[S.currentActionIndex]).children()[0];e.element(i).attr("tabindex",0),i.focus(),t.preventDefault(),t.stopImmediatePropagation()}function y(){var t=_()[0].querySelectorAll(".md-fab-action-item");return e.forEach(t,function(t){e.element(e.element(t).children()[0]).attr("tabindex",-1)}),t}function E(t){"left"===S.direction?$(t):v(t)}function C(t){"down"===S.direction?v(t):$(t)}function w(t){"left"===S.direction?v(t):$(t)}function M(t){"up"===S.direction?v(t):$(t)}function A(t){return i.getClosest(t,"md-fab-trigger")}function k(t){return i.getClosest(t,"md-fab-actions")}function x(t){A(t.target)&&S.toggle(),k(t.target)&&S.close()}function T(){return n.find("md-fab-trigger")}function _(){return n.find("md-fab-actions")}var S=this,N=0;S.open=function(){t.$evalAsync("vm.isOpen = true")},S.close=function(){t.$evalAsync("vm.isOpen = false"),n.find("md-fab-trigger")[0].focus()},S.toggle=function(){t.$evalAsync("vm.isOpen = !vm.isOpen")},S.$onInit=function(){s(),c(),d(),m()},1===e.version.major&&e.version.minor<=4&&this.$onInit();var O}t.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],e.module("material.components.fabShared",["material.core"]).controller("MdFabController",t)}(),function(){function n(n){function r(t){n(t,i,!1)}function o(n){if(!n.hasClass("md-animations-waiting")||n.hasClass("_md-animations-ready")){var r=n[0],i=n.controller("mdFabSpeedDial"),o=r.querySelectorAll(".md-fab-action-item"),a=r.querySelector("md-fab-trigger"),s=r.querySelector("._md-css-variables"),c=parseInt(t.getComputedStyle(s).zIndex);e.forEach(o,function(t,e){var n=t.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=o.length-e+c}),a.style.zIndex=c+o.length+1,i.isOpen||e.forEach(o,function(t,e){var n,r,o=t.style,s=(a.clientHeight-t.clientHeight)/2,c=(a.clientWidth-t.clientWidth)/2;switch(i.direction){case"up":n=t.scrollHeight*(e+1)+s,r="Y";break;case"down":n=-(t.scrollHeight*(e+1)+s),r="Y";break;case"left":n=t.scrollWidth*(e+1)+c,r="X";break;case"right":n=-(t.scrollWidth*(e+1)+c),r="X"}var l="translate"+r+"("+n+"px)";o.transform=o.webkitTransform=l})}}return{addClass:function(t,e,n){t.hasClass("md-fling")?(o(t),r(n)):n()},removeClass:function(t,e,n){o(t),r(n)}}}function r(n){function r(t){n(t,i,!1)}function o(n){var r=n[0],i=n.controller("mdFabSpeedDial"),o=r.querySelectorAll(".md-fab-action-item"),s=r.querySelector("._md-css-variables"),c=parseInt(t.getComputedStyle(s).zIndex);e.forEach(o,function(t,e){var n=t.style,r=e*a;n.opacity=i.isOpen?1:0,n.transform=n.webkitTransform=i.isOpen?"scale(1)":"scale(0)",n.transitionDelay=(i.isOpen?r:o.length-r)+"ms",n.zIndex=o.length-e+c})}var a=65;return{addClass:function(t,e,n){o(t),r(n)},removeClass:function(t,e,n){o(t),r(n)}}}n.$inject=["$timeout"],r.$inject=["$timeout"];var i=300;e.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",function(){return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(t,e){e.prepend('<div class="_md-css-variables"></div>')}}}).animation(".md-fling",n).animation(".md-scale",r).service("mdFabSpeedDialFlingAnimation",n).service("mdFabSpeedDialScaleAnimation",r)}(),function(){function n(){function n(n,r,i){if(r){var o=n[0],a=n.controller("mdFabToolbar"),s=o.querySelector(".md-fab-toolbar-background"),c=o.querySelector("md-fab-trigger button"),l=o.querySelector("md-toolbar"),u=o.querySelector("md-fab-trigger button md-icon"),d=n.find("md-fab-actions").children();if(c&&s){var m=t.getComputedStyle(c).getPropertyValue("background-color"),p=o.offsetWidth,h=(o.offsetHeight,p/c.offsetWidth*2);s.style.backgroundColor=m,s.style.borderRadius=p+"px",a.isOpen?(l.style.pointerEvents="inherit",s.style.width=c.offsetWidth+"px",s.style.height=c.offsetHeight+"px",s.style.transform="scale("+h+")",s.style.transitionDelay="0ms",u&&(u.style.transitionDelay=".3s"),e.forEach(d,function(t,e){t.style.transitionDelay=25*(d.length-e)+"ms"})):(l.style.pointerEvents="none",s.style.transform="scale(1)",s.style.top="0",n.hasClass("md-right")&&(s.style.left="0",s.style.right=null),n.hasClass("md-left")&&(s.style.right="0",s.style.left=null),s.style.transitionDelay="200ms",u&&(u.style.transitionDelay="0ms"),e.forEach(d,function(t,e){t.style.transitionDelay=200+25*e+"ms"}))}}}return{addClass:function(t,e,r){n(t,e),r()},removeClass:function(t,e,r){n(t,e),r()}}}e.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",function(){return{restrict:"E",transclude:!0,template:'<div class="md-fab-toolbar-wrapper"> <div class="md-fab-toolbar-content" ng-transclude></div></div>',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(t,e,n){e.addClass("md-fab-toolbar"),e.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}}}).animation(".md-fab-toolbar",n).service("mdFabToolbarAnimation",n)}(),function(){function t(t,r,i,o){return{restrict:"E",controller:n,scope:{mdOnLayout:"&"},link:function(n,a,s,c){function l(t){null==t?c.invalidateLayout():o(t)&&c.invalidateLayout()}function u(t){return w+t+M}function d(t,e,n,r,i,o,a){var s=1/n*100,c=(n-1)/n,l=A({share:s,gutterShare:c,gutter:i}),u="rtl"!=document.dir&&"rtl"!=document.body.dir?{left:k({unit:l,offset:t.col,gutter:i}),width:x({unit:l,span:e.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{right:k({unit:l,offset:t.col,gutter:i}),width:x({unit:l,span:e.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(o){case"fixed":u.top=k({unit:a,offset:t.row,gutter:i}),u.height=x({unit:a,span:e.row,gutter:i});break;case"ratio":m=A({share:d=s/a,gutterShare:c,gutter:i}),u.paddingTop=x({unit:m,span:e.row,gutter:i}),u.marginTop=k({unit:m,offset:t.row,gutter:i});break;case"fit":var d=1/r*100,m=A({share:d,gutterShare:(r-1)/r,gutter:i});u.top=k({unit:m,offset:t.row,gutter:i}),u.height=x({unit:m,span:e.row,gutter:i})}return u}function m(t,e,n,r,i){var o={};switch(r){case"fixed":o.height=x({unit:i,span:e,gutter:n}),o.paddingBottom="";break;case"ratio":var a=A({share:1/t*100*(1/i),gutterShare:1===t?0:(t-1)/t,gutter:n});o.height="",o.paddingBottom=x({unit:a,span:e,gutter:n})}return o}function p(){return[].filter.call(a.children(),function(t){return"MD-GRID-TILE"==t.tagName&&!t.$$mdDestroyed})}function h(t){return[].map.call(t,function(t){var n=e.element(t).controller("mdGridTile");return{row:parseInt(o.getResponsiveAttribute(n.$attrs,"md-rowspan"),10)||1,col:parseInt(o.getResponsiveAttribute(n.$attrs,"md-colspan"),10)||1}})}function f(){var t=parseInt(o.getResponsiveAttribute(s,"md-cols"),10);if(isNaN(t))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return t}function g(){return b(o.getResponsiveAttribute(s,"md-gutter")||1)}function v(){var t=o.getResponsiveAttribute(s,"md-row-height");if(!t)throw"md-grid-list: md-row-height attribute was not found";switch($()){case"fixed":return b(t);case"ratio":var e=t.split(":");return parseFloat(e[0])/parseFloat(e[1]);case"fit":return 0}}function $(){var t=o.getResponsiveAttribute(s,"md-row-height");if(!t)throw"md-grid-list: md-row-height attribute was not found";return"fit"==t?"fit":-1!==t.indexOf(":")?"ratio":"fixed"}function b(t){return/\D$/.test(t)?t:t+"px"}a.addClass("_md"),a.attr("role","list"),c.layoutDelegate=function(t){var r=p(),o={tileSpans:h(r),colCount:f(),rowMode:$(),rowHeight:v(),gutter:g()};if(t||!e.equals(o,C)){var s=i(o.colCount,o.tileSpans,r).map(function(t,n){return{grid:{element:a,style:m(o.colCount,n,o.gutter,o.rowMode,o.rowHeight)},tiles:t.map(function(t,i){return{element:e.element(r[i]),style:d(t.position,t.spans,o.colCount,n,o.gutter,o.rowMode,o.rowHeight)}})}}).reflow().performance();n.mdOnLayout({$event:{performance:s}}),C=o}};var y=e.bind(c,c.invalidateLayout),E=function(){for(var t in r.MEDIA)o(t),o.getQuery(r.MEDIA[t]).addListener(y);return o.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],s,l)}();n.$on("$destroy",function(){c.layoutDelegate=e.noop,E();for(var t in r.MEDIA)o.getQuery(r.MEDIA[t]).removeListener(y)});var C,w=t.startSymbol(),M=t.endSymbol(),A=t(u("share")+"% - ("+u("gutter")+" * "+u("gutterShare")+")"),k=t("calc(("+u("unit")+" + "+u("gutter")+") * "+u("offset")+")"),x=t("calc(("+u("unit")+") * "+u("span")+" + ("+u("span")+" - 1) * "+u("gutter")+")")}}}function n(t){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=t.nextTick,this.layoutDelegate=e.noop}function r(t){function n(e,n){var r,a,s,c,l,u;return c=t.time(function(){a=i(e,n)}),r={layoutInfo:function(){return a},map:function(e){return l=t.time(function(){var t=r.layoutInfo();s=e(t.positioning,t.rowCount)}),r},reflow:function(e){return u=t.time(function(){(e||o)(s.grid,s.tiles)}),r},performance:function(){return{tileCount:n.length,layoutTime:c,mapTime:l,reflowTime:u,totalTime:c+l+u}}}}function r(t,e){t.element.css(t.style),e.forEach(function(t){t.element.css(t.style)})}function i(t,e){function n(e,n){if(e.col>t)throw"md-grid-list: Tile at position "+n+" has a colspan ("+e.col+") that exceeds the column count ("+t+")";for(var l=0,u=0;u-l<e.col;)a>=t?r():-1!==(l=c.indexOf(0,a))&&-1!==(u=o(l+1))?a=u+1:(l=u=0,r());return i(l,e.col,e.row),a=l+e.col,{col:l,row:s}}function r(){a=0,s++,i(0,t,-1)}function i(t,e,n){for(var r=t;r<t+e;r++)c[r]=Math.max(c[r]+n,0)}function o(t){var e;for(e=t;e<c.length;e++)if(0!==c[e])return e;if(e===c.length)return e}var a=0,s=0,c=function(){for(var e=[],n=0;n<t;n++)e.push(0);return e}();return{positioning:e.map(function(t,e){return{spans:t,position:n(t,e)}}),rowCount:s+Math.max.apply(Math,c)}}var o=r;return n.animateWith=function(t){o=e.isFunction(t)?t:r},n}function i(t){return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(t){this.$attrs=t}],link:function(n,r,i,o){r.attr("role","listitem");var a=t.watchResponsiveAttributes(["md-colspan","md-rowspan"],i,e.bind(o,o.invalidateLayout));o.invalidateTiles(),n.$on("$destroy",function(){r[0].$$mdDestroyed=!0,a(),o.invalidateLayout()}),e.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(t,e){t!==e&&o.invalidateTiles()})}}}function o(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}n.$inject=["$mdUtil"],r.$inject=["$mdUtil"],t.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],i.$inject=["$mdMedia"],e.module("material.components.gridList",["material.core"]).directive("mdGridList",t).directive("mdGridTile",i).directive("mdGridTileFooter",o).directive("mdGridTileHeader",o).factory("$mdGridLayout",r),n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(e.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),e.module("material.components.icon",["material.core"]),function(){function n(t,e){function n(t,n,r,i){var o=this;o.isErrorGetter=r.mdIsError&&e(r.mdIsError),o.delegateClick=function(){o.input.focus()},o.element=n,o.setFocused=function(t){n.toggleClass("md-input-focused",!!t)},o.setHasValue=function(t){n.toggleClass("md-input-has-value",!!t)},o.setHasPlaceholder=function(t){n.toggleClass("md-input-has-placeholder",!!t)},o.setInvalid=function(t){t?i.addClass(n,"md-input-invalid"):i.removeClass(n,"md-input-invalid")},t.$watch(function(){return o.label&&o.input},function(t){t&&!o.label.attr("for")&&o.label.attr("for",o.input.attr("id"))})}n.$inject=["$scope","$element","$attrs","$animate"];var r=["INPUT","TEXTAREA","SELECT","MD-SELECT"],i=r.reduce(function(t,e){return t.concat(["md-icon ~ "+e,".md-icon ~ "+e])},[]).join(","),o=r.reduce(function(t,e){return t.concat([e+" ~ md-icon",e+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:function(e){var n=e[0].querySelector(i),r=e[0].querySelector(o);return n&&e.addClass("md-icon-left"),r&&e.addClass("md-icon-right"),function(e,n){t(n)}},controller:n}}function r(t,n,r,i,o){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(a,s,c,l){function u(t){return m.setHasValue(!h.$isEmpty(t)),t}function d(){m.setHasValue(s.val().length>0||(s[0].validity||{}).badInput)}var m=l[0],p=!!l[1],h=l[1]||t.fakeNgModel(),f=l[2],g=e.isDefined(c.readonly),v=t.parseAttributeBoolean(c.mdNoAsterisk),$=s[0].tagName.toLowerCase();if(m)if("hidden"!==c.type){if(m.input){if(m.input[0].contains(s[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}m.input=s,m.label&&c.$observe("required",function(t){m.label.toggleClass("md-required",t&&!v)});var b=e.element('<div class="md-errors-spacer">');s.after(b),m.label||r.expect(s,"aria-label",c.placeholder),s.addClass("md-input"),s.attr("id")||s.attr("id","input_"+t.nextUid()),"input"===$&&"number"===c.type&&c.min&&c.max&&!c.step?s.attr("step","any"):"textarea"===$&&function(){function r(){s.attr("rows",1).css("height","auto").addClass("md-no-flex");var t=l();if(!b){var e=s[0].style.padding||"";b=s.css("padding",0).prop("offsetHeight"),s[0].style.padding=e}if(g&&b&&(t=Math.max(t,b*g)),v&&b){var n=b*v;n<t?(s.attr("md-no-autogrow",""),t=n):s.removeAttr("md-no-autogrow")}b&&s.attr("rows",Math.round(t/b)),s.css("height",t+"px").removeClass("md-no-flex")}function l(){var t=y.offsetHeight,e=y.scrollHeight-t;return t+Math.max(e,0)}function u(e){return t.nextTick(r),e}function d(){if(f&&(f=!1,e.element(n).off("resize",r),$&&$(),s.attr("md-no-autogrow","").off("input",r),p)){var t=h.$formatters.indexOf(u);t>-1&&h.$formatters.splice(t,1)}}var f=!c.hasOwnProperty("mdNoAutogrow");if(function(){function t(t){t.preventDefault(),u=!0,p=t.clientY,h=parseFloat(s.css("height"))||s.prop("offsetHeight")}function n(t){u&&(t.preventDefault(),d(),f.addClass("md-input-resized"))}function r(t){u&&s.css("height",h+t.pointer.distanceY+"px")}function i(t){u&&(u=!1,f.removeClass("md-input-resized"))}if(!c.hasOwnProperty("mdNoResize")){var l=e.element('<div class="md-resize-handle"></div>'),u=!1,p=null,h=0,f=m.element,g=o.register(l,"drag",{horizontal:!1});s.wrap('<div class="md-resize-wrapper">').after(l),l.on("mousedown",t),f.on("$md.dragstart",n).on("$md.drag",r).on("$md.dragend",i),a.$on("$destroy",function(){l.off("mousedown",t).remove(),f.off("$md.dragstart",n).off("$md.drag",r).off("$md.dragend",i),g(),l=null,f=null,g=null})}}(),f){var g=c.hasOwnProperty("rows")?parseInt(c.rows):NaN,v=c.hasOwnProperty("maxRows")?parseInt(c.maxRows):NaN,$=a.$on("md-resize-textarea",r),b=null,y=s[0];if(i(function(){t.nextTick(r)},10,!1),s.on("input",r),p&&h.$formatters.push(u),g||s.attr("rows",1),e.element(n).on("resize",r),a.$on("$destroy",d),c.hasOwnProperty("mdDetectHidden")){var E=function(){var t=!1;return function(){var e=0===y.offsetHeight;!1===e&&!0===t&&r(),t=e}}();a.$watch(function(){return t.nextTick(E,!1),!0})}}}(),p||d();var y=m.isErrorGetter||function(){return h.$invalid&&(h.$touched||f&&f.$submitted)};a.$watch(y,m.setInvalid),c.ngValue&&c.$observe("value",d),h.$parsers.push(u),h.$formatters.push(u),s.on("input",d),g||s.on("focus",function(e){t.nextTick(function(){m.setFocused(!0)})}).on("blur",function(e){t.nextTick(function(){m.setFocused(!1),d()})}),a.$on("$destroy",function(){m.setFocused(!1),m.setHasValue(!1),m.input=null})}else s.attr("aria-hidden","true")}}}function i(t,n){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(r,i,o,a){function s(t){return l.parent?(l.text(String(i.val()||t||"").length+" / "+c),t):t}var c,l,u,d=a[0],m=a[1];n.nextTick(function(){u=e.element(m.element[0].querySelector(".md-errors-spacer")),l=e.element('<div class="md-char-counter">'),u.append(l),o.$set("ngTrim","false"),r.$watch(o.mdMaxlength,function(n){c=n,e.isNumber(n)&&n>0?(l.parent().length||t.enter(l,u),s()):t.leave(l)}),d.$validators["md-maxlength"]=function(t,n){return!e.isNumber(c)||c<0||(s(),(t||i.val()||n||"").length<=c)}})}}}function o(t){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(n,r,i,o){if(o){var a=o.element.find("label"),s=o.element.attr("md-no-float");if(a&&a.length||""===s||n.$eval(s))o.setHasPlaceholder(!0);else if("MD-SELECT"!=r[0].nodeName){var c=e.element('<label ng-click="delegateClick()" tabindex="-1">'+i.placeholder+"</label>");i.$set("placeholder",null),o.element.addClass("md-icon-float").prepend(c),t(c)(n)}}}}}}function a(t){return{restrict:"A",link:function(e,n,r){function i(){a=!0,t(function(){n[0].select(),a=!1},1,!1)}function o(t){a&&t.preventDefault()}if("INPUT"===n[0].nodeName||"TEXTAREA"===n[0].nodeName){var a=!1;n.on("focus",i).on("mouseup",o),e.$on("$destroy",function(){n.off("focus",i).off("mouseup",o)})}}}}function s(t){return{restrict:"EA",compile:function(e){function n(e){return!!t.getClosest(e,"md-input-container")}function r(t){t.toggleClass("md-input-message-animation",!0)}if(n(e))r(e);else if(function(){for(var t=e[0];t=t.parentNode;)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(t,i){n(i)&&r(e)}},priority:100}}function c(t,e,n,r){return v(t,e,n,r),{addClass:function(t,e,n){d(t,n)}}}function l(t,e,n,r){return v(t,e,n,r),{enter:function(t,e){d(t,e)},leave:function(t,e){m(t,e)},addClass:function(t,e,n){"ng-hide"==e?m(t,n):n()},removeClass:function(t,e,n){"ng-hide"==e?d(t,n):n()}}}function u(t,e,n,r){return v(t,e,n,r),{enter:function(t,e){p(t).start().done(e)},leave:function(t,e){h(t).start().done(e)}}}function d(t,n){var r,i=[],o=g(t),a=o.children();if(0==o.length||0==a.length)return C.warn("mdInput messages show animation called on invalid messages element: ",t),void n();e.forEach(a,function(t){r=p(e.element(t)),i.push(r.start())}),b.all(i,n)}function m(t,n){var r,i=[],o=g(t),a=o.children();if(0==o.length||0==a.length)return C.warn("mdInput messages hide animation called on invalid messages element: ",t),void n();e.forEach(a,function(t){r=h(e.element(t)),i.push(r.start())}),b.all(i,n)}function p(e){var n=parseInt(t.getComputedStyle(e[0]).height),r=parseInt(t.getComputedStyle(e[0]).marginTop),i=g(e),o=f(e);return r>-n||i.hasClass("md-auto-hide")&&!o.hasClass("md-input-invalid")?y(e,{}):y(e,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-n+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function h(e){var n=e[0].offsetHeight,r=t.getComputedStyle(e[0]);return 0===parseInt(r.opacity)?y(e,{}):y(e,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-n+"px"},duration:.3})}function f(t){return t.controller("mdInputContainer").element}function g(t){return t.hasClass("md-input-messages-animation")?t:t.hasClass("md-input-message-animation")?e.element(E.getClosest(t,function(t){return t.classList.contains("md-input-messages-animation")})):e.element(t[0].querySelector(".md-input-messages-animation"))}function v(t,e,n,r){b=t,y=e,E=n,C=r}n.$inject=["$mdTheming","$parse"],r.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],i.$inject=["$animate","$mdUtil"],o.$inject=["$compile"],s.$inject=["$mdUtil"],a.$inject=["$timeout"],c.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],l.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],u.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var $=e.module("material.components.input",["material.core"]).directive("mdInputContainer",n).directive("label",function(){return{restrict:"E",require:"^?mdInputContainer",link:function(t,e,n,r){!r||n.mdNoFloat||e.hasClass("md-container-ignore")||(r.label=e,t.$on("$destroy",function(){r.label=null}))}}}).directive("input",r).directive("textarea",r).directive("mdMaxlength",i).directive("placeholder",o).directive("ngMessages",function(){function t(t){return w.some(function(e){return t[e]})}return{restrict:"EA",link:function(e,n,r,i){i&&(n.toggleClass("md-input-messages-animation",!0),n.toggleClass("md-auto-hide",!0),("false"==r.mdAutoHide||t(r))&&n.toggleClass("md-auto-hide",!1))},require:"^^?mdInputContainer"}}).directive("ngMessage",s).directive("ngMessageExp",s).directive("mdSelectOnFocus",a).animation(".md-input-invalid",c).animation(".md-input-messages-animation",l).animation(".md-input-message-animation",u);t._mdMocksIncluded&&$.service("$$mdInput",function(){return{messages:{show:d,hide:m,getElement:g}}}).service("mdInputInvalidAnimation",c).service("mdInputMessagesAnimation",l).service("mdInputMessageAnimation",u);var b,y,E,C,w=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"]}(),function(){function t(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function n(t,n,r,i){var o=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(a,s){function c(n){if("div"==n)(v=e.element('<div class="md-no-style md-list-item-inner">')).append(a.contents()),a.addClass("md-proxy-focus");else{v=e.element('<div class="md-button md-no-style"> <div class="md-list-item-inner"></div></div>');var r=e.element('<md-button class="md-no-style"></md-button>');u(a[0],r[0]),r.attr("aria-label")||r.attr("aria-label",t.getText(a)),a.hasClass("md-no-focus")&&r.addClass("md-no-focus"),v.prepend(r),v.children().eq(1).append(a.contents()),a.addClass("_md-button-wrap")}a[0].setAttribute("tabindex","-1"),a.append(v)}function l(n,r){if(n&&!m(n)&&n.hasAttribute("ng-click")){t.expect(n,"aria-label");var i=e.element('<md-button class="md-secondary md-icon-button">');u(n,i[0],["ng-if","ng-hide","ng-show"]),n.setAttribute("tabindex","-1"),i.append(n),n=i[0]}n&&(!p(n)||!s.ngClick&&d(n))&&e.element(n).removeClass("md-secondary"),a.addClass("md-with-secondary"),r.append(n)}function u(t,n,i){var o=r.prefixer(["ng-if","ng-click","ng-dblclick","aria-label","ng-disabled","ui-sref","href","ng-href","target","ng-attr-ui-sref","ui-sref-opts"]);i&&(o=o.concat(r.prefixer(i))),e.forEach(o,function(e){t.hasAttribute(e)&&(n.setAttribute(e,t.getAttribute(e)),t.removeAttribute(e))})}function d(t){return-1!=o.indexOf(t.nodeName.toLowerCase())}function m(t){var e=t.nodeName.toUpperCase();return"MD-BUTTON"==e||"BUTTON"==e}function p(t){for(var e=t.attributes,n=0;n<e.length;n++)if("ngClick"===s.$normalize(e[n].name))return!0;return!1}var h,f,g=a[0].querySelectorAll(".md-secondary"),v=a;if(a[0].setAttribute("role","listitem"),s.ngClick||s.ngDblclick||s.ngHref||s.href||s.uiSref||s.ngAttrUiSref)c("button");else if(!a.hasClass("md-no-proxy")){for(var $,b=0;$=o[b];++b)if(f=a[0].querySelector($)){h=!0;break}h?c("div"):a.addClass("md-no-proxy")}return function(){var t=e.element('<div class="md-secondary-container">');e.forEach(g,function(e){l(e,t)}),v.append(t)}(),function(){for(var t,e,n=["md-switch","md-checkbox"],r=0;e=n[r];++r)if((t=a.find(e)[0])&&!t.hasAttribute("aria-label")){var i=a.find("p")[0];if(!i)return;t.setAttribute("aria-label","Toggle "+i.textContent)}}(),h&&"MD-MENU"===f.nodeName&&function(){var t=e.element(f),n="left";(t.parent().hasClass("md-secondary-container")||f.parentNode.firstElementChild!==f)&&(n="right"),t.attr("md-position-mode")||t.attr("md-position-mode",n+" target");var r=t.children().eq(0);p(r[0])||r.attr("ng-click","$mdMenu.open($event)"),r.attr("aria-label")||r.attr("aria-label","Open List Menu")}(),function(t,a,s,c){function l(t){var e=["md-slider"];if(!t.path)return-1!==e.indexOf(t.target.tagName.toLowerCase());for(var n=t.path.indexOf(a.children()[0]),r=0;r<n;r++)if(-1!==e.indexOf(t.path[r].tagName.toLowerCase()))return!0}a.addClass("_md");var u=[],d=a[0].firstElementChild,m=a.hasClass("_md-button-wrap")?d.firstElementChild:d,h=m&&p(m),f=a.hasClass("md-no-proxy");d&&d.children&&!h&&!f&&e.forEach(o,function(t){e.forEach(d.querySelectorAll(t+":not(.md-secondary)"),function(t){u.push(t)})}),(1==u.length||h)&&(a.addClass("md-clickable"),h||c.attachRipple(t,e.element(a[0].querySelector(".md-no-style")))),u.length&&e.forEach(u,function(n){n=e.element(n),t.mouseActive=!1,n.on("mousedown",function(){t.mouseActive=!0,i(function(){t.mouseActive=!1},100)}).on("focus",function(){!1===t.mouseActive&&a.addClass("md-focused"),n.on("blur",function t(){a.removeClass("md-focused"),n.off("blur",t)})})});var g=function(t){"INPUT"==t.target.nodeName||"TEXTAREA"==t.target.nodeName||t.target.isContentEditable||(t.which||t.keyCode)==n.KEY_CODE.SPACE&&m&&(m.click(),t.preventDefault(),t.stopPropagation())};h||u.length||m&&m.addEventListener("keypress",g),a.off("click"),a.off("keypress"),1==u.length&&m&&a.children().eq(0).on("click",function(t){l(t)||!r.getClosest(t.target,"BUTTON")&&m.contains(t.target)&&e.forEach(u,function(n){t.target===n||n.contains(t.target)||("MD-MENU"===n.nodeName&&(n=n.children[0]),e.element(n).triggerHandler("click"))})}),t.$on("$destroy",function(){m&&m.removeEventListener("keypress",g)})}}}}function r(t,e,n){this.attachRipple=function(t,e){var r={};n.attach(t,e,r)}}r.$inject=["$scope","$element","$mdListInkRipple"],t.$inject=["$mdTheming"],n.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],e.module("material.components.list",["material.core"]).controller("MdListController",r).directive("mdList",t).directive("mdListItem",n)}(),e.module("material.components.menu",["material.core","material.components.backdrop"]),e.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),function(){function t(t,n){return{restrict:"E",transclude:!0,controller:r,controllerAs:"ctrl",bindToController:!0,scope:{mdSelectedNavItem:"=?",mdNoInkBar:"=?",navBarAriaLabel:"@?"},template:'<div class="md-nav-bar"><nav role="navigation"><ul class="_md-nav-bar-list" ng-transclude role="listbox"tabindex="0"ng-focus="ctrl.onFocus()"ng-keydown="ctrl.onKeydown($event)"aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar ng-hide="ctrl.mdNoInkBar"></md-nav-ink-bar></div>',link:function(r,i,o,a){n(i),a.navBarAriaLabel||t.expectAsync(i,"aria-label",e.noop)}}}function r(t,e,n,r){this._$timeout=n,this._$scope=e,this._$mdConstant=r,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=t[0],this._inkbar;var i=this,o=this._$scope.$watch(function(){return i._navBarEl.querySelectorAll("._md-nav-button").length},function(t){t>0&&(i._initTabs(),o())})}function i(t,n){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:o,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(t,e){var n,r,i,o=e.mdNavClick,a=e.mdNavHref,s=e.mdNavSref,c=e.srefOpts;if((o?1:0)+(a?1:0)+(s?1:0)>1)throw Error("Must not specify more than one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");return o?n='ng-click="ctrl.mdNavClick()"':a?n='ng-href="{{ctrl.mdNavHref}}"':s&&(n='ui-sref="{{ctrl.mdNavSref}}"'),r=c?'ui-sref-opts="{{ctrl.srefOpts}}" ':"",n&&(i='<md-button class="_md-nav-button md-accent" ng-class="ctrl.getNgClassMap()" ng-blur="ctrl.setFocused(false)" tabindex="-1" '+r+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="option" aria-selected="{{ctrl.isSelected()}}">'+(i||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@"},link:function(r,i,o,a){n(function(){var n=a[0],o=a[1],s=e.element(i[0].querySelector("._md-nav-button"));n.name||(n.name=e.element(i[0].querySelector("._md-nav-button-text")).text().trim()),s.on("click",function(){o.mdSelectedNavItem=n.name,r.$apply()}),t.expectWithText(i,"aria-label")})}}}function o(t){this._$element=t,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this._selected=!1,this._focused=!1}r.$inject=["$element","$scope","$timeout","$mdConstant"],i.$inject=["$mdAria","$$rAF"],o.$inject=["$element"],t.$inject=["$mdAria","$mdTheming"],e.module("material.components.navBar",["material.core"]).controller("MdNavBarController",r).directive("mdNavBar",t).controller("MdNavItemController",o).directive("mdNavItem",i),r.prototype._initTabs=function(){this._inkbar=e.element(this._navBarEl.querySelector("md-nav-ink-bar"));var t=this;this._$timeout(function(){t._updateTabs(t.mdSelectedNavItem,n)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(e,n){t._$timeout(function(){t._updateTabs(e,n)})})},r.prototype._updateTabs=function(t,e){var n=this,r=this._getTabs();if(r){var i=-1,o=-1,a=this._getTabByName(t),s=this._getTabByName(e);s&&(s.setSelected(!1),i=r.indexOf(s)),a&&(a.setSelected(!0),o=r.indexOf(a)),this._$timeout(function(){n._updateInkBarStyles(a,o,i)})}},r.prototype._updateInkBarStyles=function(t,e,n){if(this._inkbar.toggleClass("_md-left",e<n).toggleClass("_md-right",e>n),this._inkbar.css({display:e<0?"none":""}),t){var r=t.getButtonEl(),i=r.offsetLeft;this._inkbar.css({left:i+"px",width:r.offsetWidth+"px"})}},r.prototype._getTabs=function(){var t=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(t){return e.element(t).controller("mdNavItem")});return t.indexOf(n)?t:null},r.prototype._getTabByName=function(t){return this._findTab(function(e){return e.getName()==t})},r.prototype._getSelectedTab=function(){return this._findTab(function(t){return t.isSelected()})},r.prototype.getFocusedTab=function(){return this._findTab(function(t){return t.hasFocus()})},r.prototype._findTab=function(t){for(var e=this._getTabs(),n=0;n<e.length;n++)if(t(e[n]))return e[n];return null},r.prototype.onFocus=function(){var t=this._getSelectedTab();t&&t.setFocused(!0)},r.prototype._moveFocus=function(t,e){t.setFocused(!1),e.setFocused(!0)},r.prototype.onKeydown=function(t){var e=this._$mdConstant.KEY_CODE,n=this._getTabs(),r=this.getFocusedTab();if(r){var i=n.indexOf(r);switch(t.keyCode){case e.UP_ARROW:case e.LEFT_ARROW:i>0&&this._moveFocus(r,n[i-1]);break;case e.DOWN_ARROW:case e.RIGHT_ARROW:i<n.length-1&&this._moveFocus(r,n[i+1]);break;case e.SPACE:case e.ENTER:this._$timeout(function(){r.getButtonEl().click()})}}},o.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},o.prototype.getName=function(){return this.name},o.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},o.prototype.setSelected=function(t){this._selected=t},o.prototype.isSelected=function(){return this._selected},o.prototype.setFocused=function(t){this._focused=t,t&&this.getButtonEl().focus()},o.prototype.hasFocus=function(){return this._focused}}(),e.module("material.components.progressCircular",["material.core"]),function(){function t(t,e){if(!t||!e)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(h.hasOwnProperty(t))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete e.id,delete e.position,delete e.animation,h[t]=e}function r(){return e.copy(h)}function i(){h={}}function o(){return["$rootElement","$rootScope","$injector","$window",function(t,e,n,r){return new a(h,t,e,n,r)}]}function a(t,n,r,i,o){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:e.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:m},this._config={},this._presets=t,this._$rootElement=n,this._$rootScope=r,this._$injector=i,this._$window=o,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=l.animation,this.xPosition=c.xPosition,this.yPosition=c.yPosition,this.interceptorTypes=s.interceptorTypes,this.closeReasons=s.closeReasons,this.absPosition=c.absPosition}function s(t,e){this._$q=e.get("$q"),this._$mdCompiler=e.get("$mdCompiler"),this._$mdConstant=e.get("$mdConstant"),this._$mdUtil=e.get("$mdUtil"),this._$mdTheming=e.get("$mdTheming"),this._$rootScope=e.get("$rootScope"),this._$animate=e.get("$animate"),this._$mdPanel=e.get("$mdPanel"),this._$log=e.get("$log"),this._$window=e.get("$window"),this._$$rAF=e.get("$$rAF"),this.id=t.id,this.config=t,this.panelContainer,this.panelEl,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap,this._bottomFocusTrap,this._backdropRef,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:"",classes:""}}function c(t){this._$window=t.get("$window"),this._isRTL="rtl"===t.get("$mdUtil").bidi(),this._$mdConstant=t.get("$mdConstant"),this._absolute=!1,this._relativeToEl,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition}function l(t){this._$mdUtil=t.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function u(t){var n=e.isString(t)?document.querySelector(t):t;return e.element(n)}function d(t,e){var n=getComputedStyle(t[0]||t)[e],r=n.indexOf("("),i=n.lastIndexOf(")"),o={x:0,y:0};if(r>-1&&i>-1){var a=n.substring(r+1,i).split(", ").slice(-2);o.x=parseInt(a[0]),o.y=parseInt(a[1])}return o}a.$inject=["presets","$rootElement","$rootScope","$injector","$window"],e.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",function(){return{definePreset:t,getAllPresets:r,clearPresets:i,$get:o()}});var m=80,p=e.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),h={};a.prototype.create=function(t,n){if("string"==typeof t?t=this._getPresetByName(t):"object"!=typeof t||!e.isUndefined(n)&&n||(n=t,t={}),t=t||{},n=n||{},e.isDefined(n.id)&&this._trackedPanels[n.id]){var r=this._trackedPanels[n.id];return e.extend(r.config,n),r}this._config=e.extend({id:n.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,n,t);var i=new s(this._config,this._$injector);return this._trackedPanels[n.id]=i,this._config.groupName&&(e.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),e.forEach(this._config.groupName,function(t){i.addToGroup(t)})),this._config.scope.$on("$destroy",e.bind(i,i.detach)),i},a.prototype.open=function(t,e){var n=this.create(t,e);return n.open().then(function(){return n})},a.prototype._getPresetByName=function(t){if(!this._presets[t])throw new Error("mdPanel: The panel preset configuration that you requested does not exist. Use the $mdPanelProvider to create a preset before requesting one.");return this._presets[t]},a.prototype.newPanelPosition=function(){return new c(this._$injector)},a.prototype.newPanelAnimation=function(){return new l(this._$injector)},a.prototype.newPanelGroup=function(t,e){if(!this._groups[t]){var n={panels:[],openPanels:[],maxOpen:(e=e||{}).maxOpen>0?e.maxOpen:1/0};this._groups[t]=n}return this._groups[t]},a.prototype.setGroupMaxOpen=function(t,e){if(!this._groups[t])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[t].maxOpen=e},a.prototype._openCountExceedsMaxOpen=function(t){if(this._groups[t]){var e=this._groups[t];return e.maxOpen>0&&e.openPanels.length>e.maxOpen}return!1},a.prototype._closeFirstOpenedPanel=function(t){this._groups[t].openPanels[0].close()},a.prototype._wrapTemplate=function(t){return'<div class="md-panel-outer-wrapper"> <div class="md-panel _md-panel-offscreen">'+(t||"")+"</div></div>"},a.prototype._wrapContentElement=function(t){var n=e.element('<div class="md-panel-outer-wrapper">');return t.addClass("md-panel _md-panel-offscreen"),n.append(t),n},s.interceptorTypes={CLOSE:"onClose"},s.prototype.open=function(){var t=this;return this._$q(function(n,r){var i=t._done(n,t),o=t._simpleBind(t.show,t);t.attach().then(o).then(function(){t.config.groupName&&e.forEach(t.config.groupName,function(e){t._$mdPanel._openCountExceedsMaxOpen(e)&&t._$mdPanel._closeFirstOpenedPanel(e)})}).then(i).catch(r)})},s.prototype.close=function(t){var n=this;return this._$q(function(r,i){n._callInterceptors(s.interceptorTypes.CLOSE).then(function(){var o=n._done(r,n),a=n._simpleBind(n.detach,n),s=n.config.onCloseSuccess||e.noop;s=e.bind(n,s,n,t),n.hide().then(a).then(o).then(s).catch(i)},i)})},s.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var t=this;return this._$q(function(n,r){var i=t._done(n,t),o=t.config.onDomAdded||e.noop;t._$q.all([t._createBackdrop(),t._createPanel().then(function(e){return t.isAttached=!0,t._addEventListeners(),e}).catch(r)]).then(o).then(i).catch(r)})},s.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var t=this,n=t.config.onDomRemoved||e.noop,r=function(){return t._removeEventListeners(),t._topFocusTrap&&t._topFocusTrap.parentNode&&t._topFocusTrap.parentNode.removeChild(t._topFocusTrap),t._bottomFocusTrap&&t._bottomFocusTrap.parentNode&&t._bottomFocusTrap.parentNode.removeChild(t._bottomFocusTrap),t._restoreCache.classes&&(t.panelEl[0].className=t._restoreCache.classes),t.panelEl[0].style.cssText=t._restoreCache.styles||"",t._compilerCleanup(),t.panelContainer.remove(),t.isAttached=!1,t._$q.when(t)};return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(e,i){var o=t._done(e,t);t._$q.all([r(),!t._backdropRef||t._backdropRef.detach()]).then(n).then(o).catch(i)})},s.prototype.destroy=function(){var t=this;this.config.groupName&&e.forEach(this.config.groupName,function(e){t.removeFromGroup(e)}),this.config.scope.$destroy(),this.config.locals=null,this._interceptors=null},s.prototype.show=function(){if(!this.panelContainer)return this._$q(function(t,e){e("mdPanel: Panel does not exist yet. Call open() or attach().")});if(!this.panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var t=this,n=function(){return t.panelContainer.removeClass("_md-panel-hidden"),t._animateOpen()};return this._$q(function(r,i){var o=t._done(r,t),a=t.config.onOpenComplete||e.noop;t._$q.all([t._backdropRef?t._backdropRef.show():t,n().then(function(){t._focusOnOpen()},i)]).then(a).then(function(){t.config.groupName&&e.forEach(t.config.groupName,function(e){t._$mdPanel._groups[e].openPanels.push(t)})}).then(o).catch(i)})},s.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(t,e){e("mdPanel: Panel does not exist yet. Call open() or attach().")});if(this.panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var t=this;return this._$q(function(n,r){var i=t._done(n,t),o=t.config.onRemoving||e.noop;t._$q.all([t._backdropRef?t._backdropRef.hide():t,t._animateClose().then(o).then(function(){t.panelContainer.addClass("_md-panel-hidden")}).then(function(){if(t.config.groupName){var n;e.forEach(t.config.groupName,function(e){e=t._$mdPanel._groups[e],(n=e.openPanels.indexOf(t))>-1&&e.openPanels.splice(n,1)})}}).then(function(){var e=t.config.origin;e&&u(e).focus()}).catch(r)]).then(i,r)})},s.prototype.addClass=function(t,e){if(this._$log.warn("mdPanel: The addClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");e||this.panelContainer.hasClass(t)?e&&!this.panelEl.hasClass(t)&&this.panelEl.addClass(t):this.panelContainer.addClass(t)},s.prototype.removeClass=function(t,e){if(this._$log.warn("mdPanel: The removeClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");!e&&this.panelContainer.hasClass(t)?this.panelContainer.removeClass(t):e&&this.panelEl.hasClass(t)&&this.panelEl.removeClass(t)},s.prototype.toggleClass=function(t,e){if(this._$log.warn("mdPanel: The toggleClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");e?this.panelEl.toggleClass(t):this.panelContainer.toggleClass(t)},s.prototype._compile=function(){var t=this;return t._$mdCompiler.compile(t.config).then(function(n){var r=t.config;if(r.contentElement){var i=n.element;t._restoreCache.styles=i[0].style.cssText,t._restoreCache.classes=i[0].className,t.panelContainer=t._$mdPanel._wrapContentElement(i),t.panelEl=i}else t.panelContainer=n.link(r.scope),t.panelEl=e.element(t.panelContainer[0].querySelector(".md-panel"));return t._compilerCleanup=n.cleanup,u(t.config.attachTo).append(t.panelContainer),t})},s.prototype._createPanel=function(){var t=this;return this._$q(function(e,n){t.config.locals||(t.config.locals={}),t.config.locals.mdPanelRef=t,t._compile().then(function(){t.config.disableParentScroll&&(t._restoreScroll=t._$mdUtil.disableScrollAround(null,t.panelContainer,{disableScrollMask:!0})),t.config.panelClass&&t.panelEl.addClass(t.config.panelClass),t.config.propagateContainerEvents&&t.panelContainer.css("pointer-events","none"),t._$animate.pin&&t._$animate.pin(t.panelContainer,u(t.config.attachTo)),t._configureTrapFocus(),t._addStyles().then(function(){e(t)},n)},n)})},s.prototype._addStyles=function(){var t=this;return this._$q(function(e){t.panelContainer.css("z-index",t.config.zIndex),t.panelEl.css("z-index",t.config.zIndex+1);var n=function(){t._setTheming(),t.panelEl.removeClass("_md-panel-offscreen"),t.panelContainer.addClass("_md-panel-hidden"),e(t)};if(t.config.fullscreen)return t.panelEl.addClass("_md-panel-fullscreen"),void n();t.config.position?t._$rootScope.$$postDigest(function(){t._updatePosition(!0),t._setTheming(),e(t)}):n()})},s.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},s.prototype.updatePosition=function(t){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=t,this._updatePosition()},s.prototype._updatePosition=function(t){var e=this.config.position;e&&(e._setPanelPosition(this.panelEl),t&&(this.panelEl.removeClass("_md-panel-offscreen"),this.panelContainer.addClass("_md-panel-hidden")),this.panelEl.css(c.absPosition.TOP,e.getTop()),this.panelEl.css(c.absPosition.BOTTOM,e.getBottom()),this.panelEl.css(c.absPosition.LEFT,e.getLeft()),this.panelEl.css(c.absPosition.RIGHT,e.getRight()))},s.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var t=this;this._$rootScope.$$postDigest(function(){(t._$mdUtil.findFocusTarget(t.panelEl)||t.panelEl).focus()})}},s.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var t=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&t.duration(this.config.animation._rawDuration);var e={animation:t,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(e)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},s.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},s.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(t){t()}),this._removeListeners=[]},s.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var t=u(this.config.attachTo),e=this,n=function(t){t.keyCode===e._$mdConstant.KEY_CODE.ESCAPE&&(t.stopPropagation(),t.preventDefault(),e.close(s.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),t.on("keydown",n),this._removeListeners.push(function(){e.panelContainer.off("keydown",n),t.off("keydown",n)})}},s.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var t,n=this.config.propagateContainerEvents?e.element(document.body):this.panelContainer,r=function(e){t=e.target},i=this,o=function(e){i.config.propagateContainerEvents?t===i.panelEl[0]||i.panelEl[0].contains(t)||i.close():t===n[0]&&e.target===n[0]&&(e.stopPropagation(),e.preventDefault(),i.close(s.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",r),n.on("mouseup",o),this._removeListeners.push(function(){n.off("mousedown",r),n.off("mouseup",o)})}},s.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var t=e.bind(this,this._updatePosition),n=this._$$rAF.throttle(t),r=this,i=function(){n()};this._$window.addEventListener("scroll",i,!0),this._removeListeners.push(function(){r._$window.removeEventListener("scroll",i,!0)})}},s.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var t=this.panelEl;this._topFocusTrap=p.clone()[0],this._bottomFocusTrap=p.clone()[0];var e=function(){t.focus()};this._topFocusTrap.addEventListener("focus",e),this._bottomFocusTrap.addEventListener("focus",e),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",e),this._bottomFocusTrap.removeEventListener("focus",e)},this)),t[0].parentNode.insertBefore(this._topFocusTrap,t[0]),t.after(this._bottomFocusTrap)}},s.prototype.updateAnimation=function(t){this.config.animation=t,this._backdropRef&&this._backdropRef.config.animation.duration(t._rawDuration)},s.prototype._animateOpen=function(){this.panelContainer.addClass("md-panel-is-showing");var t=this.config.animation;if(!t)return this.panelContainer.addClass("_md-panel-shown"),this._$q.when(this);var e=this;return this._$q(function(n){var r=e._done(n,e);t.animateOpen(e.panelEl).then(r,function(){e._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),r()})})},s.prototype._animateClose=function(){var t=this.config.animation;if(!t)return this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this);var e=this;return this._$q(function(n){var r=function(){e.panelContainer.removeClass("md-panel-is-showing"),n(e)};t.animateClose(e.panelEl).then(r,function(){e._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),r()})})},s.prototype.registerInterceptor=function(t,n){var r=null;if(e.isString(t)?e.isFunction(n)||(r="Interceptor callback must be a function, instead got "+typeof n):r="Interceptor type must be a string, instead got "+typeof t,r)throw new Error("MdPanel: "+r);var i=this._interceptors[t]=this._interceptors[t]||[];return-1===i.indexOf(n)&&i.push(n),this},s.prototype.removeInterceptor=function(t,e){var n=this._interceptors[t]?this._interceptors[t].indexOf(e):-1;return n>-1&&this._interceptors[t].splice(n,1),this},s.prototype.removeAllInterceptors=function(t){return t?this._interceptors[t]=[]:this._interceptors=Object.create(null),this},s.prototype._callInterceptors=function(t){var n=this,r=n._$q;return(n._interceptors&&n._interceptors[t]||[]).reduceRight(function(t,i){var o=i&&e.isFunction(i.then)?i:null;return t.then(function(){if(!o)try{o=i(n)}catch(t){o=r.reject(t)}return o})},r.resolve(n))},s.prototype._simpleBind=function(t,e){return function(n){return t.apply(e,n)}},s.prototype._done=function(t,e){return function(){t(e)}},s.prototype.addToGroup=function(t){this._$mdPanel._groups[t]||this._$mdPanel.newPanelGroup(t);var e=this._$mdPanel._groups[t];e.panels.indexOf(this)<0&&e.panels.push(this)},s.prototype.removeFromGroup=function(t){if(!this._$mdPanel._groups[t])throw new Error("mdPanel: The group "+t+" does not exist.");var e=this._$mdPanel._groups[t],n=e.panels.indexOf(this);n>-1&&e.panels.splice(n,1)},s.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},c.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},c.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},c.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},c.viewportMargin=8,c.prototype.absolute=function(){return this._absolute=!0,this},c.prototype._setPosition=function(t,n){if(t===c.absPosition.RIGHT||t===c.absPosition.LEFT)this._left=this._right="";else{if(t!==c.absPosition.BOTTOM&&t!==c.absPosition.TOP){var r=Object.keys(c.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+r+".")}this._top=this._bottom=""}return this["_"+t]=e.isString(n)?n:"0",this},c.prototype.top=function(t){return this._setPosition(c.absPosition.TOP,t)},c.prototype.bottom=function(t){return this._setPosition(c.absPosition.BOTTOM,t)},c.prototype.start=function(t){var e=this._isRTL?c.absPosition.RIGHT:c.absPosition.LEFT;return this._setPosition(e,t)},c.prototype.end=function(t){var e=this._isRTL?c.absPosition.LEFT:c.absPosition.RIGHT;return this._setPosition(e,t)},c.prototype.left=function(t){return this._setPosition(c.absPosition.LEFT,t)},c.prototype.right=function(t){return this._setPosition(c.absPosition.RIGHT,t)},c.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},c.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},c.prototype.center=function(){return this.centerHorizontally().centerVertically()},c.prototype.relativeTo=function(t){return this._absolute=!1,this._relativeToEl=u(t),this},c.prototype.addPanelPosition=function(t,e){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return this._validateXPosition(t),this._validateYPosition(e),this._positions.push({x:t,y:e}),this},c.prototype._validateYPosition=function(t){if(null!=t){for(var e,n=Object.keys(c.yPosition),r=[],i=0;e=n[i];i++){var o=c.yPosition[e];if(r.push(o),o===t)return}throw new Error("mdPanel: Panel y position only accepts the following values:\n"+r.join(" | "))}},c.prototype._validateXPosition=function(t){if(null!=t){for(var e,n=Object.keys(c.xPosition),r=[],i=0;e=n[i];i++){var o=c.xPosition[e];if(r.push(o),o===t)return}throw new Error("mdPanel: Panel x Position only accepts the following values:\n"+r.join(" | "))}},c.prototype.withOffsetX=function(t){return this._translateX.push(t),this},c.prototype.withOffsetY=function(t){return this._translateY.push(t),this},c.prototype.getTop=function(){return this._top},c.prototype.getBottom=function(){return this._bottom},c.prototype.getLeft=function(){return this._left},c.prototype.getRight=function(){return this._right},c.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},c.prototype._setTransform=function(t){return t.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},c.prototype._isOnscreen=function(t){var e=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var r=d(t,this._$mdConstant.CSS.TRANSFORM);e+=r.x,n+=r.y}var i=e+t[0].offsetWidth,o=n+t[0].offsetHeight;return e>=0&&n>=0&&o<=this._$window.innerHeight&&i<=this._$window.innerWidth},c.prototype.getActualPosition=function(){return this._actualPosition},c.prototype._reduceTranslateValues=function(t,n){return n.map(function(n){var r=e.isFunction(n)?n(this):n;return t+"("+r+")"},this).join(" ")},c.prototype._setPanelPosition=function(t){if(t.removeClass("_md-panel-position-adjusted"),this._absolute)this._setTransform(t);else{if(this._actualPosition)return this._calculatePanelPosition(t,this._actualPosition),this._setTransform(t),void this._constrainToViewport(t);for(var e=0;e<this._positions.length;e++)if(this._actualPosition=this._positions[e],this._calculatePanelPosition(t,this._actualPosition),this._setTransform(t),this._isOnscreen(t))return;this._constrainToViewport(t)}},c.prototype._constrainToViewport=function(t){var e=c.viewportMargin,n=this._top,r=this._left;if(this.getTop()){var i=parseInt(this.getTop()),o=t[0].offsetHeight+i,a=this._$window.innerHeight;i<e?this._top=e+"px":o>a&&(this._top=i-(o-a+e)+"px")}if(this.getLeft()){var s=parseInt(this.getLeft()),l=t[0].offsetWidth+s,u=this._$window.innerWidth;s<e?this._left=e+"px":l>u&&(this._left=s-(l-u+e)+"px")}t.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==r)},c.prototype._reverseXPosition=function(t){if(t!==c.xPosition.CENTER){return t.indexOf("start")>-1?t.replace("start","end"):t.replace("end","start")}},c.prototype._bidi=function(t){return this._isRTL?this._reverseXPosition(t):t},c.prototype._calculatePanelPosition=function(t,e){var n=t[0].getBoundingClientRect(),r=n.width,i=n.height,o=this._relativeToEl[0].getBoundingClientRect(),a=o.left,s=o.right,l=o.width;switch(this._bidi(e.x)){case c.xPosition.OFFSET_START:this._left=a-r+"px";break;case c.xPosition.ALIGN_END:this._left=s-r+"px";break;case c.xPosition.CENTER:var u=a+.5*l-.5*r;this._left=u+"px";break;case c.xPosition.ALIGN_START:this._left=a+"px";break;case c.xPosition.OFFSET_END:this._left=s+"px"}var d=o.top,m=o.bottom,p=o.height;switch(e.y){case c.yPosition.ABOVE:this._top=d-i+"px";break;case c.yPosition.ALIGN_BOTTOMS:this._top=m-i+"px";break;case c.yPosition.CENTER:var h=d+.5*p-.5*i;this._top=h+"px";break;case c.yPosition.ALIGN_TOPS:this._top=d+"px";break;case c.yPosition.BELOW:this._top=m+"px"}},l.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},l.prototype.openFrom=function(t){return t=t.target?t.target:t,this._openFrom=this._getPanelAnimationTarget(t),this._closeTo||(this._closeTo=this._openFrom),this},l.prototype.closeTo=function(t){return this._closeTo=this._getPanelAnimationTarget(t),this},l.prototype.duration=function(t){function n(t){if(e.isNumber(t))return t/1e3}return t&&(e.isNumber(t)?this._openDuration=this._closeDuration=n(t):e.isObject(t)&&(this._openDuration=n(t.open),this._closeDuration=n(t.close))),this._rawDuration=t,this},l.prototype._getPanelAnimationTarget=function(t){return e.isDefined(t.top)||e.isDefined(t.left)?{element:n,bounds:{top:t.top||0,left:t.left||0}}:this._getBoundingClientRect(u(t))},l.prototype.withAnimation=function(t){return this._animationClass=t,this},l.prototype.animateOpen=function(t){var n=this._$mdUtil.dom.animator;this._fixBounds(t);var r={},i=t[0].style.transform||"",o=n.toTransformCss(i),a=n.toTransformCss(i);switch(this._animationClass){case l.animation.SLIDE:t.css("opacity","1"),r={transitionInClass:"_md-panel-animate-enter"};var s=n.calculateSlideToOrigin(t,this._openFrom)||"";o=n.toTransformCss(s+" "+i);break;case l.animation.SCALE:r={transitionInClass:"_md-panel-animate-enter"};var c=n.calculateZoomToOrigin(t,this._openFrom)||"";o=n.toTransformCss(c+" "+i);break;case l.animation.FADE:r={transitionInClass:"_md-panel-animate-enter"};break;default:r=e.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return r.duration=this._openDuration,n.translate3d(t,o,a,r)},l.prototype.animateClose=function(t){var n=this._$mdUtil.dom.animator,r={},i=t[0].style.transform||"",o=n.toTransformCss(i),a=n.toTransformCss(i);switch(this._animationClass){case l.animation.SLIDE:t.css("opacity","1"),r={transitionInClass:"_md-panel-animate-leave"};var s=n.calculateSlideToOrigin(t,this._closeTo)||"";a=n.toTransformCss(s+" "+i);break;case l.animation.SCALE:r={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};var c=n.calculateZoomToOrigin(t,this._closeTo)||"";a=n.toTransformCss(c+" "+i);break;case l.animation.FADE:r={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:r=e.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return r.duration=this._closeDuration,n.translate3d(t,o,a,r)},l.prototype._fixBounds=function(t){var e=t[0].offsetWidth,n=t[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=n),this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=e),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=e)},l.prototype._getBoundingClientRect=function(t){if(t instanceof e.element)return{element:t,bounds:t[0].getBoundingClientRect()}}}(),function(){function t(t,n,r){function i(r,i,d){function m(){var t=(d.mdMode||"").trim();if(t)switch(t){case a:case s:case c:case l:break;default:t=s}return t}function p(t,r){if(!f&&m()){var i=n.supplant("translateX({0}%) scale({1},1)",[(r-100)/2,r/100]),o=g({transform:i});e.element(t).css(o)}}t(i);var h,f=d.hasOwnProperty("disabled"),g=n.dom.animator.toCss,v=e.element(i[0].querySelector(".md-bar1")),$=e.element(i[0].querySelector(".md-bar2")),b=e.element(i[0].querySelector(".md-container"));i.attr("md-mode",m()).toggleClass(u,f),function(){if(e.isUndefined(d.mdMode)){var t=e.isDefined(d.value)?a:s;i.attr("md-mode",t),d.mdMode=t}}(),d.$observe("value",function(t){var e=o(t);i.attr("aria-valuenow",e),m()!=l&&p($,e)}),d.$observe("mdBufferValue",function(t){p(v,o(t))}),d.$observe("disabled",function(t){f=!0===t||!1===t?!!t:e.isDefined(t),i.toggleClass(u,f),b.toggleClass(h,!f)}),d.$observe("mdMode",function(t){switch(h&&b.removeClass(h),t){case l:case c:case a:case s:b.addClass(h="md-mode-"+t);break;default:b.addClass(h="md-mode-"+s)}})}function o(t){return Math.max(0,Math.min(t||0,100))}var a="determinate",s="indeterminate",c="buffer",l="query",u="_md-progress-linear-disabled";return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:function(t,e,n){return t.attr("aria-valuemin",0),t.attr("aria-valuemax",100),t.attr("role","progressbar"),i}}}t.$inject=["$mdTheming","$mdUtil","$log"],e.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",t)}(),function(){function t(t,n,r,i){function o(t){this._radioButtonRenderFns=[],this.$element=t}function a(n,r){var i=t.iterator(n[0].querySelectorAll("md-radio-button"),!0);if(i.count()){var o=n[0].querySelector("md-radio-button.md-checked"),a=i[r<0?"previous":"next"](o,function(t){return!e.element(t).attr("disabled")})||i.first();e.element(a).triggerHandler("click")}}return o.prototype={init:function(t){this._ngModelCtrl=t,this._ngModelCtrl.$render=e.bind(this,this.render)},add:function(t){this._radioButtonRenderFns.push(t)},remove:function(t){var e=this._radioButtonRenderFns.indexOf(t);-1!==e&&this._radioButtonRenderFns.splice(e,1)},render:function(){this._radioButtonRenderFns.forEach(function(t){t()})},setViewValue:function(t,e){this._ngModelCtrl.$setViewValue(t,e),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return a(this.$element,1)},selectPrevious:function(){return a(this.$element,-1)},setActiveDescendant:function(t){this.$element.attr("aria-activedescendant",t)},isDisabled:function(){return this.$element[0].hasAttribute("disabled")}},{restrict:"E",controller:["$element",o],require:["mdRadioGroup","?ngModel"],link:{pre:function(o,a,s,c){function l(){a.hasClass("md-focused")||a.addClass("md-focused")}a.addClass("_md"),r(a);var u=c[0],d=c[1]||t.fakeNgModel();u.init(d),o.mouseActive=!1,a.attr({role:"radiogroup",tabIndex:a.attr("tabindex")||"0"}).on("keydown",function(r){var i=r.which||r.keyCode;if(i==n.KEY_CODE.ENTER||r.currentTarget==r.target)switch(i){case n.KEY_CODE.LEFT_ARROW:case n.KEY_CODE.UP_ARROW:r.preventDefault(),u.selectPrevious(),l();break;case n.KEY_CODE.RIGHT_ARROW:case n.KEY_CODE.DOWN_ARROW:r.preventDefault(),u.selectNext(),l();break;case n.KEY_CODE.ENTER:var o=e.element(t.getClosest(a[0],"form"));o.length>0&&o.triggerHandler("submit")}}).on("mousedown",function(t){o.mouseActive=!0,i(function(){o.mouseActive=!1},100)}).on("focus",function(){!1===o.mouseActive&&u.$element.addClass("md-focused")}).on("blur",function(){u.$element.removeClass("md-focused")})}}}}function n(t,e,n){var r="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:function(i,o,a,s){function c(){if(!s)throw"RadioButton: No RadioGroupController could be found.";s.add(u),a.$observe("value",u),o.on("click",l).on("$destroy",function(){s.remove(u)})}function l(t){o[0].hasAttribute("disabled")||s.isDisabled()||i.$apply(function(){s.setViewValue(a.value,t&&t.type)})}function u(){var t=s.getViewValue()==a.value;t!==d&&("md-radio-group"!==o[0].parentNode.nodeName.toLowerCase()&&o.parent().toggleClass(r,t),t&&s.setActiveDescendant(o.attr("id")),d=t,o.attr("aria-checked",t).toggleClass(r,t))}var d;n(o),function(n,r){n.attr({id:a.id||"radio_"+e.nextUid(),role:"radio","aria-checked":"false"}),t.expectWithText(n,"aria-label")}(o),a.ngValue?e.nextTick(c,!1):c()}}}t.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],n.$inject=["$mdAria","$mdUtil","$mdTheming"],e.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",t).directive("mdRadioButton",n)}(),function(){function t(t,e){return["$mdUtil","$window",function(n,r){return{restrict:"A",multiElement:!0,link:function(i,o,a){var s=i.$on("$md-resize-enable",function(){s();var c=o[0],l=c.nodeType===r.Node.ELEMENT_NODE?r.getComputedStyle(c):{};i.$watch(a[t],function(t){if(!!t===e){n.nextTick(function(){i.$broadcast("$md-resize")});var r={cachedTransitionStyles:l};n.dom.animator.waitTransitionEnd(o,r).then(function(){i.$broadcast("$md-resize")})}})})}}}]}e.module("material.components.showHide",["material.core"]).directive("ngShow",t("ngShow",!0)).directive("ngHide",t("ngHide",!1))}(),function(){function t(t,r,i,o){function a(t,n){var o=function(){return!1},a=function(){return i.when(r.supplant(c,[n||""]))};return e.extend({isLockedOpen:o,isOpen:o,toggle:a,open:a,close:a,onClose:e.noop,then:function(t){return s(n).then(t||e.noop)}},t)}function s(e){return t.when(e).catch(o.error)}var c="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",l={find:function(e,i){var a=t.get(e);return a||i?a:(o.error(r.supplant(c,[e||""])),n)},waitFor:s};return function(t,n){if(e.isUndefined(t))return l;var r=!0===n,i=l.find(t,r);return!i&&r?l.waitFor(t):!i&&e.isUndefined(n)?a(l,t):i}}function r(t,r,i,o,a,s,c,l,u,d,m,p,h){function f(c,f,g,v){function $(t,e){var n=f[0],r=t[0].scrollTop;if(e&&r){A={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var i={top:r+"px",bottom:"auto",height:t[0].clientHeight+"px"};f.css(i),w.css(i)}if(!e&&A)return function(){n.style.top=A.top,n.style.bottom=A.bottom,n.style.height=A.height,w[0].style.top=null,w[0].style.bottom=null,w[0].style.height=null,A=null}}function b(t){t&&!C?(C=k.css("overflow"),k.css("overflow","hidden")):e.isDefined(C)&&(k.css("overflow",C),C=n)}function y(t){return t.keyCode===i.KEY_CODE.ESCAPE?E(t):d.when(!0)}function E(t){return t.preventDefault(),v.close()}var C,w,M,A,k=null,x=null,T=d.when(!0),_=l(g.mdIsLockedOpen),S=e.element(p);g.mdDisableScrollTarget&&((k=m[0].querySelector(g.mdDisableScrollTarget))?k=e.element(k):u.warn(r.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:g.mdDisableScrollTarget}))),k||(k=f.parent()),g.hasOwnProperty("mdDisableBackdrop")||(w=r.createBackdrop(c,"md-sidenav-backdrop md-opaque ng-enter")),f.addClass("_md"),o(f),w&&o.inherit(w,f),f.on("$destroy",function(){w&&w.remove(),v.destroy()}),c.$on("$destroy",function(){w&&w.remove()}),c.$watch(function(){return _(c.$parent,{$media:function(e){return u.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),t(e)},$mdMedia:t})},function(t,e){c.isLockedOpen=t,t===e?f.toggleClass("md-locked-open",!!t):s[t?"addClass":"removeClass"](f,"md-locked-open"),w&&w.toggleClass("md-locked-open",!!t)}),c.$watch("isOpen",function(t){var e=r.findFocusTarget(f)||r.findFocusTarget(f,"[md-sidenav-focus]")||f,n=f.parent();n[t?"on":"off"]("keydown",y),w&&w[t?"on":"off"]("click",E);var i=$(n,t);return t&&(x=m[0].activeElement,M=a.getLastInteractionType()),b(t),T=d.all([t&&w?s.enter(w,n):w?s.leave(w):d.when(!0),s[t?"removeClass":"addClass"](f,"md-closed")]).then(function(){c.isOpen&&(h(function(){S.triggerHandler("resize")}),e&&e.focus()),i&&i()})}),v.$toggleOpen=function(t){return c.isOpen==t?d.when(!0):(c.isOpen&&v.onCloseCb&&v.onCloseCb(),d(function(e){c.isOpen=t,r.nextTick(function(){T.then(function(t){!c.isOpen&&x&&"keyboard"===M&&(x.focus(),x=null),e(t)})})}))}}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(t){return t.addClass("md-closed").attr("tabIndex","-1"),f}}}function i(t,e,n,r,i){var o=this;o.isOpen=function(){return!!t.isOpen},o.isLockedOpen=function(){return!!t.isLockedOpen},o.onClose=function(t){return o.onCloseCb=t,o},o.open=function(){return o.$toggleOpen(!0)},o.close=function(){return o.$toggleOpen(!1)},o.toggle=function(){return o.$toggleOpen(!t.isOpen)},o.$toggleOpen=function(e){return r.when(t.isOpen=e)};var a=e.mdComponentId,s=a&&a.indexOf(i.startSymbol())>-1,c=s?i(a)(t.$parent):a;o.destroy=n.register(o,c),s&&e.$observe("mdComponentId",function(t){t&&t!==o.$$mdHandle&&(o.destroy(),o.destroy=n.register(o,t))})}t.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],r.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],i.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],e.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",t).directive("mdSidenav",r).directive("mdSidenavFocus",function(){return{restrict:"A",require:"^mdSidenav",link:function(t,e,n,r){}}}).controller("$mdSidenavController",i)}(),function(){function r(t,r,i,o,a,c,l,u){var d=i.KEY_CODE;d.SPACE,d.ENTER,d.UP_ARROW,d.DOWN_ARROW;return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:function(u,d){var m=e.element("<md-select-value><span></span></md-select-value>");if(m.append('<span class="md-select-icon" aria-hidden="true"></span>'),m.addClass("md-select-value"),m[0].hasAttribute("id")||m.attr("id","select_value_label_"+r.nextUid()),u.find("md-content").length||u.append(e.element("<md-content>").append(u.contents())),d.mdOnOpen&&(u.find("md-content").prepend(e.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),u.find("md-option").attr("ng-show","$$loadingAsyncDone")),d.name){var p=e.element('<select class="md-visually-hidden">');p.attr({name:d.name,"aria-hidden":"true",tabindex:"-1"});var h=u.find("md-option");e.forEach(h,function(t){var n=e.element("<option>"+t.innerHTML+"</option>");t.hasAttribute("ng-value")?n.attr("ng-value",t.getAttribute("ng-value")):t.hasAttribute("value")&&n.attr("value",t.getAttribute("value")),p.append(n)}),p.append('<option ng-value="'+d.ngModel+'" selected></option>'),u.parent().append(p)}var f=r.parseAttributeBoolean(d.multiple),g=f?"multiple":"",v='<div class="md-select-menu-container" aria-hidden="true"><md-select-menu {0}>{1}</md-select-menu></div>';return v=r.supplant(v,[g,u.html()]),u.empty().append(m),u.append(v),d.tabindex||d.$set("tabindex",0),function(u,d,m,p){function h(){var t=d.attr("aria-label")||d.attr("placeholder");!t&&M&&M.label&&(t=M.label.text()),C=t,a.expect(d,"aria-label",t)}function g(){O&&(D=D||O.find("md-select-menu").controller("mdSelectMenu"),A.setLabelText(D.selectedLabels()))}function v(){if(C){var t=D.selectedLabels({mode:"aria"});d.attr("aria-label",t.length?C+": "+t:C)}}function $(){M&&M.setHasValue(D.selectedLabels().length>0||(d[0].validity||{}).badInput)}function b(t){if(i.isNavigationKey(t))t.preventDefault(),y();else if(s(t,i)){t.preventDefault();var n=D.optNodeForKeyboardSearch(t);if(!n||n.hasAttribute("disabled"))return;var r=e.element(n).controller("mdOption");D.isMultiple||D.deselect(Object.keys(D.selected)[0]),D.select(r.hashKey,r.value),D.refreshViewValue()}}function y(){I._mdSelectIsOpen=!0,d.attr("aria-expanded","true"),t.show({scope:I,preserveScope:!0,skipCompile:!0,element:O,target:d[0],selectCtrl:A,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!m.mdOnOpen&&(u.$eval(m.mdOnOpen)||!0)}).finally(function(){I._mdSelectIsOpen=!1,d.focus(),d.attr("aria-expanded","false"),k.$setTouched()})}var E,C,w=!0,M=p[0],A=p[1],k=p[2],x=p[3],T=d.find("md-select-value"),_=e.isDefined(m.readonly),S=r.parseAttributeBoolean(m.mdNoAsterisk);if(S&&d.addClass("md-no-asterisk"),M){var N=M.isErrorGetter||function(){return k.$invalid&&(k.$touched||x&&x.$submitted)};if(M.input&&d.find("md-select-header").find("input")[0]!==M.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");M.input=d,M.label||a.expect(d,"aria-label",d.attr("placeholder")),u.$watch(N,M.setInvalid)}var O,I,D;!function(){if(O=e.element(d[0].querySelector(".md-select-menu-container")),I=u,m.mdContainerClass){var t=O[0].getAttribute("class")+" "+m.mdContainerClass;O[0].setAttribute("class",t)}(D=O.find("md-select-menu").controller("mdSelectMenu")).init(k,m.ngModel),d.on("$destroy",function(){O.remove()})}(),o(d),x&&e.isDefined(m.multiple)&&r.nextTick(function(){(k.$modelValue||k.$viewValue)&&x.$setPristine()});var R=k.$render;k.$render=function(){R(),g(),v(),$()},m.$observe("placeholder",k.$render),M&&M.label&&m.$observe("required",function(t){M.label.toggleClass("md-required",t&&!S)}),A.setLabelText=function(t){A.setIsPlaceholder(!t);var e=!1;if(m.mdSelectedText&&m.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");m.mdSelectedText||m.mdSelectedHtml?(t=c(m.mdSelectedText||m.mdSelectedHtml)(u),e=!0):t||(t=m.placeholder||(M&&M.label?M.label.text():"")||"",e=!0);var n=T.children().eq(0);m.mdSelectedHtml?n.html(l.getTrustedHtml(t)):e?n.text(t):n.html(t)},A.setIsPlaceholder=function(t){t?(T.addClass("md-select-placeholder"),M&&M.label&&M.label.addClass("md-placeholder")):(T.removeClass("md-select-placeholder"),M&&M.label&&M.label.removeClass("md-placeholder"))},_||(d.on("focus",function(t){M&&M.setFocused(!0)}),d.on("blur",function(t){w&&(w=!1,I._mdSelectIsOpen&&t.stopImmediatePropagation()),I._mdSelectIsOpen||(M&&M.setFocused(!1),$())})),A.triggerClose=function(){c(m.mdOnClose)(u)},u.$$postDigest(function(){h(),g(),v()}),u.$watch(function(){return D.selectedLabels()},g);var P;m.$observe("ngMultiple",function(t){P&&P();var e=c(t);P=u.$watch(function(){return e(u)},function(t,e){t===n&&e===n||(t?d.attr("multiple","multiple"):d.removeAttr("multiple"),d.attr("aria-multiselectable",t?"true":"false"),O&&(D.setMultiple(t),R=k.$render,k.$render=function(){R(),g(),v(),$()},k.$render()))})}),m.$observe("disabled",function(t){e.isString(t)&&(t=!0),E!==n&&E===t||(E=t,t?d.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",y).off("keydown",b):d.attr({tabindex:m.tabindex,"aria-disabled":"false"}).on("click",y).on("keydown",b))}),m.hasOwnProperty("disabled")||m.hasOwnProperty("ngDisabled")||(d.attr({"aria-disabled":"false"}),d.on("click",y),d.on("keydown",b));var H={role:"listbox","aria-expanded":"false","aria-multiselectable":f&&!m.ngMultiple?"true":"false"};d[0].hasAttribute("id")||(H.id="select_"+r.nextUid());var L="select_container_"+r.nextUid();O.attr("id",L),H["aria-owns"]=L,d.attr(H),u.$on("$destroy",function(){t.destroy().finally(function(){M&&(M.setFocused(!1),M.setHasValue(!1),M.input=null),k.$setTouched()})})}},controller:function(){}}}function i(t,r,i,o){function a(o,a,s){function c(){var t=d.ngModel.$modelValue||d.ngModel.$viewValue||[];if(e.isArray(t)){var n=Object.keys(d.selected),r=t.map(d.hashGetter);n.filter(function(t){return-1===r.indexOf(t)}).forEach(d.deselect),r.forEach(function(e,n){d.select(e,t[n])})}}function u(){var t=d.ngModel.$viewValue||d.ngModel.$modelValue;Object.keys(d.selected).forEach(d.deselect),d.select(d.hashGetter(t),t)}var d=this;d.isMultiple=e.isDefined(a.multiple),d.selected={},d.options={},o.$watchCollection(function(){return d.options},function(){d.ngModel.$render()});var m;d.setMultiple=function(t){function n(t,n){return e.isArray(t||n||[])}var r=d.ngModel;m=m||r.$isEmpty,d.isMultiple=t,d.isMultiple?(r.$validators["md-multiple"]=n,r.$render=c,o.$watchCollection(d.modelBinding,function(t){n(t)&&c(),d.ngModel.$setPristine()}),r.$isEmpty=function(t){return!t||0===t.length}):(delete r.$validators["md-multiple"],r.$render=u)};var p,h,f,g="";d.optNodeForKeyboardSearch=function(t){p&&clearTimeout(p),p=setTimeout(function(){p=n,g="",f=n,h=n},300);var r=t.keyCode-(i.isNumPadKey(t)?48:0);g+=String.fromCharCode(r);var o=new RegExp("^"+g,"i");h||(h=s.find("md-option"),f=new Array(h.length),e.forEach(h,function(t,e){f[e]=t.textContent.trim()}));for(var a=0;a<f.length;++a)if(o.test(f[a]))return h[a]},d.init=function(n,i){d.ngModel=n,d.modelBinding=i,d.ngModel.$isEmpty=function(t){return!d.options[d.hashGetter(t)]};var a=r.getModelOption(n,"trackBy");if(a){var s={},c=t(a);d.hashGetter=function(t,e){return s.$value=t,c(e||o,s)}}else d.hashGetter=function(t){return e.isObject(t)?"object_"+(t.$$mdSelectId||(t.$$mdSelectId=++l)):t};d.setMultiple(d.isMultiple)},d.selectedLabels=function(t){var e=(t=t||{}).mode||"html",n=r.nodesToArray(s[0].querySelectorAll("md-option[selected]"));if(n.length){var i;return"html"==e?i=function(t){if(t.hasAttribute("md-option-empty"))return"";var e=t.innerHTML,n=t.querySelector(".md-ripple-container");n&&(e=e.replace(n.outerHTML,""));var r=t.querySelector(".md-container");return r&&(e=e.replace(r.outerHTML,"")),e}:"aria"==e&&(i=function(t){return t.hasAttribute("aria-label")?t.getAttribute("aria-label"):t.textContent}),r.uniq(n.map(i)).join(", ")}return""},d.select=function(t,e){var n=d.options[t];n&&n.setSelected(!0),d.selected[t]=e},d.deselect=function(t){var e=d.options[t];e&&e.setSelected(!1),delete d.selected[t]},d.addOption=function(t,n){if(e.isDefined(d.options[t]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');d.options[t]=n,e.isDefined(d.selected[t])&&(d.select(t,n.value),e.isDefined(d.ngModel.$modelValue)&&d.hashGetter(d.ngModel.$modelValue)===t&&d.ngModel.$validate(),d.refreshViewValue())},d.removeOption=function(t){delete d.options[t]},d.refreshViewValue=function(){var t,n=[];for(var i in d.selected)(t=d.options[i])?n.push(t.value):n.push(d.selected[i]);var o=r.getModelOption(d.ngModel,"trackBy"),a=d.isMultiple?n:n[0],s=d.ngModel.$modelValue;(o?e.equals(s,a):s+""===a)||(d.ngModel.$setViewValue(a),d.ngModel.$render())}}return a.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu"],scope:!1,controller:a,link:{pre:function(t,n,i,a){function s(n){var i=r.getClosest(n.target,"md-option"),o=i&&e.element(i).data("$mdOptionController");if(i&&o){if(i.hasAttribute("disabled"))return n.stopImmediatePropagation(),!1;var a=c.hashGetter(o.value),s=e.isDefined(c.selected[a]);t.$apply(function(){c.isMultiple?s?c.deselect(a):c.select(a,o.value):s||(c.deselect(Object.keys(c.selected)[0]),c.select(a,o.value)),c.refreshViewValue()})}}var c=a[0];n.addClass("_md"),o(n),n.on("click",s),n.on("keypress",function(t){13!=t.keyCode&&32!=t.keyCode||s(t)})}}}}function o(t,n,r){function i(t){var e=t.value,n=t.ngValue;return e||n}function o(i,o,a,s){function c(t,e,n){if(d.hashGetter){var r=d.hashGetter(e,i),o=d.hashGetter(t,i);l.hashKey=o,l.value=t,d.removeOption(r,l),d.addOption(o,l)}else n||i.$$postDigest(function(){c(t,e,!0)})}var l=s[0],d=s[1];r(o),d.isMultiple&&(o.addClass("md-checkbox-enabled"),o.prepend(u.clone())),e.isDefined(a.ngValue)?i.$watch(a.ngValue,c):e.isDefined(a.value)?c(a.value):i.$watch(function(){return o.text().trim()},c),a.$observe("disabled",function(t){t?o.attr("tabindex","-1"):o.attr("tabindex","0")}),i.$$postDigest(function(){a.$observe("selected",function(t){e.isDefined(t)&&("string"==typeof t&&(t=!0),t?(d.isMultiple||d.deselect(Object.keys(d.selected)[0]),d.select(l.hashKey,l.value)):d.deselect(l.hashKey),d.refreshViewValue())})}),t.attach(i,o),function(){var t={role:"option","aria-selected":"false"};o[0].hasAttribute("id")||(t.id="select_option_"+n.nextUid()),o.attr(t)}(),i.$on("$destroy",function(){d.removeOption(l.hashKey,l)})}function a(t){this.selected=!1,this.setSelected=function(e){e&&!this.selected?t.attr({selected:"selected","aria-selected":"true"}):!e&&this.selected&&(t.removeAttr("selected"),t.attr("aria-selected","false")),this.selected=e}}return a.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:a,compile:function(t,n){return t.append(e.element('<div class="md-text">').append(t.contents())),t.attr("tabindex",n.tabindex||"0"),i(n)||t.attr("md-option-empty",""),o}}}function a(r){function i(r,i,d,m,p,h,f,g,v){function $(t){var e=t.selectCtrl;if(e){var n=t.selectEl.controller("mdSelectMenu");e.setLabelText(n?n.selectedLabels():""),e.triggerClose()}}function b(n,r,i){var s,p=r[0],h=i.target[0].children[0],f=v[0].body,g=i.selectEl[0],$=i.contentEl[0],b=f.getBoundingClientRect(),y=h.getBoundingClientRect(),E={left:b.left+c,top:c,bottom:b.height-c,right:b.width-c-(d.floatingScrollbars()?16:0)},C={top:y.top-E.top,left:y.left-E.left,right:E.right-(y.left+y.width),bottom:E.bottom-(y.top+y.height)},w=b.width-2*c,M=g.querySelector("md-option[selected]"),A=g.getElementsByTagName("md-option"),k=g.getElementsByTagName("md-optgroup"),x=u(r,$);s=o(i.loadingAsync)?$.firstElementChild||$:M||(k.length?k[0]:A.length?A[0]:$.firstElementChild||$),$.offsetWidth>w?$.style["max-width"]=w+"px":$.style.maxWidth=null,x&&g.classList.add("md-overflow");var T=s;"MD-OPTGROUP"===(T.tagName||"").toUpperCase()&&(s=T=A[0]||$.firstElementChild||$),i.focusedNode=T,p.style.display="block";var _=g.getBoundingClientRect(),S=l(s);if(s){var N=m.getComputedStyle(s);S.paddingLeft=parseInt(N.paddingLeft,10)||0,S.paddingRight=parseInt(N.paddingRight,10)||0}if(x){var O=$.offsetHeight/2;$.scrollTop=S.top+S.height/2-O,C.top<O?$.scrollTop=Math.min(S.top,$.scrollTop+O-C.top):C.bottom<O&&($.scrollTop=Math.max(S.top+S.height-_.height,$.scrollTop-O+C.bottom))}var I,D,R,P,H;I=y.left+S.left-S.paddingLeft+2,D=Math.floor(y.top+y.height/2-S.height/2-S.top+$.scrollTop)+2,R=S.left+y.width/2+"px "+(S.top+S.height/2-$.scrollTop)+"px 0px",P=Math.min(y.width+S.paddingLeft+S.paddingRight,w),H=t.getComputedStyle(h)["font-size"];var L=p.getBoundingClientRect(),j=Math.round(100*Math.min(y.width/_.width,1))/100,F=Math.round(100*Math.min(y.height/_.height,1))/100;return{container:{element:e.element(p),styles:{left:Math.floor(a(E.left,I,E.right-L.width)),top:Math.floor(a(E.top,D,E.bottom-L.height)),"min-width":P,"font-size":H}},dropDown:{element:e.element(g),styles:{transformOrigin:R,transform:i.alreadyOpen?"":d.supplant("scale({0},{1})",[j,F])}}}}var y="$mdSelect.show() expected a target element in options.target but got '{0}'!",E=d.dom.animator,C=i.KEY_CODE;return{parent:"body",themable:!0,onShow:function(t,o,a){function c(){return p(function(t){if(a.isRemoved)return p.reject(!1);var e=b(0,o,a);e.container.element.css(E.toCss(e.container.styles)),e.dropDown.element.css(E.toCss(e.dropDown.styles)),h(function(){o.addClass("md-active"),e.dropDown.element.css(E.toCss({transform:""})),l(a.focusedNode),t()})})}function l(t){t&&!t.hasAttribute("disabled")&&t.focus()}function u(){var t=function(t,e,n){return function(){if(!n.isRemoved){var t=b(0,e,n),r=t.container,i=t.dropDown;r.element.css(E.toCss(r.styles)),i.element.css(E.toCss(i.styles))}}}(0,o,a),n=e.element(m);return n.on("resize",t),n.on("orientationchange",t),function(){n.off("resize",t),n.off("orientationchange",t)}}function $(){function t(t){t.preventDefault(),t.stopPropagation(),a.restoreFocus=!1,d.nextTick(r.hide,!0)}function e(t){switch(t.preventDefault(),t.stopPropagation(),t.keyCode){case C.UP_ARROW:return u();case C.DOWN_ARROW:return l();case C.SPACE:case C.ENTER:var e=d.getClosest(t.target,"md-option");e&&(p.triggerHandler({type:"click",target:e}),t.preventDefault()),m(t);break;case C.TAB:case C.ESCAPE:t.stopPropagation(),t.preventDefault(),a.restoreFocus=!0,d.nextTick(r.hide,!0);break;default:if(s(t,i)){var n=p.controller("mdSelectMenu").optNodeForKeyboardSearch(t);a.focusedNode=n||a.focusedNode,n&&n.focus()}}}function c(t){var e,r=d.nodesToArray(a.optionNodes),i=r.indexOf(a.focusedNode);do{-1===i?i=0:"next"===t&&i<r.length-1?i++:"prev"===t&&i>0&&i--,(e=r[i]).hasAttribute("disabled")&&(e=n)}while(!e&&i<r.length-1&&i>0);e&&e.focus(),a.focusedNode=e}function l(){c("next")}function u(){c("prev")}function m(t){if(!(t&&"click"==t.type&&t.currentTarget!=p[0]||function(){var e=!1;if(t&&t.currentTarget.children.length>0){var n=t.currentTarget.children[0];n.scrollHeight>n.clientHeight&&n.children.length>0&&t.pageX-t.currentTarget.getBoundingClientRect().left>n.querySelector("md-option").offsetWidth&&(e=!0)}return e}())){var e=d.getClosest(t.target,"md-option");e&&e.hasAttribute&&!e.hasAttribute("disabled")&&(t.preventDefault(),t.stopPropagation(),h.isMultiple||(a.restoreFocus=!0,d.nextTick(function(){r.hide(h.ngModel.$viewValue)},!0)))}}if(!a.isRemoved){var p=a.selectEl,h=p.controller("mdSelectMenu")||{};return o.addClass("md-clickable"),a.backdrop&&a.backdrop.on("click",t),p.on("keydown",e),p.on("click",m),function(){a.backdrop&&a.backdrop.off("click",t),p.off("keydown",e),p.off("click",m),o.removeClass("md-clickable"),a.isRemoved=!0}}}return a.loadingAsync&&!a.isRemoved&&(t.$$loadingAsyncDone=!1,p.when(a.loadingAsync).then(function(){t.$$loadingAsyncDone=!0,delete a.loadingAsync}).then(function(){h(c)})),function(t,n){var r=o.find("md-select-menu");if(!n.target)throw new Error(d.supplant(y,[n.target]));e.extend(n,{isRemoved:!1,target:e.element(n.target),parent:e.element(n.parent),selectEl:r,contentEl:o.find("md-content"),optionNodes:r[0].getElementsByTagName("md-option")})}(0,a),a.hideBackdrop=function(t,e,n){return n.disableParentScroll&&!d.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=d.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1,n.hasBackdrop&&(n.backdrop=d.createBackdrop(t,"md-select-backdrop md-click-catcher"),g.enter(n.backdrop,v[0].body,null,{duration:0})),function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll(),delete n.restoreScroll}}(t,0,a),function(t,e,n){return n.parent.append(e),p(function(t,n){try{f(e,{removeClass:"md-leave",duration:0}).start().then(c).then(t)}catch(t){n(t)}})}(0,o,a).then(function(t){return o.attr("aria-hidden","false"),a.alreadyOpen=!0,a.cleanupInteraction=$(),a.cleanupResizing=u(),t},a.hideBackdrop)},onRemove:function(t,e,n){function r(){e.removeClass("md-active"),e.attr("aria-hidden","true"),e[0].style.display="none",$(n),!n.$destroy&&n.restoreFocus&&n.target.focus()}return(n=n||{}).cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),!0===n.$destroy?r():f(e,{addClass:"md-leave"}).start().then(r)},hasBackdrop:!0,disableParentScroll:!0}}function o(t){return t&&e.isFunction(t.then)}function a(t,e,n){return Math.max(t,Math.min(e,n))}function l(t){return t?{left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}:{left:0,top:0,width:0,height:0}}function u(t,e){var n=!1;try{var r=t[0].style.display;t[0].style.display="block",n=e.scrollHeight>e.offsetHeight,t[0].style.display=r}finally{}return n}return i.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],r("$mdSelect").setDefaults({methods:["target"],options:i})}function s(t,e){var n=String.fromCharCode(t.keyCode),r=t.keyCode<=31;return n&&n.length&&!r&&!e.isMetaKey(t)&&!e.isFnLockKey(t)&&!e.hasModifierKey(t)}r.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],i.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],o.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],a.$inject=["$$interimElementProvider"];var c=8,l=0,u=e.element('<div class="md-container"><div class="md-icon"></div></div>');e.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",r).directive("mdSelectMenu",i).directive("mdOption",o).directive("mdOptgroup",function(){return{restrict:"E",compile:function(t,n){t.parent().find("md-select-header").length||function(){var r=t.find("label");r.length||(r=e.element("<label>"),t.prepend(r)),r.addClass("md-container-ignore"),n.label&&r.text(n.label)}()}}}).directive("mdSelectHeader",function(){return{restrict:"E"}}).provider("$mdSelect",a)}(),function(){function t(t,n,r,i,o,a,s,c,l,u){function d(r,d,m,p){function h(){E(),M()}function f(t){X=parseFloat(t),d.attr("aria-valuemin",t),h()}function g(t){J=parseFloat(t),d.attr("aria-valuemax",t),h()}function v(t){Q=parseFloat(t)}function $(t){Z=A(parseInt(t),0,6)}function b(){if(Y&&!H()&&!e.isUndefined(Q)){if(Q<=0){var t="Slider step value must be greater than zero when in discrete mode";throw l.error(t),new Error(t)}var r=Math.floor((J-X)/Q);tt||(tt=e.element("<canvas>").css("position","absolute"),q.append(tt),et=tt[0].getContext("2d"));var i=C();!i||i.height||i.width||(E(),i=nt),tt[0].width=i.width,tt[0].height=i.height;for(var o,a=0;a<=r;a++){var s=n.getComputedStyle(q[0]);et.fillStyle=s.color||"black",o=Math.floor((W?i.height:i.width)*(a/r)),et.fillRect(W?0:o-1,W?o-1:0,W?i.width:2,W?2:i.height)}}}function y(){if(tt&&et){var t=C();et.clearRect(0,0,t.width,t.height)}}function E(){nt=V[0].getBoundingClientRect()}function C(){return z(),nt}function w(t){R.$setViewValue(A(k(t)))}function M(){isNaN(R.$viewValue)&&(R.$viewValue=R.$modelValue),R.$viewValue=A(R.$viewValue);var t=D(R.$viewValue);r.modelValue=R.$viewValue,d.attr("aria-valuenow",R.$viewValue),x(t),j.text(R.$viewValue)}function A(t,n,r){if(e.isNumber(t))return n=e.isNumber(n)?n:X,r=e.isNumber(r)?r:J,Math.max(n,Math.min(r,t))}function k(t){if(e.isNumber(t)){var n=Math.round((t-X)/Q)*Q+X;return n=Math.round(n*Math.pow(10,Z))/Math.pow(10,Z),P&&P.fitInputWidthToTextLength&&i.debounce(function(){P.fitInputWidthToTextLength(n.toString().length)},100)(),n}}function x(t){var e=100*(t=N(t))+"%",n=K?100*(1-t)+"%":e;W?F.css("bottom",e):i.bidiProperty(F,"left","right",e),B.css(W?"height":"width",n),d.toggleClass(K?"md-max":"md-min",0===t),d.toggleClass(K?"md-min":"md-max",1===t)}function T(t){Y?S(W?t.pointer.y:t.pointer.x):_(W?t.pointer.y:t.pointer.x)}function _(t){r.$evalAsync(function(){w(I(O(t)))})}function S(t){var e=A(k(I(O(t))));x(O(t)),j.text(e)}function N(t){return Math.max(0,Math.min(t||0,1))}function O(t){var e=(t-(W?nt.top:nt.left))/(W?nt.height:nt.width);return W||"rtl"!==i.bidi()||(e=1-e),Math.max(0,Math.min(1,W?1-e:e))}function I(t){return X+(K?1-t:t)*(J-X)}function D(t){var e=(t-X)/(J-X);return K?1-e:e}a(d);var R=p[0]||{$setViewValue:function(t){this.$viewValue=t,this.$viewChangeListeners.forEach(function(t){t()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},P=p[1],H=(e.element(i.getClosest(d,"_md-slider-container",!0)),m.ngDisabled?e.bind(null,c(m.ngDisabled),r.$parent):function(){return d[0].hasAttribute("disabled")}),L=e.element(d[0].querySelector(".md-thumb")),j=e.element(d[0].querySelector(".md-thumb-text")),F=L.parent(),V=e.element(d[0].querySelector(".md-track-container")),B=e.element(d[0].querySelector(".md-track-fill")),q=e.element(d[0].querySelector(".md-track-ticks")),U=e.element(d[0].getElementsByClassName("md-slider-wrapper")),z=(e.element(d[0].getElementsByClassName("md-slider-content")),i.throttle(E,5e3)),W=e.isDefined(m.mdVertical),Y=e.isDefined(m.mdDiscrete),K=e.isDefined(m.mdInvert);e.isDefined(m.min)?m.$observe("min",f):f(0),e.isDefined(m.max)?m.$observe("max",g):g(100),e.isDefined(m.step)?m.$observe("step",v):v(1),e.isDefined(m.round)?m.$observe("round",$):$(3);e.noop;m.ngDisabled&&r.$parent.$watch(m.ngDisabled,function(){d.attr("aria-disabled",!!H())}),s.register(U,"drag",{horizontal:!W}),r.mouseActive=!1,U.on("keydown",function(t){if(!H()){var e;(W?t.keyCode===o.KEY_CODE.DOWN_ARROW:t.keyCode===o.KEY_CODE.LEFT_ARROW)?e=-Q:(W?t.keyCode===o.KEY_CODE.UP_ARROW:t.keyCode===o.KEY_CODE.RIGHT_ARROW)&&(e=Q),(e=K?-e:e)&&((t.metaKey||t.ctrlKey||t.altKey)&&(e*=4),t.preventDefault(),t.stopPropagation(),r.$evalAsync(function(){w(R.$viewValue+e)}))}}).on("mousedown",function(){b(),r.mouseActive=!0,U.removeClass("md-focused"),u(function(){r.mouseActive=!1},100)}).on("focus",function(){!1===r.mouseActive&&U.addClass("md-focused")}).on("blur",function(){U.removeClass("md-focused"),d.removeClass("md-active"),y()}).on("$md.pressdown",function(t){if(!H()){d.addClass("md-active"),d[0].focus(),E();var e=A(k(I(O(W?t.pointer.y:t.pointer.x))));r.$apply(function(){w(e),x(D(e))})}}).on("$md.pressup",function(t){if(!H()){d.removeClass("md-dragging");var e=A(k(I(O(W?t.pointer.y:t.pointer.x))));r.$apply(function(){w(e),M()})}}).on("$md.dragstart",function(t){H()||(rt=!0,t.stopPropagation(),d.addClass("md-dragging"),T(t))}).on("$md.drag",function(t){rt&&(t.stopPropagation(),T(t))}).on("$md.dragend",function(t){rt&&(t.stopPropagation(),rt=!1)}),setTimeout(h,0);var G=t.throttle(h);e.element(n).on("resize",G),r.$on("$destroy",function(){e.element(n).off("resize",G)}),R.$render=M,R.$viewChangeListeners.push(M),R.$formatters.push(A),R.$formatters.push(k);var X,J,Q,Z,tt,et,nt={};E();var rt=!1}return{scope:{},require:["?ngModel","?^mdSliderContainer"],template:'<div class="md-slider-wrapper"><div class="md-slider-content"><div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div></div></div>',compile:function(t,n){var i=e.element(t[0].getElementsByClassName("md-slider-wrapper")),o=n.tabindex||0;return i.attr("tabindex",o),(n.disabled||n.ngDisabled)&&i.attr("tabindex",-1),i.attr("role","slider"),r.expect(t,"aria-label"),d}}}t.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],e.module("material.components.slider",["material.core"]).directive("mdSlider",t).directive("mdSliderContainer",function(){return{controller:function(){},compile:function(t){var r=t.find("md-slider");if(r)return r.attr("md-vertical")!==n&&t.attr("md-vertical",""),r.attr("flex")||r.attr("flex",""),function(t,n,r,i){function o(t){n.children().attr("disabled",t),n.find("input").attr("disabled",t)}n.addClass("_md");var a=e.noop;r.disabled?o(!0):r.ngDisabled&&(a=t.$watch(r.ngDisabled,function(t){o(t)})),t.$on("$destroy",function(){a()});var s;i.fitInputWidthToTextLength=function(t){var e=n[0].querySelector("md-input-container");if(e){var r=getComputedStyle(e),i=parseInt(r.minWidth),o=2*parseInt(r.padding);s=s||parseInt(r.maxWidth);var a=Math.max(s,i+o+i/2*t);e.style.maxWidth=a+"px"}}}}}})}(),function(){function t(t,e,r,i){function o(i){function o(){h.items.forEach(s),h.items=h.items.sort(function(t,e){return t.top<e.top?-1:1});for(var t,e=m.prop("scrollTop"),n=h.items.length-1;n>=0;n--)if(e>h.items[n].top){t=h.items[n];break}l(t)}function s(t){var e=t.element[0];for(t.top=0,t.left=0,t.right=0;e&&e!==m[0];)t.top+=e.offsetTop,t.left+=e.offsetLeft,e.offsetParent&&(t.right+=e.offsetParent.offsetWidth-e.offsetWidth-e.offsetLeft),e=e.offsetParent;t.height=t.element.prop("offsetHeight");var i=r.floatingScrollbars()?"0":n;r.bidi(t.clone,"margin-left",t.left,i),r.bidi(t.clone,"margin-right",i,t.right)}function c(){var t=m.prop("scrollTop"),e=t>(c.prevScrollTop||0);if(c.prevScrollTop=t,0!==t){if(e){if(h.next&&h.next.top<=t)return void l(h.next);if(h.current&&h.next&&h.next.top-t<=h.next.height)return void d(h.current,t+(h.next.top-h.next.height-t))}if(!e){if(h.current&&h.prev&&t<h.current.top)return void l(h.prev);if(h.next&&h.current&&t>=h.next.top-h.current.height)return void d(h.current,t+(h.next.top-t-h.current.height))}h.current&&d(h.current,t)}else l(null)}function l(t){if(h.current!==t){h.current&&(d(h.current,null),u(h.current,null)),t&&u(t,"active"),h.current=t;var e=h.items.indexOf(t);h.next=h.items[e+1],h.prev=h.items[e-1],u(h.next,"next"),u(h.prev,"prev")}}function u(t,e){t&&t.state!==e&&(t.state&&(t.clone.attr("sticky-prev-state",t.state),t.element.attr("sticky-prev-state",t.state)),t.clone.attr("sticky-state",e),t.element.attr("sticky-state",e),t.state=e)}function d(e,i){e&&(null===i||i===n?e.translateY&&(e.translateY=null,e.clone.css(t.CSS.TRANSFORM,"")):(e.translateY=i,r.bidi(e.clone,t.CSS.TRANSFORM,"translate3d("+e.left+"px,"+i+"px,0)","translateY("+i+"px)")))}var m=i.$element,p=e.throttle(o);a(m),m.on("$scrollstart",p),m.on("$scroll",c);var h;return h={prev:null,current:null,next:null,items:[],add:function(t,e){e.addClass("md-sticky-clone");var n={element:t,clone:e};return h.items.push(n),r.nextTick(function(){m.prepend(n.clone)}),p(),function(){h.items.forEach(function(e,n){e.element[0]===t[0]&&(h.items.splice(n,1),e.clone.remove())}),p()}},refreshElements:o}}function a(t){function n(){+r.now()-o>a?(i=!1,t.triggerHandler("$scrollend")):(t.triggerHandler("$scroll"),e.throttle(n))}var i,o,a=200;t.on("scroll touchmove",function(){i||(i=!0,e.throttle(n),t.triggerHandler("$scrollstart")),t.triggerHandler("$scroll"),o=+r.now()})}var s=r.checkStickySupport();return function(t,e,n){var r=e.controller("mdContent");if(r)if(s)e.css({position:s,top:0,"z-index":2});else{var a=r.$element.data("$$sticky");a||(a=o(r),r.$element.data("$$sticky",a));var c=n||i(e.clone())(t),l=a.add(e,c);t.$on("$destroy",l)}}}t.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],e.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",t)}(),function(){function t(t,n,r,i,o){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader _md"> <div class="md-subheader-inner"> <div class="md-subheader-content"></div> </div></div>',link:function(a,s,c,l,u){function d(t){return e.element(t[0].querySelector(".md-subheader-content"))}r(s),s.addClass("_md"),i.prefixer().removeAttribute(s,"ng-repeat");var m=s[0].outerHTML;c.$set("role","heading"),o.expect(s,"aria-level","2"),u(a,function(t){d(s).append(t)}),s.hasClass("md-no-sticky")||u(a,function(e){var r=n('<div class="md-subheader-wrapper" aria-hidden="true">'+m+"</div>")(a);i.nextTick(function(){d(r).append(e)}),t(a,s,r)})}}}t.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],e.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",t)}(),function(){function t(t,n,r,i,o,a,s){var c=t[0];return{restrict:"E",priority:r.BEFORE_NG_ARIA,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:["^?mdInputContainer","?ngModel","?^form"],compile:function(t,l){var u=c.compile(t,l).post;return t.addClass("md-dragging"),function(t,c,l,d){function m(e){t.$apply(function(){p.$setViewValue(e),p.$render()})}d[0];var p=d[1]||n.fakeNgModel(),h=(d[2],null);null!=l.disabled?h=function(){return!0}:l.ngDisabled&&(h=i(l.ngDisabled));var f=e.element(c[0].querySelector(".md-thumb-container")),g=e.element(c[0].querySelector(".md-container")),v=e.element(c[0].querySelector(".md-label"));o(function(){c.removeClass("md-dragging")}),u(t,c,l,d),h&&t.$watch(h,function(t){c.attr("tabindex",t?-1:0)}),l.$observe("mdInvert",function(t){var e=n.parseAttributeBoolean(t);e?c.prepend(v):c.prepend(g),c.toggleClass("md-inverted",e)}),a.register(g,"drag"),g.on("$md.dragstart",function(e){h&&h(t)||(e.stopPropagation(),c.addClass("md-dragging"),$={width:f.prop("offsetWidth")})}).on("$md.drag",function(t){if($){t.stopPropagation(),t.srcEvent&&t.srcEvent.preventDefault();var e=t.pointer.distanceX/$.width,n=p.$viewValue?1+e:e;n=Math.max(0,Math.min(1,n)),f.css(r.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),$.translate=n}}).on("$md.dragend",function(e){$&&(e.stopPropagation(),c.removeClass("md-dragging"),f.css(r.CSS.TRANSFORM,""),(p.$viewValue?$.translate<.5:$.translate>.5)&&m(!p.$viewValue),$=null,t.skipToggle=!0,s(function(){t.skipToggle=!1},1))});var $}}}}t.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],e.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",t)}(),function(){function t(t){function e(t){return{restrict:"A",link:function(e,i,o){i.css("touch-action",o.mdSwipeTouchAction||"none");var a=t(o[n]);i.on(r,function(t){e.$applyAsync(function(){a(e,{$event:t})})})}}}e.$inject=["$parse"];var n="md"+t,r="$md."+t.toLowerCase();return e}e.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",t("SwipeLeft")).directive("mdSwipeRight",t("SwipeRight")).directive("mdSwipeUp",t("SwipeUp")).directive("mdSwipeDown",t("SwipeDown"))}(),e.module("material.components.tabs",["material.core","material.components.icon"]),function(){function t(t){return{restrict:"E",link:function(e,n){n.addClass("_md"),e.$on("$destroy",function(){t.destroy()})}}}function n(t){function n(t){i=t}function r(t,n,r,o){function a(t){return o("gt-xs")?"md-toast-open-"+(t.indexOf("top")>-1?"top":"bottom"):"md-toast-open-bottom"}var s="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(e,c,l){i=l.textContent||l.content;var u=!o("gt-sm");return c=r.extractElementByName(c,"md-toast",!0),l.element=c,l.onSwipe=function(t,e){var i=t.type.replace("$md.",""),o=i.replace("swipe","");"down"===o&&-1!=l.position.indexOf("top")&&!u||"up"===o&&(-1!=l.position.indexOf("bottom")||u)||("left"!==o&&"right"!==o||!u)&&(c.addClass("md-"+i),r.nextTick(n.cancel))},l.openClass=a(l.position),c.addClass(l.toastClass),l.parent.addClass(l.openClass),r.hasComputedStyle(l.parent,"position","static")&&l.parent.css("position","relative"),c.on(s,l.onSwipe),c.addClass(u?"md-bottom":l.position.split(" ").map(function(t){return"md-"+t}).join(" ")),l.parent&&l.parent.addClass("md-toast-animating"),t.enter(c,l.parent).then(function(){l.parent&&l.parent.removeClass("md-toast-animating")})},onRemove:function(e,n,i){return n.off(s,i.onSwipe),i.parent&&i.parent.addClass("md-toast-animating"),i.openClass&&i.parent.removeClass(i.openClass),(1==i.$destroy?n.remove():t.leave(n)).then(function(){i.parent&&i.parent.removeClass("md-toast-animating"),r.hasComputedStyle(i.parent,"position","static")&&i.parent.css("position","")})},toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(t,n){if(n.autoWrap&&t&&!/md-toast-content/g.test(t)){var r=document.createElement("md-template");r.innerHTML=t;for(var i=0;i<r.children.length;i++)if("MD-TOAST"===r.children[i].nodeName){var o=e.element('<div class="md-toast-content">');o.append(e.element(r.children[i].childNodes)),r.children[i].appendChild(o[0])}return r.innerHTML}return t||""}}}r.$inject=["$animate","$mdToast","$mdUtil","$mdMedia"];var i;return t("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:r}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","highlightAction","highlightClass","theme","parent"],options:["$mdToast","$mdTheming",function(t,e){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}"> <div class="md-toast-content"> <span class="md-toast-text" role="alert" aria-relevant="all" aria-atomic="true"> {{ toast.content }} </span> <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="highlightClasses"> {{ toast.action }} </md-button> </div></md-toast>',controller:["$scope",function(e){var n=this;n.highlightAction&&(e.highlightClasses=["md-highlight",n.highlightClass]),e.$watch(function(){return i},function(){n.content=i}),this.resolve=function(){t.hide("ok")}}],theme:e.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",n).addMethod("updateContent",n)}t.$inject=["$mdToast"],n.$inject=["$$interimElementProvider"],e.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",t).provider("$mdToast",n)}(),function(){function t(t,n,r,i,o){var a=e.bind(null,r.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(s,c,l){c.addClass("_md"),i(c),r.nextTick(function(){c.addClass("_md-toolbar-transitions")},!1),e.isDefined(l.mdScrollShrink)&&function(){function i(t,e){e&&c.parent()[0]===e.parent()[0]&&(h&&h.off("scroll",b),h=e,f=d())}function u(t){var e=t?t.target.scrollTop:v;y(),g=Math.min(p/$,Math.max(0,g+e-v)),c.css(n.CSS.TRANSFORM,a([-g*$])),h.css(n.CSS.TRANSFORM,a([(p-g)*$])),v=e,r.nextTick(function(){var t=c.hasClass("md-whiteframe-z1");t&&!g?o.removeClass(c,"md-whiteframe-z1"):!t&&g&&o.addClass(c,"md-whiteframe-z1")})}function d(){return h?(h.on("scroll",b),h.attr("scroll-shrink","true"),r.nextTick(m,!1),function(){h.off("scroll",b),h.attr("scroll-shrink","false"),m()}):e.noop}function m(){var t=-(p=c.prop("offsetHeight"))*$+"px";h.css({"margin-top":t,"margin-bottom":t}),u()}var p,h,f=e.noop,g=0,v=0,$=l.mdShrinkSpeedFactor||.5,b=t.throttle(u),y=r.debounce(m,5e3);s.$on("$mdContentLoaded",i),l.$observe("mdScrollShrink",function(t){var e=c.parent().find("md-content");!h&&e.length&&i(0,e),!1===(t=s.$eval(t))?f():f=d()}),l.ngShow&&s.$watch(l.ngShow,m),l.ngHide&&s.$watch(l.ngHide,m),s.$on("$destroy",f)}()}}}t.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],e.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",t)}(),function(){function n(t,n,r,i,o,a,s,c){var l="focus touchstart mouseenter",u="blur touchcancel mouseleave",d=100,m=0,p="bottom",h={top:{x:s.xPosition.CENTER,y:s.yPosition.ABOVE},right:{x:s.xPosition.OFFSET_END,y:s.yPosition.CENTER},bottom:{x:s.xPosition.CENTER,y:s.yPosition.BELOW},left:{x:s.xPosition.OFFSET_START,y:s.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:function(f,g,v){function $(){f.mdZIndex=f.mdZIndex||d,f.mdDelay=f.mdDelay||m,h[f.mdDirection]||(f.mdDirection=p)}function b(t){var e=t||o(g.text().trim())(f.$parent);(!O.attr("aria-label")&&!O.attr("aria-labelledby")||O.attr("md-labeled-by-tooltip"))&&(O.attr("aria-label",e),O.attr("md-labeled-by-tooltip")||O.attr("md-labeled-by-tooltip",N))}function y(){$(),T&&T.panelEl&&T.panelEl.removeClass(A),A="md-origin-"+f.mdDirection,k=h[f.mdDirection],x=s.newPanelPosition().relativeTo(O).addPanelPosition(k.x,k.y),T&&T.panelEl&&(T.panelEl.addClass(A),T.updatePosition(x))}function E(e){E.queued&&E.value===!!e||!E.queued&&f.mdVisible===!!e||(E.value=!!e,E.queued||(e?(E.queued=!0,S=t(function(){f.mdVisible=E.value,E.queued=!1,S=null,f.visibleWatcher||C(f.mdVisible)},f.mdDelay)):a.nextTick(function(){f.mdVisible=!1,f.visibleWatcher||C(!1)})))}function C(t){t?w():M()}function w(){if(!g[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!T){var t=e.element(document.body),n=s.newPanelAnimation().openFrom(O).closeTo(O).withAnimation({open:"md-show",close:"md-hide"}),r={id:N,attachTo:t,contentElement:g,propagateContainerEvents:!0,panelClass:"md-tooltip "+A,animation:n,position:x,zIndex:f.mdZIndex,focusOnOpen:!1};T=s.create(r)}T.open().then(function(){T.panelEl.attr("role","tooltip")})}function M(){T&&T.close()}var A,k,x,T,_,S,N="md-tooltip-"+a.nextUid(),O=a.getParentWithPointerEvents(g),I=r.throttle(y),D=!1,R=null;$(),b(),g.detach(),y(),function(){function e(t){return t.some(function(t){return"disabled"===t.attributeName&&O[0].disabled}),!1}function r(){E(!1)}function o(){R=document.activeElement===O[0]}function s(t){"focus"===t.type&&R?R=!1:f.mdVisible||(O.on(u,d),E(!0),"touchstart"===t.type&&O.one("touchend",function(){a.nextTick(function(){i.one("touchend",d)},!1)}))}function d(){((_=f.hasOwnProperty("mdAutohide")?f.mdAutohide:v.hasOwnProperty("mdAutohide"))||D||i[0].activeElement!==O[0])&&(S&&(t.cancel(S),E.queued=!1,S=null),O.off(u,d),O.triggerHandler("blur"),E(!1)),D=!1}function m(){D=!0}if(O[0]&&"MutationObserver"in n){var p=new MutationObserver(function(t){e(t)&&a.nextTick(function(){E(!1)})});p.observe(O[0],{attributes:!0})}R=!1,c.register("scroll",r,!0),c.register("blur",o),c.register("resize",I),f.$on("$destroy",function(){c.deregister("scroll",r,!0),c.deregister("blur",o),c.deregister("resize",I),O.off(l,s).off(u,d).off("mousedown",m),d(),p&&p.disconnect()}),O.on("mousedown",m),O.on(l,s)}(),function(){function t(){f.$destroy()}if(g[0]&&"MutationObserver"in n){var e=new MutationObserver(function(t){t.forEach(function(t){"md-visible"!==t.attributeName||f.visibleWatcher||(f.visibleWatcher=f.$watch("mdVisible",C))})});e.observe(g[0],{attributes:!0}),v.hasOwnProperty("mdVisible")&&(f.visibleWatcher=f.$watch("mdVisible",C))}else f.visibleWatcher=f.$watch("mdVisible",C);f.$watch("mdDirection",y),g.one("$destroy",t),O.one("$destroy",t),f.$on("$destroy",function(){E(!1),T&&T.destroy(),e&&e.disconnect(),g.remove()}),g.text().indexOf(o.startSymbol())>-1&&f.$watch(function(){return g.text().trim()},b)}()}}}n.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],e.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",n).service("$$mdTooltipRegistry",function(){function n(t){r[t.type]&&r[t.type].forEach(function(e){e.call(this,t)},this)}var r={},i=e.element(t);return{register:function(e,o,a){var s=r[e]=r[e]||[];s.length||(a?t.addEventListener(e,n,!0):i.on(e,n)),-1===s.indexOf(o)&&s.push(o)},deregister:function(e,o,a){var s=r[e],c=s?s.indexOf(o):-1;c>-1&&(s.splice(c,1),0===s.length&&(a?t.removeEventListener(e,n,!0):i.off(e,n)))}}})}(),function(){function t(t){t.addClass("md-truncate")}t.$inject=["$element"],e.module("material.components.truncate",["material.core"]).directive("mdTruncate",function(){return{restrict:"AE",controller:t,controllerAs:"$ctrl",bindToController:!0}})}(),function(){function t(t){return'<div class="md-virtual-repeat-scroller"><div class="md-virtual-repeat-sizer"></div><div class="md-virtual-repeat-offsetter">'+t[0].innerHTML+"</div></div>"}function n(t,n,r,i,o,a,s,c,l){this.$rootScope=o,this.$scope=s,this.$element=c,this.$attrs=l,this.size=0,this.scrollSize=0,this.scrollOffset=0,this.horizontal=this.$attrs.hasOwnProperty("mdOrientHorizontal"),this.repeater=null,this.autoShrink=this.$attrs.hasOwnProperty("mdAutoShrink"),this.autoShrinkMin=parseInt(this.$attrs.mdAutoShrinkMin,10)||0,this.originalSize=null,this.offsetSize=parseInt(this.$attrs.mdOffsetSize,10)||0,this.oldElementSize=null,this.maxElementPixels=r.ELEMENT_MAX_PIXELS,this.$attrs.mdTopIndex?(this.bindTopIndex=i(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),e.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,e.bind(this,function(t){t!==this.topIndex&&this.scrollToIndex(t)}))):this.topIndex=0,this.scroller=c[0].querySelector(".md-virtual-repeat-scroller"),this.sizer=this.scroller.querySelector(".md-virtual-repeat-sizer"),this.offsetter=this.scroller.querySelector(".md-virtual-repeat-offsetter");var u=e.bind(this,this.updateSize);t(e.bind(this,function(){u();var t=n.debounce(u,10,null,!1),r=e.element(a);this.size||t(),r.on("resize",t),s.$on("$destroy",function(){r.off("resize",t)}),s.$emit("$md-resize-enable"),s.$on("$md-resize",u)}))}function r(t){return{controller:i,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(e,n){var r=n.mdVirtualRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),i=r[1],o=t(r[2]),a=n.mdExtraName&&t(n.mdExtraName);return function(t,e,n,r,s){r[0].link_(r[1],s,i,o,a)}}}}function i(t,n,r,i,o,a,s,c){this.$scope=t,this.$element=n,this.$attrs=r,this.$browser=i,this.$document=o,this.$rootScope=a,this.$$rAF=s,this.onDemand=c.parseAttributeBoolean(r.mdOnDemand),this.browserCheckUrlChange=i.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=t.$eval(r.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=e.noop,this.blocks={},this.pooledBlocks=[],t.$on("$destroy",e.bind(this,this.cleanupBlocks_))}function o(t){if(!e.isFunction(t.getItemAtIndex)||!e.isFunction(t.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength() ");this.model=t}n.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],i.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],r.$inject=["$parse"],e.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",function(){return{controller:n,template:t,compile:function(t,e){t.addClass("md-virtual-repeat-container").addClass(e.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}).directive("mdVirtualRepeat",r);n.prototype.register=function(t){this.repeater=t,e.element(this.scroller).on("scroll wheel touchmove touchend",e.bind(this,this.handleScroll_))},n.prototype.isHorizontal=function(){return this.horizontal},n.prototype.getSize=function(){return this.size},n.prototype.setSize_=function(t){var e=this.getDimensionName_();this.size=t,this.$element[0].style[e]=t+"px"},n.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},n.prototype.updateSize=function(){this.originalSize||(this.size=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight,this.handleScroll_(),this.repeater&&this.repeater.containerUpdated())},n.prototype.getScrollSize=function(){return this.scrollSize},n.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},n.prototype.sizeScroller_=function(t){var e=this.getDimensionName_(),n=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",t<this.maxElementPixels)this.sizer.style[e]=t+"px";else{this.sizer.style[e]="auto",this.sizer.style[n]="auto";var r=Math.floor(t/this.maxElementPixels),i=document.createElement("div");i.style[e]=this.maxElementPixels+"px",i.style[n]="1px";for(var o=0;o<r;o++)this.sizer.appendChild(i.cloneNode(!1));i.style[e]=t-r*this.maxElementPixels+"px",this.sizer.appendChild(i)}},n.prototype.autoShrink_=function(t){var e=Math.max(t,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&e!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var n=this.originalSize||this.size;if(!n||e<n)this.originalSize||(this.originalSize=this.size),this.setSize_(e);else if(null!==this.originalSize){this.unsetSize_();var r=this.originalSize;this.originalSize=null,r||this.updateSize(),this.setSize_(r||this.size)}this.repeater.containerUpdated()}},n.prototype.setScrollSize=function(t){var e=t+this.offsetSize;this.scrollSize!==e&&(this.sizeScroller_(e),this.autoShrink_(e),this.scrollSize=e)},n.prototype.getScrollOffset=function(){return this.scrollOffset},n.prototype.scrollTo=function(t){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=t,this.handleScroll_()},n.prototype.scrollToIndex=function(t){var e=this.repeater.getItemSize(),n=this.repeater.itemsLength;t>n&&(t=n-1),this.scrollTo(e*t)},n.prototype.resetScroll=function(){this.scrollTo(0)},n.prototype.handleScroll_=function(){var t="rtl"!=document.dir&&"rtl"!=document.body.dir;t||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var e=this.isHorizontal()?t?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(e===this.scrollOffset||e>this.scrollSize-this.size)){var n=this.repeater.getItemSize();if(n){var r=Math.max(0,Math.floor(e/n)-3),i=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||t?r*n:-r*n)+"px)";if(this.scrollOffset=e,this.offsetter.style.webkitTransform=i,this.offsetter.style.transform=i,this.bindTopIndex){var o=Math.floor(e/n);o!==this.topIndex&&o<this.repeater.getItemCount()&&(this.topIndex=o,this.bindTopIndex.assign(this.$scope,o),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},i.prototype.link_=function(t,n,r,i,o){this.container=t,this.transclude=n,this.repeatName=r,this.rawRepeatListExpression=i,this.extraName=o,this.sized=!1,this.repeatListExpression=e.bind(this,this.repeatListExpression_),this.container.register(this)},i.prototype.cleanupBlocks_=function(){e.forEach(this.pooledBlocks,function(t){t.element.remove()})},i.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var t=this.getBlock_(0);t.element[0].parentNode||this.parentNode.appendChild(t.element[0]),this.itemSize=t.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=t,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},i.prototype.repeatListExpression_=function(t){var e=this.rawRepeatListExpression(t);if(this.onDemand&&e){var n=new o(e);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return e},i.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==e.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,e.bind(this,function(t){t&&t.length&&this.readItemSize_()})),void(this.$rootScope.$$phase||this.$scope.$digest());this.sized||(this.items=this.repeatListExpression(this.$scope)),this.sized||(this.unwatchItemSize_(),this.sized=!0,this.$scope.$watchCollection(this.repeatListExpression,e.bind(this,function(t,e){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(t,e)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof o&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},i.prototype.getItemSize=function(){return this.itemSize},i.prototype.getItemCount=function(){return this.itemsLength},i.prototype.virtualRepeatUpdate_=function(t,n){this.isVirtualRepeatUpdating_=!0;var r=t&&t.length||0,i=!1;if(this.items&&r<this.items.length&&0!==this.container.getScrollOffset()){this.items=t;var o=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(o)}r!==this.itemsLength&&(i=!0,this.itemsLength=r),this.items=t,(t!==n||i)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,i&&this.container.setScrollSize(r*this.itemSize);var a,s=!1;this.isFirstRender&&(s=!0,this.isFirstRender=!1,a=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex,this.container.scrollToIndex(a)),Object.keys(this.blocks).forEach(function(t){var e=parseInt(t,10);(e<this.newStartIndex||e>=this.newEndIndex)&&this.poolBlock_(e)},this),this.$browser.$$checkUrlChange=e.noop;var c,l,u=[],d=[];for(c=this.newStartIndex;c<this.newEndIndex&&null==this.blocks[c];c++)l=this.getBlock_(c),this.updateBlock_(l,c),u.push(l);for(;null!=this.blocks[c];c++)this.updateBlock_(this.blocks[c],c);for(var m=c-1;c<this.newEndIndex;c++)l=this.getBlock_(c),this.updateBlock_(l,c),d.push(l);u.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(u),this.$element[0].nextSibling),d.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(d),this.blocks[m]&&this.blocks[m].element[0].nextSibling),s&&this.container.scrollToIndex(a),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isVirtualRepeatUpdating_=!1},i.prototype.getBlock_=function(t){if(this.pooledBlocks.length)return this.pooledBlocks.pop();var n;return this.transclude(e.bind(this,function(e,r){n={element:e,new:!0,scope:r},this.updateScope_(r,t),this.parentNode.appendChild(e[0])})),n},i.prototype.updateBlock_=function(t,e){this.blocks[e]=t,(t.new||t.scope.$index!==e||t.scope[this.repeatName]!==this.items[e])&&(t.new=!1,this.updateScope_(t.scope,e),this.$rootScope.$$phase||t.scope.$digest())},i.prototype.updateScope_=function(t,e){t.$index=e,t[this.repeatName]=this.items&&this.items[e],this.extraName&&(t[this.extraName(this.$scope)]=this.items[e])},i.prototype.poolBlock_=function(t){this.pooledBlocks.push(this.blocks[t]),this.parentNode.removeChild(this.blocks[t].element[0]),delete this.blocks[t]},i.prototype.domFragmentFromBlocks_=function(t){var e=this.$document[0].createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element[0])}),e},i.prototype.updateIndexes_=function(){var t=this.items?this.items.length:0,e=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(t-e,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+e+3,this.newEndIndex=Math.min(t,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},o.prototype.$$includeIndexes=function(t,e){for(var n=t;n<e;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()}}(),function(){function t(t){var e=-1,n=1,r=24,i=4;return{link:function(o,a,s){var c="";s.$observe("mdWhiteframe",function(o){(o=parseInt(o,10)||i)!=e&&(o>r||o<n)&&(t.warn("md-whiteframe attribute value is invalid. It should be a number between "+n+" and "+r,a[0]),o=i);var l=o==e?"":"md-whiteframe-"+o+"dp";s.$updateClass(l,c),c=l})}}}t.$inject=["$log"],e.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",t)}(),function(){function t(t,s,c,l,u,d,m,p,h,f,g,v){function $(){t.requireMatch&&bt&&bt.$setValidity("md-require-match",!!t.selectedItem||!t.searchText)}function b(){if(!mt)return c.nextTick(b,!1,t);var e,n=(t.dropdownItems||i)*r,l=mt.wrap.getBoundingClientRect(),u=mt.snap.getBoundingClientRect(),d=mt.root.getBoundingClientRect(),m=u.bottom-d.top,p=d.bottom-u.top,f=l.left-d.left,g=l.width,v=function(){var t=0,e=s.find("md-input-container");if(e.length){var n=e.find("input");t=e.prop("offsetHeight"),t-=n.prop("offsetTop"),t-=n.prop("offsetHeight"),t+=e.prop("offsetTop")}return t}(),$=t.dropdownPosition;if($||($=m>p&&d.height-m-o<n?"top":"bottom"),h.mdFloatingLabel&&(f+=a,g-=2*a),e={left:f+"px",minWidth:g+"px",maxWidth:Math.max(l.right-d.left,d.right-l.left)-o+"px"},"top"===$)e.top="auto",e.bottom=p+"px",e.maxHeight=Math.min(n,l.top-d.top-o)+"px";else{var y=d.bottom-l.bottom-o+c.getViewportTop();e.top=m-v+"px",e.bottom="auto",e.maxHeight=Math.min(n,y)+"px"}mt.$.scrollContainer.css(e),c.nextTick(function(){var t=mt.scrollContainer.getBoundingClientRect(),e={};t.right>d.right-o&&(e.left=l.right-t.width+"px"),mt.$.scrollContainer.css(e)},!1)}function y(){mt.$.root.length&&(u(mt.$.scrollContainer),mt.$.scrollContainer.detach(),mt.$.root.append(mt.$.scrollContainer),m.pin&&m.pin(mt.$.scrollContainer,p))}function E(){mt.input.focus()}function C(){var n=parseInt(t.delay,10)||0;h.$observe("disabled",function(t){lt.isDisabled=c.parseAttributeBoolean(t,!1)}),h.$observe("required",function(t){lt.isRequired=c.parseAttributeBoolean(t,!1)}),h.$observe("readonly",function(t){lt.isReadonly=c.parseAttributeBoolean(t,!1)}),t.$watch("searchText",n?c.debounce(I,n):I),t.$watch("selectedItem",_),e.element(d).on("resize",yt),t.$on("$destroy",w)}function w(){if(lt.hidden||c.enableScrolling(),e.element(d).off("resize",yt),mt){var t=["ul","scroller","scrollContainer","input"];e.forEach(t,function(t){mt.$[t].remove()})}}function M(){var t=A();(mt={main:s[0],scrollContainer:s[0].querySelector(".md-virtual-repeat-container"),scroller:s[0].querySelector(".md-virtual-repeat-scroller"),ul:s.find("ul")[0],input:s.find("input")[0],wrap:t.wrap,snap:t.snap,root:document.body}).li=mt.ul.getElementsByTagName("li"),mt.$=k(mt),bt=mt.$.input.controller("ngModel")}function A(){var t,n;for(t=s;t.length&&(n=t.attr("md-autocomplete-snap"),!e.isDefined(n));t=t.parent());if(t.length)return{snap:t[0],wrap:"width"===n.toLowerCase()?t[0]:s.find("md-autocomplete-wrap")[0]};var r=s.find("md-autocomplete-wrap")[0];return{snap:r,wrap:r}}function k(t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e.element(t[r]));return n}function x(t){function e(t){t.preventDefault()}return t.on("wheel",e),t.on("touchmove",e),function(){t.off("wheel",e),t.off("touchmove",e)}}function T(){gt||lt.hidden||mt.input.focus(),ht=!1,lt.hidden=F()}function _(n,r){$(),n?P(n).then(function(e){t.searchText=e,O(n,r)}):r&&t.searchText&&P(r).then(function(n){e.isString(t.searchText)&&n.toString().toLowerCase()===t.searchText.toLowerCase()&&(t.searchText="")}),n!==r&&S()}function S(){e.isFunction(t.itemChange)&&t.itemChange(H(t.selectedItem))}function N(){e.isFunction(t.textChange)&&t.textChange()}function O(t,e){ft.forEach(function(n){n(t,e)})}function I(e,n){lt.index=L(),e!==n&&($(),P(t.selectedItem).then(function(r){e!==r&&(t.selectedItem=null,e!==n&&N(),K()?ot():(lt.matches=[],j(!1),Z(!1,Et.Count)))}))}function D(t){t&&(ht=!1,gt=!1),mt.input.blur()}function R(){return e.isNumber(t.minLength)?t.minLength:1}function P(n){return f.when(function(e){return e&&t.itemText?t.itemText(H(e)):null}(n)||n).then(function(t){return t&&!e.isString(t)&&g.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),t})}function H(t){if(!t)return n;var e={};return lt.itemName&&(e[lt.itemName]=t),e}function L(){return t.autoselect?0:-1}function j(t){lt.loading!=t&&(lt.loading=t),lt.hidden=F()}function F(){return!V()||!U()}function V(){return!(lt.loading&&!z())&&(!W()&&!!gt)}function B(){return q("blur")||!lt.hidden||lt.loading||q("clear")&&t.searchText}function q(e){return!t.escapeOptions||-1!==t.escapeOptions.toLowerCase().indexOf(e)}function U(){return K()&&z()||it()}function z(){return!!lt.matches.length}function W(){return!!lt.scope.selectedItem}function Y(){return P(lt.matches[lt.index])}function K(){return(t.searchText||"").length>=R()}function G(e){c.nextTick(function(){P(lt.matches[e]).then(function(t){var e=mt.$.input.controller("ngModel");e.$setViewValue(t),e.$render()}).finally(function(){t.selectedItem=lt.matches[e],j(!1)})},!1)}function X(){lt.index=0,lt.matches=[]}function J(){j(!0),t.searchText="";var e=document.createEvent("CustomEvent");e.initCustomEvent("change",!0,!0,{value:""}),mt.input.dispatchEvent(e),mt.input.blur(),t.searchText="",mt.input.focus()}function Q(n){function r(e){pt[o]=e,(n||"")===(t.searchText||"")&&at(e)}var i=t.$parent.$eval(dt),o=n.toLowerCase(),a=e.isArray(i),s=!!i.then;a?r(i):s&&function(e){e&&(e=f.when(e),vt++,j(!0),c.nextTick(function(){e.then(r).finally(function(){0==--vt&&j(!1)})},!0,t))}(i)}function Z(t,e){var n=t?"polite":"assertive",r=[];e&Et.Selected&&-1!==lt.index&&r.push(Y()),e&Et.Count&&r.push(f.resolve(tt())),f.all(r).then(function(t){v.announce(t.join(" "),n)})}function tt(){switch(lt.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+lt.matches.length+" matches available."}}function et(){if(mt.li[0]){var t=mt.li[0].offsetHeight,e=t*lt.index,n=e+t,r=mt.scroller.clientHeight,i=mt.scroller.scrollTop;e<i?rt(e):n>i+r&&rt(n-r)}}function nt(){return 0!==vt}function rt(t){mt.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(t)}function it(){var t=(lt.scope.searchText||"").length;return lt.hasNotFound&&!z()&&(!lt.loading||nt())&&t>=R()&&(gt||ht)&&!W()}function ot(){var e=t.searchText||"",n=e.toLowerCase();!t.noCache&&pt[n]?at(pt[n]):Q(e),lt.hidden=F()}function at(e){lt.matches=e,lt.hidden=F(),lt.loading&&j(!1),t.selectOnMatch&&st(),b(),Z(!0,Et.Count)}function st(){var e=t.searchText,n=lt.matches,r=n[0];1===n.length&&P(r).then(function(n){var r=e==n;t.matchInsensitive&&!r&&(r=e.toLowerCase()==n.toLowerCase()),r&&G(0)})}function ct(e,n){h[e]&&t.$parent.$eval(h[e],n||{})}var lt=this,ut=t.itemsExpr.split(/ in /i),dt=ut[1],mt=null,pt={},ht=!1,ft=[],gt=!1,vt=0,$t=null,bt=null,yt=c.debounce(function(){lt.hidden||b()});!function(t,e,n){Object.defineProperty(lt,t,{get:function(){return n},set:function(t){var r=n;n=t,e(t,r)}})}("hidden",function(t,n){!t&&n?(b(),Z(!0,Et.Count|Et.Selected),mt&&(c.disableScrollAround(mt.ul),$t=x(e.element(mt.wrap)))):t&&!n&&(c.enableScrolling(),$t&&($t(),$t=null))},!0),lt.scope=t,lt.parent=t.$parent,lt.itemName=ut[0],lt.matches=[],lt.loading=!1,lt.hidden=!0,lt.index=null,lt.id=c.nextUid(),lt.isDisabled=null,lt.isRequired=null,lt.isReadonly=null,lt.hasNotFound=!1,lt.keydown=function(e){switch(e.keyCode){case l.KEY_CODE.DOWN_ARROW:if(lt.loading)return;e.stopPropagation(),e.preventDefault(),lt.index=Math.min(lt.index+1,lt.matches.length-1),et(),Z(!1,Et.Selected);break;case l.KEY_CODE.UP_ARROW:if(lt.loading)return;e.stopPropagation(),e.preventDefault(),lt.index=lt.index<0?lt.matches.length-1:Math.max(0,lt.index-1),et(),Z(!1,Et.Selected);break;case l.KEY_CODE.TAB:if(T(),lt.hidden||lt.loading||lt.index<0||lt.matches.length<1)return;G(lt.index);break;case l.KEY_CODE.ENTER:if(lt.hidden||lt.loading||lt.index<0||lt.matches.length<1)return;if(W())return;e.stopPropagation(),e.preventDefault(),G(lt.index);break;case l.KEY_CODE.ESCAPE:if(e.preventDefault(),!B())return;e.stopPropagation(),X(),t.searchText&&q("clear")&&J(),lt.hidden=!0,q("blur")&&D(!0)}},lt.blur=function(t){gt=!1,ht||(lt.hidden=F(),ct("ngBlur",{$event:t}))},lt.focus=function(t){gt=!0,V()&&K()&&ot(),lt.hidden=F(),ct("ngFocus",{$event:t})},lt.clear=function(){X(),J()},lt.select=G,lt.listEnter=function(){ht=!0},lt.listLeave=T,lt.mouseUp=function(){mt.input.focus()},lt.getCurrentDisplayValue=Y,lt.registerSelectedItemWatcher=function(t){-1==ft.indexOf(t)&&ft.push(t)},lt.unregisterSelectedItemWatcher=function(t){var e=ft.indexOf(t);-1!=e&&ft.splice(e,1)},lt.notFoundVisible=it,lt.loadingIsVisible=function(){return lt.loading&&!W()},lt.positionDropdown=b;var Et={Count:1,Selected:2};return c.initOptionalProperties(t,h,{searchText:"",selectedItem:null,clearButton:!1}),u(s),C(),void c.nextTick(function(){M(),y(),t.autofocus&&s.on("focus",E)})}t.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],e.module("material.components.autocomplete").controller("MdAutocompleteCtrl",t);var r=48,i=5,o=8,a=2}(),function(){function t(t){return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",noCache:"=?mdNoCache",requireMatch:"=?mdRequireMatch",selectOnMatch:"=?mdSelectOnMatch",matchInsensitive:"=?mdMatchCaseInsensitive",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",inputId:"@?mdInputId",escapeOptions:"@?mdEscapeOptions",dropdownItems:"=?mdDropdownItems",dropdownPosition:"@?mdDropdownPosition",clearButton:"=?mdClearButton"},compile:function(t,n){var r=["md-select-on-focus","md-no-asterisk","ng-trim","ng-pattern"],i=t.find("input");return r.forEach(function(t){var e=n[n.$normalize(t)];null!==e&&i.attr(t,e)}),function(t,n,r,i){i.hasNotFound=!!n.attr("md-has-not-found"),e.isDefined(r.mdClearButton)||t.floatingLabel||(t.clearButton=!0)}},template:function(e,n){var r=function(){var t=e.find("md-not-found").detach(),n=t.length?t.html():"";return n?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()" md-autocomplete-parent-scope>'+n+"</li>":""}(),i=function(){var t=e.find("md-item-template").detach(),n=t.length?t.html():e.html();return t.length||e.empty(),"<md-autocomplete-parent-scope md-autocomplete-replace>"+n+"</md-autocomplete-parent-scope>"}(),o=e.html(),a=n.tabindex;return r&&e.attr("md-has-not-found",!0),e.attr("tabindex","-1")," <md-autocomplete-wrap ng-class=\"{ 'md-whiteframe-z1': !floatingLabel, 'md-menu-showing': !$mdAutocompleteCtrl.hidden, 'md-show-clear-button': !!clearButton }\"> "+(n.mdFloatingLabel?' <md-input-container ng-if="floatingLabel"> <label>{{floatingLabel}}</label> <input type="search" '+(null!=a?'tabindex="'+a+'"':"")+' id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" autocomplete="off" ng-required="$mdAutocompleteCtrl.isRequired" ng-readonly="$mdAutocompleteCtrl.isReadonly" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-disabled="$mdAutocompleteCtrl.isDisabled" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-model-options="{ allowInvalid: true }" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{floatingLabel}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/> <div md-autocomplete-parent-scope md-autocomplete-replace>'+o+"</div> </md-input-container>":' <input type="search" '+(null!=a?'tabindex="'+a+'"':"")+' id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" ng-if="!floatingLabel" autocomplete="off" ng-required="$mdAutocompleteCtrl.isRequired" ng-disabled="$mdAutocompleteCtrl.isDisabled" ng-readonly="$mdAutocompleteCtrl.isReadonly" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" placeholder="{{placeholder}}" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{placeholder}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>')+' <button type="button" aria-label="Clear Input" tabindex="-1" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText && !$mdAutocompleteCtrl.isDisabled" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+t.mdClose+'"></md-icon></button> <md-progress-linear class="'+(n.mdFloatingLabel?"md-inline":"")+'" ng-if="$mdAutocompleteCtrl.loadingIsVisible()" md-mode="indeterminate"></md-progress-linear> <md-virtual-repeat-container md-auto-shrink md-auto-shrink-min="1" ng-mouseenter="$mdAutocompleteCtrl.listEnter()" ng-mouseleave="$mdAutocompleteCtrl.listLeave()" ng-mouseup="$mdAutocompleteCtrl.mouseUp()" ng-hide="$mdAutocompleteCtrl.hidden" class="md-autocomplete-suggestions-container md-whiteframe-z1" ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }" role="presentation"> <ul class="md-autocomplete-suggestions" ng-class="::menuClass" id="ul-{{$mdAutocompleteCtrl.id}}"> <li md-virtual-repeat="item in $mdAutocompleteCtrl.matches" ng-class="{ selected: $index === $mdAutocompleteCtrl.index }" ng-click="$mdAutocompleteCtrl.select($index)" md-extra-name="$mdAutocompleteCtrl.itemName"> '+i+" </li>"+r+" </ul> </md-virtual-repeat-container> </md-autocomplete-wrap>"}}}t.$inject=["$$mdSvgRegistry"],e.module("material.components.autocomplete").directive("mdAutocomplete",t)}(),function(){function t(t,e){return{restrict:"AE",compile:function(t,n,r){return function(t,n,i){function o(n,r){s[r]=t[n],t.$watch(n,function(t){e.nextTick(function(){s[r]=t})})}var a=t.$mdAutocompleteCtrl,s=a.parent.$new(),c=a.itemName;o("$index","$index"),o("item",c),function(){var e=!1,n=!1;t.$watch(function(){n||e||(e=!0,t.$$postDigest(function(){n||s.$digest(),e=n=!1}))}),s.$watch(function(){n=!0})}(),r(s,function(t){n.after(t)})}},terminal:!0,transclude:"element"}}t.$inject=["$compile","$mdUtil"],e.module("material.components.autocomplete").directive("mdAutocompleteParentScope",t)}(),function(){function t(t,e,n){this.$scope=t,this.$element=e,this.$attrs=n,this.regex=null}t.$inject=["$scope","$element","$attrs"],e.module("material.components.autocomplete").controller("MdHighlightCtrl",t),t.prototype.init=function(t,e){this.flags=this.$attrs.mdHighlightFlags||"",this.unregisterFn=this.$scope.$watch(function(n){return{term:t(n),contentText:e(n)}}.bind(this),this.onRender.bind(this),!0),this.$element.on("$destroy",this.unregisterFn)},t.prototype.onRender=function(t,e){var n=t.contentText;null!==this.regex&&t.term===e.term||(this.regex=this.createRegex(t.term,this.flags)),t.term?this.applyRegex(n):this.$element.text(n)},t.prototype.applyRegex=function(t){var n=this.resolveTokens(t);this.$element.empty(),n.forEach(function(t){if(t.isMatch){var n=e.element('<span class="highlight">').text(t.text);this.$element.append(n)}else this.$element.append(document.createTextNode(t))}.bind(this))},t.prototype.resolveTokens=function(t){function e(e,r){var i=t.slice(e,r);i&&n.push(i)}var n=[],r=0;return t.replace(this.regex,function(t,i){e(r,i),n.push({text:t,isMatch:!0}),r=i+t.length}),e(r),n},t.prototype.createRegex=function(t,e){var n="",r="",i=this.sanitizeRegex(t);return e.indexOf("^")>=0&&(n="^"),e.indexOf("$")>=0&&(r="$"),new RegExp(n+i+r,e.replace(/[$\^]/g,""))},t.prototype.sanitizeRegex=function(t){return t&&t.toString().replace(/[\\\^\$\*\+\?\.\(\)\|\{}\[\]]/g,"\\$&")}}(),function(){function t(t,e){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(n,r){var i=e(r.mdHighlightText),o=t(n.html());return function(t,e,n,r){r.init(i,o)}}}}t.$inject=["$interpolate","$parse"],e.module("material.components.autocomplete").directive("mdHighlightText",t)}(),function(){function r(t,e,r,i,o){this.$scope=t,this.$element=e,this.$mdConstant=r,this.$timeout=i,this.$mdUtil=o,this.isEditting=!1,this.parentController=n,this.enableChipEdit=!1}r.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],e.module("material.components.chips").controller("MdChipCtrl",r),r.prototype.init=function(t){this.parentController=t,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on("keydown",this.chipKeyDown.bind(this)),this.$element.on("mousedown",this.chipMouseDown.bind(this)),this.getChipContent().addClass("_md-chip-content-edit-is-enabled"))},r.prototype.getChipContent=function(){var t=this.$element[0].getElementsByClassName("md-chip-content");return e.element(t[0])},r.prototype.getContentElement=function(){return e.element(this.getChipContent().children()[0])},r.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},r.prototype.goOutOfEditMode=function(){if(this.isEditting){this.isEditting=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var t=this.getChipIndex();this.getContentElement().text()?(this.parentController.updateChipContents(t,this.getContentElement().text()),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===t&&this.parentController.focusChip(t)}.bind(this))):this.parentController.removeChipAndFocusInput(t)}},r.prototype.selectNodeContents=function(e){var n,r;document.body.createTextRange?((n=document.body.createTextRange()).moveToElementText(e),n.select()):t.getSelection&&(r=t.getSelection(),(n=document.createRange()).selectNodeContents(e),r.removeAllRanges(),r.addRange(n))},r.prototype.goInEditMode=function(){this.isEditting=!0,this.$element.addClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="true",this.getChipContent().on("blur",function(){this.goOutOfEditMode()}.bind(this)),this.selectNodeContents(this.getChipContent()[0])},r.prototype.chipKeyDown=function(t){this.isEditting||t.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&t.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditting&&t.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(t.preventDefault(),this.goOutOfEditMode()):(t.preventDefault(),this.goInEditMode())},r.prototype.chipMouseDown=function(){this.getChipIndex()==this.parentController.selectedChip&&this.enableChipEdit&&!this.isEditting&&this.goInEditMode()}}(),function(){function t(t,r,i,o){var a=r.processTemplate(n);return{restrict:"E",require:["^?mdChips","mdChip"],link:function(n,r,s,c){var l=c.shift(),u=c.shift(),d=e.element(r[0].querySelector(".md-chip-content"));t(r),l&&(u.init(l),d.append(i(a)(n)),d.on("blur",function(){l.resetSelectedChip(),l.$scope.$applyAsync()})),o(function(){l&&l.shouldFocusLastChip&&l.focusLastChipThenInput()})},controller:"MdChipCtrl"}}t.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],e.module("material.components.chips").directive("mdChip",t);var n=' <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden"> {{$mdChipsCtrl.deleteHint}} </span>'}(),function(){function t(t){return{restrict:"A",require:"^mdChips",scope:!1,link:function(e,n,r,i){n.on("click",function(t){e.$apply(function(){i.removeChip(e.$$replacedScope.$index)})}),t(function(){n.attr({tabindex:-1,"aria-hidden":!0}),n.find("button").attr("tabindex","-1")})}}}t.$inject=["$timeout"],e.module("material.components.chips").directive("mdChipRemove",t)}(),function(){function t(t){return{restrict:"EA",terminal:!0,link:function(e,n,r){var i=e.$parent.$mdChipsCtrl,o=i.parent.$new(!1,i.parent);o.$$replacedScope=e,o.$chip=e.$chip,o.$index=e.$index,o.$mdChipsCtrl=i;var a=i.$scope.$eval(r.mdChipTransclude);n.html(a),t(n.contents())(o)},scope:!1}}t.$inject=["$compile"],e.module("material.components.chips").directive("mdChipTransclude",t)}(),function(){function t(t,e,r,i,o,a,s){this.$timeout=a,this.$mdConstant=r,this.$scope=t,this.parent=t.$parent,this.$mdUtil=s,this.$log=i,this.$element=o,this.$attrs=e,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=s.parseAttributeBoolean(e.mdEnableChipEdit),this.addOnBlur=s.parseAttributeBoolean(e.mdAddOnBlur),this.inputAriaLabel="Chips input.",this.containerHint="Chips container. Use arrow keys to select chips.",this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.wrapperId="",this.contentIds=[],this.ariaTabIndex=null,this.chipAppendDelay=n,this.init()}t.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil"];var n=300;e.module("material.components.chips").controller("MdChipsCtrl",t),t.prototype.init=function(){var t=this;t.wrapperId="_md-chips-wrapper-"+t.$mdUtil.nextUid(),t.$scope.$watchCollection("$mdChipsCtrl.items",function(){t.setupInputAria(),t.setupWrapperAria()}),t.$attrs.$observe("mdChipAppendDelay",function(e){t.chipAppendDelay=parseInt(e)||n})},t.prototype.setupInputAria=function(){var t=this.$element.find("input");t&&(t.attr("role","textbox"),t.attr("aria-multiline",!0))},t.prototype.setupWrapperAria=function(){var t=this,e=this.$element.find("md-chips-wrap");this.items&&this.items.length?(e.attr("role","listbox"),this.contentIds=this.items.map(function(){return t.wrapperId+"-chip-"+t.$mdUtil.nextUid()}),e.attr("aria-owns",this.contentIds.join(" "))):(e.removeAttr("role"),e.removeAttr("aria-owns"))},t.prototype.inputKeydown=function(t){var e=this.getChipBuffer();if(!(this.autocompleteCtrl&&t.isDefaultPrevented&&t.isDefaultPrevented())){if(t.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(t.target))return;return t.preventDefault(),t.stopPropagation(),void(this.items.length&&this.selectAndFocusChipSafe(this.items.length-1))}if((!this.separatorKeys||this.separatorKeys.length<1)&&(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1!==this.separatorKeys.indexOf(t.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!e)return;if(t.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(e.trim()),this.resetChipBuffer(),!1}}},t.prototype.getCursorPosition=function(t){try{if(t.selectionStart===t.selectionEnd)return t.selectionStart}catch(e){if(!t.value)return 0}},t.prototype.updateChipContents=function(t,e){t>=0&&t<this.items.length&&(this.items[t]=e,this.ngModelCtrl.$setDirty())},t.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},t.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!e.isDefined(this.removable)||this.removable)},t.prototype.chipKeydown=function(t){if(!this.getChipBuffer()&&!this.isEditingChip())switch(t.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(t.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:t.preventDefault(),(this.selectedChip<0||this.readonly&&0==this.selectedChip)&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:t.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;t.preventDefault(),this.onFocus()}},t.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""==this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},t.prototype.removeAndSelectAdjacentChip=function(t){var e=this,n=e.getAdjacentChipIndex(t);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+t+'"]');e.removeChip(t),e.$timeout(function(){e.$timeout(function(){e.selectAndFocusChipSafe(n)})})},t.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},t.prototype.getAdjacentChipIndex=function(t){var e=this.items.length-1;return 0==e?-1:t==e?t-1:t},t.prototype.appendChip=function(t){if(this.shouldFocusLastChip=!0,this.useTransformChip&&this.transformChip){var n=this.transformChip({$chip:t});e.isDefined(n)&&(t=n)}if(!(e.isObject(t)&&this.items.some(function(n){return e.equals(t,n)})||null==t||this.items.indexOf(t)+1)){var r=this.items.push(t)-1;this.ngModelCtrl.$setDirty(),this.validateModel(),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:t,$index:r})}},t.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},t.prototype.useOnAddExpression=function(){this.useOnAdd=!0},t.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},t.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},t.prototype.getChipBuffer=function(){var t=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return e.isString(t)?t:""},t.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},t.prototype.hasMaxChipsReached=function(){return e.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),this.maxChips>0&&this.items.length>=this.maxChips},t.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached())},t.prototype.removeChip=function(t){var e=this.items.splice(t,1);this.ngModelCtrl.$setDirty(),this.validateModel(),e&&e.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:e[0],$index:t})},t.prototype.removeChipAndFocusInput=function(t){this.removeChip(t),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},t.prototype.selectAndFocusChipSafe=function(t){if(!this.items.length||-1===t)return this.focusInput();if(t>=this.items.length){if(!this.readonly)return this.onFocus();t=0}t=Math.max(t,0),t=Math.min(t,this.items.length-1),this.selectChip(t),this.focusChip(t)},t.prototype.focusLastChipThenInput=function(){var t=this;t.shouldFocusLastChip=!1,t.focusChip(this.items.length-1),t.$timeout(function(){t.focusInput()},t.chipAppendDelay)},t.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},t.prototype.selectChip=function(t){t>=-1&&t<=this.items.length?(this.selectedChip=t,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[t]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},t.prototype.selectAndFocusChip=function(t){this.selectChip(t),-1!=t&&this.focusChip(t)},t.prototype.focusChip=function(t){var e=this.$element[0].querySelector('md-chip[index="'+t+'"] .md-chip-content');this.ariaTabIndex=t,e.focus()},t.prototype.configureNgModel=function(t){this.ngModelCtrl=t;var e=this;t.$render=function(){e.items=e.ngModelCtrl.$viewValue}},t.prototype.onFocus=function(){var t=this.$element[0].querySelector("input");t&&t.focus(),this.resetSelectedChip()},t.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},t.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},t.prototype.configureUserInput=function(t){this.userInputElement=t;var n=t.controller("ngModel");n!=this.ngModelCtrl&&(this.userInputNgModelCtrl=n);var r=this.$scope,i=this,o=function(t,n){r.$evalAsync(e.bind(i,n,t))};t.attr({tabindex:0}).on("keydown",function(t){o(t,i.inputKeydown)}).on("focus",function(t){o(t,i.onInputFocus)}).on("blur",function(t){o(t,i.onInputBlur)})},t.prototype.configureAutocomplete=function(t){t&&(this.autocompleteCtrl=t,t.registerSelectedItemWatcher(e.bind(this,function(t){if(t){if(this.hasMaxChipsReached())return;this.appendChip(t),this.resetChipBuffer()}})),this.$element.find("input").on("focus",e.bind(this,this.onInputFocus)).on("blur",e.bind(this,this.onInputBlur)))},t.prototype.shouldAddOnBlur=function(){this.validateModel();var t=this.getChipBuffer().trim(),e=this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(e=e&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&t&&e&&!n},t.prototype.hasFocus=function(){return this.inputHasFocus||this.selectedChip>=0},t.prototype.contentIdFor=function(t){return this.contentIds[t]}}(),function(){function t(t,e,a,s,c,l){var u={chips:e.processTemplate(n),input:e.processTemplate(r),default:e.processTemplate(i),remove:e.processTemplate(o)};return{template:function(t,e){return e.$mdUserTemplate=t.clone(),u.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(n,r){function i(t){if(r.ngModel){var e=o[0].querySelector(t);return e&&e.outerHTML}}var o=r.$mdUserTemplate;r.$mdUserTemplate=null;var d=i("md-chips>md-chip-template"),m=i(e.prefixer().buildList("md-chip-remove").map(function(t){return"md-chips>*["+t+"]"}).join(","))||u.remove,p=d||u.default,h=i("md-chips>md-autocomplete")||i("md-chips>input")||u.input,f=o.find("md-chip");return o[0].querySelector("md-chip-template>*[md-chip-remove]")&&s.warn("invalid placement of md-chip-remove within md-chip-template."),function(n,i,o,s){e.initOptionalProperties(n,r),t(i);var g=s[0];if(d&&(g.enableChipEdit=!1),g.chipContentsTemplate=p,g.chipRemoveTemplate=m,g.chipInputTemplate=h,g.mdCloseIcon=l.mdClose,i.attr({tabindex:-1}).on("focus",function(){g.onFocus()}),r.ngModel&&(g.configureNgModel(i.controller("ngModel")),o.mdTransformChip&&g.useTransformChipExpression(),o.mdOnAppend&&g.useOnAppendExpression(),o.mdOnAdd&&g.useOnAddExpression(),o.mdOnRemove&&g.useOnRemoveExpression(),o.mdOnSelect&&g.useOnSelectExpression(),h!=u.input&&n.$watch("$mdChipsCtrl.readonly",function(t){t||e.nextTick(function(){if(0===h.indexOf("<md-autocomplete")){var t=i.find("md-autocomplete");g.configureAutocomplete(t.controller("mdAutocomplete"))}g.configureUserInput(i.find("input"))})}),e.nextTick(function(){var t=i.find("input");t&&t.toggleClass("md-input",!0)})),f.length>0){var v=a(f.clone())(n.$parent);c(function(){i.find("md-chips-wrap").prepend(v)})}}},scope:{readonly:"=readonly",removable:"=mdRemovable",placeholder:"@",secondaryPlaceholder:"@",maxChips:"@mdMaxChips",transformChip:"&mdTransformChip",onAppend:"&mdOnAppend",onAdd:"&mdOnAdd",onRemove:"&mdOnRemove",onSelect:"&mdOnSelect",inputAriaLabel:"@",containerHint:"@",deleteHint:"@",deleteButtonLabel:"@",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch",chipAppendDelayString:"@?mdChipAppendDelay"}}}t.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],e.module("material.components.chips").directive("mdChips",t);var n=' <md-chips-wrap id="{{$mdChipsCtrl.wrapperId}}" tabindex="{{$mdChipsCtrl.readonly ? 0 : -1}}" ng-keydown="$mdChipsCtrl.chipKeydown($event)" ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(), \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly, \'md-removable\': $mdChipsCtrl.isRemovable() }" aria-setsize="{{$mdChipsCtrl.items.length}}" class="md-chips"> <span ng-if="$mdChipsCtrl.readonly" class="md-visually-hidden"> {{$mdChipsCtrl.containerHint}} </span> <md-chip ng-repeat="$chip in $mdChipsCtrl.items" index="{{$index}}" ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly}"> <div class="md-chip-content" tabindex="{{$mdChipsCtrl.ariaTabIndex == $index ? 0 : -1}}" id="{{$mdChipsCtrl.contentIdFor($index)}}" role="option" aria-selected="{{$mdChipsCtrl.selectedChip == $index}}" aria-posinset="{{$index}}" ng-click="!$mdChipsCtrl.readonly && $mdChipsCtrl.focusChip($index)" ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)" md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div> <div ng-if="$mdChipsCtrl.isRemovable()" class="md-chip-remove-container" tabindex="-1" md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div> </md-chip> <div class="md-chip-input-container" ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl"> <div md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div> </div> </md-chips-wrap>',r=' <input class="md-input" tabindex="0" aria-label="{{$mdChipsCtrl.inputAriaLabel}}" placeholder="{{$mdChipsCtrl.getPlaceholder()}}" ng-model="$mdChipsCtrl.chipBuffer" ng-focus="$mdChipsCtrl.onInputFocus()" ng-blur="$mdChipsCtrl.onInputBlur()" ng-keydown="$mdChipsCtrl.inputKeydown($event)">',i=" <span>{{$chip}}</span>",o=' <button class="md-chip-remove" ng-if="$mdChipsCtrl.isRemovable()" ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)" type="button" tabindex="-1"> <md-icon md-svg-src="{{ $mdChipsCtrl.mdCloseIcon }}"></md-icon> <span class="md-visually-hidden"> {{$mdChipsCtrl.deleteButtonLabel}} </span> </button>'}(),function(){function t(){this.selectedItem=null,this.searchText=""}e.module("material.components.chips").controller("MdContactChipsCtrl",t),t.prototype.queryContact=function(t){return this.contactQuery({$query:t})},t.prototype.itemName=function(t){return t[this.contactName]}}(),function(){function t(t,e){return{template:function(t,e){return n},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:function(n,r){return function(n,i,o,a){var s=a;e.initOptionalProperties(n,r),t(i),i.attr("tabindex","-1"),o.$observe("mdChipAppendDelay",function(t){s.chipAppendDelay=t})}},scope:{contactQuery:"&mdContacts",placeholder:"@",secondaryPlaceholder:"@",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",requireMatch:"=?mdRequireMatch",minLength:"=?mdMinLength",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay"}}}t.$inject=["$mdTheming","$mdUtil"],e.module("material.components.chips").directive("mdContactChips",t);var n=' <md-chips class="md-contact-chips" ng-model="$mdContactChipsCtrl.contacts" md-require-match="$mdContactChipsCtrl.requireMatch" md-chip-append-delay="{{$mdContactChipsCtrl.chipAppendDelay}}" md-autocomplete-snap> <md-autocomplete md-menu-class="md-contact-chips-suggestions" md-selected-item="$mdContactChipsCtrl.selectedItem" md-search-text="$mdContactChipsCtrl.searchText" md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)" md-item-text="$mdContactChipsCtrl.itemName(item)" md-no-cache="true" md-min-length="$mdContactChipsCtrl.minLength" md-autoselect placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ? $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}"> <div class="md-contact-suggestion"> <img ng-src="{{item[$mdContactChipsCtrl.contactImage]}}" alt="{{item[$mdContactChipsCtrl.contactName]}}" ng-if="item[$mdContactChipsCtrl.contactImage]" /> <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText" md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}"> {{item[$mdContactChipsCtrl.contactName]}} </span> <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span> </div> </md-autocomplete> <md-chip-template> <div class="md-contact-avatar"> <img ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}" alt="{{$chip[$mdContactChipsCtrl.contactName]}}" ng-if="$chip[$mdContactChipsCtrl.contactImage]" /> </div> <div class="md-contact-name"> {{$chip[$mdContactChipsCtrl.contactName]}} </div> </md-chip-template> </md-chips>'}(),function(){function t(t,n,i,o,a,s,c,l,u){s(t),this.$element=t,this.$scope=n,this.dateUtil=i,this.$mdUtil=o,this.keyCode=a.KEY_CODE,this.$$rAF=c,this.$mdDateLocale=u,this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=null,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=r++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,l.tabindex||t.attr("tabindex","-1");var d,m=e.bind(this,this.handleKeyEvent);(d=t.parent().hasClass("md-datepicker-calendar")?e.element(document.body):t).on("keydown",m),n.$on("$destroy",function(){d.off("keydown",m)}),1===e.version.major&&e.version.minor<=4&&this.$onInit()}t.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],e.module("material.components.datepicker").directive("mdCalendar",function(){return{template:function(t,e){return'<div ng-switch="calendarCtrl.currentView" '+(e.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"')+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>'},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:t,controllerAs:"calendarCtrl",bindToController:!0,link:function(t,e,n,r){var i=r[0];r[1].configureNgModel(i)}}});var n=340,r=0;t.prototype.$onInit=function(){this.currentView=this._currentView||"month";var t=this.$mdDateLocale;this.minDate&&this.minDate>t.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=t.firstRenderableDate,this.maxDate&&this.maxDate<t.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=t.lastRenderableDate},t.prototype.configureNgModel=function(t){var e=this;e.ngModelCtrl=t,e.$mdUtil.nextTick(function(){e.isInitialized=!0}),t.$render=function(){var t=this.$viewValue;e.$scope.$broadcast("md-calendar-parent-changed",t),e.selectedDate||(e.selectedDate=t),e.displayDate||(e.displayDate=e.selectedDate||e.today)}},t.prototype.setNgModelValue=function(t){var e=this.dateUtil.createDateAtMidnight(t);return this.focus(e),this.$scope.$emit("md-calendar-change",e),this.ngModelCtrl.$setViewValue(e),this.ngModelCtrl.$render(),e},t.prototype.setCurrentView=function(t,n){var r=this;r.$mdUtil.nextTick(function(){r.currentView=t,n&&(r.displayDate=e.isDate(n)?n:new Date(n))})},t.prototype.focus=function(t){if(this.dateUtil.isValidDate(t)){var e=this.$element[0].querySelector(".md-focus");e&&e.classList.remove(this.FOCUSED_DATE_CLASS);var n=this.getDateId(t,this.currentView),r=document.getElementById(n);r&&(r.classList.add(this.FOCUSED_DATE_CLASS),r.focus(),this.displayDate=t)}else{var i=this.$element[0].querySelector("[ng-switch]");i&&i.focus()}},t.prototype.getActionFromKeyEvent=function(t){var e=this.keyCode;switch(t.which){case e.ENTER:return"select";case e.RIGHT_ARROW:return"move-right";case e.LEFT_ARROW:return"move-left";case e.DOWN_ARROW:return t.metaKey?"move-page-down":"move-row-down";case e.UP_ARROW:return t.metaKey?"move-page-up":"move-row-up";case e.PAGE_DOWN:return"move-page-down";case e.PAGE_UP:return"move-page-up";case e.HOME:return"start";case e.END:return"end";default:return null}},t.prototype.handleKeyEvent=function(t){var e=this;this.$scope.$apply(function(){if(t.which==e.keyCode.ESCAPE||t.which==e.keyCode.TAB)return e.$scope.$emit("md-calendar-close"),void(t.which==e.keyCode.TAB&&t.preventDefault());var n=e.getActionFromKeyEvent(t);n&&(t.preventDefault(),t.stopPropagation(),e.$scope.$broadcast("md-calendar-parent-action",n))})},t.prototype.hideVerticalScrollbar=function(t){function e(){var e=r.width||n,i=r.scrollbarWidth,a=t.calendarScroller;o.style.width=e+"px",a.style.width=e+i+"px",a.style.paddingRight=i+"px"}var r=this,i=t.$element[0],o=i.querySelector(".md-calendar-scroll-mask");r.width>0?e():r.$$rAF(function(){var n=t.calendarScroller;r.scrollbarWidth=n.offsetWidth-n.clientWidth,r.width=i.querySelector("table").offsetWidth,e()})},t.prototype.getDateId=function(t,e){if(!e)throw new Error("A namespace for the date id has to be specified.");return["md",this.id,e,t.getFullYear(),t.getMonth(),t.getDate()].join("-")},t.prototype.updateVirtualRepeat=function(){var t=this.$scope,e=t.$on("$md-resize-enable",function(){t.$$phase||t.$apply(),e()})}}(),function(){function t(t,e,n,r,i,o){this.$element=t,this.$scope=e,this.$animate=n,this.$q=r,this.dateUtil=i,this.dateLocale=o,this.calendarScroller=t[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var a=this;this.cellClickHandler=function(){var t=i.getTimestampFromNode(this);a.$scope.$apply(function(){a.calendarCtrl.setNgModelValue(t)})},this.headerClickHandler=function(){a.calendarCtrl.setCurrentView("year",i.getTimestampFromNode(this))}}t.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],e.module("material.components.datepicker").directive("mdCalendarMonth",function(){return{template:'<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table><div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="'+(r-n)+'"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-month-body role="rowgroup" md-virtual-repeat="i in monthCtrl.items" md-month-offset="$index" class="md-calendar-month" md-start-index="monthCtrl.getSelectedMonthIndex()" md-item-size="'+n+'"><tr aria-hidden="true" style="height:'+n+'px;"></tr></tbody></table></md-virtual-repeat-container></div>',require:["^^mdCalendar","mdCalendarMonth"],controller:t,controllerAs:"monthCtrl",bindToController:!0,link:function(t,e,n,r){var i=r[0];r[1].initialize(i)}}});var n=265,r=45;t.prototype.initialize=function(t){this.items={length:this.dateUtil.getMonthDistance(t.firstRenderableDate,t.lastRenderableDate)+2},this.calendarCtrl=t,this.attachScopeListeners(),t.updateVirtualRepeat(),t.ngModelCtrl&&t.ngModelCtrl.$render()},t.prototype.getSelectedMonthIndex=function(){var t=this.calendarCtrl;return this.dateUtil.getMonthDistance(t.firstRenderableDate,t.displayDate||t.selectedDate||t.today)},t.prototype.changeSelectedDate=function(t){var e=this.calendarCtrl,n=e.selectedDate;e.selectedDate=t,this.changeDisplayDate(t).then(function(){var r=e.SELECTED_DATE_CLASS;if(n){var i=document.getElementById(e.getDateId(n,"month"));i&&(i.classList.remove(r),i.setAttribute("aria-selected","false"))}if(t){var o=document.getElementById(e.getDateId(t,"month"));o&&(o.classList.add(r),o.setAttribute("aria-selected","true"))}})},t.prototype.changeDisplayDate=function(t){if(!this.isInitialized)return this.buildWeekHeader(),this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(!this.dateUtil.isValidDate(t)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var e=this.animateDateChange(t);this.calendarCtrl.displayDate=t;var n=this;return e.then(function(){n.isMonthTransitionInProgress=!1}),e},t.prototype.animateDateChange=function(t){if(this.dateUtil.isValidDate(t)){var e=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,t);this.calendarScroller.scrollTop=e*n}return this.$q.when()},t.prototype.buildWeekHeader=function(){for(var t=this.dateLocale.firstDayOfWeek,e=this.dateLocale.shortDays,n=document.createElement("tr"),r=0;r<7;r++){var i=document.createElement("th");i.textContent=e[(r+t)%7],n.appendChild(i)}this.$element.find("thead").append(n)},t.prototype.attachScopeListeners=function(){var t=this;t.$scope.$on("md-calendar-parent-changed",function(e,n){t.changeSelectedDate(n)}),t.$scope.$on("md-calendar-parent-action",e.bind(this,this.handleKeyEvent))},t.prototype.handleKeyEvent=function(t,e){var n=this.calendarCtrl,r=n.displayDate;if("select"===e)n.setNgModelValue(r);else{var i=null,o=this.dateUtil;switch(e){case"move-right":i=o.incrementDays(r,1);break;case"move-left":i=o.incrementDays(r,-1);break;case"move-page-down":i=o.incrementMonths(r,1);break;case"move-page-up":i=o.incrementMonths(r,-1);break;case"move-row-down":i=o.incrementDays(r,7);break;case"move-row-up":i=o.incrementDays(r,-7);break;case"start":i=o.getFirstDateOfMonth(r);break;case"end":i=o.getLastDateOfMonth(r)}i&&(i=this.dateUtil.clampDate(i,n.minDate,n.maxDate),this.changeDisplayDate(i).then(function(){n.focus(i)}))}}}(),function(){function t(t,r){var i=t('<md-icon md-svg-src="'+r.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:n,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(t,n,r,o){var a=o[0],s=o[1],c=o[2];c.calendarCtrl=a,c.monthCtrl=s,c.arrowIcon=i.cloneNode(!0),t.$watch(function(){return c.offset},function(t){e.isNumber(t)&&c.generateContent()})}}}function n(t,e,n){this.$element=t,this.dateUtil=e,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}t.$inject=["$compile","$$mdSvgRegistry"],n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],e.module("material.components.datepicker").directive("mdCalendarMonthBody",t),n.prototype.generateContent=function(){var t=this.dateUtil.incrementMonths(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForMonth(t)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildDateCell=function(t){var e=this.monthCtrl,n=this.calendarCtrl,r=document.createElement("td");if(r.tabIndex=-1,r.classList.add("md-calendar-date"),r.setAttribute("role","gridcell"),t){r.setAttribute("tabindex","-1"),r.setAttribute("aria-label",this.dateLocale.longDateFormatter(t)),r.id=n.getDateId(t,"month"),r.setAttribute("data-timestamp",t.getTime()),this.dateUtil.isSameDay(t,n.today)&&r.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameDay(t,n.selectedDate)&&(r.classList.add(n.SELECTED_DATE_CLASS),r.setAttribute("aria-selected","true"));var i=this.dateLocale.dates[t.getDate()];if(this.isDateEnabled(t)){var o=document.createElement("span");o.classList.add("md-calendar-date-selection-indicator"),o.textContent=i,r.appendChild(o),r.addEventListener("click",e.cellClickHandler),n.displayDate&&this.dateUtil.isSameDay(t,n.displayDate)&&(this.focusAfterAppend=r)}else r.classList.add("md-calendar-date-disabled"),r.textContent=i}return r},n.prototype.isDateEnabled=function(t){return this.dateUtil.isDateWithinRange(t,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!e.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(t))},n.prototype.buildDateRow=function(t){var e=document.createElement("tr");return e.setAttribute("role","row"),e.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(t)),e},n.prototype.buildCalendarForMonth=function(t){var e=this.dateUtil.isValidDate(t)?t:new Date,n=this.dateUtil.getFirstDateOfMonth(e),r=this.getLocaleDay_(n),i=this.dateUtil.getNumberOfDaysInMonth(e),o=document.createDocumentFragment(),a=1,s=this.buildDateRow(a);o.appendChild(s);var c=this.offset===this.monthCtrl.items.length-1,l=0,u=document.createElement("td"),d=document.createElement("span");if(d.textContent=this.dateLocale.monthHeaderFormatter(e),u.appendChild(d),u.classList.add("md-calendar-month-label"),this.calendarCtrl.maxDate&&n>this.calendarCtrl.maxDate?u.classList.add("md-calendar-month-label-disabled"):(u.addEventListener("click",this.monthCtrl.headerClickHandler),u.setAttribute("data-timestamp",n.getTime()),u.setAttribute("aria-label",this.dateLocale.monthFormatter(e)),u.appendChild(this.arrowIcon.cloneNode(!0))),r<=2){u.setAttribute("colspan","7");var m=this.buildDateRow();if(m.appendChild(u),o.insertBefore(m,s),c)return o}else l=3,u.setAttribute("colspan","3"),s.appendChild(u);for(var p=l;p<r;p++)s.appendChild(this.buildDateCell());for(var h=r,f=n,g=1;g<=i;g++){if(7===h){if(c)return o;h=0,a++,s=this.buildDateRow(a),o.appendChild(s)}f.setDate(g);var v=this.buildDateCell(f);s.appendChild(v),h++}for(;s.childNodes.length<7;)s.appendChild(this.buildDateCell());for(;o.childNodes.length<6;){for(var $=this.buildDateRow(),b=0;b<7;b++)$.appendChild(this.buildDateCell());o.appendChild($)}return o},n.prototype.getLocaleDay_=function(t){return(t.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}(),function(){function t(t,e,n,r,i){this.$element=t,this.$scope=e,this.$animate=n,this.$q=r,this.dateUtil=i,this.calendarScroller=t[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var o=this;this.cellClickHandler=function(){o.calendarCtrl.setCurrentView("month",i.getTimestampFromNode(this))}}t.$inject=["$element","$scope","$animate","$q","$$mdDateUtil"],e.module("material.components.datepicker").directive("mdCalendarYear",function(){return{template:'<div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-year-body role="rowgroup" md-virtual-repeat="i in yearCtrl.items" md-year-offset="$index" class="md-calendar-year" md-start-index="yearCtrl.getFocusedYearIndex()" md-item-size="'+n+'"><tr aria-hidden="true" style="height:'+n+'px;"></tr></tbody></table></md-virtual-repeat-container></div>',require:["^^mdCalendar","mdCalendarYear"],controller:t,controllerAs:"yearCtrl",bindToController:!0,link:function(t,e,n,r){var i=r[0];r[1].initialize(i)}}});var n=88;t.prototype.initialize=function(t){this.items={length:this.dateUtil.getYearDistance(t.firstRenderableDate,t.lastRenderableDate)+1},this.calendarCtrl=t,this.attachScopeListeners(),t.updateVirtualRepeat(),t.ngModelCtrl&&t.ngModelCtrl.$render()},t.prototype.getFocusedYearIndex=function(){var t=this.calendarCtrl;return this.dateUtil.getYearDistance(t.firstRenderableDate,t.displayDate||t.selectedDate||t.today)},t.prototype.changeDate=function(t){if(!this.isInitialized)return this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(this.dateUtil.isValidDate(t)&&!this.isMonthTransitionInProgress){var e=this,n=this.animateDateChange(t);return e.isMonthTransitionInProgress=!0,e.calendarCtrl.displayDate=t,n.then(function(){e.isMonthTransitionInProgress=!1})}},t.prototype.animateDateChange=function(t){if(this.dateUtil.isValidDate(t)){var e=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,t);this.calendarScroller.scrollTop=e*n}return this.$q.when()},t.prototype.handleKeyEvent=function(t,e){var n=this.calendarCtrl,r=n.displayDate;if("select"===e)this.changeDate(r).then(function(){n.setCurrentView("month",r),n.focus(r)});else{var i=null,o=this.dateUtil;switch(e){case"move-right":i=o.incrementMonths(r,1);break;case"move-left":i=o.incrementMonths(r,-1);break;case"move-row-down":i=o.incrementMonths(r,6);break;case"move-row-up":i=o.incrementMonths(r,-6)}if(i){var a=n.minDate?o.getFirstDateOfMonth(n.minDate):null,s=n.maxDate?o.getFirstDateOfMonth(n.maxDate):null;i=o.getFirstDateOfMonth(this.dateUtil.clampDate(i,a,s)),this.changeDate(i).then(function(){n.focus(i)})}}},t.prototype.attachScopeListeners=function(){var t=this;t.$scope.$on("md-calendar-parent-changed",function(e,n){t.changeDate(n)}),t.$scope.$on("md-calendar-parent-action",e.bind(t,t.handleKeyEvent))}}(),function(){function t(t,e,n){this.$element=t,this.dateUtil=e,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}t.$inject=["$element","$$mdDateUtil","$mdDateLocale"],e.module("material.components.datepicker").directive("mdCalendarYearBody",function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:t,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(t,n,r,i){var o=i[0],a=i[1],s=i[2];s.calendarCtrl=o,s.yearCtrl=a,t.$watch(function(){return s.offset},function(t){e.isNumber(t)&&s.generateContent()})}}}),t.prototype.generateContent=function(){var t=this.dateUtil.incrementYears(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForYear(t)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},t.prototype.buildMonthCell=function(t,e){var n=this.calendarCtrl,r=this.yearCtrl,i=this.buildBlankCell(),o=new Date(t,e,1);i.setAttribute("aria-label",this.dateLocale.monthFormatter(o)),i.id=n.getDateId(o,"year"),i.setAttribute("data-timestamp",o.getTime()),this.dateUtil.isSameMonthAndYear(o,n.today)&&i.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameMonthAndYear(o,n.selectedDate)&&(i.classList.add(n.SELECTED_DATE_CLASS),i.setAttribute("aria-selected","true"));var a=this.dateLocale.shortMonths[e];if(this.dateUtil.isMonthWithinRange(o,n.minDate,n.maxDate)){var s=document.createElement("span");s.classList.add("md-calendar-date-selection-indicator"),s.textContent=a,i.appendChild(s),i.addEventListener("click",r.cellClickHandler),n.displayDate&&this.dateUtil.isSameMonthAndYear(o,n.displayDate)&&(this.focusAfterAppend=i)}else i.classList.add("md-calendar-date-disabled"),i.textContent=a;return i},t.prototype.buildBlankCell=function(){var t=document.createElement("td");return t.tabIndex=-1,t.classList.add("md-calendar-date"),t.setAttribute("role","gridcell"),t.setAttribute("tabindex","-1"),t},t.prototype.buildCalendarForYear=function(t){var e,n=t.getFullYear(),r=document.createDocumentFragment(),i=document.createElement("tr"),o=document.createElement("td");for(o.className="md-calendar-month-label",o.textContent=n,i.appendChild(o),e=0;e<6;e++)i.appendChild(this.buildMonthCell(n,e));r.appendChild(i);var a=document.createElement("tr");for(a.appendChild(this.buildBlankCell()),e=6;e<12;e++)a.appendChild(this.buildMonthCell(n,e));return r.appendChild(a),r}}(),e.module("material.components.datepicker").config(["$provide",function(t){function e(){this.months=null,this.shortMonths=null,this.days=null,this.shortDays=null,this.dates=null,this.firstDayOfWeek=0,this.formatDate=null,this.parseDate=null,this.monthHeaderFormatter=null,this.weekNumberFormatter=null,this.longDateFormatter=null,this.msgCalendar="",this.msgOpenCalendar=""}e.prototype.$get=function(t,e){for(var n=t.DATETIME_FORMATS.SHORTDAY.map(function(t){return t.substring(0,1)}),r=Array(32),i=1;i<=31;i++)r[i]=i;var o=new Date(1880,0,1),a=new Date(o.getFullYear()+250,0,1),s={months:this.months||t.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||t.DATETIME_FORMATS.SHORTMONTH,days:this.days||t.DATETIME_FORMATS.DAY,shortDays:this.shortDays||n,dates:this.dates||r,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||function(t,n){if(!t)return"";var r=t.toLocaleTimeString(),i=t;return 0!==t.getHours()||-1===r.indexOf("11:")&&-1===r.indexOf("23:")||(i=new Date(t.getFullYear(),t.getMonth(),t.getDate(),1,0,0)),e("date")(i,"M/d/yyyy",n)},parseDate:this.parseDate||function(t){return new Date(t)},isDateComplete:this.isDateComplete||function(t){return t=t.trim(),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ \.,]+|[\/\-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/.test(t)},monthHeaderFormatter:this.monthHeaderFormatter||function(t){return s.shortMonths[t.getMonth()]+" "+t.getFullYear()},monthFormatter:this.monthFormatter||function(t){return s.months[t.getMonth()]+" "+t.getFullYear()},weekNumberFormatter:this.weekNumberFormatter||function(t){return"Week "+t},longDateFormatter:this.longDateFormatter||function(t){return[s.days[t.getDay()],s.months[t.getMonth()],s.dates[t.getDate()],t.getFullYear()].join(" ")},msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||o,lastRenderableDate:this.lastRenderableDate||a};return s},e.prototype.$get.$inject=["$locale","$filter"],t.provider("$mdDateLocale",new e)}]),e.module("material.components.datepicker").factory("$$mdDateUtil",function(){function t(t){return new Date(t.getFullYear(),t.getMonth(),1)}function n(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function r(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function i(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function o(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()}function a(t,e){var r=new Date(t.getFullYear(),t.getMonth()+e,1),i=n(r);return i<t.getDate()?r.setDate(i):r.setDate(t.getDate()),r}function s(t){return t&&t.getTime&&!isNaN(t.getTime())}function c(t){s(t)&&t.setHours(0,0,0,0)}function l(t){var n;return n=e.isUndefined(t)?new Date:new Date(t),c(n),n}return{getFirstDateOfMonth:t,getNumberOfDaysInMonth:n,getDateInNextMonth:r,getDateInPreviousMonth:i,isInNextMonth:function(t,e){return o(r(t),e)},isInPreviousMonth:function(t,e){return o(e,i(t))},getDateMidpoint:function(t,e){return l((t.getTime()+e.getTime())/2)},isSameMonthAndYear:o,getWeekOfMonth:function(e){var n=t(e);return Math.floor((n.getDay()+e.getDate()-1)/7)},incrementDays:function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},incrementMonths:a,getLastDateOfMonth:function(t){return new Date(t.getFullYear(),t.getMonth(),n(t))},isSameDay:function(t,e){return t.getDate()==e.getDate()&&o(t,e)},getMonthDistance:function(t,e){return 12*(e.getFullYear()-t.getFullYear())+(e.getMonth()-t.getMonth())},isValidDate:s,setDateTimeToMidnight:c,createDateAtMidnight:l,isDateWithinRange:function(t,e,n){var r=l(t),i=s(e)?l(e):null,o=s(n)?l(n):null;return(!i||i<=r)&&(!o||o>=r)},incrementYears:function(t,e){return a(t,12*e)},getYearDistance:function(t,e){return e.getFullYear()-t.getFullYear()},clampDate:function(t,e,n){var r=t;return e&&t<e&&(r=new Date(e.getTime())),n&&t>n&&(r=new Date(n.getTime())),r},getTimestampFromNode:function(t){if(t&&t.hasAttribute("data-timestamp"))return Number(t.getAttribute("data-timestamp"))},isMonthWithinRange:function(t,e,n){var r=t.getMonth(),i=t.getFullYear();return(!e||e.getFullYear()<i||e.getMonth()<=r)&&(!n||n.getFullYear()>i||n.getMonth()>=r)}}}),function(){function n(t,n,i,c){return{template:function(e,n){var r=n.mdHideIcons,i=n.ariaLabel||n.mdPlaceholder,o="all"===r||"calendar"===r?"":'<md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"><md-icon class="md-datepicker-calendar-icon" aria-label="md-calendar" md-svg-src="'+t.mdCalendar+'"></md-icon></md-button>',a="";return"all"!==r&&"triangle"!==r&&(a='<md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.locale.msgOpenCalendar}}"><div class="md-datepicker-expand-triangle"></div></md-button>',e.addClass(s)),o+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(i?'aria-label="'+i+'" ':"")+'class="md-datepicker-input" aria-haspopup="true" aria-expanded="{{ctrl.isCalendarOpen}}" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+a+'</div><div class="md-datepicker-calendar-pane md-whiteframe-z1" id="{{::ctrl.calendarPaneId}}"><div class="md-datepicker-input-mask"><div class="md-datepicker-input-mask-opaque"></div></div><div class="md-datepicker-calendar"><md-calendar role="dialog" aria-label="{{::ctrl.locale.msgCalendar}}" md-current-view="{{::ctrl.currentView}}"md-min-date="ctrl.minDate"md-max-date="ctrl.maxDate"md-date-filter="ctrl.dateFilter"ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"></md-calendar></div></div>'},require:["ngModel","mdDatepicker","?^mdInputContainer","?^form"],scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",placeholder:"@mdPlaceholder",currentView:"@mdCurrentView",dateFilter:"=mdDateFilter",isOpen:"=?mdIsOpen",debounceInterval:"=mdDebounceInterval",dateLocale:"=mdDateLocale"},controller:r,controllerAs:"ctrl",bindToController:!0,link:function(t,r,s,l){var u=l[0],d=l[1],m=l[2],p=l[3],h=n.parseAttributeBoolean(s.mdNoAsterisk);if(d.configureNgModel(u,m,c),m){var f=r[0].querySelector(".md-errors-spacer");f&&r.after(e.element("<div>").append(f)),m.setHasPlaceholder(s.mdPlaceholder),m.input=r,m.element.addClass(o).toggleClass(a,"calendar"!==s.mdHideIcons&&"all"!==s.mdHideIcons),m.label?h||s.$observe("required",function(t){m.label.toggleClass("md-required",!!t)}):i.expect(r,"aria-label",s.mdPlaceholder),t.$watch(m.isErrorGetter||function(){return u.$invalid&&(u.$touched||p&&p.$submitted)},m.setInvalid)}else if(p)var g=t.$watch(function(){return p.$submitted},function(t){t&&(d.updateErrorState(),g())})}}}function r(n,r,i,o,a,s,l,u,d,m,p){this.$window=o,this.dateUtil=d,this.$mdConstant=a,this.$mdUtil=l,this.$$rAF=m,this.$mdDateLocale=u,this.documentElement=e.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=r[0].querySelector("input"),this.ngInputElement=e.element(this.inputElement),this.inputContainer=r[0].querySelector(".md-datepicker-input-container"),this.calendarPane=r[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=r[0].querySelector(".md-datepicker-button"),this.inputMask=e.element(r[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=r,this.$attrs=i,this.$scope=n,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(r[0].disabled||e.isString(i.disabled)),this.isCalendarOpen=!1,this.openOnFocus=i.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+l.nextUid(),this.bodyClickHandler=e.bind(this,this.handleBodyClick),this.windowEventName=c.test(navigator.userAgent||navigator.vendor||t.opera)?"orientationchange":"resize",this.windowEventHandler=l.debounce(e.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=e.bind(this,this.handleWindowBlur),this.ngDateFilter=p("date"),this.leftMargin=20,this.topMargin=null,i.tabindex?(this.ngInputElement.attr("tabindex",i.tabindex),i.$set("tabindex",null)):i.$set("tabindex","-1"),i.$set("aria-owns",this.calendarPaneId),s(r),s(e.element(this.calendarPane));var h=this;n.$on("$destroy",function(){h.detachCalendarPane()}),i.mdIsOpen&&n.$watch("ctrl.isOpen",function(t){t?h.openCalendarPane({target:h.inputElement}):h.closeCalendarPane()}),1===e.version.major&&e.version.minor<=4&&this.$onInit()}r.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter"],n.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],e.module("material.components.datepicker").directive("mdDatepicker",n);var i="md-datepicker-open",o="_md-datepicker-floating-label",a="_md-datepicker-has-calendar-icon",s="_md-datepicker-has-triangle-icon",c=/ipad|iphone|ipod|android/i;r.prototype.$onInit=function(){this.locale=this.dateLocale?e.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},r.prototype.configureNgModel=function(t,n,r){this.ngModelCtrl=t,this.mdInputContainer=n,this.$attrs.$set("type","date"),r[0].link.pre(this.$scope,{on:e.noop,val:e.noop,0:{}},this.$attrs,[t]);var i=this;i.ngModelCtrl.$formatters.push(function(t){var n=e.isDefined(t)?Date.parse(t):null;if(!isNaN(n)&&e.isNumber(n)&&(t=new Date(n)),t&&!(t instanceof Date))throw Error("The ng-model for md-datepicker must be a Date instance or a value that can be parsed into a date. Currently the model is of type: "+typeof t);return i.onExternalChange(t),t}),t.$viewChangeListeners.unshift(e.bind(this,this.updateErrorState));var o=i.$mdUtil.getModelOption(t,"updateOn");o&&this.ngInputElement.on(o,e.bind(this.$element,this.$element.triggerHandler,o))},r.prototype.attachChangeListeners=function(){var t=this;t.$scope.$on("md-calendar-change",function(e,n){t.setModelValue(n),t.onExternalChange(n),t.closeCalendarPane()}),t.ngInputElement.on("input",e.bind(t,t.resizeInputElement));var n=e.isDefined(this.debounceInterval)?this.debounceInterval:500;t.ngInputElement.on("input",t.$mdUtil.debounce(t.handleInputEvent,n,t))},r.prototype.attachInteractionListeners=function(){var t=this,n=this.$scope,r=this.$mdConstant.KEY_CODE;t.ngInputElement.on("keydown",function(e){e.altKey&&e.keyCode==r.DOWN_ARROW&&(t.openCalendarPane(e),n.$digest())}),t.openOnFocus&&(t.ngInputElement.on("focus",e.bind(t,t.openCalendarPane)),e.element(t.$window).on("blur",t.windowBlurHandler),n.$on("$destroy",function(){e.element(t.$window).off("blur",t.windowBlurHandler)})),n.$on("md-calendar-close",function(){t.closeCalendarPane()})},r.prototype.installPropertyInterceptors=function(){var t=this;if(this.$attrs.ngDisabled){var e=this.$scope.$parent;e&&e.$watch(this.$attrs.ngDisabled,function(e){t.setDisabled(e)})}Object.defineProperty(this,"placeholder",{get:function(){return t.inputElement.placeholder},set:function(e){t.inputElement.placeholder=e||""}})},r.prototype.setDisabled=function(t){this.isDisabled=t,this.inputElement.disabled=t,this.calendarButton&&(this.calendarButton.disabled=t)},r.prototype.updateErrorState=function(t){var n=t||this.date;if(this.clearErrorState(),this.dateUtil.isValidDate(n)){if(n=this.dateUtil.createDateAtMidnight(n),this.dateUtil.isValidDate(this.minDate)){var r=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",n>=r)}if(this.dateUtil.isValidDate(this.maxDate)){var i=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",n<=i)}e.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(n))}else this.ngModelCtrl.$setValidity("valid",null==n);e.element(this.inputContainer).toggleClass("md-datepicker-invalid",!this.ngModelCtrl.$valid)},r.prototype.clearErrorState=function(){this.inputContainer.classList.remove("md-datepicker-invalid"),["mindate","maxdate","filtered","valid"].forEach(function(t){this.ngModelCtrl.$setValidity(t,!0)},this)},r.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+3},r.prototype.handleInputEvent=function(){var t=this.inputElement.value,e=t?this.locale.parseDate(t):null;this.dateUtil.setDateTimeToMidnight(e),(""==t||this.dateUtil.isValidDate(e)&&this.locale.isDateComplete(t)&&this.isDateEnabled(e))&&(this.setModelValue(e),this.date=e),this.updateErrorState(e)},r.prototype.isDateEnabled=function(t){return this.dateUtil.isDateWithinRange(t,this.minDate,this.maxDate)&&(!e.isFunction(this.dateFilter)||this.dateFilter(t))},r.prototype.attachCalendarPane=function(){var t=this.calendarPane,n=document.body;t.style.transform="",this.$element.addClass(i),this.mdInputContainer&&this.mdInputContainer.element.addClass(i),e.element(n).addClass("md-datepicker-is-showing");var r=this.inputContainer.getBoundingClientRect(),o=n.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var a=r.top-o.top-this.topMargin,s=r.left-o.left-this.leftMargin,c=o.top<0&&0==document.body.scrollTop?-o.top:document.body.scrollTop,l=o.left<0&&0==document.body.scrollLeft?-o.left:document.body.scrollLeft,u=c+this.$window.innerHeight,d=l+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:r.width-1+"px",height:r.height-2+"px"}),s+360>d){if(d-360>0)s=d-360;else{s=l;var m=this.$window.innerWidth/360;t.style.transform="scale("+m+")"}t.classList.add("md-datepicker-pos-adjusted")}a+368>u&&u-368>c&&(a=u-368,t.classList.add("md-datepicker-pos-adjusted")),t.style.left=s+"px",t.style.top=a+"px",document.body.appendChild(t),this.$$rAF(function(){t.classList.add("md-pane-open")})},r.prototype.detachCalendarPane=function(){this.$element.removeClass(i),this.mdInputContainer&&this.mdInputContainer.element.removeClass(i),e.element(document.body).removeClass("md-datepicker-is-showing"),this.calendarPane.classList.remove("md-pane-open"),this.calendarPane.classList.remove("md-datepicker-pos-adjusted"),this.isCalendarOpen&&this.$mdUtil.enableScrolling(),this.calendarPane.parentNode&&this.calendarPane.parentNode.removeChild(this.calendarPane)},r.prototype.openCalendarPane=function(e){if(!this.isCalendarOpen&&!this.isDisabled&&!this.inputFocusedOnWindowBlur){this.isCalendarOpen=this.isOpen=!0,this.calendarPaneOpenedFrom=e.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar(),this.evalAttr("ngFocus");var n=this;this.$mdUtil.nextTick(function(){n.documentElement.on("click touchstart",n.bodyClickHandler)},!1),t.addEventListener(this.windowEventName,this.windowEventHandler)}},r.prototype.closeCalendarPane=function(){function e(){n.isCalendarOpen=n.isOpen=!1}if(this.isCalendarOpen){var n=this;n.detachCalendarPane(),n.ngModelCtrl.$setTouched(),n.evalAttr("ngBlur"),n.documentElement.off("click touchstart",n.bodyClickHandler),t.removeEventListener(n.windowEventName,n.windowEventHandler),n.calendarPaneOpenedFrom.focus(),n.calendarPaneOpenedFrom=null,n.openOnFocus?n.$mdUtil.nextTick(e):e()}},r.prototype.getCalendarCtrl=function(){return e.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},r.prototype.focusCalendar=function(){var t=this;this.$mdUtil.nextTick(function(){t.getCalendarCtrl().focus()},!1)},r.prototype.setFocused=function(t){t||this.ngModelCtrl.$setTouched(),this.openOnFocus||this.evalAttr(t?"ngFocus":"ngBlur"),this.isFocused=t},r.prototype.handleBodyClick=function(t){this.isCalendarOpen&&(this.$mdUtil.getClosest(t.target,"md-calendar")||this.closeCalendarPane(),this.$scope.$digest())},r.prototype.handleWindowBlur=function(){this.inputFocusedOnWindowBlur=document.activeElement===this.inputElement},r.prototype.evalAttr=function(t){this.$attrs[t]&&this.$scope.$parent.$eval(this.$attrs[t])},r.prototype.setModelValue=function(t){var e=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.ngModelCtrl.$setViewValue(this.ngDateFilter(t,"yyyy-MM-dd",e))},r.prototype.onExternalChange=function(t){var e=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.date=t,this.inputElement.value=this.locale.formatDate(t,e),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!t),this.resizeInputElement(),this.updateErrorState()}}(),function(){e.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",function(t,e,n,r){return{restrict:"E",link:function(r,i,o){function a(){if(!o.mdSvgIcon&&!o.mdSvgSrc){o.mdFontIcon&&(i.removeClass(s),i.addClass(o.mdFontIcon),s=o.mdFontIcon);var e=t.fontSet(o.mdFontSet);c!==e&&(i.removeClass(c),i.addClass(e),c=e)}}e(i);var s=o.mdFontIcon,c=t.fontSet(o.mdFontSet);o.mdSvgIcon||o.mdSvgSrc||(o.mdFontIcon&&i.addClass("md-font "+o.mdFontIcon),i.addClass(c)),o.$observe("mdFontIcon",a),o.$observe("mdFontSet",a),i[0].getAttribute(o.$attr.mdSvgSrc);var l=o.$normalize(o.$attr.mdSvgIcon||o.$attr.mdSvgSrc||"");if(o.role||(n.expect(i,"role","img"),o.role="img"),"img"===o.role&&!o.ariaHidden&&!n.hasAriaLabel(i)){var u;o.alt?n.expect(i,"aria-label",o.alt):n.parentHasAriaLabel(i,2)?n.expect(i,"aria-hidden","true"):(u=o.mdFontIcon||o.mdSvgIcon||i.text())?n.expect(i,"aria-label",u):n.expect(i,"aria-hidden","true")}l&&o.$observe(l,function(e){i.empty(),e&&t(e).then(function(t){i.empty(),i.append(t)})})}}}])}(),function(){function n(){}function r(t,e){this.url=t,this.viewBoxSize=e||o.defaultViewBoxSize}function i(n,r,i,o,a,s){function c(t){return t=t||"",e.isString(t)||(t=s.getTrustedUrl(t)),g[t]?i.when(l(g[t])):$.test(t)||b.test(t)?p(t).then(u(t)):(-1==t.indexOf(":")&&(t="$default:"+t),(n[t]?d:m)(t).then(u(t)))}function l(t){var n=t.clone(),r="_cache"+a.nextUid();return n.id&&(n.id+=r),e.forEach(n.querySelectorAll("[id]"),function(t){t.id+=r}),n}function u(t){return function(e){return g[t]=h(e)?e:new f(e,n[t]),g[t].clone()}}function d(t){var e=n[t];return p(e.url).then(function(t){return new f(t,e)})}function m(t){function e(t){var e="icon "+t+" not found";return o.warn(e),i.reject(e||t)}var r=t.substring(0,t.lastIndexOf(":"))||"$default",a=n[r];return a?p(a.url).then(function(n){var r=t.slice(t.lastIndexOf(":")+1),i=n.querySelector("#"+r);return i?new f(i,a):e(t)}):e(t)}function p(n){return b.test(n)?function(n){var r=b.exec(n),o=/base64/i.test(n)?t.atob(r[2]):r[2];return i.when(e.element(o)[0])}(n):function(t){return i(function(n,i){r(t,!0).then(function(r){v[t]||(v[t]=e.element("<div>").append(r)[0].querySelector("svg")),n(v[t])},function(t){var n=e.isString(t)?t:t.message||t.data||t.statusText;o.warn(n),i(t)})})}(n)}function h(t){return e.isDefined(t.element)&&e.isDefined(t.config)}function f(t,n){t&&"svg"!=t.tagName&&(t=e.element('<svg xmlns="http://www.w3.org/2000/svg">').append(t.cloneNode(!0))[0]),t.getAttribute("xmlns")||t.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=t,this.config=n,this.prepare()}var g={},v={},$=/[-\w@:%\+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%\+.~#?&//=]*)?/i,b=/^data:image\/svg\+xml[\s*;\w\-\=]*?(base64)?,(.*)$/i;return f.prototype={clone:function(){return this.element.cloneNode(!0)},prepare:function(){var t=this.config?this.config.viewBoxSize:n.defaultViewBoxSize;e.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+t+" "+t,focusable:!1},function(t,e){this.element.setAttribute(e,t)},this)}},c.fontSet=function(t){if(e.isUndefined(t)||!t||!t.length)return n.defaultFontSet;var r=t;return e.forEach(n.fontSets,function(e){e.alias==t&&(r=e.fontSet||r)}),r},c}i.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],e.module("material.components.icon").constant("$$mdSvgRegistry",{mdTabsArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4=",mdClose:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xOSA2LjQxbC0xLjQxLTEuNDEtNS41OSA1LjU5LTUuNTktNS41OS0xLjQxIDEuNDEgNS41OSA1LjU5LTUuNTkgNS41OSAxLjQxIDEuNDEgNS41OS01LjU5IDUuNTkgNS41OSAxLjQxLTEuNDEtNS41OS01LjU5eiIvPjwvZz48L3N2Zz4=",mdCancel:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xMiAyYy01LjUzIDAtMTAgNC40Ny0xMCAxMHM0LjQ3IDEwIDEwIDEwIDEwLTQuNDcgMTAtMTAtNC40Ny0xMC0xMC0xMHptNSAxMy41OWwtMS40MSAxLjQxLTMuNTktMy41OS0zLjU5IDMuNTktMS40MS0xLjQxIDMuNTktMy41OS0zLjU5LTMuNTkgMS40MS0xLjQxIDMuNTkgMy41OSAzLjU5LTMuNTkgMS40MSAxLjQxLTMuNTkgMy41OSAzLjU5IDMuNTl6Ii8+PC9nPjwvc3ZnPg==",mdMenu:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0zLDZIMjFWOEgzVjZNMywxMUgyMVYxM0gzVjExTTMsMTZIMjFWMThIM1YxNloiIC8+PC9zdmc+",mdToggleArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==",mdCalendar:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgM2gtMVYxaC0ydjJIOFYxSDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDE5YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVY4aDE0djExek03IDEwaDV2NUg3eiIvPjwvc3ZnPg==",mdChecked:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+"}).provider("$mdIcon",n);var o={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};n.prototype={icon:function(t,e,n){return-1==t.indexOf(":")&&(t="$default:"+t),o[t]=new r(e,n),this},iconSet:function(t,e,n){return o[t]=new r(e,n),this},defaultIconSet:function(t,e){return o.$default||(o.$default=new r(t,e)),o.$default.viewBoxSize=e||o.defaultViewBoxSize,this},defaultViewBoxSize:function(t){return o.defaultViewBoxSize=t,this},fontSet:function(t,e){return o.fontSets.push({alias:t,fontSet:e||t}),this},defaultFontSet:function(t){return o.defaultFontSet=t||"",this},defaultIconSize:function(t){return o.defaultIconSize=t,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(t,e,n,r,a){return i(o,t,e,n,r,a)}]}}(),function(){function t(t,r,i,o,a,s,c,l,u){var d,m,p=a.prefixer(),h=this;this.nestLevel=parseInt(r.mdNestLevel,10)||0,this.init=function(n,r){r=r||{},d=n,(m=i[0].querySelector(p.buildSelector(["ng-click","ng-mouseenter"]))).setAttribute("aria-expanded","false"),this.isInMenuBar=r.isInMenuBar,this.nestedMenus=a.nodesToArray(d[0].querySelectorAll(".md-nested-menu")),d.on("$mdInterimElementRemove",function(){h.isOpen=!1,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)})}),a.nextTick(function(){h.onIsOpenChanged(h.isOpen)});var s="menu_container_"+a.nextUid();d.attr("id",s),e.element(m).attr({"aria-owns":s,"aria-haspopup":"true"}),o.$on("$destroy",e.bind(this,function(){this.disableHoverListener(),t.destroy()})),d.on("$destroy",function(){t.destroy()})};var f,g,v=[];this.enableHoverListener=function(){v.push(c.$on("$mdMenuOpen",function(t,e){d[0].contains(e[0])&&(h.currentlyOpenMenu=e.controller("mdMenu"),h.isAlreadyOpening=!1,h.currentlyOpenMenu.registerContainerProxy(h.triggerContainerProxy.bind(h)))})),v.push(c.$on("$mdMenuClose",function(t,e){d[0].contains(e[0])&&(h.currentlyOpenMenu=n)})),(g=e.element(a.nodesToArray(d[0].children[0].children))).on("mouseenter",h.handleMenuItemHover),g.on("mouseleave",h.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;v.length;)v.shift()();g&&g.off("mouseenter",h.handleMenuItemHover),g&&g.off("mouseleave",h.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(t){if(!h.isAlreadyOpening){var n=t.target.querySelector("md-menu")||a.getClosest(t.target,"MD-MENU");f=s(function(){if(n&&(n=e.element(n).controller("mdMenu")),h.currentlyOpenMenu&&h.currentlyOpenMenu!=n){var t=h.nestLevel+1;h.currentlyOpenMenu.close(!0,{closeTo:t}),h.isAlreadyOpening=!!n,n&&n.open()}else n&&!n.isOpen&&n.open&&(h.isAlreadyOpening=!!n,n&&n.open())},n?100:250);var r=t.currentTarget.querySelector(".md-button:not([disabled])");r&&r.focus()}},this.handleMenuItemMouseLeave=function(){f&&(s.cancel(f),f=n)},this.open=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),h.isOpen||(h.enableHoverListener(),h.isOpen=!0,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)}),(m=m||(e?e.target:i[0])).setAttribute("aria-expanded","true"),o.$emit("$mdMenuOpen",i),t.show({scope:o,mdMenuCtrl:h,nestLevel:h.nestLevel,element:d,target:m,preserveElement:!0,parent:"body"}).finally(function(){m.setAttribute("aria-expanded","false"),h.disableHoverListener()}))},this.onIsOpenChanged=function(t){t?(d.attr("aria-hidden","false"),i[0].classList.add("md-open"),e.forEach(h.nestedMenus,function(t){t.classList.remove("md-open")})):(d.attr("aria-hidden","true"),i[0].classList.remove("md-open")),o.$mdMenuIsOpen=h.isOpen},this.focusMenuContainer=function(){var t=d[0].querySelector(p.buildSelector(["md-menu-focus-target","md-autofocus"]));t||(t=d[0].querySelector(".md-button:not([disabled])")),t.focus()},this.registerContainerProxy=function(t){this.containerProxy=t},this.triggerContainerProxy=function(t){this.containerProxy&&this.containerProxy(t)},this.destroy=function(){return h.isOpen?t.destroy():l.when(!1)},this.close=function(n,r){if(h.isOpen){h.isOpen=!1,a.nextTick(function(){h.onIsOpenChanged(h.isOpen)});var s=e.extend({},r,{skipFocus:n});if(o.$emit("$mdMenuClose",i,s),t.hide(null,r),!n){var c=h.restoreFocusTo||i.find("button")[0];c instanceof e.element&&(c=c[0]),c&&c.focus()}}},this.positionMode=function(){var t=(r.mdPositionMode||"target").split(" ");return 1==t.length&&t.push(t[0]),{left:t[0],top:t[1]}},this.offsets=function(){var t=(r.mdOffset||"0 0").split(" ").map(parseFloat);if(2==t.length)return{left:t[0],top:t[1]};if(1==t.length)return{top:t[0],left:t[0]};throw Error("Invalid offsets specified. Please follow format <x, y> or <n>")},o.$mdMenu={open:this.open,close:this.close},o.$mdOpenMenu=e.bind(this,function(){return u.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}t.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],e.module("material.components.menu").controller("mdMenuCtrl",t)}(),function(){function t(t){function n(t,n,r,i){var o=i[0],a=!!i[1],s=e.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),c=n.children()[1];n.addClass("_md"),c.hasAttribute("role")||c.setAttribute("role","menu"),s.append(c),n.on("$destroy",function(){s.remove()}),n.append(s),s[0].style.display="none",o.init(s,{isInMenuBar:a})}var r="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:function(i){i.addClass("md-menu");var o=i.children()[0],a=i.children()[1],s=t.prefixer();s.hasAttribute(o,"ng-click")||(o=o.querySelector(s.buildSelector(["ng-click","ng-mouseenter"]))||o);var c="MD-BUTTON"===o.nodeName||"BUTTON"===o.nodeName;if(o&&c&&!o.hasAttribute("type")&&o.setAttribute("type","button"),!o)throw Error(r+"Expected the menu to have a trigger element.");if(!a||"MD-MENU-CONTENT"!==a.nodeName)throw Error(r+"Expected the menu to contain a `md-menu-content` element.");o&&o.setAttribute("aria-haspopup","true");var l=i[0].querySelectorAll("md-menu"),u=parseInt(i[0].getAttribute("md-nest-level"),10)||0;return l&&e.forEach(t.nodesToArray(l),function(t){t.hasAttribute("md-position-mode")||t.setAttribute("md-position-mode","cascade"),t.classList.add("_md-nested-menu"),t.setAttribute("md-nest-level",u+1)}),n}}}t.$inject=["$mdUtil"],e.module("material.components.menu").directive("mdMenu",t)}(),function(){function t(t){function r(t,r,a,s,c,l,u,d,m,p){function h(n,r,i){return i.nestLevel?e.noop:(i.disableParentScroll&&!t.getClosest(i.target,"MD-DIALOG")?i.restoreScroll=t.disableScrollAround(i.element,i.parent):i.disableParentScroll=!1,i.hasBackdrop&&(i.backdrop=t.createBackdrop(n,"md-menu-backdrop md-click-catcher"),m.enter(i.backdrop,s[0].body)),function(){i.backdrop&&i.backdrop.remove(),i.disableParentScroll&&i.restoreScroll()})}function f(e,n,r,i){for(var o,a=t.getClosest(e.target,"MD-MENU-ITEM"),s=t.nodesToArray(n[0].children),c=s.indexOf(a)+i;c>=0&&c<s.length&&!(o=g(s[c].querySelector(".md-button")));c+=i);return o}function g(t){if(t&&-1!=t.getAttribute("tabindex"))return t.focus(),s[0].activeElement==t}function v(t,e){e.preserveElement?i(t).style.display="none":i(t).parentNode===i(e.parent)&&i(e.parent).removeChild(i(t))}function $(e,r){var i,a=e[0],l=e[0].firstElementChild,u=l.getBoundingClientRect(),d=s[0].body.getBoundingClientRect(),m=c.getComputedStyle(l),p=r.target[0].querySelector(b.buildSelector("md-menu-origin"))||r.target[0],h=p.getBoundingClientRect(),f={left:d.left+o,top:Math.max(d.top,0)+o,bottom:Math.max(d.bottom,Math.max(d.top,0)+d.height)-o,right:d.right-o},g={top:0,left:0,right:0,bottom:0},v={top:0,left:0,right:0,bottom:0},$=r.mdMenuCtrl.positionMode();"target"!=$.top&&"target"!=$.left&&"target-right"!=$.left||(i=function(){for(var t=0;t<l.children.length;++t)if("none"!=c.getComputedStyle(l.children[t]).display)return l.children[t]}())&&(g=(i=(i=i.firstElementChild||i).querySelector(b.buildSelector("md-menu-align-target"))||i).getBoundingClientRect(),v={top:parseFloat(a.style.top||0),left:parseFloat(a.style.left||0)});var y={},E="top ";switch($.top){case"target":y.top=v.top+h.top-g.top;break;case"cascade":y.top=h.top-parseFloat(m.paddingTop)-p.style.top;break;case"bottom":y.top=h.top+h.height;break;default:throw new Error('Invalid target mode "'+$.top+'" specified for md-menu on Y axis.')}var C="rtl"==t.bidi();switch($.left){case"target":y.left=v.left+h.left-g.left,E+=C?"right":"left";break;case"target-left":y.left=h.left,E+="left";break;case"target-right":y.left=h.right-u.width+(u.right-g.right),E+="right";break;case"cascade":var w=C?h.left-u.width<f.left:h.right+u.width<f.right;y.left=w?h.right-p.style.left:h.left-p.style.left-u.width,E+=w?"left":"right";break;case"right":C?(y.left=h.right-h.width,E+="left"):(y.left=h.right-u.width,E+="right");break;case"left":C?(y.left=h.right-u.width,E+="right"):(y.left=h.left,E+="left");break;default:throw new Error('Invalid target mode "'+$.left+'" specified for md-menu on X axis.')}var M=r.mdMenuCtrl.offsets();y.top+=M.top,y.left+=M.left,function(t){t.top=Math.max(Math.min(t.top,f.bottom-a.offsetHeight),f.top),t.left=Math.max(Math.min(t.left,f.right-a.offsetWidth),f.left)}(y);var A=Math.round(100*Math.min(h.width/a.offsetWidth,1))/100,k=Math.round(100*Math.min(h.height/a.offsetHeight,1))/100;return{top:Math.round(y.top),left:Math.round(y.left),transform:r.alreadyOpen?n:t.supplant("scale({0},{1})",[A,k]),transformOrigin:E}}var b=t.prefixer(),y=t.dom.animator;return{parent:"body",onShow:function(n,i,o){function s(){return o.backdrop?(o.backdrop.on("click",m),function(){o.backdrop.off("click",m)}):e.noop}function m(t){t.preventDefault(),t.stopPropagation(),n.$apply(function(){o.mdMenuCtrl.close(!0,{closeAll:!0})})}function g(){function r(e){var n;switch(e.keyCode){case a.KEY_CODE.ESCAPE:o.mdMenuCtrl.close(!1,{closeAll:!0}),n=!0;break;case a.KEY_CODE.UP_ARROW:f(e,o.menuContentEl,0,-1)||o.nestLevel||o.mdMenuCtrl.triggerContainerProxy(e),n=!0;break;case a.KEY_CODE.DOWN_ARROW:f(e,o.menuContentEl,0,1)||o.nestLevel||o.mdMenuCtrl.triggerContainerProxy(e),n=!0;break;case a.KEY_CODE.LEFT_ARROW:o.nestLevel?o.mdMenuCtrl.close():o.mdMenuCtrl.triggerContainerProxy(e),n=!0;break;case a.KEY_CODE.RIGHT_ARROW:var r=t.getClosest(e.target,"MD-MENU");r&&r!=o.parent[0]?e.target.click():o.mdMenuCtrl.triggerContainerProxy(e),n=!0}n&&(e.preventDefault(),e.stopImmediatePropagation())}function i(e){function r(t,e){if(!t)return!1;for(var n,r=0;n=e[r];++r)if(b.hasAttribute(t,n))return!0;return!1}var i=e.target;do{if(i==o.menuContentEl[0])return;if((r(i,["ng-click","ng-href","ui-sref"])||"BUTTON"==i.nodeName||"MD-BUTTON"==i.nodeName)&&!r(i,["md-prevent-menu-close"])){var a=t.getClosest(i,"MD-MENU");i.hasAttribute("disabled")||a&&a!=o.parent[0]||n.$apply(function(){o.mdMenuCtrl.close(!0,{closeAll:!0})});break}}while(i=i.parentNode)}if(!o.menuContentEl[0])return e.noop;o.menuContentEl.on("keydown",r),o.menuContentEl[0].addEventListener("click",i,!0);var s=o.menuContentEl[0].querySelector(b.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!s)for(var c=o.menuContentEl[0].children.length,l=0;l<c;l++){var u=o.menuContentEl[0].children[l];if(s=u.querySelector(".md-button:not([disabled])"))break;if(u.firstElementChild&&!u.firstElementChild.disabled){s=u.firstElementChild;break}}return s&&s.focus(),function(){o.menuContentEl.off("keydown",r),o.menuContentEl[0].removeEventListener("click",i,!0)}}return function(){if(!o.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");e.extend(o,{alreadyOpen:!1,isRemoved:!1,target:e.element(o.target),parent:e.element(o.parent),menuContentEl:e.element(i[0].querySelector("md-menu-content"))})}(),o.menuContentEl[0]?r.inherit(o.menuContentEl,o.target):p.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",i),o.cleanupResizing=function(){var t=function(t,e){return u.throttle(function(){if(!o.isRemoved){var n=$(t,e);t.css(y.toCss(n))}})}(i,o);return c.addEventListener("resize",t),c.addEventListener("orientationchange",t),function(){c.removeEventListener("resize",t),c.removeEventListener("orientationchange",t)}}(),o.hideBackdrop=h(n,i,o),(o.parent.append(i),i[0].style.display="",l(function(t){var e=$(i,o);i.removeClass("md-leave"),d(i,{addClass:"md-active",from:y.toCss(e),to:y.toCss({transform:""})}).start().then(t)})).then(function(t){return o.alreadyOpen=!0,o.cleanupInteraction=g(),o.cleanupBackdrop=s(),i.addClass("md-clickable"),t})},onRemove:function(t,e,n){function r(){e.removeClass("md-active"),v(e,n),n.alreadyOpen=!1}return n.cleanupInteraction(),n.cleanupBackdrop(),n.cleanupResizing(),n.hideBackdrop(),e.removeClass("md-clickable"),!0===n.$destroy?r():d(e,{addClass:"md-leave"}).start().then(r)},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0}}function i(t){return t instanceof e.element&&(t=t[0]),t}r.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var o=8;return t("$mdMenu").setDefaults({methods:["target"],options:r})}t.$inject=["$$interimElementProvider"],e.module("material.components.menu").provider("$mdMenu",t)}(),function(){function t(t,n,i,o,a,s,c,l){this.$element=i,this.$attrs=o,this.$mdConstant=a,this.$mdUtil=c,this.$document=s,this.$scope=t,this.$rootScope=n,this.$timeout=l;var u=this;e.forEach(r,function(t){u[t]=e.bind(u,u[t])})}t.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],e.module("material.components.menuBar").controller("MenuBarController",t);var r=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];t.prototype.init=function(){var t=this.$element,e=this.$mdUtil,r=this.$scope,i=this,o=[];t.on("keydown",this.handleKeyDown),this.parentToolbar=e.getClosest(t,"MD-TOOLBAR"),o.push(this.$rootScope.$on("$mdMenuOpen",function(e,n){-1!=i.getMenus().indexOf(n[0])&&(t[0].classList.add("md-open"),n[0].classList.add("md-open"),i.currentlyOpenMenu=n.controller("mdMenu"),i.currentlyOpenMenu.registerContainerProxy(i.handleKeyDown),i.enableOpenOnHover())})),o.push(this.$rootScope.$on("$mdMenuClose",function(r,o,a){var s=i.getMenus();if(-1!=s.indexOf(o[0])&&(t[0].classList.remove("md-open"),o[0].classList.remove("md-open")),t[0].contains(o[0])){for(var c=o[0];c&&-1==s.indexOf(c);)c=e.getClosest(c,"MD-MENU",!0);c&&(a.skipFocus||c.querySelector("button:not([disabled])").focus(),i.currentlyOpenMenu=n,i.disableOpenOnHover(),i.setKeyboardMode(!0))}})),r.$on("$destroy",function(){for(i.disableOpenOnHover();o.length;)o.shift()()}),this.setKeyboardMode(!0)},t.prototype.setKeyboardMode=function(t){t?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},t.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var t=this;t.openOnHoverEnabled=!0,t.parentToolbar&&(t.parentToolbar.classList.add("md-has-open-menu"),t.$mdUtil.nextTick(function(){e.element(t.parentToolbar).on("click",t.handleParentClick)},!1)),e.element(t.getMenus()).on("mouseenter",t.handleMenuHover)}},t.prototype.handleMenuHover=function(t){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(t)},t.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),e.element(this.parentToolbar).off("click",this.handleParentClick)),e.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},t.prototype.scheduleOpenHoveredMenu=function(t){var n=e.element(t.currentTarget).controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(n)},t.prototype.scheduleOpenMenu=function(t){var e=this,r=this.$timeout;t!=e.currentlyOpenMenu&&(r.cancel(e.pendingMenuOpen),e.pendingMenuOpen=r(function(){e.pendingMenuOpen=n,e.currentlyOpenMenu&&e.currentlyOpenMenu.close(!0,{closeAll:!0}),t.open()},200,!1))},t.prototype.handleKeyDown=function(t){var n=this.$mdConstant.KEY_CODE,r=this.currentlyOpenMenu,i=r&&r.isOpen;this.setKeyboardMode(!0);var o,a,s;switch(t.keyCode){case n.DOWN_ARROW:r?r.focusMenuContainer():this.openFocusedMenu(),o=!0;break;case n.UP_ARROW:r&&r.close(),o=!0;break;case n.LEFT_ARROW:a=this.focusMenu(-1),i&&(s=e.element(a).controller("mdMenu"),this.scheduleOpenMenu(s)),o=!0;break;case n.RIGHT_ARROW:a=this.focusMenu(1),i&&(s=e.element(a).controller("mdMenu"),this.scheduleOpenMenu(s)),o=!0}o&&(t&&t.preventDefault&&t.preventDefault(),t&&t.stopImmediatePropagation&&t.stopImmediatePropagation())},t.prototype.focusMenu=function(t){var e=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&&(n=this.getOpenMenuIndex());var r=!1;if(-1==n?(n=0,r=!0):(t<0&&n>0||t>0&&n<e.length-t)&&(n+=t,r=!0),r)return e[n].querySelector("button").focus(),e[n]},t.prototype.openFocusedMenu=function(){var t=this.getFocusedMenu();t&&e.element(t).controller("mdMenu").open()},t.prototype.getMenus=function(){var t=this.$element;return this.$mdUtil.nodesToArray(t[0].children).filter(function(t){return"MD-MENU"==t.nodeName})},t.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},t.prototype.getFocusedMenuIndex=function(){var t=this.$mdUtil.getClosest(this.$document[0].activeElement,"MD-MENU");return t?this.getMenus().indexOf(t):-1},t.prototype.getOpenMenuIndex=function(){for(var t=this.getMenus(),e=0;e<t.length;++e)if(t[e].classList.contains("md-open"))return e;return-1},t.prototype.handleParentClick=function(t){var n=this.querySelector("md-menu.md-open");n&&!n.contains(t.target)&&e.element(n).controller("mdMenu").close(!0,{closeAll:!0})}}(),function(){function t(t,n){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(r,i){return i.ariaRole||r[0].setAttribute("role","menubar"),e.forEach(r[0].children,function(n){if("MD-MENU"==n.nodeName){n.hasAttribute("md-position-mode")||(n.setAttribute("md-position-mode","left bottom"),n.querySelector("button, a, md-button").setAttribute("role","menuitem"));var r=t.nodesToArray(n.querySelectorAll("md-menu-content"));e.forEach(r,function(t){t.classList.add("md-menu-bar-menu"),t.classList.add("md-dense"),t.hasAttribute("width")||t.setAttribute("width",5)})}}),r.find("md-menu-item").addClass("md-in-menu-bar"),function(t,e,r,i){e.addClass("_md"),n(t,e),i.init()}}}}t.$inject=["$mdUtil","$mdTheming"],e.module("material.components.menuBar").directive("mdMenuBar",t)}(),function(){e.module("material.components.menuBar").directive("mdMenuDivider",function(){return{restrict:"E",compile:function(t,e){e.role||t[0].setAttribute("role","separator")}}})}(),function(){function t(t,e,n){this.$element=e,this.$attrs=n,this.$scope=t}t.$inject=["$scope","$element","$attrs"],e.module("material.components.menuBar").controller("MenuItemController",t),t.prototype.init=function(t){var e=this.$element,n=this.$attrs;this.ngModel=t,"checkbox"!=n.type&&"radio"!=n.type||(this.mode=n.type,this.iconEl=e[0].children[0],this.buttonEl=e[0].children[1],t&&this.initClickListeners())},t.prototype.clearNgAria=function(){var t=this.$element[0],n=["role","tabindex","aria-invalid","aria-checked"];e.forEach(n,function(e){t.removeAttribute(e)})},t.prototype.initClickListeners=function(){function t(){if("radio"==s){var t=a.ngValue?o.$eval(a.ngValue):a.value;return i.$modelValue==t}return i.$modelValue}function n(t){t?l.off("click",u):l.on("click",u)}var r=this,i=this.ngModel,o=this.$scope,a=this.$attrs,s=(this.$element,this.mode);this.handleClick=e.bind(this,this.handleClick);var c=this.iconEl,l=e.element(this.buttonEl),u=this.handleClick;a.$observe("disabled",n),n(a.disabled),i.$render=function(){r.clearNgAria(),t()?(c.style.display="",l.attr("aria-checked","true")):(c.style.display="none",l.attr("aria-checked","false"))},o.$$postDigest(i.$render)},t.prototype.handleClick=function(t){var e,n=this.mode,r=this.ngModel,i=this.$attrs;"checkbox"==n?e=!r.$modelValue:"radio"==n&&(e=i.ngValue?this.$scope.$eval(i.ngValue):i.value),r.$setViewValue(e),r.$render()}}(),function(){function t(t,n,r){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:n.BEFORE_NG_ARIA,compile:function(n,i){function o(t,r,i){(i=i||n)instanceof e.element&&(i=i[0]),i.hasAttribute(t)||i.setAttribute(t,r)}var a=i.type;if("checkbox"!=a&&"radio"!=a||!n.hasClass("md-in-menu-bar"))o("role","menuitem",n[0].querySelector("md-button, button, a"));else{var s=n[0].textContent,c=e.element('<md-button type="button"></md-button>'),l='<md-icon md-svg-src="'+r.mdChecked+'"></md-icon>';c.html(s),c.attr("tabindex","0"),n.html(""),n.append(e.element(l)),n.append(c),n.addClass("md-indent").removeClass("md-in-menu-bar"),o("role","checkbox"==a?"menuitemcheckbox":"menuitemradio",c),function(r){var i=t.prefixer(r);e.forEach(i,function(t){if(n[0].hasAttribute(t)){var e=n[0].getAttribute(t);c[0].setAttribute(t,e),n[0].removeAttribute(t)}})}("ng-disabled")}return function(t,e,n,r){var i=r[0],o=r[1];i.init(o)}}}}t.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],e.module("material.components.menuBar").directive("mdMenuItem",t)}(),function(){function t(t,n,r,i,o,a){function s(a,s,b){function y(e,r,o,s,c,u){function h(t){T.attr("stroke-dashoffset",l($,b,t,w)),T.attr("transform","rotate("+C+" "+$/2+" "+$/2+")")}var f=++O,g=i.now(),v=r-e,$=d(a.mdDiameter),b=m($),y=o||n.easeFn,E=s||n.duration,C=-90*(c||0),w=u||100;r===e?h(r):M=p(function n(){var r=t.Math.max(0,t.Math.min(i.now()-g,E));h(y(r,e,v,E)),f===O&&r<E&&(M=p(n))})}function E(){y(_,S,n.easeFnIndeterminate,n.durationIndeterminate,N,75),N=++N%4}function C(){A||(A=o(E,n.durationIndeterminate,0,!1),E(),s.addClass($).removeAttr("aria-valuenow"))}function w(){A&&(o.cancel(A),A=null,s.removeClass($))}var M,A,k=s[0],x=e.element(k.querySelector("svg")),T=e.element(k.querySelector("path")),_=n.startIndeterminate,S=n.endIndeterminate,N=0,O=0;r(s),s.toggleClass(v,b.hasOwnProperty("disabled")),a.mdMode===g&&C(),a.$on("$destroy",function(){w(),M&&h(M)}),a.$watchGroup(["value","mdMode",function(){var t=k.disabled;return!0===t||!1===t?t:e.isDefined(s.attr("disabled"))}],function(t,e){var n=t[1],r=t[2];if(r!==e[2]&&s.toggleClass(v,!!r),r)w();else if(n!==f&&n!==g&&(n=g,b.$set("mdMode",n)),n===g)C();else{var i=u(t[0]);w(),s.attr("aria-valuenow",i),y(u(e[0]),i)}}),a.$watch("mdDiameter",function(e){var n=d(e),r=m(n),i=u(a.value),o=n/2+"px",p={width:n+"px",height:n+"px"};x[0].setAttribute("viewBox","0 0 "+n+" "+n),x.css(p).css("transform-origin",o+" "+o+" "+o),s.css(p),T.attr("stroke-width",r),T.attr("stroke-linecap","square"),a.mdMode==g?(T.attr("d",c(n,r,!0)),T.attr("stroke-dasharray",(n-r)*t.Math.PI*.75),T.attr("stroke-dashoffset",l(n,r,1,75))):(T.attr("d",c(n,r,!1)),T.attr("stroke-dasharray",(n-r)*t.Math.PI),T.attr("stroke-dashoffset",l(n,r,0,100)),y(i,i))})}function c(t,e,n){var r=t/2,i=e/2,o=r+","+i,a=r-i;return"M"+o+"A"+a+","+a+" 0 1 1 "+(i+","+r)+(n?"":"A"+a+","+a+" 0 0 1 "+o)}function l(e,n,r,i){return(e-n)*t.Math.PI*(3*(i||100)/100-r/100)}function u(e){return t.Math.max(0,t.Math.min(e||0,100))}function d(t){var e=n.progressSize;if(t){var r=parseFloat(t);return t.lastIndexOf("%")===t.length-1&&(r=r/100*e),r}return e}function m(t){return n.strokeWidth/100*t}var p=t.requestAnimationFrame||t.webkitRequestAnimationFrame||e.noop,h=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame||e.noop,f="determinate",g="indeterminate",v="_md-progress-circular-disabled",$="md-mode-indeterminate";return{restrict:"E",scope:{value:"@",mdDiameter:"@",mdMode:"@"},template:'<svg xmlns="http://www.w3.org/2000/svg"><path fill="none"/></svg>',compile:function(t,n){if(t.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),e.isUndefined(n.mdMode)){var r=n.hasOwnProperty("value")?f:g;n.$set("mdMode",r)}else n.$set("mdMode",n.mdMode.trim());return s}}}t.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],e.module("material.components.progressCircular").directive("mdProgressCircular",t)}(),function(){e.module("material.components.progressCircular").provider("$mdProgressCircular",function(){function t(t,e,n,r){return n*t/r+e}function n(t,e,n,r){var i=(t/=r)*t,o=i*t;return e+n*(6*o*i+-15*i*i+10*o)}var r={progressSize:50,strokeWidth:10,duration:100,easeFn:t,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:n,easingPresets:{linearEase:t,materialEase:n}};return{configure:function(t){return r=e.extend(r,t||{})},$get:function(){return r}}})}(),function(){e.module("material.components.tabs").directive("mdTab",function(){function t(t,r,i,o){if(o){var a=o.getTabElementIndex(r),s=n(r,"md-tab-body").remove(),c=n(r,"md-tab-label").remove(),l=o.insertTab({scope:t,parent:t.$parent,index:a,element:r,template:s.html(),label:c.html()},a);t.select=t.select||e.noop,t.deselect=t.deselect||e.noop,t.$watch("active",function(t){t&&o.select(l.getIndex(),!0)}),t.$watch("disabled",function(){o.refreshIndex()}),t.$watch(function(){return o.getTabElementIndex(r)},function(t){l.index=t,o.updateTabOrder()}),t.$on("$destroy",function(){o.removeTab(l)})}}function n(t,n){for(var r=t[0].children,i=0,o=r.length;i<o;i++){var a=r[i];if(a.tagName===n.toUpperCase())return e.element(a)}return e.element()}return{require:"^?mdTabs",terminal:!0,compile:function(r,i){var o=n(r,"md-tab-label"),a=n(r,"md-tab-body");if(0===o.length&&(o=e.element("<md-tab-label></md-tab-label>"),i.label?o.text(i.label):o.append(r.contents()),0===a.length)){var s=r.contents().detach();(a=e.element("<md-tab-body></md-tab-body>")).append(s)}return r.append(o),a.html()&&r.append(a),t},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect"}}})}(),function(){e.module("material.components.tabs").directive("mdTabItem",function(){return{require:"^?mdTabs",link:function(t,e,n,r){r&&r.attachRipple(t,e)}}})}(),function(){e.module("material.components.tabs").directive("mdTabLabel",function(){return{terminal:!0}})}(),function(){function t(t){return{restrict:"A",compile:function(e,n){var r=t(n.mdTabScroll,null,!0);return function(t,e){e.on("mousewheel",function(e){t.$apply(function(){r(t,{$event:e})})})}}}}t.$inject=["$parse"],e.module("material.components.tabs").directive("mdTabScroll",t)}(),function(){function t(t,r,i,o,a,s,c,l,u,d,m){function p(){Z.selectedIndex=Z.selectedIndex||0,h(),g(),f(),d(r),s.nextTick(function(){et=I(),K(),U(),G(),Z.tabs[Z.selectedIndex]&&Z.tabs[Z.selectedIndex].scope.select(),it=!0,j()})}function h(){var t=l.$mdTabsTemplate,n=e.element(r[0].querySelector("md-tab-data"));n.html(t),u(n.contents())(Z.parent),delete l.$mdTabsTemplate}function f(){e.element(i).on("resize",S),t.$on("$destroy",b)}function g(){t.$watch("$mdTabsCtrl.selectedIndex",x)}function v(t,e){var n=l.$normalize("md-"+t);e&&L(t,e),l.$observe(n,function(e){Z[t]=e})}function $(t,e){function n(e){Z[t]="false"!==e}var r=l.$normalize("md-"+t);e&&L(t,e),l.hasOwnProperty(r)&&n(l[r]),l.$observe(r,n)}function b(){rt=!0,e.element(i).off("resize",S)}function y(t){var n=I();e.element(n.wrapper).toggleClass("md-stretch-tabs",D()),G()}function E(t){Z.shouldCenterTabs=R()}function C(t,n){if(t!==n){var r=I();e.forEach(r.tabs,function(e){e.style.maxWidth=t+"px"}),s.nextTick(Z.updateInkBarStyles)}}function w(t,e){t!==e&&(Z.maxTabWidth=V(),Z.shouldCenterTabs=R(),s.nextTick(function(){Z.maxTabWidth=V(),U(Z.selectedIndex)}))}function M(t){r[t?"removeClass":"addClass"]("md-no-tab-content")}function A(n){var r=I(),i=Z.shouldCenterTabs?"":"-"+n+"px";e.element(r.paging).css(o.CSS.TRANSFORM,"translate3d("+i+", 0, 0)"),t.$broadcast("$mdTabsPaginationChanged")}function k(t,e){t!==e&&I().tabs[t]&&(U(),q())}function x(e,n){e!==n&&(Z.selectedIndex=H(e),Z.lastSelectedIndex=n,Z.updateInkBarStyles(),K(),U(e),t.$broadcast("$mdTabsChanged"),Z.tabs[n]&&Z.tabs[n].scope.deselect(),Z.tabs[e]&&Z.tabs[e].scope.select())}function T(){T.watcher||(T.watcher=t.$watch(function(){s.nextTick(function(){T.watcher&&r.prop("offsetParent")&&(T.watcher(),T.watcher=null,S())},!1)}))}function _(t,e){tt||(Z.focusIndex=Z.selectedIndex=t),e&&Z.noSelectClick||s.nextTick(function(){Z.tabs[t].element.triggerHandler("click")},!1)}function S(){Z.lastSelectedIndex=Z.selectedIndex,Z.offsetLeft=J(Z.offsetLeft),s.nextTick(function(){Z.updateInkBarStyles(),j()})}function N(t){e.element(I().inkBar).toggleClass("ng-hide",t)}function O(t){r.toggleClass("md-dynamic-height",t)}function I(){var t={},e=r[0];return t.wrapper=e.querySelector("md-tabs-wrapper"),t.canvas=t.wrapper.querySelector("md-tabs-canvas"),t.paging=t.canvas.querySelector("md-pagination-wrapper"),t.inkBar=t.paging.querySelector("md-ink-bar"),t.contents=e.querySelectorAll("md-tabs-content-wrapper > md-tab-content"),t.tabs=t.paging.querySelectorAll("md-tab-item"),t.dummies=t.canvas.querySelectorAll("md-dummy-tab"),t}function D(){switch(Z.stretchTabs){case"always":return!0;case"never":return!1;default:return!Z.shouldPaginate&&i.matchMedia("(max-width: 600px)").matches}}function R(){return Z.centerTabs&&!Z.shouldPaginate}function P(){if(Z.noPagination||!it)return!1;var t=r.prop("clientWidth");return e.forEach(I().dummies,function(e){t-=e.offsetWidth}),t<0}function H(t){if(-1===t)return-1;var e,n,r=Math.max(Z.tabs.length-t,t);for(e=0;e<=r;e++){if((n=Z.tabs[t+e])&&!0!==n.scope.disabled)return n.getIndex();if((n=Z.tabs[t-e])&&!0!==n.scope.disabled)return n.getIndex()}return t}function L(t,e,n){Object.defineProperty(Z,t,{get:function(){return n},set:function(t){var r=n;n=t,e&&e(t,r)}})}function j(){Z.maxTabWidth=V(),Z.shouldPaginate=P()}function F(t){var n=0;return e.forEach(t,function(t){n+=Math.max(t.offsetWidth,t.getBoundingClientRect().width)}),Math.ceil(n)}function V(){return r.prop("clientWidth")}function B(t,e){var n,r=e?"focusIndex":"selectedIndex";for(n=Z[r]+t;Z.tabs[n]&&Z.tabs[n].scope.disabled;n+=t);Z.tabs[n]&&(Z[r]=n)}function q(){Z.styleTabItemFocus="keyboard"===m.getLastInteractionType(),I().dummies[Z.focusIndex].focus()}function U(t){var n=I();if(e.isNumber(t)||(t=Z.focusIndex),n.tabs[t]&&!Z.shouldCenterTabs){var r=n.tabs[t],i=r.offsetLeft,o=r.offsetWidth+i;Z.offsetLeft=Math.max(Z.offsetLeft,J(o-n.canvas.clientWidth+64)),Z.offsetLeft=Math.min(Z.offsetLeft,J(i))}}function z(){nt.forEach(function(t){s.nextTick(t)}),nt=[]}function W(){for(var t=!1,e=0;e<Z.tabs.length;e++)if(Z.tabs[e].hasContent){t=!0;break}Z.hasContent=t}function Y(){Z.selectedIndex=H(Z.selectedIndex),Z.focusIndex=H(Z.focusIndex)}function K(){if(!Z.dynamicHeight)return r.css("height","");if(!Z.tabs.length)return nt.push(K);var t=I(),e=t.contents[Z.selectedIndex],i=e?e.offsetHeight:0,o=t.wrapper.offsetHeight,a=i+o,l=r.prop("clientHeight");if(l!==a){"bottom"===r.attr("md-align-tabs")&&(l-=o,a-=o,r.attr("md-border-bottom")!==n&&++l),tt=!0;var u={height:l+"px"},d={height:a+"px"};r.css(u),c(r,{from:u,to:d,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){r.css({transition:"none",height:""}),s.nextTick(function(){r.css("transition","")}),tt=!1})}}function G(){var t=I();if(t.tabs[Z.selectedIndex]){if(!Z.tabs.length)return nt.push(Z.updateInkBarStyles);if(!r.prop("offsetParent"))return T();var n=Z.selectedIndex,i=t.paging.offsetWidth,o=t.tabs[n],a=o.offsetLeft,c=i-a-o.offsetWidth;Z.shouldCenterTabs&&i>F(t.tabs)&&s.nextTick(G,!1),X(),e.element(t.inkBar).css({left:a+"px",right:c+"px"})}else e.element(t.inkBar).css({left:"auto",right:"auto"})}function X(){var t=I(),n=Z.selectedIndex,r=Z.lastSelectedIndex,i=e.element(t.inkBar);e.isNumber(r)&&i.toggleClass("md-left",n<r).toggleClass("md-right",n>r)}function J(t){var e=I();if(!e.tabs.length||!Z.shouldPaginate)return 0;var n=e.tabs[e.tabs.length-1],r=n.offsetLeft+n.offsetWidth;return t=Math.max(0,t),t=Math.min(r-e.canvas.clientWidth,t)}function Q(t){if(t.hasContent){var n=r[0].querySelectorAll('[md-tab-id="'+t.id+'"]');e.element(n).attr("aria-controls",Z.tabContentPrefix+t.id)}}var Z=this,tt=!1,et=I(),nt=[],rt=!1,it=!1;Z.$onInit=function(){v("stretchTabs",y),L("focusIndex",k,Z.selectedIndex||0),L("offsetLeft",A,0),L("hasContent",M,!1),L("maxTabWidth",C,V()),L("shouldPaginate",w,!1),$("noInkBar",N),$("dynamicHeight",O),$("noPagination"),$("swipeContent"),$("noDisconnect"),$("autoselect"),$("noSelectClick"),$("centerTabs",E),$("enableDisconnect"),Z.scope=t,Z.parent=t.$parent,Z.tabs=[],Z.lastSelectedIndex=null,Z.hasFocus=!1,Z.styleTabItemFocus=!1,Z.shouldCenterTabs=R(),Z.tabContentPrefix="tab-content-",p()},Z.updatePagination=s.debounce(j,100),Z.redirectFocus=q,Z.attachRipple=function(t,n){var r=I(),i={colorElement:e.element(r.inkBar)};a.attach(t,n,i)},Z.insertTab=function(t,n){var r=it,i={getIndex:function(){return Z.tabs.indexOf(o)},isActive:function(){return this.getIndex()===Z.selectedIndex},isLeft:function(){return this.getIndex()<Z.selectedIndex},isRight:function(){return this.getIndex()>Z.selectedIndex},shouldRender:function(){return!Z.noDisconnect||this.isActive()},hasFocus:function(){return Z.styleTabItemFocus&&Z.hasFocus&&this.getIndex()===Z.focusIndex},id:s.nextUid(),hasContent:!(!t.template||!t.template.trim())},o=e.extend(i,t);return e.isDefined(n)?Z.tabs.splice(n,0,o):Z.tabs.push(o),z(),W(),s.nextTick(function(){j(),Q(o),r&&Z.autoselect&&s.nextTick(function(){s.nextTick(function(){_(Z.tabs.indexOf(o))})})}),o},Z.removeTab=function(t){if(!rt){var e=Z.selectedIndex,n=Z.tabs.splice(t.getIndex(),1)[0];Y(),Z.selectedIndex===e&&(n.scope.deselect(),Z.tabs[Z.selectedIndex]&&Z.tabs[Z.selectedIndex].scope.select()),s.nextTick(function(){j(),Z.offsetLeft=J(Z.offsetLeft)})}},Z.select=_,Z.scroll=function(t){Z.shouldPaginate&&(t.preventDefault(),Z.offsetLeft=J(Z.offsetLeft-t.wheelDelta))},Z.nextPage=function(){var t,e,n=I(),r=n.canvas.clientWidth,i=r+Z.offsetLeft;for(t=0;t<n.tabs.length&&!((e=n.tabs[t]).offsetLeft+e.offsetWidth>i);t++);r>e.offsetWidth?Z.offsetLeft=J(e.offsetLeft):Z.offsetLeft=J(e.offsetLeft+(e.offsetWidth-r+1))},Z.previousPage=function(){var t,e,n=I();for(t=0;t<n.tabs.length&&!((e=n.tabs[t]).offsetLeft+e.offsetWidth>=Z.offsetLeft);t++);n.canvas.clientWidth>e.offsetWidth?Z.offsetLeft=J(e.offsetLeft+e.offsetWidth-n.canvas.clientWidth):Z.offsetLeft=J(e.offsetLeft)},Z.keydown=function(t){switch(t.keyCode){case o.KEY_CODE.LEFT_ARROW:t.preventDefault(),B(-1,!0);break;case o.KEY_CODE.RIGHT_ARROW:t.preventDefault(),B(1,!0);break;case o.KEY_CODE.SPACE:case o.KEY_CODE.ENTER:t.preventDefault(),tt||_(Z.focusIndex)}},Z.canPageForward=function(){var t=I(),e=t.tabs[t.tabs.length-1];return e&&e.offsetLeft+e.offsetWidth>t.canvas.clientWidth+Z.offsetLeft},Z.canPageBack=function(){return Z.offsetLeft>0},Z.refreshIndex=Y,Z.incrementIndex=B,Z.getTabElementIndex=function(t){var e=r[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(e,t[0])},Z.updateInkBarStyles=s.debounce(G,100),Z.updateTabOrder=s.debounce(function(){var t=Z.tabs[Z.selectedIndex],e=Z.tabs[Z.focusIndex];Z.tabs=Z.tabs.sort(function(t,e){return t.index-e.index}),Z.selectedIndex=Z.tabs.indexOf(t),Z.focusIndex=Z.tabs.indexOf(e)},100),Z.getFocusedTabId=function(){var t=Z.tabs[Z.focusIndex];return t&&t.id?"tab-item-"+t.id:null},1===e.version.major&&e.version.minor<=4&&this.$onInit()}t.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction"],e.module("material.components.tabs").controller("MdTabsController",t)}(),function(){function t(t){return{scope:{selectedIndex:"=?mdSelected"},template:function(e,n){return n.$mdTabsTemplate=e.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" aria-activedescendant="{{$mdTabsCtrl.getFocusedTabId()}}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)" role="tablist"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)"> <md-tab-item tabindex="-1" class="md-tab" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-class="{ \'md-active\': tab.isActive(), \'md-focused\': tab.hasFocus(), \'md-disabled\': tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-touch-action="pan-y" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <md-tabs-dummy-wrapper class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </md-tabs-dummy-wrapper> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> <md-tab-content id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" class="_md" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" md-swipe-touch-action="pan-y" ng-if="tab.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\': tab.isActive(), \'md-left\': tab.isLeft(), \'md-right\': tab.isRight(), \'md-no-scroll\': $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}t.$inject=["$$mdSvgRegistry"],e.module("material.components.tabs").directive("mdTabs",t)}(),function(){function t(t,e){return{require:"^?mdTabs",link:function(n,r,i,o){if(o){var a,s,c=function(){o.updatePagination(),o.updateInkBarStyles()};if("MutationObserver"in e){var l={childList:!0,subtree:!0,characterData:!0};(a=new MutationObserver(c)).observe(r[0],l),s=a.disconnect.bind(a)}else{var u=t.debounce(c,15,null,!1);r.on("DOMSubtreeModified",u),s=r.off.bind(r,"DOMSubtreeModified",u)}n.$on("$destroy",function(){s()})}}}}t.$inject=["$mdUtil","$window"],e.module("material.components.tabs").directive("mdTabsDummyWrapper",t)}(),function(){function t(t,e){return{restrict:"A",link:function(n,r,i,o){function a(){o.enableDisconnect&&e.disconnectScope(c)}function s(){o.enableDisconnect&&e.reconnectScope(c)}if(o){var c=o.enableDisconnect?n.compileScope.$new():n.compileScope;return r.html(n.template),t(r.contents())(c),e.nextTick(function(){n.$watch("connected",function(t){!1===t?a():s()}),n.$on("$destroy",s)})}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}t.$inject=["$compile","$mdUtil"],e.module("material.components.tabs").directive("mdTabsTemplate",t)}(),e.module("material.core").constant("$MD_THEME_CSS",'md-autocomplete.md-THEME_NAME-theme{background:"{{background-A100}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-100}}"}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:"{{background-600}}"}md-autocomplete.md-THEME_NAME-theme button:after{background:"{{background-600-0.3}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-A100}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li{color:"{{background-900}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li .highlight{color:"{{background-600}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover{background:"{{background-200}}"}md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-bottom-sheet.md-THEME_NAME-theme{background-color:"{{background-50}}";border-top-color:"{{background-300}}"}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:"{{foreground-1}}"}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:"{{background-50}}";color:"{{foreground-1}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:"{{primary-contrast}}";background-color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:"{{primary-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:"{{primary-600}}"}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-fab{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-raised{color:"{{background-900}}";background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon{color:"{{background-900}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:"{{background-200}}"}.md-button.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:"{{warn-contrast}}";background-color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:"{{warn-contrast}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:"{{warn-600}}"}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:"{{accent-contrast}}";background-color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}";cursor:default}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon{color:"{{foreground-3}}"}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:"{{foreground-4}}"}.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent}._md a.md-THEME_NAME-theme:not(.md-button).md-primary{color:"{{primary-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-primary:hover{color:"{{primary-700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent{color:"{{accent-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent:hover{color:"{{accent-A700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn{color:"{{warn-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn:hover{color:"{{warn-700}}"}md-card.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-hue-1}}";border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0}md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon{color:"{{background-color}}";background-color:"{{foreground-3}}"}md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead,md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme .md-ripple{color:"{{accent-A700}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:"{{accent-color-0.26}}"}md-checkbox.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:"{{accent-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:"{{primary-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:"{{primary-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:"{{warn-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:"{{warn-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled]:not(.md-checked) .md-icon{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon:after{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px "{{foreground-4}}"}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px "{{primary-color}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input{color:"{{foreground-1}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-moz-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-moz-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme md-chip{background:"{{background-300}}";color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip md-icon{color:"{{background-700}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused{background:"{{primary-color}}";color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused md-icon{color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip._md-chip-editing{background:transparent;color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:"{{background-500}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-content.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-default}}"}.md-calendar.md-THEME_NAME-theme{background:"{{background-A100}}";color:"{{background-A200-0.87}}"}.md-calendar.md-THEME_NAME-theme tr:last-child td{border-bottom-color:"{{background-200}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-300}}";color:"{{background-A200-0.87}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator{border:1px solid "{{primary-500}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled{color:"{{primary-500-0.6}}"}.md-calendar-date.md-focus .md-THEME_NAME-theme .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover{background:"{{background-300}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator{background:"{{primary-500}}";color:"{{primary-500-contrast}}";border-color:transparent}.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled{color:"{{background-A200-0.435}}"}.md-THEME_NAME-theme .md-datepicker-input{color:"{{foreground-1}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input-container{border-bottom-color:"{{foreground-4}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid,.md-warn .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar-pane{border-color:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle{border-top-color:"{{foreground-2}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon,.md-THEME_NAME-theme .md-datepicker-open.md-accent .md-datepicker-calendar-icon{color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-open.md-warn .md-datepicker-calendar-icon,.md-warn .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar{background:"{{background-A100}}"}.md-THEME_NAME-theme .md-datepicker-input-mask-opaque{box-shadow:0 0 0 9999px "{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-input-container{background:"{{background-hue-1}}"}md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions,md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions,md-divider.md-THEME_NAME-theme{border-top-color:"{{foreground-4}}"}.layout-gt-lg-row>md-divider.md-THEME_NAME-theme,.layout-gt-md-row>md-divider.md-THEME_NAME-theme,.layout-gt-sm-row>md-divider.md-THEME_NAME-theme,.layout-gt-xs-row>md-divider.md-THEME_NAME-theme,.layout-lg-row>md-divider.md-THEME_NAME-theme,.layout-md-row>md-divider.md-THEME_NAME-theme,.layout-row>md-divider.md-THEME_NAME-theme,.layout-sm-row>md-divider.md-THEME_NAME-theme,.layout-xl-row>md-divider.md-THEME_NAME-theme,.layout-xs-row>md-divider.md-THEME_NAME-theme{border-right-color:"{{foreground-4}}"}md-icon.md-THEME_NAME-theme{color:"{{foreground-2}}"}md-icon.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}md-icon.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}md-icon.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-input-container.md-THEME_NAME-theme .md-input{color:"{{foreground-1}}";border-color:"{{foreground-4}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme label.md-required:after{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-focused):not(.md-input-invalid) label.md-required:after{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation,md-input-container.md-THEME_NAME-theme .md-input-messages-animation{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation .md-char-counter,md-input-container.md-THEME_NAME-theme .md-input-messages-animation .md-char-counter{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-moz-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent md-icon{color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn md-icon{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input-message-animation,md-input-container.md-THEME_NAME-theme.md-input-invalid label{color:"{{warn-A700}}"}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:"{{foreground-3}}";background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:"{{foreground-1}}"}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:"{{background-100}}"}md-list.md-THEME_NAME-theme md-list-item .md-avatar-icon{background-color:"{{foreground-3}}";color:"{{background-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:"{{primary-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:"{{accent-color}}"}md-menu-content.md-THEME_NAME-theme{background-color:"{{background-A100}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{background-A200-0.87}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled],md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled] md-icon{color:"{{background-A200-0.25}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{background-A200-0.11}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-2}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu.md-open>button,md-menu-bar.md-THEME_NAME-theme md-menu>button:focus{outline:none;background:"{{background-200}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.2}}"}md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover{background:transparent}md-menu-content.md-THEME_NAME-theme .md-menu>.md-button:after{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.2}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-A100}}";color:"{{background-A200}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{background-A100-0.87}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{background-A100-0.87}}"}md-nav-bar.md-THEME_NAME-theme .md-nav-bar{background-color:transparent;border-color:"{{foreground-4}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button.md-unselected{color:"{{foreground-2}}"}md-nav-bar.md-THEME_NAME-theme md-nav-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar{background-color:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar{background-color:"{{warn-color}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar{background-color:"{{primary-color}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{primary-color}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-progress-circular.md-THEME_NAME-theme path{stroke:"{{primary-color}}"}md-progress-circular.md-THEME_NAME-theme.md-warn path{stroke:"{{warn-color}}"}md-progress-circular.md-THEME_NAME-theme.md-accent path{stroke:"{{accent-color}}"}._md-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-progress-linear.md-THEME_NAME-theme .md-container{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:"{{primary-color}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:"{{warn-color}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:radial-gradient("{{warn-100}}" 0,"{{warn-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:radial-gradient("{{accent-100}}" 0,"{{accent-100}}" 16%,transparent 42%)}md-radio-button.md-THEME_NAME-theme .md-off{border-color:"{{foreground-2}}"}md-radio-button.md-THEME_NAME-theme .md-on{background-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:"{{accent-A700}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on{background-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off{border-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple{color:"{{primary-600}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on{background-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off{border-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple{color:"{{warn-600}}"}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:"{{foreground-3}}"}md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple{color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple,md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple{color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked.md-primary .md-ink-ripple{color:"{{warn-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before{background-color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before{background-color:"{{warn-color-0.26}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background:"{{background-A100}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{background-600-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{background-900-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{background-400-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background:"{{background-200}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{background-900-0.87}}"}md-slider.md-THEME_NAME-theme .md-track{background-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme .md-track-ticks{color:"{{background-contrast}}"}md-slider.md-THEME_NAME-theme .md-focus-ring{background-color:"{{accent-A200-0.2}}"}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:"{{background-color}}";background-color:"{{background-color}}"}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:"{{background-color}}";border-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme.md-min .md-focus-ring{background-color:"{{foreground-3-0.38}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-thumb:after{background-color:"{{background-contrast}}";border-color:transparent}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:"{{accent-color}}";background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb-text{color:"{{accent-contrast}}"}md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring{background-color:"{{warn-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:"{{warn-color}}";background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:"{{warn-contrast}}"}md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring{background-color:"{{primary-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:"{{primary-color}}";background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:"{{primary-contrast}}"}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:transparent}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after,md-slider.md-THEME_NAME-theme[disabled][md-discrete] .md-thumb:after{background-color:"{{foreground-3}}";border-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{border-color:transparent;background-color:transparent}md-slider-container[disabled]>:first-child:not(md-slider),md-slider-container[disabled]>:last-child:not(md-slider){color:"{{foreground-3}}"}.md-subheader.md-THEME_NAME-theme{color:"{{ foreground-2-0.23 }}";background-color:"{{background-default}}"}.md-subheader.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-subheader.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-subheader.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme .md-ink-ripple{color:"{{background-500}}"}md-switch.md-THEME_NAME-theme .md-thumb{background-color:"{{background-50}}"}md-switch.md-THEME_NAME-theme .md-bar{background-color:"{{background-500}}"}md-switch.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before{background-color:"{{warn-color-0.26}}"}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:"{{background-400}}"}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toast.md-THEME_NAME-theme .md-toast-content{background-color:#323232;color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button{color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight{color:"{{accent-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-primary{color:"{{primary-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn{color:"{{warn-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar){background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon{color:"{{primary-contrast}}";fill:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{color:"{{primary-contrast-0.26}}";fill:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-contrast}}";fill:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-contrast-0.26}}";fill:"{{accent-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{color:"{{background-700-contrast}}";background-color:"{{background-700}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}')}(window,window.angular),window.ngMaterial={version:{full:"1.1.4"}},function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.io=e():t.io=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t,e){"object"===(void 0===t?"undefined":i(t))&&(e=t,t=void 0),e=e||{};var n,r=o(t),a=r.source,u=r.id,d=r.path,m=l[u]&&d in l[u].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||m?(c("ignoring socket cache for %s",a),n=s(a,e)):(l[u]||(c("new io instance for %s",a),l[u]=s(a,e)),n=l[u]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(1),a=n(7),s=n(13),c=n(3)("socket.io-client");t.exports=e=r;var l=e.managers={};e.protocol=a.protocol,e.connect=r,e.Manager=n(13),e.Socket=n(39)},function(t,e,n){(function(e){"use strict";var r=n(2),i=n(3)("socket.io-client:url");t.exports=function(t,n){var o=t;n=n||e.location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t=void 0!==n?n.protocol+"//"+t:"https://"+t),i("parse %s",t),o=r(t)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var a=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+a+":"+o.port,o.href=o.protocol+"://"+a+(n&&n.port===o.port?"":":"+o.port),o}}).call(e,function(){return this}())},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,i=t.indexOf("["),o=t.indexOf("]");-1!=i&&-1!=o&&(t=t.substring(0,i)+t.substring(i,o).replace(/:/g,";")+t.substring(o,t.length));for(var a=n.exec(t||""),s={},c=14;c--;)s[r[c]]=a[c]||"";return-1!=i&&-1!=o&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(t,e,n){(function(r){function i(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}(e=t.exports=n(5)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=i,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(i())}).call(e,n(4))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function o(t){if(d===clearTimeout)return clearTimeout(t);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){f&&p&&(f=!1,p.length?h=p.concat(h):g=-1,h.length&&s())}function s(){if(!f){var t=i(a);f=!0;for(var e=h.length;e;){for(p=h,h=[];++g<e;)p&&p[g].run();g=-1,e=h.length}p=null,f=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var u,d,m=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{d="function"==typeof clearTimeout?clearTimeout:r}catch(t){d=r}}();var p,h=[],f=!1,g=-1;m.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new c(t,e)),1!==h.length||f||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=l,m.addListener=l,m.once=l,m.off=l,m.removeListener=l,m.removeAllListeners=l,m.emit=l,m.prependListener=l,m.prependOnceListener=l,m.listeners=function(t){return[]},m.binding=function(t){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(t){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},function(t,e,n){function r(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}function i(t){function n(){if(n.enabled){var t=n,r=+new Date,i=r-(o||r);t.diff=i,t.prev=o,t.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;c++;var i=e.formatters[r];if("function"==typeof i){var o=a[c];n=i.call(t,o),a.splice(c,1),c--}return n}),e.formatArgs.call(t,a),(n.log||e.log||console.log.bind(console)).apply(t,a)}}return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=r(t),"function"==typeof e.init&&e.init(n),n}(e=t.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){e.save(t),e.names=[],e.skips=[];for(var n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(t=n[i].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(6),e.names=[],e.skips=[],e.formatters={};var o},function(t,e){function n(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=l?Math.round(t/l)+"d":t>=c?Math.round(t/c)+"h":t>=s?Math.round(t/s)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function i(t){return o(t,l,"day")||o(t,c,"hour")||o(t,s,"minute")||o(t,a,"second")||t+" ms"}function o(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var a=1e3,s=60*a,c=60*s,l=24*c,u=365.25*l;t.exports=function(t,e){e=e||{};var o=typeof t;if("string"===o&&t.length>0)return n(t);if("number"===o&&!1===isNaN(t))return e.long?i(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(){}function i(t){var n=""+t.type;return e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data&&(n+=JSON.stringify(t.data)),d("encoded %j as %s",t,n),n}function o(t,e){h.removeBlobs(t,function(t){var n=h.deconstructPacket(t),r=i(n.packet),o=n.buffers;o.unshift(r),e(o)})}function a(){this.reconstructor=null}function s(t){var n=0,r={type:Number(t.charAt(0))};if(null==e.types[r.type])return u();if(e.BINARY_EVENT===r.type||e.BINARY_ACK===r.type){for(var i="";"-"!==t.charAt(++n)&&(i+=t.charAt(n),n!=t.length););if(i!=Number(i)||"-"!==t.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(i)}if("/"===t.charAt(n+1))for(r.nsp="";++n&&","!==(a=t.charAt(n))&&(r.nsp+=a,n!==t.length););else r.nsp="/";var o=t.charAt(n+1);if(""!==o&&Number(o)==o){for(r.id="";++n;){var a=t.charAt(n);if(null==a||Number(a)!=a){--n;break}if(r.id+=t.charAt(n),n===t.length)break}r.id=Number(r.id)}return t.charAt(++n)&&(r=c(r,t.substr(n))),d("decoded %s as %j",t,r),r}function c(t,e){try{t.data=JSON.parse(e)}catch(t){return u()}return t}function l(t){this.reconPack=t,this.buffers=[]}function u(){return{type:e.ERROR,data:"parser error"}}var d=n(3)("socket.io-parser"),m=n(8),p=n(9),h=n(11),f=n(12);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=r,e.Decoder=a,r.prototype.encode=function(t,n){t.type!==e.EVENT&&t.type!==e.ACK||!p(t.data)||(t.type=t.type===e.EVENT?e.BINARY_EVENT:e.BINARY_ACK),d("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type?o(t,n):n([i(t)])},m(a.prototype),a.prototype.add=function(t){var n;if("string"==typeof t)n=s(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new l(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!f(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},l.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=h.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e);return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){(function(e){function r(t){if(!t||"object"!=typeof t)return!1;if(i(t)){for(var n=0,o=t.length;n<o;n++)if(r(t[n]))return!0;return!1}if("function"==typeof e.Buffer&&e.Buffer.isBuffer&&e.Buffer.isBuffer(t)||"function"==typeof e.ArrayBuffer&&t instanceof ArrayBuffer||a&&t instanceof Blob||s&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return r(t.toJSON(),!0);for(var c in t)if(Object.prototype.hasOwnProperty.call(t,c)&&r(t[c]))return!0;return!1}var i=n(10),o=Object.prototype.toString,a="function"==typeof e.Blob||"[object BlobConstructor]"===o.call(e.Blob),s="function"==typeof e.File||"[object FileConstructor]"===o.call(e.File);t.exports=r}).call(e,function(){return this}())},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){function r(t,e){if(!t)return t;if(a(t)){var n={_placeholder:!0,num:e.length};return e.push(t),n}if(o(t)){for(var i=new Array(t.length),s=0;s<t.length;s++)i[s]=r(t[s],e);return i}if("object"==typeof t&&!(t instanceof Date)){i={};for(var c in t)i[c]=r(t[c],e);return i}return t}function i(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(o(t))for(var n=0;n<t.length;n++)t[n]=i(t[n],e);else if("object"==typeof t)for(var r in t)t[r]=i(t[r],e);return t}var o=n(10),a=n(12),s=Object.prototype.toString,c="function"==typeof t.Blob||"[object BlobConstructor]"===s.call(t.Blob),l="function"==typeof t.File||"[object FileConstructor]"===s.call(t.File);e.deconstructPacket=function(t){var e=[],n=t.data,i=t;return i.data=r(n,e),i.attachments=e.length,{packet:i,buffers:e}},e.reconstructPacket=function(t,e){return t.data=i(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){function n(t,s,u){if(!t)return t;if(c&&t instanceof Blob||l&&t instanceof File){r++;var d=new FileReader;d.onload=function(){u?u[s]=this.result:i=this.result,--r||e(i)},d.readAsArrayBuffer(t)}else if(o(t))for(var m=0;m<t.length;m++)n(t[m],m,t);else if("object"==typeof t&&!a(t))for(var p in t)n(t[p],p,t)}var r=0,i=t;n(i),r||e(i)}}).call(e,function(){return this}())},function(t,e){(function(e){t.exports=function(t){return e.Buffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer}}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);t&&"object"===(void 0===t?"undefined":i(t))&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||c;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(14),a=n(39),s=n(8),c=n(7),l=n(41),u=n(42),d=n(3)("socket.io-client:manager"),m=n(37),p=n(43),h=Object.prototype.hasOwnProperty;t.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)h.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},r.prototype.updateSocketIds=function(){for(var t in this.nsps)h.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},r.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},s(r.prototype),r.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},r.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},r.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(t,e){if(d("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=o(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=l(n,"open",function(){r.onopen(),t&&t()}),a=l(n,"error",function(e){if(d("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var s=this._timeout;d("connect attempt will timeout after %d",s);var c=setTimeout(function(){d("connect attempt timed out after %d",s),i.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(i),this.subs.push(a),this},r.prototype.onopen=function(){d("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(l(t,"data",u(this,"ondata"))),this.subs.push(l(t,"ping",u(this,"onping"))),this.subs.push(l(t,"pong",u(this,"onpong"))),this.subs.push(l(t,"error",u(this,"onerror"))),this.subs.push(l(t,"close",u(this,"onclose"))),this.subs.push(l(this.decoder,"decoded",u(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(t){this.decoder.add(t)},r.prototype.ondecoded=function(t){this.emit("packet",t)},r.prototype.onerror=function(t){d("error",t),this.emitAll("error",t)},r.prototype.socket=function(t,e){function n(){~m(i.connecting,r)||i.connecting.push(r)}var r=this.nsps[t];if(!r){r=new a(this,t,e),this.nsps[t]=r;var i=this;r.on("connecting",n),r.on("connect",function(){r.id=i.generateId(t)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(t){var e=m(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},r.prototype.packet=function(t){d("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){d("cleanup");for(var t=this.subs.length,e=0;e<t;e++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){d("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(t){d("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)d("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();d("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(d("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(d("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(d("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){t.exports=n(15)},function(t,e,n){t.exports=n(16),t.exports.parser=n(23)},function(t,e,n){(function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);n=n||{},t&&"object"==typeof t&&(n=t,t=null),t?(t=u(t),n.hostname=t.host,n.secure="https"===t.protocol||"wss"===t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=u(n.host).host),this.secure=null!=n.secure?n.secure:e.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(e.location?location.hostname:"localhost"),this.port=n.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=m.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode;var i="object"==typeof e&&e;i.global===i&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function i(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var o=n(17),a=n(8),s=n(3)("engine.io-client:socket"),c=n(37),l=n(23),u=n(2),d=n(38),m=n(31);t.exports=r,r.priorWebsocketSuccess=!1,a(r.prototype),r.protocol=l.protocol,r.Socket=r,r.Transport=n(22),r.transports=n(17),r.parser=n(23),r.prototype.createTransport=function(t){s('creating transport "%s"',t);var e=i(this.query);e.EIO=l.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new o[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0})},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){s("setting transport %s",t.name);var e=this;this.transport&&(s("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(m.onlyBinaryUpgrades){var e=!this.supportsBinary&&m.transport.supportsBinary;d=d||e}d||(s('probe transport "%s" opened',t),u.send([{type:"ping",data:"probe"}]),u.once("packet",function(e){if(!d)if("pong"===e.type&&"probe"===e.data){if(s('probe transport "%s" pong',t),m.upgrading=!0,m.emit("upgrading",u),!u)return;r.priorWebsocketSuccess="websocket"===u.name,s('pausing current transport "%s"',m.transport.name),m.transport.pause(function(){d||"closed"!==m.readyState&&(s("changing transport and sending upgrade packet"),l(),m.setTransport(u),u.send([{type:"upgrade"}]),m.emit("upgrade",u),u=null,m.upgrading=!1,m.flush())})}else{s('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=u.name,m.emit("upgradeError",n)}}))}function n(){d||(d=!0,l(),u.close(),u=null)}function i(e){var r=new Error("probe error: "+e);r.transport=u.name,n(),s('probe transport "%s" failed because of error: %s',t,e),m.emit("upgradeError",r)}function o(){i("transport closed")}function a(){i("socket closed")}function c(t){u&&t.name!==u.name&&(s('"%s" works - aborting "%s"',t.name,u.name),n())}function l(){u.removeListener("open",e),u.removeListener("error",i),u.removeListener("close",o),m.removeListener("close",a),m.removeListener("upgrading",c)}s('probing transport "%s"',t);var u=this.createTransport(t,{probe:1}),d=!1,m=this;r.priorWebsocketSuccess=!1,u.once("open",e),u.once("error",i),u.once("close",o),this.once("close",a),this.once("upgrading",c),u.open()},r.prototype.onOpen=function(){if(s("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){s("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},r.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(s('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(d(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else s('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},r.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){s("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},r.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(s("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},r.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:t,data:e,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function t(){r.onClose("forced close"),s("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},r.prototype.onError=function(t){s("socket error %j",t),r.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},r.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){s('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~c(this.transports,t[n])&&e.push(t[n]);return e}}).call(e,function(){return this}())},function(t,e,n){(function(t){var r=n(18),i=n(20),o=n(34),a=n(35);e.polling=function(e){var n=!1,a=!1,s=!1!==e.jsonp;if(t.location){var c="https:"===location.protocol,l=location.port;l||(l=c?443:80),n=e.hostname!==location.hostname||l!==e.port,a=e.secure!==c}if(e.xdomain=n,e.xscheme=a,"open"in new r(e)&&!e.forceJSONP)return new i(e);if(!s)throw new Error("JSONP disabled");return new o(e)},e.websocket=a}).call(e,function(){return this}())},function(t,e,n){(function(e){var r=n(19);t.exports=function(t){var n=t.xdomain,i=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||r))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!i&&o)return new XDomainRequest}catch(t){}if(!n)try{return new(e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}}).call(e,function(){return this}())},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){(function(e){function r(){}function i(t){if(c.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,e.location){var n="https:"===location.protocol,r=location.port;r||(r=n?443:80),this.xd=t.hostname!==e.location.hostname||r!==t.port,this.xs=t.secure!==n}}function o(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function a(){for(var t in o.requests)o.requests.hasOwnProperty(t)&&o.requests[t].abort()}var s=n(18),c=n(21),l=n(8),u=n(32),d=n(3)("engine.io-client:polling-xhr");t.exports=i,t.exports.Request=o,u(i,c),i.prototype.supportsBinary=!0,i.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new o(t)},i.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),i=this;r.on("success",e),r.on("error",function(t){i.onError("xhr post error",t)}),this.sendXhr=r},i.prototype.doPoll=function(){d("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},l(o.prototype),o.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new s(t),r=this;try{d("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var i in this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.extraHeaders[i])}}catch(t){}if("POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{n.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){if(2===n.readyState){var t;try{t=n.getResponseHeader("Content-Type")}catch(t){}"application/octet-stream"===t&&(n.responseType="arraybuffer")}4===n.readyState&&(200===n.status||1223===n.status?r.onLoad():setTimeout(function(){r.onError(n.status)},0))},d("xhr data %s",this.data),n.send(this.data)}catch(t){return void setTimeout(function(){r.onError(t)},0)}e.document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},o.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},o.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(t){}e.document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===e?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},o.prototype.hasXDR=function(){return void 0!==e.XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},o.requestsCount=0,o.requests={},e.document&&(e.attachEvent?e.attachEvent("onunload",a):e.addEventListener&&e.addEventListener("beforeunload",a,!1))}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=t&&t.forceBase64;u&&!e||(this.supportsBinary=!1),i.call(this,t)}var i=n(22),o=n(31),a=n(23),s=n(32),c=n(33),l=n(3)("engine.io-client:polling");t.exports=r;var u=null!=new(n(18))({xdomain:!1}).responseType;s(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){l("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){l("pre-pause polling complete"),--r||e()})),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",function(){l("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;l("polling got data %s",t);a.decodePayload(t,this.socket.binaryType,function(t,n,r){return"opening"===e.readyState&&e.onOpen(),"close"===t.type?(e.onClose(),!1):void e.onPacket(t)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){l("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};a.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var i=n(23),o=n(8);t.exports=r,o(r.prototype),r.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(t){var e=i.decodePacket(t,this.socket.binaryType);this.onPacket(e)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e,n){(function(t){function r(t,n){return n("b"+e.packets[t.type]+t.data.data)}function i(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=t.data,o=new Uint8Array(i),a=new Uint8Array(1+i.byteLength);a[0]=$[t.type];for(var s=0;s<o.length;s++)a[s+1]=o[s];return r(a.buffer)}function o(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=new FileReader;return i.onload=function(){t.data=i.result,e.encodePacket(t,n,!0,r)},i.readAsArrayBuffer(t.data)}function a(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(v)return o(t,n,r);var i=new Uint8Array(1);return i[0]=$[t.type],r(new E([i.buffer,t.data]))}function s(t){try{t=h.decode(t,{strict:!1})}catch(t){return!1}return t}function c(t,e,n){for(var r=new Array(t.length),i=p(t.length,n),o=0;o<t.length;o++)!function(t,n,i){e(n,function(e,n){r[t]=n,i(e,r)})}(o,t[o],i)}var l,u=n(24),d=n(9),m=n(25),p=n(26),h=n(27);t&&t.ArrayBuffer&&(l=n(29));var f="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),v=f||g;e.protocol=3;var $=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},b=u($),y={type:"error",data:"parser error"},E=n(30);e.encodePacket=function(e,n,o,s){"function"==typeof n&&(s=n,n=!1),"function"==typeof o&&(s=o,o=null);var c=void 0===e.data?void 0:e.data.buffer||e.data;if(t.ArrayBuffer&&c instanceof ArrayBuffer)return i(e,n,s);if(E&&c instanceof t.Blob)return a(e,n,s);if(c&&c.base64)return r(e,s);var l=$[e.type];return void 0!==e.data&&(l+=o?h.encode(String(e.data),{strict:!1}):String(e.data)),s(""+l)},e.encodeBase64Packet=function(n,r){var i="b"+e.packets[n.type];if(E&&n.data instanceof t.Blob){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];r(i+t)},o.readAsDataURL(n.data)}var a;try{a=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(t){for(var s=new Uint8Array(n.data),c=new Array(s.length),l=0;l<s.length;l++)c[l]=s[l];a=String.fromCharCode.apply(null,c)}return i+=t.btoa(a),r(i)},e.decodePacket=function(t,n,r){if(void 0===t)return y;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&!1===(t=s(t)))return y;i=t.charAt(0);return Number(i)==i&&b[i]?t.length>1?{type:b[i],data:t.substring(1)}:{type:b[i]}:y}var i=new Uint8Array(t)[0],o=m(t,1);return E&&"blob"===n&&(o=new E([o])),{type:b[i],data:o}},e.decodeBase64Packet=function(t,e){var n=b[t.charAt(0)];if(!l)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=l.decode(t.substr(1));return"blob"===e&&E&&(r=new E([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function i(t){return t.length+":"+t}"function"==typeof n&&(r=n,n=null);var o=d(t);return n&&o?E&&!v?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void c(t,function(t,r){e.encodePacket(t,!!o&&n,!1,function(t){r(null,i(t))})},function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var i;if(""===t)return r(y,0,1);for(var o,a,s="",c=0,l=t.length;c<l;c++){var u=t.charAt(c);if(":"===u){if(""===s||s!=(o=Number(s)))return r(y,0,1);if(a=t.substr(c+1,o),s!=a.length)return r(y,0,1);if(a.length){if(i=e.decodePacket(a,n,!1),y.type===i.type&&y.data===i.data)return r(y,0,1);if(!1===r(i,c+o,l))return}c+=o,s=""}else s+=u}return""!==s?r(y,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){return t.length?void c(t,function(t,n){e.encodePacket(t,!0,!0,function(t){return n(null,t)})},function(t,e){var r=e.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),i=new Uint8Array(r),o=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),a=0;a<t.length;a++)r[a]=t.charCodeAt(a);n=r.buffer}i[o++]=e?0:1;for(var s=n.byteLength.toString(),a=0;a<s.length;a++)i[o++]=parseInt(s[a]);i[o++]=255;for(var r=new Uint8Array(n),a=0;a<r.length;a++)i[o++]=r[a]}),n(i.buffer)}):n(new ArrayBuffer(0))},e.encodePayloadAsBlob=function(t,n){c(t,function(t,n){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);t=r.buffer,e[0]=0}for(var o=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),a=new Uint8Array(o.length+1),i=0;i<o.length;i++)a[i]=parseInt(o[i]);if(a[o.length]=255,E){var s=new E([e.buffer,a.buffer,t]);n(null,s)}})},function(t,e){return n(new E(e))})},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var i=t,o=[];i.byteLength>0;){for(var a=new Uint8Array(i),s=0===a[0],c="",l=1;255!==a[l];l++){if(c.length>310)return r(y,0,1);c+=a[l]}i=m(i,2+c.length),c=parseInt(c);var u=m(i,0,c);if(s)try{u=String.fromCharCode.apply(null,new Uint8Array(u))}catch(t){var d=new Uint8Array(u);u="";for(l=0;l<d.length;l++)u+=String.fromCharCode(d[l])}o.push(u),i=m(i,c)}var p=o.length;o.forEach(function(t,i){r(e.decodePacket(t,n,!0),i,p)})}}).call(e,function(){return this}())},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),a=e,s=0;a<n;a++,s++)o[s]=i[a];return o.buffer}},function(t,e){function n(){}t.exports=function(t,e,r){function i(t,n){if(i.count<=0)throw new Error("after called too many times");--i.count,t?(o=!0,e(t),e=r):0!==i.count||o||e(null,n)}var o=!1;return r=r||n,i.count=t,0===t?e():i}},function(t,e,n){var r;(function(t,i){!function(o){function a(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function s(t){for(var e,n=t.length,r=-1,i="";++r<n;)(e=t[r])>65535&&(e-=65536,i+=v(e>>>10&1023|55296),e=56320|1023&e),i+=v(e);return i}function c(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(t,e){return v(t>>e&63|128)}function u(t,e){if(0==(4294967168&t))return v(t);var n="";return 0==(4294965248&t)?n=v(t>>6&31|192):0==(4294901760&t)?(c(t,e)||(t=65533),n=v(t>>12&15|224),n+=l(t,6)):0==(4292870144&t)&&(n=v(t>>18&7|240),n+=l(t,12),n+=l(t,6)),n+=v(63&t|128)}function d(){if(g>=f)throw Error("Invalid byte index");var t=255&h[g];if(g++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function m(t){var e,n,r,i,o;if(g>f)throw Error("Invalid byte index");if(g==f)return!1;if(e=255&h[g],g++,0==(128&e))return e;if(192==(224&e)){if(n=d(),(o=(31&e)<<6|n)>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if(n=d(),r=d(),(o=(15&e)<<12|n<<6|r)>=2048)return c(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=d(),r=d(),i=d(),(o=(7&e)<<18|n<<12|r<<6|i)>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}var p=("object"==typeof t&&t&&t.exports,"object"==typeof i&&i);var h,f,g,v=String.fromCharCode,$={version:"2.1.2",encode:function(t,e){for(var n,r=!1!==(e=e||{}).strict,i=a(t),o=i.length,s=-1,c="";++s<o;)n=i[s],c+=u(n,r);return c},decode:function(t,e){var n=!1!==(e=e||{}).strict;h=a(t),f=h.length,g=0;for(var r,i=[];!1!==(r=m(n));)i.push(r);return s(i)}};void 0!==(r=function(){return $}.call(e,n,e,t))&&(t.exports=r)}()}).call(e,n(28)(t),function(){return this}())},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),i=r.length,o="";for(n=0;n<i;n+=3)o+=t[r[n]>>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,a,s=.75*t.length,c=t.length,l=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(e=0;e<c;e+=4)r=n[t.charCodeAt(e)],i=n[t.charCodeAt(e+1)],o=n[t.charCodeAt(e+2)],a=n[t.charCodeAt(e+3)],d[l++]=r<<2|i>>4,d[l++]=(15&i)<<4|o>>2,d[l++]=(3&o)<<6|63&a;return u}}()},function(t,e){(function(e){function n(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var i=new Uint8Array(n.byteLength);i.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=i.buffer}t[e]=r}}}function r(t,e){e=e||{};var r=new o;n(t);for(var i=0;i<t.length;i++)r.append(t[i]);return e.type?r.getBlob(e.type):r.getBlob()}function i(t,e){return n(t),new Blob(t,e||{})}var o=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),s=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),c=o&&o.prototype.append&&o.prototype.getBlob;t.exports=a?s?e.Blob:i:c?r:void 0}).call(e,function(){return this}())},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){"use strict";function n(t){var e="";do{e=o[t%a]+e,t=Math.floor(t/a)}while(t>0);return e}function r(){var t=n(+new Date);return t!==i?(c=0,i=t):t+"."+n(c++)}for(var i,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,s={},c=0,l=0;l<a;l++)s[o[l]]=l;r.encode=n,r.decode=function(t){var e=0;for(l=0;l<t.length;l++)e=e*a+s[t.charAt(l)];return e},t.exports=r},function(t,e,n){(function(e){function r(){}function i(t){o.call(this,t),this.query=this.query||{},s||(e.___eio||(e.___eio=[]),s=e.___eio),this.index=s.length;var n=this;s.push(function(t){n.onData(t)}),this.query.j=this.index,e.document&&e.addEventListener&&e.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var o=n(21),a=n(32);t.exports=i;var s,c=/\n/g,l=/\\n/g;a(i,o),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},i.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},i.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(t){i.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+i.iframeId+'">';o=document.createElement(t)}catch(t){(o=document.createElement("iframe")).name=i.iframeId,o.src="javascript:0"}o.id=i.iframeId,i.form.appendChild(o),i.iframe=o}var i=this;if(!this.form){var o,a=document.createElement("form"),s=document.createElement("textarea"),u=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=u,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),t=t.replace(l,"\\\n"),this.area.value=t.replace(c,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===i.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=d&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(m=i),o.call(this,t)}var i,o=n(22),a=n(23),s=n(31),c=n(32),l=n(33),u=n(3)("engine.io-client:websocket"),d=e.WebSocket||e.MozWebSocket;if("undefined"==typeof window)try{i=n(36)}catch(t){}var m=d;m||"undefined"!=typeof window||(m=i),t.exports=r,c(r,o),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?e?new m(t,e):new m(t):new m(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},r.prototype.write=function(t){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var i=t.length,o=0,s=i;o<s;o++)!function(t){a.encodePacket(t,r.supportsBinary,function(o){if(!r.usingBrowserWebSocket){var a={};t.options&&(a.compress=t.options.compress),r.perMessageDeflate&&("string"==typeof o?e.Buffer.byteLength(o):o.length)<r.perMessageDeflate.threshold&&(a.compress=!1)}try{r.usingBrowserWebSocket?r.ws.send(o):r.ws.send(o,a)}catch(t){u("websocket closed before onclose event")}--i||n()})}(t[o])},r.prototype.onClose=function(){o.prototype.onClose.call(this)},r.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=l()),this.supportsBinary||(t.b64=1),(t=s.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},r.prototype.check=function(){return!(!m||"__initialize"in m&&this.name===r.prototype.name)}}).call(e,function(){return this}())},function(t,e){},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e){(function(e){var n=/^[\],:{}\s]*$/,r=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,i=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,a=/^\s+/,s=/\s+$/;t.exports=function(t){return"string"==typeof t&&t?(t=t.replace(a,"").replace(s,""),e.JSON&&JSON.parse?JSON.parse(t):n.test(t.replace(r,"@").replace(i,"]").replace(o,""))?new Function("return "+t)():void 0):null}}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(7),a=n(8),s=n(40),c=n(41),l=n(42),u=n(3)("socket.io-client:socket"),d=n(31);t.exports=r;var m={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=a.prototype.emit;a(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[c(t,"open",l(this,"onopen")),c(t,"packet",l(this,"onpacket")),c(t,"close",l(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(m.hasOwnProperty(t))return p.apply(this,arguments),this;var e=s(arguments),n={type:o.EVENT,data:e};return n.options={},n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(u("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),delete this.flags,this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){if(u("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"===i(this.query)?d.encode(this.query):this.query;u("sending connect packet with query %s",t),this.packet({type:o.CONNECT,query:t})}else this.packet({type:o.CONNECT})},r.prototype.onclose=function(t){u("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){if(t.nsp===this.nsp)switch(t.type){case o.CONNECT:this.onconnect();break;case o.EVENT:case o.BINARY_EVENT:this.onevent(t);break;case o.ACK:case o.BINARY_ACK:this.onack(t);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];u("emitting event %j",e),null!=t.id&&(u("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?p.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=s(arguments);u("sending ack %j",r),e.packet({type:o.ACK,id:t,data:r})}}},r.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(u("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):u("bad ack %s",t.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)p.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){u("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(u("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(t){return this.flags=this.flags||{},this.flags.compress=t,this}},function(t,e){t.exports=function(t,e){for(var n=[],r=(e=e||0)||0;r<t.length;r++)n[r-e]=t[r];return n}},function(t,e){"use strict";t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}}])}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("angular")):"function"==typeof define&&define.amd?define(["exports","angular"],e):e(t["@uirouter/angularjs"]=t["@uirouter/angularjs"]||{},t.angular)}(this,function(t,e){"use strict";function n(t){function e(n){return n.length>=r?t.apply(null,n):function(){return e(n.concat([].slice.apply(arguments)))}}var n=[].slice.apply(arguments,[1]),r=t.length;return e(n)}function r(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.apply(null,[].slice.call(arguments).reverse())}function o(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.apply(null,n)&&e.apply(null,n)}}function a(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.apply(null,n)||e.apply(null,n)}}function s(t,e){return function(n){return n[t].apply(n,e)}}function c(t){return function(e){for(var n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}function l(t){if(Zt(t)&&t.length){var e=t.slice(0,-1),n=t.slice(-1);return!(e.filter(Rt(Jt)).length||n.filter(Rt(Gt)).length)}return Gt(t)}function u(t){return t}function d(){}function m(t,e,n,r,i){void 0===i&&(i=!1);var o=function(e){return t()[e].bind(n())},a=function(t){return function(){return e[t]=o(t),e[t].apply(null,arguments)}};return(r=r||Object.keys(t())).reduce(function(t,e){return t[e]=i?a(e):o(e),t},e)}function p(t,e){return-1!==t.indexOf(e)}function h(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),t}function f(t,e){return t.push(e),e}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=e.concat({}).reverse(),i=de.apply(null,r);return de({},i,$(t||{},Object.keys(i)))}function v(t,e){var n=[];for(var r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}function $(t,e){var n={};for(var r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function b(t,e){return Object.keys(t).filter(Rt(he(e))).reduce(function(e,n){return e[n]=t[n],e},{})}function y(t,e){return w(t,Ot(e))}function E(t,e){var n=Zt(t),r=n?[]:{},i=n?function(t){return r.push(t)}:function(t,e){return r[e]=t};return ue(t,function(t,n){e(t,n)&&i(t,n)}),r}function C(t,e){var n;return ue(t,function(t,r){n||e(t,r)&&(n=t)}),n}function w(t,e){var n=Zt(t)?[]:{};return ue(t,function(t,r){return n[r]=e(t,r)}),n}function M(t,e){return t.push(e),t}function A(t,e){return void 0===e&&(e="assert failure"),function(n){var r=t(n);if(!r)throw new Error(Gt(e)?e(n):e);return r}}function k(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return[];var n,r=t.reduce(function(t,e){return Math.min(e.length,t)},9007199254740991),i=[];for(n=0;n<r;n++)switch(t.length){case 1:i.push([t[0][n]]);break;case 2:i.push([t[0][n],t[1][n]]);break;case 3:i.push([t[0][n],t[1][n],t[2][n]]);break;case 4:i.push([t[0][n],t[1][n],t[2][n],t[3][n]]);break;default:i.push(t.map(function(t){return t[n]}))}return i}function x(t,e){var n,r;if(Zt(e)&&(n=e[0],r=e[1]),!Jt(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function T(t){return t.length&&t[t.length-1]||void 0}function _(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var r=Object.keys(n),i=0;i<r.length;i++)t[r[i]]=n[r[i]]}return t}function S(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n=typeof t;if(n!==typeof e||"object"!==n)return!1;var r=[t,e];if(Pt(Zt)(r))return N(t,e);if(Pt(te)(r))return t.getTime()===e.getTime();if(Pt(ee)(r))return t.toString()===e.toString();if(Pt(Gt)(r))return!0;if([Gt,Zt,te,ee].map(Ht).reduce(function(t,e){return t||!!e(r)},!1))return!1;var i,o={};for(i in t){if(!S(t[i],e[i]))return!1;o[i]=!0}for(i in e)if(!o[i])return!1;return!0}function N(t,e){return t.length===e.length&&k(t,e).reduce(function(t,e){return t&&S(e[0],e[1])},!0)}function O(t){if(!t)return"ui-view (defunct)";var e=t.creationContext?t.creationContext.name||"(root)":"(none)";return"[ui-view#"+t.id+" "+t.$type+":"+t.fqn+" ("+t.name+"@"+e+")]"}function I(e){return Xt(e)?t.Category[e]:t.Category[t.Category[e]]}function D(t,e){var n=Jt(e)?[e]:e;return!!(Gt(n)?n:function(t){for(var e=n,r=0;r<e.length;r++){var i=new Vt(e[r]);if(i&&i.matches(t.name)||!i&&e[r]===t.name)return!0}return!1})(t)}function R(t,e,n){function r(t,r,o){void 0===o&&(o={});var a=new Ye(e,n,r,t,o);return i.push(a),function(){a._deregistered=!0,fe(i)(a)}}var i=(t._registeredHooks=t._registeredHooks||{})[n.name]=[];return t[n.name]=r,r}function P(t){return void 0===t&&(t=!1),function(e,n){var r=t?-1:1,i=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==i?i:n.hook.priority-e.hook.priority}}function H(t,e){function n(t){return Zt(t)?t:Wt(t)?[t]:[]}function r(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}function i(t,e){return function(i){if(Zt(i)&&0===i.length)return i;var o=w(n(i),t);return!0===e?0===E(o,function(t){return!t}).length:r(o)}}function o(t){return function(e,r){var i=n(e),o=n(r);if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!t(i[a],o[a]))return!1;return!0}}var a=this;["encode","decode","equals","$normalize"].forEach(function(e){var n=t[e].bind(t),r="equals"===e?o:i;a[e]=r(n)}),de(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,is:i(t.is.bind(t),!0),$arrayMode:e})}function L(t){function e(){return t.value}return t=Je(t)&&{value:t}||t,e.__cacheable=!0,de(t,{$$fn:l(t.value)?t.value:e})}function j(e,n,r,i,o){if(e.type&&n&&"string"!==n.name)throw new Error("Param '"+i+"' has two type configurations.");if(e.type&&n&&"string"===n.name&&o.type(e.type))return o.type(e.type);if(n)return n;if(!e.type){var a=r===t.DefType.CONFIG?"any":r===t.DefType.PATH?"path":r===t.DefType.SEARCH?"query":"string";return o.type(a)}return e.type instanceof Ge?e.type:o.type(e.type)}function F(t,e,n){var r=t.squash;if(!e||!1===r)return!1;if(!Wt(r)||null==r)return n;if(!0===r||Jt(r))return r;throw new Error("Invalid squash policy: '"+r+"'. Valid policies: false, true, or arbitrary string")}function V(t,e,n,r){var i,o,a=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}];return i=Zt(t.replace)?t.replace:[],Jt(r)&&i.push({from:r,to:void 0}),o=w(i,Ot("from")),E(a,function(t){return-1===o.indexOf(t.from)}).concat(i)}function B(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function q(t,e){for(;e.length<t;)e+=" ";return e}function U(t){return t.replace(/^([A-Z])/,function(t){return t.toLowerCase()}).replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function z(t){var e=W(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function W(t){var e=Zt(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function Y(t){function e(t){if(Qt(t)){if(-1!==n.indexOf(t))return"[circular ref]";n.push(t)}return hn(t)}var n=[];return JSON.stringify(t,function(t,n){return e(n)}).replace(/\\"/g,'"')}function K(t){var e=new RegExp("("+t+")","g");return function(t){return t.split(e).filter(u)}}function G(t,e){return Jt(T(t))&&Jt(e)?t.slice(0,-1).concat(T(t)+e):M(t,e)}function X(t){return t.name}function J(t){return t.self.$$state=function(){return t},t.self}function Q(t){return t.parent&&t.parent.data&&(t.data=t.self.data=pe(t.parent.data,t.data)),t.data}function Z(t){return t.parent?t.parent.path.concat(t):[t]}function tt(t){var e=t.parent?de({},t.parent.includes):{};return e[t.name]=!0,e}function et(t){var e=function(t){var e=oe.$injector;return t.$inject||e&&e.annotate(t,e.strictDi)||"deferred"},n=function(t){return t.provide||t.token},r=c([[Ot("resolveFn"),function(t){return new nn(n(t),t.resolveFn,t.deps,t.policy)}],[Ot("useFactory"),function(t){return new nn(n(t),t.useFactory,t.deps||t.dependencies,t.policy)}],[Ot("useClass"),function(t){return new nn(n(t),function(){return new t.useClass},[],t.policy)}],[Ot("useValue"),function(t){return new nn(n(t),function(){return t.useValue},[],t.policy,t.useValue)}],[Ot("useExisting"),function(t){return new nn(n(t),u,[t.useExisting],t.policy)}]]),o=c([[i(Ot("val"),Jt),function(t){return new nn(t.token,u,[t.val],t.policy)}],[i(Ot("val"),Zt),function(t){return new nn(t.token,T(t.val),t.val.slice(0,-1),t.policy)}],[i(Ot("val"),Gt),function(t){return new nn(t.token,t.val,e(t.val),t.policy)}]]),a=c([[Lt(nn),function(t){return t}],[function(t){return!(!t.token||!t.resolveFn)},r],[function(t){return!(!t.provide&&!t.token||!(t.useValue||t.useFactory||t.useExisting||t.useClass))},r],[function(t){return!!(t&&t.val&&(Jt(t.val)||Zt(t.val)||Gt(t.val)))},o],[Ft(!0),function(t){throw new Error("Invalid resolve value: "+Y(t))}]]),s=t.resolve;return(Zt(s)?s:function(t,e){return Object.keys(t||{}).map(function(n){return{token:n,val:t[n],deps:void 0,policy:e[n]}})}(s,t.resolvePolicy||{})).map(a)}function nt(t,e){var n=["",""],r=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=["("+e.squash+"|",")?"]}return r+n[0]+e.type.pattern.source+n[1]}function rt(t,e,n,r){return"/"===r?t:e?r.slice(0,-1)+t:n?r.slice(1)+t:t}function it(t){if(!(Gt(t)||Jt(t)||Lt(Ue)(t)||Ue.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return Gt(t)?t:Ft(t)}function ot(t){t.addResolvable({token:zn,deps:[],resolveFn:function(){return t.router},data:t.router},""),t.addResolvable({token:mn,deps:[],resolveFn:function(){return t},data:t},""),t.addResolvable({token:"$transition$",deps:[],resolveFn:function(){return t},data:t},""),t.addResolvable({token:"$stateParams",deps:[],resolveFn:function(){return t.params()},data:t.params()},""),t.entering().forEach(function(e){t.addResolvable({token:"$state$",deps:[],resolveFn:function(){return e},data:e},e)})}function at(t){return function(e,n){return(0,n.$$state()[t])(e,n)}}function st(t,e){var n=e.$$state().lazyLoad,r=n._promise;if(!r){r=n._promise=oe.$q.when(n(t,e)).then(function(e){return e&&Array.isArray(e.states)&&e.states.forEach(function(e){return t.router.stateRegistry.register(e)}),e}).then(function(t){return delete e.lazyLoad,delete e.$$state().lazyLoad,delete n._promise,t},function(t){return delete n._promise,oe.$q.reject(t)})}return r}function ct(t){var e=t._ignoredReason();if(e){qe.traceTransitionIgnored(t);var n=t.router.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),He.ignored().toPromise()}}function lt(t){if(!t.valid())throw new Error(t.error())}function ut(t){var e=function(t){return t||""},n=xr(t).map(e),r=n[0],i=n[1],o=Tr(r).map(e);return{path:o[0],search:o[1],hash:i,url:t}}function dt(t,e,n,r){return function(i){var o=i.locationService=new n(i),a=i.locationConfig=new r(i,e);return{name:t,service:o,configuration:a,dispose:function(t){t.dispose(o),t.dispose(a)}}}}function mt(t){return oe.$injector=Ar,oe.$q=Er,{name:"vanilla.services",$q:Er,$injector:Ar,dispose:function(){return null}}}function pt(){var t=null;return function(e,n){return t=t||oe.$injector.get("$templateFactory"),[new Xr(e,n,t)]}}function ht(t){if(!t.parent)return{};var e=["controller","controllerProvider","controllerAs","resolveAs"],n=["component","bindings","componentProvider"],r=["templateProvider","templateUrl","template","notify","async"].concat(e),i=n.concat(r);if(Wt(t.views)&&Kr(i,t))throw new Error("State '"+t.name+"' has a 'views' object. It cannot also have \"view properties\" at the state level. Move the following properties into a view (in the 'views' object): "+i.filter(function(e){return Wt(t[e])}).join(", "));var o={},a=t.views||{$default:$(t,i)};return ue(a,function(e,i){if(i=i||"$default",Jt(e)&&(e={component:e}),e=de({},e),Kr(n,e)&&Kr(r,e))throw new Error("Cannot combine: "+n.join("|")+" with: "+r.join("|")+" in stateview: '"+i+"@"+t.name+"'");e.resolveAs=e.resolveAs||"$resolve",e.$type="ng1",e.$context=t,e.$name=i;var a=Rn.normalizeUIViewTarget(e.$context,e.$name);e.$uiViewName=a.uiViewName,e.$uiViewContextAnchor=a.uiViewContextAnchor,o[i]=e}),o}function ft(t){var e=oe.$injector.get(t+"Directive");if(!e||!e.length)throw new Error("Unable to find component named '"+t+"'");return e.map(Qr).reduce(we,[])}function gt(t){function e(t,e,r,i,o,a){return n._runtimeServices(i,t,r,e),delete li.router,delete li.$get,li}(li=this.router=new zn).stateProvider=new ti(li.stateRegistry,li.stateService),li.stateRegistry.decorator("views",ht),li.stateRegistry.decorator("onExit",ei("onExit")),li.stateRegistry.decorator("onRetain",ei("onRetain")),li.stateRegistry.decorator("onEnter",ei("onEnter")),li.viewService._pluginapi._viewConfigFactory("ng1",pt());var n=li.locationService=li.locationConfig=new ni(t);return ni.monkeyPatchPathParameterType(li),li.router=li,li.$get=e,e.$inject=["$location","$browser","$sniffer","$rootScope","$http","$templateCache"],li}function vt(t,e,n){oe.$injector=t,oe.$q=e,n.stateRegistry.get().map(function(t){return t.$$state().resolvables}).reduce(we,[]).filter(function(t){return"deferred"===t.deps}).forEach(function(e){return e.deps=t.annotate(e.resolveFn,t.strictDi)})}function $t(t){t.$watch(function(){qe.approximateDigests++})}function bt(t){var e,n=t.match(/^\s*({[^}]*})\s*$/);if(n&&(t="("+n[1]+")"),!(e=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/))||4!==e.length)throw new Error("Invalid state ref '"+t+"'");return{state:e[1]||null,paramExpr:e[3]||null}}function yt(t){var e=t.parent().inheritedData("$uiView"),n=Dt("$cfg.path")(e);return n?T(n).state.name:void 0}function Et(t,e,n){var r=n.uiState||t.current.name,i=de(Mt(e,t),n.uiStateOpts||{}),o=t.href(r,n.uiStateParams,i);return{uiState:r,uiStateParams:n.uiStateParams,uiStateOpts:i,href:o}}function Ct(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!n}}function wt(t,e,n,r,i){return function(o){var a=o.which||o.button,s=i();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||t.attr("target"))){var c=n(function(){e.go(s.uiState,s.uiStateParams,s.uiStateOpts)});o.preventDefault();var l=r.isAnchor&&!s.href?1:0;o.preventDefault=function(){l--<=0&&n.cancel(c)}}}}function Mt(t,e){return{relative:yt(t)||e.$current,inherit:!0,source:"sref"}}function At(t,e,n,r){var i;r&&(i=r.events),Zt(i)||(i=["click"]);for(var o=t.on?"on":"bind",a=0,s=i;a<s.length;a++){var c=s[a];t[o](c,n)}e.$on("$destroy",function(){for(var e=t.off?"off":"unbind",r=0,o=i;r<o.length;r++){var a=o[r];t[e](a,n)}})}function kt(t){var e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function xt(t){var e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function Tt(t,n,r,i,o,a){var s=Dt("viewDecl.controllerAs"),c=Dt("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(i){var a=i.html();return i.empty(),function(i,l){var u=l.data("$uiView");if(!u)return l.html(a),void t(l.contents())(i);var d=u.$cfg||{viewDecl:{},getTemplate:e.noop},m=d.path&&new ln(d.path);l.html(d.getTemplate(l,m)||a),qe.traceUIViewFill(u.$uiView,l.html());var p=t(l.contents()),h=d.controller,f=s(d),g=c(d),v=m&&mi(m);if(i[g]=v,h){var $=n(h,de({},v,{$scope:i,$element:l}));f&&(i[f]=$,i[f][g]=v),l.data("$ngControllerController",$),l.children().data("$ngControllerController",$),_t(o,r,$,i,d)}if(Jt(d.viewDecl.component))var b=d.viewDecl.component,y=U(b),E=new RegExp("^(x-|data-)?"+y+"$","i"),C=i.$watch(function(){var t=[].slice.call(l[0].children).filter(function(t){return t&&t.tagName&&E.exec(t.tagName)});return t&&Nt.element(t).data("$"+b+"Controller")},function(t){t&&(_t(o,r,t,i,d),C())});p(i)}}}}function _t(t,e,n,r,i){!Gt(n.$onInit)||i.viewDecl.component&&gi||n.$onInit();var o=T(i.path).state.self,a={bind:n};if(Gt(n.uiOnParamsChanged)){var s=new ln(i.path).getResolvable("$transition$").data;r.$on("$destroy",e.onSuccess({},function(t){if(t!==s&&-1===t.exiting().indexOf(o)){var e=t.params("to"),r=t.params("from"),i=t.treeChanges().to.map(function(t){return t.paramSchema}).reduce(we,[]),a=t.treeChanges().from.map(function(t){return t.paramSchema}).reduce(we,[]),c=i.filter(function(t){var n=a.indexOf(t);return-1===n||!a[n].type.equals(e[t.id],r[t.id])});if(c.length){var l=c.map(function(t){return t.id}),u=E(e,function(t,e){return-1!==l.indexOf(e)});n.uiOnParamsChanged(u,t)}}},a))}if(Gt(n.uiCanExit)){var c=vi++,l=function(t){return!!t&&(t._uiCanExitIds&&!0===t._uiCanExitIds[c]||l(t.redirectedFrom()))},u={exiting:o.name};r.$on("$destroy",e.onBefore(u,function(e){var r,i=e._uiCanExitIds=e._uiCanExitIds||{};return l(e)||(r=t.when(n.uiCanExit(e))).then(function(t){return i[c]=!1!==t}),r},a))}}ht.$inject=["state"];var St=angular,Nt=e&&e.module?e:St,Ot=function(t){return function(e){return e&&e[t]}},It=n(function(t,e,n){return n&&n[t]===e}),Dt=function(t){return i.apply(null,t.split(".").map(Ot))},Rt=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(null,e)}},Pt=function(t){return function(e){return e.reduce(function(e,n){return e&&!!t(n)},!0)}},Ht=function(t){return function(e){return e.reduce(function(e,n){return e||!!t(n)},!1)}},Lt=function(t){return function(e){return null!=e&&e.constructor===t||e instanceof t}},jt=function(t){return function(e){return t===e}},Ft=function(t){return function(){return t}},Vt=function(){function t(t){this.text=t,this.glob=t.split(".");var e=this.text.split(".").map(function(t){return"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t}).join("");this.regexp=new RegExp("^"+e+"$")}return t.prototype.matches=function(t){return this.regexp.test("."+t)},t.is=function(t){return!!/[!,*]+/.exec(t)},t.fromString=function(e){return t.is(e)?new t(e):null},t}(),Bt=function(){function t(e){return t.create(e||{})}return t.create=function(e){e=t.isStateClass(e)?new e:e;var n=pe(pe(e,t.prototype));return e.$$state=function(){return n},n.self=e,n.__stateObjectCache={nameGlob:Vt.fromString(n.name)},n},t.prototype.is=function(t){return this===t||this.self===t||this.fqn()===t},t.prototype.fqn=function(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;var t=this.parent.fqn();return t?t+"."+this.name:this.name},t.prototype.root=function(){return this.parent&&this.parent.root()||this},t.prototype.parameters=function(t){return((t=g(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(ye(this.params)).filter(function(e){return!t.matchingKeys||t.matchingKeys.hasOwnProperty(e.id)})},t.prototype.parameter=function(t,e){return void 0===e&&(e={}),this.url&&this.url.parameter(t,e)||C(ye(this.params),It("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)},t.prototype.toString=function(){return this.fqn()},t.isStateClass=function(t){return Gt(t)&&!0===t.__uiRouterState},t.isState=function(t){return Qt(t.__stateObjectCache)},t}(),qt=Object.prototype.toString,Ut=function(t){return function(e){return typeof e===t}},zt=Ut("undefined"),Wt=Rt(zt),Yt=function(t){return null===t},Kt=a(Yt,zt),Gt=Ut("function"),Xt=Ut("number"),Jt=Ut("string"),Qt=function(t){return null!==t&&"object"==typeof t},Zt=Array.isArray,te=function(t){return"[object Date]"===qt.call(t)},ee=function(t){return"[object RegExp]"===qt.call(t)},ne=Bt.isState,re=o(Qt,i(Ot("then"),Gt)),ie=function(t){return function(){throw new Error(t+"(): No coreservices implementation for UI-Router is loaded.")}},oe={$q:void 0,$injector:void 0},ae=("undefined"==typeof window?{}:window).angular||{},se=ae.fromJson||JSON.parse.bind(JSON),ce=ae.toJson||JSON.stringify.bind(JSON),le=ae.copy||function(t,e){return e&&Object.keys(e).forEach(function(t){return delete e[t]}),e||(e={}),de(e,t)},ue=ae.forEach||function(t,e,n){if(Zt(t))return t.forEach(e,n);Object.keys(t).forEach(function(n){return e(t[n],n)})},de=Object.assign||_,me=ae.equals||S,pe=function(t,e){return de(Object.create(t),e)},he=n(p),fe=n(h),ge=n(f),ve=function(t){return t.slice().forEach(function(e){"function"==typeof e&&e(),fe(t,e)})},$e=function(t,e){return de(t,e)},be=w,ye=function(t){return Object.keys(t).map(function(e){return t[e]})},Ee=function(t,e){return t&&e},Ce=function(t,e){return t||e},we=function(t,e){return t.concat(e)},Me=function(t,e){return Zt(e)?t.concat(e.reduce(Me,[])):M(t,e)},Ae=function(t,e){return he(t,e)?t:M(t,e)},ke=function(t){return t.reduce(we,[])},xe=function(t){return t.reduce(Me,[])},Te=A,_e=A,Se=function(t){return Object.keys(t).map(function(e){return[e,t[e]]})},Ne=function(t,e){return void 0===e&&(e=Ft(!0)),function(n,r){return e(n)&&e(r)?t(n)-t(r):0}},Oe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e,n){return t.reduce(function(t,r){return t||r(e,n)},0)}},Ie=function(t){return t.catch(function(t){return 0})&&t},De=function(t){return Ie(oe.$q.reject(t))},Re=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=null),this._items=t,this._limit=e}return t.prototype.enqueue=function(t){var e=this._items;return e.push(t),this._limit&&e.length>this._limit&&e.shift(),t},t.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},t.prototype.clear=function(){var t=this._items;return this._items=[],t},t.prototype.size=function(){return this._items.length},t.prototype.remove=function(t){var e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]},t.prototype.peekTail=function(){return this._items[this._items.length-1]},t.prototype.peekHead=function(){if(this.size())return this._items[0]},t}();!function(t){t[t.SUPERSEDED=2]="SUPERSEDED",t[t.ABORTED=3]="ABORTED",t[t.INVALID=4]="INVALID",t[t.IGNORED=5]="IGNORED",t[t.ERROR=6]="ERROR"}(t.RejectType||(t.RejectType={}));var Pe=0,He=function(){function e(t,e,n){this.$id=Pe++,this.type=t,this.message=e,this.detail=n}return e.prototype.toString=function(){var t=function(t){return t&&t.toString!==Object.prototype.toString?t.toString():Y(t)}(this.detail),e=this;return"Transition Rejection($id: "+e.$id+" type: "+e.type+", message: "+e.message+", detail: "+t+")"},e.prototype.toPromise=function(){return de(De(this),{_transitionRejection:this})},e.isRejectionPromise=function(t){return t&&"function"==typeof t.then&&Lt(e)(t._transitionRejection)},e.superseded=function(n,r){var i=new e(t.RejectType.SUPERSEDED,"The transition has been superseded by a different transition",n);return r&&r.redirected&&(i.redirected=!0),i},e.redirected=function(t){return e.superseded(t,{redirected:!0})},e.invalid=function(n){return new e(t.RejectType.INVALID,"This transition is invalid",n)},e.ignored=function(n){return new e(t.RejectType.IGNORED,"The transition was ignored",n)},e.aborted=function(n){return new e(t.RejectType.ABORTED,"The transition has been aborted",n)},e.errored=function(n){return new e(t.RejectType.ERROR,"The transition errored",n)},e.normalize=function(t){return Lt(e)(t)?t:e.errored(t)},e}(),Le=function(t){var e=t.viewDecl,n=e.$context.name||"(root)";return"[View#"+t.$id+" from '"+n+"' state]: target ui-view: '"+e.$uiViewName+"@"+e.$uiViewContextAnchor+"'"};!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG"}(t.Category||(t.Category={}));var je=Dt("$id"),Fe=Dt("router.$id"),Ve=function(t){return"Transition #"+je(t)+"-"+Fe(t)},Be=function(){function e(){this._enabled={},this.approximateDigests=0}return e.prototype._set=function(e,n){var r=this;n.length||(n=Object.keys(t.Category).map(function(t){return parseInt(t,10)}).filter(function(t){return!isNaN(t)}).map(function(e){return t.Category[e]})),n.map(I).forEach(function(t){return r._enabled[t]=e})},e.prototype.enable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._set(!0,t)},e.prototype.disable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._set(!1,t)},e.prototype.enabled=function(t){return!!this._enabled[I(t)]},e.prototype.traceTransitionStart=function(e){this.enabled(t.Category.TRANSITION)&&console.log(Ve(e)+": Started -> "+Y(e))},e.prototype.traceTransitionIgnored=function(e){this.enabled(t.Category.TRANSITION)&&console.log(Ve(e)+": Ignored <> "+Y(e))},e.prototype.traceHookInvocation=function(e,n,r){if(this.enabled(t.Category.HOOK)){var i=Dt("traceData.hookType")(r)||"internal",o=Dt("traceData.context.state.name")(r)||Dt("traceData.context")(r)||"unknown",a=z(e.registeredHook.callback);console.log(Ve(n)+": Hook -> "+i+" context: "+o+", "+B(200,a))}},e.prototype.traceHookResult=function(e,n,r){this.enabled(t.Category.HOOK)&&console.log(Ve(n)+": <- Hook returned: "+B(200,Y(e)))},e.prototype.traceResolvePath=function(e,n,r){this.enabled(t.Category.RESOLVE)&&console.log(Ve(r)+": Resolving "+e+" ("+n+")")},e.prototype.traceResolvableResolved=function(e,n){this.enabled(t.Category.RESOLVE)&&console.log(Ve(n)+": <- Resolved "+e+" to: "+B(200,Y(e.data)))},e.prototype.traceError=function(e,n){this.enabled(t.Category.TRANSITION)&&console.log(Ve(n)+": <- Rejected "+Y(n)+", reason: "+e)},e.prototype.traceSuccess=function(e,n){this.enabled(t.Category.TRANSITION)&&console.log(Ve(n)+": <- Success "+Y(n)+", final state: "+e.name)},e.prototype.traceUIViewEvent=function(e,n,r){void 0===r&&(r=""),this.enabled(t.Category.UIVIEW)&&console.log("ui-view: "+q(30,e)+" "+O(n)+r)},e.prototype.traceUIViewConfigUpdated=function(e,n){this.enabled(t.Category.UIVIEW)&&this.traceUIViewEvent("Updating",e," with ViewConfig from context='"+n+"'")},e.prototype.traceUIViewFill=function(e,n){this.enabled(t.Category.UIVIEW)&&this.traceUIViewEvent("Fill",e," with: "+B(200,n))},e.prototype.traceViewSync=function(e){if(this.enabled(t.Category.VIEWCONFIG)){var n=e.map(function(t){var e=t[0],n=t[1];return{"ui-view fqn":e.$type+":"+e.fqn,"state: view name":n&&n.viewDecl.$context.name+": "+n.viewDecl.$name+" ("+n.viewDecl.$type+")"}}).sort(function(t,e){return t["ui-view fqn"].localeCompare(e["ui-view fqn"])});console.table(n)}},e.prototype.traceViewServiceEvent=function(e,n){this.enabled(t.Category.VIEWCONFIG)&&console.log("VIEWCONFIG: "+e+" "+Le(n))},e.prototype.traceViewServiceUIViewEvent=function(e,n){this.enabled(t.Category.VIEWCONFIG)&&console.log("VIEWCONFIG: "+e+" "+O(n))},e}(),qe=new Be;!function(t){t[t.CREATE=0]="CREATE",t[t.BEFORE=1]="BEFORE",t[t.RUN=2]="RUN",t[t.SUCCESS=3]="SUCCESS",t[t.ERROR=4]="ERROR"}(t.TransitionHookPhase||(t.TransitionHookPhase={})),function(t){t[t.TRANSITION=0]="TRANSITION",t[t.STATE=1]="STATE"}(t.TransitionHookScope||(t.TransitionHookScope={}));var Ue=function(){function t(t,e,n,r){void 0===r&&(r={}),this._identifier=t,this._definition=e,this._options=r,this._params=n||{}}return t.prototype.name=function(){return this._definition&&this._definition.name||this._identifier},t.prototype.identifier=function(){return this._identifier},t.prototype.params=function(){return this._params},t.prototype.$state=function(){return this._definition},t.prototype.state=function(){return this._definition&&this._definition.self},t.prototype.options=function(){return this._options},t.prototype.exists=function(){return!(!this._definition||!this._definition.self)},t.prototype.valid=function(){return!this.error()},t.prototype.error=function(){var t=this.options().relative;if(!this._definition&&t){var e=t.name?t.name:t;return"Could not resolve '"+this.name()+"' from state '"+e+"'"}return this._definition?this._definition.self?void 0:"State '"+this.name()+"' has an invalid definition":"No such state '"+this.name()+"'"},t.prototype.toString=function(){return"'"+this.name()+"'"+ce(this.params())},t.isDef=function(t){return t&&t.state&&(Jt(t.state)||Jt(t.state.name))},t}(),ze={current:d,transition:null,traceData:{},bind:null},We=function(){function e(e,n,r,i){var o=this;this.transition=e,this.stateContext=n,this.registeredHook=r,this.options=i,this.isSuperseded=function(){return o.type.hookPhase===t.TransitionHookPhase.RUN&&!o.options.transition.isActive()},this.options=g(i,ze),this.type=r.eventType}return e.prototype.logError=function(t){this.transition.router.stateService.defaultErrorHandler()(t)},e.prototype.invokeHook=function(){var t=this,e=this.registeredHook;if(!e._deregistered){var n=this.getNotCurrentRejection();if(n)return n;var r=this.options;qe.traceHookInvocation(this,this.transition,r);var i=function(n){return e.eventType.getErrorHandler(t)(n)},o=function(n){return e.eventType.getResultHandler(t)(n)};try{var a=e.callback.call(r.bind,t.transition,t.stateContext);return!this.type.synchronous&&re(a)?a.catch(function(t){return He.normalize(t).toPromise()}).then(o,i):o(a)}catch(t){return i(He.normalize(t))}}},e.prototype.handleHookResult=function(t){var e=this,n=this.getNotCurrentRejection();return n||(re(t)?t.then(function(t){return e.handleHookResult(t)}):(qe.traceHookResult(t,this.transition,this.options),!1===t?He.aborted("Hook aborted transition").toPromise():Lt(Ue)(t)?He.redirected(t).toPromise():void 0))},e.prototype.getNotCurrentRejection=function(){var t=this.transition.router;return t._disposed?He.aborted("UIRouter instance #"+t.$id+" has been stopped (disposed)").toPromise():this.transition._aborted?He.aborted().toPromise():this.isSuperseded()?He.superseded(this.options.current()).toPromise():void 0},e.prototype.toString=function(){var t=this,e=t.options,n=t.registeredHook;return(Dt("traceData.hookType")(e)||"internal")+" context: "+(Dt("traceData.context.state.name")(e)||Dt("traceData.context")(e)||"unknown")+", "+B(200,W(n.callback))},e.chain=function(t,e){return t.reduce(function(t,e){return t.then(function(){return e.invokeHook()})},e||oe.$q.when())},e.invokeHooks=function(t,n){for(var r=0;r<t.length;r++){var i=t[r].invokeHook();if(re(i)){var o=t.slice(r+1);return e.chain(o,i).then(n)}}return n()},e.runAllHooks=function(t){t.forEach(function(t){return t.invokeHook()})},e.HANDLE_RESULT=function(t){return function(e){return t.handleHookResult(e)}},e.LOG_REJECTED_RESULT=function(t){return function(e){re(e)&&e.catch(function(e){return t.logError(He.normalize(e))})}},e.LOG_ERROR=function(t){return function(e){return t.logError(e)}},e.REJECT_ERROR=function(t){return function(t){return De(t)}},e.THROW_ERROR=function(t){return function(t){throw t}},e}(),Ye=function(){function e(t,e,n,r,i){void 0===i&&(i={}),this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.priority=i.priority||0,this.bind=i.bind||null,this._deregistered=!1}return e.prototype._matchingNodes=function(t,e){if(!0===e)return t;var n=t.filter(function(t){return D(t.state,e)});return n.length?n:null},e.prototype._getDefaultMatchCriteria=function(){return w(this.tranSvc._pluginapi._getPathTypes(),function(){return!0})},e.prototype._getMatchingNodes=function(e){var n=this,r=de(this._getDefaultMatchCriteria(),this.matchCriteria);return ye(this.tranSvc._pluginapi._getPathTypes()).reduce(function(i,o){var a=o.scope===t.TransitionHookScope.STATE,s=e[o.name]||[],c=a?s:[T(s)];return i[o.name]=n._matchingNodes(c,r[o.name]),i},{})},e.prototype.matches=function(t){var e=this._getMatchingNodes(t);return ye(e).every(u)?e:null},e}(),Ke=function(){function e(t){this.transition=t}return e.prototype.buildHooksForPhase=function(t){var e=this;return this.transition.router.transitionService._pluginapi._getEvents(t).map(function(t){return e.buildHooks(t)}).reduce(we,[]).filter(u)},e.prototype.buildHooks=function(e){var n=this.transition,r=n.treeChanges(),i=this.getMatchingHooks(e,r);if(!i)return[];var o={transition:n,current:n.options().current};return i.map(function(i){return i.matches(r)[e.criteriaMatchPath.name].map(function(r){var a=de({bind:i.bind,traceData:{hookType:e.name,context:r}},o),s=e.criteriaMatchPath.scope===t.TransitionHookScope.STATE?r.state.self:null,c=new We(n,s,i,a);return{hook:i,node:r,transitionHook:c}})}).reduce(we,[]).sort(P(e.reverseSort)).map(function(t){return t.transitionHook})},e.prototype.getMatchingHooks=function(e,n){var r=e.hookPhase===t.TransitionHookPhase.CREATE,i=this.transition.router.transitionService;return(r?[i]:[this.transition,i]).map(function(t){return t.getHooks(e.name)}).filter(Te(Zt,"broken event named: "+e.name)).reduce(we,[]).filter(function(t){return t.matches(n)})},e}(),Ge=function(){function t(t){this.pattern=/.*/,this.inherit=!0,de(this,t)}return t.prototype.is=function(t,e){return!0},t.prototype.encode=function(t,e){return t},t.prototype.decode=function(t,e){return t},t.prototype.equals=function(t,e){return t==e},t.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},t.prototype.toString=function(){return"{ParamType:"+this.name+"}"},t.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},t.prototype.$asArray=function(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new H(this,t)},t}(),Xe=Object.prototype.hasOwnProperty,Je=function(t){return 0===["value","type","squash","array","dynamic"].filter(Xe.bind(t||{})).length};!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(t.DefType||(t.DefType={}));var Qe=function(){function e(e,n,r,i,o){n=j(r=L(r),n,i,e,o.paramTypes);var a=function(){var n={array:i===t.DefType.SEARCH&&"auto"},o=e.match(/\[\]$/)?{array:!0}:{};return de(n,o,r).array}();n=a?n.$asArray(a,i===t.DefType.SEARCH):n;var s=void 0!==r.value||i===t.DefType.SEARCH,c=Wt(r.dynamic)?!!r.dynamic:!!n.dynamic,l=Wt(r.raw)?!!r.raw:!!n.raw,u=F(r,s,o.defaultSquashPolicy()),d=V(r,a,s,u),m=Wt(r.inherit)?!!r.inherit:!!n.inherit;de(this,{id:e,type:n,location:i,isOptional:s,dynamic:c,raw:l,squash:u,replace:d,inherit:m,array:a,config:r})}return e.prototype.isDefaultValue=function(t){return this.isOptional&&this.type.equals(this.value(),t)},e.prototype.value=function(t){var e=this;return t=function(t){for(var n=0,r=e.replace;n<r.length;n++){var i=r[n];if(i.from===t)return i.to}return t}(t),zt(t)?function(){if(e._defaultValueCache)return e._defaultValueCache.defaultValue;if(!oe.$injector)throw new Error("Injectable functions cannot be called at configuration time");var t=oe.$injector.invoke(e.config.$$fn);if(null!==t&&void 0!==t&&!e.type.is(t))throw new Error("Default value ("+t+") for parameter '"+e.id+"' is not an instance of ParamType ("+e.type.name+")");return e.config.$$fn.__cacheable&&(e._defaultValueCache={defaultValue:t}),t}():this.type.$normalize(t)},e.prototype.isSearch=function(){return this.location===t.DefType.SEARCH},e.prototype.validates=function(t){if((zt(t)||null===t)&&this.isOptional)return!0;var e=this.type.$normalize(t);if(!this.type.is(e))return!1;var n=this.type.encode(e);return!(Jt(n)&&!this.type.pattern.exec(n))},e.prototype.toString=function(){return"{Param:"+this.id+" "+this.type+" squash: '"+this.squash+"' optional: "+this.isOptional+"}"},e.values=function(t,e){void 0===e&&(e={});for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];n[o.id]=o.value(e[o.id])}return n},e.changed=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),t.filter(function(t){return!t.type.equals(e[t.id],n[t.id])})},e.equals=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),0===e.changed(t,n,r).length},e.validates=function(t,e){return void 0===e&&(e={}),t.map(function(t){return t.validates(e[t.id])}).reduce(Ee,!0)},e}(),Ze=function(){function t(e){if(e instanceof t){var n=e;this.state=n.state,this.paramSchema=n.paramSchema.slice(),this.paramValues=de({},n.paramValues),this.resolvables=n.resolvables.slice(),this.views=n.views&&n.views.slice()}else{var r=e;this.state=r,this.paramSchema=r.parameters({inherit:!1}),this.paramValues={},this.resolvables=r.resolvables.map(function(t){return t.clone()})}}return t.prototype.applyRawParams=function(t){var e=function(e){return[e.id,e.value(t[e.id])]};return this.paramValues=this.paramSchema.reduce(function(t,n){return x(t,e(n))},{}),this},t.prototype.parameter=function(t){return C(this.paramSchema,It("id",t))},t.prototype.equals=function(t,e){var n=this.diff(t,e);return n&&0===n.length},t.prototype.diff=function(t,e){if(this.state!==t.state)return!1;var n=e?e(this):this.paramSchema;return Qe.changed(n,this.paramValues,t.paramValues)},t.clone=function(e){return new t(e)},t}(),tn=function(){function t(){}return t.makeTargetState=function(t){var e=T(t).state;return new Ue(e,e,t.map(Ot("paramValues")).reduce($e,{}))},t.buildPath=function(t){var e=t.params();return t.$state().path.map(function(t){return new Ze(t).applyRawParams(e)})},t.buildToPath=function(e,n){var r=t.buildPath(n);return n.options().inherit?t.inheritParams(e,r,Object.keys(n.params())):r},t.applyViewConfigs=function(e,n,r){n.filter(function(t){return he(r,t.state)}).forEach(function(r){var i=ye(r.state.views||{}),o=t.subPath(n,function(t){return t===r}),a=i.map(function(t){return e.createViewConfig(o,t)});r.views=a.reduce(we,[])})},t.inheritParams=function(t,e,n){function r(t,e){var n=C(t,It("state",e));return de({},n&&n.paramValues)}void 0===n&&(n=[]);var i=t.map(function(t){return t.paramSchema}).reduce(we,[]).filter(function(t){return!t.inherit}).map(Ot("id"));return e.map(function(e){var o=de({},e&&e.paramValues),a=$(o,n);o=b(o,n);var s=b(r(t,e.state)||{},i),c=de(o,s,a);return new Ze(e.state).applyRawParams(c)})},t.treeChanges=function(e,n,r){for(var i=0,o=Math.min(e.length,n.length);i<o&&e[i].state!==r&&function(e,n){return e.equals(n,t.nonDynamicParams)}(e[i],n[i]);)i++;var a,s,c,l,u;s=(a=e).slice(0,i),c=a.slice(i);var d=s.map(function(t,e){var r=Ze.clone(t);return r.paramValues=n[e].paramValues,r});return l=n.slice(i),u=d.concat(l),{from:a,to:u,retained:s,exiting:c,entering:l}},t.matching=function(t,e,n){var r=!1;return k(t,e).reduce(function(t,e){var i=e[0],o=e[1];return(r=r||!i.equals(o,n))?t:t.concat(i)},[])},t.equals=function(e,n,r){return e.length===n.length&&t.matching(e,n,r).length===e.length},t.subPath=function(t,e){var n=C(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)},t.nonDynamicParams=function(t){return t.state.parameters({inherit:!1}).filter(function(t){return!t.dynamic})},t.paramValues=function(t){return t.reduce(function(t,e){return de(t,e.paramValues)},{})},t}(),en={when:"LAZY",async:"WAIT"},nn=function(){function t(e,n,r,i,o){if(this.resolved=!1,this.promise=void 0,e instanceof t)de(this,e);else if(Gt(n)){if(Kt(e))throw new Error("new Resolvable(): token argument is required");if(!Gt(n))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=e,this.policy=i,this.resolveFn=n,this.deps=r||[],this.data=o,this.resolved=void 0!==o,this.promise=this.resolved?oe.$q.when(this.data):void 0}else if(Qt(e)&&e.token&&Gt(e.resolveFn)){var a=e;return new t(a.token,a.resolveFn,a.deps,a.policy,a.data)}}return t.prototype.getPolicy=function(t){var e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||en.when,async:e.async||n.async||en.async}},t.prototype.resolve=function(t,e){var n=this,r=oe.$q,i=t.findNode(this),o=i&&i.state,a="RXWAIT"===this.getPolicy(o).async?function(t){var e=t.cache(1);return e.take(1).toPromise().then(function(){return e})}:u;return this.promise=r.when().then(function(){return r.all(t.getDependencies(n).map(function(n){return n.get(t,e)}))}).then(function(t){return n.resolveFn.apply(null,t)}).then(a).then(function(t){return n.data=t,n.resolved=!0,qe.traceResolvableResolved(n,e),n.data})},t.prototype.get=function(t,e){return this.promise||this.resolve(t,e)},t.prototype.toString=function(){return"Resolvable(token: "+Y(this.token)+", requires: ["+this.deps.map(Y)+"])"},t.prototype.clone=function(){return new t(this)},t.fromData=function(e,n){return new t(e,function(){return n},null,null,n)},t}(),rn={when:{LAZY:"LAZY",EAGER:"EAGER"},async:{WAIT:"WAIT",NOWAIT:"NOWAIT",RXWAIT:"RXWAIT"}},on=rn.when,an=[on.EAGER,on.LAZY],sn=[on.EAGER],cn="Native Injector",ln=function(){function t(t){this._path=t}return t.prototype.getTokens=function(){return this._path.reduce(function(t,e){return t.concat(e.resolvables.map(function(t){return t.token}))},[]).reduce(Ae,[])},t.prototype.getResolvable=function(t){return T(this._path.map(function(t){return t.resolvables}).reduce(we,[]).filter(function(e){return e.token===t}))},t.prototype.getPolicy=function(t){var e=this.findNode(t);return t.getPolicy(e.state)},t.prototype.subContext=function(e){return new t(tn.subPath(this._path,function(t){return t.state===e}))},t.prototype.addResolvables=function(t,e){var n=C(this._path,It("state",e)),r=t.map(function(t){return t.token});n.resolvables=n.resolvables.filter(function(t){return-1===r.indexOf(t.token)}).concat(t)},t.prototype.resolvePath=function(t,e){var n=this;void 0===t&&(t="LAZY");var r=(he(an,t)?t:"LAZY")===rn.when.EAGER?sn:an;qe.traceResolvePath(this._path,t,e);var i=function(t,e){return function(r){return he(t,n.getPolicy(r)[e])}},o=this._path.reduce(function(t,o){var a=o.resolvables.filter(i(r,"when")),s=a.filter(i(["NOWAIT"],"async")),c=a.filter(Rt(i(["NOWAIT"],"async"))),l=n.subContext(o.state),u=function(t){return t.get(l,e).then(function(e){return{token:t.token,value:e}})};return s.forEach(u),t.concat(c.map(u))},[]);return oe.$q.all(o)},t.prototype.injector=function(){return this._injector||(this._injector=new un(this))},t.prototype.findNode=function(t){return C(this._path,function(e){return he(e.resolvables,t)})},t.prototype.getDependencies=function(t){var e=this,n=this.findNode(t),r=(tn.subPath(this._path,function(t){return t===n})||this._path).reduce(function(t,e){return t.concat(e.resolvables)},[]).filter(function(e){return e!==t});return t.deps.map(function(t){var n=r.filter(function(e){return e.token===t});if(n.length)return T(n);var i=e.injector().getNative(t);if(!i)throw new Error("Could not find Dependency Injection token: "+Y(t));return new nn(t,function(){return i},[],i)})},t}(),un=function(){function t(t){this.context=t,this.native=this.get(cn)||oe.$injector}return t.prototype.get=function(t){var e=this.context.getResolvable(t);if(e){if("NOWAIT"===this.context.getPolicy(e).async)return e.get(this.context);if(!e.resolved)throw new Error("Resolvable async .get() not complete:"+Y(e.token));return e.data}return this.native&&this.native.get(t)},t.prototype.getAsync=function(t){var e=this.context.getResolvable(t);return e?e.get(this.context):oe.$q.when(this.native.get(t))},t.prototype.getNative=function(t){return this.native&&this.native.get(t)},t}(),dn=Ot("self"),mn=function(){function e(e,n,r){var i=this;if(this._deferred=oe.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new Ke(this),this.isActive=function(){return i.router.globals.transition===i},this.router=r,this._targetState=n,!n.valid())throw new Error(n.error());this._options=de({current:Ft(this)},n.options()),this.$id=r.transitionService._transitionCount++;var o=tn.buildToPath(e,n);this._treeChanges=tn.treeChanges(e,o,this._options.reloadState),this.createTransitionHookRegFns();var a=this._hookBuilder.buildHooksForPhase(t.TransitionHookPhase.CREATE);We.invokeHooks(a,function(){return null}),this.applyViewConfigs(r)}return e.prototype.onBefore=function(t,e,n){},e.prototype.onStart=function(t,e,n){},e.prototype.onExit=function(t,e,n){},e.prototype.onRetain=function(t,e,n){},e.prototype.onEnter=function(t,e,n){},e.prototype.onFinish=function(t,e,n){},e.prototype.onSuccess=function(t,e,n){},e.prototype.onError=function(t,e,n){},e.prototype.createTransitionHookRegFns=function(){var e=this;this.router.transitionService._pluginapi._getEvents().filter(function(e){return e.hookPhase!==t.TransitionHookPhase.CREATE}).forEach(function(t){return R(e,e.router.transitionService,t)})},e.prototype.getHooks=function(t){return this._registeredHooks[t]},e.prototype.applyViewConfigs=function(t){var e=this._treeChanges.entering.map(function(t){return t.state});tn.applyViewConfigs(t.transitionService.$view,this._treeChanges.to,e)},e.prototype.$from=function(){return T(this._treeChanges.from).state},e.prototype.$to=function(){return T(this._treeChanges.to).state},e.prototype.from=function(){return this.$from().self},e.prototype.to=function(){return this.$to().self},e.prototype.targetState=function(){return this._targetState},e.prototype.is=function(t){return t instanceof e?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!D(this.$to(),t.to)||t.from&&!D(this.$from(),t.from))},e.prototype.params=function(t){return void 0===t&&(t="to"),Object.freeze(this._treeChanges[t].map(Ot("paramValues")).reduce($e,{}))},e.prototype.injector=function(t,e){void 0===e&&(e="to");var n=this._treeChanges[e];return t&&(n=tn.subPath(n,function(e){return e.state===t||e.state.name===t})),new ln(n).injector()},e.prototype.getResolveTokens=function(t){return void 0===t&&(t="to"),new ln(this._treeChanges[t]).getTokens()},e.prototype.addResolvable=function(t,e){void 0===e&&(e=""),t=Lt(nn)(t)?t:new nn(t);var n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=C(r,function(t){return t.state.name===n});new ln(r).addResolvables([t],i.state)},e.prototype.redirectedFrom=function(){return this._options.redirectedFrom||null},e.prototype.originalTransition=function(){var t=this.redirectedFrom();return t&&t.originalTransition()||this},e.prototype.options=function(){return this._options},e.prototype.entering=function(){return w(this._treeChanges.entering,Ot("state")).map(dn)},e.prototype.exiting=function(){return w(this._treeChanges.exiting,Ot("state")).map(dn).reverse()},e.prototype.retained=function(){return w(this._treeChanges.retained,Ot("state")).map(dn)},e.prototype.views=function(t,e){void 0===t&&(t="entering");var n=this._treeChanges[t];return(n=e?n.filter(It("state",e)):n).map(Ot("views")).filter(u).reduce(we,[])},e.prototype.treeChanges=function(t){return t?this._treeChanges[t]:this._treeChanges},e.prototype.redirect=function(t){for(var e=1,n=this;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");var r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");var i=de({},this.options(),t.options(),r);t=new Ue(t.identifier(),t.$state(),t.params(),i);var o=this.router.transitionService.create(this._treeChanges.from,t),a=this._treeChanges.entering,s=o._treeChanges.entering;return tn.matching(s,a,tn.nonDynamicParams).filter(Rt(function(t){return function(e){return t&&e.state.includes[t.name]}}(t.options().reloadState))).forEach(function(t,e){t.resolvables=a[e].resolvables}),o},e.prototype._changedParams=function(){var t=this._treeChanges;if(!(this._options.reload||t.exiting.length||t.entering.length||t.to.length!==t.from.length||k(t.to,t.from).map(function(t){return t[0].state!==t[1].state}).reduce(Ce,!1))){var e=t.to.map(function(t){return t.paramSchema}),n=[t.to,t.from].map(function(t){return t.map(function(t){return t.paramValues})});return k(e,n[0],n[1]).map(function(t){var e=t[0],n=t[1],r=t[2];return Qe.changed(e,n,r)}).reduce(we,[])}},e.prototype.dynamic=function(){var t=this._changedParams();return!!t&&t.map(function(t){return t.dynamic}).reduce(Ce,!1)},e.prototype.ignored=function(){return!!this._ignoredReason()},e.prototype._ignoredReason=function(){var t=this.router.globals.transition,e=this._options.reloadState,n=function(t,n){if(t.length!==n.length)return!1;var r=tn.matching(t,n);return t.length===r.filter(function(t){return!e||!t.state.includes[e.name]}).length},r=this.treeChanges(),i=t&&t.treeChanges();return i&&n(i.to,r.to)&&n(i.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0},e.prototype.run=function(){var e=this,n=We.runAllHooks,r=function(t){return e._hookBuilder.buildHooksForPhase(t)},i=r(t.TransitionHookPhase.BEFORE);return We.invokeHooks(i,function(){var t=e.router.globals;return t.lastStartedTransitionId=e.$id,t.transition=e,t.transitionHistory.enqueue(e),qe.traceTransitionStart(e),oe.$q.when(void 0)}).then(function(){var e=r(t.TransitionHookPhase.RUN);return We.invokeHooks(e,function(){return oe.$q.when(void 0)})}).then(function(){qe.traceSuccess(e.$to(),e),e.success=!0,e._deferred.resolve(e.to()),n(r(t.TransitionHookPhase.SUCCESS))},function(i){qe.traceError(i,e),e.success=!1,e._deferred.reject(i),e._error=i,n(r(t.TransitionHookPhase.ERROR))}),this.promise},e.prototype.valid=function(){return!this.error()||void 0!==this.success},e.prototype.abort=function(){zt(this.success)&&(this._aborted=!0)},e.prototype.error=function(){var t=this.$to();if(t.self.abstract)return"Cannot transition to abstract state '"+t.name+"'";var e=t.parameters(),n=this.params(),r=e.filter(function(t){return!t.validates(n[t.id])});return r.length?"Param values not valid for state '"+t.name+"'. Invalid params: [ "+r.map(function(t){return t.id}).join(", ")+" ]":!1===this.success?this._error:void 0},e.prototype.toString=function(){var t=this.from(),e=this.to(),n=function(t){return null!==t["#"]&&void 0!==t["#"]?t:b(t,["#"])};return"Transition#"+this.$id+"( '"+(Qt(t)?t.name:t)+"'"+ce(n(this._treeChanges.from.map(Ot("paramValues")).reduce($e,{})))+" -> "+(this.valid()?"":"(X) ")+"'"+(Qt(e)?e.name:e)+"'"+ce(n(this.params()))+" )"},e.diToken=e,e}(),pn=null,hn=function(t){var e=He.isRejectionPromise;return(pn=pn||c([[Rt(Wt),Ft("undefined")],[Yt,Ft("null")],[re,Ft("[Promise]")],[e,function(t){return t._transitionRejection.toString()}],[Lt(He),s("toString")],[Lt(mn),s("toString")],[Lt(nn),s("toString")],[l,z],[Ft(!0),u]]))(t)},fn=function(t){return function(e){if(!e)return["",""];var n=e.indexOf(t);return-1===n?[e,""]:[e.substr(0,n),e.substr(n+1)]}},gn=function(){function t(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=$(t.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=pe(w(this.defaultTypes,function(t,e){return new Ge(de({name:e},t))}),{})}return t.prototype.dispose=function(){this.types={}},t.prototype.type=function(t,e,n){if(!Wt(e))return this.types[t];if(this.types.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return this.types[t]=new Ge(de({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this},t.prototype._flushTypeQueue=function(){for(;this.typeQueue.length;){var t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");de(this.types[t.name],oe.$injector.invoke(t.def))}},t}();!function(){var t=function(t){var e=function(t){return null!=t?t.toString():t},n={encode:e,decode:e,is:Lt(String),pattern:/.*/,equals:function(t,e){return t==e}};return de({},n,t)};de(gn.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:function(t){return parseInt(t,10)},is:function(t){return!Kt(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:function(t){return t&&1||0},decode:function(t){return 0!==parseInt(t,10)},is:Lt(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;var e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return["getFullYear","getMonth","getDate"].reduce(function(n,r){return n&&t[r]()===e[r]()},!0)},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:ce,decode:se,is:Lt(Object),equals:me,pattern:/[^/]*/}),any:t({encode:u,decode:u,is:function(){return!0},equals:me})})}();var vn,$n=function(){function t(t){void 0===t&&(t={}),de(this,t)}return t.prototype.$inherit=function(t,e,n){var r,i=v(e,n),o={},a=[];for(var s in i)if(i[s]&&i[s].params&&(r=Object.keys(i[s].params)).length)for(var c in r)a.indexOf(r[c])>=0||(a.push(r[c]),o[r[c]]=this[r[c]]);return de({},o,t)},t}(),bn=function(t){if(!Jt(t))return!1;var e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}},yn=function(t,e){return function(n){var r=n;r&&r.url&&r.name&&r.name.match(/\.\*\*$/)&&(r.url+="{remainder:any}");var i=bn(r.url),o=n.parent,a=i?t.compile(i.val,{params:n.params||{},paramMap:function(t,e){return!1===r.reloadOnSearch&&e&&(t=de(t||{},{dynamic:!0})),t}}):r.url;if(!a)return null;if(!t.isMatcher(a))throw new Error("Invalid url '"+a+"' in state '"+n+"'");return i&&i.root?a:(o&&o.navigable||e()).url.append(a)}},En=function(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}},Cn=function(t){return function(e){var n=e.url&&e.url.parameters({inherit:!1})||[],r=ye(be(b(e.params||{},n.map(Ot("id"))),function(e,n){return t.fromConfig(n,null,e)}));return n.concat(r).map(function(t){return[t.id,t]}).reduce(x,{})}},wn=function(){function t(t,e){this.matcher=t;var n=this,r=function(){return t.find("")},i=function(t){return""===t.name};this.builders={name:[X],self:[J],parent:[function(e){return i(e)?null:t.find(n.parentName(e))||r()}],data:[Q],url:[yn(e,r)],navigable:[En(i)],params:[Cn(e.paramFactory)],views:[],path:[Z],includes:[tt],resolvables:[et]}}return t.prototype.builder=function(t,e){var n=this.builders,r=n[t]||[];return Jt(t)&&!Wt(e)?r.length>1?r:r[0]:Jt(t)&&Gt(e)?(n[t]=r,n[t].push(e),function(){return n[t].splice(n[t].indexOf(e,1))&&null}):void 0},t.prototype.build=function(t){var e=this,n=e.matcher,r=e.builders,i=this.parentName(t);if(i&&!n.find(i,void 0,!1))return null;for(var o in r)if(r.hasOwnProperty(o)){var a=r[o].reduce(function(t,e){return function(n){return e(n,t)}},d);t[o]=a(t)}return t},t.prototype.parentName=function(t){var e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error("States that specify the 'parent:' property should not have a '.' in their name ("+e+")");return n.join(".")}return t.parent?Jt(t.parent)?t.parent:t.parent.name:""},t.prototype.name=function(t){var e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;var n=Jt(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e},t}(),Mn=function(){function t(t){this._states=t}return t.prototype.isRelative=function(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")},t.prototype.find=function(t,e,n){if(void 0===n&&(n=!0),t||""===t){var r=Jt(t),i=r?t:t.name;this.isRelative(i)&&(i=this.resolvePath(i,e));var o=this._states[i];if(o&&(r||!(r||o!==t&&o.self!==t)))return o;if(r&&n){var a=ye(this._states).filter(function(t){return t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(i)});return a.length>1&&console.log("stateMatcher.find: Found multiple matches for "+i+" using glob: ",a.map(function(t){return t.name})),a[0]}}},t.prototype.resolvePath=function(t,e){if(!e)throw new Error("No reference point given for path '"+t+"'");for(var n=this.find(e),r=t.split("."),i=0,o=r.length,a=n;i<o;i++)if(""!==r[i]||0!==i){if("^"!==r[i])break;if(!a.parent)throw new Error("Path '"+t+"' not valid for state '"+n.name+"'");a=a.parent}else a=n;var s=r.slice(i).join(".");return a.name+(a.name&&s?".":"")+s},t}(),An=function(){function t(t,e,n,r,i){this.$registry=t,this.$urlRouter=e,this.states=n,this.builder=r,this.listeners=i,this.queue=[],this.matcher=t.matcher}return t.prototype.dispose=function(){this.queue=[]},t.prototype.register=function(t){var e=this.queue,n=Bt.create(t),r=n.name;if(!Jt(r))throw new Error("State must have a valid name");if(this.states.hasOwnProperty(r)||he(e.map(Ot("name")),r))throw new Error("State '"+r+"' is already defined");return e.push(n),this.flush(),n},t.prototype.flush=function(){for(var t=this,e=this,n=e.queue,r=e.states,i=e.builder,o=[],a=[],s={},c=function(e){return t.states.hasOwnProperty(e)&&t.states[e]};n.length>0;){var l=n.shift(),u=l.name,d=i.build(l),m=a.indexOf(l);if(d){var p=c(u);if(p&&p.name===u)throw new Error("State '"+u+"' is already defined");var h=c(u+".**");h&&this.$registry.deregister(h),r[u]=l,this.attachRoute(l),m>=0&&a.splice(m,1),o.push(l)}else{var f=s[u];if(s[u]=n.length,m>=0&&f===n.length)return n.push(l),r;m<0&&a.push(l),n.push(l)}}return o.length&&this.listeners.forEach(function(t){return t("registered",o.map(function(t){return t.self}))}),r},t.prototype.attachRoute=function(t){!t.abstract&&t.url&&this.$urlRouter.rule(this.$urlRouter.urlRuleFactory.create(t))},t}(),kn=function(){function t(t){this._router=t,this.states={},this.listeners=[],this.matcher=new Mn(this.states),this.builder=new wn(this.matcher,t.urlMatcherFactory),this.stateQueue=new An(this,t.urlRouter,this.states,this.builder,this.listeners),this._registerRoot()}return t.prototype._registerRoot=function(){var t={name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0};(this._root=this.stateQueue.register(t)).navigable=null},t.prototype.dispose=function(){var t=this;this.stateQueue.dispose(),this.listeners=[],this.get().forEach(function(e){return t.get(e)&&t.deregister(e)})},t.prototype.onStatesChanged=function(t){return this.listeners.push(t),function(){fe(this.listeners)(t)}.bind(this)},t.prototype.root=function(){return this._root},t.prototype.register=function(t){return this.stateQueue.register(t)},t.prototype._deregisterTree=function(t){var e=this,n=this.get().map(function(t){return t.$$state()}),r=function(t){var e=n.filter(function(e){return-1!==t.indexOf(e.parent)});return 0===e.length?e:e.concat(r(e))},i=r([t]),o=[t].concat(i).reverse();return o.forEach(function(t){var n=e._router.urlRouter;n.rules().filter(It("state",t)).forEach(n.removeRule.bind(n)),delete e.states[t.name]}),o},t.prototype.deregister=function(t){var e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);var n=this._deregisterTree(e.$$state());return this.listeners.forEach(function(t){return t("deregistered",n.map(function(t){return t.self}))}),n},t.prototype.get=function(t,e){var n=this;if(0===arguments.length)return Object.keys(this.states).map(function(t){return n.states[t].self});var r=this.matcher.find(t,e);return r&&r.self||null},t.prototype.decorator=function(t,e){return this.builder.builder(t,e)},t}(),xn=function(t,e,n){return t[e]=t[e]||n()},Tn=K("/"),_n=function(){function e(t,n,r,i){var o=this;this.config=i,this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.pattern=t,this.config=g(this.config,{params:{},strict:!0,caseInsensitive:!1,paramMap:u});for(var a,s,c,l=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,d=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,m=0,p=[],h=function(n){if(!e.nameValidator.test(n))throw new Error("Invalid parameter name '"+n+"' in pattern '"+t+"'");if(C(o._params,It("id",n)))throw new Error("Duplicate parameter name '"+n+"' in pattern '"+t+"'")},f=function(e,r){var i=e[2]||e[3],a=r?e[4]:e[4]||("*"===e[1]?"[\\s\\S]*":null);return{id:i,regexp:a,cfg:o.config.params[i],segment:t.substring(m,e.index),type:a?n.type(a)||function(t){return pe(n.type(r?"query":"path"),{pattern:new RegExp(t,o.config.caseInsensitive?"i":void 0)})}(a):null}};(a=l.exec(t))&&!((s=f(a,!1)).segment.indexOf("?")>=0);)h(s.id),this._params.push(r.fromPath(s.id,s.type,this.config.paramMap(s.cfg,!1))),this._segments.push(s.segment),p.push([s.segment,T(this._params)]),m=l.lastIndex;var v=(c=t.substring(m)).indexOf("?");if(v>=0){var $=c.substring(v);if(c=c.substring(0,v),$.length>0)for(m=0;a=d.exec($);)h((s=f(a,!0)).id),this._params.push(r.fromSearch(s.id,s.type,this.config.paramMap(s.cfg,!0))),m=l.lastIndex}this._segments.push(c),this._compiled=p.map(function(t){return nt.apply(null,t)}).concat(nt(c))}return e.prototype.append=function(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t},e.prototype.isRoot=function(){return this._cache.path[0]===this},e.prototype.toString=function(){return this.pattern},e.prototype.exec=function(t,e,n,r){var i=this;void 0===e&&(e={}),void 0===r&&(r={});var o=xn(this._cache,"pattern",function(){return new RegExp(["^",ke(i._cache.path.map(Ot("_compiled"))).join(""),!1===i.config.strict?"/?":"","$"].join(""),i.config.caseInsensitive?"i":void 0)}).exec(t);if(!o)return null;var a=this.parameters(),s=a.filter(function(t){return!t.isSearch()}),c=a.filter(function(t){return t.isSearch()}),l=this._cache.path.map(function(t){return t._segments.length-1}).reduce(function(t,e){return t+e}),u={};if(l!==o.length-1)throw new Error("Unbalanced capture group in route '"+this.pattern+"'");for(var d=0;d<l;d++){for(var m=s[d],p=o[d+1],h=0;h<m.replace.length;h++)m.replace[h].from===p&&(p=m.replace[h].to);p&&!0===m.array&&(p=function(t){var e=function(t){return t.split("").reverse().join("")};return w(w(e(t).split(/-(?!\\)/),e),function(t){return t.replace(/\\-/g,"-")}).reverse()}(p)),Wt(p)&&(p=m.type.decode(p)),u[m.id]=m.value(p)}return c.forEach(function(t){for(var n=e[t.id],r=0;r<t.replace.length;r++)t.replace[r].from===n&&(n=t.replace[r].to);Wt(n)&&(n=t.type.decode(n)),u[t.id]=t.value(n)}),n&&(u["#"]=n),u},e.prototype.parameters=function(t){return void 0===t&&(t={}),!1===t.inherit?this._params:ke(this._cache.path.map(function(t){return t._params}))},e.prototype.parameter=function(t,e){var n=this;void 0===e&&(e={});var r=this._cache.parent;return function(){for(var e=0,r=n._params;e<r.length;e++){var i=r[e];if(i.id===t)return i}}()||!1!==e.inherit&&r&&r.parameter(t,e)||null},e.prototype.validates=function(t){var e=function(t,e){return!t||t.validates(e)};return t=t||{},this.parameters().filter(function(e){return t.hasOwnProperty(e.id)}).map(function(n){return e(n,t[n.id])}).reduce(Ee,!0)},e.prototype.format=function(t){function n(e){var n=e.value(t[e.id]),r=e.validates(n),i=e.isDefaultValue(n);return{param:e,value:n,isValid:r,isDefaultValue:i,squash:!!i&&e.squash,encoded:e.type.encode(n)}}void 0===t&&(t={});var r=this._cache.path,i=r.map(e.pathSegmentsAndParams).reduce(we,[]).map(function(t){return Jt(t)?t:n(t)}),o=r.map(e.queryParams).reduce(we,[]).map(n);if(i.concat(o).filter(function(t){return!1===t.isValid}).length)return null;var a=i.reduce(function(t,n){if(Jt(n))return t+n;var r=n.squash,i=n.encoded,o=n.param;return!0===r?t.match(/\/$/)?t.slice(0,-1):t:Jt(r)?t+r:!1!==r?t:null==i?t:Zt(i)?t+w(i,e.encodeDashes).join("-"):o.raw?t+i:t+encodeURIComponent(i)},""),s=o.map(function(t){var e=t.param,n=t.squash,r=t.encoded,i=t.isDefaultValue;if(!(null==r||i&&!1!==n)&&(Zt(r)||(r=[r]),0!==r.length))return e.raw||(r=w(r,encodeURIComponent)),r.map(function(t){return e.id+"="+t})}).filter(u).reduce(we,[]).join("&");return a+(s?"?"+s:"")+(t["#"]?"#"+t["#"]:"")},e.encodeDashes=function(t){return encodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})},e.pathSegmentsAndParams=function(e){return k(e._segments,e._params.filter(function(e){return e.location===t.DefType.PATH}).concat(void 0)).reduce(we,[]).filter(function(t){return""!==t&&Wt(t)})},e.queryParams=function(e){return e._params.filter(function(e){return e.location===t.DefType.SEARCH})},e.compare=function(t,n){var r,i,o=function(t){return t._cache.segments=t._cache.segments||t._cache.path.map(e.pathSegmentsAndParams).reduce(we,[]).reduce(G,[]).map(function(t){return Jt(t)?Tn(t):t}).reduce(we,[])},a=function(t){return t._cache.weights=t._cache.weights||o(t).map(function(t){return"/"===t?1:Jt(t)?2:t instanceof Qe?3:void 0})},s=k(a(t),a(n));for(i=0;i<s.length;i++)if(0!=(r=s[i][0]-s[i][1]))return r;return 0},e.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/,e}(),Sn=function(){function e(){var e=this;this.paramTypes=new gn,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1,this._getConfig=function(t){return de({strict:e._isStrictMode,caseInsensitive:e._isCaseInsensitive},t)},this.paramFactory={fromConfig:function(n,r,i){return new Qe(n,r,i,t.DefType.CONFIG,e)},fromPath:function(n,r,i){return new Qe(n,r,i,t.DefType.PATH,e)},fromSearch:function(n,r,i){return new Qe(n,r,i,t.DefType.SEARCH,e)}},de(this,{UrlMatcher:_n,Param:Qe})}return e.prototype.caseInsensitive=function(t){return this._isCaseInsensitive=Wt(t)?t:this._isCaseInsensitive},e.prototype.strictMode=function(t){return this._isStrictMode=Wt(t)?t:this._isStrictMode},e.prototype.defaultSquashPolicy=function(t){if(Wt(t)&&!0!==t&&!1!==t&&!Jt(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return this._defaultSquashPolicy=Wt(t)?t:this._defaultSquashPolicy},e.prototype.compile=function(t,e){return new _n(t,this.paramTypes,this.paramFactory,this._getConfig(e))},e.prototype.isMatcher=function(t){if(!Qt(t))return!1;var e=!0;return ue(_n.prototype,function(n,r){Gt(n)&&(e=e&&Wt(t[r])&&Gt(t[r]))}),e},e.prototype.type=function(t,e,n){var r=this.paramTypes.type(t,e,n);return Wt(e)?this:r},e.prototype.$get=function(){return this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue(),this},e.prototype.dispose=function(){this.paramTypes.dispose()},e}(),Nn=function(){function t(t){this.router=t}return t.prototype.compile=function(t){return this.router.urlMatcherFactory.compile(t)},t.prototype.create=function(t,e){var n=this,r=c([[Jt,function(t){return r(n.compile(t))}],[Lt(_n),function(t){return n.fromUrlMatcher(t,e)}],[ne,function(t){return n.fromState(t,n.router)}],[Lt(RegExp),function(t){return n.fromRegExp(t,e)}],[Gt,function(t){return new On(t,e)}]]),i=r(t);if(!i)throw new Error("invalid 'what' in when()");return i},t.prototype.fromUrlMatcher=function(t,e){var n=e;Jt(e)&&(e=this.router.urlMatcherFactory.compile(e)),Lt(_n)(e)&&(n=function(t){return e.format(t)});var r={urlMatcher:t,matchPriority:function(e){var n=t.parameters().filter(function(t){return t.isOptional});return n.length?n.filter(function(t){return e[t.id]}).length/n.length:1e-6},type:"URLMATCHER"};return de(new On(function(e){var n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n},n),r)},t.prototype.fromState=function(t,e){var n={state:t,type:"STATE"};return de(this.fromUrlMatcher(t.url,function(n){var r=e.stateService,i=e.globals;r.href(t,n)!==r.href(i.current,i.params)&&r.transitionTo(t,n,{inherit:!0,source:"url"})}),n)},t.prototype.fromRegExp=function(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");var n=Jt(e)?function(t){return e.replace(/\$(\$|\d{1,2})/,function(e,n){return t["$"===n?0:Number(n)]})}:e,r={regexp:t,type:"REGEXP"};return de(new On(function(e){return t.exec(e.path)},n),r)},t.isUrlRule=function(t){return t&&["type","match","handler"].every(function(e){return Wt(t[e])})},t}(),On=function(){return function(t,e){var n=this;this.match=t,this.type="RAW",this.matchPriority=function(t){return 0-n.$id},this.handler=e||u}}(),In=Ot("urlMatcher");vn=Oe(Ne(i(Ot("priority"),function(t){return-t})),Ne(i(Ot("type"),function(t){return{STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1}[t]})),function(t,e){return In(t)&&In(e)?_n.compare(In(t),In(e)):0},Ne(Ot("$id"),he(["REGEXP","RAW","OTHER"])));var Dn=function(){function t(e){this._sortFn=vn,this._rules=[],this.interceptDeferred=!1,this._id=0,this._sorted=!1,this._router=e,this.urlRuleFactory=new Nn(e),m(Ft(t.prototype),this,Ft(this))}return t.prototype.dispose=function(){this.listen(!1),this._rules=[],delete this._otherwiseFn},t.prototype.sort=function(t){this._rules.sort(this._sortFn=t||this._sortFn),this._sorted=!0},t.prototype.ensureSorted=function(){this._sorted||this.sort()},t.prototype.match=function(t){var e=this;this.ensureSorted(),t=de({path:"",search:{},hash:""},t);var n=this.rules();this._otherwiseFn&&n.push(this._otherwiseFn);for(var r,i=0;i<n.length&&(!r||0===this._sortFn(n[i],r.rule));i++){var o=function(n){var r=n.match(t,e._router);return r&&{match:r,rule:n,weight:n.matchPriority(r)}}(n[i]);r=!r||o&&o.weight>r.weight?o:r}return r},t.prototype.sync=function(t){if(!t||!t.defaultPrevented){var e=this._router,n=e.urlService,r=e.stateService,i={path:n.path(),search:n.search(),hash:n.hash()},o=this.match(i);c([[Jt,function(t){return n.url(t,!0)}],[Ue.isDef,function(t){return r.go(t.state,t.params,t.options)}],[Lt(Ue),function(t){return r.go(t.state(),t.params(),t.options())}]])(o&&o.rule.handler(o.match,i,e))}},t.prototype.listen=function(t){var e=this;if(!1!==t)return this._stopFn=this._stopFn||this._router.urlService.onChange(function(t){return e.sync(t)});this._stopFn&&this._stopFn(),delete this._stopFn},t.prototype.update=function(t){var e=this._router.locationService;t?this.location=e.path():e.path()!==this.location&&e.url(this.location,!0)},t.prototype.push=function(t,e,n){var r=n&&!!n.replace;this._router.urlService.url(t.format(e||{}),r)},t.prototype.href=function(t,e,n){var r=t.format(e);if(null==r)return null;n=n||{absolute:!1};var i=this._router.urlService.config,o=i.html5Mode();if(o||null===r||(r="#"+i.hashPrefix()+r),r=rt(r,o,n.absolute,i.baseHref()),!n.absolute||!r)return r;var a=!o&&r?"/":"",s=i.port();return s=80===s||443===s?"":":"+s,[i.protocol(),"://",i.host(),s,a,r].join("")},t.prototype.rule=function(t){var e=this;if(!Nn.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,function(){return e.removeRule(t)}},t.prototype.removeRule=function(t){fe(this._rules,t)},t.prototype.rules=function(){return this.ensureSorted(),this._rules.slice()},t.prototype.otherwise=function(t){var e=it(t);this._otherwiseFn=this.urlRuleFactory.create(Ft(!0),e),this._sorted=!1},t.prototype.initial=function(t){var e=it(t);this.rule(this.urlRuleFactory.create(function(t,e){return 0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)},e))},t.prototype.when=function(t,e,n){var r=this.urlRuleFactory.create(t,e);return Wt(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r},t.prototype.deferIntercept=function(t){void 0===t&&(t=!0),this.interceptDeferred=t},t}(),Rn=function(){function t(){var t=this;this._uiViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIViews:function(){return t._uiViews},_activeViewConfigs:function(){return t._viewConfigs}}}return t.prototype._rootViewContext=function(t){return this._rootContext=t||this._rootContext},t.prototype._viewConfigFactory=function(t,e){this._viewConfigFactories[t]=e},t.prototype.createViewConfig=function(t,e){var n=this._viewConfigFactories[e.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);var r=n(t,e);return Zt(r)?r:[r]},t.prototype.deactivateViewConfig=function(t){qe.traceViewServiceEvent("<- Removing",t),fe(this._viewConfigs,t)},t.prototype.activateViewConfig=function(t){qe.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)},t.prototype.sync=function(){function e(t){for(var e=t.viewDecl.$context,n=0;++n&&e.parent;)e=e.parent;return n}var r=this,i=this._uiViews.map(function(t){return[t.fqn,t]}).reduce(x,{}),o=n(function(t,e,n,r){return e*(t(n)-t(r))}),a=this._uiViews.sort(o(function(t){var e=function(t){return t&&t.parent?e(t.parent)+1:1};return 1e4*t.fqn.split(".").length+e(t.creationContext)},1)).map(function(n){var a=r._viewConfigs.filter(t.matches(i,n));return a.length>1&&a.sort(o(e,-1)),[n,a[0]]});qe.traceViewSync(a),a.forEach(function(t){var e=t[0],n=t[1];-1!==r._uiViews.indexOf(e)&&e.configUpdated(n)})},t.prototype.registerUIView=function(t){qe.traceViewServiceUIViewEvent("-> Registering",t);var e=this._uiViews;return e.filter(function(e){return e.fqn===t.fqn&&e.$type===t.$type}).length&&qe.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",t),e.push(t),this.sync(),function(){-1!==e.indexOf(t)?(qe.traceViewServiceUIViewEvent("<- Deregistering",t),fe(e)(t)):qe.traceViewServiceUIViewEvent("Tried removing non-registered uiView",t)}},t.prototype.available=function(){return this._uiViews.map(Ot("fqn"))},t.prototype.active=function(){return this._uiViews.filter(Ot("$config")).map(Ot("name"))},t.normalizeUIViewTarget=function(t,e){void 0===e&&(e="");var n=e.split("@"),r=n[0]||"$default",i=Jt(n[1])?n[1]:"^",o=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);return o&&(i=o[1],r=o[2]),"!"===r.charAt(0)&&(r=r.substr(1),i=""),/^(\^(?:\.\^)*)$/.exec(i)?i=i.split(".").reduce(function(t,e){return t.parent},t).name:"."===i&&(i=t.name),{uiViewName:r,uiViewContextAnchor:i}},t.matches=function(t,e){return function(n){if(e.$type!==n.viewDecl.$type)return!1;var r=n.viewDecl,i=r.$uiViewName.split("."),o=e.fqn.split(".");if(!me(i,o.slice(0-i.length)))return!1;var a=1-i.length||void 0,s=o.slice(0,a).join("."),c=t[s].creationContext;return r.$uiViewContextAnchor===(c&&c.name)}},t}(),Pn=function(){function t(){this.params=new $n,this.lastStartedTransitionId=-1,this.transitionHistory=new Re([],1),this.successfulTransitions=new Re([],1)}return t.prototype.dispose=function(){this.transitionHistory.clear(),this.successfulTransitions.clear(),this.transition=null},t}(),Hn=function(t){return t.reduce(function(t,e){return t[e]=ie(e),t},{dispose:d})},Ln=["url","path","search","hash","onChange"],jn=["port","protocol","host","baseHref","html5Mode","hashPrefix"],Fn=["type","caseInsensitive","strictMode","defaultSquashPolicy"],Vn=["sort","when","initial","otherwise","rules","rule","removeRule"],Bn=["deferIntercept","listen","sync","match"],qn=function(){function t(t,e){void 0===e&&(e=!0),this.router=t,this.rules={},this.config={};var n=function(){return t.locationService};m(n,this,n,Ln,e);var r=function(){return t.locationConfig};m(r,this.config,r,jn,e);var i=function(){return t.urlMatcherFactory};m(i,this.config,i,Fn);var o=function(){return t.urlRouter};m(o,this.rules,o,Vn),m(o,this,o,Bn)}return t.prototype.url=function(t,e,n){},t.prototype.path=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.onChange=function(t){},t.prototype.parts=function(){return{path:this.path(),search:this.search(),hash:this.hash()}},t.prototype.dispose=function(){},t.prototype.sync=function(t){},t.prototype.listen=function(t){},t.prototype.deferIntercept=function(t){},t.prototype.match=function(t){},t.locationServiceStub=Hn(Ln),t.locationConfigStub=Hn(jn),t}(),Un=0,zn=function(){function t(t,e){void 0===t&&(t=qn.locationServiceStub),void 0===e&&(e=qn.locationConfigStub),this.locationService=t,this.locationConfig=e,this.$id=Un++,this._disposed=!1,this._disposables=[],this.trace=qe,this.viewService=new Rn,this.transitionService=new br(this),this.globals=new Pn,this.urlMatcherFactory=new Sn,this.urlRouter=new Dn(this),this.stateRegistry=new kn(this),this.stateService=new yr(this),this.urlService=new qn(this),this._plugins={},this.viewService._pluginapi._rootViewContext(this.stateRegistry.root()),this.globals.$current=this.stateRegistry.root(),this.globals.current=this.globals.$current.self,this.disposable(this.globals),this.disposable(this.stateService),this.disposable(this.stateRegistry),this.disposable(this.transitionService),this.disposable(this.urlRouter),this.disposable(t),this.disposable(e)}return t.prototype.disposable=function(t){this._disposables.push(t)},t.prototype.dispose=function(t){var e=this;t&&Gt(t.dispose)?t.dispose(this):(this._disposed=!0,this._disposables.slice().forEach(function(t){try{"function"==typeof t.dispose&&t.dispose(e),fe(e._disposables,t)}catch(t){}}))},t.prototype.plugin=function(t,e){void 0===e&&(e={});var n=new t(this,e);if(!n.name)throw new Error("Required property `name` missing on plugin: "+n);return this._disposables.push(n),this._plugins[n.name]=n},t.prototype.getPlugin=function(t){return t?this._plugins[t]:ye(this._plugins)},t}(),Wn=function(t){return t.onCreate({},ot)},Yn=function(t){function e(e){if(e)return e instanceof Ue?e:Jt(e)?r.target(e,t.params(),t.options()):e.state||e.params?r.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}var n=t.to().redirectTo;if(n){var r=t.router.stateService;return Gt(n)?oe.$q.when(n(t)).then(e):e(n)}},Kn=function(t){return t.onStart({to:function(t){return!!t.redirectTo}},Yn)},Gn=at("onExit"),Xn=function(t){return t.onExit({exiting:function(t){return!!t.onExit}},Gn)},Jn=at("onRetain"),Qn=function(t){return t.onRetain({retained:function(t){return!!t.onRetain}},Jn)},Zn=at("onEnter"),tr=function(t){return t.onEnter({entering:function(t){return!!t.onEnter}},Zn)},er=function(t){return new ln(t.treeChanges().to).resolvePath("EAGER",t).then(d)},nr=function(t){return t.onStart({},er,{priority:1e3})},rr=function(t,e){return new ln(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then(d)},ir=function(t){return t.onEnter({entering:Ft(!0)},rr,{priority:1e3})},or=function(t){var e=oe.$q,n=t.views("entering");if(n.length)return e.all(n.map(function(t){return e.when(t.load())})).then(d)},ar=function(t){return t.onFinish({},or)},sr=function(t){var e=t.views("entering"),n=t.views("exiting");if(e.length||n.length){var r=t.router.viewService;n.forEach(function(t){return r.deactivateViewConfig(t)}),e.forEach(function(t){return r.activateViewConfig(t)}),r.sync()}},cr=function(t){return t.onSuccess({},sr)},lr=function(t){var e=t.router.globals,n=function(){e.transition===t&&(e.transition=null)};t.onSuccess({},function(){e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,le(t.params(),e.params)},{priority:1e4}),t.promise.then(n,n)},ur=function(t){return t.onCreate({},lr)},dr=function(t){var e=t.options(),n=t.router.stateService,r=t.router.urlRouter;if("url"!==e.source&&e.location&&n.$current.navigable){var i={replace:"replace"===e.location};r.push(n.$current.navigable.url,n.params,i)}r.update(!0)},mr=function(t){return t.onSuccess({},dr,{priority:9999})},pr=function(t){var e=t.router,n=t.entering().filter(function(t){return!!t.$$state().lazyLoad}).map(function(e){return st(t,e)});return oe.$q.all(n).then(function(){if("url"!==t.originalTransition().options().source){var n=t.targetState();return e.stateService.target(n.identifier(),n.params(),n.options())}var r=e.urlService,i=r.match(r.parts()),o=i&&i.rule;if(o&&"STATE"===o.type){var a=o.state,s=i.match;return e.stateService.target(a,s,t.options())}e.urlService.sync()})},hr=function(t){return t.onBefore({entering:function(t){return!!t.lazyLoad}},pr)},fr=function(){return function(t,e,n,r,i,o,a,s){void 0===i&&(i=!1),void 0===o&&(o=We.HANDLE_RESULT),void 0===a&&(a=We.REJECT_ERROR),void 0===s&&(s=!1),this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=i,this.getResultHandler=o,this.getErrorHandler=a,this.synchronous=s}}(),gr=function(t){return t.onBefore({},ct,{priority:-9999})},vr=function(t){return t.onBefore({},lt,{priority:-1e4})},$r={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,custom:{},current:function(){return null},source:"unknown"},br=function(){function e(t){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this._router=t,this.$view=t.viewService,this._deregisterHookFns={},this._pluginapi=m(Ft(this),{},Ft(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks()}return e.prototype.onCreate=function(t,e,n){},e.prototype.onBefore=function(t,e,n){},e.prototype.onStart=function(t,e,n){},e.prototype.onExit=function(t,e,n){},e.prototype.onRetain=function(t,e,n){},e.prototype.onEnter=function(t,e,n){},e.prototype.onFinish=function(t,e,n){},e.prototype.onSuccess=function(t,e,n){},e.prototype.onError=function(t,e,n){},e.prototype.dispose=function(t){ye(this._registeredHooks).forEach(function(t){return t.forEach(function(e){e._deregistered=!0,fe(t,e)})})},e.prototype.create=function(t,e){return new mn(t,e,this._router)},e.prototype._defineCoreEvents=function(){var e=t.TransitionHookPhase,n=We,r=this._criteriaPaths;this._defineEvent("onCreate",e.CREATE,0,r.to,!1,n.LOG_REJECTED_RESULT,n.THROW_ERROR,!0),this._defineEvent("onBefore",e.BEFORE,0,r.to),this._defineEvent("onStart",e.RUN,0,r.to),this._defineEvent("onExit",e.RUN,100,r.exiting,!0),this._defineEvent("onRetain",e.RUN,200,r.retained),this._defineEvent("onEnter",e.RUN,300,r.entering),this._defineEvent("onFinish",e.RUN,400,r.to),this._defineEvent("onSuccess",e.SUCCESS,0,r.to,!1,n.LOG_REJECTED_RESULT,n.LOG_ERROR,!0),this._defineEvent("onError",e.ERROR,0,r.to,!1,n.LOG_REJECTED_RESULT,n.LOG_ERROR,!0)},e.prototype._defineCorePaths=function(){var e=t.TransitionHookScope.STATE,n=t.TransitionHookScope.TRANSITION;this._definePathType("to",n),this._definePathType("from",n),this._definePathType("exiting",e),this._definePathType("retained",e),this._definePathType("entering",e)},e.prototype._defineEvent=function(t,e,n,r,i,o,a,s){void 0===i&&(i=!1),void 0===o&&(o=We.HANDLE_RESULT),void 0===a&&(a=We.REJECT_ERROR),void 0===s&&(s=!1);var c=new fr(t,e,n,r,i,o,a,s);this._eventTypes.push(c),R(this,this,c)},e.prototype._getEvents=function(t){return(Wt(t)?this._eventTypes.filter(function(e){return e.hookPhase===t}):this._eventTypes.slice()).sort(function(t,e){var n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n})},e.prototype._definePathType=function(t,e){this._criteriaPaths[t]={name:t,scope:e}},e.prototype._getPathTypes=function(){return this._criteriaPaths},e.prototype.getHooks=function(t){return this._registeredHooks[t]},e.prototype._registerCoreTransitionHooks=function(){var t=this._deregisterHookFns;t.addCoreResolves=Wn(this),t.ignored=gr(this),t.invalid=vr(this),t.redirectTo=Kn(this),t.onExit=Xn(this),t.onRetain=Qn(this),t.onEnter=tr(this),t.eagerResolve=nr(this),t.lazyResolve=ir(this),t.loadViews=ar(this),t.activateViews=cr(this),t.updateGlobals=ur(this),t.updateUrl=mr(this),t.lazyLoad=hr(this)},e}(),yr=function(){function e(t){this.router=t,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){t instanceof Error&&t.stack?(console.error(t),console.error(t.stack)):t instanceof He?(console.error(t.toString()),t.detail&&t.detail.stack&&console.error(t.detail.stack)):console.error(t)};var n=["current","$current","params","transition"],r=Object.keys(e.prototype).filter(Rt(he(n)));m(Ft(e.prototype),this,Ft(this),r)}return Object.defineProperty(e.prototype,"transition",{get:function(){return this.router.globals.transition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"params",{get:function(){return this.router.globals.params},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this.router.globals.current},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"$current",{get:function(){return this.router.globals.$current},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.defaultErrorHandler(d),this.invalidCallbacks=[]},e.prototype._handleInvalidTargetState=function(t,e){function n(){var t=c.dequeue();return void 0===t?He.invalid(e.error()).toPromise():oe.$q.when(t(e,i,l)).then(u).then(function(t){return t||n()})}var r=this,i=tn.makeTargetState(t),o=this.router.globals,a=function(){return o.transitionHistory.peekTail()},s=a(),c=new Re(this.invalidCallbacks.slice()),l=new ln(t).injector(),u=function(t){if(t instanceof Ue){var e=t;return(e=r.target(e.identifier(),e.params(),e.options())).valid()?a()!==s?He.superseded().toPromise():r.transitionTo(e.identifier(),e.params(),e.options()):He.invalid(e.error()).toPromise()}};return n()},e.prototype.onInvalid=function(t){return this.invalidCallbacks.push(t),function(){fe(this.invalidCallbacks)(t)}.bind(this)},e.prototype.reload=function(t){return this.transitionTo(this.current,this.params,{reload:!Wt(t)||t,inherit:!1,notify:!1})},e.prototype.go=function(t,e,n){var r=g(n,{relative:this.$current,inherit:!0},$r);return this.transitionTo(t,e,r)},e.prototype.target=function(t,e,n){if(void 0===n&&(n={}),Qt(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");var r=this.router.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error("No such reload state '"+(Jt(n.reload)?n.reload:n.reload.name)+"'");var i=r.matcher.find(t,n.relative);return new Ue(t,i,e,n)},e.prototype.getCurrentPath=function(){var t=this,e=this.router.globals.successfulTransitions.peekTail();return e?e.treeChanges().to:[new Ze(t.router.stateRegistry.root())]},e.prototype.transitionTo=function(e,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r={});var o=this.router,a=o.globals;r=g(r,$r);r=de(r,{current:function(){return a.transition}});var s=this.target(e,n,r),c=this.getCurrentPath();if(!s.exists())return this._handleInvalidTargetState(c,s);if(!s.valid())return De(s.error());var l=function(e){return function(n){if(n instanceof He){var r=o.globals.lastStartedTransitionId===e.$id;if(n.type===t.RejectType.IGNORED)return r&&o.urlRouter.update(),oe.$q.when(a.current);var s=n.detail;if(n.type===t.RejectType.SUPERSEDED&&n.redirected&&s instanceof Ue){var c=e.redirect(s);return c.run().catch(l(c))}if(n.type===t.RejectType.ABORTED)return r&&o.urlRouter.update(),oe.$q.reject(n)}return i.defaultErrorHandler()(n),oe.$q.reject(n)}},u=this.router.transitionService.create(c,s),d=u.run().catch(l(u));return Ie(d),de(d,{transition:u})},e.prototype.is=function(t,e,n){n=g(n,{relative:this.$current});var r=this.router.stateRegistry.matcher.find(t,n.relative);if(Wt(r)){if(this.$current!==r)return!1;if(!e)return!0;var i=r.parameters({inherit:!0,matchingKeys:e});return Qe.equals(i,Qe.values(i,e),this.params)}},e.prototype.includes=function(t,e,n){n=g(n,{relative:this.$current});var r=Jt(t)&&Vt.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}var i=this.router.stateRegistry.matcher.find(t,n.relative),o=this.$current.includes;if(Wt(i)){if(!Wt(o[i.name]))return!1;if(!e)return!0;var a=i.parameters({inherit:!0,matchingKeys:e});return Qe.equals(a,Qe.values(a,e),this.params)}},e.prototype.href=function(t,e,n){n=g(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};var r=this.router.stateRegistry.matcher.find(t,n.relative);if(!Wt(r))return null;n.inherit&&(e=this.params.$inherit(e,this.$current,r));var i=r&&n.lossy?r.navigable:r;return i&&void 0!==i.url&&null!==i.url?this.router.urlRouter.href(i.url,e,{absolute:n.absolute}):null},e.prototype.defaultErrorHandler=function(t){return this._defaultErrorHandler=t||this._defaultErrorHandler},e.prototype.get=function(t,e){var n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)},e.prototype.lazyLoad=function(t,e){var n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);var r=this.getCurrentPath(),i=tn.makeTargetState(r);return e=e||this.router.transitionService.create(r,i),st(e,n)},e}(),Er={when:function(t){return new Promise(function(e,n){return e(t)})},reject:function(t){return new Promise(function(e,n){n(t)})},defer:function(){var t={};return t.promise=new Promise(function(e,n){t.resolve=e,t.reject=n}),t},all:function(t){if(Zt(t))return Promise.all(t);if(Qt(t)){var e=Object.keys(t).map(function(e){return t[e].then(function(t){return{key:e,val:t}})});return Er.all(e).then(function(t){return t.reduce(function(t,e){return t[e.key]=e.val,t},{})})}}},Cr={},wr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Mr=/([^\s,]+)/g,Ar={get:function(t){return Cr[t]},has:function(t){return null!=Ar.get(t)},invoke:function(t,e,n){var r=de({},Cr,n||{}),i=Ar.annotate(t),o=Te(function(t){return r.hasOwnProperty(t)},function(t){return"DI can't find injectable: '"+t+"'"}),a=i.filter(o).map(function(t){return r[t]});return Gt(t)?t.apply(e,a):t.slice(-1)[0].apply(e,a)},annotate:function(t){if(!l(t))throw new Error("Not an injectable function: "+t);if(t&&t.$inject)return t.$inject;if(Zt(t))return t.slice(0,-1);var e=t.toString().replace(wr,"");return e.slice(e.indexOf("(")+1,e.indexOf(")")).match(Mr)||[]}},kr=function(t){return function(e){if(!e)return["",""];var n=e.indexOf(t);return-1===n?[e,""]:[e.substr(0,n),e.substr(n+1)]}},xr=kr("#"),Tr=kr("?"),_r=kr("="),Sr=function(t){return t?t.replace(/^#/,""):""},Nr=function(t,e){var n=e[0],r=e[1];return t.hasOwnProperty(n)?Zt(t[n])?t[n].push(r):t[n]=[t[n],r]:t[n]=r,t},Or=function(t){return t.split("&").filter(u).map(_r).reduce(Nr,{})},Ir=function(t){var e=t.path(),n=t.search(),r=t.hash(),i=Object.keys(n).map(function(t){var e=n[t];return(Zt(e)?e:[e]).map(function(e){return t+"="+e})}).reduce(we,[]).join("&");return e+(i?"?"+i:"")+(r?"#"+r:"")},Dr=function(){function t(t,e){var n=this;this.fireAfterUpdate=e,this._listener=function(t){return n._listeners.forEach(function(e){return e(t)})},this._listeners=[],this.hash=function(){return ut(n._get()).hash},this.path=function(){return ut(n._get()).path},this.search=function(){return Or(ut(n._get()).search)},this._location=window&&window.location,this._history=window&&window.history}return t.prototype.url=function(t,e){if(void 0===e&&(e=!0),Wt(t)&&t!==this._get()&&(this._set(null,null,t,e),this.fireAfterUpdate)){var n=de(new Event("locationchange"),{url:t});this._listeners.forEach(function(t){return t(n)})}return Ir(this)},t.prototype.onChange=function(t){var e=this;return this._listeners.push(t),function(){return fe(e._listeners,t)}},t.prototype.dispose=function(t){ve(this._listeners)},t}(),Rr=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pr=function(t){function e(e){var n=t.call(this,e,!1)||this;return window.addEventListener("hashchange",n._listener,!1),n}return Rr(e,t),e.prototype._get=function(){return Sr(this._location.hash)},e.prototype._set=function(t,e,n,r){this._location.hash=n},e.prototype.dispose=function(e){t.prototype.dispose.call(this,e),window.removeEventListener("hashchange",this._listener)},e}(Dr),Hr=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lr=function(t){function e(e){return t.call(this,e,!0)||this}return Hr(e,t),e.prototype._get=function(){return this._url},e.prototype._set=function(t,e,n,r){this._url=n},e}(Dr),jr=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fr=function(t){function e(e){var n=t.call(this,e,!0)||this;return n._config=e.urlService.config,window.addEventListener("popstate",n._listener,!1),n}return jr(e,t),e.prototype._get=function(){var t=this._location,e=t.pathname,n=t.hash,r=t.search;return r=Tr(r)[1],n=xr(n)[1],e+(r?"?"+r:"")+(n?"$"+r:"")},e.prototype._set=function(t,e,n,r){var i=this,o=i._config,a=i._history,s=o.baseHref()+n;r?a.replaceState(t,e,s):a.pushState(t,e,s)},e.prototype.dispose=function(e){t.prototype.dispose.call(this,e),window.removeEventListener("popstate",this._listener)},e}(Dr),Vr=function(){return function(){var t=this;this._baseHref="",this._port=80,this._protocol="http",this._host="localhost",this._hashPrefix="",this.port=function(){return t._port},this.protocol=function(){return t._protocol},this.host=function(){return t._host},this.baseHref=function(){return t._baseHref},this.html5Mode=function(){return!1},this.hashPrefix=function(e){return Wt(e)?t._hashPrefix=e:t._hashPrefix},this.dispose=d}}(),Br=function(){function t(t,e){void 0===e&&(e=!1),this._isHtml5=e,this._baseHref=void 0,this._hashPrefix=""}return t.prototype.port=function(){return location.port?Number(location.port):"https"===this.protocol()?443:80},t.prototype.protocol=function(){return location.protocol.replace(/:/g,"")},t.prototype.host=function(){return location.host},t.prototype.html5Mode=function(){return this._isHtml5},t.prototype.hashPrefix=function(t){return Wt(t)?this._hashPrefix=t:this._hashPrefix},t.prototype.baseHref=function(t){return Wt(t)?this._baseHref=t:this._baseHref||this.applyDocumentBaseHref()},t.prototype.applyDocumentBaseHref=function(){var t=document.getElementsByTagName("base");return this._baseHref=t.length?t[0].href.substr(location.origin.length):""},t.prototype.dispose=function(){},t}(),qr=dt("vanilla.hashBangLocation",!1,Pr,Br),Ur=dt("vanilla.pushStateLocation",!0,Fr,Br),zr=dt("vanilla.memoryLocation",!1,Lr,Vr),Wr=function(){function t(){}return t.prototype.dispose=function(t){},t}(),Yr=Object.freeze({fromJson:se,toJson:ce,copy:le,forEach:ue,extend:de,equals:me,identity:u,noop:d,createProxyFunctions:m,inherit:pe,inArray:he,_inArray:p,removeFrom:fe,_removeFrom:h,pushTo:ge,_pushTo:f,deregAll:ve,defaults:g,mergeR:$e,ancestors:v,pick:$,omit:b,pluck:y,filter:E,find:C,mapObj:be,map:w,values:ye,allTrueR:Ee,anyTrueR:Ce,unnestR:we,flattenR:Me,pushR:M,uniqR:Ae,unnest:ke,flatten:xe,assertPredicate:Te,assertMap:_e,assertFn:A,pairs:Se,arrayTuples:k,applyPairs:x,tail:T,_extend:_,sortBy:Ne,composeSort:Oe,silenceUncaughtInPromise:Ie,silentRejection:De,notImplemented:ie,services:oe,Glob:Vt,curry:n,compose:r,pipe:i,prop:Ot,propEq:It,parse:Dt,not:Rt,and:o,or:a,all:Pt,any:Ht,is:Lt,eq:jt,val:Ft,invoke:s,pattern:c,isUndefined:zt,isDefined:Wt,isNull:Yt,isNullOrUndefined:Kt,isFunction:Gt,isNumber:Xt,isString:Jt,isObject:Qt,isArray:Zt,isDate:te,isRegExp:ee,isState:ne,isInjectable:l,isPromise:re,Queue:Re,maxLength:B,padString:q,kebobString:U,functionToString:z,fnToString:W,stringify:Y,beforeAfterSubstr:fn,splitOnDelim:K,joinNeighborsR:G,get Category(){return t.Category},Trace:Be,trace:qe,get DefType(){return t.DefType},Param:Qe,ParamTypes:gn,StateParams:$n,ParamType:Ge,PathNode:Ze,PathUtils:tn,resolvePolicies:rn,defaultResolvePolicy:en,Resolvable:nn,NATIVE_INJECTOR_TOKEN:cn,ResolveContext:ln,resolvablesBuilder:et,StateBuilder:wn,StateObject:Bt,StateMatcher:Mn,StateQueueManager:An,StateRegistry:kn,StateService:yr,TargetState:Ue,get TransitionHookPhase(){return t.TransitionHookPhase},get TransitionHookScope(){return t.TransitionHookScope},HookBuilder:Ke,matchState:D,RegisteredHook:Ye,makeEvent:R,get RejectType(){return t.RejectType},Rejection:He,Transition:mn,TransitionHook:We,TransitionEventType:fr,defaultTransOpts:$r,TransitionService:br,UrlMatcher:_n,UrlMatcherFactory:Sn,UrlRouter:Dn,UrlRuleFactory:Nn,BaseUrlRule:On,UrlService:qn,ViewService:Rn,UIRouterGlobals:Pn,UIRouter:zn,$q:Er,$injector:Ar,BaseLocationServices:Dr,HashLocationService:Pr,MemoryLocationService:Lr,PushStateLocationService:Fr,MemoryLocationConfig:Vr,BrowserLocationConfig:Br,splitHash:xr,splitQuery:Tr,splitEqual:_r,trimHashVal:Sr,keyValsToObjectR:Nr,getParams:Or,parseUrl:ut,buildUrl:Ir,locationPluginFactory:dt,servicesPlugin:mt,hashLocationPlugin:qr,pushStateLocationPlugin:Ur,memoryLocationPlugin:zr,UIRouterPluginBase:Wr}),Kr=function(t,e){return t.reduce(function(t,n){return t||Wt(e[n])},!1)},Gr=0,Xr=function(){function t(t,e,n){var r=this;this.path=t,this.viewDecl=e,this.factory=n,this.$id=Gr++,this.loaded=!1,this.getTemplate=function(t,e){return r.component?r.factory.makeComponentTemplate(t,e,r.component,r.viewDecl.bindings):r.template}}return t.prototype.load=function(){var t=this,e=oe.$q,n=new ln(this.path),r=this.path.reduce(function(t,e){return de(t,e.paramValues)},{}),i={template:e.when(this.factory.fromConfig(this.viewDecl,r,n)),controller:e.when(this.getController(n))};return e.all(i).then(function(e){return qe.traceViewServiceEvent("Loaded",t),t.controller=e.controller,de(t,e.template),t})},t.prototype.getController=function(t){var e=this.viewDecl.controllerProvider;if(!l(e))return this.viewDecl.controller;var n=oe.$injector.annotate(e),r=Zt(e)?T(e):e;return new nn("",r,n).get(t)},t}(),Jr=function(){function t(){var t=this;this._useHttp=Nt.version.minor<3,this.$get=["$http","$templateCache","$injector",function(e,n,r){return t.$templateRequest=r.has&&r.has("$templateRequest")&&r.get("$templateRequest"),t.$http=e,t.$templateCache=n,t}]}return t.prototype.useHttpService=function(t){this._useHttp=t},t.prototype.fromConfig=function(t,e,n){var r=function(t){return oe.$q.when(t).then(function(t){return{template:t}})},i=function(t){return oe.$q.when(t).then(function(t){return{component:t}})};return Wt(t.template)?r(this.fromString(t.template,e)):Wt(t.templateUrl)?r(this.fromUrl(t.templateUrl,e)):Wt(t.templateProvider)?r(this.fromProvider(t.templateProvider,e,n)):Wt(t.component)?i(t.component):Wt(t.componentProvider)?i(this.fromComponentProvider(t.componentProvider,e,n)):r("<ui-view></ui-view>")},t.prototype.fromString=function(t,e){return Gt(t)?t(e):t},t.prototype.fromUrl=function(t,e){return Gt(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(t){return t.data}):this.$templateRequest(t)},t.prototype.fromProvider=function(t,e,n){var r=oe.$injector.annotate(t),i=Zt(t)?T(t):t;return new nn("",i,r).get(n)},t.prototype.fromComponentProvider=function(t,e,n){var r=oe.$injector.annotate(t),i=Zt(t)?T(t):t;return new nn("",i,r).get(n)},t.prototype.makeComponentTemplate=function(t,e,n,r){r=r||{};var i=Nt.version.minor>=3?"::":"",o=function(t){var e=U(t);return/^(x|data)-/.exec(e)?"x-"+e:e},a=ft(n).map(function(n){var a=n.name,s=n.type,c=o(a);if(t.attr(c)&&!r[a])return c+"='"+t.attr(c)+"'";var l=r[a]||a;if("@"===s)return c+"='{{"+i+"$resolve."+l+"}}'";if("&"===s){var u=e.getResolvable(l),d=u&&u.data,m=d&&oe.$injector.annotate(d)||[];return c+"='$resolve."+l+(Zt(d)?"["+(d.length-1)+"]":"")+"("+m.join(",")+")'"}return c+"='"+i+"$resolve."+l+"'"}).join(" "),s=o(n);return"<"+s+" "+a+"></"+s+">"},t}(),Qr=function(t){return Zr(Qt(t.bindToController)?t.bindToController:t.scope)},Zr=function(t){return Object.keys(t||{}).map(function(e){return[e,/^([=<@&])[?]?(.*)/.exec(t[e])]}).filter(function(t){return Wt(t)&&Zt(t[1])}).map(function(t){return{name:t[1][2]||t[0],type:t[1][1]}})},ti=function(){function t(e,n){this.stateRegistry=e,this.stateService=n,m(Ft(t.prototype),this,Ft(this))}return t.prototype.decorator=function(t,e){return this.stateRegistry.decorator(t,e)||this},t.prototype.state=function(t,e){return Qt(t)?e=t:e.name=t,this.stateRegistry.register(e),this},t.prototype.onInvalid=function(t){return this.stateService.onInvalid(t)},t}(),ei=function(t){return function(e,n){var r=e[t],i="onExit"===t?"from":"to";return r?function(t,e){var n=new ln(t.treeChanges(i)),o=de(mi(n),{$state$:e,$transition$:t});return oe.$injector.invoke(r,this,o)}:void 0}},ni=function(){function t(t){this._urlListeners=[],this.$locationProvider=t;var e=Ft(t);m(e,this,e,["hashPrefix"])}return t.prototype.dispose=function(){},t.prototype.onChange=function(t){var e=this;return this._urlListeners.push(t),function(){return fe(e._urlListeners)(t)}},t.prototype.html5Mode=function(){var t=this.$locationProvider.html5Mode();return(t=Qt(t)?t.enabled:t)&&this.$sniffer.history},t.prototype.url=function(t,e,n){return void 0===e&&(e=!1),t&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()},t.prototype._runtimeServices=function(t,e,n,r){var i=this;this.$location=e,this.$sniffer=n,t.$on("$locationChangeSuccess",function(t){return i._urlListeners.forEach(function(e){return e(t)})});var o=Ft(e),a=Ft(r);m(o,this,o,["replace","path","search","hash"]),m(o,this,o,["port","protocol","host"]),m(a,this,a,["baseHref"])},t.monkeyPatchPathParameterType=function(t){var e=t.urlMatcherFactory.type("path");e.encode=function(t){return null!=t?t.toString().replace(/(~|\/)/g,function(t){return{"~":"~~","/":"~2F"}[t]}):t},e.decode=function(t){return null!=t?t.toString().replace(/(~~|~2F)/g,function(t){return{"~~":"~","~2F":"/"}[t]}):t}},t}(),ri=function(){function t(t){this._router=t,this._urlRouter=t.urlRouter}return t.prototype.$get=function(){var t=this._urlRouter;return t.update(!0),t.interceptDeferred||t.listen(),t},t.prototype.rule=function(t){var e=this;if(!Gt(t))throw new Error("'rule' must be a function");var n=new On(function(){return t(oe.$injector,e._router.locationService)},u);return this._urlRouter.rule(n),this},t.prototype.otherwise=function(t){var e=this,n=this._urlRouter;if(Jt(t))n.otherwise(t);else{if(!Gt(t))throw new Error("'rule' must be a string or function");n.otherwise(function(){return t(oe.$injector,e._router.locationService)})}return this},t.prototype.when=function(e,n){return(Zt(n)||Gt(n))&&(n=t.injectableHandler(this._router,n)),this._urlRouter.when(e,n),this},t.injectableHandler=function(t,e){return function(n){return oe.$injector.invoke(e,null,{$match:n,$stateParams:t.globals.params})}},t.prototype.deferIntercept=function(t){this._urlRouter.deferIntercept(t)},t}();Nt.module("ui.router.angular1",[]);var ii=Nt.module("ui.router.init",[]),oi=Nt.module("ui.router.util",["ng","ui.router.init"]),ai=Nt.module("ui.router.router",["ui.router.util"]),si=Nt.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),ci=Nt.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),li=(Nt.module("ui.router.compat",["ui.router"]),null);gt.$inject=["$locationProvider"];var ui=function(t){return["$uiRouterProvider",function(e){var n=e.router[t];return n.$get=function(){return n},n}]};vt.$inject=["$injector","$q","$uiRouter"];$t.$inject=["$rootScope"],ii.provider("$uiRouter",gt),ai.provider("$urlRouter",["$uiRouterProvider",function(t){return t.urlRouterProvider=new ri(t)}]),oi.provider("$urlService",ui("urlService")),oi.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return li.urlMatcherFactory}]),oi.provider("$templateFactory",function(){return new Jr}),si.provider("$stateRegistry",ui("stateRegistry")),si.provider("$uiRouterGlobals",ui("globals")),si.provider("$transitions",ui("transitionService")),si.provider("$state",["$uiRouterProvider",function(){return de(li.stateProvider,{$get:function(){return li.stateService}})}]),si.factory("$stateParams",["$uiRouter",function(t){return t.globals.params}]),ci.factory("$view",function(){return li.viewService}),ci.service("$trace",function(){return qe}),ci.run($t),oi.run(["$urlMatcherFactory",function(t){}]),si.run(["$state",function(t){}]),ai.run(["$urlRouter",function(t){}]),ii.run(vt);var di,mi=function(t){return t.getTokens().filter(Jt).map(function(e){var n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]}).reduce(x,{})};di=["$uiRouter","$timeout",function(t,e){var n=t.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){function s(){var t=p();d&&d(),u&&(d=u.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&o.$set(l.attr,t.href)}var c,l=Ct(i),u=a[1]||a[0],d=null,m={},p=function(){return Et(n,i,m)},h=bt(o.uiSref);m.uiState=h.state,m.uiStateOpts=o.uiSrefOpts?r.$eval(o.uiSrefOpts):{},h.paramExpr&&(r.$watch(h.paramExpr,function(t){m.uiStateParams=de({},t),s()},!0),m.uiStateParams=de({},r.$eval(h.paramExpr))),s(),r.$on("$destroy",t.stateRegistry.onStatesChanged(s)),r.$on("$destroy",t.transitionService.onSuccess({},s)),l.clickable&&(c=wt(i,n,e,l,p),At(i,r,c,m.uiStateOpts))}}}];var pi;pi=["$uiRouter","$timeout",function(t,e){var n=t.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){function s(){var t=h();m&&m(),u&&(m=u.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&o.$set(l.attr,t.href)}var c,l=Ct(i),u=a[1]||a[0],m=null,p={},h=function(){return Et(n,i,p)},f=["uiState","uiStateParams","uiStateOpts"],g=f.reduce(function(t,e){return t[e]=d,t},{});f.forEach(function(t){p[t]=o[t]?r.$eval(o[t]):null,o.$observe(t,function(e){g[t](),g[t]=r.$watch(e,function(e){p[t]=e,s()},!0)})}),s(),r.$on("$destroy",t.stateRegistry.onStatesChanged(s)),r.$on("$destroy",t.transitionService.onSuccess({},s)),l.clickable&&(c=wt(i,n,e,l,h),At(i,r,c,p.uiStateOpts))}}}];var hi;hi=["$state","$stateParams","$interpolate","$uiRouter",function(t,e,n,r){return{restrict:"A",controller:["$scope","$element","$attrs",function(e,i,o){function a(t){t.promise.then(c,d)}function s(e,n,r){var o={state:t.get(e,yt(i))||{name:e},params:n,activeClass:r};return p.push(o),function(){fe(p)(o)}}function c(){var n=function(t){return t.split(/\s/).filter(u)},r=function(t){return t.map(function(t){return t.activeClass}).map(n).reduce(we,[])},o=r(p).concat(n(l)).reduce(Ae,[]),a=r(p.filter(function(e){return t.includes(e.state.name,e.params)})),s=!!p.filter(function(e){return t.is(e.state.name,e.params)}).length?n(l):[],c=a.concat(s).reduce(Ae,[]),d=o.filter(function(t){return!he(c,t)});e.$evalAsync(function(){c.forEach(function(t){return i.addClass(t)}),d.forEach(function(t){return i.removeClass(t)})})}var l,m,p=[];l=n(o.uiSrefActiveEq||"",!1)(e);try{m=e.$eval(o.uiSrefActive)}catch(t){}m=m||n(o.uiSrefActive||"",!1)(e),Qt(m)&&ue(m,function(t,n){if(Jt(t)){var r=bt(t);s(r.state,e.$eval(r.paramExpr),n)}}),this.$$addStateInfo=function(t,e){if(!(Qt(m)&&p.length>0)){var n=s(t,e,m);return c(),n}},e.$on("$stateChangeSuccess",c),e.$on("$destroy",r.transitionService.onStart({},a)),r.globals.transition&&a(r.globals.transition),c()}]}}],Nt.module("ui.router.state").directive("uiSref",di).directive("uiSrefActive",hi).directive("uiSrefActiveEq",hi).directive("uiState",pi),kt.$inject=["$state"],xt.$inject=["$state"],Nt.module("ui.router.state").filter("isState",kt).filter("includedByState",xt);var fi;fi=["$view","$animate","$uiViewScroll","$interpolate","$q",function(t,e,n,r,i){function o(t,n){return{enter:function(t,n,r){Nt.version.minor>2?e.enter(t,null,n).then(r):e.enter(t,null,n,r)},leave:function(t,n){Nt.version.minor>2?e.leave(t).then(n):e.leave(t,n)}}}function a(t,e){return t===e}var s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$uiView:{}},c={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(e,l,u){return function(e,l,d){function m(){if(h&&(qe.traceUIViewEvent("Removing (previous) el",h.data("$uiView")),h.remove(),h=null),g&&(qe.traceUIViewEvent("Destroying scope",M),g.$destroy(),g=null),f){var t=f.data("$uiViewAnim");qe.traceUIViewEvent("Animate out",t),y.leave(f,function(){t.$$animLeave.resolve(),h=null}),h=f,f=null}}function p(t){var r=e.$new(),o=i.defer(),a=i.defer(),s={$cfg:t,$uiView:M},c={$animEnter:o.promise,$animLeave:a.promise,$$animLeave:a};r.$emit("$viewContentLoading",w);var d=u(r,function(t){t.data("$uiViewAnim",c),t.data("$uiView",s),y.enter(t,l,function(){o.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(Wt(b)&&!b||e.$eval(b))&&n(t)}),m()});f=d,(g=r).$emit("$viewContentLoaded",t||E),g.$eval($)}var h,f,g,v,$=d.onload||"",b=d.autoscroll,y=o(),E=void 0,C=l.inheritedData("$uiView")||s,w=r(d.uiView||d.name||"")(e)||"$default",M={$type:"ng1",id:c.count++,name:w,fqn:C.$uiView.fqn?C.$uiView.fqn+"."+w:w,config:null,configUpdated:function(t){(!t||t instanceof Xr)&&(a(E,t)||(qe.traceUIViewConfigUpdated(M,t&&t.viewDecl&&t.viewDecl.$context),E=t,p(t)))},get creationContext(){var t=Dt("$cfg.viewDecl.$context")(C),e=Dt("$uiView.creationContext")(C);return t||e}};qe.traceUIViewEvent("Linking",M),l.data("$uiView",{$uiView:M}),p(),v=t.registerUIView(M),e.$on("$destroy",function(){qe.traceUIViewEvent("Destroying/Unregistering",M),v()})}}};return c}],Tt.$inject=["$compile","$controller","$transitions","$view","$q","$timeout"];var gi="function"==typeof Nt.module("ui.router").component,vi=0;Nt.module("ui.router.state").directive("uiView",fi),Nt.module("ui.router.state").directive("uiView",Tt),Nt.module("ui.router.state").provider("$uiViewScroll",function(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n(function(){t[0].scrollIntoView()},0,!1)}}]});t.default="ui.router",t.core=Yr,t.watchDigests=$t,t.getLocals=mi,t.getNg1ViewConfigFactory=pt,t.ng1ViewsBuilder=ht,t.Ng1ViewConfig=Xr,t.StateProvider=ti,t.UrlRouterProvider=ri,t.fromJson=se,t.toJson=ce,t.copy=le,t.forEach=ue,t.extend=de,t.equals=me,t.identity=u,t.noop=d,t.createProxyFunctions=m,t.inherit=pe,t.inArray=he,t._inArray=p,t.removeFrom=fe,t._removeFrom=h,t.pushTo=ge,t._pushTo=f,t.deregAll=ve,t.defaults=g,t.mergeR=$e,t.ancestors=v,t.pick=$,t.omit=b,t.pluck=y,t.filter=E,t.find=C,t.mapObj=be,t.map=w,t.values=ye,t.allTrueR=Ee,t.anyTrueR=Ce,t.unnestR=we,t.flattenR=Me,t.pushR=M,t.uniqR=Ae,t.unnest=ke,t.flatten=xe,t.assertPredicate=Te,t.assertMap=_e,t.assertFn=A,t.pairs=Se,t.arrayTuples=k,t.applyPairs=x,t.tail=T,t._extend=_,t.sortBy=Ne,t.composeSort=Oe,t.silenceUncaughtInPromise=Ie,t.silentRejection=De,t.notImplemented=ie,t.services=oe,t.Glob=Vt,t.curry=n,t.compose=r,t.pipe=i,t.prop=Ot,t.propEq=It,t.parse=Dt,t.not=Rt,t.and=o,t.or=a,t.all=Pt,t.any=Ht,t.is=Lt,t.eq=jt,t.val=Ft,t.invoke=s,t.pattern=c,t.isUndefined=zt,t.isDefined=Wt,t.isNull=Yt,t.isNullOrUndefined=Kt,t.isFunction=Gt,t.isNumber=Xt,t.isString=Jt,t.isObject=Qt,t.isArray=Zt,t.isDate=te,t.isRegExp=ee,t.isState=ne,t.isInjectable=l,t.isPromise=re,t.Queue=Re,t.maxLength=B,t.padString=q,t.kebobString=U,t.functionToString=z,t.fnToString=W,t.stringify=Y,t.beforeAfterSubstr=fn,t.splitOnDelim=K,t.joinNeighborsR=G,t.Trace=Be,t.trace=qe,t.Param=Qe,t.ParamTypes=gn,t.StateParams=$n,t.ParamType=Ge,t.PathNode=Ze,t.PathUtils=tn,t.resolvePolicies=rn,t.defaultResolvePolicy=en,t.Resolvable=nn,t.NATIVE_INJECTOR_TOKEN=cn,t.ResolveContext=ln,t.resolvablesBuilder=et,t.StateBuilder=wn,t.StateObject=Bt,t.StateMatcher=Mn,t.StateQueueManager=An,t.StateRegistry=kn,t.StateService=yr,t.TargetState=Ue,t.HookBuilder=Ke,t.matchState=D,t.RegisteredHook=Ye,t.makeEvent=R,t.Rejection=He,t.Transition=mn,t.TransitionHook=We,t.TransitionEventType=fr,t.defaultTransOpts=$r,t.TransitionService=br,t.UrlMatcher=_n,t.UrlMatcherFactory=Sn,t.UrlRouter=Dn,t.UrlRuleFactory=Nn,t.BaseUrlRule=On,t.UrlService=qn,t.ViewService=Rn,t.UIRouterGlobals=Pn,t.UIRouter=zn,t.$q=Er,t.$injector=Ar,t.BaseLocationServices=Dr,t.HashLocationService=Pr,t.MemoryLocationService=Lr,t.PushStateLocationService=Fr,t.MemoryLocationConfig=Vr,t.BrowserLocationConfig=Br,t.splitHash=xr,t.splitQuery=Tr,t.splitEqual=_r,t.trimHashVal=Sr,t.keyValsToObjectR=Nr,t.getParams=Or,t.parseUrl=ut,t.buildUrl=Ir,t.locationPluginFactory=dt,t.servicesPlugin=mt,t.hashLocationPlugin=qr,t.pushStateLocationPlugin=Ur,t.memoryLocationPlugin=zr,t.UIRouterPluginBase=Wr,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};e.m=t,e.c=n,e.p="/assets/",e(0)}([function(t,e,n){"use strict";window.sforce=window.sforce||{},sforce.opencti=n(1),sforce.opencti.initialize()},function(t,e,n){"use strict";var r=n(2),i=n(3),o=/(\.force\.com|\.salesforce\.com)(:\d+)?$/;t.exports={initialize:function(){var t=i.parseUrlQueryString(location.search),e=t.sfdcIframeOrigin;if(!(e&&t.mode&&o.test(e)&&0===e.indexOf(window.location.protocol)))throw"Failed to initialize Open CTI. Ensure that it is loaded from the right frame with correct URL parameters";r.sfdcIframeOrigin=t.sfdcIframeOrigin,r.mode=t.mode,window.addEventListener("message",i.processPostMessage,!1)},setSoftphonePanelVisibility:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("setSoftphonePanelVisibility",{visible:t.visible},e)},isSoftphonePanelVisible:function(t){i.validateArguments(arguments),i.validateCallback(t),i.invokeApiCall("isSoftphonePanelVisible",{},t.callback)},SCREENPOP_TYPE:{URL:"url",SOBJECT:"sobject",OBJECTHOME:"objecthome",LIST:"list",SEARCH:"search",NEW_RECORD_MODAL:"newRecord"},screenPop:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("screenPop",{type:t.type,params:t.params},e)},CALL_TYPE:{INBOUND:"inbound",OUTBOUND:"outbound",INTERNAL:"internal"},searchAndScreenPop:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("searchAndScreenPop",{searchParams:t.searchParams,callType:t.callType,queryParams:t.queryParams,defaultFieldValues:t.defaultFieldValues,deferred:t.deferred},e)},getAppViewInfo:function(t){i.validateArguments(arguments),i.validateCallback(t),i.invokeApiCall("getAppViewInfo",{},t.callback)},saveLog:function(t){i.validateArguments(arguments),i.validateValueObject(t);var e=t?t.callback:void 0;i.invokeApiCall("saveLog",{object:t.value},e)},refreshView:function(t){i.validateArguments(arguments,!0);var e=t?t.callback:void 0;i.invokeApiCall("refreshView",{},e)},setSoftphoneItemLabel:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("setSoftphoneItemLabel",{label:t.label},e)},setSoftphonePanelLabel:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("setSoftphonePanelLabel",{label:t.label},e)},setSoftphoneItemIcon:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("setSoftphoneItemIcon",{key:t.key},e)},setSoftphonePanelIcon:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("setSoftphonePanelIcon",{key:t.key},e)},setSoftphonePanelHeight:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("setSoftphonePanelHeight",{heightPX:t.heightPX},e)},setSoftphonePanelWidth:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("setSoftphonePanelWidth",{widthPX:t.widthPX},e)},getCallCenterSettings:function(t){i.validateArguments(arguments),i.validateCallback(t),i.invokeApiCall("getCallCenterSettings",{},t.callback)},onClickToDial:function(t){i.validateArguments(arguments),i.validateListener(t),i.invokeApiCall("onClickToDial",{},void 0,t.listener)},enableClickToDial:function(t){i.validateArguments(arguments,!0);var e=t?t.callback:void 0;i.invokeApiCall("enableClickToDial",{},e)},disableClickToDial:function(t){i.validateArguments(arguments,!0);var e=t?t.callback:void 0;i.invokeApiCall("disableClickToDial",{},e)},getSoftphoneLayout:function(t){i.validateArguments(arguments),i.validateCallback(t),i.invokeApiCall("getSoftphoneLayout",{},t.callback)},onNavigationChange:function(t){i.validateArguments(arguments),i.validateListener(t),i.invokeApiCall("onNavigationChange",{},void 0,t.listener)},runApex:function(t){i.validateArguments(arguments);var e=t?t.callback:void 0;i.invokeApiCall("runApex",{apexClass:t.apexClass,methodName:t.methodName,methodParams:t.methodParams},e)}}},function(t,e){"use strict";t.exports={API_VERSION:40,API_TYPE:"opencti",sfdcIframeOrigin:null,mode:null}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(2),o=n(4),a=n(5),s=function(){var t=0;return function(){return t++}}();t.exports={processPostMessage:function(t){var e=t.data;e&&e.apiVersion===i.API_VERSION&&e.apiType===i.API_TYPE&&t.origin===i.sfdcIframeOrigin&&(o.executeCallback(e.methodName,e.callId,e.response),a.executeListeners(e.methodName,e.response))},parseUrlQueryString:function(t){var e={};if("string"!=typeof t)return e;if("?"===t.charAt(0)&&(t=t.slice(1)),0===t.length)return e;for(var n=t.split("&"),i=0;i<n.length;i++){var o=n[i].split("=");if(o[0])if(e[o[0]])if("object"===r(e[o[0]]))e[o[0]].push(o[1]?decodeURIComponent(o[1]):null);else{var a=e[o[0]];e[o[0]]=[],e[o[0]].push(a),e[o[0]].push(o[1]?decodeURIComponent(o[1]):null)}else e[o[0]]=o[1]?decodeURIComponent(o[1]):null}return e},invokeApiCall:function(t,e,n,r){var c={methodName:t,callId:s(),apiVersion:i.API_VERSION,apiType:i.API_TYPE,isCallbackRegistered:!1,isListenerRegistered:!1,args:e};"function"==typeof n&&(o.registerCallback(c.methodName,c.callId,n),c.isCallbackRegistered=!0),"function"==typeof r&&(a.registerListener(c.methodName,r),c.isListenerRegistered=!0),parent.postMessage(c,i.sfdcIframeOrigin)},validateCallback:function(t){if(!t||"function"!=typeof t.callback)throw new Error("Missing the required argument `callback`!")},validateListener:function(t){if(!t||"function"!=typeof t.listener)throw new Error("Missing the required argument `listener`!")},validateValueObject:function(t){if(!t||"object"!==r(t.value))throw new Error("Missing the required argument `value object`!")},validateArguments:function(t,e){if((e&&t.length||!e)&&(1!==t.length||"object"!==r(t[0])||!Object.keys(t[0]).length))throw new Error("Must pass in only one object which holds arguments to this API method call.")}}},function(t,e){"use strict";var n={},r=function(t,e){return t+"_"+e};t.exports={registerCallback:function(t,e,i){n[r(t,e)]=i},executeCallback:function(t,e,i){var o=r(t,e);n[o]&&(n[o].call(null,i),delete n[o])}}},function(t,e){"use strict";var n={};t.exports={registerListener:function(t,e){n[t]?n[t].push(e):n[t]=[e]},executeListeners:function(t,e){var r=n[t];r&&r.forEach(function(t){t.call(null,e)})}}}]);
\ No newline at end of file