<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">!function(t,e,n){"use strict";function r(t){return function(){var e,n=arguments[0];for(e="["+(t?t+":":"")+n+"] http://errors.angularjs.org/1.4.8/"+(t?t+"/":"")+n,n=1;n&lt;arguments.length;n++){e=e+(1==n?"?":"&amp;")+"p"+(n-1)+"=";var r,i=encodeURIComponent;r=arguments[n],r="function"==typeof r?r.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof r?"undefined":"string"!=typeof r?JSON.stringify(r):r,e+=i(r)}return Error(e)}}function i(t){if(null==t||A(t))return!1;if(nr(t)||x(t)||Un&amp;&amp;t instanceof Un)return!0;var e="length"in Object(t)&amp;&amp;t.length;return S(e)&amp;&amp;(0&lt;=e&amp;&amp;e-1 in t||"function"==typeof t.item)}function o(t,e,n){var r,a;if(t)if(E(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&amp;&amp;!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(nr(t)||i(t)){var s="object"!=typeof t;for(r=0,a=t.length;r&lt;a;r++)(s||r in t)&amp;&amp;e.call(n,t[r],r,t)}else if(t.forEach&amp;&amp;t.forEach!==o)t.forEach(e,n,t);else if(w(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)&amp;&amp;e.call(n,t[r],r,t);else for(r in t)zn.call(t,r)&amp;&amp;e.call(n,t[r],r,t);return t}function a(t,e,n){for(var r=Object.keys(t).sort(),i=0;i&lt;r.length;i++)e.call(n,t[r[i]],r[i]);return r}function s(t){return function(e,n){t(n,e)}}function u(){return++tr}function c(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i&lt;o;++i){var a=e[i];if(b(a)||E(a))for(var s=Object.keys(a),u=0,l=s.length;u&lt;l;u++){var f=s[u],h=a[f];n&amp;&amp;b(h)?C(h)?t[f]=new Date(h.valueOf()):k(h)?t[f]=new RegExp(h):h.nodeName?t[f]=h.cloneNode(!0):V(h)?t[f]=h.clone():(b(t[f])||(t[f]=nr(h)?[]:{}),c(t[f],[h],!0)):t[f]=h}}return r?t.$$hashKey=r:delete t.$$hashKey,t}function l(t){return c(t,Gn.call(arguments,1),!1)}function f(t){return c(t,Gn.call(arguments,1),!0)}function h(t){return parseInt(t,10)}function p(t,e){return l(Object.create(t),e)}function $(){}function d(t){return t}function m(t){return function(){return t}}function v(t){return E(t.toString)&amp;&amp;t.toString!==Yn}function g(t){return"undefined"==typeof t}function y(t){return"undefined"!=typeof t}function b(t){return null!==t&amp;&amp;"object"==typeof t}function w(t){return null!==t&amp;&amp;"object"==typeof t&amp;&amp;!Zn(t)}function x(t){return"string"==typeof t}function S(t){return"number"==typeof t}function C(t){return"[object Date]"===Yn.call(t)}function E(t){return"function"==typeof t}function k(t){return"[object RegExp]"===Yn.call(t)}function A(t){return t&amp;&amp;t.window===t}function O(t){return t&amp;&amp;t.$evalAsync&amp;&amp;t.$watch}function M(t){return"boolean"==typeof t}function T(t){return t&amp;&amp;S(t.length)&amp;&amp;rr.test(Yn.call(t))}function V(t){return!(!t||!(t.nodeName||t.prop&amp;&amp;t.attr&amp;&amp;t.find))}function N(t){var e={};t=t.split(",");var n;for(n=0;n&lt;t.length;n++)e[t[n]]=!0;return e}function j(t){return Ln(t.nodeName||t[0]&amp;&amp;t[0].nodeName)}function P(t,e){var n=t.indexOf(e);return 0&lt;=n&amp;&amp;t.splice(n,1),n}function D(t,e){function n(t,e){var n,i=e.$$hashKey;if(nr(t)){n=0;for(var o=t.length;n&lt;o;n++)e.push(r(t[n]))}else if(w(t))for(n in t)e[n]=r(t[n]);else if(t&amp;&amp;"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&amp;&amp;(e[n]=r(t[n]));else for(n in t)zn.call(t,n)&amp;&amp;(e[n]=r(t[n]));return i?e.$$hashKey=i:delete e.$$hashKey,e}function r(t){if(!b(t))return t;var e=i.indexOf(t);if(-1!==e)return a[e];if(A(t)||O(t))throw Xn("cpws");var r,e=!1;return nr(t)?(r=[],e=!0):T(t)?r=new t.constructor(t):C(t)?r=new Date(t.getTime()):k(t)?(r=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),r.lastIndex=t.lastIndex):E(t.cloneNode)?r=t.cloneNode(!0):(r=Object.create(Zn(t)),e=!0),i.push(t),a.push(r),e?n(t,r):r}var i=[],a=[];if(e){if(T(e))throw Xn("cpta");if(t===e)throw Xn("cpi");return nr(e)?e.length=0:o(e,function(t,n){"$$hashKey"!==n&amp;&amp;delete e[n]}),i.push(t),a.push(e),n(t,e)}return r(t)}function I(t,e){if(nr(t)){e=e||[];for(var n=0,r=t.length;n&lt;r;n++)e[n]=t[n]}else if(b(t))for(n in e=e||{},t)"$"===n.charAt(0)&amp;&amp;"$"===n.charAt(1)||(e[n]=t[n]);return e||t}function R(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&amp;&amp;e!==e)return!0;var n,r=typeof t;if(r==typeof e&amp;&amp;"object"==r){if(!nr(t)){if(C(t))return!!C(e)&amp;&amp;R(t.getTime(),e.getTime());if(k(t))return!!k(e)&amp;&amp;t.toString()==e.toString();if(O(t)||O(e)||A(t)||A(e)||nr(e)||C(e)||k(e))return!1;r=ct();for(n in t)if("$"!==n.charAt(0)&amp;&amp;!E(t[n])){if(!R(t[n],e[n]))return!1;r[n]=!0}for(n in e)if(!(n in r)&amp;&amp;"$"!==n.charAt(0)&amp;&amp;y(e[n])&amp;&amp;!E(e[n]))return!1;return!0}if(!nr(e))return!1;if((r=t.length)==e.length){for(n=0;n&lt;r;n++)if(!R(t[n],e[n]))return!1;return!0}}return!1}function F(t,e,n){return t.concat(Gn.call(e,n))}function q(t,e){var n=2&lt;arguments.length?Gn.call(arguments,2):[];return!E(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,F(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function U(t,r){var i=r;return"string"==typeof t&amp;&amp;"$"===t.charAt(0)&amp;&amp;"$"===t.charAt(1)?i=n:A(r)?i="$WINDOW":r&amp;&amp;e===r?i="$DOCUMENT":O(r)&amp;&amp;(i="$SCOPE"),i}function _(t,e){return"undefined"==typeof t?n:(S(e)||(e=e?2:null),JSON.stringify(t,U,e))}function B(t){return x(t)?JSON.parse(t):t}function H(t,e){var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function L(t,e,n){n=n?-1:1;var r=H(e,t.getTimezoneOffset());return e=t,t=n*(r-t.getTimezoneOffset()),e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function z(t){t=Un(t).clone();try{t.empty()}catch(e){}var n=Un("&lt;div&gt;").append(t).html();try{return t[0].nodeType===fr?Ln(n):n.match(/^(&lt;[^&gt;]+&gt;)/)[1].replace(/^&lt;([\w\-]+)/,function(t,e){return"&lt;"+Ln(e)})}catch(r){return Ln(n)}}function W(t){try{return decodeURIComponent(t)}catch(e){}}function G(t){var e={};return o((t||"").split("&amp;"),function(t){var n,r,i;t&amp;&amp;(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&amp;&amp;(r=t.substring(0,n),i=t.substring(n+1)),r=W(r),y(r)&amp;&amp;(i=!y(i)||W(i),zn.call(e,r)?nr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function K(t){var e=[];return o(t,function(t,n){nr(t)?o(t,function(t){e.push(Y(n,!0)+(!0===t?"":"="+Y(t,!0)))}):e.push(Y(n,!0)+(!0===t?"":"="+Y(t,!0)))}),e.length?e.join("&amp;"):""}function J(t){return Y(t,!0).replace(/%26/gi,"&amp;").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Y(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 Z(t,e){var n,r,i=ur.length;for(r=0;r&lt;i;++r)if(n=ur[r]+e,x(n=t.getAttribute(n)))return n;return null}function X(t,e){var n,r,i={};o(ur,function(e){e+="app",!n&amp;&amp;t.hasAttribute&amp;&amp;t.hasAttribute(e)&amp;&amp;(n=t,r=t.getAttribute(e))}),o(ur,function(e){e+="app";var i;!n&amp;&amp;(i=t.querySelector("["+e.replace(":","\\:")+"]"))&amp;&amp;(n=i,r=i.getAttribute(e))}),n&amp;&amp;(i.strictDi=null!==Z(n,"strict-di"),e(n,r?[r]:[],i))}function Q(n,r,i){b(i)||(i={}),i=l({strictDi:!1},i);var a=function(){if(n=Un(n),n.injector()){var t=n[0]===e?"document":z(n);throw Xn("btstrpd",t.replace(/&lt;/,"&amp;lt;").replace(/&gt;/,"&amp;gt;"))}return r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&amp;&amp;r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng"),t=qt(r,i.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),t},s=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return t&amp;&amp;s.test(t.name)&amp;&amp;(i.debugInfoEnabled=!0,t.name=t.name.replace(s,"")),t&amp;&amp;!u.test(t.name)?a():(t.name=t.name.replace(u,""),Qn.resumeBootstrap=function(t){return o(t,function(t){r.push(t)}),a()},void(E(Qn.resumeDeferredBootstrap)&amp;&amp;Qn.resumeDeferredBootstrap()))}function tt(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function et(t){if(t=Qn.element(t).injector(),!t)throw Xn("test");return t.get("$$testability")}function nt(t,e){return e=e||"_",t.replace(cr,function(t,n){return(n?e:"")+t.toLowerCase()})}function rt(){var e;if(!lr){var r=sr();(_n=g(r)?t.jQuery:r?t[r]:n)&amp;&amp;_n.fn.on?(Un=_n,l(_n.fn,{scope:Er.scope,isolateScope:Er.isolateScope,controller:Er.controller,injector:Er.injector,inheritedData:Er.inheritedData}),e=_n.cleanData,_n.cleanData=function(t){var n;if(er)er=!1;else for(var r,i=0;null!=(r=t[i]);i++)(n=_n._data(r,"events"))&amp;&amp;n.$destroy&amp;&amp;_n(r).triggerHandler("$destroy");e(t)}):Un=dt,Qn.element=Un,lr=!0}}function it(t,e,n){if(!t)throw Xn("areq",e||"?",n||"required");return t}function ot(t,e,n){return n&amp;&amp;nr(t)&amp;&amp;(t=t[t.length-1]),it(E(t),e,"not a function, got "+(t&amp;&amp;"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function at(t,e){if("hasOwnProperty"===t)throw Xn("badname",e)}function st(t,e,n){if(!e)return t;e=e.split(".");for(var r,i=t,o=e.length,a=0;a&lt;o;a++)r=e[a],t&amp;&amp;(t=(i=t)[r]);return!n&amp;&amp;E(t)?q(i,t):t}function ut(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&amp;&amp;(n=n.nextSibling);i++)(e||t[i]!==n)&amp;&amp;(e||(e=Un(Gn.call(t,0,i))),e.push(n));return e||t}function ct(){return Object.create(null)}function lt(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=r("$injector"),i=r("ng");return t=e(t,"angular",Object),t.$$minErr=t.$$minErr||r,e(t,"module",function(){var t={};return function(r,o,a){if("hasOwnProperty"===r)throw i("badname","module");return o&amp;&amp;t.hasOwnProperty(r)&amp;&amp;(t[r]=null),e(t,r,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),l}}function e(t,e){return function(n,o){return o&amp;&amp;E(o)&amp;&amp;(o.$$moduleName=r),i.push([t,e,arguments]),l}}if(!o)throw n("nomod",r);var i=[],s=[],u=[],c=t("$injector","invoke","push",s),l={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:c,run:function(t){return u.push(t),this}};return a&amp;&amp;c(a),l})}})}function ft(e){l(e,{bootstrap:Q,copy:D,extend:l,merge:f,equals:R,element:Un,forEach:o,injector:qt,noop:$,bind:q,toJson:_,fromJson:B,identity:d,isUndefined:g,isDefined:y,isString:x,isFunction:E,isObject:b,isNumber:S,isElement:V,isArray:nr,version:hr,isDate:C,lowercase:Ln,uppercase:Wn,callbacks:{counter:0},getTestability:et,$$minErr:r,$$csp:ar,reloadWithDebugInfo:tt}),(Bn=lt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Je}),t.provider("$compile",Kt).directive({a:Si,input:qi,textarea:qi,form:Ai,script:Oo,select:Vo,style:jo,option:No,ngBind:Bi,ngBindHtml:Li,ngBindTemplate:Hi,ngClass:Wi,ngClassEven:Ki,ngClassOdd:Gi,ngCloak:Ji,ngController:Yi,ngForm:Oi,ngHide:xo,ngIf:Qi,ngInclude:to,ngInit:no,ngNonBindable:$o,ngPluralize:yo,ngRepeat:bo,ngShow:wo,ngStyle:So,ngSwitch:Co,ngSwitchWhen:Eo,ngSwitchDefault:ko,ngOptions:go,ngTransclude:Ao,ngModel:fo,ngList:ro,ngChange:zi,pattern:Do,ngPattern:Do,required:Po,ngRequired:Po,minlength:Ro,ngMinlength:Ro,maxlength:Io,ngMaxlength:Io,ngValue:_i,ngModelOptions:po}).directive({ngInclude:eo}).directive(Ci).directive(Zi),t.provider({$anchorScroll:Ut,$animate:Fr,$animateCss:qr,$$animateQueue:Rr,$$AnimateRunner:Ir,$browser:zt,$cacheFactory:Wt,$controller:Xt,$document:Qt,$exceptionHandler:te,$filter:ln,$$forceReflow:Lr,$interpolate:he,$interval:pe,$http:ue,$httpParamSerializer:ne,$httpParamSerializerJQLike:re,$httpBackend:le,$xhrFactory:ce,$location:Ee,$log:ke,$parse:He,$rootScope:Ke,$q:Le,$$q:ze,$sce:Qe,$sceDelegate:Xe,$sniffer:tn,$templateCache:Gt,$templateRequest:en,$$testability:nn,$timeout:rn,$window:sn,$$rAF:Ge,$$jqLite:Dt,$$HashMap:Mr,$$cookieReader:cn})}])}function ht(t){return t.replace(dr,function(t,e,n,r){return r?n.toUpperCase():n}).replace(mr,"Moz$1")}function pt(t){return t=t.nodeType,1===t||!t||9===t}function $t(t,e){var n,r,i=e.createDocumentFragment(),a=[];if(br.test(t)){for(n=n||i.appendChild(e.createElement("div")),r=(wr.exec(t)||["",""])[1].toLowerCase(),r=Sr[r]||Sr._default,n.innerHTML=r[1]+t.replace(xr,"&lt;$1&gt;&lt;/$2&gt;")+r[2],r=r[0];r--;)n=n.lastChild;a=F(a,n.childNodes),n=i.firstChild,n.textContent=""}else a.push(e.createTextNode(t));return i.textContent="",i.innerHTML="",o(a,function(t){i.appendChild(t)}),i}function dt(t){if(t instanceof dt)return t;var n;if(x(t)&amp;&amp;(t=ir(t),n=!0),!(this instanceof dt)){if(n&amp;&amp;"&lt;"!=t.charAt(0))throw gr("nosel");return new dt(t)}if(n){n=e;var r;t=(r=yr.exec(t))?[n.createElement(r[1])]:(r=$t(t,n))?r.childNodes:[]}Et(this,t)}function mt(t){return t.cloneNode(!0)}function vt(t,e){if(e||yt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r&lt;i;r++)yt(n[r])}function gt(t,e,n,r){if(y(r))throw gr("offargs");var i=(r=bt(t))&amp;&amp;r.events,a=r&amp;&amp;r.handle;if(a)if(e){var s=function(e){var r=i[e];y(n)&amp;&amp;P(r||[],n),y(n)&amp;&amp;r&amp;&amp;0&lt;r.length||(t.removeEventListener(e,a,!1),delete i[e])};o(e.split(" "),function(t){s(t),vr[t]&amp;&amp;s(vr[t])})}else for(e in i)"$destroy"!==e&amp;&amp;t.removeEventListener(e,a,!1),delete i[e]}function yt(t,e){var r=t.ng339,i=r&amp;&amp;pr[r];i&amp;&amp;(e?delete i.data[e]:(i.handle&amp;&amp;(i.events.$destroy&amp;&amp;i.handle({},"$destroy"),gt(t)),delete pr[r],t.ng339=n))}function bt(t,e){var r=t.ng339,r=r&amp;&amp;pr[r];return e&amp;&amp;!r&amp;&amp;(t.ng339=r=++$r,r=pr[r]={events:{},data:{},handle:n}),r}function wt(t,e,n){if(pt(t)){var r=y(n),i=!r&amp;&amp;e&amp;&amp;!b(e),o=!e;if(t=(t=bt(t,!i))&amp;&amp;t.data,r)t[e]=n;else{if(o)return t;if(i)return t&amp;&amp;t[e];l(t,e)}}}function xt(t,e){return!!t.getAttribute&amp;&amp;-1&lt;(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")}function St(t,e){e&amp;&amp;t.setAttribute&amp;&amp;o(e.split(" "),function(e){t.setAttribute("class",ir((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+ir(e)+" "," ")))})}function Ct(t,e){if(e&amp;&amp;t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=ir(t),-1===n.indexOf(" "+t+" ")&amp;&amp;(n+=t+" ")}),t.setAttribute("class",ir(n))}}function Et(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&amp;&amp;e.window!==e){if(n)for(var r=0;r&lt;n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function kt(t,e){return At(t,"$"+(e||"ngController")+"Controller")}function At(t,e,n){for(9==t.nodeType&amp;&amp;(t=t.documentElement),e=nr(e)?e:[e];t;){for(var r=0,i=e.length;r&lt;i;r++)if(y(n=Un.data(t,e[r])))return n;t=t.parentNode||11===t.nodeType&amp;&amp;t.host}}function Ot(t){for(vt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Mt(t,e){e||vt(t);var n=t.parentNode;n&amp;&amp;n.removeChild(t)}function Tt(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):Un(n).on("load",e)}function Vt(t,e){var n=kr[e.toLowerCase()];return n&amp;&amp;Ar[j(t)]&amp;&amp;n}function Nt(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(g(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&amp;&amp;n.stopPropagation(),a&amp;&amp;a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||jt;1&lt;o&amp;&amp;(i=I(i));for(var u=0;u&lt;o;u++)n.isImmediatePropagationStopped()||s(t,n,i[u])}};return n.elem=t,n}function jt(t,e,n){n.call(t,e)}function Pt(t,e,n){var r=e.relatedTarget;r&amp;&amp;(r===t||Cr.call(t,r))||n.call(t,e)}function Dt(){this.$get=function(){return l(dt,{hasClass:function(t,e){return t.attr&amp;&amp;(t=t[0]),xt(t,e)},addClass:function(t,e){return t.attr&amp;&amp;(t=t[0]),Ct(t,e)},removeClass:function(t,e){return t.attr&amp;&amp;(t=t[0]),St(t,e)}})}}function It(t,e){var n=t&amp;&amp;t.$$hashKey;return n?("function"==typeof n&amp;&amp;(n=t.$$hashKey()),n):(n=typeof t,n="function"==n||"object"==n&amp;&amp;null!==t?t.$$hashKey=n+":"+(e||u)():n+":"+t)}function Rt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}o(t,this.put,this)}function Ft(t){return(t=t.toString().replace(jr,"").match(Tr))?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function qt(t,e){function r(t){return function(e,n){return b(e)?void o(e,s(t)):t(e,n)}}function i(t,e){if(at(t,"service"),(E(e)||nr(e))&amp;&amp;(e=d.instantiate(e)),!e.$get)throw Pr("pget",t);return $[t+"Provider"]=e}function a(t,e){return function(){var n=y.invoke(e,this);if(g(n))throw Pr("undef",t);return n}}function u(t,e,n){return i(t,{$get:!1!==n?a(t,e):e})}function c(t){it(g(t)||nr(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&lt;n;e++){var r=t[e],i=d.get(r[0]);i[r[1]].apply(i,r[2])}}if(!p.get(t)){p.put(t,!0);try{x(t)?(e=Bn(t),n=n.concat(c(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):E(t)?n.push(d.invoke(t)):nr(t)?n.push(d.invoke(t)):ot(t,"module")}catch(i){throw nr(t)&amp;&amp;(t=t[t.length-1]),i.message&amp;&amp;i.stack&amp;&amp;-1==i.stack.indexOf(i.message)&amp;&amp;(i=i.message+"\n"+i.stack),Pr("modulerr",t,i.stack||i.message||i)}}}),n}function l(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===f)throw Pr("cdep",e+" &lt;- "+h.join(" &lt;- "));return t[e]}try{return h.unshift(e),t[e]=f,t[e]=n(e,r)}catch(i){throw t[e]===f&amp;&amp;delete t[e],i}finally{h.shift()}}function i(t,n,i,o){"string"==typeof i&amp;&amp;(o=i,i=null);var a,s,u,c=[],l=qt.$$annotate(t,e,o);for(s=0,a=l.length;s&lt;a;s++){if(u=l[s],"string"!=typeof u)throw Pr("itkn",u);c.push(i&amp;&amp;i.hasOwnProperty(u)?i[u]:r(u,o))}return nr(t)&amp;&amp;(t=t[a]),t.apply(n,c)}return{invoke:i,instantiate:function(t,e,n){var r=Object.create((nr(t)?t[t.length-1]:t).prototype||null);return t=i(t,r,e,n),b(t)||E(t)?t:r},get:r,annotate:qt.$$annotate,has:function(e){return $.hasOwnProperty(e+"Provider")||t.hasOwnProperty(e)}}}e=!0===e;var f={},h=[],p=new Rt([],(!0)),$={$provide:{provider:r(i),factory:r(u),service:r(function(t,e){return u(t,["$injector",function(t){return t.instantiate(e)}])}),value:r(function(t,e){return u(t,m(e),!1)}),constant:r(function(t,e){at(t,"constant"),$[t]=e,v[t]=e}),decorator:function(t,e){var n=d.get(t+"Provider"),r=n.$get;n.$get=function(){var t=y.invoke(r,n);return y.invoke(e,null,{$delegate:t})}}}},d=$.$injector=l($,function(t,e){throw Qn.isString(e)&amp;&amp;h.push(e),Pr("unpr",h.join(" &lt;- "))}),v={},y=v.$injector=l(v,function(t,e){var r=d.get(t+"Provider",e);return y.invoke(r.$get,r,n,t)});return o(c(t),function(t){t&amp;&amp;y.invoke(t)}),y}function Ut(){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(t){if(t){t.scrollIntoView();var n;n=a.yOffset,E(n)?n=n():V(n)?(n=n[0],n="fixed"!==e.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom):S(n)||(n=0),n&amp;&amp;(t=t.getBoundingClientRect().top,e.scrollBy(0,t-n))}else e.scrollTo(0,0)}function a(t){t=x(t)?t:n.hash();var e;t?(e=s.getElementById(t))?o(e):(e=i(s.getElementsByName(t)))?o(e):"top"===t&amp;&amp;o(null):o(null)}var s=e.document;return t&amp;&amp;r.$watch(function(){return n.hash()},function(t,e){t===e&amp;&amp;""===t||Tt(function(){r.$evalAsync(a)})}),a}]}function _t(t,e){return t||e?t?e?(nr(t)&amp;&amp;(t=t.join(" ")),nr(e)&amp;&amp;(e=e.join(" ")),t+" "+e):t:e:""}function Bt(t){x(t)&amp;&amp;(t=t.split(" "));var e=ct();return o(t,function(t){t.length&amp;&amp;(e[t]=!0)}),e}function Ht(t){return b(t)?t:{}}function Lt(t,e,n,r){function i(t){try{t.apply(null,Gn.call(arguments,1))}finally{if(m--,0===m)for(;v.length;)try{v.pop()()}catch(e){n.error(e)}}}function a(){S=null,s(),u()}function s(){t:{try{y=f.state;break t}catch(t){}y=void 0}y=g(y)?null:y,R(y,k)&amp;&amp;(y=k),k=y}function u(){w===c.url()&amp;&amp;b===y||(w=c.url(),b=y,o(C,function(t){t(c.url(),y)}))}var c=this,l=t.location,f=t.history,h=t.setTimeout,p=t.clearTimeout,d={};c.isMock=!1;var m=0,v=[];c.$$completeOutstandingRequest=i,c.$$incOutstandingRequestCount=function(){m++},c.notifyWhenNoOutstandingRequests=function(t){0===m?t():v.push(t)};var y,b,w=l.href,x=e.find("base"),S=null;s(),b=y,c.url=function(e,n,i){if(g(i)&amp;&amp;(i=null),l!==t.location&amp;&amp;(l=t.location),f!==t.history&amp;&amp;(f=t.history),e){var o=b===i;if(w===e&amp;&amp;(!r.history||o))return c;var a=w&amp;&amp;ge(w)===ge(e);return w=e,b=i,!r.history||a&amp;&amp;o?(a&amp;&amp;!S||(S=e),n?l.replace(e):a?(n=l,i=e.indexOf("#"),i=-1===i?"":e.substr(i),n.hash=i):l.href=e,l.href!==e&amp;&amp;(S=e)):(f[n?"replaceState":"pushState"](i,"",e),s(),b=y),c}return S||l.href.replace(/%27/g,"'")},c.state=function(){return y};var C=[],E=!1,k=null;c.onUrlChange=function(e){return E||(r.history&amp;&amp;Un(t).on("popstate",a),Un(t).on("hashchange",a),E=!0),C.push(e),e},c.$$applicationDestroyed=function(){Un(t).off("hashchange popstate",a)},c.$$checkUrlChange=u,c.baseHref=function(){var t=x.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(t,e){var n;return m++,n=h(function(){delete d[n],i(t)},e||0),d[n]=!0,n},c.defer.cancel=function(t){return!!d[t]&amp;&amp;(delete d[t],p(t),i($),!0)}}function zt(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new Lt(t,r,e,n)}]}function Wt(){this.$get=function(){function t(t,n){function i(t){t!=h&amp;&amp;(p?p==t&amp;&amp;(p=t.n):p=t,o(t.n,t.p),o(t,h),h=t,h.n=null)}function o(t,e){t!=e&amp;&amp;(t&amp;&amp;(t.p=e),e&amp;&amp;(e.n=t))}if(t in e)throw r("$cacheFactory")("iid",t);var a=0,s=l({},n,{id:t}),u=ct(),c=n&amp;&amp;n.capacity||Number.MAX_VALUE,f=ct(),h=null,p=null;return e[t]={put:function(t,e){if(!g(e)){if(c&lt;Number.MAX_VALUE){var n=f[t]||(f[t]={key:t});i(n)}return t in u||a++,u[t]=e,a&gt;c&amp;&amp;this.remove(p.key),e}},get:function(t){if(c&lt;Number.MAX_VALUE){var e=f[t];if(!e)return;i(e)}return u[t]},remove:function(t){if(c&lt;Number.MAX_VALUE){var e=f[t];if(!e)return;e==h&amp;&amp;(h=e.p),e==p&amp;&amp;(p=e.n),o(e.n,e.p),delete f[t]}t in u&amp;&amp;(delete u[t],a--)},removeAll:function(){u=ct(),a=0,f=ct(),h=p=null},destroy:function(){f=s=u=null,delete e[t]},info:function(){return l({},s,{size:a})}}}var e={};return t.info=function(){var t={};return o(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function Gt(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function Kt(t,r){function i(t,e,n){var r=/^\s*([@&amp;]|=(\*?))(\??)\s*(\w*)\s*$/,i={};return o(t,function(t,o){var a=t.match(r);if(!a)throw Ur("iscp",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}}),i}function a(t){var e=t.charAt(0);if(!e||e!==Ln(e))throw Ur("baddir",t);if(t!==t.trim())throw Ur("baddir",t)}var u={},c=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,f=/(([\w\-]+)(?:\:([^;]+))?;?)/,h=N("ngSrc,ngSrcset,src,srcset"),v=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,w=/^(on[a-z]+|formaction)$/;this.directive=function C(e,n){return at(e,"directive"),x(e)?(a(e),it(n,"directiveFactory"),u.hasOwnProperty(e)||(u[e]=[],t.factory(e+"Directive",["$injector","$exceptionHandler",function(t,n){var r=[];return o(u[e],function(o,a){try{var s=t.invoke(o);E(s)?s={compile:m(s)}:!s.compile&amp;&amp;s.link&amp;&amp;(s.compile=m(s.link)),s.priority=s.priority||0,s.index=a,s.name=s.name||e,s.require=s.require||s.controller&amp;&amp;s.name,s.restrict=s.restrict||"EA";var u=s,c=s,l=s.name,f={isolateScope:null,bindToController:null};if(b(c.scope)&amp;&amp;(!0===c.bindToController?(f.bindToController=i(c.scope,l,!0),f.isolateScope={}):f.isolateScope=i(c.scope,l,!1)),b(c.bindToController)&amp;&amp;(f.bindToController=i(c.bindToController,l,!0)),b(f.bindToController)){var h=c.controller,p=c.controllerAs;if(!h)throw Ur("noctrl",l);var $;t:if(p&amp;&amp;x(p))$=p;else{if(x(h)){var d=Hr.exec(h);if(d){$=d[3];break t}}$=void 0}if(!$)throw Ur("noident",l)}var v=u.$$bindings=f;b(v.isolateScope)&amp;&amp;(s.$$isolateBindings=v.isolateScope),s.$$moduleName=o.$$moduleName,r.push(s)}catch(g){n(g)}}),r}])),u[e].push(n)):o(e,s(C)),this},this.aHrefSanitizationWhitelist=function(t){return y(t)?(r.aHrefSanitizationWhitelist(t),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(r.imgSrcSanitizationWhitelist(t),this):r.imgSrcSanitizationWhitelist()};var S=!0;this.debugInfoEnabled=function(t){return y(t)?(S=t,this):S},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,r,i,a,s,m,y,C,k,A,M){function T(t,e){try{t.addClass(e)}catch(n){}}function V(t,e,n,r,i){t instanceof Un||(t=Un(t)),o(t,function(e,n){e.nodeType==fr&amp;&amp;e.nodeValue.match(/\S+/)&amp;&amp;(t[n]=Un(e).wrap("&lt;span&gt;&lt;/span&gt;").parent()[0])});var a=N(t,e,t,n,r,i);V.$$addScopeClass(t);var s=null;return function(e,n,r){it(e,"scope"),i&amp;&amp;i.needsNewScope&amp;&amp;(e=e.$parent.$new()),r=r||{};var o=r.parentBoundTranscludeFn,u=r.transcludeControllers;if(r=r.futureParentElement,o&amp;&amp;o.$$boundTransclude&amp;&amp;(o=o.$$boundTransclude),s||(s=(r=r&amp;&amp;r[0])&amp;&amp;"foreignobject"!==j(r)&amp;&amp;r.toString().match(/SVG/)?"svg":"html"),r="html"!==s?Un(Y(s,Un("&lt;div&gt;").append(t).html())):n?Er.clone.call(t):t,u)for(var c in u)r.data("$"+c+"Controller",u[c].instance);return V.$$addScopeInfo(r,e),n&amp;&amp;n(r,e),a&amp;&amp;a(e,r,r,o),r}}function N(t,e,r,i,o,a){function s(t,r,i,o){var a,s,u,c,l,f,$;if(h)for($=Array(r.length),c=0;c&lt;p.length;c+=3)a=p[c],$[a]=r[a];else $=r;for(c=0,l=p.length;c&lt;l;)s=$[p[c++]],r=p[c++],a=p[c++],r?(r.scope?(u=t.$new(),V.$$addScopeInfo(Un(s),u)):u=t,f=r.transcludeOnThisElement?D(t,r.transclude,o):!r.templateOnThisElement&amp;&amp;o?o:!o&amp;&amp;e?D(t,e):null,r(a,u,s,i,f)):a&amp;&amp;a(t,s.childNodes,n,o)}for(var u,c,l,f,h,p=[],$=0;$&lt;t.length;$++)u=new ot,c=I(t[$],[],u,0===$?i:n,o),(a=c.length?U(c,t[$],u,e,r,null,[],[],a):null)&amp;&amp;a.scope&amp;&amp;V.$$addScopeClass(u.$$element),u=a&amp;&amp;a.terminal||!(l=t[$].childNodes)||!l.length?null:N(l,a?(a.transcludeOnThisElement||!a.templateOnThisElement)&amp;&amp;a.transclude:e),(a||u)&amp;&amp;(p.push($,a,u),f=!0,h=h||a),a=null;return f?s:null}function D(t,e,n){return function(r,i,o,a,s){return r||(r=t.$new(!1,s),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}}function I(t,e,n,r,i){var o,a=n.$attr;switch(t.nodeType){case 1:B(e,Jt(j(t)),"E",r,i);for(var s,u,l,h=t.attributes,p=0,$=h&amp;&amp;h.length;p&lt;$;p++){var d=!1,m=!1;s=h[p],o=s.name,u=ir(s.value),s=Jt(o),(l=lt.test(s))&amp;&amp;(o=o.replace(_r,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()})),(s=s.match(ft))&amp;&amp;H(s[1])&amp;&amp;(d=o,m=o.substr(0,o.length-5)+"end",o=o.substr(0,o.length-6)),s=Jt(o.toLowerCase()),a[s]=o,!l&amp;&amp;n.hasOwnProperty(s)||(n[s]=u,Vt(t,s)&amp;&amp;(n[s]=!0)),X(t,e,u,s,l),B(e,s,"A",r,i,d,m)}if(t=t.className,b(t)&amp;&amp;(t=t.animVal),x(t)&amp;&amp;""!==t)for(;o=f.exec(t);)s=Jt(o[2]),B(e,s,"C",r,i)&amp;&amp;(n[s]=ir(o[3])),t=t.substr(o.index+o[0].length);break;case fr:if(11===qn)for(;t.parentNode&amp;&amp;t.nextSibling&amp;&amp;t.nextSibling.nodeType===fr;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);J(e,t.nodeValue);break;case 8:try{(o=c.exec(t.nodeValue))&amp;&amp;(s=Jt(o[1]),B(e,s,"M",r,i)&amp;&amp;(n[s]=ir(o[2])))}catch(v){}}return e.sort(G),e}function F(t,e,n){var r=[],i=0;if(e&amp;&amp;t.hasAttribute&amp;&amp;t.hasAttribute(e)){do{if(!t)throw Ur("uterdir",e,n);1==t.nodeType&amp;&amp;(t.hasAttribute(e)&amp;&amp;i++,t.hasAttribute(n)&amp;&amp;i--),r.push(t),t=t.nextSibling}while(0&lt;i)}else r.push(t);return Un(r)}function q(t,e,n){return function(r,i,o,a,s){return i=F(i[0],e,n),t(r,i,o,a,s)}}function U(t,r,o,a,s,u,c,l,f){function h(t,e,n,r){t&amp;&amp;(n&amp;&amp;(t=q(t,n,r)),t.require=g.require,t.directiveName=y,(M===g||g.$$isolateScope)&amp;&amp;(t=tt(t,{isolateScope:!0})),c.push(t)),e&amp;&amp;(n&amp;&amp;(e=q(e,n,r)),e.require=g.require,e.directiveName=y,(M===g||g.$$isolateScope)&amp;&amp;(e=tt(e,{isolateScope:!0})),l.push(e))}function p(t,e,n,r){var i;if(x(e)){var o=e.match(v);e=e.substring(o[0].length);var a=o[1]||o[3],o="?"===o[2];if("^^"===a?n=n.parent():i=(i=r&amp;&amp;r[e])&amp;&amp;i.instance,i||(r="$"+e+"Controller",i=a?n.inheritedData(r):n.data(r)),!i&amp;&amp;!o)throw Ur("ctreq",e,t)}else if(nr(e))for(i=[],a=0,o=e.length;a&lt;o;a++)i[a]=p(t,e[a],n,r);return i||null}function $(t,e,n,r,i,o){var a,s=ct();for(a in r){var u=r[a],c={$scope:u===M||u.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},l=u.controller;"@"==l&amp;&amp;(l=e[u.name]),c=m(l,c,!0,u.controllerAs),s[u.name]=c,D||t.data("$"+u.name+"Controller",c.instance)}return s}function d(t,e,i,a,s){function u(t,e,r){var i;return O(t)||(r=e,e=t,t=n),D&amp;&amp;(i=m),r||(r=D?g.parent():g),s(t,e,i,r,C)}var f,h,d,m,v,g,y;r===i?(a=o,g=o.$$element):(g=Un(i),a=new ot(g,o)),d=e,M?h=e.$new(!0):k&amp;&amp;(d=e.$parent),s&amp;&amp;(v=u,v.$$boundTransclude=s),A&amp;&amp;(m=$(g,a,v,A,h,e)),M&amp;&amp;(V.$$addScopeInfo(g,h,!0,!(T&amp;&amp;(T===M||T===M.$$originalDirective))),V.$$addScopeClass(g,!0),h.$$isolateBindings=M.$$isolateBindings,(y=rt(e,a,h,h.$$isolateBindings,M))&amp;&amp;h.$on("$destroy",y));for(var b in m){y=A[b];var w=m[b],x=y.$$bindings.bindToController;w.identifier&amp;&amp;x&amp;&amp;(f=rt(d,a,w.instance,x,y));var S=w();S!==w.instance&amp;&amp;(w.instance=S,g.data("$"+y.name+"Controller",S),f&amp;&amp;f(),f=rt(d,a,w.instance,x,y))}for(B=0,H=c.length;B&lt;H;B++)f=c[B],et(f,f.isolateScope?h:e,g,a,f.require&amp;&amp;p(f.directiveName,f.require,g,m),v);var C=e;for(M&amp;&amp;(M.template||null===M.templateUrl)&amp;&amp;(C=h),t&amp;&amp;t(C,i.childNodes,n,s),B=l.length-1;0&lt;=B;B--)f=l[B],et(f,f.isolateScope?h:e,g,a,f.require&amp;&amp;p(f.directiveName,f.require,g,m),v)}f=f||{};for(var g,y,w,S,C=-Number.MAX_VALUE,k=f.newScopeDirective,A=f.controllerDirectives,M=f.newIsolateScopeDirective,T=f.templateDirective,N=f.nonTlbTranscludeDirective,j=!1,P=!1,D=f.hasElementTranscludeDirective,R=o.$$element=Un(r),U=a,B=0,H=t.length;B&lt;H;B++){g=t[B];var G=g.$$start,J=g.$$end;if(G&amp;&amp;(R=F(r,G,J)),w=n,C&gt;g.priority)break;if((w=g.scope)&amp;&amp;(g.templateUrl||(b(w)?(K("new/isolated scope",M||k,g,R),M=g):K("new/isolated scope",M,g,R)),k=k||g),y=g.name,!g.templateUrl&amp;&amp;g.controller&amp;&amp;(w=g.controller,A=A||ct(),K("'"+y+"' controller",A[y],g,R),A[y]=g),(w=g.transclude)&amp;&amp;(j=!0,g.$$tlb||(K("transclusion",N,g,R),N=g),"element"==w?(D=!0,C=g.priority,w=R,R=o.$$element=Un(e.createComment(" "+y+": "+o[y]+" ")),r=R[0],Q(s,Gn.call(w,0),r),U=V(w,a,C,u&amp;&amp;u.name,{nonTlbTranscludeDirective:N})):(w=Un(mt(r)).contents(),R.empty(),U=V(w,a,n,n,{needsNewScope:g.$$isolateScope||g.$$newScope}))),g.template)if(P=!0,K("template",T,g,R),T=g,w=E(g.template)?g.template(R,o):g.template,w=ut(w),g.replace){if(u=g,w=br.test(w)?Zt(Y(g.templateNamespace,ir(w))):[],r=w[0],1!=w.length||1!==r.nodeType)throw Ur("tplrt",y,"");Q(s,R,r),w={$attr:{}};var Z=I(r,[],w),X=t.splice(B+1,t.length-(B+1));(M||k)&amp;&amp;_(Z,M,k),t=t.concat(Z).concat(X),L(o,w),H=t.length}else R.html(w);if(g.templateUrl)P=!0,K("template",T,g,R),T=g,g.replace&amp;&amp;(u=g),d=W(t.splice(B,t.length-B),R,o,s,j&amp;&amp;U,c,l,{controllerDirectives:A,newScopeDirective:k!==g&amp;&amp;k,newIsolateScopeDirective:M,templateDirective:T,nonTlbTranscludeDirective:N}),H=t.length;else if(g.compile)try{S=g.compile(R,o,U),E(S)?h(null,S,G,J):S&amp;&amp;h(S.pre,S.post,G,J)}catch(nt){i(nt,z(R))}g.terminal&amp;&amp;(d.terminal=!0,C=Math.max(C,g.priority))}return d.scope=k&amp;&amp;!0===k.scope,d.transcludeOnThisElement=j,d.templateOnThisElement=P,d.transclude=U,f.hasElementTranscludeDirective=D,d}function _(t,e,n){for(var r=0,i=t.length;r&lt;i;r++)t[r]=p(t[r],{$$isolateScope:e,$$newScope:n})}function B(e,n,r,o,a,s,c){if(n===a)return null;if(a=null,u.hasOwnProperty(n)){var l;n=t.get(n+"Directive");for(var f=0,h=n.length;f&lt;h;f++)try{l=n[f],(g(o)||o&gt;l.priority)&amp;&amp;-1!=l.restrict.indexOf(r)&amp;&amp;(s&amp;&amp;(l=p(l,{$$start:s,$$end:c})),e.push(l),a=l)}catch($){i($)}}return a}function H(e){if(u.hasOwnProperty(e))for(var n=t.get(e+"Directive"),r=0,i=n.length;r&lt;i;r++)if(e=n[r],e.multiElement)return!0;return!1}function L(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;o(t,function(r,i){"$"!=i.charAt(0)&amp;&amp;(e[i]&amp;&amp;e[i]!==r&amp;&amp;(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),o(e,function(e,o){"class"==o?(T(i,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==o?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==o.charAt(0)||t.hasOwnProperty(o)||(t[o]=e,r[o]=n[o])})}function W(t,e,n,r,i,s,u,c){var l,f,h=[],$=e[0],d=t.shift(),m=p(d,{templateUrl:null,transclude:null,replace:null,$$originalDirective:d}),v=E(d.templateUrl)?d.templateUrl(e,n):d.templateUrl,g=d.templateNamespace;return e.empty(),a(v).then(function(a){var p,y;if(a=ut(a),d.replace){if(a=br.test(a)?Zt(Y(g,ir(a))):[],p=a[0],1!=a.length||1!==p.nodeType)throw Ur("tplrt",d.name,v);a={$attr:{}},Q(r,e,p);var w=I(p,[],a);b(d.scope)&amp;&amp;_(w,!0),t=w.concat(t),L(n,a)}else p=$,e.html(a);for(t.unshift(m),l=U(t,p,n,i,e,d,s,u,c),o(r,function(t,n){t==p&amp;&amp;(r[n]=e[0])}),f=N(e[0].childNodes,i);h.length;){a=h.shift(),y=h.shift();var x=h.shift(),S=h.shift(),w=e[0];if(!a.$$destroyed){if(y!==$){var C=y.className;c.hasElementTranscludeDirective&amp;&amp;d.replace||(w=mt(p)),
Q(x,Un(y),w),T(Un(w),C)}y=l.transcludeOnThisElement?D(a,l.transclude,S):S,l(f,a,w,r,y)}}h=null}),function(t,e,n,r,i){t=i,e.$$destroyed||(h?h.push(e,n,r,t):(l.transcludeOnThisElement&amp;&amp;(t=D(e,l.transclude,i)),l(f,e,n,r,t)))}}function G(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name&lt;e.name?-1:1:t.index-e.index}function K(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Ur("multidir",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,z(r))}function J(t,e){var n=r(e,!0);n&amp;&amp;t.push({priority:0,compile:function(t){t=t.parent();var e=!!t.length;return e&amp;&amp;V.$$addBindingClass(t),function(t,r){var i=r.parent();e||V.$$addBindingClass(i),V.$$addBindingInfo(i,n.expressions),t.$watch(n,function(t){r[0].nodeValue=t})}}})}function Y(t,n){switch(t=Ln(t||"html")){case"svg":case"math":var r=e.createElement("div");return r.innerHTML="&lt;"+t+"&gt;"+n+"&lt;/"+t+"&gt;",r.childNodes[0].childNodes;default:return n}}function Z(t,e){if("srcdoc"==e)return k.HTML;var n=j(t);return"xlinkHref"==e||"form"==n&amp;&amp;"action"==e||"img"!=n&amp;&amp;("src"==e||"ngSrc"==e)?k.RESOURCE_URL:void 0}function X(t,e,n,i,o){var a=Z(t,i);o=h[i]||o;var s=r(n,!0,a,o);if(s){if("multiple"===i&amp;&amp;"select"===j(t))throw Ur("selmulti",z(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){if(e=u.$$observers||(u.$$observers=ct()),w.test(i))throw Ur("nodomevents");var c=u[i];c!==n&amp;&amp;(s=c&amp;&amp;r(c,!0,a,o),n=c),s&amp;&amp;(u[i]=s(t),(e[i]||(e[i]=[])).$$inter=!0,(u.$$observers&amp;&amp;u.$$observers[i].$$scope||t).$watch(s,function(t,e){"class"===i&amp;&amp;t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function Q(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i&lt;o;i++)if(t[i]==a){t[i++]=r,o=i+s-1;for(var c=t.length;i&lt;c;i++,o++)o&lt;c?t[i]=t[o]:delete t[i];t.length-=s-1,t.context===a&amp;&amp;(t.context=r);break}for(u&amp;&amp;u.replaceChild(r,a),t=e.createDocumentFragment(),t.appendChild(a),Un.hasData(a)&amp;&amp;(Un.data(r,Un.data(a)),_n?(er=!0,_n.cleanData([a])):delete Un.cache[a[Un.expando]]),a=1,s=n.length;a&lt;s;a++)u=n[a],Un(u).remove(),t.appendChild(u),delete n[a];n[0]=r,n.length=1}function tt(t,e){return l(function(){return t.apply(null,arguments)},t,e)}function et(t,e,n,r,o,a){try{t(e,n,r,o,a)}catch(s){i(s,z(n))}}function rt(t,e,n,i,a){var u=[];return o(i,function(i,o){var c,l,f,h,p=i.attrName,d=i.optional;switch(i.mode){case"@":d||zn.call(e,p)||(n[o]=e[p]=void 0),e.$observe(p,function(t){x(t)&amp;&amp;(n[o]=t)}),e.$$observers[p].$$scope=t,x(e[p])&amp;&amp;(n[o]=r(e[p])(t));break;case"=":if(!zn.call(e,p)){if(d)break;e[p]=void 0}if(d&amp;&amp;!e[p])break;l=s(e[p]),h=l.literal?R:function(t,e){return t===e||t!==t&amp;&amp;e!==e},f=l.assign||function(){throw c=n[o]=l(t),Ur("nonassign",e[p],a.name)},c=n[o]=l(t),d=function(e){return h(e,n[o])||(h(e,c)?f(t,e=n[o]):n[o]=e),c=e},d.$stateful=!0,d=i.collection?t.$watchCollection(e[p],d):t.$watch(s(e[p],d),null,l.literal),u.push(d);break;case"&amp;":if(l=e.hasOwnProperty(p)?s(e[p]):$,l===$&amp;&amp;d)break;n[o]=function(e){return l(t,e)}}}),u.length&amp;&amp;function(){for(var t=0,e=u.length;t&lt;e;++t)u[t]()}}var ot=function(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n&lt;r;n++)i=o[n],this[i]=e[i]}else this.$attr={};this.$$element=t};ot.prototype={$normalize:Jt,$addClass:function(t){t&amp;&amp;0&lt;t.length&amp;&amp;A.addClass(this.$$element,t)},$removeClass:function(t){t&amp;&amp;0&lt;t.length&amp;&amp;A.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Yt(t,e);n&amp;&amp;n.length&amp;&amp;A.addClass(this.$$element,n),(n=Yt(e,t))&amp;&amp;n.length&amp;&amp;A.removeClass(this.$$element,n)},$set:function(t,e,n,r){var a=Vt(this.$$element[0],t),s=Or[t],u=t;if(a?(this.$$element.prop(t,e),r=a):s&amp;&amp;(this[s]=e,u=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=nt(t,"-")),a=j(this.$$element),"a"===a&amp;&amp;"href"===t||"img"===a&amp;&amp;"src"===t)this[t]=e=M(e,"src"===t);else if("img"===a&amp;&amp;"srcset"===t){for(var a="",s=ir(e),c=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,c=/\s/.test(s)?c:/(,)/,s=s.split(c),c=Math.floor(s.length/2),l=0;l&lt;c;l++)var f=2*l,a=a+M(ir(s[f]),!0),a=a+(" "+ir(s[f+1]));s=ir(s[2*l]).split(/\s/),a+=M(ir(s[0]),!0),2===s.length&amp;&amp;(a+=" "+ir(s[1])),this[t]=e=a}!1!==n&amp;&amp;(null===e||g(e)?this.$$element.removeAttr(r):this.$$element.attr(r,e)),(t=this.$$observers)&amp;&amp;o(t[u],function(t){try{t(e)}catch(n){i(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=ct()),i=r[t]||(r[t]=[]);return i.push(e),y.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||g(n[t])||e(n[t])}),function(){P(i,e)}}};var at=r.startSymbol(),st=r.endSymbol(),ut="{{"==at||"}}"==st?d:function(t){return t.replace(/\{\{/g,at).replace(/}}/g,st)},lt=/^ngAttr[A-Z]/,ft=/^(.+)Start$/;return V.$$addBindingInfo=S?function(t,e){var n=t.data("$binding")||[];nr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:$,V.$$addBindingClass=S?function(t){T(t,"ng-binding")}:$,V.$$addScopeInfo=S?function(t,e,n,r){t.data(n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:$,V.$$addScopeClass=S?function(t,e){T(t,e?"ng-isolate-scope":"ng-scope")}:$,V}]}function Jt(t){return ht(t.replace(_r,""))}function Yt(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/),o=0;t:for(;o&lt;r.length;o++){for(var a=r[o],s=0;s&lt;i.length;s++)if(a==i[s])continue t;n+=(0&lt;n.length?" ":"")+a}return n}function Zt(t){t=Un(t);var e=t.length;if(1&gt;=e)return t;for(;e--;)8===t[e].nodeType&amp;&amp;Kn.call(t,e,1);return t}function Xt(){var t={},e=!1;this.register=function(e,n){at(e,"controller"),b(e)?l(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(i,o){function a(t,e,n,i){if(!t||!b(t.$scope))throw r("$controller")("noscp",i,e);t.$scope[e]=n}return function(r,s,u,c){var f,h,p;if(u=!0===u,c&amp;&amp;x(c)&amp;&amp;(p=c),x(r)){if(c=r.match(Hr),!c)throw Br("ctrlfmt",r);h=c[1],p=p||c[3],r=t.hasOwnProperty(h)?t[h]:st(s.$scope,h,!0)||(e?st(o,h,!0):n),ot(r,h,!0)}return u?(u=(nr(r)?r[r.length-1]:r).prototype,f=Object.create(u||null),p&amp;&amp;a(s,p,f,h||r.name),l(function(){var t=i.invoke(r,f,s,h);return t!==f&amp;&amp;(b(t)||E(t))&amp;&amp;(f=t,p&amp;&amp;a(s,p,f,h||r.name)),f},{instance:f,identifier:p})):(f=i.instantiate(r,s,h),p&amp;&amp;a(s,p,f,h||r.name),f)}}]}function Qt(){this.$get=["$window",function(t){return Un(t.document)}]}function te(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function ee(t){return b(t)?C(t)?t.toISOString():_(t):t}function ne(){this.$get=function(){return function(t){if(!t)return"";var e=[];return a(t,function(t,n){null===t||g(t)||(nr(t)?o(t,function(t,r){e.push(Y(n)+"="+Y(ee(t)))}):e.push(Y(n)+"="+Y(ee(t))))}),e.join("&amp;")}}}function re(){this.$get=function(){return function(t){function e(t,r,i){null===t||g(t)||(nr(t)?o(t,function(t,n){e(t,r+"["+(b(t)?n:"")+"]")}):b(t)&amp;&amp;!C(t)?a(t,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):n.push(Y(r)+"="+Y(ee(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&amp;")}}}function ie(t,e){if(x(t)){var n=t.replace(Jr,"").trim();if(n){var r=e("Content-Type");(r=r&amp;&amp;0===r.indexOf(zr))||(r=(r=n.match(Gr))&amp;&amp;Kr[r[0]].test(n)),r&amp;&amp;(t=B(n))}}return t}function oe(t){var e,n=ct();return x(t)?o(t.split("\n"),function(t){e=t.indexOf(":");var r=Ln(ir(t.substr(0,e)));t=ir(t.substr(e+1)),r&amp;&amp;(n[r]=n[r]?n[r]+", "+t:t)}):b(t)&amp;&amp;o(t,function(t,e){var r=Ln(e),i=ir(t);r&amp;&amp;(n[r]=n[r]?n[r]+", "+i:i)}),n}function ae(t){var e;return function(n){return e||(e=oe(t)),n?(n=e[Ln(n)],void 0===n&amp;&amp;(n=null),n):e}}function se(t,e,n,r){return E(r)?r(t,e,n):(o(r,function(r){t=r(t,e,n)}),t)}function ue(){var t=this.defaults={transformResponse:[ie],transformRequest:[function(t){return b(t)&amp;&amp;"[object File]"!==Yn.call(t)&amp;&amp;"[object Blob]"!==Yn.call(t)&amp;&amp;"[object FormData]"!==Yn.call(t)?_(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:I(Wr),put:I(Wr),patch:I(Wr)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return y(t)?(e=!!t,this):e};var i=!0;this.useLegacyPromiseExtensions=function(t){return y(t)?(i=!!t,this):i};var a=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(s,u,c,f,h,p){function $(e){function a(t){var e=l({},t);return e.data=se(t.data,t.headers,t.status,u.transformResponse),t=t.status,200&lt;=t&amp;&amp;300&gt;t?e:h.reject(e)}function s(t,e){var n,r={};return o(t,function(t,i){E(t)?(n=t(e),null!=n&amp;&amp;(r[i]=n)):r[i]=t}),r}if(!Qn.isObject(e))throw r("$http")("badreq",e);var u=l({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);u.headers=function(e){var n,r,i,o=t.headers,a=l({},e.headers),o=l({},o.common,o[Ln(e.method)]);t:for(n in o){r=Ln(n);for(i in a)if(Ln(i)===r)continue t;a[n]=o[n]}return s(a,I(e))}(e),u.method=Wn(u.method),u.paramSerializer=x(u.paramSerializer)?p.get(u.paramSerializer):u.paramSerializer;var c=[function(e){var r=e.headers,i=se(e.data,ae(r),n,e.transformRequest);return g(i)&amp;&amp;o(r,function(t,e){"content-type"===Ln(e)&amp;&amp;delete r[e]}),g(e.withCredentials)&amp;&amp;!g(t.withCredentials)&amp;&amp;(e.withCredentials=t.withCredentials),d(e,i).then(a,a)},n],f=h.when(u);for(o(w,function(t){(t.request||t.requestError)&amp;&amp;c.unshift(t.request,t.requestError),(t.response||t.responseError)&amp;&amp;c.push(t.response,t.responseError)});c.length;){e=c.shift();var $=c.shift(),f=f.then(e,$)}return i?(f.success=function(t){return ot(t,"fn"),f.then(function(e){t(e.data,e.status,e.headers,u)}),f},f.error=function(t){return ot(t,"fn"),f.then(null,function(e){t(e.data,e.status,e.headers,u)}),f}):(f.success=Zr("success"),f.error=Zr("error")),f}function d(r,i){function o(t,n,r,i){function o(){a(n,t,r,i)}p&amp;&amp;(200&lt;=t&amp;&amp;300&gt;t?p.put(C,[t,n,oe(r),i]):p.remove(C)),e?f.$applyAsync(o):(o(),f.$$phase||f.$apply())}function a(t,e,n,i){e=-1&lt;=e?e:0,(200&lt;=e&amp;&amp;300&gt;e?w.resolve:w.reject)({data:t,status:e,headers:ae(n),config:r,statusText:i})}function c(t){a(t.data,t.status,I(t.headers()),t.statusText)}function l(){var t=$.pendingRequests.indexOf(r);-1!==t&amp;&amp;$.pendingRequests.splice(t,1)}var p,d,w=h.defer(),x=w.promise,S=r.headers,C=m(r.url,r.paramSerializer(r.params));return $.pendingRequests.push(r),x.then(l,l),!r.cache&amp;&amp;!t.cache||!1===r.cache||"GET"!==r.method&amp;&amp;"JSONP"!==r.method||(p=b(r.cache)?r.cache:b(t.cache)?t.cache:v),p&amp;&amp;(d=p.get(C),y(d)?d&amp;&amp;E(d.then)?d.then(c,c):nr(d)?a(d[1],d[0],I(d[2]),d[3]):a(d,200,{},"OK"):p.put(C,x)),g(d)&amp;&amp;((d=an(r.url)?u()[r.xsrfCookieName||t.xsrfCookieName]:n)&amp;&amp;(S[r.xsrfHeaderName||t.xsrfHeaderName]=d),s(r.method,C,i,o,S,r.timeout,r.withCredentials,r.responseType)),x}function m(t,e){return 0&lt;e.length&amp;&amp;(t+=(-1==t.indexOf("?")?"?":"&amp;")+e),t}var v=c("$http");t.paramSerializer=x(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var w=[];return o(a,function(t){w.unshift(x(t)?p.get(t):p.invoke(t))}),$.pendingRequests=[],function(t){o(arguments,function(t){$[t]=function(e,n){return $(l({},n||{},{method:t,url:e}))}})}("get","delete","head","jsonp"),function(t){o(arguments,function(t){$[t]=function(e,n,r){return $(l({},r||{},{method:t,url:e,data:n}))}})}("post","put","patch"),$.defaults=t,$}]}function ce(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function le(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return fe(t,r,t.defer,e.angular.callbacks,n[0])}]}function fe(t,e,n,r,i){function a(t,e,n){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,!1),o.removeEventListener("error",a,!1),i.body.removeChild(o),o=null;var s=-1,u="unknown";t&amp;&amp;("load"!==t.type||r[e].called||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&amp;&amp;n(s,u)},o.addEventListener("load",a,!1),o.addEventListener("error",a,!1),i.body.appendChild(o),a}return function(i,s,u,c,l,f,h,p){function d(){b&amp;&amp;b(),w&amp;&amp;w.abort()}function m(e,r,i,o,a){y(S)&amp;&amp;n.cancel(S),b=w=null,e(r,i,o,a),t.$$completeOutstandingRequest($)}if(t.$$incOutstandingRequestCount(),s=s||t.url(),"jsonp"==Ln(i)){var v="_"+(r.counter++).toString(36);r[v]=function(t){r[v].data=t,r[v].called=!0};var b=a(s.replace("JSON_CALLBACK","angular.callbacks."+v),v,function(t,e){m(c,t,r[v].data,"",e),r[v]=$})}else{var w=e(i,s);if(w.open(i,s,!0),o(l,function(t,e){y(t)&amp;&amp;w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&amp;&amp;(n=e?200:"file"==on(s).protocol?404:0),m(c,n,e,w.getAllResponseHeaders(),t)},i=function(){m(c,-1,null,null,"")},w.onerror=i,w.onabort=i,h&amp;&amp;(w.withCredentials=!0),p)try{w.responseType=p}catch(x){if("json"!==p)throw x}w.send(g(u)?null:u)}if(0&lt;f)var S=n(d,f);else f&amp;&amp;E(f.then)&amp;&amp;f.then(d)}}function he(){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(f,t).replace(h,e)}function s(o,s,f,h){function p(t){try{var e=t;t=f?i.getTrusted(f,e):i.valueOf(e);var n;if(h&amp;&amp;!y(t))n=t;else if(null==t)n="";else{switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=_(t)}n=t}return n}catch(a){r(Xr.interr(o,a))}}h=!!h;for(var $,d,m=0,v=[],b=[],w=o.length,x=[],S=[];m&lt;w;){if(-1==($=o.indexOf(t,m))||-1==(d=o.indexOf(e,$+u))){m!==w&amp;&amp;x.push(a(o.substring(m)));break}m!==$&amp;&amp;x.push(a(o.substring(m,$))),m=o.substring($+u,d),v.push(m),b.push(n(m,p)),m=d+c,S.push(x.length),x.push("")}if(f&amp;&amp;1&lt;x.length&amp;&amp;Xr.throwNoconcat(o),!s||v.length){var C=function(t){for(var e=0,n=v.length;e&lt;n;e++){if(h&amp;&amp;g(t[e]))return;x[S[e]]=t[e]}return x.join("")};return l(function(t){var e=0,n=v.length,i=Array(n);try{for(;e&lt;n;e++)i[e]=b[e](t);return C(i)}catch(a){r(Xr.interr(o,a))}},{exp:o,expressions:v,$$watchDelegate:function(t,e){var n;return t.$watchGroup(b,function(r,i){var o=C(r);E(e)&amp;&amp;e.call(this,o,r!==i?n:o,t),n=o})}})}}var u=t.length,c=e.length,f=new RegExp(t.replace(/./g,o),"g"),h=new RegExp(e.replace(/./g,o),"g");return s.startSymbol=function(){return t},s.endSymbol=function(){return e},s}]}function pe(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,r){function i(i,a,s,u){var c=4&lt;arguments.length,l=c?Gn.call(arguments,4):[],f=e.setInterval,h=e.clearInterval,p=0,$=y(u)&amp;&amp;!u,d=($?r:n).defer(),m=d.promise;return s=y(s)?s:0,m.then(null,null,c?function(){i.apply(null,l)}:i),m.$$intervalId=f(function(){d.notify(p++),0&lt;s&amp;&amp;p&gt;=s&amp;&amp;(d.resolve(p),h(m.$$intervalId),delete o[m.$$intervalId]),$||t.$apply()},a),o[m.$$intervalId]=d,m}var o={};return i.cancel=function(t){return!!(t&amp;&amp;t.$$intervalId in o)&amp;&amp;(o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0)},i}]}function $e(t){t=t.split("/");for(var e=t.length;e--;)t[e]=J(t[e]);return t.join("/")}function de(t,e){var n=on(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=h(n.port)||ti[n.protocol]||null}function me(t,e){var n="/"!==t.charAt(0);n&amp;&amp;(t="/"+t);var r=on(t);e.$$path=decodeURIComponent(n&amp;&amp;"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=G(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&amp;&amp;"/"!=e.$$path.charAt(0)&amp;&amp;(e.$$path="/"+e.$$path)}function ve(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function ge(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function ye(t){return t.replace(/(#.+)|#$/,"$1")}function be(t,e,n){this.$$html5=!0,n=n||"",de(t,this),this.$$parse=function(t){var n=ve(e,t);if(!x(n))throw ei("ipthprfx",t,e);me(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=K(this.$$search),n=this.$$hash?"#"+J(this.$$hash):"";this.$$url=$e(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&amp;&amp;"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return y(o=ve(t,r))?(a=o,a=y(o=ve(n,o))?e+(ve("/",o)||o):t+a):y(o=ve(e,r))?a=e+o:e==r+"/"&amp;&amp;(a=e),a&amp;&amp;this.$$parse(a),!!a}}function we(t,e,n){de(t,this),this.$$parse=function(r){var i,o=ve(t,r)||ve(e,r);g(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",g(o)&amp;&amp;(t=r,this.replace())):(i=ve(n,o),g(i)&amp;&amp;(i=o)),me(i,this),r=this.$$path;var o=t,a=/^\/[A-Z]:(\/.*)/;0===i.indexOf(o)&amp;&amp;(i=i.replace(o,"")),a.exec(i)||(r=(i=a.exec(r))?i[1]:r),this.$$path=r,this.$$compose()},this.$$compose=function(){var e=K(this.$$search),r=this.$$hash?"#"+J(this.$$hash):"";this.$$url=$e(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return ge(t)==ge(e)&amp;&amp;(this.$$parse(e),!0)}}function xe(t,e,n){this.$$html5=!0,we.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&amp;&amp;"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return t==ge(r)?o=r:(a=ve(e,r))?o=t+n+a:e===r+"/"&amp;&amp;(o=e),o&amp;&amp;this.$$parse(o),!!o},this.$$compose=function(){var e=K(this.$$search),r=this.$$hash?"#"+J(this.$$hash):"";this.$$url=$e(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Se(t){return function(){return this[t]}}function Ce(t,e){return function(n){return g(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Ee(){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 M(t)?(e.enabled=t,this):b(t)?(M(t.enabled)&amp;&amp;(e.enabled=t.enabled),M(t.requireBase)&amp;&amp;(e.requireBase=t.requireBase),M(t.rewriteLinks)&amp;&amp;(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=c.url(),o=c.$$state;try{r.url(t,e,n),c.$$state=r.state()}catch(a){throw c.url(i),c.$$state=o,a}}function u(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,l;l=r.baseHref();var f,h=r.url();if(e.enabled){if(!l&amp;&amp;e.requireBase)throw ei("nobase");f=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(l||"/"),l=i.history?be:xe}else f=ge(h),l=we;var p=f.substr(0,ge(f).lastIndexOf("/")+1);c=new l(f,p,"#"+t),c.$$parseLinkUrl(h,h),c.$$state=r.state();var $=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&amp;&amp;!t.ctrlKey&amp;&amp;!t.metaKey&amp;&amp;!t.shiftKey&amp;&amp;2!=t.which&amp;&amp;2!=t.button){for(var i=Un(t.target);"a"!==j(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");b(s)&amp;&amp;"[object SVGAnimatedString]"===s.toString()&amp;&amp;(s=on(s.animVal).href),$.test(s)||!s||i.attr("target")||t.isDefaultPrevented()||!c.$$parseLinkUrl(s,u)||(t.preventDefault(),c.absUrl()!=r.url()&amp;&amp;(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),ye(c.absUrl())!=ye(h)&amp;&amp;r.url(c.absUrl(),!0);var d=!0;return r.onUrlChange(function(t,e){g(ve(p,t))?a.location.href=t:(n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;t=ye(t),c.$$parse(t),c.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,c.absUrl()===t&amp;&amp;(r?(c.$$parse(i),c.$$state=o,s(i,!1,o)):(d=!1,u(i,o)))}),n.$$phase||n.$digest())}),n.$watch(function(){var t=ye(r.url()),e=ye(c.absUrl()),o=r.state(),a=c.$$replace,l=t!==e||c.$$html5&amp;&amp;i.history&amp;&amp;o!==c.$$state;(d||l)&amp;&amp;(d=!1,n.$evalAsync(function(){var e=c.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&amp;&amp;(r?(c.$$parse(t),c.$$state=o):(l&amp;&amp;s(e,a,o===c.$$state?null:c.$$state),u(t,o)))})),c.$$replace=!1}),c}]}function ke(){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&amp;&amp;(t.stack?t=t.message&amp;&amp;-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&amp;&amp;(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function i(t){var e=n.console||{},i=e[t]||e.log||$;t=!1;try{t=!!i.apply}catch(a){}return t?function(){var t=[];return o(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&amp;&amp;n.apply(e,arguments)}}()}}]}function Ae(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw ri("isecfld",e);return t}function Oe(t,e){if(t+="",!x(t))throw ri("iseccst",e);return t}function Me(t,e){if(t){if(t.constructor===t)throw ri("isecfn",e);if(t.window===t)throw ri("isecwindow",e);if(t.children&amp;&amp;(t.nodeName||t.prop&amp;&amp;t.attr&amp;&amp;t.find))throw ri("isecdom",e);if(t===Object)throw ri("isecobj",e)}return t}function Te(t,e){if(t){if(t.constructor===t)throw ri("isecfn",e);if(t===ii||t===oi||t===ai)throw ri("isecff",e)}}function Ve(t,e){if(t&amp;&amp;(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw ri("isecaf",e)}function Ne(t,e){return"undefined"!=typeof t?t:e}function je(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function Pe(t,e){var n,r;switch(t.type){case li.Program:n=!0,o(t.body,function(t){Pe(t.expression,e),n=n&amp;&amp;t.expression.constant}),t.constant=n;break;case li.Literal:t.constant=!0,t.toWatch=[];break;case li.UnaryExpression:Pe(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case li.BinaryExpression:Pe(t.left,e),Pe(t.right,e),t.constant=t.left.constant&amp;&amp;t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case li.LogicalExpression:Pe(t.left,e),Pe(t.right,e),t.constant=t.left.constant&amp;&amp;t.right.constant,t.toWatch=t.constant?[]:[t];break;case li.ConditionalExpression:Pe(t.test,e),Pe(t.alternate,e),Pe(t.consequent,e),t.constant=t.test.constant&amp;&amp;t.alternate.constant&amp;&amp;t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case li.Identifier:t.constant=!1,t.toWatch=[t];break;case li.MemberExpression:Pe(t.object,e),t.computed&amp;&amp;Pe(t.property,e),t.constant=t.object.constant&amp;&amp;(!t.computed||t.property.constant),t.toWatch=[t];break;case li.CallExpression:n=!!t.filter&amp;&amp;!e(t.callee.name).$stateful,r=[],o(t.arguments,function(t){Pe(t,e),n=n&amp;&amp;t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=t.filter&amp;&amp;!e(t.callee.name).$stateful?r:[t];break;case li.AssignmentExpression:Pe(t.left,e),Pe(t.right,e),t.constant=t.left.constant&amp;&amp;t.right.constant,t.toWatch=[t];break;case li.ArrayExpression:n=!0,r=[],o(t.elements,function(t){Pe(t,e),n=n&amp;&amp;t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case li.ObjectExpression:n=!0,r=[],o(t.properties,function(t){Pe(t.value,e),n=n&amp;&amp;t.value.constant,t.value.constant||r.push.apply(r,t.value.toWatch)}),t.constant=n,t.toWatch=r;break;case li.ThisExpression:t.constant=!1,t.toWatch=[]}}function De(t){if(1==t.length){t=t[0].expression;var e=t.toWatch;return 1!==e.length?e:e[0]!==t?e:n}}function Ie(t){return t.type===li.Identifier||t.type===li.MemberExpression}function Re(t){if(1===t.body.length&amp;&amp;Ie(t.body[0].expression))return{type:li.AssignmentExpression,left:t.body[0].expression,right:{type:li.NGValueParameter},operator:"="}}function Fe(t){return 0===t.body.length||1===t.body.length&amp;&amp;(t.body[0].expression.type===li.Literal||t.body[0].expression.type===li.ArrayExpression||t.body[0].expression.type===li.ObjectExpression)}function qe(t,e){this.astBuilder=t,this.$filter=e}function Ue(t,e){this.astBuilder=t,this.$filter=e}function _e(t){return"constructor"==t}function Be(t){return E(t.valueOf)?t.valueOf():hi.call(t)}function He(){var t=ct(),e=ct();this.$get=["$filter",function(r){function i(t,e){return null==t||null==e?t===e:("object"!=typeof t||(t=Be(t),"object"!=typeof t))&amp;&amp;(t===e||t!==t&amp;&amp;e!==e)}function a(t,e,r,o,a){var s,u=o.inputs;if(1===u.length){var c=i,u=u[0];return t.$watch(function(t){var e=u(t);return i(e,c)||(s=o(t,n,n,[e]),c=e&amp;&amp;Be(e)),s},e,r,a)}for(var l=[],f=[],h=0,p=u.length;h&lt;p;h++)l[h]=i,f[h]=null;return t.$watch(function(t){for(var e=!1,r=0,a=u.length;r&lt;a;r++){var c=u[r](t);(e||(e=!i(c,l[r])))&amp;&amp;(f[r]=c,l[r]=c&amp;&amp;Be(c))}return e&amp;&amp;(s=o(t,n,n,f)),s},e,r,a)}function s(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,E(e)&amp;&amp;e.apply(this,arguments),y(t)&amp;&amp;r.$$postDigest(function(){y(o)&amp;&amp;i()})},n)}function u(t,e,n,r){function i(t){var e=!0;return o(t,function(t){y(t)||(e=!1)}),e}var a,s;return a=t.$watch(function(t){return r(t)},function(t,n,r){s=t,E(e)&amp;&amp;e.call(this,t,n,r),i(t)&amp;&amp;r.$$postDigest(function(){i(s)&amp;&amp;a()})},n)}function c(t,e,n,r){var i;return i=t.$watch(function(t){return r(t)},function(t,n,r){E(e)&amp;&amp;e.apply(this,arguments),i()},n)}function l(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,n=n!==u&amp;&amp;n!==s?function(n,i,o,a){return o=r&amp;&amp;a?a[0]:t(n,i,o,a),e(o,n,i)}:function(n,r,i,o){return i=t(n,r,i,o),n=e(i,n,r),y(i)?n:i};return t.$$watchDelegate&amp;&amp;t.$$watchDelegate!==a?n.$$watchDelegate=t.$$watchDelegate:e.$stateful||(n.$$watchDelegate=a,r=!t.inputs,n.inputs=t.inputs?t.inputs:[t]),n}var f=ar().noUnsafeEval,h={csp:f,expensiveChecks:!1},p={csp:f,expensiveChecks:!0};return function(n,i,o){var f,d,m;switch(typeof n){case"string":m=n=n.trim();var v=o?e:t;return f=v[m],f||(":"===n.charAt(0)&amp;&amp;":"===n.charAt(1)&amp;&amp;(d=!0,n=n.substring(2)),o=o?p:h,f=new ci(o),f=new fi(f,r,o).parse(n),f.constant?f.$$watchDelegate=c:d?f.$$watchDelegate=f.literal?u:s:f.inputs&amp;&amp;(f.$$watchDelegate=a),v[m]=f),l(f,i);case"function":return l(n,i);default:return $}}}]}function Le(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return We(function(e){t.$evalAsync(e)},e)}]}function ze(){this.$get=["$browser","$exceptionHandler",function(t,e){return We(function(e){t.defer(e)},e)}]}function We(t,e){function i(t,e,n){function r(e){return function(n){i||(i=!0,e.call(t,n))}}var i=!1;return[r(e),r(n)]}function a(){this.$$state={status:0}}function s(t,e){return function(n){e.call(t,n)}}function u(r){!r.processScheduled&amp;&amp;r.pending&amp;&amp;(r.processScheduled=!0,t(function(){var t,i,o;o=r.pending,r.processScheduled=!1,r.pending=n;for(var a=0,s=o.length;a&lt;s;++a){i=o[a][0],t=o[a][r.status];try{E(t)?i.resolve(t(r.value)):1===r.status?i.resolve(r.value):i.reject(r.value)}catch(u){i.reject(u),e(u)}}}))}function c(){this.promise=new a,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}var f=r("$q",TypeError);l(a.prototype,{then:function(t,e,n){if(g(t)&amp;&amp;g(e)&amp;&amp;g(n))return this;var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),0&lt;this.$$state.status&amp;&amp;u(this.$$state),r.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return p(e,!0,t)},function(e){return p(e,!1,t)},e)}}),l(c.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(f("qcycle",t)):this.$$resolve(t))},$$resolve:function(t){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(b(t)||E(t))&amp;&amp;(n=t&amp;&amp;t.then),E(n)?(this.promise.$$state.status=-1,n.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,u(this.promise.$$state))}catch(o){r[1](o),e(o)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,u(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;0&gt;=this.promise.$$state.status&amp;&amp;r&amp;&amp;r.length&amp;&amp;t(function(){for(var t,i,o=0,a=r.length;o&lt;a;o++){i=r[o][0],t=r[o][3];try{i.notify(E(t)?t(n):n)}catch(s){e(s)}}})}});var h=function(t,e){var n=new c;return e?n.resolve(t):n.reject(t),n.promise},p=function(t,e,n){var r=null;try{E(n)&amp;&amp;(r=n())}catch(i){return h(i,!1)}return r&amp;&amp;E(r.then)?r.then(function(){return h(t,e)},function(t){return h(t,!1)}):h(t,e)},$=function(t,e,n,r){var i=new c;return i.resolve(t),i.promise.then(e,n,r)},d=function m(t){if(!E(t))throw f("norslvr",t);if(!(this instanceof m))return new m(t);var e=new c;return t(function(t){e.resolve(t)},function(t){e.reject(t)}),e.promise};return d.defer=function(){return new c},d.reject=function(t){var e=new c;return e.reject(t),e.promise},d.when=$,d.resolve=$,d.all=function(t){var e=new c,n=0,r=nr(t)?[]:{};return o(t,function(t,i){n++,$(t).then(function(t){r.hasOwnProperty(i)||(r[i]=t,--n||e.resolve(r))},function(t){r.hasOwnProperty(i)||e.reject(t)})}),0===n&amp;&amp;e.resolve(r),e.promise},d}function Ge(){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 Ke(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++tr,this.$$ChildScope=null}return e.prototype=t,e}var e=10,n=r("$rootScope"),a=null,s=null;this.digestTtl=function(t){return arguments.length&amp;&amp;(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,u,c,l){function f(t){t.currentScope.$$destroyed=!0}function h(t){9===qn&amp;&amp;(t.$$childHead&amp;&amp;h(t.$$childHead),t.$$nextSibling&amp;&amp;h(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function p(){this.$id=++tr,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 d(t){if(S.$$phase)throw n("inprog",S.$$phase);S.$$phase=t}function m(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function v(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&amp;&amp;delete t.$$listenerCount[n];while(t=t.$parent)}function y(){}function w(){for(;A.length;)try{A.shift()()}catch(t){u(t)}s=null}function x(){null===s&amp;&amp;(s=l.defer(function(){S.$apply(w)}))}p.prototype={constructor:p,$new:function(e,n){var r;return n=n||this,e?(r=new p,r.$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)&amp;&amp;r.$on("$destroy",f),r},$watch:function(t,e,n,r){var i=c(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,s=o.$$watchers,u={fn:e,last:y,get:i,exp:r||t,eq:!!n};return a=null,E(e)||(u.fn=$),s||(s=o.$$watchers=[]),s.unshift(u),m(this,1),function(){0&lt;=P(s,u)&amp;&amp;m(o,-1),a=null}},$watchGroup:function(t,e){function n(){u=!1,c?(c=!1,e(i,i,s)):e(i,r,s)}var r=Array(t.length),i=Array(t.length),a=[],s=this,u=!1,c=!0;if(!t.length){var l=!0;return s.$evalAsync(function(){l&amp;&amp;e(i,i,s)}),function(){l=!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,u||(u=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function n(t){r=t;var e,n,a,s;if(!g(r)){if(b(r))if(i(r))for(o!==h&amp;&amp;(o=h,d=o.length=0,l++),t=r.length,d!==t&amp;&amp;(l++,o.length=d=t),e=0;e&lt;t;e++)s=o[e],a=r[e],n=s!==s&amp;&amp;a!==a,n||s===a||(l++,o[e]=a);else{o!==p&amp;&amp;(o=p={},d=0,l++),t=0;for(e in r)zn.call(r,e)&amp;&amp;(t++,a=r[e],s=o[e],e in o?(n=s!==s&amp;&amp;a!==a,n||s===a||(l++,o[e]=a)):(d++,o[e]=a,l++));if(d&gt;t)for(e in l++,o)zn.call(r,e)||(d--,delete o[e])}else o!==r&amp;&amp;(o=r,l++);return l}}n.$stateful=!0;var r,o,a,s=this,u=1&lt;e.length,l=0,f=c(t,n),h=[],p={},$=!0,d=0;return this.$watch(f,function(){if($?($=!1,e(r,r,s)):e(r,a,s),u)if(b(r))if(i(r)){a=Array(r.length);for(var t=0;t&lt;r.length;t++)a[t]=r[t]}else for(t in a={},r)zn.call(r,t)&amp;&amp;(a[t]=r[t]);else a=r})},$digest:function(){var t,r,i,o,c,f,h,p,$,m=e,v=[];d("$digest"),l.$$checkUrlChange(),this===S&amp;&amp;null!==s&amp;&amp;(l.defer.cancel(s),w()),a=null;do{for(f=!1,h=this;C.length;){try{$=C.shift(),$.scope.$eval($.expression,$.locals)}catch(g){u(g)}a=null}t:do{if(o=h.$$watchers)for(c=o.length;c--;)try{if(t=o[c])if((r=t.get(h))===(i=t.last)||(t.eq?R(r,i):"number"==typeof r&amp;&amp;"number"==typeof i&amp;&amp;isNaN(r)&amp;&amp;isNaN(i))){if(t===a){f=!1;break t}}else f=!0,a=t,t.last=t.eq?D(r,null):r,t.fn(r,i===y?r:i,h),5&gt;m&amp;&amp;(p=4-m,v[p]||(v[p]=[]),v[p].push({msg:E(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:r,oldVal:i}))}catch(b){u(b)}if(!(o=h.$$watchersCount&amp;&amp;h.$$childHead||h!==this&amp;&amp;h.$$nextSibling))for(;h!==this&amp;&amp;!(o=h.$$nextSibling);)h=h.$parent}while(h=o);if((f||C.length)&amp;&amp;!m--)throw S.$$phase=null,
n("infdig",e,v)}while(f||C.length);for(S.$$phase=null;k.length;)try{k.shift()()}catch(x){u(x)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===S&amp;&amp;l.$$applicationDestroyed(),m(this,-this.$$watchersCount);for(var e in this.$$listenerCount)v(this,this.$$listenerCount[e],e);t&amp;&amp;t.$$childHead==this&amp;&amp;(t.$$childHead=this.$$nextSibling),t&amp;&amp;t.$$childTail==this&amp;&amp;(t.$$childTail=this.$$prevSibling),this.$$prevSibling&amp;&amp;(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&amp;&amp;(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=$,this.$on=this.$watch=this.$watchGroup=function(){return $},this.$$listeners={},this.$$nextSibling=null,h(this)}},$eval:function(t,e){return c(t)(this,e)},$evalAsync:function(t,e){S.$$phase||C.length||l.defer(function(){C.length&amp;&amp;S.$digest()}),C.push({scope:this,expression:t,locals:e})},$$postDigest:function(t){k.push(t)},$apply:function(t){try{d("$apply");try{return this.$eval(t)}finally{S.$$phase=null}}catch(e){u(e)}finally{try{S.$digest()}catch(n){throw u(n),n}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&amp;&amp;A.push(e),x()},$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&amp;&amp;(n[r]=null,v(i,1,t))}},$emit:function(t,e){var n,r,i,o=[],a=this,s=!1,c={name:t,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=F([c],arguments,1);do{for(n=a.$$listeners[t]||o,c.currentScope=a,r=0,i=n.length;r&lt;i;r++)if(n[r])try{n[r].apply(null,l)}catch(f){u(f)}else n.splice(r,1),r--,i--;if(s)return c.currentScope=null,c;a=a.$parent}while(a);return c.currentScope=null,c},$broadcast:function(t,e){var n=this,r=this,i={name:t,targetScope:this,preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[t])return i;for(var o,a,s=F([i],arguments,1);n=r;){for(i.currentScope=n,r=n.$$listeners[t]||[],o=0,a=r.length;o&lt;a;o++)if(r[o])try{r[o].apply(null,s)}catch(c){u(c)}else r.splice(o,1),o--,a--;if(!(r=n.$$listenerCount[t]&amp;&amp;n.$$childHead||n!==this&amp;&amp;n.$$nextSibling))for(;n!==this&amp;&amp;!(r=n.$$nextSibling);)n=n.$parent}return i.currentScope=null,i}};var S=new p,C=S.$$asyncQueue=[],k=S.$$postDigestQueue=[],A=S.$$applyAsyncQueue=[];return S}]}function Je(){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=on(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Ye(t){if("self"===t)return t;if(x(t)){if(-1&lt;t.indexOf("***"))throw pi("iwcard",t);return t=or(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&amp;;]*"),new RegExp("^"+t+"$")}if(k(t))return new RegExp("^"+t.source+"$");throw pi("imatcher")}function Ze(t){var e=[];return y(t)&amp;&amp;o(t,function(t){e.push(Ye(t))}),e}function Xe(){this.SCE_CONTEXTS=$i;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&amp;&amp;(t=Ze(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&amp;&amp;(e=Ze(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?an(e):!!t.exec(e.href)}function i(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&amp;&amp;(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}var o=function(t){throw pi("unsafe")};n.has("$sanitize")&amp;&amp;(o=n.get("$sanitize"));var a=i(),s={};return s[$i.HTML]=i(a),s[$i.CSS]=i(a),s[$i.URL]=i(a),s[$i.JS]=i(a),s[$i.RESOURCE_URL]=i(s[$i.URL]),{trustAs:function(t,e){var n=s.hasOwnProperty(t)?s[t]:null;if(!n)throw pi("icontext",t,e);if(null===e||g(e)||""===e)return e;if("string"!=typeof e)throw pi("itype",t);return new n(e)},getTrusted:function(n,i){if(null===i||g(i)||""===i)return i;var a=s.hasOwnProperty(n)?s[n]:null;if(a&amp;&amp;i instanceof a)return i.$$unwrapTrustedValue();if(n===$i.RESOURCE_URL){var u,c,a=on(i.toString()),l=!1;for(u=0,c=t.length;u&lt;c;u++)if(r(t[u],a)){l=!0;break}if(l)for(u=0,c=e.length;u&lt;c;u++)if(r(e[u],a)){l=!1;break}if(l)return i;throw pi("insecurl",i.toString())}if(n===$i.HTML)return o(i);throw pi("unsafe")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function Qe(){var t=!0;this.enabled=function(e){return arguments.length&amp;&amp;(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&amp;&amp;8&gt;qn)throw pi("iequirks");var r=I($i);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=d),r.parseAs=function(t,n){var i=e(n);return i.literal&amp;&amp;i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o($i,function(t,e){var n=Ln(e);r[ht("parse_as_"+n)]=function(e){return i(t,e)},r[ht("get_trusted_"+n)]=function(e){return a(t,e)},r[ht("trust_as_"+n)]=function(e){return s(t,e)}}),r}]}function tn(){this.$get=["$window","$document",function(t,e){var n,r={},i=h((/android (\d+)/.exec(Ln((t.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},s=/^(Moz|webkit|ms)(?=[A-Z])/,u=a.body&amp;&amp;a.body.style,c=!1,l=!1;if(u){for(var f in u)if(c=s.exec(f)){n=c[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in u&amp;&amp;"webkit"),c=!!("transition"in u||n+"Transition"in u),l=!!("animation"in u||n+"Animation"in u),!i||c&amp;&amp;l||(c=x(u.webkitTransition),l=x(u.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||4&gt;i||o),hasEvent:function(t){if("input"===t&amp;&amp;11&gt;=qn)return!1;if(g(r[t])){var e=a.createElement("div");r[t]="on"+t in e}return r[t]},csp:ar(),vendorPrefix:n,transitions:c,animations:l,android:i}}]}function en(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,r){function i(o,a){i.totalPendingRequests++,x(o)&amp;&amp;t.get(o)||(o=r.getTrustedResourceUrl(o));var s=e.defaults&amp;&amp;e.defaults.transformResponse;return nr(s)?s=s.filter(function(t){return t!==ie}):s===ie&amp;&amp;(s=null),e.get(o,{cache:t,transformResponse:s})["finally"](function(){i.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},function(t){if(!a)throw Ur("tpload",o,t.status,t.statusText);return n.reject(t)})}return i.totalPendingRequests=0,i}]}function nn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){return{findBindings:function(t,e,n){t=t.getElementsByClassName("ng-binding");var r=[];return o(t,function(t){var i=Qn.element(t).data("$binding");i&amp;&amp;o(i,function(i){n?new RegExp("(^|\\s)"+or(e)+"(\\s|\\||$)").test(i)&amp;&amp;r.push(t):-1!=i.indexOf(e)&amp;&amp;r.push(t)})}),r},findModels:function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i&lt;r.length;++i){var o=t.querySelectorAll("["+r[i]+"model"+(n?"=":"*=")+'"'+e+'"]');if(o.length)return o}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&amp;&amp;(n.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}}}]}function rn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,s,u){E(o)||(u=s,s=o,o=$);var c,l=Gn.call(arguments,3),f=y(u)&amp;&amp;!u,h=(f?r:n).defer(),p=h.promise;return c=e.defer(function(){try{h.resolve(o.apply(null,l))}catch(e){h.reject(e),i(e)}finally{delete a[p.$$timeoutId]}f||t.$apply()},s),p.$$timeoutId=c,a[c]=h,p}var a={};return o.cancel=function(t){return!!(t&amp;&amp;t.$$timeoutId in a)&amp;&amp;(a[t.$$timeoutId].reject("canceled"),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function on(t){return qn&amp;&amp;(di.setAttribute("href",t),t=di.href),di.setAttribute("href",t),{href:di.href,protocol:di.protocol?di.protocol.replace(/:$/,""):"",host:di.host,search:di.search?di.search.replace(/^\?/,""):"",hash:di.hash?di.hash.replace(/^#/,""):"",hostname:di.hostname,port:di.port,pathname:"/"===di.pathname.charAt(0)?di.pathname:"/"+di.pathname}}function an(t){return t=x(t)?on(t):t,t.protocol===mi.protocol&amp;&amp;t.host===mi.host}function sn(){this.$get=m(t)}function un(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,o,a,s,u;if(t=n.cookie||"",t!==i)for(i=t,t=i.split("; "),r={},a=0;a&lt;t.length;a++)o=t[a],s=o.indexOf("="),0&lt;s&amp;&amp;(u=e(o.substring(0,s)),g(r[u])&amp;&amp;(r[u]=e(o.substring(s+1))));return r}}function cn(){this.$get=un}function ln(t){function e(n,r){if(b(n)){var i={};return o(n,function(t,n){i[n]=e(n,t)}),i}return t.factory(n+"Filter",r)}this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],e("currency",dn),e("date",Cn),e("filter",fn),e("json",En),e("limitTo",kn),e("lowercase",wi),e("number",mn),e("orderBy",An),e("uppercase",xi)}function fn(){return function(t,e,n){if(!i(t)){if(null==t)return t;throw r("filter")("notarray",t)}var o;switch($n(e)){case"function":break;case"boolean":case"null":case"number":case"string":o=!0;case"object":e=hn(e,n,o);break;default:return t}return Array.prototype.filter.call(t,e)}}function hn(t,e,n){var r=b(t)&amp;&amp;"$"in t;return!0===e?e=R:E(e)||(e=function(t,e){return!g(t)&amp;&amp;(null===t||null===e?t===e:!(b(e)||b(t)&amp;&amp;!v(t))&amp;&amp;(t=Ln(""+t),e=Ln(""+e),-1!==t.indexOf(e)))}),function(i){return r&amp;&amp;!b(i)?pn(i,t.$,e,!1):pn(i,t,e,n)}}function pn(t,e,n,r,i){var o=$n(t),a=$n(e);if("string"===a&amp;&amp;"!"===e.charAt(0))return!pn(t,e.substring(1),n,r);if(nr(t))return t.some(function(t){return pn(t,e,n,r)});switch(o){case"object":var s;if(r){for(s in t)if("$"!==s.charAt(0)&amp;&amp;pn(t[s],e,n,!0))return!0;return!i&amp;&amp;pn(t,e,n,!1)}if("object"===a){for(s in e)if(i=e[s],!E(i)&amp;&amp;!g(i)&amp;&amp;(o="$"===s,!pn(o?t:t[s],i,n,o,o)))return!1;return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function $n(t){return null===t?"null":typeof t}function dn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return g(n)&amp;&amp;(n=e.CURRENCY_SYM),g(r)&amp;&amp;(r=e.PATTERNS[1].maxFrac),null==t?t:vn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function mn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:vn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function vn(t,e,n,r,i){if(b(t))return"";var o=0&gt;t;t=Math.abs(t);var a=1/0===t;if(!a&amp;&amp;!isFinite(t))return"";var s=t+"",u="",c=!1,l=[];if(a&amp;&amp;(u="âˆž"),!a&amp;&amp;-1!==s.indexOf("e")){var f=s.match(/([\d\.]+)e(-?)(\d+)/);f&amp;&amp;"-"==f[2]&amp;&amp;f[3]&gt;i+1?t=0:(u=s,c=!0)}if(a||c)0&lt;i&amp;&amp;1&gt;t&amp;&amp;(u=t.toFixed(i),t=parseFloat(u),u=u.replace(vi,r));else{a=(s.split(vi)[1]||"").length,g(i)&amp;&amp;(i=Math.min(Math.max(e.minFrac,a),e.maxFrac)),t=+(Math.round(+(t.toString()+"e"+i)).toString()+"e"+-i);var a=(""+t).split(vi),s=a[0],a=a[1]||"",f=0,h=e.lgSize,p=e.gSize;if(s.length&gt;=h+p)for(f=s.length-h,c=0;c&lt;f;c++)0===(f-c)%p&amp;&amp;0!==c&amp;&amp;(u+=n),u+=s.charAt(c);for(c=f;c&lt;s.length;c++)0===(s.length-c)%h&amp;&amp;0!==c&amp;&amp;(u+=n),u+=s.charAt(c);for(;a.length&lt;i;)a+="0";i&amp;&amp;"0"!==i&amp;&amp;(u+=r+a.substr(0,i))}return 0===t&amp;&amp;(o=!1),l.push(o?e.negPre:e.posPre,u,o?e.negSuf:e.posSuf),l.join("")}function gn(t,e,n){var r="";for(0&gt;t&amp;&amp;(r="-",t=-t),t=""+t;t.length&lt;e;)t="0"+t;return n&amp;&amp;(t=t.substr(t.length-e)),r+t}function yn(t,e,n,r){return n=n||0,function(i){return i=i["get"+t](),(0&lt;n||i&gt;-n)&amp;&amp;(i+=n),0===i&amp;&amp;-12==n&amp;&amp;(i=12),gn(i,e,r)}}function bn(t,e){return function(n,r){var i=n["get"+t](),o=Wn(e?"SHORT"+t:t);return r[o][i]}}function wn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(4&gt;=e?5:12)-e)}function xn(t){return function(e){var n=wn(e.getFullYear());return e=+new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))-+n,e=1+Math.round(e/6048e5),gn(e,t)}}function Sn(t,e){return 0&gt;=t.getFullYear()?e.ERAS[0]:e.ERAS[1]}function Cn(t){function e(t){var e;if(e=t.match(n)){t=new Date(0);var r=0,i=0,o=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&amp;&amp;(r=h(e[9]+e[10]),i=h(e[9]+e[11])),o.call(t,h(e[1]),h(e[2])-1,h(e[3])),r=h(e[4]||0)-r,i=h(e[5]||0)-i,o=h(e[6]||0),e=Math.round(1e3*parseFloat("0."+(e[7]||0))),a.call(t,r,i,o,e)}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,u="",c=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,x(n)&amp;&amp;(n=bi.test(n)?h(n):e(n)),S(n)&amp;&amp;(n=new Date(n)),!C(n)||!isFinite(n.getTime()))return n;for(;r;)(s=yi.exec(r))?(c=F(c,s,1),r=c.pop()):(c.push(r),r=null);var l=n.getTimezoneOffset();return i&amp;&amp;(l=H(i,n.getTimezoneOffset()),n=L(n,i,!0)),o(c,function(e){a=gi[e],u+=a?a(n,t.DATETIME_FORMATS,l):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function En(){return function(t,e){return g(e)&amp;&amp;(e=2),_(t,e)}}function kn(){return function(t,e,n){return e=1/0===Math.abs(Number(e))?Number(e):h(e),isNaN(e)?t:(S(t)&amp;&amp;(t=t.toString()),nr(t)||x(t)?(n=!n||isNaN(n)?0:h(n),n=0&gt;n?Math.max(0,t.length+n):n,0&lt;=e?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function An(t){function e(e,n){return n=n?-1:1,e.map(function(e){var r=1,i=d;if(E(e))i=e;else if(x(e)&amp;&amp;("+"!=e.charAt(0)&amp;&amp;"-"!=e.charAt(0)||(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&amp;&amp;(i=t(e),i.constant)))var o=i(),i=function(t){return t[o]};return{get:i,descending:r*n}})}function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}return function(t,r,o){if(!i(t))return t;nr(r)||(r=[r]),0===r.length&amp;&amp;(r=["+"]);var a=e(r,o);return a.push({get:function(){return{}},descending:o?-1:1}),t=Array.prototype.map.call(t,function(t,e){return{value:t,predicateValues:a.map(function(r){var i=r.get(t);return r=typeof i,null===i?(r="string",i="null"):"string"===r?i=i.toLowerCase():"object"===r&amp;&amp;("function"==typeof i.valueOf&amp;&amp;(i=i.valueOf(),n(i))||v(i)&amp;&amp;(i=i.toString(),n(i))||(i=e)),{value:i,type:r}})}}),t.sort(function(t,e){for(var n=0,r=0,i=a.length;r&lt;i;++r){var n=t.predicateValues[r],o=e.predicateValues[r],s=0;if(n.type===o.type?n.value!==o.value&amp;&amp;(s=n.value&lt;o.value?-1:1):s=n.type&lt;o.type?-1:1,n=s*a[r].descending)break}return n}),t=t.map(function(t){return t.value})}}function On(t){return E(t)&amp;&amp;(t={link:t}),t.restrict=t.restrict||"AC",m(t)}function Mn(t,e,r,i,a){var s=this,u=[];s.$error={},s.$$success={},s.$pending=n,s.$name=a(e.name||e.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,s.$$parentForm=Ei,s.$rollbackViewValue=function(){o(u,function(t){t.$rollbackViewValue()})},s.$commitViewValue=function(){o(u,function(t){t.$commitViewValue()})},s.$addControl=function(t){at(t.$name,"input"),u.push(t),t.$name&amp;&amp;(s[t.$name]=t),t.$$parentForm=s},s.$$renameControl=function(t,e){var n=t.$name;s[n]===t&amp;&amp;delete s[n],s[e]=t,t.$name=e},s.$removeControl=function(t){t.$name&amp;&amp;s[t.$name]===t&amp;&amp;delete s[t.$name],o(s.$pending,function(e,n){s.$setValidity(n,null,t)}),o(s.$error,function(e,n){s.$setValidity(n,null,t)}),o(s.$$success,function(e,n){s.$setValidity(n,null,t)}),P(u,t),t.$$parentForm=Ei},Rn({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&amp;&amp;r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&amp;&amp;(P(r,n),0===r.length&amp;&amp;delete t[e])},$animate:i}),s.$setDirty=function(){i.removeClass(t,ao),i.addClass(t,so),s.$dirty=!0,s.$pristine=!1,s.$$parentForm.$setDirty()},s.$setPristine=function(){i.setClass(t,ao,so+" ng-submitted"),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,o(u,function(t){t.$setPristine()})},s.$setUntouched=function(){o(u,function(t){t.$setUntouched()})},s.$setSubmitted=function(){i.addClass(t,"ng-submitted"),s.$submitted=!0,s.$$parentForm.$setSubmitted()}}function Tn(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function Vn(t,e,n,r,i,o){var a=Ln(e[0].type);if(!i.android){var s=!1;e.on("compositionstart",function(t){s=!0}),e.on("compositionend",function(){s=!1,u()})}var u=function(t){if(c&amp;&amp;(o.defer.cancel(c),c=null),!s){var i=e.val();t=t&amp;&amp;t.type,"password"===a||n.ngTrim&amp;&amp;"false"===n.ngTrim||(i=ir(i)),(r.$viewValue!==i||""===i&amp;&amp;r.$$hasNativeValidators)&amp;&amp;r.$setViewValue(i,t)}};if(i.hasEvent("input"))e.on("input",u);else{var c,l=function(t,e,n){c||(c=o.defer(function(){c=null,e&amp;&amp;e.value===n||u(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15&lt;e&amp;&amp;19&gt;e||37&lt;=e&amp;&amp;40&gt;=e||l(t,this,this.value)}),i.hasEvent("paste")&amp;&amp;e.on("paste cut",l)}e.on("change",u),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&amp;&amp;e.val(t)}}function Nn(t,e){return function(n,r){var i,a;if(C(n))return n;if(x(n)){if('"'==n.charAt(0)&amp;&amp;'"'==n.charAt(n.length-1)&amp;&amp;(n=n.substring(1,n.length-1)),Mi.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&lt;e.length&amp;&amp;(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 jn(t,e,r,i){return function(o,a,s,u,c,l,f){function h(t){return t&amp;&amp;!(t.getTime&amp;&amp;t.getTime()!==t.getTime())}function p(t){return y(t)&amp;&amp;!C(t)?r(t)||n:t}Pn(o,a,s,u),Vn(o,a,s,u,c,l);var $,d=u&amp;&amp;u.$options&amp;&amp;u.$options.timezone;if(u.$$parserName=t,u.$parsers.push(function(t){return u.$isEmpty(t)?null:e.test(t)?(t=r(t,$),d&amp;&amp;(t=L(t,d)),t):n}),u.$formatters.push(function(t){if(t&amp;&amp;!C(t))throw co("datefmt",t);return h(t)?(($=t)&amp;&amp;d&amp;&amp;($=L($,d,!0)),f("date")(t,i,d)):($=null,"")}),y(s.min)||s.ngMin){var m;u.$validators.min=function(t){return!h(t)||g(m)||r(t)&gt;=m},s.$observe("min",function(t){m=p(t),u.$validate()})}if(y(s.max)||s.ngMax){var v;u.$validators.max=function(t){return!h(t)||g(v)||r(t)&lt;=v},s.$observe("max",function(t){v=p(t),u.$validate()})}}}function Pn(t,e,r,i){(i.$$hasNativeValidators=b(e[0].validity))&amp;&amp;i.$parsers.push(function(t){var r=e.prop("validity")||{};return r.badInput&amp;&amp;!r.typeMismatch?n:t})}function Dn(t,e,n,r,i){if(y(r)){if(t=t(r),!t.constant)throw co("constexpr",n,r);return t(e)}return i}function In(t,e){return t="ngClass"+t,["$animate",function(n){function r(t,e){var n=[],r=0;t:for(;r&lt;t.length;r++){for(var i=t[r],o=0;o&lt;e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function i(t){var e=[];return nr(t)?(o(t,function(t){e=e.concat(i(t))}),e):x(t)?t.split(" "):b(t)?(o(t,function(t,n){t&amp;&amp;(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(a,s,u){function c(t,e){var n=s.data("$classCounts")||ct(),r=[];return o(t,function(t){(0&lt;e||n[t])&amp;&amp;(n[t]=(n[t]||0)+e,n[t]===+(0&lt;e)&amp;&amp;r.push(t))}),s.data("$classCounts",n),r.join(" ")}function l(t){if(!0===e||a.$index%2===e){var o=i(t||[]);if(f){if(!R(t,f)){var l=i(f),h=r(o,l),o=r(l,o),h=c(h,1),o=c(o,-1);h&amp;&amp;h.length&amp;&amp;n.addClass(s,h),o&amp;&amp;o.length&amp;&amp;n.removeClass(s,o)}}else{var h=c(o,1);u.$addClass(h)}}f=I(t)}var f;a.$watch(u[t],l,!0),u.$observe("class",function(e){l(a.$eval(u[t]))}),"ngClass"!==t&amp;&amp;a.$watch("$index",function(n,r){var o=1&amp;n;if(o!==(1&amp;r)){var s=i(a.$eval(u[t]));o===e?(o=c(s,1),u.$addClass(o)):(o=c(s,-1),u.$removeClass(o))}})}}}]}function Rn(t){function e(t,e){e&amp;&amp;!a[t]?(c.addClass(o,t),a[t]=!0):!e&amp;&amp;a[t]&amp;&amp;(c.removeClass(o,t),a[t]=!1)}function r(t,n){t=t?"-"+nt(t,"-"):"",e(io+t,!0===n),e(oo+t,!1===n)}var i=t.ctrl,o=t.$element,a={},s=t.set,u=t.unset,c=t.$animate;a[oo]=!(a[io]=o.hasClass(io)),i.$setValidity=function(t,o,a){g(o)?(i.$pending||(i.$pending={}),s(i.$pending,t,a)):(i.$pending&amp;&amp;u(i.$pending,t,a),Fn(i.$pending)&amp;&amp;(i.$pending=n)),M(o)?o?(u(i.$error,t,a),s(i.$$success,t,a)):(s(i.$error,t,a),u(i.$$success,t,a)):(u(i.$error,t,a),u(i.$$success,t,a)),i.$pending?(e(uo,!0),i.$valid=i.$invalid=n,r("",null)):(e(uo,!1),i.$valid=Fn(i.$error),i.$invalid=!i.$valid,r("",i.$valid)),o=i.$pending&amp;&amp;i.$pending[t]?n:!i.$error[t]&amp;&amp;(!!i.$$success[t]||null),r(t,o),i.$$parentForm.$setValidity(t,o,i)}}function Fn(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var qn,Un,_n,Bn,Hn=/^\/(.+)\/([a-z]*)$/,Ln=function(t){return x(t)?t.toLowerCase():t},zn=Object.prototype.hasOwnProperty,Wn=function(t){return x(t)?t.toUpperCase():t},Gn=[].slice,Kn=[].splice,Jn=[].push,Yn=Object.prototype.toString,Zn=Object.getPrototypeOf,Xn=r("ng"),Qn=t.angular||(t.angular={}),tr=0;qn=e.documentMode,$.$inject=[],d.$inject=[];var er,nr=Array.isArray,rr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,ir=function(t){return x(t)?t.trim():t},or=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#&lt;!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},ar=function(){if(!y(ar.rules)){var t=e.querySelector("[ng-csp]")||e.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");ar.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else{t=ar;try{new Function(""),n=!1}catch(r){n=!0}t.rules={noUnsafeEval:n,noInlineStyle:!1}}}return ar.rules},sr=function(){if(y(sr.name_))return sr.name_;var t,n,r,i,o=ur.length;for(n=0;n&lt;o;++n)if(r=ur[n],t=e.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return sr.name_=i},ur=["ng-","data-ng-","ng:","x-ng-"],cr=/[A-Z]/g,lr=!1,fr=3,hr={full:"1.4.8",major:1,minor:4,dot:8,codeName:"ice-manipulation"};dt.expando="ng339";var pr=dt.cache={},$r=1;dt._data=function(t){return this.cache[t[this.expando]]||{}};var dr=/([\:\-\_]+(.))/g,mr=/^moz([A-Z])/,vr={mouseleave:"mouseout",mouseenter:"mouseover"},gr=r("jqLite"),yr=/^&lt;([\w-]+)\s*\/?&gt;(?:&lt;\/\1&gt;|)$/,br=/&lt;|&amp;#?\w+;/,wr=/&lt;([\w:-]+)/,xr=/&lt;(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^&gt;]*)\/&gt;/gi,Sr={option:[1,'&lt;select multiple="multiple"&gt;',"&lt;/select&gt;"],thead:[1,"&lt;table&gt;","&lt;/table&gt;"],col:[2,"&lt;table&gt;&lt;colgroup&gt;","&lt;/colgroup&gt;&lt;/table&gt;"],tr:[2,"&lt;table&gt;&lt;tbody&gt;","&lt;/tbody&gt;&lt;/table&gt;"],td:[3,"&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;","&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;"],_default:[0,"",""]};Sr.optgroup=Sr.option,Sr.tbody=Sr.tfoot=Sr.colgroup=Sr.caption=Sr.thead,Sr.th=Sr.td;var Cr=Node.prototype.contains||function(t){return!!(16&amp;this.compareDocumentPosition(t))},Er=dt.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),dt(t).on("load",r))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Un(0&lt;=t?this[t]:this[this.length+t])},length:0,push:Jn,sort:[].sort,splice:[].splice},kr={};o("multiple selected checked disabled readOnly required open".split(" "),function(t){kr[Ln(t)]=t});var Ar={};o("input select option textarea button form details".split(" "),function(t){Ar[t]=!0});var Or={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:wt,removeData:yt,hasData:function(t){for(var e in pr[t.ng339])return!0;return!1}},function(t,e){dt[e]=t}),o({data:wt,inheritedData:At,scope:function(t){return Un.data(t,"$scope")||At(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Un.data(t,"$isolateScope")||Un.data(t,"$isolateScopeNoTemplate")},controller:kt,injector:function(t){return At(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:xt,css:function(t,e,n){return e=ht(e),y(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,r){var i=t.nodeType;if(i!==fr&amp;&amp;2!==i&amp;&amp;8!==i)if(i=Ln(e),kr[i]){if(!y(r))return t[e]||(t.attributes.getNamedItem(e)||$).specified?i:n;r?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if(y(r))t.setAttribute(e,r);else if(t.getAttribute)return t=t.getAttribute(e,2),null===t?n:t},prop:function(t,e,n){return y(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(g(e)){var n=t.nodeType;return 1===n||n===fr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(g(e)){if(t.multiple&amp;&amp;"select"===j(t)){var n=[];return o(t.options,function(t){t.selected&amp;&amp;n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return g(e)?t.innerHTML:(vt(t,!0),void(t.innerHTML=e))},empty:Ot},function(t,e){dt.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Ot&amp;&amp;g(2==t.length&amp;&amp;t!==xt&amp;&amp;t!==kt?e:n)){if(b(e)){for(r=0;r&lt;o;r++)if(t===wt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(r=t.$dv,o=g(r)?Math.min(o,1):o,i=0;i&lt;o;i++){var a=t(this[i],e,n);r=r?r+a:a}return r}for(r=0;r&lt;o;r++)t(this[r],e,n);return this}}),o({removeData:yt,on:function(t,e,r,i){if(y(i))throw gr("onargs");if(pt(t)){i=bt(t,!0);var o=i.events,a=i.handle;a||(a=i.handle=Nt(t,o)),i=0&lt;=e.indexOf(" ")?e.split(" "):[e];for(var s=i.length,u=function(e,n,i){var s=o[e];s||(s=o[e]=[],s.specialHandlerWrapper=n,"$destroy"===e||i||t.addEventListener(e,a,!1)),s.push(r)};s--;)e=i[s],vr[e]?(u(vr[e],Pt),u(e,n,!0)):u(e)}},off:gt,one:function(t,e,n){t=Un(t),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;vt(t),o(new dt(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){1===t.nodeType&amp;&amp;e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(1===n||11===n){e=new dt(e);for(var n=0,r=e.length;n&lt;r;n++)t.appendChild(e[n])}},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;o(new dt(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=Un(e).eq(0).clone()[0];var n=t.parentNode;n&amp;&amp;n.replaceChild(e,t),e.appendChild(t)},remove:Mt,detach:function(t){Mt(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new dt(e);for(var i=0,o=e.length;i&lt;o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Ct,removeClass:St,toggleClass:function(t,e,n){e&amp;&amp;o(e.split(" "),function(e){var r=n;g(r)&amp;&amp;(r=!xt(t,e)),(r?Ct:St)(t,e)})},parent:function(t){return(t=t.parentNode)&amp;&amp;11!==t.nodeType?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:mt,triggerHandler:function(t,e,n){var r,i,a=e.type||e,s=bt(t);(s=(s=s&amp;&amp;s.events)&amp;&amp;s[a])&amp;&amp;(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:$,type:a,target:t},e.type&amp;&amp;(r=l(r,e)),e=I(s),i=n?[r].concat(n):[r],o(e,function(e){r.isImmediatePropagationStopped()||e.apply(t,i)}))}},function(t,e){dt.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o&lt;a;o++)g(i)?(i=t(this[o],e,n,r),y(i)&amp;&amp;(i=Un(i))):Et(i,t(this[o],e,n,r));return y(i)?i:this},dt.prototype.bind=dt.prototype.on,dt.prototype.unbind=dt.prototype.off}),Rt.prototype={put:function(t,e){this[It(t,this.nextUid)]=e},get:function(t){return this[It(t,this.nextUid)]},remove:function(t){var e=this[t=It(t,this.nextUid)];return delete this[t],e}};var Mr=[function(){this.$get=[function(){return Rt}]}],Tr=/^[^\(]*\(\s*([^\)]*)\)/m,Vr=/,/,Nr=/^\s*(_?)(\S+?)\1\s*$/,jr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Pr=r("$injector");qt.$$annotate=function(t,e,n){var r;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw x(n)&amp;&amp;n||(n=t.name||Ft(t)),Pr("strictdi",n);e=t.toString().replace(jr,""),e=e.match(Tr),o(e[1].split(Vr),function(t){t.replace(Nr,function(t,e,n){r.push(n)})})}t.$inject=r}}else nr(t)?(e=t.length-1,ot(t[e],"fn"),r=t.slice(0,e)):ot(t,"fn",!0);return r};var Dr=r("$animate"),Ir=function(){this.$get=["$q","$$rAF",function(t,e){function n(){}return n.all=$,n.chain=$,n.prototype={end:$,cancel:$,resume:$,pause:$,complete:$,then:function(n,r){return t(function(t){e(function(){t()})}).then(n,r)}},n}]},Rr=function(){var t=new Rt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(t,e,n){var r=!1;return e&amp;&amp;(e=x(e)?e.split(" "):nr(e)?e:[],o(e,function(e){e&amp;&amp;(r=!0,t[e]=n)})),r}function a(){o(e,function(e){var n=t.get(e);if(n){var r=Bt(e.attr("class")),i="",a="";o(n,function(t,e){t!==!!r[e]&amp;&amp;(t?i+=(i.length?" ":"")+e:a+=(a.length?" ":"")+e)}),o(e,function(t){i&amp;&amp;Ct(t,i),a&amp;&amp;St(t,a)}),t.remove(e)}}),e.length=0}return{enabled:$,on:$,off:$,pin:$,push:function(o,s,u,c){return c&amp;&amp;c(),u=u||{},u.from&amp;&amp;o.css(u.from),u.to&amp;&amp;o.css(u.to),(u.addClass||u.removeClass)&amp;&amp;(s=u.addClass,c=u.removeClass,u=t.get(o)||{},s=i(u,s,!0),c=i(u,c,!1),(s||c)&amp;&amp;(t.put(o,u),e.push(o),1===e.length&amp;&amp;r.$$postDigest(a))),new n}}}]},Fr=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&amp;&amp;"."!==n.charAt(0))throw Dr("notcsel",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&amp;&amp;(this.$$classNameFilter=t instanceof RegExp?t:null)&amp;&amp;/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw Dr("nongcls","ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r;t:{for(r=0;r&lt;n.length;r++){var i=n[r];if(1===i.nodeType){r=i;break t}}r=void 0}!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&amp;&amp;t.end()},enter:function(n,r,i,o){return r=r&amp;&amp;Un(r),i=i&amp;&amp;Un(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",Ht(o))},move:function(n,r,i,o){return r=r&amp;&amp;Un(r),i=i&amp;&amp;Un(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",Ht(o))},leave:function(e,n){return t.push(e,"leave",Ht(n),function(){e.remove()})},addClass:function(e,n,r){return r=Ht(r),r.addClass=_t(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=Ht(r),r.removeClass=_t(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=Ht(i),i.addClass=_t(i.addClass,n),i.removeClass=_t(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return o=Ht(o),o.from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,r):r,o.tempClasses=_t(o.tempClasses,i||"ng-inline-animate"),t.push(e,"animate",o)}}}]}],qr=function(){this.$get=["$$rAF","$q",function(t,e){var n=function(){};return n.prototype={done:function(t){this.defer&amp;&amp;this.defer[!0===t?"reject":"resolve"]()},end:function(){this.done()},cancel:function(){this.done(!0)},getPromise:function(){return this.defer||(this.defer=e.defer()),this.defer.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)}},function(e,r){function i(){return t(function(){r.addClass&amp;&amp;(e.addClass(r.addClass),r.addClass=null),r.removeClass&amp;&amp;(e.removeClass(r.removeClass),r.removeClass=null),r.to&amp;&amp;(e.css(r.to),r.to=null),o||a.done(),o=!0}),a}r.cleanupStyles&amp;&amp;(r.from=r.to=null),r.from&amp;&amp;(e.css(r.from),r.from=null);var o,a=new n;return{start:i,end:i}}}]},Ur=r("$compile");Kt.$inject=["$provide","$$sanitizeUriProvider"];var _r=/^((?:x|data)[\:\-_])/i,Br=r("$controller"),Hr=/^(\S+)(\s+as\s+(\w+))?$/,Lr=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&amp;&amp;e instanceof Un&amp;&amp;(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},zr="application/json",Wr={"Content-Type":zr+";charset=utf-8"},Gr=/^\[|^\{(?!\{)/,Kr={"[":/]$/,"{":/}$/},Jr=/^\)\]\}',?\n/,Yr=r("$http"),Zr=function(t){return function(){throw Yr("legacy",t)}},Xr=Qn.$interpolateMinErr=r("$interpolate");Xr.throwNoconcat=function(t){throw Xr("noconcat",t)},Xr.interr=function(t,e){return Xr("interr",t,e.toString())};var Qr=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,ti={http:80,https:443,ftp:21},ei=r("$location"),ni={$$html5:!1,$$replace:!1,absUrl:Se("$$absUrl"),url:function(t){if(g(t))return this.$$url;var e=Qr.exec(t);return(e[1]||""===t)&amp;&amp;this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&amp;&amp;this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Se("$$protocol"),host:Se("$$host"),port:Se("$$port"),path:Ce("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(x(t)||S(t))t=t.toString(),this.$$search=G(t);else{if(!b(t))throw ei("isrcharg");t=D(t,{}),o(t,function(e,n){null==e&amp;&amp;delete t[n]}),this.$$search=t}break;default:
g(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Ce("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};o([xe,we,be],function(t){t.prototype=Object.create(ni),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==be||!this.$$html5)throw ei("nostate");return this.$$state=g(e)?null:e,this}});var ri=r("$parse"),ii=Function.prototype.call,oi=Function.prototype.apply,ai=Function.prototype.bind,si=ct();o("+ - * / % === !== == != &lt; &gt; &lt;= &gt;= &amp;&amp; || ! = |".split(" "),function(t){si[t]=!0});var ui={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},ci=function(t){this.options=t};ci.prototype={constructor:ci,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index&lt;this.text.length;)if(t=this.text.charAt(this.index),'"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&amp;&amp;this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(t))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var e=t+this.peek(),n=e+this.peek(2),r=si[e],i=si[n];si[t]||r||i?(t=i?n:r?e:t,this.tokens.push({index:this.index,text:t,operator:!0}),this.index+=t.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){return t=t||1,this.index+t&lt;this.text.length&amp;&amp;this.text.charAt(this.index+t)},isNumber:function(t){return"0"&lt;=t&amp;&amp;"9"&gt;=t&amp;&amp;"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\x0B"===t||"Â&nbsp;"===t},isIdent:function(t){return"a"&lt;=t&amp;&amp;"z"&gt;=t||"A"&lt;=t&amp;&amp;"Z"&gt;=t||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){throw n=n||this.index,e=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n,ri("lexerr",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index&lt;this.text.length;){var n=Ln(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&amp;&amp;this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&amp;&amp;r&amp;&amp;this.isNumber(r)&amp;&amp;"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&amp;&amp;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(){for(var t=this.index;this.index&lt;this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&amp;&amp;!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index&lt;this.text.length;){var o=this.text.charAt(this.index),r=r+o;if(i)"u"===o?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,n+=String.fromCharCode(parseInt(i,16))):n+=ui[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 li=function(t,e){this.lexer=t,this.options=e};li.Program="Program",li.ExpressionStatement="ExpressionStatement",li.AssignmentExpression="AssignmentExpression",li.ConditionalExpression="ConditionalExpression",li.LogicalExpression="LogicalExpression",li.BinaryExpression="BinaryExpression",li.UnaryExpression="UnaryExpression",li.CallExpression="CallExpression",li.MemberExpression="MemberExpression",li.Identifier="Identifier",li.Literal="Literal",li.ArrayExpression="ArrayExpression",li.Property="Property",li.ObjectExpression="ObjectExpression",li.ThisExpression="ThisExpression",li.NGValueParameter="NGValueParameter",li.prototype={ast:function(t){return this.text=t,this.tokens=this.lexer.lex(t),t=this.program(),0!==this.tokens.length&amp;&amp;this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var t=[];;)if(0&lt;this.tokens.length&amp;&amp;!this.peek("}",")",";","]")&amp;&amp;t.push(this.expressionStatement()),!this.expect(";"))return{type:li.Program,body:t}},expressionStatement:function(){return{type:li.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&amp;&amp;(t={type:li.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&amp;&amp;(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:li.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:li.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&amp;&amp;");)t={type:li.LogicalExpression,operator:"&amp;&amp;",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:li.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("&lt;","&gt;","&lt;=","&gt;=");)e={type:li.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:li.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:li.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:li.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.constants.hasOwnProperty(this.peek().text)?t=D(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:li.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:li.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:li.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){t=[t];for(var e={type:li.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return e},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.expression());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:li.Identifier,name:t.text}},constant:function(){return{type:li.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:li.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:li.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:li.ObjectExpression,properties:e}},throwError:function(t,e){throw ri("syntax",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw ri("ueoe",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw ri("ueoe",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&gt;t){t=this.tokens[t];var o=t.text;if(o===e||o===n||o===r||o===i||!(e||n||r||i))return t}return!1},expect:function(t,e,n,r){return!!(t=this.peek(t,e,n,r))&amp;&amp;(this.tokens.shift(),t)},constants:{"true":{type:li.Literal,value:!0},"false":{type:li.Literal,value:!1},"null":{type:li.Literal,value:null},undefined:{type:li.Literal,value:n},"this":{type:li.ThisExpression}}},qe.prototype={compile:function(t,e){var r=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Pe(i,r.$filter);var a,s="";return this.stage="assign",(a=Re(i))&amp;&amp;(this.state.computing="assign",s=this.nextId(),this.recurse(a,s),this.return_(s),s="fn.assign="+this.generateFunction("assign","s,v,l")),a=De(i.body),r.stage="inputs",o(a,function(t,e){var n="fn"+e;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(t,i),r.return_(i),r.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i),s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",s=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",s)(this.$filter,Ae,Me,Te,Oe,Ve,Ne,je,t),this.state=this.stage=n,s.literal=Fe(i),s.constant=i.constant,s},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&amp;&amp;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,r,i,a,s){var u,c,l,f,h=this;if(i=i||$,!s&amp;&amp;y(t.watchId))e=e||this.nextId(),this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,r,i,a,!0));else switch(t.type){case li.Program:o(t.body,function(e,r){h.recurse(e.expression,n,n,function(t){c=t}),r!==t.body.length-1?h.current().body.push(c,";"):h.return_(c)});break;case li.Literal:f=this.escape(t.value),this.assign(e,f),i(f);break;case li.UnaryExpression:this.recurse(t.argument,n,n,function(t){c=t}),f=t.operator+"("+this.ifDefined(c,0)+")",this.assign(e,f),i(f);break;case li.BinaryExpression:this.recurse(t.left,n,n,function(t){u=t}),this.recurse(t.right,n,n,function(t){c=t}),f="+"===t.operator?this.plus(u,c):"-"===t.operator?this.ifDefined(u,0)+t.operator+this.ifDefined(c,0):"("+u+")"+t.operator+"("+c+")",this.assign(e,f),i(f);break;case li.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&amp;&amp;"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case li.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case li.Identifier:e=e||this.nextId(),r&amp;&amp;(r.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),r.computed=!1,r.name=t.name),Ae(t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),function(){h.if_("inputs"===h.stage||"s",function(){a&amp;&amp;1!==a&amp;&amp;h.if_(h.not(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))})},e&amp;&amp;h.lazyAssign(e,h.nonComputedMember("l",t.name))),(h.state.expensiveChecks||_e(t.name))&amp;&amp;h.addEnsureSafeObject(e),i(e);break;case li.MemberExpression:u=r&amp;&amp;(r.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,u,n,function(){h.if_(h.notNull(u),function(){t.computed?(c=h.nextId(),h.recurse(t.property,c),h.getStringValue(c),h.addEnsureSafeMemberName(c),a&amp;&amp;1!==a&amp;&amp;h.if_(h.not(h.computedMember(u,c)),h.lazyAssign(h.computedMember(u,c),"{}")),f=h.ensureSafeObject(h.computedMember(u,c)),h.assign(e,f),r&amp;&amp;(r.computed=!0,r.name=c)):(Ae(t.property.name),a&amp;&amp;1!==a&amp;&amp;h.if_(h.not(h.nonComputedMember(u,t.property.name)),h.lazyAssign(h.nonComputedMember(u,t.property.name),"{}")),f=h.nonComputedMember(u,t.property.name),(h.state.expensiveChecks||_e(t.property.name))&amp;&amp;(f=h.ensureSafeObject(f)),h.assign(e,f),r&amp;&amp;(r.computed=!1,r.name=t.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!a);break;case li.CallExpression:e=e||this.nextId(),t.filter?(c=h.filter(t.callee.name),l=[],o(t.arguments,function(t){var e=h.nextId();h.recurse(t,e),l.push(e)}),f=c+"("+l.join(",")+")",h.assign(e,f),i(e)):(c=h.nextId(),u={},l=[],h.recurse(t.callee,c,u,function(){h.if_(h.notNull(c),function(){h.addEnsureSafeFunction(c),o(t.arguments,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(h.ensureSafeObject(t))})}),u.name?(h.state.expensiveChecks||h.addEnsureSafeObject(u.context),f=h.member(u.context,u.name,u.computed)+"("+l.join(",")+")"):f=c+"("+l.join(",")+")",f=h.ensureSafeObject(f),h.assign(e,f)},function(){h.assign(e,"undefined")}),i(e)}));break;case li.AssignmentExpression:if(c=this.nextId(),u={},!Ie(t.left))throw ri("lval");this.recurse(t.left,n,u,function(){h.if_(h.notNull(u.context),function(){h.recurse(t.right,c),h.addEnsureSafeObject(h.member(u.context,u.name,u.computed)),h.addEnsureSafeAssignContext(u.context),f=h.member(u.context,u.name,u.computed)+t.operator+c,h.assign(e,f),i(e||f)})},1);break;case li.ArrayExpression:l=[],o(t.elements,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(t)})}),f="["+l.join(",")+"]",this.assign(e,f),i(f);break;case li.ObjectExpression:l=[],o(t.properties,function(t){h.recurse(t.value,h.nextId(),n,function(e){l.push(h.escape(t.key.type===li.Identifier?t.key.name:""+t.key.value)+":"+e)})}),f="{"+l.join(",")+"}",this.assign(e,f),i(f);break;case li.ThisExpression:this.assign(e,"s"),i("s");break;case li.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&amp;&amp;("+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&amp;&amp;(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+",text)")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},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(x(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(S(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw ri("esc")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},Ue.prototype={compile:function(t,e){var n=this,r=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,Pe(r,n.$filter);var i,a;(i=Re(r))&amp;&amp;(a=this.recurse(i)),i=De(r.body);var s;i&amp;&amp;(s=[],o(i,function(t,e){var r=n.recurse(t);t.input=r,s.push(r),t.watchId=e}));var u=[];return o(r.body,function(t){u.push(n.recurse(t.expression))}),i=0===r.body.length?function(){}:1===r.body.length?u[0]:function(t,e){var n;return o(u,function(r){n=r(t,e)}),n},a&amp;&amp;(i.assign=function(t,e,n){return a(t,n,e)}),s&amp;&amp;(i.inputs=s),i.literal=Fe(r),i.constant=r.constant,i},recurse:function(t,e,r){var i,a,s,u=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case li.Literal:return this.value(t.value,e);case li.UnaryExpression:return a=this.recurse(t.argument),this["unary"+t.operator](a,e);case li.BinaryExpression:return i=this.recurse(t.left),a=this.recurse(t.right),this["binary"+t.operator](i,a,e);case li.LogicalExpression:return i=this.recurse(t.left),a=this.recurse(t.right),this["binary"+t.operator](i,a,e);case li.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case li.Identifier:return Ae(t.name,u.expression),u.identifier(t.name,u.expensiveChecks||_e(t.name),e,r,u.expression);case li.MemberExpression:return i=this.recurse(t.object,!1,!!r),t.computed||(Ae(t.property.name,u.expression),a=t.property.name),t.computed&amp;&amp;(a=this.recurse(t.property)),t.computed?this.computedMember(i,a,e,r,u.expression):this.nonComputedMember(i,a,u.expensiveChecks,e,r,u.expression);case li.CallExpression:return s=[],o(t.arguments,function(t){s.push(u.recurse(t))}),t.filter&amp;&amp;(a=this.$filter(t.callee.name)),t.filter||(a=this.recurse(t.callee,!0)),t.filter?function(t,r,i,o){for(var u=[],c=0;c&lt;s.length;++c)u.push(s[c](t,r,i,o));return t=a.apply(n,u,o),e?{context:n,name:n,value:t}:t}:function(t,n,r,i){var o,c=a(t,n,r,i);if(null!=c.value){Me(c.context,u.expression),Te(c.value,u.expression),o=[];for(var l=0;l&lt;s.length;++l)o.push(Me(s[l](t,n,r,i),u.expression));o=Me(c.value.apply(c.context,o),u.expression)}return e?{value:o}:o};case li.AssignmentExpression:return i=this.recurse(t.left,!0,1),a=this.recurse(t.right),function(t,n,r,o){var s=i(t,n,r,o);return t=a(t,n,r,o),Me(s.value,u.expression),Ve(s.context),s.context[s.name]=t,e?{value:t}:t};case li.ArrayExpression:return s=[],o(t.elements,function(t){s.push(u.recurse(t))}),function(t,n,r,i){for(var o=[],a=0;a&lt;s.length;++a)o.push(s[a](t,n,r,i));return e?{value:o}:o};case li.ObjectExpression:return s=[],o(t.properties,function(t){s.push({key:t.key.type===li.Identifier?t.key.name:""+t.key.value,value:u.recurse(t.value)})}),function(t,n,r,i){for(var o={},a=0;a&lt;s.length;++a)o[s[a].key]=s[a].value(t,n,r,i);return e?{value:o}:o};case li.ThisExpression:return function(t){return e?{value:t}:t};case li.NGValueParameter:return function(t,n,r,i){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){return n=t(n,r,i,o),n=y(n)?+n:0,e?{value:n}:n}},"unary-":function(t,e){return function(n,r,i,o){return n=t(n,r,i,o),n=y(n)?-n:0,e?{value:n}:n}},"unary!":function(t,e){return function(n,r,i,o){return n=!t(n,r,i,o),e?{value:n}:n}},"binary+":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a);return r=e(r,i,o,a),s=je(s,r),n?{value:s}:s}},"binary-":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a);return r=e(r,i,o,a),s=(y(s)?s:0)-(y(r)?r:0),n?{value:s}:s}},"binary*":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)*e(r,i,o,a),n?{value:r}:r}},"binary/":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)/e(r,i,o,a),n?{value:r}:r}},"binary%":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)%e(r,i,o,a),n?{value:r}:r}},"binary===":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)===e(r,i,o,a),n?{value:r}:r}},"binary!==":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)!==e(r,i,o,a),n?{value:r}:r}},"binary==":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)==e(r,i,o,a),n?{value:r}:r}},"binary!=":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)!=e(r,i,o,a),n?{value:r}:r}},"binary&lt;":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)&lt;e(r,i,o,a),n?{value:r}:r}},"binary&gt;":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)&gt;e(r,i,o,a),n?{value:r}:r}},"binary&lt;=":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)&lt;=e(r,i,o,a),n?{value:r}:r}},"binary&gt;=":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)&gt;=e(r,i,o,a),n?{value:r}:r}},"binary&amp;&amp;":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)&amp;&amp;e(r,i,o,a),n?{value:r}:r}},"binary||":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)||e(r,i,o,a),n?{value:r}:r}},"ternary?:":function(t,e,n,r){return function(i,o,a,s){return i=t(i,o,a,s)?e(i,o,a,s):n(i,o,a,s),r?{value:i}:i}},value:function(t,e){return function(){return e?{context:n,name:n,value:t}:t}},identifier:function(t,e,r,i,o){return function(a,s,u,c){return a=s&amp;&amp;t in s?s:a,i&amp;&amp;1!==i&amp;&amp;a&amp;&amp;!a[t]&amp;&amp;(a[t]={}),s=a?a[t]:n,e&amp;&amp;Me(s,o),r?{context:a,name:t,value:s}:s}},computedMember:function(t,e,n,r,i){return function(o,a,s,u){var c,l,f=t(o,a,s,u);return null!=f&amp;&amp;(c=e(o,a,s,u),c=Oe(c),Ae(c,i),r&amp;&amp;1!==r&amp;&amp;f&amp;&amp;!f[c]&amp;&amp;(f[c]={}),l=f[c],Me(l,i)),n?{context:f,name:c,value:l}:l}},nonComputedMember:function(t,e,r,i,o,a){return function(s,u,c,l){return s=t(s,u,c,l),o&amp;&amp;1!==o&amp;&amp;s&amp;&amp;!s[e]&amp;&amp;(s[e]={}),u=null!=s?s[e]:n,(r||_e(e))&amp;&amp;Me(u,a),i?{context:s,name:e,value:u}:u}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var fi=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new li(this.lexer),this.astCompiler=n.csp?new Ue(this.ast,e):new qe(this.ast,e)};fi.prototype={constructor:fi,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}},ct(),ct();var hi=Object.prototype.valueOf,pi=r("$sce"),$i={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ur=r("$compile"),di=e.createElement("a"),mi=on(t.location.href);un.$inject=["$document"],ln.$inject=["$provide"],dn.$inject=["$locale"],mn.$inject=["$locale"];var vi=".",gi={yyyy:yn("FullYear",4),yy:yn("FullYear",2,0,!0),y:yn("FullYear",1),MMMM:bn("Month"),MMM:bn("Month",!0),MM:yn("Month",2,1),M:yn("Month",1,1),dd:yn("Date",2),d:yn("Date",1),HH:yn("Hours",2),H:yn("Hours",1),hh:yn("Hours",2,-12),h:yn("Hours",1,-12),mm:yn("Minutes",2),m:yn("Minutes",1),ss:yn("Seconds",2),s:yn("Seconds",1),sss:yn("Milliseconds",3),EEEE:bn("Day"),EEE:bn("Day",!0),a:function(t,e){return 12&gt;t.getHours()?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){return t=-1*n,t=(0&lt;=t?"+":"")+(gn(Math[0&lt;t?"floor":"ceil"](t/60),2)+gn(Math.abs(t%60),2))},ww:xn(2),w:xn(1),G:Sn,GG:Sn,GGG:Sn,GGGG:function(t,e){return 0&gt;=t.getFullYear()?e.ERANAMES[0]:e.ERANAMES[1]}},yi=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,bi=/^\-?\d+$/;Cn.$inject=["$locale"];var wi=m(Ln),xi=m(Wn);An.$inject=["$parse"];var Si=m({restrict:"E",compile:function(t,e){if(!e.href&amp;&amp;!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Yn.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Ci={};o(kr,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=Jt("ng-"+e),i=n;"checked"===t&amp;&amp;(i=function(t,e,i){i.ngModel!==i[r]&amp;&amp;n(t,e,i)}),Ci[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(Or,function(t,e){Ci[e]=function(){return{priority:100,link:function(t,n,r){return"ngPattern"===e&amp;&amp;"/"==r.ngPattern.charAt(0)&amp;&amp;(n=r.ngPattern.match(Hn))?void r.$set("ngPattern",new RegExp(n[1],n[2])):void t.$watch(r[e],function(t){r.$set(e,t)})}}}}),o(["src","srcset","href"],function(t){var e=Jt("ng-"+t);Ci[e]=function(){return{priority:99,link:function(n,r,i){var o=t,a=t;"href"===t&amp;&amp;"[object SVGAnimatedString]"===Yn.call(r.prop("href"))&amp;&amp;(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(e,function(e){e?(i.$set(a,e),qn&amp;&amp;o&amp;&amp;r.prop(o,i[a])):"href"===t&amp;&amp;i.$set(a,null)})}}}});var Ei={$addControl:$,$$renameControl:function(t,e){t.$name=e},$removeControl:$,$setValidity:$,$setDirty:$,$setPristine:$,$setSubmitted:$};Mn.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var ki=function(t){return["$timeout","$parse",function(e,r){function i(t){return""===t?r('this[""]').assign:r(t).assign||$}return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:Mn,compile:function(r,o){r.addClass(ao).addClass(io);var a=o.name?"name":!(!t||!o.ngForm)&amp;&amp;"ngForm";return{pre:function(t,r,o,s){var u=s[0];if(!("action"in o)){var c=function(e){t.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),e.preventDefault()};r[0].addEventListener("submit",c,!1),r.on("$destroy",function(){e(function(){r[0].removeEventListener("submit",c,!1)},0,!1)})}(s[1]||u.$$parentForm).$addControl(u);var f=a?i(u.$name):$;a&amp;&amp;(f(t,u),o.$observe(a,function(e){u.$name!==e&amp;&amp;(f(t,n),u.$$parentForm.$$renameControl(u,e),(f=i(u.$name))(t,u))})),r.on("$destroy",function(){u.$$parentForm.$removeControl(u),f(t,n),l(u,Ei)})}}}}}]},Ai=ki(),Oi=ki(!0),Mi=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ti=/^[A-Za-z][A-Za-z\d.+-]*:\/*(?:\w+(?::\w+)?@)?[^\s\/]+(?::\d+)?(?:\/[\w#!:.?+=&amp;%@\-\/]*)?$/,Vi=/^[a-z0-9!#$%&amp;'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Ni=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,ji=/^(\d{4})-(\d{2})-(\d{2})$/,Pi=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Di=/^(\d{4})-W(\d\d)$/,Ii=/^(\d{4})-(\d\d)$/,Ri=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Fi={text:function(t,e,n,r,i,o){Vn(t,e,n,r,i,o),Tn(r)},date:jn("date",ji,Nn(ji,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":jn("datetimelocal",Pi,Nn(Pi,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:jn("time",Ri,Nn(Ri,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:jn("week",Di,function(t,e){if(C(t))return t;if(x(t)){Di.lastIndex=0;var n=Di.exec(t);if(n){var r=+n[1],i=+n[2],o=n=0,a=0,s=0,u=wn(r),i=7*(i-1);return e&amp;&amp;(n=e.getHours(),o=e.getMinutes(),a=e.getSeconds(),s=e.getMilliseconds()),new Date(r,0,u.getDate()+i,n,o,a,s)}}return NaN},"yyyy-Www"),month:jn("month",Ii,Nn(Ii,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,r,i,o,a){if(Pn(t,e,r,i),Vn(t,e,r,i,o,a),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:Ni.test(t)?parseFloat(t):n}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!S(t))throw co("numfmt",t);t=t.toString()}return t}),y(r.min)||r.ngMin){var s;i.$validators.min=function(t){return i.$isEmpty(t)||g(s)||t&gt;=s},r.$observe("min",function(t){y(t)&amp;&amp;!S(t)&amp;&amp;(t=parseFloat(t,10)),s=S(t)&amp;&amp;!isNaN(t)?t:n,i.$validate()})}if(y(r.max)||r.ngMax){var u;i.$validators.max=function(t){return i.$isEmpty(t)||g(u)||t&lt;=u},r.$observe("max",function(t){y(t)&amp;&amp;!S(t)&amp;&amp;(t=parseFloat(t,10)),u=S(t)&amp;&amp;!isNaN(t)?t:n,i.$validate()})}},url:function(t,e,n,r,i,o){Vn(t,e,n,r,i,o),Tn(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ti.test(n)}},email:function(t,e,n,r,i,o){Vn(t,e,n,r,i,o),Tn(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Vi.test(n)}},radio:function(t,e,n,r){g(n.name)&amp;&amp;e.attr("name",++tr),e.on("click",function(t){e[0].checked&amp;&amp;r.$setViewValue(n.value,t&amp;&amp;t.type)}),r.$render=function(){e[0].checked=n.value==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(t,e,n,r,i,o,a,s){var u=Dn(s,t,"ngTrueValue",n.ngTrueValue,!0),c=Dn(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",function(t){r.$setViewValue(e[0].checked,t&amp;&amp;t.type)}),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return R(t,u)}),r.$parsers.push(function(t){return t?u:c})},hidden:$,button:$,submit:$,reset:$,file:$},qi=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&amp;&amp;(Fi[Ln(a.type)]||Fi.text)(i,o,a,s[0],e,t,n,r)}}}}],Ui=/^(true|false|\d+)$/,_i=function(){return{restrict:"A",priority:100,compile:function(t,e){return Ui.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Bi=["$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=g(t)?"":t})}}}}],Hi=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){n=t(r.attr(i.$attr.ngBindTemplate)),e.$$addBindingInfo(r,n.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=g(t)?"":t})}}}}],Li=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,function(t){return(t||"").toString()});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,function(){r.html(t.getTrustedHtml(o(e))||"")})}}}}],zi=m({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Wi=In("",!0),Gi=In("Odd",0),Ki=In("Even",1),Ji=On({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Yi=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Zi={},Xi={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=Jt("ng-"+t);Zi[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){a(e,{$event:n})};Xi[t]&amp;&amp;r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var Qi=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,c;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=e.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},t.enter(n,r.parent(),r)}):(c&amp;&amp;(c.remove(),c=null),u&amp;&amp;(u.$destroy(),u=null),s&amp;&amp;(c=ut(s.clone),t.leave(c).then(function(){c=null}),s=null))})}}}],to=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Qn.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,c,l){var f,h,p,$=0,d=function(){h&amp;&amp;(h.remove(),h=null),f&amp;&amp;(f.$destroy(),f=null),p&amp;&amp;(n.leave(p).then(function(){h=null}),h=p,p=null)};r.$watch(o,function(o){var u=function(){!y(s)||s&amp;&amp;!r.$eval(s)||e()},h=++$;o?(t(o,!0).then(function(t){if(h===$){var e=r.$new();c.template=t,t=l(e,function(t){d(),n.enter(t,null,i).then(u)}),f=e,p=t,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){h===$&amp;&amp;(d(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(d(),c.template=null)})}}}}],eo=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){/SVG/.test(r[0].toString())?(r.empty(),t($t(o.template,e).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(o.template),t(r.contents())(n));
}}}],no=On({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),ro=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,i){var a=e.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,u=s?ir(a):a;i.$parsers.push(function(t){if(!g(t)){var e=[];return t&amp;&amp;o(t.split(u),function(t){t&amp;&amp;e.push(s?ir(t):t)}),e}}),i.$formatters.push(function(t){return nr(t)?t.join(a):n}),i.$isEmpty=function(t){return!t||!t.length}}}},io="ng-valid",oo="ng-invalid",ao="ng-pristine",so="ng-dirty",uo="ng-pending",co=r("ngModel"),lo=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,r,i,a,s,u,c,l,f){this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=n,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=n,this.$name=f(r.name||"",!1)(t),this.$$parentForm=Ei;var h,p=a(r.ngModel),d=p.assign,m=p,v=d,b=null,w=this;this.$$setOptions=function(t){if((w.$options=t)&amp;&amp;t.getterSetter){var e=a(r.ngModel+"()"),n=a(r.ngModel+"($$$p)");m=function(t){var n=p(t);return E(n)&amp;&amp;(n=e(t)),n},v=function(t,e){E(p(t))?n(t,{$$$p:w.$modelValue}):d(t,w.$modelValue)}}else if(!p.assign)throw co("nonassign",r.ngModel,z(i))},this.$render=$,this.$isEmpty=function(t){return g(t)||""===t||null===t||t!==t};var x=0;Rn({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:s}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,s.removeClass(i,so),s.addClass(i,ao)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,s.removeClass(i,ao),s.addClass(i,so),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,s.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,s.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){u.cancel(b),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!S(w.$modelValue)||!isNaN(w.$modelValue)){var t=w.$$rawModelValue,e=w.$valid,r=w.$modelValue,i=w.$options&amp;&amp;w.$options.allowInvalid;w.$$runValidators(t,w.$$lastCommittedViewValue,function(o){i||e===o||(w.$modelValue=o?t:n,w.$modelValue!==r&amp;&amp;w.$$writeModelToScope())})}},this.$$runValidators=function(t,e,r){function i(){var n=!0;return o(w.$validators,function(r,i){var o=r(t,e);n=n&amp;&amp;o,s(i,o)}),!!n||(o(w.$asyncValidators,function(t,e){s(e,null)}),!1)}function a(){var r=[],i=!0;o(w.$asyncValidators,function(o,a){var u=o(t,e);if(!u||!E(u.then))throw co("$asyncValidators",u);s(a,n),r.push(u.then(function(){s(a,!0)},function(t){i=!1,s(a,!1)}))}),r.length?l.all(r).then(function(){u(i)},$):u(!0)}function s(t,e){c===x&amp;&amp;w.$setValidity(t,e)}function u(t){c===x&amp;&amp;r(t)}x++;var c=x;(function(){var t=w.$$parserName||"parse";return g(h)?(s(t,null),!0):(h||(o(w.$validators,function(t,e){s(e,null)}),o(w.$asyncValidators,function(t,e){s(e,null)})),s(t,h),h)})()&amp;&amp;i()?a():u(!1)},this.$commitViewValue=function(){var t=w.$viewValue;u.cancel(b),(w.$$lastCommittedViewValue!==t||""===t&amp;&amp;w.$$hasNativeValidators)&amp;&amp;(w.$$lastCommittedViewValue=t,w.$pristine&amp;&amp;this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=w.$$lastCommittedViewValue;if(h=!g(e)||n)for(var r=0;r&lt;w.$parsers.length;r++)if(e=w.$parsers[r](e),g(e)){h=!1;break}S(w.$modelValue)&amp;&amp;isNaN(w.$modelValue)&amp;&amp;(w.$modelValue=m(t));var i=w.$modelValue,o=w.$options&amp;&amp;w.$options.allowInvalid;w.$$rawModelValue=e,o&amp;&amp;(w.$modelValue=e,w.$modelValue!==i&amp;&amp;w.$$writeModelToScope()),w.$$runValidators(e,w.$$lastCommittedViewValue,function(t){o||(w.$modelValue=t?e:n,w.$modelValue!==i&amp;&amp;w.$$writeModelToScope())})},this.$$writeModelToScope=function(){v(t,w.$modelValue),o(w.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){w.$viewValue=t,w.$options&amp;&amp;!w.$options.updateOnDefault||w.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n=0,r=w.$options;r&amp;&amp;y(r.debounce)&amp;&amp;(r=r.debounce,S(r)?n=r:S(r[e])?n=r[e]:S(r["default"])&amp;&amp;(n=r["default"])),u.cancel(b),n?b=u(function(){w.$commitViewValue()},n):c.$$phase?w.$commitViewValue():t.$apply(function(){w.$commitViewValue()})},t.$watch(function(){var e=m(t);if(e!==w.$modelValue&amp;&amp;(w.$modelValue===w.$modelValue||e===e)){w.$modelValue=w.$$rawModelValue=e,h=n;for(var r=w.$formatters,i=r.length,o=e;i--;)o=r[i](o);w.$viewValue!==o&amp;&amp;(w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(e,o,$))}return e})}],fo=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:lo,priority:1,compile:function(e){return e.addClass(ao).addClass("ng-untouched").addClass(io),{pre:function(t,e,n,r){var i=r[0];e=r[1]||i.$$parentForm,i.$$setOptions(r[2]&amp;&amp;r[2].$options),e.$addControl(i),n.$observe("name",function(t){i.$name!==t&amp;&amp;i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){var o=i[0];o.$options&amp;&amp;o.$options.updateOn&amp;&amp;n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&amp;&amp;t.type)}),n.on("blur",function(n){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],ho=/(\s+|^)default(\s+|$)/,po=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=D(t.$eval(e.ngModelOptions)),y(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=ir(this.$options.updateOn.replace(ho,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},$o=On({terminal:!0,priority:1e3}),mo=r("ngOptions"),vo=/^\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]+?))?$/,go=["$compile","$parse",function(t,n){function r(t,e,r){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(!c&amp;&amp;i(t))e=t;else{e=[];for(var n in t)t.hasOwnProperty(n)&amp;&amp;"$"!==n.charAt(0)&amp;&amp;e.push(n)}return e}var s=t.match(vo);if(!s)throw mo("iexp",t,z(e));var u=s[5]||s[7],c=s[6];t=/ as /.test(s[0])&amp;&amp;s[1];var l=s[9];e=n(s[2]?s[1]:u);var f=t&amp;&amp;n(t)||e,h=l&amp;&amp;n(l),p=l?function(t,e){return h(r,e)}:function(t){return It(t)},$=function(t,e){return p(t,b(t,e))},d=n(s[2]||s[1]),m=n(s[3]||""),v=n(s[4]||""),g=n(s[8]),y={},b=c?function(t,e){return y[c]=e,y[u]=t,y}:function(t){return y[u]=t,y};return{trackBy:l,getTrackByValue:$,getWatchables:n(g,function(t){var e=[];t=t||[];for(var n=a(t),i=n.length,o=0;o&lt;i;o++){var u=t===n?o:n[o],c=b(t[u],u),u=p(t[u],c);e.push(u),(s[2]||s[1])&amp;&amp;(u=d(r,c),e.push(u)),s[4]&amp;&amp;(c=v(r,c),e.push(c))}return e}),getOptions:function(){for(var t=[],e={},n=g(r)||[],i=a(n),s=i.length,u=0;u&lt;s;u++){var c=n===i?u:i[u],h=b(n[c],c),y=f(r,h),c=p(y,h),w=d(r,h),x=m(r,h),h=v(r,h),y=new o(c,y,w,x,h);t.push(y),e[c]=y}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[$(t)]},getViewValueFromOption:function(t){return l?Qn.copy(t.viewValue):t.viewValue}}}}}var a=e.createElement("option"),s=e.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=$},post:function(e,n,i,u){function c(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&amp;&amp;(e.label=t.label,e.textContent=t.label),t.value!==e.value&amp;&amp;(e.value=t.selectValue)}function l(t,e,n,r){return e&amp;&amp;Ln(e.nodeName)===n?n=e:(n=r.cloneNode(!1),e?t.insertBefore(n,e):t.appendChild(n)),n}function f(t){for(var e;t;)e=t.nextSibling,Mt(t),t=e}function h(t){var e=m&amp;&amp;m[0],n=w&amp;&amp;w[0];if(e||n)for(;t&amp;&amp;(t===e||t===n||8===t.nodeType||""===t.value);)t=t.nextSibling;return t}function p(){var t=x&amp;&amp;d.readValue();x=S.getOptions();var e={},r=n[0].firstChild;if(b&amp;&amp;n.prepend(m),r=h(r),x.items.forEach(function(t){var i,o;t.group?(i=e[t.group],i||(i=l(n[0],r,"optgroup",s),r=i.nextSibling,i.label=t.group,i=e[t.group]={groupElement:i,currentOptionElement:i.firstChild}),o=l(i.groupElement,i.currentOptionElement,"option",a),c(t,o),i.currentOptionElement=o.nextSibling):(o=l(n[0],r,"option",a),c(t,o),r=o.nextSibling)}),Object.keys(e).forEach(function(t){f(e[t].currentOptionElement)}),f(r),$.$render(),!$.$isEmpty(t)){var i=d.readValue();(S.trackBy?R(t,i):t===i)||($.$setViewValue(i),$.$render())}}var $=u[1];if($){var d=u[0];u=i.multiple;for(var m,v=0,g=n.children(),y=g.length;v&lt;y;v++)if(""===g[v].value){m=g.eq(v);break}var b=!!m,w=Un(a.cloneNode(!1));w.val("?");var x,S=r(i.ngOptions,n,e);u?($.$isEmpty=function(t){return!t||0===t.length},d.writeValue=function(t){x.items.forEach(function(t){t.element.selected=!1}),t&amp;&amp;t.forEach(function(t){(t=x.getOptionFromViewValue(t))&amp;&amp;!t.disabled&amp;&amp;(t.element.selected=!0)})},d.readValue=function(){var t=n.val()||[],e=[];return o(t,function(t){(t=x.selectValueMap[t])&amp;&amp;!t.disabled&amp;&amp;e.push(x.getViewValueFromOption(t))}),e},S.trackBy&amp;&amp;e.$watchCollection(function(){if(nr($.$viewValue))return $.$viewValue.map(function(t){return S.getTrackByValue(t)})},function(){$.$render()})):(d.writeValue=function(t){var e=x.getOptionFromViewValue(t);e&amp;&amp;!e.disabled?n[0].value!==e.selectValue&amp;&amp;(w.remove(),b||m.remove(),n[0].value=e.selectValue,e.element.selected=!0,e.element.setAttribute("selected","selected")):null===t||b?(w.remove(),b||n.prepend(m),n.val(""),m.prop("selected",!0),m.attr("selected",!0)):(b||m.remove(),n.prepend(w),n.val("?"),w.prop("selected",!0),w.attr("selected",!0))},d.readValue=function(){var t=x.selectValueMap[n.val()];return t&amp;&amp;!t.disabled?(b||m.remove(),w.remove(),x.getViewValueFromOption(t)):null},S.trackBy&amp;&amp;e.$watch(function(){return S.getTrackByValue($.$viewValue)},function(){$.$render()})),b?(m.remove(),t(m)(e),m.removeClass("ng-scope")):m=Un(a.cloneNode(!1)),p(),e.$watchCollection(S.getWatchables,p)}}}}}],yo=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function c(t){s.text(t||"")}var l,f=u.count,h=u.$attr.when&amp;&amp;s.attr(u.$attr.when),p=u.offset||0,d=a.$eval(h)||{},m={},v=e.startSymbol(),y=e.endSymbol(),b=v+f+"-"+p+y,w=Qn.noop;o(u,function(t,e){var n=i.exec(e);n&amp;&amp;(n=(n[1]?"-":"")+Ln(n[2]),d[n]=s.attr(u.$attr[e]))}),o(d,function(t,n){m[n]=e(t.replace(r,b))}),a.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);i||r in d||(r=t.pluralCat(r-p)),r===l||i&amp;&amp;S(l)&amp;&amp;isNaN(l)||(w(),i=m[r],g(i)?(null!=e&amp;&amp;n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=$,c()):w=a.$watch(i,c),l=r)})}}}],bo=["$parse","$animate",function(t,a){var s=r("ngRepeat"),u=function(t,e,n,r,i,o,a){t[n]=r,i&amp;&amp;(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&amp;e))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,c){var l=c.ngRepeat,f=e.createComment(" end ngRepeat: "+l+" "),h=l.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!h)throw s("iexp",l);var p=h[1],$=h[2],d=h[3],m=h[4],h=p.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!h)throw s("iidexp",p);var v=h[3]||h[1],g=h[2];if(d&amp;&amp;(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(d)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(d)))throw s("badident",d);var y,b,w,x,S={$id:It};return m?y=t(m):(w=function(t,e){return It(e)},x=function(t){return t}),function(t,e,r,c,h){y&amp;&amp;(b=function(e,n,r){return g&amp;&amp;(S[g]=e),S[v]=n,S.$index=r,y(t,S)});var p=ct();t.$watchCollection($,function(r){var c,$,m,y,S,C,E,k,A,O,M=e[0],T=ct();if(d&amp;&amp;(t[d]=r),i(r))k=r,$=b||w;else for(O in $=b||x,k=[],r)zn.call(r,O)&amp;&amp;"$"!==O.charAt(0)&amp;&amp;k.push(O);for(y=k.length,O=Array(y),c=0;c&lt;y;c++)if(S=r===k?c:k[c],C=r[S],E=$(S,C,c),p[E])A=p[E],delete p[E],T[E]=A,O[c]=A;else{if(T[E])throw o(O,function(t){t&amp;&amp;t.scope&amp;&amp;(p[t.id]=t)}),s("dupes",l,E,C);O[c]={id:E,scope:n,clone:n},T[E]=!0}for(m in p){if(A=p[m],E=ut(A.clone),a.leave(E),E[0].parentNode)for(c=0,$=E.length;c&lt;$;c++)E[c].$$NG_REMOVED=!0;A.scope.$destroy()}for(c=0;c&lt;y;c++)if(S=r===k?c:k[c],C=r[S],A=O[c],A.scope){m=M;do m=m.nextSibling;while(m&amp;&amp;m.$$NG_REMOVED);A.clone[0]!=m&amp;&amp;a.move(ut(A.clone),null,Un(M)),M=A.clone[A.clone.length-1],u(A.scope,c,v,C,g,S,y)}else h(function(t,e){A.scope=e;var n=f.cloneNode(!1);t[t.length++]=n,a.enter(t,null,Un(M)),M=n,A.clone=t,T[A.id]=A,u(A.scope,c,v,C,g,S,y)});p=T})}}}}],wo=["$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"})})}}}],xo=["$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"})})}}}],So=On(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&amp;&amp;t!==n&amp;&amp;o(n,function(t,n){e.css(n,"")}),t&amp;&amp;e.css(t)},!0)}),Co=["$animate",function(t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=[],u=[],c=[],l=[],f=function(t,e){return function(){t.splice(e,1)}};n.$watch(i.ngSwitch||i.on,function(n){var r,i;for(r=0,i=c.length;r&lt;i;++r)t.cancel(c[r]);for(r=c.length=0,i=l.length;r&lt;i;++r){var h=ut(u[r].clone);l[r].$destroy(),(c[r]=t.leave(h)).then(f(c,r))}u.length=0,l.length=0,(s=a.cases["!"+n]||a.cases["?"])&amp;&amp;o(s,function(n){n.transclude(function(r,i){l.push(i);var o=n.element;r[r.length++]=e.createComment(" end ngSwitchWhen: "),u.push({clone:r}),t.enter(r,o.parent(),o)})})})}}}],Eo=On({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),ko=On({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})}}),Ao=On({restrict:"EAC",link:function(t,e,n,i,o){if(!o)throw r("ngTransclude")("orphan",z(e));o(function(t){e.empty(),e.append(t)})}}),Oo=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){"text/ng-template"==n.type&amp;&amp;t.put(n.id,e[0].text)}}}],Mo={$setViewValue:$,$render:$},To=["$element","$scope","$attrs",function(t,r,i){var o=this,a=new Rt;o.ngModelCtrl=Mo,o.unknownOption=Un(e.createElement("option")),o.renderUnknownOption=function(e){e="? "+It(e)+" ?",o.unknownOption.val(e),t.prepend(o.unknownOption),t.val(e)},r.$on("$destroy",function(){o.renderUnknownOption=$}),o.removeUnknownOption=function(){o.unknownOption.parent()&amp;&amp;o.unknownOption.remove()},o.readValue=function(){return o.removeUnknownOption(),t.val()},o.writeValue=function(e){o.hasOption(e)?(o.removeUnknownOption(),t.val(e),""===e&amp;&amp;o.emptyOption.prop("selected",!0)):null==e&amp;&amp;o.emptyOption?(o.removeUnknownOption(),t.val("")):o.renderUnknownOption(e)},o.addOption=function(t,e){at(t,'"option value"'),""===t&amp;&amp;(o.emptyOption=e);var n=a.get(t)||0;a.put(t,n+1),o.ngModelCtrl.$render(),e[0].hasAttribute("selected")&amp;&amp;(e[0].selected=!0)},o.removeOption=function(t){var e=a.get(t);e&amp;&amp;(1===e?(a.remove(t),""===t&amp;&amp;(o.emptyOption=n)):a.put(t,e-1))},o.hasOption=function(t){return!!a.get(t)},o.registerOption=function(t,e,n,r,i){if(r){var a;n.$observe("value",function(t){y(a)&amp;&amp;o.removeOption(a),a=t,o.addOption(t,e)})}else i?t.$watch(i,function(t,r){n.$set("value",t),r!==t&amp;&amp;o.removeOption(r),o.addOption(t,e)}):o.addOption(n.value,e);e.on("$destroy",function(){o.removeOption(n.value),o.ngModelCtrl.$render()})}}],Vo=function(){return{restrict:"E",require:["select","?ngModel"],controller:To,priority:1,link:{pre:function(t,e,n,r){var i=r[1];if(i){var a=r[0];if(a.ngModelCtrl=i,i.$render=function(){a.writeValue(i.$viewValue)},e.on("change",function(){t.$apply(function(){i.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var t=[];return o(e.find("option"),function(e){e.selected&amp;&amp;t.push(e.value)}),t},a.writeValue=function(t){var n=new Rt(t);o(e.find("option"),function(t){t.selected=y(n.get(t.value))})};var s,u=NaN;t.$watch(function(){u!==i.$viewValue||R(s,i.$viewValue)||(s=I(i.$viewValue),i.$render()),u=i.$viewValue}),i.$isEmpty=function(t){return!t||0===t.length}}}}}}},No=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(y(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o=e.parent();(o=o.data("$selectController")||o.parent().data("$selectController"))&amp;&amp;o.registerOption(t,e,n,r,i)}}}}],jo=m({restrict:"E",terminal:!1}),Po=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&amp;&amp;(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},Do=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,o){if(o){var a,s=i.ngPattern||i.pattern;i.$observe("pattern",function(t){if(x(t)&amp;&amp;0&lt;t.length&amp;&amp;(t=new RegExp("^"+t+"$")),t&amp;&amp;!t.test)throw r("ngPattern")("noregexp",s,t,z(e));a=t||n,o.$validate()}),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||g(a)||a.test(e)}}}}},Io=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){t=h(t),i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(t,e){return 0&gt;i||r.$isEmpty(e)||e.length&lt;=i}}}}},Ro=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=h(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length&gt;=i}}}}};t.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(rt(),ft(Qn),Qn.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return-1==e?0:t.length-e-1}t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),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",pluralCat:function(t,r){var i=0|t,o=r;return n===o&amp;&amp;(o=Math.min(e(t),3)),Math.pow(10,o),1==i&amp;&amp;0==o?"one":"other"}})}]),Un(e).ready(function(){X(e,Q)}))}(window,document),!window.angular.$$csp().noInlineStyle&amp;&amp;window.angular.element(document.head).prepend('&lt;style type="text/css"&gt;@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;}&lt;/style&gt;');;!function(n,t,e){"use strict";function a(n,t,e){if(!n)throw ngMinErr("areq",t||"?",e||"required");return n}function r(n,t){return n||t?n?t?(E(n)&amp;&amp;(n=n.join(" ")),E(t)&amp;&amp;(t=t.join(" ")),n+" "+t):n:t:""}function i(n){var t={};return n&amp;&amp;(n.to||n.from)&amp;&amp;(t.to=n.to,t.from=n.from),t}function o(n,t,e){var a="";return n=E(n)?n:n&amp;&amp;q(n)&amp;&amp;n.length?n.split(/\s+/):[],_(n,function(n,r){n&amp;&amp;0&lt;n.length&amp;&amp;(a+=0&lt;r?" ":"",a+=e?t+n:n+t)}),a}function s(n){if(n instanceof M)switch(n.length){case 0:return[];case 1:if(1===n[0].nodeType)return n;break;default:return M(u(n))}if(1===n.nodeType)return M(n)}function u(n){if(!n[0])return n;for(var t=0;t&lt;n.length;t++){var e=n[t];if(1==e.nodeType)return e}}function l(n,t,e){_(t,function(t){n.addClass(t,e)})}function c(n,t,e){_(t,function(t){n.removeClass(t,e)})}function f(n){return function(t,e){e.addClass&amp;&amp;(l(n,t,e.addClass),e.addClass=null),e.removeClass&amp;&amp;(c(n,t,e.removeClass),e.removeClass=null)}}function m(n){if(n=n||{},!n.$$prepared){var t=n.domOperation||N;n.domOperation=function(){n.$$domOperationFired=!0,t(),t=N},n.$$prepared=!0}return n}function d(n,t){p(n,t),v(n,t)}function p(n,t){t.from&amp;&amp;(n.css(t.from),t.from=null)}function v(n,t){t.to&amp;&amp;(n.css(t.to),t.to=null)}function h(n,t,e){var a=(t.addClass||"")+" "+(e.addClass||""),r=(t.removeClass||"")+" "+(e.removeClass||"");return n=g(n.attr("class"),a,r),e.preparationClasses&amp;&amp;(t.preparationClasses=b(e.preparationClasses,t.preparationClasses),delete e.preparationClasses),a=t.domOperation!==N?t.domOperation:null,I(t,e),a&amp;&amp;(t.domOperation=a),t.addClass=n.addClass?n.addClass:null,t.removeClass=n.removeClass?n.removeClass:null,t}function g(n,t,e){function a(n){q(n)&amp;&amp;(n=n.split(" "));var t={};return _(n,function(n){n.length&amp;&amp;(t[n]=!0)}),t}var r={};n=a(n),t=a(t),_(t,function(n,t){r[t]=1}),e=a(e),_(e,function(n,t){r[t]=1===r[t]?null:-1});var i={addClass:"",removeClass:""};return _(r,function(t,e){var a,r;1===t?(a="addClass",r=!n[e]):-1===t&amp;&amp;(a="removeClass",r=n[e]),r&amp;&amp;(i[a].length&amp;&amp;(i[a]+=" "),i[a]+=e)}),i}function $(n){return n instanceof t.element?n[0]:n}function C(n,t,e){var a="";t&amp;&amp;(a=o(t,"ng-",!0)),e.addClass&amp;&amp;(a=b(a,o(e.addClass,"-add"))),e.removeClass&amp;&amp;(a=b(a,o(e.removeClass,"-remove"))),a.length&amp;&amp;(e.preparationClasses=a,n.addClass(a))}function y(n,t){var e=t?"-"+t+"s":"";return A(n,[W,e]),[W,e]}function D(n,t){var e=t?"paused":"",a=F+"PlayState";return A(n,[a,e]),[a,e]}function A(n,t){n.style[t[0]]=t[1]}function b(n,t){return n?t?n+" "+t:n:t}function k(n,t,e){var a=Object.create(null),r=n.getComputedStyle(t)||{};return _(e,function(n,t){var e=r[n];if(e){var i=e.charAt(0);("-"===i||"+"===i||0&lt;=i)&amp;&amp;(e=w(e)),0===e&amp;&amp;(e=null),a[t]=e}}),a}function w(n){var t=0;return n=n.split(/\s*,\s*/),_(n,function(n){"s"==n.charAt(n.length-1)&amp;&amp;(n=n.substring(0,n.length-1)),n=parseFloat(n)||0,t=t?Math.max(n,t):n}),t}function T(n){return 0===n||null!=n}function S(n,t){var e=O,a=n+"s";return t?e+="Duration":a+=" linear all",[e,a]}function j(){var n=Object.create(null);return{flush:function(){n=Object.create(null)},count:function(t){return(t=n[t])?t.total:0},get:function(t){return(t=n[t])&amp;&amp;t.value},put:function(t,e){n[t]?n[t].total++:n[t]={total:1,value:e}}}}function x(n,t,e){_(e,function(e){n[e]=K(n[e])?n[e]:t.style.getPropertyValue(e)})}var O,P,F,R,N=t.noop,I=t.extend,M=t.element,_=t.forEach,E=t.isArray,q=t.isString,H=t.isObject,L=t.isUndefined,K=t.isDefined,B=t.isFunction,J=t.isElement;L(n.ontransitionend)&amp;&amp;K(n.onwebkittransitionend)?(O="WebkitTransition",P="webkitTransitionEnd transitionend"):(O="transition",P="transitionend"),L(n.onanimationend)&amp;&amp;K(n.onwebkitanimationend)?(F="WebkitAnimation",R="webkitAnimationEnd animationend"):(F="animation",R="animationend");var U=F+"Delay",Q=F+"Duration",W=O+"Delay";n=O+"Duration";var V={transitionDuration:n,transitionDelay:W,transitionProperty:O+"Property",animationDuration:Q,animationDelay:U,animationIterationCount:F+"IterationCount"},z={transitionDuration:n,transitionDelay:W,animationDuration:Q,animationDelay:U};t.module("ngAnimate",[]).directive("ngAnimateChildren",[function(){return function(n,e,a){n=a.ngAnimateChildren,t.isString(n)&amp;&amp;0===n.length?e.data("$$ngAnimateChildren",!0):a.$observe("ngAnimateChildren",function(n){e.data("$$ngAnimateChildren","on"===n||"true"===n)})}}]).factory("$$rAFScheduler",["$$rAF",function(n){function t(n){a=a.concat(n),e()}function e(){if(a.length){for(var t=a.shift(),i=0;i&lt;t.length;i++)t[i]();r||n(function(){r||e()})}}var a,r;return a=t.queue=[],t.waitUntilQuiet=function(t){r&amp;&amp;r(),r=n(function(){r=null,t(),e()})},t}]).factory("$$AnimateRunner",["$q","$sniffer","$$animateAsyncRun",function(n,t,e){function a(n){this.setHost(n),this._doneCallbacks=[],this._runInAnimationFrame=e(),this._state=0}return a.chain=function(n,t){function e(){a===n.length?t(!0):n[a](function(n){!1===n?t(!1):(a++,e())})}var a=0;e()},a.all=function(n,t){function e(e){r=r&amp;&amp;e,++a===n.length&amp;&amp;t(r)}var a=0,r=!0;_(n,function(n){n.done(e)})},a.prototype={setHost:function(n){this.host=n||{}},done:function(n){2===this._state?n():this._doneCallbacks.push(n)},progress:N,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,e){t.done(function(t){!1===t?e():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&amp;&amp;this.host.pause()},resume:function(){this.host.resume&amp;&amp;this.host.resume()},end:function(){this.host.end&amp;&amp;this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&amp;&amp;this.host.cancel(),this._resolve(!1)},complete:function(n){var t=this;0===t._state&amp;&amp;(t._state=1,t._runInAnimationFrame(function(){t._resolve(n)}))},_resolve:function(n){2!==this._state&amp;&amp;(_(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=2)}},a}]).factory("$$animateAsyncRun",["$$rAF",function(n){function t(t){e.push(t),1&lt;e.length||n(function(){for(var n=0;n&lt;e.length;n++)e[n]();e=[]})}var e=[];return function(){var n=!1;return t(function(){n=!0}),function(e){n?e():t(e)}}}]).provider("$$animateQueue",["$animateProvider",function(n){function t(n,t,e,a){return r[n].some(function(n){return n(t,e,a)})}function e(n,t){n=n||{};var e=0&lt;(n.addClass||"").length,a=0&lt;(n.removeClass||"").length;return t?e&amp;&amp;a:e||a}var r=this.rules={skip:[],cancel:[],join:[]};r.join.push(function(n,t,a){return!t.structural&amp;&amp;e(t.options)}),r.skip.push(function(n,t,a){return!t.structural&amp;&amp;!e(t.options)}),r.skip.push(function(n,t,e){return"leave"==e.event&amp;&amp;t.structural}),r.skip.push(function(n,t,e){return e.structural&amp;&amp;2===e.state&amp;&amp;!t.structural}),r.cancel.push(function(n,t,e){return e.structural&amp;&amp;t.structural}),r.cancel.push(function(n,t,e){return 2===e.state&amp;&amp;t.structural}),r.cancel.push(function(n,t,e){return n=t.options,e=e.options,n.addClass&amp;&amp;n.addClass===e.removeClass||n.removeClass&amp;&amp;n.removeClass===e.addClass}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(r,i,o,l,c,p,v,g,y,D){function A(){var n=!1;return function(t){n?t():i.$$postDigest(function(){n=!0,t()})}}function b(n,t,e){var a=$(t),r=$(n),i=[];return(n=N[e])&amp;&amp;_(n,function(n){n.node.contains(a)?i.push(n.callback):"leave"===e&amp;&amp;n.node.contains(r)&amp;&amp;i.push(n.callback)}),i}function k(n,a,o){function u(t,e,a,i){y(function(){var t=b(f,n,e);t.length&amp;&amp;r(function(){_(t,function(t){t(n,a,i)})})}),t.progress(e,a,i)}function l(t){var e=n,a=o;a.preparationClasses&amp;&amp;(e.removeClass(a.preparationClasses),a.preparationClasses=null),a.activeClasses&amp;&amp;(e.removeClass(a.activeClasses),a.activeClasses=null),Q(n,o),d(n,o),o.domOperation(),g.complete(!t)}var c,f;(n=s(n))&amp;&amp;(c=$(n),f=n.parent()),o=m(o);var g=new v,y=A();if(E(o.addClass)&amp;&amp;(o.addClass=o.addClass.join(" ")),o.addClass&amp;&amp;!q(o.addClass)&amp;&amp;(o.addClass=null),E(o.removeClass)&amp;&amp;(o.removeClass=o.removeClass.join(" ")),o.removeClass&amp;&amp;!q(o.removeClass)&amp;&amp;(o.removeClass=null),o.from&amp;&amp;!H(o.from)&amp;&amp;(o.from=null),o.to&amp;&amp;!H(o.to)&amp;&amp;(o.to=null),!c)return l(),g;var D=[c.className,o.addClass,o.removeClass].join(" ");if(!U(D))return l(),g;var k=0&lt;=["enter","move","leave"].indexOf(a),S=!F||P.get(c),D=!S&amp;&amp;O.get(c)||{},R=!!D.state;if(S||R&amp;&amp;1==D.state||(S=!j(n,f,a)),S)return l(),g;if(k&amp;&amp;w(n),S={structural:k,element:n,event:a,close:l,options:o,runner:g},R){if(t("skip",n,S,D))return 2===D.state?(l(),g):(h(n,D.options,o),D.runner);if(t("cancel",n,S,D))if(2===D.state)D.runner.end();else{if(!D.structural)return h(n,D.options,S.options),D.runner;D.close()}else if(t("join",n,S,D)){if(2!==D.state)return C(n,k?a:null,o),a=S.event=D.event,o=h(n,D.options,S.options),D.runner;h(n,o,{})}}else h(n,o,{});if((R=S.structural)||(R="animate"===S.event&amp;&amp;0&lt;Object.keys(S.options.to||{}).length||e(S.options)),!R)return l(),T(n),g;var N=(D.counter||0)+1;return S.counter=N,x(n,1,S),i.$$postDigest(function(){var t=O.get(c),r=!t,t=t||{},i=0&lt;(n.parent()||[]).length&amp;&amp;("animate"===t.event||t.structural||e(t.options));r||t.counter!==N||!i?(r&amp;&amp;(Q(n,o),d(n,o)),(r||k&amp;&amp;t.event!==a)&amp;&amp;(o.domOperation(),g.end()),i||T(n)):(a=!t.structural&amp;&amp;e(t.options,!0)?"setClass":t.event,x(n,2),t=p(n,a,t.options),t.done(function(t){l(!t),(t=O.get(c))&amp;&amp;t.counter===N&amp;&amp;T($(n)),u(g,a,"close",{})}),g.setHost(t),u(g,a,"start",{}))}),g}function w(n){n=$(n).querySelectorAll("[data-ng-animate]"),_(n,function(n){var t=parseInt(n.getAttribute("data-ng-animate")),e=O.get(n);switch(t){case 2:e.runner.end();case 1:e&amp;&amp;O.remove(n)}})}function T(n){n=$(n),n.removeAttribute("data-ng-animate"),O.remove(n)}function S(n,t){return $(n)===$(t)}function j(n,t,e){e=M(l[0].body);var a,r=S(n,e)||"HTML"===n[0].nodeName,i=S(n,o),s=!1;for((n=n.data("$ngAnimatePin"))&amp;&amp;(t=n);t&amp;&amp;t.length&amp;&amp;(i||(i=S(t,o)),n=t[0],1===n.nodeType);){var u=O.get(n)||{};if(s||(s=u.structural||P.get(n)),(L(a)||!0===a)&amp;&amp;(n=t.data("$$ngAnimateChildren"),K(n)&amp;&amp;(a=n)),s&amp;&amp;!1===a)break;i||(i=S(t,o),i||(n=t.data("$ngAnimatePin"))&amp;&amp;(t=n)),r||(r=S(t,e)),t=t.parent()}return(!s||a)&amp;&amp;i&amp;&amp;r}function x(n,t,e){e=e||{},e.state=t,n=$(n),n.setAttribute("data-ng-animate",t),e=(t=O.get(n))?I(t,e):e,O.put(n,e)}var O=new c,P=new c,F=null,R=i.$watch(function(){return 0===g.totalPendingRequests},function(n){n&amp;&amp;(R(),i.$$postDigest(function(){i.$$postDigest(function(){null===F&amp;&amp;(F=!0)})}))}),N={},B=n.classNameFilter(),U=B?function(n){return B.test(n)}:function(){return!0},Q=f(y);return{on:function(n,t,e){t=u(t),N[n]=N[n]||[],N[n].push({node:t,callback:e})},off:function(n,t,e){function a(n,t,e){var a=u(t);return n.filter(function(n){return!(n.node===a&amp;&amp;(!e||n.callback===e))})}var r=N[n];r&amp;&amp;(N[n]=1===arguments.length?null:a(r,t,e))},pin:function(n,t){a(J(n),"element","not an element"),a(J(t),"parentElement","not an element"),n.data("$ngAnimatePin",t)},push:function(n,t,e,a){return e=e||{},e.domOperation=a,k(n,t,e)},enabled:function(n,t){var e=arguments.length;if(0===e)t=!!F;else if(J(n)){var a=$(n),r=P.get(a);1===e?t=!r:(t=!!t)?r&amp;&amp;P.remove(a):P.put(a,!0)}else t=F=!!n;return t}}}]}]).provider("$$animation",["$animateProvider",function(n){function t(n){return n.data("$$animationRunner")}var e=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(n,a,i,o,s,u){function l(n){function t(n){if(n.processed)return n;n.processed=!0;var e=n.domNode,i=e.parentNode;r.put(e,n);for(var o;i;){if(o=r.get(i)){o.processed||(o=t(o));break}i=i.parentNode}return(o||a).children.push(n),n}var e,a={children:[]},r=new s;for(e=0;e&lt;n.length;e++){var i=n[e];r.put(i.domNode,n[e]={domNode:i.domNode,fn:i.fn,children:[]})}for(e=0;e&lt;n.length;e++)t(n[e]);return function(n){var t,e=[],a=[];for(t=0;t&lt;n.children.length;t++)a.push(n.children[t]);n=a.length;var r=0,i=[];for(t=0;t&lt;a.length;t++){var o=a[t];0&gt;=n&amp;&amp;(n=r,r=0,e.push(i),i=[]),i.push(o.fn),o.children.forEach(function(n){r++,a.push(n)}),n--}return i.length&amp;&amp;e.push(i),e}(a)}var c=[],p=f(n);return function(s,f,v){function h(n){n=n.hasAttribute("ng-animate-ref")?[n]:n.querySelectorAll("[ng-animate-ref]");var t=[];return _(n,function(n){var e=n.getAttribute("ng-animate-ref");e&amp;&amp;e.length&amp;&amp;t.push(n)}),t}function g(n){var t=[],e={};_(n,function(n,a){var r=$(n.element),i=0&lt;=["enter","move"].indexOf(n.event),r=n.structural?h(r):[];if(r.length){var o=i?"to":"from";_(r,function(n){var t=n.getAttribute("ng-animate-ref");e[t]=e[t]||{},e[t][o]={animationID:a,element:M(n)}})}else t.push(n)});var a={},r={};return _(e,function(e,i){var o=e.from,s=e.to;if(o&amp;&amp;s){var u=n[o.animationID],l=n[s.animationID],c=o.animationID.toString();if(!r[c]){var f=r[c]={structural:!0,beforeStart:function(){u.beforeStart(),l.beforeStart()},close:function(){u.close(),l.close()},classes:C(u.classes,l.classes),from:u,to:l,anchors:[]};f.classes.length?t.push(f):(t.push(u),t.push(l))}r[c].anchors.push({out:o.element,"in":s.element})}else o=o?o.animationID:s.animationID,s=o.toString(),a[s]||(a[s]=!0,t.push(n[o]))}),t}function C(n,t){n=n.split(" "),t=t.split(" ");for(var e=[],a=0;a&lt;n.length;a++){var r=n[a];if("ng-"!==r.substring(0,3))for(var i=0;i&lt;t.length;i++)if(r===t[i]){e.push(r);break}}return e.join(" ")}function y(n){for(var t=e.length-1;0&lt;=t;t--){var a=e[t];if(i.has(a)&amp;&amp;(a=i.get(a)(n)))return a}}function D(n,e){n.from&amp;&amp;n.to?(t(n.from.element).setHost(e),t(n.to.element).setHost(e)):t(n.element).setHost(e)}function A(){var n=t(s);!n||"leave"===f&amp;&amp;v.$$domOperationFired||n.end()}function b(t){s.off("$destroy",A),s.removeData("$$animationRunner"),p(s,v),d(s,v),v.domOperation(),S&amp;&amp;n.removeClass(s,S),s.removeClass("ng-animate"),w.complete(!t)}v=m(v);var k=0&lt;=["enter","move","leave"].indexOf(f),w=new o({end:function(){b()},cancel:function(){b(!0)}});if(!e.length)return b(),w;s.data("$$animationRunner",w);var T=r(s.attr("class"),r(v.addClass,v.removeClass)),S=v.tempClasses;return S&amp;&amp;(T+=" "+S,v.tempClasses=null),c.push({element:s,classes:T,event:f,structural:k,options:v,beforeStart:function(){s.addClass("ng-animate"),S&amp;&amp;n.addClass(s,S)},close:b}),s.on("$destroy",A),1&lt;c.length?w:(a.$$postDigest(function(){var n=[];_(c,function(e){t(e.element)?n.push(e):e.close()}),c.length=0;var e=g(n),a=[];_(e,function(n){a.push({domNode:$(n.from?n.from.element:n.element),fn:function(){n.beforeStart();var e,a=n.close;if(t(n.anchors?n.from.element||n.to.element:n.element)){var r=y(n);r&amp;&amp;(e=r.start)}e?(e=e(),e.done(function(n){a(!n)}),D(n,e)):a()}})}),u(l(a))}),w)}}]}]).provider("$animateCss",["$animateProvider",function(n){var t=j(),e=j();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$animate",function(n,a,r,s,u,l,c,h){function g(n,t){var e=n.parentNode;return(e.$$ngAnimateParentKey||(e.$$ngAnimateParentKey=++I))+"-"+n.getAttribute("class")+"-"+t}function C(r,i,s,u){var l;return 0&lt;t.count(s)&amp;&amp;(l=e.get(s),l||(i=o(i,"-stagger"),a.addClass(r,i),l=k(n,r,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),a.removeClass(r,i),e.put(s,l))),l||{}}function b(n){M.push(n),c.waitUntilQuiet(function(){t.flush(),e.flush();for(var n=u(),a=0;a&lt;M.length;a++)M[a](n);M.length=0})}function w(e,a,r){return a=t.get(r),a||(a=k(n,e,V),"infinite"===a.animationIterationCount&amp;&amp;(a.animationIterationCount=1)),t.put(r,a),e=a,r=e.animationDelay,a=e.transitionDelay,e.maxDelay=r&amp;&amp;a?Math.max(r,a):r||a,e.maxDuration=Math.max(e.animationDuration*e.animationIterationCount,e.transitionDuration),e}var j=f(a),I=0,M=[];return function(n,e){function u(){f()}function c(){f(!0)}function f(t){L||B&amp;&amp;K||(L=!0,K=!1,e.$$skipPreparationClasses||a.removeClass(n,sn),a.removeClass(n,ln),D(H,!1),y(H,!1),_(nn,function(n){H.style[n[0]]=""}),j(n,e),d(n,e),Object.keys(q).length&amp;&amp;_(q,function(n,t){n?H.style.setProperty(t,n):H.style.removeProperty(t)}),e.onDone&amp;&amp;e.onDone(),J&amp;&amp;J.complete(!t))}function k(n){vn.blockTransition&amp;&amp;y(H,n),vn.blockKeyframeAnimation&amp;&amp;D(H,!!n)}function I(){return J=new r({end:u,cancel:c}),b(N),f(),{$$willAnimate:!1,start:function(){return J},end:u}}function M(){function t(){if(!L){if(k(!1),_(nn,function(n){H.style[n[0]]=n[1]}),j(n,e),a.addClass(n,ln),vn.recalculateTimingStyles){if(un=H.className+" "+sn,cn=g(H,un),dn=w(H,un,cn),pn=dn.maxDelay,G=Math.max(pn,0),Y=dn.maxDuration,0===Y)return void f();vn.hasTransitions=0&lt;dn.transitionDuration,vn.hasAnimations=0&lt;dn.animationDuration}if(vn.applyAnimationDelay&amp;&amp;(pn="boolean"!=typeof e.delay&amp;&amp;T(e.delay)?parseFloat(e.delay):pn,G=Math.max(pn,0),dn.animationDelay=pn,hn=[U,pn+"s"],nn.push(hn),H.style[hn[0]]=hn[1]),X=1e3*G,Z=1e3*Y,e.easing){var t,l=e.easing;vn.hasTransitions&amp;&amp;(t=O+"TimingFunction",nn.push([t,l]),H.style[t]=l),vn.hasAnimations&amp;&amp;(t=F+"TimingFunction",nn.push([t,l]),H.style[t]=l)}dn.transitionDuration&amp;&amp;u.push(P),dn.animationDuration&amp;&amp;u.push(R),o=Date.now();var c=X+1.5*Z;t=o+c;var l=n.data("$$animateCss")||[],m=!0;if(l.length){var d=l[0];(m=t&gt;d.expectedEndTime)?s.cancel(d.timer):l.push(f)}m&amp;&amp;(c=s(r,c,!1),l[0]={timer:c,expectedEndTime:t},l.push(f),n.data("$$animateCss",l)),n.on(u.join(" "),i),e.to&amp;&amp;(e.cleanupStyles&amp;&amp;x(q,H,Object.keys(e.to)),v(n,e))}}function r(){var t=n.data("$$animateCss");if(t){for(var e=1;e&lt;t.length;e++)t[e]();n.removeData("$$animateCss")}}function i(n){n.stopPropagation();var t=n.originalEvent||n;n=t.$manualTimeStamp||t.timeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(n-o,0)&gt;=X&amp;&amp;t&gt;=Y&amp;&amp;(B=!0,f())}if(!L)if(H.parentNode){var o,u=[],l=function(n){if(B)K&amp;&amp;n&amp;&amp;(K=!1,f());else if(K=!n,dn.animationDuration)if(n=D(H,K),K)nn.push(n);else{var t=nn,e=t.indexOf(n);0&lt;=n&amp;&amp;t.splice(e,1)}},c=0&lt;mn&amp;&amp;(dn.transitionDuration&amp;&amp;0===fn.transitionDuration||dn.animationDuration&amp;&amp;0===fn.animationDuration)&amp;&amp;Math.max(fn.animationDelay,fn.transitionDelay);c?s(t,Math.floor(c*mn*1e3),!1):t(),V.resume=function(){l(!0)},V.pause=function(){l(!1)}}else f()}var q={},H=$(n);if(!H||!H.parentNode||!h.enabled())return I();e=m(e);var L,K,B,J,V,G,X,Y,Z,nn=[],tn=n.attr("class"),en=i(e);if(0===e.duration||!l.animations&amp;&amp;!l.transitions)return I();var an=e.event&amp;&amp;E(e.event)?e.event.join(" "):e.event,rn="",on="";an&amp;&amp;e.structural?rn=o(an,"ng-",!0):an&amp;&amp;(rn=an),e.addClass&amp;&amp;(on+=o(e.addClass,"-add")),e.removeClass&amp;&amp;(on.length&amp;&amp;(on+=" "),on+=o(e.removeClass,"-remove")),e.applyClassesEarly&amp;&amp;on.length&amp;&amp;j(n,e);var sn=[rn,on].join(" ").trim(),un=tn+" "+sn,ln=o(sn,"-active"),tn=en.to&amp;&amp;0&lt;Object.keys(en.to).length;if(!(0&lt;(e.keyframeStyle||"").length||tn||sn))return I();var cn,fn;0&lt;e.stagger?(en=parseFloat(e.stagger),fn={transitionDelay:en,animationDelay:en,transitionDuration:0,animationDuration:0}):(cn=g(H,un),fn=C(H,sn,cn,z)),e.$$skipPreparationClasses||a.addClass(n,sn),e.transitionStyle&amp;&amp;(en=[O,e.transitionStyle],A(H,en),nn.push(en)),0&lt;=e.duration&amp;&amp;(en=0&lt;H.style[O].length,en=S(e.duration,en),A(H,en),nn.push(en)),e.keyframeStyle&amp;&amp;(en=[F,e.keyframeStyle],A(H,en),nn.push(en));var mn=fn?0&lt;=e.staggerIndex?e.staggerIndex:t.count(cn):0;(an=0===mn)&amp;&amp;!e.skipBlocking&amp;&amp;y(H,9999);var dn=w(H,un,cn),pn=dn.maxDelay;G=Math.max(pn,0),Y=dn.maxDuration;var vn={};if(vn.hasTransitions=0&lt;dn.transitionDuration,vn.hasAnimations=0&lt;dn.animationDuration,vn.hasTransitionAll=vn.hasTransitions&amp;&amp;"all"==dn.transitionProperty,vn.applyTransitionDuration=tn&amp;&amp;(vn.hasTransitions&amp;&amp;!vn.hasTransitionAll||vn.hasAnimations&amp;&amp;!vn.hasTransitions),vn.applyAnimationDuration=e.duration&amp;&amp;vn.hasAnimations,vn.applyTransitionDelay=T(e.delay)&amp;&amp;(vn.applyTransitionDuration||vn.hasTransitions),vn.applyAnimationDelay=T(e.delay)&amp;&amp;vn.hasAnimations,vn.recalculateTimingStyles=0&lt;on.length,(vn.applyTransitionDuration||vn.applyAnimationDuration)&amp;&amp;(Y=e.duration?parseFloat(e.duration):Y,vn.applyTransitionDuration&amp;&amp;(vn.hasTransitions=!0,dn.transitionDuration=Y,en=0&lt;H.style[O+"Property"].length,nn.push(S(Y,en))),vn.applyAnimationDuration&amp;&amp;(vn.hasAnimations=!0,dn.animationDuration=Y,nn.push([Q,Y+"s"]))),0===Y&amp;&amp;!vn.recalculateTimingStyles)return I();if(null!=e.delay){var hn=parseFloat(e.delay);vn.applyTransitionDelay&amp;&amp;nn.push([W,hn+"s"]),vn.applyAnimationDelay&amp;&amp;nn.push([U,hn+"s"])}return null==e.duration&amp;&amp;0&lt;dn.transitionDuration&amp;&amp;(vn.recalculateTimingStyles=vn.recalculateTimingStyles||an),X=1e3*G,Z=1e3*Y,e.skipBlocking||(vn.blockTransition=0&lt;dn.transitionDuration,vn.blockKeyframeAnimation=0&lt;dn.animationDuration&amp;&amp;0&lt;fn.animationDelay&amp;&amp;0===fn.animationDuration),e.from&amp;&amp;(e.cleanupStyles&amp;&amp;x(q,H,Object.keys(e.from)),p(n,e)),vn.blockTransition||vn.blockKeyframeAnimation?k(Y):e.skipBlocking||y(H,!1),{$$willAnimate:!0,end:u,start:function(){if(!L)return V={end:u,cancel:c,resume:null,pause:null},J=new r(V),b(M),J}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(n){n.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(n,t,e,a,r,i,o){function s(n){return n.replace(/\bng-\S+\b/g,"")}function u(n,t){return q(n)&amp;&amp;(n=n.split(" ")),q(t)&amp;&amp;(t=t.split(" ")),n.filter(function(n){return-1===t.indexOf(n)}).join(" ")}function l(t,a,r){function i(n){var t={},e=$(n).getBoundingClientRect();return _(["width","height","top","left"],function(n){var a=e[n];switch(n){case"top":a+=d.scrollTop;break;case"left":a+=d.scrollLeft}t[n]=Math.floor(a)+"px"}),t}function o(){var t=s(r.attr("class")||""),e=u(t,f),t=u(f,t),e=n(c,{to:i(r),addClass:"ng-anchor-in "+e,removeClass:"ng-anchor-out "+t,delay:!0});return e.$$willAnimate?e:null}function l(){c.remove(),a.removeClass("ng-animate-shim"),r.removeClass("ng-animate-shim")}var c=M($(a).cloneNode(!0)),f=s(c.attr("class")||"");a.addClass("ng-animate-shim"),r.addClass("ng-animate-shim"),c.addClass("ng-anchor"),p.append(c);var m;if(t=function(){var t=n(c,{addClass:"ng-anchor-out",delay:!0,from:i(a)});return t.$$willAnimate?t:null}(),!t&amp;&amp;(m=o(),!m))return l();var v=t||m;return{start:function(){function n(){a&amp;&amp;a.end()}var t,a=v.start();return a.done(function(){return a=null,!m&amp;&amp;(m=o())?(a=m.start(),a.done(function(){a=null,l(),t.complete()}),a):(l(),void t.complete())}),t=new e({end:n,cancel:n})}}}function c(n,t,a,r){var i=m(n,N),o=m(t,N),s=[];if(_(r,function(n){(n=l(a,n.out,n["in"]))&amp;&amp;s.push(n)}),i||o||0!==s.length)return{start:function(){function n(){_(t,function(n){n.end()})}var t=[];i&amp;&amp;t.push(i.start()),o&amp;&amp;t.push(o.start()),_(s,function(n){t.push(n.start())});var a=new e({end:n,cancel:n});return e.all(t,function(n){a.complete(n)}),a}}}function m(t){var e=t.element,a=t.options||{};return t.structural&amp;&amp;(a.event=t.event,a.structural=!0,a.applyClassesEarly=!0,"leave"===t.event&amp;&amp;(a.onDone=a.domOperation)),a.preparationClasses&amp;&amp;(a.event=b(a.event,a.preparationClasses)),t=n(e,a),t.$$willAnimate?t:null}if(!r.animations&amp;&amp;!r.transitions)return N;var d=o[0].body;t=$(a);var p=M(t.parentNode&amp;&amp;11===t.parentNode.nodeType||d.contains(t)?t:d);return f(i),function(n){return n.from&amp;&amp;n.to?c(n.from,n.to,n.classes,n.anchors):m(n)}}]}]).provider("$$animateJs",["$animateProvider",function(n){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,e,a){function r(e){e=E(e)?e:e.split(" ");for(var a=[],r={},i=0;i&lt;e.length;i++){var o=e[i],s=n.$$registeredAnimations[o];s&amp;&amp;!r[o]&amp;&amp;(a.push(t.get(s)),r[o]=!0)}return a}var i=f(a);return function(n,t,a,o){function s(){o.domOperation(),i(n,o)}function u(n,t,a,r,i){switch(a){case"animate":t=[t,r.from,r.to,i];break;case"setClass":t=[t,v,h,i];break;case"addClass":t=[t,v,i];break;case"removeClass":t=[t,h,i];break;default:t=[t,i]}if(t.push(r),n=n.apply(n,t))if(B(n.start)&amp;&amp;(n=n.start()),n instanceof e)n.done(i);else if(B(n))return n;return N}function l(n,t,a,r,i){var o=[];return _(r,function(r){var s=r[i];s&amp;&amp;o.push(function(){var r,i,o=!1,l=function(n){o||(o=!0,(i||N)(n),r.complete(!n))};return r=new e({end:function(){l()},cancel:function(){l(!0)}}),i=u(s,n,t,a,function(n){l(!1===n)}),r})}),o}function c(n,t,a,r,i){var o=l(n,t,a,r,i);if(0===o.length){var s,u;"beforeSetClass"===i?(s=l(n,"removeClass",a,r,"beforeRemoveClass"),u=l(n,"addClass",a,r,"beforeAddClass")):"setClass"===i&amp;&amp;(s=l(n,"removeClass",a,r,"removeClass"),u=l(n,"addClass",a,r,"addClass")),s&amp;&amp;(o=o.concat(s)),u&amp;&amp;(o=o.concat(u))}if(0!==o.length)return function(n){var t=[];return o.length&amp;&amp;_(o,function(n){t.push(n())}),t.length?e.all(t,n):n(),function(n){_(t,function(t){n?t.cancel():t.end()})}}}3===arguments.length&amp;&amp;H(a)&amp;&amp;(o=a,a=null),o=m(o),a||(a=n.attr("class")||"",o.addClass&amp;&amp;(a+=" "+o.addClass),o.removeClass&amp;&amp;(a+=" "+o.removeClass));var f,p,v=o.addClass,h=o.removeClass,g=r(a);if(g.length){var $,C;"leave"==t?(C="leave",$="afterLeave"):(C="before"+t.charAt(0).toUpperCase()+t.substr(1),$=t),"enter"!==t&amp;&amp;"move"!==t&amp;&amp;(f=c(n,t,o,g,C)),p=c(n,t,o,g,$)}if(f||p)return{start:function(){function t(t){i=!0,s(),d(n,o),u.complete(t)}var a,r=[];f&amp;&amp;r.push(function(n){a=f(n)}),r.length?r.push(function(n){s(),n(!0)}):s(),p&amp;&amp;r.push(function(n){a=p(n)});var i=!1,u=new e({end:function(){i||((a||N)(void 0),t(void 0))},cancel:function(){i||((a||N)(!0),t(!0))}});return e.chain(r,t),u}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(n){n.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(n,t){function e(t){return n(t.element,t.event,t.classes,t.options)}return function(n){if(!n.from||!n.to)return e(n);var a=e(n.from),r=e(n.to);return a||r?{start:function(){function n(){return function(){_(e,function(n){n.end()})}}var e=[];a&amp;&amp;e.push(a.start()),r&amp;&amp;e.push(r.start()),t.all(e,function(n){i.complete(n)});var i=new t({end:n(),cancel:n()});return i}}:void 0}}]}])}(window,window.angular);;!function(i,r,a){"use strict";var e="BUTTON A INPUT TEXTAREA SELECT DETAILS SUMMARY".split(" "),n=function(i,r){if(-1!==r.indexOf(i[0].nodeName))return!0};r.module("ngAria",["ng"]).provider("$aria",function(){function i(i,r,e,t){return function(c,o,u){var d=u.$normalize(r);!a[d]||n(o,e)||u[d]||c.$watch(u[i],function(i){i=t?!i:!!i,o.attr(r,i)})}}var a={ariaHidden:!0,ariaChecked:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaMultiline:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(i){a=r.extend(a,i)},this.$get=function(){return{config:function(i){return a[i]},$$watchExpr:i}}}).directive("ngShow",["$aria",function(i){return i.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(i){return i.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngModel",["$aria",function(i){function r(r,a,e){return i.config(a)&amp;&amp;!e.attr(r)}function a(i,r){return!r.attr("role")&amp;&amp;r.attr("type")===i&amp;&amp;"INPUT"!==r[0].nodeName}function t(i,r){var a=i.type,e=i.role;return"checkbox"===(a||e)||"menuitemcheckbox"===e?"checkbox":"radio"===(a||e)||"menuitemradio"===e?"radio":"range"===a||"progressbar"===e||"slider"===e?"range":"textbox"===(a||e)||"TEXTAREA"===r[0].nodeName?"multiline":""}return{restrict:"A",require:"?ngModel",priority:200,compile:function(c,o){var u=t(o,c);return{pre:function(i,r,a,e){"checkbox"===u&amp;&amp;"checkbox"!==a.type&amp;&amp;(e.$isEmpty=function(i){return!1===i})},post:function(t,c,o,d){function l(){return d.$modelValue}function f(){return v?(v=!1,function(i){i=o.value==d.$viewValue,c.attr("aria-checked",i),c.attr("tabindex",0-!i)}):function(i){c.attr("aria-checked",o.value==d.$viewValue)}}function s(){c.attr("aria-checked",!d.$isEmpty(d.$viewValue))}var v=r("tabindex","tabindex",c)&amp;&amp;!n(c,e);switch(u){case"radio":case"checkbox":a(u,c)&amp;&amp;c.attr("role",u),r("aria-checked","ariaChecked",c)&amp;&amp;t.$watch(l,"radio"===u?f():s),v&amp;&amp;c.attr("tabindex",0);break;case"range":if(a(u,c)&amp;&amp;c.attr("role","slider"),i.config("ariaValue")){var $=!c.attr("aria-valuemin")&amp;&amp;(o.hasOwnProperty("min")||o.hasOwnProperty("ngMin")),b=!c.attr("aria-valuemax")&amp;&amp;(o.hasOwnProperty("max")||o.hasOwnProperty("ngMax")),g=!c.attr("aria-valuenow");$&amp;&amp;o.$observe("min",function(i){c.attr("aria-valuemin",i)}),b&amp;&amp;o.$observe("max",function(i){c.attr("aria-valuemax",i)}),g&amp;&amp;t.$watch(l,function(i){c.attr("aria-valuenow",i)})}v&amp;&amp;c.attr("tabindex",0);break;case"multiline":r("aria-multiline","ariaMultiline",c)&amp;&amp;c.attr("aria-multiline",!0)}d.$validators.required&amp;&amp;r("aria-required","ariaRequired",c)&amp;&amp;t.$watch(function(){return d.$error.required},function(i){c.attr("aria-required",!!i)}),r("aria-invalid","ariaInvalid",c)&amp;&amp;t.$watch(function(){return d.$invalid},function(i){c.attr("aria-invalid",!!i)})}}}}}]).directive("ngDisabled",["$aria",function(i){return i.$$watchExpr("ngDisabled","aria-disabled",[])}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(i,r,a,e){r.attr("aria-live")||r.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(i,r){return{restrict:"A",compile:function(a,t){var c=r(t.ngClick,null,!0);return function(r,a,t){n(a,e)||(i.config("bindRoleForClick")&amp;&amp;!a.attr("role")&amp;&amp;a.attr("role","button"),i.config("tabindex")&amp;&amp;!a.attr("tabindex")&amp;&amp;a.attr("tabindex",0),!i.config("bindKeypress")||t.ngKeypress)||a.on("keypress",function(i){function a(){c(r,{$event:i})}var e=i.which||i.keyCode;32!==e&amp;&amp;13!==e||r.$apply(a)})}}}}]).directive("ngDblclick",["$aria",function(i){return function(r,a,t){!i.config("tabindex")||a.attr("tabindex")||n(a,e)||a.attr("tabindex",0)}}])}(window,window.angular);;!function(e,t,n){"use strict";!function(){t.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.gestures","material.core.layout","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.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.fabTrigger","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menu","material.components.menuBar","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.showHide","material.components.select","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.whiteframe","material.components.virtualRepeat"])}(),function(){function e(e,t){if(t.has("$swipe")){var n="You are using the ngTouch module. \nAngular Material already has mobile click, tap, and swipe support... \nngTouch is not supported with Angular Material!";e.warn(n)}}function n(e,t){e.decorator("$$rAF",["$delegate",o]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function o(e){return e.throttle=function(t){var n,o,r,i;return function(){n=arguments,i=this,r=t,o||(o=!0,e(function(){r.apply(i,Array.prototype.slice.call(n)),o=!1}))}},e}t.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.gestures","material.core.theming"]).config(n).run(e),e.$inject=["$log","$injector"],n.$inject=["$provide","$mdThemingProvider"]}(),function(){function e(e){function t(e){return n?"webkit"+e.charAt(0).toUpperCase()+e.substring(1):e}var n=/webkit/i.test(e.vendorPrefix);return{KEY_CODE:{COMMA:188,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"+(n?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(n?" 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)"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs"]}}t.module("material.core").factory("$mdConstant",e),e.$inject=["$sniffer"]}(),function(){function e(e,n){function o(){return[].concat(E)}function r(){return E.length}function i(e){return E.length&amp;&amp;e&gt;-1&amp;&amp;e&lt;E.length}function a(e){return!!e&amp;&amp;i(u(e)+1)}function d(e){return!!e&amp;&amp;i(u(e)-1)}function c(e){return i(e)?E[e]:null}function s(e,t){return E.filter(function(n){return n[e]===t})}function l(e,n){return e?(t.isNumber(n)||(n=E.length),E.splice(n,0,e),u(e)):-1}function m(e){p(e)&amp;&amp;E.splice(u(e),1)}function u(e){return E.indexOf(e)}function p(e){return e&amp;&amp;u(e)&gt;-1}function h(){return E.length?E[0]:null}function f(){return E.length?E[E.length-1]:null}function g(e,o,r,a){r=r||b;for(var d=u(o);;){if(!i(d))return null;var c=d+(e?-1:1),s=null;if(i(c)?s=E[c]:n&amp;&amp;(s=e?f():h(),c=u(s)),null===s||c===a)return null;if(r(s))return s;t.isUndefined(a)&amp;&amp;(a=c),d=c}}var b=function(){return!0};e&amp;&amp;!t.isArray(e)&amp;&amp;(e=Array.prototype.slice.call(e)),n=!!n;var E=e||[];return{items:o,count:r,inRange:i,contains:p,indexOf:u,itemAt:c,findBy:s,add:l,remove:m,first:h,last:f,next:t.bind(null,g,!1),previous:t.bind(null,g,!0),hasPrevious:d,hasNext:a}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.iterator=e,t}])}])}(),function(){function e(e,n,o){function r(e){var n=u[e];t.isUndefined(n)&amp;&amp;(n=u[e]=i(e));var o=h[n];return t.isUndefined(o)&amp;&amp;(o=a(n)),o}function i(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}function a(e){var t=p[e];return t||(t=p[e]=o.matchMedia(e)),t.addListener(d),h[t.media]=!!t.matches}function d(e){n.$evalAsync(function(){h[e.media]=!!e.matches})}function c(e){return p[e]}function s(t,n){for(var o=0;o&lt;e.MEDIA_PRIORITY.length;o++){var r=e.MEDIA_PRIORITY[o];if(p[u[r]].matches){var i=m(t,n+"-"+r);if(t[i])return t[i]}}return t[m(t,n)]}function l(n,o,r){var i=[];return n.forEach(function(n){var a=m(o,n);t.isDefined(o[a])&amp;&amp;i.push(o.$observe(a,t.bind(void 0,r,null)));for(var d in e.MEDIA)a=m(o,n+"-"+d),t.isDefined(o[a])&amp;&amp;i.push(o.$observe(a,t.bind(void 0,r,d)))}),function(){i.forEach(function(e){e()})}}function m(e,t){return f[t]||(f[t]=e.$normalize(t))}var u={},p={},h={},f={};return r.getResponsiveAttribute=s,r.getQuery=c,r.watchResponsiveAttributes=l,r}t.module("material.core").factory("$mdMedia",e),e.$inject=["$mdConstant","$rootScope","$window"]}(),function(){function o(o,i,a,d,c,s,l,m,u){function p(e){return e[0]||e}var h=s.startSymbol(),f=s.endSymbol(),g="{{"===h&amp;&amp;"}}"===f,b=function(e,n,o){var r=!1;if(e&amp;&amp;e.length){var i=u.getComputedStyle(e[0]);r=t.isDefined(i[n])&amp;&amp;(!o||i[n]==o)}return r},E={dom:{},now:e.performance?t.bind(e.performance,e.performance.now):Date.now||function(){return(new Date).getTime()},clientRect:function(e,t,n){var o=p(e);t=p(t||o.offsetParent||document.body);var r=o.getBoundingClientRect(),i=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:r.left-i.left,top:r.top-i.top,width:r.width,height:r.height}},offsetRect:function(e,t){return E.clientRect(e,t,!0)},nodesToArray:function(e){e=e||[];for(var t=[],n=0;n&lt;e.length;++n)t.push(e.item(n));return t},scrollTop:function(e){e=t.element(e||o[0].body);var r=e[0]==o[0].body?o[0].body:n,i=r?r.scrollTop+r.parentElement.scrollTop:0;return i||Math.abs(e[0].getBoundingClientRect().top)},findFocusTarget:function(e,n){function o(e,n){var o,r=e[0].querySelectorAll(n);if(r&amp;&amp;r.length){var i=/\s*\[?([\-a-z]*)\]?\s*/i,a=i.exec(n),d=a?a[1]:null;r.length&amp;&amp;t.forEach(r,function(e){e=t.element(e);var n=e[0].getAttribute(d),r=!n||!E.validateScope(e)||e.scope().$eval(n)!==!1;r&amp;&amp;(o=e)})}return o}var r,i="[md-autofocus]";return r=o(e,n||i),r||n==i||(r=o(e,"[md-auto-focus]"),r||(r=o(e,i))),r},disableScrollAround:function(e,n){function r(e){function n(e){}function r(e){e.preventDefault()}e=t.element(e||d)[0];var i=50,a=t.element('&lt;div class="md-scroll-mask" style="z-index: '+i+'"&gt;  &lt;div class="md-scroll-mask-bar"&gt;&lt;/div&gt;&lt;/div&gt;');return e.appendChild(a[0]),a.on("wheel",r),a.on("touchmove",r),o.on("keydown",n),function(){a.off("wheel"),a.off("touchmove"),a[0].parentNode.removeChild(a[0]),o.off("keydown",n),delete E.disableScrollAround._enableScrolling}}function i(){var e=d.parentNode,t=e.getAttribute("style")||"",n=d.getAttribute("style")||"",o=E.scrollTop(d),r=d.clientWidth;return d.scrollHeight&gt;d.clientHeight+1&amp;&amp;(a(d,{position:"fixed",width:"100%",top:-o+"px"}),a(e,{overflowY:"scroll"})),d.clientWidth&lt;r&amp;&amp;a(d,{overflow:"hidden"}),function(){d.setAttribute("style",n),e.setAttribute("style",t),d.scrollTop=o,e.scrollTop=o}}function a(e,t){for(var n in t)e.style[n]=t[n]}if(E.disableScrollAround._count=E.disableScrollAround._count||0,++E.disableScrollAround._count,E.disableScrollAround._enableScrolling)return E.disableScrollAround._enableScrolling;e=t.element(e);var d=o[0].body,c=i(),s=r(n);return E.disableScrollAround._enableScrolling=function(){--E.disableScrollAround._count||(c(),s(),delete E.disableScrollAround._enableScrolling)}},enableScrolling:function(){var e=this.disableScrollAround._enableScrolling;e&amp;&amp;e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===n){var e=t.element('&lt;div style="width: 100%; z-index: -1; position: absolute; height: 35px; overflow-y: scroll"&gt;&lt;div style="height: 60px;"&gt;&lt;/div&gt;&lt;/div&gt;');o[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 r(e){e.target===n&amp;&amp;e.$focus&amp;&amp;(n.focus(),e.stopImmediatePropagation(),e.preventDefault(),n.removeEventListener("click",r))},!0);var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!1,!0,e,{},0,0,0,0,!1,!1,!1,!1,0,null),o.$material=!0,o.$focus=!0,n.dispatchEvent(o)},createBackdrop:function(e,t){return a(E.supplant('&lt;md-backdrop class="{0}"&gt;',[t]))(e)},supplant:function(e,t,n){return n=n||/\{([^\{\}]*)\}/g,e.replace(n,function(e,n){var o=n.split("."),r=t;try{for(var i in o)o.hasOwnProperty(i)&amp;&amp;(r=r[o[i]])}catch(a){r=e}return"string"==typeof r||"number"==typeof r?r: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,o,r){var a;return function(){var d=o,c=Array.prototype.slice.call(arguments);i.cancel(a),a=i(function(){a=n,e.apply(d,c)},t||10,r)}},throttle:function(e,t){var n;return function(){var o=this,r=arguments,i=E.now();(!n||i-n&gt;t)&amp;&amp;(e.apply(o,r),n=i)}},time:function(e){var t=E.now();return e(),E.now()-t},valueOnUse:function(e,t,n){var o=null,r=Array.prototype.slice.call(arguments),i=r.length&gt;3?r.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===o&amp;&amp;(o=n.apply(e,i)),o}})},nextUid:function(){return""+r++},validateScope:function(e){var n=e&amp;&amp;t.isDefined(e.scope());return n||l.warn("element.scope() is not available when 'debug mode' == false. @see https://docs.angularjs.org/guide/production!"),n},disconnectScope:function(e){if(e&amp;&amp;e.$root!==e&amp;&amp;!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&amp;&amp;(t.$$childHead=e.$$nextSibling),t.$$childTail===e&amp;&amp;(t.$$childTail=e.$$prevSibling),e.$$prevSibling&amp;&amp;(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&amp;&amp;(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&amp;&amp;e.$root!==e&amp;&amp;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,o){if(e instanceof t.element&amp;&amp;(e=e[0]),n=n.toUpperCase(),o&amp;&amp;(e=e.parentNode),!e)return null;do if(e.nodeName===n)return e;while(e=e.parentNode);return null},elementContains:function(n,o){var r=e.Node&amp;&amp;e.Node.prototype&amp;&amp;Node.prototype.contains,i=r?t.bind(n,n.contains):t.bind(n,function(e){return n===o||!!(16&amp;this.compareDocumentPosition(e))});return i(o)},extractElementByName:function(e,n,o,r){function i(e){return a(e)||(o?d(e):null)}function a(e){if(e)for(var t=0,o=e.length;o&gt;t;t++)if(e[t].nodeName.toLowerCase()===n)return e[t];return null}function d(e){var t;if(e)for(var n=0,o=e.length;o&gt;n;n++){var r=e[n];if(!t)for(var a=0,d=r.childNodes.length;d&gt;a;a++)t=t||i([r.childNodes[a]])}return t}var c=i(e);return!c&amp;&amp;r&amp;&amp;l.warn(E.supplant("Unable to find node '{0}' in element '{1}'.",[n,e[0].outerHTML])),t.element(c||e)},initOptionalProperties:function(e,n,o){o=o||{},t.forEach(e.$$isolateBindings,function(r,i){if(r.optional&amp;&amp;t.isUndefined(e[i])){var a=t.isDefined(n[r.attrName]);e[i]=t.isDefined(o[i])?o[i]:a}})},nextTick:function(e,t,n){function o(){var e=n&amp;&amp;n.$$destroyed,t=e?[]:r.queue,o=e?null:r.digest;r.queue=[],r.timeout=null,r.digest=!1,t.forEach(function(e){e()}),o&amp;&amp;d.$digest()}var r=E.nextTick,a=r.timeout,c=r.queue||[];return c.push(e),null==t&amp;&amp;(t=!0),r.digest=r.digest||t,r.queue=c,a||(r.timeout=i(o,0,!1))},processTemplate:function(e){return g?e:e&amp;&amp;t.isString(e)?e.replace(/\{\{/g,h).replace(/}}/g,f):e},getParentWithPointerEvents:function(e){for(var t=e.parent();b(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&amp;&amp;t!==m[0]&amp;&amp;t!==document.body&amp;&amp;"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},hasComputedStyle:b};return E.dom.animator=c(E),E}var r=0;t.module("material.core").factory("$mdUtil",o),o.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window"],t.element.prototype.focus=t.element.prototype.focus||function(){return this.length&amp;&amp;this[0].focus(),this},t.element.prototype.blur=t.element.prototype.blur||function(){return this.length&amp;&amp;this[0].blur(),this}}(),function(){function e(e,n,o){function r(e,o,r){var i=t.element(e)[0]||e;!i||i.hasAttribute(o)&amp;&amp;0!==i.getAttribute(o).length||c(i,o)||(r=t.isString(r)?r.trim():"",r.length?e.attr(o,r):n.warn('ARIA: Attribute "',o,'", required for accessibility, is missing on node:',i))}function i(t,n,o){e(function(){r(t,n,o())})}function a(e,t){i(e,t,function(){return d(e)})}function d(e){return e.text().trim()}function c(e,t){function n(e){var t=e.currentStyle?e.currentStyle:o.getComputedStyle(e);return"none"===t.display}var r=e.hasChildNodes(),i=!1;if(r)for(var a=e.childNodes,d=0;d&lt;a.length;d++){var c=a[d];1===c.nodeType&amp;&amp;c.hasAttribute(t)&amp;&amp;(n(c)||(i=!0))}return i}return{expect:r,expectAsync:i,expectWithText:a}}t.module("material.core").service("$mdAria",e),e.$inject=["$$rAF","$log","$window"]}(),function(){function e(e,n,o,r,i,a){this.compile=function(d){var c=d.templateUrl,s=d.template||"",l=d.controller,m=d.controllerAs,u=t.extend({},d.resolve||{}),p=t.extend({},d.locals||{}),h=d.transformTemplate||t.identity,f=d.bindToController;return t.forEach(u,function(e,n){t.isString(e)?u[n]=o.get(e):u[n]=o.invoke(e)}),t.extend(u,p),c?u.$template=n.get(c,{cache:a}).then(function(e){return e.data}):u.$template=e.when(s),e.all(u).then(function(e){var n,o=h(e.$template,d),a=d.element||t.element("&lt;div&gt;").html(o.trim()).contents(),c=r(a);return n={locals:e,element:a,link:function(o){if(e.$scope=o,l){var r=i(l,e,!0);f&amp;&amp;t.extend(r.instance,e);var d=r();a.data("$ngControllerController",d),a.children().data("$ngControllerController",d),m&amp;&amp;(o[m]=d),n.controller=d}return c(o)}}})}}t.module("material.core").service("$mdCompiler",e),e.$inject=["$q","$http","$injector","$compile","$controller","$templateCache"]}(),function(){function n(){}function o(n,o,r){function i(e){return function(t,n){n.distance&lt;this.state.options.maxDistance&amp;&amp;this.dispatchEvent(t,e,n)}}function a(e,t,n){var o=h[t.replace(/^\$md./,"")];if(!o)throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(h).join(", "));return o.registerElement(e,n)}function c(e,o){var r=new n(e);return t.extend(r,o),h[e]=r,g}var s=navigator.userAgent||navigator.vendor||e.opera,m=s.match(/ipad|iphone|ipod/i),u=s.match(/android/i),p="undefined"!=typeof e.jQuery&amp;&amp;t.element===e.jQuery,g={handler:c,register:a,isHijackingClicks:(m||u)&amp;&amp;!p&amp;&amp;!f};if(g.isHijackingClicks){var b=6;g.handler("click",{options:{maxDistance:b},onEnd:i("click")}),g.handler("focus",{options:{maxDistance:b},onEnd:function(e,t){function n(e){var t=["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"];return"-1"!=e.getAttribute("tabindex")&amp;&amp;!e.hasAttribute("DISABLED")&amp;&amp;(e.hasAttribute("tabindex")||e.hasAttribute("href")||-1!=t.indexOf(e.nodeName))}t.distance&lt;this.state.options.maxDistance&amp;&amp;n(e.target)&amp;&amp;(this.dispatchEvent(e,"focus",t),e.target.focus())}}),g.handler("mouseup",{options:{maxDistance:b},onEnd:i("mouseup")}),g.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})}return g.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(){r.cancel(this.state.timeout)},onStart:function(e,n){return this.state.registeredParent?(this.state.pos={x:n.x,y:n.y},void(this.state.timeout=r(t.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1))):this.cancel()},onMove:function(e,t){e.preventDefault();var n=this.state.pos.x-t.x,o=this.state.pos.y-t.y;Math.sqrt(n*n+o*o)&gt;this.options.maxDistance&amp;&amp;this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,o;e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)&gt;this.state.options.minDistance,o=Math.abs(t.distanceY)&gt;this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)&gt;this.state.options.minDistance,o=Math.abs(t.distanceX)&gt;this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=d(e),l(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):o&amp;&amp;this.cancel())},dispatchDragMove:o.throttle(function(e){this.state.isRunning&amp;&amp;(l(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&amp;&amp;(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)&gt;this.state.options.minVelocity&amp;&amp;Math.abs(t.distanceX)&gt;this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)&gt;this.state.options.minVelocity&amp;&amp;Math.abs(t.distanceY)&gt;this.state.options.minDistance&amp;&amp;(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function r(e){this.name=e,this.state={}}function i(){function n(e,n,o){o=o||u;var r=new t.element.Event(n);r.$material=!0,r.pointer=o,r.srcEvent=e,t.extend(r,{clientX:o.x,clientY:o.y,screenX:o.x,screenY:o.y,pageX:o.x,pageY:o.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),t.element(o.target).trigger(r)}function o(t,n,o){o=o||u;var r;"click"===n||"mouseup"==n||"mousedown"==n?(r=document.createEvent("MouseEvents"),r.initMouseEvent(n,!0,!0,e,t.detail,o.x,o.y,o.x,o.y,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget||null)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(n,!0,!0,{})),r.$material=!0,r.pointer=o,r.srcEvent=t,o.target.dispatchEvent(r)}var i="undefined"!=typeof e.jQuery&amp;&amp;t.element===e.jQuery;return r.prototype={options:{},dispatchEvent:i?n:o,onStart:t.noop,onMove:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(e,n){if(!this.state.isRunning){var o=this.getNearestParent(e.target),r=o&amp;&amp;o.$mdGesture[this.name]||{};this.state={isRunning:!0,options:t.extend({},this.options,r),registeredParent:o},this.onStart(e,n)}},move:function(e,t){this.state.isRunning&amp;&amp;this.onMove(e,t)},end:function(e,t){this.state.isRunning&amp;&amp;(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[o.name],e.off("$destroy",n)}var o=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",n),n}},r}function a(e,n){function o(e){var t=!e.clientX&amp;&amp;!e.clientY;t||e.$material||e.isIonicTap||s(e)||(e.preventDefault(),e.stopPropagation())}function r(e){var t=0===e.clientX&amp;&amp;0===e.clientY;t||e.$material||e.isIonicTap||s(e)?(g=null,"label"==e.target.tagName.toLowerCase()&amp;&amp;(g={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),g=null)}function i(e,t){var o;for(var r in h)o=h[r],o instanceof n&amp;&amp;("start"===e&amp;&amp;o.cancel(),o[e](t,u))}function a(e){if(!u){var t=+Date.now();p&amp;&amp;!c(e,p)&amp;&amp;t-p.endTime&lt;1500||(u=d(e),i("start",e))}}function m(e){u&amp;&amp;c(e,u)&amp;&amp;(l(e,u),i("move",e))}function f(e){u&amp;&amp;c(e,u)&amp;&amp;(l(e,u),u.endTime=+Date.now(),i("end",e),p=u,u=null)}document.contains||(document.contains=function(e){return document.body.contains(e)}),!b&amp;&amp;e.isHijackingClicks&amp;&amp;(document.addEventListener("click",r,!0),document.addEventListener("mouseup",o,!0),document.addEventListener("mousedown",o,!0),document.addEventListener("focus",o,!0),b=!0);var E="mousedown touchstart pointerdown",v="mousemove touchmove pointermove",M="mouseup mouseleave touchend touchcancel pointerup pointercancel";t.element(document).on(E,a).on(v,m).on(M,f).on("$$mdGestureReset",function(){p=u=null})}function d(e){var t=m(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 c(e,t){return e&amp;&amp;t&amp;&amp;e.type.charAt(0)===t.type}function s(e){return g&amp;&amp;g.x==e.x&amp;&amp;g.y==e.y}function l(e,t){var n=m(e),o=t.x=n.pageX,r=t.y=n.pageY;t.distanceX=o-t.startX,t.distanceY=r-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=t.distanceX&gt;0?"right":t.distanceX&lt;0?"left":"",t.directionY=t.distanceY&gt;0?"down":t.distanceY&lt;0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function m(e){return e=e.originalEvent||e,e.touches&amp;&amp;e.touches[0]||e.changedTouches&amp;&amp;e.changedTouches[0]||e}var u,p,h={},f=!1,g=null,b=!1;t.module("material.core.gestures",[]).provider("$mdGesture",n).factory("$$MdGestureHandler",i).run(a),n.prototype={skipClickHijack:function(){return f=!0},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,n){return new o(e,t,n)}]},o.$inject=["$$MdGestureHandler","$$rAF","$timeout"],a.$inject=["$mdGesture","$$MdGestureHandler"]}(),function(){function e(){function e(e){function n(e){return c.optionsFactory=e.options,c.methods=(e.methods||[]).concat(a),s}function o(e,t){return d[e]=t,s}function r(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")&gt;-1)throw new Error("Method '_options' in "+e+" is reserved!");return c.presets[t]={methods:n.methods.concat(a),optionsFactory:n.options,argOption:n.argOption},s}function i(n,o){function r(e){return e=e||{},e._options&amp;&amp;(e=e._options),m.show(t.extend({},l,e))}function i(e){return m.destroy(e)}function a(t,n){var r={};return r[e]=u,o.invoke(t||function(){return n},{},r)}var s,l,m=n(),u={hide:m.hide,cancel:m.cancel,show:r,destroy:i};return s=c.methods||[],l=a(c.optionsFactory,{}),t.forEach(d,function(e,t){u[t]=e}),t.forEach(c.presets,function(e,n){function o(e){this._options=t.extend({},r,e)}var r=a(e.optionsFactory,{}),i=(e.methods||[]).concat(s);if(t.extend(r,{$type:n}),t.forEach(i,function(e){o.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption){var d="show"+n.charAt(0).toUpperCase()+n.slice(1);u[d]=function(e){var t=u[n](e);return u.show(t)}}u[n]=function(n){return arguments.length&amp;&amp;e.argOption&amp;&amp;!t.isObject(n)&amp;&amp;!t.isArray(n)?(new o)[e.argOption](n):new o(n)}}),u}var a=["onHide","onShow","onRemove"],d={},c={presets:{}},s={setDefaults:n,addPreset:r,addMethod:o,$get:i};return s.addPreset("build",{methods:["controller","controllerAs","resolve","template","templateUrl","themable","transformTemplate","parent"]}),i.$inject=["$$interimElement","$injector"],s}function o(e,o,r,i,a,d,c,s,l,m,u){return function(){function p(e){e=e||{};var t=new b(e||{}),n=!e.skipHide&amp;&amp;M.length?E.hide():o.when(!0);return n["finally"](function(){M.push(t),t.show()["catch"](function(e){return e})}),t.deferred.promise}function h(e,t){function r(n){return n.remove(e,!1,t||{})["catch"](function(e){return e}),n.deferred.promise}if(!M.length)return o.when(e);if(t=t||{},t.closeAll){var i=o.all(M.reverse().map(r));return M=[],i}if(t.closeTo!==n)return o.all(M.splice(t.closeTo).map(r));var a=M.pop();return r(a)}function f(e,t){var n=M.shift();return n?(n.remove(e,!0,t||{})["catch"](function(e){return e}),n.deferred.promise):o.when(e)}function g(e){var n=e?null:M.shift(),r=t.element(e).length?t.element(e)[0].parentNode:null;if(r){var i=M.filter(function(e){var t=e.options.element[0];return t===r});i.length&gt;0&amp;&amp;(n=i[0],M.splice(M.indexOf(n),1))}return n?n.remove(v,!1,{$destroy:!0}):o.when(v)}function b(u){function p(){return o(function(e,t){function n(e){C.deferred.reject(e),t(e)}g(u).then(function(t){A=b(t,u),T=$(A,u,t.controller).then(e,n)},n)})}function h(e,n,r){function i(e){C.deferred.resolve(e)}function a(e){C.deferred.reject(e)}return A?(u=t.extend(u||{},r||{}),u.cancelAutoHide&amp;&amp;u.cancelAutoHide(),u.element.triggerHandler("$mdInterimElementRemove"),u.$destroy===!0?y(u.element,u).then(function(){n&amp;&amp;a(e)||i(e)}):(o.when(T)["finally"](function(){y(u.element,u).then(function(){n&amp;&amp;a(e)||i(e)},a)}),C.deferred.promise)):o.when(!1)}function f(e){return e=e||{},e.template&amp;&amp;(e.template=s.processTemplate(e.template)),t.extend({preserveScope:!1,cancelAutoHide:t.noop,scope:e.scope||i.$new(e.isolateScope),onShow:function(e,t,n){return c.enter(t,n.parent)},onRemove:function(e,t){return t&amp;&amp;c.leave(t)||o.when()}},e)}function g(e){var t=e.skipCompile?null:l.compile(e);return t||o(function(t){t({locals:{},link:function(){return e.element}})})}function b(e,n){t.extend(e.locals,n);var o=e.link(n.scope);return n.element=o,n.parent=v(o,n),n.themable&amp;&amp;m(o),o}function v(n,o){var r=o.parent;if(r=t.isFunction(r)?r(o.scope,n,o):t.isString(r)?t.element(e[0].querySelector(r)):t.element(r),!(r||{}).length){var i;return d[0]&amp;&amp;d[0].querySelector&amp;&amp;(i=d[0].querySelector(":not(svg) &gt; body")),i||(i=d[0]),"#comment"==i.nodeName&amp;&amp;(i=e[0].body),t.element(i)}return r}function M(){var e,o=t.noop;u.hideDelay&amp;&amp;(e=a(E.hide,u.hideDelay),o=function(){a.cancel(e)}),u.cancelAutoHide=function(){o(),u.cancelAutoHide=n}}function $(e,n,r){var i=n.onShowing||t.noop,a=n.onComplete||t.noop;return i(n.scope,e,n,r),o(function(t,i){try{o.when(n.onShow(n.scope,e,n,r)).then(function(){a(n.scope,e,n),M(),t(e)},i)}catch(d){i(d.message)}})}function y(e,n){var o=n.onRemoving||t.noop;return r(function(t,i){try{var a=r.when(n.onRemove(n.scope,e,n)||!0);o(e,a),1==n.$destroy?t(e):a.then(function(){!n.preserveScope&amp;&amp;n.scope&amp;&amp;n.scope.$destroy(),t(e)},i)}catch(d){i(d.message)}})}var C,A,T=o.when(!0);return u=f(u),C={options:u,deferred:o.defer(),show:p,remove:h}}var E,v=!1,M=[];return E={show:p,hide:h,cancel:f,destroy:g,$injector_:u}}}return e.$get=o,o.$inject=["$document","$q","$$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector"],e}t.module("material.core").provider("$$interimElement",e)}(),function(){!function(){function e(e){function a(e){return e.replace(c,"").replace(s,function(e,t,n,o){return o?n.toUpperCase():n})}var c=/^((?:x|data)[\:\-_])/i,s=/([\:\-\_]+(.))/g,l=["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl"],m=["layout","flex","flex-order","flex-offset","layout-align"],u=["show","hide","layout-padding","layout-margin"];t.forEach(l,function(n){t.forEach(m,function(t){var o=n?t+"-"+n:t;e.directive(a(o),r(o))}),t.forEach(u,function(t){var o=n?t+"-"+n:t;e.directive(a(o),i(o))})}),e.directive("mdLayoutCss",n).directive("ngCloak",o("ng-cloak")).directive("layoutWrap",i("layout-wrap")).directive("layoutNoWrap",i("layout-no-wrap")).directive("layoutFill",i("layout-fill")).directive("layoutLtMd",d("layout-lt-md",!0)).directive("layoutLtLg",d("layout-lt-lg",!0)).directive("flexLtMd",d("flex-lt-md",!0)).directive("flexLtLg",d("flex-lt-lg",!0)).directive("layoutAlignLtMd",d("layout-align-lt-md")).directive("layoutAlignLtLg",d("layout-align-lt-lg")).directive("flexOrderLtMd",d("flex-order-lt-md")).directive("flexOrderLtLg",d("flex-order-lt-lg")).directive("offsetLtMd",d("flex-offset-lt-md")).directive("offsetLtLg",d("flex-offset-lt-lg")).directive("hideLtMd",d("hide-lt-md")).directive("hideLtLg",d("hide-lt-lg")).directive("showLtMd",d("show-lt-md")).directive("showLtLg",d("show-lt-lg"))}function n(){return{restrict:"A",priority:"900",compile:function(e,n){return A.enabled=!1,t.noop}}}function o(e){return["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(o){return A.enabled?(o.addClass(e),function(t,o){n(function(){o.removeClass(e)},10,!1)}):t.noop}}}]}function r(e){function n(t,n,o){var r=a(n,e,o),i=o.$observe(o.$normalize(e),r);r(u(e,o,"")),t.$on("$destroy",function(){i()})}return["$mdUtil","$interpolate","$log",function(o,r,i){return f=o,g=r,b=i,{restrict:"A",compile:function(o,r){var i;return A.enabled&amp;&amp;(c(e,r,o,b),s(e,u(e,r,""),l(o,e,r)),i=n),i||t.noop}}}]}function i(e){function n(t,n){n.addClass(e)}return["$mdUtil","$interpolate","$log",function(o,r,i){return f=o,g=r,b=i,{restrict:"A",compile:function(o,r){var i;return A.enabled&amp;&amp;(s(e,u(e,r,""),l(o,e,r)),n(null,o),i=n),i||t.noop}}}]}function a(e,n){var o;return function(r){var i=s(n,r||"");t.isDefined(i)&amp;&amp;(o&amp;&amp;e.removeClass(o),o=i?n+"-"+i.replace(v,"-"):n,e.addClass(o))}}function d(e){var n=e.split("-");return["$log",function(o){return o.warn(e+"has been deprecated. Please use a `"+n[0]+"-gt-&lt;xxx&gt;` variant."),t.noop}]}function c(e,t,n,o){var r,i,a,d=n[0].nodeName.toLowerCase();switch(e.replace(E,"")){case"flex":("md-button"==d||"fieldset"==d)&amp;&amp;(i="&lt;"+d+" "+e+"&gt;&lt;/"+d+"&gt;",a="https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers",r="Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",o.warn(f.supplant(r,[i,a])))}}function s(e,n,o){var r=n;if(!m(n)){switch(e.replace(E,"")){case"layout":p(n,$)||(n=$[0]);break;case"flex":p(n,M)||isNaN(n)&amp;&amp;(n="");break;case"flex-offset":case"flex-order":(!n||isNaN(+n))&amp;&amp;(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-no-wrap":n=""}n!=r&amp;&amp;(o||t.noop)(n)}return n}function l(e,t,n){return function(o){m(o)||(e.attr(t,o),n[n.$normalize(t)]=o)}}function m(e){return(e||"").indexOf(g.startSymbol())&gt;-1}function u(e,t,n){var o=t.$normalize(e);return t[o]?t[o].replace(v,"-"):n||null}function p(e,t,n){e=n&amp;&amp;e?e.replace(v,n):e;var o=!1;return e&amp;&amp;t.forEach(function(t){t=n?t.replace(v,n):t,o=o||t===e}),o}function h(e){var t,n={main:"start",cross:"stretch"};return e=e||"",(0==e.indexOf("-")||0==e.indexOf(" "))&amp;&amp;(e="none"+e),t=e.toLowerCase().trim().replace(v,"-").split("-"),t.length&amp;&amp;"space"===t[0]&amp;&amp;(t=[t[0]+"-"+t[1],t[2]]),t.length&gt;0&amp;&amp;(n.main=t[0]||n.main),t.length&gt;1&amp;&amp;(n.cross=t[1]||n.cross),y.indexOf(n.main)&lt;0&amp;&amp;(n.main="start"),C.indexOf(n.cross)&lt;0&amp;&amp;(n.cross="stretch"),n}var f,g,b,E=/(-gt)?-(sm|md|lg)/g,v=/\s+/g,M=["grow","initial","auto","none","noshrink"],$=["row","column"],y=["","start","center","end","stretch","space-around","space-between"],C=["","start","center","end","stretch"],A={enabled:!0,breakpoints:[]};e(t.module("material.core.layout",["ng"]))}()}(),function(){function e(e,n){function o(e){return e&amp;&amp;""!==e}var r,i=[],a={};return r={notFoundError:function(t){e.error("No instance found for handle",t)},getInstances:function(){return i},get:function(e){if(!o(e))return null;var t,n,r;for(t=0,n=i.length;n&gt;t;t++)if(r=i[t],r.$$mdHandle===e)return r;return null},register:function(e,n){function o(){var t=i.indexOf(e);-1!==t&amp;&amp;i.splice(t,1)}function r(){var t=a[n];t&amp;&amp;(t.resolve(e),delete a[n])}return n?(e.$$mdHandle=n,i.push(e),r(),o):t.noop},when:function(e){if(o(e)){var t=n.defer(),i=r.get(e);return i?t.resolve(i):a[e]=t,t.promise}return n.reject("Invalid `md-component-id` value.")}}}t.module("material.core").factory("$mdComponentRegistry",e),
e.$inject=["$log","$q"]}(),function(){!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(o,r,i){return i=t.extend(n(r),i),e.attach(o,r,i)}}}t.module("material.core").factory("$mdButtonInkRipple",e),e.$inject=["$mdInkRipple"]}()}(),function(){!function(){function e(e){function n(n,o,r){return e.attach(n,o,t.extend({center:!0,dimBackground:!1,fitRipple:!0},r))}return{attach:n}}t.module("material.core").factory("$mdCheckboxInkRipple",e),e.$inject=["$mdInkRipple"]}()}(),function(){!function(){function e(e){function n(n,o,r){return e.attach(n,o,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},r))}return{attach:n}}t.module("material.core").factory("$mdListInkRipple",e),e.$inject=["$mdInkRipple"]}()}(),function(){function e(e,n){return{controller:t.noop,link:function(t,o,r){r.hasOwnProperty("mdInkRippleCheckbox")?n.attach(t,o):e.attach(t,o)}}}function n(e){function n(n,r,i){return r.controller("mdNoInk")?t.noop:e.instantiate(o,{$scope:n,$element:r,rippleOptions:i})}return{attach:n}}function o(e,n,o,r,i,a){this.$window=r,this.$timeout=i,this.$mdUtil=a,this.$scope=e,this.$element=n,this.options=o,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)&amp;&amp;(e.mousedown=!1,e.$mdUtil.nextTick(t.bind(e,n),!1))}function i(){return{controller:t.noop}}t.module("material.core").factory("$mdInkRipple",n).directive("mdInkRipple",e).directive("mdNoInk",i).directive("mdNoBar",i).directive("mdNoStretch",i);var a=450;e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],n.$inject=["$injector"],o.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil"],o.prototype.color=function(e){function n(){var e=o.options&amp;&amp;o.options.colorElement?o.options.colorElement:[],t=e.length?e[0]:o.$element[0];return t?o.$window.getComputedStyle(t).color:"rgb(0,0,0)"}var o=this;return t.isDefined(e)&amp;&amp;(o._color=o._parseColor(e)),o._color||o._parseColor(o.inkRipple())||o._parseColor(n())},o.prototype.calculateColor=function(){return this.color()},o.prototype._parseColor=function(e,t){function n(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,o=t.substr(0,n),r=t.substr(n,n),i=t.substr(2*n);return 1===n&amp;&amp;(o+=o,r+=r,i+=i),"rgba("+parseInt(o,16)+","+parseInt(r,16)+","+parseInt(i,16)+",0.1)"}function o(e){return e.replace(")",", 0.1)").replace("(","a(")}return t=t||1,e?0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?o(e):0===e.indexOf("#")?n(e):void 0:void 0},o.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))},o.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&amp;&amp;(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,o=e.clientY-t.top;this.createRipple(n,o)}else this.createRipple(e.offsetX,e.offsetY)},o.prototype.handleMouseup=function(){r(this,this.clearRipples)},o.prototype.handleTouchmove=function(){r(this,this.deleteRipples)},o.prototype.deleteRipples=function(){for(var e=0;e&lt;this.ripples.length;e++)this.ripples[e].remove()},o.prototype.clearRipples=function(){for(var e=0;e&lt;this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},o.prototype.createContainer=function(){var e=t.element('&lt;div class="md-ripple-container"&gt;&lt;/div&gt;');return this.$element.append(e),e},o.prototype.clearTimeout=function(){this.timeout&amp;&amp;(this.$timeout.cancel(this.timeout),this.timeout=null)},o.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&amp;&amp;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},o.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},o.prototype.createRipple=function(e,n){function o(e){return e?e.replace("rgba","rgb").replace(/,[^\),]+\)/,")"):"rgb(0,0,0)"}function r(e,t,n){return e?Math.max(t,n):Math.sqrt(Math.pow(t,2)+Math.pow(n,2))}if(this.isRippleAllowed()){var i=this,d=t.element('&lt;div class="md-ripple"&gt;&lt;/div&gt;'),c=this.$element.prop("clientWidth"),s=this.$element.prop("clientHeight"),l=2*Math.max(Math.abs(c-e),e),m=2*Math.max(Math.abs(s-n),n),u=r(this.options.fitRipple,l,m),p=this.calculateColor();d.css({left:e+"px",top:n+"px",background:"black",width:u+"px",height:u+"px",backgroundColor:o(p),borderColor:o(p)}),this.lastRipple=d,this.clearTimeout(),this.timeout=this.$timeout(function(){i.clearTimeout(),i.mousedown||i.fadeInComplete(d)},.35*a,!1),this.options.dimBackground&amp;&amp;this.container.css({backgroundColor:p}),this.container.append(d),this.ripples.push(d),d.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){d.addClass("md-ripple-scaled md-ripple-active"),i.$timeout(function(){i.clearRipples()},a,!1)},!1)}},o.prototype.fadeInComplete=function(e){this.lastRipple===e?this.timeout||this.mousedown||this.removeRipple(e):this.removeRipple(e)},o.prototype.removeRipple=function(e){var t=this,n=this.ripples.indexOf(e);0&gt;n||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),0===this.ripples.length&amp;&amp;this.container.css({backgroundColor:""}),this.$timeout(function(){t.fadeOutComplete(e)},a,!1))},o.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){!function(){function e(e){function n(n,o,r){return e.attach(n,o,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},r))}return{attach:n}}t.module("material.core").factory("$mdTabInkRipple",e),e.$inject=["$mdInkRipple"]}()}(),function(){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:"600 700 800 900",contrastStrongLightColors:"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",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",1e3:"#000000",A100:"#ffffff",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900"},"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",contrastStrongLightColors:"400 500"}})}(),function(){function e(e){function o(e,t){return t=t||{},m[e]=a(e,t),E}function r(e,n){return a(e,t.extend({},m[e]||{},n))}function a(e,t){var n=T.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 c(e,n){if(u[e])return u[e];n=n||"default";var o="string"==typeof n?u[n]:n,r=new s(e);return o&amp;&amp;t.forEach(o.colors,function(e,n){r.colors[n]={name:e.name,hues:t.extend({},e.hues)}}),u[e]=r,r}function s(e){function n(e){if(e=0===arguments.length||!!e,e!==o.isDark){o.isDark=e,o.foregroundPalette=o.isDark?f:h,o.foregroundShadow=o.isDark?g:b;var n=o.isDark?A:C,r=o.isDark?C:A;return t.forEach(n,function(e,t){var n=o.colors[t],i=r[t];if(n)for(var a in n.hues)n.hues[a]===i[a]&amp;&amp;(n.hues[a]=e[a])}),o}}var o=this;o.name=e,o.colors={},o.dark=n,n(!1),$.forEach(function(e){var n=(o.isDark?A:C)[e];o[e+"Palette"]=function(r,i){var a=o.colors[e]={name:r,hues:t.extend({},n,i)};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",o.name).replace("%3",r).replace("%4",Object.keys(n).join(", ")))}),Object.keys(a.hues).map(function(e){return a.hues[e]}).forEach(function(t){if(-1==T.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",o.name).replace("%3",e).replace("%4",r).replace("%5",T.join(", ")))}),o},o[e+"Color"]=function(){var t=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+e+"Color() has been deprecated. Use $mdThemingProviderTheme."+e+"Palette() instead."),o[e+"Palette"].apply(o,t)}})}function p(e,o){function r(e){return e===n||""===e||i.THEMES[e]!==n}function i(t,o){o===n&amp;&amp;(o=t,t=n),t===n&amp;&amp;(t=e),i.inherit(o,o)}return i.inherit=function(n,i){function a(e){if(e){r(e)||o.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme().");var t=n.data("$mdThemeName");t&amp;&amp;n.removeClass("md-"+t+"-theme"),n.addClass("md-"+e+"-theme"),n.data("$mdThemeName",e),d&amp;&amp;n.data("$mdThemeController",d)}}var d=i.controller("mdTheme"),c=n.attr("md-theme-watch");if((M||t.isDefined(c))&amp;&amp;"false"!=c){var s=e.$watch(function(){return d&amp;&amp;d.$mdTheme||("default"==v?"":v)},a);n.on("$destroy",s)}else{var l=d&amp;&amp;d.$mdTheme||("default"==v?"":v);a(l)}},i.THEMES=t.extend({},u),i.defaultTheme=function(){return v},i.registered=r,i.generateTheme=d,i}m={},u={};var E,v="default",M=!1;return t.extend(m,e),p.$inject=["$rootScope","$log"],E={definePalette:o,extendPalette:r,theme:c,setDefaultTheme:function(e){v=e},alwaysWatchTheme:function(e){M=e},generateThemesOnDemand:function(e){k=e},$get:p,_LIGHT_DEFAULT_HUES:C,_DARK_DEFAULT_HUES:A,_PALETTES:m,_THEMES:u,_parseRules:i,_rgba:l}}function o(e,t,n){return{priority:100,link:{pre:function(o,r,i){var a={$setTheme:function(t){e.registered(t)||n.warn("attempted to use unregistered theme '"+t+"'"),a.$mdTheme=t}};r.data("$mdThemeController",a),a.$setTheme(t(i.mdTheme)(o)),i.$observe("mdTheme",a.$setTheme)}}}}function r(e){return e}function i(e,n,o){c(e,n),o=o.replace(/THEME_NAME/g,e.name);var r=[],i=e.colors[n],a=new RegExp(".md-"+e.name+"-theme","g"),d=new RegExp("('|\")?{{\\s*("+n+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),s=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,u=m[i.name];return o=o.replace(s,function(t,n,o,r,i){return"foreground"===n?"shadow"==o?e.foregroundShadow:e.foregroundPalette[o]||e.foregroundPalette[1]:(0===o.indexOf("hue")&amp;&amp;(o=e.colors[n].hues[o]),l((m[e.colors[n].name][o]||"")[i?"contrast":"value"],r))}),t.forEach(i.hues,function(t,n){var i=o.replace(d,function(e,n,o,r,i){return l(u[t]["color"===r?"value":"contrast"],i)});if("default"!==n&amp;&amp;(i=i.replace(a,".md-"+e.name+"-theme.md-"+n)),"default"==e.name){var c=/((?:(?:(?: |&gt;|\.|\w|-|:|\(|\)|\[|\]|"|'|=)+) )?)((?:(?:\w|\.|-)+)?)\.md-default-theme((?: |&gt;|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g;i=i.replace(c,function(e,t,n,o){return e+", "+t+n+o})}r.push(i)}),r}function a(e){function n(e){var n=e.contrastDefaultColor,o=e.contrastLightColors||[],r=e.contrastStrongLightColors||[],i=e.contrastDarkColors||[];"string"==typeof o&amp;&amp;(o=o.split(" ")),"string"==typeof r&amp;&amp;(r=r.split(" ")),"string"==typeof i&amp;&amp;(i=i.split(" ")),delete e.contrastDefaultColor,delete e.contrastLightColors,delete e.contrastStrongLightColors,delete e.contrastDarkColors,t.forEach(e,function(a,d){function c(){return"light"===n?i.indexOf(d)&gt;-1?E:r.indexOf(d)&gt;-1?M:v:o.indexOf(d)&gt;-1?r.indexOf(d)&gt;-1?M:v:E}if(!t.isObject(a)){var l=s(a);if(!l)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",a).replace("%2",e.name).replace("%3",d));e[d]={value:l,contrast:c()}}})}var o=document.head,r=o?o.firstElementChild:null,i=e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(r&amp;&amp;0!==i.length){t.forEach(m,n);var a=i.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&amp;&amp;e.length}).map(function(e){return e.trim()+"}"}),c=new RegExp("md-("+$.join("|")+")","g");$.forEach(function(e){w[e]=""}),a.forEach(function(e){for(var t,n=(e.match(c),0);t=$[n];n++)if(e.indexOf(".md-"+t)&gt;-1)return w[t]+=e;for(n=0;t=$[n];n++)if(e.indexOf(t)&gt;-1)return w[t]+=e;return w[y]+=e}),k||t.forEach(u,function(e){p[e.name]||d(e.name)})}}function d(e){var t=u[e],n=document.head,o=n?n.firstElementChild:null;p[e]||($.forEach(function(e){for(var r=i(t,e,w[e]);r.length;){var a=r.shift();if(a){var d=document.createElement("style");d.setAttribute("md-theme-style",""),d.appendChild(document.createTextNode(a)),n.insertBefore(d,o)}}}),t.colors.primary.name==t.colors.accent.name&amp;&amp;console.warn("$mdThemingProvider: Using the same palette for primary and accent. This violates the material design spec."),p[t.name]=!0)}function c(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 s(e){if(t.isArray(e)&amp;&amp;3==e.length)return e;if(/^rgb/.test(e))return e.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==e.charAt(0)&amp;&amp;(e=e.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(e)){var n=e.length/3,o=e.substr(0,n),r=e.substr(n,n),i=e.substr(2*n);return 1===n&amp;&amp;(o+=o,r+=r,i+=i),[parseInt(o,16),parseInt(r,16),parseInt(i,16)]}}function l(e,n){return e?(4==e.length&amp;&amp;(e=t.copy(e),n?e.pop():n=e.pop()),n&amp;&amp;("number"==typeof n||"string"==typeof n&amp;&amp;n.length)?"rgba("+e.join(",")+","+n+")":"rgb("+e.join(",")+")"):"rgb('0,0,0')"}t.module("material.core.theming",["material.core.theming.palette"]).directive("mdTheme",o).directive("mdThemable",r).provider("$mdTheming",e).run(a);var m,u,p={},h={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.26)",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.3)",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)",b="",E=s("rgba(0,0,0,0.87)"),v=s("rgba(255,255,255,0.87)"),M=s("rgb(255,255,255)"),$=["primary","accent","warn","background"],y="primary",C={accent:{"default":"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{"default":"A100","hue-1":"300","hue-2":"800","hue-3":"900"}},A={background:{"default":"800","hue-1":"600","hue-2":"300","hue-3":"900"}};$.forEach(function(e){var t={"default":"500","hue-1":"300","hue-2":"800","hue-3":"A100"};C[e]||(C[e]=t),A[e]||(A[e]=t)});var T=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],k=!1;e.$inject=["$mdColorPalette"],o.$inject=["$mdTheming","$interpolate","$log"],r.$inject=["$mdTheming"];var w={};a.$inject=["$injector"]}(),function(){function e(e,n,o,r,i){var a;return a={translate3d:function(e,t,n,o){function r(n){return i(e,{to:n||t,addClass:o.transitionOutClass,removeClass:o.transitionInClass}).start()}return i(e,{from:t,to:n,addClass:o.transitionInClass}).start().then(function(){return r})},waitTransitionEnd:function(e,t){var i=3e3;return n(function(n,a){function d(t){t&amp;&amp;t.target!==e[0]||(t&amp;&amp;o.cancel(c),e.off(r.CSS.TRANSITIONEND,d),n())}t=t||{};var c=o(d,t.timeout||i);e.on(r.CSS.TRANSITIONEND,d)})},calculateZoomToOrigin:function(n,o){function r(){var e=n?n.parent():null,t=e?e.parent():null;return t?a.clientRect(t):null}var i=o.element,d=o.bounds,c="translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )",s=t.bind(null,e.supplant,c),l=s({centerX:0,centerY:0,scaleX:.5,scaleY:.5});if(i||d){var m=i?a.clientRect(i)||r():a.copyRect(d),u=a.copyRect(n[0].getBoundingClientRect()),p=a.centerPointFor(u),h=a.centerPointFor(m);l=s({centerX:h.x-p.x,centerY:h.y-p.y,scaleX:Math.round(100*Math.min(.5,m.width/u.width))/100,scaleY:Math.round(100*Math.min(.5,m.height/u.height))/100})}return l},toCss:function(e){function n(e,n,r){t.forEach(n.split(" "),function(e){o[e]=r})}var o={},i="left top right bottom width height x y min-width min-height max-width max-height";return t.forEach(e,function(e,a){if(!t.isUndefined(e))if(i.indexOf(a)&gt;=0)o[a]=e+"px";else switch(a){case"transition":n(a,r.CSS.TRANSITION,e);break;case"transform":n(a,r.CSS.TRANSFORM,e);break;case"transformOrigin":n(a,r.CSS.TRANSFORM_ORIGIN,e)}}),o},toTransformCss:function(e,n,o){var i={};return t.forEach(r.CSS.TRANSFORM.split(" "),function(t){i[t]=e}),n&amp;&amp;(o=o||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",i.transition=o),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(),o=function(e){return e&amp;&amp;e.width&gt;0&amp;&amp;e.height&gt;0};return o(n)?a.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(t,n,o,r){return function(i){return e(i,t,n,o,r)}}])}(),function(){t.version.minor&gt;=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,o=t.isDefined(document.documentElement.style.WebkitAppearance),r=o?"-webkit-":"",i=(o?"webkitTransitionEnd ":"")+"transitionend",a=(o?"webkitAnimationEnd ":"")+"animationend",d=["$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)}}}],s=["$q","$$rAFMutex",function(e,o){function r(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=o(),this._state=0}var i=0,a=1,d=2;return r.prototype={setHost:function(e){this.host=e||{}},done:function(e){this._state===d?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){t===!1?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&amp;&amp;this.host.pause()},resume:function(){this.host.resume&amp;&amp;this.host.resume()},end:function(){this.host.end&amp;&amp;this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&amp;&amp;this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;t._state===i&amp;&amp;(t._state=a,t._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(e){this._state!==d&amp;&amp;(n(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=d)}},r}];t.module("material.core.animate",[]).factory("$$forceReflow",d).factory("$$AnimateRunner",s).factory("$$rAFMutex",c).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout",function(t,d,c,s,l,m){function u(o,d){var s=[],l=M(o);d.transitionStyle&amp;&amp;s.push([r+"transition",d.transitionStyle]),d.keyframeStyle&amp;&amp;s.push([r+"animation",d.keyframeStyle]),d.delay&amp;&amp;s.push([r+"transition-delay",d.delay+"s"]),d.duration&amp;&amp;s.push([r+"transition-duration",d.duration+"s"]);var u=d.keyframeStyle||d.to&amp;&amp;(d.duration&gt;0||d.transitionStyle),f=!!d.addClass||!!d.removeClass,y=u||f;$(o,!0),E(o,d);var C,A,T=!1;return{close:t.close,start:function(){function t(){return T?void 0:(T=!0,C&amp;&amp;A&amp;&amp;o.off(C,A),p(o,d),b(o,d),n(s,function(t){l.style[e(t[0])]=""}),u.complete(!0),u)}var u=new c;return g(function(){if($(o,!1),!y)return t();n(s,function(t){var n=t[0],o=t[1];l.style[e(n)]=o}),p(o,d);var c=h(o);if(0===c.duration)return t();var u=[];d.easing&amp;&amp;(c.transitionDuration&amp;&amp;u.push([r+"transition-timing-function",d.easing]),c.animationDuration&amp;&amp;u.push([r+"animation-timing-function",d.easing])),d.delay&amp;&amp;c.animationDelay&amp;&amp;u.push([r+"animation-delay",d.delay+"s"]),d.duration&amp;&amp;c.animationDuration&amp;&amp;u.push([r+"animation-duration",d.duration+"s"]),n(u,function(t){var n=t[0],o=t[1];l.style[e(n)]=o,s.push(t)});var f=c.delay,g=1e3*f,b=c.duration,E=1e3*b,M=Date.now();C=[],c.transitionDuration&amp;&amp;C.push(i),c.animationDuration&amp;&amp;C.push(a),C=C.join(" "),A=function(e){e.stopPropagation();var n=e.originalEvent||e,o=n.timeStamp||Date.now(),r=parseFloat(n.elapsedTime.toFixed(3));Math.max(o-M,0)&gt;=g&amp;&amp;r&gt;=b&amp;&amp;t()},o.on(C,A),v(o,d),m(t,g+1.5*E,!1)}),u}}}function p(e,t){t.addClass&amp;&amp;(l.addClass(e,t.addClass),t.addClass=null),t.removeClass&amp;&amp;(l.removeClass(e,t.removeClass),t.removeClass=null)}function h(e){function n(e){return o?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}var r=M(e),i=t.getComputedStyle(r),a=f(i[n("transitionDuration")]),d=f(i[n("animationDuration")]),c=f(i[n("transitionDelay")]),s=f(i[n("animationDelay")]);d*=parseInt(i[n("animationIterationCount")],10)||1;var l=Math.max(d,a),m=Math.max(s,c);return{duration:l,delay:m,animationDuration:d,transitionDuration:a,animationDelay:s,transitionDelay:c}}function f(e){var t=0,o=(e||"").split(/\s*,\s*/);return n(o,function(e){"s"==e.charAt(e.length-1)&amp;&amp;(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function g(e){y&amp;&amp;y(),C.push(e),y=d(function(){y=null;for(var e=s(),t=0;t&lt;C.length;t++)C[t](e);C.length=0})}function b(e,t){E(e,t),v(e,t)}function E(e,t){t.from&amp;&amp;(e.css(t.from),t.from=null)}function v(e,t){t.to&amp;&amp;(e.css(t.to),t.to=null)}function M(e){for(var t=0;t&lt;e.length;t++)if(1===e[t].nodeType)return e[t]}function $(t,n){var o=M(t),i=e(r+"transition-delay");o.style[i]=n?"-9999s":""}var y,C=[];return u}])}()}(),function(){t.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"])}(),function(){t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$animate","$rootElement","$window","$log","$$rAF","$document",function(e,t,n,o,r,i,a){function d(d,s,l){var m=o.getComputedStyle(a[0].body);if("fixed"==m.position){var u=parseInt(m.height,10)+Math.abs(parseInt(m.top,10));s.css({height:u+"px"})}t.pin&amp;&amp;t.pin(s,n),i(function(){var t=s.parent()[0];if(t){"BODY"==t.nodeName&amp;&amp;s.css({position:"fixed"});var n=o.getComputedStyle(t);"static"==n.position&amp;&amp;r.warn(c)}e.inherit(s,s.parent())})}var c="&lt;md-backdrop&gt; may not work properly in a scrolled, static-positioned parent container.";return{restrict:"E",link:d}}])}(),function(){function e(e){return{restrict:"E",link:function(t,n,o){t.$on("$destroy",function(){e.destroy()})}}}function n(e){function n(e,n,i,a,d,c,s){function l(o,r,s,l){r=i.extractElementByName(r,"md-bottom-sheet"),p=i.createBackdrop(o,"md-bottom-sheet-backdrop md-opaque"),s.clickOutsideToClose&amp;&amp;p.on("click",function(){i.nextTick(d.cancel,!0)}),a.inherit(p,s.parent),e.enter(p,s.parent,null);var m=new u(r,s.parent);return s.bottomSheet=m,a.inherit(m.element,s.parent),s.disableParentScroll&amp;&amp;(s.restoreScroll=i.disableScrollAround(m.element,s.parent)),e.enter(m.element,s.parent).then(function(){var e=i.findFocusTarget(r)||t.element(r[0].querySelector("button")||r[0].querySelector("a")||r[0].querySelector("[ng-click]"));e.focus(),s.escapeToClose&amp;&amp;(s.rootElementKeyupCallback=function(e){e.keyCode===n.KEY_CODE.ESCAPE&amp;&amp;i.nextTick(d.cancel,!0)},c.on("keyup",s.rootElementKeyupCallback))})}function m(t,n,o){var r=o.bottomSheet;return e.leave(p),e.leave(r.element).then(function(){o.disableParentScroll&amp;&amp;(o.restoreScroll(),delete o.restoreScroll),r.cleanup()})}function u(e,t){function a(t){e.css(n.CSS.TRANSITION_DURATION,"0ms")}function c(t){var o=t.pointer.distanceY;5&gt;o&amp;&amp;(o=Math.max(-r,o/2)),e.css(n.CSS.TRANSFORM,"translate3d(0,"+(r+o)+"px,0)")}function l(t){if(t.pointer.distanceY&gt;0&amp;&amp;(t.pointer.distanceY&gt;20||Math.abs(t.pointer.velocityY)&gt;o)){var r=e.prop("offsetHeight")-t.pointer.distanceY,a=Math.min(r/t.pointer.velocityY*.75,500);e.css(n.CSS.TRANSITION_DURATION,a+"ms"),i.nextTick(d.cancel,!0)}else e.css(n.CSS.TRANSITION_DURATION,""),e.css(n.CSS.TRANSFORM,"")}var m=s.register(t,"drag",{horizontal:!1});return t.on("$md.dragstart",a).on("$md.drag",c).on("$md.dragend",l),{element:e,cleanup:function(){m(),t.off("$md.dragstart",a),t.off("$md.drag",c),t.off("$md.dragend",l)}}}var p;return{themable:!0,onShow:l,onRemove:m,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0}}var o=.5,r=80;return n.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture"],e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:n})}t.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",e).provider("$mdBottomSheet",n),e.$inject=["$mdBottomSheet"],n.$inject=["$$interimElementProvider"]}(),function(){function e(e,n,o,r){function i(e){return t.isDefined(e.href)||t.isDefined(e.ngHref)||t.isDefined(e.ngLink)||t.isDefined(e.uiSref)}function a(e,t){if(i(t))return'&lt;a class="md-button" ng-transclude&gt;&lt;/a&gt;';var n="undefined"==typeof t.type?"button":t.type;return'&lt;button class="md-button" type="'+n+'" ng-transclude&gt;&lt;/button&gt;'}function d(a,d,c){var s=d[0];n(d),e.attach(a,d);var l=s.textContent.trim();l||o.expect(d,"aria-label"),i(c)&amp;&amp;t.isDefined(c.ngDisabled)&amp;&amp;a.$watch(c.ngDisabled,function(e){d.attr("tabindex",e?-1:0)}),d.on("click",function(e){c.disabled===!0&amp;&amp;(e.preventDefault(),e.stopImmediatePropagation())}),a.mouseActive=!1,d.on("mousedown",function(){a.mouseActive=!0,r(function(){a.mouseActive=!1},100)}).on("focus",function(){a.mouseActive===!1&amp;&amp;d.addClass("md-focused")}).on("blur",function(e){d.removeClass("md-focused")})}return{restrict:"EA",replace:!0,transclude:!0,template:a,link:d}}t.module("material.components.button",["material.core"]).directive("mdButton",e),e.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$timeout"]}(),function(){function e(e){return{restrict:"E",link:function(t,n){e(n)}}}t.module("material.components.card",["material.core"]).directive("mdCard",e),e.$inject=["$mdTheming"]}(),function(){function e(e,n,o,r,i,a){function d(d,s){return s.type="checkbox",s.tabindex=s.tabindex||"0",d.attr("role",s.type),d.on("click",function(e){this.hasAttribute("disabled")&amp;&amp;e.stopImmediatePropagation()}),function(d,s,l,m){function u(e,t,n){l[e]&amp;&amp;d.$watch(l[e],function(e){n[e]&amp;&amp;s.attr(t,n[e])})}function p(e){var t=e.which||e.keyCode;(t===o.KEY_CODE.SPACE||t===o.KEY_CODE.ENTER)&amp;&amp;(e.preventDefault(),s.hasClass("md-focused")||s.addClass("md-focused"),h(e))}function h(e){s[0].hasAttribute("disabled")||d.$apply(function(){var t=l.ngChecked?l.checked:!m.$viewValue;m.$setViewValue(t,e&amp;&amp;e.type),m.$render()})}function f(){m.$viewValue?s.addClass(c):s.removeClass(c)}m=m||i.fakeNgModel(),
r(s),l.ngChecked&amp;&amp;d.$watch(d.$eval.bind(d,l.ngChecked),m.$setViewValue.bind(m)),u("ngDisabled","tabindex",{"true":"-1","false":l.tabindex}),n.expectWithText(s,"aria-label"),e.link.pre(d,{on:t.noop,0:{}},l,[m]),d.mouseActive=!1,s.on("click",h).on("keypress",p).on("mousedown",function(){d.mouseActive=!0,a(function(){d.mouseActive=!1},100)}).on("focus",function(){d.mouseActive===!1&amp;&amp;s.addClass("md-focused")}).on("blur",function(){s.removeClass("md-focused")}),m.$render=f}}e=e[0];var c="md-checked";return{restrict:"E",transclude:!0,require:"?ngModel",priority:210,template:'&lt;div class="md-container" md-ink-ripple md-ink-ripple-checkbox&gt;&lt;div class="md-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div ng-transclude class="md-label"&gt;&lt;/div&gt;',compile:d}}t.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e),e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$timeout"]}(),function(){t.module("material.components.chips",["material.core","material.components.autocomplete"])}(),function(){function e(e){function t(e,t){this.$scope=e,this.$element=t}return{restrict:"E",controller:["$scope","$element",t],link:function(t,o,r){o[0],e(o),t.$broadcast("$mdContentLoaded",o),n(o[0])}}}function n(e){t.element(e).on("$md.pressdown",function(t){"t"===t.pointer.type&amp;&amp;(t.$materialScrollFixed||(t.$materialScrollFixed=!0,0===e.scrollTop?e.scrollTop=1:e.scrollHeight===e.scrollTop+e.offsetHeight&amp;&amp;(e.scrollTop-=1)))})}t.module("material.components.content",["material.core"]).directive("mdContent",e),e.$inject=["$mdTheming"]}(),function(){!function(){function e(){return{template:'&lt;table aria-hidden="true" class="md-calendar-day-header"&gt;&lt;thead&gt;&lt;/thead&gt;&lt;/table&gt;&lt;div class="md-calendar-scroll-mask"&gt;&lt;md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="'+(r-o)+'"&gt;&lt;table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"&gt;&lt;tbody role="rowgroup" md-virtual-repeat="i in ctrl.items" md-calendar-month md-month-offset="$index" class="md-calendar-month" md-start-index="ctrl.getSelectedMonthIndex()" md-item-size="'+o+'"&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/md-virtual-repeat-container&gt;&lt;/div&gt;',scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter"},require:["ngModel","mdCalendar"],controller:n,controllerAs:"ctrl",bindToController:!0,link:function(e,t,n,o){var r=o[0],i=o[1];i.configureNgModel(r)}}}function n(e,t,n,o,r,i,a,c,s,l,m){if(a(e),this.items={length:2e3},this.maxDate&amp;&amp;this.minDate){var u=c.getMonthDistance(this.minDate,this.maxDate)+1;u=Math.max(u,1),u+=1,this.items.length=u}this.$animate=o,this.$q=r,this.$mdInkRipple=l,this.$mdUtil=m,this.keyCode=i.KEY_CODE,this.dateUtil=c,this.dateLocale=s,this.$element=e,this.$scope=n,this.calendarElement=e[0].querySelector(".md-calendar"),this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.today=this.dateUtil.createDateAtMidnight(),this.firstRenderableDate=this.dateUtil.incrementMonths(this.today,-this.items.length/2),this.minDate&amp;&amp;this.minDate&gt;this.firstRenderableDate?this.firstRenderableDate=this.minDate:this.maxDate&amp;&amp;(this.items.length-2,this.firstRenderableDate=this.dateUtil.incrementMonths(this.maxDate,-(this.items.length-2))),this.id=d++,this.ngModelCtrl=null,this.selectedDate=null,this.displayDate=null,this.focusDate=null,this.isInitialized=!1,this.isMonthTransitionInProgress=!1,t.tabindex||e.attr("tabindex","-1");var p=this;this.cellClickHandler=function(){var e=this;this.hasAttribute("data-timestamp")&amp;&amp;n.$apply(function(){var t=Number(e.getAttribute("data-timestamp"));p.setNgModelValue(p.dateUtil.createDateAtMidnight(t))})},this.attachCalendarEventListeners()}t.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]).directive("mdCalendar",e);var o=265,r=45,i="md-calendar-selected-date",a="md-focus",d=0;n.$inject=["$element","$attrs","$scope","$animate","$q","$mdConstant","$mdTheming","$$mdDateUtil","$mdDateLocale","$mdInkRipple","$mdUtil"],n.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$render=function(){t.changeSelectedDate(t.ngModelCtrl.$viewValue)}},n.prototype.buildInitialCalendarDisplay=function(){this.buildWeekHeader(),this.hideVerticalScrollbar(),this.displayDate=this.selectedDate||this.today,this.isInitialized=!0},n.prototype.hideVerticalScrollbar=function(){var e=this.$element[0],t=e.querySelector(".md-calendar-scroll-mask"),n=this.calendarScroller,o=e.querySelector(".md-calendar-day-header").clientWidth,r=n.offsetWidth-n.clientWidth;t.style.width=o+"px",n.style.width=o+r+"px",n.style.paddingRight=r+"px"},n.prototype.attachCalendarEventListeners=function(){this.$element.on("keydown",t.bind(this,this.handleKeyEvent))},n.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&amp;&amp;e.preventDefault());if(e.which===t.keyCode.ENTER)return t.setNgModelValue(t.displayDate),void e.preventDefault();var n=t.getFocusDateFromKeyEvent(e);n&amp;&amp;(n=t.boundDateByMinAndMax(n),e.preventDefault(),e.stopPropagation(),t.changeDisplayDate(n).then(function(){t.focus(n)}))})},n.prototype.getFocusDateFromKeyEvent=function(e){var t=this.dateUtil,n=this.keyCode;switch(e.which){case n.RIGHT_ARROW:return t.incrementDays(this.displayDate,1);case n.LEFT_ARROW:return t.incrementDays(this.displayDate,-1);case n.DOWN_ARROW:return e.metaKey?t.incrementMonths(this.displayDate,1):t.incrementDays(this.displayDate,7);case n.UP_ARROW:return e.metaKey?t.incrementMonths(this.displayDate,-1):t.incrementDays(this.displayDate,-7);case n.PAGE_DOWN:return t.incrementMonths(this.displayDate,1);case n.PAGE_UP:return t.incrementMonths(this.displayDate,-1);case n.HOME:return t.getFirstDateOfMonth(this.displayDate);case n.END:return t.getLastDateOfMonth(this.displayDate);default:return null}},n.prototype.getSelectedMonthIndex=function(){return this.dateUtil.getMonthDistance(this.firstRenderableDate,this.selectedDate||this.today)},n.prototype.scrollToMonth=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getMonthDistance(this.firstRenderableDate,e);this.calendarScroller.scrollTop=t*o}},n.prototype.setNgModelValue=function(e){this.$scope.$emit("md-calendar-change",e),this.ngModelCtrl.$setViewValue(e),this.ngModelCtrl.$render()},n.prototype.focus=function(e){var t=e||this.selectedDate||this.today,n=this.calendarElement.querySelector(".md-focus");n&amp;&amp;n.classList.remove(a);var o=this.getDateId(t),r=document.getElementById(o);r?(r.classList.add(a),r.focus()):this.focusDate=t},n.prototype.boundDateByMinAndMax=function(e){var t=e;return this.minDate&amp;&amp;e&lt;this.minDate&amp;&amp;(t=new Date(this.minDate.getTime())),this.maxDate&amp;&amp;e&gt;this.maxDate&amp;&amp;(t=new Date(this.maxDate.getTime())),t},n.prototype.changeSelectedDate=function(e){var t=this,n=this.selectedDate;this.selectedDate=e,this.changeDisplayDate(e).then(function(){if(n){var o=document.getElementById(t.getDateId(n));o&amp;&amp;(o.classList.remove(i),o.setAttribute("aria-selected","false"))}if(e){var r=document.getElementById(t.getDateId(e));r&amp;&amp;(r.classList.add(i),r.setAttribute("aria-selected","true"))}})},n.prototype.changeDisplayDate=function(e){if(!this.isInitialized)return this.buildInitialCalendarDisplay(),this.$q.when();if(!this.dateUtil.isValidDate(e)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var t=this.animateDateChange(e);this.displayDate=e;var n=this;return t.then(function(){n.isMonthTransitionInProgress=!1}),t},n.prototype.animateDateChange=function(e){return this.scrollToMonth(e),this.$q.when()},n.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,n=document.createElement("tr"),o=0;7&gt;o;o++){var r=document.createElement("th");r.textContent=t[(o+e)%7],n.appendChild(r)}this.$element.find("thead").append(n)},n.prototype.getDateId=function(e){return["md",this.id,e.getFullYear(),e.getMonth(),e.getDate()].join("-")}}()}(),function(){!function(){function e(){return{require:["^^mdCalendar","mdCalendarMonth"],scope:{offset:"=mdMonthOffset"},controller:n,controllerAs:"mdMonthCtrl",bindToController:!0,link:function(e,t,n,o){var r=o[0],i=o[1];i.calendarCtrl=r,i.generateContent(),e.$watch(function(){return i.offset},function(e,t){e!=t&amp;&amp;i.generateContent()})}}}function n(e,t,n){this.dateUtil=t,this.dateLocale=n,this.$element=e,this.calendarCtrl=null,this.offset,this.focusAfterAppend=null}t.module("material.components.datepicker").directive("mdCalendarMonth",e);var o="md-calendar-date-today",r="md-calendar-selected-date",i="md-focus";n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],n.prototype.generateContent=function(){var e=this.calendarCtrl,t=this.dateUtil.incrementMonths(e.firstRenderableDate,this.offset);this.$element.empty(),this.$element.append(this.buildCalendarForMonth(t)),this.focusAfterAppend&amp;&amp;(this.focusAfterAppend.classList.add(i),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildDateCell=function(e){var t=this.calendarCtrl,n=document.createElement("td");if(n.tabIndex=-1,n.classList.add("md-calendar-date"),n.setAttribute("role","gridcell"),e){n.setAttribute("tabindex","-1"),n.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),n.id=t.getDateId(e),n.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,t.today)&amp;&amp;n.classList.add(o),this.dateUtil.isValidDate(t.selectedDate)&amp;&amp;this.dateUtil.isSameDay(e,t.selectedDate)&amp;&amp;(n.classList.add(r),n.setAttribute("aria-selected","true"));var i=this.dateLocale.dates[e.getDate()];if(this.isDateEnabled(e)){var a=document.createElement("span");n.appendChild(a),a.classList.add("md-calendar-date-selection-indicator"),a.textContent=i,n.addEventListener("click",t.cellClickHandler),t.focusDate&amp;&amp;this.dateUtil.isSameDay(e,t.focusDate)&amp;&amp;(this.focusAfterAppend=n)}else n.classList.add("md-calendar-date-disabled"),n.textContent=i}return n},n.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&amp;&amp;(!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),o=this.getLocaleDay_(n),r=this.dateUtil.getNumberOfDaysInMonth(t),i=document.createDocumentFragment(),a=1,d=this.buildDateRow(a);i.appendChild(d);var c=this.offset===this.calendarCtrl.items.length-1,s=0,l=document.createElement("td");if(l.classList.add("md-calendar-month-label"),this.calendarCtrl.maxDate&amp;&amp;n&gt;this.calendarCtrl.maxDate&amp;&amp;l.classList.add("md-calendar-month-label-disabled"),l.textContent=this.dateLocale.monthHeaderFormatter(t),2&gt;=o){l.setAttribute("colspan","7");var m=this.buildDateRow();if(m.appendChild(l),i.insertBefore(m,d),c)return i}else s=2,l.setAttribute("colspan","2"),d.appendChild(l);for(var u=s;o&gt;u;u++)d.appendChild(this.buildDateCell());for(var p=o,h=n,f=1;r&gt;=f;f++){if(7===p){if(c)return i;p=0,a++,d=this.buildDateRow(a),i.appendChild(d)}h.setDate(f);var g=this.buildDateCell(h);d.appendChild(g),p++}for(;d.childNodes.length&lt;7;)d.appendChild(this.buildDateCell());for(;i.childNodes.length&lt;6;){for(var b=this.buildDateRow(),u=0;7&gt;u;u++)b.appendChild(this.buildDateCell());i.appendChild(b)}return i},n.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}()}(),function(){!function(){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){function t(e){if(!e)return"";var t=e.toLocaleTimeString(),n=e;return 0!=e.getHours()||-1===t.indexOf("11:")&amp;&amp;-1===t.indexOf("23:")||(n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),n.toLocaleDateString()}function n(e){return new Date(e)}function o(e){e=e.trim();var t=/^(([a-zA-Z]{3,}|[0-9]{1,4})([ \.,]+|[\/\-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/;return t.test(e)}function r(e){return u.shortMonths[e.getMonth()]+" "+e.getFullYear()}function i(e){return"Week "+e}function a(e){return[u.days[e.getDay()],u.months[e.getMonth()],u.dates[e.getDate()],e.getFullYear()].join(" ")}for(var d=e.DATETIME_FORMATS.DAY.map(function(e){return e[0]}),c=Array(32),s=1;31&gt;=s;s++)c[s]=s;var l="Calendar",m="Open calendar",u={months:this.months||e.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||e.DATETIME_FORMATS.SHORTMONTH,days:this.days||e.DATETIME_FORMATS.DAY,shortDays:this.shortDays||d,dates:this.dates||c,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||t,parseDate:this.parseDate||n,isDateComplete:this.isDateComplete||o,monthHeaderFormatter:this.monthHeaderFormatter||r,weekNumberFormatter:this.weekNumberFormatter||i,longDateFormatter:this.longDateFormatter||a,msgCalendar:this.msgCalendar||l,msgOpenCalendar:this.msgOpenCalendar||m};return u},t.prototype.$get.$inject=["$locale"],e.provider("$mdDateLocale",new t)}])}()}(),function(){!function(){function n(){return{template:'&lt;md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"&gt;&lt;md-icon class="md-datepicker-calendar-icon" md-svg-icon="md-calendar"&gt;&lt;/md-icon&gt;&lt;/md-button&gt;&lt;div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"&gt;&lt;input class="md-datepicker-input" aria-haspopup="true" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"&gt;&lt;md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.dateLocale.msgOpenCalendar}}"&gt;&lt;div class="md-datepicker-expand-triangle"&gt;&lt;/div&gt;&lt;/md-button&gt;&lt;/div&gt;&lt;div class="md-datepicker-calendar-pane md-whiteframe-z1"&gt;&lt;div class="md-datepicker-input-mask"&gt;&lt;div class="md-datepicker-input-mask-opaque"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="md-datepicker-calendar"&gt;&lt;md-calendar role="dialog" aria-label="{{::ctrl.dateLocale.msgCalendar}}" md-min-date="ctrl.minDate" md-max-date="ctrl.maxDate"md-date-filter="ctrl.dateFilter"ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"&gt;&lt;/md-calendar&gt;&lt;/div&gt;&lt;/div&gt;',require:["ngModel","mdDatepicker","?^mdInputContainer"],scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",placeholder:"@mdPlaceholder",dateFilter:"=mdDateFilter"},controller:o,controllerAs:"ctrl",bindToController:!0,link:function(e,t,n,o){var r=o[0],i=o[1],a=o[2];if(a)throw Error("md-datepicker should not be placed inside md-input-container.");i.configureNgModel(r)}}}function o(e,n,o,r,i,a,d,c,s,l,m,u){this.$compile=r,this.$timeout=i,this.$window=a,this.dateLocale=l,this.dateUtil=m,this.$mdConstant=d,this.$mdUtil=s,this.$$rAF=u,this.documentElement=t.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=n[0].querySelector("input"),this.ngInputElement=t.element(this.inputElement),this.inputContainer=n[0].querySelector(".md-datepicker-input-container"),this.calendarPane=n[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=n[0].querySelector(".md-datepicker-button"),this.inputMask=n[0].querySelector(".md-datepicker-input-mask-opaque"),this.$element=n,this.$attrs=o,this.$scope=e,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(n[0].disabled||t.isString(o.disabled)),this.isCalendarOpen=!1,this.calendarPaneOpenedFrom=null,this.calendarPane.id="md-date-pane"+s.nextUid(),c(n),this.bodyClickHandler=t.bind(this,this.handleBodyClick),this.windowResizeHandler=s.debounce(t.bind(this,this.closeCalendarPane),100),o.tabindex||n.attr("tabindex","-1"),this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners();var p=this;e.$on("$destroy",function(){p.detachCalendarPane()})}t.module("material.components.datepicker").directive("mdDatepicker",n);var r=3,i="md-datepicker-invalid",a=500,d=368,c=360;o.$inject=["$scope","$element","$attrs","$compile","$timeout","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF"],o.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$render=function(){var e=t.ngModelCtrl.$viewValue;if(e&amp;&amp;!(e instanceof Date))throw Error("The ng-model for md-datepicker must be a Date instance. Currently the model is a: "+typeof e);t.date=e,t.inputElement.value=t.dateLocale.formatDate(e),t.resizeInputElement(),t.updateErrorState()}},o.prototype.attachChangeListeners=function(){var e=this;e.$scope.$on("md-calendar-change",function(t,n){e.ngModelCtrl.$setViewValue(n),e.date=n,e.inputElement.value=e.dateLocale.formatDate(n),e.closeCalendarPane(),e.resizeInputElement(),e.updateErrorState()}),e.ngInputElement.on("input",t.bind(e,e.resizeInputElement)),e.ngInputElement.on("input",e.$mdUtil.debounce(e.handleInputEvent,a,e))},o.prototype.attachInteractionListeners=function(){var e=this,t=this.$scope,n=this.$mdConstant.KEY_CODE;e.ngInputElement.on("keydown",function(o){o.altKey&amp;&amp;o.keyCode==n.DOWN_ARROW&amp;&amp;(e.openCalendarPane(o),t.$digest())}),t.$on("md-calendar-close",function(){e.closeCalendarPane()})},o.prototype.installPropertyInterceptors=function(){var e=this;if(this.$attrs.ngDisabled){var t=this.$mdUtil.validateScope(this.$element)?this.$element.scope():null;t&amp;&amp;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||""}})},o.prototype.setDisabled=function(e){this.isDisabled=e,this.inputElement.disabled=e,this.calendarButton.disabled=e},o.prototype.updateErrorState=function(e){var n=e||this.date;this.clearErrorState(),this.dateUtil.isValidDate(n)?(this.dateUtil.isValidDate(this.minDate)&amp;&amp;this.ngModelCtrl.$setValidity("mindate",n&gt;=this.minDate),this.dateUtil.isValidDate(this.maxDate)&amp;&amp;this.ngModelCtrl.$setValidity("maxdate",n&lt;=this.maxDate),t.isFunction(this.dateFilter)&amp;&amp;this.ngModelCtrl.$setValidity("filtered",this.dateFilter(n))):this.ngModelCtrl.$setValidity("valid",null==n),this.ngModelCtrl.$valid||this.inputContainer.classList.add(i)},o.prototype.clearErrorState=function(){this.inputContainer.classList.remove(i),["mindate","maxdate","filtered","valid"].forEach(function(e){this.ngModelCtrl.$setValidity(e,!0)},this)},o.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+r},o.prototype.handleInputEvent=function(){var e=this.inputElement.value,t=e?this.dateLocale.parseDate(e):null;this.dateUtil.setDateTimeToMidnight(t);var n=""==e||this.dateUtil.isValidDate(t)&amp;&amp;this.dateLocale.isDateComplete(e)&amp;&amp;this.isDateEnabled(t);n&amp;&amp;(this.ngModelCtrl.$setViewValue(t),this.date=t),this.updateErrorState(t)},o.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.minDate,this.maxDate)&amp;&amp;(!t.isFunction(this.dateFilter)||this.dateFilter(e))},o.prototype.attachCalendarPane=function(){var e=this.calendarPane;e.style.transform="",this.$element.addClass("md-datepicker-open");var t=this.inputContainer.getBoundingClientRect(),n=document.body.getBoundingClientRect(),o=t.top-n.top,r=t.left-n.left,i=n.top&lt;0&amp;&amp;0==document.body.scrollTop?-n.top:document.body.scrollTop,a=n.left&lt;0&amp;&amp;0==document.body.scrollLeft?-n.left:document.body.scrollLeft,s=i+this.$window.innerHeight,l=a+this.$window.innerWidth;if(r+c&gt;l){if(l-c&gt;0)r=l-c;else{r=a;var m=this.$window.innerWidth/c;e.style.transform="scale("+m+")"}e.classList.add("md-datepicker-pos-adjusted")}o+d&gt;s&amp;&amp;s-d&gt;i&amp;&amp;(o=s-d,e.classList.add("md-datepicker-pos-adjusted")),e.style.left=r+"px",e.style.top=o+"px",document.body.appendChild(e),this.inputMask.style.left=t.width+"px",this.$$rAF(function(){e.classList.add("md-pane-open")})},o.prototype.detachCalendarPane=function(){this.$element.removeClass("md-datepicker-open"),this.calendarPane.classList.remove("md-pane-open"),this.calendarPane.classList.remove("md-datepicker-pos-adjusted"),this.calendarPane.parentNode&amp;&amp;this.calendarPane.parentNode.removeChild(this.calendarPane)},o.prototype.openCalendarPane=function(t){if(!this.isCalendarOpen&amp;&amp;!this.isDisabled){this.isCalendarOpen=!0,this.calendarPaneOpenedFrom=t.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar();var n=this;this.$mdUtil.nextTick(function(){n.documentElement.on("click touchstart",n.bodyClickHandler)},!1),e.addEventListener("resize",this.windowResizeHandler)}},o.prototype.closeCalendarPane=function(){this.isCalendarOpen&amp;&amp;(this.isCalendarOpen=!1,this.detachCalendarPane(),this.calendarPaneOpenedFrom.focus(),this.calendarPaneOpenedFrom=null,this.$mdUtil.enableScrolling(),this.documentElement.off("click touchstart",this.bodyClickHandler),e.removeEventListener("resize",this.windowResizeHandler))},o.prototype.getCalendarCtrl=function(){return t.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},o.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick(function(){e.getCalendarCtrl().focus()},!1)},o.prototype.setFocused=function(e){this.isFocused=e},o.prototype.handleBodyClick=function(e){if(this.isCalendarOpen){var t=this.$mdUtil.getClosest(e.target,"md-calendar");t||this.closeCalendarPane(),this.$scope.$digest()}}}()}(),function(){!function(){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 o(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function r(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function i(e,t){return e.getFullYear()===t.getFullYear()&amp;&amp;e.getMonth()===t.getMonth()}function a(e,t){return e.getDate()==t.getDate()&amp;&amp;i(e,t)}function d(e,t){var n=o(e);return i(n,t)}function c(e,t){var n=r(e);return i(t,n)}function s(e,t){return b((e.getTime()+t.getTime())/2)}function l(t){var n=e(t);return Math.floor((n.getDay()+t.getDate()-1)/7)}function m(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)}function u(e,t){var o=new Date(e.getFullYear(),e.getMonth()+t,1),r=n(o);return r&lt;e.getDate()?o.setDate(r):o.setDate(e.getDate()),o}function p(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())}function h(e){return new Date(e.getFullYear(),e.getMonth(),n(e))}function f(e){return null!=e&amp;&amp;e.getTime&amp;&amp;!isNaN(e.getTime())}function g(e){f(e)&amp;&amp;e.setHours(0,0,0,0)}function b(e){var n;return n=t.isUndefined(e)?new Date:new Date(e),g(n),n}function E(e,n,o){return(!t.isDate(n)||e&gt;=n)&amp;&amp;(!t.isDate(o)||o&gt;=e)}return{getFirstDateOfMonth:e,getNumberOfDaysInMonth:n,getDateInNextMonth:o,getDateInPreviousMonth:r,isInNextMonth:d,isInPreviousMonth:c,getDateMidpoint:s,isSameMonthAndYear:i,getWeekOfMonth:l,incrementDays:m,incrementMonths:u,getLastDateOfMonth:h,isSameDay:a,getMonthDistance:p,isValidDate:f,setDateTimeToMidnight:g,createDateAtMidnight:b,isDateWithinRange:E}})}()}(),function(){function e(e,n,o){return{restrict:"E",link:function(r,i,a){n(i),e(function(){function e(){i.toggleClass("md-content-overflow",a.scrollHeight&gt;a.clientHeight)}var n,a=i[0].querySelector("md-dialog-content");a&amp;&amp;(n=a.getElementsByTagName("img"),e(),t.element(n).on("load",e)),r.$on("$destroy",function(){o.destroy(i)})})}}}function o(e){function o(e,t){return{template:['&lt;md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css"&gt;','  &lt;md-dialog-content class="md-dialog-content" role="document" tabIndex="-1"&gt;','    &lt;h2 class="md-title"&gt;{{ dialog.title }}&lt;/h2&gt;','    &lt;div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ','        ng-bind-html="::dialog.mdHtmlContent"&gt;&lt;/div&gt;','    &lt;div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body"&gt;',"      &lt;p&gt;{{::dialog.mdTextContent}}&lt;/p&gt;","    &lt;/div&gt;","  &lt;/md-dialog-content&gt;","  &lt;md-dialog-actions&gt;",'    &lt;md-button ng-if="dialog.$type == \'confirm\'"               ng-click="dialog.abort()" class="md-primary"&gt;',"      {{ dialog.cancel }}","    &lt;/md-button&gt;",'    &lt;md-button ng-click="dialog.hide()" class="md-primary" md-autofocus="dialog.$type!=\'confirm\'"&gt;',"      {{ dialog.ok }}","    &lt;/md-button&gt;","  &lt;/md-dialog-actions&gt;","&lt;/md-dialog&gt;"].join("").replace(/\s\s+/g,""),controller:function(){this.hide=function(){e.hide(!0)},this.abort=function(){e.cancel()}},controllerAs:"dialog",bindToController:!0,theme:t.defaultTheme()}}function r(e,o,r,d,c,s,l,m,u,p){function h(e,t,n,o){if(o){if(o.mdHtmlContent=o.htmlContent||n.htmlContent||"",o.mdTextContent=o.textContent||n.textContent||o.content||n.content||"",o.mdHtmlContent&amp;&amp;!p.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(o.mdHtmlContent&amp;&amp;o.mdTextContent)throw Error("md-dialog cannot have both `htmlContent` and `textContent`")}}function f(e,n,o,i){function a(){var e=n[0].querySelectorAll(".md-actions");e.length&gt;0&amp;&amp;u.warn("Using a class of md-actions is deprected, please use &lt;md-dialog-actions&gt;.")}function d(){function e(){var e=n[0].querySelector(".dialog-close");if(!e){var o=n[0].querySelectorAll(".md-actions button, md-dialog-actions button");e=o[o.length-1]}return t.element(e)}if(o.focusOnOpen){var i=r.findFocusTarget(n)||e();i.focus()}}return t.element(s[0].body).addClass("md-dialog-is-showing"),b(o),M(n.find("md-dialog"),o),v(e,n,o),C(n,o).then(function(){E(n,o),$(n,o),a(),d()})}function g(e,n,o){function r(){return A(n,o)}function d(){t.element(s[0].body).removeClass("md-dialog-is-showing"),n.remove(),o.$destroy||o.origin.focus()}return o.deactivateListeners(),o.unlockScreenReader(),o.hideBackdrop(o.$destroy),i.parentNode.removeChild(i),a.parentNode.removeChild(a),o.$destroy?d():r().then(d)}function b(e){function o(e,o){var r=t.element(e||{});if(r&amp;&amp;r.length){var i={top:0,left:0,height:0,width:0},a=t.isFunction(r[0].getBoundingClientRect);return t.extend(o||{},{element:a?r:n,bounds:a?r[0].getBoundingClientRect():t.extend({},i,r[0]),focus:t.bind(r,r.focus)})}}function r(e,n){if(t.isString(e)){var o=e,r=s[0].querySelectorAll(o);e=r.length?r[0]:null}return t.element(e||n)}e.origin=t.extend({element:null,bounds:null,focus:t.noop},e.origin||{}),e.parent=r(e.parent,m),e.closeTo=o(r(e.closeTo)),e.openFrom=o(r(e.openFrom)),e.targetEvent&amp;&amp;(e.origin=o(e.targetEvent.target,e.origin))}function E(n,o){var i=t.element(l),a=r.debounce(function(){y(n,o)},60),c=[],s=function(){var t="alert"==o.$type?e.hide:e.cancel;r.nextTick(t,!0)};if(o.escapeToClose){var m=o.parent,u=function(e){e.keyCode===d.KEY_CODE.ESCAPE&amp;&amp;(e.stopPropagation(),e.preventDefault(),s())};n.on("keydown",u),m.on("keydown",u),i.on("resize",a),c.push(function(){n.off("keydown",u),m.off("keydown",u),i.off("resize",a)})}if(o.clickOutsideToClose){var p,m=n,h=function(e){p=e.target},f=function(e){p===m[0]&amp;&amp;e.target===m[0]&amp;&amp;(e.stopPropagation(),e.preventDefault(),s())};m.on("mousedown",h),m.on("mouseup",f),c.push(function(){m.off("mousedown",h),m.off("mouseup",f)})}o.deactivateListeners=function(){c.forEach(function(e){e()}),o.deactivateListeners=null}}function v(e,t,n){n.disableParentScroll&amp;&amp;(n.restoreScroll=r.disableScrollAround(t,n.parent)),n.hasBackdrop&amp;&amp;(n.backdrop=r.createBackdrop(e,"md-dialog-backdrop md-opaque"),c.enter(n.backdrop,n.parent)),n.hideBackdrop=function(e){n.backdrop&amp;&amp;(e?n.backdrop.remove():c.leave(n.backdrop)),n.disableParentScroll&amp;&amp;(n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}function M(e,n){var d="alert"===n.$type?"alertdialog":"dialog",c=e.find("md-dialog-content"),s=e.attr("id")||"dialog_"+r.nextUid();e.attr({role:d,tabIndex:"-1"}),0===c.length&amp;&amp;(c=e),c.attr("id",s),e.attr("aria-describedby",s),n.ariaLabel?o.expect(e,"aria-label",n.ariaLabel):o.expectAsync(e,"aria-label",function(){var e=c.text().split(/\s+/);return e.length&gt;3&amp;&amp;(e=e.slice(0,3).concat("...")),e.join(" ")}),i=document.createElement("div"),i.classList.add("md-dialog-focus-trap"),i.tabIndex=0,a=i.cloneNode(!1);var l=t.bind(e,e.focus);i.addEventListener("focus",l),a.addEventListener("focus",l),e[0].parentNode.insertBefore(i,e[0]),e.append(a)}function $(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var t=e.parentNode.children,r=0;r&lt;t.length;r++)e===t[r]||T(t[r],["SCRIPT","STYLE"])||t[r].setAttribute("aria-hidden",o);n(e=e.parentNode)}}var o=!0;n(e[0]),t.unlockScreenReader=function(){o=!1,n(e[0]),t.unlockScreenReader=null}}function y(e,t){var n="fixed"==l.getComputedStyle(s[0].body).position,o=t.backdrop?l.getComputedStyle(t.backdrop[0]):null,i=o?Math.min(s[0].body.clientHeight,Math.ceil(Math.abs(parseInt(o.height,10)))):0;return e.css({top:(n?r.scrollTop(t.parent):0)+"px",height:i?i+"px":"100%"}),e}function C(e,t){t.parent.append(e),y(e,t);var n=e.find("md-dialog"),o=r.dom.animator,i=o.calculateZoomToOrigin,a={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},d=o.toTransformCss(i(n,t.openFrom||t.origin)),c=o.toTransformCss("");return t.fullscreen&amp;&amp;n.addClass("md-dialog-fullscreen"),o.translate3d(n,d,c,a).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(a={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},d=c,c=o.toTransformCss(i(n,t.closeTo)),o.translate3d(n,d,c,a)):e(o.toTransformCss(i(n,t.origin)))},!0})}function A(e,t){return t.reverseAnimate()}function T(e,t){return-1!==t.indexOf(e.nodeName)||void 0}return{hasBackdrop:!0,isolateScope:!0,onShow:f,onShowing:h,onRemove:g,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){function n(e){return t.autoWrap&amp;&amp;!/&lt;\/md-dialog&gt;/g.test(e)?"&lt;md-dialog&gt;"+(e||"")+"&lt;/md-dialog&gt;":e||""}return'&lt;div class="md-dialog-container"&gt;'+n(e)+"&lt;/div&gt;"}}}var i,a;return o.$inject=["$mdDialog","$mdTheming"],r.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen"],options:r}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:o}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:o})}t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",o),e.$inject=["$$rAF","$mdTheming","$mdDialog"],o.$inject=["$$interimElementProvider"]}(),function(){function e(e){return{restrict:"E",link:e}}t.module("material.components.divider",["material.core"]).directive("mdDivider",e),e.$inject=["$mdTheming"]}(),function(){!function(){function e(){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(e,n){var o=e.children(),r=!1;t.forEach(["","data-","x-"],function(e){r=r||!!o.attr(e+"ng-repeat")}),r?o.addClass("md-fab-action-item"):o.wrap('&lt;div class="md-fab-action-item"&gt;')}}}t.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}()}(),function(){!function(){function e(e,n,o,r,i,a){function d(){_.direction=_.direction||"down",_.isOpen=_.isOpen||!1,l()}function c(){var o=["click","focusin","focusout"];t.forEach(o,function(e){n.on(e,s)}),e.$on("$destroy",function(){t.forEach(o,function(e){n.off(e,s)}),h()})}function s(e){"click"==e.type&amp;&amp;w(e),"focusout"!=e.type||H||(H=a(function(){_.close()},100,!1)),"focusin"==e.type&amp;&amp;H&amp;&amp;(a.cancel(H),H=null)}function l(){_.currentActionIndex=-1}function m(){e.$watch("vm.direction",function(e,t){o.removeClass(n,"md-"+t),o.addClass(n,"md-"+e),l()});var t,r;e.$watch("vm.isOpen",function(e){
l(),t&amp;&amp;r||(t=x(),r=N()),e?p():h();var i=e?"md-is-open":"",a=e?"":"md-is-open";t.attr("aria-haspopup",!0),t.attr("aria-expanded",e),r.attr("aria-hidden",!e),o.setClass(n,i,a)})}function u(){r.nextTick(function(){o.addClass(n,"md-noop")})}function p(){n.on("keydown",g),r.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=r.getClosest(e.target,"md-fab-trigger"),n=r.getClosest(e.target,"md-fab-actions");t||n||_.close()}}function g(e){switch(e.which){case i.KEY_CODE.ESCAPE:return _.close(),e.preventDefault(),!1;case i.KEY_CODE.LEFT_ARROW:return $(e),!1;case i.KEY_CODE.UP_ARROW:return y(e),!1;case i.KEY_CODE.RIGHT_ARROW:return C(e),!1;case i.KEY_CODE.DOWN_ARROW:return A(e),!1}}function b(e){v(e,-1)}function E(e){v(e,1)}function v(e,n){var o=M();_.currentActionIndex=_.currentActionIndex+n,_.currentActionIndex=Math.min(o.length-1,_.currentActionIndex),_.currentActionIndex=Math.max(0,_.currentActionIndex);var r=t.element(o[_.currentActionIndex]).children()[0];t.element(r).attr("tabindex",0),r.focus(),e.preventDefault(),e.stopImmediatePropagation()}function M(){var e=N()[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){"left"===_.direction?E(e):b(e)}function y(e){"down"===_.direction?b(e):E(e)}function C(e){"left"===_.direction?b(e):E(e)}function A(e){"up"===_.direction?b(e):E(e)}function T(e){return r.getClosest(e,"md-fab-trigger")}function k(e){return r.getClosest(e,"md-fab-actions")}function w(e){T(e.target)&amp;&amp;_.toggle(),k(e.target)&amp;&amp;_.close()}function x(){return n.find("md-fab-trigger")}function N(){return n.find("md-fab-actions")}var _=this;_.open=function(){e.$evalAsync("vm.isOpen = true")},_.close=function(){e.$evalAsync("vm.isOpen = false"),n.find("md-fab-trigger")[0].focus()},_.toggle=function(){e.$evalAsync("vm.isOpen = !vm.isOpen")},d(),c(),m(),u();var H}t.module("material.components.fabShared",["material.core"]).controller("FabController",e),e.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"]}()}(),function(){!function(){function n(){function e(e,t){t.prepend('&lt;div class="md-css-variables"&gt;&lt;/div&gt;')}return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"FabController",controllerAs:"vm",link:e}}function o(n){function o(e){n(e,i,!1)}function r(n){var o=n[0],r=n.controller("mdFabSpeedDial"),i=o.querySelectorAll(".md-fab-action-item"),a=o.querySelector("md-fab-trigger"),d=o.querySelector(".md-css-variables"),c=parseInt(e.getComputedStyle(d).zIndex);t.forEach(i,function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=i.length-t+c}),a.style.zIndex=c+i.length+1,r.isOpen||t.forEach(i,function(e,t){var n,o,i=e.style,d=(a.clientHeight-e.clientHeight)/2,c=(a.clientWidth-e.clientWidth)/2;switch(r.direction){case"up":n=e.scrollHeight*(t+1)+d,o="Y";break;case"down":n=-(e.scrollHeight*(t+1)+d),o="Y";break;case"left":n=e.scrollWidth*(t+1)+c,o="X";break;case"right":n=-(e.scrollWidth*(t+1)+c),o="X"}var s="translate"+o+"("+n+"px)";i.transform=i.webkitTransform=s})}return{addClass:function(e,t,n){e.hasClass("md-fling")&amp;&amp;r(e),o(n)},removeClass:function(e,t,n){r(e),o(n)}}}function r(n){function o(e){n(e,i,!1)}function r(n){var o=n[0],r=n.controller("mdFabSpeedDial"),i=o.querySelectorAll(".md-fab-action-item"),d=o.querySelector(".md-css-variables"),c=parseInt(e.getComputedStyle(d).zIndex);t.forEach(i,function(e,t){var n=e.style,o=t*a;n.opacity=r.isOpen?1:0,n.transform=n.webkitTransform=r.isOpen?"scale(1)":"scale(0.1)",n.transitionDelay=(r.isOpen?o:i.length-o)+"ms",n.zIndex=i.length-t+c})}var a=65;return{addClass:function(e,t,n){r(e),o(n)},removeClass:function(e,t,n){r(e),o(n)}}}var i=300;t.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabTrigger","material.components.fabActions"]).directive("mdFabSpeedDial",n).animation(".md-fling",o).animation(".md-scale",r).service("mdFabSpeedDialFlingAnimation",o).service("mdFabSpeedDialScaleAnimation",r),o.$inject=["$timeout"],r.$inject=["$timeout"]}()}(),function(){!function(){function n(){function e(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('&lt;div class="md-fab-toolbar-background"&gt;&lt;/div&gt;')}return{restrict:"E",transclude:!0,template:'&lt;div class="md-fab-toolbar-wrapper"&gt;  &lt;div class="md-fab-toolbar-content" ng-transclude&gt;&lt;/div&gt;&lt;/div&gt;',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"FabController",controllerAs:"vm",link:e}}function o(){function n(n,o,r){if(o){var i=n[0],a=n.controller("mdFabToolbar"),d=i.querySelector(".md-fab-toolbar-background"),c=i.querySelector("md-fab-trigger button"),s=i.querySelector("md-toolbar"),l=i.querySelector("md-fab-trigger button md-icon"),m=n.find("md-fab-actions").children();if(c&amp;&amp;d){var u=e.getComputedStyle(c).getPropertyValue("background-color"),p=i.offsetWidth,h=(i.offsetHeight,2*(p/c.offsetWidth));d.style.backgroundColor=u,d.style.borderRadius=p+"px",a.isOpen?(s.style.pointerEvents="initial",d.style.width=c.offsetWidth+"px",d.style.height=c.offsetHeight+"px",d.style.transform="scale("+h+")",d.style.transitionDelay="0ms",l&amp;&amp;(l.style.transitionDelay=".3s"),t.forEach(m,function(e,t){e.style.transitionDelay=25*(m.length-t)+"ms"})):(s.style.pointerEvents="none",d.style.transform="scale(1)",d.style.top="0",n.hasClass("md-right")&amp;&amp;(d.style.left="0",d.style.right=null),n.hasClass("md-left")&amp;&amp;(d.style.right="0",d.style.left=null),d.style.transitionDelay="200ms",l&amp;&amp;(l.style.transitionDelay="0ms"),t.forEach(m,function(e,t){e.style.transitionDelay=200+25*t+"ms"}))}}}return{addClass:function(e,t,o){n(e,t,o),o()},removeClass:function(e,t,o){n(e,t,o),o()}}}t.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabTrigger","material.components.fabActions"]).directive("mdFabToolbar",n).animation(".md-fab-toolbar",o).service("mdFabToolbarAnimation",o)}()}(),function(){!function(){function e(){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"]}}t.module("material.components.fabTrigger",["material.core"]).directive("mdFabTrigger",e)}()}(),function(){function e(e,o,r,i){function a(n,a,d,c){function s(){for(var e in o.MEDIA)i(e),i.getQuery(o.MEDIA[e]).addListener(C);return i.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],d,m)}function l(){c.layoutDelegate=t.noop,A();for(var e in o.MEDIA)i.getQuery(o.MEDIA[e]).removeListener(C)}function m(e){null==e?c.invalidateLayout():i(e)&amp;&amp;c.invalidateLayout()}function u(e){var o=g(),i={tileSpans:b(o),colCount:E(),rowMode:$(),rowHeight:M(),gutter:v()};if(e||!t.equals(i,T)){var d=r(i.colCount,i.tileSpans,o).map(function(e,n){return{grid:{element:a,style:f(i.colCount,n,i.gutter,i.rowMode,i.rowHeight)},tiles:e.map(function(e,r){return{element:t.element(o[r]),style:h(e.position,e.spans,i.colCount,n,i.gutter,i.rowMode,i.rowHeight)}})}}).reflow().performance();n.mdOnLayout({$event:{performance:d}}),T=i}}function p(e){return k+e+w}function h(e,t,n,o,r,i,a){var d=1/n*100,c=(n-1)/n,s=x({share:d,gutterShare:c,gutter:r}),l={left:N({unit:s,offset:e.col,gutter:r}),width:_({unit:s,span:t.col,gutter:r}),paddingTop:"",marginTop:"",top:"",height:""};switch(i){case"fixed":l.top=N({unit:a,offset:e.row,gutter:r}),l.height=_({unit:a,span:t.row,gutter:r});break;case"ratio":var m=d/a,u=x({share:m,gutterShare:c,gutter:r});l.paddingTop=_({unit:u,span:t.row,gutter:r}),l.marginTop=N({unit:u,offset:e.row,gutter:r});break;case"fit":var p=(o-1)/o,m=1/o*100,u=x({share:m,gutterShare:p,gutter:r});l.top=N({unit:u,offset:e.row,gutter:r}),l.height=_({unit:u,span:t.row,gutter:r})}return l}function f(e,t,n,o,r){var i={};switch(o){case"fixed":i.height=_({unit:r,span:t,gutter:n}),i.paddingBottom="";break;case"ratio":var a=1===e?0:(e-1)/e,d=1/e*100,c=d*(1/r),s=x({share:c,gutterShare:a,gutter:n});i.height="",i.paddingBottom=_({unit:s,span:t,gutter:n});break;case"fit":}return i}function g(){return[].filter.call(a.children(),function(e){return"MD-GRID-TILE"==e.tagName&amp;&amp;!e.$$mdDestroyed})}function b(e){return[].map.call(e,function(e){var n=t.element(e).controller("mdGridTile");return{row:parseInt(i.getResponsiveAttribute(n.$attrs,"md-rowspan"),10)||1,col:parseInt(i.getResponsiveAttribute(n.$attrs,"md-colspan"),10)||1}})}function E(){var e=parseInt(i.getResponsiveAttribute(d,"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 v(){return y(i.getResponsiveAttribute(d,"md-gutter")||1)}function M(){var e=i.getResponsiveAttribute(d,"md-row-height");switch($()){case"fixed":return y(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}function $(){var e=i.getResponsiveAttribute(d,"md-row-height");return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function y(e){return/\D$/.test(e)?e:e+"px"}a.attr("role","list"),c.layoutDelegate=u;var C=t.bind(c,c.invalidateLayout),A=s();n.$on("$destroy",l);var T,k=e.startSymbol(),w=e.endSymbol(),x=e(p("share")+"% - ("+p("gutter")+" * "+p("gutterShare")+")"),N=e("calc(("+p("unit")+" + "+p("gutter")+") * "+p("offset")+")"),_=e("calc(("+p("unit")+") * "+p("span")+" + ("+p("span")+" - 1) * "+p("gutter")+")")}return{restrict:"E",controller:n,scope:{mdOnLayout:"&amp;"},link:a}}function n(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=t.noop}function o(e){function n(t,n){var o,a,d,c,s,l;return c=e.time(function(){a=r(t,n)}),o={layoutInfo:function(){return a},map:function(t){return s=e.time(function(){var e=o.layoutInfo();d=t(e.positioning,e.rowCount)}),o},reflow:function(t){return l=e.time(function(){var e=t||i;e(d.grid,d.tiles)}),o},performance:function(){return{tileCount:n.length,layoutTime:c,mapTime:s,reflowTime:l,totalTime:c+s+l}}}}function o(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}function r(e,t){function n(t,n){if(t.col&gt;e)throw"md-grid-list: Tile at position "+n+" has a colspan ("+t.col+") that exceeds the column count ("+e+")";for(var a=0,l=0;l-a&lt;t.col;)d&gt;=e?o():(a=s.indexOf(0,d),-1!==a&amp;&amp;-1!==(l=i(a+1))?d=l+1:(a=l=0,o()));return r(a,t.col,t.row),d=a+t.col,{col:a,row:c}}function o(){d=0,c++,r(0,e,-1)}function r(e,t,n){for(var o=e;e+t&gt;o;o++)s[o]=Math.max(s[o]+n,0)}function i(e){var t;for(t=e;t&lt;s.length;t++)if(0!==s[t])return t;return t===s.length?t:void 0}function a(){for(var t=[],n=0;e&gt;n;n++)t.push(0);return t}var d=0,c=0,s=a();return{positioning:t.map(function(e,t){return{spans:e,position:n(e,t)}}),rowCount:c+Math.max.apply(Math,s)}}var i=o;return n.animateWith=function(e){i=t.isFunction(e)?e:o},n}function r(e){function n(n,o,r,i){o.attr("role","listitem");var a=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],r,t.bind(i,i.invalidateLayout));i.invalidateTiles(),n.$on("$destroy",function(){o[0].$$mdDestroyed=!0,a(),i.invalidateLayout()}),t.isDefined(n.$parent.$index)&amp;&amp;n.$watch(function(){return n.$parent.$index},function(e,t){e!==t&amp;&amp;i.invalidateTiles()})}return{restrict:"E",require:"^mdGridList",template:"&lt;figure ng-transclude&gt;&lt;/figure&gt;",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:n}}function i(){return{template:"&lt;figcaption ng-transclude&gt;&lt;/figcaption&gt;",transclude:!0}}t.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",r).directive("mdGridTileFooter",i).directive("mdGridTileHeader",i).factory("$mdGridLayout",o),e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],n.$inject=["$mdUtil"],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}}},o.$inject=["$mdUtil"],r.$inject=["$mdMedia"]}(),function(){t.module("material.components.icon",["material.core"])}(),function(){function n(e,t){function n(t,n,o){e(n),n.find("md-icon").length&amp;&amp;n.addClass("md-has-icon")}function o(e,n,o,r){var i=this;i.isErrorGetter=o.mdIsError&amp;&amp;t(o.mdIsError),i.delegateClick=function(){i.input.focus()},i.element=n,i.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},i.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},i.setHasPlaceholder=function(e){n.toggleClass("md-input-has-placeholder",!!e)},i.setInvalid=function(e){e?r.addClass(n,"md-input-invalid"):r.removeClass(n,"md-input-invalid")},e.$watch(function(){return i.label&amp;&amp;i.input},function(e){e&amp;&amp;!i.label.attr("for")&amp;&amp;i.label.attr("for",i.input.attr("id"))})}return o.$inject=["$scope","$element","$attrs","$animate"],{restrict:"E",link:n,controller:o}}function o(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,o){!o||n.mdNoFloat||t.hasClass("md-container-ignore")||(o.label=t,e.$on("$destroy",function(){o.label=null}))}}}function r(e,n,o){function r(r,i,a,d){function c(e){return m.setHasValue(!p.$isEmpty(e)),e}function s(){m.setHasValue(i.val().length&gt;0||(i[0].validity||{}).badInput)}function l(){function o(e){return f(),e}function a(){if(l.style.height=l.offsetHeight+"px",i.addClass("md-no-flex"),isNaN(u)){s.style.height="auto",s.scrollTop=0;var e=d();e&amp;&amp;(s.style.height=e+"px")}else{s.setAttribute("rows",1),h||(s.style.minHeight="0",h=i.prop("clientHeight"),s.style.minHeight=null);var t=Math.min(u,Math.round(s.scrollHeight/h));s.setAttribute("rows",t),s.style.height=h*t+"px"}i.removeClass("md-no-flex"),l.style.height="auto"}function d(){var e=s.scrollHeight-s.offsetHeight;return s.offsetHeight+(e&gt;0?e:0)}function c(e){s.scrollTop=0;var t=s.scrollHeight-s.offsetHeight,n=s.offsetHeight+t;s.style.height=n+"px"}if(!t.isDefined(i.attr("md-no-autogrow"))){var s=i[0],l=m.element[0],u=NaN,h=null;s.hasAttribute("rows")&amp;&amp;(u=parseInt(s.getAttribute("rows")));var f=e.debounce(a,1);if(p?(p.$formatters.push(o),p.$viewChangeListeners.push(o)):f(),i.on("keydown input",f),isNaN(u)&amp;&amp;(i.attr("rows","1"),i.on("scroll",c)),t.element(n).on("resize",f),r.$on("$destroy",function(){t.element(n).off("resize",f)}),t.isDefined(i.attr("md-detect-hidden"))){var g=function(){var e=!1;return function(){var t=0===s.offsetHeight;t===!1&amp;&amp;e===!0&amp;&amp;a(),e=t}}();r.$watch(function(){return e.nextTick(g,!1),!0})}}}var m=d[0],u=!!d[1],p=d[1]||e.fakeNgModel(),h=t.isDefined(a.readonly);if(m){if(m.input)throw new Error("&lt;md-input-container&gt; can only have *one* &lt;input&gt;, &lt;textarea&gt; or &lt;md-select&gt; child element!");m.input=i;var f=t.element('&lt;div class="md-errors-spacer"&gt;');i.after(f),m.label||o.expect(i,"aria-label",i.attr("placeholder")),i.addClass("md-input"),i.attr("id")||i.attr("id","input_"+e.nextUid()),"textarea"===i[0].tagName.toLowerCase()&amp;&amp;l(),u||s();var g=m.isErrorGetter||function(){return p.$invalid&amp;&amp;(p.$touched||p.$$parentForm.$submitted)};r.$watch(g,m.setInvalid),p.$parsers.push(c),p.$formatters.push(c),i.on("input",s),h||i.on("focus",function(e){m.setFocused(!0)}).on("blur",function(e){m.setFocused(!1),s()}),r.$on("$destroy",function(){m.setFocused(!1),m.setHasValue(!1),m.input=null})}}return{restrict:"E",require:["^?mdInputContainer","?ngModel"],link:r}}function i(e,n){function o(o,r,i,a){function d(e){return s.parent?(s.text(String(r.val()||e||"").length+"/"+c),e):e}var c,s,l,m=a[0],u=a[1];n.nextTick(function(){l=t.element(u.element[0].querySelector(".md-errors-spacer")),s=t.element('&lt;div class="md-char-counter"&gt;'),l.append(s),i.$set("ngTrim","false"),m.$formatters.push(d),m.$viewChangeListeners.push(d),r.on("input keydown keyup",function(){d()}),o.$watch(i.mdMaxlength,function(n){c=n,t.isNumber(n)&amp;&amp;n&gt;0?(s.parent().length||e.enter(s,l),d()):e.leave(s)}),m.$validators["md-maxlength"]=function(e,n){return!t.isNumber(c)||0&gt;c||(e||r.val()||n||"").length&lt;=c}})}return{restrict:"A",require:["ngModel","^mdInputContainer"],link:o}}function a(e){function n(e,n,o,r){if(r){var i=r.element.find("label"),a=t.isDefined(r.element.attr("md-no-float"));if(i&amp;&amp;i.length||a)return void r.setHasPlaceholder(!0);var d=o.placeholder;if(n.removeAttr("placeholder"),r.input&amp;&amp;"MD-SELECT"!=r.input[0].nodeName){var c='&lt;label ng-click="delegateClick()"&gt;'+d+"&lt;/label&gt;";r.element.addClass("md-icon-float"),r.element.prepend(c)}}}return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:n}}function d(){function e(e,n,o,r){r&amp;&amp;(n.toggleClass("md-input-messages-animation",!0),n.toggleClass("md-auto-hide",!0),("false"==o.mdAutoHide||t(o))&amp;&amp;n.toggleClass("md-auto-hide",!1))}function t(e){return E.some(function(t){return e[t]})}return{restrict:"EA",link:e,require:"^^?mdInputContainer"}}function c(e){function t(t){var n=e.getClosest(t,"md-input-container");if(n)return t.toggleClass("md-input-message-animation",!0),{}}return{restrict:"EA",compile:t,priority:100}}function s(e,t){return{addClass:function(n,o,r){var i=b(n);"md-input-invalid"==o&amp;&amp;i.hasClass("md-auto-hide")&amp;&amp;u(n,t,e)["finally"](r)}}}function l(e,t){return{enter:function(n,o){u(n,t,e)["finally"](o)},leave:function(n,o){p(n,t,e)["finally"](o)},addClass:function(n,o,r){"ng-hide"==o?p(n,t,e)["finally"](r):r()},removeClass:function(n,o,r){"ng-hide"==o?u(n,t,e)["finally"](r):r()}}}function m(e){return{enter:function(t,n){var o=b(t);return o.hasClass("md-auto-hide")?void n():h(t,e)},leave:function(t,n){return f(t,e)}}}function u(e,n,o){var r,i=[],a=b(e);return t.forEach(a.children(),function(e){r=h(t.element(e),n),i.push(r.start())}),o.all(i)}function p(e,n,o){var r,i=[],a=b(e);return t.forEach(a.children(),function(e){r=f(t.element(e),n),i.push(r.start())}),o.all(i)}function h(e,t){var n=e[0].offsetHeight;return t(e,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-n+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function f(t,n){var o=t[0].offsetHeight,r=e.getComputedStyle(t[0]);return 0==r.opacity?n(t,{}):n(t,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-o+"px"},duration:.3})}function g(e){var t=e.controller("mdInputContainer");return t.element}function b(e){var n=g(e),o="ng-messages,data-ng-messages,x-ng-messages,[ng-messages],[data-ng-messages],[x-ng-messages]";return t.element(n[0].querySelector(o))}t.module("material.components.input",["material.core"]).directive("mdInputContainer",n).directive("label",o).directive("input",r).directive("textarea",r).directive("mdMaxlength",i).directive("placeholder",a).directive("ngMessages",d).directive("ngMessage",c).directive("ngMessageExp",c).animation(".md-input-invalid",s).animation(".md-input-messages-animation",l).animation(".md-input-message-animation",m),n.$inject=["$mdTheming","$parse"],r.$inject=["$mdUtil","$window","$mdAria"],i.$inject=["$animate","$mdUtil"],a.$inject=["$log"];var E=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];c.$inject=["$mdUtil"],s.$inject=["$q","$animateCss"],l.$inject=["$q","$animateCss"],m.$inject=["$animateCss"]}(),function(){function e(e){return{restrict:"E",compile:function(t){return t[0].setAttribute("role","list"),e}}}function n(e,n,o,r){var i=["md-checkbox","md-switch"];return{restrict:"E",controller:"MdListController",compile:function(a,d){function c(){for(var e,t,n=["md-switch","md-checkbox"],o=0;t=n[o];++o)if((e=a.find(t)[0])&amp;&amp;!e.hasAttribute("aria-label")){var r=a.find("p")[0];if(!r)return;e.setAttribute("aria-label","Toggle "+r.textContent)}}function s(e){var n;"div"==e?(n=t.element('&lt;div class="md-no-style md-list-item-inner"&gt;'),n.append(a.contents()),a.addClass("md-proxy-focus")):(n=t.element('&lt;md-button class="md-no-style"&gt;&lt;div class="md-list-item-inner"&gt;&lt;/div&gt;&lt;/md-button&gt;'),m(a[0],n[0]),n.children().eq(0).append(a.contents())),a[0].setAttribute("tabindex","-1"),a.append(n)}function l(){if(b&amp;&amp;!p(b)&amp;&amp;b.hasAttribute("ng-click")){e.expect(b,"aria-label");var n=t.element('&lt;md-button class="md-secondary-container md-icon-button"&gt;');m(b,n[0]),b.setAttribute("tabindex","-1"),b.classList.remove("md-secondary"),n.append(b),b=n[0]}b&amp;&amp;(b.hasAttribute("ng-click")||d.ngClick&amp;&amp;u(b))&amp;&amp;(a.addClass("md-with-secondary"),a.append(b))}function m(e,n){var o=["ng-if","ng-click","aria-label","ng-disabled","ui-sref","href","ng-href","ng-attr-ui-sref"];t.forEach(o,function(t){e.hasAttribute(t)&amp;&amp;(n.setAttribute(t,e.getAttribute(t)),e.removeAttribute(t))})}function u(e){return-1!=i.indexOf(e.nodeName.toLowerCase())}function p(e){var t=e.nodeName.toUpperCase();return"MD-BUTTON"==t||"BUTTON"==t}function h(e,a,d,c){function s(e){for(var t=e.attributes,n=0;n&lt;t.length;n++)if("ngClick"===d.$normalize(t[n].name))return!0;return!1}function l(){var e=a.children();e.length&amp;&amp;!e[0].hasAttribute("ng-click")&amp;&amp;t.forEach(i,function(e){t.forEach(p.querySelectorAll(e),function(e){u.push(e)})})}function m(){(1==u.length||h)&amp;&amp;(a.addClass("md-clickable"),h||c.attachRipple(e,t.element(a[0].querySelector(".md-no-style"))))}var u=[],p=a[0].firstElementChild,h=p&amp;&amp;s(p);l(),m(),a.hasClass("md-proxy-focus")&amp;&amp;u.length&amp;&amp;t.forEach(u,function(n){n=t.element(n),e.mouseActive=!1,n.on("mousedown",function(){e.mouseActive=!0,r(function(){e.mouseActive=!1},100)}).on("focus",function(){e.mouseActive===!1&amp;&amp;a.addClass("md-focused"),n.on("blur",function t(){a.removeClass("md-focused"),n.off("blur",t)})})}),h||u.length||p&amp;&amp;p.addEventListener("keypress",function(e){if("INPUT"!=e.target.nodeName&amp;&amp;"TEXTAREA"!=e.target.nodeName){var t=e.which||e.keyCode;t==n.KEY_CODE.SPACE&amp;&amp;p&amp;&amp;(p.click(),e.preventDefault(),e.stopPropagation())}}),a.off("click"),a.off("keypress"),1==u.length&amp;&amp;p&amp;&amp;a.children().eq(0).on("click",function(e){var n=o.getClosest(e.target,"BUTTON");!n&amp;&amp;p.contains(e.target)&amp;&amp;t.forEach(u,function(n){e.target===n||n.contains(e.target)||t.element(n).triggerHandler("click")})})}var f,g,b=a[0].querySelector(".md-secondary");if(a[0].setAttribute("role","listitem"),d.ngClick||d.ngHref||d.href||d.uiSref||d.ngAttrUiSref)s("button");else{for(var E,v=0;E=i[v];++v)if(g=a[0].querySelector(E)){f=!0;break}f?s("div"):a[0].querySelector("md-button:not(.md-secondary):not(.md-exclude)")||a.addClass("md-no-proxy")}return l(),c(),h}}}function o(e,t,n){function o(e,t){var o={};n.attach(e,t,o)}var r=this;r.attachRipple=o}t.module("material.components.list",["material.core"]).controller("MdListController",o).directive("mdList",e).directive("mdListItem",n),e.$inject=["$mdTheming"],n.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],o.$inject=["$scope","$element","$mdListInkRipple"]}(),function(){t.module("material.components.menu",["material.core","material.components.backdrop"])}(),function(){t.module("material.components.menuBar",["material.core","material.components.menu"])}(),function(){function e(e,o,r){function i(e){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),a}function a(i,a,p){function h(){p.$observe("value",function(e){var t=d(e);a.attr("aria-valuenow",t),v()==m&amp;&amp;b(t)}),p.$observe("mdMode",function(e){switch(e){case m:case u:y.removeClass("ng-hide"),M&amp;&amp;y.removeClass(M),y.addClass(M="md-mode-"+e);break;default:M&amp;&amp;y.removeClass(M),y.addClass("ng-hide"),M=n}})}function f(){$.css({width:100*E()+"px",height:100*E()+"px"}),$.children().eq(0).css(C({transform:o.supplant("translate(-50%, -50%) scale( {0} )",[E()])}))}function g(){if(t.isUndefined(p.mdMode)){var e=t.isDefined(p.value),n=e?m:u,i="Auto-adding the missing md-mode='{0}' to the ProgressCircular element";r.debug(o.supplant(i,[n])),a.attr("md-mode",n),p.mdMode=n}}function b(e){if(v()){A=A||t.element(a[0].querySelector(".md-left &gt; .md-half-circle")),T=T||t.element(a[0].querySelector(".md-right &gt; .md-half-circle")),k=k||t.element(a[0].querySelector(".md-gap"));var n=c({borderBottomColor:50&gt;=e?"transparent !important":"",transition:50&gt;=e?"":"borderBottomColor 0.1s linear"}),r=c({transition:50&gt;=e?"transform 0.1s linear":"",transform:o.supplant("rotate({0}deg)",[50&gt;=e?135:(e-50)/50*180+135])}),i=c({transition:e&gt;=50?"transform 0.1s linear":"",transform:o.supplant("rotate({0}deg)",[e&gt;=50?45:e/50*180-135])});A.css(C(r)),T.css(C(i)),k.css(C(n))}}function E(){if(!p.mdDiameter)return l;var e=/([0-9]*)%/.exec(p.mdDiameter),t=Math.max(0,e&amp;&amp;e[1]/100||parseFloat(p.mdDiameter));return t&gt;1?t/s:t}function v(){var e=(p.mdMode||"").trim();if(e)switch(e){case m:case u:break;default:e=n}return e}e(a);var M,$=a,y=t.element(a.children()[0]),C=o.dom.animator.toCss;a.attr("md-mode",v()),f(),g(),h();var A,T,k}function d(e){return Math.max(0,Math.min(e||0,100))}function c(e){for(var t in e)e.hasOwnProperty(t)&amp;&amp;""==e[t]&amp;&amp;delete e[t];return e}var s=100,l=.5,m="determinate",u="indeterminate";return{restrict:"E",scope:!0,template:'&lt;div class="md-scale-wrapper"&gt;&lt;div class="md-spinner-wrapper"&gt;&lt;div class="md-inner"&gt;&lt;div class="md-gap"&gt;&lt;/div&gt;&lt;div class="md-left"&gt;&lt;div class="md-half-circle"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="md-right"&gt;&lt;div class="md-half-circle"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;',compile:i}}t.module("material.components.progressCircular",["material.core"]).directive("mdProgressCircular",e),e.$inject=["$mdTheming","$mdUtil","$log"]}(),function(){function e(e,o,r){function i(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),a}function a(i,a,u){function p(){u.$observe("value",function(e){var t=d(e);a.attr("aria-valuenow",t),f()!=m&amp;&amp;g(M,t)}),u.$observe("mdBufferValue",function(e){g(v,d(e))}),u.$observe("mdMode",function(e){switch(e){case m:case l:case c:case s:$.removeClass("ng-hide "+b),$.addClass(b="md-mode-"+e);break;default:b&amp;&amp;$.removeClass(b),$.addClass("ng-hide"),b=n}})}function h(){if(t.isUndefined(u.mdMode)){var e=t.isDefined(u.value),n=e?c:s,i="Auto-adding the missing md-mode='{0}' to the ProgressLinear element";r.debug(o.supplant(i,[n])),a.attr("md-mode",n),u.mdMode=n}}function f(){var e=(u.mdMode||"").trim();if(e)switch(e){case c:case s:case l:case m:break;default:e=n}return e}function g(e,n){if(f()){var r=o.supplant("translateX({0}%) scale({1},1)",[(n-100)/2,n/100]),i=E({transform:r});t.element(e).css(i)}}e(a);var b,E=o.dom.animator.toCss,v=t.element(a[0].querySelector(".md-bar1")),M=t.element(a[0].querySelector(".md-bar2")),$=t.element(a[0].querySelector(".md-container"));a.attr("md-mode",f()),h(),p()}function d(e){return Math.max(0,Math.min(e||0,100))}var c="determinate",s="indeterminate",l="buffer",m="query";return{restrict:"E",template:'&lt;div class="md-container"&gt;&lt;div class="md-dashed"&gt;&lt;/div&gt;&lt;div class="md-bar md-bar1"&gt;&lt;/div&gt;&lt;div class="md-bar md-bar2"&gt;&lt;/div&gt;&lt;/div&gt;',compile:i}}t.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",e),e.$inject=["$mdTheming","$mdUtil","$log"]}(),function(){function e(e,n,o,r){function i(i,a,d,c){function s(){a.hasClass("md-focused")||a.addClass("md-focused")}function l(o){var r=o.which||o.keyCode;if(r==n.KEY_CODE.ENTER||o.currentTarget==o.target)switch(r){case n.KEY_CODE.LEFT_ARROW:case n.KEY_CODE.UP_ARROW:o.preventDefault(),m.selectPrevious(),s();break;case n.KEY_CODE.RIGHT_ARROW:case n.KEY_CODE.DOWN_ARROW:o.preventDefault(),m.selectNext(),s();break;case n.KEY_CODE.ENTER:var i=t.element(e.getClosest(a[0],"form"));i.length&gt;0&amp;&amp;i.triggerHandler("submit")}}o(a);var m=c[0],u=c[1]||e.fakeNgModel();m.init(u),i.mouseActive=!1,a.attr({role:"radiogroup",tabIndex:a.attr("tabindex")||"0"}).on("keydown",l).on("mousedown",function(e){i.mouseActive=!0,r(function(){i.mouseActive=!1},100)}).on("focus",function(){i.mouseActive===!1&amp;&amp;m.$element.addClass("md-focused")}).on("blur",function(){m.$element.removeClass("md-focused")})}function a(e){this._radioButtonRenderFns=[],this.$element=e}function d(){return{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&amp;&amp;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 c(this.$element,1)},selectPrevious:function(){return c(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)}}}function c(n,o){var r=e.iterator(n[0].querySelectorAll("md-radio-button"),!0);if(r.count()){var i=function(e){return!t.element(e).attr("disabled")},a=n[0].querySelector("md-radio-button.md-checked"),d=r[0&gt;o?"previous":"next"](a,i)||r.first();t.element(d).triggerHandler("click")}}return a.prototype=d(),{restrict:"E",controller:["$element",a],require:["mdRadioGroup","?ngModel"],link:{pre:i}}}function n(e,t,n){function o(o,i,a,d){function c(e){if(!d)throw"RadioGroupController not found.";d.add(l),a.$observe("value",l),i.on("click",s).on("$destroy",function(){d.remove(l)})}function s(e){i[0].hasAttribute("disabled")||o.$apply(function(){d.setViewValue(a.value,e&amp;&amp;e.type)})}function l(){function e(e){"MD-RADIO-GROUP"!=i.parent()[0].nodeName&amp;&amp;i.parent()[e?"addClass":"removeClass"](r)}var t=d.getViewValue()==a.value;t!==u&amp;&amp;(u=t,i.attr("aria-checked",t),t?(e(!0),i.addClass(r),d.setActiveDescendant(i.attr("id"))):(e(!1),i.removeClass(r)))}function m(n,o){function r(){return a.id||"radio_"+t.nextUid()}o.ariaId=r(),n.attr({id:o.ariaId,role:"radio","aria-checked":"false"}),e.expectWithText(n,"aria-label")}var u;n(i),m(i,o),c()}var r="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'&lt;div class="md-container" md-ink-ripple md-ink-ripple-checkbox&gt;&lt;div class="md-off"&gt;&lt;/div&gt;&lt;div class="md-on"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div ng-transclude class="md-label"&gt;&lt;/div&gt;',link:o}}t.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",n),e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],n.$inject=["$mdAria","$mdUtil","$mdTheming"]}(),function(){function e(e,t){return["$mdUtil",function(n){return{restrict:"A",multiElement:!0,link:function(o,r,i){o.$watch(i[e],function(e){!!e===t&amp;&amp;(n.nextTick(function(){o.$broadcast("$md-resize")}),n.dom.animator.waitTransitionEnd(r).then(function(){o.$broadcast("$md-resize")}))})}}}]}t.module("material.components.showHide",["material.core"]).directive("ngShow",e("ngShow",!0)).directive("ngHide",e("ngHide",!1))}(),function(){function e(e,o,r,i,a,d){function c(a,c){var s=t.element("&lt;md-select-value&gt;&lt;span&gt;&lt;/span&gt;&lt;/md-select-value&gt;");if(s.append('&lt;span class="md-select-icon" aria-hidden="true"&gt;&lt;/span&gt;'),s.addClass("md-select-value"),s[0].hasAttribute("id")||s.attr("id","select_value_label_"+o.nextUid()),a.find("md-content").length||a.append(t.element("&lt;md-content&gt;").append(a.contents())),c.mdOnOpen&amp;&amp;(a.find("md-content").prepend(t.element('&lt;div&gt; &lt;md-progress-circular md-mode="{{progressMode}}" ng-hide="$$loadingAsyncDone"&gt;&lt;/md-progress-circular&gt;&lt;/div&gt;')),a.find("md-option").attr("ng-show","$$loadingAsyncDone")),c.name){var l=t.element('&lt;select class="md-visually-hidden"&gt;');l.attr({name:"."+c.name,"ng-model":c.ngModel,"aria-hidden":"true",tabindex:"-1"});var m=a.find("md-option");t.forEach(m,function(e){var n=t.element("&lt;option&gt;"+e.innerHTML+"&lt;/option&gt;");e.hasAttribute("ng-value")?n.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&amp;&amp;n.attr("value",e.getAttribute("value")),l.append(n)}),a.parent().append(l)}var u=t.isDefined(c.multiple)?"multiple":"",p='&lt;div class="md-select-menu-container" aria-hidden="true"&gt;&lt;md-select-menu {0}&gt;{1}&lt;/md-select-menu&gt;&lt;/div&gt;';return p=o.supplant(p,[u,a.html()]),a.empty().append(s),a.append(p),c.tabindex=c.tabindex||"0",function(a,c,s,l){function m(){var e=c.attr("aria-label")||c.attr("placeholder");!e&amp;&amp;M&amp;&amp;M.label&amp;&amp;(e=M.label.text()),v=e,i.expect(c,"aria-label",e)}function u(){w&amp;&amp;(N=N||w.find("md-select-menu").controller("mdSelectMenu"),$.setLabelText(N.selectedLabels()))}function p(){if(v){var e=N.selectedLabels({mode:"aria"});c.attr("aria-label",e.length?v+": "+e:v)}}function h(){M&amp;&amp;M.setHasValue(N.selectedLabels().length&gt;0||(c[0].validity||{}).badInput);
}function f(){if(w=t.element(c[0].querySelector(".md-select-menu-container")),x=w.scope(),c.attr("md-container-class")){var e=w[0].getAttribute("class")+" "+c.attr("md-container-class");w[0].setAttribute("class",e)}N=w.find("md-select-menu").controller("mdSelectMenu"),N.init(y,s.ngModel),c.on("$destroy",function(){w.remove()})}function g(e){var n=[32,13,38,40];if(-1!=n.indexOf(e.keyCode))e.preventDefault(),b(e);else if(e.keyCode&lt;=90&amp;&amp;e.keyCode&gt;=31){e.preventDefault();var o=N.optNodeForKeyboardSearch(e);if(!o)return;var r=t.element(o).controller("mdOption");N.isMultiple||N.deselect(Object.keys(N.selected)[0]),N.select(r.hashKey,r.value),N.refreshViewValue()}}function b(){x.isOpen=!0,c.attr("aria-expanded","true"),e.show({scope:x,preserveScope:!0,skipCompile:!0,element:w,target:c[0],selectCtrl:$,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!s.mdOnOpen&amp;&amp;(a.$eval(s.mdOnOpen)||!0)})["finally"](function(){x.isOpen=!1,c.attr("aria-expanded","false"),y.$setTouched()})}var E,v;o.nextTick(function(){c.off("blur")});var M=l[0],$=l[1],y=l[2],C=l[3],A=c.find("md-select-value"),T=t.isDefined(s.readonly);if(M){var k=M.isErrorGetter||function(){return y.$invalid&amp;&amp;y.$touched};if(M.input)throw new Error("&lt;md-input-container&gt; can only have *one* child &lt;input&gt;, &lt;textarea&gt; or &lt;select&gt; element!");M.input=c,M.label||i.expect(c,"aria-label",c.attr("placeholder")),a.$watch(k,M.setInvalid)}var w,x,N;if(f(),r(c),s.name&amp;&amp;C){var _=c.parent()[0].querySelector('select[name=".'+s.name+'"]');o.nextTick(function(){var e=t.element(_).controller("ngModel");e&amp;&amp;C.$removeControl(e)})}C&amp;&amp;o.nextTick(function(){C.$setPristine()});var H=y.$render;y.$render=function(){H(),u(),p(),h()},s.$observe("placeholder",y.$render),$.setLabelText=function(e){$.setIsPlaceholder(!e);var t=s.placeholder||(M&amp;&amp;M.label?M.label.text():"");e=e||t||"";var n=A.children().eq(0);n.html(e)},$.setIsPlaceholder=function(e){e?(A.addClass("md-select-placeholder"),M&amp;&amp;M.label&amp;&amp;M.label.addClass("md-placeholder")):(A.removeClass("md-select-placeholder"),M&amp;&amp;M.label&amp;&amp;M.label.removeClass("md-placeholder"))},T||c.on("focus",function(e){M&amp;&amp;M.element.hasClass("md-input-has-value")&amp;&amp;M.setFocused(!0)}).on("blur",function(e){M&amp;&amp;M.setFocused(!1),h()}),$.triggerClose=function(){d(s.mdOnClose)(a)},a.$$postDigest(function(){m(),u(),p()}),a.$watch(N.selectedLabels,u);var S;s.$observe("ngMultiple",function(e){S&amp;&amp;S();var t=d(e);S=a.$watch(function(){return t(a)},function(e,t){(e!==n||t!==n)&amp;&amp;(e?c.attr("multiple","multiple"):c.removeAttr("multiple"),c.attr("aria-multiselectable",e?"true":"false"),w&amp;&amp;(N.setMultiple(e),H=y.$render,y.$render=function(){H(),u(),p(),h()},y.$render()))})}),s.$observe("disabled",function(e){t.isString(e)&amp;&amp;(e=!0),(E===n||E!==e)&amp;&amp;(E=e,e?(c.attr({tabindex:-1,"aria-disabled":"true"}),c.off("click",b),c.off("keydown",g)):(c.attr({tabindex:s.tabindex,"aria-disabled":"false"}),c.on("click",b),c.on("keydown",g)))}),s.disabled||s.ngDisabled||(c.attr({tabindex:s.tabindex,"aria-disabled":"false"}),c.on("click",b),c.on("keydown",g));var D={role:"listbox","aria-expanded":"false","aria-multiselectable":s.multiple===n||s.ngMultiple?"false":"true"};c[0].hasAttribute("id")||(D.id="select_"+o.nextUid());var I="select_container_"+o.nextUid();w.attr("id",I),D["aria-owns"]=I,c.attr(D),a.$on("$destroy",function(){e.destroy()["finally"](function(){M&amp;&amp;(M.setFocused(!1),M.setHasValue(!1),M.input=null)})})}}return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:c,controller:function(){}}}function o(e,o,r){function i(e,n,i,a){function d(e){(13==e.keyCode||32==e.keyCode)&amp;&amp;c(e)}function c(n){var r=o.getClosest(n.target,"md-option"),i=r&amp;&amp;t.element(r).data("$mdOptionController");if(r&amp;&amp;i){if(r.hasAttribute("disabled"))return n.stopImmediatePropagation(),!1;var a=s.hashGetter(i.value),d=t.isDefined(s.selected[a]);e.$apply(function(){s.isMultiple?d?s.deselect(a):s.select(a,i.value):d||(s.deselect(Object.keys(s.selected)[0]),s.select(a,i.value)),s.refreshViewValue()})}}var s=a[0];r(n),n.on("click",c),n.on("keypress",d)}function a(r,i,a){function d(){var e=l.ngModel.$modelValue||l.ngModel.$viewValue||[];if(t.isArray(e)){var n=Object.keys(l.selected),o=e.map(l.hashGetter),r=n.filter(function(e){return-1===o.indexOf(e)});r.forEach(l.deselect),o.forEach(function(t,n){l.select(t,e[n])})}}function s(){var e=l.ngModel.$viewValue||l.ngModel.$modelValue;Object.keys(l.selected).forEach(l.deselect),l.select(l.hashGetter(e),e)}var l=this;l.isMultiple=t.isDefined(i.multiple),l.selected={},l.options={},r.$watchCollection(function(){return l.options},function(){l.ngModel.$render()});var m,u;l.setMultiple=function(e){function n(e,n){return t.isArray(e||n||[])}var o=l.ngModel;u=u||o.$isEmpty,l.isMultiple=e,m&amp;&amp;m(),l.isMultiple?(o.$validators["md-multiple"]=n,o.$render=d,r.$watchCollection(l.modelBinding,function(e){n(e)&amp;&amp;d(e),l.ngModel.$setPristine()}),o.$isEmpty=function(e){return!e||0===e.length}):(delete o.$validators["md-multiple"],o.$render=s)};var p,h,f,g="",b=300;l.optNodeForKeyboardSearch=function(e){p&amp;&amp;clearTimeout(p),p=setTimeout(function(){p=n,g="",f=n,h=n},b),g+=String.fromCharCode(e.keyCode);var o=new RegExp("^"+g,"i");h||(h=a.find("md-option"),f=new Array(h.length),t.forEach(h,function(e,t){f[t]=e.textContent.trim()}));for(var r=0;r&lt;f.length;++r)if(o.test(f[r]))return h[r]},l.init=function(n,o){if(l.ngModel=n,l.modelBinding=o,n.$options&amp;&amp;n.$options.trackBy){var i={},a=e(n.$options.trackBy);l.hashGetter=function(e,t){return i.$value=e,a(t||r,i)}}else l.hashGetter=function(e){return t.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++c)):e};l.setMultiple(l.isMultiple)},l.selectedLabels=function(e){e=e||{};var t=e.mode||"html",n=o.nodesToArray(a[0].querySelectorAll("md-option[selected]"));if(n.length){var r;return"html"==t?r=function(e){return e.innerHTML}:"aria"==t&amp;&amp;(r=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),n.map(r).join(", ")}return""},l.select=function(e,t){var n=l.options[e];n&amp;&amp;n.setSelected(!0),l.selected[e]=t},l.deselect=function(e){var t=l.options[e];t&amp;&amp;t.setSelected(!1),delete l.selected[e]},l.addOption=function(e,n){if(t.isDefined(l.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');l.options[e]=n,t.isDefined(l.selected[e])&amp;&amp;(l.select(e,n.value),l.refreshViewValue())},l.removeOption=function(e){delete l.options[e]},l.refreshViewValue=function(){var e,n=[];for(var o in l.selected)(e=l.options[o])?n.push(e.value):n.push(l.selected[o]);var r=l.ngModel.$options&amp;&amp;l.ngModel.$options.trackBy,i=l.isMultiple?n:n[0],a=l.ngModel.$modelValue;(r?t.equals(a,i):a==i)||(l.ngModel.$setViewValue(i),l.ngModel.$render())}}return a.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu"],scope:!0,controller:a,link:{pre:i}}}function r(e,n){function o(e,n){return e.append(t.element('&lt;div class="md-text"&gt;').append(e.contents())),e.attr("tabindex",n.tabindex||"0"),r}function r(o,r,i,a){function d(e,t,n){if(!l.hashGetter)return void(n||o.$$postDigest(function(){d(e,t,!0)}));var r=l.hashGetter(t,o),i=l.hashGetter(e,o);s.hashKey=i,s.value=e,l.removeOption(r,s),l.addOption(i,s)}function c(){var e={role:"option","aria-selected":"false"};r[0].hasAttribute("id")||(e.id="select_option_"+n.nextUid()),r.attr(e)}var s=a[0],l=a[1];t.isDefined(i.ngValue)?o.$watch(i.ngValue,d):t.isDefined(i.value)?d(i.value):o.$watch(function(){return r.text()},d),i.$observe("disabled",function(e){e?r.attr("tabindex","-1"):r.attr("tabindex","0")}),o.$$postDigest(function(){i.$observe("selected",function(e){t.isDefined(e)&amp;&amp;("string"==typeof e&amp;&amp;(e=!0),e?(l.isMultiple||l.deselect(Object.keys(l.selected)[0]),l.select(s.hashKey,s.value)):l.deselect(s.hashKey),l.refreshViewValue())})}),e.attach(o,r),c(),o.$on("$destroy",function(){l.removeOption(s.hashKey,s)})}function i(e){this.selected=!1,this.setSelected=function(t){t&amp;&amp;!this.selected?e.attr({selected:"selected","aria-selected":"true"}):!t&amp;&amp;this.selected&amp;&amp;(e.removeAttr("selected"),e.attr("aria-selected","false")),this.selected=t}}return i.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:i,compile:o}}function i(){function e(e,n){var o=e.find("label");o.length||(o=t.element("&lt;label&gt;"),e.prepend(o)),o.addClass("md-container-ignore"),n.label&amp;&amp;o.text(n.label)}return{restrict:"E",compile:e}}function a(e){function o(e,o,c,s,l,m,u,p,h){function f(e,t,n){function o(){return u(t,{addClass:"md-leave"}).start()}function r(){t.removeClass("md-active"),t.attr("aria-hidden","true"),t[0].style.display="none",b(n),!n.$destroy&amp;&amp;n.restoreFocus&amp;&amp;n.target.focus()}return n=n||{},n.cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),n.$destroy===!0?r():o().then(r)}function g(r,i,a){function d(e,t,n){return n.parent.append(t),l(function(e,n){try{u(t,{removeClass:"md-leave",duration:0}).start().then(f).then(e)}catch(o){n(o)}})}function f(){return l(function(e){if(a.isRemoved)return l.reject(!1);var t=E(r,i,a);t.container.element.css(M.toCss(t.container.styles)),t.dropDown.element.css(M.toCss(t.dropDown.styles)),m(function(){i.addClass("md-active"),t.dropDown.element.css(M.toCss({transform:""})),b(a.focusedNode),e()})})}function g(e,t,n){return n.disableParentScroll&amp;&amp;!c.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=c.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1,n.hasBackdrop&amp;&amp;(n.backdrop=c.createBackdrop(e,"md-select-backdrop md-click-catcher"),p.enter(n.backdrop,h[0].body,null,{duration:0})),function(){n.backdrop&amp;&amp;n.backdrop.remove(),n.disableParentScroll&amp;&amp;n.restoreScroll(),delete n.restoreScroll}}function b(e){e&amp;&amp;!e.hasAttribute("disabled")&amp;&amp;e.focus()}function $(e,n){var o=i.find("md-select-menu");if(!n.target)throw new Error(c.supplant(v,[n.target]));t.extend(n,{isRemoved:!1,target:t.element(n.target),parent:t.element(n.parent),selectEl:o,contentEl:i.find("md-content"),optionNodes:o[0].getElementsByTagName("md-option")})}function y(){var e=function(e,t,n){return function(){if(!n.isRemoved){var o=E(e,t,n),r=o.container,i=o.dropDown;r.element.css(M.toCss(r.styles)),i.element.css(M.toCss(i.styles))}}}(r,i,a),n=t.element(s);return n.on("resize",e),n.on("orientationchange",e),function(){n.off("resize",e),n.off("orientationchange",e)}}function C(){a.loadingAsync&amp;&amp;!a.isRemoved&amp;&amp;(r.$$loadingAsyncDone=!1,r.progressMode="indeterminate",l.when(a.loadingAsync).then(function(){r.$$loadingAsyncDone=!0,r.progressMode="",delete a.loadingAsync}).then(function(){m(f)}))}function A(){function t(t){t.preventDefault(),t.stopPropagation(),a.restoreFocus=!1,c.nextTick(e.hide,!0)}function r(t){var n=o.KEY_CODE;switch(t.preventDefault(),t.stopPropagation(),t.keyCode){case n.UP_ARROW:return l();case n.DOWN_ARROW:return s();case n.SPACE:case n.ENTER:var r=c.getClosest(t.target,"md-option");r&amp;&amp;(u.triggerHandler({type:"click",target:r}),t.preventDefault()),m(t);break;case n.TAB:case n.ESCAPE:t.stopPropagation(),t.preventDefault(),a.restoreFocus=!0,c.nextTick(e.hide,!0);break;default:if(t.keyCode&gt;=31&amp;&amp;t.keyCode&lt;=90){var i=u.controller("mdSelectMenu").optNodeForKeyboardSearch(t);a.focusedNode=i||a.focusedNode,i&amp;&amp;i.focus()}}}function d(e){var t,o=c.nodesToArray(a.optionNodes),r=o.indexOf(a.focusedNode);do-1===r?r=0:"next"===e&amp;&amp;r&lt;o.length-1?r++:"prev"===e&amp;&amp;r&gt;0&amp;&amp;r--,t=o[r],t.hasAttribute("disabled")&amp;&amp;(t=n);while(!t&amp;&amp;r&lt;o.length-1&amp;&amp;r&gt;0);t&amp;&amp;t.focus(),a.focusedNode=t}function s(){d("next")}function l(){d("prev")}function m(t){function n(){var e=!1;if(t&amp;&amp;t.currentTarget.children.length&gt;0){var n=t.currentTarget.children[0],o=n.scrollHeight&gt;n.clientHeight;if(o&amp;&amp;n.children.length&gt;0){var r=t.pageX-t.currentTarget.getBoundingClientRect().left;r&gt;n.querySelector("md-option").offsetWidth&amp;&amp;(e=!0)}}return e}if(!(t&amp;&amp;"click"==t.type&amp;&amp;t.currentTarget!=u[0]||n())){var o=c.getClosest(t.target,"md-option");o&amp;&amp;o.hasAttribute&amp;&amp;!o.hasAttribute("disabled")&amp;&amp;(t.preventDefault(),t.stopPropagation(),p.isMultiple||(a.restoreFocus=!0,c.nextTick(function(){e.hide(p.ngModel.$viewValue)},!0)))}}if(!a.isRemoved){var u=a.selectEl,p=u.controller("mdSelectMenu")||{};return i.addClass("md-clickable"),a.backdrop&amp;&amp;a.backdrop.on("click",t),u.on("keydown",r),u.on("click",m),function(){a.backdrop&amp;&amp;a.backdrop.off("click",t),u.off("keydown",r),u.off("click",m),i.removeClass("md-clickable"),a.isRemoved=!0}}}return C(),$(r,a),a.hideBackdrop=g(r,i,a),d(r,i,a).then(function(e){return i.attr("aria-hidden","false"),a.alreadyOpen=!0,a.cleanupInteraction=A(),a.cleanupResizing=y(),e},a.hideBackdrop)}function b(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setLabelText(n.selectedLabels()),t.triggerClose()}}function E(e,n,o){var l,m=n[0],u=o.target[0].children[0],p=h[0].body,f=o.selectEl[0],g=o.contentEl[0],b=p.getBoundingClientRect(),E=u.getBoundingClientRect(),v=!1,M={left:b.left+d,top:d,bottom:b.height-d,right:b.width-d-(c.floatingScrollbars()?16:0)},$={top:E.top-M.top,left:E.left-M.left,right:M.right-(E.left+E.width),bottom:M.bottom-(E.top+E.height)},y=b.width-2*d,C=g.scrollHeight&gt;g.offsetHeight,A=f.querySelector("md-option[selected]"),T=f.getElementsByTagName("md-option"),k=f.getElementsByTagName("md-optgroup"),w=r(o.loadingAsync);l=w?g.firstElementChild||g:A?A:k.length?k[0]:T.length?T[0]:g.firstElementChild||g,g.offsetWidth&gt;y?g.style["max-width"]=y+"px":g.style.maxWidth=null,v&amp;&amp;(g.style["min-width"]=E.width+"px"),C&amp;&amp;f.classList.add("md-overflow");var x=l;"MD-OPTGROUP"===(x.tagName||"").toUpperCase()&amp;&amp;(x=T[0]||g.firstElementChild||g,l=x),o.focusedNode=x,m.style.display="block";var N=f.getBoundingClientRect(),_=a(l);if(l){var H=s.getComputedStyle(l);_.paddingLeft=parseInt(H.paddingLeft,10)||0,_.paddingRight=parseInt(H.paddingRight,10)||0}if(C){var S=g.offsetHeight/2;g.scrollTop=_.top+_.height/2-S,$.top&lt;S?g.scrollTop=Math.min(_.top,g.scrollTop+S-$.top):$.bottom&lt;S&amp;&amp;(g.scrollTop=Math.max(_.top+_.height-N.height,g.scrollTop-S+$.bottom))}var D,I,O,R;v?(D=E.left,I=E.top+E.height,O="50% 0",I+N.height&gt;M.bottom&amp;&amp;(I=E.top-N.height,O="50% 100%")):(D=E.left+_.left-_.paddingLeft+2,I=Math.floor(E.top+E.height/2-_.height/2-_.top+g.scrollTop)+4,O=_.left+E.width/2+"px "+(_.top+_.height/2-g.scrollTop)+"px 0px",R=Math.min(E.width+_.paddingLeft+_.paddingRight,y));var L=m.getBoundingClientRect(),P=Math.round(100*Math.min(E.width/N.width,1))/100,F=Math.round(100*Math.min(E.height/N.height,1))/100;return{container:{element:t.element(m),styles:{left:Math.floor(i(M.left,D,M.right-L.width)),top:Math.floor(i(M.top,I,M.bottom-L.height)),"min-width":R}},dropDown:{element:t.element(f),styles:{transformOrigin:O,transform:o.alreadyOpen?"":c.supplant("scale({0},{1})",[P,F])}}}}var v="$mdSelect.show() expected a target element in options.target but got '{0}'!",M=c.dom.animator;return{parent:"body",themable:!0,onShow:g,onRemove:f,hasBackdrop:!0,disableParentScroll:!0}}function r(e){return e&amp;&amp;t.isFunction(e.then)}function i(e,t,n){return Math.max(e,Math.min(t,n))}function a(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}return o.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],e("$mdSelect").setDefaults({methods:["target"],options:o})}var d=8,c=0;t.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",e).directive("mdSelectMenu",o).directive("mdOption",r).directive("mdOptgroup",i).provider("$mdSelect",a),e.$inject=["$mdSelect","$mdUtil","$mdTheming","$mdAria","$compile","$parse"],o.$inject=["$parse","$mdUtil","$mdTheming"],r.$inject=["$mdButtonInkRipple","$mdUtil"],a.$inject=["$$interimElementProvider"]}(),function(){function e(e,n){return function(o){function r(){return e.when(o).then(function(e){return d=e,e})}var i,a="SideNav '"+o+"' is not available!",d=e.get(o);return d||e.notFoundError(o),i={isOpen:function(){return d&amp;&amp;d.isOpen()},isLockedOpen:function(){return d&amp;&amp;d.isLockedOpen()},toggle:function(){return d?d.toggle():n.reject(a)},open:function(){return d?d.open():n.reject(a)},close:function(){return d?d.close():n.reject(a)},then:function(e){var o=d?n.when(d):r();return o.then(e||t.noop)}}}}function o(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,o){}}}function r(e,o,r,i,a,d,c,s,l,m){function u(d,u,p,h){function f(e,t){d.isLockedOpen=e,e===t?u.toggleClass("md-locked-open",!!e):a[e?"addClass":"removeClass"](u,"md-locked-open"),k.toggleClass("md-locked-open",!!e)}function g(e){var t=o.findFocusTarget(u)||o.findFocusTarget(u,"[md-sidenav-focus]")||u,n=u.parent();return n[e?"on":"off"]("keydown",v),k[e?"on":"off"]("click",M),e&amp;&amp;(y=m[0].activeElement),b(e),C=l.all([e?a.enter(k,n):a.leave(k),a[e?"removeClass":"addClass"](u,"md-closed")]).then(function(){d.isOpen&amp;&amp;t&amp;&amp;t.focus()})}function b(e){var o=u.parent();e&amp;&amp;!$?($=o.css("overflow"),o.css("overflow","hidden")):t.isDefined($)&amp;&amp;(o.css("overflow",$),$=n)}function E(e){return d.isOpen==e?l.when(!0):l(function(t){d.isOpen=e,o.nextTick(function(){C.then(function(e){d.isOpen||(y&amp;&amp;y.focus(),y=null),t(e)})})})}function v(e){var t=e.keyCode===r.KEY_CODE.ESCAPE;return t?M(e):l.when(!0)}function M(e){return e.preventDefault(),h.close()}var $,y=null,C=l.when(!0),A=c(p.mdIsLockedOpen),T=function(){return A(d.$parent,{$media:function(t){return s.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),e(t)},$mdMedia:e})},k=o.createBackdrop(d,"md-sidenav-backdrop md-opaque ng-enter");i.inherit(k,u),u.on("$destroy",function(){k.remove(),h.destroy()}),d.$on("$destroy",function(){k.remove()}),d.$watch(T,f),d.$watch("isOpen",g),h.$toggleOpen=E}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed"),e.attr("tabIndex","-1"),u}}}function i(e,t,n,o,r){var i=this;i.isOpen=function(){return!!e.isOpen},i.isLockedOpen=function(){return!!e.isLockedOpen},i.open=function(){return i.$toggleOpen(!0)},i.close=function(){return i.$toggleOpen(!1)},i.toggle=function(){return i.$toggleOpen(!e.isOpen)},i.$toggleOpen=function(t){return r.when(e.isOpen=t)},i.destroy=o.register(i,n.mdComponentId)}t.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",r).directive("mdSidenavFocus",o).controller("$mdSidenavController",i),e.$inject=["$mdComponentRegistry","$q"],r.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$animate","$compile","$parse","$log","$q","$document"],i.$inject=["$scope","$element","$attrs","$mdComponentRegistry","$q"]}(),function(){function e(e,n,o,r,i,a,d,c,s){function l(e,t){return e.attr({tabIndex:0,role:"slider"}),o.expect(e,"aria-label"),m}function m(o,l,m,u){function p(){v(),C(),E()}function h(e){K=parseFloat(e),l.attr("aria-valuemin",e),p()}function f(e){G=parseFloat(e),l.attr("aria-valuemax",e),p()}function g(e){X=parseFloat(e),E()}function b(e){l.attr("aria-disabled",!!e)}function E(){if(t.isDefined(m.mdDiscrete)&amp;&amp;!t.isUndefined(X)){if(0&gt;=X){var e="Slider step value must be greater than zero when in discrete mode";throw s.error(e),new Error(e)}var o=Math.floor((G-K)/X);if(!Q){Q=t.element('&lt;canvas style="position:absolute;"&gt;'),j.append(Q);var r=n.getComputedStyle(j[0]);Z=Q[0].getContext("2d"),Z.fillStyle=r.backgroundColor||"black"}var i=M();Q[0].width=i.width,Q[0].height=i.height;for(var a,d=0;o&gt;=d;d++)a=Math.floor(i.width*(d/o)),Z.fillRect(a-1,0,2,i.height)}}function v(){J=z[0].getBoundingClientRect()}function M(){return V(),J}function $(e){if(!l[0].hasAttribute("disabled")){var t;e.keyCode===i.KEY_CODE.LEFT_ARROW?t=-X:e.keyCode===i.KEY_CODE.RIGHT_ARROW&amp;&amp;(t=X),t&amp;&amp;((e.metaKey||e.ctrlKey||e.altKey)&amp;&amp;(t*=4),e.preventDefault(),e.stopPropagation(),o.$evalAsync(function(){y(u.$viewValue+t)}))}}function y(e){u.$setViewValue(A(T(e)))}function C(){isNaN(u.$viewValue)&amp;&amp;(u.$viewValue=u.$modelValue);var e=(u.$viewValue-K)/(G-K);o.modelValue=u.$viewValue,l.attr("aria-valuenow",u.$viewValue),k(e),B.text(u.$viewValue)}function A(e){return t.isNumber(e)?Math.max(K,Math.min(G,e)):void 0}function T(e){if(t.isNumber(e)){var n=Math.round((e-K)/X)*X+K;return Math.round(1e3*n)/1e3}}function k(e){var t=100*e+"%";q.css("width",t),U.css("left",t),l.toggleClass("md-min",0===e),l.toggleClass("md-max",1===e)}function w(e){if(!P()){l.addClass("md-active"),l[0].focus(),v();var t=R(O(e.pointer.x)),n=A(T(t));o.$apply(function(){y(n),k(L(n))})}}function x(e){if(!P()){l.removeClass("md-dragging md-active");var t=R(O(e.pointer.x)),n=A(T(t));o.$apply(function(){y(n),C()})}}function N(e){P()||(ee=!0,e.stopPropagation(),l.addClass("md-dragging"),S(e))}function _(e){ee&amp;&amp;(e.stopPropagation(),S(e))}function H(e){ee&amp;&amp;(e.stopPropagation(),ee=!1)}function S(e){te?I(e.pointer.x):D(e.pointer.x)}function D(e){o.$evalAsync(function(){y(R(O(e)))})}function I(e){var t=R(O(e)),n=A(T(t));k(O(e)),B.text(n)}function O(e){return Math.max(0,Math.min(1,(e-J.left)/J.width))}function R(e){return K+e*(G-K)}function L(e){return(e-K)/(G-K)}a(l),u=u||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]};var P=t.noop;null!=m.disabled?P=function(){return!0}:m.ngDisabled&amp;&amp;(P=t.bind(null,c(m.ngDisabled),o.$parent));var F=t.element(l[0].querySelector(".md-thumb")),B=t.element(l[0].querySelector(".md-thumb-text")),U=F.parent(),z=t.element(l[0].querySelector(".md-track-container")),q=t.element(l[0].querySelector(".md-track-fill")),j=t.element(l[0].querySelector(".md-track-ticks")),V=r.throttle(v,5e3);t.isDefined(m.min)?m.$observe("min",h):h(0),t.isDefined(m.max)?m.$observe("max",f):f(100),t.isDefined(m.step)?m.$observe("step",g):g(1);var W=t.noop;m.ngDisabled&amp;&amp;(W=o.$parent.$watch(m.ngDisabled,b)),d.register(l,"drag"),l.on("keydown",$).on("$md.pressdown",w).on("$md.pressup",x).on("$md.dragstart",N).on("$md.drag",_).on("$md.dragend",H),setTimeout(p,0);var Y=e.throttle(p);t.element(n).on("resize",Y),o.$on("$destroy",function(){t.element(n).off("resize",Y),W()}),u.$render=C,u.$viewChangeListeners.push(C),u.$formatters.push(A),u.$formatters.push(T);var K,G,X,Q,Z,J={};v();var ee=!1,te=t.isDefined(m.mdDiscrete)}return{scope:{},require:"?ngModel",template:'&lt;div class="md-slider-wrapper"&gt;&lt;div class="md-track-container"&gt;&lt;div class="md-track"&gt;&lt;/div&gt;&lt;div class="md-track md-track-fill"&gt;&lt;/div&gt;&lt;div class="md-track-ticks"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="md-thumb-container"&gt;&lt;div class="md-thumb"&gt;&lt;/div&gt;&lt;div class="md-focus-thumb"&gt;&lt;/div&gt;&lt;div class="md-focus-ring"&gt;&lt;/div&gt;&lt;div class="md-sign"&gt;&lt;span class="md-thumb-text"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="md-disabled-thumb"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;',compile:l}}t.module("material.components.slider",["material.core"]).directive("mdSlider",e),e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log"]}(),function(){function e(e,o,r,i){function a(e){function t(e,t){t.addClass("md-sticky-clone");var n={element:e,clone:t};return f.items.push(n),i.nextTick(function(){p.prepend(n.clone)}),h(),function(){f.items.forEach(function(t,n){t.element[0]===e[0]&amp;&amp;(f.items.splice(n,1),t.clone.remove())}),h()}}function a(){f.items.forEach(d),f.items=f.items.sort(function(e,t){return e.top&lt;t.top?-1:1});for(var e,t=p.prop("scrollTop"),n=f.items.length-1;n&gt;=0;n--)if(t&gt;f.items[n].top){e=f.items[n];break}l(e)}function d(e){var t=e.element[0];for(e.top=0,e.left=0;t&amp;&amp;t!==p[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t=t.offsetParent;e.height=e.element.prop("offsetHeight"),e.clone.css("margin-left",e.left+"px"),i.floatingScrollbars()&amp;&amp;e.clone.css("margin-right","0")}function s(){var e=p.prop("scrollTop"),t=e&gt;(s.prevScrollTop||0);if(s.prevScrollTop=e,0===e)return void l(null);if(t){if(f.next&amp;&amp;f.next.top&lt;=e)return void l(f.next);if(f.current&amp;&amp;f.next&amp;&amp;f.next.top-e&lt;=f.next.height)return void u(f.current,e+(f.next.top-f.next.height-e))}if(!t){if(f.current&amp;&amp;f.prev&amp;&amp;e&lt;f.current.top)return void l(f.prev);if(f.next&amp;&amp;f.current&amp;&amp;e&gt;=f.next.top-f.current.height)return void u(f.current,e+(f.next.top-e-f.current.height))}f.current&amp;&amp;u(f.current,e)}function l(e){if(f.current!==e){f.current&amp;&amp;(u(f.current,null),m(f.current,null)),e&amp;&amp;m(e,"active"),f.current=e;var t=f.items.indexOf(e);f.next=f.items[t+1],f.prev=f.items[t-1],m(f.next,"next"),m(f.prev,"prev")}}function m(e,t){e&amp;&amp;e.state!==t&amp;&amp;(e.state&amp;&amp;(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(e,t){e&amp;&amp;(null===t||t===n?e.translateY&amp;&amp;(e.translateY=null,e.clone.css(o.CSS.TRANSFORM,"")):(e.translateY=t,e.clone.css(o.CSS.TRANSFORM,"translate3d("+e.left+"px,"+t+"px,0)")))}var p=e.$element,h=r.throttle(a);c(p),p.on("$scrollstart",h),p.on("$scroll",s);var f;return f={prev:null,current:null,next:null,items:[],add:t,refreshElements:a}}function d(n){var o,r=t.element("&lt;div&gt;");e[0].body.appendChild(r[0]);for(var i=["sticky","-webkit-sticky"],a=0;a&lt;i.length;++a)if(r.css({position:i[a],top:0,"z-index":2}),r.css("position")==i[a]){o=i[a];break}return r.remove(),o}function c(e){function t(){+i.now()-o&gt;a?(n=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),r.throttle(t))}var n,o,a=200;e.on("scroll touchmove",function(){n||(n=!0,r.throttle(t),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),o=+i.now()})}var s=d();return function(e,t,n){var o=t.controller("mdContent");if(o)if(s)t.css({position:s,top:0,"z-index":2});else{var r=o.$element.data("$$sticky");r||(r=a(o),o.$element.data("$$sticky",r));var i=r.add(t,n||t.clone());e.$on("$destroy",i)}}}t.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",e),e.$inject=["$document","$mdConstant","$$rAF","$mdUtil"]}(),function(){function e(e,n,o,r){return{restrict:"E",replace:!0,transclude:!0,template:'&lt;div class="md-subheader"&gt;  &lt;div class="md-subheader-inner"&gt;    &lt;span class="md-subheader-content"&gt;&lt;/span&gt;  &lt;/div&gt;&lt;/div&gt;',link:function(i,a,d,c,s){function l(e){return t.element(e[0].querySelector(".md-subheader-content"))}o(a);var m=a[0].outerHTML;s(i,function(e){l(a).append(e)}),a.hasClass("md-no-sticky")||s(i,function(t){var o='&lt;div class="md-subheader-wrapper"&gt;'+m+"&lt;/div&gt;",d=n(o)(i);e(i,a,d),r.nextTick(function(){l(d).append(t)})})}}}t.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",e),e.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil"]}(),function(){function e(e){function t(e){function t(t,r,i){var a=e(i[n]);r.on(o,function(e){t.$apply(function(){a(t,{$event:e})})})}return{restrict:"A",link:t}}var n="md"+e,o="$md."+e.toLowerCase();return t.$inject=["$parse"],t}t.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",e("SwipeLeft")).directive("mdSwipeRight",e("SwipeRight")).directive("mdSwipeUp",e("SwipeUp")).directive("mdSwipeDown",e("SwipeDown"))}(),function(){function e(e,n,o,r,i,a){function d(e,d){var s=c.compile(e,d);return e.addClass("md-dragging"),function(e,d,c,l){function m(t){f&amp;&amp;f(e)||(t.stopPropagation(),d.addClass("md-dragging"),E={width:g.prop("offsetWidth")},d.removeClass("transition"))}function u(e){if(E){e.stopPropagation(),e.srcEvent&amp;&amp;e.srcEvent.preventDefault();var t=e.pointer.distanceX/E.width,n=l.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),g.css(o.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),E.translate=n}}function p(e){if(E){e.stopPropagation(),d.removeClass("md-dragging"),g.css(o.CSS.TRANSFORM,"");var t=l.$viewValue?E.translate&gt;.5:E.translate&lt;.5;t&amp;&amp;h(!l.$viewValue),E=null}}function h(t){e.$apply(function(){l.$setViewValue(t),l.$render()})}l=l||n.fakeNgModel();var f=null;null!=c.disabled?f=function(){return!0}:c.ngDisabled&amp;&amp;(f=r(c.ngDisabled));var g=t.element(d[0].querySelector(".md-thumb-container")),b=t.element(d[0].querySelector(".md-container"));i(function(){d.removeClass("md-dragging")}),s(e,d,c,l),f&amp;&amp;e.$watch(f,function(e){d.attr("tabindex",e?-1:0)}),a.register(b,"drag"),b.on("$md.dragstart",m).on("$md.drag",u).on("$md.dragend",p);var E}}var c=e[0];return{restrict:"E",priority:210,transclude:!0,template:'&lt;div class="md-container"&gt;&lt;div class="md-bar"&gt;&lt;/div&gt;&lt;div class="md-thumb-container"&gt;&lt;div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div ng-transclude class="md-label"&gt;&lt;/div&gt;',require:"?ngModel",compile:d}}t.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e),e.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture"]}(),function(){t.module("material.components.tabs",["material.core","material.components.icon"])}(),function(){function e(e){return{restrict:"E",link:function(t,n,o){t.$on("$destroy",function(){e.destroy()})}}}function n(e){function t(e){o=e}function n(e,t,n,r){function i(i,a,s){o=s.textContent||s.content;var l=!r("gt-sm");return a=n.extractElementByName(a,"md-toast",!0),s.onSwipe=function(e,o){var r=e.type.replace("$md.",""),i=r.replace("swipe","");"down"===i&amp;&amp;-1!=s.position.indexOf("top")&amp;&amp;!l||"up"===i&amp;&amp;(-1!=s.position.indexOf("bottom")||l)||("left"!==i&amp;&amp;"right"!==i||!l)&amp;&amp;(a.addClass("md-"+r),n.nextTick(t.cancel))},s.openClass=d(s.position),s.parent.addClass(s.openClass),n.hasComputedStyle(s.parent,"position","static")&amp;&amp;s.parent.css("position","relative"),a.on(c,s.onSwipe),a.addClass(l?"md-bottom":s.position.split(" ").map(function(e){return"md-"+e}).join(" ")),s.parent&amp;&amp;s.parent.addClass("md-toast-animating"),e.enter(a,s.parent).then(function(){s.parent&amp;&amp;s.parent.removeClass("md-toast-animating")})}function a(t,o,r){return o.off(c,r.onSwipe),r.parent&amp;&amp;r.parent.addClass("md-toast-animating"),r.openClass&amp;&amp;r.parent.removeClass(r.openClass),(1==r.$destroy?o.remove():e.leave(o)).then(function(){r.parent&amp;&amp;r.parent.removeClass("md-toast-animating"),n.hasComputedStyle(r.parent,"position","static")&amp;&amp;r.parent.css("position","")})}function d(e){return r("gt-sm")?"md-toast-open-"+(e.indexOf("top")&gt;-1?"top":"bottom"):"md-toast-open-bottom"}var c="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:i,onRemove:a,position:"bottom left",themable:!0,hideDelay:3e3}}var o,r="ok",i=e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent"],options:n}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","highlightAction","theme","parent"],options:["$mdToast","$mdTheming",function(e,t){var n={template:'&lt;md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}"&gt;  &lt;div class="md-toast-content"&gt;    &lt;span flex role="alert" aria-relevant="all" aria-atomic="true"&gt;      {{ toast.content }}    &lt;/span&gt;    &lt;md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-highlight\': toast.highlightAction}"&gt;      {{ toast.action }}    &lt;/md-button&gt;  &lt;/div&gt;&lt;/md-toast&gt;',controller:["$scope",function(t){var n=this;t.$watch(function(){return o},function(){n.content=o}),this.resolve=function(){e.hide(r)}}],theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0};return n}]}).addMethod("updateTextContent",t).addMethod("updateContent",t);return n.$inject=["$animate","$mdToast","$mdUtil","$mdMedia"],i}t.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",n),e.$inject=["$mdToast"],n.$inject=["$$interimElementProvider"]}(),function(){function e(e,n,o,r,i){var a=t.bind(null,o.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(d,c,s){function l(){function r(e){var t=c.parent().find("md-content");!f&amp;&amp;t.length&amp;&amp;l(null,t),e=d.$eval(e),e===!1?g():g=u()}function l(e,t){t&amp;&amp;c.parent()[0]===t.parent()[0]&amp;&amp;(f&amp;&amp;f.off("scroll",M),f=t,g=u())}function m(e){var t=e?e.target.scrollTop:E;$(),b=Math.min(h/v,Math.max(0,b+t-E)),c.css(n.CSS.TRANSFORM,a([-b*v])),f.css(n.CSS.TRANSFORM,a([(h-b)*v])),E=t,o.nextTick(function(){var e=c.hasClass("md-whiteframe-z1");e&amp;&amp;!b?i.removeClass(c,"md-whiteframe-z1"):!e&amp;&amp;b&amp;&amp;i.addClass(c,"md-whiteframe-z1")})}function u(){return f?(f.on("scroll",M),f.attr("scroll-shrink","true"),e(p),function(){f.off("scroll",M),
f.attr("scroll-shrink","false"),e(p)}):t.noop}function p(){h=c.prop("offsetHeight");var e=-h*v+"px";f.css({"margin-top":e,"margin-bottom":e}),m()}var h,f,g=t.noop,b=0,E=0,v=s.mdShrinkSpeedFactor||.5,M=e.throttle(m),$=o.debounce(p,5e3);d.$on("$mdContentLoaded",l),s.$observe("mdScrollShrink",r),s.ngShow&amp;&amp;d.$watch(s.ngShow,p),s.ngHide&amp;&amp;d.$watch(s.ngHide,p),d.$on("$destroy",g)}r(c),t.isDefined(s.mdScrollShrink)&amp;&amp;l()}}}t.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e),e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"]}(),function(){function e(e,n,o,r,i,a,d,c,s){function l(d,l,p){function h(){t.isDefined(p.mdDelay)||(d.delay=m)}function f(){var e="center top";switch(d.direction){case"left":e="right center";break;case"right":e="left center";break;case"top":e="center bottom";break;case"bottom":e="center top"}k.css("transform-origin",e)}function g(){d.$on("$destroy",function(){d.visible=!1,l.remove(),t.element(n).off("resize",x)}),d.$watch("visible",function(e){e?$():y()}),d.$watch("direction",C)}function b(){T.attr("aria-label")||T.text().trim()||T.attr("aria-label",l.text().trim())}function E(){l.detach(),l.attr("role","tooltip")}function v(){function e(){M(!1)}var o=!1,i=t.element(n);if(T[0]&amp;&amp;"MutationObserver"in n){var a=new MutationObserver(function(e){e.forEach(function(e){"disabled"===e.attributeName&amp;&amp;T[0].disabled&amp;&amp;(M(!1),d.$digest())})});a.observe(T[0],{attributes:!0})}var c=function(){s=document.activeElement===T[0]},s=!1;i.on("blur",c),i.on("resize",x),document.addEventListener("scroll",e,!0),d.$on("$destroy",function(){i.off("blur",c),i.off("resize",x),document.removeEventListener("scroll",e,!0),a&amp;&amp;a.disconnect()});var l=function(e){return"focus"===e.type&amp;&amp;s?void(s=!1):(T.on("blur mouseleave touchend touchcancel",m),void M(!0))},m=function(){var e=d.hasOwnProperty("autohide")?d.autohide:p.hasOwnProperty("mdAutohide");(e||o||r[0].activeElement!==T[0])&amp;&amp;(T.off("blur mouseleave touchend touchcancel",m),T.triggerHandler("blur"),M(!1)),o=!1};T.on("mousedown",function(){o=!0}),T.on("focus mouseenter touchstart",l)}function M(t){M.value=!!t,M.queued||(t?(M.queued=!0,e(function(){d.visible=M.value,M.queued=!1},d.delay)):i.nextTick(function(){d.visible=!1}))}function $(){return w.append(l),i.hasComputedStyle(l,"display","none")?(d.visible=!1,void l.detach()):(C(),void t.forEach([l,k],function(e){c.addClass(e,"md-show")}))}function y(){var e=[];t.forEach([l,k],function(t){t.parent()&amp;&amp;t.hasClass("md-show")&amp;&amp;e.push(c.removeClass(t,"md-show"))}),s.all(e).then(function(){d.visible||l.detach()})}function C(){d.visible&amp;&amp;(f(),A())}function A(){function e(e){var t={left:e.left,top:e.top};return t.left=Math.min(t.left,w.prop("scrollWidth")-n.width-u),t.left=Math.max(t.left,u),t.top=Math.min(t.top,w.prop("scrollHeight")-n.height-u),t.top=Math.max(t.top,u),t}function t(e){return"left"===e?{left:o.left-n.width-u,top:o.top+o.height/2-n.height/2}:"right"===e?{left:o.left+o.width+u,top:o.top+o.height/2-n.height/2}:"top"===e?{left:o.left+o.width/2-n.width/2,top:o.top-n.height-u}:{left:o.left+o.width/2-n.width/2,top:o.top+o.height+u}}var n=i.offsetRect(l,w),o=i.offsetRect(T,w),r=t(d.direction),a=l.prop("offsetParent");d.direction?r=e(r):a&amp;&amp;r.top&gt;a.scrollHeight-n.height-u&amp;&amp;(r=e(t("top"))),l.css({left:r.left+"px",top:r.top+"px"})}a(l);var T=i.getParentWithPointerEvents(l),k=t.element(l[0].getElementsByClassName("md-content")[0]),w=t.element(document.body),x=o.throttle(function(){C()});c.pin&amp;&amp;c.pin(l,T),h(),E(),v(),f(),g(),b()}var m=0,u=8;return{restrict:"E",transclude:!0,priority:210,template:'&lt;div class="md-content" ng-transclude&gt;&lt;/div&gt;',scope:{delay:"=?mdDelay",visible:"=?mdVisible",autohide:"=?mdAutohide",direction:"@?mdDirection"},link:l}}t.module("material.components.tooltip",["material.core"]).directive("mdTooltip",e),e.$inject=["$timeout","$window","$$rAF","$document","$mdUtil","$mdTheming","$rootElement","$animate","$q"]}(),function(){t.module("material.components.whiteframe",[])}(),function(){function e(){return{controller:o,template:n,compile:function(e,t){e.addClass("md-virtual-repeat-container").addClass(t.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}function n(e){return'&lt;div class="md-virtual-repeat-scroller"&gt;&lt;div class="md-virtual-repeat-sizer"&gt;&lt;/div&gt;&lt;div class="md-virtual-repeat-offsetter"&gt;'+e[0].innerHTML+"&lt;/div&gt;&lt;/div&gt;"}function o(e,n,o,r,i,a,d){this.$scope=i,this.$element=a,this.$attrs=d,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.$attrs.mdTopIndex?(this.bindTopIndex=o(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&amp;&amp;this.scrollToIndex(e)}))):this.topIndex=0,this.scroller=a[0].getElementsByClassName("md-virtual-repeat-scroller")[0],this.sizer=this.scroller.getElementsByClassName("md-virtual-repeat-sizer")[0],this.offsetter=this.scroller.getElementsByClassName("md-virtual-repeat-offsetter")[0];var c=t.bind(this,this.updateSize);e(t.bind(this,function(){c();var e=n.debounce(c,10,null,!1),o=t.element(r);this.size||e(),o.on("resize",e),i.$on("$destroy",function(){o.off("resize",e)}),i.$on("$md-resize",c)}))}function r(e){return{controller:i,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(t,n){var o=n.mdVirtualRepeat,r=o.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),i=r[1],a=e(r[2]),d=n.mdExtraName&amp;&amp;e(n.mdExtraName);return function(e,t,n,o,r){o[0].link_(o[1],r,i,a,d)}}}}function i(e,n,o,r,i,a){this.$scope=e,this.$element=n,this.$attrs=o,this.$browser=r,this.$document=i,this.$$rAF=a,this.onDemand=o.hasOwnProperty("mdOnDemand"),this.browserCheckUrlChange=r.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=e.$eval(o.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=t.noop,this.blocks={},this.pooledBlocks=[]}function a(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}t.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",e).directive("mdVirtualRepeat",r);var d=1533917,c=3;o.$inject=["$$rAF","$mdUtil","$parse","$window","$scope","$element","$attrs"],o.prototype.register=function(e){this.repeater=e,t.element(this.scroller).on("scroll wheel touchmove touchend",t.bind(this,this.handleScroll_))},o.prototype.isHorizontal=function(){return this.horizontal},o.prototype.getSize=function(){return this.size},o.prototype.setSize_=function(e){this.size=e,this.$element[0].style[this.isHorizontal()?"width":"height"]=e+"px"},o.prototype.updateSize=function(){this.originalSize||(this.size=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight,this.repeater&amp;&amp;this.repeater.containerUpdated())},o.prototype.getScrollSize=function(){return this.scrollSize},o.prototype.sizeScroller_=function(e){var t=this.isHorizontal()?"width":"height",n=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",d&gt;e)this.sizer.style[t]=e+"px";else{this.sizer.style[t]="auto",this.sizer.style[n]="auto";var o=Math.floor(e/d),r=document.createElement("div");r.style[t]=d+"px",r.style[n]="1px";for(var i=0;o&gt;i;i++)this.sizer.appendChild(r.cloneNode(!1));r.style[t]=e-o*d+"px",this.sizer.appendChild(r)}},o.prototype.autoShrink_=function(e){var t=Math.max(e,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&amp;&amp;t!==this.size){var n=this.originalSize||this.size;!n||n&gt;t?(this.originalSize||(this.originalSize=this.size),this.setSize_(t)):this.originalSize&amp;&amp;(this.setSize_(this.originalSize),this.originalSize=null),this.repeater.containerUpdated()}},o.prototype.setScrollSize=function(e){var t=e+this.offsetSize;this.scrollSize!==t&amp;&amp;(this.sizeScroller_(t),this.autoShrink_(t),this.scrollSize=t)},o.prototype.getScrollOffset=function(){return this.scrollOffset},o.prototype.scrollTo=function(e){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=e,this.handleScroll_()},o.prototype.scrollToIndex=function(e){var t=this.repeater.getItemSize(),n=this.repeater.itemsLength;e&gt;n&amp;&amp;(e=n-1),this.scrollTo(t*e)},o.prototype.resetScroll=function(){this.scrollTo(0)},o.prototype.handleScroll_=function(){var e=this.isHorizontal()?this.scroller.scrollLeft:this.scroller.scrollTop;if(e!==this.scrollOffset){var t=this.repeater.getItemSize();if(t){var n=Math.max(0,Math.floor(e/t)-c),o=this.isHorizontal()?"translateX(":"translateY(";if(o+=n*t+"px)",this.scrollOffset=e,this.offsetter.style.webkitTransform=o,this.offsetter.style.transform=o,this.bindTopIndex){var r=Math.floor(e/t);r!==this.topIndex&amp;&amp;r&lt;this.repeater.itemsLength&amp;&amp;(this.topIndex=r,this.bindTopIndex.assign(this.$scope,r),this.$scope.$root.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},r.$inject=["$parse"],i.$inject=["$scope","$element","$attrs","$browser","$document","$$rAF"],i.Block,i.prototype.link_=function(e,n,o,r,i){this.container=e,this.transclude=n,this.repeatName=o,this.rawRepeatListExpression=r,this.extraName=i,this.sized=!1,this.repeatListExpression=t.bind(this,this.repeatListExpression_),this.container.register(this)},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&amp;&amp;this.containerUpdated()}},i.prototype.repeatListExpression_=function(e){var t=this.rawRepeatListExpression(e);if(this.onDemand&amp;&amp;t){var n=new a(t);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return t},i.prototype.containerUpdated=function(){return this.itemSize?(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_(),void((this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()&gt;this.container.getScrollSize())&amp;&amp;(this.items instanceof a&amp;&amp;this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items)))):(this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,t.bind(this,function(e){e&amp;&amp;e.length&amp;&amp;this.$$rAF(t.bind(this,this.readItemSize_))})),void(this.$scope.$root.$$phase||this.$scope.$digest()))},i.prototype.getItemSize=function(){return this.itemSize},i.prototype.virtualRepeatUpdate_=function(e,n){this.isVirtualRepeatUpdating_=!0;var o=e&amp;&amp;e.length||0,r=!1;if(this.items&amp;&amp;o&lt;this.items.length&amp;&amp;0!==this.container.getScrollOffset())return this.items=e,void this.container.resetScroll();if(o!==this.itemsLength&amp;&amp;(r=!0,this.itemsLength=o),this.items=e,(e!==n||r)&amp;&amp;this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,r&amp;&amp;this.container.setScrollSize(o*this.itemSize),this.isFirstRender){this.isFirstRender=!1;var i=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.container.scrollToIndex(i)}Object.keys(this.blocks).forEach(function(e){var t=parseInt(e,10);(t&lt;this.newStartIndex||t&gt;=this.newEndIndex)&amp;&amp;this.poolBlock_(t)},this),this.$browser.$$checkUrlChange=t.noop;var a,d,c=[],s=[];for(a=this.newStartIndex;a&lt;this.newEndIndex&amp;&amp;null==this.blocks[a];a++)d=this.getBlock_(a),this.updateBlock_(d,a),c.push(d);for(;null!=this.blocks[a];a++)this.updateBlock_(this.blocks[a],a);for(var l=a-1;a&lt;this.newEndIndex;a++)d=this.getBlock_(a),this.updateBlock_(d,a),s.push(d);c.length&amp;&amp;this.parentNode.insertBefore(this.domFragmentFromBlocks_(c),this.$element[0].nextSibling),s.length&amp;&amp;this.parentNode.insertBefore(this.domFragmentFromBlocks_(s),this.blocks[l]&amp;&amp;this.blocks[l].element[0].nextSibling),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,o){n={element:t,"new":!0,scope:o},this.updateScope_(o,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])&amp;&amp;(e["new"]=!1,this.updateScope_(e.scope,t),this.$scope.$root.$$phase||e.scope.$digest())},i.prototype.updateScope_=function(e,t){e.$index=t,e[this.repeatName]=this.items&amp;&amp;this.items[t],this.extraName&amp;&amp;(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+c,this.newEndIndex=Math.min(e,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-c)},a.prototype.$$includeIndexes=function(e,t){for(var n=e;t&gt;n;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()}}(),function(){function e(e,o,d,c,s,l,m,u,p,h){function f(){d.initOptionalProperties(e,p,{searchText:null,selectedItem:null}),s(o),v(),d.nextTick(function(){$(),b(),E(),o.on("focus",E)})}function g(){function t(){var e=0,t=o.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}function n(){var e=me.scrollContainer.getBoundingClientRect(),t={};e.right&gt;m.right-i&amp;&amp;(t.left=s.right-e.width+"px"),me.$.scrollContainer.css(t)}if(!me)return d.nextTick(g,!1,e);var c,s=me.wrap.getBoundingClientRect(),l=me.snap.getBoundingClientRect(),m=me.root.getBoundingClientRect(),u=l.bottom-m.top,h=m.bottom-l.top,f=s.left-m.left,b=s.width,E=t();p.mdFloatingLabel&amp;&amp;(f+=a,b-=2*a),c={left:f+"px",minWidth:b+"px",maxWidth:Math.max(s.right-m.left,m.right-s.left)-i+"px"},u&gt;h&amp;&amp;m.height-s.bottom-i&lt;r?(c.top="auto",c.bottom=h+"px",c.maxHeight=Math.min(r,s.top-m.top-i)+"px"):(c.top=u-E+"px",c.bottom="auto",c.maxHeight=Math.min(r,m.bottom+d.scrollTop()-s.bottom-i)+"px"),me.$.scrollContainer.css(c),d.nextTick(n,!1)}function b(){me.$.root.length&amp;&amp;(s(me.$.scrollContainer),me.$.scrollContainer.detach(),me.$.root.append(me.$.scrollContainer),m.pin&amp;&amp;m.pin(me.$.scrollContainer,u))}function E(){e.autofocus&amp;&amp;me.input.focus()}function v(){var n=parseInt(e.delay,10)||0;p.$observe("disabled",function(e){ce.isDisabled=!!e}),p.$observe("required",function(e){ce.isRequired=!!e}),e.$watch("searchText",n?d.debounce(I,n):I),e.$watch("selectedItem",x),t.element(l).on("resize",g),e.$on("$destroy",M)}function M(){if(t.element(l).off("resize",g),me){var e="ul scroller scrollContainer input".split(" ");t.forEach(e,function(e){me.$[e].remove()})}}function $(){me={main:o[0],scrollContainer:o[0].getElementsByClassName("md-virtual-repeat-container")[0],scroller:o[0].getElementsByClassName("md-virtual-repeat-scroller")[0],ul:o.find("ul")[0],input:o.find("input")[0],wrap:o.find("md-autocomplete-wrap")[0],root:document.body},me.li=me.ul.getElementsByTagName("li"),me.snap=y(),me.$=C(me)}function y(){for(var e=o;e.length;e=e.parent())if(t.isDefined(e.attr("md-autocomplete-snap")))return e[0];return me.wrap}function C(e){var n={};for(var o in e)e.hasOwnProperty(o)&amp;&amp;(n[o]=t.element(e[o]));return n}function A(t,n){!t&amp;&amp;n?(g(),me&amp;&amp;d.nextTick(function(){d.disableScrollAround(me.ul)},!1,e)):t&amp;&amp;!n&amp;&amp;d.nextTick(function(){d.enableScrolling()},!1,e)}function T(){pe=!0}function k(){fe||me.input.focus(),pe=!1,ce.hidden=j()}function w(){me.input.focus()}function x(t,n){t&amp;&amp;B(t).then(function(o){e.searchText=o,H(t,n)}),t!==n&amp;&amp;N()}function N(){t.isFunction(e.itemChange)&amp;&amp;e.itemChange(U(e.selectedItem))}function _(){t.isFunction(e.textChange)&amp;&amp;e.textChange()}function H(e,t){he.forEach(function(n){n(e,t)})}function S(e){-1==he.indexOf(e)&amp;&amp;he.push(e)}function D(e){var t=he.indexOf(e);-1!=t&amp;&amp;he.splice(t,1)}function I(t,n){ce.index=z(),t!==n&amp;&amp;B(e.selectedItem).then(function(o){t!==o&amp;&amp;(e.selectedItem=null,t!==n&amp;&amp;_(),X()?ae():(ce.matches=[],q(!1),te()))})}function O(){fe=!1,pe||(ce.hidden=j())}function R(e){e&amp;&amp;(pe=!1,fe=!1),me.input.blur()}function L(){fe=!0,t.isString(e.searchText)||(e.searchText=""),ce.hidden=j(),ce.hidden||ae()}function P(e){switch(e.keyCode){case c.KEY_CODE.DOWN_ARROW:if(ce.loading)return;e.stopPropagation(),e.preventDefault(),ce.index=Math.min(ce.index+1,ce.matches.length-1),oe(),te();break;case c.KEY_CODE.UP_ARROW:if(ce.loading)return;e.stopPropagation(),e.preventDefault(),ce.index=ce.index&lt;0?ce.matches.length-1:Math.max(0,ce.index-1),oe(),te();break;case c.KEY_CODE.TAB:if(k(),ce.hidden||ce.loading||ce.index&lt;0||ce.matches.length&lt;1)return;Z(ce.index);break;case c.KEY_CODE.ENTER:if(ce.hidden||ce.loading||ce.index&lt;0||ce.matches.length&lt;1)return;if(Y())return;e.stopPropagation(),e.preventDefault(),Z(ce.index);break;case c.KEY_CODE.ESCAPE:e.stopPropagation(),e.preventDefault(),J(),R(!0)}}function F(){return t.isNumber(e.minLength)?e.minLength:1}function B(t){function n(t){return t&amp;&amp;e.itemText?e.itemText(U(t)):null}return h.when(n(t)||t)}function U(e){if(!e)return n;var t={};return ce.itemName&amp;&amp;(t[ce.itemName]=e),t}function z(){return e.autoselect?0:-1}function q(e){ce.loading!=e&amp;&amp;(ce.loading=e),ce.hidden=j()}function j(){return!(!ce.loading||W())||(!!Y()||(!fe||!V()))}function V(){return X()&amp;&amp;W()||ie()}function W(){return!!ce.matches.length}function Y(){return!!ce.scope.selectedItem}function K(){return ce.loading&amp;&amp;!Y()}function G(){return B(ce.matches[ce.index])}function X(){return(e.searchText||"").length&gt;=F()}function Q(e,t,n){Object.defineProperty(ce,e,{get:function(){return n},set:function(e){var o=n;n=e,t(e,o)}})}function Z(t){d.nextTick(function(){B(ce.matches[t]).then(function(e){var t=me.$.input.controller("ngModel");t.$setViewValue(e),t.$render()})["finally"](function(){e.selectedItem=ce.matches[t],q(!1)})},!1)}function J(){q(!0),ce.index=0,ce.matches=[],e.searchText="",Z(-1);var t=document.createEvent("CustomEvent");t.initCustomEvent("input",!0,!0,{value:e.searchText}),me.input.dispatchEvent(t),me.input.focus()}function ee(n){function o(t){ue[i]=t,(n||"")===(e.searchText||"")&amp;&amp;(ce.matches=t,ce.hidden=j(),e.selectOnMatch&amp;&amp;de(),te(),g())}var r=e.$parent.$eval(le),i=n.toLowerCase();t.isArray(r)?o(r):r&amp;&amp;(q(!0),d.nextTick(function(){r.success&amp;&amp;r.success(o),r.then&amp;&amp;r.then(o),r["finally"]&amp;&amp;r["finally"](function(){q(!1)})},!0,e))}function te(){G().then(function(e){ce.messages=[ne(),e]})}function ne(){if(ge===ce.matches.length)return"";switch(ge=ce.matches.length,ce.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+ce.matches.length+" matches available."}}function oe(){if(me.li[0]){var e=me.li[0].offsetHeight,t=e*ce.index,n=t+e,o=me.scroller.clientHeight,r=me.scroller.scrollTop;r&gt;t?re(t):n&gt;r+o&amp;&amp;re(n-o)}}function re(e){me.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function ie(){var e=(ce.scope.searchText||"").length;return ce.hasNotFound&amp;&amp;!W()&amp;&amp;!ce.loading&amp;&amp;e&gt;=F()&amp;&amp;fe&amp;&amp;!Y()}function ae(){var t=e.searchText||"",n=t.toLowerCase();!e.noCache&amp;&amp;ue[n]?(ce.matches=ue[n],te()):ee(t),ce.hidden=j()}function de(){var t=e.searchText,n=ce.matches,o=n[0];1===n.length&amp;&amp;B(o).then(function(e){t==e&amp;&amp;Z(0)})}var ce=this,se=e.itemsExpr.split(/ in /i),le=se[1],me=null,ue={},pe=!1,he=[],fe=!1,ge=0;return Q("hidden",A,!0),ce.scope=e,ce.parent=e.$parent,ce.itemName=se[0],ce.matches=[],ce.loading=!1,ce.hidden=!0,ce.index=null,ce.messages=[],ce.id=d.nextUid(),ce.isDisabled=null,ce.isRequired=null,ce.hasNotFound=!1,ce.keydown=P,ce.blur=O,ce.focus=L,ce.clear=J,ce.select=Z,ce.listEnter=T,ce.listLeave=k,ce.mouseUp=w,ce.getCurrentDisplayValue=G,ce.registerSelectedItemWatcher=S,ce.unregisterSelectedItemWatcher=D,ce.notFoundVisible=ie,ce.loadingIsVisible=K,f()}t.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var o=41,r=5.5*o,i=8,a=2;e.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q"]}(),function(){function e(){var e=!1;return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&amp;mdItemText",placeholder:"@placeholder",noCache:"=?mdNoCache",selectOnMatch:"=?mdSelectOnMatch",itemChange:"&amp;?mdSelectedItemChange",textChange:"&amp;?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",inputId:"@?mdInputId"},link:function(t,n,o,r){r.hasNotFound=e},template:function(t,n){function o(){var e=t.find("md-item-template").detach(),n=e.length?e.html():t.html();return e.length||t.empty(),"&lt;md-autocomplete-parent-scope md-autocomplete-replace&gt;"+n+"&lt;/md-autocomplete-parent-scope&gt;"}function r(){var e=t.find("md-not-found").detach(),n=e.length?e.html():"";return n?'&lt;li ng-if="$mdAutocompleteCtrl.notFoundVisible()"                         md-autocomplete-parent-scope&gt;'+n+"&lt;/li&gt;":""}function i(){return n.mdFloatingLabel?'            &lt;md-input-container flex ng-if="floatingLabel"&gt;              &lt;label&gt;{{floatingLabel}}&lt;/label&gt;              &lt;input type="search"                  '+(null!=s?'tabindex="'+s+'"':"")+'                  id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}"                  name="{{inputName}}"                  autocomplete="off"                  ng-required="$mdAutocompleteCtrl.isRequired"                  ng-minlength="inputMinlength"                  ng-maxlength="inputMaxlength"                  ng-disabled="$mdAutocompleteCtrl.isDisabled"                  ng-model="$mdAutocompleteCtrl.scope.searchText"                  ng-keydown="$mdAutocompleteCtrl.keydown($event)"                  ng-blur="$mdAutocompleteCtrl.blur()"                  ng-focus="$mdAutocompleteCtrl.focus()"                  aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                  aria-label="{{floatingLabel}}"                  aria-autocomplete="list"                  aria-haspopup="true"                  aria-activedescendant=""                  aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/&gt;              &lt;div md-autocomplete-parent-scope md-autocomplete-replace&gt;'+c+"&lt;/div&gt;            &lt;/md-input-container&gt;":'            &lt;input flex type="search"                '+(null!=s?'tabindex="'+s+'"':"")+'                id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}"                name="{{inputName}}"                ng-if="!floatingLabel"                autocomplete="off"                ng-required="$mdAutocompleteCtrl.isRequired"                ng-disabled="$mdAutocompleteCtrl.isDisabled"                ng-model="$mdAutocompleteCtrl.scope.searchText"                ng-keydown="$mdAutocompleteCtrl.keydown($event)"                ng-blur="$mdAutocompleteCtrl.blur()"                ng-focus="$mdAutocompleteCtrl.focus()"                placeholder="{{placeholder}}"                aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                aria-label="{{placeholder}}"                aria-autocomplete="list"                aria-haspopup="true"                aria-activedescendant=""                aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/&gt;            &lt;button                type="button"                tabindex="-1"                ng-if="$mdAutocompleteCtrl.scope.searchText &amp;&amp; !$mdAutocompleteCtrl.isDisabled"                ng-click="$mdAutocompleteCtrl.clear()"&gt;              &lt;md-icon md-svg-icon="md-close"&gt;&lt;/md-icon&gt;              &lt;span class="md-visually-hidden"&gt;Clear&lt;/span&gt;            &lt;/button&gt;                '}var a=r(),d=o(),c=t.html(),s=n.tabindex;return e=!!a,n.hasOwnProperty("tabindex")||t.attr("tabindex","-1"),'        &lt;md-autocomplete-wrap            layout="row"            ng-class="{ \'md-whiteframe-z1\': !floatingLabel, \'md-menu-showing\': !$mdAutocompleteCtrl.hidden }"            role="listbox"&gt;          '+i()+'          &lt;md-progress-linear              class="'+(n.mdFloatingLabel?"md-inline":"")+'"              ng-if="$mdAutocompleteCtrl.loadingIsVisible()"              md-mode="indeterminate"&gt;&lt;/md-progress-linear&gt;          &lt;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"&gt;            &lt;ul class="md-autocomplete-suggestions"                ng-class="::menuClass"                id="ul-{{$mdAutocompleteCtrl.id}}"&gt;              &lt;li md-virtual-repeat="item in $mdAutocompleteCtrl.matches"                  ng-class="{ selected: $index === $mdAutocompleteCtrl.index }"                  ng-click="$mdAutocompleteCtrl.select($index)"                  md-extra-name="$mdAutocompleteCtrl.itemName"&gt;                  '+d+"                  &lt;/li&gt;"+a+'            &lt;/ul&gt;          &lt;/md-virtual-repeat-container&gt;        &lt;/md-autocomplete-wrap&gt;        &lt;aria-status            class="md-visually-hidden"            role="status"            aria-live="assertive"&gt;          &lt;p ng-repeat="message in $mdAutocompleteCtrl.messages track by $index" ng-if="message"&gt;{{message}}&lt;/p&gt;        &lt;/aria-status&gt;'}}}t.module("material.components.autocomplete").directive("mdAutocomplete",e)}(),function(){function e(e,t){function n(e,n,o){return function(e,n,r){function i(n,o){c[o]=e[n],e.$watch(n,function(e){t.nextTick(function(){c[o]=e})})}function a(){var t=!1,n=!1;e.$watch(function(){n||t||(t=!0,e.$$postDigest(function(){n||c.$digest(),t=n=!1}))}),c.$watch(function(){n=!0})}var d=e.$mdAutocompleteCtrl,c=d.parent.$new(),s=d.itemName;i("$index","$index"),i("item",s),a(),o(c,function(e){n.after(e)})}}return{restrict:"AE",compile:n,terminal:!0,transclude:"element"}}t.module("material.components.autocomplete").directive("mdAutocompleteParentScope",e),e.$inject=["$compile","$mdUtil"]}(),function(){function e(e,n,o){function r(r,i){var d=null,c=null,s=o.mdHighlightFlags||"",l=e.$watch(function(e){return{term:r(e),unsafeText:i(e)}},function(e,o){(null===d||e.unsafeText!==o.unsafeText)&amp;&amp;(d=t.element("&lt;div&gt;").text(e.unsafeText).html()),(null===c||e.term!==o.term)&amp;&amp;(c=a(e.term,s)),n.html(d.replace(c,'&lt;span class="highlight"&gt;$&amp;&lt;/span&gt;'))},!0);n.on("$destroy",l)}function i(e){return e&amp;&amp;e.replace(/[\\\^\$\*\+\?\.\(\)\|\{}\[\]]/g,"\\$&amp;")}function a(e,t){var n="";return t.indexOf("^")&gt;=1&amp;&amp;(n+="^"),n+=e,t.indexOf("$")&gt;=1&amp;&amp;(n+="$"),new RegExp(i(n),t.replace(/[\$\^]/g,""))}this.init=r}t.module("material.components.autocomplete").controller("MdHighlightCtrl",e),e.$inject=["$scope","$element","$attrs"]}(),function(){function e(e,t){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(n,o){var r=t(o.mdHighlightText),i=e(n.html());return function(e,t,n,o){o.init(r,i)}}}}t.module("material.components.autocomplete").directive("mdHighlightText",e),e.$inject=["$interpolate","$parse"]}(),function(){function e(e,o){function r(n,r){return n.append(o.processTemplate(i)),function(n,o,r,i){o.addClass("md-chip"),e(o),i&amp;&amp;t.element(o[0].querySelector(".md-chip-content")).on("blur",function(){i.selectedChip=-1})}}var i=o.processTemplate(n);return{restrict:"E",require:"^?mdChips",compile:r}}t.module("material.components.chips").directive("mdChip",e);var n='    &lt;span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden"&gt;      {{$mdChipsCtrl.deleteHint}}    &lt;/span&gt;';e.$inject=["$mdTheming","$mdUtil"]}(),function(){function e(e){function t(t,n,o,r){n.on("click",function(e){t.$apply(function(){r.removeChip(t.$$replacedScope.$index)})}),e(function(){n.attr({tabindex:-1,"aria-hidden":!0}),n.find("button").attr("tabindex","-1")})}return{restrict:"A",require:"^mdChips",scope:!1,link:t}}t.module("material.components.chips").directive("mdChipRemove",e),e.$inject=["$timeout"]}(),function(){function e(e){function t(t,n,o){var r=t.$parent.$mdChipsCtrl,i=r.parent.$new(!1,r.parent);i.$$replacedScope=t,i.$chip=t.$chip,i.$index=t.$index,i.$mdChipsCtrl=r;var a=r.$scope.$eval(o.mdChipTransclude);n.html(a),e(n.contents())(i)}return{restrict:"EA",terminal:!0,link:t,scope:!1}}t.module("material.components.chips").directive("mdChipTransclude",e),e.$inject=["$compile"]}(),function(){function e(e,t,n,o,r){this.$timeout=r,this.$mdConstant=t,this.$scope=e,this.parent=e.$parent,this.$log=n,this.$element=o,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.hasAutocomplete=!1,this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useOnAppend=!1,this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.useOnSelect=!1}t.module("material.components.chips").controller("MdChipsCtrl",e),e.$inject=["$scope","$mdConstant","$log","$element","$timeout"],e.prototype.inputKeydown=function(e){var t=this.getChipBuffer();if(!(this.hasAutocomplete&amp;&amp;e.isDefaultPrevented&amp;&amp;e.isDefaultPrevented())){if(e.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(t)return;return e.preventDefault(),e.stopPropagation(),void(this.items.length&amp;&amp;this.selectAndFocusChipSafe(this.items.length-1))}if((!this.separatorKeys||this.separatorKeys.length&lt;1)&amp;&amp;(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1!==this.separatorKeys.indexOf(e.keyCode)){if(this.hasAutocomplete&amp;&amp;this.requireMatch||!t)return;e.preventDefault(),this.appendChip(t),this.resetChipBuffer()}}},e.prototype.chipKeydown=function(e){if(!this.getChipBuffer())switch(e.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip&lt;0)return;e.preventDefault(),this.removeAndSelectAdjacentChip(this.selectedChip);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:e.preventDefault(),this.selectedChip&lt;0&amp;&amp;(this.selectedChip=this.items.length),this.items.length&amp;&amp;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&lt;0)return;e.preventDefault(),this.onFocus()}},e.prototype.getPlaceholder=function(){var e=this.items.length&amp;&amp;(""==this.secondaryPlaceholder||this.secondaryPlaceholder);return e?this.placeholder:this.secondaryPlaceholder},e.prototype.removeAndSelectAdjacentChip=function(e){var n=this.getAdjacentChipIndex(e);this.removeChip(e),this.$timeout(t.bind(this,function(){
this.selectAndFocusChipSafe(n)}))},e.prototype.resetSelectedChip=function(){this.selectedChip=-1},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.useTransformChip&amp;&amp;this.transformChip){var n=this.transformChip({$chip:e});t.isDefined(n)&amp;&amp;(e=n)}if(t.isObject(e)){var o=this.items.some(function(n){return t.equals(e,n)});if(o)return}if(!(null==e||this.items.indexOf(e)+1)){var r=this.items.push(e);this.useOnAdd&amp;&amp;this.onAdd&amp;&amp;this.onAdd({$chip:e,$index:r})}},e.prototype.useOnAppendExpression=function(){this.$log.warn("md-on-append is deprecated; please use md-transform-chip or md-on-add instead"),this.useTransformChip&amp;&amp;this.transformChip||(this.useTransformChip=!0,this.transformChip=this.onAppend)},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(){return this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer},e.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},e.prototype.removeChip=function(e){var t=this.items.splice(e,1);t&amp;&amp;t.length&amp;&amp;this.useOnRemove&amp;&amp;this.onRemove&amp;&amp;this.onRemove({$chip:t[0],$index:e})},e.prototype.removeChipAndFocusInput=function(e){this.removeChip(e),this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){return this.items.length?e===this.items.length?this.onFocus():(e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),void this.focusChip(e)):(this.selectChip(-1),void this.onFocus())},e.prototype.selectChip=function(e){e&gt;=-1&amp;&amp;e&lt;=this.items.length?(this.selectedChip=e,this.useOnSelect&amp;&amp;this.onSelect&amp;&amp;this.onSelect({$chip:this.items[this.selectedChip]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.selectAndFocusChip=function(e){this.selectChip(e),-1!=e&amp;&amp;this.focusChip(e)},e.prototype.focusChip=function(e){this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content').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&amp;&amp;e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1},e.prototype.configureUserInput=function(e){this.userInputElement=e;var n=e.controller("ngModel");n!=this.ngModelCtrl&amp;&amp;(this.userInputNgModelCtrl=n);var o=this.$scope,r=this,i=function(e,n){o.$evalAsync(t.bind(r,n,e))};e.attr({tabindex:0}).on("keydown",function(e){i(e,r.inputKeydown)}).on("focus",function(e){i(e,r.onInputFocus)}).on("blur",function(e){i(e,r.onInputBlur)})},e.prototype.configureAutocomplete=function(e){e&amp;&amp;(this.hasAutocomplete=!0,e.registerSelectedItemWatcher(t.bind(this,function(e){e&amp;&amp;(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.hasFocus=function(){return this.inputHasFocus||this.selectedChip&gt;=0}}(),function(){function e(e,t,a,d,c){function s(n,o){function r(e){if(o.ngModel){var t=i[0].querySelector(e);return t&amp;&amp;t.outerHTML}}var i=o.$mdUserTemplate;o.$mdUserTemplate=null;var s=r("md-chips&gt;*[md-chip-remove]")||m.remove,l=r("md-chips&gt;md-chip-template")||m["default"],u=r("md-chips&gt;md-autocomplete")||r("md-chips&gt;input")||m.input,p=i.find("md-chip");return i[0].querySelector("md-chip-template&gt;*[md-chip-remove]")&amp;&amp;d.warn("invalid placement of md-chip-remove within md-chip-template."),function(n,r,i,d){t.initOptionalProperties(n,o),e(r);var h=d[0];if(h.chipContentsTemplate=l,h.chipRemoveTemplate=s,h.chipInputTemplate=u,r.attr({"aria-hidden":!0,tabindex:-1}).on("focus",function(){h.onFocus()}),o.ngModel&amp;&amp;(h.configureNgModel(r.controller("ngModel")),i.mdTransformChip&amp;&amp;h.useTransformChipExpression(),i.mdOnAppend&amp;&amp;h.useOnAppendExpression(),i.mdOnAdd&amp;&amp;h.useOnAddExpression(),i.mdOnRemove&amp;&amp;h.useOnRemoveExpression(),i.mdOnSelect&amp;&amp;h.useOnSelectExpression(),u!=m.input&amp;&amp;n.$watch("$mdChipsCtrl.readonly",function(e){e||t.nextTick(function(){0===u.indexOf("&lt;md-autocomplete")&amp;&amp;h.configureAutocomplete(r.find("md-autocomplete").controller("mdAutocomplete")),h.configureUserInput(r.find("input"))})}),t.nextTick(function(){var e=r.find("input");e&amp;&amp;e.toggleClass("md-input",!0)})),p.length&gt;0){var f=a(p.clone())(n.$parent);c(function(){r.find("md-chips-wrap").prepend(f)})}}}function l(){return{chips:t.processTemplate(n),input:t.processTemplate(o),"default":t.processTemplate(r),remove:t.processTemplate(i)}}var m=l();return{template:function(e,t){return t.$mdUserTemplate=e.clone(),m.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:s,scope:{readonly:"=readonly",placeholder:"@",secondaryPlaceholder:"@",transformChip:"&amp;mdTransformChip",onAppend:"&amp;mdOnAppend",onAdd:"&amp;mdOnAdd",onRemove:"&amp;mdOnRemove",onSelect:"&amp;mdOnSelect",deleteHint:"@",deleteButtonLabel:"@",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch"}}}t.module("material.components.chips").directive("mdChips",e);var n='      &lt;md-chips-wrap          ng-if="!$mdChipsCtrl.readonly || $mdChipsCtrl.items.length &gt; 0"          ng-keydown="$mdChipsCtrl.chipKeydown($event)"          ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(), \'md-readonly\': !$mdChipsCtrl.ngModelCtrl }"          class="md-chips"&gt;        &lt;md-chip ng-repeat="$chip in $mdChipsCtrl.items"            index="{{$index}}"            ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': $mdChipsCtrl.readonly}"&gt;          &lt;div class="md-chip-content"              tabindex="-1"              aria-hidden="true"              ng-focus="!$mdChipsCtrl.readonly &amp;&amp; $mdChipsCtrl.selectChip($index)"              md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"&gt;&lt;/div&gt;          &lt;div ng-if="!$mdChipsCtrl.readonly"               class="md-chip-remove-container"               md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"&gt;&lt;/div&gt;        &lt;/md-chip&gt;        &lt;div ng-if="!$mdChipsCtrl.readonly &amp;&amp; $mdChipsCtrl.ngModelCtrl"            class="md-chip-input-container"            md-chip-transclude="$mdChipsCtrl.chipInputTemplate"&gt;&lt;/div&gt;        &lt;/div&gt;      &lt;/md-chips-wrap&gt;',o='        &lt;input            class="md-input"            tabindex="0"            placeholder="{{$mdChipsCtrl.getPlaceholder()}}"            aria-label="{{$mdChipsCtrl.getPlaceholder()}}"            ng-model="$mdChipsCtrl.chipBuffer"            ng-focus="$mdChipsCtrl.onInputFocus()"            ng-blur="$mdChipsCtrl.onInputBlur()"            ng-keydown="$mdChipsCtrl.inputKeydown($event)"&gt;',r="      &lt;span&gt;{{$chip}}&lt;/span&gt;",i='      &lt;button          class="md-chip-remove"          ng-if="!$mdChipsCtrl.readonly"          ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)"          type="button"          aria-hidden="true"          tabindex="-1"&gt;        &lt;md-icon md-svg-icon="md-close"&gt;&lt;/md-icon&gt;        &lt;span class="md-visually-hidden"&gt;          {{$mdChipsCtrl.deleteButtonLabel}}        &lt;/span&gt;      &lt;/button&gt;';e.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout"]}(),function(){function e(){this.selectedItem=null,this.searchText=""}t.module("material.components.chips").controller("MdContactChipsCtrl",e),e.prototype.queryContact=function(e){var n=this.contactQuery({$query:e});return this.filterSelected?n.filter(t.bind(this,this.filterSelectedContacts)):n},e.prototype.itemName=function(e){return e[this.contactName]},e.prototype.filterSelectedContacts=function(e){return-1==this.contacts.indexOf(e)}}(),function(){function e(e,t){function o(n,o){return function(n,r,i,a){t.initOptionalProperties(n,o),e(r),r.attr("tabindex","-1")}}return{template:function(e,t){return n},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:o,scope:{contactQuery:"&amp;mdContacts",placeholder:"@",secondaryPlaceholder:"@",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",requireMatch:"=?mdRequireMatch",highlightFlags:"@?mdHighlightFlags"}}}t.module("material.components.chips").directive("mdContactChips",e);var n='      &lt;md-chips class="md-contact-chips"          ng-model="$mdContactChipsCtrl.contacts"          md-require-match="$mdContactChipsCtrl.requireMatch"          md-autocomplete-snap&gt;          &lt;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-autoselect              placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ?                  $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}"&gt;            &lt;div class="md-contact-suggestion"&gt;              &lt;img                   ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"                  alt="{{item[$mdContactChipsCtrl.contactName]}}"                  ng-if="item[$mdContactChipsCtrl.contactImage]" /&gt;              &lt;span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText"                    md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}"&gt;                {{item[$mdContactChipsCtrl.contactName]}}              &lt;/span&gt;              &lt;span class="md-contact-email" &gt;{{item[$mdContactChipsCtrl.contactEmail]}}&lt;/span&gt;            &lt;/div&gt;          &lt;/md-autocomplete&gt;          &lt;md-chip-template&gt;            &lt;div class="md-contact-avatar"&gt;              &lt;img                   ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"                  alt="{{$chip[$mdContactChipsCtrl.contactName]}}"                  ng-if="$chip[$mdContactChipsCtrl.contactImage]" /&gt;            &lt;/div&gt;            &lt;div class="md-contact-name"&gt;              {{$chip[$mdContactChipsCtrl.contactName]}}            &lt;/div&gt;          &lt;/md-chip-template&gt;      &lt;/md-chips&gt;';e.$inject=["$mdTheming","$mdUtil"]}(),function(){function e(e,t,n){function o(o,r,i){function a(){var e=r.parent();return!(!e.attr("aria-label")&amp;&amp;!e.text())||!(!e.parent().attr("aria-label")&amp;&amp;!e.parent().text())}function d(){o.svgIcon||o.svgSrc||(o.fontIcon&amp;&amp;r.addClass("md-font "+o.fontIcon),r.addClass(e.fontSet(o.fontSet)))}t(r),d();var c=i.alt||o.fontIcon||o.svgIcon||r.text(),s=i.$normalize(i.$attr.mdSvgIcon||i.$attr.mdSvgSrc||"");i["aria-label"]||(""==c||a()?r.text()||n.expect(r,"aria-hidden","true"):(n.expect(r,"aria-label",c),n.expect(r,"role","img"))),s&amp;&amp;i.$observe(s,function(t){r.empty(),t&amp;&amp;e(t).then(function(e){r.append(e)})})}return{scope:{fontSet:"@mdFontSet",fontIcon:"@mdFontIcon",svgIcon:"@mdSvgIcon",svgSrc:"@mdSvgSrc"},restrict:"E",link:o}}t.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria",e])}(),function(){function e(){}function n(e,t){this.url=e,this.viewBoxSize=t||r.defaultViewBoxSize}function o(e,n,o,r,i){function a(t){if(t=t||"",b[t])return o.when(b[t].clone());if(E.test(t))return m(t).then(c(t));-1==t.indexOf(":")&amp;&amp;(t="$default:"+t);var n=e[t]?s:l;return n(t).then(c(t))}function d(n){var o=t.isUndefined(n)||!(n&amp;&amp;n.length);if(o)return e.defaultFontSet;var r=n;return t.forEach(e.fontSets,function(e){e.alias==n&amp;&amp;(r=e.fontSet||r)}),r}function c(t){return function(n){return b[t]=p(n)?n:new h(n,e[t]),b[t].clone()}}function s(t){var n=e[t];return m(n.url).then(function(e){return new h(e,n)})}function l(t){function n(e){var n=t.slice(t.lastIndexOf(":")+1),o=e.querySelector("#"+n);return o?new h(o,d):i(t)}function i(e){var t="icon "+e+" not found";return r.warn(t),o.reject(t||e)}var a=t.substring(0,t.lastIndexOf(":"))||"$default",d=e[a];return d?m(d.url).then(n):i(t)}function m(e){return n.get(e,{cache:i}).then(function(e){return t.element("&lt;div&gt;").append(e.data).find("svg")[0]})["catch"](u)}function u(e){var n=t.isString(e)?e:e.message||e.data||e.statusText;return r.warn(n),o.reject(n)}function p(e){return t.isDefined(e.element)&amp;&amp;t.isDefined(e.config)}function h(e,n){e&amp;&amp;"svg"!=e.tagName&amp;&amp;(e=t.element('&lt;svg xmlns="http://www.w3.org/2000/svg"&gt;').append(e)[0]),e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=e,this.config=n,this.prepare()}function f(){var n=this.config?this.config.viewBoxSize:e.defaultViewBoxSize;t.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+n+" "+n},function(e,t){this.element.setAttribute(t,e)},this),t.forEach({"pointer-events":"none",display:"block"},function(e,t){this.element.style[t]=e},this)}function g(){return this.element.cloneNode(!0)}var b={},E=/[-a-zA-Z0-9@:%_\+.~#?&amp;\/\/=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&amp;\/\/=]*)?/i;return h.prototype={clone:g,prepare:f},a.fontSet=d,a}t.module("material.components.icon").provider("$mdIcon",e);var r={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};e.prototype={icon:function(e,t,o){return-1==e.indexOf(":")&amp;&amp;(e="$default:"+e),r[e]=new n(t,o),this},iconSet:function(e,t,o){return r[e]=new n(t,o),this},defaultIconSet:function(e,t){var o="$default";return r[o]||(r[o]=new n(e,t)),r[o].viewBoxSize=t||r.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return r.defaultViewBoxSize=e,this},fontSet:function(e,t){return r.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return r.defaultFontSet=e?e:"",this},defaultIconSize:function(e){return r.defaultIconSize=e,this},preloadIcons:function(e){var t=this,n=[{id:"md-tabs-arrow",url:"md-tabs-arrow.svg",svg:'&lt;svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"&gt;&lt;g&gt;&lt;polygon points="15.4,7.4 14,6 8,12 14,18 15.4,16.6 10.8,12 "/&gt;&lt;/g&gt;&lt;/svg&gt;'},{id:"md-close",url:"md-close.svg",svg:'&lt;svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"&gt;&lt;g&gt;&lt;path d="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"/&gt;&lt;/g&gt;&lt;/svg&gt;'},{id:"md-cancel",url:"md-cancel.svg",svg:'&lt;svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"&gt;&lt;g&gt;&lt;path d="M12 2c-5.53 0-10 4.47-10 10s4.47 10 10 10 10-4.47 10-10-4.47-10-10-10zm5 13.59l-1.41 1.41-3.59-3.59-3.59 3.59-1.41-1.41 3.59-3.59-3.59-3.59 1.41-1.41 3.59 3.59 3.59-3.59 1.41 1.41-3.59 3.59 3.59 3.59z"/&gt;&lt;/g&gt;&lt;/svg&gt;'},{id:"md-menu",url:"md-menu.svg",svg:'&lt;svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"&gt;&lt;path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" /&gt;&lt;/svg&gt;'},{id:"md-toggle-arrow",url:"md-toggle-arrow-svg",svg:'&lt;svg version="1.1" x="0px" y="0px" viewBox="0 0 48 48"&gt;&lt;path d="M24 16l-12 12 2.83 2.83 9.17-9.17 9.17 9.17 2.83-2.83z"/&gt;&lt;path d="M0 0h48v48h-48z" fill="none"/&gt;&lt;/svg&gt;'},{id:"md-calendar",url:"md-calendar.svg",svg:'&lt;svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"&gt;&lt;path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/&gt;&lt;/svg&gt;'}];n.forEach(function(n){t.icon(n.id,n.url),e.put(n.url,n.svg)})},$get:["$http","$q","$log","$templateCache",function(e,t,n,i){return this.preloadIcons(i),o(r,e,t,n,i)}]},o.$inject=["config","$http","$q","$log","$templateCache"]}(),function(){function e(e,o,r,i,a,d,c,s){var l,m,u=this;this.nestLevel=parseInt(o.mdNestLevel,10)||0,this.init=function(e,n){n=n||{},l=e,m=r[0].querySelector("[ng-click],[ng-mouseenter]"),m.setAttribute("aria-expanded","false"),this.isInMenuBar=n.isInMenuBar,this.nestedMenus=a.nodesToArray(l[0].querySelectorAll(".md-nested-menu")),l.on("$mdInterimElementRemove",function(){u.isOpen=!1});var o="menu_container_"+a.nextUid();l.attr("id",o),t.element(m).attr({"aria-owns":o,"aria-haspopup":"true"}),i.$on("$destroy",this.disableHoverListener)};var p,h,f=[];this.enableHoverListener=function(){f.push(c.$on("$mdMenuOpen",function(e,t){l[0].contains(t[0])&amp;&amp;(u.currentlyOpenMenu=t.controller("mdMenu"),u.isAlreadyOpening=!1,u.currentlyOpenMenu.registerContainerProxy(u.triggerContainerProxy.bind(u)))})),f.push(c.$on("$mdMenuClose",function(e,t){l[0].contains(t[0])&amp;&amp;(u.currentlyOpenMenu=n)})),h=t.element(a.nodesToArray(l[0].querySelectorAll("md-menu-item"))),h.on("mouseenter",u.handleMenuItemHover),h.on("mouseleave",u.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;f.length;)f.shift()();h&amp;&amp;h.off("mouseenter",u.handleMenuItemHover),h&amp;&amp;h.off("mouseleave",u.handleMenuMouseLeave)},this.handleMenuItemHover=function(e){if(!u.isAlreadyOpening){var n=e.target.querySelector("md-menu")||a.getClosest(e.target,"MD-MENU");p=d(function(){if(n&amp;&amp;(n=t.element(n).controller("mdMenu")),u.currentlyOpenMenu&amp;&amp;u.currentlyOpenMenu!=n){var e=u.nestLevel+1;u.currentlyOpenMenu.close(!0,{closeTo:e})}else n&amp;&amp;!n.isOpen&amp;&amp;n.open&amp;&amp;(u.isAlreadyOpening=!0);n&amp;&amp;n.open()},n?100:250);var o=e.currentTarget.querySelector("button:not([disabled])");o&amp;&amp;o.focus()}},this.handleMenuItemMouseLeave=function(){p&amp;&amp;(d.cancel(p),p=n)},this.open=function(t){t&amp;&amp;t.stopPropagation(),t&amp;&amp;t.preventDefault(),u.isOpen||(u.enableHoverListener(),u.isOpen=!0,m=m||(t?t.target:r[0]),m.setAttribute("aria-expanded","true"),i.$emit("$mdMenuOpen",r),e.show({scope:i,mdMenuCtrl:u,nestLevel:u.nestLevel,element:l,target:m,preserveElement:!0,parent:"body"})["finally"](function(){m.setAttribute("aria-expanded","false"),u.disableHoverListener()}))},i.$mdOpenMenu=this.open,i.$watch(function(){return u.isOpen},function(e){e?(l.attr("aria-hidden","false"),r[0].classList.add("md-open"),t.forEach(u.nestedMenus,function(e){e.classList.remove("md-open")})):(l.attr("aria-hidden","true"),r[0].classList.remove("md-open")),i.$mdMenuIsOpen=u.isOpen}),this.focusMenuContainer=function(){var e=l[0].querySelector("[md-menu-focus-target]");e||(e=l[0].querySelector(".md-button")),e.focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&amp;&amp;this.containerProxy(e)},this.destroy=function(){return u.isOpen?e.destroy():s.when(!1)},this.close=function(n,o){if(u.isOpen){u.isOpen=!1;var a=t.extend({},o,{skipFocus:n});if(i.$emit("$mdMenuClose",r,a),e.hide(null,o),!n){var d=u.restoreFocusTo||r.find("button")[0];d instanceof t.element&amp;&amp;(d=d[0]),d&amp;&amp;d.focus()}}},this.positionMode=function(){var e=(o.mdPositionMode||"target").split(" ");return 1==e.length&amp;&amp;e.push(e[0]),{left:e[0],top:e[1]}},this.offsets=function(){var e=(o.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 &lt;x, y&gt; or &lt;n&gt;")}}t.module("material.components.menu").controller("mdMenuCtrl",e),e.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q"]}(),function(){function e(e){function o(n){n.addClass("md-menu");var o=n.children()[0];if(o.hasAttribute("ng-click")||(o=o.querySelector("[ng-click],[ng-mouseenter]")||o),!o||"MD-BUTTON"!=o.nodeName&amp;&amp;"BUTTON"!=o.nodeName||o.hasAttribute("type")||o.setAttribute("type","button"),2!=n.children().length)throw Error(i+"Expected two children elements.");o&amp;&amp;o.setAttribute("aria-haspopup","true");var a=n[0].querySelectorAll("md-menu"),d=parseInt(n[0].getAttribute("md-nest-level"),10)||0;return a&amp;&amp;t.forEach(e.nodesToArray(a),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)}),r}function r(e,o,r,i){var a=i[0],d=i[1]!=n,c=t.element('&lt;div class="md-open-menu-container md-whiteframe-z2"&gt;&lt;/div&gt;'),s=o.children()[1];s.hasAttribute("role")||s.setAttribute("role","menu"),c.append(s),o.on("$destroy",function(){c.remove()}),o.append(c),c[0].style.display="none",a.init(c,{isInMenuBar:d})}var i="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:o}}t.module("material.components.menu").directive("mdMenu",e),e.$inject=["$mdUtil"]}(),function(){function e(e){function o(e,o,a,d,c,s,l,m,u){function p(n,o,r){return r.nestLevel?t.noop:(r.disableParentScroll&amp;&amp;!e.getClosest(r.target,"MD-DIALOG")?r.restoreScroll=e.disableScrollAround(r.element,r.parent):r.disableParentScroll=!1,r.hasBackdrop&amp;&amp;(r.backdrop=e.createBackdrop(n,"md-menu-backdrop md-click-catcher"),u.enter(r.backdrop,d[0].body)),function(){r.backdrop&amp;&amp;r.backdrop.remove(),r.disableParentScroll&amp;&amp;r.restoreScroll()})}function h(e,t,n){function o(){return m(t,{addClass:"md-leave"}).start()}function r(){t.removeClass("md-active"),E(t,n),n.alreadyOpen=!1}return n.cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),n.$destroy===!0?r():o().then(r)}function f(n,r,i){function d(){return i.parent.append(r),r[0].style.display="",s(function(e){var t=v(r,i);r.removeClass("md-leave"),m(r,{addClass:"md-active",from:M.toCss(t),to:M.toCss({transform:""})}).start().then(e)})}function u(){if(!i.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");t.extend(i,{alreadyOpen:!1,isRemoved:!1,target:t.element(i.target),parent:t.element(i.parent),menuContentEl:t.element(r[0].querySelector("md-menu-content"))})}function h(){var e=function(e,t){return l.throttle(function(){if(!i.isRemoved){var n=v(e,t);e.css(M.toCss(n))}})}(r,i);return c.addEventListener("resize",e),c.addEventListener("orientationchange",e),function(){c.removeEventListener("resize",e),c.removeEventListener("orientationchange",e)}}function f(){function t(t){var n;switch(t.keyCode){case a.KEY_CODE.ESCAPE:i.mdMenuCtrl.close(!1,{closeAll:!0}),n=!0;break;case a.KEY_CODE.UP_ARROW:g(t,i.menuContentEl,i,-1)||i.nestLevel||i.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case a.KEY_CODE.DOWN_ARROW:g(t,i.menuContentEl,i,1)||i.nestLevel||i.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case a.KEY_CODE.LEFT_ARROW:i.nestLevel?i.mdMenuCtrl.close():i.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case a.KEY_CODE.RIGHT_ARROW:var o=e.getClosest(t.target,"MD-MENU");o&amp;&amp;o!=i.parent[0]?t.target.click():i.mdMenuCtrl.triggerContainerProxy(t),n=!0}n&amp;&amp;(t.preventDefault(),t.stopImmediatePropagation())}function o(e){e.preventDefault(),e.stopPropagation(),n.$apply(function(){i.mdMenuCtrl.close(!0,{closeAll:!0})})}function d(t){function o(){n.$apply(function(){i.mdMenuCtrl.close(!0,{closeAll:!0})})}function r(e,t){if(!e)return!1;for(var n,o=0;n=t[o];++o)for(var r,i=[n,"data-"+n,"x-"+n],a=0;r=i[a];++a)if(e.hasAttribute(r))return!0;return!1}var a=t.target;do{if(a==i.menuContentEl[0])return;if((r(a,["ng-click","ng-href","ui-sref"])||"BUTTON"==a.nodeName||"MD-BUTTON"==a.nodeName)&amp;&amp;!r(a,["md-prevent-menu-close"])){var d=e.getClosest(a,"MD-MENU");a.hasAttribute("disabled")||d&amp;&amp;d!=i.parent[0]||o();break}}while(a=a.parentNode)}r.addClass("md-clickable"),i.backdrop&amp;&amp;i.backdrop.on("click",o),i.menuContentEl.on("keydown",t),i.menuContentEl[0].addEventListener("click",d,!0);var c=i.menuContentEl[0].querySelector("[md-menu-focus-target]");if(!c){var s=i.menuContentEl[0].firstElementChild;c=s&amp;&amp;(s.querySelector(".md-button:not([disabled])")||s.firstElementChild)}return c&amp;&amp;c.focus(),function(){r.removeClass("md-clickable"),i.backdrop&amp;&amp;i.backdrop.off("click",o),i.menuContentEl.off("keydown",t),i.menuContentEl[0].removeEventListener("click",d,!0)}}return u(i),o.inherit(i.menuContentEl,i.target),i.cleanupResizing=h(),i.hideBackdrop=p(n,r,i),d().then(function(e){return i.alreadyOpen=!0,i.cleanupInteraction=f(),e})}function g(t,n,o,r){for(var i,a=e.getClosest(t.target,"MD-MENU-ITEM"),d=e.nodesToArray(n[0].children),c=d.indexOf(a),s=c+r;s&gt;=0&amp;&amp;s&lt;d.length;s+=r){var l=d[s].querySelector(".md-button");if(i=b(l))break}return i}function b(e){return e&amp;&amp;-1!=e.getAttribute("tabindex")?(e.focus(),d[0].activeElement==e):void 0}function E(e,t){t.preserveElement?r(e).style.display="none":r(e).parentNode===r(t.parent)&amp;&amp;r(t.parent).removeChild(r(e))}function v(t,o){function r(e){e.top=Math.max(Math.min(e.top,E.bottom-l.offsetHeight),E.top),e.left=Math.max(Math.min(e.left,E.right-l.offsetWidth),E.left)}function a(){for(var e=0;e&lt;m.children.length;++e)if("none"!=c.getComputedStyle(m.children[e]).display)return m.children[e]}var s,l=t[0],m=t[0].firstElementChild,u=m.getBoundingClientRect(),p=d[0].body,h=p.getBoundingClientRect(),f=c.getComputedStyle(m),g=o.target[0].querySelector("[md-menu-origin]")||o.target[0],b=g.getBoundingClientRect(),E={left:h.left+i,top:Math.max(h.top,0)+i,bottom:Math.max(h.bottom,Math.max(h.top,0)+h.height)-i,right:h.right-i},v={top:0,left:0,right:0,bottom:0},M={top:0,left:0,right:0,bottom:0},$=o.mdMenuCtrl.positionMode();("target"==$.top||"target"==$.left||"target-right"==$.left)&amp;&amp;(s=a(),s&amp;&amp;(s=s.firstElementChild||s,s=s.querySelector("[md-menu-align-target]")||s,v=s.getBoundingClientRect(),M={top:parseFloat(l.style.top||0),left:parseFloat(l.style.left||0)}));var y={},C="top ";switch($.top){case"target":y.top=M.top+b.top-v.top;break;case"cascade":y.top=b.top-parseFloat(f.paddingTop)-g.style.top;break;case"bottom":y.top=b.top+b.height;break;default:throw new Error('Invalid target mode "'+$.top+'" specified for md-menu on Y axis.')}switch($.left){case"target":y.left=M.left+b.left-v.left,C+="left";break;case"target-right":y.left=b.right-u.width+(u.right-v.right),C+="right";break;case"cascade":var A=b.right+u.width&lt;E.right;y.left=A?b.right-g.style.left:b.left-g.style.left-u.width,C+=A?"left":"right";break;case"left":y.left=b.left,C+="left";break;default:throw new Error('Invalid target mode "'+$.left+'" specified for md-menu on X axis.')}var T=o.mdMenuCtrl.offsets();y.top+=T.top,y.left+=T.left,r(y);var k=Math.round(100*Math.min(b.width/l.offsetWidth,1))/100,w=Math.round(100*Math.min(b.height/l.offsetHeight,1))/100;return{top:Math.round(y.top),left:Math.round(y.left),transform:o.alreadyOpen?n:e.supplant("scale({0},{1})",[k,w]),transformOrigin:C}}var M=e.dom.animator;return{parent:"body",onShow:f,onRemove:h,hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,skipHide:!0,themable:!0}}function r(e){return e instanceof t.element&amp;&amp;(e=e[0]),e}var i=8;return o.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate"],e("$mdMenu").setDefaults({methods:["target"],options:o})}t.module("material.components.menu").provider("$mdMenu",e),e.$inject=["$$interimElementProvider"]}(),function(){function e(e,n,r,i,a,d,c,s){this.$element=r,this.$attrs=i,this.$mdConstant=a,this.$mdUtil=c,this.$document=d,this.$scope=e,this.$rootScope=n,this.$timeout=s;var l=this;t.forEach(o,function(e){l[e]=t.bind(l,l[e])})}t.module("material.components.menuBar").controller("MenuBarController",e);var o=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],e.prototype.init=function(){var e=this.$element,t=this.$mdUtil,o=this.$scope,r=this,i=[];e.on("keydown",this.handleKeyDown),this.parentToolbar=t.getClosest(e,"MD-TOOLBAR"),i.push(this.$rootScope.$on("$mdMenuOpen",function(t,n){-1!=r.getMenus().indexOf(n[0])&amp;&amp;(e[0].classList.add("md-open"),n[0].classList.add("md-open"),r.currentlyOpenMenu=n.controller("mdMenu"),r.currentlyOpenMenu.registerContainerProxy(r.handleKeyDown),r.enableOpenOnHover())})),i.push(this.$rootScope.$on("$mdMenuClose",function(o,i,a){var d=r.getMenus();if(-1!=d.indexOf(i[0])&amp;&amp;(e[0].classList.remove("md-open"),i[0].classList.remove("md-open")),e[0].contains(i[0])){for(var c=i[0];c&amp;&amp;-1==d.indexOf(c);)c=t.getClosest(c,"MD-MENU",!0);c&amp;&amp;(a.skipFocus||c.querySelector("button:not([disabled])").focus(),r.currentlyOpenMenu=n,r.disableOpenOnHover(),r.setKeyboardMode(!0))}})),o.$on("$destroy",function(){for(;i.length;)i.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){this.openOnHoverEnabled=!0;var e;(e=this.parentToolbar)&amp;&amp;(e.dataset.mdRestoreStyle=e.getAttribute("style"),e.style.position="relative",e.style.zIndex=100),t.element(this.getMenus()).on("mouseenter",this.handleMenuHover)}},e.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&amp;&amp;this.scheduleOpenHoveredMenu(e)},e.prototype.disableOpenOnHover=function(){if(this.openOnHoverEnabled){this.openOnHoverEnabled=!1;var e;(e=this.parentToolbar)&amp;&amp;e.setAttribute("style",e.dataset.mdRestoreStyle||""),t.element(this.getMenus()).off("mouseenter",this.handleMenuHover)}},e.prototype.scheduleOpenHoveredMenu=function(e){var n=t.element(e.currentTarget),o=n.controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(o)},e.prototype.scheduleOpenMenu=function(e){var t=this,o=this.$timeout;e!=t.currentlyOpenMenu&amp;&amp;(o.cancel(t.pendingMenuOpen),t.pendingMenuOpen=o(function(){t.pendingMenuOpen=n,t.currentlyOpenMenu&amp;&amp;t.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},e.prototype.handleKeyDown=function(e){var n=this.$mdConstant.KEY_CODE,o=this.currentlyOpenMenu,r=o&amp;&amp;o.isOpen;this.setKeyboardMode(!0);var i,a,d;switch(e.keyCode){case n.DOWN_ARROW:o?o.focusMenuContainer():this.openFocusedMenu(),i=!0;break;case n.UP_ARROW:o&amp;&amp;o.close(),i=!0;break;case n.LEFT_ARROW:a=this.focusMenu(-1),r&amp;&amp;(d=t.element(a).controller("mdMenu"),this.scheduleOpenMenu(d)),i=!0;break;case n.RIGHT_ARROW:a=this.focusMenu(1),r&amp;&amp;(d=t.element(a).controller("mdMenu"),this.scheduleOpenMenu(d)),i=!0}i&amp;&amp;(e&amp;&amp;e.preventDefault&amp;&amp;e.preventDefault(),e&amp;&amp;e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())},e.prototype.focusMenu=function(e){var t=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&amp;&amp;(n=this.getOpenMenuIndex());var o=!1;return-1==n?n=0:(0&gt;e&amp;&amp;n&gt;0||e&gt;0&amp;&amp;n&lt;t.length-e)&amp;&amp;(n+=e,o=!0),o?(t[n].querySelector("button").focus(),t[n]):void 0},e.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&amp;&amp;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,t=e.getClosest(this.$document[0].activeElement,"MD-MENU");if(!t)return-1;var n=this.getMenus().indexOf(t);return n},e.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),t=0;t&lt;e.length;++t)if(e[t].classList.contains("md-open"))return t;return-1}}(),function(){function e(e,n){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(o,r){return r.ariaRole||o[0].setAttribute("role","menubar"),t.forEach(o[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").setAttribute("role","menuitem"));var o=e.nodesToArray(n.querySelectorAll("md-menu-content"));t.forEach(o,function(e){e.classList.add("md-menu-bar-menu"),e.classList.add("md-dense"),e.hasAttribute("width")||e.setAttribute("width",5)})}}),function(e,t,o,r){n(e,t),r.init()}}}}t.module("material.components.menuBar").directive("mdMenuBar",e),e.$inject=["$mdUtil","$mdTheming"]}(),function(){function e(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}}t.module("material.components.menuBar").directive("mdMenuDivider",e)}(),function(){function e(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}t.module("material.components.menuBar").controller("MenuItemController",e),
e.$inject=["$scope","$element","$attrs"],e.prototype.init=function(e){var t=this.$element,n=this.$attrs;this.ngModel=e,("checkbox"==n.type||"radio"==n.type)&amp;&amp;(this.mode=n.type,this.iconEl=t[0].children[0],this.buttonEl=t[0].children[1],e&amp;&amp;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"==d){var e=a.ngValue?i.$eval(a.ngValue):a.value;return r.$modelValue==e}return r.$modelValue}function n(e){e?s.off("click",l):s.on("click",l)}var o=this,r=this.ngModel,i=this.$scope,a=this.$attrs,d=(this.$element,this.mode);this.handleClick=t.bind(this,this.handleClick);var c=this.iconEl,s=t.element(this.buttonEl),l=this.handleClick;a.$observe("disabled",n),n(a.disabled),r.$render=function(){o.clearNgAria(),e()?(c.style.display="",s.attr("aria-checked","true")):(c.style.display="none",s.attr("aria-checked","false"))},i.$$postDigest(r.$render)},e.prototype.handleClick=function(e){var t,n=this.mode,o=this.ngModel,r=this.$attrs;"checkbox"==n?t=!o.$modelValue:"radio"==n&amp;&amp;(t=r.ngValue?this.$scope.$eval(r.ngValue):r.value),o.$setViewValue(t),o.$render()}}(),function(){function e(){return{require:["mdMenuItem","?ngModel"],priority:210,compile:function(e,n){function o(n,o,r){r=r||e,r instanceof t.element&amp;&amp;(r=r[0]),r.hasAttribute(n)||r.setAttribute(n,o)}function r(t){if(e[0].hasAttribute(t)){var n=e[0].getAttribute(t);a[0].setAttribute(t,n),e[0].removeAttribute(t)}}if("checkbox"==n.type||"radio"==n.type){var i=e[0].textContent,a=t.element('&lt;md-button type="button"&gt;&lt;/md-button&gt;');a.html(i),a.attr("tabindex","0"),e.html(""),e.append(t.element('&lt;md-icon md-svg-icon="check"&gt;&lt;/md-icon&gt;')),e.append(a),e[0].classList.add("md-indent"),o("role","checkbox"==n.type?"menuitemcheckbox":"menuitemradio",a),t.forEach(["ng-disabled"],r)}else o("role","menuitem",e[0].querySelector("md-button,button,a"));return function(e,t,n,o){var r=o[0],i=o[1];r.init(i)}},controller:"MenuItemController"}}t.module("material.components.menuBar").directive("mdMenuItem",e)}(),function(){function e(){function e(e,o,r,i){if(i){var a=i.getTabElementIndex(o),d=n(o,"md-tab-body").remove(),c=n(o,"md-tab-label").remove(),s=i.insertTab({scope:e,parent:e.$parent,index:a,element:o,template:d.html(),label:c.html()},a);e.select=e.select||t.noop,e.deselect=e.deselect||t.noop,e.$watch("active",function(e){e&amp;&amp;i.select(s.getIndex())}),e.$watch("disabled",function(){i.refreshIndex()}),e.$watch(function(){return i.getTabElementIndex(o)},function(e){s.index=e,i.updateTabOrder()}),e.$on("$destroy",function(){i.removeTab(s)})}}function n(e,n){for(var o=e[0].children,r=0,i=o.length;i&gt;r;r++){var a=o[r];if(a.tagName===n.toUpperCase())return t.element(a)}return t.element()}return{require:"^?mdTabs",terminal:!0,compile:function(o,r){var i=n(o,"md-tab-label"),a=n(o,"md-tab-body");if(0==i.length&amp;&amp;(i=t.element("&lt;md-tab-label&gt;&lt;/md-tab-label&gt;"),r.label?i.text(r.label):i.append(o.contents()),0==a.length)){var d=o.contents().detach();a=t.element("&lt;md-tab-body&gt;&lt;/md-tab-body&gt;"),a.append(d)}return o.append(i),a.html()&amp;&amp;o.append(a),e},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&amp;?mdOnSelect",deselect:"&amp;?mdOnDeselect"}}}t.module("material.components.tabs").directive("mdTab",e)}(),function(){function e(){return{require:"^?mdTabs",link:function(e,t,n,o){o&amp;&amp;o.attachRipple(e,t)}}}t.module("material.components.tabs").directive("mdTabItem",e)}(),function(){function e(){return{terminal:!0}}t.module("material.components.tabs").directive("mdTabLabel",e)}(),function(){function e(e){return{restrict:"A",compile:function(t,n){var o=e(n.mdTabScroll,null,!0);return function(e,t){t.on("mousewheel",function(t){e.$apply(function(){o(e,{$event:t})})})}}}}t.module("material.components.tabs").directive("mdTabScroll",e),e.$inject=["$parse"]}(),function(){function e(e,o,r,i,a,d,c,s,l,m){function u(){ce.selectedIndex=ce.selectedIndex||0,p(),f(),h(),m(o),d.nextTick(function(){oe(),J(),re(),ce.tabs[ce.selectedIndex]&amp;&amp;ce.tabs[ce.selectedIndex].scope.select(),pe=!0,Y()})}function p(){var e=s.$mdTabsTemplate,n=t.element(le.data);n.html(e),l(n.contents())(ce.parent),delete s.$mdTabsTemplate}function h(){t.element(r).on("resize",I),e.$on("$destroy",E)}function f(){e.$watch("$mdTabsCtrl.selectedIndex",k)}function g(e,t){var n=s.$normalize("md-"+e);t&amp;&amp;W(e,t),s.$observe(n,function(t){ce[e]=t})}function b(e,t){function n(t){ce[e]="false"!==t}var o=s.$normalize("md-"+e);t&amp;&amp;W(e,t),s.hasOwnProperty(o)&amp;&amp;n(s[o]),s.$observe(o,n)}function E(){ue=!0,t.element(r).off("resize",I)}function v(e){t.element(le.wrapper).toggleClass("md-stretch-tabs",z()),re()}function M(e){ce.shouldCenterTabs=q()}function $(e,t){e!==t&amp;&amp;d.nextTick(ce.updateInkBarStyles)}function y(e,t){e!==t&amp;&amp;(ce.maxTabWidth=G(),ce.shouldCenterTabs=q(),d.nextTick(function(){ce.maxTabWidth=G(),J(ce.selectedIndex)}))}function C(e){o[e?"removeClass":"addClass"]("md-no-tab-content")}function A(n){var o=ce.shouldCenterTabs?"":"-"+n+"px";t.element(le.paging).css(i.CSS.TRANSFORM,"translate3d("+o+", 0, 0)"),e.$broadcast("$mdTabsPaginationChanged")}function T(e,t){e!==t&amp;&amp;le.tabs[e]&amp;&amp;(J(),Z())}function k(t,n){t!==n&amp;&amp;(ce.selectedIndex=V(t),ce.lastSelectedIndex=n,ce.updateInkBarStyles(),oe(),J(t),e.$broadcast("$mdTabsChanged"),ce.tabs[n]&amp;&amp;ce.tabs[n].scope.deselect(),ce.tabs[t]&amp;&amp;ce.tabs[t].scope.select())}function w(e){var t=o[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])}function x(){x.watcher||(x.watcher=e.$watch(function(){d.nextTick(function(){x.watcher&amp;&amp;o.prop("offsetParent")&amp;&amp;(x.watcher(),x.watcher=null,I())},!1)}))}function N(e){switch(e.keyCode){case i.KEY_CODE.LEFT_ARROW:e.preventDefault(),Q(-1,!0);break;case i.KEY_CODE.RIGHT_ARROW:e.preventDefault(),Q(1,!0);break;case i.KEY_CODE.SPACE:case i.KEY_CODE.ENTER:e.preventDefault(),se||(ce.selectedIndex=ce.focusIndex)}ce.lastClick=!1}function _(e){se||(ce.focusIndex=ce.selectedIndex=e),ce.lastClick=!0,d.nextTick(function(){ce.tabs[e].element.triggerHandler("click")},!1)}function H(e){ce.shouldPaginate&amp;&amp;(e.preventDefault(),ce.offsetLeft=ae(ce.offsetLeft-e.wheelDelta))}function S(){var e,t,n=le.canvas.clientWidth,o=n+ce.offsetLeft;for(e=0;e&lt;le.tabs.length&amp;&amp;(t=le.tabs[e],!(t.offsetLeft+t.offsetWidth&gt;o));e++);ce.offsetLeft=ae(t.offsetLeft)}function D(){var e,t;for(e=0;e&lt;le.tabs.length&amp;&amp;(t=le.tabs[e],!(t.offsetLeft+t.offsetWidth&gt;=ce.offsetLeft));e++);ce.offsetLeft=ae(t.offsetLeft+t.offsetWidth-le.canvas.clientWidth)}function I(){ce.lastSelectedIndex=ce.selectedIndex,ce.offsetLeft=ae(ce.offsetLeft),d.nextTick(function(){ce.updateInkBarStyles(),Y()})}function O(e){t.element(le.inkBar).toggleClass("ng-hide",e)}function R(e){o.toggleClass("md-dynamic-height",e)}function L(e){if(!ue){var t=ce.selectedIndex,n=ce.tabs.splice(e.getIndex(),1)[0];ne(),ce.selectedIndex===t&amp;&amp;(n.scope.deselect(),ce.tabs[ce.selectedIndex]&amp;&amp;ce.tabs[ce.selectedIndex].scope.select()),d.nextTick(function(){Y(),ce.offsetLeft=ae(ce.offsetLeft)})}}function P(e,n){var o=pe,r={getIndex:function(){return ce.tabs.indexOf(i)},isActive:function(){return this.getIndex()===ce.selectedIndex},isLeft:function(){return this.getIndex()&lt;ce.selectedIndex},isRight:function(){return this.getIndex()&gt;ce.selectedIndex},shouldRender:function(){return!ce.noDisconnect||this.isActive()},hasFocus:function(){return!ce.lastClick&amp;&amp;ce.hasFocus&amp;&amp;this.getIndex()===ce.focusIndex},id:d.nextUid()},i=t.extend(r,e);return t.isDefined(n)?ce.tabs.splice(n,0,i):ce.tabs.push(i),ee(),te(),d.nextTick(function(){Y(),o&amp;&amp;ce.autoselect&amp;&amp;d.nextTick(function(){d.nextTick(function(){_(ce.tabs.indexOf(i))})})}),i}function F(){var e={};return e.wrapper=o[0].getElementsByTagName("md-tabs-wrapper")[0],e.data=o[0].getElementsByTagName("md-tab-data")[0],e.canvas=e.wrapper.getElementsByTagName("md-tabs-canvas")[0],e.paging=e.canvas.getElementsByTagName("md-pagination-wrapper")[0],e.tabs=e.paging.getElementsByTagName("md-tab-item"),e.dummies=e.canvas.getElementsByTagName("md-dummy-tab"),e.inkBar=e.paging.getElementsByTagName("md-ink-bar")[0],e.contentsWrapper=o[0].getElementsByTagName("md-tabs-content-wrapper")[0],e.contents=e.contentsWrapper.getElementsByTagName("md-tab-content"),e}function B(){return ce.offsetLeft&gt;0}function U(){var e=le.tabs[le.tabs.length-1];return e&amp;&amp;e.offsetLeft+e.offsetWidth&gt;le.canvas.clientWidth+ce.offsetLeft}function z(){switch(ce.stretchTabs){case"always":return!0;case"never":return!1;default:return!ce.shouldPaginate&amp;&amp;r.matchMedia("(max-width: 600px)").matches}}function q(){return ce.centerTabs&amp;&amp;!ce.shouldPaginate}function j(){if(ce.noPagination||!pe)return!1;var e=o.prop("clientWidth");return t.forEach(F().dummies,function(t){e-=t.offsetWidth}),0&gt;e}function V(e){if(-1===e)return-1;var t,n,o=Math.max(ce.tabs.length-e,e);for(t=0;o&gt;=t;t++){if(n=ce.tabs[e+t],n&amp;&amp;n.scope.disabled!==!0)return n.getIndex();if(n=ce.tabs[e-t],n&amp;&amp;n.scope.disabled!==!0)return n.getIndex()}return e}function W(e,t,n){Object.defineProperty(ce,e,{get:function(){return n},set:function(e){var o=n;n=e,t&amp;&amp;t(e,o)}})}function Y(){z()||K(),ce.maxTabWidth=G(),ce.shouldPaginate=j()}function K(){var e=1;t.forEach(F().dummies,function(t){e+=Math.ceil(t.offsetWidth)}),t.element(le.paging).css("width",e+"px")}function G(){return o.prop("clientWidth")}function X(){var e=ce.tabs[ce.selectedIndex],t=ce.tabs[ce.focusIndex];ce.tabs=ce.tabs.sort(function(e,t){return e.index-t.index}),ce.selectedIndex=ce.tabs.indexOf(e),ce.focusIndex=ce.tabs.indexOf(t)}function Q(e,t){var n,o=t?"focusIndex":"selectedIndex",r=ce[o];for(n=r+e;ce.tabs[n]&amp;&amp;ce.tabs[n].scope.disabled;n+=e);ce.tabs[n]&amp;&amp;(ce[o]=n)}function Z(){F().dummies[ce.focusIndex].focus()}function J(e){if(null==e&amp;&amp;(e=ce.focusIndex),le.tabs[e]&amp;&amp;!ce.shouldCenterTabs){var t=le.tabs[e],n=t.offsetLeft,o=t.offsetWidth+n;ce.offsetLeft=Math.max(ce.offsetLeft,ae(o-le.canvas.clientWidth+64)),ce.offsetLeft=Math.min(ce.offsetLeft,ae(n))}}function ee(){me.forEach(function(e){d.nextTick(e)}),me=[]}function te(){var e=!1;t.forEach(ce.tabs,function(t){t.template&amp;&amp;(e=!0)}),ce.hasContent=e}function ne(){ce.selectedIndex=V(ce.selectedIndex),ce.focusIndex=V(ce.focusIndex)}function oe(){if(!ce.dynamicHeight)return o.css("height","");if(!ce.tabs.length)return me.push(oe);var e=le.contents[ce.selectedIndex],t=e?e.offsetHeight:0,r=le.wrapper.offsetHeight,i=t+r,a=o.prop("offsetHeight");"bottom"===o.attr("md-align-tabs")&amp;&amp;(a-=r,i-=r,o.attr("md-border-bottom")!==n&amp;&amp;++a),se=!0;var s={height:a+"px"},l={height:i+"px"};o.css(s),c(o,{from:s,to:l,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){o.css({transition:"none",height:""}),d.nextTick(function(){o.css("transition","")}),se=!1})}function re(){if(!le.tabs[ce.selectedIndex])return void t.element(le.inkBar).css({left:"auto",right:"auto"});if(!ce.tabs.length)return me.push(ce.updateInkBarStyles);if(!o.prop("offsetParent"))return x();var e,n=ce.selectedIndex,r=le.paging.offsetWidth,i=le.tabs[n],a=i.offsetLeft,c=r-a-i.offsetWidth;ce.shouldCenterTabs&amp;&amp;(e=Array.prototype.slice.call(le.tabs).reduce(function(e,t){return e+t.offsetWidth},0),r&gt;e&amp;&amp;d.nextTick(re,!1)),ie(),t.element(le.inkBar).css({left:a+"px",right:c+"px"})}function ie(){var e=ce.selectedIndex,n=ce.lastSelectedIndex,o=t.element(le.inkBar);t.isNumber(n)&amp;&amp;o.toggleClass("md-left",n&gt;e).toggleClass("md-right",e&gt;n)}function ae(e){if(!le.tabs.length||!ce.shouldPaginate)return 0;var t=le.tabs[le.tabs.length-1],n=t.offsetLeft+t.offsetWidth;return e=Math.max(0,e),e=Math.min(n-le.canvas.clientWidth,e)}function de(e,n){var o={colorElement:t.element(le.inkBar)};a.attach(e,n,o)}var ce=this,se=!1,le=F(),me=[],ue=!1,pe=!1;g("stretchTabs",v),W("focusIndex",T,ce.selectedIndex||0),W("offsetLeft",A,0),W("hasContent",C,!1),W("maxTabWidth",$,G()),W("shouldPaginate",y,!1),b("noInkBar",O),b("dynamicHeight",R),b("noPagination"),b("swipeContent"),b("noDisconnect"),b("autoselect"),b("centerTabs",M,!1),b("enableDisconnect"),ce.scope=e,ce.parent=e.$parent,ce.tabs=[],ce.lastSelectedIndex=null,ce.hasFocus=!1,ce.lastClick=!0,ce.shouldCenterTabs=q(),ce.updatePagination=d.debounce(Y,100),ce.redirectFocus=Z,ce.attachRipple=de,ce.insertTab=P,ce.removeTab=L,ce.select=_,ce.scroll=H,ce.nextPage=S,ce.previousPage=D,ce.keydown=N,ce.canPageForward=U,ce.canPageBack=B,ce.refreshIndex=ne,ce.incrementIndex=Q,ce.getTabElementIndex=w,ce.updateInkBarStyles=d.debounce(re,100),ce.updateTabOrder=d.debounce(X,100),u()}t.module("material.components.tabs").controller("MdTabsController",e),e.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming"]}(),function(){function e(){return{scope:{selectedIndex:"=?mdSelected"},template:function(e,t){return t.$mdTabsTemplate=e.html(),'&lt;md-tabs-wrapper&gt; &lt;md-tab-data&gt;&lt;/md-tab-data&gt; &lt;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()"&gt; &lt;md-icon md-svg-icon="md-tabs-arrow"&gt;&lt;/md-icon&gt; &lt;/md-prev-button&gt; &lt;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()"&gt; &lt;md-icon md-svg-icon="md-tabs-arrow"&gt;&lt;/md-icon&gt; &lt;/md-next-button&gt; &lt;md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" aria-activedescendant="tab-item-{{$mdTabsCtrl.tabs[$mdTabsCtrl.focusIndex].id}}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)" role="tablist"&gt; &lt;md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)"&gt; &lt;md-tab-item tabindex="-1" class="md-tab" style="max-width: {{ $mdTabsCtrl.maxTabWidth + \'px\' }}" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" aria-controls="tab-content-{{::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-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"&gt;&lt;/md-tab-item&gt; &lt;md-ink-bar&gt;&lt;/md-ink-bar&gt; &lt;/md-pagination-wrapper&gt; &lt;div class="md-visually-hidden md-dummy-wrapper"&gt; &lt;md-dummy-tab class="md-tab" tabindex="-1" id="tab-item-{{::tab.id}}" role="tab" aria-controls="tab-content-{{::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"&gt;&lt;/md-dummy-tab&gt; &lt;/div&gt; &lt;/md-tabs-canvas&gt; &lt;/md-tabs-wrapper&gt; &lt;md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent &amp;&amp; $mdTabsCtrl.selectedIndex &gt;= 0"&gt; &lt;md-tab-content id="tab-content-{{::tab.id}}" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent &amp;&amp; $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent &amp;&amp; $mdTabsCtrl.incrementIndex(-1)" ng-if="$mdTabsCtrl.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 }"&gt; &lt;div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"&gt;&lt;/div&gt; &lt;/md-tab-content&gt; &lt;/md-tabs-content-wrapper&gt;'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}t.module("material.components.tabs").directive("mdTabs",e)}(),function(){function e(e,t){function n(n,o,r,i){function a(){n.$watch("connected",function(e){e===!1?d():c()}),n.$on("$destroy",c)}function d(){i.enableDisconnect&amp;&amp;t.disconnectScope(s)}function c(){i.enableDisconnect&amp;&amp;t.reconnectScope(s)}if(i){var s=i.enableDisconnect?n.compileScope.$new():n.compileScope;return o.html(n.template),e(o.contents())(s),o.on("DOMSubtreeModified",function(){i.updatePagination(),i.updateInkBarStyles()}),t.nextTick(a)}}return{restrict:"A",link:n,scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}t.module("material.components.tabs").directive("mdTabsTemplate",e),e.$inject=["$compile","$mdUtil"]}(),function(){t.module("material.core").constant("$MD_THEME_CSS","md-autocomplete.md-THEME_NAME-theme {  background: '{{background-50}}'; }  md-autocomplete.md-THEME_NAME-theme[disabled] {    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-50}}'; }  .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:hover, .md-autocomplete-suggestions-container.md-THEME_NAME-theme li.selected {      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}}'; }  md-bottom-sheet.md-THEME_NAME-theme .md-subheader {    color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme:not([disabled]):hover,.md-button.md-THEME_NAME-theme:not([disabled]):hover {  background-color: '{{background-500-0.2}}'; }a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]).md-focused {  background-color: '{{background-500-0.2}}'; }a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover,.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover {  background-color: transparent; }a.md-button.md-THEME_NAME-theme.md-fab,.md-button.md-THEME_NAME-theme.md-fab {  background-color: '{{accent-color}}';  color: '{{accent-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-fab md-icon,  .md-button.md-THEME_NAME-theme.md-fab md-icon {    color: '{{accent-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover {    background-color: '{{accent-color}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused {    background-color: '{{accent-A700}}'; }a.md-button.md-THEME_NAME-theme.md-primary,.md-button.md-THEME_NAME-theme.md-primary {  color: '{{primary-color}}'; }  a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab,  .md-button.md-THEME_NAME-theme.md-primary.md-raised,  .md-button.md-THEME_NAME-theme.md-primary.md-fab {    color: '{{primary-contrast}}';    background-color: '{{primary-color}}'; }    a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.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,    .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon {      color: '{{primary-contrast}}'; }    a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.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]):hover,    .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover {      background-color: '{{primary-color}}'; }    a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused {      background-color: '{{primary-600}}'; }  a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon,  .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon {    color: '{{primary-color}}'; }a.md-button.md-THEME_NAME-theme.md-fab,.md-button.md-THEME_NAME-theme.md-fab {  background-color: '{{accent-color}}';  color: '{{accent-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon {    color: '{{accent-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover {    background-color: '{{accent-color}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused {    background-color: '{{accent-A700}}'; }a.md-button.md-THEME_NAME-theme.md-raised,.md-button.md-THEME_NAME-theme.md-raised {  color: '{{background-900}}';  background-color: '{{background-50}}'; }  a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon,  .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon {    color: '{{background-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover,  .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover {    background-color: '{{background-50}}'; }  a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused,  .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused {    background-color: '{{background-200}}'; }a.md-button.md-THEME_NAME-theme.md-warn,.md-button.md-THEME_NAME-theme.md-warn {  color: '{{warn-color}}'; }  a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab,  .md-button.md-THEME_NAME-theme.md-warn.md-raised,  .md-button.md-THEME_NAME-theme.md-warn.md-fab {    color: '{{warn-contrast}}';    background-color: '{{warn-color}}'; }    a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.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,    .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon {      color: '{{warn-contrast}}'; }    a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.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]):hover,    .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover {      background-color: '{{warn-color}}'; }    a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused {      background-color: '{{warn-700}}'; }  a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon,  .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon {    color: '{{warn-color}}'; }a.md-button.md-THEME_NAME-theme.md-accent,.md-button.md-THEME_NAME-theme.md-accent {  color: '{{accent-color}}'; }  a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab,  .md-button.md-THEME_NAME-theme.md-accent.md-raised,  .md-button.md-THEME_NAME-theme.md-accent.md-fab {    color: '{{accent-contrast}}';    background-color: '{{accent-color}}'; }    a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.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,    .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon {      color: '{{accent-contrast}}'; }    a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.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]):hover,    .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover {      background-color: '{{accent-color}}'; }    a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused {      background-color: '{{accent-700}}'; }  a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon,  .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon {    color: '{{accent-color}}'; }a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled] {  color: '{{foreground-3}}' !important;  cursor: default; }  a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,  .md-button.md-THEME_NAME-theme[disabled] md-icon,  .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,  .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,  .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,  .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon {    color: '{{foreground-3}}'; }a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.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-fab[disabled] {  background-color: '{{foreground-4}}'; }a.md-button.md-THEME_NAME-theme[disabled],.md-button.md-THEME_NAME-theme[disabled] {  background-color: transparent; }md-card.md-THEME_NAME-theme {  background-color: '{{background-color}}';  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 {    color: '{{foreground-2}}'; }  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-600}}'; }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 .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 .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-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 .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] .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-label {  color: '{{foreground-3}}'; }md-chips.md-THEME_NAME-theme .md-chips {  box-shadow: 0 1px '{{background-300}}'; }  md-chips.md-THEME_NAME-theme .md-chips.md-focused {    box-shadow: 0 2px '{{primary-color}}'; }md-chips.md-THEME_NAME-theme .md-chip {  background: '{{background-300}}';  color: '{{background-800}}'; }  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-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-color}}'; }/** Theme styles for mdCalendar. */.md-calendar.md-THEME_NAME-theme {  color: '{{foreground-1}}'; }  .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-hue-1}}';  color: '{{foreground-1}}'; }.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-THEME_NAME-theme .md-calendar-date.md-focus .md-calendar-date-selection-indicator {  background: '{{background-hue-1}}'; }.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover {  background: '{{background-hue-1}}'; }.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: '{{foreground-3}}'; }/** Theme styles for mdDatepicker. */md-datepicker.md-THEME_NAME-theme {  background: '{{background-color}}'; }.md-THEME_NAME-theme .md-datepicker-input {  color: '{{background-contrast}}';  background: '{{background-color}}'; }  .md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder, .md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder, .md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder, .md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder {    color: \"{{foreground-3}}\"; }.md-THEME_NAME-theme .md-datepicker-input-container {  border-bottom-color: '{{background-300}}'; }  .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused {    border-bottom-color: '{{primary-500}}'; }  .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid {    border-bottom-color: '{{warn-A700}}'; }.md-THEME_NAME-theme .md-datepicker-calendar-pane {  border-color: '{{background-300}}'; }.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle {  border-top-color: '{{foreground-3}}'; }.md-THEME_NAME-theme .md-datepicker-triangle-button:hover .md-datepicker-expand-triangle {  border-top-color: '{{foreground-2}}'; }.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon {  fill: '{{primary-500}}'; }.md-THEME_NAME-theme .md-datepicker-calendar,.md-THEME_NAME-theme .md-datepicker-input-mask-opaque {  background: '{{background-color}}'; }md-dialog.md-THEME_NAME-theme {  border-radius: 4px;  background-color: '{{background-color}}'; }  md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions, md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions {    border-top-color: '{{foreground-4}}'; }md-divider.md-THEME_NAME-theme {  border-top-color: '{{foreground-4}}'; }.layout-row &gt; 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}}';  text-shadow: '{{foreground-shadow}}'; }  md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder {    color: \"{{foreground-3}}\"; }md-input-container.md-THEME_NAME-theme &gt; md-icon {  color: '{{foreground-1}}'; }md-input-container.md-THEME_NAME-theme label,md-input-container.md-THEME_NAME-theme .md-placeholder {  text-shadow: '{{foreground-shadow}}';  color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme ng-messages :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [ng-messages] :not(.md-char-counter),md-input-container.md-THEME_NAME-theme ng-message :not(.md-char-counter), md-input-container.md-THEME_NAME-theme data-ng-message :not(.md-char-counter), md-input-container.md-THEME_NAME-theme x-ng-message :not(.md-char-counter),md-input-container.md-THEME_NAME-theme [ng-message] :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [data-ng-message] :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [x-ng-message] :not(.md-char-counter),md-input-container.md-THEME_NAME-theme [ng-message-exp] :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [data-ng-message-exp] :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [x-ng-message-exp] :not(.md-char-counter) {  color: '{{warn-A700}}'; }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 {  border-color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label {  color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon {  color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input {  border-color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label {  color: '{{accent-500}}'; }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 {  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-input-focused label {  color: '{{warn-A700}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message,md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message],md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message-exp], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message-exp], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message-exp],md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter {  color: '{{warn-A700}}'; }md-input-container.md-THEME_NAME-theme .md-input[disabled],md-input-container.md-THEME_NAME-theme .md-input [disabled] {  border-bottom-color: transparent;  color: '{{foreground-3}}';  background-image: linear-gradient(to right, \"{{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 &gt; .md-avatar-icon {  background-color: '{{foreground-3}}';  color: '{{background-color}}'; }md-list.md-THEME_NAME-theme md-list-item &gt; md-icon {  color: '{{foreground-2}}'; }  md-list.md-THEME_NAME-theme md-list-item &gt; md-icon.md-highlight {    color: '{{primary-color}}'; }    md-list.md-THEME_NAME-theme md-list-item &gt; md-icon.md-highlight.md-accent {      color: '{{accent-color}}'; }md-menu-content.md-THEME_NAME-theme {  background-color: '{{background-color}}'; }  md-menu-content.md-THEME_NAME-theme md-menu-divider {    background-color: '{{foreground-4}}'; }md-menu-bar.md-THEME_NAME-theme &gt; button.md-button {  color: '{{foreground-2}}';  border-radius: 2px; }md-menu-bar.md-THEME_NAME-theme md-menu.md-open &gt; button, md-menu-bar.md-THEME_NAME-theme md-menu &gt; button:focus {  outline: none;  background: '{{background-200}}'; }md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover &gt; button {  background-color: '{{ background-500-0.2}}'; }md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus {  background: transparent; }md-menu-content.md-THEME_NAME-theme .md-menu &gt; .md-button:after {  color: '{{foreground-2}}'; }md-menu-content.md-THEME_NAME-theme .md-menu.md-open &gt; .md-button {  background-color: '{{ background-500-0.2}}'; }md-toolbar.md-THEME_NAME-theme.md-menu-toolbar {  background-color: '{{background-color}}';  color: '{{foreground-1}}'; }  md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler {    background-color: '{{primary-color}}';    color: '{{primary-contrast}}'; }    md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon {      color: '{{primary-contrast}}'; }md-progress-circular.md-THEME_NAME-theme {  background-color: transparent; }  md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap {    border-top-color: '{{primary-color}}';    border-bottom-color: '{{primary-color}}'; }  md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {    border-top-color: '{{primary-color}}'; }  md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {    border-right-color: '{{primary-color}}'; }  md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle {    border-left-color: '{{primary-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap {    border-top-color: '{{warn-color}}';    border-bottom-color: '{{warn-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {    border-top-color: '{{warn-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {    border-right-color: '{{warn-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle {    border-left-color: '{{warn-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap {    border-top-color: '{{accent-color}}';    border-bottom-color: '{{accent-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {    border-top-color: '{{accent-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {    border-right-color: '{{accent-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle {    border-left-color: '{{accent-color}}'; }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-600}}'; }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,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 {  background-color: '{{primary-color-0.87}}'; }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,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 {  border-color: '{{primary-color-0.87}}'; }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,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 {  color: '{{primary-color-0.87}}'; }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,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 {  color: '{{primary-600}}'; }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,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 {  background-color: '{{warn-color-0.87}}'; }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,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 {  border-color: '{{warn-color-0.87}}'; }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,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 {  color: '{{warn-color-0.87}}'; }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,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 {  color: '{{warn-600}}'; }md-radio-group.md-THEME_NAME-theme[disabled],md-radio-button.md-THEME_NAME-theme[disabled] {  color: '{{foreground-3}}'; }  md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,  md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off {    border-color: '{{foreground-3}}'; }  md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on,  md-radio-button.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-primary .md-checked:not([disabled]) .md-ink-ripple, md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .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-primary .md-checked .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before {  background-color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before {  background-color: '{{warn-color-0.26}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-value {  border-bottom-color: transparent;  background-image: linear-gradient(to right, \"{{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.ng-invalid.ng-dirty .md-select-value {  color: '{{warn-A700}}' !important;  border-bottom-color: '{{warn-A700}}' !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-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-value {  color: '{{foreground-3}}'; }  md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder {    color: '{{foreground-3}}'; }md-select-menu.md-THEME_NAME-theme md-option[disabled] {  color: '{{foreground-3}}'; }md-select-menu.md-THEME_NAME-theme md-optgroup {  color: '{{foreground-2}}'; }  md-select-menu.md-THEME_NAME-theme md-optgroup md-option {    color: '{{foreground-1}}'; }md-select-menu.md-THEME_NAME-theme md-option[selected] {  color: '{{primary-500}}'; }  md-select-menu.md-THEME_NAME-theme md-option[selected]:focus {    color: '{{primary-600}}'; }  md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent {    color: '{{accent-500}}'; }    md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus {      color: '{{accent-600}}'; }md-select-menu.md-THEME_NAME-theme md-option:focus:not([disabled]):not([selected]) {  background: '{{background-200}}'; }md-sidenav.md-THEME_NAME-theme {  background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track {  background-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme .md-track-ticks {  background-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-focus-thumb {  background-color: '{{foreground-2}}'; }md-slider.md-THEME_NAME-theme .md-focus-ring {  background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-disabled-thumb {  border-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme.md-min .md-thumb:after {  background-color: '{{background-color}}'; }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-thumb-text {  color: '{{accent-contrast}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring {  background-color: '{{warn-color}}'; }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-thumb-text {  color: '{{warn-contrast}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring {  background-color: '{{primary-color}}'; }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-thumb-text {  color: '{{primary-contrast}}'; }md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after {  border-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after {  background-color: '{{foreground-3}}'; }.md-subheader.md-THEME_NAME-theme {  color: '{{ foreground-2-0.23 }}';  background-color: '{{background-color}}'; }  .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-100}}'; }md-tabs.md-THEME_NAME-theme.md-accent &gt; md-tabs-wrapper {  background-color: '{{accent-color}}'; }  md-tabs.md-THEME_NAME-theme.md-accent &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]) {    color: '{{accent-100}}'; }    md-tabs.md-THEME_NAME-theme.md-accent &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active md-icon, md-tabs.md-THEME_NAME-theme.md-accent &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused, md-tabs.md-THEME_NAME-theme.md-accent &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused md-icon {      color: '{{accent-contrast}}'; }    md-tabs.md-THEME_NAME-theme.md-accent &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused {      background: '{{accent-contrast-0.1}}'; }  md-tabs.md-THEME_NAME-theme.md-accent &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-ink-bar {    color: '{{primary-600-1}}';    background: '{{primary-600-1}}'; }md-tabs.md-THEME_NAME-theme.md-primary &gt; md-tabs-wrapper {  background-color: '{{primary-color}}'; }  md-tabs.md-THEME_NAME-theme.md-primary &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]) {    color: '{{primary-100}}'; }    md-tabs.md-THEME_NAME-theme.md-primary &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active md-icon, md-tabs.md-THEME_NAME-theme.md-primary &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused, md-tabs.md-THEME_NAME-theme.md-primary &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused md-icon {      color: '{{primary-contrast}}'; }    md-tabs.md-THEME_NAME-theme.md-primary &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused {      background: '{{primary-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-warn &gt; md-tabs-wrapper {  background-color: '{{warn-color}}'; }  md-tabs.md-THEME_NAME-theme.md-warn &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]) {    color: '{{warn-100}}'; }    md-tabs.md-THEME_NAME-theme.md-warn &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active md-icon, md-tabs.md-THEME_NAME-theme.md-warn &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused, md-tabs.md-THEME_NAME-theme.md-warn &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused md-icon {      color: '{{warn-contrast}}'; }    md-tabs.md-THEME_NAME-theme.md-warn &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused {      background: '{{warn-contrast-0.1}}'; }md-toolbar &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper {  background-color: '{{primary-color}}'; }  md-toolbar &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]) {    color: '{{primary-100}}'; }    md-toolbar &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active, md-toolbar &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active md-icon, md-toolbar &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused, md-toolbar &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused md-icon {      color: '{{primary-contrast}}'; }    md-toolbar &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused {      background: '{{primary-contrast-0.1}}'; }md-toolbar.md-accent &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper {  background-color: '{{accent-color}}'; }  md-toolbar.md-accent &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]) {    color: '{{accent-100}}'; }    md-toolbar.md-accent &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active, md-toolbar.md-accent &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active md-icon, md-toolbar.md-accent &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused, md-toolbar.md-accent &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused md-icon {      color: '{{accent-contrast}}'; }    md-toolbar.md-accent &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused {      background: '{{accent-contrast-0.1}}'; }  md-toolbar.md-accent &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-ink-bar {    color: '{{primary-600-1}}';    background: '{{primary-600-1}}'; }md-toolbar.md-warn &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper {  background-color: '{{warn-color}}'; }  md-toolbar.md-warn &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]) {    color: '{{warn-100}}'; }    md-toolbar.md-warn &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active, md-toolbar.md-warn &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-active md-icon, md-toolbar.md-warn &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused, md-toolbar.md-warn &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; md-tab-item:not([disabled]).md-focused md-icon {      color: '{{warn-contrast}}'; }    md-toolbar.md-warn &gt; md-tabs.md-THEME_NAME-theme &gt; md-tabs-wrapper &gt; md-tabs-canvas &gt; md-pagination-wrapper &gt; 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: '{{primary-A200}}'; }      md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-accent {        color: '{{accent-A200}}'; }      md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn {        color: '{{warn-A200}}'; }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}}'; }  md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button:not(.md-raised) {    color: '{{primary-contrast}}'; }  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-warn {    background-color: '{{warn-color}}';    color: '{{warn-contrast}}'; }md-tooltip.md-THEME_NAME-theme {  color: '{{background-A100}}'; }  md-tooltip.md-THEME_NAME-theme .md-content {    background-color: '{{foreground-2}}'; }");
}()}(window,window.angular),window.ngMaterial={version:{full:"1.0.0-rc7"}};;!function(e,o,t){"use strict";function n(e,t,n){var i=n.baseHref(),r=e[0];return function(e,n,u){var c,s;u=u||{},s=u.expires,c=o.isDefined(u.path)?u.path:i,o.isUndefined(n)&amp;&amp;(s="Thu, 01 Jan 1970 00:00:00 GMT",n=""),o.isString(s)&amp;&amp;(s=new Date(s)),n=encodeURIComponent(e)+"="+encodeURIComponent(n),n=n+(c?";path="+c:"")+(u.domain?";domain="+u.domain:""),n+=s?";expires="+s.toUTCString():"",n+=u.secure?";secure":"",u=n.length+1,4096&lt;u&amp;&amp;t.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+u+" &gt; 4096 bytes)!"),r.cookie=n}}o.module("ngCookies",["ng"]).provider("$cookies",[function(){var e=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,i){return{get:function(e){return n()[e]},getObject:function(e){return(e=this.get(e))?o.fromJson(e):e},getAll:function(){return n()},put:function(t,n,r){i(t,n,r?o.extend({},e,r):e)},putObject:function(e,t,n){this.put(e,o.toJson(t),n)},remove:function(n,r){i(n,t,r?o.extend({},e,r):e)}}}]}]),o.module("ngCookies").factory("$cookieStore",["$cookies",function(e){return{get:function(o){return e.getObject(o)},put:function(o,t){e.putObject(o,t)},remove:function(o){e.remove(o)}}}]),n.$inject=["$document","$log","$browser"],o.module("ngCookies").provider("$$cookieWriter",function(){this.$get=n})}(window,window.angular);;"use strict";angular.module("ngLocale",[],["$provide",function(e){var a="one",i="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["a. m.","p. m."],DAY:["domingo","lunes","martes","miÃ©rcoles","jueves","viernes","sÃ¡bado"],ERANAMES:["antes de Cristo","despuÃ©s de Cristo"],ERAS:["a. C.","d. C."],FIRSTDAYOFWEEK:0,MONTH:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],SHORTDAY:["dom.","lun.","mar.","miÃ©.","jue.","vie.","sÃ¡b."],SHORTMONTH:["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],WEEKENDRANGE:[5,6],fullDate:"EEEE, d 'de' MMMM 'de' y",longDate:"d 'de' MMMM 'de' y",medium:"d MMM y H:mm:ss",mediumDate:"d MMM y",mediumTime:"H:mm:ss",short:"d/M/yy H:mm",shortDate:"d/M/yy",shortTime:"H:mm"},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:"Â&nbsp;Â¤",posPre:"",posSuf:"Â&nbsp;Â¤"}]},id:"es",pluralCat:function(e,o){return 1==e?a:i}})}]),String.prototype.startWith=function(e){return 0===this.indexOf(e)};var Config=function(){};Config.checkEmail=function(e){return/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)},Config.cargado=!1,Config.dominio=document.location.host.split("."),Config.dominio.length&lt;3&amp;&amp;Config.dominio.unshift("www"),"10"!==Config.dominio[0]&amp;&amp;"192"!==Config.dominio[0]&amp;&amp;"127"!==Config.dominio[0]&amp;&amp;"localhost"!==Config.dominio[0]&amp;&amp;"jose"!==Config.dominio[0]&amp;&amp;"jose"!==Config.dominio[0]&amp;&amp;(Config.dominio[0]=""),Config.search_engine=1,Config.search_engine_base="https://services.meteored.com/",Config.dominio=Config.dominio.join(".").split(":")[0],Config.path=document.location.pathname+"",Config.path.startWith("/hoteles/")?Config.path="/hoteles":Config.path.startWith("/hotelesgit/")?Config.path="/hotelesgit":Config.path="",Config.peticiones=document.location.host.split("."),Config.peticiones.length&lt;3&amp;&amp;Config.peticiones.unshift("www"),"10"!==Config.peticiones[0]&amp;&amp;"192"!==Config.peticiones[0]&amp;&amp;"127"!==Config.peticiones[0]&amp;&amp;"localConfig.peticiones"!==Config.peticiones[0]&amp;&amp;"www"!==Config.peticiones[0]&amp;&amp;"jose"!==Config.peticiones[0]&amp;&amp;(Config.peticiones[0]=Config.peticiones[0]),Config.host=Config.peticiones.join(".").split("@").pop(),Config.base=window.location.protocol+"//"+Config.host+Config.path,Config.base_nsec="http://"+Config.host+Config.path,Config.base_sec="https://"+Config.host+Config.path,Config.peticiones=Config.base+"/peticiones",Config.peticiones_sec=Config.base_sec+"/peticiones",Config.pantalla=document.documentElement.clientWidth,Config.imprimirCapa=function(e){var o=document.getElementById(e),a=window.open(" ","popimpr");a.document.write(o.innerHTML),a.document.close(),a.print(),a.close()},Config.restarDias=function(e,o){return Math.round((o.getTime()-e.getTime())/864e5)};var LocalStorage=function(){};LocalStorage.checked=!1,LocalStorage.events=[],LocalStorage.habilitado=function(){return"localStorage"in window&amp;&amp;null!==window.localStorage},LocalStorage.get=function(o,a){if(!LocalStorage.habilitado())return null;var e=localStorage.getItem(o+"_"+a);if(null===e)return null;e=JSON.parse(e);try{var i=new Date;if(null===e.expiracion||0&lt;e.expiracion&amp;&amp;e.expiracion&lt;i.getTime()/1e3)return localStorage.removeItem(o+"_"+a),null}catch(e){return localStorage.removeItem(o+"_"+a),null}return void 0!==e.valor?e.valor:null},LocalStorage.set=function(e,o,a,i){if(LocalStorage.habilitado()){var t={tipo:e,key:o,expiracion:i=i||0,valor:a};localStorage.setItem(e+"_"+o,JSON.stringify(t))}},LocalStorage.del=function(e,o){if(LocalStorage.habilitado())if(String.prototype.startsWith||(String.prototype.startsWith=function(e,o){return this.substr(o||0,e.length)===e}),""!==o)localStorage.removeItem(e+"_"+o);else for(var a=0,i=localStorage.length;a&lt;i;a++){var t=localStorage.key(a);t.startsWith(e)&amp;&amp;localStorage.removeItem(t)}},LocalStorage.delItem=function(e,o){if(LocalStorage.habilitado())if(String.prototype.startsWith||(String.prototype.startsWith=function(e,o){return this.substr(o||0,e.length)===e}),""!==o)localStorage.removeItem(e+"_"+o);else for(var a=0;a&lt;localStorage.length;a++){var i=localStorage.key(a);i.startsWith(e)&amp;&amp;localStorage.removeItem(i)}},LocalStorage.clear=function(){if(LocalStorage.habilitado())for(var e=0,o=localStorage.length;e&lt;o;e++)localStorage.removeItem(localStorage.key(e))},LocalStorage.addListener=function(e,o,a){var i={key:o+"_"+a,funcion:e};LocalStorage.events.push(i)},LocalStorage.parseEvent=function(e){for(var o=LocalStorage.events.length,a=0;a&lt;o;a++)e.key===LocalStorage.events[a].key&amp;&amp;window[LocalStorage.events[a].funcion](e.newValue,e.oldValue,e.key)},LocalStorage.check=function(){if(!LocalStorage.checked&amp;&amp;(LocalStorage.checked=!0,LocalStorage.habilitado()))for(var e=0,o=localStorage.length;e&lt;o;e++){var a=localStorage.key(e),i=localStorage.getItem(a);if(null!==i)try{var t;i=JSON.parse(i),t=new Date,(null===i.expiracion||0&lt;i.expiracion&amp;&amp;i.expiracion&lt;t.getTime()/1e3)&amp;&amp;localStorage.removeItem(a)}catch(e){localStorage.removeItem(a)}}},LocalStorage.check();var SessionStorage=function(){};SessionStorage.checked=!1,SessionStorage.events=[],SessionStorage.habilitado=function(){return"sessionStorage"in window&amp;&amp;null!==window.sessionStorage},SessionStorage.get=function(o,a){if(!SessionStorage.habilitado())return null;var e=sessionStorage.getItem(o+"_"+a);if(null===e)return null;e=JSON.parse(e);try{var i=new Date;if(null===e.expiracion||0&lt;e.expiracion&amp;&amp;e.expiracion&lt;i.getTime()/1e3)return sessionStorage.removeItem(o+"_"+a),null}catch(e){return sessionStorage.removeItem(o+"_"+a),null}return e.valor},SessionStorage.set=function(e,o,a,i){if(SessionStorage.habilitado()){var t={tipo:e,key:o,expiracion:i=i||0,valor:a};sessionStorage.setItem(e+"_"+o,JSON.stringify(t))}},SessionStorage.del=function(e,o){if(SessionStorage.habilitado())if(String.prototype.startsWith||(String.prototype.startsWith=function(e,o){return this.substr(o||0,e.length)===e}),""!==o)sessionStorage.removeItem(e+"_"+o);else for(var a=0,i=sessionStorage.length;a&lt;i;a++){var t=sessionStorage.key(a);t.startsWith(e)&amp;&amp;sessionStorage.removeItem(t)}},SessionStorage.clear=function(){if(SessionStorage.habilitado())for(var e=0,o=sessionStorage.length;e&lt;o;e++)sessionStorage.removeItem(sessionStorage.key(e))},SessionStorage.addListener=function(e,o,a){var i={key:o+"_"+a,funcion:e};SessionStorage.events.push(i)},SessionStorage.parseEvent=function(e){for(var o=SessionStorage.events.length,a=0;a&lt;o;a++)e.key===SessionStorage.events[a].key&amp;&amp;window[SessionStorage.events[a].funcion](e.newValue,e.oldValue,e.key)},SessionStorage.check=function(){if(!SessionStorage.checked&amp;&amp;(SessionStorage.checked=!0,SessionStorage.habilitado()))for(var e=0,o=sessionStorage.length;e&lt;o;e++){var a=sessionStorage.key(e),i=sessionStorage.getItem(a);if(null!==i)try{var t;i=JSON.parse(i),t=new Date,(null===i.expiracion||0&lt;i.expiracion&amp;&amp;i.expiracion&lt;t.getTime()/1e3)&amp;&amp;sessionStorage.removeItem(a)}catch(e){sessionStorage.removeItem(a)}}},SessionStorage.check(),window.addEventListener?window.addEventListener("storage",LocalStorage.parseEvent,!1):window.attachEvent("onstorage",LocalStorage.parseEvent);var Cookie=function(e,o){this.id=e.id,this.code=e.code,this.nombre=e.nombre,this.nombre_corto=e.nombre_corto,this.foto=e.foto,this.url=e.url,this.clas=e.clas,this.stars=e.stars,this.precio=e.precio,this.expiracion=e.expiracion,this.mostrar=!0,this.correcta=o,this.guardar=function(e){LocalStorage.set("cookie",e,this)}};Cookie.cargar=function(){var e=[],o=new Date;o=Math.round(o.getTime()/1e3);for(var a=1;a&lt;=4;a++){var i=LocalStorage.get("cookie",a);null===i||Cookie.existe(i,e)||e.push(new Cookie(i,o&lt;i.expiracion))}return 0&lt;e.length&amp;&amp;Cookie.guardar(e),Cookie.rellenar(e),e},Cookie.guardar=function(e){var o,a=Math.min(4,e.length);for(o=1;o&lt;=a;o++)e[o-1].guardar(o);for(o=a+1;o&lt;=4;o++)LocalStorage.del("cookie",o)},Cookie.existe=function(e,o){if(void 0===e.id)return!0;for(var a=o.length,i=0;i&lt;a;i++)if(e.id===o[i].id)return!0;return!1},Cookie.rellenar=function(e){for(var o=e.length;o&lt;4;o++){var a=new Cookie({id:0,code:"",nombre:"",nombre_corto:"",url:"",clas:"",precio:0},!1);a.mostrar=!1,e.push(a)}};var Reserva=function(n,e){this.id=e.id,this.localizador=e.localizador,this.fecha=e.fecha,this.hotel=e.hotel,this.nombreusu=e.nombreusu,this.apellidos=e.apellidos,this.foto=e.foto,this.telefono=e.telefono,this.nhabitaciones=e.nhabitaciones,this.npersonas=e.npersonas,this.suplemento=e.suplemento,this.regimen=e.regimen,this.tipo=e.tipo,this.moneda=e.moneda,this.mayorista=e.mayorista,this.dirUrl=e.dirUrl,this.star=e.star,this.direccion=e.direccion,this.provincia=e.provincia,this.entrada=e.entrada,this.salida=e.salida,this.precio=e.precio,this.fcancelacion=e.fcancelacion,this.pcancelacion=e.pcancelacion,this.estado=e.estado,this.descripcion=e.descripcion,this.cancelacion=e.cancelacion,this.ok=e.ok,this.cancelable=e.cancelable,this.noches=e.noches,this.comentariocliente=e.comentariocliente,this.comentarioagente=e.comentarioagente,this.xmlcomentarios=e.xmlcomentarios;var r=this;this.toJSON=function(){return{id:this.id,localizador:this.localizador,fecha:this.fecha,hotel:this.hotel,nombreusu:this.nombreusu,apellidos:this.apellidos,foto:this.foto,telefono:this.telefono,nhabitaciones:this.nhabitaciones,npersonas:this.npersonas,suplemento:this.suplemento,regimen:this.regimen,tipo:this.tipo,moneda:this.moneda,mayorista:this.mayorista,dirUrl:this.dirUrl,star:this.star,direccion:this.direccion,provincia:this.provincia,entrada:this.entrada,salida:this.salida,precio:this.precio,fcancelacion:this.fcancelacion,pcancelacion:this.pcancelacion,estado:this.estado,descripcion:this.descripcion,cancelacion:this.cancelacion,ok:this.ok,cancelable:this.cancelable,noches:this.noches,comentariocliente:this.comentariocliente,comentarioagente:this.comentarioagente,xmlcomentarios:this.xmlcomentarios}},this.verBono=function(e,a,o){o.show({controller:["$scope","$mdDialog",function(e,o){e.cerrar=function(){o.hide()},e.imprimir=function(){Config.imprimirCapa("bono_reserva")},e.enviar=function(){r.enviarBono(a)}}],templateUrl:Config.peticiones+"/user.php?tipo=21&amp;hash="+n.hash+"&amp;id="+this.id,targetEvent:e,clickOutsideToClose:!0})},this.enviarBono=function(e){var o={tipo:12,hash:n.hash,id:r.id};e.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:o}).success(function(e){0===e.status?alert("Bono enviado."):alert(e.mensaje)}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde.")})},this.cancelar=function(i,t){if(confirm("Â¿Realmente desea cancelar la reserva?")){i.enviando=!0;var e={tipo:13,hash:n.hash,id:r.id};t.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:e}).success(function(e){if(0===e.status){var o=e.gastos;if(!(0===o?confirm("La cancelacion de la Reserva no tiene gastos de cancelacion.\n Â¿Desea continuar con el proceso de cancelacion?"):confirm("Â¡Â¡Â¡Atencion!!! La cancelacion de la reserva tiene gastos de Cancelacion: "+o+" Euros.\n Â¿Desea continuar con el proceso de cancelacion?")))return void(i.enviando=!1);var a={tipo:14,hash:n.hash,id:r.id};t.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:a}).success(function(e){var o=e.gastos;0===o?alert("La reserva se ha cancelado con Ã©xito sin gastos de cancelaciÃ³n."):alert("La reserva se ha cancelado con Ã©xito con "+o+" Euros de gastos de cancelaciÃ³n."),i.enviando=!1}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),i.enviando=!1})}else alert(e.mensaje),i.enviando=!1}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde. "),i.enviando=!1})}}},Empresa=function(t,e){this.id=e.id,this.nombre=e.nombre,this.direccion=e.direccion,this.cif=e.cif,this.localidad=e.localidad,this.provincia=e.provincia,this.cp=e.cp,this.telefono=e.telefono,this.fax=e.fax,this.editando=!1,this.enviando=!1,this.cambiando=!1,this.creando=!1;var r=this;this.toJSON=function(){return{id:this.id,nombre:this.nombre,direccion:this.direccion,cif:this.cif,localidad:this.localidad,provincia:this.provincia,cp:this.cp,telefono:this.telefono,fax:this.fax}},this.editar=function(e,o,a,i){var t;t=window.mobile?"/templates_2016/movil/":"/templates_2016/pc/",r.editando=!0,r.enviando=!1,this.editando=r.editando,this.enviando=r.enviando,o.show({controller:["$scope","$mdDialog","$http",function(i,t,n){i.userState="",i.nombre=r.nombre,i.direccion=r.direccion,i.cif=r.cif,i.localidad=r.localidad,i.provincia=r.provincia,i.http=n,i.cp=r.cp,i.telefono=r.telefono,i.fax=r.fax,i.hash=r.hash,i.close=function(){r.editando=!1,t.hide()},i.guardar=function(e,o){this.editando=!1,r.nombre=i.nombre,r.direccion=i.direccion,r.cif=i.cif,r.localidad=i.localidad,r.provincia=i.provincia,r.cp=i.cp,r.telefono=i.telefono,r.fax=i.fax,r.hash=i.hash;var a={tipo:10,hash:r.hash,id:r.id,nombre:r.nombre,direccion:r.direccion,cif:r.cif,localidad:r.localidad,provincia:r.provincia,cp:r.cp,telefono:r.telefono,fax:r.fax};r.guardar(n,a,i,t)}}],controllerAs:"anadirempresa",templateUrl:Config.peticiones+t+"/usuario/anadirempresa.php",targetEvent:e,clickOutsideToClose:!0})},this.close=function(){$mdDialog.hide()},this.guardar=function(e,o,a,i){e.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:o}).success(function(e){0===e.status?(r.id=e.id,i.show({controller:"HotelesDatosUsuario",controllerAs:"user",template:'&lt;md-dialog aria-label="AlertaLogin" class="dialog_movil"&gt;&lt;md-dialog-content class="sticky-container"&gt;&lt;header class="mvl"&gt;&lt;span class="cerrar_dialog_mvl" ng-click=" user.close()"&gt;&lt;/span&gt;&lt;/header&gt;&lt;span class="cerrardialogweb" ng-click=" user.close()"&gt;&lt;/span&gt;&lt;h2 class="ng-binding"&gt;Editar empresa:&lt;/h2&gt;&lt;div class="md-dialog-content-body contenidoalertas ng-isolate-scope"&gt;&lt;p class="valido"&gt;Hemos modificado los datos de su empresa.&lt;/p&gt;&lt;/div&gt;&lt;/md-dialog-content&gt;&lt;/md-dialog&gt;',clickOutsideToClose:!0}),t.guardarDatos(),i.hide(),t.anadiendo_empresa=!1):(a.mensaje=e.mensaje,a.codigoerror=e.code),r.enviando=!1,r.cambiando=!1}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),r.enviando=!1})},this.borrar=function(a,e,i){var o={tipo:20,hash:t.hash,id:r.id,nombre:r.nombre,direccion:r.direccion,cif:r.cif,localidad:r.localidad,provincia:r.provincia,cp:r.cp,telefono:r.telefono,fax:r.fax};e.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:o}).success(function(e){if(0===e.status){for(var o=0;o&lt;t.empresas.length;o++)t.empresas[o].id==e.idempresa&amp;&amp;t.empresas.splice(o,1);t.guardarDatos(),i.show({controller:"HotelesDatosUsuario",controllerAs:"user",template:'&lt;md-dialog aria-label="AlertaLogin" class="dialog_movil"&gt;&lt;md-dialog-content class="sticky-container"&gt;&lt;header class="mvl"&gt;&lt;span class="cerrar_dialog_mvl" ng-click=" user.close()"&gt;&lt;/span&gt;&lt;/header&gt;&lt;span class="cerrardialogweb" ng-click=" user.close()"&gt;&lt;/span&gt;&lt;h2 class="ng-binding"&gt;Borrar empresa&lt;/h2&gt;&lt;div class="md-dialog-content-body contenidoalertas ng-isolate-scope"&gt;&lt;p class="valido"&gt;Su empresa ha sido borrada.&lt;/p&gt;&lt;/div&gt;&lt;/md-dialog-content&gt;&lt;/md-dialog&gt;',targetEvent:a,clickOutsideToClose:!0})}else alert(e.mensaje);r.enviando=!1}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),r.enviando=!1})}},Usuario=function(e,o){for(this.hash=e,this.nombre=o.nombre,this.apellidos=o.apellidos,this.email=o.email,this.telefono=o.telefono,this.nif=o.nif,this.pais=o.pais,this.id=o.id,this.puntos=o.puntos,this.amigos=o.amigos,this.facebook=o.facebook,this.solo_social=o.solo_social,this.empresas=[];0&lt;o.empresas.length;)this.empresas.push(new Empresa(this,o.empresas.shift()));for(this.reservas=[];0&lt;o.reservas.length;)this.reservas.push(new Reserva(this,o.reservas.shift()));this.anadiendo_empresa=!1;var s=this;this.guardarDatos=function(e){e&amp;&amp;e.put("hash",this.hash);var o,a=[],i=[];for(o=0;o&lt;this.empresas.length;o++)a.push(this.empresas[o].toJSON());for(o=0;o&lt;this.reservas.length;o++)i.push(this.reservas[o].toJSON());LocalStorage.set("user","data",{nombre:this.nombre,apellidos:this.apellidos,email:this.email,telefono:this.telefono,nif:this.nif,pais:this.pais,puntos:this.puntos,amigos:this.amigos,facebook:this.facebook,solo_social:this.solo_social,empresas:a,reservas:i,id:this.id})},this.actualizarDatos=function(e,o,a,i){var t={tipo:7,hash:this.hash,nombre:this.nombre,apellidos:this.apellidos,telefono:this.telefono,nif:this.nif,pais:this.pais};e.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:t}).success(function(e){0===e.status?(s.guardarDatos(),o()):a(e.mensaje,e.code)}).error(function(){a("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde.")})},this.actualizarPassword=function(e,o,a,i,t,n){var r={tipo:8,hash:this.hash,actual:e,nueva:o};a.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:r}).success(function(e){0===e.status?s.guardarDatos():t(e.mensaje,e.code),i()}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),i()})},this.invitarAmigo=function(e,o,a,i){o.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:9,hash:this.hash,email:e}}).success(function(e){0===e.status?a():i(e.mensaje)}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),i()})},this.anadirEmpresa=function(e,o,a,i){var t;t=window.mobile?"/templates_2016/movil/":"/templates_2016/pc/",o.show({controller:["$scope","$mdDialog","$http",function(i,t,n){i.userState="",i.nombre="",i.direccion="",i.cif="",i.localidad="",i.provincia="",i.http=n,i.cp="",i.telefono="",i.fax="",i.close=function(){s.editando=!1,t.hide()},i.guardar=function(e,o){s.enviando=!0;var a={tipo:10,hash:s.hash,id:0,nombre:i.nombre,direccion:i.direccion,cif:i.cif,localidad:i.localidad,provincia:i.provincia,cp:i.cp,telefono:i.telefono,fax:i.fax};n.jsonp(Config.peticiones+"/user.php?callback=JSON_CALLBACK",{params:a}).success(function(e){if(0===e.status){var o=e.id,a=new Empresa(s,{id:o,hash:s.hash,nombre:i.nombre,direccion:i.direccion,cif:i.cif,localidad:i.localidad,provincia:i.provincia,cp:i.cp,telefono:"T."+i.telefono,fax:"F."+i.fax});a.editando=!0,a.creando=!0,0==e.anado&amp;&amp;s.empresas.push(a),s.guardarDatos(),t.hide()}else switch(i.mensaje=e.mensaje,i.codigoerror=e.code,i.codigoerror){case 1:i.classnombre="ng-invalid ng-touched";break;case 2:i.classnombreempresa="ng-invalid  ng-touched";break;case 3:i.classdireccionempresa="ng-invalid ng-touched";break;case 4:i.classcif="ng-invalid ng-touched";break;case 5:i.classlocalidadempresa="ng-invalid ng-touched";break;case 6:i.classprovinciaempresa="ng-invalid ng-touched";break;case 7:i.classcpempresa="ng-invalid ng-touched"}s.enviando=!1}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),s.enviando=!1})},i.anadiendo_empresa=!0,s.editando=!1}],controllerAs:"anadirempresa",templateUrl:Config.peticiones+t+"/usuario/anadirempresa.php",targetEvent:e,clickOutsideToClose:!0})},this.eliminarFacebook=function(e){confirm("Â¿Realmente desea desenlazar facebook?")&amp;&amp;e.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:15,hash:this.hash}}).success(function(e){0===e.status?(s.facebook=!1,s.guardarDatos()):alert(e.mensaje)}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde.")})},this.anadirFacebook=function(e,o){e.login().then(function(e){"connected"===e.status&amp;&amp;o.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:16,hash:s.hash,fbid:e.authResponse.userID}}).success(function(e){0===e.status?(s.facebook=!0,s.guardarDatos()):alert(e.mensaje)}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde.")})})},this.baja=function(o,a,e,i,t){o.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:19}}).success(function(e){0===e.status?Usuario.cerrarSesion(o,a,i,t):(alert(e.mensaje),t())}).error(function(){alert("Ha ocurrido un error.\nPor favor, pongase en contacto con nosotros."),t()})}};Usuario.user=null,Usuario.borrarDatos=function(e){e.remove("hash"),LocalStorage.del("user","data")},Usuario.iniciarSesion=function(e,o,a,i,t,n){a.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:0,email:e,pass:o}}).success(function(e){if(0===e.status){var o=new Usuario(e.hash,e.data);o.guardarDatos(i),t(o)}else n(1,e.mensaje)}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),n(0,"")})},Reserva.iniciarMiReserva=function(o,a,e,i,t,n){e.jsonp(Config.peticiones_sec+"/mi_reserva.php?callback=JSON_CALLBACK",{params:{tipo:0,email:o,localizador:a}}).success(function(e){0===e.status?t(o,a):(alert(e.mensaje),n())}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),n()})},Reserva.datosMiReserva=function(e,o,a,i,t,n){a.jsonp(Config.peticiones_sec+"/mi_reserva.php?callback=JSON_CALLBACK",{params:{tipo:0,email:e,localizador:o}}).success(function(e){if(0===e.status){var o=new Reserva(e.hash,e.data);t(o)}else alert(e.mensaje),n()}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),n()})},Usuario.activar=function(e,o,a,i,t,n,r){i.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:17,email:e,pass:o,key:a}}).success(function(e){if(0===e.status){var o=new Usuario(e.hash,e.data);o.guardarDatos(t),n(o)}else alert(e.mensaje),r()}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),r()})},Usuario.iniciarSesionFacebook=function(e,o,a,i,t){o.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:0,fbid:e}}).success(function(e){if(0===e.status){var o=new Usuario(e.hash,e.data);o.guardarDatos(a),i(o)}else alert(e.mensaje),t()}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),t()})},Usuario.cerrarSesion=function(e,o,a,i){e.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:4}}).success(function(e){0===e.status?(Usuario.borrarDatos(o),a()):(alert(e.mensaje),i())}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),i()})},Usuario.recordar=function(e,o,a,i){o.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:5,email:e}}).success(function(e){var o="",a=0;0===e.status?(o="Se le ha enviado una nueva contraseÃ±a a su direcciÃ³n de correo electrÃ³nico",a=0):0!=e.status&amp;&amp;(o=e.mensaje,a=1),i(o,a)}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),i()})},Usuario.registrar=function(e,o,a,i){e.tipo=6,o.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:e}).success(function(e){0===e.status?void 0===e.data?(a.show({controller:"HotelesRegistro",controllerAs:"registro",template:'&lt;md-dialog aria-label="AlertaLogin" class="dialog_movil"&gt;&lt;md-dialog-content class="sticky-container"&gt;&lt;header class="mvl"&gt;&lt;span class="cerrar_dialog_mvl" ng-click="$mdDialog.hide()"&gt;&lt;/span&gt;&lt;/header&gt;&lt;span class="cerrardialogweb" ng-click="$mdDialog.hide()"&gt;&lt;/span&gt;&lt;h2 class="ng-binding mensajeusuario"&gt;ActivaciÃ³n de usuario&lt;/h2&gt;&lt;div class="md-dialog-content-body contenidoalertas ng-isolate-scope"&gt;&lt;/span&gt;&lt;p class="valido"&gt;Gracias por registrarse. En breves momentos recibirÃ¡ un correo de activaciÃ³n en la direcciÃ³n de correo que nos ha indicado.&lt;/p&gt;&lt;/div&gt;&lt;/md-dialog-content&gt;&lt;/md-dialog&gt;',clickOutsideToClose:!0}),i(null)):i(new Usuario(e.hash,e.data)):(alert(e.mensaje),i(null))}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),i(null)})},Usuario.checkStorage=function(e,a,i){var o=a.get("hash");if(null!=o){var t=LocalStorage.get("user","data");null===t?i(null):"http:"===window.location.protocol?e.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:3,hash:o}}).success(function(e){0===e.status?e.retomar?window.location.reload():i(new Usuario(o,t)):alert(e.mensaje)}).error(function(){}):i(new Usuario(o,t))}else e.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:2}}).success(function(e){if(0===e.status)if(""!==e.hash){var o=new Usuario(e.hash,e.data);o.guardarDatos(a),i(o)}else Usuario.borrarDatos(a),i(null);else alert(e.mensaje)}).error(function(){})},function(){var e=window.hot_deps||[],o=angular.module("hotelesPage",e);o.config(["$mdThemingProvider",function(e){e.theme("default").primaryPalette("light-blue",{default:"400","hue-1":"100","hue-2":"600","hue-3":"A100"}).accentPalette("blue",{default:"200"})}]),o.config(["$mdGestureProvider",function(e){e.skipClickHijack()}]),o.controller("HotelesNet",["$http","$rootScope","$cookies","$mdDialog",function(e,o,a,r){o.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o.telefono=o.width&lt;768,o.user=null,o.enviando=!1,this.loadUser=function(e){for(o.user=e;0&lt;o.userReadyStack.length;)o.userReadyStack.shift()()},o.userReadyStack=[],o.userReady=function(e){o.userReadyStack.push(e)},Usuario.checkStorage(e,a,this.loadUser),o.alert=function(e,o,a){r.show(r.alert().parent(angular.element(document.body)).clickOutsideToClose(!0).title(e).content(o).ariaLabel(e).ok("Aceptar").targetEvent(a))},o.confirm=function(e,o,a,i,t){var n=r.confirm().parent(angular.element(document.body)).title(e).content(o).ariaLabel(e).ok("Aceptar").cancel("Cancelar").targetEvent(t);r.show(n).then(a,i)},o.navegar=function(){}}]),angular.module("utils.autofocus",[]).directive("autofocus",["$timeout",function(a){return{restrict:"A",link:function(e,o){a(function(){o[0].focus()})}}}])}(),angular.module("hotelesPage").controller("HeaderLogin",["$mdSidenav","$rootScope","$http","$cookies",function(e,o,a,i){var t=this;o.muestramicuenta=!1,this.toggleRight=function(){e("sidenav").toggle()},this.cerrarOK=function(){o.user=null,o.enviando=!1,window.location=Config.base_nsec},this.cerrarKO=function(){o.enviando=!1},this.cerrarSesion=function(){a.jsonp(Config.peticiones_sec+"/user.php?callback=JSON_CALLBACK",{params:{tipo:4}}).success(function(e){0===e.status?(i.remove("hash"),LocalStorage.del("user","data"),callback()):(alert(e.mensaje),error())}).error(function(){alert("Ha ocurrido un error.\nPor favor, intÃ©ntelo de nuevo mÃ¡s tarde."),error()}),Usuario.cerrarSesion(a,i,t.cerrarOK,t.cerrarKO)},o.cerrarSesionMvl=t.cerrarSesion,o.cerrarX=function(){e("sidenav").toggle()},t.mostrarpestanacuenta=function(){o.muestramicuenta=!o.muestramicuenta}}]),angular.module("hotelesPage").directive("hotelesContactanos",function(){return{restrict:"A",templateUrl:Config.peticiones+"/templates/template.php?tmpl=Contactanos",controller:["$http","$scope",function(e,o){this.contactar=!1,this.enviado=!1,this.email="",this.texto="",this.emailvacio=!1,this.comentariovacio=!1,this.emailvalido=!1,this.contactanos=function(){this.enviado=!1,0==this.contactar?this.contactar=!0:(this.contactar=!0,this.contactar=!1)},this.enviar=function(o){var a=this;""==this.email?(this.emailvacio=!0,this.comentariovacio=!1,this.emailvalido=!1):Config.checkEmail(this.email)?""==this.texto?(this.comentariovacio=!0,this.emailvacio=!1,this.emailvalido=!1):e.get(Config.peticiones+"/user.php",{params:{tipo:18,texto:this.texto,email:this.email}}).success(function(e){0===e.status?(a.enviado=!0,a.email="",a.texto="",a.comentariovacio=!1):$rootScope.alert("Error:",e.mensaje,o)}).error(function(){$rootScope.alert("Ha ocurrido un error","Por favor, intÃ©ntelo de nuevo mÃ¡s tarde.",o)}):(this.emailvalido=!0,this.comentariovacio=!1,this.emailvacio=!1)},this.cerrar=function(){this.contactar=!1,this.enviado=!1,this.emailvacio=!1,this.comentariovacio=!1,this.emailvalido=!1,this.email="",this.texto=""}}],controllerAs:"contacta"}});;angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.datepicker","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.position"]),angular.module("ui.bootstrap.tpls",["uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/popup.html","uib/template/datepicker/year.html"]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError","uibDateParser",function(e,t,a,i,n,r,o,l,s,u){var c=this,p={$setViewValue:angular.noop},d={},h=[];this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle"],function(a){c[a]=angular.isDefined(t[a])?i(t[a])(e.$parent):l[a]}),angular.forEach(["showWeeks","yearRows","yearColumns","shortcutPropagation"],function(a){c[a]=angular.isDefined(t[a])?e.$parent.$eval(t[a]):l[a]}),c.startingDay=angular.isDefined(t.startingDay)?e.$parent.$eval(t.startingDay):angular.isNumber(l.startingDay)?l.startingDay:(n.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7,angular.forEach(["minDate","maxDate"],function(a){t[a]?h.push(e.$parent.$watch(t[a],function(e){c[a]=e?angular.isDate(e)?u.fromTimezone(new Date(e),d.timezone):new Date(o(e,"medium")):null,c.refreshView()})):c[a]=l[a]?u.fromTimezone(new Date(l[a]),d.timezone):null}),angular.forEach(["minMode","maxMode"],function(a){t[a]?h.push(e.$parent.$watch(t[a],function(i){c[a]=e[a]=angular.isDefined(i)?i:t[a],("minMode"===a&amp;&amp;c.modes.indexOf(e.datepickerMode)&lt;c.modes.indexOf(c[a])||"maxMode"===a&amp;&amp;c.modes.indexOf(e.datepickerMode)&gt;c.modes.indexOf(c[a]))&amp;&amp;(e.datepickerMode=c[a])})):c[a]=e[a]=l[a]||null}),e.datepickerMode=e.datepickerMode||l.datepickerMode,e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(t.initDate)?(this.activeDate=u.fromTimezone(e.$parent.$eval(t.initDate),d.timezone)||new Date,h.push(e.$parent.$watch(t.initDate,function(e){e&amp;&amp;(p.$isEmpty(p.$modelValue)||p.$invalid)&amp;&amp;(c.activeDate=u.fromTimezone(e,d.timezone),c.refreshView())}))):this.activeDate=new Date,e.disabled=angular.isDefined(t.disabled)||!1,angular.isDefined(t.ngDisabled)&amp;&amp;h.push(e.$parent.$watch(t.ngDisabled,function(t){e.disabled=t,c.refreshView()})),e.isActive=function(t){return 0===c.compare(t.date,c.activeDate)&amp;&amp;(e.activeDateId=t.uid,!0)},this.init=function(e){p=e,d=e.$options||l.ngModelOptions,p.$modelValue&amp;&amp;(this.activeDate=p.$modelValue),p.$render=function(){c.render()}},this.render=function(){if(p.$viewValue){var e=new Date(p.$viewValue),t=!isNaN(e);t?this.activeDate=u.fromTimezone(e,d.timezone):s||r.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){e.selectedDt=null,this._refreshView(),e.activeDt&amp;&amp;(e.activeDateId=e.activeDt.uid);var t=p.$viewValue?new Date(p.$viewValue):null;t=u.fromTimezone(t,d.timezone),p.$setValidity("dateDisabled",!t||this.element&amp;&amp;!this.isDisabled(t))}},this.createDateObject=function(t,a){var i=p.$viewValue?new Date(p.$viewValue):null;i=u.fromTimezone(i,d.timezone);var n={date:t,label:o(t,a.replace(/d!/,"dd")).replace(/M!/,"MM"),selected:i&amp;&amp;0===this.compare(t,i),disabled:this.isDisabled(t),current:0===this.compare(t,new Date),customClass:this.customClass(t)||null};return i&amp;&amp;0===this.compare(t,i)&amp;&amp;(e.selectedDt=n),c.activeDate&amp;&amp;0===this.compare(n.date,c.activeDate)&amp;&amp;(e.activeDt=n),n},this.isDisabled=function(a){return e.disabled||this.minDate&amp;&amp;this.compare(a,this.minDate)&lt;0||this.maxDate&amp;&amp;this.compare(a,this.maxDate)&gt;0||t.dateDisabled&amp;&amp;e.dateDisabled({date:a,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var a=[];e.length&gt;0;)a.push(e.splice(0,t));return a},e.select=function(t){if(e.datepickerMode===c.minMode){var a=p.$viewValue?u.fromTimezone(new Date(p.$viewValue),d.timezone):new Date(0,0,0,0,0,0,0);a.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a=u.toTimezone(a,d.timezone),p.$setViewValue(a),p.$render()}else c.activeDate=t,e.datepickerMode=c.modes[c.modes.indexOf(e.datepickerMode)-1]},e.move=function(e){var t=c.activeDate.getFullYear()+e*(c.step.years||0),a=c.activeDate.getMonth()+e*(c.step.months||0);c.activeDate.setFullYear(t,a,1),c.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===c.maxMode&amp;&amp;1===t||e.datepickerMode===c.minMode&amp;&amp;-1===t||(e.datepickerMode=c.modes[c.modes.indexOf(e.datepickerMode)+t])},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var f=function(){c.element[0].focus()};e.$on("uib:datepicker.focus",f),e.keydown=function(t){var a=e.keys[t.which];if(a&amp;&amp;!t.shiftKey&amp;&amp;!t.altKey&amp;&amp;!e.disabled)if(t.preventDefault(),c.shortcutPropagation||t.stopPropagation(),"enter"===a||"space"===a){if(c.isDisabled(c.activeDate))return;e.select(c.activeDate)}else!t.ctrlKey||"up"!==a&amp;&amp;"down"!==a?(c.handleKeyDown(a,t),c.refreshView()):e.toggleMode("up"===a?1:-1)},e.$on("$destroy",function(){for(;h.length;)h.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(e,t,a){function i(e,t){return 1!==t||e%4!==0||e%100===0&amp;&amp;e%400!==0?r[t]:29}function n(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var a=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((a-t)/864e5)/7)+1}var r=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),e.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(e,t){for(var a,i=new Array(t),n=new Date(e),r=0;t&gt;r;)a=new Date(n),i[r++]=a,n.setDate(n.getDate()+1);return i},this._refreshView=function(){var t=this.activeDate.getFullYear(),i=this.activeDate.getMonth(),r=new Date(this.activeDate);r.setFullYear(t,i,1);var o=this.startingDay-r.getDay(),l=o&gt;0?7-o:-o,s=new Date(r);l&gt;0&amp;&amp;s.setDate(-l+1);for(var u=this.getDates(s,42),c=0;42&gt;c;c++)u[c]=angular.extend(this.createDateObject(u[c],this.formatDay),{secondary:u[c].getMonth()!==i,uid:e.uniqueId+"-"+c});e.labels=new Array(7);for(var p=0;7&gt;p;p++)e.labels[p]={abbr:a(u[p].date,this.formatDayHeader),full:a(u[p].date,"EEEE")};if(e.title=a(this.activeDate,this.formatDayTitle),e.rows=this.split(u,7),e.showWeeks){e.weekNumbers=[];for(var d=(11-this.startingDay)%7,h=e.rows.length,f=0;h&gt;f;f++)e.weekNumbers.push(n(e.rows[f][d].date))}},this.compare=function(e,t){var a=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=new Date(t.getFullYear(),t.getMonth(),t.getDate());return a.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),a-i},this.handleKeyDown=function(e){var t=this.activeDate.getDate();if("left"===e)t-=1;else if("up"===e)t-=7;else if("right"===e)t+=1;else if("down"===e)t+=7;else if("pageup"===e||"pagedown"===e){var a=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(a,1),t=Math.min(i(this.activeDate.getFullYear(),this.activeDate.getMonth()),t)}else"home"===e?t=1:"end"===e&amp;&amp;(t=i(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(t)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(e,t,a){this.step={years:1},this.element=t,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var t,i=new Array(12),n=this.activeDate.getFullYear(),r=0;12&gt;r;r++)t=new Date(this.activeDate),t.setFullYear(n,r,1),i[r]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+r});e.title=a(this.activeDate,this.formatMonthTitle),e.rows=this.split(i,3)},this.compare=function(e,t){var a=new Date(e.getFullYear(),e.getMonth()),i=new Date(t.getFullYear(),t.getMonth());return a.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),a-i},this.handleKeyDown=function(e){var t=this.activeDate.getMonth();if("left"===e)t-=1;else if("up"===e)t-=3;else if("right"===e)t+=1;else if("down"===e)t+=3;else if("pageup"===e||"pagedown"===e){var a=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(a)}else"home"===e?t=0:"end"===e&amp;&amp;(t=11);this.activeDate.setMonth(t)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t){function a(e){return parseInt((e-1)/n,10)*n+1}var i,n;this.element=t,this.yearpickerInit=function(){i=this.yearColumns,n=this.yearRows*i,this.step={years:n}},this._refreshView=function(){for(var t,r=new Array(n),o=0,l=a(this.activeDate.getFullYear());n&gt;o;o++)t=new Date(this.activeDate),t.setFullYear(l+o,0,1),r[o]=angular.extend(this.createDateObject(t,this.formatYear),{uid:e.uniqueId+"-"+o});e.title=[r[0].label,r[n-1].label].join(" - "),e.rows=this.split(r,i),e.columns=i},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e){var t=this.activeDate.getFullYear();"left"===e?t-=1:"up"===e?t-=i:"right"===e?t+=1:"down"===e?t+=i:"pageup"===e||"pagedown"===e?t+=("pageup"===e?-1:1)*n:"home"===e?t=a(this.activeDate.getFullYear()):"end"===e&amp;&amp;(t=a(this.activeDate.getFullYear())+n-1),this.activeDate.setFullYear(t)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&amp;",customClass:"&amp;",shortcutPropagation:"&amp;?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,a,i){var n=i[0],r=i[1];n.init(r)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],controller:"UibDaypickerController",link:function(e,t,a,i){var n=i[0],r=i[1];r.init(n)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],controller:"UibMonthpickerController",link:function(e,t,a,i){var n=i[0],r=i[1];r.init(n)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],controller:"UibYearpickerController",link:function(e,t,a,i){var n=i[0];angular.extend(n,i[1]),n.yearpickerInit(),n.refreshView()}}}).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepicker/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$parse","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig",function(e,t,a,i,n,r,o,l,s,u,c,p,d){function h(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function f(t){var a=u.parse(t,D,e.date);if(isNaN(a))for(var i=0;i&lt;S.length;i++)if(a=u.parse(t,S[i],e.date),!isNaN(a))return a;return a}function m(e){if(angular.isNumber(e)&amp;&amp;(e=new Date(e)),!e)return null;if(angular.isDate(e)&amp;&amp;!isNaN(e))return e;if(angular.isString(e)){var t=f(e);if(!isNaN(t))return u.toTimezone(t,O.timezone)}return E.$options&amp;&amp;E.$options.allowInvalid?e:void 0}function g(e,t){var i=e||t;return!a.ngRequired&amp;&amp;!i||(angular.isNumber(i)&amp;&amp;(i=new Date(i)),!i||(!(!angular.isDate(i)||isNaN(i))||!!angular.isString(i)&amp;&amp;!isNaN(f(t))))}function b(a){if(e.isOpen||!e.disabled){var i=F[0],n=t[0].contains(a.target),r=void 0!==i.contains&amp;&amp;i.contains(a.target);!e.isOpen||n||r||e.$apply(function(){e.isOpen=!1})}}function y(a){27===a.which&amp;&amp;e.isOpen?(a.preventDefault(),a.stopPropagation(),e.$apply(function(){e.isOpen=!1}),t[0].focus()):40!==a.which||e.isOpen||(a.preventDefault(),a.stopPropagation(),e.$apply(function(){e.isOpen=!0}))}var D,v,w,k,M,$,x,T,E,O,F,S,C={},Y=!1,A=[];e.watchData={},this.init=function(l){if(E=l,O=l.$options||d.ngModelOptions,v=angular.isDefined(a.closeOnDateSelection)?e.$parent.$eval(a.closeOnDateSelection):c.closeOnDateSelection,w=angular.isDefined(a.datepickerAppendToBody)?e.$parent.$eval(a.datepickerAppendToBody):c.appendToBody,k=angular.isDefined(a.onOpenFocus)?e.$parent.$eval(a.onOpenFocus):c.onOpenFocus,M=angular.isDefined(a.datepickerPopupTemplateUrl)?a.datepickerPopupTemplateUrl:c.datepickerPopupTemplateUrl,$=angular.isDefined(a.datepickerTemplateUrl)?a.datepickerTemplateUrl:c.datepickerTemplateUrl,S=angular.isDefined(a.altInputFormats)?e.$parent.$eval(a.altInputFormats):c.altInputFormats,e.showButtonBar=angular.isDefined(a.showButtonBar)?e.$parent.$eval(a.showButtonBar):c.showButtonBar,c.html5Types[a.type]?(D=c.html5Types[a.type],Y=!0):(D=a.uibDatepickerPopup||c.datepickerPopup,a.$observe("uibDatepickerPopup",function(e){var t=e||c.datepickerPopup;if(t!==D&amp;&amp;(D=t,E.$modelValue=null,!D))throw new Error("uibDatepickerPopup must have a date format specified.")})),!D)throw new Error("uibDatepickerPopup must have a date format specified.");if(Y&amp;&amp;a.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");if(x=angular.element("&lt;div uib-datepicker-popup-wrap&gt;&lt;div uib-datepicker&gt;&lt;/div&gt;&lt;/div&gt;"),e.ngModelOptions=angular.copy(O),e.ngModelOptions.timezone=null,x.attr({"ng-model":"date","ng-model-options":"ngModelOptions","ng-change":"dateSelection(date)","template-url":M}),T=angular.element(x.children()[0]),T.attr("template-url",$),Y&amp;&amp;"month"===a.type&amp;&amp;(T.attr("datepicker-mode",'"month"'),T.attr("min-mode","month")),a.datepickerOptions){var p=e.$parent.$eval(a.datepickerOptions);p&amp;&amp;p.initDate&amp;&amp;(e.initDate=u.fromTimezone(p.initDate,O.timezone),T.attr("init-date","initDate"),delete p.initDate),angular.forEach(p,function(e,t){T.attr(h(t),e)})}angular.forEach(["minMode","maxMode","datepickerMode","shortcutPropagation"],function(t){if(a[t]){var i=n(a[t]),r={get:function(){return i(e.$parent)}};if(T.attr(h(t),"watchData."+t),"datepickerMode"===t){var o=i.assign;r.set=function(t){o(e.$parent,t)}}Object.defineProperty(e.watchData,t,r)}}),angular.forEach(["minDate","maxDate","initDate"],function(t){if(a[t]){var i=n(a[t]);A.push(e.$parent.$watch(i,function(a){"minDate"===t||"maxDate"===t?(C[t]=null===a?null:angular.isDate(a)?u.fromTimezone(new Date(a),O.timezone):new Date(s(a,"medium")),e.watchData[t]=null===a?null:C[t]):e.watchData[t]=u.fromTimezone(new Date(a),O.timezone)})),T.attr(h(t),"watchData."+t)}}),a.dateDisabled&amp;&amp;T.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRows","yearColumns"],function(e){angular.isDefined(a[e])&amp;&amp;T.attr(h(e),a[e])}),a.customClass&amp;&amp;T.attr("custom-class","customClass({ date: date, mode: mode })"),Y?E.$formatters.push(function(t){return e.date=u.fromTimezone(t,O.timezone),t}):(E.$$parserName="date",E.$validators.date=g,E.$parsers.unshift(m),E.$formatters.push(function(t){return E.$isEmpty(t)?(e.date=t,t):(e.date=u.fromTimezone(t,O.timezone),D=D.replace(/M!/,"MM").replace(/d!/,"dd"),s(e.date,D))})),E.$viewChangeListeners.push(function(){e.date=f(E.$viewValue)}),t.bind("keydown",y),F=i(x)(e),x.remove(),w?r.find("body").append(F):t.after(F),e.$on("$destroy",function(){for(e.isOpen===!0&amp;&amp;(o.$$phase||e.$apply(function(){e.isOpen=!1})),F.remove(),t.unbind("keydown",y),r.unbind("click",b);A.length;)A.shift()()})},e.getText=function(t){return e[t+"Text"]||c[t+"Text"]},e.isDisabled=function(t){return"today"===t&amp;&amp;(t=new Date),e.watchData.minDate&amp;&amp;e.compare(t,C.minDate)&lt;0||e.watchData.maxDate&amp;&amp;e.compare(t,C.maxDate)&gt;0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.dateSelection=function(a){angular.isDefined(a)&amp;&amp;(e.date=a);var i=e.date?s(e.date,D):null;t.val(i),E.$setViewValue(i),v&amp;&amp;(e.isOpen=!1,t[0].focus())},e.keydown=function(a){27===a.which&amp;&amp;(a.stopPropagation(),e.isOpen=!1,t[0].focus())},e.select=function(t){if("today"===t){var a=new Date;angular.isDate(e.date)?(t=new Date(e.date),t.setFullYear(a.getFullYear(),a.getMonth(),a.getDate())):t=new Date(a.setHours(0,0,0,0))}e.dateSelection(t)},e.close=function(){e.isOpen=!1,t[0].focus()},e.disabled=angular.isDefined(a.disabled)||!1,a.ngDisabled&amp;&amp;A.push(e.$parent.$watch(n(a.ngDisabled),function(t){e.disabled=t})),e.$watch("isOpen",function(a){a?e.disabled?e.isOpen=!1:(e.position=w?l.offset(t):l.position(t),e.position.top=e.position.top+t.prop("offsetHeight"),p(function(){k&amp;&amp;e.$broadcast("uib:datepicker.focus"),r.bind("click",b)},0,!1)):r.unbind("click",b)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&amp;",customClass:"&amp;"},link:function(e,t,a,i){var n=i[0],r=i[1];r.init(n)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/popup.html"}}}),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","orderByFilter",function(e,t,a){function i(e){var t=[],i=e.split(""),n=e.indexOf("'");if(n&gt;-1){var r=!1;e=e.split("");for(var o=n;o&lt;e.length;o++)r?("'"===e[o]&amp;&amp;(o+1&lt;e.length&amp;&amp;"'"===e[o+1]?(e[o+1]="$",i[o+1]=""):(i[o]="",r=!1)),e[o]="$"):"'"===e[o]&amp;&amp;(e[o]="$",i[o]="",r=!0);e=e.join("")}return angular.forEach(d,function(a){var n=e.indexOf(a.key);if(n&gt;-1){e=e.split(""),i[n]="("+a.regex+")",e[n]="$";for(var r=n+1,o=n+a.key.length;o&gt;r;r++)i[r]="",e[r]="$";e=e.join(""),t.push({index:n,apply:a.apply,matcher:a.regex})}}),{regex:new RegExp("^"+i.join("")+"$"),map:a(t,"index")}}function n(e,t,a){return!(1&gt;a)&amp;&amp;(1===t&amp;&amp;a&gt;28?29===a&amp;&amp;(e%4===0&amp;&amp;e%100!==0||e%400===0):3!==t&amp;&amp;5!==t&amp;&amp;8!==t&amp;&amp;10!==t||31&gt;a)}function r(e){return parseInt(e,10)}function o(e,t){return e&amp;&amp;t?c(e,t):e}function l(e,t){return e&amp;&amp;t?c(e,t,!0):e}function s(e,t){var a=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(a)?t:a}function u(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function c(e,t,a){a=a?-1:1;var i=s(t,e.getTimezoneOffset());return u(e,a*(i-e.getTimezoneOffset()))}var p,d,h=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){p=t.id,this.parsers={},d=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e}},{key:"yy",regex:"\\d{2}",apply:function(e){this.year=+e+2e3}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|")},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|")},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&amp;&amp;(this.hours=0),"PM"===e&amp;&amp;(this.hours+=12)}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var t=e.match(/([+-])(\d{2})(\d{2})/),a=t[1],i=t[2],n=t[3];this.hours+=r(a+i),this.minutes+=r(a+n)}},{key:"ww",regex:"[0-4][0-9]|5[0-3]"},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]"},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s")},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|")},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|")},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|")}]},this.init(),this.parse=function(a,r,o){if(!angular.isString(a)||!r)return a;r=t.DATETIME_FORMATS[r]||r,r=r.replace(h,"\\$&amp;"),t.id!==p&amp;&amp;this.init(),this.parsers[r]||(this.parsers[r]=i(r));var l=this.parsers[r],s=l.regex,u=l.map,c=a.match(s),d=!1;if(c&amp;&amp;c.length){var f,m;angular.isDate(o)&amp;&amp;!isNaN(o.getTime())?f={year:o.getFullYear(),month:o.getMonth(),date:o.getDate(),hours:o.getHours(),minutes:o.getMinutes(),seconds:o.getSeconds(),milliseconds:o.getMilliseconds()}:(o&amp;&amp;e.warn("dateparser:","baseDate is not a valid date"),f={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var g=1,b=c.length;b&gt;g;g++){var y=u[g-1];"Z"===y.matcher&amp;&amp;(d=!0),y.apply&amp;&amp;y.apply.call(f,c[g])}var D=d?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,v=d?Date.prototype.setUTCHours:Date.prototype.setHours;return n(f.year,f.month,f.date)&amp;&amp;(!angular.isDate(o)||isNaN(o.getTime())||d?(m=new Date(0),D.call(m,f.year,f.month,f.date),v.call(m,f.hours||0,f.minutes||0,f.seconds||0,f.milliseconds||0)):(m=new Date(o),D.call(m,f.year,f.month,f.date),v.call(m,f.hours,f.minutes,f.seconds,f.milliseconds))),m}},this.toTimezone=o,this.fromTimezone=l,this.timezoneToOffset=s,this.addDateMinutes=u,this.convertTimezoneToLocal=c}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(e){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,a=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(i,n){function r(e,t){s.push(e),u.push({scope:e,element:t}),f.forEach(function(t){o(t,e)}),e.$on("$destroy",l)}function o(t,i){var n=t.match(a),r=i.$eval(n[1]),o=n[2],l=c[t];if(!l){var s=function(t){var a=null;u.some(function(e){var i=e.scope.$eval(d);return i===t?(a=e,!0):void 0}),l.lastActivated!==a&amp;&amp;(l.lastActivated&amp;&amp;e.removeClass(l.lastActivated.element,r),a&amp;&amp;e.addClass(a.element,r),l.lastActivated=a)};c[t]=l={lastActivated:null,scope:i,watchFn:s,compareWithExp:o,watcher:i.$watch(o,s)}}l.watchFn(i.$eval(o))}function l(e){var t=e.targetScope,a=s.indexOf(t);if(s.splice(a,1),u.splice(a,1),s.length){var i=s[0];angular.forEach(c,function(e){e.scope===t&amp;&amp;(e.watcher=i.$watch(e.compareWithExp,e.watchFn),e.scope=i)})}else c={}}var s=[],u=[],c={},p=n.uibIsClass.match(t),d=p[2],h=p[1],f=h.split(",");return r}}}]),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var a,i={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},n={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/};return{getRawNode:function(e){return e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(a){function i(e){return"static"===(t.getComputedStyle(e).position||"static")}a=this.getRawNode(a);for(var n=a.offsetParent||e[0].documentElement;n&amp;&amp;n!==e[0].documentElement&amp;&amp;i(n);)n=n.offsetParent;return n||e[0].documentElement},scrollbarWidth:function(){if(angular.isUndefined(a)){var t=angular.element('&lt;div style="position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll;"&gt;&lt;/div&gt;');e.find("body").append(t),a=t[0].offsetWidth-t[0].clientWidth,a=isFinite(a)?a:0,t.remove()}return a},scrollParent:function(a,n){a=this.getRawNode(a);var r=n?i.hidden:i.normal,o=e[0].documentElement,l=t.getComputedStyle(a),s="absolute"===l.position,u=a.parentElement||o;if(u===o||"fixed"===l.position)return o;for(;u.parentElement&amp;&amp;u!==o;){var c=t.getComputedStyle(u);if(s&amp;&amp;"static"!==c.position&amp;&amp;(s=!1),!s&amp;&amp;r.test(c.overflow+c.overflowY+c.overflowX))break;u=u.parentElement}return u},position:function(a,i){a=this.getRawNode(a);var n=this.offset(a);if(i){var r=t.getComputedStyle(a);n.top-=this.parseStyle(r.marginTop),n.left-=this.parseStyle(r.marginLeft)}var o=this.offsetParent(a),l={top:0,left:0};return o!==e[0].documentElement&amp;&amp;(l=this.offset(o),l.top+=o.clientTop-o.scrollTop,l.left+=o.clientLeft-o.scrollLeft),{width:Math.round(angular.isNumber(n.width)?n.width:a.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:a.offsetHeight),top:Math.round(n.top-l.top),left:Math.round(n.left-l.left)}},offset:function(a){a=this.getRawNode(a);var i=a.getBoundingClientRect();return{width:Math.round(angular.isNumber(i.width)?i.width:a.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:a.offsetHeight),top:Math.round(i.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(i.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(a,i,n){a=this.getRawNode(a),n=n!==!1;var r=a.getBoundingClientRect(),o={top:0,left:0,bottom:0,right:0},l=i?e[0].documentElement:this.scrollParent(a),s=l.getBoundingClientRect();if(o.top=s.top+l.clientTop,o.left=s.left+l.clientLeft,l===e[0].documentElement&amp;&amp;(o.top+=t.pageYOffset,o.left+=t.pageXOffset),o.bottom=o.top+l.clientHeight,o.right=o.left+l.clientWidth,n){var u=t.getComputedStyle(l);o.top+=this.parseStyle(u.paddingTop),o.bottom-=this.parseStyle(u.paddingBottom),o.left+=this.parseStyle(u.paddingLeft),o.right-=this.parseStyle(u.paddingRight)}return{top:Math.round(r.top-o.top),bottom:Math.round(o.bottom-r.bottom),left:Math.round(r.left-o.left),right:Math.round(o.right-r.right)}},parsePlacement:function(e){var t=n.auto.test(e);return t&amp;&amp;(e=e.replace(n.auto,"")),e=e.split("-"),e[0]=e[0]||"top",n.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",n.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,a,i,r){e=this.getRawNode(e),a=this.getRawNode(a);var o=angular.isDefined(a.offsetWidth)?a.offsetWidth:a.prop("offsetWidth"),l=angular.isDefined(a.offsetHeight)?a.offsetHeight:a.prop("offsetHeight");i=this.parsePlacement(i);var s=r?this.offset(e):this.position(e),u={top:0,left:0,placement:""};if(i[2]){var c=this.viewportOffset(e),p=t.getComputedStyle(a),d={width:o+Math.round(Math.abs(this.parseStyle(p.marginLeft)+this.parseStyle(p.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(p.marginTop)+this.parseStyle(p.marginBottom)))};if(i[0]="top"===i[0]&amp;&amp;d.height&gt;c.top&amp;&amp;d.height&lt;=c.bottom?"bottom":"bottom"===i[0]&amp;&amp;d.height&gt;c.bottom&amp;&amp;d.height&lt;=c.top?"top":"left"===i[0]&amp;&amp;d.width&gt;c.left&amp;&amp;d.width&lt;=c.right?"right":"right"===i[0]&amp;&amp;d.width&gt;c.right&amp;&amp;d.width&lt;=c.left?"left":i[0],i[1]="top"===i[1]&amp;&amp;d.height-s.height&gt;c.bottom&amp;&amp;d.height-s.height&lt;=c.top?"bottom":"bottom"===i[1]&amp;&amp;d.height-s.height&gt;c.top&amp;&amp;d.height-s.height&lt;=c.bottom?"top":"left"===i[1]&amp;&amp;d.width-s.width&gt;c.right&amp;&amp;d.width-s.width&lt;=c.left?"right":"right"===i[1]&amp;&amp;d.width-s.width&gt;c.left&amp;&amp;d.width-s.width&lt;=c.right?"left":i[1],"center"===i[1])if(n.vertical.test(i[0])){var h=s.width/2-o/2;c.left+h&lt;0&amp;&amp;d.width-s.width&lt;=c.right?i[1]="left":c.right+h&lt;0&amp;&amp;d.width-s.width&lt;=c.left&amp;&amp;(i[1]="right")}else{var f=s.height/2-d.height/2;c.top+f&lt;0&amp;&amp;d.height-s.height&lt;=c.bottom?i[1]="top":c.bottom+f&lt;0&amp;&amp;d.height-s.height&lt;=c.top&amp;&amp;(i[1]="bottom")}}switch(i[0]){case"top":u.top=s.top-l;break;case"bottom":u.top=s.top+s.height;break;case"left":u.left=s.left-o;break;case"right":u.left=s.left+s.width}switch(i[1]){case"top":u.top=s.top;break;case"bottom":u.top=s.top+s.height-l;break;case"left":u.left=s.left;break;case"right":u.left=s.left+s.width-o;break;case"center":n.vertical.test(i[0])?u.left=s.left+s.width/2-o/2:u.top=s.top+s.height/2-l/2}return u.top=Math.round(u.top),u.left=Math.round(u.left),u.placement="center"===i[1]?i[0]:i[0]+"-"+i[1],u},positionArrow:function(e,a){e=this.getRawNode(e);var i=e.querySelector(".tooltip-inner, .popover-inner");if(i){var r=angular.element(i).hasClass("tooltip-inner"),o=e.querySelector(r?".tooltip-arrow":".arrow");if(o){if(a=this.parsePlacement(a),"center"===a[1])return void angular.element(o).css({top:"",bottom:"",right:"",left:"",margin:""});var l="border-"+a[0]+"-width",s=t.getComputedStyle(o)[l],u="border-";u+=n.vertical.test(a[0])?a[0]+"-"+a[1]:a[1]+"-"+a[0],u+="-radius";var c=t.getComputedStyle(r?i:e)[u],p={top:"auto",bottom:"auto",left:"auto",right:"auto",margin:0};switch(a[0]){case"top":p.bottom=r?"0":"-"+s;break;case"bottom":p.top=r?"0":"-"+s;break;case"left":p.right=r?"0":"-"+s;break;case"right":p.left=r?"0":"-"+s}p[a[1]]=c,angular.element(o).css(p)}}}}}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/datepicker.html",'&lt;div class="uib-datepicker" ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)"&gt;\n  &lt;uib-daypicker ng-switch-when="day" tabindex="0"&gt;&lt;/uib-daypicker&gt;\n  &lt;uib-monthpicker ng-switch-when="month" tabindex="0"&gt;&lt;/uib-monthpicker&gt;\n  &lt;uib-yearpicker ng-switch-when="year" tabindex="0"&gt;&lt;/uib-yearpicker&gt;\n&lt;/div&gt;')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'&lt;table class="uib-daypicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}"&gt;\n  &lt;thead&gt;\n    &lt;tr&gt;\n      &lt;th&gt;&lt;button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"&gt;&lt;i class="glyphicon glyphicon-chevron-left"&gt;&lt;/i&gt;&lt;/button&gt;&lt;/th&gt;\n      &lt;th colspan="{{::5 + showWeeks}}"&gt;&lt;button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"&gt;&lt;strong&gt;{{title}}&lt;/strong&gt;&lt;/button&gt;&lt;/th&gt;\n      &lt;th&gt;&lt;button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"&gt;&lt;i class="glyphicon glyphicon-chevron-right"&gt;&lt;/i&gt;&lt;/button&gt;&lt;/th&gt;\n    &lt;/tr&gt;\n    &lt;tr&gt;\n      &lt;th ng-if="showWeeks" class="text-center"&gt;&lt;/th&gt;\n      &lt;th ng-repeat="label in ::labels track by $index" class="text-center"&gt;&lt;small aria-label="{{::label.full}}"&gt;{{::label.abbr}}&lt;/small&gt;&lt;/th&gt;\n    &lt;/tr&gt;\n  &lt;/thead&gt;\n  &lt;tbody&gt;\n    &lt;tr class="uib-weeks" ng-repeat="row in rows track by $index"&gt;\n      &lt;td ng-if="showWeeks" class="text-center h6"&gt;&lt;em&gt;{{ weekNumbers[$index] }}&lt;/em&gt;&lt;/td&gt;\n      &lt;td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass"&gt;\n        &lt;button type="button" class="btn btn-default btn-sm"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"&gt;&lt;span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}"&gt;{{::dt.label}}&lt;/span&gt;&lt;/button&gt;\n      &lt;/td&gt;\n    &lt;/tr&gt;\n  &lt;/tbody&gt;\n&lt;/table&gt;\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/month.html",'&lt;table class="uib-monthpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}"&gt;\n  &lt;thead&gt;\n    &lt;tr&gt;\n      &lt;th&gt;&lt;button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"&gt;&lt;i class="glyphicon glyphicon-chevron-left"&gt;&lt;/i&gt;&lt;/button&gt;&lt;/th&gt;\n      &lt;th&gt;&lt;button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"&gt;&lt;strong&gt;{{title}}&lt;/strong&gt;&lt;/button&gt;&lt;/th&gt;\n      &lt;th&gt;&lt;button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"&gt;&lt;i class="glyphicon glyphicon-chevron-right"&gt;&lt;/i&gt;&lt;/button&gt;&lt;/th&gt;\n    &lt;/tr&gt;\n  &lt;/thead&gt;\n  &lt;tbody&gt;\n    &lt;tr class="uib-months" ng-repeat="row in rows track by $index"&gt;\n      &lt;td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass"&gt;\n        &lt;button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"&gt;&lt;span ng-class="::{\'text-info\': dt.current}"&gt;{{::dt.label}}&lt;/span&gt;&lt;/button&gt;\n      &lt;/td&gt;\n    &lt;/tr&gt;\n  &lt;/tbody&gt;\n&lt;/table&gt;\n');
}]),angular.module("uib/template/datepicker/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/popup.html",'&lt;div&gt;\n  &lt;ul class="uib-datepicker-popup dropdown-menu" dropdown-nested ng-if="isOpen" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()"&gt;\n    &lt;li ng-transclude&gt;&lt;/li&gt;\n    &lt;li ng-if="showButtonBar" class="uib-button-bar"&gt;\n    &lt;span class="btn-group pull-left"&gt;\n      &lt;button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\')" ng-disabled="isDisabled(\'today\')"&gt;{{ getText(\'current\') }}&lt;/button&gt;\n      &lt;button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null)"&gt;{{ getText(\'clear\') }}&lt;/button&gt;\n    &lt;/span&gt;\n      &lt;button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close()"&gt;{{ getText(\'close\') }}&lt;/button&gt;\n    &lt;/li&gt;\n  &lt;/ul&gt;\n&lt;/div&gt;\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/year.html",'&lt;table class="uib-yearpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}"&gt;\n  &lt;thead&gt;\n    &lt;tr&gt;\n      &lt;th&gt;&lt;button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"&gt;&lt;i class="glyphicon glyphicon-chevron-left"&gt;&lt;/i&gt;&lt;/button&gt;&lt;/th&gt;\n      &lt;th colspan="{{::columns - 2}}"&gt;&lt;button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"&gt;&lt;strong&gt;{{title}}&lt;/strong&gt;&lt;/button&gt;&lt;/th&gt;\n      &lt;th&gt;&lt;button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"&gt;&lt;i class="glyphicon glyphicon-chevron-right"&gt;&lt;/i&gt;&lt;/button&gt;&lt;/th&gt;\n    &lt;/tr&gt;\n  &lt;/thead&gt;\n  &lt;tbody&gt;\n    &lt;tr class="uib-years" ng-repeat="row in rows track by $index"&gt;\n      &lt;td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass"&gt;\n        &lt;button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"&gt;&lt;span ng-class="::{\'text-info\': dt.current}"&gt;{{::dt.label}}&lt;/span&gt;&lt;/button&gt;\n      &lt;/td&gt;\n    &lt;/tr&gt;\n  &lt;/tbody&gt;\n&lt;/table&gt;\n')}]),angular.module("ui.bootstrap.datepicker").run(function(){!angular.$$csp().noInlineStyle&amp;&amp;angular.element(document).find("head").prepend('&lt;style type="text/css"&gt;.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-datepicker-popup.dropdown-menu{display:block;}.uib-button-bar{padding:10px 9px 2px;}&lt;/style&gt;')});;!function(){"use strict";var e=angular.module("hotelesPage");e.config(["uibDatepickerConfig","uibDatepickerPopupConfig",function(e,a){e.startingDay=1,e.showWeeks=!1,e.shortcutPropagation=!1,e.yearRange=2,a.datepickerPopup="EEEE dd/MM/yyyy",a.clearText="Limpiar",a.closeText="Cerrar"}]),e.controller("BuscadorController",["$http","$scope","$rootScope","$interval","$mdDialog","$templateCache",function(u,r,v,e,t,n){var a=function(e,a){this.id=e,this.label=a||e},i=function(e){this.id=e,this.label=e,this.visible=0&lt;e,this.values=[new a(-1,"-"),new a(0),new a(1),new a(2),new a(3),new a(4),new a(5),new a(6),new a(7),new a(8),new a(9),new a(10),new a(11),new a(12),new a(13),new a(14),new a(15),new a(16)],this.value=this.values[0]},s=function(e){this.id=e,this.label=e,this.adultos={value:null,values:[new a(1),new a(2),new a(3),new a(4),new a(5),new a(6)]},this.adultos.value=this.adultos.values[1],this.ninos={value:null,values:[new i(0),new i(1),new i(2),new i(3),new i(4)]},this.ninos.value=this.ninos.values[0]},g=this,o=null;if(void 0!==window.ajax_default&amp;&amp;(o=window.ajax_default),this.lanzar=!1,this.fechas=!1,this.texto="",this.destinos=[],this.hoteles=[],this.checked={seccion:0,actual:-1},this.buscando=!1,this.seleccionado=null,this.entrada=new Date,this.salida=new Date(this.entrada.getTime()+864e5),this.entrada_open=!1,this.salida_open=!1,this.min_entrada=new Date,this.min_salida=new Date(this.min_entrada.getTime()+864e5),this.max_salida=new Date(this.min_salida.getTime()+25056e5),this.noches={value:null,values:[new a(1),new a(2),new a(3),new a(4),new a(5),new a(6),new a(7),new a(8),new a(9),new a(10),new a(11),new a(12),new a(13),new a(14),new a(15),new a(16),new a(17),new a(18),new a(19),new a(20),new a(21),new a(22),new a(23),new a(24),new a(25),new a(26),new a(27),new a(28),new a(29),new a(30)]},this.noches.value=this.noches.values[0],this.habitaciones={value:null,values:[new s(1),new s(2),new s(3),new s(4),new s(5)]},this.habitaciones.value=this.habitaciones.values[0],null!==o){if(this.texto=o.nombre,void 0!==o.entrada){this.entrada=new Date(o.entrada),this.salida=new Date(o.salida),this.noches.value=g.noches.values[o.noches-1],this.habitaciones.value=g.habitaciones.values[o.habitaciones.length-1],this.nadultos=0;for(var c=this.nninos=0;c&lt;o.habitaciones.length;c++){this.habitaciones.values[c].adultos.value=g.habitaciones.values[c].adultos.values[o.habitaciones[c].adultos-1];for(var l=0;l&lt;o.habitaciones[c].ninos.length;l++){this.habitaciones.values[c].ninos.value=g.habitaciones.values[l].ninos.values[o.habitaciones[c].ninos.length];for(var h=0;h&lt;o.habitaciones[c].ninos.length;h++)this.habitaciones.values[c].ninos.values[h+1].value=g.habitaciones.values[c].ninos.values[h].values[o.habitaciones[c].ninos[h]+1]}this.nadultos=this.habitaciones.values[c].adultos.value.id+this.nadultos,this.nninos=this.habitaciones.values[c].ninos.value.id+this.nninos}}this.seleccionado=o}this.openEntrada=function(e){e.preventDefault(),e.stopPropagation(),this.entrada_open=!this.entrada_open,this.salida_open=!1},this.openSalida=function(e){e.preventDefault(),e.stopPropagation(),this.salida_open=!this.salida_open,this.entrada_open=!1},this.clear=function(){g.texto=""},r.$watch(function(){return g.entrada},function(){g.min_salida=new Date(g.entrada.getTime()+864e5),g.max_salida=new Date(g.min_salida.getTime()+25056e5),void 0===g.noches.value&amp;&amp;(g.noches.value=g.noches.values[0]),g.salida=new Date(g.entrada.getTime()+864e5*g.noches.value.id)}),r.$watch(function(){return g.noches.value},function(){void 0===g.noches.value&amp;&amp;(g.noches.value=g.noches.values[0]),g.salida=new Date(g.entrada.getTime()+864e5*g.noches.value.id)}),r.$watch(function(){return g.salida},function(){g.noches.value=g.noches.values[Config.restarDias(g.entrada,g.salida)-1]}),r.$watch(function(){return g.texto},function(){null!==g.seleccionado&amp;&amp;g.seleccionado.nombre===g.texto||(g.destinos=[],g.hoteles=[],3&lt;=g.texto.length&amp;&amp;(g.seleccionado=null,g.checked.seccion=0,g.checked.actual=-1,g.buscar(g.texto)))}),this.tratar=function(e,a){for(var t=[],n=a.hits.length,i=0;i&lt;n;i++){var s=a.hits[i],o=s.jerarquia;o.pop(),1===e?t.push({tipo:1,nombre:s.nombre+" ("+o.join(", ")+")",descripcion:s.alojamientos+" alojamiento"+(1!==s.alojamientos?"s":""),url:s.url,destino:s.id}):("ES"===s.pais&amp;&amp;o.pop(),t.push({tipo:2,nombre:s.nombre,descripcion:o.join(", "),url:s.url,destino:s.destino,hotel:s.id2,hotel_code:s.id}))}if(void 0!==a.other)for(n=a.other.length,i=0;i&lt;n;i++)t=t.concat(this.tratar(e,a.other[i]));return t},this.buscar=function(n){1===Config.search_engine?u.get(Config.search_engine_base+"web/search/hoteles/v1/txt/"+n.replace(/\//g,"")).then(function(e){g.texto.trim()===n.trim()&amp;&amp;(200===e.status&amp;&amp;e.data.ok&amp;&amp;(g.destinos=g.tratar(1,e.data.destinos),g.hoteles=g.tratar(2,e.data.alojamientos)),g.buscando=!1)}):u.get(Config.peticiones+"/ajax_neo.php",{params:{texto:n}}).then(function(e){if(g.texto.trim()===n.trim()){if(200===e.status)for(var a=0;a&lt;e.data.listado.length;a++){var t=e.data.listado[a];1===t.tipo?g.destinos.push(t):g.hoteles.push(t)}g.buscando=!1}})},v.navegar=function(e){if(0!==g.destinos.length||0!==g.hoteles.length)if(38===e.keyCode)g.checked.actual&lt;0?0&lt;g.hoteles.length?(g.checked.seccion=1,g.checked.actual=g.hoteles.length-1):(g.checked.seccion=0,g.checked.actual=g.destinos.length-1):g.checked.actual--,0===g.checked.seccion?g.checked.actual&lt;0&amp;&amp;(0&lt;g.hoteles.length?(g.checked.seccion=1,g.checked.actual=g.hoteles.length-1):g.checked.actual=g.destinos.length-1):g.checked.actual&lt;0&amp;&amp;(0&lt;g.destinos.length?(g.checked.seccion=0,g.checked.actual=g.destinos.length-1):g.checked.actual=g.hoteles.length-1),a=33.5+36.375*g.checked.actual,1==g.checked.seccion&amp;&amp;0&lt;g.destinos.length&amp;&amp;(a+=33.5+36.375*g.destinos.length),document.getElementById("resultados").scrollTop=Math.max(0,a-179);else if(40==e.keyCode)g.checked.actual&lt;0?(0&lt;g.destinos.length?g.checked.seccion=0:g.checked.seccion=1,g.checked.actual=0):g.checked.actual++,0==g.checked.seccion?g.checked.actual&gt;=g.destinos.length&amp;&amp;(0&lt;g.hoteles.length&amp;&amp;(g.checked.seccion=1),g.checked.actual=0):g.checked.actual&gt;=g.hoteles.length&amp;&amp;(0&lt;g.destinos.length&amp;&amp;(g.checked.seccion=0),g.checked.actual=0),a=33.5+36.375*g.checked.actual,1==g.checked.seccion&amp;&amp;0&lt;g.destinos.length&amp;&amp;(a+=33.5+36.375*g.destinos.length),document.getElementById("resultados").scrollTop=Math.max(0,a-179);else if(13==e.keyCode){var a;0==g.checked.seccion?0&lt;=g.checked.actual&amp;&amp;g.checked.actual&lt;g.destinos.length&amp;&amp;g.seleccionar(e,g.destinos[g.checked.actual]):0&lt;=g.checked.actual&amp;&amp;g.checked.actual&lt;g.hoteles.length&amp;&amp;g.seleccionar(e,g.hoteles[g.checked.actual])}else 27==e.keyCode&amp;&amp;v.clickOutside()},this.seleccionar=function(e,a){if(this.seleccionado=a,this.texto=a.nombre,e.preventDefault(),e.stopPropagation(),1===Config.search_engine){var t=this;u.get("https://services.meteored.com/web/search/hoteles/v1/check/"+(1==a.tipo?"destino":"alojamiento")+"/"+(1==a.tipo?a.destino:a.hotel_code)).then(function(){null!==t.seleccionado&amp;&amp;t.fechas&amp;&amp;(window.location=t.seleccionado.url)})}else null!==this.seleccionado&amp;&amp;this.fechas&amp;&amp;(window.location=this.seleccionado.url)},this.ejecutar=function(){if(null!==this.seleccionado)if(this.fechas)window.location=this.seleccionado.url;else{var e=new Date;(e=[e.getFullYear(),e.getMonth()+1,e.getDate()])[1]&lt;10&amp;&amp;(e[1]="0"+e[1]),e[2]&lt;10&amp;&amp;(e[2]="0"+e[2]);var a=[this.entrada.getFullYear(),this.entrada.getMonth()+1,this.entrada.getDate()];a[1]&lt;10&amp;&amp;(a[1]="0"+a[1]),a[2]&lt;10&amp;&amp;(a[2]="0"+a[2]),((a=a.join("-"))!==e.join("-")||confirm("La busqueda que va a realizar es para Hoy:\n"+e[2]+"/"+e[1]+"/"+e[0]+".\nÂ¿Desea continuar con la busqueda?"))&amp;&amp;this.pedir(a)}else r.alert("Por favor, seleccione un destino u hotel")},this.pedir=function(e){!0===e&amp;&amp;((e=[g.entrada.getFullYear(),g.entrada.getMonth()+1,g.entrada.getDate()])[1]&lt;10&amp;&amp;(e[1]="0"+e[1]),e[2]&lt;10&amp;&amp;(e[2]="0"+e[2]),e=e.join("-"));for(var a={tipo:"ids",destino:g.seleccionado.destino,hotel:1===g.seleccionado.tipo?null:g.seleccionado.hotel,entrada:e,noches:g.noches.value.id,buscador:g.texto,habitaciones:[]},t=0;t&lt;g.habitaciones.value.id;t++){var n=g.habitaciones.values[t];if(void 0===n.adultos.value.id)var i=n.adultos.value;else i=n.adultos.value.id;var s={adultos:i,ninos:[]};if(void 0===n.ninos.value.id)var o=n.ninos.value;else o=n.ninos.value.id;for(var c=0;c&lt;o;c++){var l=n.ninos.values[c+1].value;if(void 0===l.id)var h=l;else h=l.id;if(h&lt;0)return void r.alert("Debe indicar la edad de todos los niÃ±os.");s.ninos.push(h)}a.habitaciones.push(s)}a.habitaciones=JSON.stringify(a.habitaciones),this.lanzar=!0,r.enviando=!0;var d=Config.peticiones+"/disponibilidad.php";LocalStorage.delItem("hoteles",""),LocalStorage.delItem("hotel",""),u.get(d,{params:a}).success(function(e){0===e.status?0===e.hotel?location.href=Config.base_sec+"/busqueda/hoteles-en-"+e.destino+"/"+e.ids:location.href=Config.base_sec+"/busqueda/"+e.ids+"/ficha/"+e.hotel:(alert(e.mensaje),r.enviando=!1)}).error(function(){v.lanzar=!1,g.lanzar=!1})},this.close=function(){t.hide()},v.clickOutside=function(){g.destinos=[],g.hoteles=[]},r.abrirBuscador=function(a){var t=n.get("busca-directorio.html");void 0===t?u.get(Config.peticiones+"/templates/template.php",{params:{tmpl:"BuscaDirectorio"}}).success(function(e){t='&lt;md-dialog aria-label="Buscar" id="fbuscadordirectorio" class="dialog_movil"&gt;&lt;md-dialog-content class="sticky-container"&gt;&lt;header class="mvl"&gt;&lt;h2&gt;Buscar&lt;/h2&gt;&lt;span class="cerrar_dialog_mvl" ng-click="buscador.close();"&gt;&lt;/span&gt;&lt;/header&gt;'+e+'&lt;img-transicion ng-show="buscador.lanzar"&gt;&lt;/img-transicion&gt;&lt;/md-dialog-content&gt;&lt;/md-dialog&gt;',n.put("busca-directorio.html",t),r.abrirBuscadorOK(a,t)}).error(function(){}):r.abrirBuscadorOK(a,t)},r.abrirBuscadorOK=function(e,a){t.show({controller:"BuscadorController",controllerAs:"buscador",template:a,targetEvent:e,clickOutsideToClose:!0}),e.stopPropagation()}}])}();;(function(){function n(n,t){if(n!==t){var r=null===n,e=n===b,u=n===n,o=null===t,i=t===b,f=t===t;if(n&gt;t&amp;&amp;!o||!u||r&amp;&amp;!i&amp;&amp;f||e&amp;&amp;f)return 1;if(n&lt;t&amp;&amp;!r||!f||o&amp;&amp;!e&amp;&amp;u||i&amp;&amp;u)return-1}return 0}function t(n,t,r){for(var e=n.length,u=r?e:-1;r?u--:++u&lt;e;)if(t(n[u],u,n))return u;return-1}function r(n,t,r){if(t!==t)return p(n,r);r-=1;for(var e=n.length;++r&lt;e;)if(n[r]===t)return r;return-1}function e(n){return"function"==typeof n||!1}function u(n){return null==n?"":n+""}function o(n,t){for(var r=-1,e=n.length;++r&lt;e&amp;&amp;-1&lt;t.indexOf(n.charAt(r)););return r}function i(n,t){for(var r=n.length;r--&amp;&amp;-1&lt;t.indexOf(n.charAt(r)););return r}function f(t,r){return n(t.a,r.a)||t.b-r.b}function c(n){return Nn[n]}function a(n){return Tn[n]}function l(n,t,r){return t?n=Bn[n]:r&amp;&amp;(n=Dn[n]),"\\"+n}function s(n){return"\\"+Dn[n]}function p(n,t,r){var e=n.length;for(t+=r?0:-1;r?t--:++t&lt;e;){var u=n[t];if(u!==u)return t}return-1}function h(n){return!!n&amp;&amp;"object"==typeof n}function _(n){return 160&gt;=n&amp;&amp;9&lt;=n&amp;&amp;13&gt;=n||32==n||160==n||5760==n||6158==n||8192&lt;=n&amp;&amp;(8202&gt;=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n)}function v(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r&lt;e;)n[r]===t&amp;&amp;(n[r]=z,o[++u]=r);return o}function g(n){for(var t=-1,r=n.length;++t&lt;r&amp;&amp;_(n.charCodeAt(t)););return t}function y(n){for(var t=n.length;t--&amp;&amp;_(n.charCodeAt(t)););return t}function d(n){return Ln[n]}function w(_){function Nn(n){if(h(n)&amp;&amp;!(Oo(n)||n instanceof zn)){if(n instanceof Ln)return n;if(nu.call(n,"__chain__")&amp;&amp;nu.call(n,"__wrapped__"))return Mr(n)}return new Ln(n)}function Tn(){}function Ln(n,t,r){this.__wrapped__=n,this.__actions__=r||[],this.__chain__=!!t}function zn(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ru,this.__views__=[]}function Bn(){this.__data__={}}function Dn(n){var t=n?n.length:0;for(this.data={hash:gu(null),set:new lu};t--;)this.push(n[t])}function Mn(n,t){var r=n.data;return("string"==typeof t||ge(t)?r.set.has(t):r.hash[t])?0:-1}function qn(n,t){var r=-1,e=n.length;for(t||(t=Be(e));++r&lt;e;)t[r]=n[r];return t}function Pn(n,t){for(var r=-1,e=n.length;++r&lt;e&amp;&amp;!1!==t(n[r],r,n););return n}function Kn(n,t){for(var r=-1,e=n.length;++r&lt;e;)if(!t(n[r],r,n))return!1;return!0}function Vn(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r&lt;e;){var i=n[r];t(i,r,n)&amp;&amp;(o[++u]=i)}return o}function Gn(n,t){for(var r=-1,e=n.length,u=Be(e);++r&lt;e;)u[r]=t(n[r],r,n);return u}function Jn(n,t){for(var r=-1,e=t.length,u=n.length;++r&lt;e;)n[u+r]=t[r];return n}function Xn(n,t,r,e){var u=-1,o=n.length;for(e&amp;&amp;o&amp;&amp;(r=n[++u]);++u&lt;o;)r=t(r,n[u],u,n);return r}function Hn(n,t){for(var r=-1,e=n.length;++r&lt;e;)if(t(n[r],r,n))return!0;return!1}function Qn(n,t,r,e){return n!==b&amp;&amp;nu.call(e,r)?n:t}function nt(n,t,r){for(var e=-1,u=zo(t),o=u.length;++e&lt;o;){var i=u[e],f=n[i],c=r(f,t[i],i,n,t);(c===c?c===f:f!==f)&amp;&amp;(f!==b||i in n)||(n[i]=c)}return n}function tt(n,t){return null==t?n:et(t,zo(t),n)}function rt(n,t){for(var r=-1,e=null==n,u=!e&amp;&amp;Er(n),o=u?n.length:0,i=t.length,f=Be(i);++r&lt;i;){var c=t[r];f[r]=u?Cr(c,o)?n[c]:b:e?b:n[c]}return f}function et(n,t,r){r||(r={});for(var e=-1,u=t.length;++e&lt;u;){var o=t[e];r[o]=n[o]}return r}function ut(n,t,r){var e=typeof n;return"function"==e?t===b?n:Bt(n,t,r):null==n?Fe:"object"==e?xt(n):t===b?ze(n):mt(n,t)}function ot(n,t,r,e,u,o,i){var f;if(r&amp;&amp;(f=u?r(n,e,u):r(n)),f!==b)return f;if(!ge(n))return n;if(e=Oo(n)){if(f=kr(n),!t)return qn(n,f)}else{var c=ru.call(n),a=c==K;if(c!=Z&amp;&amp;c!=B&amp;&amp;(!a||u))return Fn[c]?Rr(n,c,t):u?n:{};if(f=Ir(a?{}:n),!t)return tt(f,n)}for(o||(o=[]),i||(i=[]),u=o.length;u--;)if(o[u]==n)return i[u];return o.push(n),i.push(f),(e?Pn:_t)(n,function(e,u){f[u]=ot(e,t,r,u,n,o,i)}),f}function it(n,t,r){if("function"!=typeof n)throw new Ge(L);return su(function(){n.apply(b,r)},t)}function ft(n,t){var e=n?n.length:0,u=[];if(!e)return u;var o=-1,i=mr(),f=i===r,c=f&amp;&amp;t.length&gt;=F&amp;&amp;gu&amp;&amp;lu?new Dn(t):null,a=t.length;c&amp;&amp;(i=Mn,f=!1,t=c);n:for(;++o&lt;e;)if(c=n[o],f&amp;&amp;c===c){for(var l=a;l--;)if(t[l]===c)continue n;u.push(c)}else 0&gt;i(t,c,0)&amp;&amp;u.push(c);return u}function ct(n,t){var r=!0;return Su(n,function(n,e,u){return r=!!t(n,e,u)}),r}function at(n,t,r,e){var u=e,o=u;return Su(n,function(n,i,f){i=+t(n,i,f),(r(i,u)||i===e&amp;&amp;i===o)&amp;&amp;(u=i,o=n)}),o}function lt(n,t){var r=[];return Su(n,function(n,e,u){t(n,e,u)&amp;&amp;r.push(n)}),r}function st(n,t,r,e){var u;return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,!1):void 0}),u}function pt(n,t,r,e){e||(e=[]);for(var u=-1,o=n.length;++u&lt;o;){var i=n[u];h(i)&amp;&amp;Er(i)&amp;&amp;(r||Oo(i)||pe(i))?t?pt(i,t,r,e):Jn(e,i):r||(e[e.length]=i)}return e}function ht(n,t){Nu(n,t,Re)}function _t(n,t){return Nu(n,t,zo)}function vt(n,t){return Tu(n,t,zo)}function gt(n,t){for(var r=-1,e=t.length,u=-1,o=[];++r&lt;e;){var i=t[r];ve(n[i])&amp;&amp;(o[++u]=i)}return o}function yt(n,t,r){if(null!=n){r!==b&amp;&amp;r in Br(n)&amp;&amp;(t=[r]),r=0;for(var e=t.length;null!=n&amp;&amp;r&lt;e;)n=n[t[r++]];return r&amp;&amp;r==e?n:b}}function dt(n,t,r,e,u,o){if(n===t)n=!0;else if(null==n||null==t||!ge(n)&amp;&amp;!h(t))n=n!==n&amp;&amp;t!==t;else n:{var i=dt,f=Oo(n),c=Oo(t),a=D,l=D;f||(a=ru.call(n),a==B?a=Z:a!=Z&amp;&amp;(f=me(n))),c||(l=ru.call(t),l==B?l=Z:l!=Z&amp;&amp;me(t));var s=a==Z,c=l==Z,l=a==l;if(!l||f||s){if(!e&amp;&amp;(a=s&amp;&amp;nu.call(n,"__wrapped__"),c=c&amp;&amp;nu.call(t,"__wrapped__"),a||c)){n=i(a?n.value():n,c?t.value():t,r,e,u,o);break n}if(l){for(u||(u=[]),o||(o=[]),a=u.length;a--;)if(u[a]==n){n=o[a]==t;break n}u.push(n),o.push(t),n=(f?yr:wr)(n,t,i,r,e,u,o),u.pop(),o.pop()}else n=!1}else n=dr(n,t,a)}return n}function wt(n,t,r){var e=t.length,u=e,o=!r;if(null==n)return!u;for(n=Br(n);e--;){var i=t[e];if(o&amp;&amp;i[2]?i[1]!==n[i[0]]:!(i[0]in n))return!1}for(;++e&lt;u;){var i=t[e],f=i[0],c=n[f],a=i[1];if(o&amp;&amp;i[2]){if(c===b&amp;&amp;!(f in n))return!1}else if(i=r?r(c,a,f):b,i===b?!dt(a,c,r,!0):!i)return!1}return!0}function bt(n,t){var r=-1,e=Er(n)?Be(n.length):[];return Su(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function xt(n){var t=Ar(n);if(1==t.length&amp;&amp;t[0][2]){var r=t[0][0],e=t[0][1];return function(n){return null!=n&amp;&amp;(n[r]===e&amp;&amp;(e!==b||r in Br(n)))}}return function(n){return wt(n,t)}}function mt(n,t){var r=Oo(n),e=Wr(n)&amp;&amp;t===t&amp;&amp;!ge(t),u=n+"";return n=Dr(n),function(o){if(null==o)return!1;var i=u;if(o=Br(o),!(!r&amp;&amp;e||i in o)){if(o=1==n.length?o:yt(o,Et(n,0,-1)),null==o)return!1;i=Zr(n),o=Br(o)}return o[i]===t?t!==b||i in o:dt(t,o[i],b,!0)}}function At(n,t,r,e,u){if(!ge(n))return n;var o=Er(t)&amp;&amp;(Oo(t)||me(t)),i=o?b:zo(t);return Pn(i||t,function(f,c){if(i&amp;&amp;(c=f,f=t[c]),h(f)){e||(e=[]),u||(u=[]);n:{for(var a=c,l=e,s=u,p=l.length,_=t[a];p--;)if(l[p]==_){n[a]=s[p];break n}var p=n[a],v=r?r(p,_,a,n,t):b,g=v===b;g&amp;&amp;(v=_,Er(_)&amp;&amp;(Oo(_)||me(_))?v=Oo(p)?p:Er(p)?qn(p):[]:we(_)||pe(_)?v=pe(p)?ke(p):we(p)?p:{}:g=!1),l.push(_),s.push(v),g?n[a]=At(v,_,r,l,s):(v===v?v!==p:p===p)&amp;&amp;(n[a]=v)}}else a=n[c],l=r?r(a,f,c,n,t):b,(s=l===b)&amp;&amp;(l=f),l===b&amp;&amp;(!o||c in n)||!s&amp;&amp;(l===l?l===a:a!==a)||(n[c]=l)}),n}function jt(n){return function(t){return null==t?b:t[n]}}function kt(n){var t=n+"";return n=Dr(n),function(r){return yt(r,n,t)}}function It(n,t){for(var r=n?t.length:0;r--;){var e=t[r];if(e!=u&amp;&amp;Cr(e)){var u=e;pu.call(n,e,1)}}}function Rt(n,t){return n+yu(ku()*(t-n+1))}function Ot(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=!1,n):t(r,n,u,o)}),r}function Et(n,t,r){var e=-1,u=n.length;for(t=null==t?0:+t||0,0&gt;t&amp;&amp;(t=-t&gt;u?0:u+t),r=r===b||r&gt;u?u:+r||0,0&gt;r&amp;&amp;(r+=u),u=t&gt;r?0:r-t&gt;&gt;&gt;0,t&gt;&gt;&gt;=0,r=Be(u);++e&lt;u;)r[e]=n[e+t];return r}function Ct(n,t){var r;return Su(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function Ut(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].c;return n}function Wt(t,r,e){var u=br(),o=-1;return r=Gn(r,function(n){return u(n)}),t=bt(t,function(n){return{a:Gn(r,function(t){return t(n)}),b:++o,c:n}}),Ut(t,function(t,r){var u;n:{for(var o=-1,i=t.a,f=r.a,c=i.length,a=e.length;++o&lt;c;)if(u=n(i[o],f[o])){if(o&gt;=a)break n;o=e[o],u*="asc"===o||!0===o?1:-1;break n}u=t.b-r.b}return u})}function $t(n,t){var r=0;return Su(n,function(n,e,u){r+=+t(n,e,u)||0}),r}function St(n,t){var e=-1,u=mr(),o=n.length,i=u===r,f=i&amp;&amp;o&gt;=F,c=f&amp;&amp;gu&amp;&amp;lu?new Dn((void 0)):null,a=[];c?(u=Mn,i=!1):(f=!1,c=t?[]:a);n:for(;++e&lt;o;){var l=n[e],s=t?t(l,e,n):l;if(i&amp;&amp;l===l){for(var p=c.length;p--;)if(c[p]===s)continue n;t&amp;&amp;c.push(s),a.push(l)}else 0&gt;u(c,s,0)&amp;&amp;((t||f)&amp;&amp;c.push(s),a.push(l))}return a}function Ft(n,t){for(var r=-1,e=t.length,u=Be(e);++r&lt;e;)u[r]=n[t[r]];return u}function Nt(n,t,r,e){for(var u=n.length,o=e?u:-1;(e?o--:++o&lt;u)&amp;&amp;t(n[o],o,n););return r?Et(n,e?0:o,e?o+1:u):Et(n,e?o+1:0,e?u:o)}function Tt(n,t){var r=n;r instanceof zn&amp;&amp;(r=r.value());for(var e=-1,u=t.length;++e&lt;u;)var o=t[e],r=o.func.apply(o.thisArg,Jn([r],o.args));return r}function Lt(n,t,r){var e=0,u=n?n.length:e;if("number"==typeof t&amp;&amp;t===t&amp;&amp;u&lt;=Eu){for(;e&lt;u;){var o=e+u&gt;&gt;&gt;1,i=n[o];(r?i&lt;=t:i&lt;t)&amp;&amp;null!==i?e=o+1:u=o}return u}return zt(n,t,Fe,r)}function zt(n,t,r,e){t=r(t);for(var u=0,o=n?n.length:0,i=t!==t,f=null===t,c=t===b;u&lt;o;){var a=yu((u+o)/2),l=r(n[a]),s=l!==b,p=l===l;(i?p||e:f?p&amp;&amp;s&amp;&amp;(e||null!=l):c?p&amp;&amp;(e||s):null==l?0:e?l&lt;=t:l&lt;t)?u=a+1:o=a}return mu(o,Ou)}function Bt(n,t,r){if("function"!=typeof n)return Fe;if(t===b)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)};case 5:return function(r,e,u,o,i){return n.call(t,r,e,u,o,i)}}return function(){return n.apply(t,arguments)}}function Dt(n){var t=new ou(n.byteLength);return new hu(t).set(new hu(n)),t}function Mt(n,t,r){for(var e=r.length,u=-1,o=xu(n.length-e,0),i=-1,f=t.length,c=Be(f+o);++i&lt;f;)c[i]=t[i];for(;++u&lt;e;)c[r[u]]=n[u];for(;o--;)c[i++]=n[u++];return c}function qt(n,t,r){for(var e=-1,u=r.length,o=-1,i=xu(n.length-u,0),f=-1,c=t.length,a=Be(i+c);++o&lt;i;)a[o]=n[o];for(i=o;++f&lt;c;)a[i+f]=t[f];for(;++e&lt;u;)a[i+r[e]]=n[o++];return a}function Pt(n,t){return function(r,e,u){var o=t?t():{};if(e=br(e,u,3),Oo(r)){u=-1;for(var i=r.length;++u&lt;i;){var f=r[u];n(o,f,e(f,u,r),r)}}else Su(r,function(t,r,u){n(o,t,e(t,r,u),u)});return o}}function Kt(n){return le(function(t,r){var e=-1,u=null==t?0:r.length,o=2&lt;u?r[u-2]:b,i=2&lt;u?r[2]:b,f=1&lt;u?r[u-1]:b;for("function"==typeof o?(o=Bt(o,f,5),u-=2):(o="function"==typeof f?f:b,u-=o?1:0),i&amp;&amp;Ur(r[0],r[1],i)&amp;&amp;(o=3&gt;u?b:o,u=1);++e&lt;u;)(i=r[e])&amp;&amp;n(t,i,o);return t})}function Vt(n,t){return function(r,e){var u=r?Bu(r):0;if(!Sr(u))return n(r,e);for(var o=t?u:-1,i=Br(r);(t?o--:++o&lt;u)&amp;&amp;!1!==e(i[o],o,i););return r}}function Zt(n){return function(t,r,e){var u=Br(t);e=e(t);for(var o=e.length,i=n?o:-1;n?i--:++i&lt;o;){var f=e[i];if(!1===r(u[f],f,u))break}return t}}function Yt(n,t){function r(){return(this&amp;&amp;this!==Zn&amp;&amp;this instanceof r?e:n).apply(t,arguments)}var e=Jt(n);return r}function Gt(n){return function(t){var r=-1;t=$e(Ce(t));for(var e=t.length,u="";++r&lt;e;)u=n(u,t[r],r);return u}}function Jt(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=$u(n.prototype),t=n.apply(r,t);return ge(t)?t:r}}function Xt(n){function t(r,e,u){return u&amp;&amp;Ur(r,e,u)&amp;&amp;(e=b),r=gr(r,n,b,b,b,b,b,e),r.placeholder=t.placeholder,r}return t}function Ht(n,t){return le(function(r){var e=r[0];return null==e?e:(r.push(t),n.apply(b,r))})}function Qt(n,t){return function(r,e,u){if(u&amp;&amp;Ur(r,e,u)&amp;&amp;(e=b),e=br(e,u,3),1==e.length){u=r=Oo(r)?r:zr(r);for(var o=e,i=-1,f=u.length,c=t,a=c;++i&lt;f;){var l=u[i],s=+o(l);n(s,c)&amp;&amp;(c=s,a=l)}if(u=a,!r.length||u!==t)return u}return at(r,e,n,t)}}function nr(n,r){return function(e,u,o){return u=br(u,o,3),Oo(e)?(u=t(e,u,r),-1&lt;u?e[u]:b):st(e,u,n)}}function tr(n){return function(r,e,u){return r&amp;&amp;r.length?(e=br(e,u,3),t(r,e,n)):-1}}function rr(n){return function(t,r,e){return r=br(r,e,3),st(t,r,n,!0)}}function er(n){return function(){for(var t,r=arguments.length,e=n?r:-1,u=0,o=Be(r);n?e--:++e&lt;r;){var i=o[u++]=arguments[e];if("function"!=typeof i)throw new Ge(L);!t&amp;&amp;Ln.prototype.thru&amp;&amp;"wrapper"==xr(i)&amp;&amp;(t=new Ln([],(!0)))}for(e=t?-1:r;++e&lt;r;){var i=o[e],u=xr(i),f="wrapper"==u?zu(i):b;t=f&amp;&amp;$r(f[0])&amp;&amp;f[1]==(E|k|R|C)&amp;&amp;!f[4].length&amp;&amp;1==f[9]?t[xr(f[0])].apply(t,f[3]):1==i.length&amp;&amp;$r(i)?t[u]():t.thru(i)}return function(){var n=arguments,e=n[0];if(t&amp;&amp;1==n.length&amp;&amp;Oo(e)&amp;&amp;e.length&gt;=F)return t.plant(e).value();for(var u=0,n=r?o[u].apply(this,n):e;++u&lt;r;)n=o[u].call(this,n);return n}}}function ur(n,t){return function(r,e,u){return"function"==typeof e&amp;&amp;u===b&amp;&amp;Oo(r)?n(r,e):t(r,Bt(e,u,3))}}function or(n){return function(t,r,e){return("function"!=typeof r||e!==b)&amp;&amp;(r=Bt(r,e,3)),n(t,r,Re)}}function ir(n){return function(t,r,e){return("function"!=typeof r||e!==b)&amp;&amp;(r=Bt(r,e,3)),n(t,r)}}function fr(n){return function(t,r,e){var u={};return r=br(r,e,3),_t(t,function(t,e,o){o=r(t,e,o),e=n?o:e,t=n?t:o,u[e]=t}),u}}function cr(n){return function(t,r,e){return t=u(t),(n?t:"")+pr(t,r,e)+(n?"":t)}}function ar(n){var t=le(function(r,e){var u=v(e,t.placeholder);return gr(r,n,b,e,u)});return t}function lr(n,t){return function(r,e,u,o){var i=3&gt;arguments.length;return"function"==typeof e&amp;&amp;o===b&amp;&amp;Oo(r)?n(r,e,u,i):Ot(r,br(e,o,4),u,i,t)}}function sr(n,t,r,e,u,o,i,f,c,a){function l(){for(var w=arguments.length,x=w,j=Be(w);x--;)j[x]=arguments[x];if(e&amp;&amp;(j=Mt(j,e,u)),o&amp;&amp;(j=qt(j,o,i)),_||y){var x=l.placeholder,k=v(j,x),w=w-k.length;if(w&lt;a){var I=f?qn(f):b,w=xu(a-w,0),E=_?k:b,k=_?b:k,C=_?j:b,j=_?b:j;return t|=_?R:O,t&amp;=~(_?O:R),g||(t&amp;=~(m|A)),j=[n,t,r,C,E,j,k,I,c,w],I=sr.apply(b,j),$r(n)&amp;&amp;Du(I,j),I.placeholder=x,I}}if(x=p?r:this,I=h?x[n]:n,f)for(w=j.length,E=mu(f.length,w),k=qn(j);E--;)C=f[E],j[E]=Cr(C,w)?k[C]:b;return s&amp;&amp;c&lt;j.length&amp;&amp;(j.length=c),this&amp;&amp;this!==Zn&amp;&amp;this instanceof l&amp;&amp;(I=d||Jt(n)),I.apply(x,j)}var s=t&amp;E,p=t&amp;m,h=t&amp;A,_=t&amp;k,g=t&amp;j,y=t&amp;I,d=h?b:Jt(n);return l}function pr(n,t,r){return n=n.length,t=+t,n&lt;t&amp;&amp;wu(t)?(t-=n,r=null==r?" ":r+"",Ue(r,vu(t/r.length)).slice(0,t)):""}function hr(n,t,r,e){function u(){for(var t=-1,f=arguments.length,c=-1,a=e.length,l=Be(a+f);++c&lt;a;)l[c]=e[c];for(;f--;)l[c++]=arguments[++t];return(this&amp;&amp;this!==Zn&amp;&amp;this instanceof u?i:n).apply(o?r:this,l)}var o=t&amp;m,i=Jt(n);return u}function _r(n){var t=Pe[n];return function(n,r){return(r=r===b?0:+r||0)?(r=cu(10,r),t(n*r)/r):t(n)}}function vr(n){return function(t,r,e,u){var o=br(e);return null==e&amp;&amp;o===ut?Lt(t,r,n):zt(t,r,o(e,u,1),n)}}function gr(n,t,r,e,u,o,i,f){var c=t&amp;A;if(!c&amp;&amp;"function"!=typeof n)throw new Ge(L);var a=e?e.length:0;if(a||(t&amp;=~(R|O),e=u=b),a-=u?u.length:0,t&amp;O){var l=e,s=u;e=u=b}var p=c?b:zu(n);return r=[n,t,r,e,u,l,s,o,i,f],p&amp;&amp;(e=r[1],t=p[1],f=e|t,u=t==E&amp;&amp;e==k||t==E&amp;&amp;e==C&amp;&amp;r[7].length&lt;=p[8]||t==(E|C)&amp;&amp;e==k,(f&lt;E||u)&amp;&amp;(t&amp;m&amp;&amp;(r[2]=p[2],f|=e&amp;m?0:j),(e=p[3])&amp;&amp;(u=r[3],r[3]=u?Mt(u,e,p[4]):qn(e),r[4]=u?v(r[3],z):qn(p[4])),(e=p[5])&amp;&amp;(u=r[5],r[5]=u?qt(u,e,p[6]):qn(e),r[6]=u?v(r[5],z):qn(p[6])),(e=p[7])&amp;&amp;(r[7]=qn(e)),t&amp;E&amp;&amp;(r[8]=null==r[8]?p[8]:mu(r[8],p[8])),null==r[9]&amp;&amp;(r[9]=p[9]),r[0]=p[0],r[1]=f),t=r[1],f=r[9]),r[9]=null==f?c?0:n.length:xu(f-a,0)||0,(p?Lu:Du)(t==m?Yt(r[0],r[2]):t!=R&amp;&amp;t!=(m|R)||r[4].length?sr.apply(b,r):hr.apply(b,r),r)}function yr(n,t,r,e,u,o,i){var f=-1,c=n.length,a=t.length;if(c!=a&amp;&amp;(!u||a&lt;=c))return!1;for(;++f&lt;c;){var l=n[f],a=t[f],s=e?e(u?a:l,u?l:a,f):b;if(s!==b){if(s)continue;return!1}if(u){if(!Hn(t,function(n){return l===n||r(l,n,e,u,o,i)}))return!1}else if(l!==a&amp;&amp;!r(l,a,e,u,o,i))return!1}return!0}function dr(n,t,r){switch(r){case M:case q:return+n==+t;case P:return n.name==t.name&amp;&amp;n.message==t.message;case V:return n!=+n?t!=+t:n==+t;case Y:case G:return n==t+""}return!1}function wr(n,t,r,e,u,o,i){var f=zo(n),c=f.length,a=zo(t).length;if(c!=a&amp;&amp;!u)return!1;for(a=c;a--;){var l=f[a];if(!(u?l in t:nu.call(t,l)))return!1}for(var s=u;++a&lt;c;){var l=f[a],p=n[l],h=t[l],_=e?e(u?h:p,u?p:h,l):b;if(_===b?!r(p,h,e,u,o,i):!_)return!1;s||(s="constructor"==l)}return!(!s&amp;&amp;(r=n.constructor,e=t.constructor,r!=e&amp;&amp;"constructor"in n&amp;&amp;"constructor"in t&amp;&amp;!("function"==typeof r&amp;&amp;r instanceof r&amp;&amp;"function"==typeof e&amp;&amp;e instanceof e)))}function br(n,t,r){var e=Nn.callback||Se,e=e===Se?ut:e;return r?e(n,t,r):e}function xr(n){for(var t=n.name+"",r=Wu[t],e=r?r.length:0;e--;){var u=r[e],o=u.func;if(null==o||o==n)return u.name}return t}function mr(n,t,e){var u=Nn.indexOf||Vr,u=u===Vr?r:u;return n?u(n,t,e):u}function Ar(n){n=Oe(n);for(var t=n.length;t--;){var r=n[t][1];n[t][2]=r===r&amp;&amp;!ge(r)}return n}function jr(n,t){var r=null==n?b:n[t];return ye(r)?r:b}function kr(n){var t=n.length,r=new n.constructor(t);return t&amp;&amp;"string"==typeof n[0]&amp;&amp;nu.call(n,"index")&amp;&amp;(r.index=n.index,r.input=n.input),r}function Ir(n){return n=n.constructor,"function"==typeof n&amp;&amp;n instanceof n||(n=Ve),new n}function Rr(n,t,r){var e=n.constructor;switch(t){case J:return Dt(n);case M:case q:return new e((+n));case X:case H:case Q:case nn:case tn:case rn:case en:case un:case on:return t=n.buffer,new e(r?Dt(t):t,n.byteOffset,n.length);case V:case G:return new e(n);case Y:var u=new e(n.source,kn.exec(n));u.lastIndex=n.lastIndex}return u}function Or(n,t,r){return null==n||Wr(t,n)||(t=Dr(t),n=1==t.length?n:yt(n,Et(t,0,-1)),t=Zr(t)),t=null==n?n:n[t],null==t?b:t.apply(n,r)}function Er(n){return null!=n&amp;&amp;Sr(Bu(n))}function Cr(n,t){return n="number"==typeof n||On.test(n)?+n:-1,t=null==t?Cu:t,-1&lt;n&amp;&amp;0==n%1&amp;&amp;n&lt;t}function Ur(n,t,r){if(!ge(r))return!1;var e=typeof t;return!!("number"==e?Er(r)&amp;&amp;Cr(t,r.length):"string"==e&amp;&amp;t in r)&amp;&amp;(t=r[t],n===n?n===t:t!==t)}function Wr(n,t){var r=typeof n;return!!("string"==r&amp;&amp;dn.test(n)||"number"==r)||!Oo(n)&amp;&amp;(!yn.test(n)||null!=t&amp;&amp;n in Br(t))}function $r(n){var t=xr(n),r=Nn[t];return"function"==typeof r&amp;&amp;t in zn.prototype&amp;&amp;(n===r||(t=zu(r),!!t&amp;&amp;n===t[0]))}function Sr(n){return"number"==typeof n&amp;&amp;-1&lt;n&amp;&amp;0==n%1&amp;&amp;n&lt;=Cu}function Fr(n,t){return n===b?t:Eo(n,t,Fr)}function Nr(n,t){n=Br(n);for(var r=-1,e=t.length,u={};++r&lt;e;){var o=t[r];o in n&amp;&amp;(u[o]=n[o])}return u}function Tr(n,t){var r={};return ht(n,function(n,e,u){t(n,e,u)&amp;&amp;(r[e]=n)}),r}function Lr(n){for(var t=Re(n),r=t.length,e=r&amp;&amp;n.length,u=!!e&amp;&amp;Sr(e)&amp;&amp;(Oo(n)||pe(n)),o=-1,i=[];++o&lt;r;){var f=t[o];(u&amp;&amp;Cr(f,e)||nu.call(n,f))&amp;&amp;i.push(f)}return i}function zr(n){return null==n?[]:Er(n)?ge(n)?n:Ve(n):Ee(n)}function Br(n){return ge(n)?n:Ve(n)}function Dr(n){if(Oo(n))return n;var t=[];return u(n).replace(wn,function(n,r,e,u){t.push(e?u.replace(An,"$1"):r||n)}),t}function Mr(n){return n instanceof zn?n.clone():new Ln(n.__wrapped__,n.__chain__,qn(n.__actions__))}function qr(n,t,r){return n&amp;&amp;n.length?((r?Ur(n,t,r):null==t)&amp;&amp;(t=1),Et(n,0&gt;t?0:t)):[]}function Pr(n,t,r){var e=n?n.length:0;return e?((r?Ur(n,t,r):null==t)&amp;&amp;(t=1),t=e-(+t||0),Et(n,0,0&gt;t?0:t)):[]}function Kr(n){return n?n[0]:b}function Vr(n,t,e){var u=n?n.length:0;if(!u)return-1;if("number"==typeof e)e=0&gt;e?xu(u+e,0):e;else if(e)return e=Lt(n,t),e&lt;u&amp;&amp;(t===t?t===n[e]:n[e]!==n[e])?e:-1;return r(n,t,e||0)}function Zr(n){var t=n?n.length:0;return t?n[t-1]:b}function Yr(n){return qr(n,1)}function Gr(n,t,e,u){if(!n||!n.length)return[];null!=t&amp;&amp;"boolean"!=typeof t&amp;&amp;(u=e,e=Ur(n,t,u)?b:t,t=!1);var o=br();if((null!=e||o!==ut)&amp;&amp;(e=o(e,u,3)),t&amp;&amp;mr()===r){t=e;var i;e=-1,u=n.length;for(var o=-1,f=[];++e&lt;u;){var c=n[e],a=t?t(c,e,n):c;e&amp;&amp;i===a||(i=a,f[++o]=c)}n=f}else n=St(n,e);return n}function Jr(n){if(!n||!n.length)return[];var t=-1,r=0;n=Vn(n,function(n){return Er(n)?(r=xu(n.length,r),!0):void 0});for(var e=Be(r);++t&lt;r;)e[t]=Gn(n,jt(t));return e}function Xr(n,t,r){return n&amp;&amp;n.length?(n=Jr(n),null==t?n:(t=Bt(t,r,4),Gn(n,function(n){return Xn(n,t,b,!0)}))):[]}function Hr(n,t){var r=-1,e=n?n.length:0,u={};for(!e||t||Oo(n[0])||(t=[]);++r&lt;e;){var o=n[r];t?u[o]=t[r]:o&amp;&amp;(u[o[0]]=o[1])}return u}function Qr(n){return n=Nn(n),n.__chain__=!0,n}function ne(n,t,r){return t.call(r,n)}function te(n,t,r){var e=Oo(n)?Kn:ct;return r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b),("function"!=typeof t||r!==b)&amp;&amp;(t=br(t,r,3)),e(n,t)}function re(n,t,r){var e=Oo(n)?Vn:lt;return t=br(t,r,3),e(n,t)}function ee(n,t,r,e){var u=n?Bu(n):0;return Sr(u)||(n=Ee(n),u=n.length),r="number"!=typeof r||e&amp;&amp;Ur(t,r,e)?0:0&gt;r?xu(u+r,0):r||0,"string"==typeof n||!Oo(n)&amp;&amp;xe(n)?r&lt;=u&amp;&amp;-1&lt;n.indexOf(t,r):!!u&amp;&amp;-1&lt;mr(n,t,r)}function ue(n,t,r){var e=Oo(n)?Gn:bt;return t=br(t,r,3),e(n,t)}function oe(n,t,r){if(r?Ur(n,t,r):null==t){n=zr(n);var e=n.length;return 0&lt;e?n[Rt(0,e-1)]:b}r=-1,n=je(n);var e=n.length,u=e-1;for(t=mu(0&gt;t?0:+t||0,e);++r&lt;t;){var e=Rt(r,u),o=n[e];n[e]=n[r],n[r]=o}return n.length=t,n}function ie(n,t,r){var e=Oo(n)?Hn:Ct;return r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b),("function"!=typeof t||r!==b)&amp;&amp;(t=br(t,r,3)),e(n,t)}function fe(n,t){var r;if("function"!=typeof t){if("function"!=typeof n)throw new Ge(L);var e=n;n=t,t=e}return function(){return 0&lt;--n&amp;&amp;(r=t.apply(this,arguments)),1&gt;=n&amp;&amp;(t=b),r}}function ce(n,t,r){function e(t,r){r&amp;&amp;iu(r),c=p=h=b,t&amp;&amp;(_=ho(),a=n.apply(s,f),p||c||(f=s=b))}function u(){var n=t-(ho()-l);0&gt;=n||n&gt;t?e(h,c):p=su(u,n)}function o(){e(g,p)}function i(){if(f=arguments,l=ho(),s=this,h=g&amp;&amp;(p||!y),!1===v)var r=y&amp;&amp;!p;else{c||y||(_=l);var e=v-(l-_),i=0&gt;=e||e&gt;v;i?(c&amp;&amp;(c=iu(c)),_=l,a=n.apply(s,f)):c||(c=su(o,e))}return i&amp;&amp;p?p=iu(p):p||t===v||(p=su(u,t)),r&amp;&amp;(i=!0,a=n.apply(s,f)),!i||p||c||(f=s=b),a}var f,c,a,l,s,p,h,_=0,v=!1,g=!0;if("function"!=typeof n)throw new Ge(L);if(t=0&gt;t?0:+t||0,!0===r)var y=!0,g=!1;else ge(r)&amp;&amp;(y=!!r.leading,v="maxWait"in r&amp;&amp;xu(+r.maxWait||0,t),g="trailing"in r?!!r.trailing:g);return i.cancel=function(){p&amp;&amp;iu(p),c&amp;&amp;iu(c),_=0,c=p=h=b},i}function ae(n,t){function r(){var e=arguments,u=t?t.apply(this,e):e[0],o=r.cache;return o.has(u)?o.get(u):(e=n.apply(this,e),r.cache=o.set(u,e),e)}if("function"!=typeof n||t&amp;&amp;"function"!=typeof t)throw new Ge(L);return r.cache=new ae.Cache,r}function le(n,t){if("function"!=typeof n)throw new Ge(L);return t=xu(t===b?n.length-1:+t||0,0),function(){for(var r=arguments,e=-1,u=xu(r.length-t,0),o=Be(u);++e&lt;u;)o[e]=r[t+e];switch(t){case 0:return n.call(this,o);case 1:return n.call(this,r[0],o);case 2:return n.call(this,r[0],r[1],o)}for(u=Be(t+1),e=-1;++e&lt;t;)u[e]=r[e];return u[t]=o,n.apply(this,u)}}function se(n,t){return n&gt;t}function pe(n){return h(n)&amp;&amp;Er(n)&amp;&amp;nu.call(n,"callee")&amp;&amp;!au.call(n,"callee")}function he(n,t,r,e){return e=(r="function"==typeof r?Bt(r,e,3):b)?r(n,t):b,e===b?dt(n,t,r):!!e}function _e(n){return h(n)&amp;&amp;"string"==typeof n.message&amp;&amp;ru.call(n)==P}function ve(n){return ge(n)&amp;&amp;ru.call(n)==K}function ge(n){var t=typeof n;return!!n&amp;&amp;("object"==t||"function"==t)}function ye(n){return null!=n&amp;&amp;(ve(n)?uu.test(Qe.call(n)):h(n)&amp;&amp;Rn.test(n))}function de(n){return"number"==typeof n||h(n)&amp;&amp;ru.call(n)==V}function we(n){var t;if(!h(n)||ru.call(n)!=Z||pe(n)||!(nu.call(n,"constructor")||(t=n.constructor,"function"!=typeof t||t instanceof t)))return!1;var r;return ht(n,function(n,t){r=t}),r===b||nu.call(n,r)}function be(n){return ge(n)&amp;&amp;ru.call(n)==Y}function xe(n){return"string"==typeof n||h(n)&amp;&amp;ru.call(n)==G}function me(n){return h(n)&amp;&amp;Sr(n.length)&amp;&amp;!!Sn[ru.call(n)]}function Ae(n,t){return n&lt;t}function je(n){var t=n?Bu(n):0;return Sr(t)?t?qn(n):[]:Ee(n)}function ke(n){return et(n,Re(n))}function Ie(n){return gt(n,Re(n))}function Re(n){if(null==n)return[];ge(n)||(n=Ve(n));for(var t=n.length,t=t&amp;&amp;Sr(t)&amp;&amp;(Oo(n)||pe(n))&amp;&amp;t||0,r=n.constructor,e=-1,r="function"==typeof r&amp;&amp;r.prototype===n,u=Be(t),o=0&lt;t;++e&lt;t;)u[e]=e+"";for(var i in n)o&amp;&amp;Cr(i,t)||"constructor"==i&amp;&amp;(r||!nu.call(n,i))||u.push(i);return u}function Oe(n){n=Br(n);for(var t=-1,r=zo(n),e=r.length,u=Be(e);++t&lt;e;){var o=r[t];u[t]=[o,n[o]]}return u}function Ee(n){return Ft(n,zo(n))}function Ce(n){return(n=u(n))&amp;&amp;n.replace(En,c).replace(mn,"")}function Ue(n,t){var r="";if(n=u(n),t=+t,1&gt;t||!n||!wu(t))return r;do t%2&amp;&amp;(r+=n),t=yu(t/2),n+=n;while(t);return r}function We(n,t,r){var e=n;return(n=u(n))?(r?Ur(e,t,r):null==t)?n.slice(g(n),y(n)+1):(t+="",n.slice(o(n,t),i(n,t)+1)):n}function $e(n,t,r){return r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b),n=u(n),n.match(t||Wn)||[]}function Se(n,t,r){return r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b),h(n)?Ne(n):ut(n,t)}function Fe(n){return n}function Ne(n){return xt(ot(n,!0))}function Te(n,t,r){if(null==r){var e=ge(t),u=e?zo(t):b;((u=u&amp;&amp;u.length?gt(t,u):b)?u.length:e)||(u=!1,r=t,t=n,n=this)}u||(u=gt(t,zo(t)));var o=!0,e=-1,i=ve(n),f=u.length;!1===r?o=!1:ge(r)&amp;&amp;"chain"in r&amp;&amp;(o=r.chain);for(;++e&lt;f;){r=u[e];var c=t[r];n[r]=c,i&amp;&amp;(n.prototype[r]=function(t){return function(){var r=this.__chain__;if(o||r){var e=n(this.__wrapped__);return(e.__actions__=qn(this.__actions__)).push({func:t,args:arguments,thisArg:n}),e.__chain__=r,e}return t.apply(n,Jn([this.value()],arguments))}}(c))}return n}function Le(){}function ze(n){return Wr(n)?jt(n):kt(n)}_=_?Yn.defaults(Zn.Object(),_,Yn.pick(Zn,$n)):Zn;var Be=_.Array,De=_.Date,Me=_.Error,qe=_.Function,Pe=_.Math,Ke=_.Number,Ve=_.Object,Ze=_.RegExp,Ye=_.String,Ge=_.TypeError,Je=Be.prototype,Xe=Ve.prototype,He=Ye.prototype,Qe=qe.prototype.toString,nu=Xe.hasOwnProperty,tu=0,ru=Xe.toString,eu=Zn._,uu=Ze("^"+Qe.call(nu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&amp;").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ou=_.ArrayBuffer,iu=_.clearTimeout,fu=_.parseFloat,cu=Pe.pow,au=Xe.propertyIsEnumerable,lu=jr(_,"Set"),su=_.setTimeout,pu=Je.splice,hu=_.Uint8Array,_u=jr(_,"WeakMap"),vu=Pe.ceil,gu=jr(Ve,"create"),yu=Pe.floor,du=jr(Be,"isArray"),wu=_.isFinite,bu=jr(Ve,"keys"),xu=Pe.max,mu=Pe.min,Au=jr(De,"now"),ju=_.parseInt,ku=Pe.random,Iu=Ke.NEGATIVE_INFINITY,Ru=Ke.POSITIVE_INFINITY,Ou=4294967294,Eu=2147483647,Cu=9007199254740991,Uu=_u&amp;&amp;new _u,Wu={};Nn.support={},Nn.templateSettings={escape:_n,evaluate:vn,interpolate:gn,variable:"",imports:{_:Nn}};var $u=function(){function n(){}return function(t){if(ge(t)){n.prototype=t;var r=new n;n.prototype=b}return r||{}}}(),Su=Vt(_t),Fu=Vt(vt,!0),Nu=Zt(),Tu=Zt(!0),Lu=Uu?function(n,t){return Uu.set(n,t),n}:Fe,zu=Uu?function(n){return Uu.get(n)}:Le,Bu=jt("length"),Du=function(){var n=0,t=0;return function(r,e){var u=ho(),o=S-(u-t);if(t=u,0&lt;o){if(++n&gt;=$)return r}else n=0;return Lu(r,e)}}(),Mu=le(function(n,t){return h(n)&amp;&amp;Er(n)?ft(n,pt(t,!1,!0)):[]}),qu=tr(),Pu=tr(!0),Ku=le(function(n){for(var t=n.length,e=t,u=Be(l),o=mr(),i=o===r,f=[];e--;){var c=n[e]=Er(c=n[e])?c:[];u[e]=i&amp;&amp;120&lt;=c.length&amp;&amp;gu&amp;&amp;lu?new Dn(e&amp;&amp;c):null}var i=n[0],a=-1,l=i?i.length:0,s=u[0];n:for(;++a&lt;l;)if(c=i[a],0&gt;(s?Mn(s,c):o(f,c,0))){for(e=t;--e;){var p=u[e];if(0&gt;(p?Mn(p,c):o(n[e],c,0)))continue n}s&amp;&amp;s.push(c),f.push(c)}return f}),Vu=le(function(t,r){r=pt(r);var e=rt(t,r);return It(t,r.sort(n)),e}),Zu=vr(),Yu=vr(!0),Gu=le(function(n){return St(pt(n,!1,!0))}),Ju=le(function(n,t){return Er(n)?ft(n,t):[]}),Xu=le(Jr),Hu=le(function(n){var t=n.length,r=2&lt;t?n[t-2]:b,e=1&lt;t?n[t-1]:b;return 2&lt;t&amp;&amp;"function"==typeof r?t-=2:(r=1&lt;t&amp;&amp;"function"==typeof e?(--t,e):b,e=b),n.length=t,Xr(n,r,e)}),Qu=le(function(n){return n=pt(n),this.thru(function(t){t=Oo(t)?t:[Br(t)];for(var r=n,e=-1,u=t.length,o=-1,i=r.length,f=Be(u+i);++e&lt;u;)f[e]=t[e];for(;++o&lt;i;)f[e++]=r[o];return f})}),no=le(function(n,t){return rt(n,pt(t))}),to=Pt(function(n,t,r){nu.call(n,r)?++n[r]:n[r]=1}),ro=nr(Su),eo=nr(Fu,!0),uo=ur(Pn,Su),oo=ur(function(n,t){for(var r=n.length;r--&amp;&amp;!1!==t(n[r],r,n););return n},Fu),io=Pt(function(n,t,r){nu.call(n,r)?n[r].push(t):n[r]=[t]}),fo=Pt(function(n,t,r){n[r]=t}),co=le(function(n,t,r){var e=-1,u="function"==typeof t,o=Wr(t),i=Er(n)?Be(n.length):[];return Su(n,function(n){var f=u?t:o&amp;&amp;null!=n?n[t]:b;i[++e]=f?f.apply(n,r):Or(n,t,r)}),i}),ao=Pt(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),lo=lr(Xn,Su),so=lr(function(n,t,r,e){var u=n.length;for(e&amp;&amp;u&amp;&amp;(r=n[--u]);u--;)r=t(r,n[u],u,n);return r},Fu),po=le(function(n,t){if(null==n)return[];var r=t[2];return r&amp;&amp;Ur(t[0],t[1],r)&amp;&amp;(t.length=1),Wt(n,pt(t),[])}),ho=Au||function(){return(new De).getTime()},_o=le(function(n,t,r){var e=m;if(r.length)var u=v(r,_o.placeholder),e=e|R;return gr(n,e,t,r,u)}),vo=le(function(n,t){t=t.length?pt(t):Ie(n);for(var r=-1,e=t.length;++r&lt;e;){var u=t[r];n[u]=gr(n[u],m,n)}return n}),go=le(function(n,t,r){var e=m|A;if(r.length)var u=v(r,go.placeholder),e=e|R;return gr(t,e,n,r,u)}),yo=Xt(k),wo=Xt(I),bo=le(function(n,t){return it(n,1,t)}),xo=le(function(n,t,r){return it(n,t,r)}),mo=er(),Ao=er(!0),jo=le(function(n,t){if(t=pt(t),"function"!=typeof n||!Kn(t,e))throw new Ge(L);var r=t.length;return le(function(e){for(var u=mu(e.length,r);u--;)e[u]=t[u](e[u]);return n.apply(this,e)})}),ko=ar(R),Io=ar(O),Ro=le(function(n,t){return gr(n,C,b,b,b,pt(t))}),Oo=du||function(n){return h(n)&amp;&amp;Sr(n.length)&amp;&amp;ru.call(n)==D},Eo=Kt(At),Co=Kt(function(n,t,r){return r?nt(n,t,r):tt(n,t)}),Uo=Ht(Co,function(n,t){return n===b?t:n}),Wo=Ht(Eo,Fr),$o=rr(_t),So=rr(vt),Fo=or(Nu),No=or(Tu),To=ir(_t),Lo=ir(vt),zo=bu?function(n){var t=null==n?b:n.constructor;return"function"==typeof t&amp;&amp;t.prototype===n||"function"!=typeof n&amp;&amp;Er(n)?Lr(n):ge(n)?bu(n):[]}:Lr,Bo=fr(!0),Do=fr(),Mo=le(function(n,t){if(null==n)return{};if("function"!=typeof t[0])return t=Gn(pt(t),Ye),Nr(n,ft(Re(n),t));var r=Bt(t[0],t[1],3);return Tr(n,function(n,t,e){return!r(n,t,e)})}),qo=le(function(n,t){return null==n?{}:"function"==typeof t[0]?Tr(n,Bt(t[0],t[1],3)):Nr(n,pt(t))}),Po=Gt(function(n,t,r){return t=t.toLowerCase(),n+(r?t.charAt(0).toUpperCase()+t.slice(1):t)}),Ko=Gt(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Vo=cr(),Zo=cr(!0),Yo=Gt(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Go=Gt(function(n,t,r){return n+(r?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),Jo=le(function(n,t){try{return n.apply(b,t)}catch(r){return _e(r)?r:new Me(r)}}),Xo=le(function(n,t){return function(r){return Or(r,n,t)}}),Ho=le(function(n,t){return function(r){return Or(n,r,t)}}),Qo=_r("ceil"),ni=_r("floor"),ti=Qt(se,Iu),ri=Qt(Ae,Ru),ei=_r("round");return Nn.prototype=Tn.prototype,Ln.prototype=$u(Tn.prototype),Ln.prototype.constructor=Ln,zn.prototype=$u(Tn.prototype),zn.prototype.constructor=zn,Bn.prototype["delete"]=function(n){return this.has(n)&amp;&amp;delete this.__data__[n]},Bn.prototype.get=function(n){return"__proto__"==n?b:this.__data__[n]},Bn.prototype.has=function(n){return"__proto__"!=n&amp;&amp;nu.call(this.__data__,n)},Bn.prototype.set=function(n,t){return"__proto__"!=n&amp;&amp;(this.__data__[n]=t),this},Dn.prototype.push=function(n){var t=this.data;"string"==typeof n||ge(n)?t.set.add(n):t.hash[n]=!0},ae.Cache=Bn,Nn.after=function(n,t){if("function"!=typeof t){if("function"!=typeof n)throw new Ge(L);var r=n;n=t,t=r}return n=wu(n=+n)?n:0,function(){return 1&gt;--n?t.apply(this,arguments):void 0}},Nn.ary=function(n,t,r){return r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b),t=n&amp;&amp;null==t?n.length:xu(+t||0,0),gr(n,E,b,b,b,b,t)},Nn.assign=Co,Nn.at=no,Nn.before=fe,Nn.bind=_o,Nn.bindAll=vo,Nn.bindKey=go,Nn.callback=Se,Nn.chain=Qr,Nn.chunk=function(n,t,r){t=(r?Ur(n,t,r):null==t)?1:xu(yu(t)||1,1),r=0;for(var e=n?n.length:0,u=-1,o=Be(vu(e/t));r&lt;e;)o[++u]=Et(n,r,r+=t);return o},Nn.compact=function(n){for(var t=-1,r=n?n.length:0,e=-1,u=[];++t&lt;r;){var o=n[t];o&amp;&amp;(u[++e]=o)}return u},Nn.constant=function(n){return function(){return n}},Nn.countBy=to,Nn.create=function(n,t,r){var e=$u(n);return r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b),t?tt(e,t):e},Nn.curry=yo,Nn.curryRight=wo,Nn.debounce=ce,Nn.defaults=Uo,Nn.defaultsDeep=Wo,Nn.defer=bo,Nn.delay=xo,Nn.difference=Mu,Nn.drop=qr,Nn.dropRight=Pr,Nn.dropRightWhile=function(n,t,r){return n&amp;&amp;n.length?Nt(n,br(t,r,3),!0,!0):[]},Nn.dropWhile=function(n,t,r){return n&amp;&amp;n.length?Nt(n,br(t,r,3),!0):[]},Nn.fill=function(n,t,r,e){var u=n?n.length:0;if(!u)return[];for(r&amp;&amp;"number"!=typeof r&amp;&amp;Ur(n,t,r)&amp;&amp;(r=0,e=u),u=n.length,r=null==r?0:+r||0,0&gt;r&amp;&amp;(r=-r&gt;u?0:u+r),e=e===b||e&gt;u?u:+e||0,0&gt;e&amp;&amp;(e+=u),u=r&gt;e?0:e&gt;&gt;&gt;0,r&gt;&gt;&gt;=0;r&lt;u;)n[r++]=t;return n},Nn.filter=re,Nn.flatten=function(n,t,r){var e=n?n.length:0;return r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=!1),e?pt(n,t):[]},Nn.flattenDeep=function(n){return n&amp;&amp;n.length?pt(n,!0):[]},Nn.flow=mo,Nn.flowRight=Ao,Nn.forEach=uo,Nn.forEachRight=oo,Nn.forIn=Fo,Nn.forInRight=No,Nn.forOwn=To,Nn.forOwnRight=Lo,Nn.functions=Ie,Nn.groupBy=io,Nn.indexBy=fo,Nn.initial=function(n){return Pr(n,1)},Nn.intersection=Ku,Nn.invert=function(n,t,r){r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b),r=-1;for(var e=zo(n),u=e.length,o={};++r&lt;u;){var i=e[r],f=n[i];t?nu.call(o,f)?o[f].push(i):o[f]=[i]:o[f]=i}return o},Nn.invoke=co,Nn.keys=zo,Nn.keysIn=Re,Nn.map=ue,Nn.mapKeys=Bo,Nn.mapValues=Do,Nn.matches=Ne,Nn.matchesProperty=function(n,t){
return mt(n,ot(t,!0))},Nn.memoize=ae,Nn.merge=Eo,Nn.method=Xo,Nn.methodOf=Ho,Nn.mixin=Te,Nn.modArgs=jo,Nn.negate=function(n){if("function"!=typeof n)throw new Ge(L);return function(){return!n.apply(this,arguments)}},Nn.omit=Mo,Nn.once=function(n){return fe(2,n)},Nn.pairs=Oe,Nn.partial=ko,Nn.partialRight=Io,Nn.partition=ao,Nn.pick=qo,Nn.pluck=function(n,t){return ue(n,ze(t))},Nn.property=ze,Nn.propertyOf=function(n){return function(t){return yt(n,Dr(t),t+"")}},Nn.pull=function(){var n=arguments,t=n[0];if(!t||!t.length)return t;for(var r=0,e=mr(),u=n.length;++r&lt;u;)for(var o=0,i=n[r];-1&lt;(o=e(t,i,o));)pu.call(t,o,1);return t},Nn.pullAt=Vu,Nn.range=function(n,t,r){r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=r=b),n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=xu(vu((t-n)/(r||1)),0);for(var u=Be(t);++e&lt;t;)u[e]=n,n+=r;return u},Nn.rearg=Ro,Nn.reject=function(n,t,r){var e=Oo(n)?Vn:lt;return t=br(t,r,3),e(n,function(n,r,e){return!t(n,r,e)})},Nn.remove=function(n,t,r){var e=[];if(!n||!n.length)return e;var u=-1,o=[],i=n.length;for(t=br(t,r,3);++u&lt;i;)r=n[u],t(r,u,n)&amp;&amp;(e.push(r),o.push(u));return It(n,o),e},Nn.rest=Yr,Nn.restParam=le,Nn.set=function(n,t,r){if(null==n)return n;var e=t+"";t=null!=n[e]||Wr(t,n)?[e]:Dr(t);for(var e=-1,u=t.length,o=u-1,i=n;null!=i&amp;&amp;++e&lt;u;){var f=t[e];ge(i)&amp;&amp;(e==o?i[f]=r:null==i[f]&amp;&amp;(i[f]=Cr(t[e+1])?[]:{})),i=i[f]}return n},Nn.shuffle=function(n){return oe(n,Ru)},Nn.slice=function(n,t,r){var e=n?n.length:0;return e?(r&amp;&amp;"number"!=typeof r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=0,r=e),Et(n,t,r)):[]},Nn.sortBy=function(n,t,r){if(null==n)return[];r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b);var e=-1;return t=br(t,r,3),n=bt(n,function(n,r,u){return{a:t(n,r,u),b:++e,c:n}}),Ut(n,f)},Nn.sortByAll=po,Nn.sortByOrder=function(n,t,r,e){return null==n?[]:(e&amp;&amp;Ur(t,r,e)&amp;&amp;(r=b),Oo(t)||(t=null==t?[]:[t]),Oo(r)||(r=null==r?[]:[r]),Wt(n,t,r))},Nn.spread=function(n){if("function"!=typeof n)throw new Ge(L);return function(t){return n.apply(this,t)}},Nn.take=function(n,t,r){return n&amp;&amp;n.length?((r?Ur(n,t,r):null==t)&amp;&amp;(t=1),Et(n,0,0&gt;t?0:t)):[]},Nn.takeRight=function(n,t,r){var e=n?n.length:0;return e?((r?Ur(n,t,r):null==t)&amp;&amp;(t=1),t=e-(+t||0),Et(n,0&gt;t?0:t)):[]},Nn.takeRightWhile=function(n,t,r){return n&amp;&amp;n.length?Nt(n,br(t,r,3),!1,!0):[]},Nn.takeWhile=function(n,t,r){return n&amp;&amp;n.length?Nt(n,br(t,r,3)):[]},Nn.tap=function(n,t,r){return t.call(r,n),n},Nn.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new Ge(L);return!1===r?e=!1:ge(r)&amp;&amp;(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),ce(n,t,{leading:e,maxWait:+t,trailing:u})},Nn.thru=ne,Nn.times=function(n,t,r){if(n=yu(n),1&gt;n||!wu(n))return[];var e=-1,u=Be(mu(n,4294967295));for(t=Bt(t,r,1);++e&lt;n;)4294967295&gt;e?u[e]=t(e):t(e);return u},Nn.toArray=je,Nn.toPlainObject=ke,Nn.transform=function(n,t,r,e){var u=Oo(n)||me(n);return t=br(t,e,4),null==r&amp;&amp;(u||ge(n)?(e=n.constructor,r=u?Oo(n)?new e:[]:$u(ve(e)?e.prototype:b)):r={}),(u?Pn:_t)(n,function(n,e,u){return t(r,n,e,u)}),r},Nn.union=Gu,Nn.uniq=Gr,Nn.unzip=Jr,Nn.unzipWith=Xr,Nn.values=Ee,Nn.valuesIn=function(n){return Ft(n,Re(n))},Nn.where=function(n,t){return re(n,xt(t))},Nn.without=Ju,Nn.wrap=function(n,t){return t=null==t?Fe:t,gr(t,R,b,[n],[])},Nn.xor=function(){for(var n=-1,t=arguments.length;++n&lt;t;){var r=arguments[n];if(Er(r))var e=e?Jn(ft(e,r),ft(r,e)):r}return e?St(e):[]},Nn.zip=Xu,Nn.zipObject=Hr,Nn.zipWith=Hu,Nn.backflow=Ao,Nn.collect=ue,Nn.compose=Ao,Nn.each=uo,Nn.eachRight=oo,Nn.extend=Co,Nn.iteratee=Se,Nn.methods=Ie,Nn.object=Hr,Nn.select=re,Nn.tail=Yr,Nn.unique=Gr,Te(Nn,Nn),Nn.add=function(n,t){return(+n||0)+(+t||0)},Nn.attempt=Jo,Nn.camelCase=Po,Nn.capitalize=function(n){return(n=u(n))&amp;&amp;n.charAt(0).toUpperCase()+n.slice(1)},Nn.ceil=Qo,Nn.clone=function(n,t,r,e){return t&amp;&amp;"boolean"!=typeof t&amp;&amp;Ur(n,t,r)?t=!1:"function"==typeof t&amp;&amp;(e=r,r=t,t=!1),"function"==typeof r?ot(n,t,Bt(r,e,3)):ot(n,t)},Nn.cloneDeep=function(n,t,r){return"function"==typeof t?ot(n,!0,Bt(t,r,3)):ot(n,!0)},Nn.deburr=Ce,Nn.endsWith=function(n,t,r){n=u(n),t+="";var e=n.length;return r=r===b?e:mu(0&gt;r?0:+r||0,e),r-=t.length,0&lt;=r&amp;&amp;n.indexOf(t,r)==r},Nn.escape=function(n){return(n=u(n))&amp;&amp;hn.test(n)?n.replace(sn,a):n},Nn.escapeRegExp=function(n){return(n=u(n))&amp;&amp;xn.test(n)?n.replace(bn,l):n||"(?:)"},Nn.every=te,Nn.find=ro,Nn.findIndex=qu,Nn.findKey=$o,Nn.findLast=eo,Nn.findLastIndex=Pu,Nn.findLastKey=So,Nn.findWhere=function(n,t){return ro(n,xt(t))},Nn.first=Kr,Nn.floor=ni,Nn.get=function(n,t,r){return n=null==n?b:yt(n,Dr(t),t+""),n===b?r:n},Nn.gt=se,Nn.gte=function(n,t){return n&gt;=t},Nn.has=function(n,t){if(null==n)return!1;var r=nu.call(n,t);if(!r&amp;&amp;!Wr(t)){if(t=Dr(t),n=1==t.length?n:yt(n,Et(t,0,-1)),null==n)return!1;t=Zr(t),r=nu.call(n,t)}return r||Sr(n.length)&amp;&amp;Cr(t,n.length)&amp;&amp;(Oo(n)||pe(n))},Nn.identity=Fe,Nn.includes=ee,Nn.indexOf=Vr,Nn.inRange=function(n,t,r){return t=+t||0,r===b?(r=t,t=0):r=+r||0,n&gt;=mu(t,r)&amp;&amp;n&lt;xu(t,r)},Nn.isArguments=pe,Nn.isArray=Oo,Nn.isBoolean=function(n){return!0===n||!1===n||h(n)&amp;&amp;ru.call(n)==M},Nn.isDate=function(n){return h(n)&amp;&amp;ru.call(n)==q},Nn.isElement=function(n){return!!n&amp;&amp;1===n.nodeType&amp;&amp;h(n)&amp;&amp;!we(n)},Nn.isEmpty=function(n){return null==n||(Er(n)&amp;&amp;(Oo(n)||xe(n)||pe(n)||h(n)&amp;&amp;ve(n.splice))?!n.length:!zo(n).length)},Nn.isEqual=he,Nn.isError=_e,Nn.isFinite=function(n){return"number"==typeof n&amp;&amp;wu(n)},Nn.isFunction=ve,Nn.isMatch=function(n,t,r,e){return r="function"==typeof r?Bt(r,e,3):b,wt(n,Ar(t),r)},Nn.isNaN=function(n){return de(n)&amp;&amp;n!=+n},Nn.isNative=ye,Nn.isNull=function(n){return null===n},Nn.isNumber=de,Nn.isObject=ge,Nn.isPlainObject=we,Nn.isRegExp=be,Nn.isString=xe,Nn.isTypedArray=me,Nn.isUndefined=function(n){return n===b},Nn.kebabCase=Ko,Nn.last=Zr,Nn.lastIndexOf=function(n,t,r){var e=n?n.length:0;if(!e)return-1;var u=e;if("number"==typeof r)u=(0&gt;r?xu(e+r,0):mu(r||0,e-1))+1;else if(r)return u=Lt(n,t,!0)-1,n=n[u],(t===t?t===n:n!==n)?u:-1;if(t!==t)return p(n,u,!0);for(;u--;)if(n[u]===t)return u;return-1},Nn.lt=Ae,Nn.lte=function(n,t){return n&lt;=t},Nn.max=ti,Nn.min=ri,Nn.noConflict=function(){return Zn._=eu,this},Nn.noop=Le,Nn.now=ho,Nn.pad=function(n,t,r){n=u(n),t=+t;var e=n.length;return e&lt;t&amp;&amp;wu(t)?(e=(t-e)/2,t=yu(e),e=vu(e),r=pr("",e,r),r.slice(0,t)+n+r):n},Nn.padLeft=Vo,Nn.padRight=Zo,Nn.parseInt=function(n,t,r){return(r?Ur(n,t,r):null==t)?t=0:t&amp;&amp;(t=+t),n=We(n),ju(n,t||(In.test(n)?16:10))},Nn.random=function(n,t,r){r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=r=b);var e=null==n,u=null==t;return null==r&amp;&amp;(u&amp;&amp;"boolean"==typeof n?(r=n,n=1):"boolean"==typeof t&amp;&amp;(r=t,u=!0)),e&amp;&amp;u&amp;&amp;(t=1,u=!1),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=ku(),mu(n+r*(t-n+fu("1e-"+((r+"").length-1))),t)):Rt(n,t)},Nn.reduce=lo,Nn.reduceRight=so,Nn.repeat=Ue,Nn.result=function(n,t,r){var e=null==n?b:n[t];return e===b&amp;&amp;(null==n||Wr(t,n)||(t=Dr(t),n=1==t.length?n:yt(n,Et(t,0,-1)),e=null==n?b:n[Zr(t)]),e=e===b?r:e),ve(e)?e.call(n):e},Nn.round=ei,Nn.runInContext=w,Nn.size=function(n){var t=n?Bu(n):0;return Sr(t)?t:zo(n).length},Nn.snakeCase=Yo,Nn.some=ie,Nn.sortedIndex=Zu,Nn.sortedLastIndex=Yu,Nn.startCase=Go,Nn.startsWith=function(n,t,r){return n=u(n),r=null==r?0:mu(0&gt;r?0:+r||0,n.length),n.lastIndexOf(t,r)==r},Nn.sum=function(n,t,r){if(r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b),t=br(t,r,3),1==t.length){n=Oo(n)?n:zr(n),r=n.length;for(var e=0;r--;)e+=+t(n[r])||0;n=e}else n=$t(n,t);return n},Nn.template=function(n,t,r){var e=Nn.templateSettings;r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=r=b),n=u(n),t=nt(tt({},r||t),e,Qn),r=nt(tt({},t.imports),e.imports,Qn);var o,i,f=zo(r),c=Ft(r,f),a=0;r=t.interpolate||Cn;var l="__p+='";r=Ze((t.escape||Cn).source+"|"+r.source+"|"+(r===gn?jn:Cn).source+"|"+(t.evaluate||Cn).source+"|$","g");var p="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";if(n.replace(r,function(t,r,e,u,f,c){return e||(e=u),l+=n.slice(a,c).replace(Un,s),r&amp;&amp;(o=!0,l+="'+__e("+r+")+'"),f&amp;&amp;(i=!0,l+="';"+f+";\n__p+='"),e&amp;&amp;(l+="'+((__t=("+e+"))==null?'':__t)+'"),a=c+t.length,t}),l+="';",(t=t.variable)||(l="with(obj){"+l+"}"),l=(i?l.replace(fn,""):l).replace(cn,"$1").replace(an,"$1;"),l="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(o?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}",t=Jo(function(){return qe(f,p+"return "+l).apply(b,c)}),t.source=l,_e(t))throw t;return t},Nn.trim=We,Nn.trimLeft=function(n,t,r){var e=n;return(n=u(n))?n.slice((r?Ur(e,t,r):null==t)?g(n):o(n,t+"")):n},Nn.trimRight=function(n,t,r){var e=n;return(n=u(n))?(r?Ur(e,t,r):null==t)?n.slice(0,y(n)+1):n.slice(0,i(n,t+"")+1):n},Nn.trunc=function(n,t,r){r&amp;&amp;Ur(n,t,r)&amp;&amp;(t=b);var e=U;if(r=W,null!=t)if(ge(t)){var o="separator"in t?t.separator:o,e="length"in t?+t.length||0:e;r="omission"in t?u(t.omission):r}else e=+t||0;if(n=u(n),e&gt;=n.length)return n;if(e-=r.length,1&gt;e)return r;if(t=n.slice(0,e),null==o)return t+r;if(be(o)){if(n.slice(e).search(o)){var i,f=n.slice(0,e);for(o.global||(o=Ze(o.source,(kn.exec(o)||"")+"g")),o.lastIndex=0;n=o.exec(f);)i=n.index;t=t.slice(0,null==i?e:i)}}else n.indexOf(o,e)!=e&amp;&amp;(o=t.lastIndexOf(o),-1&lt;o&amp;&amp;(t=t.slice(0,o)));return t+r},Nn.unescape=function(n){return(n=u(n))&amp;&amp;pn.test(n)?n.replace(ln,d):n},Nn.uniqueId=function(n){var t=++tu;return u(n)+t},Nn.words=$e,Nn.all=te,Nn.any=ie,Nn.contains=ee,Nn.eq=he,Nn.detect=ro,Nn.foldl=lo,Nn.foldr=so,Nn.head=Kr,Nn.include=ee,Nn.inject=lo,Te(Nn,function(){var n={};return _t(Nn,function(t,r){Nn.prototype[r]||(n[r]=t)}),n}(),!1),Nn.sample=oe,Nn.prototype.sample=function(n){return this.__chain__||null!=n?this.thru(function(t){return oe(t,n)}):oe(this.value())},Nn.VERSION=x,Pn("bind bindKey curry curryRight partial partialRight".split(" "),function(n){Nn[n].placeholder=Nn}),Pn(["drop","take"],function(n,t){zn.prototype[n]=function(r){var e=this.__filtered__;if(e&amp;&amp;!t)return new zn(this);r=null==r?1:xu(yu(r)||0,0);var u=this.clone();return e?u.__takeCount__=mu(u.__takeCount__,r):u.__views__.push({size:r,type:n+(0&gt;u.__dir__?"Right":"")}),u},zn.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Pn(["filter","map","takeWhile"],function(n,t){var r=t+1,e=r!=T;zn.prototype[n]=function(n,t){var u=this.clone();return u.__iteratees__.push({iteratee:br(n,t,1),type:r}),u.__filtered__=u.__filtered__||e,u}}),Pn(["first","last"],function(n,t){var r="take"+(t?"Right":"");zn.prototype[n]=function(){return this[r](1).value()[0]}}),Pn(["initial","rest"],function(n,t){var r="drop"+(t?"":"Right");zn.prototype[n]=function(){return this.__filtered__?new zn(this):this[r](1)}}),Pn(["pluck","where"],function(n,t){var r=t?"filter":"map",e=t?xt:ze;zn.prototype[n]=function(n){return this[r](e(n))}}),zn.prototype.compact=function(){return this.filter(Fe)},zn.prototype.reject=function(n,t){return n=br(n,t,1),this.filter(function(t){return!n(t)})},zn.prototype.slice=function(n,t){n=null==n?0:+n||0;var r=this;return r.__filtered__&amp;&amp;(0&lt;n||0&gt;t)?new zn(r):(0&gt;n?r=r.takeRight(-n):n&amp;&amp;(r=r.drop(n)),t!==b&amp;&amp;(t=+t||0,r=0&gt;t?r.dropRight(-t):r.take(t-n)),r)},zn.prototype.takeRightWhile=function(n,t){return this.reverse().takeWhile(n,t).reverse()},zn.prototype.toArray=function(){return this.take(Ru)},_t(zn.prototype,function(n,t){var r=/^(?:filter|map|reject)|While$/.test(t),e=/^(?:first|last)$/.test(t),u=Nn[e?"take"+("last"==t?"Right":""):t];u&amp;&amp;(Nn.prototype[t]=function(){function t(n){return e&amp;&amp;i?u(n,1)[0]:u.apply(b,Jn([n],o))}var o=e?[1]:arguments,i=this.__chain__,f=this.__wrapped__,c=!!this.__actions__.length,a=f instanceof zn,l=o[0],s=a||Oo(f);return s&amp;&amp;r&amp;&amp;"function"==typeof l&amp;&amp;1!=l.length&amp;&amp;(a=s=!1),l={func:ne,args:[t],thisArg:b},c=a&amp;&amp;!c,e&amp;&amp;!i?c?(f=f.clone(),f.__actions__.push(l),n.call(f)):u.call(b,this.value())[0]:!e&amp;&amp;s?(f=c?f:new zn(this),f=n.apply(f,o),f.__actions__.push(l),new Ln(f,i)):this.thru(t)})}),Pn("join pop push replace shift sort splice split unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?He:Je)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:join|pop|replace|shift)$/.test(n);Nn.prototype[n]=function(){var n=arguments;return e&amp;&amp;!this.__chain__?t.apply(this.value(),n):this[r](function(r){return t.apply(r,n)})}}),_t(zn.prototype,function(n,t){var r=Nn[t];if(r){var e=r.name+"";(Wu[e]||(Wu[e]=[])).push({name:t,func:r})}}),Wu[sr(b,A).name]=[{name:"wrapper",func:b}],zn.prototype.clone=function(){var n=new zn(this.__wrapped__);return n.__actions__=qn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=qn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=qn(this.__views__),n},zn.prototype.reverse=function(){if(this.__filtered__){var n=new zn(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n},zn.prototype.value=function(){var n,t=this.__wrapped__.value(),r=this.__dir__,e=Oo(t),u=0&gt;r,o=e?t.length:0;n=o;for(var i=this.__views__,f=0,c=-1,a=i.length;++c&lt;a;){var l=i[c],s=l.size;switch(l.type){case"drop":f+=s;break;case"dropRight":n-=s;break;case"take":n=mu(n,f+s);break;case"takeRight":f=xu(f,n-s)}}if(n={start:f,end:n},i=n.start,f=n.end,n=f-i,u=u?f:i-1,i=this.__iteratees__,f=i.length,c=0,a=mu(n,this.__takeCount__),!e||o&lt;F||o==n&amp;&amp;a==n)return Tt(t,this.__actions__);e=[];n:for(;n--&amp;&amp;c&lt;a;){for(u+=r,o=-1,l=t[u];++o&lt;f;){var p=i[o],s=p.type,p=p.iteratee(l);if(s==T)l=p;else if(!p){if(s==N)continue n;break n}}e[c++]=l}return e},Nn.prototype.chain=function(){return Qr(this)},Nn.prototype.commit=function(){return new Ln(this.value(),this.__chain__)},Nn.prototype.concat=Qu,Nn.prototype.plant=function(n){for(var t,r=this;r instanceof Tn;){var e=Mr(r);t?u.__wrapped__=e:t=e;var u=e,r=r.__wrapped__}return u.__wrapped__=n,t},Nn.prototype.reverse=function(){function n(n){return n.reverse()}var t=this.__wrapped__;return t instanceof zn?(this.__actions__.length&amp;&amp;(t=new zn(this)),t=t.reverse(),t.__actions__.push({func:ne,args:[n],thisArg:b}),new Ln(t,this.__chain__)):this.thru(n)},Nn.prototype.toString=function(){return this.value()+""},Nn.prototype.run=Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return Tt(this.__wrapped__,this.__actions__)},Nn.prototype.collect=Nn.prototype.map,Nn.prototype.head=Nn.prototype.first,Nn.prototype.select=Nn.prototype.filter,Nn.prototype.tail=Nn.prototype.rest,Nn}var b,x="3.10.1",m=1,A=2,j=4,k=8,I=16,R=32,O=64,E=128,C=256,U=30,W="...",$=150,S=16,F=200,N=1,T=2,L="Expected a function",z="__lodash_placeholder__",B="[object Arguments]",D="[object Array]",M="[object Boolean]",q="[object Date]",P="[object Error]",K="[object Function]",V="[object Number]",Z="[object Object]",Y="[object RegExp]",G="[object String]",J="[object ArrayBuffer]",X="[object Float32Array]",H="[object Float64Array]",Q="[object Int8Array]",nn="[object Int16Array]",tn="[object Int32Array]",rn="[object Uint8Array]",en="[object Uint8ClampedArray]",un="[object Uint16Array]",on="[object Uint32Array]",fn=/\b__p\+='';/g,cn=/\b(__p\+=)''\+/g,an=/(__e\(.*?\)|\b__t\))\+'';/g,ln=/&amp;(?:amp|lt|gt|quot|#39|#96);/g,sn=/[&amp;&lt;&gt;"'`]/g,pn=RegExp(ln.source),hn=RegExp(sn.source),_n=/&lt;%-([\s\S]+?)%&gt;/g,vn=/&lt;%([\s\S]+?)%&gt;/g,gn=/&lt;%=([\s\S]+?)%&gt;/g,yn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,dn=/^\w*$/,wn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,bn=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,xn=RegExp(bn.source),mn=/[\u0300-\u036f\ufe20-\ufe23]/g,An=/\\(\\)?/g,jn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kn=/\w*$/,In=/^0[xX]/,Rn=/^\[object .+?Constructor\]$/,On=/^\d+$/,En=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Cn=/($^)/,Un=/['\n\r\u2028\u2029\\]/g,Wn=RegExp("[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?=[A-Z\\xc0-\\xd6\\xd8-\\xde][a-z\\xdf-\\xf6\\xf8-\\xff]+)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+|[A-Z\\xc0-\\xd6\\xd8-\\xde]+|[0-9]+","g"),$n="Array ArrayBuffer Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Math Number Object RegExp Set String _ clearTimeout isFinite parseFloat parseInt setTimeout TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap".split(" "),Sn={};Sn[X]=Sn[H]=Sn[Q]=Sn[nn]=Sn[tn]=Sn[rn]=Sn[en]=Sn[un]=Sn[on]=!0,Sn[B]=Sn[D]=Sn[J]=Sn[M]=Sn[q]=Sn[P]=Sn[K]=Sn["[object Map]"]=Sn[V]=Sn[Z]=Sn[Y]=Sn["[object Set]"]=Sn[G]=Sn["[object WeakMap]"]=!1;var Fn={};Fn[B]=Fn[D]=Fn[J]=Fn[M]=Fn[q]=Fn[X]=Fn[H]=Fn[Q]=Fn[nn]=Fn[tn]=Fn[V]=Fn[Z]=Fn[Y]=Fn[G]=Fn[rn]=Fn[en]=Fn[un]=Fn[on]=!0,Fn[P]=Fn[K]=Fn["[object Map]"]=Fn["[object Set]"]=Fn["[object WeakMap]"]=!1;var Nn={"Ã€":"A","Ã":"A","Ã‚":"A","Ãƒ":"A","Ã„":"A","Ã…":"A","Ã&nbsp;":"a","Ã¡":"a","Ã¢":"a","Ã£":"a","Ã¤":"a","Ã¥":"a","Ã‡":"C","Ã§":"c","Ã":"D","Ã°":"d","Ãˆ":"E","Ã‰":"E","ÃŠ":"E","Ã‹":"E","Ã¨":"e","Ã©":"e","Ãª":"e","Ã«":"e","ÃŒ":"I","Ã":"I","ÃŽ":"I","Ã":"I","Ã¬":"i","Ã­":"i","Ã®":"i","Ã¯":"i","Ã‘":"N","Ã±":"n","Ã’":"O","Ã“":"O","Ã”":"O","Ã•":"O","Ã–":"O","Ã˜":"O","Ã²":"o","Ã³":"o","Ã´":"o","Ãµ":"o","Ã¶":"o","Ã¸":"o","Ã™":"U","Ãš":"U","Ã›":"U","Ãœ":"U","Ã¹":"u","Ãº":"u","Ã»":"u","Ã¼":"u","Ã":"Y","Ã½":"y","Ã¿":"y","Ã†":"Ae","Ã¦":"ae","Ãž":"Th","Ã¾":"th","ÃŸ":"ss"},Tn={"&amp;":"&amp;amp;","&lt;":"&amp;lt;","&gt;":"&amp;gt;",'"':"&amp;quot;","'":"&amp;#39;","`":"&amp;#96;"},Ln={"&amp;amp;":"&amp;","&amp;lt;":"&lt;","&amp;gt;":"&gt;","&amp;quot;":'"',"&amp;#39;":"'","&amp;#96;":"`"},zn={"function":!0,object:!0},Bn={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Dn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mn=zn[typeof exports]&amp;&amp;exports&amp;&amp;!exports.nodeType&amp;&amp;exports,qn=zn[typeof module]&amp;&amp;module&amp;&amp;!module.nodeType&amp;&amp;module,Pn=zn[typeof self]&amp;&amp;self&amp;&amp;self.Object&amp;&amp;self,Kn=zn[typeof window]&amp;&amp;window&amp;&amp;window.Object&amp;&amp;window,Vn=qn&amp;&amp;qn.exports===Mn&amp;&amp;Mn,Zn=Mn&amp;&amp;qn&amp;&amp;"object"==typeof global&amp;&amp;global&amp;&amp;global.Object&amp;&amp;global||Kn!==(this&amp;&amp;this.window)&amp;&amp;Kn||Pn||this,Yn=w();"function"==typeof define&amp;&amp;"object"==typeof define.amd&amp;&amp;define.amd?(Zn._=Yn,define(function(){return Yn})):Mn&amp;&amp;qn?Vn?(qn.exports=Yn)._=Yn:Mn._=Yn:Zn._=Yn}).call(this);;!function e(r,n,o){function t(i,u){if(!n[i]){if(!r[i]){var c="function"==typeof require&amp;&amp;require;if(!u&amp;&amp;c)return c(i,!0);if(s)return s(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var l=n[i]={exports:{}};r[i][0].call(l.exports,function(e){var n=r[i][1][e];return t(n?n:e)},l,l.exports,e,r,n,o)}return n[i].exports}for(var s="function"==typeof require&amp;&amp;require,i=0;i&lt;o.length;i++)t(o[i]);return t}({1:[function(e,r,n){angular.module("nemLogging",[]),angular.module("nemLogging").provider("nemDebug",function(){var r=null;return r=e("debug"),this.$get=function(){return r},this.debug=r,this});var o=function(e,r){return function(){return e.apply(r,arguments)}};angular.module("nemLogging").provider("nemSimpleLogger",["nemDebugProvider",function(e){var r,n,t,s,i,u,c,a,l,f,g;for(f=e.debug,t=["debug","info","warn","error","log"],r={},a=c=0,l=t.length;l&gt;c;a=++c)g=t[a],r[g]=a;return i=function(e,r,n){return e&gt;=r?n():void 0},s=function(e){var r,n,o;if(r=!1,!e)return r;for(n=0,o=t.length;o&gt;n&amp;&amp;(g=t[n],r=null!=e[g]&amp;&amp;"function"==typeof e[g]);n++);return r},u=function(e,r){var n,o,s,i;for(n=f(e),i={},o=0,s=t.length;s&gt;o;o++)g=t[o],i[g]="debug"===g?n:r[g];return i},n=function(){function e(e){var n,u,c,a,l;if(this.$log=e,this.spawn=o(this.spawn,this),!this.$log)throw"internalLogger undefined";if(!s(this.$log))throw"@$log is invalid";for(this.doLog=!0,l={},n=function(e){return function(n){return l[n]=function(o){return e.doLog?i(r[n],e.currentLevel,function(){return e.$log[n](o)}):void 0},e[n]=l[n]}}(this),u=0,c=t.length;c&gt;u;u++)a=t[u],n(a);this.LEVELS=r,this.currentLevel=r.error}return e.prototype.spawn=function(r){if("string"==typeof r){if(!s(this.$log))throw"@$log is invalid";if(!f)throw"nemDebug is undefined this is probably the light version of this library sep debug logggers is not supported!";return u(r,this.$log)}return new e(r||this.$log)},e}(),this.decorator=["$log",function(e){var o;return o=new n(e),o.currentLevel=r.debug,o}],this.$get=["$log",function(e){return new n(e)}],this}])},{debug:2}],2:[function(e,r,n){function o(){return"WebkitAppearance"in document.documentElement.style||window.console&amp;&amp;(console.firebug||console.exception&amp;&amp;console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&amp;&amp;parseInt(RegExp.$1,10)&gt;=31}function t(){var e=arguments,r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+n.humanize(this.diff),!r)return e;var o="color: "+this.color;e=[e[0],o,"color: inherit"].concat(Array.prototype.slice.call(e,1));var t=0,s=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&amp;&amp;(t++,"%c"===e&amp;&amp;(s=t))}),e.splice(s,0,o),e}function s(){return"object"==typeof console&amp;&amp;console.log&amp;&amp;Function.prototype.apply.call(console.log,console,arguments)}function i(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(e){}}function u(){var e;try{e=n.storage.debug}catch(e){}return e}n=r.exports=e("./debug"),n.log=s,n.formatArgs=t,n.save=i,n.load=u,n.useColors=o,n.storage="undefined"!=typeof chrome&amp;&amp;void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){return JSON.stringify(e)},n.enable(u())},{"./debug":3}],3:[function(e,r,n){function o(){return n.colors[l++%n.colors.length]}function t(e){function r(){}function t(){var e=t,r=+new Date,s=r-(a||r);e.diff=s,e.prev=a,e.curr=r,a=r,null==e.useColors&amp;&amp;(e.useColors=n.useColors()),null==e.color&amp;&amp;e.useColors&amp;&amp;(e.color=o());var i=Array.prototype.slice.call(arguments);i[0]=n.coerce(i[0]),"string"!=typeof i[0]&amp;&amp;(i=["%o"].concat(i));var u=0;i[0]=i[0].replace(/%([a-z%])/g,function(r,o){if("%%"===r)return r;u++;var t=n.formatters[o];if("function"==typeof t){var s=i[u];r=t.call(e,s),i.splice(u,1),u--}return r}),"function"==typeof n.formatArgs&amp;&amp;(i=n.formatArgs.apply(e,i)),(t.log||n.log||console.log.bind(console)).apply(e,i)}r.enabled=!1,t.enabled=!0;var s=n.enabled(e)?t:r;return s.namespace=e,s}function s(e){n.save(e);for(var r=(e||"").split(/[\s,]+/),o=r.length,t=0;o&gt;t;t++)r[t]&amp;&amp;(e=r[t].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function i(){n.enable("")}function u(e){var r,o;for(r=0,o=n.skips.length;o&gt;r;r++)if(n.skips[r].test(e))return!1;for(r=0,o=n.names.length;o&gt;r;r++)if(n.names[r].test(e))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}n=r.exports=t,n.coerce=c,n.disable=i,n.enable=s,n.enabled=u,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var a,l=0},{ms:4}],4:[function(e,r,n){function o(e){if(e=""+e,!(e.length&gt;1e4)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var n=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*f;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*a;case"minutes":case"minute":case"mins":case"min":case"m":return n*c;case"seconds":case"second":case"secs":case"sec":case"s":return n*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function t(e){return e&gt;=l?Math.round(e/l)+"d":e&gt;=a?Math.round(e/a)+"h":e&gt;=c?Math.round(e/c)+"m":e&gt;=u?Math.round(e/u)+"s":e+"ms"}function s(e){return i(e,l,"day")||i(e,a,"hour")||i(e,c,"minute")||i(e,u,"second")||e+" ms"}function i(e,r,n){return r&gt;e?void 0:1.5*r&gt;e?Math.floor(e/r)+" "+n:Math.ceil(e/r)+" "+n+"s"}var u=1e3,c=60*u,a=60*c,l=24*a,f=365.25*l;r.exports=function(e,r){return r=r||{},"string"==typeof e?o(e):r.long?s(e):t(e)}},{}]},{},[1]);;!function(t,e,i){"use strict";(function(){e.module("uiGmapgoogle-maps.providers",["nemLogging"]),e.module("uiGmapgoogle-maps.wrapped",[]),e.module("uiGmapgoogle-maps.extensions",["uiGmapgoogle-maps.wrapped","uiGmapgoogle-maps.providers"]),e.module("uiGmapgoogle-maps.directives.api.utils",["uiGmapgoogle-maps.extensions"]),e.module("uiGmapgoogle-maps.directives.api.managers",[]),e.module("uiGmapgoogle-maps.directives.api.options",["uiGmapgoogle-maps.directives.api.utils"]),e.module("uiGmapgoogle-maps.directives.api.options.builders",[]),e.module("uiGmapgoogle-maps.directives.api.models.child",["uiGmapgoogle-maps.directives.api.utils","uiGmapgoogle-maps.directives.api.options","uiGmapgoogle-maps.directives.api.options.builders"]),e.module("uiGmapgoogle-maps.directives.api.models.parent",["uiGmapgoogle-maps.directives.api.managers","uiGmapgoogle-maps.directives.api.models.child","uiGmapgoogle-maps.providers"]),e.module("uiGmapgoogle-maps.directives.api",["uiGmapgoogle-maps.directives.api.models.parent"]),e.module("uiGmapgoogle-maps",["uiGmapgoogle-maps.directives.api","uiGmapgoogle-maps.providers"])}).call(this),function(){e.module("uiGmapgoogle-maps.providers").factory("uiGmapMapScriptLoader",["$q","uiGmapuuid",function(i,n){var o,r,s,a;return a=void 0,o=function(t){return t.china?"http://maps.google.cn/maps/api/js?":"auto"===t.transport?"//maps.googleapis.com/maps/api/js?":t.transport+"://maps.googleapis.com/maps/api/js?"},r=function(t){var e,i,r;return e=["transport","isGoogleMapsForWork","china"],t.isGoogleMapsForWork&amp;&amp;e.push("key"),i=_.map(_.omit(t,e),function(t,e){return e+"="+t}),a&amp;&amp;document.getElementById(a).remove(),i=i.join("&amp;"),r=document.createElement("script"),r.id=a="ui_gmap_map_load_"+n.generate(),r.type="text/javascript",r.src=o(t)+i,document.body.appendChild(r)},s=function(){return e.isDefined(t.google)&amp;&amp;e.isDefined(t.google.maps)},{load:function(e){var n,o;return n=i.defer(),s()?(n.resolve(t.google.maps),n.promise):(o=e.callback="onGoogleMapsReady"+Math.round(1e3*Math.random()),t[o]=function(){t[o]=null,n.resolve(t.google.maps)},t.navigator.connection&amp;&amp;t.Connection&amp;&amp;t.navigator.connection.type===t.Connection.NONE?document.addEventListener("online",function(){return s()?void 0:r(e)}):r(e),n.promise)}}}]).provider("uiGmapGoogleMapApi",function(){return this.options={transport:"https",isGoogleMapsForWork:!1,china:!1,v:"3",libraries:"",language:"en",sensor:"false"},this.configure=function(t){e.extend(this.options,t)},this.$get=["uiGmapMapScriptLoader",function(t){return function(e){return e.load(t.options)}}(this)],this})}.call(this),function(){var i=function(t,e){return function(){return t.apply(e,arguments)}},n=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;e.module("uiGmapgoogle-maps.extensions").service("uiGmapExtendGWin",function(){return{init:_.once(function(){var e;if(google||("undefined"!=typeof google&amp;&amp;null!==google?google.maps:void 0)||null!=google.maps.InfoWindow)return google.maps.InfoWindow.prototype._open=google.maps.InfoWindow.prototype.open,google.maps.InfoWindow.prototype._close=google.maps.InfoWindow.prototype.close,google.maps.InfoWindow.prototype._isOpen=!1,google.maps.InfoWindow.prototype.open=function(t,e,i){null==i&amp;&amp;(this._isOpen=!0,this._open(t,e,!0))},google.maps.InfoWindow.prototype.close=function(t){null==t&amp;&amp;(this._isOpen=!1,this._close(!0))},google.maps.InfoWindow.prototype.isOpen=function(t){return null==t&amp;&amp;(t=void 0),null==t?this._isOpen:this._isOpen=t},t.InfoBox&amp;&amp;(t.InfoBox.prototype._open=t.InfoBox.prototype.open,t.InfoBox.prototype._close=t.InfoBox.prototype.close,t.InfoBox.prototype._isOpen=!1,t.InfoBox.prototype.open=function(t,e){this._isOpen=!0,this._open(t,e)},t.InfoBox.prototype.close=function(){this._isOpen=!1,this._close()},t.InfoBox.prototype.isOpen=function(t){return null==t&amp;&amp;(t=void 0),null==t?this._isOpen:this._isOpen=t},e=function(e){function o(e){this.getOrigCloseBoxImg_=i(this.getOrigCloseBoxImg_,this),this.getCloseBoxDiv_=i(this.getCloseBoxDiv_,this);var n;n=new t.InfoBox(e),_.extend(this,n),null!=e.closeBoxDiv&amp;&amp;(this.closeBoxDiv_=e.closeBoxDiv)}return n(o,e),o.prototype.getCloseBoxDiv_=function(){return this.closeBoxDiv_},o.prototype.getCloseBoxImg_=function(){var t,e;return t=this.getCloseBoxDiv_(),e=this.getOrigCloseBoxImg_(),t||e},o.prototype.getOrigCloseBoxImg_=function(){var t;return t="",""!==this.closeBoxURL_&amp;&amp;(t="&lt;img",t+=" src='"+this.closeBoxURL_+"'",t+=" align=right",t+=" style='",t+=" position: relative;",t+=" cursor: pointer;",t+=" margin: "+this.closeBoxMargin_+";",t+="'&gt;"),t},o}(t.InfoBox),t.uiGmapInfoBox=e),t.MarkerLabel_?t.MarkerLabel_.prototype.setContent=function(){var t;t=this.marker_.get("labelContent"),t&amp;&amp;!_.isEqual(this.oldContent,t)&amp;&amp;("undefined"==typeof(null!=t?t.nodeType:void 0)?(this.labelDiv_.innerHTML=t,this.eventDiv_.innerHTML=this.labelDiv_.innerHTML,this.oldContent=t):(this.labelDiv_.innerHTML="",this.labelDiv_.appendChild(t),t=t.cloneNode(!0),this.labelDiv_.innerHTML="",this.eventDiv_.appendChild(t),this.oldContent=t))}:void 0})}})}.call(this),function(){e.module("uiGmapgoogle-maps.extensions").service("uiGmapLodash",function(){var t,e,i,n,o,r,s,a;return null==_.get&amp;&amp;(n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,o=/^\w*$/,r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,s=function(t){return _.isObject(t)?t:Object(t)},e=function(t){return null===t?"":t+""},a=function(t){var i;return _.isArray(t)?t:(i=[],e(t).replace(r,function(t,e,n,o){i.push(n?o.replace(reEscapeChar,"$1"):e||t)}),i)},t=function(t,e,i){var n,o;if(null!==t){void 0!==i&amp;&amp;i in s(t)&amp;&amp;(e=[i]),n=0,o=e.length;for(;!_.isUndefined(t)&amp;&amp;o&gt;n;)t=t[e[n++]];return n&amp;&amp;n===o?t:void 0}},i=function(e,i,n){var o;return o=null===e?void 0:t(e,a(i),i+""),void 0===o?n:o},_.get=i),this.intersectionObjects=function(t,e,i){var n;return null==i&amp;&amp;(i=void 0),n=_.map(t,function(t){return function(t){return _.find(e,function(e){return null!=i?i(t,e):_.isEqual(t,e)})}}(this)),_.filter(n,function(t){return null!=t})},this.containsObject=_.includeObject=function(t,e,i){return null==i&amp;&amp;(i=void 0),null!==t&amp;&amp;_.any(t,function(t){return function(t){return null!=i?i(t,e):_.isEqual(t,e)}}(this))},this.differenceObjects=function(t,e,i){return null==i&amp;&amp;(i=void 0),_.filter(t,function(t){return function(n){return!t.containsObject(e,n,i)}}(this))},this.withoutObjects=this.differenceObjects,this.indexOfObject=function(t,e,i,n){var o,r;if(null==t)return-1;if(o=0,r=t.length,n){if("number"!=typeof n)return o=_.sortedIndex(t,e),t[o]===e?o:-1;o=0&gt;n?Math.max(0,r+n):n}for(;r&gt;o;){if(null!=i){if(i(t[o],e))return o}else if(_.isEqual(t[o],e))return o;o++}return-1},this.isNullOrUndefined=function(t){return _.isNull(t||_.isUndefined(t))},this})}.call(this),function(){e.module("uiGmapgoogle-maps.extensions").factory("uiGmapString",function(){return function(t){return this.contains=function(e,i){return-1!==t.indexOf(e,i)},this}})}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmap_sync",[function(){return{fakePromise:function(){var t;return t=void 0,{then:function(e){return t=e},resolve:function(){return t.apply(void 0,arguments)}}}}}]).service("uiGmap_async",["$timeout","uiGmapPromise","uiGmapLogger","$q","uiGmapDataStructures","uiGmapGmapUtil",function(t,i,n,o,r,s){var a,l,u,p,h,c,d,g,f,m,v,y,b,w,k,M,x,C,G;return C=i.promiseTypes,v=i.isInProgress,x=i.promiseStatus,a=i.ExposedPromise,u=i.SniffedPromise,y=function(t,e){var i;return i=t.promise(),i.promiseType=t.promiseType,i.$$state&amp;&amp;n.debug("promiseType: "+i.promiseType+", state: "+x(i.$$state.status)),i.cancelCb=e,i},g=function(t,e){return t.promiseType===C.create&amp;&amp;e.promiseType!==C["delete"]&amp;&amp;e.promiseType!==C.init&amp;&amp;(n.debug("lastPromise.promiseType "+e.promiseType+", newPromiseType: "+t.promiseType+", SKIPPED MUST COME AFTER DELETE ONLY"),!0)},M=function(t,e,i){var o;return e.promiseType===C["delete"]&amp;&amp;i.promiseType!==C["delete"]&amp;&amp;null!=i.cancelCb&amp;&amp;_.isFunction(i.cancelCb)&amp;&amp;v(i)&amp;&amp;(n.debug("promiseType: "+e.promiseType+", CANCELING LAST PROMISE type: "+i.promiseType),i.cancelCb("cancel safe"),o=t.peek(),null!=o&amp;&amp;v(o))?o.hasOwnProperty("cancelCb")&amp;&amp;_.isFunction(o.cancelCb)?(n.debug("promiseType: "+o.promiseType+", CANCELING FIRST PROMISE type: "+o.promiseType),o.cancelCb("cancel safe")):n.warn("first promise was not cancelable"):void 0},l=function(t,e,i){var n,o;if(t.existingPieces){if(n=_.last(t.existingPieces._content),g(e,n))return;return M(t.existingPieces,e,n),o=a(n["finally"](function(){return y(e,i)})),o.cancelCb=i,o.promiseType=e.promiseType,t.existingPieces.enqueue(o),n["finally"](function(){return t.existingPieces.dequeue()})}return t.existingPieces=new r.Queue,t.existingPieces.enqueue(y(e,i))},w=function(t,e,i,o,r){var s;return null==i&amp;&amp;(i=""),s=function(t){return n.debug(t+": "+t),null!=o&amp;&amp;_.isFunction(o)?o(t):void 0},l(t,u(r,e),s)},c=80,m={value:null},G=function(t,e,i){var n;try{return t.apply(e,i)}catch(o){return n=o,m.value=n,m}},b=function(t,e,i,o){var r,s;return s=G(t,e,o),s===m&amp;&amp;(r="error within chunking iterator: "+m.value,n.error(r),i.reject(r)),"cancel safe"!==s},h=function(t,e,i){var n,o;return n=t===e,o=e[i],n?o:t[o]},p=function(t,i,n,o){var r;return e.isArray(t)?r=t:(r=i?i:Object.keys(_.omit(t,["length","forEach","map"])),i=r),null==o&amp;&amp;(o=n),e.isArray(r)&amp;&amp;(void 0===r||(null!=r?r.length:void 0)&lt;=0)&amp;&amp;o!==n?n():o(r,i)},d=function(i,n,o,r,s,a,l,u){return p(i,u,function(u,p){var c,g,f,m;for(c=n&amp;&amp;n&lt;u.length?n:u.length,g=l,f=!0;f&amp;&amp;c--&amp;&amp;g&lt;(u?u.length:g+1);)m=h(i,u,g),f=!!e.isFunction(m)||b(r,void 0,a,[m,g]),++g;if(u){if(!(f&amp;&amp;g&lt;u.length))return a.resolve();if(l=g,n)return null!=s&amp;&amp;_.isFunction(s)&amp;&amp;b(s,void 0,a,[]),t(function(){return d(i,n,o,r,s,a,l,p)},o,!1)}})},f=function(t,e,o,r,s,a,l){var u,h,g;return null==o&amp;&amp;(o=c),null==s&amp;&amp;(s=0),null==a&amp;&amp;(a=1),g=void 0,h=i.defer(),g=h.promise,a?p(t,l,function(){return h.resolve(),g},function(i,n){return d(t,o,a,e,r,h,s,n),g}):(u="pause (delay) must be set from _async!",n.error(u),h.reject(u),g)},k=function(t,e,n,o,r,s,a){var l;return l=[],p(t,a,function(){return i.resolve(l)},function(i,a){return f(t,function(t){return l.push(e(t))},n,o,r,s,a).then(function(){return l})})},{each:f,map:k,managePromiseQueue:w,promiseLock:w,defaultChunkSize:c,chunkSizeFrom:function(t,e){return null==e&amp;&amp;(e=void 0),_.isNumber(t)&amp;&amp;(e=t),(s.isFalse(t)||t===!1)&amp;&amp;(e=!1),e}}}])}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,i=this.length;i&gt;e;e++)if(e in this&amp;&amp;this[e]===t)return e;return-1};e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapBaseObject",function(){var e,i;return i=["extended","included"],e=function(){function e(){}return e.extend=function(e){var n,o,r;for(n in e)r=e[n],t.call(i,n)&lt;0&amp;&amp;(this[n]=r);return null!=(o=e.extended)&amp;&amp;o.apply(this),this},e.include=function(e){var n,o,r;for(n in e)r=e[n],t.call(i,n)&lt;0&amp;&amp;(this.prototype[n]=r);return null!=(o=e.included)&amp;&amp;o.apply(this),this},e}()})}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapChildEvents",function(){return{onChildCreation:function(t){}}})}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapCtrlHandle",["$q",function(t){var e;return e={handle:function(i,n){return i.$on("$destroy",function(){return e.handle(i)}),i.deferred=t.defer(),{getScope:function(){return i}}},mapPromise:function(t,e){var i;return i=e.getScope(),i.deferred.promise.then(function(e){return t.map=e}),i.deferred.promise}}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapEventsHelper",["uiGmapLogger",function(t){var i,n;return n=function(t){return e.isDefined(t.events)&amp;&amp;null!=t.events&amp;&amp;e.isObject(t.events)},i=function(t,e){return n(t)?t:n(e)?e:void 0},{setEvents:function(t,n,o,r){var s;return s=i(n,o),null!=s?_.compact(_.map(s.events,function(i,a){var l;return r&amp;&amp;(l=_(r).contains(a)),s.events.hasOwnProperty(a)&amp;&amp;e.isFunction(s.events[a])&amp;&amp;!l?google.maps.event.addListener(t,a,function(){return n.$evalAsync||(n.$evalAsync=function(){}),n.$evalAsync(i.apply(n,[t,a,o,arguments]))}):void 0})):void 0},removeEvents:function(t){var e,i;if(t)for(e in t)i=t[e],i&amp;&amp;google.maps.event.removeListener(i)}}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapFitHelper",["uiGmapLogger",function(t){return{fit:function(t,e){var i,n,o,r,s;if(e&amp;&amp;(null!=t?t.length:void 0)){i=new google.maps.LatLngBounds,n=!1;for(o in t)r=t[o],r&amp;&amp;(n||(n=!0),s=_.isFunction(r.getPosition)?r.getPosition():r),i.extend(s);if(n)return e.fitBounds(i)}}}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapGmapUtil",["uiGmapLogger","$compile",function(t,i){var n,o,r,s,a,l;return o=function(t,e,i){return t===e||-1!==i.indexOf(t)},n=function(t){return o(t,!1,["false","FALSE",0,"n","N","no","NO"])},s=function(t){return Array.isArray(t)&amp;&amp;2===t.length?t[1]:e.isDefined(t.type)&amp;&amp;"Point"===t.type?t.coordinates[1]:t.latitude},a=function(t){return Array.isArray(t)&amp;&amp;2===t.length?t[0]:e.isDefined(t.type)&amp;&amp;"Point"===t.type?t.coordinates[0]:t.longitude},r=function(t){return t?Array.isArray(t)&amp;&amp;2===t.length?new google.maps.LatLng(t[1],t[0]):e.isDefined(t.type)&amp;&amp;"Point"===t.type?new google.maps.LatLng(t.coordinates[1],t.coordinates[0]):new google.maps.LatLng(t.latitude,t.longitude):void 0},l=function(t){if(e.isUndefined(t))return!1;if(_.isArray(t)){if(2===t.length)return!0}else if(null!=t&amp;&amp;(null!=t?t.type:void 0)&amp;&amp;"Point"===t.type&amp;&amp;_.isArray(t.coordinates)&amp;&amp;2===t.coordinates.length)return!0;return!(!t||!e.isDefined((null!=t?t.latitude:void 0)&amp;&amp;e.isDefined(null!=t?t.longitude:void 0)))},{setCoordsFromEvent:function(t,i){return t?(Array.isArray(t)&amp;&amp;2===t.length?(t[1]=i.lat(),t[0]=i.lng()):e.isDefined(t.type)&amp;&amp;"Point"===t.type?(t.coordinates[1]=i.lat(),t.coordinates[0]=i.lng()):(t.latitude=i.lat(),t.longitude=i.lng()),t):void 0},getLabelPositionPoint:function(t){var e,i;return void 0===t?void 0:(t=/^([-\d\.]+)\s([-\d\.]+)$/.exec(t),e=parseFloat(t[1]),i=parseFloat(t[2]),null!=e&amp;&amp;null!=i?new google.maps.Point(e,i):void 0)},createWindowOptions:function(n,o,s,a){var l;return null!=s&amp;&amp;null!=a&amp;&amp;null!=i?(l=e.extend({},a,{content:this.buildContent(o,a,s),position:null!=a.position?a.position:e.isObject(n)?n.getPosition():r(o.coords)}),null!=n&amp;&amp;null==(null!=l?l.pixelOffset:void 0)&amp;&amp;(null==l.boxClass||(l.pixelOffset={height:0,width:-2})),l):a?a:(t.error("infoWindow defaults not defined"),s?void 0:t.error("infoWindow content not defined"))},buildContent:function(t,e,n){var o,r;return null!=e.content?r=e.content:null!=i?(n=n.replace(/^\s+|\s+$/g,""),o=""===n?"":i(n)(t),o.length&gt;0&amp;&amp;(r=o[0])):r=n,r},defaultDelay:50,isTrue:function(t){return o(t,!0,["true","TRUE",1,"y","Y","yes","YES"])},isFalse:n,isFalsy:function(t){return o(t,!1,[void 0,null])||n(t)},getCoords:r,validateCoords:l,equalCoords:function(t,e){return s(t)===s(e)&amp;&amp;a(t)===a(e)},validatePath:function(t){var i,n,o,r;if(n=0,e.isUndefined(t.type)){if(!Array.isArray(t)||t.length&lt;2)return!1;for(;n&lt;t.length;){if(!(e.isDefined(t[n].latitude)&amp;&amp;e.isDefined(t[n].longitude)||"function"==typeof t[n].lat&amp;&amp;"function"==typeof t[n].lng))return!1;n++}return!0}if(e.isUndefined(t.coordinates))return!1;if("Polygon"===t.type){if(t.coordinates[0].length&lt;4)return!1;i=t.coordinates[0]}else if("MultiPolygon"===t.type){if(r={max:0,index:0},_.forEach(t.coordinates,function(t,e){return t[0].length&gt;this.max?(this.max=t[0].length,this.index=e):void 0},r),o=t.coordinates[r.index],i=o[0],i.length&lt;4)return!1}else{if("LineString"!==t.type)return!1;if(t.coordinates.length&lt;2)return!1;i=t.coordinates}for(;n&lt;i.length;){if(2!==i[n].length)return!1;n++}return!0},convertPathPoints:function(t){var i,n,o,r,s;if(n=0,r=new google.maps.MVCArray,e.isUndefined(t.type))for(;n&lt;t.length;)e.isDefined(t[n].latitude)&amp;&amp;e.isDefined(t[n].longitude)?o=new google.maps.LatLng(t[n].latitude,t[n].longitude):"function"==typeof t[n].lat&amp;&amp;"function"==typeof t[n].lng&amp;&amp;(o=t[n]),r.push(o),n++;else for("Polygon"===t.type?i=t.coordinates[0]:"MultiPolygon"===t.type?(s={max:0,index:0},_.forEach(t.coordinates,function(t,e){return t[0].length&gt;this.max?(this.max=t[0].length,this.index=e):void 0},s),i=t.coordinates[s.index][0]):"LineString"===t.type&amp;&amp;(i=t.coordinates);n&lt;i.length;)r.push(new google.maps.LatLng(i[n][1],i[n][0])),n++;return r},getPath:function(t,e){var i;return null!=e&amp;&amp;_.isString(e)?(i=t,_.each(e.split("."),function(t){return i?i=i[t]:void 0}),i):e},validateBoundPoints:function(t){return!(e.isUndefined(t.sw.latitude)||e.isUndefined(t.sw.longitude)||e.isUndefined(t.ne.latitude)||e.isUndefined(t.ne.longitude))},convertBoundPoints:function(t){var e;return e=new google.maps.LatLngBounds(new google.maps.LatLng(t.sw.latitude,t.sw.longitude),new google.maps.LatLng(t.ne.latitude,t.ne.longitude))},fitMapBounds:function(t,e){return t.fitBounds(e)}}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapIsReady",["$q","$timeout",function(t,e){var i,n,o,r;return n=0,r=[],o=function(){return t.all(r)},i=function(t,r,s){return e(function(){return 0&gt;=s?void t.reject("Your maps are not found we have checked the maximum amount of times. :)"):void(n!==r?i(t,r,s-1):t.resolve(o()))},100)},{spawn:function(){var e;return e=t.defer(),r.push(e.promise),n+=1,{instance:n,deferred:e}},promises:o,instances:function(){return n},promise:function(e,n){var o;return null==e&amp;&amp;(e=1),null==n&amp;&amp;(n=50),o=t.defer(),i(o,e,n),o.promise},reset:function(){n=0,r.length=0},decrement:function(){n&gt;0&amp;&amp;(n-=1),r.length&amp;&amp;(r.length-=1)}}}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapLinked",["uiGmapBaseObject",function(e){var i;return i=function(e){function i(t,e,i,n){this.scope=t,this.element=e,this.attrs=i,this.ctrls=n}return t(i,e),i}(e)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapLogger",["nemSimpleLogger",function(t){return t.spawn()}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelKey",["uiGmapBaseObject","uiGmapGmapUtil","uiGmapPromise","$q","$timeout",function(n,o,r,s,a){var l;return l=function(n){function r(e){this.scope=e,this.modelsLength=t(this.modelsLength,this),this.updateChild=t(this.updateChild,this),this.destroy=t(this.destroy,this),this.onDestroy=t(this.onDestroy,this),this.setChildScope=t(this.setChildScope,this),this.getChanges=t(this.getChanges,this),this.getProp=t(this.getProp,this),this.setIdKey=t(this.setIdKey,this),this.modelKeyComparison=t(this.modelKeyComparison,this),r.__super__.constructor.call(this),this["interface"]={},this["interface"].scopeKeys=[],this.defaultIdKey="id",this.idKey=void 0}return i(r,n),r.prototype.evalModelHandle=function(t,e){return null!=t&amp;&amp;null!=e?"self"===e?t:(_.isFunction(e)&amp;&amp;(e=e()),o.getPath(t,e)):void 0},r.prototype.modelKeyComparison=function(t,e){var i,n,r;if(i=_.contains(this["interface"].scopeKeys,"coords"),(i&amp;&amp;null!=this.scope.coords||!i)&amp;&amp;(r=this.scope),null==r)throw"No scope set!";return i&amp;&amp;(n=o.equalCoords(this.scopeOrModelVal("coords",r,t),this.scopeOrModelVal("coords",r,e)),!n)?n:n=_.every(_.without(this["interface"].scopeKeys,"coords"),function(i){return function(n){return i.scopeOrModelVal(r[n],r,t)===i.scopeOrModelVal(r[n],r,e)}}(this))},r.prototype.setIdKey=function(t){return this.idKey=null!=t.idKey?t.idKey:this.defaultIdKey},r.prototype.setVal=function(t,e,i){var n;return n=this.modelOrKey(t,e),n=i,t},r.prototype.modelOrKey=function(t,e){return null!=e?"self"!==e?o.getPath(t,e):t:void 0},r.prototype.getProp=function(t,e,i){return this.scopeOrModelVal(t,e,i)},r.prototype.getChanges=function(t,e,i){var n,o,r;i&amp;&amp;(e=_.pick(e,i),t=_.pick(t,i)),o={},r={},n={};for(r in t)e&amp;&amp;e[r]===t[r]||(_.isArray(t[r])?o[r]=t[r]:_.isObject(t[r])?(n=this.getChanges(t[r],e?e[r]:null),_.isEmpty(n)||(o[r]=n)):o[r]=t[r]);return o},r.prototype.scopeOrModelVal=function(t,e,i,n){var o,r,s,a;return null==n&amp;&amp;(n=!1),o=function(t,e,i){return null==i&amp;&amp;(i=!1),i?{isScope:t,value:e}:e},a=_.get(e,t),_.isFunction(a)?o(!0,a(i),n):_.isObject(a)?o(!0,a,n):_.isString(a)?(r=a,s=r?"self"===r?i:_.get(i,r):_.get(i,t),_.isFunction(s)?o(!1,s(),n):o(!1,s,n)):o(!0,a,n)},r.prototype.setChildScope=function(t,e,i){var n,o,r,s;for(o in t)r=t[o],n=this.scopeOrModelVal(r,e,i,!0),null!=(null!=n?n.value:void 0)&amp;&amp;(s=n.value,s!==e[r]&amp;&amp;(e[r]=s));return e.model=i},r.prototype.onDestroy=function(t){},r.prototype.destroy=function(t){var e;return null==t&amp;&amp;(t=!1),null==this.scope||(null!=(e=this.scope)?e.$$destroyed:void 0)||!this.needToManualDestroy&amp;&amp;!t?this.clean():this.scope.$destroy()},r.prototype.updateChild=function(t,e){return null==e[this.idKey]?void this.$log.error("Model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key."):t.updateModel(e)},r.prototype.modelsLength=function(t){var i,n;return null==t&amp;&amp;(t=void 0),i=0,n=t?t:this.scope.models,null==n?i:i=e.isArray(n)||null!=n.length?n.length:Object.keys(n).length},r}(n)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelsWatcher",["uiGmapLogger","uiGmap_async","$q","uiGmapPromise",function(t,e,i,n){return{didQueueInitPromise:function(t,i){return 0===i.models.length&amp;&amp;(e.promiseLock(t,n.promiseTypes.init,null,null,function(t){return function(){return n.resolve()}}(this)),!0)},figureOutState:function(e,i,n,o,r){var s,a,l,u,p;return s=[],l={},u=[],p=[],i.models.forEach(function(r){var a;return null==r[e]?t.error(" id missing for model #{m.toString()},\ncan not use do comparison/insertion"):(l[r[e]]={},null==n.get(r[e])?s.push(r):(a=n.get(r[e]),o(r,a.clonedModel,i)?void 0:p.push({model:r,child:a})))}),a=n.values(),a.forEach(function(i){var n;return null==i?void t.error("child undefined in ModelsWatcher."):null==i.model?void t.error("child.model undefined in ModelsWatcher."):(n=i.model[e],null==l[n]?u.push(i):void 0)}),{adds:s,removals:u,updates:p}}}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapPromise",["$q","$timeout","uiGmapLogger",function(t,e,i){var n,o,r,s,a,l,u,p,h,c,d;return h={create:"create",update:"update","delete":"delete",init:"init"},p={IN_PROGRESS:0,RESOLVED:1,REJECTED:2},d=function(){var t;return t={},t[""+p.IN_PROGRESS]="in-progress",t[""+p.RESOLVED]="resolved",t[""+p.REJECTED]="rejected",t}(),s=function(t){return t.$$state?t.$$state.status===p.IN_PROGRESS:!t.hasOwnProperty("$$v")||void 0},a=function(t){return t.$$state?t.$$state.status===p.RESOLVED:!!t.hasOwnProperty("$$v")||void 0},u=function(t){return d[t]||"done w error"},n=function(e){var i,n,o;return i=t.defer(),n=t.all([e,i.promise]),o=t.defer(),e.then(i.resolve,function(){},function(t){return i.notify(t),o.notify(t)}),n.then(function(t){return o.resolve(t[0]||t[1])},function(t){return o.reject(t)}),o.promise.cancel=function(t){return null==t&amp;&amp;(t="canceled"),i.reject(t)},o.promise.notify=function(t){return null==t&amp;&amp;(t="cancel safe"),o.notify(t),e.hasOwnProperty("notify")?e.notify(t):void 0},null!=e.promiseType&amp;&amp;(o.promise.promiseType=e.promiseType),o.promise},o=function(t,e){return{promise:t,promiseType:e}},r=function(){return t.defer()},c=function(){var e;return e=t.defer(),e.resolve.apply(void 0,arguments),e.promise},l=function(n){var o;return _.isFunction(n)?(o=t.defer(),e(function(){var t;return t=n(),o.resolve(t)}),o.promise):void i.error("uiGmapPromise.promise() only accepts functions")},{defer:r,promise:l,resolve:c,promiseTypes:h,isInProgress:s,isResolved:a,promiseStatus:u,ExposedPromise:n,SniffedPromise:o}}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropMap",function(){var e;return e=function(){function e(){this.removeAll=t(this.removeAll,this),this.slice=t(this.slice,this),this.push=t(this.push,this),this.keys=t(this.keys,this),this.values=t(this.values,this),this.remove=t(this.remove,this),this.put=t(this.put,this),this.stateChanged=t(this.stateChanged,this),this.get=t(this.get,this),this.length=0,this.dict={},this.didValsStateChange=!1,this.didKeysStateChange=!1,this.allVals=[],this.allKeys=[]}return e.prototype.get=function(t){return this.dict[t]},e.prototype.stateChanged=function(){return this.didValsStateChange=!0,this.didKeysStateChange=!0},e.prototype.put=function(t,e){return null==this.get(t)&amp;&amp;this.length++,this.stateChanged(),this.dict[t]=e},e.prototype.remove=function(t,e){var i;return null==e&amp;&amp;(e=!1),e&amp;&amp;!this.get(t)?void 0:(i=this.dict[t],delete this.dict[t],this.length--,this.stateChanged(),i)},e.prototype.valuesOrKeys=function(t){var e,i;return null==t&amp;&amp;(t="Keys"),this["did"+t+"StateChange"]?(i=[],e=[],_.each(this.dict,function(t,n){return i.push(t),e.push(n)}),this.didKeysStateChange=!1,this.didValsStateChange=!1,this.allVals=i,this.allKeys=e,this["all"+t]):this["all"+t]},e.prototype.values=function(){return this.valuesOrKeys("Vals")},e.prototype.keys=function(){return this.valuesOrKeys()},e.prototype.push=function(t,e){return null==e&amp;&amp;(e="key"),this.put(t[e],t)},e.prototype.slice=function(){return this.keys().map(function(t){return function(e){return t.remove(e)}}(this))},e.prototype.removeAll=function(){return this.slice()},e.prototype.each=function(t){return _.each(this.dict,function(e,i){return t(e)})},e.prototype.map=function(t){return _.map(this.dict,function(e,i){return t(e)})},e}()})}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropertyAction",["uiGmapLogger",function(t){var e;return e=function(t){return this.setIfChange=function(e,i){var n;return n=this.exp,_.isEqual(i,e)?void 0:t(n,e)},this.sic=this.setIfChange,this}}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapClustererMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap","uiGmapEventsHelper",function(i,n,o,r){var s;return s=function(){function s(e,n,r,a){null==n&amp;&amp;(n={}),this.opt_options=null!=r?r:{},this.opt_events=a,this.checkSync=t(this.checkSync,this),this.getGMarkers=t(this.getGMarkers,this),this.fit=t(this.fit,this),this.destroy=t(this.destroy,this),this.attachEvents=t(this.attachEvents,this),this.clear=t(this.clear,this),this.draw=t(this.draw,this),this.removeMany=t(this.removeMany,this),this.remove=t(this.remove,this),this.addMany=t(this.addMany,this),this.update=t(this.update,this),this.add=t(this.add,this),this.type=s.type,this.clusterer=new NgMapMarkerClusterer(e,n,this.opt_options),this.propMapGMarkers=new o,this.attachEvents(this.opt_events,"opt_events"),this.clusterer.setIgnoreHidden(!0),this.noDrawOnSingleAddRemoves=!0,i.info(this)}return s.type="ClustererMarkerManager",s.prototype.checkKey=function(t){var e;return null==t.key?(e="gMarker.key undefined and it is REQUIRED!!",i.error(e)):void 0},s.prototype.add=function(t){return this.checkKey(t),this.clusterer.addMarker(t,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.put(t.key,t),this.checkSync()},s.prototype.update=function(t){return this.remove(t),this.add(t)},s.prototype.addMany=function(t){return t.forEach(function(t){return function(e){return t.add(e)}}(this))},s.prototype.remove=function(t){var e;return this.checkKey(t),e=this.propMapGMarkers.get(t.key),e&amp;&amp;(this.clusterer.removeMarker(t,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.remove(t.key)),this.checkSync()},s.prototype.removeMany=function(t){return t.forEach(function(t){return function(e){return t.remove(e)}}(this))},s.prototype.draw=function(){return this.clusterer.repaint()},s.prototype.clear=function(){return this.removeMany(this.getGMarkers()),this.clusterer.repaint()},s.prototype.attachEvents=function(t,n){var o,r,s;if(this.listeners=[],e.isDefined(t)&amp;&amp;null!=t&amp;&amp;e.isObject(t)){s=[];for(r in t)o=t[r],t.hasOwnProperty(r)&amp;&amp;e.isFunction(t[r])?(i.info(n+": Attaching event: "+r+" to clusterer"),s.push(this.listeners.push(google.maps.event.addListener(this.clusterer,r,t[r])))):s.push(void 0);return s}},s.prototype.clearEvents=function(){return r.removeEvents(this.listeners),this.listeners=[]},s.prototype.destroy=function(){return this.clearEvents(),this.clear()},s.prototype.fit=function(){return n.fit(this.getGMarkers(),this.clusterer.getMap())},s.prototype.getGMarkers=function(){return this.clusterer.getMarkers().values()},s.prototype.checkSync=function(){},s}()}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap",function(e,i,n){var o;return o=function(){function o(i,r,s){this.getGMarkers=t(this.getGMarkers,this),this.fit=t(this.fit,this),this.handleOptDraw=t(this.handleOptDraw,this),this.clear=t(this.clear,this),this.destroy=t(this.destroy,this),this.draw=t(this.draw,this),this.removeMany=t(this.removeMany,this),this.remove=t(this.remove,this),this.addMany=t(this.addMany,this),this.update=t(this.update,this),this.add=t(this.add,this),this.type=o.type,this.gMap=i,this.gMarkers=new n,this.$log=e,this.$log.info(this)}return o.type="MarkerManager",o.prototype.add=function(t,i){var n,o;if(null==i&amp;&amp;(i=!0),null==t.key)throw o="gMarker.key undefined and it is REQUIRED!!",e.error(o),o;return n=this.gMarkers.get(t.key),n?void 0:(this.handleOptDraw(t,i,!0),this.gMarkers.put(t.key,t))},o.prototype.update=function(t,e){return null==e&amp;&amp;(e=!0),this.remove(t,e),this.add(t,e)},o.prototype.addMany=function(t){return t.forEach(function(t){return function(e){return t.add(e)}}(this))},o.prototype.remove=function(t,e){return null==e&amp;&amp;(e=!0),this.handleOptDraw(t,e,!1),this.gMarkers.get(t.key)?this.gMarkers.remove(t.key):void 0},o.prototype.removeMany=function(t){return t.forEach(function(t){return function(e){return t.remove(e)}}(this))},o.prototype.draw=function(){var t;return t=[],this.gMarkers.each(function(e){return function(i){return i.isDrawn?void 0:i.doAdd?(i.setMap(e.gMap),i.isDrawn=!0):t.push(i)}}(this)),t.forEach(function(t){return function(e){return e.isDrawn=!1,t.remove(e,!0)}}(this))},o.prototype.destroy=function(){return this.clear()},o.prototype.clear=function(){return this.gMarkers.each(function(t){return t.setMap(null)}),delete this.gMarkers,this.gMarkers=new n},o.prototype.handleOptDraw=function(t,e,i){return e===!0?(i?t.setMap(this.gMap):t.setMap(null),t.isDrawn=!0):(t.isDrawn=!1,t.doAdd=i)},o.prototype.fit=function(){return i.fit(this.getGMarkers(),this.gMap)},o.prototype.getGMarkers=function(){return this.gMarkers.values()},o}()}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapSpiderfierMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap","uiGmapMarkerSpiderfier",function(i,n,o,r){var s;return s=function(){function s(e,n,a,l,u){null==n&amp;&amp;(n={}),this.opt_options=null!=a?a:{},this.opt_events=l,this.scope=u,this.checkSync=t(this.checkSync,this),this.isSpiderfied=t(this.isSpiderfied,this),this.getGMarkers=t(this.getGMarkers,this),this.fit=t(this.fit,this),this.destroy=t(this.destroy,this),this.attachEvents=t(this.attachEvents,this),this.clear=t(this.clear,this),this.draw=t(this.draw,this),this.removeMany=t(this.removeMany,this),this.remove=t(this.remove,this),this.addMany=t(this.addMany,this),this.update=t(this.update,this),this.add=t(this.add,this),this.type=s.type,this.markerSpiderfier=new r(e,this.opt_options),
this.propMapGMarkers=new o,this.attachEvents(this.opt_events,"opt_events"),this.noDrawOnSingleAddRemoves=!0,i.info(this)}return s.type="SpiderfierMarkerManager",s.prototype.checkKey=function(t){var e;return null==t.key?(e="gMarker.key undefined and it is REQUIRED!!",i.error(e)):void 0},s.prototype.add=function(t){return t.setMap(this.markerSpiderfier.map),this.checkKey(t),this.markerSpiderfier.addMarker(t,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.put(t.key,t),this.checkSync()},s.prototype.update=function(t){return this.remove(t),this.add(t)},s.prototype.addMany=function(t){return t.forEach(function(t){return function(e){return t.add(e)}}(this))},s.prototype.remove=function(t){var e;return this.checkKey(t),e=this.propMapGMarkers.get(t.key),e&amp;&amp;(t.setMap(null),this.markerSpiderfier.removeMarker(t,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.remove(t.key)),this.checkSync()},s.prototype.removeMany=function(t){return t.forEach(function(t){return function(e){return t.remove(e)}}(this))},s.prototype.draw=function(){},s.prototype.clear=function(){return this.removeMany(this.getGMarkers())},s.prototype.attachEvents=function(t,n){return e.isDefined(t)&amp;&amp;null!=t&amp;&amp;e.isObject(t)?_.each(t,function(o){return function(r,s){return t.hasOwnProperty(s)&amp;&amp;e.isFunction(t[s])?(i.info(n+": Attaching event: "+s+" to markerSpiderfier"),o.markerSpiderfier.addListener(s,function(){return"spiderfy"===s||"unspiderfy"===s?o.scope.$evalAsync(t[s].apply(t,arguments)):o.scope.$evalAsync(t[s].apply(t,[arguments[0],s,arguments[0].model,arguments]))})):void 0}}(this)):void 0},s.prototype.clearEvents=function(t,n){var o,r;if(e.isDefined(t)&amp;&amp;null!=t&amp;&amp;e.isObject(t))for(r in t)o=t[r],t.hasOwnProperty(r)&amp;&amp;e.isFunction(t[r])&amp;&amp;(i.info(n+": Clearing event: "+r+" to markerSpiderfier"),this.markerSpiderfier.clearListeners(r))},s.prototype.destroy=function(){return this.clearEvents(this.opt_events,"opt_events"),this.clear()},s.prototype.fit=function(){return n.fit(this.getGMarkers(),this.markerSpiderfier.map)},s.prototype.getGMarkers=function(){return this.markerSpiderfier.getMarkers()},s.prototype.isSpiderfied=function(){return _.find(this.getGMarkers(),function(t){return null!=(null!=t?t._omsData:void 0)})},s.prototype.checkSync=function(){},s}()}])}.call(this),function(){e.module("uiGmapgoogle-maps").factory("uiGmapadd-events",["$timeout",function(t){var i,n;return i=function(e,i,n){return google.maps.event.addListener(e,i,function(){return n.apply(this,arguments),t(function(){},!0)})},n=function(t,n,o){var r;return o?i(t,n,o):(r=[],e.forEach(n,function(e,n){return r.push(i(t,n,e))}),function(){return e.forEach(r,function(t){return google.maps.event.removeListener(t)}),r=null})}}])}.call(this),function(){e.module("uiGmapgoogle-maps").factory("uiGmaparray-sync",["uiGmapadd-events",function(t){return function(i,n,o,r){var s,a,l,u,p,h,c,d,g;return u=!1,d=n.$eval(o),n["static"]||(p={set_at:function(t){var e;if(!u&amp;&amp;(e=i.getAt(t)))return e.lng&amp;&amp;e.lat?(d[t].latitude=e.lat(),d[t].longitude=e.lng()):d[t]=e},insert_at:function(t){var e;if(!u&amp;&amp;(e=i.getAt(t)))return e.lng&amp;&amp;e.lat?d.splice(t,0,{latitude:e.lat(),longitude:e.lng()}):d.splice(t,0,e)},remove_at:function(t){return u?void 0:d.splice(t,1)}},"Polygon"===d.type?s=d.coordinates[0]:"LineString"===d.type&amp;&amp;(s=d.coordinates),a={set_at:function(t){var e;if(!u&amp;&amp;(e=i.getAt(t),e&amp;&amp;e.lng&amp;&amp;e.lat))return s[t][1]=e.lat(),s[t][0]=e.lng()},insert_at:function(t){var e;if(!u&amp;&amp;(e=i.getAt(t),e&amp;&amp;e.lng&amp;&amp;e.lat))return s.splice(t,0,[e.lng(),e.lat()])},remove_at:function(t){return u?void 0:s.splice(t,1)}},c=t(i,e.isUndefined(d.type)?p:a)),h=function(t){var e,n,o,s,a,l,p,h;if(u=!0,l=i,e=!1,t){for(n=0,p=l.getLength(),s=t.length,o=Math.min(p,s),a=void 0;o&gt;n;)h=l.getAt(n),a=t[n],"function"==typeof a.equals?a.equals(h)||(l.setAt(n,a),e=!0):(h.lat()!==a.latitude||h.lng()!==a.longitude)&amp;&amp;(l.setAt(n,new google.maps.LatLng(a.latitude,a.longitude)),e=!0),n++;for(;s&gt;n;)a=t[n],"function"==typeof a.lat&amp;&amp;"function"==typeof a.lng?l.push(a):l.push(new google.maps.LatLng(a.latitude,a.longitude)),e=!0,n++;for(;p&gt;n;)l.pop(),e=!0,n++}return u=!1,e?r(l):void 0},l=function(t){var e,n,o,s,a,l,p,h,c;if(u=!0,p=i,n=!1,t){for("Polygon"===d.type?e=t.coordinates[0]:"LineString"===d.type&amp;&amp;(e=t.coordinates),o=0,h=p.getLength(),a=e.length,s=Math.min(h,a),l=void 0;s&gt;o;)c=p.getAt(o),l=e[o],(c.lat()!==l[1]||c.lng()!==l[0])&amp;&amp;(p.setAt(o,new google.maps.LatLng(l[1],l[0])),n=!0),o++;for(;a&gt;o;)l=e[o],p.push(new google.maps.LatLng(l[1],l[0])),n=!0,o++;for(;h&gt;o;)p.pop(),n=!0,o++}return u=!1,n?r(p):void 0},n["static"]||(g=e.isUndefined(d.type)?n.$watchCollection(o,h):n.$watch(o,l,!0)),function(){return c&amp;&amp;(c(),c=null),g?(g(),g=null):void 0}}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapChromeFixes",["$timeout",function(t){return{maybeRepaint:function(e){return e?(e.style.opacity=.9,t(function(){return e.style.opacity=1})):void 0}}}])}.call(this),function(){e.module("uiGmapgoogle-maps").service("uiGmapObjectIterators",function(){var t,e,i,n;return t=["length","forEach","map"],e=[],i=function(e){return e.forEach=function(i){return _.each(_.omit(e,t),function(t){return _.isFunction(t)?void 0:i(t)})},e},e.push(i),n=function(e){return e.map=function(i){return _.map(_.omit(e,t),function(t){return _.isFunction(t)?void 0:i(t)})},e},e.push(n),{slapMap:n,slapForEach:i,slapAll:function(t){return e.forEach(function(e){return e(t)}),t}}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.options.builders").service("uiGmapCommonOptionsBuilder",["uiGmapBaseObject","uiGmapLogger","uiGmapModelKey",function(n,o,r){var s;return s=function(n){function r(){return this.watchProps=t(this.watchProps,this),this.buildOpts=t(this.buildOpts,this),r.__super__.constructor.apply(this,arguments)}return i(r,n),r.prototype.props=["clickable","draggable","editable","visible",{prop:"stroke",isColl:!0}],r.prototype.getCorrectModel=function(t){return e.isDefined(null!=t?t.model:void 0)?t.model:t},r.prototype.buildOpts=function(t,i,n){var r,s,a;return null==t&amp;&amp;(t={}),null==n&amp;&amp;(n={}),this.scope?this.map?(r=this.getCorrectModel(this.scope),a=this.scopeOrModelVal("stroke",this.scope,r),s=e.extend(t,this.DEFAULTS,{map:this.map,strokeColor:null!=a?a.color:void 0,strokeOpacity:null!=a?a.opacity:void 0,strokeWeight:null!=a?a.weight:void 0}),e.forEach(e.extend(n,{clickable:!0,draggable:!1,editable:!1,"static":!1,fit:!1,visible:!0,zIndex:0,icons:[]}),function(t){return function(n,o){var a;return a=i?i[o]:t.scopeOrModelVal(o,t.scope,r),e.isUndefined(a)?s[o]=n:s[o]=r[o]}}(this)),s["static"]&amp;&amp;(s.editable=!1),s):void o.error("this.map not defined in CommonOptionsBuilder can not buildOpts"):void o.error("this.scope not defined in CommonOptionsBuilder can not buildOpts")},r.prototype.watchProps=function(t){return null==t&amp;&amp;(t=this.props),t.forEach(function(t){return function(e){return null!=t.attrs[e]||null!=t.attrs[null!=e?e.prop:void 0]?(null!=e?e.isColl:void 0)?t.scope.$watchCollection(e.prop,t.setMyOptions):t.scope.$watch(e,t.setMyOptions):void 0}}(this))},r}(r)}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.options.builders").factory("uiGmapPolylineOptionsBuilder",["uiGmapCommonOptionsBuilder",function(e){var i;return i=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.buildOpts=function(t,e){return i.__super__.buildOpts.call(this,{path:t},e,{geodesic:!1})},i}(e)}]).factory("uiGmapShapeOptionsBuilder",["uiGmapCommonOptionsBuilder",function(i){var n;return n=function(i){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,i),n.prototype.buildOpts=function(t,i,o){var r,s;return s=this.getCorrectModel(this.scope),r=i?i.fill:this.scopeOrModelVal("fill",this.scope,s),t=e.extend(t,{fillColor:null!=r?r.color:void 0,fillOpacity:null!=r?r.opacity:void 0}),n.__super__.buildOpts.call(this,t,i,o)},n}(i)}]).factory("uiGmapPolygonOptionsBuilder",["uiGmapShapeOptionsBuilder",function(e){var i;return i=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.buildOpts=function(t,e){return i.__super__.buildOpts.call(this,{path:t},e,{geodesic:!1})},i}(e)}]).factory("uiGmapRectangleOptionsBuilder",["uiGmapShapeOptionsBuilder",function(e){var i;return i=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.buildOpts=function(t,e){return i.__super__.buildOpts.call(this,{bounds:t},e)},i}(e)}]).factory("uiGmapCircleOptionsBuilder",["uiGmapShapeOptionsBuilder",function(e){var i;return i=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.buildOpts=function(t,e,n){return i.__super__.buildOpts.call(this,{center:t,radius:e},n)},i}(e)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.options").service("uiGmapMarkerOptions",["uiGmapLogger","uiGmapGmapUtil",function(t,i){return _.extend(i,{createOptions:function(t,n,o,r){var s;return null==o&amp;&amp;(o={}),s=e.extend({},o,{position:null!=o.position?o.position:i.getCoords(t),visible:null!=o.visible?o.visible:i.validateCoords(t)}),(null!=o.icon||null!=n)&amp;&amp;(s=e.extend(s,{icon:null!=o.icon?o.icon:n})),null!=r&amp;&amp;(s.map=r),s},isLabel:function(t){return null!=t&amp;&amp;(null!=t.labelContent||null!=t.labelAnchor||null!=t.labelClass||null!=t.labelStyle||null!=t.labelVisible)}})}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapBasePolyChildModel",["uiGmapLogger","$timeout","uiGmaparray-sync","uiGmapGmapUtil","uiGmapEventsHelper",function(n,o,r,s,a){return function(n,o){var l;return l=function(n){function l(i,n,s,l,u,p){var h;this.scope=i,this.attrs=n,this.map=s,this.defaults=l,this.model=u,this.clean=t(this.clean,this),this.clonedModel=_.clone(this.model,!0),this.isDragging=!1,this.internalEvents={dragend:function(t){return function(){return _.defer(function(){return t.isDragging=!1})}}(this),dragstart:function(t){return function(){return t.isDragging=!0}}(this)},h=function(t){return function(){var i;if(!t.isDragging)return t.pathPoints=t.convertPathPoints(t.scope.path),null!=t.gObject&amp;&amp;t.clean(),null!=t.scope.model&amp;&amp;(i=t.scope),t.pathPoints.length&gt;0&amp;&amp;(t.gObject=o(t.buildOpts(t.pathPoints,i))),t.gObject?(r(t.gObject.getPath(),t.scope,"path",function(e){return t.pathPoints=e,null!=p?p():void 0}),e.isDefined(t.scope.events)&amp;&amp;e.isObject(t.scope.events)&amp;&amp;(t.listeners=t.model?a.setEvents(t.gObject,t.scope,t.model):a.setEvents(t.gObject,t.scope,t.scope)),t.internalListeners=t.model?a.setEvents(t.gObject,{events:t.internalEvents},t.model):a.setEvents(t.gObject,{events:t.internalEvents},t.scope)):void 0}}(this),h(),this.scope.$watch("path",function(t){return function(e,i){return _.isEqual(e,i)&amp;&amp;t.gObject?void 0:h()}}(this),!0),!this.scope["static"]&amp;&amp;e.isDefined(this.scope.editable)&amp;&amp;this.scope.$watch("editable",function(t){return function(e,i){var n;return e!==i?(e=!t.isFalse(e),null!=(n=t.gObject)?n.setEditable(e):void 0):void 0}}(this),!0),e.isDefined(this.scope.draggable)&amp;&amp;this.scope.$watch("draggable",function(t){return function(e,i){var n;return e!==i?(e=!t.isFalse(e),null!=(n=t.gObject)?n.setDraggable(e):void 0):void 0}}(this),!0),e.isDefined(this.scope.visible)&amp;&amp;this.scope.$watch("visible",function(t){return function(e,i){var n;return e!==i&amp;&amp;(e=!t.isFalse(e)),null!=(n=t.gObject)?n.setVisible(e):void 0}}(this),!0),e.isDefined(this.scope.geodesic)&amp;&amp;this.scope.$watch("geodesic",function(t){return function(e,i){var n;return e!==i?(e=!t.isFalse(e),null!=(n=t.gObject)?n.setOptions(t.buildOpts(t.gObject.getPath())):void 0):void 0}}(this),!0),e.isDefined(this.scope.stroke)&amp;&amp;e.isDefined(this.scope.stroke.weight)&amp;&amp;this.scope.$watch("stroke.weight",function(t){return function(e,i){var n;return e!==i&amp;&amp;null!=(n=t.gObject)?n.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this),!0),e.isDefined(this.scope.stroke)&amp;&amp;e.isDefined(this.scope.stroke.color)&amp;&amp;this.scope.$watch("stroke.color",function(t){return function(e,i){var n;return e!==i&amp;&amp;null!=(n=t.gObject)?n.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this),!0),e.isDefined(this.scope.stroke)&amp;&amp;e.isDefined(this.scope.stroke.opacity)&amp;&amp;this.scope.$watch("stroke.opacity",function(t){return function(e,i){var n;return e!==i&amp;&amp;null!=(n=t.gObject)?n.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this),!0),e.isDefined(this.scope.icons)&amp;&amp;this.scope.$watch("icons",function(t){return function(e,i){var n;return e!==i&amp;&amp;null!=(n=t.gObject)?n.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this),!0),this.scope.$on("$destroy",function(t){return function(){return t.clean(),t.scope=null}}(this)),e.isDefined(this.scope.fill)&amp;&amp;e.isDefined(this.scope.fill.color)&amp;&amp;this.scope.$watch("fill.color",function(t){return function(e,i){return e!==i?t.gObject.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this)),e.isDefined(this.scope.fill)&amp;&amp;e.isDefined(this.scope.fill.opacity)&amp;&amp;this.scope.$watch("fill.opacity",function(t){return function(e,i){return e!==i?t.gObject.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this)),e.isDefined(this.scope.zIndex)&amp;&amp;this.scope.$watch("zIndex",function(t){return function(e,i){return e!==i?t.gObject.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this))}return i(l,n),l.include(s),l.prototype.clean=function(){var t;return a.removeEvents(this.listeners),a.removeEvents(this.internalListeners),null!=(t=this.gObject)&amp;&amp;t.setMap(null),this.gObject=null},l}(n)}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapDrawFreeHandChildModel",["uiGmapLogger","$q",function(t,e){var i,n;return i=function(t,e,i){var n,o;return o=new google.maps.Polyline({map:t,clickable:!1}),n=google.maps.event.addListener(t,"mousemove",function(t){return o.getPath().push(t.latLng)}),void google.maps.event.addListenerOnce(t,"mouseup",function(r){var s;return google.maps.event.removeListener(n),s=o.getPath(),o.setMap(null),e.push(new google.maps.Polygon({map:t,path:s})),o=null,google.maps.event.clearListeners(t.getDiv(),"mousedown"),i()})},n=function(n,o){var r,s;return this.map=n,r=function(e){return function(){var i;return i={draggable:!1,disableDefaultUI:!0,scrollwheel:!1,disableDoubleClickZoom:!1},t.info("disabling map move"),e.map.setOptions(i)}}(this),s=function(t){return function(){var e,i;return e={draggable:!0,disableDefaultUI:!1,scrollwheel:!0,disableDoubleClickZoom:!0},null!=(i=t.deferred)&amp;&amp;i.resolve(),_.defer(function(){return t.map.setOptions(_.extend(e,o.options))})}}(this),this.engage=function(n){return function(o){return n.polys=o,n.deferred=e.defer(),r(),t.info("DrawFreeHandChildModel is engaged (drawing)."),google.maps.event.addDomListener(n.map.getDiv(),"mousedown",function(t){return i(n.map,n.polys,s)}),n.deferred.promise}}(this),this}}])}.call(this),function(){var i=function(t,e){return function(){return t.apply(e,arguments)}},n=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapMarkerChildModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger","uiGmapEventsHelper","uiGmapPropertyAction","uiGmapMarkerOptions","uiGmapIMarker","uiGmapMarkerManager","uiGmapPromise",function(e,o,r,s,a,l,u,p,h){var c;return c=function(e){function c(t,e,n,o,s,l,u,p,g,f){var m;this.model=e,this.keys=n,this.gMap=o,this.defaults=s,this.doClick=l,this.gManager=u,this.doDrawSelf=null==p||p,this.trackModel=null==g||g,this.needRedraw=null!=f&amp;&amp;f,this.internalEvents=i(this.internalEvents,this),this.setLabelOptions=i(this.setLabelOptions,this),this.setOptions=i(this.setOptions,this),this.setIcon=i(this.setIcon,this),this.setCoords=i(this.setCoords,this),this.isNotValid=i(this.isNotValid,this),this.maybeSetScopeValue=i(this.maybeSetScopeValue,this),this.createMarker=i(this.createMarker,this),this.setMyScope=i(this.setMyScope,this),this.updateModel=i(this.updateModel,this),this.handleModelChanges=i(this.handleModelChanges,this),this.destroy=i(this.destroy,this),this.clonedModel=_.clone(this.model,!0),this.deferred=h.defer(),_.each(this.keys,function(t){return function(e,i){var n;return n=t.keys[i],null!=n&amp;&amp;!_.isFunction(n)&amp;&amp;_.isString(n)?t[i+"Key"]=n:void 0}}(this)),this.idKey=this.idKeyKey||"id",null!=this.model[this.idKey]&amp;&amp;(this.id=this.model[this.idKey]),c.__super__.constructor.call(this,t),this.scope.getGMarker=function(t){return function(){return t.gObject}}(this),this.firstTime=!0,this.trackModel?(this.scope.model=this.model,this.scope.$watch("model",function(t){return function(e,i){return e!==i?t.handleModelChanges(e,i):void 0}}(this),!0)):(m=new a(function(e){return function(i,n){return e.firstTime?void 0:e.setMyScope(i,t)}}(this),(!1)),_.each(this.keys,function(e,i){return t.$watch(i,m.sic,!0)})),this.scope.$on("$destroy",function(t){return function(){return d(t)}}(this)),this.createMarker(this.model),r.info(this)}var d;return n(c,e),c.include(o),c.include(s),c.include(l),d=function(t){return null!=(null!=t?t.gObject:void 0)&amp;&amp;(t.removeEvents(t.externalListeners),t.removeEvents(t.internalListeners),null!=t?t.gObject:void 0)?(t.removeFromManager&amp;&amp;t.gManager.remove(t.gObject),t.gObject.setMap(null),t.gObject=null):void 0},c.prototype.destroy=function(t){return null==t&amp;&amp;(t=!0),this.removeFromManager=t,this.scope.$destroy()},c.prototype.handleModelChanges=function(t,e){var i,n,o;return i=this.getChanges(t,e,u.keys),this.firstTime?void 0:(n=0,o=_.keys(i).length,_.each(i,function(i){return function(r,s){var a;return n+=1,a=o===n,i.setMyScope(s,t,e,!1,!0,a),i.needRedraw=!0}}(this)))},c.prototype.updateModel=function(t){return this.clonedModel=_.clone(t,!0),this.setMyScope("all",t,this.model)},c.prototype.renderGMarker=function(e,i){var n,o,s;if(null==e&amp;&amp;(e=!0),n=this.getProp("coords",this.scope,this.model),null!=(null!=(s=this.gManager)?s.isSpiderfied:void 0)&amp;&amp;(o=this.gManager.isSpiderfied()),null!=n){if(!this.validateCoords(n))return void r.debug("MarkerChild does not have coords yet. They may be defined later.");if(null!=i&amp;&amp;i(),e&amp;&amp;this.gObject&amp;&amp;this.gManager.add(this.gObject),o)return this.gManager.markerSpiderfier.spiderListener(this.gObject,t.event)}else if(e&amp;&amp;this.gObject)return this.gManager.remove(this.gObject)},c.prototype.setMyScope=function(t,e,i,n,o){var r;switch(null==i&amp;&amp;(i=void 0),null==n&amp;&amp;(n=!1),null==o&amp;&amp;(o=!0),null==e?e=this.model:this.model=e,this.gObject||(this.setOptions(this.scope,o),r=!0),t){case"all":return _.each(this.keys,function(t){return function(r,s){return t.setMyScope(s,e,i,n,o)}}(this));case"icon":return this.maybeSetScopeValue("icon",e,i,this.iconKey,this.evalModelHandle,n,this.setIcon,o);case"coords":return this.maybeSetScopeValue("coords",e,i,this.coordsKey,this.evalModelHandle,n,this.setCoords,o);case"options":if(!r)return this.createMarker(e,i,n,o)}},c.prototype.createMarker=function(t,e,i,n){return null==e&amp;&amp;(e=void 0),null==i&amp;&amp;(i=!1),null==n&amp;&amp;(n=!0),this.maybeSetScopeValue("options",t,e,this.optionsKey,this.evalModelHandle,i,this.setOptions,n),this.firstTime=!1},c.prototype.maybeSetScopeValue=function(t,e,i,n,o,r,s,a){return null==s&amp;&amp;(s=void 0),null==a&amp;&amp;(a=!0),null!=s?s(this.scope,a):void 0},c.doDrawSelf&amp;&amp;doDraw&amp;&amp;c.gManager.draw(),c.prototype.isNotValid=function(t,e){var i,n;return null==e&amp;&amp;(e=!0),n=!!e&amp;&amp;void 0===this.gObject,i=!this.trackModel&amp;&amp;t.$id!==this.scope.$id,i||n},c.prototype.setCoords=function(t,e){return null==e&amp;&amp;(e=!0),this.isNotValid(t)||null==this.gObject?void 0:this.renderGMarker(e,function(e){return function(){var i,n,o;return n=e.getProp("coords",t,e.model),i=e.getCoords(n),o=e.gObject.getPosition(),null==o||null==i||i.lng()!==o.lng()||i.lat()!==o.lat()?(e.gObject.setPosition(i),e.gObject.setVisible(e.validateCoords(n))):void 0}}(this))},c.prototype.setIcon=function(t,e){return null==e&amp;&amp;(e=!0),this.isNotValid(t)||null==this.gObject?void 0:this.renderGMarker(e,function(e){return function(){var i,n,o;return o=e.gObject.getIcon(),n=e.getProp("icon",t,e.model),o!==n?(e.gObject.setIcon(n),i=e.getProp("coords",t,e.model),e.gObject.setPosition(e.getCoords(i)),e.gObject.setVisible(e.validateCoords(i))):void 0}}(this))},c.prototype.setOptions=function(t,e){var i;if(null==e&amp;&amp;(e=!0),!this.isNotValid(t,!1)){if(this.renderGMarker(e,function(e){return function(){var i,n,o;return n=e.getProp("coords",t,e.model),o=e.getProp("icon",t,e.model),i=e.getProp("options",t,e.model),e.opts=e.createOptions(n,o,i),e.isLabel(e.gObject)!==e.isLabel(e.opts)&amp;&amp;null!=e.gObject&amp;&amp;(e.gManager.remove(e.gObject),e.gObject=void 0),null!=e.gObject&amp;&amp;e.gObject.setOptions(e.setLabelOptions(e.opts)),e.gObject||(e.isLabel(e.opts)?e.gObject=new MarkerWithLabel(e.setLabelOptions(e.opts)):e.opts.content?(e.gObject=new RichMarker(e.opts),e.gObject.getIcon=e.gObject.getContent,e.gObject.setIcon=e.gObject.setContent):e.gObject=new google.maps.Marker(e.opts),_.extend(e.gObject,{model:e.model})),e.externalListeners&amp;&amp;e.removeEvents(e.externalListeners),e.internalListeners&amp;&amp;e.removeEvents(e.internalListeners),e.externalListeners=e.setEvents(e.gObject,e.scope,e.model,["dragend"]),e.internalListeners=e.setEvents(e.gObject,{events:e.internalEvents(),$evalAsync:function(){}},e.model),null!=e.id?e.gObject.key=e.id:void 0}}(this)),this.gObject&amp;&amp;(this.gObject.getMap()||this.gManager.type!==p.type))this.deferred.resolve(this.gObject);else{if(!this.gObject)return this.deferred.reject("gObject is null");(null!=(i=this.gObject)?i.getMap():0)&amp;&amp;this.gManager.type===p.type||(r.debug("gObject has no map yet"),this.deferred.resolve(this.gObject))}return this.model[this.fitKey]?this.gManager.fit():void 0}},c.prototype.setLabelOptions=function(t){return t.labelAnchor&amp;&amp;(t.labelAnchor=this.getLabelPositionPoint(t.labelAnchor)),t},c.prototype.internalEvents=function(){return{dragend:function(t){return function(e,i,n,o){var r,s,a;return s=t.trackModel?t.scope.model:t.model,a=t.setCoordsFromEvent(t.modelOrKey(s,t.coordsKey),t.gObject.getPosition()),s=t.setVal(n,t.coordsKey,a),r=t.scope.events,null!=(null!=r?r.dragend:void 0)&amp;&amp;r.dragend(e,i,s,o),t.scope.$apply()}}(this),click:function(t){return function(e,i,n,o){var r;return r=t.getProp("click",t.scope,t.model),t.doClick&amp;&amp;null!=r?t.scope.$evalAsync(r(e,i,t.model,o)):void 0}}(this)}},c}(e)}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygonChildModel",["uiGmapBasePolyChildModel","uiGmapPolygonOptionsBuilder",function(e,i){var n,o,r;return r=function(t){return new google.maps.Polygon(t)},o=new e(i,r),n=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i}(o)}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylineChildModel",["uiGmapBasePolyChildModel","uiGmapPolylineOptionsBuilder",function(e,i){var n,o,r;return r=function(t){return new google.maps.Polyline(t)},o=e(i,r),n=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i}(o)}])}.call(this),function(){var i=function(t,e){return function(){return t.apply(e,arguments)}},n=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapWindowChildModel",["uiGmapBaseObject","uiGmapGmapUtil","uiGmapLogger","$compile","$http","$templateCache","uiGmapChromeFixes","uiGmapEventsHelper",function(o,r,s,a,l,u,p,h){var c;return c=function(o){function c(t,e,n,o,r,a,l,u,p){var h;this.model=t,this.scope=e,this.opts=n,this.isIconVisibleOnClick=o,this.mapCtrl=r,this.markerScope=a,this.element=l,this.needToManualDestroy=null!=u&amp;&amp;u,this.markerIsVisibleAfterWindowClose=null==p||p,this.updateModel=i(this.updateModel,this),this.destroy=i(this.destroy,this),this.remove=i(this.remove,this),this.getLatestPosition=i(this.getLatestPosition,this),this.hideWindow=i(this.hideWindow,this),this.showWindow=i(this.showWindow,this),this.handleClick=i(this.handleClick,this),this.watchOptions=i(this.watchOptions,this),this.watchCoords=i(this.watchCoords,this),this.createGWin=i(this.createGWin,this),this.watchElement=i(this.watchElement,this),this.watchAndDoShow=i(this.watchAndDoShow,this),this.doShow=i(this.doShow,this),this.clonedModel=_.clone(this.model,!0),this.getGmarker=function(){var t,e;return null!=(null!=(t=this.markerScope)?t.getGMarker:void 0)&amp;&amp;null!=(e=this.markerScope)?e.getGMarker():void 0},this.listeners=[],this.createGWin(),h=this.getGmarker(),null!=h&amp;&amp;h.setClickable(!0),this.watchElement(),this.watchOptions(),this.watchCoords(),this.watchAndDoShow(),this.scope.$on("$destroy",function(t){return function(){return t.destroy()}}(this)),s.info(this)}return n(c,o),c.include(r),c.include(h),c.prototype.doShow=function(t){return this.scope.show===!0||t?this.showWindow():this.hideWindow()},c.prototype.watchAndDoShow=function(){return null!=this.model.show&amp;&amp;(this.scope.show=this.model.show),this.scope.$watch("show",this.doShow,!0),this.doShow()},c.prototype.watchElement=function(){return this.scope.$watch(function(t){return function(){var e,i;if(t.element||t.html)return t.html!==t.element.html()&amp;&amp;t.gObject?(null!=(e=t.opts)&amp;&amp;(e.content=void 0),i=t.gObject.isOpen(),t.remove(),t.createGWin(i)):void 0}}(this))},c.prototype.createGWin=function(e){var i,n,o,r,s;return null==e&amp;&amp;(e=!1),o=this.getGmarker(),n={},null!=this.opts&amp;&amp;(this.scope.coords&amp;&amp;(this.opts.position=this.getCoords(this.scope.coords)),n=this.opts),this.element&amp;&amp;(this.html=_.isObject(this.element)?this.element.html():this.element),i=this.scope.options?this.scope.options:n,this.opts=this.createWindowOptions(o,this.markerScope||this.scope,this.html,i),null!=this.opts?(this.gObject||(this.opts.boxClass&amp;&amp;t.InfoBox&amp;&amp;"function"==typeof t.InfoBox?this.gObject=new t.InfoBox(this.opts):this.gObject=new google.maps.InfoWindow(this.opts),this.listeners.push(google.maps.event.addListener(this.gObject,"domready",function(){return p.maybeRepaint(this.content)})),this.listeners.push(google.maps.event.addListener(this.gObject,"closeclick",function(t){return function(){return o&amp;&amp;(o.setAnimation(t.oldMarkerAnimation),t.markerIsVisibleAfterWindowClose&amp;&amp;_.delay(function(){return o.setVisible(!1),o.setVisible(t.markerIsVisibleAfterWindowClose)},250)),t.gObject.close(),t.model.show=!1,null!=t.scope.closeClick?t.scope.$evalAsync(t.scope.closeClick()):t.scope.$evalAsync()}}(this)))),this.gObject.setContent(this.opts.content),this.handleClick((null!=(r=this.scope)&amp;&amp;null!=(s=r.options)?s.forceClick:void 0)||e),this.doShow(this.gObject.isOpen())):void 0},c.prototype.watchCoords=function(){var t;return t=null!=this.markerScope?this.markerScope:this.scope,t.$watch("coords",function(t){return function(e,i){var n;if(e!==i){if(null==e)t.hideWindow();else if(!t.validateCoords(e))return void s.error("WindowChildMarker cannot render marker as scope.coords as no position on marker: "+JSON.stringify(t.model));if(n=t.getCoords(e),t.doShow(),t.gObject.setPosition(n),t.opts)return t.opts.position=n}}}(this),!0)},c.prototype.watchOptions=function(){return this.scope.$watch("options",function(t){return function(e,i){if(e!==i&amp;&amp;(t.opts=e,null!=t.gObject)){if(t.gObject.setOptions(t.opts),null!=t.opts.visible&amp;&amp;t.opts.visible)return t.showWindow();if(null!=t.opts.visible)return t.hideWindow()}}}(this),!0)},c.prototype.handleClick=function(t){var e,i;if(null!=this.gObject)return i=this.getGmarker(),e=function(t){return function(){return null==t.gObject&amp;&amp;t.createGWin(),t.showWindow(),null!=i?(t.initialMarkerVisibility=i.getVisible(),t.oldMarkerAnimation=i.getAnimation(),i.setVisible(t.isIconVisibleOnClick)):void 0}}(this),t&amp;&amp;e(),i?this.listeners=this.listeners.concat(this.setEvents(i,{events:{click:e}},this.model)):void 0},c.prototype.showWindow=function(){var t,i,n;return null!=this.gObject?(i=function(t){return function(){var e,i,n;if(!t.gObject.isOpen()){if(i=t.getGmarker(),null!=t.gObject&amp;&amp;null!=t.gObject.getPosition&amp;&amp;(n=t.gObject.getPosition()),i&amp;&amp;(n=i.getPosition()),!n)return;if(t.gObject.open(t.mapCtrl,i),e=t.gObject.isOpen(),t.model.show!==e)return t.model.show=e}}}(this),this.scope.templateUrl?l.get(this.scope.templateUrl,{cache:u}).then(function(t){return function(n){var o,r;return r=t.scope.$new(),e.isDefined(t.scope.templateParameter)&amp;&amp;(r.parameter=t.scope.templateParameter),o=a(n.data)(r),t.gObject.setContent(o[0]),i()}}(this)):this.scope.template?(n=this.scope.$new(),e.isDefined(this.scope.templateParameter)&amp;&amp;(n.parameter=this.scope.templateParameter),t=a(this.scope.template)(n),this.gObject.setContent(t[0]),i()):i()):void 0},c.prototype.hideWindow=function(){return null!=this.gObject&amp;&amp;this.gObject.isOpen()?this.gObject.close():void 0},c.prototype.getLatestPosition=function(t){var e;return e=this.getGmarker(),null==this.gObject||null==e||t?t?this.gObject.setPosition(t):void 0:this.gObject.setPosition(e.getPosition())},c.prototype.remove=function(){return this.hideWindow(),this.removeEvents(this.listeners),this.listeners.length=0,delete this.gObject,delete this.opts},c.prototype.destroy=function(t){var e;return null==t&amp;&amp;(t=!1),this.remove(),null==this.scope||(null!=(e=this.scope)?e.$$destroyed:void 0)||!this.needToManualDestroy&amp;&amp;!t?void 0:this.scope.$destroy()},c.prototype.updateModel=function(t){return this.clonedModel=_.clone(t,!0),_.extend(this.model,this.clonedModel)},c}(o)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapBasePolysParentModel",["$timeout","uiGmapLogger","uiGmapModelKey","uiGmapModelsWatcher","uiGmapPropMap","uiGmap_async","uiGmapPromise","uiGmapFitHelper",function(n,o,r,s,a,l,u,p){return function(n,h,c){var d;return d=function(r){function d(e,i,r,s,l){this.element=i,this.attrs=r,this.gMap=s,this.defaults=l,this.maybeFit=t(this.maybeFit,this),this.createChild=t(this.createChild,this),this.pieceMeal=t(this.pieceMeal,this),this.createAllNew=t(this.createAllNew,this),this.watchIdKey=t(this.watchIdKey,this),this.createChildScopes=t(this.createChildScopes,this),this.watchDestroy=t(this.watchDestroy,this),this.onDestroy=t(this.onDestroy,this),this.rebuildAll=t(this.rebuildAll,this),this.doINeedToWipe=t(this.doINeedToWipe,this),this.watchModels=t(this.watchModels,this),d.__super__.constructor.call(this,e),this["interface"]=n,this.$log=o,this.plurals=new a,_.each(n.scopeKeys,function(t){return function(e){return t[e+"Key"]=void 0}}(this)),this.models=void 0,this.firstTime=!0,this.$log.info(this),this.createChildScopes()}return i(d,r),d.include(s),d.prototype.watchModels=function(t){return t.$watch("models",function(e){return function(i,n){return i!==n?e.doINeedToWipe(i)||t.doRebuildAll?e.rebuildAll(t,!0,!0):e.createChildScopes(!1):void 0;
}}(this),!0)},d.prototype.doINeedToWipe=function(t){var e;return e=null==t||0===t.length,this.plurals.length&gt;0&amp;&amp;e},d.prototype.rebuildAll=function(t,e,i){return this.onDestroy(i).then(function(t){return function(){return e?t.createChildScopes():void 0}}(this))},d.prototype.onDestroy=function(t){return d.__super__.onDestroy.call(this,this.scope),l.promiseLock(this,u.promiseTypes["delete"],void 0,void 0,function(t){return function(){return l.each(t.plurals.values(),function(t){return t.destroy(!0)},l.chunkSizeFrom(t.scope.cleanchunk,!1)).then(function(){var e;return null!=(e=t.plurals)?e.removeAll():void 0})}}(this))},d.prototype.watchDestroy=function(t){return t.$on("$destroy",function(e){return function(){return e.rebuildAll(t,!1,!0)}}(this))},d.prototype.createChildScopes=function(t){return null==t&amp;&amp;(t=!0),e.isUndefined(this.scope.models)?void this.$log.error("No models to create "+c+"s from! I Need direct models!"):null!=this.gMap&amp;&amp;null!=this.scope.models?(this.watchIdKey(this.scope),t?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1)):void 0},d.prototype.watchIdKey=function(t){return this.setIdKey(t),t.$watch("idKey",function(e){return function(i,n){return i!==n&amp;&amp;null==i?(e.idKey=i,e.rebuildAll(t,!0,!0)):void 0}}(this))},d.prototype.createAllNew=function(t,e){var i;return null==e&amp;&amp;(e=!1),this.models=t.models,this.firstTime&amp;&amp;(this.watchModels(t),this.watchDestroy(t)),this.didQueueInitPromise(this,t)?void 0:(i=null,l.promiseLock(this,u.promiseTypes.create,"createAllNew",function(t){return i=t},function(e){return function(){return l.map(t.models,function(t){var n;return n=e.createChild(t,e.gMap),i&amp;&amp;(o.debug("createNew should fall through safely"),n.isEnabled=!1),n.pathPoints.getArray()},l.chunkSizeFrom(t.chunk)).then(function(t){return e.maybeFit(t),e.firstTime=!1})}}(this)))},d.prototype.pieceMeal=function(t,e){var i,n;return null==e&amp;&amp;(e=!0),t.$$destroyed?void 0:(i=null,n=null,this.models=t.models,null!=t&amp;&amp;this.modelsLength()&amp;&amp;this.plurals.length?l.promiseLock(this,u.promiseTypes.update,"pieceMeal",function(t){return i=t},function(e){return function(){return u.promise(function(){return e.figureOutState(e.idKey,t,e.plurals,e.modelKeyComparison)}).then(function(o){return n=o,n.updates.length&amp;&amp;l.each(n.updates,function(t){return _.extend(t.child.scope,t.model),t.child.model=t.model}),l.each(n.removals,function(t){return null!=t?(t.destroy(),e.plurals.remove(t.model[e.idKey]),i):void 0},l.chunkSizeFrom(t.chunk))}).then(function(){return l.each(n.adds,function(t){return i&amp;&amp;o.debug("pieceMeal should fall through safely"),e.createChild(t,e.gMap),i},l.chunkSizeFrom(t.chunk)).then(function(){return e.maybeFit()})})}}(this)):(this.inProgress=!1,this.rebuildAll(this.scope,!0,!0)))},d.prototype.createChild=function(t,e){var i,o;return o=this.scope.$new(!1),this.setChildScope(n.scopeKeys,o,t),o.$watch("model",function(t){return function(e,i){return e!==i?t.setChildScope(o,e):void 0}}(this),!0),o["static"]=this.scope["static"],i=new h(o,this.attrs,e,this.defaults,t,function(t){return function(){return t.maybeFit()}}(this)),null==t[this.idKey]?void this.$log.error(c+" model has no id to assign a child to.\nThis is required for performance. Please assign id,\nor redirect id to a different key."):(this.plurals.put(t[this.idKey],i),i)},d.prototype.maybeFit=function(t){return null==t&amp;&amp;(t=this.plurals.map(function(t){return t.pathPoints})),this.scope.fit?(t=_.flatten(t),p.fit(t,this.gMap)):void 0},d}(r)}}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapCircleParentModel",["uiGmapLogger","$timeout","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapCircleOptionsBuilder",function(i,n,o,r,s){var a,l;return l=function(t,e){return t.settingFromDirective=!0,e(),n(function(){return t.settingFromDirective=!1})},a=function(n){function s(t,n,r,s,a){var u,p,h;this.attrs=r,this.map=s,this.DEFAULTS=a,this.scope=t,h=null,u=function(t){return function(){return h=null,null!=t.listeners?(t.removeEvents(t.listeners),t.listeners=void 0):void 0}}(this),p=new google.maps.Circle(this.buildOpts(o.getCoords(t.center),t.radius)),this.setMyOptions=function(e){return function(i,n){return t.settingFromDirective?void 0:_.isEqual(i,n)?void 0:p.setOptions(e.buildOpts(o.getCoords(t.center),t.radius))}}(this),this.props=this.props.concat([{prop:"center",isColl:!0},{prop:"fill",isColl:!0},"radius","zIndex"]),this.watchProps(),null!=this.scope.control&amp;&amp;(this.scope.control.getCircle=function(){return p}),u(),this.listeners=this.setEvents(p,t,t,["radius_changed"])||[],this.listeners.push(google.maps.event.addListener(p,"radius_changed",function(){var i,n;return i=p.getRadius(),i!==h?(h=i,n=function(){return l(t,function(){var e,n;return i!==t.radius&amp;&amp;(t.radius=i),(null!=(e=t.events)?e.radius_changed:void 0)&amp;&amp;_.isFunction(null!=(n=t.events)?n.radius_changed:void 0)?t.events.radius_changed(p,"radius_changed",t,arguments):void 0})},e.mock?n():t.$evalAsync(function(){return n()})):void 0})),this.listeners.push(google.maps.event.addListener(p,"center_changed",function(){return t.$evalAsync(function(){return l(t,function(){return e.isDefined(t.center.type)?(t.center.coordinates[1]=p.getCenter().lat(),t.center.coordinates[0]=p.getCenter().lng()):(t.center.latitude=p.getCenter().lat(),t.center.longitude=p.getCenter().lng())})})})),t.$on("$destroy",function(t){return function(){return u(),p.setMap(null)}}(this)),i.info(this)}return t(s,n),s.include(o),s.include(r),s}(s)}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapDrawingManagerParentModel",["uiGmapLogger","$timeout","uiGmapBaseObject","uiGmapEventsHelper",function(e,i,n,o){var r;return r=function(e){function i(t,e,i,n){var o,r;this.scope=t,this.attrs=i,this.map=n,o=new google.maps.drawing.DrawingManager(this.scope.options),o.setMap(this.map),r=void 0,null!=this.scope.control&amp;&amp;(this.scope.control.getDrawingManager=function(){return o}),!this.scope["static"]&amp;&amp;this.scope.options&amp;&amp;this.scope.$watch("options",function(t){return null!=o?o.setOptions(t):void 0},!0),null!=this.scope.events&amp;&amp;(r=this.setEvents(o,this.scope,this.scope),this.scope.$watch("events",function(t){return function(e,i){return _.isEqual(e,i)?void 0:(null!=r&amp;&amp;t.removeEvents(r),r=t.setEvents(o,t.scope,t.scope))}}(this))),this.scope.$on("$destroy",function(t){return function(){return null!=r&amp;&amp;t.removeEvents(r),o.setMap(null),o=null}}(this))}return t(i,e),i.include(o),i}(n)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIMarkerParentModel",["uiGmapModelKey","uiGmapLogger",function(n,o){var r;return r=function(n){function r(i,n,s,a){if(this.scope=i,this.element=n,this.attrs=s,this.map=a,this.onWatch=t(this.onWatch,this),this.watch=t(this.watch,this),this.validateScope=t(this.validateScope,this),r.__super__.constructor.call(this,this.scope),this.$log=o,!this.validateScope(this.scope))throw new String("Unable to construct IMarkerParentModel due to invalid scope");this.doClick=e.isDefined(this.attrs.click),null!=this.scope.options&amp;&amp;(this.DEFAULTS=this.scope.options),this.watch("coords",this.scope),this.watch("icon",this.scope),this.watch("options",this.scope),this.scope.$on("$destroy",function(t){return function(){return t.onDestroy(t.scope)}}(this))}return i(r,n),r.prototype.DEFAULTS={},r.prototype.validateScope=function(t){var e;return null==t?(this.$log.error(this.constructor.name+": invalid scope used"),!1):(e=null!=t.coords,e?e:(this.$log.error(this.constructor.name+": no valid coords attribute found"),!1))},r.prototype.watch=function(t,e,i){return null==i&amp;&amp;(i=!0),e.$watch(t,function(i){return function(n,o){return _.isEqual(n,o)?void 0:i.onWatch(t,e,n,o)}}(this),i)},r.prototype.onWatch=function(t,e,i,n){},r}(n)}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIWindowParentModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger",function(e,i,n){var o;return o=function(e){function o(t,e,i,r,s,a,l,u){o.__super__.constructor.call(this,t),this.$log=n,this.$timeout=s,this.$compile=a,this.$http=l,this.$templateCache=u,this.DEFAULTS={},null!=t.options&amp;&amp;(this.DEFAULTS=t.options)}return t(o,e),o.include(i),o.prototype.getItem=function(t,e,i){return"models"===e?t[e][i]:t[e].get(i)},o}(e)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapLayerParentModel",["uiGmapBaseObject","uiGmapLogger","$timeout",function(n,o,r){var s;return s=function(n){function r(i,n,r,s,a,l){return this.scope=i,this.element=n,this.attrs=r,this.gMap=s,this.onLayerCreated=null!=a?a:void 0,this.$log=null!=l?l:o,this.createGoogleLayer=t(this.createGoogleLayer,this),null==this.attrs.type?void this.$log.info("type attribute for the layer directive is mandatory. Layer creation aborted!!"):(this.createGoogleLayer(),this.doShow=!0,e.isDefined(this.attrs.show)&amp;&amp;(this.doShow=this.scope.show),this.doShow&amp;&amp;null!=this.gMap&amp;&amp;this.gObject.setMap(this.gMap),this.scope.$watch("show",function(t){return function(e,i){return e!==i?(t.doShow=e,e?t.gObject.setMap(t.gMap):t.gObject.setMap(null)):void 0}}(this),!0),this.scope.$watch("options",function(t){return function(e,i){return e!==i&amp;&amp;t.doShow?t.gObject.setOptions(e):void 0}}(this),!0),void this.scope.$on("$destroy",function(t){return function(){return t.gObject.setMap(null)}}(this)))}return i(r,n),r.prototype.createGoogleLayer=function(){var t;return null==this.attrs.options?this.gObject=void 0===this.attrs.namespace?new google.maps[this.attrs.type]:new google.maps[this.attrs.namespace][this.attrs.type]:this.gObject=void 0===this.attrs.namespace?new google.maps[this.attrs.type](this.scope.options):new google.maps[this.attrs.namespace][this.attrs.type](this.scope.options),null!=this.gObject&amp;&amp;this.doShow&amp;&amp;this.gObject.setMap(this.gMap),null!=this.gObject&amp;&amp;null!=this.onLayerCreated&amp;&amp;"function"==typeof(t=this.onLayerCreated(this.scope,this.gObject))?t(this.gObject):void 0},r}(n)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMapTypeParentModel",["uiGmapBaseObject","uiGmapLogger",function(n,o){var r;return r=function(n){function r(i,n,r,s,a){return this.scope=i,this.element=n,this.attrs=r,this.gMap=s,this.$log=null!=a?a:o,this.hideOverlay=t(this.hideOverlay,this),this.showOverlay=t(this.showOverlay,this),this.refreshMapType=t(this.refreshMapType,this),this.createMapType=t(this.createMapType,this),null==this.attrs.options?void this.$log.info("options attribute for the map-type directive is mandatory. Map type creation aborted!!"):(this.id=this.gMap.overlayMapTypesCount=this.gMap.overlayMapTypesCount+1||0,this.doShow=!0,this.createMapType(),e.isDefined(this.attrs.show)&amp;&amp;(this.doShow=this.scope.show),this.doShow&amp;&amp;null!=this.gMap&amp;&amp;this.showOverlay(),this.scope.$watch("show",function(t){return function(e,i){return e!==i?(t.doShow=e,e?t.showOverlay():t.hideOverlay()):void 0}}(this),!0),this.scope.$watch("options",function(t){return function(e,i){return _.isEqual(e,i)?void 0:t.refreshMapType()}}(this),!0),e.isDefined(this.attrs.refresh)&amp;&amp;this.scope.$watch("refresh",function(t){return function(e,i){return _.isEqual(e,i)?void 0:t.refreshMapType()}}(this),!0),void this.scope.$on("$destroy",function(t){return function(){return t.hideOverlay(),t.mapType=null}}(this)))}return i(r,n),r.prototype.createMapType=function(){if(null!=this.scope.options.getTile)this.mapType=this.scope.options;else{if(null==this.scope.options.getTileUrl)return void this.$log.info("options should provide either getTile or getTileUrl methods. Map type creation aborted!!");this.mapType=new google.maps.ImageMapType(this.scope.options)}return this.attrs.id&amp;&amp;this.scope.id&amp;&amp;(this.gMap.mapTypes.set(this.scope.id,this.mapType),e.isDefined(this.attrs.show)||(this.doShow=!1)),this.mapType.layerId=this.id},r.prototype.refreshMapType=function(){return this.hideOverlay(),this.mapType=null,this.createMapType(),this.doShow&amp;&amp;null!=this.gMap?this.showOverlay():void 0},r.prototype.showOverlay=function(){return this.gMap.overlayMapTypes.push(this.mapType)},r.prototype.hideOverlay=function(){var t;return t=!1,this.gMap.overlayMapTypes.forEach(function(e){return function(i,n){t||i.layerId!==e.id||(t=!0,e.gMap.overlayMapTypes.removeAt(n))}}(this))},r}(n)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMarkersParentModel",["uiGmapIMarkerParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapMarkerChildModel","uiGmap_async","uiGmapClustererMarkerManager","uiGmapMarkerManager","$timeout","uiGmapIMarker","uiGmapPromise","uiGmapGmapUtil","uiGmapLogger","uiGmapSpiderfierMarkerManager",function(n,o,r,s,a,l,u,p,h,c,d,g,f){var m,v;return v=function(t,e){return e.plurals=new r,e.scope.plurals=e.plurals,e},m=function(n){function p(e,i,n,o){this.maybeExecMappedEvent=t(this.maybeExecMappedEvent,this),this.onDestroy=t(this.onDestroy,this),this.newChildMarker=t(this.newChildMarker,this),this.pieceMeal=t(this.pieceMeal,this),this.rebuildAll=t(this.rebuildAll,this),this.createAllNew=t(this.createAllNew,this),this.bindToTypeEvents=t(this.bindToTypeEvents,this),this.createChildScopes=t(this.createChildScopes,this),this.validateScope=t(this.validateScope,this),this.onWatch=t(this.onWatch,this);var s;p.__super__.constructor.call(this,e,i,n,o),this["interface"]=h,s=this,v(new r,this),this.scope.pluralsUpdate={updateCtr:0},this.$log.info(this),this.doRebuildAll=null!=this.scope.doRebuildAll&amp;&amp;this.scope.doRebuildAll,this.setIdKey(this.scope),this.scope.$watch("doRebuildAll",function(t){return function(e,i){return e!==i?t.doRebuildAll=e:void 0}}(this)),this.modelsLength()||(this.modelsRendered=!1),this.scope.$watch("models",function(t){return function(e,i){if(!_.isEqual(e,i)||!t.modelsRendered){if(0===e.length&amp;&amp;0===i.length)return;return t.modelsRendered=!0,t.onWatch("models",t.scope,e,i)}}}(this),!this.isTrue(n.modelsbyref)),this.watch("doCluster",this.scope),this.watch("type",this.scope),this.watch("clusterOptions",this.scope),this.watch("clusterEvents",this.scope),this.watch("typeOptions",this.scope),this.watch("typeEvents",this.scope),this.watch("fit",this.scope),this.watch("idKey",this.scope),this.gManager=void 0,this.createAllNew(this.scope)}return i(p,n),p.include(d),p.include(o),p.prototype.onWatch=function(t,e,i,n){return"idKey"===t&amp;&amp;i!==n&amp;&amp;(this.idKey=i),this.doRebuildAll||"doCluster"===t||"type"===t?this.rebuildAll(e):this.pieceMeal(e)},p.prototype.validateScope=function(t){var i;return i=e.isUndefined(t.models)||void 0===t.models,i&amp;&amp;this.$log.error(this.constructor.name+": no valid models attribute found"),p.__super__.validateScope.call(this,t)||i},p.prototype.createChildScopes=function(t){return null!=this.gMap&amp;&amp;null!=this.scope.models?t?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1):void 0},p.prototype.bindToTypeEvents=function(t,i){var n,o;return null==i&amp;&amp;(i=["click","mouseout","mouseover"]),o=this,this.origTypeEvents?e.extend(t,this.origTypeEvents):(this.origTypeEvents={},_.each(i,function(e){return function(i){return e.origTypeEvents[i]=null!=t?t[i]:void 0}}(this))),n={},_.each(i,function(t){return function(t){return n[t]=function(e){return o.maybeExecMappedEvent(e,t)}}}(this)),e.extend(t,n)},p.prototype.createAllNew=function(t){var e,i,n,o;return null!=this.gManager&amp;&amp;(this.gManager instanceof f&amp;&amp;(e=this.gManager.isSpiderfied()),this.gManager.clear(),delete this.gManager),n=t.typeEvents||t.clusterEvents,o=t.typeOptions||t.clusterOptions,t.doCluster||"cluster"===t.type?(null!=n&amp;&amp;this.bindToTypeEvents(n),this.gManager=new l(this.map,(void 0),o,n)):"spider"===t.type?(null!=n&amp;&amp;this.bindToTypeEvents(n,["spiderfy","unspiderfy"]),this.gManager=new f(this.map,(void 0),o,n,this.scope),e&amp;&amp;this.gManager.spiderfy()):this.gManager=new u(this.map),this.didQueueInitPromise(this,t)?void 0:(i=null,a.promiseLock(this,c.promiseTypes.create,"createAllNew",function(t){return i=t},function(e){return function(){return a.each(t.models,function(n){return e.newChildMarker(n,t),i},a.chunkSizeFrom(t.chunk)).then(function(){return e.modelsRendered=!0,t.fit&amp;&amp;e.gManager.fit(),e.gManager.draw(),e.scope.pluralsUpdate.updateCtr+=1},a.chunkSizeFrom(t.chunk))}}(this)))},p.prototype.rebuildAll=function(t){var e;if(t.doRebuild||void 0===t.doRebuild)return(null!=(e=this.scope.plurals)?e.length:void 0)?this.onDestroy(t).then(function(e){return function(){return e.createAllNew(t)}}(this)):this.createAllNew(t)},p.prototype.pieceMeal=function(t){var e,i;if(!t.$$destroyed)return e=null,i=null,this.modelsLength()&amp;&amp;this.scope.plurals.length?a.promiseLock(this,c.promiseTypes.update,"pieceMeal",function(t){return e=t},function(n){return function(){return c.promise(function(){return n.figureOutState(n.idKey,t,n.scope.plurals,n.modelKeyComparison)}).then(function(o){return i=o,a.each(i.removals,function(t){return null!=t?(null!=t.destroy&amp;&amp;t.destroy(),n.scope.plurals.remove(t.id),e):void 0},a.chunkSizeFrom(t.chunk))}).then(function(){return a.each(i.adds,function(i){return n.newChildMarker(i,t),e},a.chunkSizeFrom(t.chunk))}).then(function(){return a.each(i.updates,function(t){return n.updateChild(t.child,t.model),e},a.chunkSizeFrom(t.chunk))}).then(function(){return(i.adds.length&gt;0||i.removals.length&gt;0||i.updates.length&gt;0)&amp;&amp;(t.plurals=n.scope.plurals,t.fit&amp;&amp;n.gManager.fit(),n.gManager.draw()),n.scope.pluralsUpdate.updateCtr+=1})}}(this)):(this.inProgress=!1,this.rebuildAll(t))},p.prototype.newChildMarker=function(t,e){var i,n,o,r;return null==t[this.idKey]?void this.$log.error("Marker model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key."):(this.$log.info("child",i,"markers",this.scope.markerModels),n=e.$new(!1),n.events=e.events,r={},h.scopeKeys.forEach(function(t){return r[t]=e[t]}),i=new s(n,t,r,this.map,this.DEFAULTS,this.doClick,this.gManager,o=!1),this.scope.plurals.put(t[this.idKey],i),i)},p.prototype.onDestroy=function(t){return p.__super__.onDestroy.call(this,t),a.promiseLock(this,c.promiseTypes["delete"],void 0,void 0,function(t){return function(){return a.each(t.scope.plurals.values(),function(t){return null!=t?t.destroy(!1):void 0},a.chunkSizeFrom(t.scope.cleanchunk,!1)).then(function(){return null!=t.gManager&amp;&amp;t.gManager.destroy(),t.plurals.removeAll(),t.plurals!==t.scope.plurals&amp;&amp;console.error("plurals out of sync for MarkersParentModel"),t.scope.pluralsUpdate.updateCtr+=1})}}(this))},p.prototype.maybeExecMappedEvent=function(t,e){var i,n;if(!this.scope.$$destroyed)return n=this.scope.typeEvents||this.scope.clusterEvents,_.isFunction(null!=n?n[e]:void 0)&amp;&amp;(i=this.mapTypeToPlurals(t),this.origTypeEvents[e])?this.origTypeEvents[e](i.group,i.mapped):void 0},p.prototype.mapTypeToPlurals=function(t){var e,i,n;return _.isArray(t)?e=t:_.isFunction(t.getMarkers)&amp;&amp;(e=t.getMarkers()),null==e?void g.error("Unable to map event as we cannot find the array group to map"):(i=(null!=(n=this.scope.plurals.values())?n.length:void 0)?e.map(function(t){return function(e){return t.scope.plurals.get(e.key).model}}(this)):[],{cluster:t,mapped:i,group:t})},p.prototype.getItem=function(t,e,i){return"models"===e?t[e][i]:t[e].get(i)},p}(n)}])}.call(this),function(){["Polygon","Polyline"].forEach(function(t){return e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmap"+t+"sParentModel",["uiGmapBasePolysParentModel","uiGmap"+t+"ChildModel","uiGmapI"+t,function(e,i,n){return e(n,i,t)}])})}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapRectangleParentModel",["uiGmapLogger","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapRectangleOptionsBuilder",function(e,i,n,o){var r;return r=function(o){function r(t,i,n,o,r){var s,a,l,u,p,h,c,d,g,f,m;this.scope=t,this.attrs=n,this.map=o,this.DEFAULTS=r,s=void 0,u=!1,g=[],d=void 0,p=function(t){return function(){return t.isTrue(t.attrs.fit)?t.fitMapBounds(t.map,s):void 0}}(this),l=function(t){return function(){var i,n,o;return null!=t.scope.bounds&amp;&amp;null!=(null!=(i=t.scope.bounds)?i.sw:void 0)&amp;&amp;null!=(null!=(n=t.scope.bounds)?n.ne:void 0)&amp;&amp;t.validateBoundPoints(t.scope.bounds)?(s=t.convertBoundPoints(t.scope.bounds),e.info("new new bounds created: "+JSON.stringify(s))):null!=t.scope.bounds.getNorthEast&amp;&amp;null!=t.scope.bounds.getSouthWest?s=t.scope.bounds:null!=t.scope.bounds?e.error("Invalid bounds for newValue: "+JSON.stringify(null!=(o=t.scope)?o.bounds:void 0)):void 0}}(this),l(),h=new google.maps.Rectangle(this.buildOpts(s)),e.info("gObject (rectangle) created: "+h),f=!1,m=function(t){return function(){var e,i,n;return e=h.getBounds(),i=e.getNorthEast(),n=e.getSouthWest(),f?void 0:t.scope.$evalAsync(function(t){return null!=t.bounds&amp;&amp;null!=t.bounds.sw&amp;&amp;null!=t.bounds.ne&amp;&amp;(t.bounds.ne={latitude:i.lat(),longitude:i.lng()},t.bounds.sw={latitude:n.lat(),longitude:n.lng()}),null!=t.bounds.getNorthEast&amp;&amp;null!=t.bounds.getSouthWest?t.bounds=e:void 0})}}(this),c=function(t){return function(){return p(),t.removeEvents(g),g.push(google.maps.event.addListener(h,"dragstart",function(){return u=!0})),g.push(google.maps.event.addListener(h,"dragend",function(){return u=!1,m()})),g.push(google.maps.event.addListener(h,"bounds_changed",function(){return u?void 0:m()}))}}(this),a=function(t){return function(){return t.removeEvents(g),null!=d&amp;&amp;t.removeEvents(d),h.setMap(null)}}(this),null!=s&amp;&amp;c(),this.scope.$watch("bounds",function(t,e){var i;if(!(_.isEqual(t,e)&amp;&amp;null!=s||u))return f=!0,null==t?void a():(null==s?i=!0:p(),l(),h.setBounds(s),f=!1,i&amp;&amp;null!=s?c():void 0)},!0),this.setMyOptions=function(t){return function(e,i){return _.isEqual(e,i)||null==s||null==e?void 0:h.setOptions(t.buildOpts(s))}}(this),this.props.push("bounds"),this.watchProps(this.props),null!=this.attrs.events&amp;&amp;(d=this.setEvents(h,this.scope,this.scope),this.scope.$watch("events",function(t){return function(e,i){return _.isEqual(e,i)?void 0:(null!=d&amp;&amp;t.removeEvents(d),d=t.setEvents(h,t.scope,t.scope))}}(this))),this.scope.$on("$destroy",function(t){return function(){return a()}}(this)),e.info(this)}return t(r,o),r.include(i),r.include(n),r}(o)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapSearchBoxParentModel",["uiGmapBaseObject","uiGmapLogger","uiGmapEventsHelper","$timeout","$http","$templateCache",function(n,o,r,s,a,l){var u;return u=function(n){function s(i,n,r,s,a,l,u){var p;return this.scope=i,this.element=n,this.attrs=r,this.gMap=s,this.ctrlPosition=a,this.template=l,this.$log=null!=u?u:o,this.setVisibility=t(this.setVisibility,this),this.getBounds=t(this.getBounds,this),this.setBounds=t(this.setBounds,this),this.createSearchBox=t(this.createSearchBox,this),this.addToParentDiv=t(this.addToParentDiv,this),this.addAsMapControl=t(this.addAsMapControl,this),this.init=t(this.init,this),null==this.attrs.template?void this.$log.error("template attribute for the search-box directive is mandatory. Places Search Box creation aborted!!"):(e.isUndefined(this.scope.options)&amp;&amp;(this.scope.options={},this.scope.options.visible=!0),e.isUndefined(this.scope.options.visible)&amp;&amp;(this.scope.options.visible=!0),e.isUndefined(this.scope.options.autocomplete)&amp;&amp;(this.scope.options.autocomplete=!1),this.visible=this.scope.options.visible,this.autocomplete=this.scope.options.autocomplete,p=e.element("&lt;div&gt;&lt;/div&gt;"),p.append(this.template),this.input=p.find("input")[0],void this.init())}return i(s,n),s.include(r),s.prototype.init=function(){return this.createSearchBox(),this.scope.$watch("options",function(t){return function(i,n){return e.isObject(i)&amp;&amp;(null!=i.bounds&amp;&amp;t.setBounds(i.bounds),null!=i.visible&amp;&amp;t.visible!==i.visible)?t.setVisibility(i.visible):void 0}}(this),!0),null!=this.attrs.parentdiv?this.addToParentDiv():this.addAsMapControl(),this.visible||this.setVisibility(this.visible),this.autocomplete?this.listener=google.maps.event.addListener(this.gObject,"place_changed",function(t){return function(){return t.places=t.gObject.getPlace()}}(this)):this.listener=google.maps.event.addListener(this.gObject,"places_changed",function(t){return function(){return t.places=t.gObject.getPlaces()}}(this)),this.listeners=this.setEvents(this.gObject,this.scope,this.scope),this.$log.info(this),this.scope.$on("$destroy",function(t){return function(){return t.gObject=null}}(this))},s.prototype.addAsMapControl=function(){return this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].push(this.input)},s.prototype.addToParentDiv=function(){return this.parentDiv=e.element(document.getElementById(this.scope.parentdiv)),this.parentDiv.append(this.input)},s.prototype.createSearchBox=function(){return this.autocomplete?this.gObject=new google.maps.places.Autocomplete(this.input,this.scope.options):this.gObject=new google.maps.places.SearchBox(this.input,this.scope.options)},s.prototype.setBounds=function(t){if(e.isUndefined(t.isEmpty))this.$log.error("Error: SearchBoxParentModel setBounds. Bounds not an instance of LatLngBounds.");else if(t.isEmpty()===!1&amp;&amp;null!=this.gObject)return this.gObject.setBounds(t)},s.prototype.getBounds=function(){return this.gObject.getBounds()},s.prototype.setVisibility=function(t){return null!=this.attrs.parentdiv?t===!1?this.parentDiv.addClass("ng-hide"):this.parentDiv.removeClass("ng-hide"):t===!1?this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].clear():this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].push(this.input),this.visible=t},s}(n)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapWindowsParentModel",["uiGmapIWindowParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapWindowChildModel","uiGmapLinked","uiGmap_async","uiGmapLogger","$timeout","$compile","$http","$templateCache","$interpolate","uiGmapPromise","uiGmapIWindow","uiGmapGmapUtil",function(n,o,r,s,a,l,u,p,h,c,d,g,f,m,v){var y;return y=function(n){function y(e,i,n,o,s,l){this.gMap=s,this.markersScope=l,this.modelKeyComparison=t(this.modelKeyComparison,this),this.interpolateContent=t(this.interpolateContent,this),this.setChildScope=t(this.setChildScope,this),this.createWindow=t(this.createWindow,this),this.setContentKeys=t(this.setContentKeys,this),this.pieceMeal=t(this.pieceMeal,this),this.createAllNew=t(this.createAllNew,this),this.watchIdKey=t(this.watchIdKey,this),this.createChildScopes=t(this.createChildScopes,this),this.watchOurScope=t(this.watchOurScope,this),this.watchDestroy=t(this.watchDestroy,this),this.onDestroy=t(this.onDestroy,this),this.rebuildAll=t(this.rebuildAll,this),this.doINeedToWipe=t(this.doINeedToWipe,this),this.watchModels=t(this.watchModels,this),this.go=t(this.go,this),y.__super__.constructor.call(this,e,i,n,o,p,h,c,d),this["interface"]=m,this.plurals=new r,_.each(m.scopeKeys,function(t){return function(e){return t[e+"Key"]=void 0}}(this)),this.linked=new a(e,i,n,o),this.contentKeys=void 0,this.isIconVisibleOnClick=void 0,this.firstTime=!0,this.firstWatchModels=!0,this.$log.info(self),this.parentScope=void 0,this.go(e)}return i(y,n),y.include(o),y.prototype.go=function(t){return this.watchOurScope(t),this.doRebuildAll=null!=this.scope.doRebuildAll&amp;&amp;this.scope.doRebuildAll,t.$watch("doRebuildAll",function(t){return function(e,i){return e!==i?t.doRebuildAll=e:void 0}}(this)),this.createChildScopes()},y.prototype.watchModels=function(t){var e;return e=null!=this.markersScope?"pluralsUpdate":"models",t.$watch(e,function(e){return function(i,n){var o;return!_.isEqual(i,n)||e.firstWatchModels?(e.firstWatchModels=!1,e.doRebuildAll||e.doINeedToWipe(t.models)?e.rebuildAll(t,!0,!0):(o=0===e.plurals.length,null!=e.existingPieces?_.last(e.existingPieces._content).then(function(){return e.createChildScopes(o)}):e.createChildScopes(o))):void 0}}(this),!0)},y.prototype.doINeedToWipe=function(t){var e;return e=null==t||0===t.length,this.plurals.length&gt;0&amp;&amp;e},y.prototype.rebuildAll=function(t,e,i){return this.onDestroy(i).then(function(t){return function(){return e?t.createChildScopes():void 0}}(this))},y.prototype.onDestroy=function(t){return y.__super__.onDestroy.call(this,this.scope),l.promiseLock(this,f.promiseTypes["delete"],void 0,void 0,function(t){return function(){return l.each(t.plurals.values(),function(t){return t.destroy()},l.chunkSizeFrom(t.scope.cleanchunk,!1)).then(function(){var e;return null!=(e=t.plurals)?e.removeAll():void 0})}}(this))},y.prototype.watchDestroy=function(t){return t.$on("$destroy",function(e){return function(){return e.firstWatchModels=!0,e.firstTime=!0,e.rebuildAll(t,!1,!0)}}(this))},y.prototype.watchOurScope=function(t){return _.each(m.scopeKeys,function(e){return function(i){var n;return n=i+"Key",e[n]="function"==typeof t[i]?t[i]():t[i]}}(this))},y.prototype.createChildScopes=function(t){var i,n,o;return null==t&amp;&amp;(t=!0),this.isIconVisibleOnClick=!0,e.isDefined(this.linked.attrs.isiconvisibleonclick)&amp;&amp;(this.isIconVisibleOnClick=this.linked.scope.isIconVisibleOnClick),i=e.isUndefined(this.linked.scope.models),!i||void 0!==this.markersScope&amp;&amp;void 0!==(null!=(n=this.markersScope)?n.plurals:void 0)&amp;&amp;void 0!==(null!=(o=this.markersScope)?o.models:void 0)?null!=this.gMap?null!=this.linked.scope.models?(this.watchIdKey(this.linked.scope),t?this.createAllNew(this.linked.scope,!1):this.pieceMeal(this.linked.scope,!1)):(this.parentScope=this.markersScope,this.watchIdKey(this.parentScope),t?this.createAllNew(this.markersScope,!0,"plurals",!1):this.pieceMeal(this.markersScope,!0,"plurals",!1)):void 0:void this.$log.error("No models to create windows from! Need direct models or models derived from markers!")},y.prototype.watchIdKey=function(t){return this.setIdKey(t),t.$watch("idKey",function(e){return function(i,n){return i!==n&amp;&amp;null==i?(e.idKey=i,e.rebuildAll(t,!0,!0)):void 0}}(this))},y.prototype.createAllNew=function(t,e,i,n){
var o;return null==i&amp;&amp;(i="models"),null==n&amp;&amp;(n=!1),this.firstTime&amp;&amp;(this.watchModels(t),this.watchDestroy(t)),this.setContentKeys(t.models),this.didQueueInitPromise(this,t)?void 0:(o=null,l.promiseLock(this,f.promiseTypes.create,"createAllNew",function(t){return o=t},function(n){return function(){return l.each(t.models,function(r){var s,a;return s=e&amp;&amp;null!=(a=n.getItem(t,i,r[n.idKey]))?a.gObject:void 0,o||(!s&amp;&amp;n.markersScope&amp;&amp;u.error("Unable to get gMarker from markersScope!"),n.createWindow(r,s,n.gMap)),o},l.chunkSizeFrom(t.chunk)).then(function(){return n.firstTime=!1})}}(this)))},y.prototype.pieceMeal=function(t,e,i,n){var o,r;return null==i&amp;&amp;(i="models"),null==n&amp;&amp;(n=!0),t.$$destroyed?void 0:(o=null,r=null,null!=t&amp;&amp;this.modelsLength()&amp;&amp;this.plurals.length?l.promiseLock(this,f.promiseTypes.update,"pieceMeal",function(t){return o=t},function(e){return function(){return f.promise(function(){return e.figureOutState(e.idKey,t,e.plurals,e.modelKeyComparison)}).then(function(i){return r=i,l.each(r.removals,function(t){return null!=t?(e.plurals.remove(t.id),null!=t.destroy&amp;&amp;t.destroy(!0),o):void 0},l.chunkSizeFrom(t.chunk))}).then(function(){return l.each(r.adds,function(n){var r,s;if(r=null!=(s=e.getItem(t,i,n[e.idKey]))?s.gObject:void 0,!r)throw"Gmarker undefined";return e.createWindow(n,r,e.gMap),o})}).then(function(){return l.each(r.updates,function(t){return e.updateChild(t.child,t.model),o},l.chunkSizeFrom(t.chunk))})}}(this)):(u.debug("pieceMeal: rebuildAll"),this.rebuildAll(this.scope,!0,!0)))},y.prototype.setContentKeys=function(t){return this.modelsLength(t)?this.contentKeys=Object.keys(t[0]):void 0},y.prototype.createWindow=function(t,e,i){var n,o,r,a,l,u;return o=this.linked.scope.$new(!1),this.setChildScope(o,t),o.$watch("model",function(t){return function(e,i){return e!==i?t.setChildScope(o,e):void 0}}(this),!0),r={html:function(e){return function(){return e.interpolateContent(e.linked.element.html(),t)}}(this)},this.DEFAULTS=this.scopeOrModelVal(this.optionsKey,this.scope,t)||{},a=this.createWindowOptions(e,o,r.html(),this.DEFAULTS),n=new s(t,o,a,this.isIconVisibleOnClick,i,null!=(l=this.markersScope)&amp;&amp;null!=(u=l.plurals.get(t[this.idKey]))?u.scope:void 0,r,(!1),(!0)),null==t[this.idKey]?void this.$log.error("Window model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key."):(this.plurals.put(t[this.idKey],n),n)},y.prototype.setChildScope=function(t,e){return _.each(m.scopeKeys,function(i){return function(n){var o,r;return o=n+"Key",r="self"===i[o]?e:e[i[o]],r!==t[n]?t[n]=r:void 0}}(this)),t.model=e},y.prototype.interpolateContent=function(t,e){var i,n,o,r,s,a;if(void 0!==this.contentKeys&amp;&amp;0!==this.contentKeys.length){for(i=g(t),o={},a=this.contentKeys,n=0,s=a.length;s&gt;n;n++)r=a[n],o[r]=e[r];return i(o)}},y.prototype.modelKeyComparison=function(t,e){var i,n;if(n=null!=this.scope.coords?this.scope:this.parentScope,null==n)throw"No scope or parentScope set!";return(i=v.equalCoords(this.evalModelHandle(t,n.coords),this.evalModelHandle(e,n.coords)))?i=_.every(_.without(this["interface"].scopeKeys,"coords"),function(i){return function(o){return i.evalModelHandle(t,n[o])===i.evalModelHandle(e,n[o])}}(this)):i},y}(n)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapCircle",["uiGmapICircle","uiGmapCircleParentModel",function(t,e){return _.extend(t,{link:function(t,i,n,o){return o.getScope().deferred.promise.then(function(o){return function(o){return new e(t,i,n,o)}}(this))}})}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapControl",["uiGmapIControl","$http","$templateCache","$compile","$controller","uiGmapGoogleMapApi",function(n,o,r,s,a,l){var u;return u=function(u){function p(){this.link=t(this.link,this),p.__super__.constructor.call(this)}return i(p,u),p.prototype.link=function(t,i,u,p){return l.then(function(i){return function(l){var u,h;return e.isUndefined(t.template)?void i.$log.error("mapControl: could not find a valid template property"):(u=e.isDefined(t.index&amp;&amp;!isNaN(parseInt(t.index)))?parseInt(t.index):void 0,h=e.isDefined(t.position)?t.position.toUpperCase().replace(/-/g,"_"):"TOP_CENTER",l.ControlPosition[h]?n.mapPromise(t,p).then(function(n){var l,p;return l=void 0,p=e.element("&lt;div&gt;&lt;/div&gt;"),o.get(t.template,{cache:r}).success(function(i){var n,o;return o=t.$new(),p.append(i),e.isDefined(t.controller)&amp;&amp;(n=a(t.controller,{$scope:o}),p.children().data("$ngControllerController",n)),l=s(p.children())(o),u?l[0].index=u:void 0}).error(function(t){return i.$log.error("mapControl: template could not be found")}).then(function(){return n.controls[google.maps.ControlPosition[h]].push(l[0])})}):void i.$log.error("mapControl: invalid position property"))}}(this))},p}(n)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapDragZoom",["uiGmapCtrlHandle","uiGmapPropertyAction",function(t,e){return{restrict:"EMA",transclude:!0,template:'&lt;div class="angular-google-map-dragzoom" ng-transclude style="display: none"&gt;&lt;/div&gt;',require:"^uiGmapGoogleMap",scope:{keyboardkey:"=",options:"=",spec:"="},controller:["$scope","$element",function(e,i){return e.ctrlType="uiGmapDragZoom",_.extend(this,t.handle(e,i))}],link:function(i,n,o,r){return t.mapPromise(i,r).then(function(t){var n,o,r;return n=function(e){return t.enableKeyDragZoom(e),i.spec?i.spec.enableKeyDragZoom(e):void 0},o=new e(function(t,e){return e?n({key:e}):n()}),r=new e(function(t,e){return e?n(e):void 0}),i.$watch("keyboardkey",o.sic),o.sic(i.keyboardkey),i.$watch("options",r.sic),r.sic(i.options)})}}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapDrawingManager",["uiGmapIDrawingManager","uiGmapDrawingManagerParentModel",function(t,e){return _.extend(t,{link:function(t,i,n,o){return o.getScope().deferred.promise.then(function(o){return new e(t,i,n,o)})}})}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapApiFreeDrawPolygons",["uiGmapLogger","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapDrawFreeHandChildModel","uiGmapLodash",function(e,n,o,r,s){var a;return a=function(n){function a(){return this.link=t(this.link,this),a.__super__.constructor.apply(this,arguments)}return i(a,n),a.include(o),a.prototype.restrict="EMA",a.prototype.replace=!0,a.prototype.require="^uiGmapGoogleMap",a.prototype.scope={polygons:"=",draw:"="},a.prototype.link=function(t,i,n,o){return this.mapPromise(t,o).then(function(i){return function(i){var n,a;return t.polygons?_.isArray(t.polygons)?(n=new r(i,o.getScope()),a=void 0,t.draw=function(){return"function"==typeof a&amp;&amp;a(),n.engage(t.polygons).then(function(){var e;return e=!0,a=t.$watchCollection("polygons",function(t,i){var n;return e||t===i?void(e=!1):(n=s.differenceObjects(i,t),n.forEach(function(t){return t.setMap(null)}))})})}):e.error("Free Draw Polygons must be of type Array!"):e.error("No polygons to bind to!")}}(this))},a}(n)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapICircle",[function(){var t;return t={},{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{center:"=center",radius:"=radius",stroke:"=stroke",fill:"=fill",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=icons",visible:"=",events:"=",control:"=",zIndex:"=zindex"}}}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIControl",["uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(e,i,n){var o;return o=function(e){function o(){this.restrict="EA",this.replace=!0,this.require="^uiGmapGoogleMap",this.scope={template:"@template",position:"@position",controller:"@controller",index:"@index"},this.$log=i}return t(o,e),o.extend(n),o.prototype.link=function(t,e,i,n){throw new Exception("Not implemented!!")},o}(e)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapIDrawingManager",[function(){return{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{"static":"@",control:"=",options:"=",events:"="}}}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIMarker",["uiGmapBaseObject","uiGmapCtrlHandle",function(e,i){var n;return n=function(e){function n(){this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.replace=!0,this.scope=_.extend(this.scope||{},n.scope)}return t(n,e),n.scope={coords:"=coords",icon:"=icon",click:"&amp;click",options:"=options",events:"=events",fit:"=fit",idKey:"=idkey",control:"=control"},n.scopeKeys=_.keys(n.scope),n.keys=n.scopeKeys,n.extend(i),n}(e)}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolygon",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(e,i,n,o){var r;return r=function(i){function r(){}return t(r,i),r.scope={path:"=path",stroke:"=stroke",clickable:"=",draggable:"=",editable:"=",geodesic:"=",fill:"=",icons:"=icons",visible:"=","static":"=",events:"=",zIndex:"=zindex",fit:"=",control:"=control"},r.scopeKeys=_.keys(r.scope),r.include(e),r.extend(o),r.prototype.restrict="EMA",r.prototype.replace=!0,r.prototype.require="^uiGmapGoogleMap",r.prototype.scope=r.scope,r.prototype.DEFAULTS={},r.prototype.$log=n,r}(i)}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolyline",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(e,i,n,o){var r;return r=function(i){function r(){}return t(r,i),r.scope={path:"=",stroke:"=",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=",visible:"=","static":"=",fit:"=",events:"=",zIndex:"=zindex"},r.scopeKeys=_.keys(r.scope),r.include(e),r.extend(o),r.prototype.restrict="EMA",r.prototype.replace=!0,r.prototype.require="^uiGmapGoogleMap",r.prototype.scope=r.scope,r.prototype.DEFAULTS={},r.prototype.$log=n,r}(i)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapIRectangle",[function(){var t;return t={},{restrict:"EMA",require:"^uiGmapGoogleMap",replace:!0,scope:{bounds:"=",stroke:"=",clickable:"=",draggable:"=",editable:"=",fill:"=",visible:"=",events:"="}}}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIWindow",["uiGmapBaseObject","uiGmapChildEvents","uiGmapCtrlHandle",function(e,i,n){var o;return o=function(e){function o(){this.restrict="EMA",this.template=void 0,this.transclude=!0,this.priority=-100,this.require="^uiGmapGoogleMap",this.replace=!0,this.scope=_.extend(this.scope||{},o.scope)}return t(o,e),o.scope={coords:"=coords",template:"=template",templateUrl:"=templateurl",templateParameter:"=templateparameter",isIconVisibleOnClick:"=isiconvisibleonclick",closeClick:"&amp;closeclick",options:"=options",control:"=control",show:"=show"},o.scopeKeys=_.keys(o.scope),o.include(i),o.extend(n),o}(e)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMap",["$timeout","$q","uiGmapLogger","uiGmapGmapUtil","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapIsReady","uiGmapuuid","uiGmapExtendGWin","uiGmapExtendMarkerClusterer","uiGmapGoogleMapsUtilV3","uiGmapGoogleMapApi","uiGmapEventsHelper",function(n,o,r,s,a,l,u,p,h,c,d,g,f){var m,v,y;return m=void 0,y=[d,h,c],v=function(o){function a(){this.link=t(this.link,this);var e,i;e=function(t){var e,i;return i=void 0,t.$on("$destroy",function(){return u.decrement()}),e=l.handle(t),t.ctrlType="Map",t.deferred.promise.then(function(){return y.forEach(function(t){return t.init()})}),e.getMap=function(){return t.map},i=_.extend(this,e)},this.controller=["$scope",e],i=this}return i(a,o),a.include(s),a.prototype.restrict="EMA",a.prototype.transclude=!0,a.prototype.replace=!1,a.prototype.template='&lt;div class="angular-google-map"&gt;&lt;div class="angular-google-map-container"&gt;\n&lt;/div&gt;&lt;div ng-transclude style="display: none"&gt;&lt;/div&gt;&lt;/div&gt;',a.prototype.scope={center:"=",zoom:"=",dragging:"=",control:"=",options:"=",events:"=",eventOpts:"=",styles:"=",bounds:"=",update:"="},a.prototype.link=function(t,i,o){var s,a;return s=[],t.$on("$destroy",function(){return f.removeEvents(s)}),t.idleAndZoomChanged=!1,null==t.center?void(a=t.$watch("center",function(e){return function(){return t.center?(a(),e.link(t,i,o)):void 0}}(this))):g.then(function(a){return function(l){var h,c,d,g,v,y,b,w,k,M,x,C,G,D,P,O,L;if(m={mapTypeId:l.MapTypeId.ROADMAP},D=u.spawn(),C=function(){return D.deferred.resolve({instance:D.instance,map:h})},!a.validateCoords(t.center))return void r.error("angular-google-maps: could not find a valid center property");if(!e.isDefined(t.zoom))return void r.error("angular-google-maps: map zoom property not set");if(v=e.element(i),v.addClass("angular-google-map"),M={options:{}},o.options&amp;&amp;(M.options=t.options),o.styles&amp;&amp;(M.styles=t.styles),o.type&amp;&amp;(P=o.type.toUpperCase(),google.maps.MapTypeId.hasOwnProperty(P)?M.mapTypeId=google.maps.MapTypeId[o.type.toUpperCase()]:r.error("angular-google-maps: invalid map type '"+o.type+"'")),w=e.extend({},m,M,{center:a.getCoords(t.center),zoom:t.zoom,bounds:t.bounds}),h=new google.maps.Map(v.find("div")[1],w),h.uiGmap_id=p.generate(),g=!1,s.push(google.maps.event.addListenerOnce(h,"idle",function(){return t.deferred.resolve(h),C()})),d=o.events&amp;&amp;null!=(null!=(x=t.events)?x.blacklist:void 0)?t.events.blacklist:[],_.isString(d)&amp;&amp;(d=[d]),k=function(e,i,n){return _.contains(d,e)?void 0:(n&amp;&amp;n(),s.push(google.maps.event.addListener(h,e,function(){var e;return(null!=(e=t.update)?e.lazy:void 0)?void 0:i()})))},_.contains(d,"all")||(k("dragstart",function(){return g=!0,t.$evalAsync(function(t){return null!=t.dragging?t.dragging=g:void 0})}),k("dragend",function(){return g=!1,t.$evalAsync(function(t){return null!=t.dragging?t.dragging=g:void 0})}),O=function(i,n){if(null==i&amp;&amp;(i=h.center),null==n&amp;&amp;(n=t),!_.contains(d,"center"))if(e.isDefined(n.center.type)){if(n.center.coordinates[1]!==i.lat()&amp;&amp;(n.center.coordinates[1]=i.lat()),n.center.coordinates[0]!==i.lng())return n.center.coordinates[0]=i.lng()}else if(n.center.latitude!==i.lat()&amp;&amp;(n.center.latitude=i.lat()),n.center.longitude!==i.lng())return n.center.longitude=i.lng()},G=!1,k("idle",function(){var e,i,n;return e=h.getBounds(),i=e.getNorthEast(),n=e.getSouthWest(),G=!0,t.$evalAsync(function(e){return O(),_.isUndefined(e.bounds)||_.contains(d,"bounds")||(e.bounds.northeast={latitude:i.lat(),longitude:i.lng()},e.bounds.southwest={latitude:n.lat(),longitude:n.lng()}),_.contains(d,"zoom")||(e.zoom=h.zoom,t.idleAndZoomChanged=!t.idleAndZoomChanged),G=!1})})),e.isDefined(t.events)&amp;&amp;null!==t.events&amp;&amp;e.isObject(t.events)){b=function(e){return function(){return t.events[e].apply(t,[h,e,arguments])}},c=[];for(y in t.events)t.events.hasOwnProperty(y)&amp;&amp;e.isFunction(t.events[y])&amp;&amp;c.push(google.maps.event.addListener(h,y,b(y)));s.concat(c)}return h.getOptions=function(){return w},t.map=h,null!=o.control&amp;&amp;null!=t.control&amp;&amp;(t.control.refresh=function(t){var e,i,n;if(null!=h)return null!=("undefined"!=typeof google&amp;&amp;null!==google&amp;&amp;null!=(i=google.maps)&amp;&amp;null!=(n=i.event)?n.trigger:void 0)&amp;&amp;null!=h&amp;&amp;google.maps.event.trigger(h,"resize"),null!=(null!=t?t.latitude:void 0)&amp;&amp;null!=(null!=t?t.longitude:void 0)?(e=a.getCoords(t),a.isTrue(o.pan)?h.panTo(e):h.setCenter(e)):void 0},t.control.getGMap=function(){return h},t.control.getMapOptions=function(){return w},t.control.getCustomEventListeners=function(){return c},t.control.removeEvents=function(t){return f.removeEvents(t)}),t.$watch("center",function(e,i){var n,s;if(e!==i&amp;&amp;!G&amp;&amp;(n=a.getCoords(t.center),n.lat()!==h.center.lat()||n.lng()!==h.center.lng()))return s=!0,g||(a.validateCoords(e)||r.error("Invalid center for newValue: "+JSON.stringify(e)),a.isTrue(o.pan)&amp;&amp;t.zoom===h.zoom?h.panTo(n):h.setCenter(n)),s=!1},!0),L=null,t.$watch("zoom",function(e,i){var o,r,s;if(null!=e&amp;&amp;!_.isEqual(e,i)&amp;&amp;(null!=h?h.getZoom():void 0)!==(null!=t?t.zoom:void 0)&amp;&amp;!G)return s=!0,null!=L&amp;&amp;n.cancel(L),L=n(function(){return h.setZoom(e),s=!1},(null!=(o=t.eventOpts)&amp;&amp;null!=(r=o.debounce)?r.zoomMs:void 0)+20,!1)}),t.$watch("bounds",function(t,e){var i,n,o,s,a,l,u;if(t!==e)return null==(null!=t&amp;&amp;null!=(o=t.northeast)?o.latitude:void 0)||null==(null!=t&amp;&amp;null!=(s=t.northeast)?s.longitude:void 0)||null==(null!=t&amp;&amp;null!=(a=t.southwest)?a.latitude:void 0)||null==(null!=t&amp;&amp;null!=(l=t.southwest)?l.longitude:void 0)?void r.error("Invalid map bounds for new value: "+JSON.stringify(t)):(n=new google.maps.LatLng(t.northeast.latitude,t.northeast.longitude),u=new google.maps.LatLng(t.southwest.latitude,t.southwest.longitude),i=new google.maps.LatLngBounds(u,n),h.fitBounds(i))}),["options","styles"].forEach(function(e){return t.$watch(e,function(t,e){var i;return i=this.exp,_.isEqual(t,e)?void 0:("options"===i?M.options=t:M.options[i]=t,null!=h?h.setOptions(M):void 0)},!0)})}}(this))},a}(a)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarker",["uiGmapIMarker","uiGmapMarkerChildModel","uiGmapMarkerManager","uiGmapLogger",function(e,n,o,r){var s;return s=function(s){function a(){this.link=t(this.link,this),a.__super__.constructor.call(this),this.template='&lt;span class="angular-google-map-marker" ng-transclude&gt;&lt;/span&gt;',r.info(this)}return i(a,s),a.prototype.controller=["$scope","$element",function(t,i){return t.ctrlType="Marker",_.extend(this,e.handle(t,i))}],a.prototype.link=function(t,i,r,s){var a;return a=e.mapPromise(t,s),a.then(function(i){return function(i){var r,s,a,l,u,p;return a=new o(i),l=_.object(e.keys,e.keys),u=new n(t,t,l,i,{},r=!0,a,s=!1,p=!1),u.deferred.promise.then(function(e){return t.deferred.resolve(e)}),null!=t.control?t.control.getGMarkers=a.getGMarkers:void 0}}(this)),t.$on("$destroy",function(t){return function(){var t;return"undefined"!=typeof t&amp;&amp;null!==t&amp;&amp;t.clear(),t=null}}(this))},a}(e)}])}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&amp;&amp;(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarkers",["uiGmapIMarker","uiGmapPlural","uiGmapMarkersParentModel","uiGmap_sync","uiGmapLogger",function(e,i,n,o,r){var s;return s=function(o){function s(){s.__super__.constructor.call(this),this.template='&lt;span class="angular-google-map-markers" ng-transclude&gt;&lt;/span&gt;',i.extend(this,{doCluster:"=?docluster",clusterOptions:"=clusteroptions",clusterEvents:"=clusterevents",modelsByRef:"=modelsbyref",type:"=?type",typeOptions:"=?typeoptions",typeEvents:"=?typeevents"}),r.info(this)}return t(s,o),s.prototype.controller=["$scope","$element",function(t,i){return t.ctrlType="Markers",_.extend(this,e.handle(t,i))}],s.prototype.link=function(t,o,r,s){var a,l;return a=void 0,l=function(){return t.deferred.resolve()},e.mapPromise(t,s).then(function(e){var u;return u=s.getScope(),u.$watch("idleAndZoomChanged",function(){return _.defer(a.gManager.draw)}),a=new n(t,o,r,e),i.link(t,a),null!=t.control&amp;&amp;(t.control.getGMarkers=function(){var t;return null!=(t=a.gManager)?t.getGMarkers():void 0},t.control.getChildMarkers=function(){return a.plurals}),_.last(a.existingPieces._content).then(function(){return l()})})},s}(e)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapPlural",[function(){var t;return t=function(t,e){return null!=t.control?(t.control.updateModels=function(i){return t.models=i,e.createChildScopes(!1)},t.control.newModels=function(i){return t.models=i,e.rebuildAll(t,!0,!0)},t.control.clean=function(){return e.rebuildAll(t,!1,!0)},t.control.getPlurals=function(){return e.plurals},t.control.getManager=function(){return e.gManager},t.control.hasManager=function(){return null!=e.gManager==1},t.control.managerDraw=function(){var e;return t.control.hasManager()&amp;&amp;null!=(e=t.control.getManager())?e.draw():void 0}):void 0},{extend:function(t,e){return _.extend(t.scope||{},e||{},{idKey:"=idkey",doRebuildAll:"=dorebuildall",models:"=models",chunk:"=chunk",cleanchunk:"=cleanchunk",control:"=control"})},link:function(e,i){return t(e,i)}}}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygon",["uiGmapIPolygon","$timeout","uiGmapPolygonChildModel",function(e,n,o){var r;return r=function(n){function r(){return this.link=t(this.link,this),r.__super__.constructor.apply(this,arguments)}return i(r,n),r.prototype.link=function(t,i,n,r){var s,a;return s=[],a=e.mapPromise(t,r),null!=t.control&amp;&amp;(t.control.getInstance=this,t.control.polygons=s,t.control.promise=a),a.then(function(e){return function(i){return s.push(new o(t,n,i,e.DEFAULTS))}}(this))},r}(e)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygons",["uiGmapIPolygon","$timeout","uiGmapPolygonsParentModel","uiGmapPlural",function(n,o,r,s){var a;return a=function(n){function o(){this.link=t(this.link,this),o.__super__.constructor.call(this),s.extend(this),this.$log.info(this)}return i(o,n),o.prototype.link=function(t,i,n,o){return o.getScope().deferred.promise.then(function(o){return function(a){return(e.isUndefined(t.path)||null===t.path)&amp;&amp;o.$log.warn("polygons: no valid path attribute found"),t.models||o.$log.warn("polygons: no models found to create from"),s.link(t,new r(t,i,n,a,o.DEFAULTS))}}(this))},o}(n)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolyline",["uiGmapIPolyline","$timeout","uiGmapPolylineChildModel",function(n,o,r){var s;return s=function(o){function s(){return this.link=t(this.link,this),s.__super__.constructor.apply(this,arguments)}return i(s,o),s.prototype.link=function(t,i,o,s){return n.mapPromise(t,s).then(function(i){return function(n){return(e.isUndefined(t.path)||null===t.path||!i.validatePath(t.path))&amp;&amp;i.$log.warn("polyline: no valid path attribute found"),new r(t,o,n,i.DEFAULTS)}}(this))},s}(n)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylines",["uiGmapIPolyline","$timeout","uiGmapPolylinesParentModel","uiGmapPlural",function(n,o,r,s){var a;return a=function(n){function o(){this.link=t(this.link,this),o.__super__.constructor.call(this),s.extend(this),this.$log.info(this)}return i(o,n),o.prototype.link=function(t,i,n,o){return o.getScope().deferred.promise.then(function(o){return function(a){return(e.isUndefined(t.path)||null===t.path)&amp;&amp;o.$log.warn("polylines: no valid path attribute found"),t.models||o.$log.warn("polylines: no models found to create from"),s.link(t,new r(t,i,n,a,o.DEFAULTS))}}(this))},o}(n)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapRectangle",["uiGmapLogger","uiGmapGmapUtil","uiGmapIRectangle","uiGmapRectangleParentModel",function(t,e,i,n){return _.extend(i,{link:function(t,e,i,o){return o.getScope().deferred.promise.then(function(o){return function(o){return new n(t,e,i,o)}}(this))}})}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindow",["uiGmapIWindow","uiGmapGmapUtil","uiGmapWindowChildModel","uiGmapLodash","uiGmapLogger",function(n,o,r,s,a){var l;return l=function(l){function u(){this.link=t(this.link,this),u.__super__.constructor.call(this),this.require=["^uiGmapGoogleMap","^?uiGmapMarker"],this.template='&lt;span class="angular-google-maps-window" ng-transclude&gt;&lt;/span&gt;',a.debug(this),this.childWindows=[]}return i(u,l),u.include(o),u.prototype.link=function(t,i,o,r){var s,a;return s=r.length&gt;1&amp;&amp;null!=r[1]?r[1]:void 0,a=null!=s?s.getScope():void 0,this.mapPromise=n.mapPromise(t,r[0]),this.mapPromise.then(function(n){return function(r){var l;return l=!0,e.isDefined(o.isiconvisibleonclick)&amp;&amp;(l=t.isIconVisibleOnClick),s?a.deferred.promise.then(function(e){return n.init(t,i,l,r,a)}):void n.init(t,i,l,r)}}(this))},u.prototype.init=function(t,e,i,n,o){var a,l,u,p,h;return l=null!=t.options?t.options:{},p=null!=t&amp;&amp;this.validateCoords(t.coords),null!=(null!=o?o.getGMarker:void 0)&amp;&amp;(u=o.getGMarker()),h=p?this.createWindowOptions(u,t,e.html(),l):l,null!=n&amp;&amp;(a=new r({},t,h,i,n,o,e),this.childWindows.push(a),t.$on("$destroy",function(t){return function(){return t.childWindows=s.withoutObjects(t.childWindows,[a],function(t,e){return t.scope.$id===e.scope.$id}),t.childWindows.length=0}}(this))),null!=t.control&amp;&amp;(t.control.getGWindows=function(t){return function(){return t.childWindows.map(function(t){return t.gObject})}}(this),t.control.getChildWindows=function(t){return function(){return t.childWindows}}(this),t.control.getPlurals=t.control.getChildWindows,t.control.showWindow=function(t){return function(){return t.childWindows.map(function(t){return t.showWindow()})}}(this),t.control.hideWindow=function(t){return function(){return t.childWindows.map(function(t){return t.hideWindow()})}}(this)),null!=this.onChildCreation&amp;&amp;null!=a?this.onChildCreation(a):void 0},u}(n)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindows",["uiGmapIWindow","uiGmapPlural","uiGmapWindowsParentModel","uiGmapPromise","uiGmapLogger",function(e,n,o,r,s){var a;return a=function(e){function a(){this.init=t(this.init,this),this.link=t(this.link,this),a.__super__.constructor.call(this),this.require=["^uiGmapGoogleMap","^?uiGmapMarkers"],this.template='&lt;span class="angular-google-maps-windows" ng-transclude&gt;&lt;/span&gt;',n.extend(this),s.debug(this)}return i(a,e),a.prototype.link=function(t,e,i,n){var o,s,a;return o=n[0].getScope(),s=n.length&gt;1&amp;&amp;null!=n[1]?n[1]:void 0,a=null!=s?s.getScope():void 0,o.deferred.promise.then(function(o){return function(s){var l,u;return l=(null!=a&amp;&amp;null!=(u=a.deferred)?u.promise:void 0)||r.resolve(),l.then(function(){var r,l;return r=null!=(l=o.parentModel)?l.existingPieces:void 0,r?r.then(function(){return o.init(t,e,i,n,s,a)}):o.init(t,e,i,n,s,a)})}}(this))},a.prototype.init=function(t,e,i,r,s,a){var l;return l=new o(t,e,i,r,s,a),n.link(t,l),null!=t.control?(t.control.getGWindows=function(t){return function(){return l.plurals.map(function(t){return t.gObject})}}(this),t.control.getChildWindows=function(t){return function(){return l.plurals}}(this)):void 0},a}(e)}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapGoogleMap",["uiGmapMap",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapMarker",["$timeout","uiGmapMarker",function(t,e){return new e(t)}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapMarkers",["$timeout","uiGmapMarkers",function(t,e){return new e(t)}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapPolygon",["uiGmapPolygon",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapCircle",["uiGmapCircle",function(t){return t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapPolyline",["uiGmapPolyline",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapPolylines",["uiGmapPolylines",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapRectangle",["uiGmapLogger","uiGmapRectangle",function(t,e){return e}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapWindow",["$timeout","$compile","$http","$templateCache","uiGmapWindow",function(t,e,i,n,o){return new o(t,e,i,n)}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapWindows",["$timeout","$compile","$http","$templateCache","$interpolate","uiGmapWindows",function(t,e,i,n,o,r){return new r(t,e,i,n,o)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps").directive("uiGmapLayer",["$timeout","uiGmapLogger","uiGmapLayerParentModel",function(e,i,n){var o;return new(o=function(){function e(){this.link=t(this.link,this),this.$log=i,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template="&lt;span class='angular-google-map-layer' ng-transclude&gt;&lt;/span&gt;",this.replace=!0,this.scope={show:"=show",type:"=type",namespace:"=namespace",options:"=options",onCreated:"&amp;oncreated"}}return e.prototype.link=function(t,e,i,o){return o.getScope().deferred.promise.then(function(o){return function(o){return null!=t.onCreated?new n(t,e,i,o,t.onCreated):new n(t,e,i,o)}}(this))},e}())}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapMapControl",["uiGmapControl",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapDragZoom",["uiGmapDragZoom",function(t){return t}])}.call(this),function(){
e.module("uiGmapgoogle-maps").directive("uiGmapDrawingManager",["uiGmapDrawingManager",function(t){return t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapFreeDrawPolygons",["uiGmapApiFreeDrawPolygons",function(t){return new t}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps").directive("uiGmapMapType",["$timeout","uiGmapLogger","uiGmapMapTypeParentModel",function(e,i,n){var o;return new(o=function(){function e(){this.link=t(this.link,this),this.$log=i,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template='&lt;span class="angular-google-map-layer" ng-transclude&gt;&lt;/span&gt;',this.replace=!0,this.scope={show:"=show",options:"=options",refresh:"=refresh",id:"@"}}return e.prototype.link=function(t,e,i,o){return o.getScope().deferred.promise.then(function(o){return function(o){return new n(t,e,i,o)}}(this))},e}())}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapPolygons",["uiGmapPolygons",function(t){return new t}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps").directive("uiGmapSearchBox",["uiGmapGoogleMapApi","uiGmapLogger","uiGmapSearchBoxParentModel","$http","$templateCache","$compile",function(i,n,o,r,s,a){var l;return new(l=function(){function l(){this.link=t(this.link,this),this.$log=n,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template="&lt;span class='angular-google-map-search' ng-transclude&gt;&lt;/span&gt;",this.replace=!0,this.scope={template:"=template",events:"=events",position:"=?position",options:"=?options",parentdiv:"=?parentdiv",ngModel:"=?"}}return l.prototype.require="ngModel",l.prototype.link=function(t,n,l,u){return i.then(function(i){return function(p){return null==t.template&amp;&amp;(s.put("uigmap-searchbox-default.tpl.html",'&lt;input type="text"&gt;'),t.template="uigmap-searchbox-default.tpl.html"),r.get(t.template,{cache:s}).success(function(r){return e.isUndefined(t.events)?void i.$log.error("searchBox: the events property is required"):u.getScope().deferred.promise.then(function(s){var u;return u=e.isDefined(t.position)?t.position.toUpperCase().replace(/-/g,"_"):"TOP_LEFT",p.ControlPosition[u]?new o(t,n,l,s,u,a(r)(t)):void i.$log.error("searchBox: invalid position property")})})}}(this))},l}())}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapShow",["$animate","uiGmapLogger",function(t,i){return{scope:{uiGmapShow:"=",uiGmapAfterShow:"&amp;",uiGmapAfterHide:"&amp;"},link:function(n,o){var r,s,a;return r=function(e,i){return t[e](o,"ng-hide").then(function(){return i()})},s=function(e,i){return t[e](o,"ng-hide",i)},a=function(t,n){return e.version.major&gt;1?i.error("uiGmapShow is not supported for Angular Major greater than 1.\nYour Major is "+e.version.major+'"'):1===e.version.major&amp;&amp;e.version.minor&lt;3?s(t,n):r(t,n)},n.$watch("uiGmapShow",function(t){return t&amp;&amp;a("removeClass",n.uiGmapAfterShow),t?void 0:a("addClass",n.uiGmapAfterHide)})}}}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapStreetViewPanorama",["uiGmapGoogleMapApi","uiGmapLogger","uiGmapGmapUtil","uiGmapEventsHelper",function(t,i,n,o){var r;return r="uiGmapStreetViewPanorama",{restrict:"EMA",template:'&lt;div class="angular-google-map-street-view-panorama"&gt;&lt;/div&gt;',replace:!0,scope:{focalcoord:"=",radius:"=?",events:"=?",options:"=?",control:"=?",povoptions:"=?",imagestatus:"="},link:function(s,a,l){return t.then(function(t){return function(t){var l,u,p,h,c,d,g,f,m,v;return f=void 0,v=void 0,p=!1,d=void 0,g=null,m=null,l=function(){return o.removeEvents(d),null!=f&amp;&amp;(f.unbind("position"),f.setVisible(!1)),null!=v?(null!=(null!=v?v.setVisible:void 0)&amp;&amp;v.setVisible(!1),v=void 0):void 0},c=function(t,i){var n;return n=google.maps.geometry.spherical.computeHeading(t,i),p=!0,s.radius=s.radius||50,m=e.extend({heading:n,zoom:1,pitch:0},s.povoptions||{}),g=g=e.extend({navigationControl:!1,addressControl:!1,linksControl:!1,position:t,pov:m,visible:!0},s.options||{}),p=!1},u=function(){var t;return s.focalcoord?s.radius?(l(),null==v&amp;&amp;(v=new google.maps.StreetViewService),s.events&amp;&amp;(d=o.setEvents(v,s,s)),t=n.getCoords(s.focalcoord),v.getPanoramaByLocation(t,s.radius,function(e,i){var n,o,r;return null!=s.imagestatus&amp;&amp;(s.imagestatus=i),null!=(null!=(r=s.events)?r.image_status_changed:void 0)&amp;&amp;s.events.image_status_changed(v,"image_status_changed",s,i),"OK"===i?(o=e.location.latLng,c(o,t),n=a[0],f=new google.maps.StreetViewPanorama(n,g)):void 0})):void i.error(r+": needs a radius to set the camera view from its focal target."):void i.error(r+": focalCoord needs to be defined")},null!=s.control&amp;&amp;(s.control.getOptions=function(){return g},s.control.getPovOptions=function(){return m},s.control.getGObject=function(){return v},s.control.getGPano=function(){return f}),s.$watch("options",function(t,e){return t===e||t===g||p?void 0:u()}),h=!0,s.$watch("focalcoord",function(t,e){return t===e&amp;&amp;!h||null==t?void 0:(h=!1,u())}),s.$on("$destroy",function(){return l()})}}(this))}}}])}.call(this),e.module("uiGmapgoogle-maps.wrapped").service("uiGmapuuid",function(){function t(){}return t.generate=function(){var e=t._gri,i=t._ha;return i(e(32),8)+"-"+i(e(16),4)+"-"+i(16384|e(12),4)+"-"+i(32768|e(14),4)+"-"+i(e(48),12)},t._gri=function(t){return 0&gt;t?NaN:30&gt;=t?0|Math.random()*(1&lt;&lt;t):53&gt;=t?(0|1073741824*Math.random())+1073741824*(0|Math.random()*(1&lt;&lt;t-30)):NaN},t._ha=function(t,e){for(var i=t.toString(16),n=e-i.length,o="0";n&gt;0;n&gt;&gt;&gt;=1,o+=o)1&amp;n&amp;&amp;(i=o+i);return i},t}),e.module("uiGmapgoogle-maps.wrapped").service("uiGmapGoogleMapsUtilV3",function(){return{init:_.once(function(){function e(t){t=t||{},google.maps.OverlayView.apply(this,arguments),this.content_=t.content||"",this.disableAutoPan_=t.disableAutoPan||!1,this.maxWidth_=t.maxWidth||0,this.pixelOffset_=t.pixelOffset||new google.maps.Size(0,0),this.position_=t.position||new google.maps.LatLng(0,0),this.zIndex_=t.zIndex||null,this.boxClass_=t.boxClass||"infoBox",this.boxStyle_=t.boxStyle||{},this.closeBoxMargin_=t.closeBoxMargin||"2px",this.closeBoxURL_=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&amp;&amp;(this.closeBoxURL_=""),this.infoBoxClearance_=t.infoBoxClearance||new google.maps.Size(1,1),"undefined"==typeof t.visible&amp;&amp;("undefined"==typeof t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden_=!t.visible,this.alignBottom_=t.alignBottom||!1,this.pane_=t.pane||"floatPane",this.enableEventPropagation_=t.enableEventPropagation||!1,this.div_=null,this.closeListener_=null,this.moveListener_=null,this.contextListener_=null,this.eventListeners_=null,this.fixedWidthSet_=null}function n(t,e){t.getMarkerClusterer().extend(n,google.maps.OverlayView),this.cluster_=t,this.className_=t.getMarkerClusterer().getClusterClass(),this.styles_=e,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(t.getMap())}function o(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinimumClusterSize(),this.averageCenter_=t.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new n(this,t.getStyles())}function r(t,e,n){this.extend(r,google.maps.OverlayView),e=e||[],n=n||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=n.gridSize||60,this.minClusterSize_=n.minimumClusterSize||2,this.maxZoom_=n.maxZoom||null,this.styles_=n.styles||[],this.title_=n.title||"",this.zoomOnClick_=!0,n.zoomOnClick!==i&amp;&amp;(this.zoomOnClick_=n.zoomOnClick),this.averageCenter_=!1,n.averageCenter!==i&amp;&amp;(this.averageCenter_=n.averageCenter),this.ignoreHidden_=!1,n.ignoreHidden!==i&amp;&amp;(this.ignoreHidden_=n.ignoreHidden),this.enableRetinaIcons_=!1,n.enableRetinaIcons!==i&amp;&amp;(this.enableRetinaIcons_=n.enableRetinaIcons),this.imagePath_=n.imagePath||r.IMAGE_PATH,this.imageExtension_=n.imageExtension||r.IMAGE_EXTENSION,this.imageSizes_=n.imageSizes||r.IMAGE_SIZES,this.calculator_=n.calculator||r.CALCULATOR,this.batchSize_=n.batchSize||r.BATCH_SIZE,this.batchSizeIE_=n.batchSizeIE||r.BATCH_SIZE_IE,this.clusterClass_=n.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&amp;&amp;(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(e,!0),this.setMap(t)}function s(t,e){function i(){}i.prototype=e.prototype,t.superClass_=e.prototype,t.prototype=new i,t.prototype.constructor=t}function a(t,e,i){this.marker_=t,this.handCursorURL_=t.handCursorURL,this.labelDiv_=document.createElement("div"),this.labelDiv_.style.cssText="position: absolute; overflow: hidden;",this.eventDiv_=document.createElement("div"),this.eventDiv_.style.cssText=this.labelDiv_.style.cssText,this.eventDiv_.setAttribute("onselectstart","return false;"),this.eventDiv_.setAttribute("ondragstart","return false;"),this.crossDiv_=a.getSharedCross(e)}function l(t){t=t||{},t.labelContent=t.labelContent||"",t.labelAnchor=t.labelAnchor||new google.maps.Point(0,0),t.labelClass=t.labelClass||"markerLabels",t.labelStyle=t.labelStyle||{},t.labelInBackground=t.labelInBackground||!1,"undefined"==typeof t.labelVisible&amp;&amp;(t.labelVisible=!0),"undefined"==typeof t.raiseOnDrag&amp;&amp;(t.raiseOnDrag=!0),"undefined"==typeof t.clickable&amp;&amp;(t.clickable=!0),"undefined"==typeof t.draggable&amp;&amp;(t.draggable=!1),"undefined"==typeof t.optimized&amp;&amp;(t.optimized=!1),t.crossImage=t.crossImage||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/drag_cross_67_16.png",t.handCursor=t.handCursor||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/closedhand_8_8.cur",t.optimized=!1,this.label=new a(this,t.crossImage,t.handCursor),google.maps.Marker.apply(this,arguments)}function u(t){var e=t||{};this.ready_=!1,this.dragging_=!1,t.visible==i&amp;&amp;(t.visible=!0),t.shadow==i&amp;&amp;(t.shadow="7px -3px 5px rgba(88,88,88,0.7)"),t.anchor==i&amp;&amp;(t.anchor=p.BOTTOM),this.setValues(e)}e.prototype=new google.maps.OverlayView,e.prototype.createInfoBoxDiv_=function(){var t,e,i,n=this,o=function(t){t.cancelBubble=!0,t.stopPropagation&amp;&amp;t.stopPropagation()},r=function(t){t.returnValue=!1,t.preventDefault&amp;&amp;t.preventDefault(),n.enableEventPropagation_||o(t)};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),"undefined"==typeof this.content_.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:0!==this.maxWidth_&amp;&amp;this.div_.offsetWidth&gt;this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(i=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-i.left-i.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],e=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],t=0;t&lt;e.length;t++)this.eventListeners_.push(google.maps.event.addDomListener(this.div_,e[t],o));this.eventListeners_.push(google.maps.event.addDomListener(this.div_,"mouseover",function(t){this.style.cursor="default"}))}this.contextListener_=google.maps.event.addDomListener(this.div_,"contextmenu",r),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg_=function(){var t="";return""!==this.closeBoxURL_&amp;&amp;(t="&lt;img",t+=" src='"+this.closeBoxURL_+"'",t+=" align=right",t+=" style='",t+=" position: relative;",t+=" cursor: pointer;",t+=" margin: "+this.closeBoxMargin_+";",t+="'&gt;"),t},e.prototype.addClickHandler_=function(){var t;""!==this.closeBoxURL_?(t=this.div_.firstChild,this.closeListener_=google.maps.event.addDomListener(t,"click",this.getCloseClickHandler_())):this.closeListener_=null},e.prototype.getCloseClickHandler_=function(){var t=this;return function(e){e.cancelBubble=!0,e.stopPropagation&amp;&amp;e.stopPropagation(),google.maps.event.trigger(t,"closeclick"),t.close()}},e.prototype.panBox_=function(t){var e,i,n=0,o=0;if(!t&amp;&amp;(e=this.getMap(),e instanceof google.maps.Map)){e.getBounds().contains(this.position_)||e.setCenter(this.position_),i=e.getBounds();var r=e.getDiv(),s=r.offsetWidth,a=r.offsetHeight,l=this.pixelOffset_.width,u=this.pixelOffset_.height,p=this.div_.offsetWidth,h=this.div_.offsetHeight,c=this.infoBoxClearance_.width,d=this.infoBoxClearance_.height,g=this.getProjection().fromLatLngToContainerPixel(this.position_);g.x&lt;-l+c?n=g.x+l-c:g.x+p+l+c&gt;s&amp;&amp;(n=g.x+p+l+c-s),this.alignBottom_?g.y&lt;-u+d+h?o=g.y+u-d-h:g.y+u+d&gt;a&amp;&amp;(o=g.y+u+d-a):g.y&lt;-u+d?o=g.y+u-d:g.y+h+u+d&gt;a&amp;&amp;(o=g.y+h+u+d-a),(0!==n||0!==o)&amp;&amp;(e.getCenter(),e.panBy(n,o))}},e.prototype.setBoxStyle_=function(){var t,e;if(this.div_){this.div_.className=this.boxClass_,this.div_.style.cssText="",e=this.boxStyle_;for(t in e)e.hasOwnProperty(t)&amp;&amp;(this.div_.style[t]=e[t]);this.div_.style.WebkitTransform="translateZ(0)","undefined"!=typeof this.div_.style.opacity&amp;&amp;""!==this.div_.style.opacity&amp;&amp;(this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*this.div_.style.opacity+')"',this.div_.style.filter="alpha(opacity="+100*this.div_.style.opacity+")"),this.div_.style.position="absolute",this.div_.style.visibility="hidden",null!==this.zIndex_&amp;&amp;(this.div_.style.zIndex=this.zIndex_)}},e.prototype.getBoxWidths_=function(){var t,e={top:0,bottom:0,left:0,right:0},i=this.div_;return document.defaultView&amp;&amp;document.defaultView.getComputedStyle?(t=i.ownerDocument.defaultView.getComputedStyle(i,""),t&amp;&amp;(e.top=parseInt(t.borderTopWidth,10)||0,e.bottom=parseInt(t.borderBottomWidth,10)||0,e.left=parseInt(t.borderLeftWidth,10)||0,e.right=parseInt(t.borderRightWidth,10)||0)):document.documentElement.currentStyle&amp;&amp;i.currentStyle&amp;&amp;(e.top=parseInt(i.currentStyle.borderTopWidth,10)||0,e.bottom=parseInt(i.currentStyle.borderBottomWidth,10)||0,e.left=parseInt(i.currentStyle.borderLeftWidth,10)||0,e.right=parseInt(i.currentStyle.borderRightWidth,10)||0),e},e.prototype.onRemove=function(){this.div_&amp;&amp;(this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){this.createInfoBoxDiv_();var t=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=t.x+this.pixelOffset_.width+"px",this.alignBottom_?this.div_.style.bottom=-(t.y+this.pixelOffset_.height)+"px":this.div_.style.top=t.y+this.pixelOffset_.height+"px",this.isHidden_?this.div_.style.visibility="hidden":this.div_.style.visibility="visible"},e.prototype.setOptions=function(t){"undefined"!=typeof t.boxClass&amp;&amp;(this.boxClass_=t.boxClass,this.setBoxStyle_()),"undefined"!=typeof t.boxStyle&amp;&amp;(this.boxStyle_=t.boxStyle,this.setBoxStyle_()),"undefined"!=typeof t.content&amp;&amp;this.setContent(t.content),"undefined"!=typeof t.disableAutoPan&amp;&amp;(this.disableAutoPan_=t.disableAutoPan),"undefined"!=typeof t.maxWidth&amp;&amp;(this.maxWidth_=t.maxWidth),"undefined"!=typeof t.pixelOffset&amp;&amp;(this.pixelOffset_=t.pixelOffset),"undefined"!=typeof t.alignBottom&amp;&amp;(this.alignBottom_=t.alignBottom),"undefined"!=typeof t.position&amp;&amp;this.setPosition(t.position),"undefined"!=typeof t.zIndex&amp;&amp;this.setZIndex(t.zIndex),"undefined"!=typeof t.closeBoxMargin&amp;&amp;(this.closeBoxMargin_=t.closeBoxMargin),"undefined"!=typeof t.closeBoxURL&amp;&amp;(this.closeBoxURL_=t.closeBoxURL),"undefined"!=typeof t.infoBoxClearance&amp;&amp;(this.infoBoxClearance_=t.infoBoxClearance),"undefined"!=typeof t.isHidden&amp;&amp;(this.isHidden_=t.isHidden),"undefined"!=typeof t.visible&amp;&amp;(this.isHidden_=!t.visible),"undefined"!=typeof t.enableEventPropagation&amp;&amp;(this.enableEventPropagation_=t.enableEventPropagation),this.div_&amp;&amp;this.draw()},e.prototype.setContent=function(t){this.content_=t,this.div_&amp;&amp;(this.closeListener_&amp;&amp;(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),"undefined"==typeof t.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+t:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(t)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px","undefined"==typeof t.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+t:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(t))),this.addClickHandler_()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(t){this.position_=t,this.div_&amp;&amp;this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setZIndex=function(t){this.zIndex_=t,this.div_&amp;&amp;(this.div_.style.zIndex=t),google.maps.event.trigger(this,"zindex_changed")},e.prototype.setVisible=function(t){this.isHidden_=!t,this.div_&amp;&amp;(this.div_.style.visibility=this.isHidden_?"hidden":"visible")},e.prototype.getContent=function(){return this.content_},e.prototype.getPosition=function(){return this.position_},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.getVisible=function(){var t;return t="undefined"!=typeof this.getMap()&amp;&amp;null!==this.getMap()&amp;&amp;!this.isHidden_},e.prototype.show=function(){this.isHidden_=!1,this.div_&amp;&amp;(this.div_.style.visibility="visible")},e.prototype.hide=function(){this.isHidden_=!0,this.div_&amp;&amp;(this.div_.style.visibility="hidden")},e.prototype.open=function(t,e){var i=this;e&amp;&amp;(this.position_=e.getPosition(),this.moveListener_=google.maps.event.addListener(e,"position_changed",function(){i.setPosition(this.getPosition())})),this.setMap(t),this.div_&amp;&amp;this.panBox_()},e.prototype.close=function(){var t;if(this.closeListener_&amp;&amp;(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(t=0;t&lt;this.eventListeners_.length;t++)google.maps.event.removeListener(this.eventListeners_[t]);this.eventListeners_=null}this.moveListener_&amp;&amp;(google.maps.event.removeListener(this.moveListener_),this.moveListener_=null),this.contextListener_&amp;&amp;(google.maps.event.removeListener(this.contextListener_),this.contextListener_=null),this.setMap(null)},function(){function e(t,e){var i=this,n=new google.maps.OverlayView;n.onAdd=function(){i.init_(t,e)},n.draw=function(){},n.onRemove=function(){},n.setMap(t),this.prjov_=n}var i=function(t){var e;switch(t){case"thin":e="2px";break;case"medium":e="4px";break;case"thick":e="6px";break;default:e=t}return e},n=function(t){var e,n={};if(document.defaultView&amp;&amp;document.defaultView.getComputedStyle){if(e=t.ownerDocument.defaultView.getComputedStyle(t,""))return n.top=parseInt(e.borderTopWidth,10)||0,n.bottom=parseInt(e.borderBottomWidth,10)||0,n.left=parseInt(e.borderLeftWidth,10)||0,n.right=parseInt(e.borderRightWidth,10)||0,n}else if(document.documentElement.currentStyle&amp;&amp;t.currentStyle)return n.top=parseInt(i(t.currentStyle.borderTopWidth),10)||0,n.bottom=parseInt(i(t.currentStyle.borderBottomWidth),10)||0,n.left=parseInt(i(t.currentStyle.borderLeftWidth),10)||0,n.right=parseInt(i(t.currentStyle.borderRightWidth),10)||0,n;return n.top=parseInt(t.style["border-top-width"],10)||0,n.bottom=parseInt(t.style["border-bottom-width"],10)||0,n.left=parseInt(t.style["border-left-width"],10)||0,n.right=parseInt(t.style["border-right-width"],10)||0,n},o={x:0,y:0},r=function(t){o.x="undefined"!=typeof document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft,o.y="undefined"!=typeof document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop};r();var s=function(e){var i=0,n=0;return e=e||t.event,"undefined"!=typeof e.pageX?(i=e.pageX,n=e.pageY):"undefined"!=typeof e.clientX&amp;&amp;(i=e.clientX+o.x,n=e.clientY+o.y),{left:i,top:n}},a=function(e){for(var i=e.offsetLeft,n=e.offsetTop,o=e.offsetParent;null!==o;){o!==document.body&amp;&amp;o!==document.documentElement&amp;&amp;(i-=o.scrollLeft,n-=o.scrollTop);var r=o,s=r.offsetLeft,a=r.offsetTop;if(!s&amp;&amp;!a&amp;&amp;t.getComputedStyle){var l=document.defaultView.getComputedStyle(r,null).MozTransform||document.defaultView.getComputedStyle(r,null).WebkitTransform;if(l&amp;&amp;"string"==typeof l){var u=l.split(",");s+=parseInt(u[4],10)||0,a+=parseInt(u[5],10)||0}}i+=s,n+=a,o=o.offsetParent}return{left:i,top:n}},l=function(t,e){if(t&amp;&amp;e)for(var i in e)e.hasOwnProperty(i)&amp;&amp;(t[i]=e[i]);return t},u=function(t,e){"undefined"!=typeof e&amp;&amp;(t.style.opacity=e),"undefined"!=typeof t.style.opacity&amp;&amp;""!==t.style.opacity&amp;&amp;(t.style.filter="alpha(opacity="+100*t.style.opacity+")")};e.prototype.init_=function(e,i){var o,s=this;for(this.map_=e,i=i||{},this.key_=i.key||"shift",this.key_=this.key_.toLowerCase(),this.borderWidths_=n(this.map_.getDiv()),this.veilDiv_=[],o=0;4&gt;o;o++)this.veilDiv_[o]=document.createElement("div"),this.veilDiv_[o].onselectstart=function(){return!1},l(this.veilDiv_[o].style,{backgroundColor:"gray",opacity:.25,cursor:"crosshair"}),l(this.veilDiv_[o].style,i.paneStyle),l(this.veilDiv_[o].style,i.veilStyle),l(this.veilDiv_[o].style,{position:"absolute",overflow:"hidden",display:"none"}),"shift"===this.key_&amp;&amp;(this.veilDiv_[o].style.MozUserSelect="none"),u(this.veilDiv_[o]),"transparent"===this.veilDiv_[o].style.backgroundColor&amp;&amp;(this.veilDiv_[o].style.backgroundColor="white",u(this.veilDiv_[o],0)),this.map_.getDiv().appendChild(this.veilDiv_[o]);this.noZoom_=i.noZoom||!1,this.visualEnabled_=i.visualEnabled||!1,this.visualClass_=i.visualClass||"",this.visualPosition_=i.visualPosition||google.maps.ControlPosition.LEFT_TOP,this.visualPositionOffset_=i.visualPositionOffset||new google.maps.Size(35,0),this.visualPositionIndex_=i.visualPositionIndex||null,this.visualSprite_=i.visualSprite||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/mapfiles/ftr/controls/dragzoom_btn.png",this.visualSize_=i.visualSize||new google.maps.Size(20,20),this.visualTips_=i.visualTips||{},this.visualTips_.off=this.visualTips_.off||"Turn on drag zoom mode",this.visualTips_.on=this.visualTips_.on||"Turn off drag zoom mode",this.boxDiv_=document.createElement("div"),l(this.boxDiv_.style,{border:"4px solid #736AFF"}),l(this.boxDiv_.style,i.boxStyle),l(this.boxDiv_.style,{position:"absolute",display:"none"}),u(this.boxDiv_),this.map_.getDiv().appendChild(this.boxDiv_),this.boxBorderWidths_=n(this.boxDiv_),this.listeners_=[google.maps.event.addDomListener(document,"keydown",function(t){s.onKeyDown_(t)}),google.maps.event.addDomListener(document,"keyup",function(t){s.onKeyUp_(t)}),google.maps.event.addDomListener(this.veilDiv_[0],"mousedown",function(t){s.onMouseDown_(t)}),google.maps.event.addDomListener(this.veilDiv_[1],"mousedown",function(t){s.onMouseDown_(t)}),google.maps.event.addDomListener(this.veilDiv_[2],"mousedown",function(t){s.onMouseDown_(t)}),google.maps.event.addDomListener(this.veilDiv_[3],"mousedown",function(t){s.onMouseDown_(t)}),google.maps.event.addDomListener(document,"mousedown",function(t){s.onMouseDownDocument_(t)}),google.maps.event.addDomListener(document,"mousemove",function(t){s.onMouseMove_(t)}),google.maps.event.addDomListener(document,"mouseup",function(t){s.onMouseUp_(t)}),google.maps.event.addDomListener(t,"scroll",r)],this.hotKeyDown_=!1,this.mouseDown_=!1,this.dragging_=!1,this.startPt_=null,this.endPt_=null,this.mapWidth_=null,this.mapHeight_=null,this.mousePosn_=null,this.mapPosn_=null,this.visualEnabled_&amp;&amp;(this.buttonDiv_=this.initControl_(this.visualPositionOffset_),null!==this.visualPositionIndex_&amp;&amp;(this.buttonDiv_.index=this.visualPositionIndex_),this.map_.controls[this.visualPosition_].push(this.buttonDiv_),this.controlIndex_=this.map_.controls[this.visualPosition_].length-1)},e.prototype.initControl_=function(t){var e,i,n=this;return e=document.createElement("div"),e.className=this.visualClass_,e.style.position="relative",e.style.overflow="hidden",e.style.height=this.visualSize_.height+"px",e.style.width=this.visualSize_.width+"px",e.title=this.visualTips_.off,i=document.createElement("img"),i.src=this.visualSprite_,i.style.position="absolute",i.style.left=-(2*this.visualSize_.width)+"px",i.style.top="0px",e.appendChild(i),e.onclick=function(t){n.hotKeyDown_=!n.hotKeyDown_,n.hotKeyDown_?(n.buttonDiv_.firstChild.style.left=-(0*n.visualSize_.width)+"px",n.buttonDiv_.title=n.visualTips_.on,n.activatedByControl_=!0,google.maps.event.trigger(n,"activate")):(n.buttonDiv_.firstChild.style.left=-(2*n.visualSize_.width)+"px",n.buttonDiv_.title=n.visualTips_.off,google.maps.event.trigger(n,"deactivate")),n.onMouseMove_(t)},e.onmouseover=function(){n.buttonDiv_.firstChild.style.left=-(1*n.visualSize_.width)+"px"},e.onmouseout=function(){n.hotKeyDown_?(n.buttonDiv_.firstChild.style.left=-(0*n.visualSize_.width)+"px",n.buttonDiv_.title=n.visualTips_.on):(n.buttonDiv_.firstChild.style.left=-(2*n.visualSize_.width)+"px",n.buttonDiv_.title=n.visualTips_.off)},e.ondragstart=function(){return!1},l(e.style,{cursor:"pointer",marginTop:t.height+"px",marginLeft:t.width+"px"}),e},e.prototype.isHotKeyDown_=function(e){var i;if(e=e||t.event,i=e.shiftKey&amp;&amp;"shift"===this.key_||e.altKey&amp;&amp;"alt"===this.key_||e.ctrlKey&amp;&amp;"ctrl"===this.key_,!i)switch(e.keyCode){case 16:"shift"===this.key_&amp;&amp;(i=!0);break;case 17:"ctrl"===this.key_&amp;&amp;(i=!0);break;case 18:"alt"===this.key_&amp;&amp;(i=!0)}return i},e.prototype.isMouseOnMap_=function(){var t=this.mousePosn_;if(t){var e=this.mapPosn_,i=this.map_.getDiv();return t.left&gt;e.left&amp;&amp;t.left&lt;e.left+i.offsetWidth&amp;&amp;t.top&gt;e.top&amp;&amp;t.top&lt;e.top+i.offsetHeight}return!1},e.prototype.setVeilVisibility_=function(){var t;if(this.map_&amp;&amp;this.hotKeyDown_&amp;&amp;this.isMouseOnMap_()){var e=this.map_.getDiv();if(this.mapWidth_=e.offsetWidth-(this.borderWidths_.left+this.borderWidths_.right),this.mapHeight_=e.offsetHeight-(this.borderWidths_.top+this.borderWidths_.bottom),this.activatedByControl_){var i=parseInt(this.buttonDiv_.style.left,10)+this.visualPositionOffset_.width,n=parseInt(this.buttonDiv_.style.top,10)+this.visualPositionOffset_.height,o=this.visualSize_.width,r=this.visualSize_.height;for(this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.width=i+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",this.veilDiv_[1].style.top="0px",this.veilDiv_[1].style.left=i+o+"px",this.veilDiv_[1].style.width=this.mapWidth_-(i+o)+"px",this.veilDiv_[1].style.height=this.mapHeight_+"px",this.veilDiv_[2].style.top="0px",this.veilDiv_[2].style.left=i+"px",this.veilDiv_[2].style.width=o+"px",this.veilDiv_[2].style.height=n+"px",this.veilDiv_[3].style.top=n+r+"px",this.veilDiv_[3].style.left=i+"px",this.veilDiv_[3].style.width=o+"px",this.veilDiv_[3].style.height=this.mapHeight_-(n+r)+"px",t=0;t&lt;this.veilDiv_.length;t++)this.veilDiv_[t].style.display="block"}else{for(this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.width=this.mapWidth_+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",t=1;t&lt;this.veilDiv_.length;t++)this.veilDiv_[t].style.width="0px",this.veilDiv_[t].style.height="0px";for(t=0;t&lt;this.veilDiv_.length;t++)this.veilDiv_[t].style.display="block"}}else for(t=0;t&lt;this.veilDiv_.length;t++)this.veilDiv_[t].style.display="none"},e.prototype.onKeyDown_=function(t){this.map_&amp;&amp;!this.hotKeyDown_&amp;&amp;this.isHotKeyDown_(t)&amp;&amp;(this.mapPosn_=a(this.map_.getDiv()),this.hotKeyDown_=!0,this.activatedByControl_=!1,this.setVeilVisibility_(),google.maps.event.trigger(this,"activate"))},e.prototype.getMousePoint_=function(t){var e=s(t),i=new google.maps.Point;return i.x=e.left-this.mapPosn_.left-this.borderWidths_.left,i.y=e.top-this.mapPosn_.top-this.borderWidths_.top,i.x=Math.min(i.x,this.mapWidth_),i.y=Math.min(i.y,this.mapHeight_),i.x=Math.max(i.x,0),i.y=Math.max(i.y,0),i},e.prototype.onMouseDown_=function(t){if(this.map_&amp;&amp;this.hotKeyDown_){this.mapPosn_=a(this.map_.getDiv()),this.dragging_=!0,this.startPt_=this.endPt_=this.getMousePoint_(t),this.boxDiv_.style.width=this.boxDiv_.style.height="0px";var e=this.prjov_.getProjection(),i=e.fromContainerPixelToLatLng(this.startPt_);google.maps.event.trigger(this,"dragstart",i)}},e.prototype.onMouseDownDocument_=function(t){this.mouseDown_=!0},e.prototype.onMouseMove_=function(t){if(this.mousePosn_=s(t),this.dragging_){this.endPt_=this.getMousePoint_(t);var e=Math.min(this.startPt_.x,this.endPt_.x),i=Math.min(this.startPt_.y,this.endPt_.y),n=Math.abs(this.startPt_.x-this.endPt_.x),o=Math.abs(this.startPt_.y-this.endPt_.y),r=Math.max(0,n-(this.boxBorderWidths_.left+this.boxBorderWidths_.right)),l=Math.max(0,o-(this.boxBorderWidths_.top+this.boxBorderWidths_.bottom));this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.width=e+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",this.veilDiv_[1].style.top="0px",this.veilDiv_[1].style.left=e+n+"px",this.veilDiv_[1].style.width=this.mapWidth_-(e+n)+"px",this.veilDiv_[1].style.height=this.mapHeight_+"px",this.veilDiv_[2].style.top="0px",this.veilDiv_[2].style.left=e+"px",this.veilDiv_[2].style.width=n+"px",this.veilDiv_[2].style.height=i+"px",this.veilDiv_[3].style.top=i+o+"px",this.veilDiv_[3].style.left=e+"px",this.veilDiv_[3].style.width=n+"px",this.veilDiv_[3].style.height=this.mapHeight_-(i+o)+"px",this.boxDiv_.style.top=i+"px",this.boxDiv_.style.left=e+"px",this.boxDiv_.style.width=r+"px",this.boxDiv_.style.height=l+"px",this.boxDiv_.style.display="block",google.maps.event.trigger(this,"drag",new google.maps.Point(e,i+o),new google.maps.Point(e+n,i),this.prjov_.getProjection())}else this.mouseDown_||(this.mapPosn_=a(this.map_.getDiv()),this.setVeilVisibility_())},e.prototype.onMouseUp_=function(t){var e,i=this;if(this.mouseDown_=!1,this.dragging_){if(this.getMousePoint_(t).x===this.startPt_.x&amp;&amp;this.getMousePoint_(t).y===this.startPt_.y)return void this.onKeyUp_(t);var n=Math.min(this.startPt_.x,this.endPt_.x),o=Math.min(this.startPt_.y,this.endPt_.y),r=Math.abs(this.startPt_.x-this.endPt_.x),s=Math.abs(this.startPt_.y-this.endPt_.y),a=!0;a&amp;&amp;(n+=this.borderWidths_.left,o+=this.borderWidths_.top);var l=this.prjov_.getProjection(),u=l.fromContainerPixelToLatLng(new google.maps.Point(n,o+s)),p=l.fromContainerPixelToLatLng(new google.maps.Point(n+r,o)),h=new google.maps.LatLngBounds(u,p);if(this.noZoom_)this.boxDiv_.style.display="none";else{e=this.map_.getZoom(),this.map_.fitBounds(h),this.map_.getZoom()&lt;e&amp;&amp;this.map_.setZoom(e);var c=l.fromLatLngToContainerPixel(u),d=l.fromLatLngToContainerPixel(p);a&amp;&amp;(c.x-=this.borderWidths_.left,c.y-=this.borderWidths_.top,d.x-=this.borderWidths_.left,d.y-=this.borderWidths_.top),this.boxDiv_.style.left=c.x+"px",this.boxDiv_.style.top=d.y+"px",this.boxDiv_.style.width=Math.abs(d.x-c.x)-(this.boxBorderWidths_.left+this.boxBorderWidths_.right)+"px",this.boxDiv_.style.height=Math.abs(d.y-c.y)-(this.boxBorderWidths_.top+this.boxBorderWidths_.bottom)+"px",setTimeout(function(){i.boxDiv_.style.display="none"},1e3)}this.dragging_=!1,this.onMouseMove_(t),google.maps.event.trigger(this,"dragend",h),this.isHotKeyDown_(t)||this.onKeyUp_(t)}},e.prototype.onKeyUp_=function(t){var e,i,n,o,r,s,a,l,u=null;if(this.map_&amp;&amp;this.hotKeyDown_){for(this.hotKeyDown_=!1,this.dragging_&amp;&amp;(this.boxDiv_.style.display="none",this.dragging_=!1,i=Math.min(this.startPt_.x,this.endPt_.x),n=Math.min(this.startPt_.y,this.endPt_.y),o=Math.abs(this.startPt_.x-this.endPt_.x),r=Math.abs(this.startPt_.y-this.endPt_.y),s=this.prjov_.getProjection(),a=s.fromContainerPixelToLatLng(new google.maps.Point(i,n+r)),l=s.fromContainerPixelToLatLng(new google.maps.Point(i+o,n)),u=new google.maps.LatLngBounds(a,l)),e=0;e&lt;this.veilDiv_.length;e++)this.veilDiv_[e].style.display="none";this.visualEnabled_&amp;&amp;(this.buttonDiv_.firstChild.style.left=-(2*this.visualSize_.width)+"px",this.buttonDiv_.title=this.visualTips_.off,this.buttonDiv_.style.display=""),google.maps.event.trigger(this,"deactivate",u)}},google.maps.Map.prototype.enableKeyDragZoom=function(t){this.dragZoom_=new e(this,t)},google.maps.Map.prototype.disableKeyDragZoom=function(){var t,e=this.dragZoom_;if(e){for(t=0;t&lt;e.listeners_.length;++t)google.maps.event.removeListener(e.listeners_[t]);for(this.getDiv().removeChild(e.boxDiv_),t=0;t&lt;e.veilDiv_.length;t++)this.getDiv().removeChild(e.veilDiv_[t]);e.visualEnabled_&amp;&amp;this.controls[e.visualPosition_].removeAt(e.controlIndex_),
e.prjov_.setMap(null),this.dragZoom_=null}},google.maps.Map.prototype.keyDragZoomEnabled=function(){return null!==this.dragZoom_},google.maps.Map.prototype.getDragZoomObject=function(){return this.dragZoom_}}(),n.prototype.onAdd=function(){var t,e,i=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&amp;&amp;this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){e=t}),google.maps.event.addDomListener(this.div_,"mousedown",function(){t=!0,e=!1}),google.maps.event.addDomListener(this.div_,"click",function(n){if(t=!1,!e){var o,r,s=i.cluster_.getMarkerClusterer();google.maps.event.trigger(s,"click",i.cluster_),google.maps.event.trigger(s,"clusterclick",i.cluster_),s.getZoomOnClick()&amp;&amp;(r=s.getMaxZoom(),o=i.cluster_.getBounds(),s.getMap().fitBounds(o),setTimeout(function(){s.getMap().fitBounds(o),null!==r&amp;&amp;s.getMap().getZoom()&gt;r&amp;&amp;s.getMap().setZoom(r+1)},100)),n.cancelBubble=!0,n.stopPropagation&amp;&amp;n.stopPropagation()}}),google.maps.event.addDomListener(this.div_,"mouseover",function(){var t=i.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseover",i.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){var t=i.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseout",i.cluster_)})},n.prototype.onRemove=function(){this.div_&amp;&amp;this.div_.parentNode&amp;&amp;(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},n.prototype.hide=function(){this.div_&amp;&amp;(this.div_.style.display="none"),this.visible_=!1},n.prototype.show=function(){if(this.div_){var t="",e=this.backgroundPosition_.split(" "),i=parseInt(e[0].trim(),10),n=parseInt(e[1].trim(),10),o=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(o),t="&lt;img src='"+this.url_+"' style='position: absolute; top: "+n+"px; left: "+i+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_||(t+="clip: rect("+-1*n+"px, "+(-1*i+this.width_)+"px, "+(-1*n+this.height_)+"px, "+-1*i+"px);"),t+="'&gt;",this.div_.innerHTML=t+"&lt;div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'&gt;"+this.sums_.text+"&lt;/div&gt;","undefined"==typeof this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""}this.visible_=!0},n.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e);var i=this.styles_[e];this.url_=i.url,this.height_=i.height,this.width_=i.width,this.anchorText_=i.anchorText||[0,0],this.anchorIcon_=i.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=i.textColor||"black",this.textSize_=i.textSize||11,this.textDecoration_=i.textDecoration||"none",this.fontWeight_=i.fontWeight||"bold",this.fontStyle_=i.fontStyle||"normal",this.fontFamily_=i.fontFamily||"Arial,sans-serif",this.backgroundPosition_=i.backgroundPosition||"0 0"},n.prototype.setCenter=function(t){this.center_=t},n.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width_+"px; height: "+this.height_+"px;"),e.join("")},n.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon_[1],e.y-=this.anchorIcon_[0],e.x=parseInt(e.x,10),e.y=parseInt(e.y,10),e},o.prototype.getSize=function(){return this.markers_.length},o.prototype.getMarkers=function(){return this.markers_},o.prototype.getCenter=function(){return this.center_},o.prototype.getMap=function(){return this.map_},o.prototype.getMarkerClusterer=function(){return this.markerClusterer_},o.prototype.getBounds=function(){var t,e=new google.maps.LatLngBounds(this.center_,this.center_),i=this.getMarkers();for(t=0;t&lt;i.length;t++)e.extend(i[t].getPosition());return e},o.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},o.prototype.addMarker=function(t){var e,i,n;if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var o=this.markers_.length+1,r=(this.center_.lat()*(o-1)+t.getPosition().lat())/o,s=(this.center_.lng()*(o-1)+t.getPosition().lng())/o;this.center_=new google.maps.LatLng(r,s),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();if(t.isAdded=!0,this.markers_.push(t),i=this.markers_.length,n=this.markerClusterer_.getMaxZoom(),null!==n&amp;&amp;this.map_.getZoom()&gt;n)t.getMap()!==this.map_&amp;&amp;t.setMap(this.map_);else if(i&lt;this.minClusterSize_)t.getMap()!==this.map_&amp;&amp;t.setMap(this.map_);else if(i===this.minClusterSize_)for(e=0;i&gt;e;e++)this.markers_[e].setMap(null);else t.setMap(null);return this.updateIcon_(),!0},o.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},o.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},o.prototype.updateIcon_=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&amp;&amp;this.map_.getZoom()&gt;e)return void this.clusterIcon_.hide();if(t&lt;this.minClusterSize_)return void this.clusterIcon_.hide();var i=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,i);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()},o.prototype.isMarkerAlreadyAdded_=function(t){var e;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(e=0;e&lt;this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},r.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){t.resetViewport_(!1),(this.getZoom()===(this.get("minZoom")||0)||this.getZoom()===this.get("maxZoom"))&amp;&amp;google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){t.redraw_()})]},r.prototype.onRemove=function(){var t;for(t=0;t&lt;this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&amp;&amp;this.markers_[t].setMap(this.activeMap_);for(t=0;t&lt;this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],t=0;t&lt;this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},r.prototype.draw=function(){},r.prototype.setupStyles_=function(){var t,e;if(!(this.styles_.length&gt;0))for(t=0;t&lt;this.imageSizes_.length;t++)e=this.imageSizes_[t],this.styles_.push({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:e,width:e})},r.prototype.fitMapToMarkers=function(){var t,e=this.getMarkers(),i=new google.maps.LatLngBounds;for(t=0;t&lt;e.length;t++)i.extend(e[t].getPosition());this.getMap().fitBounds(i)},r.prototype.getGridSize=function(){return this.gridSize_},r.prototype.setGridSize=function(t){this.gridSize_=t},r.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},r.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},r.prototype.getMaxZoom=function(){return this.maxZoom_},r.prototype.setMaxZoom=function(t){this.maxZoom_=t},r.prototype.getStyles=function(){return this.styles_},r.prototype.setStyles=function(t){this.styles_=t},r.prototype.getTitle=function(){return this.title_},r.prototype.setTitle=function(t){this.title_=t},r.prototype.getZoomOnClick=function(){return this.zoomOnClick_},r.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},r.prototype.getAverageCenter=function(){return this.averageCenter_},r.prototype.setAverageCenter=function(t){this.averageCenter_=t},r.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},r.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},r.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},r.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},r.prototype.getImageExtension=function(){return this.imageExtension_},r.prototype.setImageExtension=function(t){this.imageExtension_=t},r.prototype.getImagePath=function(){return this.imagePath_},r.prototype.setImagePath=function(t){this.imagePath_=t},r.prototype.getImageSizes=function(){return this.imageSizes_},r.prototype.setImageSizes=function(t){this.imageSizes_=t},r.prototype.getCalculator=function(){return this.calculator_},r.prototype.setCalculator=function(t){this.calculator_=t},r.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},r.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},r.prototype.getClusterClass=function(){return this.clusterClass_},r.prototype.setClusterClass=function(t){this.clusterClass_=t},r.prototype.getMarkers=function(){return this.markers_},r.prototype.getTotalMarkers=function(){return this.markers_.length},r.prototype.getClusters=function(){return this.clusters_},r.prototype.getTotalClusters=function(){return this.clusters_.length},r.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},r.prototype.addMarkers=function(t,e){var i;for(i in t)t.hasOwnProperty(i)&amp;&amp;this.pushMarkerTo_(t[i]);e||this.redraw_()},r.prototype.pushMarkerTo_=function(t){if(t.getDraggable()){var e=this;google.maps.event.addListener(t,"dragend",function(){e.ready_&amp;&amp;(this.isAdded=!1,e.repaint())})}t.isAdded=!1,this.markers_.push(t)},r.prototype.removeMarker=function(t,e){var i=this.removeMarker_(t);return!e&amp;&amp;i&amp;&amp;this.repaint(),i},r.prototype.removeMarkers=function(t,e){var i,n,o=!1;for(i=0;i&lt;t.length;i++)n=this.removeMarker_(t[i]),o=o||n;return!e&amp;&amp;o&amp;&amp;this.repaint(),o},r.prototype.removeMarker_=function(t){var e,i=-1;if(this.markers_.indexOf)i=this.markers_.indexOf(t);else for(e=0;e&lt;this.markers_.length;e++)if(t===this.markers_[e]){i=e;break}return-1!==i&amp;&amp;(t.setMap(null),this.markers_.splice(i,1),!0)},r.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},r.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){var e;for(e=0;e&lt;t.length;e++)t[e].remove()},0)},r.prototype.getExtendedBounds=function(t){var e=this.getProjection(),i=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),o=e.fromLatLngToDivPixel(i);o.x+=this.gridSize_,o.y-=this.gridSize_;var r=e.fromLatLngToDivPixel(n);r.x-=this.gridSize_,r.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(o),a=e.fromDivPixelToLatLng(r);return t.extend(s),t.extend(a),t},r.prototype.redraw_=function(){this.createClusters_(0)},r.prototype.resetViewport_=function(t){var e,i;for(e=0;e&lt;this.clusters_.length;e++)this.clusters_[e].remove();for(this.clusters_=[],e=0;e&lt;this.markers_.length;e++)i=this.markers_[e],i.isAdded=!1,t&amp;&amp;i.setMap(null)},r.prototype.distanceBetweenPoints_=function(t,e){var i=6371,n=(e.lat()-t.lat())*Math.PI/180,o=(e.lng()-t.lng())*Math.PI/180,r=Math.sin(n/2)*Math.sin(n/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2),s=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r)),a=i*s;return a},r.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},r.prototype.addToClosestCluster_=function(t){var e,i,n,r,s=4e4,a=null;for(e=0;e&lt;this.clusters_.length;e++)n=this.clusters_[e],r=n.getCenter(),r&amp;&amp;(i=this.distanceBetweenPoints_(r,t.getPosition()),s&gt;i&amp;&amp;(s=i,a=n));a&amp;&amp;a.isMarkerInClusterBounds(t)?a.addMarker(t):(n=new o(this),n.addMarker(t),this.clusters_.push(n))},r.prototype.createClusters_=function(t){var e,i,n,o=this;if(this.ready_){0===t&amp;&amp;(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&amp;&amp;(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),n=this.getMap().getZoom()&gt;3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,(-178.48388434375)),new google.maps.LatLng((-85.08136444384544),178.00048865625));var r=this.getExtendedBounds(n),s=Math.min(t+this.batchSize_,this.markers_.length);for(e=t;s&gt;e;e++)i=this.markers_[e],!i.isAdded&amp;&amp;this.isMarkerInBounds_(i,r)&amp;&amp;(!this.ignoreHidden_||this.ignoreHidden_&amp;&amp;i.getVisible())&amp;&amp;this.addToClosestCluster_(i);s&lt;this.markers_.length?this.timerRefStatic=setTimeout(function(){o.createClusters_(s)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},r.prototype.extend=function(t,e){return function(t){var e;for(e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},r.CALCULATOR=function(t,e){for(var i=0,n="",o=t.length.toString(),r=o;0!==r;)r=parseInt(r/10,10),i++;return i=Math.min(i,e),{text:o,index:i,title:n}},r.BATCH_SIZE=2e3,r.BATCH_SIZE_IE=500,r.IMAGE_PATH="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m",r.IMAGE_EXTENSION="png",r.IMAGE_SIZES=[53,56,66,78,90],s(a,google.maps.OverlayView),a.getSharedCross=function(t){var e;return"undefined"==typeof a.getSharedCross.crossDiv&amp;&amp;(e=document.createElement("img"),e.style.cssText="position: absolute; z-index: 1000002; display: none;",e.style.marginLeft="-8px",e.style.marginTop="-9px",e.src=t,a.getSharedCross.crossDiv=e),a.getSharedCross.crossDiv},a.prototype.onAdd=function(){var t,e,i,n,o,r,s,l=this,u=!1,p=!1,h=20,c="url("+this.handCursorURL_+")",d=function(t){t.preventDefault&amp;&amp;t.preventDefault(),t.cancelBubble=!0,t.stopPropagation&amp;&amp;t.stopPropagation()},g=function(){l.marker_.setAnimation(null)};this.getPanes().overlayImage.appendChild(this.labelDiv_),this.getPanes().overlayMouseTarget.appendChild(this.eventDiv_),"undefined"==typeof a.getSharedCross.processed&amp;&amp;(this.getPanes().overlayImage.appendChild(this.crossDiv_),a.getSharedCross.processed=!0),this.listeners_=[google.maps.event.addDomListener(this.eventDiv_,"mouseover",function(t){(l.marker_.getDraggable()||l.marker_.getClickable())&amp;&amp;(this.style.cursor="pointer",google.maps.event.trigger(l.marker_,"mouseover",t))}),google.maps.event.addDomListener(this.eventDiv_,"mouseout",function(t){!l.marker_.getDraggable()&amp;&amp;!l.marker_.getClickable()||p||(this.style.cursor=l.marker_.getCursor(),google.maps.event.trigger(l.marker_,"mouseout",t))}),google.maps.event.addDomListener(this.eventDiv_,"mousedown",function(t){p=!1,l.marker_.getDraggable()&amp;&amp;(u=!0,this.style.cursor=c),(l.marker_.getDraggable()||l.marker_.getClickable())&amp;&amp;(google.maps.event.trigger(l.marker_,"mousedown",t),d(t))}),google.maps.event.addDomListener(document,"mouseup",function(e){var i;if(u&amp;&amp;(u=!1,l.eventDiv_.style.cursor="pointer",google.maps.event.trigger(l.marker_,"mouseup",e)),p){if(o){i=l.getProjection().fromLatLngToDivPixel(l.marker_.getPosition()),i.y+=h,l.marker_.setPosition(l.getProjection().fromDivPixelToLatLng(i));try{l.marker_.setAnimation(google.maps.Animation.BOUNCE),setTimeout(g,1406)}catch(r){}}l.crossDiv_.style.display="none",l.marker_.setZIndex(t),n=!0,p=!1,e.latLng=l.marker_.getPosition(),google.maps.event.trigger(l.marker_,"dragend",e)}}),google.maps.event.addListener(l.marker_.getMap(),"mousemove",function(n){var a;u&amp;&amp;(p?(n.latLng=new google.maps.LatLng(n.latLng.lat()-e,n.latLng.lng()-i),a=l.getProjection().fromLatLngToDivPixel(n.latLng),o&amp;&amp;(l.crossDiv_.style.left=a.x+"px",l.crossDiv_.style.top=a.y+"px",l.crossDiv_.style.display="",a.y-=h),l.marker_.setPosition(l.getProjection().fromDivPixelToLatLng(a)),o&amp;&amp;(l.eventDiv_.style.top=a.y+h+"px"),google.maps.event.trigger(l.marker_,"drag",n)):(e=n.latLng.lat()-l.marker_.getPosition().lat(),i=n.latLng.lng()-l.marker_.getPosition().lng(),t=l.marker_.getZIndex(),r=l.marker_.getPosition(),s=l.marker_.getMap().getCenter(),o=l.marker_.get("raiseOnDrag"),p=!0,l.marker_.setZIndex(1e6),n.latLng=l.marker_.getPosition(),google.maps.event.trigger(l.marker_,"dragstart",n)))}),google.maps.event.addDomListener(document,"keydown",function(t){p&amp;&amp;27===t.keyCode&amp;&amp;(o=!1,l.marker_.setPosition(r),l.marker_.getMap().setCenter(s),google.maps.event.trigger(document,"mouseup",t))}),google.maps.event.addDomListener(this.eventDiv_,"click",function(t){(l.marker_.getDraggable()||l.marker_.getClickable())&amp;&amp;(n?n=!1:(google.maps.event.trigger(l.marker_,"click",t),d(t)))}),google.maps.event.addDomListener(this.eventDiv_,"dblclick",function(t){(l.marker_.getDraggable()||l.marker_.getClickable())&amp;&amp;(google.maps.event.trigger(l.marker_,"dblclick",t),d(t))}),google.maps.event.addListener(this.marker_,"dragstart",function(t){p||(o=this.get("raiseOnDrag"))}),google.maps.event.addListener(this.marker_,"drag",function(t){p||o&amp;&amp;(l.setPosition(h),l.labelDiv_.style.zIndex=1e6+(this.get("labelInBackground")?-1:1))}),google.maps.event.addListener(this.marker_,"dragend",function(t){p||o&amp;&amp;l.setPosition(0)}),google.maps.event.addListener(this.marker_,"position_changed",function(){l.setPosition()}),google.maps.event.addListener(this.marker_,"zindex_changed",function(){l.setZIndex()}),google.maps.event.addListener(this.marker_,"visible_changed",function(){l.setVisible()}),google.maps.event.addListener(this.marker_,"labelvisible_changed",function(){l.setVisible()}),google.maps.event.addListener(this.marker_,"title_changed",function(){l.setTitle()}),google.maps.event.addListener(this.marker_,"labelcontent_changed",function(){l.setContent()}),google.maps.event.addListener(this.marker_,"labelanchor_changed",function(){l.setAnchor()}),google.maps.event.addListener(this.marker_,"labelclass_changed",function(){l.setStyles()}),google.maps.event.addListener(this.marker_,"labelstyle_changed",function(){l.setStyles()})]},a.prototype.onRemove=function(){var t;for(this.labelDiv_.parentNode.removeChild(this.labelDiv_),this.eventDiv_.parentNode.removeChild(this.eventDiv_),t=0;t&lt;this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t])},a.prototype.draw=function(){this.setContent(),this.setTitle(),this.setStyles()},a.prototype.setContent=function(){var t=this.marker_.get("labelContent");"undefined"==typeof t.nodeType?(this.labelDiv_.innerHTML=t,this.eventDiv_.innerHTML=this.labelDiv_.innerHTML):(this.labelDiv_.innerHTML="",this.labelDiv_.appendChild(t),t=t.cloneNode(!0),this.eventDiv_.innerHTML="",this.eventDiv_.appendChild(t))},a.prototype.setTitle=function(){this.eventDiv_.title=this.marker_.getTitle()||""},a.prototype.setStyles=function(){var t,e;this.labelDiv_.className=this.marker_.get("labelClass"),this.eventDiv_.className=this.labelDiv_.className,this.labelDiv_.style.cssText="",this.eventDiv_.style.cssText="",e=this.marker_.get("labelStyle");for(t in e)e.hasOwnProperty(t)&amp;&amp;(this.labelDiv_.style[t]=e[t],this.eventDiv_.style[t]=e[t]);this.setMandatoryStyles()},a.prototype.setMandatoryStyles=function(){this.labelDiv_.style.position="absolute",this.labelDiv_.style.overflow="hidden","undefined"!=typeof this.labelDiv_.style.opacity&amp;&amp;""!==this.labelDiv_.style.opacity&amp;&amp;(this.labelDiv_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(opacity='+100*this.labelDiv_.style.opacity+')"',this.labelDiv_.style.filter="alpha(opacity="+100*this.labelDiv_.style.opacity+")"),this.eventDiv_.style.position=this.labelDiv_.style.position,this.eventDiv_.style.overflow=this.labelDiv_.style.overflow,this.eventDiv_.style.opacity=.01,this.eventDiv_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(opacity=1)"',this.eventDiv_.style.filter="alpha(opacity=1)",this.setAnchor(),this.setPosition(),this.setVisible()},a.prototype.setAnchor=function(){var t=this.marker_.get("labelAnchor");this.labelDiv_.style.marginLeft=-t.x+"px",this.labelDiv_.style.marginTop=-t.y+"px",this.eventDiv_.style.marginLeft=-t.x+"px",this.eventDiv_.style.marginTop=-t.y+"px"},a.prototype.setPosition=function(t){var e=this.getProjection().fromLatLngToDivPixel(this.marker_.getPosition());"undefined"==typeof t&amp;&amp;(t=0),this.labelDiv_.style.left=Math.round(e.x)+"px",this.labelDiv_.style.top=Math.round(e.y-t)+"px",this.eventDiv_.style.left=this.labelDiv_.style.left,this.eventDiv_.style.top=this.labelDiv_.style.top,this.setZIndex()},a.prototype.setZIndex=function(){var t=this.marker_.get("labelInBackground")?-1:1;"undefined"==typeof this.marker_.getZIndex()?(this.labelDiv_.style.zIndex=parseInt(this.labelDiv_.style.top,10)+t,this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex):(this.labelDiv_.style.zIndex=this.marker_.getZIndex()+t,this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex)},a.prototype.setVisible=function(){this.marker_.get("labelVisible")?this.labelDiv_.style.display=this.marker_.getVisible()?"block":"none":this.labelDiv_.style.display="none",this.eventDiv_.style.display=this.labelDiv_.style.display},s(l,google.maps.Marker),l.prototype.setMap=function(t){google.maps.Marker.prototype.setMap.apply(this,arguments),this.label.setMap(t)},u.prototype=new google.maps.OverlayView,t.RichMarker=u,u.prototype.getVisible=function(){return this.get("visible")},u.prototype.getVisible=u.prototype.getVisible,u.prototype.setVisible=function(t){this.set("visible",t)},u.prototype.setVisible=u.prototype.setVisible,u.prototype.visible_changed=function(){this.ready_&amp;&amp;(this.markerWrapper_.style.display=this.getVisible()?"":"none",this.draw())},u.prototype.visible_changed=u.prototype.visible_changed,u.prototype.setFlat=function(t){this.set("flat",!!t)},u.prototype.setFlat=u.prototype.setFlat,u.prototype.getFlat=function(){return this.get("flat")},u.prototype.getFlat=u.prototype.getFlat,u.prototype.getWidth=function(){return this.get("width")},u.prototype.getWidth=u.prototype.getWidth,u.prototype.getHeight=function(){return this.get("height")},u.prototype.getHeight=u.prototype.getHeight,u.prototype.setShadow=function(t){this.set("shadow",t),this.flat_changed()},u.prototype.setShadow=u.prototype.setShadow,u.prototype.getShadow=function(){return this.get("shadow")},u.prototype.getShadow=u.prototype.getShadow,u.prototype.flat_changed=function(){this.ready_&amp;&amp;(this.markerWrapper_.style.boxShadow=this.markerWrapper_.style.webkitBoxShadow=this.markerWrapper_.style.MozBoxShadow=this.getFlat()?"":this.getShadow())},u.prototype.flat_changed=u.prototype.flat_changed,u.prototype.setZIndex=function(t){this.set("zIndex",t)},u.prototype.setZIndex=u.prototype.setZIndex,u.prototype.getZIndex=function(){return this.get("zIndex")},u.prototype.getZIndex=u.prototype.getZIndex,u.prototype.zIndex_changed=function(){this.getZIndex()&amp;&amp;this.ready_&amp;&amp;(this.markerWrapper_.style.zIndex=this.getZIndex())},u.prototype.zIndex_changed=u.prototype.zIndex_changed,u.prototype.getDraggable=function(){return this.get("draggable")},u.prototype.getDraggable=u.prototype.getDraggable,u.prototype.setDraggable=function(t){this.set("draggable",!!t)},u.prototype.setDraggable=u.prototype.setDraggable,u.prototype.draggable_changed=function(){this.ready_&amp;&amp;(this.getDraggable()?this.addDragging_(this.markerWrapper_):this.removeDragListeners_())},u.prototype.draggable_changed=u.prototype.draggable_changed,u.prototype.getPosition=function(){return this.get("position")},u.prototype.getPosition=u.prototype.getPosition,u.prototype.setPosition=function(t){this.set("position",t)},u.prototype.setPosition=u.prototype.setPosition,u.prototype.position_changed=function(){this.draw()},u.prototype.position_changed=u.prototype.position_changed,u.prototype.getAnchor=function(){return this.get("anchor")},u.prototype.getAnchor=u.prototype.getAnchor,u.prototype.setAnchor=function(t){this.set("anchor",t)},u.prototype.setAnchor=u.prototype.setAnchor,u.prototype.anchor_changed=function(){this.draw()},u.prototype.anchor_changed=u.prototype.anchor_changed,u.prototype.htmlToDocumentFragment_=function(t){var e=document.createElement("DIV");if(e.innerHTML=t,1==e.childNodes.length)return e.removeChild(e.firstChild);for(var i=document.createDocumentFragment();e.firstChild;)i.appendChild(e.firstChild);return i},u.prototype.removeChildren_=function(t){if(t)for(var e;e=t.firstChild;)t.removeChild(e)},u.prototype.setContent=function(t){this.set("content",t)},u.prototype.setContent=u.prototype.setContent,u.prototype.getContent=function(){return this.get("content")},u.prototype.getContent=u.prototype.getContent,u.prototype.content_changed=function(){if(this.markerContent_){this.removeChildren_(this.markerContent_);var t=this.getContent();if(t){"string"==typeof t&amp;&amp;(t=t.replace(/^\s*([\S\s]*)\b\s*$/,"$1"),t=this.htmlToDocumentFragment_(t)),this.markerContent_.appendChild(t);for(var e,i=this,n=this.markerContent_.getElementsByTagName("IMG"),o=0;e=n[o];o++)google.maps.event.addDomListener(e,"mousedown",function(t){i.getDraggable()&amp;&amp;(t.preventDefault&amp;&amp;t.preventDefault(),t.returnValue=!1)}),google.maps.event.addDomListener(e,"load",function(){i.draw()});google.maps.event.trigger(this,"domready")}this.ready_&amp;&amp;this.draw()}},u.prototype.content_changed=u.prototype.content_changed,u.prototype.setCursor_=function(t){if(this.ready_){var e="";-1!==navigator.userAgent.indexOf("Gecko/")?("dragging"==t&amp;&amp;(e="-moz-grabbing"),"dragready"==t&amp;&amp;(e="-moz-grab"),"draggable"==t&amp;&amp;(e="pointer")):(("dragging"==t||"dragready"==t)&amp;&amp;(e="move"),"draggable"==t&amp;&amp;(e="pointer")),this.markerWrapper_.style.cursor!=e&amp;&amp;(this.markerWrapper_.style.cursor=e)}},u.prototype.startDrag=function(t){if(this.getDraggable()&amp;&amp;!this.dragging_){this.dragging_=!0;var e=this.getMap();this.mapDraggable_=e.get("draggable"),e.set("draggable",!1),this.mouseX_=t.clientX,this.mouseY_=t.clientY,this.setCursor_("dragready"),this.markerWrapper_.style.MozUserSelect="none",this.markerWrapper_.style.KhtmlUserSelect="none",this.markerWrapper_.style.WebkitUserSelect="none",this.markerWrapper_.unselectable="on",this.markerWrapper_.onselectstart=function(){return!1},this.addDraggingListeners_(),google.maps.event.trigger(this,"dragstart")}},u.prototype.stopDrag=function(){this.getDraggable()&amp;&amp;this.dragging_&amp;&amp;(this.dragging_=!1,this.getMap().set("draggable",this.mapDraggable_),this.mouseX_=this.mouseY_=this.mapDraggable_=null,this.markerWrapper_.style.MozUserSelect="",this.markerWrapper_.style.KhtmlUserSelect="",this.markerWrapper_.style.WebkitUserSelect="",this.markerWrapper_.unselectable="off",this.markerWrapper_.onselectstart=function(){},this.removeDraggingListeners_(),this.setCursor_("draggable"),google.maps.event.trigger(this,"dragend"),this.draw())},u.prototype.drag=function(t){if(!this.getDraggable()||!this.dragging_)return void this.stopDrag();var e=this.mouseX_-t.clientX,i=this.mouseY_-t.clientY;this.mouseX_=t.clientX,this.mouseY_=t.clientY;var n=parseInt(this.markerWrapper_.style.left,10)-e,o=parseInt(this.markerWrapper_.style.top,10)-i;this.markerWrapper_.style.left=n+"px",this.markerWrapper_.style.top=o+"px";var r=this.getOffset_(),s=new google.maps.Point(n-r.width,o-r.height),a=this.getProjection();this.setPosition(a.fromDivPixelToLatLng(s)),this.setCursor_("dragging"),google.maps.event.trigger(this,"drag")},u.prototype.removeDragListeners_=function(){this.draggableListener_&amp;&amp;(google.maps.event.removeListener(this.draggableListener_),delete this.draggableListener_),this.setCursor_("")},u.prototype.addDragging_=function(t){if(t){var e=this;this.draggableListener_=google.maps.event.addDomListener(t,"mousedown",function(t){e.startDrag(t)}),this.setCursor_("draggable")}},u.prototype.addDraggingListeners_=function(){var e=this;this.markerWrapper_.setCapture?(this.markerWrapper_.setCapture(!0),this.draggingListeners_=[google.maps.event.addDomListener(this.markerWrapper_,"mousemove",function(t){e.drag(t)},!0),google.maps.event.addDomListener(this.markerWrapper_,"mouseup",function(){e.stopDrag(),e.markerWrapper_.releaseCapture()},!0)]):this.draggingListeners_=[google.maps.event.addDomListener(t,"mousemove",function(t){e.drag(t)},!0),google.maps.event.addDomListener(t,"mouseup",function(){e.stopDrag()},!0)]},u.prototype.removeDraggingListeners_=function(){if(this.draggingListeners_){for(var t,e=0;t=this.draggingListeners_[e];e++)google.maps.event.removeListener(t);this.draggingListeners_.length=0}},u.prototype.getOffset_=function(){var t=this.getAnchor();if("object"==typeof t)return t;var e=new google.maps.Size(0,0);if(!this.markerContent_)return e;var i=this.markerContent_.offsetWidth,n=this.markerContent_.offsetHeight;switch(t){case p.TOP_LEFT:break;case p.TOP:e.width=-i/2;break;case p.TOP_RIGHT:e.width=-i;break;case p.LEFT:e.height=-n/2;break;case p.MIDDLE:e.width=-i/2,e.height=-n/2;break;case p.RIGHT:e.width=-i,e.height=-n/2;break;case p.BOTTOM_LEFT:e.height=-n;break;case p.BOTTOM:e.width=-i/2,e.height=-n;break;case p.BOTTOM_RIGHT:e.width=-i,e.height=-n}return e},u.prototype.onAdd=function(){if(this.markerWrapper_||(this.markerWrapper_=document.createElement("DIV"),this.markerWrapper_.style.position="absolute"),this.getZIndex()&amp;&amp;(this.markerWrapper_.style.zIndex=this.getZIndex()),this.markerWrapper_.style.display=this.getVisible()?"":"none",!this.markerContent_){this.markerContent_=document.createElement("DIV"),this.markerWrapper_.appendChild(this.markerContent_);var t=this;google.maps.event.addDomListener(this.markerContent_,"click",function(e){google.maps.event.trigger(t,"click")}),google.maps.event.addDomListener(this.markerContent_,"mouseover",function(e){google.maps.event.trigger(t,"mouseover")}),google.maps.event.addDomListener(this.markerContent_,"mouseout",function(e){google.maps.event.trigger(t,"mouseout")})}this.ready_=!0,this.content_changed(),this.flat_changed(),this.draggable_changed();var e=this.getPanes();e&amp;&amp;e.overlayMouseTarget.appendChild(this.markerWrapper_),google.maps.event.trigger(this,"ready")},u.prototype.onAdd=u.prototype.onAdd,u.prototype.draw=function(){if(this.ready_&amp;&amp;!this.dragging_){var t=this.getProjection();if(t){var e=this.get("position"),i=t.fromLatLngToDivPixel(e),n=this.getOffset_();this.markerWrapper_.style.top=i.y+n.height+"px",this.markerWrapper_.style.left=i.x+n.width+"px";var o=this.markerContent_.offsetHeight,r=this.markerContent_.offsetWidth;r!=this.get("width")&amp;&amp;this.set("width",r),o!=this.get("height")&amp;&amp;this.set("height",o)}}},u.prototype.draw=u.prototype.draw,u.prototype.onRemove=function(){this.markerWrapper_&amp;&amp;this.markerWrapper_.parentNode&amp;&amp;this.markerWrapper_.parentNode.removeChild(this.markerWrapper_),this.removeDragListeners_()},u.prototype.onRemove=u.prototype.onRemove;var p={TOP_LEFT:1,TOP:2,TOP_RIGHT:3,LEFT:4,MIDDLE:5,RIGHT:6,BOTTOM_LEFT:7,BOTTOM:8,BOTTOM_RIGHT:9};t.RichMarkerPosition=p,t.InfoBox=e,t.Cluster=o,t.ClusterIcon=n,t.MarkerClusterer=r,t.MarkerLabel_=a,t.MarkerWithLabel=l,t.RichMarker=u})}}),function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,i,n){e.module("uiGmapgoogle-maps.wrapped").service("uiGmapDataStructures",function(){return{Graph:n(1).Graph,Queue:n(1).Queue}})},function(t,e,i){(function(){t.exports={Graph:i(2),Heap:i(3),LinkedList:i(4),Map:i(5),Queue:i(6),RedBlackTree:i(7),Trie:i(8)}}).call(this)},function(t,e){(function(){var e,i={}.hasOwnProperty;e=function(){function t(){this._nodes={},this.nodeSize=0,this.edgeSize=0}return t.prototype.addNode=function(t){return this._nodes[t]?void 0:(this.nodeSize++,this._nodes[t]={_outEdges:{},_inEdges:{}})},t.prototype.getNode=function(t){return this._nodes[t]},t.prototype.removeNode=function(t){var e,n,o,r,s;if(n=this._nodes[t]){r=n._outEdges;for(o in r)i.call(r,o)&amp;&amp;this.removeEdge(t,o);s=n._inEdges;for(e in s)i.call(s,e)&amp;&amp;this.removeEdge(e,t);return this.nodeSize--,delete this._nodes[t],n}},t.prototype.addEdge=function(t,e,i){
var n,o,r;return null==i&amp;&amp;(i=1),!this.getEdge(t,e)&amp;&amp;(o=this._nodes[t],r=this._nodes[e],o&amp;&amp;r)?(n={weight:i},o._outEdges[e]=n,r._inEdges[t]=n,this.edgeSize++,n):void 0},t.prototype.getEdge=function(t,e){var i,n;return i=this._nodes[t],n=this._nodes[e],i&amp;&amp;n?i._outEdges[e]:void 0},t.prototype.removeEdge=function(t,e){var i,n,o;return n=this._nodes[t],o=this._nodes[e],(i=this.getEdge(t,e))?(delete n._outEdges[e],delete o._inEdges[t],this.edgeSize--,i):void 0},t.prototype.getInEdgesOf=function(t){var e,n,o,r;o=this._nodes[t],n=[],r=null!=o?o._inEdges:void 0;for(e in r)i.call(r,e)&amp;&amp;n.push(this.getEdge(e,t));return n},t.prototype.getOutEdgesOf=function(t){var e,n,o,r;e=this._nodes[t],n=[],r=null!=e?e._outEdges:void 0;for(o in r)i.call(r,o)&amp;&amp;n.push(this.getEdge(t,o));return n},t.prototype.getAllEdgesOf=function(t){var e,i,n,o,r,s,a;if(i=this.getInEdgesOf(t),n=this.getOutEdgesOf(t),0===i.length)return n;for(o=this.getEdge(t,t),e=r=0,s=i.length;s&gt;=0?s&gt;r:r&gt;s;e=s&gt;=0?++r:--r)if(i[e]===o){a=[i[i.length-1],i[e]],i[e]=a[0],i[i.length-1]=a[1],i.pop();break}return i.concat(n)},t.prototype.forEachNode=function(t){var e,n,o;o=this._nodes;for(e in o)i.call(o,e)&amp;&amp;(n=o[e],t(n,e))},t.prototype.forEachEdge=function(t){var e,n,o,r,s,a;s=this._nodes;for(n in s)if(i.call(s,n)){o=s[n],a=o._outEdges;for(r in a)i.call(a,r)&amp;&amp;(e=a[r],t(e))}},t}(),t.exports=e}).call(this)},function(t,e){(function(){var e,i,n,o;e=function(){function t(t){var e,i,n,o,r,s;for(null==t&amp;&amp;(t=[]),this._data=[void 0],n=0,r=t.length;r&gt;n;n++)i=t[n],null!=i&amp;&amp;this._data.push(i);if(this._data.length&gt;1)for(e=o=2,s=this._data.length;s&gt;=2?s&gt;o:o&gt;s;e=s&gt;=2?++o:--o)this._upHeap(e);this.size=this._data.length-1}return t.prototype.add=function(t){return null!=t?(this._data.push(t),this._upHeap(this._data.length-1),this.size++,t):void 0},t.prototype.removeMin=function(){var t;if(1!==this._data.length)return this.size--,2===this._data.length?this._data.pop():(t=this._data[1],this._data[1]=this._data.pop(),this._downHeap(),t)},t.prototype.peekMin=function(){return this._data[1]},t.prototype._upHeap=function(t){var e,i;for(e=this._data[t];this._data[t]&lt;this._data[n(t)]&amp;&amp;t&gt;1;)i=[this._data[n(t)],this._data[t]],this._data[t]=i[0],this._data[n(t)]=i[1],t=n(t)},t.prototype._downHeap=function(){var t,e,n;for(t=1;i(t&lt;this._data.length)&amp;&amp;(e=i(t),e&lt;this._data.length-1&amp;&amp;this._data[o(t)]&lt;this._data[e]&amp;&amp;(e=o(t)),this._data[e]&lt;this._data[t]);)n=[this._data[t],this._data[e]],this._data[e]=n[0],this._data[t]=n[1],t=e},t}(),n=function(t){return t&gt;&gt;1},i=function(t){return t&lt;&lt;1},o=function(t){return(t&lt;&lt;1)+1},t.exports=e}).call(this)},function(t,e){(function(){var e;e=function(){function t(t){var e,i,n;for(null==t&amp;&amp;(t=[]),this.head={prev:void 0,value:void 0,next:void 0},this.tail={prev:void 0,value:void 0,next:void 0},this.size=0,i=0,n=t.length;n&gt;i;i++)e=t[i],this.add(e)}return t.prototype.at=function(t){var e,i,n,o,r;if(-this.size&lt;=t&amp;&amp;t&lt;this.size){if(t=this._adjust(t),2*t&lt;this.size)for(e=this.head,i=n=1;t&gt;=n;i=n+=1)e=e.next;else for(e=this.tail,i=o=1,r=this.size-t-1;r&gt;=o;i=o+=1)e=e.prev;return e}},t.prototype.add=function(t,e){var i,n,o,r,s;return null==e&amp;&amp;(e=this.size),-this.size&lt;=e&amp;&amp;e&lt;=this.size?(n={value:t},e=this._adjust(e),0===this.size?this.head=n:0===e?(o=[n,this.head,n],this.head.prev=o[0],n.next=o[1],this.head=o[2]):(i=this.at(e-1),r=[i.next,n,n,i],n.next=r[0],null!=(s=i.next)?s.prev=r[1]:void 0,i.next=r[2],n.prev=r[3]),e===this.size&amp;&amp;(this.tail=n),this.size++,t):void 0},t.prototype.removeAt=function(t){var e,i,n;return null==t&amp;&amp;(t=this.size-1),-this.size&lt;=t&amp;&amp;t&lt;this.size&amp;&amp;0!==this.size?(t=this._adjust(t),1===this.size?(i=this.head.value,this.head.value=this.tail.value=void 0):0===t?(i=this.head.value,this.head=this.head.next,this.head.prev=void 0):(e=this.at(t),i=e.value,e.prev.next=e.next,null!=(n=e.next)&amp;&amp;(n.prev=e.prev),t===this.size-1&amp;&amp;(this.tail=e.prev)),this.size--,i):void 0},t.prototype.remove=function(t){var e;if(null!=t){for(e=this.head;e&amp;&amp;e.value!==t;)e=e.next;if(e)return 1===this.size?this.head.value=this.tail.value=void 0:e===this.head?(this.head=this.head.next,this.head.prev=void 0):e===this.tail?(this.tail=this.tail.prev,this.tail.next=void 0):(e.prev.next=e.next,e.next.prev=e.prev),this.size--,t}},t.prototype.indexOf=function(t,e){var i,n;if(null==e&amp;&amp;(e=0),null==this.head.value&amp;&amp;!this.head.next||e&gt;=this.size)return-1;for(e=Math.max(0,this._adjust(e)),i=this.at(e),n=e;i&amp;&amp;i.value!==t;)i=i.next,n++;return n===this.size?-1:n},t.prototype._adjust=function(t){return 0&gt;t?this.size+t:t},t}(),t.exports=e}).call(this)},function(t,e){(function(){var e,i,n,o,r={}.hasOwnProperty;i="_mapId_",e=function(){function t(e){var i,n;this._content={},this._itemId=0,this._id=t._newMapId(),this.size=0;for(i in e)r.call(e,i)&amp;&amp;(n=e[i],this.set(i,n))}return t._mapIdTracker=0,t._newMapId=function(){return this._mapIdTracker++},t.prototype.hash=function(t,e){var r,s;return null==e&amp;&amp;(e=!1),s=n(t),o(t)?(r=i+this._id,e&amp;&amp;!t[r]&amp;&amp;(t[r]=this._itemId++),r+"_"+t[r]):s+"_"+t},t.prototype.set=function(t,e){return this.has(t)||this.size++,this._content[this.hash(t,!0)]=[e,t],e},t.prototype.get=function(t){var e;return null!=(e=this._content[this.hash(t)])?e[0]:void 0},t.prototype.has=function(t){return this.hash(t)in this._content},t.prototype["delete"]=function(t){var e;return e=this.hash(t),e in this._content&amp;&amp;(delete this._content[e],o(t)&amp;&amp;delete t[i+this._id],this.size--,!0)},t.prototype.forEach=function(t){var e,i,n;n=this._content;for(e in n)r.call(n,e)&amp;&amp;(i=n[e],t(i[1],i[0]))},t}(),o=function(t){var e,i,o,r,s;for(e=["Boolean","Number","String","Undefined","Null","RegExp","Function"],o=n(t),r=0,s=e.length;s&gt;r;r++)if(i=e[r],o===i)return!1;return!0},n=function(t){return Object.prototype.toString.apply(t).match(/\[object (.+)\]/)[1]},t.exports=e}).call(this)},function(t,e){(function(){var e;e=function(){function t(t){null==t&amp;&amp;(t=[]),this._content=t,this._dequeueIndex=0,this.size=this._content.length}return t.prototype.enqueue=function(t){return this.size++,this._content.push(t),t},t.prototype.dequeue=function(){var t;if(0!==this.size)return this.size--,t=this._content[this._dequeueIndex],this._dequeueIndex++,2*this._dequeueIndex&gt;this._content.length&amp;&amp;(this._content=this._content.slice(this._dequeueIndex),this._dequeueIndex=0),t},t.prototype.peek=function(){return this._content[this._dequeueIndex]},t}(),t.exports=e}).call(this)},function(t,e){(function(){var e,i,n,o,r,s,a,l,u,p,h,c,d,g,f;i=0,n=1,o=2,a=3,r=1,e=2,s=function(){function t(t){var e,i,n;for(null==t&amp;&amp;(t=[]),this._root,this.size=0,i=0,n=t.length;n&gt;i;i++)e=t[i],null!=e&amp;&amp;this.add(e)}return t.prototype.add=function(t){var s,h,c,d;if(null!=t){if(this.size++,c={value:t,_color:r},this._root){if(h=l(this._root,function(e){return t===e.value?i:t&lt;e.value?e._left?n:(c._parent=e,e._left=c,a):e._right?o:(c._parent=e,e._right=c,a)}),null!=h)return}else this._root=c;for(s=c;;){if(s===this._root){s._color=e;break}if(s._parent._color===e)break;if((null!=(d=f(s))?d._color:void 0)!==r){!p(s)&amp;&amp;p(s._parent)?(this._rotateLeft(s._parent),s=s._left):p(s)&amp;&amp;!p(s._parent)&amp;&amp;(this._rotateRight(s._parent),s=s._right),s._parent._color=e,u(s)._color=r,p(s)?this._rotateRight(u(s)):this._rotateLeft(u(s));break}s._parent._color=e,f(s)._color=e,u(s)._color=r,s=u(s)}return t}},t.prototype.has=function(t){var e;return e=l(this._root,function(e){return t===e.value?i:t&lt;e.value?n:o}),!!e},t.prototype.peekMin=function(){var t;return null!=(t=d(this._root))?t.value:void 0},t.prototype.peekMax=function(){var t;return null!=(t=c(this._root))?t.value:void 0},t.prototype.remove=function(t){var e;return(e=l(this._root,function(e){return t===e.value?i:t&lt;e.value?n:o}))?(this._removeNode(this._root,e),this.size--,t):void 0},t.prototype.removeMin=function(){var t,e;return(t=d(this._root))?(e=t.value,this._removeNode(this._root,t),e):void 0},t.prototype.removeMax=function(){var t,e;return(t=c(this._root))?(e=t.value,this._removeNode(this._root,t),e):void 0},t.prototype._removeNode=function(t,i){var n,o,s,a,l,u,c,f,m,v;if(i._left&amp;&amp;i._right&amp;&amp;(o=d(i._right),i.value=o.value,i=o),o=i._left||i._right,o||(o={color:e,_right:void 0,_left:void 0,isLeaf:!0}),o._parent=i._parent,null!=(s=i._parent)&amp;&amp;(s[h(i)]=o),i._color===e)if(o._color===r)o._color=e,o._parent||(this._root=o);else for(;;){if(!o._parent){o.isLeaf?this._root=void 0:this._root=o;break}if(n=g(o),(null!=n?n._color:void 0)===r&amp;&amp;(o._parent._color=r,n._color=e,p(o)?this._rotateLeft(o._parent):this._rotateRight(o._parent)),n=g(o),o._parent._color!==e||n&amp;&amp;(n._color!==e||n._left&amp;&amp;n._left._color!==e||n._right&amp;&amp;n._right._color!==e)){if(!(o._parent._color!==r||n&amp;&amp;(n._color!==e||n._left&amp;&amp;(null!=(a=n._left)?a._color:void 0)!==e||n._right&amp;&amp;(null!=(l=n._right)?l._color:void 0)!==e))){null!=n&amp;&amp;(n._color=r),o._parent._color=e;break}if((null!=n?n._color:void 0)===e){!p(o)||n._right&amp;&amp;n._right._color!==e||(null!=(u=n._left)?u._color:void 0)!==r?p(o)||n._left&amp;&amp;n._left._color!==e||(null!=(f=n._right)?f._color:void 0)!==r||(n._color=r,null!=(m=n._right)&amp;&amp;(m._color=e),this._rotateLeft(n)):(n._color=r,null!=(c=n._left)&amp;&amp;(c._color=e),this._rotateRight(n));break}n=g(o),n._color=o._parent._color,p(o)?(n._right._color=e,this._rotateRight(o._parent)):(n._left._color=e,this._rotateLeft(o._parent))}else null!=n&amp;&amp;(n._color=r),o.isLeaf&amp;&amp;(o._parent[h(o)]=void 0),o=o._parent}return o.isLeaf&amp;&amp;null!=(v=o._parent)?v[h(o)]=void 0:void 0},t.prototype._rotateLeft=function(t){var e,i;return null!=(e=t._parent)&amp;&amp;(e[h(t)]=t._right),t._right._parent=t._parent,t._parent=t._right,t._right=t._right._left,t._parent._left=t,null!=(i=t._right)&amp;&amp;(i._parent=t),null==t._parent._parent?this._root=t._parent:void 0},t.prototype._rotateRight=function(t){var e,i;return null!=(e=t._parent)&amp;&amp;(e[h(t)]=t._left),t._left._parent=t._parent,t._parent=t._left,t._left=t._left._right,t._parent._right=t,null!=(i=t._left)&amp;&amp;(i._parent=t),null==t._parent._parent?this._root=t._parent:void 0},t}(),p=function(t){return t===t._parent._left},h=function(t){return p(t)?"_left":"_right"},l=function(t,e){var r,s,l;for(s=t,l=void 0;s;){if(r=e(s),r===i){l=s;break}if(r===n)s=s._left;else if(r===o)s=s._right;else if(r===a)break}return l},d=function(t){return l(t,function(t){return t._left?n:i})},c=function(t){return l(t,function(t){return t._right?o:i})},u=function(t){var e;return null!=(e=t._parent)?e._parent:void 0},f=function(t){return u(t)?p(t._parent)?u(t)._right:u(t)._left:void 0},g=function(t){return p(t)?t._parent._right:t._parent._left},t.exports=s}).call(this)},function(t,e,i){(function(){var e,n,o,r,s={}.hasOwnProperty;e=i(6),o="end",n=function(){function t(t){var e,i,n;for(null==t&amp;&amp;(t=[]),this._root={},this.size=0,i=0,n=t.length;n&gt;i;i++)e=t[i],this.add(e)}return t.prototype.add=function(t){var e,i,n,r;if(null!=t){for(this.size++,e=this._root,n=0,r=t.length;r&gt;n;n++)i=t[n],null==e[i]&amp;&amp;(e[i]={}),e=e[i];return e[o]=!0,t}},t.prototype.has=function(t){var e,i,n,r;if(null==t)return!1;for(e=this._root,n=0,r=t.length;r&gt;n;n++){if(i=t[n],null==e[i])return!1;e=e[i]}return!!e[o]},t.prototype.longestPrefixOf=function(t){var e,i,n,o,r;if(null==t)return"";for(e=this._root,n="",o=0,r=t.length;r&gt;o&amp;&amp;(i=t[o],null!=e[i]);o++)n+=i,e=e[i];return n},t.prototype.wordsWithPrefix=function(t){var i,n,r,a,l,u,p,h,c,d;if(null==t)return[];for(null!=t||(t=""),p=[],n=this._root,h=0,c=t.length;c&gt;h;h++)if(r=t[h],n=n[r],null==n)return[];for(l=new e,l.enqueue([n,""]);0!==l.size;){d=l.dequeue(),a=d[0],i=d[1],a[o]&amp;&amp;p.push(t+i);for(r in a)s.call(a,r)&amp;&amp;(u=a[r],l.enqueue([u,i+r]))}return p},t.prototype.remove=function(t){var e,i,n,s,a,l,u,p;if(null!=t){for(e=this._root,s=[],a=0,u=t.length;u&gt;a;a++){if(n=t[a],null==e[n])return;e=e[n],s.push([n,e])}if(e[o]){if(this.size--,delete e[o],r(e,1))return t;for(i=l=p=s.length-1;(1&gt;=p?1&gt;=l:l&gt;=1)&amp;&amp;!r(s[i][1],1);i=1&gt;=p?++l:--l)delete s[i-1][1][s[i][0]];return r(this._root[s[0][0]],1)||delete this._root[s[0][0]],t}}},t}(),r=function(t,e){var i,n;if(0===e)return!0;n=0;for(i in t)if(s.call(t,i)&amp;&amp;(n++,n&gt;=e))return!0;return!1},t.exports=n}).call(this)}]),e.module("uiGmapgoogle-maps.wrapped").service("uiGmapMarkerSpiderfier",["uiGmapGoogleMapApi",function(e){var i=this,n={}.hasOwnProperty,o=[].slice;return this.OverlappingMarkerSpiderfier=function(){function e(t,e){var o,r,s,a,l,u;this.map=t,null==e&amp;&amp;(e={});for(r in e)n.call(e,r)&amp;&amp;(u=e[r],this[r]=u);for(this.projHelper=new this.constructor.ProjHelper(this.map),this.initMarkerArrays(),this.listeners={},l=["click","zoom_changed","maptypeid_changed"],s=0,a=l.length;a&gt;s;s++)o=l[s],i.addListener(this.map,o,function(t){return function(){return t.unspiderfy()}}(this))}var i,r,s,a,l,u,p,h,c,d,g;for(h=e.prototype,c=[e,h],s=0,u=c.length;u&gt;s;s++)g=c[s],g.VERSION="0.3.3";return r=void 0,i=void 0,p=void 0,d=2*Math.PI,h.keepSpiderfied=!1,h.markersWontHide=!1,h.markersWontMove=!1,h.nearbyDistance=20,h.circleSpiralSwitchover=9,h.circleFootSeparation=23,h.circleStartAngle=d/12,h.spiralFootSeparation=26,h.spiralLengthStart=11,h.spiralLengthFactor=4,h.spiderfiedZIndex=1e3,h.usualLegZIndex=10,h.highlightedLegZIndex=20,h.event="click",h.minZoomLevel=!1,h.legWeight=1.5,h.legColors={usual:{},highlighted:{}},l=h.legColors.usual,a=h.legColors.highlighted,e.initializeGoogleMaps=function(t){return r=t.maps,i=r.event,p=r.MapTypeId,l[p.HYBRID]=l[p.SATELLITE]="#fff",a[p.HYBRID]=a[p.SATELLITE]="#f00",l[p.TERRAIN]=l[p.ROADMAP]="#444",a[p.TERRAIN]=a[p.ROADMAP]="#f00",this.ProjHelper=function(t){return this.setMap(t)},this.ProjHelper.prototype=new r.OverlayView,this.ProjHelper.prototype.draw=function(){}},h.initMarkerArrays=function(){return this.markers=[],this.markerListenerRefs=[]},h.addMarker=function(t){var e;return null!=t._oms?this:(t._oms=!0,e=[i.addListener(t,this.event,function(e){return function(i){return e.spiderListener(t,i)}}(this))],this.markersWontHide||e.push(i.addListener(t,"visible_changed",function(e){return function(){return e.markerChangeListener(t,!1)}}(this))),this.markersWontMove||e.push(i.addListener(t,"position_changed",function(e){return function(){return e.markerChangeListener(t,!0)}}(this))),this.markerListenerRefs.push(e),this.markers.push(t),this)},h.markerChangeListener=function(t,e){return null==t._omsData||!e&amp;&amp;t.getVisible()||null!=this.spiderfying||null!=this.unspiderfying?void 0:this.unspiderfy(e?t:null)},h.getMarkers=function(){return this.markers.slice(0)},h.removeMarker=function(t){var e,n,o,r,s;if(null!=t._omsData&amp;&amp;this.unspiderfy(),e=this.arrIndexOf(this.markers,t),0&gt;e)return this;for(s=this.markerListenerRefs.splice(e,1)[0],n=0,o=s.length;o&gt;n;n++)r=s[n],i.removeListener(r);return delete t._oms,this.markers.splice(e,1),this},h.clearMarkers=function(){var t,e,n,o,r,s,a,l,u;for(this.unspiderfy(),u=this.markers,t=e=0,n=u.length;n&gt;e;t=++e){for(a=u[t],s=this.markerListenerRefs[t],l=0,o=s.length;o&gt;l;l++)r=s[l],i.removeListener(r);delete a._oms}return this.initMarkerArrays(),this},h.addListener=function(t,e){var i;return(null!=(i=this.listeners)[t]?i[t]:i[t]=[]).push(e),this},h.removeListener=function(t,e){var i;return i=this.arrIndexOf(this.listeners[t],e),0&gt;i||this.listeners[t].splice(i,1),this},h.clearListeners=function(t){return this.listeners[t]=[],this},h.trigger=function(){var t,e,i,n,r,s,a,l;for(e=arguments[0],t=2&lt;=arguments.length?o.call(arguments,1):[],a=null!=(s=this.listeners[e])?s:[],l=[],n=0,r=a.length;r&gt;n;n++)i=a[n],l.push(i.apply(null,t));return l},h.generatePtsCircle=function(t,e){var i,n,o,s,a,l,u,p;for(o=this.circleFootSeparation*(2+t),l=o/d,n=d/t,p=[],s=a=0,u=t;u&gt;=0?u&gt;a:a&gt;u;s=u&gt;=0?++a:--a)i=this.circleStartAngle+s*n,p.push(new r.Point(e.x+l*Math.cos(i),e.y+l*Math.sin(i)));return p},h.generatePtsSpiral=function(t,e){var i,n,o,s,a,l,u;for(s=this.spiralLengthStart,i=0,u=[],n=o=0,l=t;l&gt;=0?l&gt;o:o&gt;l;n=l&gt;=0?++o:--o)i+=this.spiralFootSeparation/s+5e-4*n,a=new r.Point(e.x+s*Math.cos(i),e.y+s*Math.sin(i)),s+=d*this.spiralLengthFactor/i,u.push(a);return u},h.spiderListener=function(e,i){var n,o,r,s,a,l,u,p,c,d,g,f,m;if(p=null!=e._omsData,p&amp;&amp;this.keepSpiderfied||("mouseover"===this.event?(n=this,o=function(){return n.unspiderfy()},t.clearTimeout(h.timeout),h.timeout=setTimeout(o,3e3)):this.unspiderfy()),p||this.map.getStreetView().getVisible()||"GoogleEarthAPI"===this.map.getMapTypeId())return this.trigger("click",e,i);for(d=[],g=[],c=this.nearbyDistance,f=c*c,u=this.llToPt(e.position),m=this.markers,r=0,s=m.length;s&gt;r;r++)a=m[r],null!=a.map&amp;&amp;a.getVisible()&amp;&amp;(l=this.llToPt(a.position),this.ptDistanceSq(l,u)&lt;f?d.push({marker:a,markerPt:l}):g.push(a));return 1===d.length?this.trigger("click",e,i):this.spiderfy(d,g)},h.markersNearMarker=function(t,e){var i,n,o,r,s,a,l,u,p,h,c;if(null==e&amp;&amp;(e=!1),null==this.projHelper.getProjection())throw"Must wait for 'idle' event on map before calling markersNearMarker";for(l=this.nearbyDistance,u=l*l,s=this.llToPt(t.position),a=[],p=this.markers,i=0,n=p.length;n&gt;i&amp;&amp;(o=p[i],!(o!==t&amp;&amp;null!=o.map&amp;&amp;o.getVisible()&amp;&amp;(r=this.llToPt(null!=(h=null!=(c=o._omsData)?c.usualPosition:void 0)?h:o.position),this.ptDistanceSq(r,s)&lt;u&amp;&amp;(a.push(o),e))));i++);return a},h.markersNearAnyOtherMarker=function(){var t,e,i,n,o,r,s,a,l,u,p,h,c,d,g,f,m,v,y,_,b;if(null==this.projHelper.getProjection())throw"Must wait for 'idle' event on map before calling markersNearAnyOtherMarker";for(g=this.nearbyDistance,f=g*g,c=function(){var t,e,i,n,o,r;for(i=this.markers,r=[],t=0,e=i.length;e&gt;t;t++)a=i[t],r.push({pt:this.llToPt(null!=(n=null!=(o=a._omsData)?o.usualPosition:void 0)?n:a.position),willSpiderfy:!1});return r}.call(this),v=this.markers,e=n=0,o=v.length;o&gt;n;e=++n)if(l=v[e],null!=l.map&amp;&amp;l.getVisible()&amp;&amp;(u=c[e],!u.willSpiderfy))for(y=this.markers,i=d=0,r=y.length;r&gt;d;i=++d)if(p=y[i],i!==e&amp;&amp;null!=p.map&amp;&amp;p.getVisible()&amp;&amp;(h=c[i],(!(e&gt;i)||h.willSpiderfy)&amp;&amp;this.ptDistanceSq(u.pt,h.pt)&lt;f)){u.willSpiderfy=h.willSpiderfy=!0;break}for(_=this.markers,b=[],t=m=0,s=_.length;s&gt;m;t=++m)a=_[t],c[t].willSpiderfy&amp;&amp;b.push(a);return b},h.makeHighlightListenerFuncs=function(t){return{highlight:function(e){return function(){return t._omsData.leg.setOptions({strokeColor:e.legColors.highlighted[e.map.mapTypeId],zIndex:e.highlightedLegZIndex})}}(this),unhighlight:function(e){return function(){return t._omsData.leg.setOptions({strokeColor:e.legColors.usual[e.map.mapTypeId],zIndex:e.usualLegZIndex})}}(this)}},h.spiderfy=function(t,e){var n,o,s,a,l,u,p,h,c,d,g;return!(this.minZoomLevel&amp;&amp;this.map.getZoom()&lt;this.minZoomLevel)&amp;&amp;(this.spiderfying=!0,d=t.length,n=this.ptAverage(function(){var e,i,n;for(n=[],e=0,i=t.length;i&gt;e;e++)h=t[e],n.push(h.markerPt);return n}()),a=d&gt;=this.circleSpiralSwitchover?this.generatePtsSpiral(d,n).reverse():this.generatePtsCircle(d,n),g=function(){var e,n,h;for(h=[],e=0,n=a.length;n&gt;e;e++)s=a[e],o=this.ptToLl(s),c=this.minExtract(t,function(t){return function(e){return t.ptDistanceSq(e.markerPt,s)}}(this)),p=c.marker,u=new r.Polyline({map:this.map,path:[p.position,o],strokeColor:this.legColors.usual[this.map.mapTypeId],strokeWeight:this.legWeight,zIndex:this.usualLegZIndex}),p._omsData={usualPosition:p.position,leg:u},this.legColors.highlighted[this.map.mapTypeId]!==this.legColors.usual[this.map.mapTypeId]&amp;&amp;(l=this.makeHighlightListenerFuncs(p),p._omsData.hightlightListeners={highlight:i.addListener(p,"mouseover",l.highlight),unhighlight:i.addListener(p,"mouseout",l.unhighlight)}),p.setPosition(o),p.setZIndex(Math.round(this.spiderfiedZIndex+s.y)),h.push(p);return h}.call(this),delete this.spiderfying,this.spiderfied=!0,this.trigger("spiderfy",g,e))},h.unspiderfy=function(t){var e,n,o,r,s,a,l;if(null==t&amp;&amp;(t=null),null==this.spiderfied)return this;for(this.unspiderfying=!0,l=[],s=[],a=this.markers,e=0,n=a.length;n&gt;e;e++)r=a[e],null!=r._omsData?(r._omsData.leg.setMap(null),r!==t&amp;&amp;r.setPosition(r._omsData.usualPosition),r.setZIndex(null),o=r._omsData.hightlightListeners,null!=o&amp;&amp;(i.removeListener(o.highlight),i.removeListener(o.unhighlight)),delete r._omsData,l.push(r)):s.push(r);return delete this.unspiderfying,delete this.spiderfied,this.trigger("unspiderfy",l,s),this},h.ptDistanceSq=function(t,e){var i,n;return i=t.x-e.x,n=t.y-e.y,i*i+n*n},h.ptAverage=function(t){var e,i,n,o,s,a;for(s=a=0,e=0,i=t.length;i&gt;e;e++)o=t[e],s+=o.x,a+=o.y;return n=t.length,new r.Point(s/n,a/n)},h.llToPt=function(t){return this.projHelper.getProjection().fromLatLngToDivPixel(t)},h.ptToLl=function(t){return this.projHelper.getProjection().fromDivPixelToLatLng(t)},h.minExtract=function(t,e){var i,n,o,r,s,a,l;for(o=s=0,a=t.length;a&gt;s;o=++s)r=t[o],l=e(r),("undefined"==typeof i||null===i||n&gt;l)&amp;&amp;(n=l,i=o);return t.splice(i,1)[0]},h.arrIndexOf=function(t,e){var i,n,o,r;if(null!=t.indexOf)return t.indexOf(e);for(i=n=0,o=t.length;o&gt;n;i=++n)if(r=t[i],r===e)return i;return-1},e}(),e.then(function(){i.OverlappingMarkerSpiderfier.initializeGoogleMaps(t.google)}),this.OverlappingMarkerSpiderfier}]),e.module("uiGmapgoogle-maps.extensions").service("uiGmapExtendMarkerClusterer",["uiGmapLodash","uiGmapPropMap",function(e,i){return{init:_.once(function(){(function(){var n={}.hasOwnProperty,o=function(t,e){function i(){this.constructor=t}for(var o in e)n.call(e,o)&amp;&amp;(t[o]=e[o]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t};t.NgMapCluster=function(t){function n(t){n.__super__.constructor.call(this,t),this.markers_=new i}return o(n,t),n.prototype.addMarker=function(t){var e,i;if(this.isMarkerAlreadyAdded_(t)){var n=this.markers_.get(t.key);if(n.getPosition().lat()==t.getPosition().lat()&amp;&amp;n.getPosition().lon()==t.getPosition().lon())return!1}if(this.center_){if(this.averageCenter_){var o=this.markers_.length+1,r=(this.center_.lat()*(o-1)+t.getPosition().lat())/o,s=(this.center_.lng()*(o-1)+t.getPosition().lng())/o;this.center_=new google.maps.LatLng(r,s),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();return t.isAdded=!0,this.markers_.push(t),e=this.markers_.length,i=this.markerClusterer_.getMaxZoom(),null!==i&amp;&amp;this.map_.getZoom()&gt;i?t.getMap()!==this.map_&amp;&amp;t.setMap(this.map_):e&lt;this.minClusterSize_?t.getMap()!==this.map_&amp;&amp;t.setMap(this.map_):e===this.minClusterSize_?this.markers_.each(function(t){t.setMap(null)}):t.setMap(null),!0},n.prototype.isMarkerAlreadyAdded_=function(t){return e.isNullOrUndefined(this.markers_.get(t.key))},n.prototype.getBounds=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);return this.getMarkers().each(function(e){t.extend(e.getPosition())}),t},n.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=new i,delete this.markers_},n}(Cluster),t.NgMapMarkerClusterer=function(t){function e(t,n,o){e.__super__.constructor.call(this,t,n,o),this.markers_=new i}return o(e,t),e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=new i},e.prototype.removeMarker_=function(t){return!!this.markers_.get(t.key)&amp;&amp;(t.setMap(null),this.markers_.remove(t.key),!0)},e.prototype.createClusters_=function(t){var e,i,n,o=this;if(this.ready_){0===t&amp;&amp;(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&amp;&amp;(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),n=this.getMap().getZoom()&gt;3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,(-178.48388434375)),new google.maps.LatLng((-85.08136444384544),178.00048865625));var r=this.getExtendedBounds(n),s=Math.min(t+this.batchSize_,this.markers_.length),a=this.markers_.values();for(e=t;s&gt;e;e++)i=a[e],!i.isAdded&amp;&amp;this.isMarkerInBounds_(i,r)&amp;&amp;(!this.ignoreHidden_||this.ignoreHidden_&amp;&amp;i.getVisible())&amp;&amp;this.addToClosestCluster_(i);if(s&lt;this.markers_.length)this.timerRefStatic=setTimeout(function(){o.createClusters_(s)},0);else{for(e=0;e&lt;this.clusters_.length;e++)this.clusters_[e].updateIcon_();delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this)}}},e.prototype.addToClosestCluster_=function(t){var e,i,n,o,r=4e4,s=null;for(e=0;e&lt;this.clusters_.length;e++)n=this.clusters_[e],o=n.getCenter(),o&amp;&amp;(i=this.distanceBetweenPoints_(o,t.getPosition()),r&gt;i&amp;&amp;(r=i,s=n));s&amp;&amp;s.isMarkerInClusterBounds(t)?s.addMarker(t):(n=new NgMapCluster(this),n.addMarker(t),this.clusters_.push(n))},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){var e;for(e=0;e&lt;this.clusters_.length;e++)this.clusters_[e].remove();this.clusters_=[],this.markers_.each(function(e){e.isAdded=!1,t&amp;&amp;e.setMap(null)})},e.prototype.extend=function(t,e){return function(t){var e;for(e in t.prototype)"constructor"!==e&amp;&amp;(this.prototype[e]=t.prototype[e]);return this}.apply(t,[e])},ClusterIcon.prototype.show=function(){if(this.div_){var t="",e=this.backgroundPosition_.split(" "),i=parseInt(e[0].trim(),10),n=parseInt(e[1].trim(),10),o=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(o),t="&lt;img src='"+this.url_+"' style='position: absolute; top: "+n+"px; left: "+i+"px; ",t+=this.cluster_.getMarkerClusterer().enableRetinaIcons_?"width: "+this.width_+"px;height: "+this.height_+"px;":"clip: rect("+-1*n+"px, "+(-1*i+this.width_)+"px, "+(-1*n+this.height_)+"px, "+-1*i+"px);",t+="'&gt;",this.div_.innerHTML=t+"&lt;div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'&gt;"+this.sums_.text+"&lt;/div&gt;","undefined"==typeof this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""}this.visible_=!0},e}(MarkerClusterer)}).call(this)})}}])}(window,angular);;var Constantes=function(){};function MapsApiLoaded(){Constantes.maps_api_loaded=!0}Constantes.inicializar=function(){var t,e;e=document.location.protocol+"//"+document.location.host+"/",2&lt;(t=document.location.pathname.split("/")).length&amp;&amp;("hoteles"==t[1]||"hotelesgit"==t[1])&amp;&amp;(e+=t[1]+"/"),Constantes.url=e,Constantes.url_images=e+"css/images/",e=e.split("//"),Constantes.url_s="https://"+e[1],Constantes.url_ns="http://"+e[1]},Constantes.Aacute=String.fromCharCode(193),Constantes.Eacute=String.fromCharCode(201),Constantes.Iacute=String.fromCharCode(205),Constantes.Oacute=String.fromCharCode(211),Constantes.Uacute=String.fromCharCode(218),Constantes.aacute=String.fromCharCode(225),Constantes.eacute=String.fromCharCode(233),Constantes.iacute=String.fromCharCode(237),Constantes.oacute=String.fromCharCode(243),Constantes.uacute=String.fromCharCode(250),Constantes.ntilde=String.fromCharCode(241),Constantes.iquest=String.fromCharCode(191),Constantes.euro=String.fromCharCode(8364),Constantes.url="",Constantes.url_s="",Constantes.url_ns="",Constantes.inicializar(),Constantes.maps_api_loaded=!1;var Destino=function(t){"use strict";for(this.id=t.id,this.seccion=t.seccion,this.nombre=t.nombre,this.latitud=t.latitud,this.longitud=t.longitud,this.zoom=t.zoom,this.url=t.url,this.hoteles=[];0&lt;t.hoteles.length;)this.hoteles.push(new Hotel(t.hoteles.shift()));this.cantidadHoteles=function(){return this.hoteles.length}};function DestinoImagen(t){var e=t.srcElement.previousElementSibling.firstElementChild.firstElementChild.getAttribute("href");window.location.href=e}var Hotel=function(t){"use strict";var e,r=this;for(this.id=t.id,this.nombre=t.nombre,this.foto=t.foto,this.categoria=t.cat,this.tipo=t.tipo,this.genero=t.genero,this.direccion=t.direccion,this.cp=t.cp,this.latitude=t.latitud,this.longitude=t.longitud,this.url=t.url,this.fotos=[],e=0;e&lt;t.fotos.length;e++)this.fotos.push(new Foto(t.fotos[e]));for(0!==this.fotos.length&amp;&amp;1===t.fotos[0].booking&amp;&amp;(this.fotos=function(t,e){var r=[],i={};for(var s in t)t.hasOwnProperty(s)&amp;&amp;(i[t[s][e]]=t[s]);for(s in i)i.hasOwnProperty(s)&amp;&amp;r.push(new Foto(i[s]));return r}(t.fotos,"url")),this.comentarios=[],e=0;e&lt;t.comentarios;e++)this.comentarios.push(new Comentario);this.destino=t.destino,this.provincia=t.provincia,this.icon=Config.base+"/images/marcador.png",this.getMarker=function(t){return r}};function MarkerClusterer(t,e,r){this.extend(MarkerClusterer,google.maps.OverlayView),this.map_=t,this.markers_=[],this.clusters_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1;var i=r||{};this.gridSize_=i.gridSize||60,this.minClusterSize_=i.minimumClusterSize||2,this.maxZoom_=i.maxZoom||null,this.styles_=i.styles||[],this.imagePath_=i.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=i.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,null!=i.zoomOnClick&amp;&amp;(this.zoomOnClick_=i.zoomOnClick),this.averageCenter_=!1,null!=i.averageCenter&amp;&amp;(this.averageCenter_=i.averageCenter),this.setupStyles_(),this.setMap(t),this.prevZoom_=this.map_.getZoom();var s=this;google.maps.event.addListener(this.map_,"zoom_changed",function(){var t=s.map_.getZoom();s.prevZoom_!=t&amp;&amp;(s.prevZoom_=t,s.resetViewport())}),google.maps.event.addListener(this.map_,"idle",function(){s.redraw()}),e&amp;&amp;e.length&amp;&amp;this.addMarkers(e,!1)}function Cluster(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinClusterSize(),this.averageCenter_=t.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,t.getStyles(),t.getGridSize())}function ClusterIcon(t,e,r){t.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.styles_=e,this.padding_=r||0,this.cluster_=t,this.center_=null,this.map_=t.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}!function(){"use strict";var t=angular.module("hotelesPage");t.config(["uiGmapGoogleMapApiProvider",function(t){t.configure({v:"3.exp",libraries:"weather,geometry,visualization",language:"es"})}]),t.controller("MapaHoteles",["$http","uiGmapGoogleMapApi","$scope",function(t,r,e){this.destino=void 0!==window.destino?window.destino:null,this.hoteles=[],this.disponible=!1,this.map={},this.markers=[],this.seleccionado="",this.fit="",this.titulo="";var i=this;null!==this.destino&amp;&amp;t.get(Config.peticiones+"/destino.php",{params:{destino:this.destino.id,seccion:this.destino.seccion}}).success(function(t){if(0===t.status){if(i.destino=new Destino(t),i.disponible=0&lt;i.destino.cantidadHoteles(),!i.disponible)return;i.map={center:{latitude:i.destino.latitud,longitude:i.destino.longitud},zoom:i.destino.zoom},i.markers=[],i.seleccionado=null,i.fit=!0,i.titulo="de los "+(1===i.destino.seccion?"hoteles":"apartamentos")+" en "+i.destino.nombre;for(var e=0;e&lt;i.destino.hoteles.length;e++)i.markers.push(i.destino.hoteles[e].getMarker(!1));i.mostrarHotel=function(t,e,r){i.seleccionado=r},i.ocultarHotel=function(){i.seleccionado=null},r.then(function(t){})}}).error(function(){})}])}(),function(){"use strict";angular.module("hotelesPage").directive("hotelesMapaAlerta",function(){return{restrict:"A",controller:["$http","$scope","$window",function(t,e,r){e.contenedor=!1,this.abrir=function(t){e.contenedor=!0,e.prueba={width:"100%",height:"92%"},e.cargando={position:"absolute",top:"45%",left:"45%",zIndex:"1"}},this.cerrar=function(t){e.contenedor=!1}}],controllerAs:"mapmov"}})}(),MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_="../images/m",MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",MarkerClusterer.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},MarkerClusterer.prototype.onAdd=function(){this.setReady_(!0)},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){if(!this.styles_.length)for(var t,e=0;t=this.sizes[e];e++)this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},MarkerClusterer.prototype.fitMapToMarkers=function(){for(var t,e=this.getMarkers(),r=new google.maps.LatLngBounds,i=0;t=e[i];i++)r.extend(t.getPosition());this.map_.fitBounds(r)},MarkerClusterer.prototype.setStyles=function(t){this.styles_=t},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.isZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.isAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.getMarkers=function(){return this.markers_},MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length},MarkerClusterer.prototype.setMaxZoom=function(t){this.maxZoom_=t},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.calculator_=function(t,e){for(var r=0,i=t.length,s=i;0!==s;)s=parseInt(s/10,10),r++;return{text:i,index:r=Math.min(r,e)}},MarkerClusterer.prototype.setCalculator=function(t){this.calculator_=t},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.addMarkers=function(t,e){for(var r,i=0;r=t[i];i++)this.pushMarkerTo_(r);e||this.redraw()},MarkerClusterer.prototype.pushMarkerTo_=function(t){if(t.isAdded=!1,t.draggable){var e=this;google.maps.event.addListener(t,"dragend",function(){t.isAdded=!1,e.repaint()})}this.markers_.push(t)},MarkerClusterer.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw()},MarkerClusterer.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var r,i=0;r=this.markers_[i];i++)if(r==t){e=i;break}return-1!=e&amp;&amp;(t.setMap(null),this.markers_.splice(e,1),!0)},MarkerClusterer.prototype.removeMarker=function(t,e){var r=this.removeMarker_(t);return!(e||!r)&amp;&amp;(this.resetViewport(),this.redraw(),!0)},MarkerClusterer.prototype.removeMarkers=function(t,e){for(var r,i=!1,s=0;r=t[s];s++){var o=this.removeMarker_(r);i=i||o}if(!e&amp;&amp;i)return this.resetViewport(),this.redraw(),!0},MarkerClusterer.prototype.setReady_=function(t){this.ready_||(this.ready_=t,this.createClusters_())},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.getMap=function(){return this.map_},MarkerClusterer.prototype.setMap=function(t){this.map_=t},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(t){this.gridSize_=t},MarkerClusterer.prototype.getMinClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinClusterSize=function(t){this.minClusterSize_=t},MarkerClusterer.prototype.getExtendedBounds=function(t){var e=this.getProjection(),r=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),i=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),s=e.fromLatLngToDivPixel(r);s.x+=this.gridSize_,s.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(i);o.x-=this.gridSize_,o.y+=this.gridSize_;var n=e.fromDivPixelToLatLng(s),a=e.fromDivPixelToLatLng(o);return t.extend(n),t.extend(a),t},MarkerClusterer.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[]},MarkerClusterer.prototype.resetViewport=function(t){for(var e,r=0;e=this.clusters_[r];r++)e.remove();var i;for(r=0;i=this.markers_[r];r++)i.isAdded=!1,t&amp;&amp;i.setMap(null);this.clusters_=[]},MarkerClusterer.prototype.repaint=function(){var r=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout(function(){for(var t,e=0;t=r[e];e++)t.remove()},0)},MarkerClusterer.prototype.redraw=function(){this.createClusters_()},MarkerClusterer.prototype.distanceBetweenPoints_=function(t,e){if(!t||!e)return 0;var r=(e.lat()-t.lat())*Math.PI/180,i=(e.lng()-t.lng())*Math.PI/180,s=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)))},MarkerClusterer.prototype.addToClosestCluster_=function(t){for(var e,r=4e4,i=null,s=(t.getPosition(),0);e=this.clusters_[s];s++){var o=e.getCenter();if(o){var n=this.distanceBetweenPoints_(o,t.getPosition());n&lt;r&amp;&amp;(r=n,i=e)}}i&amp;&amp;i.isMarkerInClusterBounds(t)?i.addMarker(t):((e=new Cluster(this)).addMarker(t),this.clusters_.push(e))},MarkerClusterer.prototype.createClusters_=function(){if(this.ready_)for(var t,e=new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),this.map_.getBounds().getNorthEast()),r=this.getExtendedBounds(e),i=0;t=this.markers_[i];i++)!t.isAdded&amp;&amp;this.isMarkerInBounds_(t,r)&amp;&amp;this.addToClosestCluster_(t)},Cluster.prototype.isMarkerAlreadyAdded=function(t){if(this.markers_.indexOf)return-1!=this.markers_.indexOf(t);for(var e,r=0;e=this.markers_[r];r++)if(e==t)return!0;return!1},Cluster.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,r=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,i=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(r,i),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var s=this.markers_.length;if(s&lt;this.minClusterSize_&amp;&amp;t.getMap()!=this.map_&amp;&amp;t.setMap(this.map_),s==this.minClusterSize_)for(var o=0;o&lt;s;o++)this.markers_[o].setMap(null);return s&gt;=this.minClusterSize_&amp;&amp;t.setMap(null),this.updateIcon(),!0},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){for(var t,e=new google.maps.LatLngBounds(this.center_,this.center_),r=this.getMarkers(),i=0;t=r[i];i++)e.extend(t.getPosition());return e},Cluster.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},Cluster.prototype.getSize=function(){return this.markers_.length},Cluster.prototype.getMarkers=function(){return this.markers_},Cluster.prototype.getCenter=function(){return this.center_},Cluster.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},Cluster.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.updateIcon=function(){var t=this.map_.getZoom(),e=this.markerClusterer_.getMaxZoom();if(e&amp;&amp;e&lt;t)for(var r,i=0;r=this.markers_[i];i++)r.setMap(this.map_);else if(this.markers_.length&lt;this.minClusterSize_)this.clusterIcon_.hide();else{var s=this.markerClusterer_.getStyles().length,o=this.markerClusterer_.getCalculator()(this.markers_,s);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.setSums(o),this.clusterIcon_.show()}},ClusterIcon.prototype.triggerClusterClick=function(t){var e=this.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"clusterclick",this.cluster_,t),e.isZoomOnClick()&amp;&amp;this.map_.fitBounds(this.cluster_.getBounds())},ClusterIcon.prototype.onAdd=function(){if(this.div_=document.createElement("DIV"),this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(t),this.div_.innerHTML=this.sums_.text}this.getPanes().overlayMouseTarget.appendChild(this.div_);var e=this,r=!1;google.maps.event.addDomListener(this.div_,"click",function(t){r||e.triggerClusterClick(t)}),google.maps.event.addDomListener(this.div_,"mousedown",function(){r=!1}),google.maps.event.addDomListener(this.div_,"mousemove",function(){r=!0})},ClusterIcon.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return"object"==typeof this.iconAnchor_&amp;&amp;2===this.iconAnchor_.length?(e.x-=this.iconAnchor_[0],e.y-=this.iconAnchor_[1]):(e.x-=parseInt(this.width_/2,10),e.y-=parseInt(this.height_/2,10)),e},ClusterIcon.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},ClusterIcon.prototype.hide=function(){this.div_&amp;&amp;(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){if(this.div_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(t),this.div_.style.display=""}this.visible_=!0},ClusterIcon.prototype.remove=function(){this.setMap(null)},ClusterIcon.prototype.onRemove=function(){this.div_&amp;&amp;this.div_.parentNode&amp;&amp;(this.hide(),this.div_.parentNode.removeChild(this.div_),this.div_=null)},ClusterIcon.prototype.setSums=function(t){this.sums_=t,this.text_=t.text,this.index_=t.index,this.div_&amp;&amp;(this.div_.innerHTML=t.text),this.useStyle()},ClusterIcon.prototype.useStyle=function(){var t=Math.max(0,this.sums_.index-1);t=Math.min(this.styles_.length-1,t);var e=this.styles_[t];this.url_=e.url,this.height_=e.height,this.width_=e.width,this.textColor_=e.textColor,this.anchor_=e.anchor,this.textSize_=e.textSize,this.backgroundPosition_=e.backgroundPosition,this.iconAnchor_=e.iconAnchor},ClusterIcon.prototype.setCenter=function(t){this.center_=t},ClusterIcon.prototype.createCss=function(t){var e=[];e.push("background-image:url("+this.url_+");");var r=this.backgroundPosition_?this.backgroundPosition_:"0 0";e.push("background-position:"+r+";"),"object"==typeof this.anchor_?("number"==typeof this.anchor_[0]&amp;&amp;0&lt;this.anchor_[0]&amp;&amp;this.anchor_[0]&lt;this.height_?e.push("height:"+(this.height_-this.anchor_[0])+"px; padding-top:"+this.anchor_[0]+"px;"):"number"==typeof this.anchor_[0]&amp;&amp;this.anchor_[0]&lt;0&amp;&amp;-this.anchor_[0]&lt;this.height_?e.push("height:"+this.height_+"px; line-height:"+(this.height_+this.anchor_[0])+"px;"):e.push("height:"+this.height_+"px; line-height:"+this.height_+"px;"),"number"==typeof this.anchor_[1]&amp;&amp;0&lt;this.anchor_[1]&amp;&amp;this.anchor_[1]&lt;this.width_?e.push("width:"+(this.width_-this.anchor_[1])+"px; padding-left:"+this.anchor_[1]+"px;"):e.push("width:"+this.width_+"px; text-align:center;")):e.push("height:"+this.height_+"px; line-height:"+this.height_+"px; width:"+this.width_+"px; text-align:center;");var i=this.textColor_?this.textColor_:"black",s=this.textSize_?this.textSize_:11;return e.push("cursor:pointer; top:"+t.y+"px; left:"+t.x+"px; color:"+i+"; position:absolute; font-size:"+s+"px; font-family:Arial,sans-serif; font-weight:bold"),e.join("")};var infoWindow=null,Mapa=function(){},map=null,url="",locations=[],latitud=null,longitud=null,zoom_destino=null,hoteles_mapa=[],seccion="";function initMap(){var t=window.ajax_default.destino;if(latitud=window.ajax_default.latitud,longitud=window.ajax_default.longitud,""!==latitud&amp;&amp;"NULL"!==latitud||""!==latitud&amp;&amp;"NULL"!==latitud){zoom_destino=parseInt(window.ajax_default.zoom),map=new google.maps.Map(document.getElementById("map"),{zoom:zoom_destino,center:new google.maps.LatLng(latitud,longitud),mapTypeId:google.maps.MapTypeId.ROADMAP,gestureHandling:"greedy",scrollwheel:!1});var e=new XMLHttpRequest;url=Constantes.url+"peticiones/destino-mapa.php?destino="+t,e.open("GET",url,!0),e.onreadystatechange=function(){if(4===e.readyState&amp;&amp;200===e.status){var t=JSON.parse(e.responseText);latitud=parseFloat(t.latitud_destino),longitud=parseFloat(t.longitud_destino),hoteles_mapa=t.hoteles,null!==(zoom_destino=parseInt(t.zoom))&amp;&amp;inicializardatos(latitud,longitud,hoteles_mapa,zoom_destino)}},e.send()}}var inicializardatos=function(t,e,r,i){var s=[];infoWindow=new google.maps.InfoWindow;for(var o=0;o&lt;r.length;o++){var n=r[o];(null!==parseFloat(n.longitud)&amp;&amp;null!==parseFloat(n.latitud)||""!==parseFloat(n.longitud)&amp;&amp;""!==parseFloat(n.latitud))&amp;&amp;s.push({lat:parseFloat(n.latitud),lng:parseFloat(n.longitud),id:parseInt(n.id)})}var a=s.map(function(t,e){var r=new google.maps.Marker({position:t,id:t.id,lat:t.lat,lng:t.lng,icon:Constantes.url_images+"marcado1.png"});return r.addListener("click",function(){muestraventana(r,e)}),google.maps.event.addListener(map,"click",function(){infoWindow.close()}),r}),l=[{url:Constantes.url_images+"icono_cluster/m1.png",height:38,width:38,textColor:"#ffffff",textSize:14},{url:Constantes.url_images+"icono_cluster/m2.png",height:55,width:56,textColor:"#ffffff",textSize:16},{url:Constantes.url_images+"icono_cluster/m3.png",height:65,width:66,textColor:"#ffffff",textSize:18}];new MarkerClusterer(map,a,{styles:l,imagePath:Constantes.url_images+"icono_cluster/m",minimumClusterSize:20});window.setTimeout(function(){google.maps.event.trigger(map,"resize"),map.setCenter(new google.maps.LatLng(t,e))},100)},muestraventana=function(r){var i,t,s,e,o="",n="",a="",l="";t=r.id,s=r.lat,lng=r.lng,i=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),e=Constantes.url+"peticiones/mapa.php?id="+t,i.open("GET",e,!0),i.onreadystatechange=function(){if(4===i.readyState&amp;&amp;200===i.status){var t=JSON.parse(i.responseText);o=t.nombre,foto_url=t.foto,foto=-1&lt;foto_url.indexOf("q-xx.bstatic")?foto_url:"https://fotos.hoteles.net/"+foto_url,n=t.direccion,a=t.puntuacion,l=t.cantidad;var e="";e+='&lt;div&gt;&lt;div&gt;&lt;div jstcache="0"&gt; &lt;a class="imagen" itemprop="image" href="'+t.url+'"&gt;&lt;img class="imageninfo" src="'+foto+'"&gt;&lt;/a&gt;&lt;div jstcache="38" class="navigate"&gt; &lt;div jsaction="placeCard.directions" class="navigate"&gt;&lt;a target="_blank" jstcache="53" href="https://maps.google.com/maps?ll='+s+","+lng+"&amp;amp;z=14&amp;amp;t=m&amp;amp;hl=es-ES&amp;amp;gl=ES&amp;amp;mapclient=embed&amp;amp;daddr=Urban%20Hotel%205*%20GL%20Carrera%20de%20S.%20Jer%C3%B3nimo%2C%2034%2028014%20Madrid@"+s+","+lng+'" class="navigate-link"&gt; &lt;div class="icon navigate-icon"&gt;&lt;/div&gt; &lt;div class="navigate-text"&gt;CÃ³mo llegar&lt;/div&gt; &lt;/a&gt; &lt;/div&gt;&lt;/div&gt;&lt;div jstcache="121" class="place-card place-card-large"&gt;&lt;div class="place-desc-large"&gt; &lt;div jstcache="36" class="place-name" jsan="7.place-name"&gt;'+o+'&lt;/div&gt; &lt;div jstcache="37" class="address" jsan="7.address"&gt;'+n+"&lt;/div&gt; &lt;/div&gt;  &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;",0&lt;l&amp;&amp;(e+='&lt;div jstcache="41" class="review-box"&gt; &lt;div jstcache="42" class="review-number" jsan="7.review-number"&gt;'+a+"&lt;/div&gt;",e+=" | "),0&lt;l&amp;&amp;(e+='&lt;a target="_blank" jstcache="44" jsaction="mouseup:placeCard.reviews" class="review-box-link" jsan="7.review-box-link,8.href,0.target,22.jsaction"&gt;'+l,e+=1&lt;l?" opiniones &lt;/a&gt;":" opinion &lt;/a&gt;",e+="&lt;/div&gt;&lt;/div&gt;"),infoWindow.setContent(e),infoWindow.open(map,r)}},i.send()};</pre></body></html>