angularplasmid
Version:
Biological Plasmid Visualization Component using AngularJS
2 lines • 153 kB
JavaScript
!function(t,e,n){"use strict";function r(t,e){return e=e||Error,function(){var n,r,i=arguments[0],a="["+(t?t+":":"")+i+"] ",o=arguments[1],s=arguments;for(n=a+o.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1);return e+2<s.length?de(s[e+2]):t}),n=n+"\nhttp://errors.angularjs.org/1.3.13/"+(t?t+"/":"")+i,r=2;r<arguments.length;r++)n=n+(2==r?"?":"&")+"p"+(r-2)+"="+encodeURIComponent(de(arguments[r]));return new e(n)}}function i(t){if(null==t||C(t))return!1;var e=t.length;return t.nodeType===gi&&e?!0:b(t)||ci(t)||0===e||"number"==typeof e&&e>0&&e-1 in t}function a(t,e,n){var r,o;if(t)if(k(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(ci(t)||i(t)){var s="object"!=typeof t;for(r=0,o=t.length;o>r;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==a)t.forEach(e,n,t);else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);return t}function o(t){return Object.keys(t).sort()}function s(t,e,n){for(var r=o(t),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function u(t){return function(e,n){t(n,e)}}function l(){return++ui}function c(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function f(t){for(var e=t.$$hashKey,n=1,r=arguments.length;r>n;n++){var i=arguments[n];if(i)for(var a=Object.keys(i),o=0,s=a.length;s>o;o++){var u=a[o];t[u]=i[u]}}return c(t,e),t}function d(t){return parseInt(t,10)}function h(t,e){return f(Object.create(t),e)}function p(){}function $(t){return t}function m(t){return function(){return t}}function g(t){return"undefined"==typeof t}function v(t){return"undefined"!=typeof t}function y(t){return null!==t&&"object"==typeof t}function b(t){return"string"==typeof t}function w(t){return"number"==typeof t}function x(t){return"[object Date]"===ai.call(t)}function k(t){return"function"==typeof t}function S(t){return"[object RegExp]"===ai.call(t)}function C(t){return t&&t.window===t}function A(t){return t&&t.$evalAsync&&t.$watch}function O(t){return"[object File]"===ai.call(t)}function E(t){return"[object FormData]"===ai.call(t)}function j(t){return"[object Blob]"===ai.call(t)}function N(t){return"boolean"==typeof t}function T(t){return t&&k(t.then)}function M(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function P(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function V(t){return Wr(t.nodeName||t[0]&&t[0].nodeName)}function q(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),e}function D(t,e,n,r){if(C(t)||A(t))throw oi("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(e){if(t===e)throw oi("cpi","Can't copy! Source and destination are identical.");if(n=n||[],r=r||[],y(t)){var i=n.indexOf(t);if(-1!==i)return r[i];n.push(t),r.push(e)}var o;if(ci(t)){e.length=0;for(var s=0;s<t.length;s++)o=D(t[s],null,n,r),y(t[s])&&(n.push(t[s]),r.push(o)),e.push(o)}else{var u=e.$$hashKey;ci(e)?e.length=0:a(e,function(t,n){delete e[n]});for(var l in t)t.hasOwnProperty(l)&&(o=D(t[l],null,n,r),y(t[l])&&(n.push(t[l]),r.push(o)),e[l]=o);c(e,u)}}else if(e=t,t)if(ci(t))e=D(t,[],n,r);else if(x(t))e=new Date(t.getTime());else if(S(t))e=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),e.lastIndex=t.lastIndex;else if(y(t)){var f=Object.create(Object.getPrototypeOf(t));e=D(t,f,n,r)}return e}function R(t,e){if(ci(t)){e=e||[];for(var n=0,r=t.length;r>n;n++)e[n]=t[n]}else if(y(t)){e=e||{};for(var i in t)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(e[i]=t[i])}return e||t}function I(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var r,i,a,o=typeof t,s=typeof e;if(o==s&&"object"==o){if(!ci(t)){if(x(t))return x(e)?I(t.getTime(),e.getTime()):!1;if(S(t)&&S(e))return t.toString()==e.toString();if(A(t)||A(e)||C(t)||C(e)||ci(e))return!1;a={};for(i in t)if("$"!==i.charAt(0)&&!k(t[i])){if(!I(t[i],e[i]))return!1;a[i]=!0}for(i in e)if(!a.hasOwnProperty(i)&&"$"!==i.charAt(0)&&e[i]!==n&&!k(e[i]))return!1;return!0}if(!ci(e))return!1;if((r=t.length)==e.length){for(i=0;r>i;i++)if(!I(t[i],e[i]))return!1;return!0}}return!1}function _(t,e,n){return t.concat(ni.call(e,n))}function U(t,e){return ni.call(t,e||0)}function L(t,e){var n=arguments.length>2?U(arguments,2):[];return!k(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,_(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function F(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:C(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":A(r)&&(i="$SCOPE"),i}function H(t,e){return"undefined"==typeof t?n:(w(e)||(e=e?2:null),JSON.stringify(t,F,e))}function B(t){return b(t)?JSON.parse(t):t}function z(t){t=Qr(t).clone();try{t.empty()}catch(e){}var n=Qr("<div>").append(t).html();try{return t[0].nodeType===vi?Wr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Wr(e)})}catch(e){return Wr(n)}}function G(t){try{return decodeURIComponent(t)}catch(e){}}function W(t){var e,n,r={};return a((t||"").split("&"),function(t){if(t&&(e=t.replace(/\+/g,"%20").split("="),n=G(e[0]),v(n))){var i=v(e[1])?G(e[1]):!0;Jr.call(r,n)?ci(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function J(t){var e=[];return a(t,function(t,n){ci(t)?a(t,function(t){e.push(Z(n,!0)+(t===!0?"":"="+Z(t,!0)))}):e.push(Z(n,!0)+(t===!0?"":"="+Z(t,!0)))}),e.length?e.join("&"):""}function Y(t){return Z(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Z(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 K(t,e){var n,r,i=pi.length;for(t=Qr(t),r=0;i>r;++r)if(n=pi[r]+e,b(n=t.attr(n)))return n;return null}function X(t,e){var n,r,i={};a(pi,function(e){var i=e+"app";!n&&t.hasAttribute&&t.hasAttribute(i)&&(n=t,r=t.getAttribute(i))}),a(pi,function(e){var i,a=e+"app";!n&&(i=t.querySelector("["+a.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(a))}),n&&(i.strictDi=null!==K(n,"strict-di"),e(n,r?[r]:[],i))}function Q(n,r,i){y(i)||(i={});var o={strictDi:!1};i=f(o,i);var s=function(){if(n=Qr(n),n.injector()){var t=n[0]===e?"document":z(n);throw oi("btstrpd","App Already Bootstrapped with this Element '{0}'",t.replace(/</,"<").replace(/>/,">"))}r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng");var a=Be(r,i.strictDi);return a.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),a},u=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;return t&&u.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(u,"")),t&&!l.test(t.name)?s():(t.name=t.name.replace(l,""),si.resumeBootstrap=function(t){return a(t,function(t){r.push(t)}),s()},k(si.resumeDeferredBootstrap)&&si.resumeDeferredBootstrap(),void 0)}function te(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ee(t){var e=si.element(t).injector();if(!e)throw oi("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ne(t,e){return e=e||"_",t.replace($i,function(t,n){return(n?e:"")+t.toLowerCase()})}function re(){var e;mi||(ti=t.jQuery,ti&&ti.fn.on?(Qr=ti,f(ti.fn,{scope:Di.scope,isolateScope:Di.isolateScope,controller:Di.controller,injector:Di.injector,inheritedData:Di.inheritedData}),e=ti.cleanData,ti.cleanData=function(t){var n;if(li)li=!1;else for(var r,i=0;null!=(r=t[i]);i++)n=ti._data(r,"events"),n&&n.$destroy&&ti(r).triggerHandler("$destroy");e(t)}):Qr=be,si.element=Qr,mi=!0)}function ie(t,e,n){if(!t)throw oi("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ae(t,e,n){return n&&ci(t)&&(t=t[t.length-1]),ie(k(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function oe(t,e){if("hasOwnProperty"===t)throw oi("badname","hasOwnProperty is not a valid {0} name",e)}function se(t,e,n){if(!e)return t;for(var r,i=e.split("."),a=t,o=i.length,s=0;o>s;s++)r=i[s],t&&(t=(a=t)[r]);return!n&&k(t)?L(a,t):t}function ue(t){var e=t[0],n=t[t.length-1],r=[e];do{if(e=e.nextSibling,!e)break;r.push(e)}while(e!==n);return Qr(r)}function le(){return Object.create(null)}function ce(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=r("$injector"),i=r("ng"),a=e(t,"angular",Object);return a.$$minErr=a.$$minErr||r,e(a,"module",function(){var t={};return function(r,a,o){var s=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return s(r,"module"),a&&t.hasOwnProperty(r)&&(t[r]=null),e(t,r,function(){function t(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),l}}if(!a)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var e=[],i=[],s=[],u=t("$injector","invoke","push",i),l={_invokeQueue:e,_configBlocks:i,_runBlocks:s,requires:a,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),config:u,run:function(t){return s.push(t),this}};return o&&u(o),l})}})}function fe(t){var e=[];return JSON.stringify(t,function(t,n){if(n=F(t,n),y(n)){if(e.indexOf(n)>=0)return"<<already seen>>";e.push(n)}return n})}function de(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?fe(t):t}function he(e){f(e,{bootstrap:Q,copy:D,extend:f,equals:I,element:Qr,forEach:a,injector:Be,noop:p,bind:L,toJson:H,fromJson:B,identity:$,isUndefined:g,isDefined:v,isString:b,isFunction:k,isObject:y,isNumber:w,isElement:M,isArray:ci,version:xi,isDate:x,lowercase:Wr,uppercase:Yr,callbacks:{counter:0},getTestability:ee,$$minErr:r,$$csp:hi,reloadWithDebugInfo:te}),ei=ce(t);try{ei("ngLocale")}catch(n){ei("ngLocale",[]).provider("$locale",gn)}ei("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Yn}),t.provider("$compile",Ke).directive({a:Ea,input:za,textarea:za,form:Pa,script:qo,select:Io,style:Uo,option:_o,ngBind:Ja,ngBindHtml:Za,ngBindTemplate:Ya,ngClass:Xa,ngClassEven:to,ngClassOdd:Qa,ngCloak:eo,ngController:no,ngForm:Va,ngHide:jo,ngIf:ao,ngInclude:oo,ngInit:uo,ngNonBindable:ko,ngPluralize:So,ngRepeat:Co,ngShow:Eo,ngStyle:No,ngSwitch:To,ngSwitchWhen:Mo,ngSwitchDefault:Po,ngOptions:Ro,ngTransclude:Vo,ngModel:bo,ngList:lo,ngChange:Ka,pattern:Fo,ngPattern:Fo,required:Lo,ngRequired:Lo,minlength:Bo,ngMinlength:Bo,maxlength:Ho,ngMaxlength:Ho,ngValue:Wa,ngModelOptions:xo}).directive({ngInclude:so}).directive(ja).directive(ro),t.provider({$anchorScroll:ze,$animate:Gi,$browser:Je,$cacheFactory:Ye,$controller:en,$document:nn,$exceptionHandler:rn,$filter:sr,$interpolate:$n,$interval:mn,$http:fn,$httpBackend:hn,$location:Tn,$log:Mn,$parse:Hn,$rootScope:Jn,$q:Bn,$$q:zn,$sce:Qn,$sceDelegate:Xn,$sniffer:tr,$templateCache:Ze,$templateRequest:er,$$testability:nr,$timeout:rr,$window:or,$$rAF:Wn,$$asyncCallback:Ge,$$jqLite:_e})}])}function pe(){return++Si}function $e(t){return t.replace(Oi,function(t,e,n,r){return r?n.toUpperCase():n}).replace(Ei,"Moz$1")}function me(t){return!Mi.test(t)}function ge(t){var e=t.nodeType;return e===gi||!e||e===bi}function ve(t,e){var n,r,i,o,s=e.createDocumentFragment(),u=[];if(me(t))u.push(e.createTextNode(t));else{for(n=n||s.appendChild(e.createElement("div")),r=(Pi.exec(t)||["",""])[1].toLowerCase(),i=qi[r]||qi._default,n.innerHTML=i[1]+t.replace(Vi,"<$1></$2>")+i[2],o=i[0];o--;)n=n.lastChild;u=_(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",a(u,function(t){s.appendChild(t)}),s}function ye(t,n){n=n||e;var r;return(r=Ti.exec(t))?[n.createElement(r[1])]:(r=ve(t,n))?r.childNodes:[]}function be(t){if(t instanceof be)return t;var e;if(b(t)&&(t=fi(t),e=!0),!(this instanceof be)){if(e&&"<"!=t.charAt(0))throw Ni("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new be(t)}e?Ne(this,ye(t)):Ne(this,t)}function we(t){return t.cloneNode(!0)}function xe(t,e){if(e||Se(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;i>r;r++)Se(n[r])}function ke(t,e,n,r){if(v(r))throw Ni("offargs","jqLite#off() does not support the `selector` argument");var i=Ce(t),o=i&&i.events,s=i&&i.handle;if(s)if(e)a(e.split(" "),function(e){if(v(n)){var r=o[e];if(q(r||[],n),r&&r.length>0)return}Ai(t,e,s),delete o[e]});else for(e in o)"$destroy"!==e&&Ai(t,e,s),delete o[e]}function Se(t,e){var r=t.ng339,i=r&&ki[r];if(i){if(e)return delete i.data[e],void 0;i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),ke(t)),delete ki[r],t.ng339=n}}function Ce(t,e){var r=t.ng339,i=r&&ki[r];return e&&!i&&(t.ng339=r=pe(),i=ki[r]={events:{},data:{},handle:n}),i}function Ae(t,e,n){if(ge(t)){var r=v(n),i=!r&&e&&!y(e),a=!e,o=Ce(t,!i),s=o&&o.data;if(r)s[e]=n;else{if(a)return s;if(i)return s&&s[e];f(s,e)}}}function Oe(t,e){return t.getAttribute?(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1:!1}function Ee(t,e){e&&t.setAttribute&&a(e.split(" "),function(e){t.setAttribute("class",fi((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+fi(e)+" "," ")))})}function je(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");a(e.split(" "),function(t){t=fi(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",fi(n))}}function Ne(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;n>r;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Te(t,e){return Me(t,"$"+(e||"ngController")+"Controller")}function Me(t,e,r){t.nodeType==bi&&(t=t.documentElement);for(var i=ci(e)?e:[e];t;){for(var a=0,o=i.length;o>a;a++)if((r=Qr.data(t,i[a]))!==n)return r;t=t.parentNode||t.nodeType===wi&&t.host}}function Pe(t){for(xe(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ve(t,e){e||xe(t);var n=t.parentNode;n&&n.removeChild(t)}function qe(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):Qr(n).on("load",e)}function De(t,e){var n=Ri[e.toLowerCase()];return n&&Ii[V(t)]&&n}function Re(t,e){var n=t.nodeName;return("INPUT"===n||"TEXTAREA"===n)&&_i[e]}function Ie(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],a=i?i.length:0;if(a){if(g(n.immediatePropagationStopped)){var o=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),o&&o.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0},a>1&&(i=R(i));for(var s=0;a>s;s++)n.isImmediatePropagationStopped()||i[s].call(t,n)}};return n.elem=t,n}function _e(){this.$get=function(){return f(be,{hasClass:function(t,e){return t.attr&&(t=t[0]),Oe(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),je(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Ee(t,e)}})}}function Ue(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||l)():r+":"+t}function Le(t,e){if(e){var n=0;this.nextUid=function(){return++n}}a(t,this.put,this)}function Fe(t){var e=t.toString().replace(Hi,""),n=e.match(Ui);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function He(t,e,n){var r,i,o,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw b(n)&&n||(n=t.name||Fe(t)),Bi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=t.toString().replace(Hi,""),o=i.match(Ui),a(o[1].split(Li),function(t){t.replace(Fi,function(t,e,n){r.push(n)})})}t.$inject=r}}else ci(t)?(s=t.length-1,ae(t[s],"fn"),r=t.slice(0,s)):ae(t,"fn",!0);return r}function Be(t,e){function r(t){return function(e,n){return y(e)?(a(e,u(t)),void 0):t(e,n)}}function i(t,e){if(oe(t,"service"),(k(e)||ci(e))&&(e=A.instantiate(e)),!e.$get)throw Bi("pget","Provider '{0}' must define $get factory method.",t);return C[t+w]=e}function o(t,e){return function(){var n=E.invoke(e,this);if(g(n))throw Bi("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function s(t,e,n){return i(t,{$get:n!==!1?o(t,e):e})}function l(t,e){return s(t,["$injector",function(t){return t.instantiate(e)}])}function c(t,e){return s(t,m(e),!1)}function f(t,e){oe(t,"constant"),C[t]=e,O[t]=e}function d(t,e){var n=A.get(t+w),r=n.$get;n.$get=function(){var t=E.invoke(r,n);return E.invoke(e,null,{$delegate:t})}}function h(t){var e,n=[];return a(t,function(t){function r(t){var e,n;for(e=0,n=t.length;n>e;e++){var r=t[e],i=A.get(r[0]);i[r[1]].apply(i,r[2])}}if(!S.get(t)){S.put(t,!0);try{b(t)?(e=ei(t),n=n.concat(h(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):k(t)?n.push(A.invoke(t)):ci(t)?n.push(A.invoke(t)):ae(t,"module")}catch(i){throw ci(t)&&(t=t[t.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Bi("modulerr","Failed to instantiate module {0} due to:\n{1}",t,i.stack||i.message||i)}}}),n}function $(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===v)throw Bi("cdep","Circular dependency found: {0}",e+" <- "+x.join(" <- "));return t[e]}try{return x.unshift(e),t[e]=v,t[e]=n(e,r)}catch(i){throw t[e]===v&&delete t[e],i}finally{x.shift()}}function i(t,n,i,a){"string"==typeof i&&(a=i,i=null);var o,s,u,l=[],c=Be.$$annotate(t,e,a);for(s=0,o=c.length;o>s;s++){if(u=c[s],"string"!=typeof u)throw Bi("itkn","Incorrect injection token! Expected service name as string, got {0}",u);l.push(i&&i.hasOwnProperty(u)?i[u]:r(u,a))}return ci(t)&&(t=t[o]),t.apply(n,l)}function a(t,e,n){var r=Object.create((ci(t)?t[t.length-1]:t).prototype||null),a=i(t,r,e,n);return y(a)||k(a)?a:r}return{invoke:i,instantiate:a,get:r,annotate:Be.$$annotate,has:function(e){return C.hasOwnProperty(e+w)||t.hasOwnProperty(e)}}}e=e===!0;var v={},w="Provider",x=[],S=new Le([],!0),C={$provide:{provider:r(i),factory:r(s),service:r(l),value:r(c),constant:r(f),decorator:d}},A=C.$injector=$(C,function(t,e){throw si.isString(e)&&x.push(e),Bi("unpr","Unknown provider: {0}",x.join(" <- "))}),O={},E=O.$injector=$(O,function(t,e){var r=A.get(t+w,e);return E.invoke(r.$get,r,n,t)});return a(h(t),function(t){E.invoke(t||p)}),E}function ze(){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){return"a"===V(t)?(e=t,!0):void 0}),e}function a(){var t=s.yOffset;if(k(t))t=t();else if(M(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else w(t)||(t=0);return t}function o(t){if(t){t.scrollIntoView();var n=a();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function s(){var t,e=n.hash();e?(t=u.getElementById(e))?o(t):(t=i(u.getElementsByName(e)))?o(t):"top"===e&&o(null):o(null)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){(t!==e||""!==t)&&qe(function(){r.$evalAsync(s)})}),s}]}function Ge(){this.$get=["$$rAF","$timeout",function(t,e){return t.supported?function(e){return t(e)}:function(t){return e(t,0,!1)}}]}function We(t,e,r,i){function o(t){try{t.apply(null,U(arguments,1))}finally{if(k--,0===k)for(;S.length;)try{S.pop()()}catch(e){r.error(e)}}}function s(t){var e=t.indexOf("#");return-1===e?"":t.substr(e+1)}function u(t,e){!function n(){a(A,function(t){t()}),C=e(n,t)}()}function l(){c(),f()}function c(){O=t.history.state,O=g(O)?null:O,I(O,V)&&(O=V),V=O}function f(){(j!==h.url()||E!==O)&&(j=h.url(),E=O,a(M,function(t){t(h.url(),O)}))}function d(t){try{return decodeURIComponent(t)}catch(e){return t}}var h=this,$=e[0],m=t.location,v=t.history,y=t.setTimeout,w=t.clearTimeout,x={};h.isMock=!1;var k=0,S=[];h.$$completeOutstandingRequest=o,h.$$incOutstandingRequestCount=function(){k++},h.notifyWhenNoOutstandingRequests=function(t){a(A,function(t){t()}),0===k?t():S.push(t)};var C,A=[];h.addPollFn=function(t){return g(C)&&u(100,y),A.push(t),t};var O,E,j=m.href,N=e.find("base"),T=null;c(),E=O,h.url=function(e,n,r){if(g(r)&&(r=null),m!==t.location&&(m=t.location),v!==t.history&&(v=t.history),e){var a=E===r;if(j===e&&(!i.history||a))return h;var o=j&&xn(j)===xn(e);return j=e,E=r,!i.history||o&&a?(o||(T=e),n?m.replace(e):o?m.hash=s(e):m.href=e):(v[n?"replaceState":"pushState"](r,"",e),c(),E=O),h}return T||m.href.replace(/%27/g,"'")},h.state=function(){return O};var M=[],P=!1,V=null;h.onUrlChange=function(e){return P||(i.history&&Qr(t).on("popstate",l),Qr(t).on("hashchange",l),P=!0),M.push(e),e},h.$$checkUrlChange=f,h.baseHref=function(){var t=N.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var q={},D="",R=h.baseHref();h.cookies=function(t,e){var i,a,o,s,u;if(!t){if($.cookie!==D)for(D=$.cookie,a=D.split("; "),q={},s=0;s<a.length;s++)o=a[s],u=o.indexOf("="),u>0&&(t=d(o.substring(0,u)),q[t]===n&&(q[t]=d(o.substring(u+1))));return q}e===n?$.cookie=encodeURIComponent(t)+"=;path="+R+";expires=Thu, 01 Jan 1970 00:00:00 GMT":b(e)&&(i=($.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path="+R).length+1,i>4096&&r.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},h.defer=function(t,e){var n;return k++,n=y(function(){delete x[n],o(t)},e||0),x[n]=!0,n},h.defer.cancel=function(t){return x[t]?(delete x[t],w(t),o(p),!0):!1}}function Je(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new We(t,r,e,n)}]}function Ye(){this.$get=function(){function t(t,n){function i(t){t!=d&&(h?h==t&&(h=t.n):h=t,a(t.n,t.p),a(t,d),d=t,d.n=null)}function a(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var o=0,s=f({},n,{id:t}),u={},l=n&&n.capacity||Number.MAX_VALUE,c={},d=null,h=null;return e[t]={put:function(t,e){if(l<Number.MAX_VALUE){var n=c[t]||(c[t]={key:t});i(n)}if(!g(e))return t in u||o++,u[t]=e,o>l&&this.remove(h.key),e},get:function(t){if(l<Number.MAX_VALUE){var e=c[t];if(!e)return;i(e)}return u[t]},remove:function(t){if(l<Number.MAX_VALUE){var e=c[t];if(!e)return;e==d&&(d=e.p),e==h&&(h=e.n),a(e.n,e.p),delete c[t]}delete u[t],o--},removeAll:function(){u={},o=0,c={},d=h=null},destroy:function(){u=null,s=null,c=null,delete e[t]},info:function(){return f({},s,{size:o})}}}var e={};return t.info=function(){var t={};return a(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function Ze(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function Ke(t,r){function i(t,e){var n=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,r={};return a(t,function(t,i){var a=t.match(n);if(!a)throw Wi("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,i,t);r[i]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||i}}),r}var o={},s="Directive",l=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,c=/(([\w\-]+)(?:\:([^;]+))?;?)/,d=P("ngSrc,ngSrcset,src,srcset"),g=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,w=/^(on[a-z]+|formaction)$/;this.directive=function S(e,n){return oe(e,"directive"),b(e)?(ie(n,"directiveFactory"),o.hasOwnProperty(e)||(o[e]=[],t.factory(e+s,["$injector","$exceptionHandler",function(t,n){var r=[];return a(o[e],function(a,o){try{var s=t.invoke(a);k(s)?s={compile:m(s)}:!s.compile&&s.link&&(s.compile=m(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||e,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA",y(s.scope)&&(s.$$isolateBindings=i(s.scope,s.name)),r.push(s)}catch(u){n(u)}}),r}])),o[e].push(n)):a(e,u(S)),this},this.aHrefSanitizationWhitelist=function(t){return v(t)?(r.aHrefSanitizationWhitelist(t),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return v(t)?(r.imgSrcSanitizationWhitelist(t),this):r.imgSrcSanitizationWhitelist()};var x=!0;this.debugInfoEnabled=function(t){return v(t)?(x=t,this):x},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,r,i,u,m,v,S,C,O,E,j){function N(t,e){try{t.addClass(e)}catch(n){}}function T(t,e,n,r,i){t instanceof Qr||(t=Qr(t)),a(t,function(e,n){e.nodeType==vi&&e.nodeValue.match(/\S+/)&&(t[n]=Qr(e).wrap("<span></span>").parent()[0])});var o=P(t,e,t,n,r,i);T.$$addScopeClass(t);var s=null;return function(e,n,r){ie(e,"scope"),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,u=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),s||(s=M(u));var l;if(l="html"!==s?Qr(X(s,Qr("<div>").append(t).html())):n?Di.clone.call(t):t,a)for(var c in a)l.data("$"+c+"Controller",a[c].instance);return T.$$addScopeInfo(l,e),n&&n(l,e),o&&o(e,l,l,i),l}}function M(t){var e=t&&t[0];return e?"foreignobject"!==V(e)&&e.toString().match(/SVG/)?"svg":"html":"html"}function P(t,e,r,i,a,o){function s(t,r,i,a){var o,s,u,l,c,f,d,h,m;if(p){var g=r.length;for(m=new Array(g),c=0;c<$.length;c+=3)d=$[c],m[d]=r[d]}else m=r;for(c=0,f=$.length;f>c;)u=m[$[c++]],o=$[c++],s=$[c++],o?(o.scope?(l=t.$new(),T.$$addScopeInfo(Qr(u),l)):l=t,h=o.transcludeOnThisElement?D(t,o.transclude,a,o.elementTranscludeOnThisElement):!o.templateOnThisElement&&a?a:!a&&e?D(t,e):null,o(s,l,u,i,h)):s&&s(t,u.childNodes,n,a)}for(var u,l,c,f,d,h,p,$=[],m=0;m<t.length;m++)u=new oe,l=R(t[m],[],u,0===m?i:n,a),c=l.length?F(l,t[m],u,e,r,null,[],[],o):null,c&&c.scope&&T.$$addScopeClass(u.$$element),d=c&&c.terminal||!(f=t[m].childNodes)||!f.length?null:P(f,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:e),(c||d)&&($.push(m,c,d),h=!0,p=p||c),o=null;return h?s:null}function D(t,e,n){var r=function(r,i,a,o,s){return r||(r=t.$new(!1,s),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:a,futureParentElement:o})};return r}function R(t,e,n,r,i){var a,o,s=t.nodeType,u=n.$attr;switch(s){case gi:B(e,Xe(V(t)),"E",r,i);for(var f,d,h,p,$,m,g=t.attributes,v=0,w=g&&g.length;w>v;v++){var x=!1,k=!1;f=g[v],d=f.name,$=fi(f.value),p=Xe(d),(m=fe.test(p))&&(d=d.replace(Ji,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var S=p.replace(/(Start|End)$/,"");G(S)&&p===S+"Start"&&(x=d,k=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),h=Xe(d.toLowerCase()),u[h]=d,(m||!n.hasOwnProperty(h))&&(n[h]=$,De(t,h)&&(n[h]=!0)),te(t,e,$,h,m),B(e,h,"A",r,i,x,k)}if(o=t.className,y(o)&&(o=o.animVal),b(o)&&""!==o)for(;a=c.exec(o);)h=Xe(a[2]),B(e,h,"C",r,i)&&(n[h]=fi(a[3])),o=o.substr(a.index+a[0].length);break;case vi:K(e,t.nodeValue);break;case yi:try{a=l.exec(t.nodeValue),a&&(h=Xe(a[1]),B(e,h,"M",r,i)&&(n[h]=fi(a[2])))}catch(C){}}return e.sort(Y),e}function _(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Wi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==gi&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return Qr(r)}function L(t,e,n){return function(r,i,a,o,s){return i=_(i[0],e,n),t(r,i,a,o,s)}}function F(t,o,s,u,l,c,f,d,h){function p(t,e,n,r){t&&(n&&(t=L(t,n,r)),t.require=C.require,t.directiveName=O,(V===C||C.$$isolateScope)&&(t=re(t,{isolateScope:!0})),f.push(t)),e&&(n&&(e=L(e,n,r)),e.require=C.require,e.directiveName=O,(V===C||C.$$isolateScope)&&(e=re(e,{isolateScope:!0})),d.push(e))}function $(t,e,n,r){var i,o,s="data",u=!1,l=n;if(b(e)){if(o=e.match(g),e=e.substring(o[0].length),o[3]&&(o[1]?o[3]=null:o[1]=o[3]),"^"===o[1]?s="inheritedData":"^^"===o[1]&&(s="inheritedData",l=n.parent()),"?"===o[2]&&(u=!0),i=null,r&&"data"===s&&(i=r[e])&&(i=i.instance),i=i||l[s]("$"+e+"Controller"),!i&&!u)throw Wi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",e,t);return i||null}return ci(e)&&(i=[],a(e,function(e){i.push($(t,e,n,r))})),i}function w(t,e,i,u,l){function c(t,e,r){var i;return A(t)||(r=e,e=t,t=n),G&&(i=w),r||(r=G?k.parent():k),l(t,e,i,r,j)}var h,p,g,y,b,w,x,k,C;if(o===i?(C=s,k=s.$$element):(k=Qr(i),C=new oe(k,s)),V&&(b=e.$new(!0)),l&&(x=c,x.$$boundTransclude=l),P&&(S={},w={},a(P,function(t){var n,r={$scope:t===V||t.$$isolateScope?b:e,$element:k,$attrs:C,$transclude:x};y=t.controller,"@"==y&&(y=C[t.name]),n=v(y,r,!0,t.controllerAs),w[t.name]=n,G||k.data("$"+t.name+"Controller",n.instance),S[t.name]=n})),V){T.$$addScopeInfo(k,b,!0,!(q&&(q===V||q===V.$$originalDirective))),T.$$addScopeClass(k,!0);var O=S&&S[V.name],E=b;O&&O.identifier&&V.bindToController===!0&&(E=O.instance),a(b.$$isolateBindings=V.$$isolateBindings,function(t,n){var i,a,o,s,u=t.attrName,l=t.optional,c=t.mode;switch(c){case"@":C.$observe(u,function(t){E[n]=t}),C.$$observers[u].$$scope=e,C[u]&&(E[n]=r(C[u])(e));break;case"=":if(l&&!C[u])return;a=m(C[u]),s=a.literal?I:function(t,e){return t===e||t!==t&&e!==e},o=a.assign||function(){throw i=E[n]=a(e),Wi("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",C[u],V.name)},i=E[n]=a(e);var f=function(t){return s(t,E[n])||(s(t,i)?o(e,t=E[n]):E[n]=t),i=t};f.$stateful=!0;var d;d=t.collection?e.$watchCollection(C[u],f):e.$watch(m(C[u],f),null,a.literal),b.$on("$destroy",d);break;case"&":a=m(C[u]),E[n]=function(t){return a(e,t)}}})}for(S&&(a(S,function(t){t()}),S=null),h=0,p=f.length;p>h;h++)g=f[h],ae(g,g.isolateScope?b:e,k,C,g.require&&$(g.directiveName,g.require,k,w),x);var j=e;for(V&&(V.template||null===V.templateUrl)&&(j=b),t&&t(j,i.childNodes,n,l),h=d.length-1;h>=0;h--)g=d[h],ae(g,g.isolateScope?b:e,k,C,g.require&&$(g.directiveName,g.require,k,w),x)}h=h||{};for(var x,S,C,O,E,j,N,M=-Number.MAX_VALUE,P=h.controllerDirectives,V=h.newIsolateScopeDirective,q=h.templateDirective,D=h.nonTlbTranscludeDirective,F=!1,B=!1,G=h.hasElementTranscludeDirective,Y=s.$$element=Qr(o),K=c,Q=u,te=0,ne=t.length;ne>te;te++){C=t[te];var ie=C.$$start,se=C.$$end;if(ie&&(Y=_(o,ie,se)),E=n,M>C.priority)break;if((N=C.scope)&&(C.templateUrl||(y(N)?(Z("new/isolated scope",V||x,C,Y),V=C):Z("new/isolated scope",V,C,Y)),x=x||C),O=C.name,!C.templateUrl&&C.controller&&(N=C.controller,P=P||{},Z("'"+O+"' controller",P[O],C,Y),P[O]=C),(N=C.transclude)&&(F=!0,C.$$tlb||(Z("transclusion",D,C,Y),D=C),"element"==N?(G=!0,M=C.priority,E=Y,Y=s.$$element=Qr(e.createComment(" "+O+": "+s[O]+" ")),o=Y[0],ee(l,U(E),o),Q=T(E,u,M,K&&K.name,{nonTlbTranscludeDirective:D})):(E=Qr(we(o)).contents(),Y.empty(),Q=T(E,u))),C.template)if(B=!0,Z("template",q,C,Y),q=C,N=k(C.template)?C.template(Y,s):C.template,N=ce(N),C.replace){if(K=C,E=me(N)?[]:tn(X(C.templateNamespace,fi(N))),o=E[0],1!=E.length||o.nodeType!==gi)throw Wi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",O,"");ee(l,Y,o);var ue={$attr:{}},le=R(o,[],ue),fe=t.splice(te+1,t.length-(te+1));V&&H(le),t=t.concat(le).concat(fe),W(s,ue),ne=t.length}else Y.html(N);if(C.templateUrl)B=!0,Z("template",q,C,Y),q=C,C.replace&&(K=C),w=J(t.splice(te,t.length-te),Y,s,l,F&&Q,f,d,{controllerDirectives:P,newIsolateScopeDirective:V,templateDirective:q,nonTlbTranscludeDirective:D}),ne=t.length;else if(C.compile)try{j=C.compile(Y,s,Q),k(j)?p(null,j,ie,se):j&&p(j.pre,j.post,ie,se)}catch(de){i(de,z(Y))}C.terminal&&(w.terminal=!0,M=Math.max(M,C.priority))}return w.scope=x&&x.scope===!0,w.transcludeOnThisElement=F,w.elementTranscludeOnThisElement=G,w.templateOnThisElement=B,w.transclude=Q,h.hasElementTranscludeDirective=G,w}function H(t){for(var e=0,n=t.length;n>e;e++)t[e]=h(t[e],{$$isolateScope:!0})}function B(e,r,a,u,l,c,f){if(r===l)return null;var d=null;if(o.hasOwnProperty(r))for(var p,$=t.get(r+s),m=0,g=$.length;g>m;m++)try{p=$[m],(u===n||u>p.priority)&&-1!=p.restrict.indexOf(a)&&(c&&(p=h(p,{$$start:c,$$end:f})),e.push(p),d=p)
}catch(v){i(v)}return d}function G(e){if(o.hasOwnProperty(e))for(var n,r=t.get(e+s),i=0,a=r.length;a>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function W(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;a(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),a(e,function(e,a){"class"==a?(N(i,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==a?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==a.charAt(0)||t.hasOwnProperty(a)||(t[a]=e,r[a]=n[a])})}function J(t,e,n,r,i,o,s,l){var c,f,d=[],p=e[0],$=t.shift(),m=h($,{templateUrl:null,transclude:null,replace:null,$$originalDirective:$}),g=k($.templateUrl)?$.templateUrl(e,n):$.templateUrl,v=$.templateNamespace;return e.empty(),u(O.getTrustedResourceUrl(g)).then(function(u){var h,b,w,x;if(u=ce(u),$.replace){if(w=me(u)?[]:tn(X(v,fi(u))),h=w[0],1!=w.length||h.nodeType!==gi)throw Wi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$.name,g);b={$attr:{}},ee(r,e,h);var k=R(h,[],b);y($.scope)&&H(k),t=k.concat(t),W(n,b)}else h=p,e.html(u);for(t.unshift(m),c=F(t,h,n,i,e,$,o,s,l),a(r,function(t,n){t==h&&(r[n]=e[0])}),f=P(e[0].childNodes,i);d.length;){var S=d.shift(),C=d.shift(),A=d.shift(),O=d.shift(),E=e[0];if(!S.$$destroyed){if(C!==p){var j=C.className;l.hasElementTranscludeDirective&&$.replace||(E=we(h)),ee(A,Qr(C),E),N(Qr(E),j)}x=c.transcludeOnThisElement?D(S,c.transclude,O):O,c(f,S,E,r,x)}}d=null}),function(t,e,n,r,i){var a=i;e.$$destroyed||(d?d.push(e,n,r,a):(c.transcludeOnThisElement&&(a=D(e,c.transclude,i)),c(f,e,n,r,a)))}}function Y(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Z(t,e,n,r){if(e)throw Wi("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",e.name,n.name,t,z(r))}function K(t,e){var n=r(e,!0);n&&t.push({priority:0,compile:function(t){var e=t.parent(),r=!!e.length;return r&&T.$$addBindingClass(e),function(t,e){var i=e.parent();r||T.$$addBindingClass(i),T.$$addBindingInfo(i,n.expressions),t.$watch(n,function(t){e[0].nodeValue=t})}}})}function X(t,n){switch(t=Wr(t||"html")){case"svg":case"math":var r=e.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function Q(t,e){if("srcdoc"==e)return O.HTML;var n=V(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?O.RESOURCE_URL:void 0}function te(t,e,n,i,a){var o=Q(t,i);a=d[i]||a;var s=r(n,!0,o,a);if(s){if("multiple"===i&&"select"===V(t))throw Wi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",z(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var l=u.$$observers||(u.$$observers={});if(w.test(i))throw Wi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==n&&(s=c&&r(c,!0,o,a),n=c),s&&(u[i]=s(t),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function ee(t,n,r){var i,a,o=n[0],s=n.length,u=o.parentNode;if(t)for(i=0,a=t.length;a>i;i++)if(t[i]==o){t[i++]=r;for(var l=i,c=l+s-1,f=t.length;f>l;l++,c++)f>c?t[l]=t[c]:delete t[l];t.length-=s-1,t.context===o&&(t.context=r);break}u&&u.replaceChild(r,o);var d=e.createDocumentFragment();d.appendChild(o),Qr(r).data(Qr(o).data()),ti?(li=!0,ti.cleanData([o])):delete Qr.cache[o[Qr.expando]];for(var h=1,p=n.length;p>h;h++){var $=n[h];Qr($).remove(),d.appendChild($),delete n[h]}n[0]=r,n.length=1}function re(t,e){return f(function(){return t.apply(null,arguments)},t,e)}function ae(t,e,n,r,a,o){try{t(e,n,r,a,o)}catch(s){i(s,z(n))}}var oe=function(t,e){if(e){var n,r,i,a=Object.keys(e);for(n=0,r=a.length;r>n;n++)i=a[n],this[i]=e[i]}else this.$attr={};this.$$element=t};oe.prototype={$normalize:Xe,$addClass:function(t){t&&t.length>0&&E.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&E.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Qe(t,e);n&&n.length&&E.addClass(this.$$element,n);var r=Qe(e,t);r&&r.length&&E.removeClass(this.$$element,r)},$set:function(t,e,r,o){var s,u=this.$$element[0],l=De(u,t),c=Re(u,t),f=t;if(l?(this.$$element.prop(t,e),o=l):c&&(this[c]=e,f=c),this[t]=e,o?this.$attr[t]=o:(o=this.$attr[t],o||(this.$attr[t]=o=ne(t,"-"))),s=V(this.$$element),"a"===s&&"href"===t||"img"===s&&"src"===t)this[t]=e=j(e,"src"===t);else if("img"===s&&"srcset"===t){for(var d="",h=fi(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,$=/\s/.test(h)?p:/(,)/,m=h.split($),g=Math.floor(m.length/2),v=0;g>v;v++){var y=2*v;d+=j(fi(m[y]),!0),d+=" "+fi(m[y+1])}var b=fi(m[2*v]).split(/\s/);d+=j(fi(b[0]),!0),2===b.length&&(d+=" "+fi(b[1])),this[t]=e=d}r!==!1&&(null===e||e===n?this.$$element.removeAttr(o):this.$$element.attr(o,e));var w=this.$$observers;w&&a(w[f],function(t){try{t(e)}catch(n){i(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=le()),i=r[t]||(r[t]=[]);return i.push(e),S.$evalAsync(function(){!i.$$inter&&n.hasOwnProperty(t)&&e(n[t])}),function(){q(i,e)}}};var se=r.startSymbol(),ue=r.endSymbol(),ce="{{"==se||"}}"==ue?$:function(t){return t.replace(/\{\{/g,se).replace(/}}/g,ue)},fe=/^ngAttr[A-Z]/;return T.$$addBindingInfo=x?function(t,e){var n=t.data("$binding")||[];ci(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:p,T.$$addBindingClass=x?function(t){N(t,"ng-binding")}:p,T.$$addScopeInfo=x?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:p,T.$$addScopeClass=x?function(t,e){N(t,e?"ng-isolate-scope":"ng-scope")}:p,T}]}function Xe(t){return $e(t.replace(Ji,""))}function Qe(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var a=0;a<r.length;a++){for(var o=r[a],s=0;s<i.length;s++)if(o==i[s])continue t;n+=(n.length>0?" ":"")+o}return n}function tn(t){t=Qr(t);var e=t.length;if(1>=e)return t;for(;e--;){var n=t[e];n.nodeType===yi&&ri.call(t,e,1)}return t}function en(){var t={},e=!1,i=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(e,n){oe(e,"controller"),y(e)?f(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(a,o){function s(t,e,n,i){if(!t||!y(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}return function(r,u,l,c){var d,h,p,$;if(l=l===!0,c&&b(c)&&($=c),b(r)){if(h=r.match(i),!h)throw Yi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);p=h[1],$=$||h[3],r=t.hasOwnProperty(p)?t[p]:se(u.$scope,p,!0)||(e?se(o,p,!0):n),ae(r,p,!0)}if(l){var m=(ci(r)?r[r.length-1]:r).prototype;return d=Object.create(m||null),$&&s(u,$,d,p||r.name),f(function(){return a.invoke(r,d,u,p),d},{instance:d,identifier:$})}return d=a.instantiate(r,u,p),$&&s(u,$,d,p||r.name),d}}]}function nn(){this.$get=["$window",function(t){return Qr(t.document)}]}function rn(){this.$get=["$log",function(t){return function(){t.error.apply(t,arguments)}}]}function an(t,e){if(b(t)){var n=t.replace(ta,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Zi)||on(n))&&(t=B(n))}}return t}function on(t){var e=t.match(Xi);return e&&Qi[e[0]].test(t)}function sn(t){var e,n,r,i=le();return t?(a(t.split("\n"),function(t){r=t.indexOf(":"),e=Wr(fi(t.substr(0,r))),n=fi(t.substr(r+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i):i}function un(t){var e=y(t)?t:n;return function(n){if(e||(e=sn(t)),n){var r=e[Wr(n)];return void 0===r&&(r=null),r}return e}}function ln(t,e,n,r){return k(r)?r(t,e,n):(a(r,function(r){t=r(t,e,n)}),t)}function cn(t){return t>=200&&300>t}function fn(){var t=this.defaults={transformResponse:[an],transformRequest:[function(t){return!y(t)||O(t)||j(t)||E(t)?t:H(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:R(Ki),put:R(Ki),patch:R(Ki)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},e=!1;this.useApplyAsync=function(t){return v(t)?(e=!!t,this):e};var i=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(o,u,l,c,d,h){function p(e){function i(t){var e=f({},t);return e.data=t.data?ln(t.data,t.headers,t.status,u.transformResponse):t.data,cn(t.status)?e:d.reject(e)}function o(t){var e,n={};return a(t,function(t,r){k(t)?(e=t(),null!=e&&(n[r]=e)):n[r]=t}),n}function s(e){var n,r,i,a=t.headers,s=f({},e.headers);a=f({},a.common,a[Wr(e.method)]);t:for(n in a){r=Wr(n);for(i in s)if(Wr(i)===r)continue t;s[n]=a[n]}return o(s)}if(!si.isObject(e))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",e);var u=f({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse},e);u.headers=s(e),u.method=Yr(u.method);var l=function(e){var r=e.headers,o=ln(e.data,un(r),n,e.transformRequest);return g(o)&&a(r,function(t,e){"content-type"===Wr(e)&&delete r[e]}),g(e.withCredentials)&&!g(t.withCredentials)&&(e.withCredentials=t.withCredentials),w(e,o).then(i,i)},c=[l,n],h=d.when(u);for(a(A,function(t){(t.request||t.requestError)&&c.unshift(t.request,t.requestError),(t.response||t.responseError)&&c.push(t.response,t.responseError)});c.length;){var p=c.shift(),$=c.shift();h=h.then(p,$)}return h.success=function(t){return h.then(function(e){t(e.data,e.status,e.headers,u)}),h},h.error=function(t){return h.then(null,function(e){t(e.data,e.status,e.headers,u)}),h},h}function $(){a(arguments,function(t){p[t]=function(e,n){return p(f(n||{},{method:t,url:e}))}})}function m(){a(arguments,function(t){p[t]=function(e,n,r){return p(f(r||{},{method:t,url:e,data:n}))}})}function w(r,i){function a(t,n,r,i){function a(){s(n,t,r,i)}h&&(cn(t)?h.put(x,[t,n,sn(r),i]):h.remove(x)),e?c.$applyAsync(a):(a(),c.$$phase||c.$apply())}function s(t,e,n,i){e=Math.max(e,0),(cn(e)?m.resolve:m.reject)({data:t,status:e,headers:un(n),config:r,statusText:i})}function l(t){s(t.data,t.status,R(t.headers()),t.statusText)}function f(){var t=p.pendingRequests.indexOf(r);-1!==t&&p.pendingRequests.splice(t,1)}var h,$,m=d.defer(),b=m.promise,w=r.headers,x=S(r.url,r.params);if(p.pendingRequests.push(r),b.then(f,f),!r.cache&&!t.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(h=y(r.cache)?r.cache:y(t.cache)?t.cache:C),h&&($=h.get(x),v($)?T($)?$.then(l,l):ci($)?s($[1],$[0],R($[2]),$[3]):s($,200,{},"OK"):h.put(x,b)),g($)){var k=ar(r.url)?u.cookies()[r.xsrfCookieName||t.xsrfCookieName]:n;k&&(w[r.xsrfHeaderName||t.xsrfHeaderName]=k),o(r.method,x,i,a,w,r.timeout,r.withCredentials,r.responseType)}return b}function S(t,e){if(!e)return t;var n=[];return s(e,function(t,e){null===t||g(t)||(ci(t)||(t=[t]),a(t,function(t){y(t)&&(t=x(t)?t.toISOString():H(t)),n.push(Z(e)+"="+Z(t))}))}),n.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+n.join("&")),t}var C=l("$http"),A=[];return a(i,function(t){A.unshift(b(t)?h.get(t):h.invoke(t))}),p.pendingRequests=[],$("get","delete","head","jsonp"),m("post","put","patch"),p.defaults=t,p}]}function dn(){return new t.XMLHttpRequest}function hn(){this.$get=["$browser","$window","$document",function(t,e,n){return pn(t,dn,t.defer,e.angular.callbacks,n[0])}]}function pn(t,e,r,i,o){function s(t,e,n){var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=t,r.async=!0,a=function(t){Ai(r,"load",a),Ai(r,"error",a),o.body.removeChild(r),r=null;var s=-1,u="unknown";t&&("load"!==t.type||i[e].called||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},Ci(r,"load",a),Ci(r,"error",a),o.body.appendChild(r),a}return function(o,u,l,c,f,d,h,$){function m(){b&&b(),w&&w.abort()}function g(e,i,a,o,s){S!==n&&r.cancel(S),b=w=null,e(i,a,o,s),t.$$completeOutstandingRequest(p)}if(t.$$incOutstandingRequestCount(),u=u||t.url(),"jsonp"==Wr(o)){var y="_"+(i.counter++).toString(36);i[y]=function(t){i[y].data=t,i[y].called=!0};var b=s(u.replace("JSON_CALLBACK","angular.callbacks."+y),y,function(t,e){g(c,t,i[y].data,"",e),i[y]=p})}else{var w=e();w.open(o,u,!0),a(f,function(t,e){v(t)&&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&&(n=e?200:"file"==ir(u).protocol?404:0),g(c,n,e,w.getAllResponseHeaders(),t)};var x=function(){g(c,-1,null,null,"")};if(w.onerror=x,w.onabort=x,h&&(w.withCredentials=!0),$)try{w.responseType=$}catch(k){if("json"!==$)throw k}w.send(l||null)}if(d>0)var S=r(m,d);else T(d)&&d.then(m)}}function $n(){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 a(t){return"\\\\\\"+t}function o(a,o,d,h){function p(n){return n.replace(l,t).replace(c,e)}function $(t){try{return t=j(t),h&&!v(t)?t:N(t)}catch(e){var n=ea("interr","Can't interpolate: {0}\n{1}",a,e.toString());r(n)}}h=!!h;for(var m,y,b,w=0,x=[],S=[],C=a.length,A=[],O=[];C>w;){if(-1==(m=a.indexOf(t,w))||-1==(y=a.indexOf(e,m+s))){w!==C&&A.push(p(a.substring(w)));break}w!==m&&A.push(p(a.substring(w,m))),b=a.substring(m+s,y),x.push(b),S.push(n(b,$)),w=y+u,O.push(A.length),A.push("")}if(d&&A.length>1)throw ea("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",a);if(!o||x.length){var E=function(t){for(var e=0,n=x.length;n>e;e++){if(h&&g(t[e]))return;A[O[e]]=t[e]}return A.join("")},j=function(t){return d?i.getTrusted(d,t):i.valueOf(t)},N=function(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=H(t)}return t};return f(function(t){var e=0,n=x.length,i=new Array(n);try{for(;n>e;e++)i[e]=S[e](t);return E(i)}catch(o){var s=ea("interr","Can't interpolate: {0}\n{1}",a,o.toString());r(s)}},{exp:a,expressions:x,$$watchDelegate:function(t,e,n){var r;return t.$watchGroup(S,function(n,i){var a=E(n);k(e)&&e.call(this,a,n!==i?r:a,t),r=a},n)}})}}var s=t.length,u=e.length,l=new RegExp(t.replace(/./g,a),"g"),c=new RegExp(e.replace(/./g,a),"g");return o.startSymbol=function(){return t},o.endSymbol=function(){return e},o}]}function mn(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,r){function i(i,o,s,u){var l=e.setInterval,c=e.clearInterval,f=0,d=v(u)&&!u,h=(d?r:n).defer(),p=h.promise;return s=v(s)?s:0,p.then(null,null,i),p.$$intervalId=l(function(){h.notify(f++),s>0&&f>=s&&(h.resolve(f),c(p.$$intervalId),delete a[p.$$intervalId]),d||t.$apply()},o),a[p.$$intervalId]=h,p}var a={};return i.cancel=function(t){return t&&t.$$intervalId in a?(a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0):!1},i}]}function gn(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(t){return 1===t?"one":"other"}}}}function vn(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=Y(e[n]);return e.join("/")}function yn(t,e){var n=ir(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=d(n.port)||ra[n.protocol]||null}function bn(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=ir(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=W(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function wn(t,e){return 0===e.indexOf(t)?e.substr(t.length):void 0}function xn(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function kn(t){return t.replace(/(#.+)|#$/,"$1")}function Sn(t){return t.substr(0,xn(t).lastIndexOf("/")+1)}function Cn(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function An(t,e){this.$$html5=!0,e=e||"";var r=Sn(t);yn(t,this),this.$$parse=function(t){var e=wn(r,t);if(!b(e))throw ia("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,r);bn(e,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=J(this.$$search),e=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=vn(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=r+this.$$url.substr(1)},this.$$parseLinkUrl=function(i,a){if(a&&"#"===a[0])return this.hash(a.slice(1)),!0;var o,s,u;return(o=wn(t,i))!==n?(s=o,u=(o=wn(e,o))!==n?r+(wn("/",o)||o):t+s):(o=wn(r,i))!==n?u=r+o:r==i+"/"&&(u=r),u&&this.$$parse(u),!!u}}function On(t,e){var n=Sn(t);yn(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var a,o=wn(t,r)||wn(n,r);"#"===o.charAt(0)?(a=wn(e,o),g(a)&&(a=o)):a=this.$$html5?o:"",bn(a,this),this.$$path=i(this.$$path,a,t),this.$$compose()},this.$$compose=function(){var n=J(this.$$search),r=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=vn(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=t+(this.$$url?e+this.$$url:"")},this.$$parseLinkUrl=function(e){return xn(t)==xn(e)?(this.$$parse(e),!0):!1}}function En(t,e){this.$$html5=!0,On.apply(this,arguments);var n=Sn(t);this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,o;return t==xn(r)?a=r:(o=wn(n,r))?a=t+e+o:n===r+"/"&&(a=n),a&&this.$$parse(a),!!a},this.$$compose=function(){var n=J(this.$$search),r=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=vn(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=t+e+