"undefined"!=typeofmodule&&"undefined"!=typeofexports&&module.exports===exports&&(module.exports="ui.router"),function(a,b,c){"use strict";functiond(a,b){returnT(new(T(function(){},{prototype:a})),b)}functione(a){returnS(arguments,function(b){b!==a&&S(b,function(b,c){a.hasOwnProperty(c)||(a[c]=b)})}),a}functionf(a,b){varc=[];for(vardina.path){if(a.path[d]!==b.path[d])break;c.push(a.path[d])}returnc}functiong(a){if(Object.keys)returnObject.keys(a);varb=[];returnS(a,function(a,c){b.push(c)}),b}functionh(a,b){if(Array.prototype.indexOf)returna.indexOf(b,Number(arguments[2])||0);varc=a.length>>>0,d=Number(arguments[2])||0;for(d=d<0?Math.ceil(d):Math.floor(d),d<0&&(d+=c);d<c;d++)if(dina&&a[d]===b)returnd;return-1}functioni(a,b,c,d){vare,i=f(c,d),j={},k=[];for(varlini)if(i[l]&&i[l].params&&(e=g(i[l].params),e.length))for(varmine)h(k,e[m])>=0||(k.push(e[m]),j[e[m]]=a[e[m]]);returnT({},j,b)}functionj(a,b,c){if(!c){c=[];for(vardina)c.push(d)}for(vare=0;e<c.length;e++){varf=c[e];if(a[f]!=b[f])return!1}return!0}functionk(a,b){varc={};returnS(a,function(a){c[a]=b[a]}),c}functionl(a){varb={},c=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));returnS(c,function(c){cina&&(b[c]=a[c])}),b}functionm(a){varb={},c=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(vardina)-1==h(c,d)&&(b[d]=a[d]);returnb}functionn(a,b){varc=R(a),d=c?[]:{};returnS(a,function(a,e){b(a,e)&&(d[c?d.length:e]=a)}),d}functiono(a,b){varc=R(a)?[]:{};returnS(a,function(a,d){c[d]=b(a,d)}),c}functionp(a){returna.then(c,function(){})&&a}functionq(a,b){vard=1,f=2,i={},j=[],k=i,l=T(a.when(i),{$$promises:i,$$values:i});this.study=function(i){functionn(a,c){if(t[c]!==f){if(s.push(c),t[c]===d)throws.splice(0,h(s,c)),newError("Cyclic dependency: "+s.join(" -> "));if(t[c]=d,P(a))r.push(c,[function(){returnb.get(a)}],j);else{vare=b.annotate(a);S(e,function(a){a!==c&&i.hasOwnProperty(a)&&n(i[a],a)}),r.push(c,a,e)}s.pop(),t[c]=f}}functiono(a){returnQ(a)&&a.then&&a.$$promises}if(!Q(i))thrownewError("'invocables' must be an object");varq=g(i||{}),r=[],s=[],t={};returnS(i,n),i=s=t=null,function(d,f,g){functionh(){--v||(w||e(u,f.$$values),s.$$values=u,s.$$promises=s.$$promises||!0,deletes.$$inheritedValues,n.resolve(u))}functioni(a){s.$$failure=a,n.reject(a)}functionj(c,e,f){functionj(a){l.reject(a),i(a)}functionk(){if(!N(s.$$failure))try{l.resolve(b.invoke(e,g,u)),l.promise.then(function(a){u[c]=a,h()},j)}catch(a){j(a)}}varl=a.defer(),m=0;S(f,function(a){t.hasOwnProperty(a)&&!d.hasOwnProperty(a)&&(m++,t[a].then(function(b){u[a]=b,--m||k()},j))}),m||k(),t[c]=p(l.promise)}if(o(d)&&g===c&&(g=f,f=d,d=null),d){if(!Q(d))thrownewError("'locals' must be an object")}elsed=k;if(f){if(!o(f))thrownewError("'parent' must be a promise returned by $resolve.resolve()")}elsef=l;varn=a.defer(),s=p(n.promise),t=s.$$promises={},u=T({},d),v=1+r.length/3,w=!1;if(p(s),N(f.$$failure))returni(f.$$failure),s;f.$$inheritedValues&&e(u,m(f.$$inheritedValues,q)),T(t,f.$$promises),f.$$values?(w=e(u,m(f.$$values,q)),s.$$inheritedValues=m(f.$$values,q),h()):(f.$$inheritedValues&&(s.$$inheritedValues=m(f.$$inheritedValues,q)),f.then(h,i));for(varx=0,y=r.length;x<y;x+=3)d.hasOwnProperty(r[x])?h():j(r[x],r[x+1],r[x+2]);returns}},this.resolve=function(a,b,c,d){returnthis.study(a)(b,c,d)}}functionr(){vara=b.version.minor<3;this.shouldUnsafelyUseHttp=function(b){a=!!b},this.$get=["$http","$templateCache","$injector",function(b,c,d){returnnews(b,c,d,a)}]}functions(a,b,c,d){this.fromConfig=function(a,b,c){returnN(a.template)?this.fromString(a.template,b):N(a.templateUrl)?this.fromUrl(a.templateUrl,b):N(a.templateProvider)?this.fromProvider(a.templateProvider,b,c):null},this.fromString=function(a,b){returnO(a)?a(b):a},this.fromUrl=function(e,f){returnO(e)&&(e=e(f)),null==e?null:d?a.get(e,{cache:b,headers:{Accept:"text/html"}}).then(function(a){returna.data}):c.get("$templateRequest")(e)},this.fromProvider=function(a,b,d){returnc.invoke(a,null,d||{para