!function(e,t,n){"use strict";functionr(e,t){returnt=t||Error,function(){varn,r,i=2,o=arguments,a=o[0],s="["+(e?e+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(e){vart=+e.slice(1,-1),n=t+i;returnn<o.length?ye(o[n]):e}),s+="\nhttp://errors.angularjs.org/1.4.6/"+(e?e+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(ye(o[r]));returnnewt(s)}}functioni(e){if(null==e||O(e))return!1;vart="length"inObject(e)&&e.length;returne.nodeType===zr&&t?!0:S(e)||Ir(e)||0===t||"number"==typeoft&&t>0&&t-1ine}functiono(e,t,n){varr,a;if(e)if(k(e))for(rine)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r,e);elseif(Ir(e)||i(e)){vars="object"!=typeofe;for(r=0,a=e.length;a>r;r++)(s||rine)&&t.call(n,e[r],r,e)}elseif(e.forEach&&e.forEach!==o)e.forEach(t,n,e);elseif(x(e))for(rine)t.call(n,e[r],r,e);elseif("function"==typeofe.hasOwnProperty)for(rine)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);elsefor(rine)yr.call(e,r)&&t.call(n,e[r],r,e);returne}functiona(e,t,n){for(varr=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);returnr}functions(e){returnfunction(t,n){e(n,t)}}functionu(){return++Pr}functionc(e,t){t?e.$$hashKey=t:deletee.$$hashKey}functionl(e,t,n){for(varr=e.$$hashKey,i=0,o=t.length;o>i;++i){vara=t[i];if(w(a)||k(a))for(vars=Object.keys(a),u=0,f=s.length;f>u;u++){varh=s[u],p=a[h];n&&w(p)?C(p)?e[h]=newDate(p.valueOf()):A(p)?e[h]=newRegExp(p):(w(e[h])||(e[h]=Ir(p)?[]:{}),l(e[h],[p],!0)):e[h]=p}}returnc(e,r),e}functionf(e){returnl(e,Ar.call(arguments,1),!1)}functionh(e){returnl(e,Ar.call(arguments,1),!0)}functionp(e){returnparseInt(e,10)}functiond(e,t){returnf(Object.create(e),t)}function$(){}functionv(e){returne}functionm(e){returnfunction(){returne}}functiong(e){returnk(e.toString)&&e.toString!==Object.prototype.toString}functiony(e){return"undefined"==typeofe}functionb(e){return"undefined"!=typeofe}functionw(e){returnnull!==e&&"object"==typeofe}functionx(e){returnnull!==e&&"object"==typeofe&&!Nr(e)}functionS(e){return"string"==typeofe}functionE(e){return"number"==typeofe}functionC(e){return"[object Date]"===Tr.call(e)}functionk(e){return"function"==typeofe}functionA(e){return"[object RegExp]"===Tr.call(e)}functionO(e){returne&&e.window===e}functionM(e){returne&&e.$evalAsync&&e.$watch}functionT(e){return"[object File]"===Tr.call(e)}functionN(e){return"[object FormData]"===Tr.call(e)}functionV(e){return"[object Blob]"===Tr.call(e)}functionj(e){return"boolean"==typeofe}functionP(e){returne&&k(e.then)}functionD(e){returnRr.test(Tr.call(e))}functionI(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}functionR(e){vart,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;returnn}function_(e){returngr(e.nodeName||e[0]&&e[0].nodeName)}functionq(e,t){varn=e.indexOf(t);returnn>=0&&e.splice(n,1),n}functionF(e,t,n,r){if(O(e)||M(e))throwVr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(D(t))throwVr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t){if(e===t)throwVr("cpi","Can't copy! Source and destination are identical.");n=n||[],r=r||[],w(e)&&(n.push(e),r.push(t));vari;if(Ir(e)){t.length=0;for(vara=0;a<e.length;a++)t.push(F(e[a],null,n,r))}else{vars=t.$$hashKey;if(Ir(t)?t.length=0:o(t,function(e,n){deletet[n]}),x(e))for(iine)t[i]=F(e[i],null,n,r);elseif(e&&"function"==typeofe.hasOwnProperty)for(iine)e.hasOwnProperty(i)&&(t[i]=F(e[i],null,n,r));elsefor(iine)yr.call(e,i)&&(t[i]=F(e[i],null,n,r));c(t,s)}}elseif(t=e,w(e)){varu;if(n&&-1!==(u=n.indexOf(e)))returnr[u];if(Ir(e))returnF(e,[],n,r);if(D(e))t=newe.constructor(e);elseif(C(e))t=newDate(e.getTime());elseif(A(e))t=newRegExp(e.source,e.toString().match(/[^\/]*$/)[0]),t.lastIndex=e.lastIndex;else{if(!k(e.cloneNode)){varl=Object.create(Nr(e));returnF(e,l,n,r)}t=e.cloneNode(!0)}r&&(n.push(e),r.push(t))}returnt}functionU(e,t){if(Ir(e)){t=t||[];for(varn=0,r=e.length;r>n;n++)t[n]=e[n]}elseif(w(e)){t=t||{};for(vari
(E=m.transclude)&&(P=!0,m.$$tlb||(K("transclusion",j,m,q),j=m),"element"==E?(_=!0,C=m.priority,y=q,q=o.$$element=Er(t.createComment(" "+g+": "+o[g]+" ")),r=q[0],ne(s,L(y),r),B=V(y,a,C,U&&U.name,{nonTlbTranscludeDirective:j})):(y=Er(Me(r)).contents(),q.empty(),B=V(y,a))),m.template)if(D=!0,K("template",N,m,q),N=m,E=k(m.template)?m.template(q,o):m.template,E=le(E),m.replace){if(U=m,y=Se(E)?[]:ft(Q(m.templateNamespace,_r(E))),r=y[0],1!=y.length||r.nodeType!==zr)throwOi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g,"");ne(s,q,r);varee={$attr:{}},te=I(r,[],ee),se=e.splice(z+1,e.length-(z+1));T&&H(te),e=e.concat(te).concat(se),G(o,ee),W=e.length}elseq.html(E);if(m.templateUrl)D=!0,K("template",N,m,q),N=m,m.replace&&(U=m),v=Y(e.splice(z,e.length-z),q,o,s,P&&B,l,f,{controllerDirectives:O,newScopeDirective:A!==m&&A,newIsolateScopeDirective:T,templateDirective:N,nonTlbTranscludeDirective:j}),W=e.length;elseif(m.compile)try{b=m.compile(q,o,B),k(b)?p(null,b,J,Z):b&&p(b.pre,b.post,J,Z)}catch(ue){i(ue,X(q))}m.terminal&&(v.terminal=!0,C=Math.max(C,m.priority))}returnv.scope=A&&A.scope===!0,v.transcludeOnThisElement=P,v.templateOnThisElement=D,v.transclude=B,h.hasElementTranscludeDirective=_,v}functionH(e){for(vart=0,n=e.length;n>t;t++)e[t]=d(e[t],{$$isolateScope:!0})}functionz(t,n,r,o,a,s,u){if(n===a)returnnull;varf=null;if(c.hasOwnProperty(n))for(varh,p=e.get(n+l),$=0,v=p.length;v>$;$++)try{h=p[$],(y(o)||o>h.priority)&&-1!=h.restrict.indexOf(r)&&(s&&(h=d(h,{$$start:s,$$end:u})),t.push(h),f=h)}catch(m){i(m)}returnf}functionW(t){if(c.hasOwnProperty(t))for(varn,r=e.get(t+l),i=0,o=r.length;o>i;i++)if(n=r[i],n.multiElement)return!0;return!1}functionG(e,t){varn=t.$attr,r=e.$attr,i=e.$$element;o(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,o){"class"==o?(N(i,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])})}functionY(e,t,n,r,i,s,u,c){varl,f,h=[],p=t[0],$=e.shift(),v=d($,{templateUrl:null,transclude:null,replace:null,$$originalDirective:$}),m=k($.templateUrl)?$.templateUrl(t,n):$.templateUrl,g=$.templateNamespace;returnt.empty(),a(m).then(function(a){vard,y,b,x;if(a=le(a),$.replace){if(b=Se(a)?[]:ft(Q(g,_r(a))),d=b[0],1!=b.length||d.nodeType!==zr)throwOi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$.name,m);y={$attr:{}},ne(r,t,d);varS=I(d,[],y);w($.scope)&&H(S),e=S.concat(e),G(n,y)}elsed=p,t.html(a);for(e.unshift(v),l=U(e,d,n,i,t,$,s,u,c),o(r,function(e,n){e==d&&(r[n]=t[0])}),f=P(t[0].childNodes,i);h.length;){varE=h.shift(),C=h.shift(),k=h.shift(),A=h.shift(),O=t[0];if(!E.$$destroyed){if(C!==p){varM=C.className;c.hasElementTranscludeDirective&&$.replace||(O=Me(d)),ne(k,Er(C),O),N(Er(O),M)}x=l.transcludeOnThisElement?D(E,l.transclude,A):A,l(f,E,O,r,x,l)}}h=null}),function(e,t,n,r,i){varo=i;t.$$destroyed||(h?h.push(t,n,r,o):(l.transcludeOnThisElement&&(o=D(t,l.transclude,i)),l(f,t,n,r,o,l)))}}functionJ(e,t){varn=t.priority-e.priority;return0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}functionK(e,t,n,r){functioni(e){returne?" (module: "+e+")":""}if(t)throwOi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,X(r))}functionZ(e,t){varn=r(t,!0);n&&e.push({priority:0,compile:function(e){vart=e.parent(),r=!!t.length;returnr&&V.$$addBindingClass(t),function(e,t){vari=t.parent();r||V.$$addBindingClass(i),V.$$addBindingInfo(i,n.expressions),e.$watch(n,function(e){t[0].nodeValue=e})}}})}functionQ(e,n){switch(e=gr(e||"html")){case"svg":case"math":varr=t.createElement("div");returnr.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:returnn}}functionee(e,t){if("srcdoc"==t)returnA.HTML;varn=_(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?A.RESOURCE_URL:void0}functionte(e,t,n,i,o){vara=e
varr=newl;returne(t,n),r.promise};returnx.defer=d,x.reject=$,x.when=g,x.resolve=b,x.all=h,x}functionpn(){this.$get=["$window","$timeout",function(e,t){varn=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){vart=n(e);returnfunction(){r(t)}}:function(e){varn=t(e,16.66,!1);returnfunction(){t.cancel(n)}};returno.supported=i,o}]}functiondn(){functione(e){functiont(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}returnt.prototype=e,t}vart=10,n=r("$rootScope"),a=null,s=null;this.digestTtl=function(e){returnarguments.length&&(t=e),t},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,c,l,f){functionh(e){e.currentScope.$$destroyed=!0}functionp(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}functiond(e){if(E.$$phase)thrown("inprog","{0} already in progress",E.$$phase);E.$$phase=e}functionv(){E.$$phase=null}functionm(e,t){doe.$$watchersCount+=t;while(e=e.$parent)}functiong(e,t,n){doe.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&deletee.$$listenerCount[n];while(e=e.$parent)}functionb(){}functionx(){for(;O.length;)try{O.shift()()}catch(e){c(e)}s=null}functionS(){null===s&&(s=f.defer(function(){E.$apply(x)}))}p.prototype={constructor:p,$new:function(t,n){varr;returnn=n||this,t?(r=newp,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=newthis.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!=this)&&r.$on("$destroy",h),r},$watch:function(e,t,n,r){vari=l(e);if(i.$$watchDelegate)returni.$$watchDelegate(this,t,n,i,e);varo=this,s=o.$$watchers,u={fn:t,last:b,get:i,exp:r||e,eq:!!n};returna=null,k(t)||(u.fn=$),s||(s=o.$$watchers=[]),s.unshift(u),m(this,1),function(){q(s,u)>=0&&m(o,-1),a=null}},$watchGroup:function(e,t){functionn(){u=!1,c?(c=!1,t(i,i,s)):t(i,r,s)}varr=newArray(e.length),i=newArray(e.length),a=[],s=this,u=!1,c=!0;if(!e.length){varl=!0;returns.$evalAsync(function(){l&&t(i,i,s)}),function(){l=!1}}return1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){varo=s.$watch(e,function(e,o){i[t]=e,r[t]=o,u||(u=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){functionn(e){o=e;vart,n,r,s,u;if(!y(o)){if(w(o))if(i(o)){a!==p&&(a=p,v=a.length=0,f++),t=o.length,v!==t&&(f++,a.length=v=t);for(varc=0;t>c;c++)u=a[c],s=o[c],r=u!==u&&s!==s,r||u===s||(f++,a[c]=s)}else{a!==d&&(a=d={},v=0,f++),t=0;for(nino)yr.call(o,n)&&(t++,s=o[n],u=a[n],nina?(r=u!==u&&s!==s,r||u===s||(f++,a[n]=s)):(v++,a[n]=s,f++));if(v>t){f++;for(nina)yr.call(o,n)||(v--,deletea[n])}}elsea!==o&&(a=o,f++);returnf}}functionr(){if($?($=!1,t(o,o,u)):t(o,s,u),c)if(w(o))if(i(o)){s=newArray(o.length);for(vare=0;e<o.length;e++)s[e]=o[e]}else{s={};for(varnino)yr.call(o,n)&&(s[n]=o[n])}elses=o}n.$stateful=!0;varo,a,s,u=this,c=t.length>1,f=0,h=l(e,n),p=[],d={},$=!0,v=0;returnthis.$watch(h,r)},$digest:function(){vare,r,i,o,u,l,h,p,$,m,g=t,y=this,w=[];d("$digest"),f.$$checkUrlChange(),this===E&&null!==s&&(f.defer.cancel(s),x()),a=null;do{for(l=!1,p=y;C.length;){try{m=C.shift(),m.scope.$eval(m.expression,m.locals)}catch(S){c(S)}a=null}e:do{if(o=p.$$watchers)for(u=o.length;u--;)try{if(e=o[u])if((r=e.get(p))===(i=e.last)||(e.eq?B(r,i):"number"==typeofr&&"number"==typeofi&&isNaN(r)&&isNaN(i))){if(e===a){l=!1;breake}}elsel=!0,a=e,e.last=e.eq?F(r,null):r,e.fn(r,i===b?r:i,p),5>g&&($=4-g,w[$]||(w[$]=[]),w[$].push({msg:k(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:r,oldVal:i}))}catch(S){c(S)}if(!(h=p.$$watchersCou
varr,i,o=this.length;if(e!==Ue&&y(2==e.length&&e!==De&&e!==qe?t:n)){if(w(t)){for(r=0;o>r;r++)if(e===Pe)e(this[r],t);elsefor(iint)e(this[r],i,t[i]);returnthis}for(vara=e.$dv,s=y(a)?Math.min(o,1):o,u=0;s>u;u++){varc=e(this[u],t,n);a=a?a+c:c}returna}for(r=0;o>r;r++)e(this[r],t,n);returnthis}}),o({removeData:Ve,on:functionNa(e,t,n,r){if(b(r))throwoi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Ee(e)){vari=je(e,!0),o=i.events,a=i.handle;a||(a=i.handle=We(e,o));for(vars=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length;u--;){t=s[u];varc=o[t];c||(o[t]=[],"mouseenter"===t||"mouseleave"===t?Na(e,ii[t],function(e){varn=this,r=e.relatedTarget;r&&(r===n||n.contains(r))||a(e,t)}):"$destroy"!==t&&ei(e,t,a),c=o[t]),c.push(n)}}},off:Ne,one:function(e,t,n){e=Er(e),e.on(t,functionr(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){varn,r=e.parentNode;Te(e),o(newOe(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){vart=[];returno(e.childNodes,function(e){e.nodeType===zr&&t.push(e)}),t},contents:function(e){returne.contentDocument||e.childNodes||[]},append:function(e,t){varn=e.nodeType;if(n===zr||n===Kr){t=newOe(t);for(varr=0,i=t.length;i>r;r++){varo=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===zr){varn=e.firstChild;o(newOe(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=Er(t).eq(0).clone()[0];varn=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:Be,detach:function(e){Be(e,!0)},after:function(e,t){varn=e,r=e.parentNode;t=newOe(t);for(vari=0,o=t.length;o>i;i++){vara=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Re,removeClass:Ie,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){varr=n;y(r)&&(r=!De(e,t)),(r?Re:Ie)(e,t)})},parent:function(e){vart=e.parentNode;returnt&&t.nodeType!==Kr?t:null},next:function(e){returne.nextElementSibling},find:function(e,t){returne.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Me,triggerHandler:function(e,t,n){varr,i,a,s=t.type||t,u=je(e),c=u&&u.events,l=c&&c[s];l&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){returnthis.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){returnthis.immediatePropagationStopped===!0},stopPropagation:$,type:s,target:e},t.type&&(r=f(r,t)),i=U(l),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){Oe.prototype[t]=function(t,n,r){for(vari,o=0,a=this.length;a>o;o++)y(i)?(i=e(this[o],t,n,r),b(i)&&(i=Er(i))):_e(i,e(this[o],t,n,r));returnb(i)?i:this},Oe.prototype.bind=Oe.prototype.on,Oe.prototype.unbind=Oe.prototype.off}),Je.prototype={put:function(e,t){this[Ye(e,this.nextUid)]=t},get:function(e){returnthis[Ye(e,this.nextUid)]},remove:function(e){vart=this[e=Ye(e,this.nextUid)];returndeletethis[e],t}};var$i=[function(){this.$get=[function(){returnJe}]}],vi=/^[^\(]*\(\s*([^\)]*)\)/m,mi=/,/,gi=/^\s*(_?)(\S+?)\1\s*$/,yi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,bi=r("$injector");Xe.$$annotate=Ze;varwi=r("$animate"),xi=1,Si="ng-animate",Ei=function(){this.$get=["$q","$$rAF",function(e,t){functionn(){}returnn.all=$,n.chain=$,n.prototype={end:$,cancel:$,resume:$,pause:$,complete:$,then:function(n,r){returne(function(e){t(function(){e()})}).then(n,r)}},n}]},Ci=function(){vare=newJe,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){functioni(e,t,n){varr=!1;returnt&&(t=S(t)?t.split(" "):Ir(t)?t:[],o(t,function(t){t&&(r=!0,e[t]=n)})),r}functiona(){o(t,function(t){varn=e.get(t);if(n){varr=nt(t.attr("class")),i="",a="";o(n,function(e,t){varn=!!r[t];e!==n&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&Re(e,i),a&&Ie(e,a)}),e.remove(t)}}),t.length=0}functions(n,o,s){varu=e.get(n)||{},c=i(u,o,!0),l=i(u,s,!1);(c||l)&&(e.put(n,u),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:$,on:$,off:$,pin:$,push:function(e,t,r,i){returni&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.c
!function(e,r,t){"use strict";functionn(){functione(e,t){returnr.extend(Object.create(e),t)}functiont(e,r){vart=r.caseInsensitiveMatch,n={originalPath:e,regexp:e},a=n.keys=[];returne=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(e,r,t,n){varo="?"===n?n:null,i="*"===n?n:null;returna.push({name:t,optional:!!o}),r=r||"",""+(o?"":r)+"(?:"+(o?r:"")+(i&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),n.regexp=newRegExp("^"+e+"$",t?"i":""),n}varn={};this.when=function(e,a){varo=r.copy(a);if(r.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),r.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),n[e]=r.extend(o,e&&t(e,o)),e){vari="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";n[i]=r.extend({redirectTo:e},t(i,o))}returnthis},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeofe&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(t,a,o,i,c,l,s){functionh(e,r){vart=r.keys,n={};if(!r.regexp)returnnull;vara=r.regexp.exec(e);if(!a)returnnull;for(varo=1,i=a.length;i>o;++o){varc=t[o-1],u=a[o];c&&u&&(n[c.name]=u)}returnn}function$(e){varn=w.current;v=f(),m=v&&n&&v.$$route===n.$$route&&r.equals(v.pathParams,n.pathParams)&&!v.reloadOnSearch&&!g,m||!n&&!v||t.$broadcast("$routeChangeStart",v,n).defaultPrevented&&e&&e.preventDefault()}functionp(){vare=w.current,n=v;m?(e.params=n.params,r.copy(e.params,o),t.$broadcast("$routeUpdate",e)):(n||e)&&(g=!1,w.current=n,n&&n.redirectTo&&(r.isString(n.redirectTo)?a.path(d(n.redirectTo,n.params)).search(n.params).replace():a.url(n.redirectTo(n.pathParams,a.path(),a.search())).replace()),i.when(n).then(function(){if(n){vare,t,a=r.extend({},n.resolve);returnr.forEach(a,function(e,t){a[t]=r.isString(e)?c.get(e):c.invoke(e,null,null,t)}),r.isDefined(e=n.template)?r.isFunction(e)&&(e=e(n.params)):r.isDefined(t=n.templateUrl)&&(r.isFunction(t)&&(t=t(n.params)),r.isDefined(t)&&(n.loadedTemplateUrl=s.valueOf(t),e=l(t))),r.isDefined(e)&&(a.$template=e),i.all(a)}}).then(function(a){n==w.current&&(n&&(n.locals=a,r.copy(n.params,o)),t.$broadcast("$routeChangeSuccess",n,e))},function(r){n==w.current&&t.$broadcast("$routeChangeError",n,e,r)}))}functionf(){vart,o;returnr.forEach(n,function(n,i){!o&&(t=h(a.path(),n))&&(o=e(n,{params:r.extend({},a.search(),t),pathParams:t}),o.$$route=n)}),o||n[null]&&e(n[null],{params:{},pathParams:{}})}functiond(e,t){varn=[];returnr.forEach((e||"").split(":"),function(e,r){if(0===r)n.push(e);else{vara=e.match(/(\w+)(?:[?*])?(.*)/),o=a[1];n.push(t[o]),n.push(a[2]||""),deletet[o]}}),n.join("")}varv,m,g=!1,w={routes:n,reload:function(){g=!0,t.$evalAsync(function(){$(),p()})},updateParams:function(e){if(!this.current||!this.current.$$route)throwu("norout","Tried updating route when with no current route");e=r.extend({},this.current.params,e),a.path(d(this.current.$$route.originalPath,e)),a.search(e)}};returnt.$on("$locationChangeStart",$),t.$on("$locationChangeSuccess",p),w}]}functiona(){this.$get=function(){return{}}}functiono(e,t,n){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,o,i,c,u){functionl(){p&&(n.cancel(p),p=null),h&&(h.$destroy(),h=null),$&&(p=n.leave($),p.then(function(){p=null}),$=null)}functions(){vari=e.current&&e.current.locals,c=i&&i.$template;if(r.isDefined(c)){vars=a.$new(),p=e.current,v=u(s,function(e){n.enter(e,null,$||o).then(function(){!r.isDefined(f)||f&&!a.$eval(f)||t()}),l()});$=v,h=p.scope=s,h.$emit("$viewContentLoaded"),h.$eval(d)}elsel()}varh,$,p,f=i.autoscroll,d=i.onload||"";a.$on("$routeChangeSuccess",s),s()}}}functioni(e,r,t){return{restrict:"ECA",priority:-400,link:function(n,a){varo=t.current,i=o.locals;a.html(i.$template);varc=e(a.contents());if(o.controller){i.$scope=n;varu=r(o.controller,i);o.controllerAs&&(n[o.controllerAs]=u),a.data("$ngControllerController",u),a.children().data("$ngControllerController",u)}c(n)}}}varc=r.module("ngRoute",["ng"]).provider("$r