index.min.js 164 KB

12345678
  1. !function(e,t,n){"use strict";function r(e,t){return t=t||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(e?e+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+i;return n<o.length?ge(o[n]):e}),s+="\nhttp://errors.angularjs.org/1.4.0/"+(e?e+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(ge(o[r]));return new t(s)}}function i(e){if(null==e||A(e))return!1;var t="length"in Object(e)&&e.length;return e.nodeType===Gr&&t?!0:x(e)||_r(e)||0===t||"number"==typeof t&&t>0&&t-1 in e}function o(e,t,n){var r,a;if(e)if(E(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r,e);else if(_r(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;a>r;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(w(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)wr.call(e,r)&&t.call(n,e[r],r,e);return e}function a(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function s(e){return function(t,n){e(n,t)}}function u(){return++Ir}function c(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function l(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;o>i;++i){var a=t[i];if(b(a)||E(a))for(var s=Object.keys(a),u=0,f=s.length;f>u;u++){var p=s[u],h=a[p];n&&b(h)?(b(e[p])||(e[p]=_r(h)?[]:{}),l(e[p],[h],!0)):e[p]=h}}return c(e,r),e}function f(e){return l(e,Mr.call(arguments,1),!1)}function p(e){return l(e,Mr.call(arguments,1),!0)}function h(e){return parseInt(e,10)}function d(e,t){return f(Object.create(e),t)}function $(){}function m(e){return e}function v(e){return function(){return e}}function g(e){return"undefined"==typeof e}function y(e){return"undefined"!=typeof e}function b(e){return null!==e&&"object"==typeof e}function w(e){return null!==e&&"object"==typeof e&&!jr(e)}function x(e){return"string"==typeof e}function S(e){return"number"==typeof e}function C(e){return"[object Date]"===Nr.call(e)}function E(e){return"function"==typeof e}function k(e){return"[object RegExp]"===Nr.call(e)}function A(e){return e&&e.window===e}function O(e){return e&&e.$evalAsync&&e.$watch}function M(e){return"[object File]"===Nr.call(e)}function T(e){return"[object FormData]"===Nr.call(e)}function V(e){return"[object Blob]"===Nr.call(e)}function N(e){return"boolean"==typeof e}function j(e){return e&&E(e.then)}function P(e){return qr.test(Nr.call(e))}function D(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function I(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function R(e){return br(e.nodeName||e[0]&&e[0].nodeName)}function _(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function q(e,t,n,r){function i(e,t,n,r,i){var o=q(t,null,r,i);b(t)&&(r.push(t),i.push(o)),n[e]=o}if(A(e)||O(e))throw Pr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(P(t))throw Pr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t){if(e===t)throw Pr("cpi","Can't copy! Source and destination are identical.");if(n=n||[],r=r||[],b(e)){var a=n.indexOf(e);if(-1!==a)return r[a];n.push(e),r.push(t)}var s,u;if(_r(e)){t.length=0;for(var l=0;l<e.length;l++)s=q(e[l],null,n,r),b(e[l])&&(n.push(e[l]),r.push(s)),t.push(s)}else{var f=t.$$hashKey;if(_r(t)?t.length=0:o(t,function(e,n){delete t[n]}),w(e))for(u in e)i(u,e[u],t,n,r);else if(e&&"function"==typeof e.hasOwnProperty)for(u in e)e.hasOwnProperty(u)&&i(u,e[u],t,n,r);else for(u in e)wr.call(e,u)&&i(u,e[u],t,n,r);c(t,f)}}else if(t=e,e)if(_r(e))t=q(e,[],n,r);else if(P(e))t=new e.constructor(e);else if(C(e))t=new Date(e.getTime());else if(k(e))t=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]),t.lastIndex=e.lastIndex;else if(b(e)){var p=Object.create(jr(e));t=q(e,p,n,r)}return t}function L(e,t){if(_r(e)){t=t||[];for(var n=0,r=e.length;r>n;n++)t[n]=e[n]}else if(b(e)){t=t||{};for(var i in e)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=e[i])}return t||e}function U(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var r,i,o,a=typeof e,s=typeof t;if(a==s&&"object"==a){if(!_r(e)){if(C(e))return C(t)?U(e.getTime(),t.getTime()):!1;if(k(e))return k(t)?e.toString()==t.toString():!1;if(O(e)||O(t)||A(e)||A(t)||_r(t)||C(t)||k(t))return!1;o=$e();for(i in e)if("$"!==i.charAt(0)&&!E(e[i])){if(!U(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!(i in o||"$"===i.charAt(0)||t[i]===n||E(t[i])))return!1;return!0}if(!_r(t))return!1;if((r=e.length)==t.length){for(i=0;r>i;i++)if(!U(e[i],t[i]))return!1;return!0}}return!1}function F(e,t,n){return e.concat(Mr.call(t,n))}function B(e,t){return Mr.call(e,t||0)}function H(e,t){var n=arguments.length>2?B(arguments,2):[];return!E(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,F(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function z(e,r){var i=r;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=n:A(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":O(r)&&(i="$SCOPE"),i}function W(e,t){return"undefined"==typeof e?n:(S(t)||(t=t?2:null),JSON.stringify(e,z,t))}function G(e){return x(e)?JSON.parse(e):e}function J(e,t){var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Y(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function K(e,t,n){n=n?-1:1;var r=J(t,e.getTimezoneOffset());return Y(e,n*(r-e.getTimezoneOffset()))}function Z(e){e=kr(e).clone();try{e.empty()}catch(t){}var n=kr("<div>").append(e).html();try{return e[0].nodeType===Yr?br(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+br(t)})}catch(t){return br(n)}}function X(e){try{return decodeURIComponent(e)}catch(t){}}function Q(e){var t,n,r={};return o((e||"").split("&"),function(e){if(e&&(t=e.replace(/\+/g,"%20").split("="),n=X(t[0]),y(n))){var i=y(t[1])?X(t[1]):!0;wr.call(r,n)?_r(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function ee(e){var t=[];return o(e,function(e,n){_r(e)?o(e,function(e){t.push(ne(n,!0)+(e===!0?"":"="+ne(e,!0)))}):t.push(ne(n,!0)+(e===!0?"":"="+ne(e,!0)))}),t.length?t.join("&"):""}function te(e){return ne(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ne(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function re(e,t){var n,r,i=Hr.length;for(r=0;i>r;++r)if(n=Hr[r]+t,x(n=e.getAttribute(n)))return n;return null}function ie(e,t){var n,r,i={};o(Hr,function(t){var i=t+"app";!n&&e.hasAttribute&&e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))}),o(Hr,function(t){var i,o=t+"app";!n&&(i=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(i.strictDi=null!==re(n,"strict-di"),t(n,r?[r]:[],i))}function oe(n,r,i){b(i)||(i={});var a={strictDi:!1};i=f(a,i);var s=function(){if(n=kr(n),n.injector()){var e=n[0]===t?"document":Z(n);throw Pr("btstrpd","App Already Bootstrapped with this Element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),r.unshift("ng");var o=Ke(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},u=/^NG_ENABLE_DEBUG_INFO!/,c=/^NG_DEFER_BOOTSTRAP!/;return e&&u.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(u,"")),e&&!c.test(e.name)?s():(e.name=e.name.replace(c,""),Dr.resumeBootstrap=function(e){return o(e,function(e){r.push(e)}),s()},void(E(Dr.resumeDeferredBootstrap)&&Dr.resumeDeferredBootstrap()))}function ae(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function se(e){var t=Dr.element(e).injector();if(!t)throw Pr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function ue(e,t){return t=t||"_",e.replace(zr,function(e,n){return(n?t:"")+e.toLowerCase()})}function ce(){var t;if(!Wr){var r=Br();Ar=e.jQuery,y(r)&&(Ar=null===r?n:e[r]),Ar&&Ar.fn.on?(kr=Ar,f(Ar.fn,{scope:hi.scope,isolateScope:hi.isolateScope,controller:hi.controller,injector:hi.injector,inheritedData:hi.inheritedData}),t=Ar.cleanData,Ar.cleanData=function(e){var n;if(Rr)Rr=!1;else for(var r,i=0;null!=(r=e[i]);i++)n=Ar._data(r,"events"),n&&n.$destroy&&Ar(r).triggerHandler("$destroy");t(e)}):kr=ke,Dr.element=kr,Wr=!0}}function le(e,t,n){if(!e)throw Pr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function fe(e,t,n){return n&&_r(e)&&(e=e[e.length-1]),le(E(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function pe(e,t){if("hasOwnProperty"===e)throw Pr("badname","hasOwnProperty is not a valid {0} name",t)}function he(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&E(e)?H(o,e):e}function de(e){var t=e[0],n=e[e.length-1],r=[t];do{if(t=t.nextSibling,!t)break;r.push(t)}while(t!==n);return kr(r)}function $e(){return Object.create(null)}function me(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),c}}if(!o)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 t=[],i=[],s=[],u=e("$injector","invoke","push",i),c={_invokeQueue:t,_configBlocks:i,_runBlocks:s,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:u,run:function(e){return s.push(e),this}};return a&&u(a),c})}})}function ve(e){var t=[];return JSON.stringify(e,function(e,n){if(n=z(e,n),b(n)){if(t.indexOf(n)>=0)return"<<already seen>>";t.push(n)}return n})}function ge(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?ve(e):e}function ye(t){f(t,{bootstrap:oe,copy:q,extend:f,merge:p,equals:U,element:kr,forEach:o,injector:Ke,noop:$,bind:H,toJson:W,fromJson:G,identity:m,isUndefined:g,isDefined:y,isString:x,isFunction:E,isObject:b,isNumber:S,isElement:D,isArray:_r,version:Qr,isDate:C,lowercase:br,uppercase:xr,callbacks:{counter:0},getTestability:se,$$minErr:r,$$csp:Fr,reloadWithDebugInfo:ae}),Or=me(e);try{Or("ngLocale")}catch(n){Or("ngLocale",[]).provider("$locale",Tt)}Or("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:mn}),e.provider("$compile",st).directive({a:co,input:Ao,textarea:Ao,form:$o,script:ya,select:xa,style:Ca,option:Sa,ngBind:To,ngBindHtml:No,ngBindTemplate:Vo,ngClass:Po,ngClassEven:Io,ngClassOdd:Do,ngCloak:Ro,ngController:_o,ngForm:mo,ngHide:ha,ngIf:Uo,ngInclude:Fo,ngInit:Ho,ngNonBindable:ia,ngPluralize:ua,ngRepeat:ca,ngShow:pa,ngStyle:da,ngSwitch:$a,ngSwitchWhen:ma,ngSwitchDefault:va,ngOptions:sa,ngTransclude:ga,ngModel:ta,ngList:zo,ngChange:jo,pattern:ka,ngPattern:ka,required:Ea,ngRequired:Ea,minlength:Oa,ngMinlength:Oa,maxlength:Aa,ngMaxlength:Aa,ngValue:Mo,ngModelOptions:ra}).directive({ngInclude:Bo}).directive(lo).directive(qo),e.provider({$anchorScroll:Ze,$animate:Oi,$$animateQueue:Ai,$$AnimateRunner:ki,$browser:it,$cacheFactory:ot,$controller:pt,$document:ht,$exceptionHandler:dt,$filter:Tn,$interpolate:Ot,$interval:Mt,$http:Ct,$httpParamSerializer:mt,$httpParamSerializerJQLike:vt,$httpBackend:kt,$location:Ht,$log:zt,$parse:ln,$rootScope:$n,$q:fn,$$q:pn,$sce:bn,$sceDelegate:yn,$sniffer:wn,$templateCache:at,$templateRequest:xn,$$testability:Sn,$timeout:Cn,$window:An,$$rAF:dn,$$asyncCallback:nt,$$jqLite:ze,$$HashMap:vi,$$cookieReader:Mn})}])}function be(){return++ti}function we(e){return e.replace(ii,function(e,t,n,r){return r?n.toUpperCase():n}).replace(oi,"Moz$1")}function xe(e){return!ci.test(e)}function Se(e){var t=e.nodeType;return t===Gr||!t||t===Zr}function Ce(e,t){var n,r,i,a,s=t.createDocumentFragment(),u=[];if(xe(e))u.push(t.createTextNode(e));else{for(n=n||s.appendChild(t.createElement("div")),r=(li.exec(e)||["",""])[1].toLowerCase(),i=pi[r]||pi._default,n.innerHTML=i[1]+e.replace(fi,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;u=F(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(u,function(e){s.appendChild(e)}),s}function Ee(e,n){n=n||t;var r;return(r=ui.exec(e))?[n.createElement(r[1])]:(r=Ce(e,n))?r.childNodes:[]}function ke(e){if(e instanceof ke)return e;var t;if(x(e)&&(e=Lr(e),t=!0),!(this instanceof ke)){if(t&&"<"!=e.charAt(0))throw si("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new ke(e)}t?Ie(this,Ee(e)):Ie(this,e)}function Ae(e){return e.cloneNode(!0)}function Oe(e,t){if(t||Te(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;i>r;r++)Te(n[r])}function Me(e,t,n,r){if(y(r))throw si("offargs","jqLite#off() does not support the `selector` argument");var i=Ve(e),a=i&&i.events,s=i&&i.handle;if(s)if(t)o(t.split(" "),function(t){if(y(n)){var r=a[t];if(_(r||[],n),r&&r.length>0)return}ri(e,t,s),delete a[t]});else for(t in a)"$destroy"!==t&&ri(e,t,s),delete a[t]}function Te(e,t){var r=e.ng339,i=r&&ei[r];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Me(e)),delete ei[r],e.ng339=n}}function Ve(e,t){var r=e.ng339,i=r&&ei[r];return t&&!i&&(e.ng339=r=be(),i=ei[r]={events:{},data:{},handle:n}),i}function Ne(e,t,n){if(Se(e)){var r=y(n),i=!r&&t&&!b(t),o=!t,a=Ve(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];f(s,t)}}}function je(e,t){return e.getAttribute?(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function Pe(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",Lr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Lr(t)+" "," ")))})}function De(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=Lr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Lr(n))}}function Ie(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;n>r;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Re(e,t){return _e(e,"$"+(t||"ngController")+"Controller")}function _e(e,t,r){e.nodeType==Zr&&(e=e.documentElement);for(var i=_r(t)?t:[t];e;){for(var o=0,a=i.length;a>o;o++)if((r=kr.data(e,i[o]))!==n)return r;e=e.parentNode||e.nodeType===Xr&&e.host}}function qe(e){for(Oe(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Le(e,t){t||Oe(e);var n=e.parentNode;n&&n.removeChild(e)}function Ue(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):kr(n).on("load",t)}function Fe(e,t){var n=di[t.toLowerCase()];return n&&$i[R(e)]&&n}function Be(e,t){var n=e.nodeName;return("INPUT"===n||"TEXTAREA"===n)&&mi[t]}function He(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(g(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0},o>1&&(i=L(i));for(var s=0;o>s;s++)n.isImmediatePropagationStopped()||i[s].call(e,n)}};return n.elem=e,n}function ze(){this.$get=function(){return f(ke,{hasClass:function(e,t){return e.attr&&(e=e[0]),je(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),De(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Pe(e,t)}})}}function We(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"==r||"object"==r&&null!==e?e.$$hashKey=r+":"+(t||u)():r+":"+e}function Ge(e,t){if(t){var n=0;this.nextUid=function(){return++n}}o(e,this.put,this)}function Je(e){var t=e.toString().replace(wi,""),n=t.match(gi);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Ye(e,t,n){var r,i,a,s;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw x(n)&&n||(n=e.name||Je(e)),xi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=e.toString().replace(wi,""),a=i.match(gi),o(a[1].split(yi),function(e){e.replace(bi,function(e,t,n){r.push(n)})})}e.$inject=r}}else _r(e)?(s=e.length-1,fe(e[s],"fn"),r=e.slice(0,s)):fe(e,"fn",!0);return r}function Ke(e,t){function r(e){return function(t,n){return b(t)?void o(t,s(e)):e(t,n)}}function i(e,t){if(pe(e,"service"),(E(t)||_r(t))&&(t=k.instantiate(t)),!t.$get)throw xi("pget","Provider '{0}' must define $get factory method.",e);return C[e+y]=t}function a(e,t){return function(){var n=O.invoke(t,this);if(g(n))throw xi("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function u(e,t,n){return i(e,{$get:n!==!1?a(e,t):t})}function c(e,t){return u(e,["$injector",function(e){return e.instantiate(t)}])}function l(e,t){return u(e,v(t),!1)}function f(e,t){pe(e,"constant"),C[e]=t,A[e]=t}function p(e,t){var n=k.get(e+y),r=n.$get;n.$get=function(){var e=O.invoke(r,n);return O.invoke(t,null,{$delegate:e})}}function h(e){var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;n>t;t++){var r=e[t],i=k.get(r[0]);i[r[1]].apply(i,r[2])}}if(!S.get(e)){S.put(e,!0);try{x(e)?(t=Or(e),n=n.concat(h(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):E(e)?n.push(k.invoke(e)):_r(e)?n.push(k.invoke(e)):fe(e,"module")}catch(i){throw _r(e)&&(e=e[e.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),xi("modulerr","Failed to instantiate module {0} due to:\n{1}",e,i.stack||i.message||i)}}}),n}function d(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===m)throw xi("cdep","Circular dependency found: {0}",t+" <- "+w.join(" <- "));return e[t]}try{return w.unshift(t),e[t]=m,e[t]=n(t,r)}catch(i){throw e[t]===m&&delete e[t],i}finally{w.shift()}}function i(e,n,i,o){"string"==typeof i&&(o=i,i=null);var a,s,u,c=[],l=Ke.$$annotate(e,t,o);for(s=0,a=l.length;a>s;s++){if(u=l[s],"string"!=typeof u)throw xi("itkn","Incorrect injection token! Expected service name as string, got {0}",u);c.push(i&&i.hasOwnProperty(u)?i[u]:r(u,o))}return _r(e)&&(e=e[a]),e.apply(n,c)}function o(e,t,n){var r=Object.create((_r(e)?e[e.length-1]:e).prototype||null),o=i(e,r,t,n);return b(o)||E(o)?o:r}return{invoke:i,instantiate:o,get:r,annotate:Ke.$$annotate,has:function(t){return C.hasOwnProperty(t+y)||e.hasOwnProperty(t)}}}t=t===!0;var m={},y="Provider",w=[],S=new Ge([],!0),C={$provide:{provider:r(i),factory:r(u),service:r(c),value:r(l),constant:r(f),decorator:p}},k=C.$injector=d(C,function(e,t){throw Dr.isString(t)&&w.push(t),xi("unpr","Unknown provider: {0}",w.join(" <- "))}),A={},O=A.$injector=d(A,function(e,t){var r=k.get(e+y,t);return O.invoke(r.$get,r,n,e)});return o(h(e),function(e){O.invoke(e||$)}),O}function Ze(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){return"a"===R(e)?(t=e,!0):void 0}),t}function o(){var e=s.yOffset;if(E(e))e=e();else if(D(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else S(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=x(e)?e:n.hash();var t;e?(t=u.getElementById(e))?a(t):(t=i(u.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var u=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){(e!==t||""!==e)&&Ue(function(){r.$evalAsync(s)})}),s}]}function Xe(e,t){return e||t?e?t?(_r(e)&&(e=e.join(" ")),_r(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function Qe(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Ci)return n}}function et(e){x(e)&&(e=e.split(" "));var t=$e();return o(e,function(e){e.length&&(t[e]=!0)}),t}function tt(e){return b(e)?e:{}}function nt(){this.$get=["$$rAF","$timeout",function(e,t){return e.supported?function(t){return e(t)}:function(e){return t(e,0,!1)}}]}function rt(e,t,n,r){function i(e){try{e.apply(null,B(arguments,1))}finally{if(y--,0===y)for(;b.length;)try{b.pop()()}catch(t){n.error(t)}}}function a(e){var t=e.indexOf("#");return-1===t?"":e.substr(t+1)}function s(){c(),l()}function u(){try{return h.state}catch(e){}}function c(){w=u(),w=g(w)?null:w,U(w,O)&&(w=O),O=w}function l(){(S!==f.url()||x!==w)&&(S=f.url(),x=w,o(k,function(e){e(f.url(),w)}))}var f=this,p=(t[0],e.location),h=e.history,d=e.setTimeout,m=e.clearTimeout,v={};f.isMock=!1;var y=0,b=[];f.$$completeOutstandingRequest=i,f.$$incOutstandingRequestCount=function(){y++},f.notifyWhenNoOutstandingRequests=function(e){0===y?e():b.push(e)};var w,x,S=p.href,C=t.find("base"),E=null;c(),x=w,f.url=function(t,n,i){if(g(i)&&(i=null),p!==e.location&&(p=e.location),h!==e.history&&(h=e.history),t){var o=x===i;if(S===t&&(!r.history||o))return f;var s=S&&Dt(S)===Dt(t);return S=t,x=i,!r.history||s&&o?(s||(E=t),n?p.replace(t):s?p.hash=a(t):p.href=t):(h[n?"replaceState":"pushState"](i,"",t),c(),x=w),f}return E||p.href.replace(/%27/g,"'")},f.state=function(){return w};var k=[],A=!1,O=null;f.onUrlChange=function(t){return A||(r.history&&kr(e).on("popstate",s),kr(e).on("hashchange",s),A=!0),k.push(t),t},f.$$applicationDestroyed=function(){kr(e).off("hashchange popstate",s)},f.$$checkUrlChange=l,f.baseHref=function(){var e=C.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},f.defer=function(e,t){var n;return y++,n=d(function(){delete v[n],i(e)},t||0),v[n]=!0,n},f.defer.cancel=function(e){return v[e]?(delete v[e],m(e),i($),!0):!1}}function it(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new rt(e,r,t,n)}]}function ot(){this.$get=function(){function e(e,n){function i(e){e!=p&&(h?h==e&&(h=e.n):h=e,o(e.n,e.p),o(e,p),p=e,p.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},n,{id:e}),u={},c=n&&n.capacity||Number.MAX_VALUE,l={},p=null,h=null;return t[e]={put:function(e,t){if(!g(t)){if(c<Number.MAX_VALUE){var n=l[e]||(l[e]={key:e});i(n)}return e in u||a++,u[e]=t,a>c&&this.remove(h.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;t==p&&(p=t.p),t==h&&(h=t.n),o(t.n,t.p),delete l[e]}delete u[e],a--},removeAll:function(){u={},a=0,l={},p=h=null},destroy:function(){u=null,s=null,l=null,delete t[e]},info:function(){return f({},s,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function at(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function st(e,r){function i(e,t,n){var r=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i={};return o(e,function(e,o){var a=e.match(r);if(!a)throw Mi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o}}),i}function a(e,t){var n={isolateScope:null,bindToController:null};if(b(e.scope)&&(e.bindToController===!0?(n.bindToController=i(e.scope,t,!0),n.isolateScope={}):n.isolateScope=i(e.scope,t,!1)),b(e.bindToController)&&(n.bindToController=i(e.bindToController,t,!0)),b(n.bindToController)){var r=e.controller,o=e.controllerAs;if(!r)throw Mi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!ft(r,o))throw Mi("noident","Cannot bind to controller without identifier for directive '{0}'.",t)}return n}function u(e){var t=e.charAt(0);if(!t||t!==br(t))throw Mi("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Mi("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}var c={},l="Directive",p=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,h=/(([\w\-]+)(?:\:([^;]+))?;?)/,g=I("ngSrc,ngSrcset,src,srcset"),w=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,S=/^(on[a-z]+|formaction)$/;this.directive=function k(t,n){return pe(t,"directive"),x(t)?(u(t),le(n,"directiveFactory"),c.hasOwnProperty(t)||(c[t]=[],e.factory(t+l,["$injector","$exceptionHandler",function(e,n){var r=[];return o(c[t],function(i,o){try{var s=e.invoke(i);E(s)?s={compile:v(s)}:!s.compile&&s.link&&(s.compile=v(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||t,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA";var u=s.$$bindings=a(s,s.name);b(u.isolateScope)&&(s.$$isolateBindings=u.isolateScope),r.push(s)}catch(c){n(c)}}),r}])),c[t].push(n)):o(t,s(k)),this},this.aHrefSanitizationWhitelist=function(e){return y(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()};var C=!0;this.debugInfoEnabled=function(e){return y(e)?(C=e,this):C},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(e,r,i,a,s,u,v,y,k,A,M){function T(e,t){try{e.addClass(t)}catch(n){}}function V(e,t,n,r,i){e instanceof kr||(e=kr(e)),o(e,function(t,n){t.nodeType==Yr&&t.nodeValue.match(/\S+/)&&(e[n]=kr(t).wrap("<span></span>").parent()[0])});var a=j(e,t,e,n,r,i);V.$$addScopeClass(e);var s=null;return function(t,n,r){le(t,"scope"),r=r||{};var i=r.parentBoundTranscludeFn,o=r.transcludeControllers,u=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),s||(s=N(u));var c;if(c="html"!==s?kr(X(s,kr("<div>").append(e).html())):n?hi.clone.call(e):e,o)for(var l in o)c.data("$"+l+"Controller",o[l].instance);return V.$$addScopeInfo(c,t),n&&n(c,t),a&&a(t,c,c,i),c}}function N(e){var t=e&&e[0];return t&&"foreignobject"!==R(t)&&t.toString().match(/SVG/)?"svg":"html"}function j(e,t,r,i,o,a){function s(e,r,i,o){var a,s,u,c,l,f,p,h,m;if(d){var v=r.length;for(m=new Array(v),l=0;l<$.length;l+=3)p=$[l],m[p]=r[p]}else m=r;for(l=0,f=$.length;f>l;)if(u=m[$[l++]],a=$[l++],s=$[l++],a){if(a.scope){c=e.$new(),V.$$addScopeInfo(kr(u),c);var g=a.$$destroyBindings;g&&(a.$$destroyBindings=null,c.$on("$destroyed",g))}else c=e;h=a.transcludeOnThisElement?P(e,a.transclude,o,a.elementTranscludeOnThisElement):!a.templateOnThisElement&&o?o:!o&&t?P(e,t):null,a(s,c,u,i,h,a)}else s&&s(e,u.childNodes,n,o)}for(var u,c,l,f,p,h,d,$=[],m=0;m<e.length;m++)u=new oe,c=D(e[m],[],u,0===m?i:n,o),l=c.length?L(c,e[m],u,t,r,null,[],[],a):null,l&&l.scope&&V.$$addScopeClass(u.$$element),p=l&&l.terminal||!(f=e[m].childNodes)||!f.length?null:j(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||p)&&($.push(m,l,p),h=!0,d=d||l),a=null;return h?s:null}function P(e,t,n,r){var i=function(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})};return i}function D(e,t,n,r,i){var o,a,s=e.nodeType,u=n.$attr;switch(s){case Gr:H(t,ut(R(e)),"E",r,i);for(var c,l,f,d,$,m,v=e.attributes,g=0,y=v&&v.length;y>g;g++){var w=!1,S=!1;c=v[g],l=c.name,$=Lr(c.value),d=ut(l),(m=fe.test(d))&&(l=l.replace(Ti,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var C=d.replace(/(Start|End)$/,"");z(C)&&d===C+"Start"&&(w=l,S=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6)),f=ut(l.toLowerCase()),u[f]=l,(m||!n.hasOwnProperty(f))&&(n[f]=$,Fe(e,f)&&(n[f]=!0)),ee(e,t,$,f,m),H(t,f,"A",r,i,w,S)}if(a=e.className,b(a)&&(a=a.animVal),x(a)&&""!==a)for(;o=h.exec(a);)f=ut(o[2]),H(t,f,"C",r,i)&&(n[f]=Lr(o[3])),a=a.substr(o.index+o[0].length);break;case Yr:K(t,e.nodeValue);break;case Kr:try{o=p.exec(e.nodeValue),o&&(f=ut(o[1]),H(t,f,"M",r,i)&&(n[f]=Lr(o[2])))}catch(E){}}return t.sort(J),t}function I(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Mi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==Gr&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return kr(r)}function q(e,t,n){return function(r,i,o,a,s){return i=I(i[0],t,n),e(r,i,o,a,s)}}function L(e,r,o,a,s,c,l,f,p){function h(e,t,n,r){e&&(n&&(e=q(e,n,r)),e.require=g.require,e.directiveName=y,(T===g||g.$$isolateScope)&&(e=ne(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=q(t,n,r)),t.require=g.require,t.directiveName=y,(T===g||g.$$isolateScope)&&(t=ne(t,{isolateScope:!0})),f.push(t))}function d(e,t,n,r){var i;if(x(t)){var o=t.match(w),a=t.substring(o[0].length),s=o[1]||o[3],u="?"===o[2];if("^^"===s?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){var c="$"+a+"Controller";i=s?n.inheritedData(c):n.data(c)}if(!i&&!u)throw Mi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,e)}else if(_r(t)){i=[];for(var l=0,f=t.length;f>l;l++)i[l]=d(e,t[l],n,r)}return i||null}function $(e,t,n,r,i,o){var a=$e();for(var s in r){var c=r[s],l={$scope:c===T||c.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=c.controller;"@"==f&&(f=t[c.name]);var p=u(f,l,!0,c.controllerAs);a[c.name]=p,_||e.data("$"+c.name+"Controller",p.instance)}return a}function m(e,t,i,a,s,u){function c(e,t,r){var i;return O(e)||(r=t,t=e,e=n),_&&(i=w),r||(r=_?S.parent():S),s(e,t,i,r,P)}var p,h,m,y,b,w,x,S,C;if(r===i?(C=o,S=o.$$element):(S=kr(i),C=new oe(S,o)),T&&(b=t.$new(!0)),s&&(x=c,x.$$boundTransclude=s),M&&(w=$(S,C,x,M,b,t)),T&&(V.$$addScopeInfo(S,b,!0,!(N&&(N===T||N===T.$$originalDirective))),V.$$addScopeClass(S,!0),b.$$isolateBindings=T.$$isolateBindings,ie(t,C,b,b.$$isolateBindings,T,b)),w){var E,k,A=T||v;A&&w[A.name]&&(E=A.$$bindings.bindToController,y=w[A.name],y&&y.identifier&&E&&(k=y,u.$$destroyBindings=ie(t,C,y.instance,E,A)));for(p in w){y=w[p];var j=y();j!==y.instance&&(y.instance=j,S.data("$"+g.name+"Controller",j),y===k&&(u.$$destroyBindings(),u.$$destroyBindings=ie(t,C,j,E,A)))}}for(p=0,h=l.length;h>p;p++)m=l[p],re(m,m.isolateScope?b:t,S,C,m.require&&d(m.directiveName,m.require,S,w),x);var P=t;for(T&&(T.template||null===T.templateUrl)&&(P=b),e&&e(P,i.childNodes,n,s),p=f.length-1;p>=0;p--)m=f[p],re(m,m.isolateScope?b:t,S,C,m.require&&d(m.directiveName,m.require,S,w),x)}p=p||{};for(var v,g,y,S,C,k,A=-Number.MAX_VALUE,M=p.controllerDirectives,T=p.newIsolateScopeDirective,N=p.templateDirective,j=p.nonTlbTranscludeDirective,P=!1,R=!1,_=p.hasElementTranscludeDirective,L=o.$$element=kr(r),U=c,H=a,z=0,J=e.length;J>z;z++){g=e[z];var K=g.$$start,Q=g.$$end;if(K&&(L=I(r,K,Q)),S=n,A>g.priority)break;if((k=g.scope)&&(g.templateUrl||(b(k)?(Y("new/isolated scope",T||v,g,L),T=g):Y("new/isolated scope",T,g,L)),v=v||g),y=g.name,!g.templateUrl&&g.controller&&(k=g.controller,M=M||$e(),Y("'"+y+"' controller",M[y],g,L),M[y]=g),(k=g.transclude)&&(P=!0,g.$$tlb||(Y("transclusion",j,g,L),j=g),"element"==k?(_=!0,A=g.priority,S=L,L=o.$$element=kr(t.createComment(" "+y+": "+o[y]+" ")),r=L[0],te(s,B(S),r),H=V(S,a,A,U&&U.name,{nonTlbTranscludeDirective:j})):(S=kr(Ae(r)).contents(),L.empty(),H=V(S,a))),g.template)if(R=!0,Y("template",N,g,L),
  2. N=g,k=E(g.template)?g.template(L,o):g.template,k=ce(k),g.replace){if(U=g,S=xe(k)?[]:lt(X(g.templateNamespace,Lr(k))),r=S[0],1!=S.length||r.nodeType!==Gr)throw Mi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",y,"");te(s,L,r);var ee={$attr:{}},ae=D(r,[],ee),se=e.splice(z+1,e.length-(z+1));T&&F(ae),e=e.concat(ae).concat(se),W(o,ee),J=e.length}else L.html(k);if(g.templateUrl)R=!0,Y("template",N,g,L),N=g,g.replace&&(U=g),m=G(e.splice(z,e.length-z),L,o,s,P&&H,l,f,{controllerDirectives:M,newIsolateScopeDirective:T,templateDirective:N,nonTlbTranscludeDirective:j}),J=e.length;else if(g.compile)try{C=g.compile(L,o,H),E(C)?h(null,C,K,Q):C&&h(C.pre,C.post,K,Q)}catch(ue){i(ue,Z(L))}g.terminal&&(m.terminal=!0,A=Math.max(A,g.priority))}return m.scope=v&&v.scope===!0,m.transcludeOnThisElement=P,m.elementTranscludeOnThisElement=_,m.templateOnThisElement=R,m.transclude=H,p.hasElementTranscludeDirective=_,m}function F(e){for(var t=0,n=e.length;n>t;t++)e[t]=d(e[t],{$$isolateScope:!0})}function H(t,r,o,a,s,u,f){if(r===s)return null;var p=null;if(c.hasOwnProperty(r))for(var h,$=e.get(r+l),m=0,v=$.length;v>m;m++)try{h=$[m],(a===n||a>h.priority)&&-1!=h.restrict.indexOf(o)&&(u&&(h=d(h,{$$start:u,$$end:f})),t.push(h),p=h)}catch(g){i(g)}return p}function z(t){if(c.hasOwnProperty(t))for(var n,r=e.get(t+l),i=0,o=r.length;o>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function W(e,t){var n=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?(T(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])})}function G(e,t,n,r,i,s,u,c){var l,f,p=[],h=t[0],$=e.shift(),m=d($,{templateUrl:null,transclude:null,replace:null,$$originalDirective:$}),v=E($.templateUrl)?$.templateUrl(t,n):$.templateUrl,g=$.templateNamespace;return t.empty(),a(k.getTrustedResourceUrl(v)).then(function(a){var d,y,w,x;if(a=ce(a),$.replace){if(w=xe(a)?[]:lt(X(g,Lr(a))),d=w[0],1!=w.length||d.nodeType!==Gr)throw Mi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$.name,v);y={$attr:{}},te(r,t,d);var S=D(d,[],y);b($.scope)&&F(S),e=S.concat(e),W(n,y)}else d=h,t.html(a);for(e.unshift(m),l=L(e,d,n,i,t,$,s,u,c),o(r,function(e,n){e==d&&(r[n]=t[0])}),f=j(t[0].childNodes,i);p.length;){var C=p.shift(),E=p.shift(),k=p.shift(),A=p.shift(),O=t[0];if(!C.$$destroyed){if(E!==h){var M=E.className;c.hasElementTranscludeDirective&&$.replace||(O=Ae(d)),te(k,kr(E),O),T(kr(O),M)}x=l.transcludeOnThisElement?P(C,l.transclude,A):A,l(f,C,O,r,x,l)}}p=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(p?p.push(t,n,r,o):(l.transcludeOnThisElement&&(o=P(t,l.transclude,i)),l(f,t,n,r,o,l)))}}function J(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function Y(e,t,n,r){if(t)throw Mi("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",t.name,n.name,e,Z(r))}function K(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:function(e){var t=e.parent(),r=!!t.length;return r&&V.$$addBindingClass(t),function(e,t){var i=t.parent();r||V.$$addBindingClass(i),V.$$addBindingInfo(i,n.expressions),e.$watch(n,function(e){t[0].nodeValue=e})}}})}function X(e,n){switch(e=br(e||"html")){case"svg":case"math":var r=t.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function Q(e,t){if("srcdoc"==t)return k.HTML;var n=R(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?k.RESOURCE_URL:void 0}function ee(e,t,n,i,o){var a=Q(e,i);o=g[i]||o;var s=r(n,!0,a,o);if(s){if("multiple"===i&&"select"===R(e))throw Mi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(e));t.push({priority:100,compile:function(){return{pre:function(e,t,u){var c=u.$$observers||(u.$$observers={});if(S.test(i))throw Mi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=u[i];l!==n&&(s=l&&r(l,!0,a,o),n=l),s&&(u[i]=s(e),(c[i]||(c[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!=t?u.$updateClass(e,t):u.$set(i,e)}))}}}})}}function te(e,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;o>i;i++)if(e[i]==a){e[i++]=r;for(var c=i,l=c+s-1,f=e.length;f>c;c++,l++)f>l?e[c]=e[l]:delete e[c];e.length-=s-1,e.context===a&&(e.context=r);break}u&&u.replaceChild(r,a);var p=t.createDocumentFragment();p.appendChild(a),kr(r).data(kr(a).data()),Ar?(Rr=!0,Ar.cleanData([a])):delete kr.cache[a[kr.expando]];for(var h=1,d=n.length;d>h;h++){var $=n[h];kr($).remove(),p.appendChild($),delete n[h]}n[0]=r,n.length=1}function ne(e,t){return f(function(){return e.apply(null,arguments)},e,t)}function re(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(s){i(s,Z(n))}}function ie(e,t,n,i,a,u){var c;o(i,function(i,o){var u,l,f,p,h=i.attrName,d=i.optional,m=i.mode;switch(m){case"@":t.$observe(h,function(e){n[o]=e}),t.$$observers[h].$$scope=e,t[h]&&(n[o]=r(t[h])(e));break;case"=":if(d&&!t[h])return;l=s(t[h]),p=l.literal?U:function(e,t){return e===t||e!==e&&t!==t},f=l.assign||function(){throw u=n[o]=l(e),Mi("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",t[h],a.name)},u=n[o]=l(e);var v=function(t){return p(t,n[o])||(p(t,u)?f(e,t=n[o]):n[o]=t),u=t};v.$stateful=!0;var g;g=i.collection?e.$watchCollection(t[h],v):e.$watch(s(t[h],v),null,l.literal),c=c||[],c.push(g);break;case"&":if(!t.hasOwnProperty(h)&&d)break;if(l=s(t[h]),l===$&&d)break;n[o]=function(t){return l(e,t)}}});var l=c?function(){for(var e=0,t=c.length;t>e;++e)c[e]()}:$;return u&&l!==$?(u.$on("$destroy",l),$):l}var oe=function(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;r>n;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e};oe.prototype={$normalize:ut,$addClass:function(e){e&&e.length>0&&A.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&A.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=ct(e,t);n&&n.length&&A.addClass(this.$$element,n);var r=ct(t,e);r&&r.length&&A.removeClass(this.$$element,r)},$set:function(e,t,r,a){var s,u=this.$$element[0],c=Fe(u,e),l=Be(u,e),f=e;if(c?(this.$$element.prop(e,t),a=c):l&&(this[l]=t,f=l),this[e]=t,a?this.$attr[e]=a:(a=this.$attr[e],a||(this.$attr[e]=a=ue(e,"-"))),s=R(this.$$element),"a"===s&&"href"===e||"img"===s&&"src"===e)this[e]=t=M(t,"src"===e);else if("img"===s&&"srcset"===e){for(var p="",h=Lr(t),d=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,$=/\s/.test(h)?d:/(,)/,m=h.split($),v=Math.floor(m.length/2),g=0;v>g;g++){var y=2*g;p+=M(Lr(m[y]),!0),p+=" "+Lr(m[y+1])}var b=Lr(m[2*g]).split(/\s/);p+=M(Lr(b[0]),!0),2===b.length&&(p+=" "+Lr(b[1])),this[e]=t=p}r!==!1&&(null===t||t===n?this.$$element.removeAttr(a):this.$$element.attr(a,t));var w=this.$$observers;w&&o(w[f],function(e){try{e(t)}catch(n){i(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=$e()),i=r[e]||(r[e]=[]);return i.push(t),v.$evalAsync(function(){!i.$$inter&&n.hasOwnProperty(e)&&t(n[e])}),function(){_(i,t)}}};var ae=r.startSymbol(),se=r.endSymbol(),ce="{{"==ae||"}}"==se?m:function(e){return e.replace(/\{\{/g,ae).replace(/}}/g,se)},fe=/^ngAttr[A-Z]/;return V.$$addBindingInfo=C?function(e,t){var n=e.data("$binding")||[];_r(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:$,V.$$addBindingClass=C?function(e){T(e,"ng-binding")}:$,V.$$addScopeInfo=C?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:$,V.$$addScopeClass=C?function(e,t){T(e,t?"ng-isolate-scope":"ng-scope")}:$,V}]}function ut(e){return we(e.replace(Ti,""))}function ct(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function lt(e){e=kr(e);var t=e.length;if(1>=t)return e;for(;t--;){var n=e[t];n.nodeType===Kr&&Tr.call(e,t,1)}return e}function ft(e,t){if(t&&x(t))return t;if(x(e)){var n=Ni.exec(e);if(n)return n[3]}}function pt(){var e={},t=!1;this.register=function(t,n){pe(t,"controller"),b(t)?f(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(i,o){function a(e,t,n,i){if(!e||!b(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,s,u,c){var l,p,h,d;if(u=u===!0,c&&x(c)&&(d=c),x(r)){if(p=r.match(Ni),!p)throw Vi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);h=p[1],d=d||p[3],r=e.hasOwnProperty(h)?e[h]:he(s.$scope,h,!0)||(t?he(o,h,!0):n),fe(r,h,!0)}if(u){var $=(_r(r)?r[r.length-1]:r).prototype;l=Object.create($||null),d&&a(s,d,l,h||r.name);var m;return m=f(function(){var e=i.invoke(r,l,s,h);return e!==l&&(b(e)||E(e))&&(l=e,d&&a(s,d,l,h||r.name)),l},{instance:l,identifier:d})}return l=i.instantiate(r,s,h),d&&a(s,d,l,h||r.name),l}}]}function ht(){this.$get=["$window",function(e){return kr(e.document)}]}function dt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function $t(e){return b(e)?C(e)?e.toISOString():W(e):e}function mt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||g(e)||(_r(e)?o(e,function(e,r){t.push(ne(n)+"="+ne($t(e)))}):t.push(ne(n)+"="+ne($t(e))))}),t.join("&")}}}function vt(){this.$get=function(){return function(e){function t(e,r,i){null===e||g(e)||(_r(e)?o(e,function(e){t(e,r+"[]")}):b(e)&&!C(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):n.push(ne(r)+"="+ne($t(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function gt(e,t){if(x(e)){var n=e.replace(Ri,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(ji)||yt(n))&&(e=G(n))}}return e}function yt(e){var t=e.match(Di);return t&&Ii[t[0]].test(e)}function bt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=$e();return x(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(br(Lr(e.substr(0,n))),Lr(e.substr(n+1)))}):b(e)&&o(e,function(e,n){t(br(n),Lr(e))}),r}function wt(e){var t;return function(n){if(t||(t=bt(e)),n){var r=t[br(n)];return void 0===r&&(r=null),r}return t}}function xt(e,t,n,r){return E(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function St(e){return e>=200&&300>e}function Ct(){var e=this.defaults={transformResponse:[gt],transformRequest:[function(e){return!b(e)||M(e)||V(e)||T(e)?e:W(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:L(Pi),put:L(Pi),patch:L(Pi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},t=!1;this.useApplyAsync=function(e){return y(e)?(t=!!e,this):t};var i=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,u,c,l,p){function h(t){function i(e){var t=f({},e);return t.data=e.data?xt(e.data,e.headers,e.status,u.transformResponse):e.data,St(e.status)?t:l.reject(t)}function a(e,t){var n,r={};return o(e,function(e,i){E(e)?(n=e(t),null!=n&&(r[i]=n)):r[i]=e}),r}function s(t){var n,r,i,o=e.headers,s=f({},t.headers);o=f({},o.common,o[br(t.method)]);e:for(n in o){r=br(n);for(i in s)if(br(i)===r)continue e;s[n]=o[n]}return a(s,L(t))}if(!Dr.isObject(t))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",t);var u=f({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},t);u.headers=s(t),u.method=xr(u.method),u.paramSerializer=x(u.paramSerializer)?p.get(u.paramSerializer):u.paramSerializer;var c=function(t){var r=t.headers,a=xt(t.data,wt(r),n,t.transformRequest);return g(a)&&o(r,function(e,t){"content-type"===br(t)&&delete r[t]}),g(t.withCredentials)&&!g(e.withCredentials)&&(t.withCredentials=e.withCredentials),m(t,a).then(i,i)},h=[c,n],d=l.when(u);for(o(S,function(e){(e.request||e.requestError)&&h.unshift(e.request,e.requestError),(e.response||e.responseError)&&h.push(e.response,e.responseError)});h.length;){var $=h.shift(),v=h.shift();d=d.then($,v)}return d.success=function(e){return fe(e,"fn"),d.then(function(t){e(t.data,t.status,t.headers,u)}),d},d.error=function(e){return fe(e,"fn"),d.then(null,function(t){e(t.data,t.status,t.headers,u)}),d},d}function d(e){o(arguments,function(e){h[e]=function(t,n){return h(f({},n||{},{method:e,url:t}))}})}function $(e){o(arguments,function(e){h[e]=function(t,n,r){return h(f({},r||{},{method:e,url:t,data:n}))}})}function m(r,i){function o(e,n,r,i){function o(){u(n,e,r,i)}d&&(St(e)?d.put(C,[e,n,bt(r),i]):d.remove(C)),t?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function u(e,t,n,i){t=Math.max(t,0),(St(t)?m.resolve:m.reject)({data:e,status:t,headers:wt(n),config:r,statusText:i})}function f(e){u(e.data,e.status,L(e.headers()),e.statusText)}function p(){var e=h.pendingRequests.indexOf(r);-1!==e&&h.pendingRequests.splice(e,1)}var d,$,m=l.defer(),x=m.promise,S=r.headers,C=v(r.url,r.paramSerializer(r.params));if(h.pendingRequests.push(r),x.then(p,p),!r.cache&&!e.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(d=b(r.cache)?r.cache:b(e.cache)?e.cache:w),d&&($=d.get(C),y($)?j($)?$.then(f,f):_r($)?u($[1],$[0],L($[2]),$[3]):u($,200,{},"OK"):d.put(C,x)),g($)){var E=kn(r.url)?s()[r.xsrfCookieName||e.xsrfCookieName]:n;E&&(S[r.xsrfHeaderName||e.xsrfHeaderName]=E),a(r.method,C,i,o,S,r.timeout,r.withCredentials,r.responseType)}return x}function v(e,t){return t.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+t),e}var w=u("$http");e.paramSerializer=x(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var S=[];return o(i,function(e){S.unshift(x(e)?p.get(e):p.invoke(e))}),h.pendingRequests=[],d("get","delete","head","jsonp"),$("post","put","patch"),h.defaults=e,h}]}function Et(){return new e.XMLHttpRequest}function kt(){this.$get=["$browser","$window","$document",function(e,t,n){return At(e,Et,e.defer,t.angular.callbacks,n[0])}]}function At(e,t,r,i,a){function s(e,t,n){var r=a.createElement("script"),o=null;return r.type="text/javascript",r.src=e,r.async=!0,o=function(e){ri(r,"load",o),ri(r,"error",o),a.body.removeChild(r),r=null;var s=-1,u="unknown";e&&("load"!==e.type||i[t].called||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},ni(r,"load",o),ni(r,"error",o),a.body.appendChild(r),o}return function(a,u,c,l,f,p,h,d){function m(){b&&b(),w&&w.abort()}function v(t,i,o,a,s){C!==n&&r.cancel(C),b=w=null,t(i,o,a,s),e.$$completeOutstandingRequest($)}if(e.$$incOutstandingRequestCount(),u=u||e.url(),"jsonp"==br(a)){var g="_"+(i.counter++).toString(36);i[g]=function(e){i[g].data=e,i[g].called=!0};var b=s(u.replace("JSON_CALLBACK","angular.callbacks."+g),g,function(e,t){v(l,e,i[g].data,"",t),i[g]=$})}else{var w=t();w.open(a,u,!0),o(f,function(e,t){y(e)&&w.setRequestHeader(t,e)}),w.onload=function(){var e=w.statusText||"",t="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=t?200:"file"==En(u).protocol?404:0),v(l,n,t,w.getAllResponseHeaders(),e)};var x=function(){v(l,-1,null,null,"")};if(w.onerror=x,w.onabort=x,h&&(w.withCredentials=!0),d)try{w.responseType=d}catch(S){if("json"!==d)throw S}w.send(c)}if(p>0)var C=r(m,p);else j(p)&&p.then(m)}}function Ot(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(p,e).replace(h,t)}function s(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=W(e)}return e}function u(o,u,p,h){function d(e){try{return e=O(e),h&&!y(e)?e:s(e)}catch(t){r(_i.interr(o,t))}}h=!!h;for(var $,m,v,b=0,w=[],x=[],S=o.length,C=[],k=[];S>b;){if(-1==($=o.indexOf(e,b))||-1==(m=o.indexOf(t,$+c))){b!==S&&C.push(a(o.substring(b)));break}b!==$&&C.push(a(o.substring(b,$))),v=o.substring($+c,m),w.push(v),x.push(n(v,d)),b=m+l,k.push(C.length),C.push("")}if(p&&C.length>1&&_i.throwNoconcat(o),!u||w.length){var A=function(e){for(var t=0,n=w.length;n>t;t++){if(h&&g(e[t]))return;C[k[t]]=e[t]}return C.join("")},O=function(e){return p?i.getTrusted(p,e):i.valueOf(e)};return f(function(e){var t=0,n=w.length,i=new Array(n);try{for(;n>t;t++)i[t]=x[t](e);return A(i)}catch(a){r(_i.interr(o,a))}},{exp:o,expressions:w,$$watchDelegate:function(e,t){var n;return e.$watchGroup(x,function(r,i){var o=A(r);E(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var c=e.length,l=t.length,p=new RegExp(e.replace(/./g,o),"g"),h=new RegExp(t.replace(/./g,o),"g");return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function Mt(){this.$get=["$rootScope","$window","$q","$$q",function(e,t,n,r){function i(i,a,s,u){var c=arguments.length>4,l=c?B(arguments,4):[],f=t.setInterval,p=t.clearInterval,h=0,d=y(u)&&!u,$=(d?r:n).defer(),m=$.promise;return s=y(s)?s:0,m.then(null,null,c?function(){i.apply(null,l)}:i),m.$$intervalId=f(function(){$.notify(h++),s>0&&h>=s&&($.resolve(h),p(m.$$intervalId),delete o[m.$$intervalId]),d||e.$apply()},a),o[m.$$intervalId]=$,m}var o={};return i.cancel=function(e){return e&&e.$$intervalId in o?(o[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0):!1},i}]}function Tt(){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",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(e){return 1===e?"one":"other"}}}}function Vt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=te(t[n]);return t.join("/")}function Nt(e,t){var n=En(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=h(n.port)||Li[n.protocol]||null}function jt(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=En(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=Q(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Pt(e,t){return 0===t.indexOf(e)?t.substr(e.length):void 0}function Dt(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function It(e){return e.replace(/(#.+)|#$/,"$1")}function Rt(e){return e.substr(0,Dt(e).lastIndexOf("/")+1)}function _t(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function qt(e,t){this.$$html5=!0,t=t||"";var r=Rt(e);Nt(e,this),this.$$parse=function(e){var t=Pt(r,e);if(!x(t))throw Ui("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,r);jt(t,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ee(this.$$search),t=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Vt(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=r+this.$$url.substr(1)},this.$$parseLinkUrl=function(i,o){if(o&&"#"===o[0])return this.hash(o.slice(1)),!0;var a,s,u;return(a=Pt(e,i))!==n?(s=a,u=(a=Pt(t,a))!==n?r+(Pt("/",a)||a):e+s):(a=Pt(r,i))!==n?u=r+a:r==i+"/"&&(u=r),u&&this.$$parse(u),!!u}}function Lt(e,t){var n=Rt(e);Nt(e,this),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o,a=Pt(e,r)||Pt(n,r);"#"===a.charAt(0)?(o=Pt(t,a),g(o)&&(o=a)):o=this.$$html5?a:"",jt(o,this),this.$$path=i(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var n=ee(this.$$search),r=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Vt(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+(this.$$url?t+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return Dt(e)==Dt(t)?(this.$$parse(t),!0):!1}}function Ut(e,t){this.$$html5=!0,Lt.apply(this,arguments);var n=Rt(e);this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e==Dt(r)?o=r:(a=Pt(n,r))?o=e+t+a:n===r+"/"&&(o=n),o&&this.$$parse(o),!!o},this.$$compose=function(){var n=ee(this.$$search),r=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Vt(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+t+this.$$url}}function Ft(e){return function(){return this[e]}}function Bt(e,t){return function(n){return g(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Ht(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(e){return N(e)?(t.enabled=e,this):b(e)?(N(e.enabled)&&(t.enabled=e.enabled),N(e.requireBase)&&(t.requireBase=e.requireBase),N(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=c.url(),o=c.$$state;try{r.url(e,t,n),c.$$state=r.state()}catch(a){throw c.url(i),c.$$state=o,a}}function u(e,t){n.$broadcast("$locationChangeSuccess",c.absUrl(),e,c.$$state,t)}var c,l,f,p=r.baseHref(),h=r.url();if(t.enabled){if(!p&&t.requireBase)throw Ui("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=_t(h)+(p||"/"),l=i.history?qt:Ut}else f=Dt(h),l=Lt;c=new l(f,"#"+e),c.$$parseLinkUrl(h,h),c.$$state=r.state();var d=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=kr(e.target);"a"!==R(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)&&"[object SVGAnimatedString]"===s.toString()&&(s=En(s.animVal).href),d.test(s)||!s||i.attr("target")||e.isDefaultPrevented()||c.$$parseLinkUrl(s,u)&&(e.preventDefault(),c.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),It(c.absUrl())!=It(h)&&r.url(c.absUrl(),!0);var $=!0;return r.onUrlChange(function(e,t){n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;c.$$parse(e),c.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,c.absUrl()===e&&(r?(c.$$parse(i),c.$$state=o,s(i,!1,o)):($=!1,u(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){var e=It(r.url()),t=It(c.absUrl()),o=r.state(),a=c.$$replace,l=e!==t||c.$$html5&&i.history&&o!==c.$$state;($||l)&&($=!1,n.$evalAsync(function(){var t=c.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,c.$$state,o).defaultPrevented;c.absUrl()===t&&(r?(c.$$parse(e),c.$$state=o):(l&&s(t,a,o===c.$$state?null:c.$$state),u(e,o)))})),c.$$replace=!1}),c}]}function zt(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||$,a=!1;try{a=!!i.apply}catch(s){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Wt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw Bi("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Gt(e,t){if(e){if(e.constructor===e)throw Bi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw Bi("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw Bi("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw Bi("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function Jt(e,t){if(e){if(e.constructor===e)throw Bi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===Hi||e===zi||e===Wi)throw Bi("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function Yt(e,t){return"undefined"!=typeof e?e:t}function Kt(e,t){return"undefined"==typeof e?t:"undefined"==typeof t?e:e+t}function Zt(e,t){var n=e(t);return!n.$stateful}function Xt(e,t){var n,r;switch(e.type){case Ki.Program:n=!0,o(e.body,function(e){Xt(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case Ki.Literal:e.constant=!0,e.toWatch=[];break;case Ki.UnaryExpression:Xt(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Ki.BinaryExpression:Xt(e.left,t),Xt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Ki.LogicalExpression:Xt(e.left,t),Xt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Ki.ConditionalExpression:Xt(e.test,t),Xt(e.alternate,t),Xt(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Ki.Identifier:e.constant=!1,e.toWatch=[e];break;case Ki.MemberExpression:Xt(e.object,t),e.computed&&Xt(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case Ki.CallExpression:n=e.filter?Zt(t,e.callee.name):!1,r=[],o(e.arguments,function(e){Xt(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&Zt(t,e.callee.name)?r:[e];break;case Ki.AssignmentExpression:Xt(e.left,t),Xt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Ki.ArrayExpression:n=!0,r=[],o(e.elements,function(e){Xt(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case Ki.ObjectExpression:n=!0,r=[],o(e.properties,function(e){Xt(e.value,t),n=n&&e.value.constant,e.value.constant||r.push.apply(r,e.value.toWatch)}),e.constant=n,e.toWatch=r;break;case Ki.ThisExpression:e.constant=!1,e.toWatch=[]}}function Qt(e){if(1==e.length){var t=e[0].expression,r=t.toWatch;return 1!==r.length?r:r[0]!==t?r:n}}function en(e){return e.type===Ki.Identifier||e.type===Ki.MemberExpression}function tn(e){return 1===e.body.length&&en(e.body[0].expression)?{type:Ki.AssignmentExpression,left:e.body[0].expression,right:{type:Ki.NGValueParameter},operator:"="}:void 0}function nn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Ki.Literal||e.body[0].expression.type===Ki.ArrayExpression||e.body[0].expression.type===Ki.ObjectExpression)}function rn(e){return e.constant}function on(e,t){this.astBuilder=e,this.$filter=t}function an(e,t){this.astBuilder=e,this.$filter=t}function sn(e,t,n,r){Gt(e,r);for(var i,o=t.split("."),a=0;o.length>1;a++){i=Wt(o.shift(),r);var s=Gt(e[i],r);s||(s={},e[i]=s),e=s}return i=Wt(o.shift(),r),Gt(e[i],r),e[i]=n,n}function un(e){return"constructor"==e}function cn(e){return E(e.valueOf)?e.valueOf():Xi.call(e)}function ln(){var e=$e(),t=$e();this.$get=["$filter","$sniffer",function(r,i){function a(e,t){return null==e||null==t?e===t:"object"==typeof e&&(e=cn(e),"object"==typeof e)?!1:e===t||e!==e&&t!==t}function s(e,t,r,i,o){var s,u=i.inputs;if(1===u.length){var c=a;return u=u[0],e.$watch(function(e){var t=u(e);return a(t,c)||(s=i(e,n,n,[t]),c=t&&cn(t)),s},t,r,o)}for(var l=[],f=[],p=0,h=u.length;h>p;p++)l[p]=a,f[p]=null;return e.$watch(function(e){for(var t=!1,r=0,o=u.length;o>r;r++){var c=u[r](e);(t||(t=!a(c,l[r])))&&(f[r]=c,l[r]=c&&cn(c))}return t&&(s=i(e,n,n,f)),s},t,r,o)}function u(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,E(t)&&t.apply(this,arguments),y(e)&&r.$$postDigest(function(){y(o)&&i()})},n)}function c(e,t,n,r){function i(e){var t=!0;return o(e,function(e){y(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return r(e)},function(e,n,r){s=e,E(t)&&t.call(this,e,n,r),i(e)&&r.$$postDigest(function(){i(s)&&a()})},n)}function l(e,t,n,r){var i;return i=e.$watch(function(e){return r(e)},function(e,n,r){E(t)&&t.apply(this,arguments),i()},n)}function f(e,t){if(!t)return e;var n=e.$$watchDelegate,r=n!==c&&n!==u,i=r?function(n,r,i,o){var a=e(n,r,i,o);return t(a,n,r)}:function(n,r,i,o){var a=e(n,r,i,o),s=t(a,n,r);return y(a)?s:a};return e.$$watchDelegate&&e.$$watchDelegate!==s?i.$$watchDelegate=e.$$watchDelegate:t.$stateful||(i.$$watchDelegate=s,i.inputs=e.inputs?e.inputs:[e]),i}var p={csp:i.csp,expensiveChecks:!1},h={csp:i.csp,expensiveChecks:!0};return function(n,i,o){var a,d,m;switch(typeof n){case"string":n=n.trim(),m=n;var v=o?t:e;if(a=v[m],!a){":"===n.charAt(0)&&":"===n.charAt(1)&&(d=!0,n=n.substring(2));var g=o?h:p,y=new Yi(g),b=new Zi(y,r,g);a=b.parse(n),a.constant?a.$$watchDelegate=l:d?a.$$watchDelegate=a.literal?c:u:a.inputs&&(a.$$watchDelegate=s),v[m]=a}return f(a,i);case"function":return f(n,i);default:return $}}}]}function fn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return hn(function(t){e.$evalAsync(t)},t)}]}function pn(){this.$get=["$browser","$exceptionHandler",function(e,t){return hn(function(t){e.defer(t)},t)}]}function hn(e,t){function i(e,t,n){function r(t){return function(n){i||(i=!0,t.call(e,n))}}var i=!1;return[r(t),r(n)]}function a(){this.$$state={status:0}}function s(e,t){return function(n){t.call(e,n)}}function u(e){var r,i,o;o=e.pending,e.processScheduled=!1,e.pending=n;for(var a=0,s=o.length;s>a;++a){i=o[a][0],r=o[a][e.status];try{E(r)?i.resolve(r(e.value)):1===e.status?i.resolve(e.value):i.reject(e.value)}catch(u){i.reject(u),t(u)}}}function c(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){u(t)}))}function l(){this.promise=new a,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}function f(e){var t=new l,n=0,r=_r(e)?[]:{};return o(e,function(e,i){n++,v(e).then(function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(i)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var p=r("$q",TypeError),h=function(){return new l};a.prototype={then:function(e,t,n){var r=new l;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&c(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return m(t,!0,e)},function(t){return m(t,!1,e)},t)}},l.prototype={resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(b(e)||E(e))&&(n=e&&e.then),E(n)?(this.promise.$$state.status=-1,n.call(e,r[0],r[1],this.notify)):(this.promise.$$state.value=e,this.promise.$$state.status=1,c(this.promise.$$state))}catch(o){r[1](o),t(o)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,c(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;a>o;o++){i=r[o][0],e=r[o][3];try{i.notify(E(e)?e(n):n)}catch(s){t(s)}}})}};var d=function(e){var t=new l;return t.reject(e),t.promise},$=function(e,t){var n=new l;return t?n.resolve(e):n.reject(e),n.promise},m=function(e,t,n){var r=null;try{E(n)&&(r=n());
  3. }catch(i){return $(i,!1)}return j(r)?r.then(function(){return $(e,t)},function(e){return $(e,!1)}):$(e,t)},v=function(e,t,n,r){var i=new l;return i.resolve(e),i.promise.then(t,n,r)},g=function y(e){function t(e){r.resolve(e)}function n(e){r.reject(e)}if(!E(e))throw p("norslvr","Expected resolverFn, got '{0}'",e);if(!(this instanceof y))return new y(e);var r=new l;return e(t,n),r.promise};return g.defer=h,g.reject=d,g.when=v,g.all=f,g}function dn(){this.$get=["$window","$timeout",function(e,t){function n(){for(var e=0;e<l.length;e++){var t=l[e];t&&(l[e]=null,t())}c=l.length=0}function r(e){var t=l.length;return c++,l.push(e),0===t&&(u=s(n)),function(){t>=0&&(l[t]=null,t=null,0===--c&&u&&(u(),u=null,l.length=0))}}var i=e.requestAnimationFrame||e.webkitRequestAnimationFrame,o=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,a=!!i,s=a?function(e){var t=i(e);return function(){o(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};r.supported=a;var u,c=0,l=[];return r}]}function $n(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}return t.prototype=e,t}var t=10,n=r("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,c,l,f){function p(e){e.currentScope.$$destroyed=!0}function h(){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}function d(e){if(C.$$phase)throw n("inprog","{0} already in progress",C.$$phase);C.$$phase=e}function m(){C.$$phase=null}function v(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function y(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function w(){}function x(){for(;O.length;)try{O.shift()()}catch(e){c(e)}s=null}function S(){null===s&&(s=f.defer(function(){C.$apply(x)}))}h.prototype={constructor:h,$new:function(t,n){var r;return n=n||this,t?(r=new h,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!=this)&&r.$on("$destroy",p),r},$watch:function(e,t,n,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,s=o.$$watchers,u={fn:t,last:w,get:i,exp:r||e,eq:!!n};return a=null,E(t)||(u.fn=$),s||(s=o.$$watchers=[]),s.unshift(u),v(this,1),function(){_(s,u)>=0&&v(o,-1),a=null}},$watchGroup:function(e,t){function n(){u=!1,c?(c=!1,t(i,i,s)):t(i,r,s)}var r=new Array(e.length),i=new Array(e.length),a=[],s=this,u=!1,c=!0;if(!e.length){var l=!0;return s.$evalAsync(function(){l&&t(i,i,s)}),function(){l=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var o=s.$watch(e,function(e,o){i[t]=e,r[t]=o,u||(u=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,s,u;if(!g(o)){if(b(o))if(i(o)){a!==h&&(a=h,m=a.length=0,f++),t=o.length,m!==t&&(f++,a.length=m=t);for(var c=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={},m=0,f++),t=0;for(n in o)o.hasOwnProperty(n)&&(t++,s=o[n],u=a[n],n in a?(r=u!==u&&s!==s,r||u===s||(f++,a[n]=s)):(m++,a[n]=s,f++));if(m>t){f++;for(n in a)o.hasOwnProperty(n)||(m--,delete a[n])}}else a!==o&&(a=o,f++);return f}}function r(){if($?($=!1,t(o,o,u)):t(o,s,u),c)if(b(o))if(i(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var n in o)wr.call(o,n)&&(s[n]=o[n])}else s=o}n.$stateful=!0;var o,a,s,u=this,c=t.length>1,f=0,p=l(e,n),h=[],d={},$=!0,m=0;return this.$watch(p,r)},$digest:function(){var e,r,i,o,u,l,p,h,$,v,g=t,y=this,b=[];d("$digest"),f.$$checkUrlChange(),this===C&&null!==s&&(f.defer.cancel(s),x()),a=null;do{for(l=!1,h=y;k.length;){try{v=k.shift(),v.scope.$eval(v.expression,v.locals)}catch(S){c(S)}a=null}e:do{if(o=h.$$watchers)for(u=o.length;u--;)try{if(e=o[u])if((r=e.get(h))===(i=e.last)||(e.eq?U(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(e===a){l=!1;break e}}else l=!0,a=e,e.last=e.eq?q(r,null):r,e.fn(r,i===w?r:i,h),5>g&&($=4-g,b[$]||(b[$]=[]),b[$].push({msg:E(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:r,oldVal:i}))}catch(S){c(S)}if(!(p=h.$$watchersCount&&h.$$childHead||h!==y&&h.$$nextSibling))for(;h!==y&&!(p=h.$$nextSibling);)h=h.$parent}while(h=p);if((l||k.length)&&!g--)throw m(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,b)}while(l||k.length);for(m();A.length;)try{A.shift()()}catch(S){c(S)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===C&&f.$$applicationDestroyed(),v(this,-this.$$watchersCount);for(var t in this.$$listenerCount)y(this,this.$$listenerCount[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=$,this.$on=this.$watch=this.$watchGroup=function(){return $},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){C.$$phase||k.length||f.defer(function(){k.length&&C.$digest()}),k.push({scope:this,expression:e,locals:t})},$$postDigest:function(e){A.push(e)},$apply:function(e){try{return d("$apply"),this.$eval(e)}catch(t){c(t)}finally{m();try{C.$digest()}catch(t){throw c(t),t}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&O.push(t),S()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,y(i,1,e))}},$emit:function(e,t){var n,r,i,o=[],a=this,s=!1,u={name:e,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=F([u],arguments,1);do{for(n=a.$$listeners[e]||o,u.currentScope=a,r=0,i=n.length;i>r;r++)if(n[r])try{n[r].apply(null,l)}catch(f){c(f)}else n.splice(r,1),r--,i--;if(s)return u.currentScope=null,u;a=a.$parent}while(a);return u.currentScope=null,u},$broadcast:function(e,t){var n=this,r=n,i=n,o={name:e,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return o;for(var a,s,u,l=F([o],arguments,1);r=i;){for(o.currentScope=r,a=r.$$listeners[e]||[],s=0,u=a.length;u>s;s++)if(a[s])try{a[s].apply(null,l)}catch(f){c(f)}else a.splice(s,1),s--,u--;if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var C=new h,k=C.$$asyncQueue=[],A=C.$$postDigestQueue=[],O=C.$$applyAsyncQueue=[];return C}]}function mn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=En(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function vn(e){if("self"===e)return e;if(x(e)){if(e.indexOf("***")>-1)throw Qi("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Ur(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(k(e))return new RegExp("^"+e.source+"$");throw Qi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function gn(e){var t=[];return y(e)&&o(e,function(e){t.push(vn(e))}),t}function yn(){this.SCE_CONTEXTS=eo;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=gn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=gn(e)),t},this.$get=["$injector",function(r){function i(e,t){return"self"===e?kn(t):!!e.exec(t.href)}function o(n){var r,o,a=En(n.toString()),s=!1;for(r=0,o=e.length;o>r;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;o>r;r++)if(i(t[r],a)){s=!1;break}return s}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function s(e,t){var r=p.hasOwnProperty(e)?p[e]:null;if(!r)throw Qi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||t===n||""===t)return t;if("string"!=typeof t)throw Qi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new r(t)}function u(e){return e instanceof f?e.$$unwrapTrustedValue():e}function c(e,t){if(null===t||t===n||""===t)return t;var r=p.hasOwnProperty(e)?p[e]:null;if(r&&t instanceof r)return t.$$unwrapTrustedValue();if(e===eo.RESOURCE_URL){if(o(t))return t;throw Qi("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===eo.HTML)return l(t);throw Qi("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(e){throw Qi("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(l=r.get("$sanitize"));var f=a(),p={};return p[eo.HTML]=a(f),p[eo.CSS]=a(f),p[eo.URL]=a(f),p[eo.JS]=a(f),p[eo.RESOURCE_URL]=a(p[eo.URL]),{trustAs:s,getTrusted:c,valueOf:u}}]}function bn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&8>Er)throw Qi("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=L(eo);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=m),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(eo,function(e,t){var n=br(t);r[we("parse_as_"+n)]=function(t){return i(e,t)},r[we("get_trusted_"+n)]=function(t){return a(e,t)},r[we("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function wn(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=h((/android (\d+)/.exec(br((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,c=s.body&&s.body.style,l=!1,f=!1;if(c){for(var p in c)if(r=u.exec(p)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),l=!!("transition"in c||n+"Transition"in c),f=!!("animation"in c||n+"Animation"in c),!o||l&&f||(l=x(c.webkitTransition),f=x(c.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||4>o||a),hasEvent:function(e){if("input"===e&&11>=Er)return!1;if(g(i[e])){var t=s.createElement("div");i[e]="on"+e in t}return i[e]},csp:Fr(),vendorPrefix:n,transitions:l,animations:f,android:o}}]}function xn(){this.$get=["$templateCache","$http","$q",function(e,t,n){function r(i,o){function a(e){if(!o)throw Mi("tpload","Failed to load template: {0} (HTTP status: {1} {2})",i,e.status,e.statusText);return n.reject(e)}r.totalPendingRequests++;var s=t.defaults&&t.defaults.transformResponse;_r(s)?s=s.filter(function(e){return e!==gt}):s===gt&&(s=null);var u={cache:e,transformResponse:s};return t.get(i,u)["finally"](function(){r.totalPendingRequests--}).then(function(t){return e.put(i,t.data),t.data},a)}return r.totalPendingRequests=0,r}]}function Sn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=Dr.element(e).data("$binding");r&&o(r,function(r){if(n){var o=new RegExp("(^|\\s)"+Ur(t)+"(\\s|\\||$)");o.test(r)&&i.push(e)}else-1!=r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function Cn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){E(o)||(u=s,s=o,o=$);var c,l=B(arguments,3),f=y(u)&&!u,p=(f?r:n).defer(),h=p.promise;return c=t.defer(function(){try{p.resolve(o.apply(null,l))}catch(t){p.reject(t),i(t)}finally{delete a[h.$$timeoutId]}f||e.$apply()},s),h.$$timeoutId=c,a[c]=p,h}var a={};return o.cancel=function(e){return e&&e.$$timeoutId in a?(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},o}]}function En(e){var t=e;return Er&&(to.setAttribute("href",t),t=to.href),to.setAttribute("href",t),{href:to.href,protocol:to.protocol?to.protocol.replace(/:$/,""):"",host:to.host,search:to.search?to.search.replace(/^\?/,""):"",hash:to.hash?to.hash.replace(/^#/,""):"",hostname:to.hostname,port:to.port,pathname:"/"===to.pathname.charAt(0)?to.pathname:"/"+to.pathname}}function kn(e){var t=x(e)?En(e):e;return t.protocol===no.protocol&&t.host===no.host}function An(){this.$get=v(e)}function On(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var r=e[0]||{},i={},o="";return function(){var e,a,s,u,c,l=r.cookie||"";if(l!==o)for(o=l,e=o.split("; "),i={},s=0;s<e.length;s++)a=e[s],u=a.indexOf("="),u>0&&(c=t(a.substring(0,u)),i[c]===n&&(i[c]=t(a.substring(u+1))));return i}}function Mn(){this.$get=On}function Tn(e){function t(r,i){if(b(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",In),t("date",Yn),t("filter",Vn),t("json",Kn),t("limitTo",Zn),t("lowercase",so),t("number",Rn),t("orderBy",Xn),t("uppercase",uo)}function Vn(){return function(e,t,n){if(!i(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}var o,a,s=Dn(t);switch(s){case"function":o=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=jn(t,n,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function Nn(e){return E(e.toString)&&e.toString!==Object.prototype.toString}function jn(e,t,n){var r,i=b(e)&&"$"in e;return t===!0?t=U:E(t)||(t=function(e,t){return g(e)?!1:null===e||null===t?e===t:b(t)||b(e)&&!Nn(e)?!1:(e=br(""+e),t=br(""+t),-1!==e.indexOf(t))}),r=function(r){return i&&!b(r)?Pn(r,e.$,t,!1):Pn(r,e,t,n)}}function Pn(e,t,n,r,i){var o=Dn(e),a=Dn(t);if("string"===a&&"!"===t.charAt(0))return!Pn(e,t.substring(1),n,r);if(_r(e))return e.some(function(e){return Pn(e,t,n,r)});switch(o){case"object":var s;if(r){for(s in e)if("$"!==s.charAt(0)&&Pn(e[s],t,n,!0))return!0;return i?!1:Pn(e,t,n,!1)}if("object"===a){for(s in t){var u=t[s];if(!E(u)&&!g(u)){var c="$"===s,l=c?e:e[s];if(!Pn(l,u,n,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Dn(e){return null===e?"null":typeof e}function In(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return g(n)&&(n=t.CURRENCY_SYM),g(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:_n(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Rn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:_n(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function _n(e,t,n,r,i){if(b(e))return"";var o=0>e;e=Math.abs(e);var a=e===1/0;if(!a&&!isFinite(e))return"";var s=e+"",u="",c=!1,l=[];if(a&&(u="∞"),!a&&-1!==s.indexOf("e")){var f=s.match(/([\d\.]+)e(-?)(\d+)/);f&&"-"==f[2]&&f[3]>i+1?e=0:(u=s,c=!0)}if(a||c)i>0&&1>e&&(u=e.toFixed(i),e=parseFloat(u));else{var p=(s.split(ro)[1]||"").length;g(i)&&(i=Math.min(Math.max(t.minFrac,p),t.maxFrac)),e=+(Math.round(+(e.toString()+"e"+i)).toString()+"e"+-i);var h=(""+e).split(ro),d=h[0];h=h[1]||"";var $,m=0,v=t.lgSize,y=t.gSize;if(d.length>=v+y)for(m=d.length-v,$=0;m>$;$++)(m-$)%y===0&&0!==$&&(u+=n),u+=d.charAt($);for($=m;$<d.length;$++)(d.length-$)%v===0&&0!==$&&(u+=n),u+=d.charAt($);for(;h.length<i;)h+="0";i&&"0"!==i&&(u+=r+h.substr(0,i))}return 0===e&&(o=!1),l.push(o?t.negPre:t.posPre,u,o?t.negSuf:t.posSuf),l.join("")}function qn(e,t,n){var r="";for(0>e&&(r="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function Ln(e,t,n,r){return n=n||0,function(i){var o=i["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),qn(o,t,r)}}function Un(e,t){return function(n,r){var i=n["get"+e](),o=xr(t?"SHORT"+e:e);return r[o][i]}}function Fn(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=qn(Math[r>0?"floor":"ceil"](r/60),2)+qn(Math.abs(r%60),2)}function Bn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(4>=t?5:12)-t)}function Hn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function zn(e){return function(t){var n=Bn(t.getFullYear()),r=Hn(t),i=+r-+n,o=1+Math.round(i/6048e5);return qn(o,e)}}function Wn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Gn(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function Jn(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function Yn(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=h(t[9]+t[10]),o=h(t[9]+t[11])),a.call(r,h(t[1]),h(t[2])-1,h(t[3]));var u=h(t[4]||0)-i,c=h(t[5]||0)-o,l=h(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,c,l,f),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,u="",c=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,x(n)&&(n=ao.test(n)?h(n):t(n)),S(n)&&(n=new Date(n)),!C(n)||!isFinite(n.getTime()))return n;for(;r;)s=oo.exec(r),s?(c=F(c,s,1),r=c.pop()):(c.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=J(i,n.getTimezoneOffset()),n=K(n,i,!0)),o(c,function(t){a=io[t],u+=a?a(n,e.DATETIME_FORMATS,l):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Kn(){return function(e,t){return g(t)&&(t=2),W(e,t)}}function Zn(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):h(t),isNaN(t)?e:(S(e)&&(e=e.toString()),_r(e)||x(e)?(n=!n||isNaN(n)?0:h(n),n=0>n&&n>=-e.length?e.length+n:n,t>=0?e.slice(n,n+t):0===n?e.slice(t,e.length):e.slice(Math.max(0,n+t),n)):e)}}function Xn(e){return function(t,n,r){function o(e,t){for(var r=0;r<n.length;r++){var i=n[r](e,t);if(0!==i)return i}return 0}function a(e,t){return t?function(t,n){return e(n,t)}:e}function s(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function u(e){return null===e?"null":"function"==typeof e.valueOf&&(e=e.valueOf(),s(e))?e:"function"==typeof e.toString&&(e=e.toString(),s(e))?e:""}function c(e,t){var n=typeof e,r=typeof t;return n===r&&"object"===n&&(e=u(e),t=u(t)),n===r?("string"===n&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:t>e?-1:1):r>n?-1:1}return i(t)?(n=_r(n)?n:[n],0===n.length&&(n=["+"]),n=n.map(function(t){var n=!1,r=t||m;if(x(t)){if(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0),t=t.substring(1)),""===t)return a(c,n);if(r=e(t),r.constant){var i=r();return a(function(e,t){return c(e[i],t[i])},n)}}return a(function(e,t){return c(r(e),r(t))},n)}),Mr.call(t).sort(a(o,r))):t}}function Qn(e){return E(e)&&(e={link:e}),e.restrict=e.restrict||"AC",v(e)}function er(e,t){e.$name=t}function tr(e,t,r,i,a){var s=this,u=[],c=s.$$parentForm=e.parent().controller("form")||fo;s.$error={},s.$$success={},s.$pending=n,s.$name=a(t.name||t.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,c.$addControl(s),s.$rollbackViewValue=function(){o(u,function(e){e.$rollbackViewValue()})},s.$commitViewValue=function(){o(u,function(e){e.$commitViewValue()})},s.$addControl=function(e){pe(e.$name,"input"),u.push(e),e.$name&&(s[e.$name]=e)},s.$$renameControl=function(e,t){var n=e.$name;s[n]===e&&delete s[n],s[t]=e,e.$name=t},s.$removeControl=function(e){e.$name&&s[e.$name]===e&&delete s[e.$name],o(s.$pending,function(t,n){s.$setValidity(n,null,e)}),o(s.$error,function(t,n){s.$setValidity(n,null,e)}),o(s.$$success,function(t,n){s.$setValidity(n,null,e)}),_(u,e)},mr({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(r){var i=r.indexOf(n);-1===i&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(_(r,n),0===r.length&&delete e[t])},parentForm:c,$animate:i}),s.$setDirty=function(){i.removeClass(e,Jo),i.addClass(e,Yo),s.$dirty=!0,s.$pristine=!1,c.$setDirty()},s.$setPristine=function(){i.setClass(e,Jo,Yo+" "+po),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,o(u,function(e){e.$setPristine()})},s.$setUntouched=function(){o(u,function(e){e.$setUntouched()})},s.$setSubmitted=function(){i.addClass(e,po),s.$submitted=!0,c.$setSubmitted()}}function nr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function rr(e,t,n,r,i,o){ir(e,t,n,r,i,o),nr(r)}function ir(e,t,n,r,i,o){var a=br(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(e){s=!0}),t.on("compositionend",function(){s=!1,u()})}var u=function(e){if(c&&(o.defer.cancel(c),c=null),!s){var i=t.val(),u=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Lr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent("input"))t.on("input",u);else{var c,l=function(e,t,n){c||(c=o.defer(function(){c=null,t&&t.value===n||u(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||l(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",l)}t.on("change",u),r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function or(e,t){if(C(e))return e;if(x(e)){So.lastIndex=0;var n=So.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,c=Bn(r),l=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,c.getDate()+l,o,a,s,u)}}return 0/0}function ar(e,t){return function(n,r){var i,a;if(C(n))return n;if(x(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),vo.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return 0/0}}function sr(e,t,r,i){return function(o,a,s,u,c,l,f){function p(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function h(e){return y(e)?C(e)?e:r(e):n}ur(o,a,s,u),ir(o,a,s,u,c,l);var d,$=u&&u.$options&&u.$options.timezone;if(u.$$parserName=e,u.$parsers.push(function(e){if(u.$isEmpty(e))return null;if(t.test(e)){var i=r(e,d);return $&&(i=K(i,$)),i}return n}),u.$formatters.push(function(e){if(e&&!C(e))throw Qo("datefmt","Expected `{0}` to be a date",e);return p(e)?(d=e,d&&$&&(d=K(d,$,!0)),f("date")(e,i,$)):(d=null,"")}),y(s.min)||s.ngMin){var m;u.$validators.min=function(e){return!p(e)||g(m)||r(e)>=m},s.$observe("min",function(e){m=h(e),u.$validate()})}if(y(s.max)||s.ngMax){var v;u.$validators.max=function(e){return!p(e)||g(v)||r(e)<=v},s.$observe("max",function(e){v=h(e),u.$validate()})}}}function ur(e,t,r,i){var o=t[0],a=i.$$hasNativeValidators=b(o.validity);a&&i.$parsers.push(function(e){var r=t.prop(yr)||{};return r.badInput&&!r.typeMismatch?n:e})}function cr(e,t,r,i,o,a){if(ur(e,t,r,i),ir(e,t,r,i,o,a),i.$$parserName="number",i.$parsers.push(function(e){return i.$isEmpty(e)?null:bo.test(e)?parseFloat(e):n}),i.$formatters.push(function(e){if(!i.$isEmpty(e)){if(!S(e))throw Qo("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),y(r.min)||r.ngMin){var s;i.$validators.min=function(e){return i.$isEmpty(e)||g(s)||e>=s},r.$observe("min",function(e){y(e)&&!S(e)&&(e=parseFloat(e,10)),s=S(e)&&!isNaN(e)?e:n,i.$validate()})}if(y(r.max)||r.ngMax){var u;i.$validators.max=function(e){return i.$isEmpty(e)||g(u)||u>=e},r.$observe("max",function(e){y(e)&&!S(e)&&(e=parseFloat(e,10)),u=S(e)&&!isNaN(e)?e:n,i.$validate()})}}function lr(e,t,n,r,i,o){ir(e,t,n,r,i,o),nr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||go.test(n)}}function fr(e,t,n,r,i,o){ir(e,t,n,r,i,o),nr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||yo.test(n)}}function pr(e,t,n,r){g(n.name)&&t.attr("name",u());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function hr(e,t,n,i,o){var a;if(y(i)){if(a=e(i),!a.constant)throw r("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return a(t)}return o}function dr(e,t,n,r,i,o,a,s){var u=hr(s,e,"ngTrueValue",n.ngTrueValue,!0),c=hr(s,e,"ngFalseValue",n.ngFalseValue,!1),l=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",l),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return U(e,u)}),r.$parsers.push(function(e){return e?u:c})}function $r(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function i(e){var t=[];return _r(e)?(o(e,function(e){t=t.concat(i(e))}),t):x(e)?e.split(" "):b(e)?(o(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,s,u){function c(e){var t=f(e,1);u.$addClass(t)}function l(e){var t=f(e,-1);u.$removeClass(t)}function f(e,t){var n=s.data("$classCounts")||$e(),r=[];return o(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),s.data("$classCounts",n),r.join(" ")}function p(e,t){var i=r(t,e),o=r(e,t);i=f(i,1),o=f(o,-1),i&&i.length&&n.addClass(s,i),o&&o.length&&n.removeClass(s,o)}function h(e){if(t===!0||a.$index%2===t){var n=i(e||[]);if(d){if(!U(e,d)){var r=i(d);p(r,n)}}else c(n)}d=L(e)}var d;a.$watch(u[e],h,!0),u.$observe("class",function(t){h(a.$eval(u[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var s=i(a.$eval(u[e]));o===t?c(s):l(s)}})}}}]}function mr(e){function t(e,t,u){t===n?r("$pending",e,u):i("$pending",e,u),N(t)?t?(f(s.$error,e,u),l(s.$$success,e,u)):(l(s.$error,e,u),f(s.$$success,e,u)):(f(s.$error,e,u),f(s.$$success,e,u)),s.$pending?(o(Xo,!0),s.$valid=s.$invalid=n,a("",null)):(o(Xo,!1),s.$valid=vr(s.$error),s.$invalid=!s.$valid,a("",s.$valid));var c;c=s.$pending&&s.$pending[e]?n:s.$error[e]?!1:s.$$success[e]?!0:null,a(e,c),p.$setValidity(e,c,s)}function r(e,t,n){s[e]||(s[e]={}),l(s[e],t,n)}function i(e,t,r){s[e]&&f(s[e],t,r),vr(s[e])&&(s[e]=n)}function o(e,t){t&&!c[e]?(h.addClass(u,e),c[e]=!0):!t&&c[e]&&(h.removeClass(u,e),c[e]=!1)}function a(e,t){e=e?"-"+ue(e,"-"):"",o(Wo+e,t===!0),o(Go+e,t===!1)}var s=e.ctrl,u=e.$element,c={},l=e.set,f=e.unset,p=e.parentForm,h=e.$animate;c[Go]=!(c[Wo]=u.hasClass(Wo)),s.$setValidity=t}function vr(e){if(e)for(var t in e)return!1;return!0}var gr=/^\/(.+)\/([a-z]*)$/,yr="validity",br=function(e){return x(e)?e.toLowerCase():e},wr=Object.prototype.hasOwnProperty,xr=function(e){return x(e)?e.toUpperCase():e},Sr=function(e){return x(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Cr=function(e){return x(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(br=Sr,xr=Cr);var Er,kr,Ar,Or,Mr=[].slice,Tr=[].splice,Vr=[].push,Nr=Object.prototype.toString,jr=Object.getPrototypeOf,Pr=r("ng"),Dr=e.angular||(e.angular={}),Ir=0;Er=t.documentMode,$.$inject=[],m.$inject=[];var Rr,_r=Array.isArray,qr=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,Lr=function(e){return x(e)?e.trim():e},Ur=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Fr=function(){if(y(Fr.isActive_))return Fr.isActive_;var e=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!e)try{new Function("")}catch(n){e=!0}return Fr.isActive_=e},Br=function(){if(y(Br.name_))return Br.name_;var e,n,r,i,o=Hr.length;for(n=0;o>n;++n)if(r=Hr[n],e=t.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return Br.name_=i},Hr=["ng-","data-ng-","ng:","x-ng-"],zr=/[A-Z]/g,Wr=!1,Gr=1,Jr=2,Yr=3,Kr=8,Zr=9,Xr=11,Qr={full:"1.4.0",major:1,minor:4,dot:0,codeName:"jaracimrman-existence"};ke.expando="ng339";var ei=ke.cache={},ti=1,ni=function(e,t,n){e.addEventListener(t,n,!1)},ri=function(e,t,n){e.removeEventListener(t,n,!1)};ke._data=function(e){return this.cache[e[this.expando]]||{}};var ii=/([\:\-\_]+(.))/g,oi=/^moz([A-Z])/,ai={mouseleave:"mouseout",mouseenter:"mouseover"},si=r("jqLite"),ui=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ci=/<|&#?\w+;/,li=/<([\w:]+)/,fi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,pi={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};pi.optgroup=pi.option,pi.tbody=pi.tfoot=pi.colgroup=pi.caption=pi.thead,pi.th=pi.td;var hi=ke.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),ke(e).on("load",r))},toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return kr(e>=0?this[e]:this[this.length+e])},length:0,push:Vr,sort:[].sort,splice:[].splice},di={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){di[br(e)]=e});var $i={};o("input,select,option,textarea,button,form,details".split(","),function(e){$i[e]=!0});var mi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Ne,removeData:Te},function(e,t){ke[t]=e}),o({data:Ne,inheritedData:_e,scope:function(e){return kr.data(e,"$scope")||_e(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return kr.data(e,"$isolateScope")||kr.data(e,"$isolateScopeNoTemplate")},controller:Re,injector:function(e){return _e(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:je,css:function(e,t,n){return t=we(t),y(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,r){var i=e.nodeType;if(i!==Yr&&i!==Jr&&i!==Kr){var o=br(t);if(di[o]){if(!y(r))return e[t]||(e.attributes.getNamedItem(t)||$).specified?o:n;r?(e[t]=!0,e.setAttribute(t,o)):(e[t]=!1,e.removeAttribute(o))}else if(y(r))e.setAttribute(t,r);else if(e.getAttribute){var a=e.getAttribute(t,2);return null===a?n:a}}},prop:function(e,t,n){return y(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(g(t)){var n=e.nodeType;return n===Gr||n===Yr?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(g(t)){if(e.multiple&&"select"===R(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){return g(t)?e.innerHTML:(Oe(e,!0),
  4. void(e.innerHTML=t))},empty:qe},function(e,t){ke.prototype[t]=function(t,r){var i,o,a=this.length;if(e!==qe&&(2==e.length&&e!==je&&e!==Re?t:r)===n){if(b(t)){for(i=0;a>i;i++)if(e===Ne)e(this[i],t);else for(o in t)e(this[i],o,t[o]);return this}for(var s=e.$dv,u=s===n?Math.min(a,1):a,c=0;u>c;c++){var l=e(this[c],t,r);s=s?s+l:l}return s}for(i=0;a>i;i++)e(this[i],t,r);return this}}),o({removeData:Te,on:function Ma(e,t,n,r){if(y(r))throw si("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Se(e)){var i=Ve(e,!0),o=i.events,a=i.handle;a||(a=i.handle=He(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length;u--;){t=s[u];var c=o[t];c||(o[t]=[],"mouseenter"===t||"mouseleave"===t?Ma(e,ai[t],function(e){var n=this,r=e.relatedTarget;(!r||r!==n&&!n.contains(r))&&a(e,t)}):"$destroy"!==t&&ni(e,t,a),c=o[t]),c.push(n)}}},off:Me,one:function(e,t,n){e=kr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Oe(e),o(new ke(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===Gr&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===Gr||n===Xr){t=new ke(t);for(var r=0,i=t.length;i>r;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===Gr){var n=e.firstChild;o(new ke(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=kr(t).eq(0).clone()[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:Le,detach:function(e){Le(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new ke(t);for(var i=0,o=t.length;o>i;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:De,removeClass:Pe,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;g(r)&&(r=!je(e,t)),(r?De:Pe)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==Xr?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Ae,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,u=Ve(e),c=u&&u.events,l=c&&c[s];l&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:$,type:s,target:e},t.type&&(r=f(r,t)),i=L(l),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){ke.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;a>o;o++)g(i)?(i=e(this[o],t,n,r),y(i)&&(i=kr(i))):Ie(i,e(this[o],t,n,r));return y(i)?i:this},ke.prototype.bind=ke.prototype.on,ke.prototype.unbind=ke.prototype.off}),Ge.prototype={put:function(e,t){this[We(e,this.nextUid)]=t},get:function(e){return this[We(e,this.nextUid)]},remove:function(e){var t=this[e=We(e,this.nextUid)];return delete this[e],t}};var vi=[function(){this.$get=[function(){return Ge}]}],gi=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,yi=/,/,bi=/^\s*(_?)(\S+?)\1\s*$/,wi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,xi=r("$injector");Ke.$$annotate=Ye;var Si=r("$animate"),Ci=1,Ei="ng-animate",ki=function(){this.$get=["$q","$$rAF",function(e,t){function n(){}return n.all=$,n.chain=$,n.prototype={end:$,cancel:$,resume:$,pause:$,complete:$,then:function(n,r){return e(function(e){t(function(){e()})}).then(n,r)}},n}]},Ai=function(){var e=new Ge,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(n,i,a){var s=e.get(n);s||(e.put(n,s={}),t.push(n)),i&&o(i.split(" "),function(e){e&&(s[e]=!0)}),a&&o(a.split(" "),function(e){e&&(s[e]=!1)}),t.length>1||r.$$postDigest(function(){o(t,function(t){var n=e.get(t);if(n){var r=et(t.attr("class")),i="",a="";o(n,function(e,t){var n=!!r[t];e!==n&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&De(e,i),a&&Pe(e,a)}),e.remove(t)}}),t.length=0})}return{enabled:$,on:$,off:$,pin:$,push:function(e,t,r,o){return o&&o(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&i(e,r.addClass,r.removeClass),new n}}}]},Oi=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Si("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+Ei+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw Si("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Ei)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=Qe(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&kr(r),i=i&&kr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",tt(o))},move:function(n,r,i,o){return r=r&&kr(r),i=i&&kr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",tt(o))},leave:function(t,n){return e.push(t,"leave",tt(n),function(){t.remove()})},addClass:function(t,n,r){return r=tt(r),r.addClass=Xe(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=tt(r),r.removeClass=Xe(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=tt(i),i.addClass=Xe(i.addClass,n),i.removeClass=Xe(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=tt(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=Xe(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Mi=r("$compile");st.$inject=["$provide","$$sanitizeUriProvider"];var Ti=/^((?:x|data)[\:\-_])/i,Vi=r("$controller"),Ni=/^(\S+)(\s+as\s+(\w+))?$/,ji="application/json",Pi={"Content-Type":ji+";charset=utf-8"},Di=/^\[|^\{(?!\{)/,Ii={"[":/]$/,"{":/}$/},Ri=/^\)\]\}',?\n/,_i=Dr.$interpolateMinErr=r("$interpolate");_i.throwNoconcat=function(e){throw _i("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},_i.interr=function(e,t){return _i("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var qi=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Li={http:80,https:443,ftp:21},Ui=r("$location"),Fi={$$html5:!1,$$replace:!1,absUrl:Ft("$$absUrl"),url:function(e){if(g(e))return this.$$url;var t=qi.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:Ft("$$protocol"),host:Ft("$$host"),port:Ft("$$port"),path:Bt("$$path",function(e){return e=null!==e?e.toString():"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(x(e)||S(e))e=e.toString(),this.$$search=Q(e);else{if(!b(e))throw Ui("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=q(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:g(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Bt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([Ut,Lt,qt],function(e){e.prototype=Object.create(Fi),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==qt||!this.$$html5)throw Ui("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(t)?null:t,this}});var Bi=r("$parse"),Hi=Function.prototype.call,zi=Function.prototype.apply,Wi=Function.prototype.bind,Gi=$e();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Gi[e]=!0});var Ji={n:"\n",f:"\f",r:"\r",t:" ",v:" ","'":"'",'"':'"'},Yi=function(e){this.options=e};Yi.prototype={constructor:Yi,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.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 n=t+this.peek(),r=n+this.peek(2),i=Gi[t],o=Gi[n],a=Gi[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(e){return e>="0"&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||" "===e||"\n"===e||" "===e||" "===e},isIdent:function(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Bi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=br(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){for(var e=this.index;this.index<this.text.length;){var t=this.text.charAt(this.index);if(!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=Ji[o];n+=s||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var Ki=function(e,t){this.lexer=e,this.options=t};Ki.Program="Program",Ki.ExpressionStatement="ExpressionStatement",Ki.AssignmentExpression="AssignmentExpression",Ki.ConditionalExpression="ConditionalExpression",Ki.LogicalExpression="LogicalExpression",Ki.BinaryExpression="BinaryExpression",Ki.UnaryExpression="UnaryExpression",Ki.CallExpression="CallExpression",Ki.MemberExpression="MemberExpression",Ki.Identifier="Identifier",Ki.Literal="Literal",Ki.ArrayExpression="ArrayExpression",Ki.Property="Property",Ki.ObjectExpression="ObjectExpression",Ki.ThisExpression="ThisExpression",Ki.NGValueParameter="NGValueParameter",Ki.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Ki.Program,body:e}},expressionStatement:function(){return{type:Ki.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e,t=this.expression();e=this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:Ki.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Ki.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Ki.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Ki.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Ki.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Ki.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Ki.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Ki.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Ki.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.constants.hasOwnProperty(this.peek().text)?e=q(this.constants[this.consume().text]):this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:Ki.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Ki.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Ki.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Ki.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do e.push(this.expression());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Ki.Identifier,name:e.text}},constant:function(){return{type:Ki.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Ki.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ki.Property,kind:"init"},this.peek().constant?e.key=this.constant():this.peek().identifier?e.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),e.value=this.expression(),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Ki.ObjectExpression,properties:t}},throwError:function(e,t){throw Bi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Bi("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Bi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return i?(this.tokens.shift(),i):!1},constants:{"true":{type:Ki.Literal,value:!0},"false":{type:Ki.Literal,value:!1},"null":{type:Ki.Literal,value:null},undefined:{type:Ki.Literal,value:n},"this":{type:Ki.ThisExpression}}},on.prototype={compile:function(e,t){var r=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Xt(i,r.$filter);var a,s="";if(this.stage="assign",a=tn(i)){this.state.computing="assign";var u=this.nextId();this.recurse(a,u),s="fn.assign="+this.generateFunction("assign","s,v,l")}var c=Qt(i.body);r.stage="inputs",o(c,function(e,t){var n="fn"+t;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(e,i),r.return_(i),r.state.inputs.push(n),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","ifDefined","plus","text",l)(this.$filter,Wt,Gt,Jt,Yt,Kt,e);return this.state=this.stage=n,f.literal=nn(i),f.constant=rn(i),f},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,i,a,s){var u,c,l,f,p=this;if(i=i||$,!s&&y(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,r,i,a,!0));switch(e.type){case Ki.Program:o(e.body,function(t,r){p.recurse(t.expression,n,n,function(e){c=e}),r!==e.body.length-1?p.current().body.push(c,";"):p.return_(c)});break;case Ki.Literal:f=this.escape(e.value),this.assign(t,f),i(f);break;case Ki.UnaryExpression:this.recurse(e.argument,n,n,function(e){c=e}),f=e.operator+"("+this.ifDefined(c,0)+")",this.assign(t,f),i(f);break;case Ki.BinaryExpression:this.recurse(e.left,n,n,function(e){u=e}),this.recurse(e.right,n,n,function(e){c=e}),f="+"===e.operator?this.plus(u,c):"-"===e.operator?this.ifDefined(u,0)+e.operator+this.ifDefined(c,0):"("+u+")"+e.operator+"("+c+")",this.assign(t,f),i(f);break;case Ki.LogicalExpression:t=t||this.nextId(),p.recurse(e.left,t),p.if_("&&"===e.operator?t:p.not(t),p.lazyRecurse(e.right,t)),i(t);break;case Ki.ConditionalExpression:t=t||this.nextId(),p.recurse(e.test,t),p.if_(t,p.lazyRecurse(e.alternate,t),p.lazyRecurse(e.consequent,t)),i(t);break;case Ki.Identifier:t=t||this.nextId(),r&&(r.context="inputs"===p.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),Wt(e.name),p.if_("inputs"===p.stage||p.not(p.getHasOwnProperty("l",e.name)),function(){p.if_("inputs"===p.stage||"s",function(){a&&1!==a&&p.if_(p.not(p.nonComputedMember("s",e.name)),p.lazyAssign(p.nonComputedMember("s",e.name),"{}")),p.assign(t,p.nonComputedMember("s",e.name))})},t&&p.lazyAssign(t,p.nonComputedMember("l",e.name))),(p.state.expensiveChecks||un(e.name))&&p.addEnsureSafeObject(t),i(t);break;case Ki.MemberExpression:u=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),p.recurse(e.object,u,n,function(){p.if_(p.notNull(u),function(){e.computed?(c=p.nextId(),p.recurse(e.property,c),p.addEnsureSafeMemberName(c),a&&1!==a&&p.if_(p.not(p.computedMember(u,c)),p.lazyAssign(p.computedMember(u,c),"{}")),f=p.ensureSafeObject(p.computedMember(u,c)),p.assign(t,f),r&&(r.computed=!0,r.name=c)):(Wt(e.property.name),a&&1!==a&&p.if_(p.not(p.nonComputedMember(u,e.property.name)),p.lazyAssign(p.nonComputedMember(u,e.property.name),"{}")),f=p.nonComputedMember(u,e.property.name),(p.state.expensiveChecks||un(e.property.name))&&(f=p.ensureSafeObject(f)),p.assign(t,f),r&&(r.computed=!1,r.name=e.property.name)),i(t)})},!!a);break;case Ki.CallExpression:t=t||this.nextId(),e.filter?(c=p.filter(e.callee.name),l=[],o(e.arguments,function(e){var t=p.nextId();p.recurse(e,t),l.push(t)}),f=c+"("+l.join(",")+")",p.assign(t,f),i(t)):(c=p.nextId(),u={},l=[],p.recurse(e.callee,c,u,function(){p.if_(p.notNull(c),function(){p.addEnsureSafeFunction(c),o(e.arguments,function(e){p.recurse(e,p.nextId(),n,function(e){l.push(p.ensureSafeObject(e))})}),u.name?(p.state.expensiveChecks||p.addEnsureSafeObject(u.context),f=p.member(u.context,u.name,u.computed)+"("+l.join(",")+")"):f=c+"("+l.join(",")+")",f=p.ensureSafeObject(f),p.assign(t,f),i(t)})}));break;case Ki.AssignmentExpression:if(c=this.nextId(),u={},!en(e.left))throw Bi("lval","Trying to assing a value to a non l-value");this.recurse(e.left,n,u,function(){p.if_(p.notNull(u.context),function(){p.recurse(e.right,c),p.addEnsureSafeObject(p.member(u.context,u.name,u.computed)),f=p.member(u.context,u.name,u.computed)+e.operator+c,p.assign(t,f),i(t||f)})},1);break;case Ki.ArrayExpression:l=[],o(e.elements,function(e){p.recurse(e,p.nextId(),n,function(e){l.push(e)})}),f="["+l.join(",")+"]",this.assign(t,f),i(f);break;case Ki.ObjectExpression:l=[],o(e.properties,function(e){p.recurse(e.value,p.nextId(),n,function(t){l.push(p.escape(e.key.type===Ki.Identifier?e.key.name:""+e.key.value)+":"+t)})}),f="{"+l.join(",")+"}",this.assign(t,f),i(f);break;case Ki.ThisExpression:this.assign(t,"s"),i("s");break;case Ki.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){return e?(this.current().body.push(e,"=",t,";"),e):void 0},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return e+"."+t},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(x(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(S(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if("undefined"==typeof e)return"undefined";throw Bi("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},an.prototype={compile:function(e,t){var n=this,r=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,Xt(r,n.$filter);var i,a;(i=tn(r))&&(a=this.recurse(i));var s,u=Qt(r.body);u&&(s=[],o(u,function(e,t){var r=n.recurse(e);e.input=r,s.push(r),e.watchId=t}));var c=[];o(r.body,function(e){c.push(n.recurse(e.expression))});var l=0===r.body.length?function(){}:1===r.body.length?c[0]:function(e,t){var n;return o(c,function(r){n=r(e,t)}),n};return a&&(l.assign=function(e,t,n){return a(e,n,t)}),s&&(l.inputs=s),l.literal=nn(r),l.constant=rn(r),l},recurse:function(e,t,r){var i,a,s,u=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Ki.Literal:return this.value(e.value,t);case Ki.UnaryExpression:return a=this.recurse(e.argument),this["unary"+e.operator](a,t);case Ki.BinaryExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case Ki.LogicalExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case Ki.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Ki.Identifier:return Wt(e.name,u.expression),u.identifier(e.name,u.expensiveChecks||un(e.name),t,r,u.expression);case Ki.MemberExpression:return i=this.recurse(e.object,!1,!!r),e.computed||(Wt(e.property.name,u.expression),a=e.property.name),e.computed&&(a=this.recurse(e.property)),e.computed?this.computedMember(i,a,t,r,u.expression):this.nonComputedMember(i,a,u.expensiveChecks,t,r,u.expression);case Ki.CallExpression:return s=[],o(e.arguments,function(e){s.push(u.recurse(e))}),e.filter&&(a=this.$filter(e.callee.name)),e.filter||(a=this.recurse(e.callee,!0)),e.filter?function(e,r,i,o){for(var u=[],c=0;c<s.length;++c)u.push(s[c](e,r,i,o));var l=a.apply(n,u,o);return t?{context:n,name:n,value:l}:l}:function(e,n,r,i){var o,c=a(e,n,r,i);if(null!=c.value){Gt(c.context,u.expression),Jt(c.value,u.expression);for(var l=[],f=0;f<s.length;++f)l.push(Gt(s[f](e,n,r,i),u.expression));o=Gt(c.value.apply(c.context,l),u.expression)}return t?{value:o}:o};case Ki.AssignmentExpression:return i=this.recurse(e.left,!0,1),a=this.recurse(e.right),function(e,n,r,o){var s=i(e,n,r,o),c=a(e,n,r,o);return Gt(s.value,u.expression),s.context[s.name]=c,t?{value:c}:c};case Ki.ArrayExpression:return s=[],o(e.elements,function(e){s.push(u.recurse(e))}),function(e,n,r,i){for(var o=[],a=0;a<s.length;++a)o.push(s[a](e,n,r,i));return t?{value:o}:o};case Ki.ObjectExpression:return s=[],o(e.properties,function(e){s.push({key:e.key.type===Ki.Identifier?e.key.name:""+e.key.value,value:u.recurse(e.value)})}),function(e,n,r,i){for(var o={},a=0;a<s.length;++a)o[s[a].key]=s[a].value(e,n,r,i);return t?{value:o}:o};case Ki.ThisExpression:return function(e){return t?{value:e}:e};case Ki.NGValueParameter:return function(e,n,r,i){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=y(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=y(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),c=Kt(s,u);return n?{value:c}:c}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),c=(y(s)?s:0)-(y(u)?u:0);return n?{value:c}:c}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:n,name:n,value:e}:e}},identifier:function(e,t,r,i,o){return function(a,s,u,c){var l=s&&e in s?s:a;i&&1!==i&&l&&!l[e]&&(l[e]={});var f=l?l[e]:n;return t&&Gt(f,o),r?{context:l,name:e,value:f}:f}},computedMember:function(e,t,n,r,i){return function(o,a,s,u){var c,l,f=e(o,a,s,u);return null!=f&&(c=t(o,a,s,u),Wt(c,i),r&&1!==r&&f&&!f[c]&&(f[c]={}),l=f[c],Gt(l,i)),n?{context:f,name:c,value:l}:l}},nonComputedMember:function(e,t,r,i,o,a){return function(s,u,c,l){var f=e(s,u,c,l);o&&1!==o&&f&&!f[t]&&(f[t]={});var p=null!=f?f[t]:n;return(r||un(t))&&Gt(p,a),i?{context:f,name:t,value:p}:p}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var Zi=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new Ki(this.lexer),this.astCompiler=n.csp?new an(this.ast,t):new on(this.ast,t)};Zi.prototype={constructor:Zi,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var Xi=($e(),$e(),Object.prototype.valueOf),Qi=r("$sce"),eo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Mi=r("$compile"),to=t.createElement("a"),no=En(e.location.href);On.$inject=["$document"],Tn.$inject=["$provide"],In.$inject=["$locale"],Rn.$inject=["$locale"];var ro=".",io={yyyy:Ln("FullYear",4),yy:Ln("FullYear",2,0,!0),y:Ln("FullYear",1),MMMM:Un("Month"),MMM:Un("Month",!0),MM:Ln("Month",2,1),M:Ln("Month",1,1),dd:Ln("Date",2),d:Ln("Date",1),HH:Ln("Hours",2),H:Ln("Hours",1),hh:Ln("Hours",2,-12),h:Ln("Hours",1,-12),mm:Ln("Minutes",2),m:Ln("Minutes",1),ss:Ln("Seconds",2),s:Ln("Seconds",1),sss:Ln("Milliseconds",3),EEEE:Un("Day"),EEE:Un("Day",!0),a:Wn,Z:Fn,ww:zn(2),w:zn(1),G:Gn,GG:Gn,GGG:Gn,GGGG:Jn},oo=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,ao=/^\-?\d+$/;Yn.$inject=["$locale"];var so=v(br),uo=v(xr);Xn.$inject=["$parse"];var co=v({restrict:"E",compile:function(e,t){return t.href||t.xlinkHref?void 0:function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Nr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),lo={};o(di,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=ut("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),lo[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(mi,function(e,t){lo[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(gr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=ut("ng-"+e);lo[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Nr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(Er&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null));
  5. })}}}});var fo={$addControl:$,$$renameControl:er,$removeControl:$,$setValidity:$,$setDirty:$,$setPristine:$,$setSubmitted:$},po="ng-submitted";tr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var ho=function(e){return["$timeout",function(t){var r={name:"form",restrict:e?"EAC":"E",controller:tr,compile:function(r,i){r.addClass(Jo).addClass(Wo);var o=i.name?"name":e&&i.ngForm?"ngForm":!1;return{pre:function(e,r,i,a){if(!("action"in i)){var s=function(t){e.$apply(function(){a.$commitViewValue(),a.$setSubmitted()}),t.preventDefault()};ni(r[0],"submit",s),r.on("$destroy",function(){t(function(){ri(r[0],"submit",s)},0,!1)})}var u=a.$$parentForm;o&&(sn(e,a.$name,a,a.$name),i.$observe(o,function(t){a.$name!==t&&(sn(e,a.$name,n,a.$name),u.$$renameControl(a,t),sn(e,a.$name,a,a.$name))})),r.on("$destroy",function(){u.$removeControl(a),o&&sn(e,i[o],n,a.$name),f(a,fo)})}}}};return r}]},$o=ho(),mo=ho(!0),vo=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,go=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,yo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,bo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,wo=/^(\d{4})-(\d{2})-(\d{2})$/,xo=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,So=/^(\d{4})-W(\d\d)$/,Co=/^(\d{4})-(\d\d)$/,Eo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ko={text:rr,date:sr("date",wo,ar(wo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":sr("datetimelocal",xo,ar(xo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:sr("time",Eo,ar(Eo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:sr("week",So,or,"yyyy-Www"),month:sr("month",Co,ar(Co,["yyyy","MM"]),"yyyy-MM"),number:cr,url:lr,email:fr,radio:pr,checkbox:dr,hidden:$,button:$,submit:$,reset:$,file:$},Ao=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(ko[br(a.type)]||ko.text)(i,o,a,s[0],t,e,n,r)}}}}],Oo=/^(true|false|\d+)$/,Mo=function(){return{restrict:"A",priority:100,compile:function(e,t){return Oo.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},To=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,r,i){e.$$addBindingInfo(r,i.ngBind),r=r[0],t.$watch(i.ngBind,function(e){r.textContent=e===n?"":e})}}}}],Vo=["$interpolate","$compile",function(e,t){return{compile:function(r){return t.$$addBindingClass(r),function(r,i,o){var a=e(i.attr(o.$attr.ngBindTemplate));t.$$addBindingInfo(i,a.expressions),i=i[0],o.$observe("ngBindTemplate",function(e){i.textContent=e===n?"":e})}}}}],No=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(e){return(e||"").toString()});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){r.html(e.getTrustedHtml(o(t))||"")})}}}}],jo=v({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Po=$r("",!0),Do=$r("Odd",0),Io=$r("Even",1),Ro=Qn({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),_o=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],qo={},Lo={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=ut("ng-"+e);qo[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};Lo[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var Uo=["$animate",function(e){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++]=t.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},e.enter(n,r.parent(),r)}):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=de(s.clone),e.leave(c).then(function(){c=null}),s=null))})}}}],Fo=["$templateRequest","$anchorScroll","$animate","$sce",function(e,t,n,r){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Dr.noop,compile:function(i,o){var a=o.ngInclude||o.src,s=o.onload||"",u=o.autoscroll;return function(i,o,c,l,f){var p,h,d,$=0,m=function(){h&&(h.remove(),h=null),p&&(p.$destroy(),p=null),d&&(n.leave(d).then(function(){h=null}),h=d,d=null)};i.$watch(r.parseAsResourceUrl(a),function(r){var a=function(){!y(u)||u&&!i.$eval(u)||t()},c=++$;r?(e(r,!0).then(function(e){if(c===$){var t=i.$new();l.template=e;var u=f(t,function(e){m(),n.enter(e,null,o).then(a)});p=t,d=u,p.$emit("$includeContentLoaded",r),i.$eval(s)}},function(){c===$&&(m(),i.$emit("$includeContentError",r))}),i.$emit("$includeContentRequested",r)):(m(),l.template=null)})}}}}],Bo=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return/SVG/.test(r[0].toString())?(r.empty(),void e(Ce(o.template,t).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void e(r.contents())(n))}}}],Ho=Qn({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),zo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,r,i){var a=t.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,u=s?Lr(a):a,c=function(e){if(!g(e)){var t=[];return e&&o(e.split(u),function(e){e&&t.push(s?Lr(e):e)}),t}};i.$parsers.push(c),i.$formatters.push(function(e){return _r(e)?e.join(a):n}),i.$isEmpty=function(e){return!e||!e.length}}}},Wo="ng-valid",Go="ng-invalid",Jo="ng-pristine",Yo="ng-dirty",Ko="ng-untouched",Zo="ng-touched",Xo="ng-pending",Qo=new r("ngModel"),ea=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,r,i,a,s,u,c,l,f){this.$viewValue=Number.NaN,this.$modelValue=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)(e);var p,h=a(r.ngModel),d=h.assign,m=h,v=d,b=null,w=this;this.$$setOptions=function(e){if(w.$options=e,e&&e.getterSetter){var t=a(r.ngModel+"()"),n=a(r.ngModel+"($$$p)");m=function(e){var n=h(e);return E(n)&&(n=t(e)),n},v=function(e,t){E(h(e))?n(e,{$$$p:w.$modelValue}):d(e,w.$modelValue)}}else if(!h.assign)throw Qo("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,Z(i))},this.$render=$,this.$isEmpty=function(e){return g(e)||""===e||null===e||e!==e};var x=i.inheritedData("$formController")||fo,C=0;mr({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},parentForm:x,$animate:s}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,s.removeClass(i,Yo),s.addClass(i,Jo)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,s.removeClass(i,Jo),s.addClass(i,Yo),x.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,s.setClass(i,Ko,Zo)},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,s.setClass(i,Zo,Ko)},this.$rollbackViewValue=function(){u.cancel(b),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!S(w.$modelValue)||!isNaN(w.$modelValue)){var e=w.$$lastCommittedViewValue,t=w.$$rawModelValue,r=w.$valid,i=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$runValidators(t,e,function(e){o||r===e||(w.$modelValue=e?t:n,w.$modelValue!==i&&w.$$writeModelToScope())})}},this.$$runValidators=function(e,t,r){function i(){var e=w.$$parserName||"parse";return p!==n?(p||(o(w.$validators,function(e,t){u(t,null)}),o(w.$asyncValidators,function(e,t){u(t,null)})),u(e,p),p):(u(e,null),!0)}function a(){var n=!0;return o(w.$validators,function(r,i){var o=r(e,t);n=n&&o,u(i,o)}),n?!0:(o(w.$asyncValidators,function(e,t){u(t,null)}),!1)}function s(){var r=[],i=!0;o(w.$asyncValidators,function(o,a){var s=o(e,t);if(!j(s))throw Qo("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",s);u(a,n),r.push(s.then(function(){u(a,!0)},function(e){i=!1,u(a,!1)}))}),r.length?l.all(r).then(function(){c(i)},$):c(!0)}function u(e,t){f===C&&w.$setValidity(e,t)}function c(e){f===C&&r(e)}C++;var f=C;return i()&&a()?void s():void c(!1)},this.$commitViewValue=function(){var e=w.$viewValue;u.cancel(b),(w.$$lastCommittedViewValue!==e||""===e&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=e,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){w.$modelValue!==a&&w.$$writeModelToScope()}var r=w.$$lastCommittedViewValue,i=r;if(p=g(i)?n:!0)for(var o=0;o<w.$parsers.length;o++)if(i=w.$parsers[o](i),g(i)){p=!1;break}S(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=m(e));var a=w.$modelValue,s=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=i,s&&(w.$modelValue=i,t()),w.$$runValidators(i,w.$$lastCommittedViewValue,function(e){s||(w.$modelValue=e?i:n,t())})},this.$$writeModelToScope=function(){v(e,w.$modelValue),o(w.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})},this.$setViewValue=function(e,t){w.$viewValue=e,(!w.$options||w.$options.updateOnDefault)&&w.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=w.$options;i&&y(i.debounce)&&(n=i.debounce,S(n)?r=n:S(n[t])?r=n[t]:S(n["default"])&&(r=n["default"])),u.cancel(b),r?b=u(function(){w.$commitViewValue()},r):c.$$phase?w.$commitViewValue():e.$apply(function(){w.$commitViewValue()})},e.$watch(function(){var t=m(e);if(t!==w.$modelValue&&(w.$modelValue===w.$modelValue||t===t)){w.$modelValue=w.$$rawModelValue=t,p=n;for(var r=w.$formatters,i=r.length,o=t;i--;)o=r[i](o);w.$viewValue!==o&&(w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(t,o,$))}return t})}],ta=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ea,priority:1,compile:function(t){return t.addClass(Jo).addClass(Ko).addClass(Wo),{pre:function(e,t,n,r){var i=r[0],o=r[1]||fo;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&o.$$renameControl(i,e)}),e.$on("$destroy",function(){o.$removeControl(i)})},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(n){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],na=/(\s+|^)default(\s+|$)/,ra=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var r=this;this.$options=q(e.$eval(t.ngModelOptions)),this.$options.updateOn!==n?(this.$options.updateOnDefault=!1,this.$options.updateOn=Lr(this.$options.updateOn.replace(na,function(){return r.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},ia=Qn({terminal:!0,priority:1e3}),oa=r("ngOptions"),aa=/^\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]+?))?$/,sa=["$compile","$parse",function(e,n){function r(e,t,r){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}var a=e.match(aa);if(!a)throw oa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Z(t));var s=a[5]||a[7],u=a[6],c=/ as /.test(a[0])&&a[1],l=a[9],f=n(a[2]?a[1]:s),p=c&&n(c),h=p||f,d=l&&n(l),$=l?function(e,t){return d(r,t)}:function(e){return We(e)},m=function(e,t){return $(e,x(e,t))},v=n(a[2]||a[1]),g=n(a[3]||""),y=n(a[4]||""),b=n(a[8]),w={},x=u?function(e,t){return w[u]=t,w[s]=e,w}:function(e){return w[s]=e,w};return{trackBy:l,getTrackByValue:m,getWatchables:n(b,function(e){var t=[];return e=e||[],Object.keys(e).forEach(function(n){var i=x(e[n],n),o=$(e[n],i);if(t.push(o),a[2]||a[1]){var s=v(r,i);t.push(s)}if(a[4]){var u=y(r,i);t.push(u)}}),t}),getOptions:function(){var e,t=[],n={},a=b(r)||[];if(!u&&i(a))e=a;else{e=[];for(var s in a)a.hasOwnProperty(s)&&"$"!==s.charAt(0)&&e.push(s)}for(var c=e.length,f=0;c>f;f++){var p=a===e?f:e[f],d=a[p],w=x(d,p),S=h(r,w),C=$(S,w),E=v(r,w),k=g(r,w),A=y(r,w),O=new o(C,S,E,k,A);t.push(O),n[C]=O}return{items:t,selectValueMap:n,getOptionFromViewValue:function(e){return n[m(e)]},getViewValueFromOption:function(e){return l?Dr.copy(e.viewValue):e.viewValue}}}}}var a=t.createElement("option"),s=t.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(t,n,i,u){function c(e,t){e.element=t,t.disabled=e.disabled,e.value!==t.value&&(t.value=e.selectValue),e.label!==t.label&&(t.label=e.label,t.textContent=e.label)}function l(e,t,n,r){var i;return t&&br(t.nodeName)===n?i=t:(i=r.cloneNode(!1),t?e.insertBefore(i,t):e.appendChild(i)),i}function f(e){for(var t;e;)t=e.nextSibling,Le(e),e=t}function p(e){var t=$&&$[0],n=x&&x[0];if(t||n)for(;e&&(e===t||e===n);)e=e.nextSibling;return e}function h(){var e=S&&m.readValue();S=C.getOptions();var t={},r=n[0].firstChild;if(w&&n.prepend($),r=p(r),S.items.forEach(function(e){var i,o,u;e.group?(i=t[e.group],i||(o=l(n[0],r,"optgroup",s),r=o.nextSibling,o.label=e.group,i=t[e.group]={groupElement:o,currentOptionElement:o.firstChild}),u=l(i.groupElement,i.currentOptionElement,"option",a),c(e,u),i.currentOptionElement=u.nextSibling):(u=l(n[0],r,"option",a),c(e,u),r=u.nextSibling)}),Object.keys(t).forEach(function(e){f(t[e].currentOptionElement)}),f(r),d.$render(),!d.$isEmpty(e)){var i=m.readValue();(C.trackBy&&!U(e,i)||e!==i)&&(d.$setViewValue(i),d.$render())}}var d=u[1];if(d){for(var $,m=u[0],v=i.multiple,g=0,y=n.children(),b=y.length;b>g;g++)if(""===y[g].value){$=y.eq(g);break}var w=!!$,x=kr(a.cloneNode(!1));x.val("?");var S,C=r(i.ngOptions,n,t),E=function(){w||n.prepend($),n.val(""),$.prop("selected",!0),$.attr("selected",!0)},k=function(){w||$.remove()},A=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},O=function(){x.remove()};v?(d.$isEmpty=function(e){return!e||0===e.length},m.writeValue=function(e){S.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=S.getOptionFromViewValue(e);t&&!t.disabled&&(t.element.selected=!0)})},m.readValue=function(){var e=n.val()||[],t=[];return o(e,function(e){var n=S.selectValueMap[e];n.disabled||t.push(S.getViewValueFromOption(n))}),t},C.trackBy&&t.$watchCollection(function(){return _r(d.$viewValue)?d.$viewValue.map(function(e){return C.getTrackByValue(e)}):void 0},function(){d.$render()})):(m.writeValue=function(e){var t=S.getOptionFromViewValue(e);t&&!t.disabled?n[0].value!==t.selectValue&&(O(),k(),n[0].value=t.selectValue,t.element.selected=!0,t.element.setAttribute("selected","selected")):null===e||w?(O(),E()):(k(),A())},m.readValue=function(){var e=S.selectValueMap[n.val()];return e&&!e.disabled?(k(),O(),S.getViewValueFromOption(e)):null},C.trackBy&&t.$watch(function(){return C.getTrackByValue(d.$viewValue)},function(){d.$render()})),w?($.remove(),e($)(t),$.removeClass("ng-scope")):$=kr(a.cloneNode(!1)),h(),t.$watchCollection(C.getWatchables,h)}}}}],ua=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function c(e){s.text(e||"")}var l,f=u.count,p=u.$attr.when&&s.attr(u.$attr.when),h=u.offset||0,d=a.$eval(p)||{},m={},v=t.startSymbol(),y=t.endSymbol(),b=v+f+"-"+h+y,w=Dr.noop;o(u,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+br(n[2]);d[r]=s.attr(u.$attr[t])}}),o(d,function(e,n){m[n]=t(e.replace(r,b))}),a.$watch(f,function(t){var r=parseFloat(t),i=isNaN(r);if(i||r in d||(r=e.pluralCat(r-h)),r!==l&&!(i&&S(l)&&isNaN(l))){w();var o=m[r];g(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+p),w=$,c()):w=a.$watch(o,c),l=r}})}}}],ca=["$parse","$animate",function(e,a){var s="$$NG_REMOVED",u=r("ngRepeat"),c=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0===(1&t))},l=function(e){return e.clone[0]},f=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,p){var h=p.ngRepeat,d=t.createComment(" end ngRepeat: "+h+" "),$=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!$)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var m=$[1],v=$[2],g=$[3],y=$[4];if($=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!$)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var b=$[3]||$[1],w=$[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var x,S,C,E,k={$id:We};return y?x=e(y):(C=function(e,t){return We(t)},E=function(e){return e}),function(e,t,r,p,$){x&&(S=function(t,n,r){return w&&(k[w]=t),k[b]=n,k.$index=r,x(e,k)});var m=$e();e.$watchCollection(v,function(r){var p,v,y,x,k,A,O,M,T,V,N,j,P=t[0],D=$e();if(g&&(e[g]=r),i(r))T=r,M=S||C;else{M=S||E,T=[];for(var I in r)r.hasOwnProperty(I)&&"$"!==I.charAt(0)&&T.push(I)}for(x=T.length,N=new Array(x),p=0;x>p;p++)if(k=r===T?p:T[p],A=r[k],O=M(k,A,p),m[O])V=m[O],delete m[O],D[O]=V,N[p]=V;else{if(D[O])throw o(N,function(e){e&&e.scope&&(m[e.id]=e)}),u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,O,A);N[p]={id:O,scope:n,clone:n},D[O]=!0}for(var R in m){if(V=m[R],j=de(V.clone),a.leave(j),j[0].parentNode)for(p=0,v=j.length;v>p;p++)j[p][s]=!0;V.scope.$destroy()}for(p=0;x>p;p++)if(k=r===T?p:T[p],A=r[k],V=N[p],V.scope){y=P;do y=y.nextSibling;while(y&&y[s]);l(V)!=y&&a.move(de(V.clone),null,kr(P)),P=f(V),c(V.scope,p,b,A,w,k,x)}else $(function(e,t){V.scope=t;var n=d.cloneNode(!1);e[e.length++]=n,a.enter(e,null,kr(P)),P=n,V.clone=e,D[V.id]=V,c(V.scope,p,b,A,w,k,x)});m=D})}}}}],la="ng-hide",fa="ng-hide-animate",pa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,la,{tempClasses:fa})})}}}],ha=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,la,{tempClasses:fa})})}}}],da=Qn(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),$a=["$animate",function(e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,u=[],c=[],l=[],f=[],p=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var r,i;for(r=0,i=l.length;i>r;++r)e.cancel(l[r]);for(l.length=0,r=0,i=f.length;i>r;++r){var s=de(c[r].clone);f[r].$destroy();var h=l[r]=e.leave(s);h.then(p(l,r))}c.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&o(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");var a={clone:r};c.push(a),e.enter(r,o.parent(),o)})})})}}}],ma=Qn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),va=Qn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),ga=Qn({restrict:"EAC",link:function(e,t,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Z(t));o(function(e){t.empty(),t.append(e)})}}),ya=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],ba={$setViewValue:$,$render:$},wa=["$element","$scope","$attrs",function(e,r,i){var o=this,a=new Ge;o.ngModelCtrl=ba,o.unknownOption=kr(t.createElement("option")),o.renderUnknownOption=function(t){var n="? "+We(t)+" ?";o.unknownOption.val(n),e.prepend(o.unknownOption),e.val(n)},r.$on("$destroy",function(){o.renderUnknownOption=$}),o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.readValue=function(){return o.removeUnknownOption(),e.val()},o.writeValue=function(t){o.hasOption(t)?(o.removeUnknownOption(),e.val(t),""===t&&o.emptyOption.prop("selected",!0)):null==t&&o.emptyOption?(o.removeUnknownOption(),e.val("")):o.renderUnknownOption(t)},o.addOption=function(e,t){pe(e,'"option value"'),""===e&&(o.emptyOption=t);var n=a.get(e)||0;a.put(e,n+1)},o.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.remove(e),""===e&&(o.emptyOption=n)):a.put(e,t-1))},o.hasOption=function(e){return!!a.get(e)}}],xa=function(){return{restrict:"E",require:["select","?ngModel"],controller:wa,link:function(e,t,n,r){var i=r[1];if(i){var a=r[0];if(a.ngModelCtrl=i,i.$render=function(){a.writeValue(i.$viewValue)},t.on("change",function(){e.$apply(function(){i.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return o(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Ge(e);o(t.find("option"),function(e){e.selected=y(n.get(e.value))})};var s,u=0/0;e.$watch(function(){u!==i.$viewValue||U(s,i.$viewValue)||(s=L(i.$viewValue),i.$render()),u=i.$viewValue}),i.$isEmpty=function(e){return!e||0===e.length}}}}}},Sa=["$interpolate",function(e){function t(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}return{restrict:"E",priority:100,compile:function(n,r){if(g(r.value)){var i=e(n.text(),!0);i||r.$set("value",n.text())}return function(e,n,r){var o="$selectController",a=n.parent(),s=a.data(o)||a.parent().data(o);s&&s.ngModelCtrl&&(i?e.$watch(i,function(e,i){r.$set("value",e),i!==e&&s.removeOption(i),s.addOption(e,n),s.ngModelCtrl.$render(),t(n)}):(s.addOption(r.value,n),s.ngModelCtrl.$render(),t(n)),n.on("$destroy",function(){s.removeOption(r.value),s.ngModelCtrl.$render()}))}}}}],Ca=v({restrict:"E",terminal:!1}),Ea=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},ka=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,i,o){if(o){var a,s=i.ngPattern||i.pattern;i.$observe("pattern",function(e){if(x(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,e,Z(t));a=e||n,o.$validate()}),o.$validators.pattern=function(e){return o.$isEmpty(e)||g(a)||a.test(e)}}}}},Aa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=h(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return 0>i||r.$isEmpty(t)||t.length<=i}}}}},Oa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=h(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};return e.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(ce(),ye(Dr),void kr(t).ready(function(){ie(t,oe)}))}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(e,t,n){"use strict";function r(){function e(e,n){return t.extend(Object.create(e),n)}function n(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(e,t,n,r){var o="?"===r?r:null,a="*"===r?r:null;return i.push({name:n,optional:!!o}),t=t||"",""+(o?"":t)+"(?:"+(o?t:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+e+"$",n?"i":""),r}var r={};this.when=function(e,i){var o=t.copy(i);if(t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,e&&n(e,o)),e){var a="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";r[a]=t.extend({redirectTo:e},n(a,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,a,s,c,l){function f(e,t){var n=t.keys,r={};if(!t.regexp)return null;var i=t.regexp.exec(e);if(!i)return null;for(var o=1,a=i.length;a>o;++o){var s=n[o-1],u=i[o];s&&u&&(r[s.name]=u)}return r}function p(e){var r=y.current;m=d(),v=m&&r&&m.$$route===r.$$route&&t.equals(m.pathParams,r.pathParams)&&!m.reloadOnSearch&&!g,v||!r&&!m||n.$broadcast("$routeChangeStart",m,r).defaultPrevented&&e&&e.preventDefault()}function h(){var e=y.current,r=m;v?(e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e)):(r||e)&&(g=!1,y.current=r,r&&r.redirectTo&&(t.isString(r.redirectTo)?i.path($(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then(function(){if(r){var e,n,i=t.extend({},r.resolve);return t.forEach(i,function(e,n){i[n]=t.isString(e)?s.get(e):s.invoke(e,null,null,n)}),t.isDefined(e=r.template)?t.isFunction(e)&&(e=e(r.params)):t.isDefined(n=r.templateUrl)&&(t.isFunction(n)&&(n=n(r.params)),n=l.getTrustedResourceUrl(n),t.isDefined(n)&&(r.loadedTemplateUrl=n,e=c(n))),t.isDefined(e)&&(i.$template=e),a.all(i)}}).then(function(i){r==y.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))},function(t){r==y.current&&n.$broadcast("$routeChangeError",r,e,t)}))}function d(){var n,o;return t.forEach(r,function(r,a){!o&&(n=f(i.path(),r))&&(o=e(r,{params:t.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&e(r[null],{params:{},pathParams:{}})}function $(e,n){var r=[];return t.forEach((e||"").split(":"),function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var m,v,g=!1,y={routes:r,reload:function(){g=!0,n.$evalAsync(function(){p(),h()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw u("norout","Tried updating route when with no current route");e=t.extend({},this.current.params,e),i.path($(this.current.$$route.originalPath,e)),i.search(e)}};return n.$on("$locationChangeStart",p),n.$on("$locationChangeSuccess",h),y}]}function i(){this.$get=function(){return{}}}function o(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function c(){h&&(r.cancel(h),h=null),f&&(f.$destroy(),f=null),p&&(h=r.leave(p),h.then(function(){h=null}),p=null)}function l(){var a=e.current&&e.current.locals,s=a&&a.$template;if(t.isDefined(s)){var l=i.$new(),h=e.current,m=u(l,function(e){r.enter(e,null,p||o).then(function(){!t.isDefined(d)||d&&!i.$eval(d)||n()}),c()});p=m,f=h.scope=l,f.$emit("$viewContentLoaded"),f.$eval($)}else c()}var f,p,h,d=a.autoscroll,$=a.onload||"";i.$on("$routeChangeSuccess",l),l()}}}function a(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var s=e(i.contents());if(o.controller){a.$scope=r;var u=t(o.controller,a);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}s(r)}}}var s=t.module("ngRoute",["ng"]).provider("$route",r),u=t.$$minErr("ngRoute");s.provider("$routeParams",i),s.directive("ngView",o),s.directive("ngView",a),o.$inject=["$route","$anchorScroll","$animate"],a.$inject=["$compile","$controller","$route"]}(window,window.angular),angular.module("ui.ace",[]).constant("uiAceConfig",{}).directive("uiAce",["uiAceConfig",function(e){if(angular.isUndefined(window.ace))throw new Error("ui-ace need ace to work... (o rly?)");var t=function(e,t,n){if(angular.isDefined(n.workerPath)){var r=window.ace.require("ace/config");r.set("workerPath",n.workerPath)}angular.isDefined(n.require)&&n.require.forEach(function(e){window.ace.require(e)}),angular.isDefined(n.showGutter)&&e.renderer.setShowGutter(n.showGutter),angular.isDefined(n.useWrapMode)&&t.setUseWrapMode(n.useWrapMode),angular.isDefined(n.showInvisibles)&&e.renderer.setShowInvisibles(n.showInvisibles),angular.isDefined(n.showIndentGuides)&&e.renderer.setDisplayIndentGuides(n.showIndentGuides),angular.isDefined(n.useSoftTabs)&&t.setUseSoftTabs(n.useSoftTabs),angular.isDefined(n.showPrintMargin)&&e.setShowPrintMargin(n.showPrintMargin),angular.isDefined(n.disableSearch)&&n.disableSearch&&e.commands.addCommands([{name:"unfind",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(){return!1},readOnly:!0}]),angular.isString(n.theme)&&e.setTheme("ace/theme/"+n.theme),angular.isString(n.mode)&&t.setMode("ace/mode/"+n.mode),angular.isDefined(n.firstLineNumber)&&(angular.isNumber(n.firstLineNumber)?t.setOption("firstLineNumber",n.firstLineNumber):angular.isFunction(n.firstLineNumber)&&t.setOption("firstLineNumber",n.firstLineNumber()));var i,o;if(angular.isDefined(n.advanced))for(i in n.advanced)o={name:i,value:n.advanced[i]},e.setOption(o.name,o.value);if(angular.isDefined(n.rendererOptions))for(i in n.rendererOptions)o={name:i,value:n.rendererOptions[i]},e.renderer.setOption(o.name,o.value);angular.forEach(n.callbacks,function(t){angular.isFunction(t)&&t(e)})};return{restrict:"EA",require:"?ngModel",link:function(n,r,i,o){var a,s,u=e.ace||{},c=angular.extend({},u,n.$eval(i.uiAce)),l=window.ace.edit(r[0]),f=l.getSession(),p=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);angular.isDefined(e)&&n.$evalAsync(function(){if(!angular.isFunction(e))throw new Error("ui-ace use a function as callback.");e(t)})},h={onChange:function(e){return function(t){var r=f.getValue();!o||r===o.$viewValue||n.$$phase||n.$root.$$phase||n.$evalAsync(function(){o.$setViewValue(r)}),p(e,t,l)}},onBlur:function(e){return function(){p(e,l)}}};i.$observe("readonly",function(e){l.setReadOnly(!!e||""===e)}),o&&(o.$formatters.push(function(e){if(angular.isUndefined(e)||null===e)return"";if(angular.isObject(e)||angular.isArray(e))throw new Error("ui-ace cannot use an object or an array as a model");return e}),o.$render=function(){f.setValue(o.$viewValue)});var d=function(e,r){e!==r&&(c=angular.extend({},u,n.$eval(i.uiAce)),c.callbacks=[c.onLoad],c.onLoad!==u.onLoad&&c.callbacks.unshift(u.onLoad),f.removeListener("change",a),a=h.onChange(c.onChange),f.on("change",a),l.removeListener("blur",s),s=h.onBlur(c.onBlur),l.on("blur",s),t(l,f,c))};n.$watch(i.uiAce,d,!0),d(u),r.on("$destroy",function(){l.session.$stopWorker(),l.destroy()}),n.$watch(function(){return[r[0].offsetWidth,r[0].offsetHeight]},function(){l.resize(),l.renderer.updateFull()},!0)}}}]),angular.module("modellang-ide.components.menu",["modellang-ide.components.layout"]).directive("menu",function(){return{restrict:"E",scope:!1,controller:"MenuCtrl",
  6. controllerAs:"ctrl",templateUrl:"components/menu/menu.html",link:function(e,t,n){}}}).controller("MenuCtrl",["$scope","$compile","LayoutService",function(e,t,n){e["new"]=function(e){n.addComponent(e)},e.open=function(){},e.save=function(){}}]),angular.module("modellang-ide.components.layout",[]).service("LayoutService",function(){this.goldenLayout,this.setLayout=function(e,t){this.goldenLayout=new GoldenLayout(e,t)},this.addComponent=function(e){var t={type:"component",title:e,componentName:"angularTemplate",componentState:{template:"<"+e+"/>"}};this.goldenLayout.selectedItem?this.goldenLayout.selectedItem.addChild(t):angular.noop()}}).directive("layout",["$window","$compile","LayoutService",function(e,t,n){return{restrict:"E",scope:!0,controllerAs:"ctrl",link:function(r,i,o,a,s){if(o.layoutModel){var u=r.$parent.$eval(o.layoutModel);u.options.settings&&(r.model.settings=u.options.settings),u.options.dimensions&&(r.model.dimensions=u.options.dimensions)}r.goldenLayoutConfig={settings:r.model.settings,dimensions:r.model.dimensions,content:r.model.data},n.setLayout(r.goldenLayoutConfig,i),Object.keys(r.templates).forEach(function(e){var i=r.templates[e];n.goldenLayout.registerComponent(e,function(e,n){var o=e.getElement();o.html(i),t(o.contents())(r.$parent)})}),n.goldenLayout.registerComponent("angularTemplate",function(e,n){var i=e.getElement();i.html(n.template),"string"==typeof n.template&&t(i.contents())(r.$parent)}),n.goldenLayout.init(),r.$watch(function(){return{w:i.width(),h:i.height()}},function(e,t){e&&n.goldenLayout.updateSize(e.w,e.h)},!0),$(e).on("resize",function(){r.$apply()})},controller:["$scope",function(e){e.model||(e.model={}),e.model.data||(e.model.data=[]),e.templates={},this.register=function(t,n){e.templates[t]=n}}]}}]).directive("layoutRow",function(){return{restrict:"E",require:"^^layout",scope:!0,link:function(e,t,n,r){var i=n.layoutOptions?e.$parent.$eval(n.layoutOptions):{},o={type:"row",content:e.model.data},a=angular.extend({},i,o);e.$parent.model.data.push(a)},controller:["$scope",function(e){e.hasOwnProperty("model")||(e.model={}),e.model.data||(e.model.data=[])}]}}).directive("layoutColumn",function(){return{restrict:"E",require:"^^layout",scope:!0,link:function(e,t,n,r){var i=n.layoutOptions?e.$parent.$eval(n.layoutOptions):{},o={type:"column",content:e.model.data},a=angular.extend({},i,o);e.$parent.model.data.push(a)},controller:["$scope",function(e){e.hasOwnProperty("model")||(e.model={}),e.model.data||(e.model.data=[])}]}}).directive("layoutStack",function(){return{restrict:"E",require:"^^layout",scope:!0,link:function(e,t,n,r){var i=n.layoutOptions?e.$parent.$eval(n.layoutOptions):{},o={type:"stack",content:e.model.data},a=angular.extend({},i,o);e.$parent.model.data.push(a)},controller:["$scope",function(e){e.hasOwnProperty("model")||(e.model={}),e.model.data||(e.model.data=[])}]}}).directive("layoutContent",function(){return{restrict:"E",require:"^^layout",scope:!0,link:{pre:function(e,t,n,r){var i=n.layoutOptions?e.$parent.$eval(n.layoutOptions):{},o={type:"component",componentName:"angularTemplate",componentState:{template:t.remove()}},a=angular.extend({},i,o);e.$parent.model.data.push(a)}},controller:["$scope",function(e){e.hasOwnProperty("model")||(e.model={}),e.model.data||(e.model.data=[])}]}}),angular.module("modellang-ide.components.editor",["ui.ace"]).service("parser",["$window","$q",function(e,t){var n=null,r={},i=0;return Boolean(e.Worker)&&(n=new Worker("assets/scripts/modellang-worker.js"),n.onmessage=function(e){var t=e.data,n=r[t.id];delete r[t.id],n.resolve(t.parsed)}),{parse:function(o){var a=i++,s=t.defer();return null!==n?(n.postMessage({id:a,input:o}),r[a]=s):t.all(e.modellangParser?[]:[$.getScript("assets/scripts/modellang-parser.js")]).then(function(){var t;try{t=e.modellangParser.parse(o)}catch(n){t={errors:[n]}}s.resolve(t)}),s.promise}}}]).directive("editor",["$timeout","parser",function(e,t){return{restrict:"E",scope:{},controller:"EditorCtrl",controllerAs:"ctrl",templateUrl:"components/editor/editor.html",link:{pre:function(n,r,i,o){n.model.options.onLoad=function(r){r.$blockScrolling=1/0;{var i,o=ace.require("ace/ext/statusbar");new o.StatusBar(r,r.container)}n.$watch("model.data",function(n){e.cancel(i),i=e(t.parse,100,!0,n).then(function(e){var t=e.errors.map(function(e){return{row:e.line-1,column:e.column-1,text:e.name+": "+e.message,type:"error"}});r.getSession().setAnnotations(t)})})}}}}}]).controller("EditorCtrl",["$scope",function(e){var t={mode:"modellang",theme:"tomorrow_night",require:["ace/ext/language_tools"],useSoftTabs:!1,advanced:{enableSnippets:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0},rendererOptions:{fontSize:"13px",fontFamily:"Inconsolata, Monaco, Consolas, Courier New, Courier",fadeFoldWidgets:!0,scrollPastEnd:!0}};e.model||(e.model={}),e.model.options=Object.keys(t).reduce(function(e,n){return n in e||(e[n]=t[n]),e},e.model.options||{}),e.model.data||(e.model.data="")}]),angular.module("modellang-ide.home",["modellang-ide.components.layout","modellang-ide.components.editor"]).directive("home",function(){return{scope:!1,controller:"HomeCtrl",controllerAs:"pageCtrl",templateUrl:"pages/home/home.html",link:function(e,t,n){}}}).controller("HomeCtrl",["$scope","$compile",function(e,t){}]),angular.module("modellang-ide",["ngRoute","modellang-ide.components.menu","modellang-ide.home"]).config(["$routeProvider",function(e){e.when("/:page",{template:function(e){return"<div "+e.page+"/>"}}).otherwise({redirectTo:"/home"})}]),function(e){try{e=angular.module("modellang-ide.components.editor")}catch(t){e=angular.module("modellang-ide.components.editor",[])}e.run(["$templateCache",function(e){e.put("components/editor/editor.html","<div style=height:100% ng-model=model.data ui-ace=model.options></div>")}])}(),function(e){try{e=angular.module("modellang-ide.components.menu")}catch(t){e=angular.module("modellang-ide.components.menu",[])}e.run(["$templateCache",function(e){e.put("components/menu/menu.html",'<div class="navbar navbar-xs navbar-inverse navbar-static-top"><div class=container-fluid><div class=navbar-header><button type=button class="navbar-toggle collapsed" data-toggle=collapse data-target=#bs-example-navbar-collapse-1><span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span></button></div><div class="collapse navbar-collapse" id=bs-example-navbar-collapse-1><ul class="nav navbar-nav"><li class=dropdown><a class=dropdown-toggle data-toggle=dropdown role=button aria-expanded=false>File <span class=caret></span></a><ul class=dropdown-menu role=menu><li><a ng-click="new(\'editor\')">New</a></li><li><a ng-click=open()>Open</a></li><li><a ng-click=save()>Save</a></li></ul></li></ul></div></div></div>')}])}(),function(e){try{e=angular.module("modellang-ide.home")}catch(t){e=angular.module("modellang-ide.home",[])}e.run(["$templateCache",function(e){e.put("pages/home/home.html",'<layout layout-commands=layoutCommands layout-model="{ options: { settings: { showPopoutIcon: false, showCloseIcon: true, selectionEnabled: true, }, }, }"><layout-row><layout-column layout-options={width:10}><layout-content layout-options="{title:\'File Tree\'}"><p><b>TODO:</b> Files</p></layout-content></layout-column><layout-column layout-options={width:60}><layout-content layout-options="{title:\'Edit\'}"><editor editor-model=editorModel></editor></layout-content></layout-column><layout-column layout-options={width:30}><layout-content layout-options="{title:\'Constraints\', height:10}"><p><b>TODO:</b> Constraints</p></layout-content><layout-content layout-options="{title:\'Relationship Graph\'}"><p><b>TODO:</b> Relationship Graph</p></layout-content><layout-content layout-options="{title:\'Event Info\'}"><p><b>TODO:</b> Event Info</p></layout-content></layout-column></layout-row></layout>')}])}();