forked from ksroda/studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle.min.js
24 lines (24 loc) · 279 KB
/
bundle.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(1),o=r(i),a=n(3),u=r(a),s=n(5),c=r(s),l=n(7),f=r(l),p=n(8),h=r(p),d=n(10),v=r(d),g=n(34);u["default"].module("myApp",[c["default"],f["default"],h["default"]]).config(function(t){t.when("/",{templateUrl:"views/about.html"}).when("/baza_pytan",{templateUrl:"views/baza_pytan.html",controller:"baza_pytan_controller"}).when("/aktualne_pytania",{templateUrl:"views/aktualne_pytania.html"}).when("/dodaj_pytanie",{templateUrl:"views/dodaj_pytanie.html",controller:"add_question_controller"}).when("/profile",{templateUrl:"views/profile.html",controller:"profile_controller"}).when("/webcam",{templateUrl:"views/webcam.html",controller:"webcam_controller"}).when("/login",{templateUrl:"views/login.html",controller:"login_controller"}).when("/moje_pytania",{templateUrl:"views/moje_pytania.html",controller:"moje_pytania_controller"})}).factory("authService",function(t){var e=function(t){var e=t.getItem("studioLogin"),n=t.getItem("studioToken");return new Promise(function(t,r){e&&n?v["default"].auth.post({login:e,token:n}).then(t)["catch"](r):r()})},n=function(){e(sessionStorage)["catch"](function(n){e(localStorage)["catch"](function(e){t.path("/login").replace()})})},r=function(e,n,r,i){v["default"].login.post({Email:"",Login:e,Password:n}).then(function(n){console.log(n),t.path(n.data?"/":"/login").replace();var o=r?localStorage:sessionStorage;o.setItem("studioLogin",e),o.setItem("studioToken",n.data),i("")})["catch"](function(e){t.path("/login").replace(),i("Login lub hasło są nieprawidłowe")})};return{authorization:n,authentication:r}}).controller("myCtrl",["$scope","$translate",function(t,e){t.visibleMenu=!0,t.language="pl",t.languages=["en","pl"],t.updateLanguage=function(){e.use(t.language)},t.menuTree=[{name:"Strona główna",path:"#/",icon:"fa-home",active:!0},{name:"Baza pytań",target:"baza",submenu:[{name:"Przeglądaj bazę pytań",path:"#/baza_pytan"},{name:"Przeglądaj swoje pytania",path:"#/moje_pytania"},{name:"Dodaj pytanie",path:"#/dodaj_pytanie"}]},{name:"Egzamin",target:"egzamin",submenu:[{name:"Aktualny egzamin",path:"#/aktualne_pytania"},{name:"Generuj nowy egzamin",path:"#/generuj_egzamin"},{name:"Generuj raporty",path:"#/generuj_raporty"}]},{name:"Webcam",icon:"fa-video-camera",path:"#/webcam"}]}]).controller("login_controller",["$scope","authService",function(t,e){t.visibleMenu=!1,t.login=function(){e.authentication(t.username,t.password,t.rememberMe,function(e){t.$apply(function(){t.error=e})})}}]).controller("baza_pytan_controller",["$scope","authService",function(t,e){v["default"].questions.get().then(function(e){t.$apply(function(){t.baza_pytan=e.data})})}]).controller("webcam_controller",["$scope",function(t){var e=(0,g.runCamera)();t.captureImage=function(){e.captureImage()},t.$on("$destroy",function(){(0,g.stopCamera)()})}]).controller("profile_controller",["$scope",function(t){v["default"].profile.get().then(function(e){t.$apply(function(){t.person=e.data})}),t.pswd_change=!1,t.show=function(){t.pswd_change=!0},t.reset=function(){t.pswd_change=!1,t.old_pswd="",t.new_pswd1="",t.new_pswd2=""},t.changePassword=function(t,e,n){if(e===n){var r={pswd:t,new_pswd:e};v["default"].profile.post(r)}}}]).controller("add_question_controller",["$scope",function(t){t.addQuestion=function(t,e,n,r,i){var o={question:t,answerA:e,answerB:n,answerC:r,answerD:i};v["default"].questions.post(o)}}]).controller("moje_pytania_controller",["$scope",function(t){t.baza_pytan=[],t.numberOfEntriesOnPage=25,t.resetCachedPages=function(){t.baza_pytan=[],t.turnPage(1)},t.fetchQuestion=function(t){},t.turnPage=function(e){var n=t.numberOfEntriesOnPage,r=t.baza_pytan.slice((e-1)*n,e*n).filter(function(t){return null!==t}),i=r.length;console.log(e,t.totalNumberOfPages),0===i||i<n&&e!==t.totalNumberOfPages?(console.log("nowa strona"),v["default"].questions.getByPage({page:e,numberOfEntriesOnPage:n}).then(function(r){var i=o["default"].range((e-1)*n).map(function(e,n){return t.baza_pytan[n]||null}),a=i.concat(r.data.data).concat(t.baza_pytan.slice((e+1)*n));t.$apply(function(){t.baza_pytan=a,t.cachedPages=r.data.data,t.totalNumberOfEntries=r.data.totalNumberOfEntries;var e=o["default"].range(1,Math.ceil(r.data.totalNumberOfEntries/n)+1);t.allPages=e,t.totalNumberOfPages=o["default"].max(e)}),console.log(a)})):t.cachedPages=r},t.turnPage(1)}]).directive("passwordVerify",function(){return{require:"ngModel",scope:{passwordVerify:"="},link:function(t,e,n,r){t.$watch(function(){var e;return(t.passwordVerify||r.$viewValue)&&(e=t.passwordVerify+"_"+r.$viewValue),e},function(e){e&&r.$parsers.unshift(function(e){var n=t.passwordVerify;return n!==e?void r.$setValidity("passwordVerify",!1):(r.$setValidity("passwordVerify",!0),e)})})}}}).config(function(t){t.translations("en",{WELCOME:"Welcome!",MESSAGE:"This app supports your lanaguage!"}).translations("pl",{WELCOME:"Witamy!",MESSAGE:"Ta strona obsługuje twój język!"}),t.preferredLanguage("pl"),t.useSanitizeValueStrategy("escapeParameters")})},function(t,e,n){var r;(function(t,i){(function(){function o(t,e){return t.set(e[0],e[1]),t}function a(t,e){return t.add(e),t}function u(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function s(t,e,n,r){for(var i=-1,o=t?t.length:0;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function c(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function l(t,e){for(var n=t?t.length:0;n--&&e(t[n],n,t)!==!1;);return t}function f(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(!e(t[n],n,t))return!1;return!0}function p(t,e){for(var n=-1,r=t?t.length:0,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function h(t,e){var n=t?t.length:0;return!!n&&S(t,e,0)>-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r<i;)if(n(e,t[r]))return!0;return!1}function v(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function g(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function $(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function m(t,e,n,r){var i=t?t.length:0;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function y(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function b(t){return t.split("")}function w(t){return t.match(Me)||[]}function x(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function _(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function S(t,e,n){if(e!==e)return _(t,E,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function C(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function E(t){return t!==t}function A(t,e){var n=t?t.length:0;return n?N(t,e)/n:Nt}function k(t){return function(e){return null==e?it:e[t]}}function O(t){return function(e){return null==t?it:t[e]}}function j(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function T(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function N(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==it&&(n=n===it?o:n+o)}return n}function M(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function I(t,e){return v(e,function(e){return[e,t[e]]})}function R(t){return function(e){return t(e)}}function P(t,e){return v(e,function(e){return t[e]})}function L(t,e){return t.has(e)}function V(t,e){for(var n=-1,r=t.length;++n<r&&S(e,t[n],0)>-1;);return n}function D(t,e){for(var n=t.length;n--&&S(e,t[n],0)>-1;);return n}function U(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&r++;return r}function F(t){return"\\"+Bn[t]}function q(t,e){return null==t?it:t[e]}function B(t){return In.test(t)}function z(t){return Rn.test(t)}function H(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function W(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function G(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function K(t,e){return function(n){return t(e(n))}}function Z(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==ct||(t[n]=ct,o[i++]=n)}return o}function J(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function Y(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function X(t){return B(t)?tt(t):ar(t)}function Q(t){return B(t)?et(t):b(t)}function tt(t){for(var e=Nn.lastIndex=0;Nn.test(t);)e++;return e}function et(t){return t.match(Nn)||[]}function nt(t){return t.match(Mn)||[]}function rt(t){function e(t){if(Lu(t)&&!Bf(t)&&!(t instanceof i)){if(t instanceof r)return t;if(Zc.call(t,"__wrapped__"))return Mo(t)}return new r(t)}function n(){}function r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}function b(){var t=new i(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t}function O(){if(this.__filtered__){var t=new i(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function tt(){var t=this.__wrapped__.value(),e=this.__dir__,n=Bf(t),r=e<0,i=n?t.length:0,o=uo(0,i,this.__views__),a=o.start,u=o.end,s=u-a,c=r?u:a-1,l=this.__iteratees__,f=l.length,p=0,h=wl(s,this.__takeCount__);if(!n||i<at||i==s&&h==s)return oi(t,this.__actions__);var d=[];t:for(;s--&&p<h;){c+=e;for(var v=-1,g=t[c];++v<f;){var $=l[v],m=$.iteratee,y=$.type,b=m(g);if(y==At)g=b;else if(!b){if(y==Et)continue t;break t}}d[p++]=g}return d}function et(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Me(){this.__data__=jl?jl(null):{}}function We(t){return this.has(t)&&delete this.__data__[t]}function Ge(t){var e=this.__data__;if(jl){var n=e[t];return n===st?it:n}return Zc.call(e,t)?e[t]:it}function Ke(t){var e=this.__data__;return jl?e[t]!==it:Zc.call(e,t)}function Ze(t,e){var n=this.__data__;return n[t]=jl&&e===it?st:e,this}function Je(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ye(){this.__data__=[]}function Xe(t){var e=this.__data__,n=xn(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():sl.call(e,n,1),!0}function Qe(t){var e=this.__data__,n=xn(e,t);return n<0?it:e[n][1]}function tn(t){return xn(this.__data__,t)>-1}function en(t,e){var n=this.__data__,r=xn(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}function nn(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rn(){this.__data__={hash:new et,map:new(El||Je),string:new et}}function on(t){return io(this,t)["delete"](t)}function an(t){return io(this,t).get(t)}function un(t){return io(this,t).has(t)}function sn(t,e){return io(this,t).set(t,e),this}function cn(t){var e=-1,n=t?t.length:0;for(this.__data__=new nn;++e<n;)this.add(t[e])}function ln(t){return this.__data__.set(t,st),this}function fn(t){return this.__data__.has(t)}function pn(t){this.__data__=new Je(t)}function hn(){this.__data__=new Je}function dn(t){return this.__data__["delete"](t)}function vn(t){return this.__data__.get(t)}function gn(t){return this.__data__.has(t)}function $n(t,e){var n=this.__data__;if(n instanceof Je){var r=n.__data__;if(!El||r.length<at-1)return r.push([t,e]),this;n=this.__data__=new nn(r)}return n.set(t,e),this}function mn(t,e){var n=Bf(t)||_u(t)?M(t.length,Fc):[],r=n.length,i=!!r;for(var o in t)!e&&!Zc.call(t,o)||i&&("length"==o||go(o,r))||n.push(o);return n}function yn(t,e,n,r){return t===it||xu(t,Hc[n])&&!Zc.call(r,n)?e:t}function bn(t,e,n){(n===it||xu(t[e],n))&&("number"!=typeof e||n!==it||e in t)||(t[e]=n)}function wn(t,e,n){var r=t[e];Zc.call(t,e)&&xu(r,n)&&(n!==it||e in t)||(t[e]=n)}function xn(t,e){for(var n=t.length;n--;)if(xu(t[n][0],e))return n;return-1}function _n(t,e,n,r){return Bl(t,function(t,i,o){e(r,t,n(t),o)}),r}function Sn(t,e){return t&&Ci(e,ms(e),t)}function Cn(t,e){for(var n=-1,r=null==t,i=e.length,o=Ic(i);++n<i;)o[n]=r?it:vs(t,e[n]);return o}function En(t,e,n){return t===t&&(n!==it&&(t=t<=n?t:n),e!==it&&(t=t>=e?t:e)),t}function An(t,e,n,r,i,o,a){var u;if(r&&(u=o?r(t,i,o,a):r(t)),u!==it)return u;if(!Pu(t))return t;var s=Bf(t);if(s){if(u=lo(t),!e)return Si(t,u)}else{var l=Ql(t),f=l==qt||l==Bt;if(Hf(t))return pi(t,e);if(l==Wt||l==Lt||f&&!o){if(H(t))return o?t:{};if(u=fo(f?{}:t),!e)return Ei(t,Sn(u,t))}else{if(!Dn[l])return o?t:{};u=po(t,l,An,e)}}a||(a=new pn);var p=a.get(t);if(p)return p;if(a.set(t,u),!s)var h=n?Qi(t):ms(t);return c(h||t,function(i,o){h&&(o=i,i=t[o]),wn(u,o,An(i,e,n,r,o,t,a))}),u}function kn(t){var e=ms(t);return function(n){return On(n,t,e)}}function On(t,e,n){var r=n.length;if(null==t)return!r;for(t=Dc(t);r--;){var i=n[r],o=e[i],a=t[i];if(a===it&&!(i in t)||!o(a))return!1}return!0}function Nn(t){return Pu(t)?al(t):{}}function Mn(t,e,n){if("function"!=typeof t)throw new qc(ut);return nf(function(){t.apply(it,n)},e)}function In(t,e,n,r){var i=-1,o=h,a=!0,u=t.length,s=[],c=e.length;if(!u)return s;n&&(e=v(e,R(n))),r?(o=d,a=!1):e.length>=at&&(o=L,a=!1,e=new cn(e));t:for(;++i<u;){var l=t[i],f=n?n(l):l;if(l=r||0!==l?l:0,a&&f===f){for(var p=c;p--;)if(e[p]===f)continue t;s.push(l)}else o(e,f,r)||s.push(l)}return s}function Rn(t,e){var n=!0;return Bl(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Un(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(u===it?a===a&&!Ku(a):n(a,u)))var u=a,s=o}return s}function Fn(t,e,n,r){var i=t.length;for(n=ts(n),n<0&&(n=-n>i?0:i+n),r=r===it||r>i?i:ts(r),r<0&&(r+=i),r=n>r?0:es(r);n<r;)t[n++]=e;return t}function qn(t,e){var n=[];return Bl(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Bn(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=vo),i||(i=[]);++o<a;){var u=t[o];e>0&&n(u)?e>1?Bn(u,e-1,n,r,i):g(i,u):r||(i[i.length]=u)}return i}function Wn(t,e){return t&&Hl(t,e,ms)}function Gn(t,e){return t&&Wl(t,e,ms)}function Zn(t,e){return p(e,function(e){return Mu(t[e])})}function Jn(t,e){e=mo(e,t)?[e]:li(e);for(var n=0,r=e.length;null!=t&&n<r;)t=t[jo(e[n++])];return n&&n==r?t:it}function Xn(t,e,n){var r=e(t);return Bf(t)?r:g(r,n(t))}function Qn(t){return Xc.call(t)}function ar(t,e){return t>e}function fr(t,e){return null!=t&&Zc.call(t,e)}function pr(t,e){return null!=t&&e in Dc(t)}function hr(t,e,n){return t>=wl(e,n)&&t<bl(e,n)}function dr(t,e,n){for(var r=n?d:h,i=t[0].length,o=t.length,a=o,u=Ic(o),s=1/0,c=[];a--;){var l=t[a];a&&e&&(l=v(l,R(e))),s=wl(l.length,s),u[a]=!n&&(e||i>=120&&l.length>=120)?new cn(a&&l):it}l=t[0];var f=-1,p=u[0];t:for(;++f<i&&c.length<s;){var g=l[f],$=e?e(g):g;if(g=n||0!==g?g:0,!(p?L(p,$):r(c,$,n))){for(a=o;--a;){var m=u[a];if(!(m?L(m,$):r(t[a],$,n)))continue t}p&&p.push($),c.push(g)}}return c}function vr(t,e,n,r){return Wn(t,function(t,i,o){e(r,n(t),i,o)}),r}function gr(t,e,n){mo(e,t)||(e=li(e),t=ko(t,e),e=Xo(e));var r=null==t?t:t[jo(e)];return null==r?it:u(r,t,n)}function $r(t){return Lu(t)&&Xc.call(t)==te}function mr(t){return Lu(t)&&Xc.call(t)==Ut}function yr(t,e,n,r,i){return t===e||(null==t||null==e||!Pu(t)&&!Lu(e)?t!==t&&e!==e:br(t,e,yr,n,r,i))}function br(t,e,n,r,i,o){var a=Bf(t),u=Bf(e),s=Vt,c=Vt;a||(s=Ql(t),s=s==Lt?Wt:s),u||(c=Ql(e),c=c==Lt?Wt:c);var l=s==Wt&&!H(t),f=c==Wt&&!H(e),p=s==c;if(p&&!l)return o||(o=new pn),a||Jf(t)?Ji(t,e,n,r,i,o):Yi(t,e,s,n,r,i,o);if(!(i&wt)){var h=l&&Zc.call(t,"__wrapped__"),d=f&&Zc.call(e,"__wrapped__");if(h||d){var v=h?t.value():t,g=d?e.value():e;return o||(o=new pn),n(v,g,r,i,o)}}return!!p&&(o||(o=new pn),Xi(t,e,n,r,i,o))}function wr(t){return Lu(t)&&Ql(t)==zt}function xr(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Dc(t);i--;){var u=n[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){u=n[i];var s=u[0],c=t[s],l=u[1];if(a&&u[2]){if(c===it&&!(s in t))return!1}else{var f=new pn;if(r)var p=r(c,l,s,t,e,f);if(!(p===it?yr(l,c,r,bt|wt,f):p))return!1}}return!0}function _r(t){if(!Pu(t)||wo(t))return!1;var e=Mu(t)||H(t)?tl:Ue;return e.test(To(t))}function Sr(t){return Pu(t)&&Xc.call(t)==Kt}function Cr(t){return Lu(t)&&Ql(t)==Zt}function Er(t){return Lu(t)&&Ru(t.length)&&!!Vn[Xc.call(t)]}function Ar(t){return"function"==typeof t?t:null==t?sc:"object"==typeof t?Bf(t)?Mr(t[0],t[1]):Nr(t):gc(t)}function kr(t){if(!xo(t))return yl(t);var e=[];for(var n in Dc(t))Zc.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Or(t){if(!Pu(t))return Ao(t);var e=xo(t),n=[];for(var r in t)("constructor"!=r||!e&&Zc.call(t,r))&&n.push(r);return n}function jr(t,e){return t<e}function Tr(t,e){var n=-1,r=Su(t)?Ic(t.length):[];return Bl(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Nr(t){var e=oo(t);return 1==e.length&&e[0][2]?So(e[0][0],e[0][1]):function(n){return n===t||xr(n,t,e)}}function Mr(t,e){return mo(t)&&_o(e)?So(jo(t),e):function(n){var r=vs(n,t);return r===it&&r===e?$s(n,t):yr(e,r,it,bt|wt)}}function Ir(t,e,n,r,i){if(t!==e){if(!Bf(e)&&!Jf(e))var o=Or(e);c(o||e,function(a,u){if(o&&(u=a,a=e[u]),Pu(a))i||(i=new pn),Rr(t,e,u,n,Ir,r,i);else{var s=r?r(t[u],a,u+"",t,e,i):it;s===it&&(s=a),bn(t,u,s)}})}}function Rr(t,e,n,r,i,o,a){var u=t[n],s=e[n],c=a.get(s);if(c)return void bn(t,n,c);var l=o?o(u,s,n+"",t,e,a):it,f=l===it;f&&(l=s,Bf(s)||Jf(s)?Bf(u)?l=u:Cu(u)?l=Si(u):(f=!1,l=An(s,!0)):Hu(s)||_u(s)?_u(u)?l=rs(u):!Pu(u)||r&&Mu(u)?(f=!1,l=An(s,!0)):l=u:f=!1),f&&(a.set(s,l),i(l,s,r,o,a),a["delete"](s)),bn(t,n,l)}function Pr(t,e){var n=t.length;if(n)return e+=e<0?n:0,go(e,n)?t[e]:it}function Lr(t,e,n){var r=-1;e=v(e.length?e:[sc],R(ro()));var i=Tr(t,function(t,n,i){var o=v(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return T(i,function(t,e){return wi(t,e,n)})}function Vr(t,e){return t=Dc(t),Dr(t,e,function(e,n){return n in t})}function Dr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],u=t[a];n(u,a)&&(o[a]=u)}return o}function Ur(t){return function(e){return Jn(e,t)}}function Fr(t,e,n,r){var i=r?C:S,o=-1,a=e.length,u=t;for(t===e&&(e=Si(e)),n&&(u=v(t,R(n)));++o<a;)for(var s=0,c=e[o],l=n?n(c):c;(s=i(u,l,s,r))>-1;)u!==t&&sl.call(u,s,1),sl.call(t,s,1);return t}function qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;if(go(i))sl.call(t,i,1);else if(mo(i,t))delete t[jo(i)];else{var a=li(i),u=ko(t,a);null!=u&&delete u[jo(Xo(a))]}}}return t}function Br(t,e){return t+dl(_l()*(e-t+1))}function zr(t,e,n,r){for(var i=-1,o=bl(hl((e-t)/(n||1)),0),a=Ic(o);o--;)a[r?o:++i]=t,t+=n;return a}function Hr(t,e){var n="";if(!t||e<1||e>jt)return n;do e%2&&(n+=t),e=dl(e/2),e&&(t+=t);while(e);return n}function Wr(t,e){return e=bl(e===it?t.length-1:e,0),function(){for(var n=arguments,r=-1,i=bl(n.length-e,0),o=Ic(i);++r<i;)o[r]=n[e+r];r=-1;for(var a=Ic(e+1);++r<e;)a[r]=n[r];return a[e]=o,u(t,this,a)}}function Gr(t,e,n,r){if(!Pu(t))return t;e=mo(e,t)?[e]:li(e);for(var i=-1,o=e.length,a=o-1,u=t;null!=u&&++i<o;){var s=jo(e[i]),c=n;if(i!=a){var l=u[s];c=r?r(l,s,u):it,c===it&&(c=Pu(l)?l:go(e[i+1])?[]:{})}wn(u,s,c),u=u[s]}return t}function Kr(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Ic(i);++r<i;)o[r]=t[r+e];return o}function Zr(t,e){var n;return Bl(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function Jr(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&i<=Rt){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Ku(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Yr(t,e,sc,n)}function Yr(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,a=e!==e,u=null===e,s=Ku(e),c=e===it;i<o;){var l=dl((i+o)/2),f=n(t[l]),p=f!==it,h=null===f,d=f===f,v=Ku(f);if(a)var g=r||d;else g=c?d&&(r||p):u?d&&p&&(r||!h):s?d&&p&&!h&&(r||!v):!h&&!v&&(r?f<=e:f<e);g?i=l+1:o=l}return wl(o,It)}function Xr(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],u=e?e(a):a;if(!n||!xu(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function Qr(t){return"number"==typeof t?t:Ku(t)?Nt:+t}function ti(t){if("string"==typeof t)return t;if(Ku(t))return ql?ql.call(t):"";var e=t+"";return"0"==e&&1/t==-Ot?"-0":e}function ei(t,e,n){var r=-1,i=h,o=t.length,a=!0,u=[],s=u;if(n)a=!1,i=d;else if(o>=at){var c=e?null:Zl(t);if(c)return J(c);a=!1,i=L,s=new cn}else s=e?[]:u;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,a&&f===f){for(var p=s.length;p--;)if(s[p]===f)continue t;e&&s.push(f),u.push(l)}else i(s,f,n)||(s!==u&&s.push(f),u.push(l))}return u}function ni(t,e){e=mo(e,t)?[e]:li(e),t=ko(t,e);var n=jo(Xo(e));return!(null!=t&&Zc.call(t,n))||delete t[n]}function ri(t,e,n,r){return Gr(t,e,n(Jn(t,e)),r)}function ii(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Kr(t,r?0:o,r?o+1:i):Kr(t,r?o+1:0,r?i:o)}function oi(t,e){var n=t;return n instanceof i&&(n=n.value()),$(e,function(t,e){return e.func.apply(e.thisArg,g([t],e.args))},n)}function ai(t,e,n){for(var r=-1,i=t.length;++r<i;)var o=o?g(In(o,t[r],e,n),In(t[r],o,e,n)):t[r];return o&&o.length?ei(o,e,n):[]}function ui(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var u=r<o?e[r]:it;n(a,t[r],u)}return a}function si(t){return Cu(t)?t:[]}function ci(t){return"function"==typeof t?t:sc}function li(t){return Bf(t)?t:of(t)}function fi(t,e,n){var r=t.length;return n=n===it?r:n,!e&&n>=r?t:Kr(t,e,n)}function pi(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function hi(t){var e=new t.constructor(t.byteLength);return new rl(e).set(new rl(t)),e}function di(t,e){var n=e?hi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function vi(t,e,n){var r=e?n(G(t),!0):G(t);return $(r,o,new t.constructor)}function gi(t){var e=new t.constructor(t.source,Pe.exec(t));return e.lastIndex=t.lastIndex,e}function $i(t,e,n){var r=e?n(J(t),!0):J(t);return $(r,a,new t.constructor)}function mi(t){return Fl?Dc(Fl.call(t)):{}}function yi(t,e){var n=e?hi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function bi(t,e){if(t!==e){var n=t!==it,r=null===t,i=t===t,o=Ku(t),a=e!==it,u=null===e,s=e===e,c=Ku(e);if(!u&&!c&&!o&&t>e||o&&a&&s&&!u&&!c||r&&a&&s||!n&&s||!i)return 1;if(!r&&!o&&!c&&t<e||c&&n&&i&&!r&&!o||u&&n&&i||!a&&i||!s)return-1}return 0}function wi(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,u=n.length;++r<a;){var s=bi(i[r],o[r]);if(s){if(r>=u)return s;var c=n[r];return s*("desc"==c?-1:1)}}return t.index-e.index}function xi(t,e,n,r){for(var i=-1,o=t.length,a=n.length,u=-1,s=e.length,c=bl(o-a,0),l=Ic(s+c),f=!r;++u<s;)l[u]=e[u];for(;++i<a;)(f||i<o)&&(l[n[i]]=t[i]);for(;c--;)l[u++]=t[i++];return l}function _i(t,e,n,r){for(var i=-1,o=t.length,a=-1,u=n.length,s=-1,c=e.length,l=bl(o-u,0),f=Ic(l+c),p=!r;++i<l;)f[i]=t[i];for(var h=i;++s<c;)f[h+s]=e[s];for(;++a<u;)(p||i<o)&&(f[h+n[a]]=t[i++]);return f}function Si(t,e){var n=-1,r=t.length;for(e||(e=Ic(r));++n<r;)e[n]=t[n];return e}function Ci(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var a=e[i],u=r?r(n[a],t[a],a,n,t):it;wn(n,a,u===it?t[a]:u)}return n}function Ei(t,e){return Ci(t,Yl(t),e)}function Ai(t,e){return function(n,r){var i=Bf(n)?s:_n,o=e?e():{};return i(n,t,ro(r,2),o)}}function ki(t){return Wr(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:it,a=i>2?n[2]:it;for(o=t.length>3&&"function"==typeof o?(i--,o):it,a&&$o(n[0],n[1],a)&&(o=i<3?it:o,i=1),e=Dc(e);++r<i;){var u=n[r];u&&t(e,u,r,o)}return e})}function Oi(t,e){return function(n,r){if(null==n)return n;if(!Su(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Dc(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function ji(t){return function(e,n,r){for(var i=-1,o=Dc(e),a=r(e),u=a.length;u--;){var s=a[t?u:++i];if(n(o[s],s,o)===!1)break}return e}}function Ti(t,e,n){function r(){var e=this&&this!==Kn&&this instanceof r?o:t;return e.apply(i?n:this,arguments)}var i=e<,o=Ii(t);return r}function Ni(t){return function(e){e=os(e);var n=B(e)?Q(e):it,r=n?n[0]:e.charAt(0),i=n?fi(n,1).join(""):e.slice(1);return r[t]()+i}}function Mi(t){return function(e){return $(rc(Ls(e).replace(jn,"")),t,"")}}function Ii(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Nn(t.prototype),r=t.apply(n,e);return Pu(r)?r:n}}function Ri(t,e,n){function r(){for(var o=arguments.length,a=Ic(o),s=o,c=no(r);s--;)a[s]=arguments[s];var l=o<3&&a[0]!==c&&a[o-1]!==c?[]:Z(a,c);if(o-=l.length,o<n)return Wi(t,e,Vi,r.placeholder,it,a,l,it,it,n-o);var f=this&&this!==Kn&&this instanceof r?i:t;return u(f,this,a)}var i=Ii(t);return r}function Pi(t){return function(e,n,r){var i=Dc(e);if(!Su(e)){var o=ro(n,3);e=ms(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:it}}function Li(t){return Wr(function(e){e=Bn(e,1);var n=e.length,i=n,o=r.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new qc(ut);if(o&&!u&&"wrapper"==eo(a))var u=new r([],(!0))}for(i=u?i:n;++i<n;){a=e[i];var s=eo(a),c="wrapper"==s?Jl(a):it;u=c&&bo(c[0])&&c[1]==($t|ht|vt|mt)&&!c[4].length&&1==c[9]?u[eo(c[0])].apply(u,c[3]):1==a.length&&bo(a)?u[s]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Bf(r)&&r.length>=at)return u.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function Vi(t,e,n,r,i,o,a,u,s,c){function l(){for(var $=arguments.length,m=Ic($),y=$;y--;)m[y]=arguments[y];if(d)var b=no(l),w=U(m,b);if(r&&(m=xi(m,r,i,d)),o&&(m=_i(m,o,a,d)),$-=w,d&&$<c){var x=Z(m,b);return Wi(t,e,Vi,l.placeholder,n,m,x,u,s,c-$)}var _=p?n:this,S=h?_[t]:t;return $=m.length,u?m=Oo(m,u):v&&$>1&&m.reverse(),f&&s<$&&(m.length=s),this&&this!==Kn&&this instanceof l&&(S=g||Ii(S)),S.apply(_,m)}var f=e&$t,p=e<,h=e&ft,d=e&(ht|dt),v=e&yt,g=h?it:Ii(t);return l}function Di(t,e){return function(n,r){return vr(n,t,e(r),{})}}function Ui(t,e){return function(n,r){var i;if(n===it&&r===it)return e;if(n!==it&&(i=n),r!==it){if(i===it)return r;"string"==typeof n||"string"==typeof r?(n=ti(n),r=ti(r)):(n=Qr(n),r=Qr(r)),i=t(n,r)}return i}}function Fi(t){return Wr(function(e){return e=1==e.length&&Bf(e[0])?v(e[0],R(ro())):v(Bn(e,1),R(ro())),Wr(function(n){var r=this;return t(e,function(t){return u(t,r,n)})})})}function qi(t,e){e=e===it?" ":ti(e);var n=e.length;if(n<2)return n?Hr(e,t):e;var r=Hr(e,hl(t/X(e)));return B(e)?fi(Q(r),0,t).join(""):r.slice(0,t)}function Bi(t,e,n,r){function i(){for(var e=-1,s=arguments.length,c=-1,l=r.length,f=Ic(l+s),p=this&&this!==Kn&&this instanceof i?a:t;++c<l;)f[c]=r[c];for(;s--;)f[c++]=arguments[++e];return u(p,o?n:this,f)}var o=e<,a=Ii(t);return i}function zi(t){return function(e,n,r){return r&&"number"!=typeof r&&$o(e,n,r)&&(n=r=it),e=Qu(e),n===it?(n=e,e=0):n=Qu(n),r=r===it?e<n?1:-1:Qu(r),zr(e,n,r,t)}}function Hi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ns(e),n=ns(n)),t(e,n)}}function Wi(t,e,n,r,i,o,a,u,s,c){var l=e&ht,f=l?a:it,p=l?it:a,h=l?o:it,d=l?it:o;e|=l?vt:gt,e&=~(l?gt:vt),e&pt||(e&=~(lt|ft));var v=[t,e,i,h,f,d,p,u,s,c],g=n.apply(it,v);return bo(t)&&ef(g,v),g.placeholder=r,rf(g,t,e)}function Gi(t){var e=Vc[t];return function(t,n){if(t=ns(t),n=wl(ts(n),292)){var r=(os(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(os(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function Ki(t){return function(e){var n=Ql(e);return n==zt?G(e):n==Zt?Y(e):I(e,t(e))}}function Zi(t,e,n,r,i,o,a,u){var s=e&ft;if(!s&&"function"!=typeof t)throw new qc(ut);var c=r?r.length:0;if(c||(e&=~(vt|gt),r=i=it),a=a===it?a:bl(ts(a),0),u=u===it?u:ts(u),c-=i?i.length:0,e>){var l=r,f=i;r=i=it}var p=s?it:Jl(t),h=[t,e,n,r,i,l,f,o,a,u];if(p&&Co(h,p),t=h[0],e=h[1],n=h[2],r=h[3],i=h[4],u=h[9]=null==h[9]?s?0:t.length:bl(h[9]-c,0),!u&&e&(ht|dt)&&(e&=~(ht|dt)),e&&e!=lt)d=e==ht||e==dt?Ri(t,e,u):e!=vt&&e!=(lt|vt)||i.length?Vi.apply(it,h):Bi(t,e,n,r);else var d=Ti(t,e,n);var v=p?Gl:ef;return rf(v(d,h),t,e)}function Ji(t,e,n,r,i,o){var a=i&wt,u=t.length,s=e.length;if(u!=s&&!(a&&s>u))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,f=!0,p=i&bt?new cn:it;for(o.set(t,e),o.set(e,t);++l<u;){var h=t[l],d=e[l];if(r)var v=a?r(d,h,l,e,t,o):r(h,d,l,t,e,o);if(v!==it){if(v)continue;f=!1;break}if(p){if(!y(e,function(t,e){if(!p.has(e)&&(h===t||n(h,t,r,i,o)))return p.add(e)})){f=!1;break}}else if(h!==d&&!n(h,d,r,i,o)){f=!1;break}}return o["delete"](t),o["delete"](e),f}function Yi(t,e,n,r,i,o,a){switch(n){case ee:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case te:return!(t.byteLength!=e.byteLength||!r(new rl(t),new rl(e)));case Dt:case Ut:case Ht:return xu(+t,+e);case Ft:return t.name==e.name&&t.message==e.message;case Kt:case Jt:return t==e+"";case zt:var u=G;case Zt:var s=o&wt;if(u||(u=J),t.size!=e.size&&!s)return!1;var c=a.get(t);if(c)return c==e;o|=bt,a.set(t,e);var l=Ji(u(t),u(e),r,i,o,a);return a["delete"](t),l;case Yt:if(Fl)return Fl.call(t)==Fl.call(e)}return!1}function Xi(t,e,n,r,i,o){var a=i&wt,u=ms(t),s=u.length,c=ms(e),l=c.length;if(s!=l&&!a)return!1;for(var f=s;f--;){var p=u[f];if(!(a?p in e:Zc.call(e,p)))return!1}var h=o.get(t);if(h&&o.get(e))return h==e;var d=!0;o.set(t,e),o.set(e,t);for(var v=a;++f<s;){p=u[f];var g=t[p],$=e[p];if(r)var m=a?r($,g,p,e,t,o):r(g,$,p,t,e,o);if(!(m===it?g===$||n(g,$,r,i,o):m)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var y=t.constructor,b=e.constructor;y!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),o["delete"](e),d}function Qi(t){return Xn(t,ms,Yl)}function to(t){return Xn(t,ys,Xl)}function eo(t){for(var e=t.name+"",n=Il[e],r=Zc.call(Il,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function no(t){var n=Zc.call(e,"placeholder")?e:t;return n.placeholder}function ro(){var t=e.iteratee||cc;return t=t===cc?Ar:t,arguments.length?t(arguments[0],arguments[1]):t}function io(t,e){var n=t.__data__;return yo(e)?n["string"==typeof e?"string":"hash"]:n.map}function oo(t){for(var e=ms(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,_o(i)]}return e}function ao(t,e){var n=q(t,e);return _r(n)?n:it}function uo(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=wl(e,t+a);break;case"takeRight":t=bl(t,e-a)}}return{start:t,end:e}}function so(t){var e=t.match(Te);return e?e[1].split(Ne):[]}function co(t,e,n){e=mo(e,t)?[e]:li(e);for(var r,i=-1,o=e.length;++i<o;){var a=jo(e[i]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;var o=t?t.length:0;return!!o&&Ru(o)&&go(a,o)&&(Bf(t)||_u(t))}function lo(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&Zc.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function fo(t){return"function"!=typeof t.constructor||xo(t)?{}:Nn(il(t))}function po(t,e,n,r){var i=t.constructor;switch(e){case te:return hi(t);case Dt:case Ut:return new i((+t));case ee:return di(t,r);case ne:case re:case ie:case oe:case ae:case ue:case se:case ce:case le:return yi(t,r);case zt:return vi(t,r,n);case Ht:case Jt:return new i(t);case Kt:return gi(t);case Zt:return $i(t,r,n);case Yt:return mi(t)}}function ho(t,e){var n=e.length,r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(je,"{\n/* [wrapped with "+e+"] */\n")}function vo(t){return Bf(t)||_u(t)||!!(cl&&t&&t[cl])}function go(t,e){return e=null==e?jt:e,!!e&&("number"==typeof t||qe.test(t))&&t>-1&&t%1==0&&t<e}function $o(t,e,n){if(!Pu(n))return!1;var r=typeof e;return!!("number"==r?Su(n)&&go(e,n.length):"string"==r&&e in n)&&xu(n[e],t)}function mo(t,e){if(Bf(t))return!1;var n=typeof t;
return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ku(t))||(xe.test(t)||!we.test(t)||null!=e&&t in Dc(e))}function yo(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function bo(t){var n=eo(t),r=e[n];if("function"!=typeof r||!(n in i.prototype))return!1;if(t===r)return!0;var o=Jl(r);return!!o&&t===o[0]}function wo(t){return!!Gc&&Gc in t}function xo(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Hc;return t===n}function _o(t){return t===t&&!Pu(t)}function So(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==it||t in Dc(n)))}}function Co(t,e){var n=t[1],r=e[1],i=n|r,o=i<(lt|ft|$t),a=r==$t&&n==ht||r==$t&&n==mt&&t[7].length<=e[8]||r==($t|mt)&&e[7].length<=e[8]&&n==ht;if(!o&&!a)return t;r<&&(t[2]=e[2],i|=n<?0:pt);var u=e[3];if(u){var s=t[3];t[3]=s?xi(s,u,e[4]):u,t[4]=s?Z(t[3],ct):e[4]}return u=e[5],u&&(s=t[5],t[5]=s?_i(s,u,e[6]):u,t[6]=s?Z(t[5],ct):e[6]),u=e[7],u&&(t[7]=u),r&$t&&(t[8]=null==t[8]?e[8]:wl(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function Eo(t,e,n,r,i,o){return Pu(t)&&Pu(e)&&(o.set(e,t),Ir(t,e,it,Eo,o),o["delete"](e)),t}function Ao(t){var e=[];if(null!=t)for(var n in Dc(t))e.push(n);return e}function ko(t,e){return 1==e.length?t:Jn(t,Kr(e,0,-1))}function Oo(t,e){for(var n=t.length,r=wl(e.length,n),i=Si(t);r--;){var o=e[r];t[r]=go(o,n)?i[o]:it}return t}function jo(t){if("string"==typeof t||Ku(t))return t;var e=t+"";return"0"==e&&1/t==-Ot?"-0":e}function To(t){if(null!=t){try{return Kc.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function No(t,e){return c(Pt,function(n){var r="_."+n[0];e&n[1]&&!h(t,r)&&t.push(r)}),t.sort()}function Mo(t){if(t instanceof i)return t.clone();var e=new r(t.__wrapped__,t.__chain__);return e.__actions__=Si(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Io(t,e,n){e=(n?$o(t,e,n):e===it)?1:bl(ts(e),0);var r=t?t.length:0;if(!r||e<1)return[];for(var i=0,o=0,a=Ic(hl(r/e));i<r;)a[o++]=Kr(t,i,i+=e);return a}function Ro(t){for(var e=-1,n=t?t.length:0,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function Po(){for(var t=arguments.length,e=Ic(t?t-1:0),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return t?g(Bf(n)?Si(n):[n],Bn(e,1)):[]}function Lo(t,e,n){var r=t?t.length:0;return r?(e=n||e===it?1:ts(e),Kr(t,e<0?0:e,r)):[]}function Vo(t,e,n){var r=t?t.length:0;return r?(e=n||e===it?1:ts(e),e=r-e,Kr(t,0,e<0?0:e)):[]}function Do(t,e){return t&&t.length?ii(t,ro(e,3),!0,!0):[]}function Uo(t,e){return t&&t.length?ii(t,ro(e,3),!0):[]}function Fo(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&$o(t,e,n)&&(n=0,r=i),Fn(t,e,n,r)):[]}function qo(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:ts(n);return i<0&&(i=bl(r+i,0)),_(t,ro(e,3),i)}function Bo(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=r-1;return n!==it&&(i=ts(n),i=n<0?bl(r+i,0):wl(i,r-1)),_(t,ro(e,3),i,!0)}function zo(t){var e=t?t.length:0;return e?Bn(t,1):[]}function Ho(t){var e=t?t.length:0;return e?Bn(t,Ot):[]}function Wo(t,e){var n=t?t.length:0;return n?(e=e===it?1:ts(e),Bn(t,e)):[]}function Go(t){for(var e=-1,n=t?t.length:0,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}function Ko(t){return t&&t.length?t[0]:it}function Zo(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:ts(n);return i<0&&(i=bl(r+i,0)),S(t,e,i)}function Jo(t){var e=t?t.length:0;return e?Kr(t,0,-1):[]}function Yo(t,e){return t?ml.call(t,e):""}function Xo(t){var e=t?t.length:0;return e?t[e-1]:it}function Qo(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=r;if(n!==it&&(i=ts(n),i=(i<0?bl(r+i,0):wl(i,r-1))+1),e!==e)return _(t,E,i-1,!0);for(;i--;)if(t[i]===e)return i;return-1}function ta(t,e){return t&&t.length?Pr(t,ts(e)):it}function ea(t,e){return t&&t.length&&e&&e.length?Fr(t,e):t}function na(t,e,n){return t&&t.length&&e&&e.length?Fr(t,e,ro(n,2)):t}function ra(t,e,n){return t&&t.length&&e&&e.length?Fr(t,e,it,n):t}function ia(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=ro(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return qr(t,i),n}function oa(t){return t?Sl.call(t):t}function aa(t,e,n){var r=t?t.length:0;return r?(n&&"number"!=typeof n&&$o(t,e,n)?(e=0,n=r):(e=null==e?0:ts(e),n=n===it?r:ts(n)),Kr(t,e,n)):[]}function ua(t,e){return Jr(t,e)}function sa(t,e,n){return Yr(t,e,ro(n,2))}function ca(t,e){var n=t?t.length:0;if(n){var r=Jr(t,e);if(r<n&&xu(t[r],e))return r}return-1}function la(t,e){return Jr(t,e,!0)}function fa(t,e,n){return Yr(t,e,ro(n,2),!0)}function pa(t,e){var n=t?t.length:0;if(n){var r=Jr(t,e,!0)-1;if(xu(t[r],e))return r}return-1}function ha(t){return t&&t.length?Xr(t):[]}function da(t,e){return t&&t.length?Xr(t,ro(e,2)):[]}function va(t){var e=t?t.length:0;return e?Kr(t,1,e):[]}function ga(t,e,n){return t&&t.length?(e=n||e===it?1:ts(e),Kr(t,0,e<0?0:e)):[]}function $a(t,e,n){var r=t?t.length:0;return r?(e=n||e===it?1:ts(e),e=r-e,Kr(t,e<0?0:e,r)):[]}function ma(t,e){return t&&t.length?ii(t,ro(e,3),!1,!0):[]}function ya(t,e){return t&&t.length?ii(t,ro(e,3)):[]}function ba(t){return t&&t.length?ei(t):[]}function wa(t,e){return t&&t.length?ei(t,ro(e,2)):[]}function xa(t,e){return t&&t.length?ei(t,it,e):[]}function _a(t){if(!t||!t.length)return[];var e=0;return t=p(t,function(t){if(Cu(t))return e=bl(t.length,e),!0}),M(e,function(e){return v(t,k(e))})}function Sa(t,e){if(!t||!t.length)return[];var n=_a(t);return null==e?n:v(n,function(t){return u(e,it,t)})}function Ca(t,e){return ui(t||[],e||[],wn)}function Ea(t,e){return ui(t||[],e||[],Gr)}function Aa(t){var n=e(t);return n.__chain__=!0,n}function ka(t,e){return e(t),t}function Oa(t,e){return e(t)}function ja(){return Aa(this)}function Ta(){return new r(this.value(),this.__chain__)}function Na(){this.__values__===it&&(this.__values__=Xu(this.value()));var t=this.__index__>=this.__values__.length,e=t?it:this.__values__[this.__index__++];return{done:t,value:e}}function Ma(){return this}function Ia(t){for(var e,r=this;r instanceof n;){var i=Mo(r);i.__index__=0,i.__values__=it,e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,e}function Ra(){var t=this.__wrapped__;if(t instanceof i){var e=t;return this.__actions__.length&&(e=new i(this)),e=e.reverse(),e.__actions__.push({func:Oa,args:[oa],thisArg:it}),new r(e,this.__chain__)}return this.thru(oa)}function Pa(){return oi(this.__wrapped__,this.__actions__)}function La(t,e,n){var r=Bf(t)?f:Rn;return n&&$o(t,e,n)&&(e=it),r(t,ro(e,3))}function Va(t,e){var n=Bf(t)?p:qn;return n(t,ro(e,3))}function Da(t,e){return Bn(Ha(t,e),1)}function Ua(t,e){return Bn(Ha(t,e),Ot)}function Fa(t,e,n){return n=n===it?1:ts(n),Bn(Ha(t,e),n)}function qa(t,e){var n=Bf(t)?c:Bl;return n(t,ro(e,3))}function Ba(t,e){var n=Bf(t)?l:zl;return n(t,ro(e,3))}function za(t,e,n,r){t=Su(t)?t:Ts(t),n=n&&!r?ts(n):0;var i=t.length;return n<0&&(n=bl(i+n,0)),Gu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&S(t,e,n)>-1}function Ha(t,e){var n=Bf(t)?v:Tr;return n(t,ro(e,3))}function Wa(t,e,n,r){return null==t?[]:(Bf(e)||(e=null==e?[]:[e]),n=r?it:n,Bf(n)||(n=null==n?[]:[n]),Lr(t,e,n))}function Ga(t,e,n){var r=Bf(t)?$:j,i=arguments.length<3;return r(t,ro(e,4),n,i,Bl)}function Ka(t,e,n){var r=Bf(t)?m:j,i=arguments.length<3;return r(t,ro(e,4),n,i,zl)}function Za(t,e){var n=Bf(t)?p:qn;return n(t,cu(ro(e,3)))}function Ja(t){var e=Su(t)?t:Ts(t),n=e.length;return n>0?e[Br(0,n-1)]:it}function Ya(t,e,n){var r=-1,i=Xu(t),o=i.length,a=o-1;for(e=(n?$o(t,e,n):e===it)?1:En(ts(e),0,o);++r<e;){var u=Br(r,a),s=i[u];i[u]=i[r],i[r]=s}return i.length=e,i}function Xa(t){return Ya(t,Mt)}function Qa(t){if(null==t)return 0;if(Su(t))return Gu(t)?X(t):t.length;var e=Ql(t);return e==zt||e==Zt?t.size:kr(t).length}function tu(t,e,n){var r=Bf(t)?y:Zr;return n&&$o(t,e,n)&&(e=it),r(t,ro(e,3))}function eu(t,e){if("function"!=typeof e)throw new qc(ut);return t=ts(t),function(){if(--t<1)return e.apply(this,arguments)}}function nu(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,Zi(t,$t,it,it,it,it,e)}function ru(t,e){var n;if("function"!=typeof e)throw new qc(ut);return t=ts(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function iu(t,e,n){e=n?it:e;var r=Zi(t,ht,it,it,it,it,it,e);return r.placeholder=iu.placeholder,r}function ou(t,e,n){e=n?it:e;var r=Zi(t,dt,it,it,it,it,it,e);return r.placeholder=ou.placeholder,r}function au(t,e,n){function r(e){var n=p,r=h;return p=h=it,m=e,v=t.apply(r,n)}function i(t){return m=t,g=nf(u,e),y?r(t):v}function o(t){var n=t-$,r=t-m,i=e-n;return b?wl(i,d-r):i}function a(t){var n=t-$,r=t-m;return $===it||n>=e||n<0||b&&r>=d}function u(){var t=Nf();return a(t)?s(t):void(g=nf(u,o(t)))}function s(t){return g=it,w&&p?r(t):(p=h=it,v)}function c(){g!==it&&Kl(g),m=0,p=$=h=g=it}function l(){return g===it?v:s(Nf())}function f(){var t=Nf(),n=a(t);if(p=arguments,h=this,$=t,n){if(g===it)return i($);if(b)return g=nf(u,e),r($)}return g===it&&(g=nf(u,e)),v}var p,h,d,v,g,$,m=0,y=!1,b=!1,w=!0;if("function"!=typeof t)throw new qc(ut);return e=ns(e)||0,Pu(n)&&(y=!!n.leading,b="maxWait"in n,d=b?bl(ns(n.maxWait)||0,e):d,w="trailing"in n?!!n.trailing:w),f.cancel=c,f.flush=l,f}function uu(t){return Zi(t,yt)}function su(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new qc(ut);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(su.Cache||nn),n}function cu(t){if("function"!=typeof t)throw new qc(ut);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function lu(t){return ru(2,t)}function fu(t,e){if("function"!=typeof t)throw new qc(ut);return e=e===it?e:ts(e),Wr(t,e)}function pu(t,e){if("function"!=typeof t)throw new qc(ut);return e=e===it?0:bl(ts(e),0),Wr(function(n){var r=n[e],i=fi(n,0,e);return r&&g(i,r),u(t,this,i)})}function hu(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new qc(ut);return Pu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),au(t,e,{leading:r,maxWait:e,trailing:i})}function du(t){return nu(t,1)}function vu(t,e){return e=null==e?sc:e,Vf(e,t)}function gu(){if(!arguments.length)return[];var t=arguments[0];return Bf(t)?t:[t]}function $u(t){return An(t,!1,!0)}function mu(t,e){return An(t,!1,!0,e)}function yu(t){return An(t,!0,!0)}function bu(t,e){return An(t,!0,!0,e)}function wu(t,e){return null==e||On(t,e,ms(e))}function xu(t,e){return t===e||t!==t&&e!==e}function _u(t){return Cu(t)&&Zc.call(t,"callee")&&(!ul.call(t,"callee")||Xc.call(t)==Lt)}function Su(t){return null!=t&&Ru(t.length)&&!Mu(t)}function Cu(t){return Lu(t)&&Su(t)}function Eu(t){return t===!0||t===!1||Lu(t)&&Xc.call(t)==Dt}function Au(t){return!!t&&1===t.nodeType&&Lu(t)&&!Hu(t)}function ku(t){if(Su(t)&&(Bf(t)||"string"==typeof t||"function"==typeof t.splice||Hf(t)||_u(t)))return!t.length;var e=Ql(t);if(e==zt||e==Zt)return!t.size;if(Ml||xo(t))return!yl(t).length;for(var n in t)if(Zc.call(t,n))return!1;return!0}function Ou(t,e){return yr(t,e)}function ju(t,e,n){n="function"==typeof n?n:it;var r=n?n(t,e):it;return r===it?yr(t,e,n):!!r}function Tu(t){return!!Lu(t)&&(Xc.call(t)==Ft||"string"==typeof t.message&&"string"==typeof t.name)}function Nu(t){return"number"==typeof t&&$l(t)}function Mu(t){var e=Pu(t)?Xc.call(t):"";return e==qt||e==Bt}function Iu(t){return"number"==typeof t&&t==ts(t)}function Ru(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=jt}function Pu(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Lu(t){return!!t&&"object"==typeof t}function Vu(t,e){return t===e||xr(t,e,oo(e))}function Du(t,e,n){return n="function"==typeof n?n:it,xr(t,e,oo(e),n)}function Uu(t){return zu(t)&&t!=+t}function Fu(t){if(tf(t))throw new Pc("This method is not supported with core-js. Try https://github.com/es-shims.");return _r(t)}function qu(t){return null===t}function Bu(t){return null==t}function zu(t){return"number"==typeof t||Lu(t)&&Xc.call(t)==Ht}function Hu(t){if(!Lu(t)||Xc.call(t)!=Wt||H(t))return!1;var e=il(t);if(null===e)return!0;var n=Zc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Kc.call(n)==Yc}function Wu(t){return Iu(t)&&t>=-jt&&t<=jt}function Gu(t){return"string"==typeof t||!Bf(t)&&Lu(t)&&Xc.call(t)==Jt}function Ku(t){return"symbol"==typeof t||Lu(t)&&Xc.call(t)==Yt}function Zu(t){return t===it}function Ju(t){return Lu(t)&&Ql(t)==Xt}function Yu(t){return Lu(t)&&Xc.call(t)==Qt}function Xu(t){if(!t)return[];if(Su(t))return Gu(t)?Q(t):Si(t);if(ol&&t[ol])return W(t[ol]());var e=Ql(t),n=e==zt?G:e==Zt?J:Ts;return n(t)}function Qu(t){if(!t)return 0===t?t:0;if(t=ns(t),t===Ot||t===-Ot){var e=t<0?-1:1;return e*Tt}return t===t?t:0}function ts(t){var e=Qu(t),n=e%1;return e===e?n?e-n:e:0}function es(t){return t?En(ts(t),0,Mt):0}function ns(t){if("number"==typeof t)return t;if(Ku(t))return Nt;if(Pu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Pu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ae,"");var n=De.test(t);return n||Fe.test(t)?Hn(t.slice(2),n?2:8):Ve.test(t)?Nt:+t}function rs(t){return Ci(t,ys(t))}function is(t){return En(ts(t),-jt,jt)}function os(t){return null==t?"":ti(t)}function as(t,e){var n=Nn(t);return e?Sn(n,e):n}function us(t,e){return x(t,ro(e,3),Wn)}function ss(t,e){return x(t,ro(e,3),Gn)}function cs(t,e){return null==t?t:Hl(t,ro(e,3),ys)}function ls(t,e){return null==t?t:Wl(t,ro(e,3),ys)}function fs(t,e){return t&&Wn(t,ro(e,3))}function ps(t,e){return t&&Gn(t,ro(e,3))}function hs(t){return null==t?[]:Zn(t,ms(t))}function ds(t){return null==t?[]:Zn(t,ys(t))}function vs(t,e,n){var r=null==t?it:Jn(t,e);return r===it?n:r}function gs(t,e){return null!=t&&co(t,e,fr)}function $s(t,e){return null!=t&&co(t,e,pr)}function ms(t){return Su(t)?mn(t):kr(t)}function ys(t){return Su(t)?mn(t,!0):Or(t)}function bs(t,e){var n={};return e=ro(e,3),Wn(t,function(t,r,i){n[e(t,r,i)]=t}),n}function ws(t,e){var n={};return e=ro(e,3),Wn(t,function(t,r,i){n[r]=e(t,r,i)}),n}function xs(t,e){return _s(t,cu(ro(e)))}function _s(t,e){return null==t?{}:Dr(t,to(t),ro(e))}function Ss(t,e,n){e=mo(e,t)?[e]:li(e);var r=-1,i=e.length;for(i||(t=it,i=1);++r<i;){var o=null==t?it:t[jo(e[r])];o===it&&(r=i,o=n),t=Mu(o)?o.call(t):o}return t}function Cs(t,e,n){return null==t?t:Gr(t,e,n)}function Es(t,e,n,r){return r="function"==typeof r?r:it,null==t?t:Gr(t,e,n,r)}function As(t,e,n){var r=Bf(t)||Jf(t);if(e=ro(e,4),null==n)if(r||Pu(t)){var i=t.constructor;n=r?Bf(t)?new i:[]:Mu(i)?Nn(il(t)):{}}else n={};return(r?c:Wn)(t,function(t,r,i){return e(n,t,r,i)}),n}function ks(t,e){return null==t||ni(t,e)}function Os(t,e,n){return null==t?t:ri(t,e,ci(n))}function js(t,e,n,r){return r="function"==typeof r?r:it,null==t?t:ri(t,e,ci(n),r)}function Ts(t){return t?P(t,ms(t)):[]}function Ns(t){return null==t?[]:P(t,ys(t))}function Ms(t,e,n){return n===it&&(n=e,e=it),n!==it&&(n=ns(n),n=n===n?n:0),e!==it&&(e=ns(e),e=e===e?e:0),En(ns(t),e,n)}function Is(t,e,n){return e=Qu(e),n===it?(n=e,e=0):n=Qu(n),t=ns(t),hr(t,e,n)}function Rs(t,e,n){if(n&&"boolean"!=typeof n&&$o(t,e,n)&&(e=n=it),n===it&&("boolean"==typeof e?(n=e,e=it):"boolean"==typeof t&&(n=t,t=it)),t===it&&e===it?(t=0,e=1):(t=Qu(t),e===it?(e=t,t=0):e=Qu(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=_l();return wl(t+i*(e-t+zn("1e-"+((i+"").length-1))),e)}return Br(t,e)}function Ps(t){return xp(os(t).toLowerCase())}function Ls(t){return t=os(t),t&&t.replace(Be,ur).replace(Tn,"")}function Vs(t,e,n){t=os(t),e=ti(e);var r=t.length;n=n===it?r:En(ts(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function Ds(t){return t=os(t),t&&$e.test(t)?t.replace(ve,sr):t}function Us(t){return t=os(t),t&&Ee.test(t)?t.replace(Ce,"\\$&"):t}function Fs(t,e,n){t=os(t),e=ts(e);var r=e?X(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return qi(dl(i),n)+t+qi(hl(i),n)}function qs(t,e,n){t=os(t),e=ts(e);var r=e?X(t):0;return e&&r<e?t+qi(e-r,n):t}function Bs(t,e,n){t=os(t),e=ts(e);var r=e?X(t):0;return e&&r<e?qi(e-r,n)+t:t}function zs(t,e,n){return n||null==e?e=0:e&&(e=+e),t=os(t).replace(Ae,""),xl(t,e||(Le.test(t)?16:10))}function Hs(t,e,n){return e=(n?$o(t,e,n):e===it)?1:ts(e),Hr(os(t),e)}function Ws(){var t=arguments,e=os(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function Gs(t,e,n){return n&&"number"!=typeof n&&$o(t,e,n)&&(e=n=it),(n=n===it?Mt:n>>>0)?(t=os(t),t&&("string"==typeof e||null!=e&&!Kf(e))&&(e=ti(e),!e&&B(t))?fi(Q(t),0,n):t.split(e,n)):[]}function Ks(t,e,n){return t=os(t),n=En(ts(n),0,t.length),e=ti(e),t.slice(n,n+e.length)==e}function Zs(t,n,r){var i=e.templateSettings;r&&$o(t,n,r)&&(n=it),t=os(t),n=ep({},n,i,yn);var o,a,u=ep({},n.imports,i.imports,yn),s=ms(u),c=P(u,s),l=0,f=n.interpolate||ze,p="__p += '",h=Uc((n.escape||ze).source+"|"+f.source+"|"+(f===be?Re:ze).source+"|"+(n.evaluate||ze).source+"|$","g"),d="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Ln+"]")+"\n";t.replace(h,function(e,n,r,i,u,s){return r||(r=i),p+=t.slice(l,s).replace(He,F),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),u&&(a=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+e.length,e}),p+="';\n";var v=n.variable;v||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(fe,""):p).replace(pe,"$1").replace(he,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=_p(function(){return Lc(s,d+"return "+p).apply(it,c)});if(g.source=p,Tu(g))throw g;return g}function Js(t){return os(t).toLowerCase()}function Ys(t){return os(t).toUpperCase()}function Xs(t,e,n){if(t=os(t),t&&(n||e===it))return t.replace(Ae,"");if(!t||!(e=ti(e)))return t;var r=Q(t),i=Q(e),o=V(r,i),a=D(r,i)+1;return fi(r,o,a).join("")}function Qs(t,e,n){if(t=os(t),t&&(n||e===it))return t.replace(Oe,"");if(!t||!(e=ti(e)))return t;var r=Q(t),i=D(r,Q(e))+1;return fi(r,0,i).join("")}function tc(t,e,n){if(t=os(t),t&&(n||e===it))return t.replace(ke,"");if(!t||!(e=ti(e)))return t;var r=Q(t),i=V(r,Q(e));return fi(r,i).join("")}function ec(t,e){var n=xt,r=_t;if(Pu(e)){var i="separator"in e?e.separator:i;n="length"in e?ts(e.length):n,r="omission"in e?ti(e.omission):r}t=os(t);var o=t.length;if(B(t)){var a=Q(t);o=a.length}if(n>=o)return t;var u=n-X(r);if(u<1)return r;var s=a?fi(a,0,u).join(""):t.slice(0,u);if(i===it)return s+r;if(a&&(u+=s.length-u),Kf(i)){if(t.slice(u).search(i)){var c,l=s;for(i.global||(i=Uc(i.source,os(Pe.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;s=s.slice(0,f===it?u:f)}}else if(t.indexOf(ti(i),u)!=u){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r}function nc(t){return t=os(t),t&&ge.test(t)?t.replace(de,cr):t}function rc(t,e,n){return t=os(t),e=n?it:e,e===it?z(t)?nt(t):w(t):t.match(e)||[]}function ic(t){var e=t?t.length:0,n=ro();return t=e?v(t,function(t){if("function"!=typeof t[1])throw new qc(ut);return[n(t[0]),t[1]]}):[],Wr(function(n){for(var r=-1;++r<e;){var i=t[r];if(u(i[0],this,n))return u(i[1],this,n)}})}function oc(t){return kn(An(t,!0))}function ac(t){return function(){return t}}function uc(t,e){return null==t||t!==t?e:t}function sc(t){return t}function cc(t){return Ar("function"==typeof t?t:An(t,!0))}function lc(t){return Nr(An(t,!0))}function fc(t,e){return Mr(t,An(e,!0))}function pc(t,e,n){var r=ms(e),i=Zn(e,r);null!=n||Pu(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Zn(e,ms(e)));var o=!(Pu(n)&&"chain"in n&&!n.chain),a=Mu(t);return c(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=Si(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,g([this.value()],arguments))})}),t}function hc(){return Kn._===this&&(Kn._=Qc),this}function dc(){}function vc(t){return t=ts(t),Wr(function(e){return Pr(e,t)})}function gc(t){return mo(t)?k(jo(t)):Ur(t)}function $c(t){return function(e){return null==t?it:Jn(t,e)}}function mc(){return[]}function yc(){return!1}function bc(){return{}}function wc(){return""}function xc(){return!0}function _c(t,e){if(t=ts(t),t<1||t>jt)return[];var n=Mt,r=wl(t,Mt);e=ro(e),t-=Mt;for(var i=M(r,e);++n<t;)e(n);return i}function Sc(t){return Bf(t)?v(t,jo):Ku(t)?[t]:Si(of(t))}function Cc(t){var e=++Jc;return os(t)+e}function Ec(t){return t&&t.length?Un(t,sc,ar):it}function Ac(t,e){return t&&t.length?Un(t,ro(e,2),ar):it}function kc(t){return A(t,sc)}function Oc(t,e){return A(t,ro(e,2))}function jc(t){return t&&t.length?Un(t,sc,jr):it}function Tc(t,e){return t&&t.length?Un(t,ro(e,2),jr):it}function Nc(t){return t&&t.length?N(t,sc):0}function Mc(t,e){return t&&t.length?N(t,ro(e,2)):0}t=t?lr.defaults(Kn.Object(),t,lr.pick(Kn,Pn)):Kn;var Ic=t.Array,Rc=t.Date,Pc=t.Error,Lc=t.Function,Vc=t.Math,Dc=t.Object,Uc=t.RegExp,Fc=t.String,qc=t.TypeError,Bc=Ic.prototype,zc=Lc.prototype,Hc=Dc.prototype,Wc=t["__core-js_shared__"],Gc=function(){var t=/[^.]+$/.exec(Wc&&Wc.keys&&Wc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Kc=zc.toString,Zc=Hc.hasOwnProperty,Jc=0,Yc=Kc.call(Dc),Xc=Hc.toString,Qc=Kn._,tl=Uc("^"+Kc.call(Zc).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),el=Yn?t.Buffer:it,nl=t.Symbol,rl=t.Uint8Array,il=K(Dc.getPrototypeOf,Dc),ol=nl?nl.iterator:it,al=Dc.create,ul=Hc.propertyIsEnumerable,sl=Bc.splice,cl=nl?nl.isConcatSpreadable:it,ll=t.clearTimeout!==Kn.clearTimeout&&t.clearTimeout,fl=Rc&&Rc.now!==Kn.Date.now&&Rc.now,pl=t.setTimeout!==Kn.setTimeout&&t.setTimeout,hl=Vc.ceil,dl=Vc.floor,vl=Dc.getOwnPropertySymbols,gl=el?el.isBuffer:it,$l=t.isFinite,ml=Bc.join,yl=K(Dc.keys,Dc),bl=Vc.max,wl=Vc.min,xl=t.parseInt,_l=Vc.random,Sl=Bc.reverse,Cl=ao(t,"DataView"),El=ao(t,"Map"),Al=ao(t,"Promise"),kl=ao(t,"Set"),Ol=ao(t,"WeakMap"),jl=ao(Dc,"create"),Tl=function(){var t=ao(Dc,"defineProperty"),e=ao.name;return e&&e.length>2?t:it}(),Nl=Ol&&new Ol,Ml=!ul.call({valueOf:1},"valueOf"),Il={},Rl=To(Cl),Pl=To(El),Ll=To(Al),Vl=To(kl),Dl=To(Ol),Ul=nl?nl.prototype:it,Fl=Ul?Ul.valueOf:it,ql=Ul?Ul.toString:it;e.templateSettings={escape:me,evaluate:ye,interpolate:be,variable:"",imports:{_:e}},e.prototype=n.prototype,e.prototype.constructor=e,r.prototype=Nn(n.prototype),r.prototype.constructor=r,i.prototype=Nn(n.prototype),i.prototype.constructor=i,et.prototype.clear=Me,et.prototype["delete"]=We,et.prototype.get=Ge,et.prototype.has=Ke,et.prototype.set=Ze,Je.prototype.clear=Ye,Je.prototype["delete"]=Xe,Je.prototype.get=Qe,Je.prototype.has=tn,Je.prototype.set=en,nn.prototype.clear=rn,nn.prototype["delete"]=on,nn.prototype.get=an,nn.prototype.has=un,nn.prototype.set=sn,cn.prototype.add=cn.prototype.push=ln,cn.prototype.has=fn,pn.prototype.clear=hn,pn.prototype["delete"]=dn,pn.prototype.get=vn,pn.prototype.has=gn,pn.prototype.set=$n;var Bl=Oi(Wn),zl=Oi(Gn,!0),Hl=ji(),Wl=ji(!0),Gl=Nl?function(t,e){return Nl.set(t,e),t}:sc,Kl=ll||function(t){return Kn.clearTimeout(t)},Zl=kl&&1/J(new kl([,-0]))[1]==Ot?function(t){return new kl(t)}:dc,Jl=Nl?function(t){return Nl.get(t)}:dc,Yl=vl?K(vl,Dc):mc,Xl=vl?function(t){for(var e=[];t;)g(e,Yl(t)),t=il(t);return e}:mc,Ql=Qn;(Cl&&Ql(new Cl(new ArrayBuffer(1)))!=ee||El&&Ql(new El)!=zt||Al&&Ql(Al.resolve())!=Gt||kl&&Ql(new kl)!=Zt||Ol&&Ql(new Ol)!=Xt)&&(Ql=function(t){var e=Xc.call(t),n=e==Wt?t.constructor:it,r=n?To(n):it;if(r)switch(r){case Rl:return ee;case Pl:return zt;case Ll:return Gt;case Vl:return Zt;case Dl:return Xt}return e});var tf=Wc?Mu:yc,ef=function(){var t=0,e=0;return function(n,r){var i=Nf(),o=Ct-(i-e);if(e=i,o>0){if(++t>=St)return n}else t=0;return Gl(n,r)}}(),nf=pl||function(t,e){return Kn.setTimeout(t,e)},rf=Tl?function(t,e,n){var r=e+"";return Tl(t,"toString",{configurable:!0,enumerable:!1,value:ac(ho(r,No(so(r),n)))})}:sc,of=su(function(t){t=os(t);var e=[];return _e.test(t)&&e.push(""),t.replace(Se,function(t,n,r,i){e.push(r?i.replace(Ie,"$1"):n||t)}),e}),af=Wr(function(t,e){return Cu(t)?In(t,Bn(e,1,Cu,!0)):[]}),uf=Wr(function(t,e){var n=Xo(e);return Cu(n)&&(n=it),Cu(t)?In(t,Bn(e,1,Cu,!0),ro(n,2)):[]}),sf=Wr(function(t,e){var n=Xo(e);return Cu(n)&&(n=it),Cu(t)?In(t,Bn(e,1,Cu,!0),it,n):[]}),cf=Wr(function(t){var e=v(t,si);return e.length&&e[0]===t[0]?dr(e):[]}),lf=Wr(function(t){var e=Xo(t),n=v(t,si);return e===Xo(n)?e=it:n.pop(),n.length&&n[0]===t[0]?dr(n,ro(e,2)):[]}),ff=Wr(function(t){var e=Xo(t),n=v(t,si);return e===Xo(n)?e=it:n.pop(),n.length&&n[0]===t[0]?dr(n,it,e):[]}),pf=Wr(ea),hf=Wr(function(t,e){e=Bn(e,1);var n=t?t.length:0,r=Cn(t,e);return qr(t,v(e,function(t){return go(t,n)?+t:t}).sort(bi)),r}),df=Wr(function(t){return ei(Bn(t,1,Cu,!0))}),vf=Wr(function(t){var e=Xo(t);return Cu(e)&&(e=it),ei(Bn(t,1,Cu,!0),ro(e,2))}),gf=Wr(function(t){var e=Xo(t);return Cu(e)&&(e=it),ei(Bn(t,1,Cu,!0),it,e)}),$f=Wr(function(t,e){return Cu(t)?In(t,e):[]}),mf=Wr(function(t){return ai(p(t,Cu))}),yf=Wr(function(t){var e=Xo(t);return Cu(e)&&(e=it),ai(p(t,Cu),ro(e,2))}),bf=Wr(function(t){var e=Xo(t);return Cu(e)&&(e=it),ai(p(t,Cu),it,e)}),wf=Wr(_a),xf=Wr(function(t){var e=t.length,n=e>1?t[e-1]:it;return n="function"==typeof n?(t.pop(),n):it,Sa(t,n)}),_f=Wr(function(t){t=Bn(t,1);var e=t.length,n=e?t[0]:0,o=this.__wrapped__,a=function(e){return Cn(e,t)};return!(e>1||this.__actions__.length)&&o instanceof i&&go(n)?(o=o.slice(n,+n+(e?1:0)),o.__actions__.push({func:Oa,args:[a],thisArg:it}),new r(o,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(a)}),Sf=Ai(function(t,e,n){Zc.call(t,n)?++t[n]:t[n]=1}),Cf=Pi(qo),Ef=Pi(Bo),Af=Ai(function(t,e,n){Zc.call(t,n)?t[n].push(e):t[n]=[e]}),kf=Wr(function(t,e,n){var r=-1,i="function"==typeof e,o=mo(e),a=Su(t)?Ic(t.length):[];return Bl(t,function(t){var s=i?e:o&&null!=t?t[e]:it;a[++r]=s?u(s,t,n):gr(t,e,n)}),a}),Of=Ai(function(t,e,n){t[n]=e}),jf=Ai(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),Tf=Wr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&$o(t,e[0],e[1])?e=[]:n>2&&$o(e[0],e[1],e[2])&&(e=[e[0]]),Lr(t,Bn(e,1),[])}),Nf=fl||function(){return Kn.Date.now()},Mf=Wr(function(t,e,n){var r=lt;if(n.length){var i=Z(n,no(Mf));r|=vt}return Zi(t,r,e,n,i)}),If=Wr(function(t,e,n){var r=lt|ft;if(n.length){var i=Z(n,no(If));r|=vt}return Zi(e,r,t,n,i)}),Rf=Wr(function(t,e){return Mn(t,1,e)}),Pf=Wr(function(t,e,n){return Mn(t,ns(e)||0,n)});su.Cache=nn;var Lf=Wr(function(t,e){e=1==e.length&&Bf(e[0])?v(e[0],R(ro())):v(Bn(e,1),R(ro()));var n=e.length;return Wr(function(r){for(var i=-1,o=wl(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return u(t,this,r)})}),Vf=Wr(function(t,e){var n=Z(e,no(Vf));return Zi(t,vt,it,e,n)}),Df=Wr(function(t,e){var n=Z(e,no(Df));return Zi(t,gt,it,e,n)}),Uf=Wr(function(t,e){return Zi(t,mt,it,it,it,Bn(e,1))}),Ff=Hi(ar),qf=Hi(function(t,e){return t>=e}),Bf=Ic.isArray,zf=tr?R(tr):$r,Hf=gl||yc,Wf=er?R(er):mr,Gf=nr?R(nr):wr,Kf=rr?R(rr):Sr,Zf=ir?R(ir):Cr,Jf=or?R(or):Er,Yf=Hi(jr),Xf=Hi(function(t,e){return t<=e}),Qf=ki(function(t,e){if(Ml||xo(e)||Su(e))return void Ci(e,ms(e),t);for(var n in e)Zc.call(e,n)&&wn(t,n,e[n])}),tp=ki(function(t,e){Ci(e,ys(e),t)}),ep=ki(function(t,e,n,r){Ci(e,ys(e),t,r)}),np=ki(function(t,e,n,r){Ci(e,ms(e),t,r)}),rp=Wr(function(t,e){return Cn(t,Bn(e,1))}),ip=Wr(function(t){return t.push(it,yn),u(ep,it,t)}),op=Wr(function(t){return t.push(it,Eo),u(lp,it,t)}),ap=Di(function(t,e,n){t[e]=n},ac(sc)),up=Di(function(t,e,n){Zc.call(t,e)?t[e].push(n):t[e]=[n]},ro),sp=Wr(gr),cp=ki(function(t,e,n){Ir(t,e,n)}),lp=ki(function(t,e,n,r){Ir(t,e,n,r)}),fp=Wr(function(t,e){return null==t?{}:(e=v(Bn(e,1),jo),Vr(t,In(to(t),e)))}),pp=Wr(function(t,e){return null==t?{}:Vr(t,v(Bn(e,1),jo))}),hp=Ki(ms),dp=Ki(ys),vp=Mi(function(t,e,n){return e=e.toLowerCase(),t+(n?Ps(e):e)}),gp=Mi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),$p=Mi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),mp=Ni("toLowerCase"),yp=Mi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),bp=Mi(function(t,e,n){return t+(n?" ":"")+xp(e)}),wp=Mi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),xp=Ni("toUpperCase"),_p=Wr(function(t,e){try{return u(t,it,e)}catch(n){return Tu(n)?n:new Pc(n)}}),Sp=Wr(function(t,e){return c(Bn(e,1),function(e){e=jo(e),t[e]=Mf(t[e],t)}),t}),Cp=Li(),Ep=Li(!0),Ap=Wr(function(t,e){return function(n){return gr(n,t,e)}}),kp=Wr(function(t,e){return function(n){return gr(t,n,e)}}),Op=Fi(v),jp=Fi(f),Tp=Fi(y),Np=zi(),Mp=zi(!0),Ip=Ui(function(t,e){return t+e},0),Rp=Gi("ceil"),Pp=Ui(function(t,e){return t/e},1),Lp=Gi("floor"),Vp=Ui(function(t,e){return t*e},1),Dp=Gi("round"),Up=Ui(function(t,e){return t-e},0);return e.after=eu,e.ary=nu,e.assign=Qf,e.assignIn=tp,e.assignInWith=ep,e.assignWith=np,e.at=rp,e.before=ru,e.bind=Mf,e.bindAll=Sp,e.bindKey=If,e.castArray=gu,e.chain=Aa,e.chunk=Io,e.compact=Ro,e.concat=Po,e.cond=ic,e.conforms=oc,e.constant=ac,e.countBy=Sf,e.create=as,e.curry=iu,e.curryRight=ou,e.debounce=au,e.defaults=ip,e.defaultsDeep=op,e.defer=Rf,e.delay=Pf,e.difference=af,e.differenceBy=uf,e.differenceWith=sf,e.drop=Lo,e.dropRight=Vo,e.dropRightWhile=Do,e.dropWhile=Uo,e.fill=Fo,e.filter=Va,e.flatMap=Da,e.flatMapDeep=Ua,e.flatMapDepth=Fa,e.flatten=zo,e.flattenDeep=Ho,e.flattenDepth=Wo,e.flip=uu,e.flow=Cp,e.flowRight=Ep,e.fromPairs=Go,e.functions=hs,e.functionsIn=ds,e.groupBy=Af,e.initial=Jo,e.intersection=cf,e.intersectionBy=lf,e.intersectionWith=ff,e.invert=ap,e.invertBy=up,e.invokeMap=kf,e.iteratee=cc,e.keyBy=Of,e.keys=ms,e.keysIn=ys,e.map=Ha,e.mapKeys=bs,e.mapValues=ws,e.matches=lc,e.matchesProperty=fc,e.memoize=su,e.merge=cp,e.mergeWith=lp,e.method=Ap,e.methodOf=kp,e.mixin=pc,e.negate=cu,e.nthArg=vc,e.omit=fp,e.omitBy=xs,e.once=lu,e.orderBy=Wa,e.over=Op,e.overArgs=Lf,e.overEvery=jp,e.overSome=Tp,e.partial=Vf,e.partialRight=Df,e.partition=jf,e.pick=pp,e.pickBy=_s,e.property=gc,e.propertyOf=$c,e.pull=pf,e.pullAll=ea,e.pullAllBy=na,e.pullAllWith=ra,e.pullAt=hf,e.range=Np,e.rangeRight=Mp,e.rearg=Uf,e.reject=Za,e.remove=ia,e.rest=fu,e.reverse=oa,e.sampleSize=Ya,e.set=Cs,e.setWith=Es,e.shuffle=Xa,e.slice=aa,e.sortBy=Tf,e.sortedUniq=ha,e.sortedUniqBy=da,e.split=Gs,e.spread=pu,e.tail=va,e.take=ga,e.takeRight=$a,e.takeRightWhile=ma,e.takeWhile=ya,e.tap=ka,e.throttle=hu,e.thru=Oa,e.toArray=Xu,e.toPairs=hp,e.toPairsIn=dp,e.toPath=Sc,e.toPlainObject=rs,e.transform=As,e.unary=du,e.union=df,e.unionBy=vf,e.unionWith=gf,e.uniq=ba,e.uniqBy=wa,e.uniqWith=xa,e.unset=ks,e.unzip=_a,e.unzipWith=Sa,e.update=Os,e.updateWith=js,e.values=Ts,e.valuesIn=Ns,e.without=$f,e.words=rc,e.wrap=vu,e.xor=mf,e.xorBy=yf,e.xorWith=bf,e.zip=wf,e.zipObject=Ca,e.zipObjectDeep=Ea,e.zipWith=xf,e.entries=hp,e.entriesIn=dp,e.extend=tp,e.extendWith=ep,pc(e,e),e.add=Ip,e.attempt=_p,e.camelCase=vp,e.capitalize=Ps,e.ceil=Rp,e.clamp=Ms,e.clone=$u,e.cloneDeep=yu,e.cloneDeepWith=bu,e.cloneWith=mu,e.conformsTo=wu,e.deburr=Ls,e.defaultTo=uc,e.divide=Pp,e.endsWith=Vs,e.eq=xu,e.escape=Ds,e.escapeRegExp=Us,e.every=La,e.find=Cf,e.findIndex=qo,e.findKey=us,e.findLast=Ef,e.findLastIndex=Bo,e.findLastKey=ss,e.floor=Lp,e.forEach=qa,e.forEachRight=Ba,e.forIn=cs,e.forInRight=ls,e.forOwn=fs,e.forOwnRight=ps,e.get=vs,e.gt=Ff,e.gte=qf,e.has=gs,e.hasIn=$s,e.head=Ko,e.identity=sc,e.includes=za,e.indexOf=Zo,e.inRange=Is,e.invoke=sp,e.isArguments=_u,e.isArray=Bf,e.isArrayBuffer=zf,e.isArrayLike=Su,e.isArrayLikeObject=Cu,e.isBoolean=Eu,e.isBuffer=Hf,e.isDate=Wf,e.isElement=Au,e.isEmpty=ku,e.isEqual=Ou,e.isEqualWith=ju,e.isError=Tu,e.isFinite=Nu,e.isFunction=Mu,e.isInteger=Iu,e.isLength=Ru,e.isMap=Gf,e.isMatch=Vu,e.isMatchWith=Du,e.isNaN=Uu,e.isNative=Fu,e.isNil=Bu,e.isNull=qu,e.isNumber=zu,e.isObject=Pu,e.isObjectLike=Lu,e.isPlainObject=Hu,e.isRegExp=Kf,e.isSafeInteger=Wu,e.isSet=Zf,e.isString=Gu,e.isSymbol=Ku,e.isTypedArray=Jf,e.isUndefined=Zu,e.isWeakMap=Ju,e.isWeakSet=Yu,e.join=Yo,e.kebabCase=gp,e.last=Xo,e.lastIndexOf=Qo,e.lowerCase=$p,e.lowerFirst=mp,e.lt=Yf,e.lte=Xf,e.max=Ec,e.maxBy=Ac,e.mean=kc,e.meanBy=Oc,e.min=jc,e.minBy=Tc,e.stubArray=mc,e.stubFalse=yc,e.stubObject=bc,e.stubString=wc,e.stubTrue=xc,e.multiply=Vp,e.nth=ta,e.noConflict=hc,e.noop=dc,e.now=Nf,e.pad=Fs,e.padEnd=qs,e.padStart=Bs,e.parseInt=zs,e.random=Rs,
e.reduce=Ga,e.reduceRight=Ka,e.repeat=Hs,e.replace=Ws,e.result=Ss,e.round=Dp,e.runInContext=rt,e.sample=Ja,e.size=Qa,e.snakeCase=yp,e.some=tu,e.sortedIndex=ua,e.sortedIndexBy=sa,e.sortedIndexOf=ca,e.sortedLastIndex=la,e.sortedLastIndexBy=fa,e.sortedLastIndexOf=pa,e.startCase=bp,e.startsWith=Ks,e.subtract=Up,e.sum=Nc,e.sumBy=Mc,e.template=Zs,e.times=_c,e.toFinite=Qu,e.toInteger=ts,e.toLength=es,e.toLower=Js,e.toNumber=ns,e.toSafeInteger=is,e.toString=os,e.toUpper=Ys,e.trim=Xs,e.trimEnd=Qs,e.trimStart=tc,e.truncate=ec,e.unescape=nc,e.uniqueId=Cc,e.upperCase=wp,e.upperFirst=xp,e.each=qa,e.eachRight=Ba,e.first=Ko,pc(e,function(){var t={};return Wn(e,function(n,r){Zc.call(e.prototype,r)||(t[r]=n)}),t}(),{chain:!1}),e.VERSION=ot,c(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),c(["drop","take"],function(t,e){i.prototype[t]=function(n){var r=this.__filtered__;if(r&&!e)return new i(this);n=n===it?1:bl(ts(n),0);var o=this.clone();return r?o.__takeCount__=wl(n,o.__takeCount__):o.__views__.push({size:wl(n,Mt),type:t+(o.__dir__<0?"Right":"")}),o},i.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),c(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Et||n==kt;i.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ro(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),c(["head","last"],function(t,e){var n="take"+(e?"Right":"");i.prototype[t]=function(){return this[n](1).value()[0]}}),c(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");i.prototype[t]=function(){return this.__filtered__?new i(this):this[n](1)}}),i.prototype.compact=function(){return this.filter(sc)},i.prototype.find=function(t){return this.filter(t).head()},i.prototype.findLast=function(t){return this.reverse().find(t)},i.prototype.invokeMap=Wr(function(t,e){return"function"==typeof t?new i(this):this.map(function(n){return gr(n,t,e)})}),i.prototype.reject=function(t){return this.filter(cu(ro(t)))},i.prototype.slice=function(t,e){t=ts(t);var n=this;return n.__filtered__&&(t>0||e<0)?new i(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=ts(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},i.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},i.prototype.toArray=function(){return this.take(Mt)},Wn(i.prototype,function(t,n){var o=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),u=e[a?"take"+("last"==n?"Right":""):n],s=a||/^find/.test(n);u&&(e.prototype[n]=function(){var n=this.__wrapped__,c=a?[1]:arguments,l=n instanceof i,f=c[0],p=l||Bf(n),h=function(t){var n=u.apply(e,g([t],c));return a&&d?n[0]:n};p&&o&&"function"==typeof f&&1!=f.length&&(l=p=!1);var d=this.__chain__,v=!!this.__actions__.length,$=s&&!d,m=l&&!v;if(!s&&p){n=m?n:new i(this);var y=t.apply(n,c);return y.__actions__.push({func:Oa,args:[h],thisArg:it}),new r(y,d)}return $&&m?t.apply(this,c):(y=this.thru(h),$?a?y.value()[0]:y.value():y)})}),c(["pop","push","shift","sort","splice","unshift"],function(t){var n=Bc[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var e=this.value();return n.apply(Bf(e)?e:[],t)}return this[r](function(e){return n.apply(Bf(e)?e:[],t)})}}),Wn(i.prototype,function(t,n){var r=e[n];if(r){var i=r.name+"",o=Il[i]||(Il[i]=[]);o.push({name:n,func:r})}}),Il[Vi(it,ft).name]=[{name:"wrapper",func:it}],i.prototype.clone=b,i.prototype.reverse=O,i.prototype.value=tt,e.prototype.at=_f,e.prototype.chain=ja,e.prototype.commit=Ta,e.prototype.next=Na,e.prototype.plant=Ia,e.prototype.reverse=Ra,e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=Pa,e.prototype.first=e.prototype.head,ol&&(e.prototype[ol]=Ma),e}var it,ot="4.15.0",at=200,ut="Expected a function",st="__lodash_hash_undefined__",ct="__lodash_placeholder__",lt=1,ft=2,pt=4,ht=8,dt=16,vt=32,gt=64,$t=128,mt=256,yt=512,bt=1,wt=2,xt=30,_t="...",St=150,Ct=16,Et=1,At=2,kt=3,Ot=1/0,jt=9007199254740991,Tt=1.7976931348623157e308,Nt=NaN,Mt=4294967295,It=Mt-1,Rt=Mt>>>1,Pt=[["ary",$t],["bind",lt],["bindKey",ft],["curry",ht],["curryRight",dt],["flip",yt],["partial",vt],["partialRight",gt],["rearg",mt]],Lt="[object Arguments]",Vt="[object Array]",Dt="[object Boolean]",Ut="[object Date]",Ft="[object Error]",qt="[object Function]",Bt="[object GeneratorFunction]",zt="[object Map]",Ht="[object Number]",Wt="[object Object]",Gt="[object Promise]",Kt="[object RegExp]",Zt="[object Set]",Jt="[object String]",Yt="[object Symbol]",Xt="[object WeakMap]",Qt="[object WeakSet]",te="[object ArrayBuffer]",ee="[object DataView]",ne="[object Float32Array]",re="[object Float64Array]",ie="[object Int8Array]",oe="[object Int16Array]",ae="[object Int32Array]",ue="[object Uint8Array]",se="[object Uint8ClampedArray]",ce="[object Uint16Array]",le="[object Uint32Array]",fe=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,he=/(__e\(.*?\)|\b__t\)) \+\n'';/g,de=/&(?:amp|lt|gt|quot|#39|#96);/g,ve=/[&<>"'`]/g,ge=RegExp(de.source),$e=RegExp(ve.source),me=/<%-([\s\S]+?)%>/g,ye=/<%([\s\S]+?)%>/g,be=/<%=([\s\S]+?)%>/g,we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,_e=/^\./,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Ee=RegExp(Ce.source),Ae=/^\s+|\s+$/g,ke=/^\s+/,Oe=/\s+$/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Te=/\{\n\/\* \[wrapped with (.+)\] \*/,Ne=/,? & /,Me=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ie=/\\(\\)?/g,Re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pe=/\w*$/,Le=/^0x/i,Ve=/^[-+]0x[0-9a-f]+$/i,De=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,qe=/^(?:0|[1-9]\d*)$/,Be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ze=/($^)/,He=/['\n\r\u2028\u2029\\]/g,We="\\ud800-\\udfff",Ge="\\u0300-\\u036f\\ufe20-\\ufe23",Ke="\\u20d0-\\u20f0",Ze="\\u2700-\\u27bf",Je="a-z\\xdf-\\xf6\\xf8-\\xff",Ye="\\xac\\xb1\\xd7\\xf7",Xe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qe="\\u2000-\\u206f",tn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",en="A-Z\\xc0-\\xd6\\xd8-\\xde",nn="\\ufe0e\\ufe0f",rn=Ye+Xe+Qe+tn,on="['’]",an="["+We+"]",un="["+rn+"]",sn="["+Ge+Ke+"]",cn="\\d+",ln="["+Ze+"]",fn="["+Je+"]",pn="[^"+We+rn+cn+Ze+Je+en+"]",hn="\\ud83c[\\udffb-\\udfff]",dn="(?:"+sn+"|"+hn+")",vn="[^"+We+"]",gn="(?:\\ud83c[\\udde6-\\uddff]){2}",$n="[\\ud800-\\udbff][\\udc00-\\udfff]",mn="["+en+"]",yn="\\u200d",bn="(?:"+fn+"|"+pn+")",wn="(?:"+mn+"|"+pn+")",xn="(?:"+on+"(?:d|ll|m|re|s|t|ve))?",_n="(?:"+on+"(?:D|LL|M|RE|S|T|VE))?",Sn=dn+"?",Cn="["+nn+"]?",En="(?:"+yn+"(?:"+[vn,gn,$n].join("|")+")"+Cn+Sn+")*",An=Cn+Sn+En,kn="(?:"+[ln,gn,$n].join("|")+")"+An,On="(?:"+[vn+sn+"?",sn,gn,$n,an].join("|")+")",jn=RegExp(on,"g"),Tn=RegExp(sn,"g"),Nn=RegExp(hn+"(?="+hn+")|"+On+An,"g"),Mn=RegExp([mn+"?"+fn+"+"+xn+"(?="+[un,mn,"$"].join("|")+")",wn+"+"+_n+"(?="+[un,mn+bn,"$"].join("|")+")",mn+"?"+bn+"+"+xn,mn+"+"+_n,cn,kn].join("|"),"g"),In=RegExp("["+yn+We+Ge+Ke+nn+"]"),Rn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ln=-1,Vn={};Vn[ne]=Vn[re]=Vn[ie]=Vn[oe]=Vn[ae]=Vn[ue]=Vn[se]=Vn[ce]=Vn[le]=!0,Vn[Lt]=Vn[Vt]=Vn[te]=Vn[Dt]=Vn[ee]=Vn[Ut]=Vn[Ft]=Vn[qt]=Vn[zt]=Vn[Ht]=Vn[Wt]=Vn[Kt]=Vn[Zt]=Vn[Jt]=Vn[Xt]=!1;var Dn={};Dn[Lt]=Dn[Vt]=Dn[te]=Dn[ee]=Dn[Dt]=Dn[Ut]=Dn[ne]=Dn[re]=Dn[ie]=Dn[oe]=Dn[ae]=Dn[zt]=Dn[Ht]=Dn[Wt]=Dn[Kt]=Dn[Zt]=Dn[Jt]=Dn[Yt]=Dn[ue]=Dn[se]=Dn[ce]=Dn[le]=!0,Dn[Ft]=Dn[qt]=Dn[Xt]=!1;var Un={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},Fn={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},qn={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Bn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zn=parseFloat,Hn=parseInt,Wn="object"==typeof t&&t&&t.Object===Object&&t,Gn="object"==typeof self&&self&&self.Object===Object&&self,Kn=Wn||Gn||Function("return this")(),Zn="object"==typeof e&&e&&!e.nodeType&&e,Jn=Zn&&"object"==typeof i&&i&&!i.nodeType&&i,Yn=Jn&&Jn.exports===Zn,Xn=Yn&&Wn.process,Qn=function(){try{return Xn&&Xn.binding("util")}catch(t){}}(),tr=Qn&&Qn.isArrayBuffer,er=Qn&&Qn.isDate,nr=Qn&&Qn.isMap,rr=Qn&&Qn.isRegExp,ir=Qn&&Qn.isSet,or=Qn&&Qn.isTypedArray,ar=k("length"),ur=O(Un),sr=O(Fn),cr=O(qn),lr=rt();Kn._=lr,r=function(){return lr}.call(e,n,e,i),!(r!==it&&(i.exports=r))}).call(this)}).call(e,function(){return this}(),n(2)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){n(4),t.exports=angular},function(t,e){/**
* @license AngularJS v1.5.8
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
!function(t){"use strict";function e(t,e){return e=e||Error,function(){var n,r,i=2,o=arguments,a=o[0],u="["+(t?t+":":"")+a+"] ",s=o[1];for(u+=s.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+i;return n<o.length?mt(o[n]):t}),u+="\nhttp://errors.angularjs.org/1.5.8/"+(t?t+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")u+=n+"p"+(r-i)+"="+encodeURIComponent(mt(o[r]));return new e(u)}}function n(t){if(null==t||E(t))return!1;if(Zr(t)||w(t)||Vr&&t instanceof Vr)return!0;var e="length"in Object(t)&&t.length;return x(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function r(t,e,i){var o,a;if(t)if(S(t))for(o in t)"prototype"==o||"length"==o||"name"==o||t.hasOwnProperty&&!t.hasOwnProperty(o)||e.call(i,t[o],o,t);else if(Zr(t)||n(t)){var u="object"!=typeof t;for(o=0,a=t.length;o<a;o++)(u||o in t)&&e.call(i,t[o],o,t)}else if(t.forEach&&t.forEach!==r)t.forEach(e,i,t);else if(b(t))for(o in t)e.call(i,t[o],o,t);else if("function"==typeof t.hasOwnProperty)for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t);else for(o in t)Nr.call(t,o)&&e.call(i,t[o],o,t);return t}function i(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function o(t){return function(e,n){t(n,e)}}function a(){return++Kr}function u(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function s(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(y(a)||S(a))for(var c=Object.keys(a),l=0,f=c.length;l<f;l++){var p=c[l],h=a[p];n&&y(h)?_(h)?t[p]=new Date(h.valueOf()):C(h)?t[p]=new RegExp(h):h.nodeName?t[p]=h.cloneNode(!0):R(h)?t[p]=h.clone():(y(t[p])||(t[p]=Zr(h)?[]:{}),s(t[p],[h],!0)):t[p]=h}}return u(t,r),t}function c(t){return s(t,Fr.call(arguments,1),!1)}function l(t){return s(t,Fr.call(arguments,1),!0)}function f(t){return parseInt(t,10)}function p(t,e){return c(Object.create(t),e)}function h(){}function d(t){return t}function v(t){return function(){return t}}function g(t){return S(t.toString)&&t.toString!==zr}function $(t){return"undefined"==typeof t}function m(t){return"undefined"!=typeof t}function y(t){return null!==t&&"object"==typeof t}function b(t){return null!==t&&"object"==typeof t&&!Hr(t)}function w(t){return"string"==typeof t}function x(t){return"number"==typeof t}function _(t){return"[object Date]"===zr.call(t)}function S(t){return"function"==typeof t}function C(t){return"[object RegExp]"===zr.call(t)}function E(t){return t&&t.window===t}function A(t){return t&&t.$evalAsync&&t.$watch}function k(t){return"[object File]"===zr.call(t)}function O(t){return"[object FormData]"===zr.call(t)}function j(t){return"[object Blob]"===zr.call(t)}function T(t){return"boolean"==typeof t}function N(t){return t&&S(t.then)}function M(t){return t&&x(t.length)&&Jr.test(zr.call(t))}function I(t){return"[object ArrayBuffer]"===zr.call(t)}function R(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function P(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function L(t){return Mr(t.nodeName||t[0]&&t[0].nodeName)}function V(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function D(t,e){function n(t,e){var n,r=e.$$hashKey;if(Zr(t))for(var o=0,a=t.length;o<a;o++)e.push(i(t[o]));else if(b(t))for(n in t)e[n]=i(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=i(t[n]));else for(n in t)Nr.call(t,n)&&(e[n]=i(t[n]));return u(e,r),e}function i(t){if(!y(t))return t;var e=a.indexOf(t);if(e!==-1)return s[e];if(E(t)||A(t))throw Wr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=o(t);return void 0===i&&(i=Zr(t)?[]:Object.create(Hr(t)),r=!0),a.push(t),s.push(i),r?n(t,i):i}function o(t){switch(zr.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(i(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(S(t.cloneNode))return t.cloneNode(!0)}var a=[],s=[];if(e){if(M(e)||I(e))throw Wr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Wr("cpi","Can't copy! Source and destination are identical.");return Zr(e)?e.length=0:r(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),a.push(t),s.push(e),n(t,e)}return i(t)}function U(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,o=typeof t,a=typeof e;if(o==a&&"object"==o){if(!Zr(t)){if(_(t))return!!_(e)&&U(t.getTime(),e.getTime());if(C(t))return!!C(e)&&t.toString()==e.toString();if(A(t)||A(e)||E(t)||E(e)||Zr(e)||_(e)||C(e))return!1;i=dt();for(r in t)if("$"!==r.charAt(0)&&!S(t[r])){if(!U(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&m(e[r])&&!S(e[r]))return!1;return!0}if(!Zr(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!U(t[r],e[r]))return!1;return!0}}return!1}function F(t,e,n){return t.concat(Fr.call(e,n))}function q(t,e){return Fr.call(t,e||0)}function B(t,e){var n=arguments.length>2?q(arguments,2):[];return!S(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,F(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function z(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:E(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":A(n)&&(r="$SCOPE"),r}function H(t,e){if(!$(t))return x(e)||(e=e?2:null),JSON.stringify(t,z,e)}function W(t){return w(t)?JSON.parse(t):t}function G(t,e){t=t.replace(ei,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function K(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function Z(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset(),i=G(e,r);return K(t,n*(i-r))}function J(t){t=Vr(t).clone();try{t.empty()}catch(e){}var n=Vr("<div>").append(t).html();try{return t[0].nodeType===ui?Mr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Mr(e)})}catch(e){return Mr(n)}}function Y(t){try{return decodeURIComponent(t)}catch(e){}}function X(t){var e={};return r((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),n!==-1&&(r=t.substring(0,n),i=t.substring(n+1)),r=Y(r),m(r)&&(i=!m(i)||Y(i),Nr.call(e,r)?Zr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function Q(t){var e=[];return r(t,function(t,n){Zr(t)?r(t,function(t){e.push(et(n,!0)+(t===!0?"":"="+et(t,!0)))}):e.push(et(n,!0)+(t===!0?"":"="+et(t,!0)))}),e.length?e.join("&"):""}function tt(t){return et(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function et(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function nt(t,e){var n,r,i=ni.length;for(r=0;r<i;++r)if(n=ni[r]+e,w(n=t.getAttribute(n)))return n;return null}function rt(t,e){var n,i,o={};r(ni,function(e){var r=e+"app";!n&&t.hasAttribute&&t.hasAttribute(r)&&(n=t,i=t.getAttribute(r))}),r(ni,function(e){var r,o=e+"app";!n&&(r=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))}),n&&(o.strictDi=null!==nt(n,"strict-di"),e(n,i?[i]:[],o))}function it(e,n,i){y(i)||(i={});var o={strictDi:!1};i=c(o,i);var a=function(){if(e=Vr(e),e.injector()){var r=e[0]===t.document?"document":J(e);throw Wr("btstrpd","App already bootstrapped with this element '{0}'",r.replace(/</,"<").replace(/>/,">"))}n=n||[],n.unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=re(n,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},u=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;return t&&u.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(u,"")),t&&!s.test(t.name)?a():(t.name=t.name.replace(s,""),Gr.resumeBootstrap=function(t){return r(t,function(t){n.push(t)}),a()},void(S(Gr.resumeDeferredBootstrap)&&Gr.resumeDeferredBootstrap()))}function ot(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function at(t){var e=Gr.element(t).injector();if(!e)throw Wr("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ut(t,e){return e=e||"_",t.replace(ri,function(t,n){return(n?e:"")+t.toLowerCase()})}function st(){var e;if(!ii){var n=ti();Dr=$(n)?t.jQuery:n?t[n]:void 0,Dr&&Dr.fn.on?(Vr=Dr,c(Dr.fn,{scope:Ei.scope,isolateScope:Ei.isolateScope,controller:Ei.controller,injector:Ei.injector,inheritedData:Ei.inheritedData}),e=Dr.cleanData,Dr.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)n=Dr._data(r,"events"),n&&n.$destroy&&Dr(r).triggerHandler("$destroy");e(t)}):Vr=Ot,Gr.element=Vr,ii=!0}}function ct(t,e,n){if(!t)throw Wr("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function lt(t,e,n){return n&&Zr(t)&&(t=t[t.length-1]),ct(S(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ft(t,e){if("hasOwnProperty"===t)throw Wr("badname","hasOwnProperty is not a valid {0} name",e)}function pt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,a=i.length,u=0;u<a;u++)r=i[u],t&&(t=(o=t)[r]);return!n&&S(t)?B(o,t):t}function ht(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=Vr(Fr.call(t,0,i))),e.push(n));return e||t}function dt(){return Object.create(null)}function vt(t){function n(t,e,n){return t[e]||(t[e]=n())}var r=e("$injector"),i=e("ng"),o=n(t,"angular",Object);return o.$$minErr=o.$$minErr||e,n(o,"module",function(){var t={};return function(e,o,a){var u=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return u(e,"module"),o&&t.hasOwnProperty(e)&&(t[e]=null),n(t,e,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),l}}function n(t,n){return function(r,o){return o&&S(o)&&(o.$$moduleName=e),i.push([t,n,arguments]),l}}if(!o)throw r("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.",e);var i=[],u=[],s=[],c=t("$injector","invoke","push",u),l={_invokeQueue:i,_configBlocks:u,_runBlocks:s,requires:o,name:e,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:c,run:function(t){return s.push(t),this}};return a&&c(a),l})}})}function gt(t,e){if(Zr(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(y(t)){e=e||{};for(var i in t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i])}return e||t}function $t(t){var e=[];return JSON.stringify(t,function(t,n){if(n=z(t,n),y(n)){if(e.indexOf(n)>=0)return"...";e.push(n)}return n})}function mt(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):$(t)?"undefined":"string"!=typeof t?$t(t):t}function yt(n){c(n,{bootstrap:it,copy:D,extend:c,merge:l,equals:U,element:Vr,forEach:r,injector:re,noop:h,bind:B,toJson:H,fromJson:W,identity:d,isUndefined:$,isDefined:m,isString:w,isFunction:S,isObject:y,isNumber:x,isElement:R,isArray:Zr,version:fi,isDate:_,lowercase:Mr,uppercase:Ir,callbacks:{$$counter:0},getTestability:at,$$minErr:e,$$csp:Qr,reloadWithDebugInfo:ot}),(Ur=vt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Cn}),t.provider("$compile",de).directive({a:Ro,input:ta,textarea:ta,form:Uo,script:Za,select:Xa,style:tu,option:Qa,ngBind:ra,ngBindHtml:oa,ngBindTemplate:ia,ngClass:ua,ngClassEven:ca,ngClassOdd:sa,ngCloak:la,ngController:fa,ngForm:Fo,ngHide:qa,ngIf:da,ngInclude:va,ngInit:$a,ngNonBindable:Ma,ngPluralize:La,ngRepeat:Va,ngShow:Fa,ngStyle:Ba,ngSwitch:za,ngSwitchWhen:Ha,ngSwitchDefault:Wa,ngOptions:Pa,ngTransclude:Ka,ngModel:ja,ngList:ma,ngChange:aa,pattern:nu,ngPattern:nu,required:eu,ngRequired:eu,minlength:iu,ngMinlength:iu,maxlength:ru,ngMaxlength:ru,ngValue:na,ngModelOptions:Na}).directive({ngInclude:ga}).directive(Po).directive(pa),t.provider({$anchorScroll:ie,$animate:qi,$animateCss:Hi,$$animateJs:Ui,$$animateQueue:Fi,$$AnimateRunner:zi,$$animateAsyncRun:Bi,$browser:le,$cacheFactory:fe,$controller:be,$document:we,$exceptionHandler:xe,$filter:Dn,$$forceReflow:Yi,$interpolate:Pe,$interval:Le,$http:Ne,$httpParamSerializer:Se,$httpParamSerializerJQLike:Ce,$httpBackend:Ie,$xhrFactory:Me,$jsonpCallbacks:ao,$location:Xe,$log:Qe,$parse:yn,$rootScope:Sn,$q:bn,$$q:wn,$sce:On,$sceDelegate:kn,$sniffer:jn,$templateCache:pe,$templateRequest:Tn,$$testability:Nn,$timeout:Mn,$window:Pn,$$rAF:_n,$$jqLite:Jt,$$HashMap:ji,$$cookieReader:Vn})}])}function bt(){return++hi}function wt(t){return t.replace(gi,function(t,e,n,r){return r?n.toUpperCase():n}).replace($i,"Moz$1")}function xt(t){return!wi.test(t)}function _t(t){var e=t.nodeType;return e===oi||!e||e===ci}function St(t){for(var e in pi[t.ng339])return!0;return!1}function Ct(t){for(var e=0,n=t.length;e<n;e++)Mt(t[e])}function Et(t,e){var n,i,o,a,u=e.createDocumentFragment(),s=[];if(xt(t))s.push(e.createTextNode(t));else{for(n=u.appendChild(e.createElement("div")),i=(xi.exec(t)||["",""])[1].toLowerCase(),o=Si[i]||Si._default,n.innerHTML=o[1]+t.replace(_i,"<$1></$2>")+o[2],a=o[0];a--;)n=n.lastChild;s=F(s,n.childNodes),n=u.firstChild,n.textContent=""}return u.textContent="",u.innerHTML="",r(s,function(t){u.appendChild(t)}),u}function At(e,n){n=n||t.document;var r;return(r=bi.exec(e))?[n.createElement(r[1])]:(r=Et(e,n))?r.childNodes:[]}function kt(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function Ot(t){if(t instanceof Ot)return t;var e;if(w(t)&&(t=Yr(t),e=!0),!(this instanceof Ot)){if(e&&"<"!=t.charAt(0))throw yi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Ot(t)}e?Dt(this,At(t)):Dt(this,t)}function jt(t){return t.cloneNode(!0)}function Tt(t,e){if(e||Mt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Mt(n[r])}function Nt(t,e,n,i){if(m(i))throw yi("offargs","jqLite#off() does not support the `selector` argument");var o=It(t),a=o&&o.events,u=o&&o.handle;if(u)if(e){var s=function(e){var r=a[e];m(n)&&V(r||[],n),m(n)&&r&&r.length>0||(vi(t,e,u),delete a[e])};r(e.split(" "),function(t){s(t),mi[t]&&s(mi[t])})}else for(e in a)"$destroy"!==e&&vi(t,e,u),delete a[e]}function Mt(t,e){var n=t.ng339,r=n&&pi[n];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Nt(t)),delete pi[n],t.ng339=void 0}}function It(t,e){var n=t.ng339,r=n&&pi[n];return e&&!r&&(t.ng339=n=bt(),r=pi[n]={events:{},data:{},handle:void 0}),r}function Rt(t,e,n){if(_t(t)){var r=m(n),i=!r&&e&&!y(e),o=!e,a=It(t,!i),u=a&&a.data;if(r)u[e]=n;else{if(o)return u;if(i)return u&&u[e];c(u,e)}}}function Pt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Lt(t,e){e&&t.setAttribute&&r(e.split(" "),function(e){t.setAttribute("class",Yr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Yr(e)+" "," ")))})}function Vt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(e.split(" "),function(t){t=Yr(t),n.indexOf(" "+t+" ")===-1&&(n+=t+" ")}),t.setAttribute("class",Yr(n))}}function Dt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Ut(t,e){return Ft(t,"$"+(e||"ngController")+"Controller")}function Ft(t,e,n){t.nodeType==ci&&(t=t.documentElement);for(var r=Zr(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(m(n=Vr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===li&&t.host}}function qt(t){for(Tt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Bt(t,e){e||Tt(t);var n=t.parentNode;n&&n.removeChild(t)}function zt(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):Vr(n).on("load",e)}function Ht(t,e){var n=Ai[e.toLowerCase()];return n&&ki[L(t)]&&n}function Wt(t){return Oi[t]}function Gt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if($(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};var u=i.specialHandlerWrapper||Kt;o>1&&(i=gt(i));for(var s=0;s<o;s++)n.isImmediatePropagationStopped()||u(t,n,i[s])}};return n.elem=t,n}function Kt(t,e,n){n.call(t,e)}function Zt(t,e,n){var r=e.relatedTarget;r&&(r===t||Ci.call(t,r))||n.call(t,e)}function Jt(){this.$get=function(){return c(Ot,{hasClass:function(t,e){return t.attr&&(t=t[0]),Pt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Vt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Lt(t,e)}})}}function Yt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||a)():r+":"+t}function Xt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}r(t,this.put,this)}function Qt(t){return Function.prototype.toString.call(t)+" "}function te(t){var e=Qt(t).replace(Ri,""),n=e.match(Ti)||e.match(Ni);return n}function ee(t){var e=te(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ne(t,e,n){var i,o,a;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw w(n)&&n||(n=t.name||ee(t)),Pi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o=te(t),r(o[1].split(Mi),function(t){t.replace(Ii,function(t,e,n){i.push(n)})})}t.$inject=i}}else Zr(t)?(a=t.length-1,lt(t[a],"fn"),i=t.slice(0,a)):lt(t,"fn",!0);return i}function re(t,e){function n(t){return function(e,n){return y(e)?void r(e,o(t)):t(e,n)}}function i(t,e){if(ft(t,"service"),(S(e)||Zr(e))&&(e=_.instantiate(e)),!e.$get)throw Pi("pget","Provider '{0}' must define $get factory method.",t);return x[t+g]=e}function a(t,e){return function(){var n=A.invoke(e,this);if($(n))throw Pi("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function u(t,e,n){return i(t,{$get:n!==!1?a(t,e):e})}function s(t,e){return u(t,["$injector",function(t){return t.instantiate(e)}])}function c(t,e){return u(t,v(e),!1)}function l(t,e){ft(t,"constant"),x[t]=e,C[t]=e}function f(t,e){var n=_.get(t+g),r=n.$get;n.$get=function(){var t=A.invoke(r,n);return A.invoke(e,null,{$delegate:t})}}function p(t){ct($(t)||Zr(t),"modulesToLoad","not an array");var e,n=[];return r(t,function(t){function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=_.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(t)){b.put(t,!0);try{w(t)?(e=Ur(t),n=n.concat(p(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):S(t)?n.push(_.invoke(t)):Zr(t)?n.push(_.invoke(t)):lt(t,"module")}catch(i){throw Zr(t)&&(t=t[t.length-1]),i.message&&i.stack&&i.stack.indexOf(i.message)==-1&&(i=i.message+"\n"+i.stack),Pi("modulerr","Failed to instantiate module {0} due to:\n{1}",t,i.stack||i.message||i)}}}),n}function h(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===d)throw Pi("cdep","Circular dependency found: {0}",e+" <- "+m.join(" <- "));return t[e]}try{return m.unshift(e),t[e]=d,t[e]=n(e,r)}catch(i){throw t[e]===d&&delete t[e],i}finally{m.shift()}}function i(t,n,i){for(var o=[],a=re.$$annotate(t,e,i),u=0,s=a.length;u<s;u++){var c=a[u];if("string"!=typeof c)throw Pi("itkn","Incorrect injection token! Expected service name as string, got {0}",c);o.push(n&&n.hasOwnProperty(c)?n[c]:r(c,i))}return o}function o(t){return!(Lr<=11)&&("function"==typeof t&&/^(?:class\b|constructor\()/.test(Qt(t)))}function a(t,e,n,r){"string"==typeof n&&(r=n,n=null);var a=i(t,n,r);return Zr(t)&&(t=t[t.length-1]),o(t)?(a.unshift(null),new(Function.prototype.bind.apply(t,a))):t.apply(e,a)}function u(t,e,n){var r=Zr(t)?t[t.length-1]:t,o=i(t,e,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:u,get:r,annotate:re.$$annotate,has:function(e){return x.hasOwnProperty(e+g)||t.hasOwnProperty(e)}}}e=e===!0;var d={},g="Provider",m=[],b=new Xt([],(!0)),x={$provide:{provider:n(i),factory:n(u),service:n(s),value:n(c),constant:n(l),decorator:f}},_=x.$injector=h(x,function(t,e){throw Gr.isString(e)&&m.push(e),Pi("unpr","Unknown provider: {0}",m.join(" <- "))}),C={},E=h(C,function(t,e){var n=_.get(t+g,e);return A.invoke(n.$get,n,void 0,t)}),A=E;x["$injector"+g]={$get:v(E)};var k=p(t);return A=E.get("$injector"),A.strictDi=e,r(k,function(t){t&&A.invoke(t)}),A}function ie(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){if("a"===L(t))return e=t,!0}),e}function o(){var t=u.yOffset;if(S(t))t=t();else if(R(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else x(t)||(t=0);return t}function a(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function u(t){t=w(t)?t:n.hash();var e;t?(e=s.getElementById(t))?a(e):(e=i(s.getElementsByName(t)))?a(e):"top"===t&&a(null):a(null)}var s=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){t===e&&""===t||zt(function(){r.$evalAsync(u)})}),u}]}function oe(t,e){return t||e?t?e?(Zr(t)&&(t=t.join(" ")),Zr(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function ae(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===Vi)return n}}function ue(t){w(t)&&(t=t.split(" "));var e=dt();return r(t,function(t){t.length&&(e[t]=!0)}),e}function se(t){return y(t)?t:{}}function ce(t,e,n,i){function o(t){try{t.apply(null,q(arguments,1))}finally{if(m--,0===m)for(;y.length;)try{y.pop()()}catch(e){n.error(e)}}}function a(t){var e=t.indexOf("#");return e===-1?"":t.substr(e)}function u(){S=null,s(),c()}function s(){b=C(),b=$(b)?null:b,U(b,k)&&(b=k),k=b}function c(){x===l.url()&&w===b||(x=l.url(),w=b,r(E,function(t){t(l.url(),b)}))}var l=this,f=t.location,p=t.history,d=t.setTimeout,v=t.clearTimeout,g={};l.isMock=!1;var m=0,y=[];l.$$completeOutstandingRequest=o,l.$$incOutstandingRequestCount=function(){m++},l.notifyWhenNoOutstandingRequests=function(t){0===m?t():y.push(t)};var b,w,x=f.href,_=e.find("base"),S=null,C=i.history?function(){try{return p.state}catch(t){}}:h;s(),w=b,l.url=function(e,n,r){if($(r)&&(r=null),f!==t.location&&(f=t.location),p!==t.history&&(p=t.history),e){var o=w===r;if(x===e&&(!i.history||o))return l;var u=x&&Be(x)===Be(e);return x=e,w=r,!i.history||u&&o?(u||(S=e),n?f.replace(e):u?f.hash=a(e):f.href=e,f.href!==e&&(S=e)):(p[n?"replaceState":"pushState"](r,"",e),s(),w=b),S&&(S=e),l}return S||f.href.replace(/%27/g,"'")},l.state=function(){return b};var E=[],A=!1,k=null;l.onUrlChange=function(e){return A||(i.history&&Vr(t).on("popstate",u),Vr(t).on("hashchange",u),A=!0),E.push(e),e},l.$$applicationDestroyed=function(){Vr(t).off("hashchange popstate",u)},l.$$checkUrlChange=c,l.baseHref=function(){var t=_.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},l.defer=function(t,e){var n;return m++,n=d(function(){delete g[n],o(t)},e||0),g[n]=!0,n},l.defer.cancel=function(t){return!!g[t]&&(delete g[t],v(t),o(h),!0)}}function le(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new ce(t,r,e,n)}]}function fe(){this.$get=function(){function t(t,r){function i(t){t!=p&&(h?h==t&&(h=t.n):h=t,o(t.n,t.p),o(t,p),p=t,p.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in n)throw e("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var a=0,u=c({},r,{id:t}),s=dt(),l=r&&r.capacity||Number.MAX_VALUE,f=dt(),p=null,h=null;return n[t]={put:function(t,e){if(!$(e)){if(l<Number.MAX_VALUE){var n=f[t]||(f[t]={key:t});i(n)}return t in s||a++,s[t]=e,a>l&&this.remove(h.key),e}},get:function(t){if(l<Number.MAX_VALUE){var e=f[t];if(!e)return;i(e)}return s[t]},remove:function(t){if(l<Number.MAX_VALUE){var e=f[t];if(!e)return;e==p&&(p=e.p),e==h&&(h=e.n),o(e.n,e.p),delete f[t]}t in s&&(delete s[t],a--)},removeAll:function(){s=dt(),a=0,f=dt(),p=h=null},destroy:function(){s=null,u=null,f=null,delete n[t]},info:function(){return c({},u,{size:a})}}}var n={};return t.info=function(){var t={};return r(n,function(e,n){t[n]=e.info()}),t},t.get=function(t){return n[t]},t}}function pe(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function he(){}function de(e,n){function i(t,e,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=dt();return r(t,function(t,r){if(t in E)return void(o[r]=E[t]);var a=t.match(i);if(!a)throw Wi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,r,t,n?"controller bindings definition":"isolate scope definition");o[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r},a[4]&&(E[t]=o[r])}),o}function a(t,e){var n={isolateScope:null,bindToController:null};if(y(t.scope)&&(t.bindToController===!0?(n.bindToController=i(t.scope,e,!0),n.isolateScope={}):n.isolateScope=i(t.scope,e,!1)),y(t.bindToController)&&(n.bindToController=i(t.bindToController,e,!0)),y(n.bindToController)){var r=t.controller,o=t.controllerAs;if(!r)throw Wi("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!ye(r,o))throw Wi("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}function u(t){var e=t.charAt(0);if(!e||e!==Mr(e))throw Wi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Wi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}function s(t){var e=t.require||t.controller&&t.name;return!Zr(e)&&y(e)&&r(e,function(t,n){var r=t.match(_),i=t.substring(r[0].length);i||(e[n]=r[0]+n)}),e}var l={},f="Directive",g=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,b=/(([\w\-]+)(?:\:([^;]+))?;?)/,x=P("ngSrc,ngSrcset,src,srcset"),_=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,C=/^(on[a-z]+|formaction)$/,E=dt();this.directive=function j(t,n){return ft(t,"directive"),w(t)?(u(t),ct(n,"directiveFactory"),l.hasOwnProperty(t)||(l[t]=[],e.factory(t+f,["$injector","$exceptionHandler",function(e,n){var i=[];return r(l[t],function(r,o){try{var a=e.invoke(r);S(a)?a={compile:v(a)}:!a.compile&&a.link&&(a.compile=v(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||t,a.require=s(a),a.restrict=a.restrict||"EA",a.$$moduleName=r.$$moduleName,i.push(a)}catch(u){n(u)}}),i}])),l[t].push(n)):r(t,o(j)),this},this.component=function(t,e){function n(t){function n(e){return S(e)||Zr(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var o=e.template||e.templateUrl?e.template:"",a={controller:i,controllerAs:ye(e.controller)||e.controllerAs||"$ctrl",template:n(o),templateUrl:n(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return r(e,function(t,e){"$"===e.charAt(0)&&(a[e]=t)}),a}var i=e.controller||function(){};return r(e,function(t,e){"$"===e.charAt(0)&&(n[e]=t,S(i)&&(i[e]=t))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(t){return m(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return m(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var k=!0;this.debugInfoEnabled=function(t){return m(t)?(k=t,this):k};var O=10;this.onChangesTtl=function(t){return arguments.length?(O=t,this):O},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,n,i,o,u,s,v,E,j,N){function M(){try{if(!--_t)throw yt=void 0,Wi("infchng","{0} $onChanges() iterations reached. Aborting!\n",O);v.$apply(function(){for(var t=[],e=0,n=yt.length;e<n;++e)try{yt[e]()}catch(r){t.push(r)}if(yt=void 0,t.length)throw t})}finally{_t++}}function I(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=e[i]}else this.$attr={};this.$$element=t}function R(t,e,n){wt.innerHTML="<span "+e+">";var r=wt.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}function P(t,e){try{t.addClass(e)}catch(n){}}function D(e,n,r,i,o){e instanceof Vr||(e=Vr(e));for(var a=/\S+/,u=0,s=e.length;u<s;u++){var c=e[u];c.nodeType===ui&&c.nodeValue.match(a)&&kt(c,e[u]=t.document.createElement("span"))}var l=z(e,n,e,r,i,o);D.$$addScopeClass(e);var f=null;return function(t,n,r){ct(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,u=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=F(u));var s;if(s="html"!==f?Vr(ft(f,Vr("<div>").append(e).html())):n?Ei.clone.call(e):e,a)for(var c in a)s.data("$"+c+"Controller",a[c].instance);return D.$$addScopeInfo(s,t),n&&n(s,t),l&&l(t,s,s,i),s}}function F(t){var e=t&&t[0];return e&&"foreignobject"!==L(e)&&zr.call(e).match(/SVG/)?"svg":"html"}function z(t,e,n,r,i,o){function a(t,n,r,i){var o,a,u,s,c,l,f,p,v;if(h){var g=n.length;for(v=new Array(g),c=0;c<d.length;c+=3)f=d[c],v[f]=n[f]}else v=n;for(c=0,l=d.length;c<l;)u=v[d[c++]],o=d[c++],a=d[c++],o?(o.scope?(s=t.$new(),D.$$addScopeInfo(Vr(u),s)):s=t,p=o.transcludeOnThisElement?H(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?H(t,e):null,o(a,s,u,r,p)):a&&a(t,u.childNodes,void 0,i)}for(var u,s,c,l,f,p,h,d=[],v=0;v<t.length;v++)u=new I,s=W(t[v],[],u,0===v?r:void 0,i),c=s.length?X(s,t[v],u,e,n,null,[],[],o):null,c&&c.scope&&D.$$addScopeClass(u.$$element),f=c&&c.terminal||!(l=t[v].childNodes)||!l.length?null:z(l,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:e),(c||f)&&(d.push(v,c,f),p=!0,h=h||c),o=null;return p?a:null}function H(t,e,n){function r(r,i,o,a,u){return r||(r=t.$new(!1,u),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=dt();for(var o in e.$$slots)e.$$slots[o]?i[o]=H(t,e.$$slots[o],n):i[o]=null;return r}function W(t,e,n,r,i){var o,a,u=t.nodeType,s=n.$attr;switch(u){case oi:nt(e,ge(L(t)),"E",r,i);for(var c,l,f,p,h,d,v=t.attributes,g=0,$=v&&v.length;g<$;g++){var m=!1,x=!1;c=v[g],l=c.name,h=Yr(c.value),p=ge(l),(d=At.test(p))&&(l=l.replace(Ki,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var _=p.match(Ot);_&&rt(_[1])&&(m=l,x=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6)),f=ge(l.toLowerCase()),s[f]=l,!d&&n.hasOwnProperty(f)||(n[f]=h,Ht(t,f)&&(n[f]=!0)),ht(t,e,h,f,d),nt(e,f,"A",r,i,m,x)}if(a=t.className,y(a)&&(a=a.animVal),w(a)&&""!==a)for(;o=b.exec(a);)f=ge(o[2]),nt(e,f,"C",r,i)&&(n[f]=Yr(o[3])),a=a.substr(o.index+o[0].length);break;case ui:if(11===Lr)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===ui;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);lt(e,t.nodeValue);break;case si:G(t,e,n,r,i)}return e.sort(at),e}function G(t,e,n,r,i){try{var o=g.exec(t.nodeValue);if(o){var a=ge(o[1]);
nt(e,a,"M",r,i)&&(n[a]=Yr(o[2]))}}catch(u){}}function K(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Wi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==oi&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return Vr(r)}function Z(t,e,n){return function(r,i,o,a,u){return i=K(i[0],e,n),t(r,i,o,a,u)}}function Y(t,e,n,r,i,o){var a;return t?D(e,n,r,i,o):function(){return a||(a=D(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function X(t,e,n,o,a,u,s,l,f){function p(t,e,n,r){t&&(n&&(t=Z(t,n,r)),t.require=d.require,t.directiveName=v,(C===d||d.$$isolateScope)&&(t=gt(t,{isolateScope:!0})),s.push(t)),e&&(n&&(e=Z(e,n,r)),e.require=d.require,e.directiveName=v,(C===d||d.$$isolateScope)&&(e=gt(e,{isolateScope:!0})),l.push(e))}function h(t,o,a,u,f){function p(t,e,n,r){var i;if(A(t)||(r=n,n=e,e=t,t=void 0),T&&(i=b),n||(n=T?k.parent():k),!r)return f(t,e,i,n,V);var o=f.$$slots[r];if(o)return o(t,e,i,n,V);if($(o))throw Wi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,J(k))}var h,d,v,g,m,b,w,k,O,j;e===a?(O=n,k=n.$$element):(k=Vr(a),O=new I(k,n)),m=o,C?g=o.$new(!0):x&&(m=o.$parent),f&&(w=p,w.$$boundTransclude=f,w.isSlotFilled=function(t){return!!f.$$slots[t]}),_&&(b=tt(k,O,w,_,g,o,C)),C&&(D.$$addScopeInfo(k,g,!0,!(E&&(E===C||E===C.$$originalDirective))),D.$$addScopeClass(k,!0),g.$$isolateBindings=C.$$isolateBindings,j=mt(o,O,g,g.$$isolateBindings,C),j.removeWatches&&g.$on("$destroy",j.removeWatches));for(var N in b){var M=_[N],R=b[N],P=M.$$bindings.bindToController;R.identifier&&P?R.bindingInfo=mt(m,O,R.instance,P,M):R.bindingInfo={};var L=R();L!==R.instance&&(R.instance=L,k.data("$"+M.name+"Controller",L),R.bindingInfo.removeWatches&&R.bindingInfo.removeWatches(),R.bindingInfo=mt(m,O,R.instance,P,M))}for(r(_,function(t,e){var n=t.require;t.bindToController&&!Zr(n)&&y(n)&&c(b[e].instance,Q(e,n,k,b))}),r(b,function(t){var e=t.instance;if(S(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(n){i(n)}if(S(e.$onInit))try{e.$onInit()}catch(n){i(n)}S(e.$doCheck)&&(m.$watch(function(){e.$doCheck()}),e.$doCheck()),S(e.$onDestroy)&&m.$on("$destroy",function(){e.$onDestroy()})}),h=0,d=s.length;h<d;h++)v=s[h],$t(v,v.isolateScope?g:o,k,O,v.require&&Q(v.directiveName,v.require,k,b),w);var V=o;for(C&&(C.template||null===C.templateUrl)&&(V=g),t&&t(V,a.childNodes,void 0,f),h=l.length-1;h>=0;h--)v=l[h],$t(v,v.isolateScope?g:o,k,O,v.require&&Q(v.directiveName,v.require,k,b),w);r(b,function(t){var e=t.instance;S(e.$postLink)&&e.$postLink()})}f=f||{};for(var d,v,g,m,b,w=-Number.MAX_VALUE,x=f.newScopeDirective,_=f.controllerDirectives,C=f.newIsolateScopeDirective,E=f.templateDirective,k=f.nonTlbTranscludeDirective,O=!1,j=!1,T=f.hasElementTranscludeDirective,N=n.$$element=Vr(e),M=u,R=o,P=!1,V=!1,U=0,F=t.length;U<F;U++){d=t[U];var z=d.$$start,H=d.$$end;if(z&&(N=K(e,z,H)),g=void 0,w>d.priority)break;if((b=d.scope)&&(d.templateUrl||(y(b)?(st("new/isolated scope",C||x,d,N),C=d):st("new/isolated scope",C,d,N)),x=x||d),v=d.name,!P&&(d.replace&&(d.templateUrl||d.template)||d.transclude&&!d.$$tlb)){for(var G,X=U+1;G=t[X++];)if(G.transclude&&!G.$$tlb||G.replace&&(G.templateUrl||G.template)){V=!0;break}P=!0}if(!d.templateUrl&&d.controller&&(b=d.controller,_=_||dt(),st("'"+v+"' controller",_[v],d,N),_[v]=d),b=d.transclude)if(O=!0,d.$$tlb||(st("transclusion",k,d,N),k=d),"element"==b)T=!0,w=d.priority,g=N,N=n.$$element=Vr(D.$$createComment(v,n[v])),e=N[0],vt(a,q(g),e),g[0].$$parentNode=g[0].parentNode,R=Y(V,g,o,w,M&&M.name,{nonTlbTranscludeDirective:k});else{var nt=dt();if(g=Vr(jt(e)).contents(),y(b)){g=[];var rt=dt(),at=dt();r(b,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,rt[t]=e,nt[e]=null,at[e]=n}),r(N.contents(),function(t){var e=rt[ge(L(t))];e?(at[e]=!0,nt[e]=nt[e]||[],nt[e].push(t)):g.push(t)}),r(at,function(t,e){if(!t)throw Wi("reqslot","Required transclusion slot `{0}` was not filled.",e)});for(var ut in nt)nt[ut]&&(nt[ut]=Y(V,nt[ut],o))}N.empty(),R=Y(V,g,o,void 0,void 0,{needsNewScope:d.$$isolateScope||d.$$newScope}),R.$$slots=nt}if(d.template)if(j=!0,st("template",E,d,N),E=d,b=S(d.template)?d.template(N,n):d.template,b=Et(b),d.replace){if(M=d,g=xt(b)?[]:me(ft(d.templateNamespace,Yr(b))),e=g[0],1!=g.length||e.nodeType!==oi)throw Wi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v,"");vt(a,N,e);var ct={$attr:{}},lt=W(e,[],ct),pt=t.splice(U+1,t.length-(U+1));(C||x)&&et(lt,C,x),t=t.concat(lt).concat(pt),it(n,ct),F=t.length}else N.html(b);if(d.templateUrl)j=!0,st("template",E,d,N),E=d,d.replace&&(M=d),h=ot(t.splice(U,t.length-U),N,n,a,O&&R,s,l,{controllerDirectives:_,newScopeDirective:x!==d&&x,newIsolateScopeDirective:C,templateDirective:E,nonTlbTranscludeDirective:k}),F=t.length;else if(d.compile)try{m=d.compile(N,n,R);var ht=d.$$originalDirective||d;S(m)?p(null,B(ht,m),z,H):m&&p(B(ht,m.pre),B(ht,m.post),z,H)}catch(yt){i(yt,J(N))}d.terminal&&(h.terminal=!0,w=Math.max(w,d.priority))}return h.scope=x&&x.scope===!0,h.transcludeOnThisElement=O,h.templateOnThisElement=j,h.transclude=R,f.hasElementTranscludeDirective=T,h}function Q(t,e,n,i){var o;if(w(e)){var a=e.match(_),u=e.substring(a[0].length),s=a[1]||a[3],c="?"===a[2];if("^^"===s?n=n.parent():(o=i&&i[u],o=o&&o.instance),!o){var l="$"+u+"Controller";o=s?n.inheritedData(l):n.data(l)}if(!o&&!c)throw Wi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",u,t)}else if(Zr(e)){o=[];for(var f=0,p=e.length;f<p;f++)o[f]=Q(t,e[f],n,i)}else y(e)&&(o={},r(e,function(e,r){o[r]=Q(t,e,n,i)}));return o||null}function tt(t,e,n,r,i,o,a){var u=dt();for(var c in r){var l=r[c],f={$scope:l===a||l.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},p=l.controller;"@"==p&&(p=e[l.name]);var h=s(p,f,!0,l.controllerAs);u[l.name]=h,t.data("$"+l.name+"Controller",h.instance)}return u}function et(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=p(t[r],{$$isolateScope:e,$$newScope:n})}function nt(t,n,r,o,u,s,c){if(n===u)return null;var h=null;if(l.hasOwnProperty(n))for(var d,v=e.get(n+f),g=0,m=v.length;g<m;g++)try{if(d=v[g],($(o)||o>d.priority)&&d.restrict.indexOf(r)!=-1){if(s&&(d=p(d,{$$start:s,$$end:c})),!d.$$bindings){var b=d.$$bindings=a(d,d.name);y(b.isolateScope)&&(d.$$isolateBindings=b.isolateScope)}t.push(d),h=d}}catch(w){i(w)}return h}function rt(t){if(l.hasOwnProperty(t))for(var n,r=e.get(t+f),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function it(t,e){var n=e.$attr,i=t.$attr;t.$$element;r(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),r(e,function(e,r){t.hasOwnProperty(r)||"$"===r.charAt(0)||(t[r]=e,"class"!==r&&"style"!==r&&(i[r]=n[r]))})}function ot(t,e,n,i,a,u,s,c){var l,f,h=[],d=e[0],v=t.shift(),g=p(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),$=S(v.templateUrl)?v.templateUrl(e,n):v.templateUrl,m=v.templateNamespace;return e.empty(),o($).then(function(o){var p,b,w,x;if(o=Et(o),v.replace){if(w=xt(o)?[]:me(ft(m,Yr(o))),p=w[0],1!=w.length||p.nodeType!==oi)throw Wi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,$);b={$attr:{}},vt(i,e,p);var _=W(p,[],b);y(v.scope)&&et(_,!0),t=_.concat(t),it(n,b)}else p=d,e.html(o);for(t.unshift(g),l=X(t,p,n,a,e,v,u,s,c),r(i,function(t,n){t==p&&(i[n]=e[0])}),f=z(e[0].childNodes,a);h.length;){var S=h.shift(),C=h.shift(),E=h.shift(),A=h.shift(),k=e[0];if(!S.$$destroyed){if(C!==d){var O=C.className;c.hasElementTranscludeDirective&&v.replace||(k=jt(p)),vt(E,Vr(C),k),P(Vr(k),O)}x=l.transcludeOnThisElement?H(S,l.transclude,A):A,l(f,S,k,i,x)}}h=null}),function(t,e,n,r,i){var o=i;e.$$destroyed||(h?h.push(e,n,r,o):(l.transcludeOnThisElement&&(o=H(e,l.transclude,i)),l(f,e,n,r,o)))}}function at(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function st(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Wi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,J(r))}function lt(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&D.$$addBindingClass(e),function(t,e){var i=e.parent();n||D.$$addBindingClass(i),D.$$addBindingInfo(i,r.expressions),t.$watch(r,function(t){e[0].nodeValue=t})}}})}function ft(e,n){switch(e=Mr(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function pt(t,e){if("srcdoc"==e)return E.HTML;var n=L(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?E.RESOURCE_URL:void 0}function ht(t,e,r,i,o){var a=pt(t,i);o=x[i]||o;var u=n(r,!0,a,o);if(u){if("multiple"===i&&"select"===L(t))throw Wi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",J(t));e.push({priority:100,compile:function(){return{pre:function(t,e,s){var c=s.$$observers||(s.$$observers=dt());if(C.test(i))throw Wi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=s[i];l!==r&&(u=l&&n(l,!0,a,o),r=l),u&&(s[i]=u(t),(c[i]||(c[i]=[])).$$inter=!0,(s.$$observers&&s.$$observers[i].$$scope||t).$watch(u,function(t,e){"class"===i&&t!=e?s.$updateClass(t,e):s.$set(i,t)}))}}}})}}function vt(e,n,r){var i,o,a=n[0],u=n.length,s=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]==a){e[i++]=r;for(var c=i,l=c+u-1,f=e.length;c<f;c++,l++)l<f?e[c]=e[l]:delete e[c];e.length-=u-1,e.context===a&&(e.context=r);break}s&&s.replaceChild(r,a);var p=t.document.createDocumentFragment();for(i=0;i<u;i++)p.appendChild(n[i]);for(Vr.hasData(a)&&(Vr.data(r,Vr.data(a)),Vr(a).off("$destroy")),Vr.cleanData(p.querySelectorAll("*")),i=1;i<u;i++)delete n[i];n[0]=r,n.length=1}function gt(t,e){return c(function(){return t.apply(null,arguments)},t,e)}function $t(t,e,n,r,o,a){try{t(e,n,r,o,a)}catch(u){i(u,J(n))}}function mt(t,e,i,o,a){function s(e,n,r){S(i.$onChanges)&&n!==r&&(yt||(t.$$postDigest(M),yt=[]),l||(l={},yt.push(c)),l[e]&&(r=l[e].previousValue),l[e]=new ve(r,n))}function c(){i.$onChanges(l),l=void 0}var l,f=[],p={};return r(o,function(r,o){var c,l,d,v,g,$=r.attrName,m=r.optional,y=r.mode;switch(y){case"@":m||Nr.call(e,$)||(i[o]=e[$]=void 0),e.$observe($,function(t){if(w(t)||T(t)){var e=i[o];s(o,t,e),i[o]=t}}),e.$$observers[$].$$scope=t,c=e[$],w(c)?i[o]=n(c)(t):T(c)&&(i[o]=c),p[o]=new ve(Gi,i[o]);break;case"=":if(!Nr.call(e,$)){if(m)break;e[$]=void 0}if(m&&!e[$])break;l=u(e[$]),v=l.literal?U:function(t,e){return t===e||t!==t&&e!==e},d=l.assign||function(){throw c=i[o]=l(t),Wi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[$],$,a.name)},c=i[o]=l(t);var b=function(e){return v(e,i[o])||(v(e,c)?d(t,e=i[o]):i[o]=e),c=e};b.$stateful=!0,g=r.collection?t.$watchCollection(e[$],b):t.$watch(u(e[$],b),null,l.literal),f.push(g);break;case"<":if(!Nr.call(e,$)){if(m)break;e[$]=void 0}if(m&&!e[$])break;l=u(e[$]);var x=i[o]=l(t);p[o]=new ve(Gi,i[o]),g=t.$watch(l,function(t,e){if(e===t){if(e===x)return;e=x}s(o,t,e),i[o]=t},l.literal),f.push(g);break;case"&":if(l=e.hasOwnProperty($)?u(e[$]):h,l===h&&m)break;i[o]=function(e){return l(t,e)}}}),{initialChanges:p,removeWatches:f.length&&function(){for(var t=0,e=f.length;t<e;++t)f[t]()}}}var yt,bt=/^\w/,wt=t.document.createElement("div"),_t=O;I.prototype={$normalize:ge,$addClass:function(t){t&&t.length>0&&j.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&j.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=$e(t,e);n&&n.length&&j.addClass(this.$$element,n);var r=$e(e,t);r&&r.length&&j.removeClass(this.$$element,r)},$set:function(t,e,n,o){var a,u=this.$$element[0],s=Ht(u,t),c=Wt(t),l=t;if(s?(this.$$element.prop(t,e),o=s):c&&(this[c]=e,l=c),this[t]=e,o?this.$attr[t]=o:(o=this.$attr[t],o||(this.$attr[t]=o=ut(t,"-"))),a=L(this.$$element),"a"===a&&("href"===t||"xlinkHref"===t)||"img"===a&&"src"===t)this[t]=e=N(e,"src"===t);else if("img"===a&&"srcset"===t&&m(e)){for(var f="",p=Yr(e),h=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(p)?h:/(,)/,v=p.split(d),g=Math.floor(v.length/2),y=0;y<g;y++){var b=2*y;f+=N(Yr(v[b]),!0),f+=" "+Yr(v[b+1])}var w=Yr(v[2*y]).split(/\s/);f+=N(Yr(w[0]),!0),2===w.length&&(f+=" "+Yr(w[1])),this[t]=e=f}n!==!1&&(null===e||$(e)?this.$$element.removeAttr(o):bt.test(o)?this.$$element.attr(o,e):R(this.$$element[0],o,e));var x=this.$$observers;x&&r(x[l],function(t){try{t(e)}catch(n){i(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=dt()),i=r[t]||(r[t]=[]);return i.push(e),v.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||$(n[t])||e(n[t])}),function(){V(i,e)}}};var St=n.startSymbol(),Ct=n.endSymbol(),Et="{{"==St&&"}}"==Ct?d:function(t){return t.replace(/\{\{/g,St).replace(/}}/g,Ct)},At=/^ngAttr[A-Z]/,Ot=/^(.+)Start$/;return D.$$addBindingInfo=k?function(t,e){var n=t.data("$binding")||[];Zr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:h,D.$$addBindingClass=k?function(t){P(t,"ng-binding")}:h,D.$$addScopeInfo=k?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:h,D.$$addScopeClass=k?function(t,e){P(t,e?"ng-isolate-scope":"ng-scope")}:h,D.$$createComment=function(e,n){var r="";return k&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},D}]}function ve(t,e){this.previousValue=t,this.currentValue=e}function ge(t){return wt(t.replace(Ki,""))}function $e(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],u=0;u<i.length;u++)if(a==i[u])continue t;n+=(n.length>0?" ":"")+a}return n}function me(t){t=Vr(t);var e=t.length;if(e<=1)return t;for(;e--;){var n=t[e];n.nodeType===si&&qr.call(t,e,1)}return t}function ye(t,e){if(e&&w(e))return e;if(w(t)){var n=Ji.exec(t);if(n)return n[3]}}function be(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){ft(e,"controller"),y(e)?c(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(t,n,r,i){if(!t||!y(t.$scope))throw e("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=r}return function(e,a,u,s){var l,f,p,h;if(u=u===!0,s&&w(s)&&(h=s),w(e)){if(f=e.match(Ji),!f)throw Zi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);p=f[1],h=h||f[3],e=t.hasOwnProperty(p)?t[p]:pt(a.$scope,p,!0)||(n?pt(i,p,!0):void 0),lt(e,p,!0)}if(u){var d=(Zr(e)?e[e.length-1]:e).prototype;l=Object.create(d||null),h&&o(a,h,l,p||e.name);var v;return v=c(function(){var t=r.invoke(e,l,a,p);return t!==l&&(y(t)||S(t))&&(l=t,h&&o(a,h,l,p||e.name)),l},{instance:l,identifier:h})}return l=r.instantiate(e,a,p),h&&o(a,h,l,p||e.name),l}}]}function we(){this.$get=["$window",function(t){return Vr(t.document)}]}function xe(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function _e(t){return y(t)?_(t)?t.toISOString():H(t):t}function Se(){this.$get=function(){return function(t){if(!t)return"";var e=[];return i(t,function(t,n){null===t||$(t)||(Zr(t)?r(t,function(t){e.push(et(n)+"="+et(_e(t)))}):e.push(et(n)+"="+et(_e(t))))}),e.join("&")}}}function Ce(){this.$get=function(){return function(t){function e(t,o,a){null===t||$(t)||(Zr(t)?r(t,function(t,n){e(t,o+"["+(y(t)?n:"")+"]")}):y(t)&&!_(t)?i(t,function(t,n){e(t,o+(a?"":"[")+n+(a?"":"]"))}):n.push(et(o)+"="+et(_e(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function Ee(t,e){if(w(t)){var n=t.replace(no,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Xi)||Ae(n))&&(t=W(n))}}return t}function Ae(t){var e=t.match(to);return e&&eo[e[0]].test(t)}function ke(t){function e(t,e){t&&(i[t]=i[t]?i[t]+", "+e:e)}var n,i=dt();return w(t)?r(t.split("\n"),function(t){n=t.indexOf(":"),e(Mr(Yr(t.substr(0,n))),Yr(t.substr(n+1)))}):y(t)&&r(t,function(t,n){e(Mr(n),Yr(t))}),i}function Oe(t){var e;return function(n){if(e||(e=ke(t)),n){var r=e[Mr(n)];return void 0===r&&(r=null),r}return e}}function je(t,e,n,i){return S(i)?i(t,e,n):(r(i,function(r){t=r(t,e,n)}),t)}function Te(t){return 200<=t&&t<300}function Ne(){var t=this.defaults={transformResponse:[Ee],transformRequest:[function(t){return!y(t)||k(t)||j(t)||O(t)?t:H(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:gt(Qi),put:gt(Qi),patch:gt(Qi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(t){return m(t)?(n=!!t,this):n};var i=!0;this.useLegacyPromiseExtensions=function(t){return m(t)?(i=!!t,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,u,s,l,f,p){function h(n){function o(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function a(t,e){var n,i={};return r(t,function(t,r){S(t)?(n=t(e),null!=n&&(i[r]=n)):i[r]=t}),i}function u(e){var n,r,i,o=t.headers,u=c({},e.headers);o=c({},o.common,o[Mr(e.method)]);t:for(n in o){r=Mr(n);for(i in u)if(Mr(i)===r)continue t;u[n]=o[n]}return a(u,gt(e))}function s(e){var n=e.headers,i=je(e.data,Oe(n),void 0,e.transformRequest);return $(i)&&r(n,function(t,e){"content-type"===Mr(e)&&delete n[e]}),$(e.withCredentials)&&!$(t.withCredentials)&&(e.withCredentials=t.withCredentials),g(e,i).then(l,l)}function l(t){var e=c({},t);return e.data=je(t.data,t.headers,t.status,h.transformResponse),Te(t.status)?e:f.reject(e)}if(!y(n))throw e("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(n.url))throw e("$http")("badreq","Http request configuration url must be a string. Received: {0}",n.url);var h=c({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);h.headers=u(n),h.method=Ir(h.method),h.paramSerializer=w(h.paramSerializer)?p.get(h.paramSerializer):h.paramSerializer;var d=[],v=[],m=f.when(h);return r(_,function(t){(t.request||t.requestError)&&d.unshift(t.request,t.requestError),(t.response||t.responseError)&&v.push(t.response,t.responseError)}),m=o(m,d),m=m.then(s),m=o(m,v),i?(m.success=function(t){return lt(t,"fn"),m.then(function(e){t(e.data,e.status,e.headers,h)}),m},m.error=function(t){return lt(t,"fn"),m.then(null,function(e){t(e.data,e.status,e.headers,h)}),m}):(m.success=io("success"),m.error=io("error")),m}function d(t){r(arguments,function(t){h[t]=function(e,n){return h(c({},n||{},{method:t,url:e}))}})}function v(t){r(arguments,function(t){h[t]=function(e,n,r){return h(c({},r||{},{method:t,url:e,data:n}))}})}function g(e,i){function o(t){if(t){var e={};return r(t,function(t,r){e[r]=function(e){function r(){t(e)}n?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),e}}function s(t,e,r,i){function o(){c(e,t,r,i)}v&&(Te(t)?v.put(C,[t,e,ke(r),i]):v.remove(C)),n?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function c(t,n,r,i){n=n>=-1?n:0,(Te(n)?w.resolve:w.reject)({data:t,status:n,headers:Oe(r),config:e,statusText:i})}function p(t){c(t.data,t.status,gt(t.headers()),t.statusText)}function d(){var t=h.pendingRequests.indexOf(e);t!==-1&&h.pendingRequests.splice(t,1)}var v,g,w=f.defer(),_=w.promise,S=e.headers,C=b(e.url,e.paramSerializer(e.params));if(h.pendingRequests.push(e),_.then(d,d),!e.cache&&!t.cache||e.cache===!1||"GET"!==e.method&&"JSONP"!==e.method||(v=y(e.cache)?e.cache:y(t.cache)?t.cache:x),v&&(g=v.get(C),m(g)?N(g)?g.then(p,p):Zr(g)?c(g[1],g[0],gt(g[2]),g[3]):c(g,200,{},"OK"):v.put(C,_)),$(g)){var E=Rn(e.url)?u()[e.xsrfCookieName||t.xsrfCookieName]:void 0;E&&(S[e.xsrfHeaderName||t.xsrfHeaderName]=E),a(e.method,C,i,s,S,e.timeout,e.withCredentials,e.responseType,o(e.eventHandlers),o(e.uploadEventHandlers))}return _}function b(t,e){return e.length>0&&(t+=(t.indexOf("?")==-1?"?":"&")+e),t}var x=s("$http");t.paramSerializer=w(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var _=[];return r(o,function(t){_.unshift(w(t)?p.get(t):p.invoke(t))}),h.pendingRequests=[],d("get","delete","head","jsonp"),v("post","put","patch"),h.defaults=t,h}]}function Me(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function Ie(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return Re(t,r,t.defer,e,n[0])}]}function Re(t,e,n,i,o){function a(t,e,n){t=t.replace("JSON_CALLBACK",e);var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=t,r.async=!0,a=function(t){vi(r,"load",a),vi(r,"error",a),o.body.removeChild(r),r=null;var u=-1,s="unknown";t&&("load"!==t.type||i.wasCalled(e)||(t={type:"error"}),s=t.type,u="error"===t.type?404:200),n&&n(u,s)},di(r,"load",a),di(r,"error",a),o.body.appendChild(r),a}return function(o,u,s,c,l,f,p,d,v,g){function y(){x&&x(),_&&_.abort()}function b(e,r,i,o,a){m(E)&&n.cancel(E),x=_=null,e(r,i,o,a),t.$$completeOutstandingRequest(h)}if(t.$$incOutstandingRequestCount(),u=u||t.url(),"jsonp"===Mr(o))var w=i.createCallback(u),x=a(u,w,function(t,e){var n=200===t&&i.getResponse(w);b(c,t,n,"",e),i.removeCallback(w)});else{var _=e(o,u);_.open(o,u,!0),r(l,function(t,e){m(t)&&_.setRequestHeader(e,t)}),_.onload=function(){var t=_.statusText||"",e="response"in _?_.response:_.responseText,n=1223===_.status?204:_.status;0===n&&(n=e?200:"file"==In(u).protocol?404:0),b(c,n,e,_.getAllResponseHeaders(),t)};var S=function(){b(c,-1,null,null,"")};if(_.onerror=S,_.onabort=S,r(v,function(t,e){_.addEventListener(e,t)}),r(g,function(t,e){_.upload.addEventListener(e,t)}),p&&(_.withCredentials=!0),d)try{_.responseType=d}catch(C){if("json"!==d)throw C}_.send($(s)?null:s)}if(f>0)var E=n(y,f);else N(f)&&f.then(y)}}function Pe(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function a(n){return n.replace(h,t).replace(d,e)}function u(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=H(t)}return t}function s(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function l(o,l,h,d){function g(t){try{return t=N(t),d&&!m(t)?t:u(t)}catch(e){r(oo.interr(o,e))}}if(!o.length||o.indexOf(t)===-1){var y;if(!l){var b=a(o);y=v(b),y.exp=o,y.expressions=[],y.$$watchDelegate=s}return y}d=!!d;for(var w,x,_,C=0,E=[],A=[],k=o.length,O=[],j=[];C<k;){if((w=o.indexOf(t,C))==-1||(x=o.indexOf(e,w+f))==-1){C!==k&&O.push(a(o.substring(C)));break}C!==w&&O.push(a(o.substring(C,w))),_=o.substring(w+f,x),E.push(_),A.push(n(_,g)),C=x+p,j.push(O.length),O.push("")}if(h&&O.length>1&&oo.throwNoconcat(o),!l||E.length){var T=function(t){for(var e=0,n=E.length;e<n;e++){if(d&&$(t[e]))return;O[j[e]]=t[e]}return O.join("")},N=function(t){return h?i.getTrusted(h,t):i.valueOf(t)};return c(function(t){var e=0,n=E.length,i=new Array(n);try{for(;e<n;e++)i[e]=A[e](t);return T(i)}catch(a){r(oo.interr(o,a))}},{exp:o,expressions:E,$$watchDelegate:function(t,e){var n;return t.$watchGroup(A,function(r,i){var o=T(r);S(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var f=t.length,p=e.length,h=new RegExp(t.replace(/./g,o),"g"),d=new RegExp(e.replace(/./g,o),"g");return l.startSymbol=function(){return t},l.endSymbol=function(){return e},l}]}function Le(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(t,e,n,r,i){function o(o,u,s,c){function l(){f?o.apply(null,p):o(v)}var f=arguments.length>4,p=f?q(arguments,4):[],h=e.setInterval,d=e.clearInterval,v=0,g=m(c)&&!c,$=(g?r:n).defer(),y=$.promise;return s=m(s)?s:0,y.$$intervalId=h(function(){g?i.defer(l):t.$evalAsync(l),$.notify(v++),s>0&&v>=s&&($.resolve(v),d(y.$$intervalId),delete a[y.$$intervalId]),g||t.$apply()},u),a[y.$$intervalId]=$,y}var a={};return o.cancel=function(t){return!!(t&&t.$$intervalId in a)&&(a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0)},o}]}function Ve(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=tt(e[n]);return e.join("/")}function De(t,e){var n=In(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=f(n.port)||so[n.protocol]||null}function Ue(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=In(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=X(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Fe(t,e){return 0===t.lastIndexOf(e,0)}function qe(t,e){if(Fe(e,t))return e.substr(t.length)}function Be(t){var e=t.indexOf("#");return e==-1?t:t.substr(0,e)}function ze(t){return t.replace(/(#.+)|#$/,"$1")}function He(t){return t.substr(0,Be(t).lastIndexOf("/")+1)}function We(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Ge(t,e,n){this.$$html5=!0,n=n||"",De(t,this),this.$$parse=function(t){var n=qe(e,t);if(!w(n))throw co("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Ue(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=Q(this.$$search),n=this.$$hash?"#"+tt(this.$$hash):"";this.$$url=Ve(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,u;return m(o=qe(t,r))?(a=o,u=m(o=qe(n,o))?e+(qe("/",o)||o):t+a):m(o=qe(e,r))?u=e+o:e==r+"/"&&(u=e),u&&this.$$parse(u),!!u}}function Ke(t,e,n){De(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return Fe(e,n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var o,a=qe(t,r)||qe(e,r);$(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",$(a)&&(t=r,this.replace())):(o=qe(n,a),$(o)&&(o=a)),Ue(o,this),this.$$path=i(this.$$path,o,t),this.$$compose()},this.$$compose=function(){var e=Q(this.$$search),r=this.$$hash?"#"+tt(this.$$hash):"";this.$$url=Ve(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return Be(t)==Be(e)&&(this.$$parse(e),!0)}}function Ze(t,e,n){this.$$html5=!0,Ke.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return t==Be(r)?o=r:(a=qe(e,r))?o=t+n+a:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=Q(this.$$search),r=this.$$hash?"#"+tt(this.$$hash):"";this.$$url=Ve(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Je(t){return function(){return this[t]}}function Ye(t,e){return function(n){return $(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Xe(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return m(e)?(t=e,this):t},this.html5Mode=function(t){return T(t)?(e.enabled=t,this):y(t)?(T(t.enabled)&&(e.enabled=t.enabled),T(t.requireBase)&&(e.requireBase=t.requireBase),T(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function u(t,e,n){var i=c.url(),o=c.$$state;try{r.url(t,e,n),c.$$state=r.state()}catch(a){throw c.url(i),c.$$state=o,a}}function s(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,l,f,p=r.baseHref(),h=r.url();if(e.enabled){if(!p&&e.requireBase)throw co("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=We(h)+(p||"/"),l=i.history?Ge:Ze}else f=Be(h),l=Ke;var d=He(f);c=new l(f,d,"#"+t),c.$$parseLinkUrl(h,h),c.$$state=r.state();var v=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=Vr(t.target);"a"!==L(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var u=i.prop("href"),s=i.attr("href")||i.attr("xlink:href");y(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=In(u.animVal).href),v.test(u)||!u||i.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(u,s)&&(t.preventDefault(),c.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),ze(c.absUrl())!=ze(h)&&r.url(c.absUrl(),!0);var g=!0;return r.onUrlChange(function(t,e){return $(qe(d,t))?void(a.location.href=t):(n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;t=ze(t),c.$$parse(t),c.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,c.absUrl()===t&&(r?(c.$$parse(i),c.$$state=o,u(i,!1,o)):(g=!1,s(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var t=ze(r.url()),e=ze(c.absUrl()),o=r.state(),a=c.$$replace,l=t!==e||c.$$html5&&i.history&&o!==c.$$state;(g||l)&&(g=!1,n.$evalAsync(function(){var e=c.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&&(r?(c.$$parse(t),c.$$state=o):(l&&u(e,a,o===c.$$state?null:c.$$state),s(t,o)))})),c.$$replace=!1}),c}]}function Qe(){var t=!0,e=this;this.debugEnabled=function(e){return m(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&t.stack.indexOf(t.message)===-1?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function o(t){var e=n.console||{},o=e[t]||e.log||h,a=!1;try{a=!!o.apply}catch(u){}return a?function(){var t=[];return r(arguments,function(e){t.push(i(e))}),o.apply(e,t)}:function(t,e){o(t,null==e?"":e)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function tn(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw fo("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function en(t){return t+""}function nn(t,e){if(t){if(t.constructor===t)throw fo("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw fo("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw fo("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw fo("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function rn(t,e){if(t){if(t.constructor===t)throw fo("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===po||t===ho||t===vo)throw fo("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function on(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw fo("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function an(t,e){return"undefined"!=typeof t?t:e}function un(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function sn(t,e){var n=t(e);return!n.$stateful}function cn(t,e){var n,i;switch(t.type){case yo.Program:n=!0,r(t.body,function(t){cn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case yo.Literal:t.constant=!0,t.toWatch=[];break;case yo.UnaryExpression:cn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case yo.BinaryExpression:cn(t.left,e),cn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case yo.LogicalExpression:cn(t.left,e),cn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case yo.ConditionalExpression:cn(t.test,e),cn(t.alternate,e),cn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case yo.Identifier:t.constant=!1,t.toWatch=[t];break;case yo.MemberExpression:cn(t.object,e),t.computed&&cn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case yo.CallExpression:
n=!!t.filter&&sn(e,t.callee.name),i=[],r(t.arguments,function(t){cn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&sn(e,t.callee.name)?i:[t];break;case yo.AssignmentExpression:cn(t.left,e),cn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case yo.ArrayExpression:n=!0,i=[],r(t.elements,function(t){cn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case yo.ObjectExpression:n=!0,i=[],r(t.properties,function(t){cn(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||i.push.apply(i,t.value.toWatch)}),t.constant=n,t.toWatch=i;break;case yo.ThisExpression:t.constant=!1,t.toWatch=[];break;case yo.LocalsExpression:t.constant=!1,t.toWatch=[]}}function ln(t){if(1==t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length?n:n[0]!==e?n:void 0}}function fn(t){return t.type===yo.Identifier||t.type===yo.MemberExpression}function pn(t){if(1===t.body.length&&fn(t.body[0].expression))return{type:yo.AssignmentExpression,left:t.body[0].expression,right:{type:yo.NGValueParameter},operator:"="}}function hn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===yo.Literal||t.body[0].expression.type===yo.ArrayExpression||t.body[0].expression.type===yo.ObjectExpression)}function dn(t){return t.constant}function vn(t,e){this.astBuilder=t,this.$filter=e}function gn(t,e){this.astBuilder=t,this.$filter=e}function $n(t){return"constructor"==t}function mn(t){return S(t.valueOf)?t.valueOf():wo.call(t)}function yn(){var t,e,n=dt(),i=dt(),o={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(t,e){o[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(a){function u(t,e,r){var o,u,c;switch(r=r||b,typeof t){case"string":t=t.trim(),c=t;var g=r?i:n;if(o=g[c],!o){":"===t.charAt(0)&&":"===t.charAt(1)&&(u=!0,t=t.substring(2));var m=r?y:$,w=new mo(m),x=new bo(w,a,m);o=x.parse(t),o.constant?o.$$watchDelegate=d:u?o.$$watchDelegate=o.literal?p:f:o.inputs&&(o.$$watchDelegate=l),r&&(o=s(o)),g[c]=o}return v(o,e);case"function":return v(t,e);default:return v(h,e)}}function s(t){function e(e,n,r,i){var o=b;b=!0;try{return t(e,n,r,i)}finally{b=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=s(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&n<t.inputs.length;++n)t.inputs[n]=s(t.inputs[n]);return e.inputs=t.inputs,e}function c(t,e){return null==t||null==e?t===e:("object"!=typeof t||(t=mn(t),"object"!=typeof t))&&(t===e||t!==t&&e!==e)}function l(t,e,n,r,i){var o,a=r.inputs;if(1===a.length){var u=c;return a=a[0],t.$watch(function(t){var e=a(t);return c(e,u)||(o=r(t,void 0,void 0,[e]),u=e&&mn(e)),o},e,n,i)}for(var s=[],l=[],f=0,p=a.length;f<p;f++)s[f]=c,l[f]=null;return t.$watch(function(t){for(var e=!1,n=0,i=a.length;n<i;n++){var u=a[n](t);(e||(e=!c(u,s[n])))&&(l[n]=u,s[n]=u&&mn(u))}return e&&(o=r(t,void 0,void 0,l)),o},e,n,i)}function f(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,S(e)&&e.apply(this,arguments),m(t)&&r.$$postDigest(function(){m(o)&&i()})},n)}function p(t,e,n,i){function o(t){var e=!0;return r(t,function(t){m(t)||(e=!1)}),e}var a,u;return a=t.$watch(function(t){return i(t)},function(t,n,r){u=t,S(e)&&e.call(this,t,n,r),o(t)&&r.$$postDigest(function(){o(u)&&a()})},n)}function d(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function v(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==p&&n!==f,o=i?function(n,i,o,a){var u=r&&a?a[0]:t(n,i,o,a);return e(u,n,i)}:function(n,r,i,o){var a=t(n,r,i,o),u=e(a,n,r);return m(a)?u:a};return t.$$watchDelegate&&t.$$watchDelegate!==l?o.$$watchDelegate=t.$$watchDelegate:e.$stateful||(o.$$watchDelegate=l,r=!t.inputs,o.inputs=t.inputs?t.inputs:[t]),o}var g=Qr().noUnsafeEval,$={csp:g,expensiveChecks:!1,literals:D(o),isIdentifierStart:S(t)&&t,isIdentifierContinue:S(e)&&e},y={csp:g,expensiveChecks:!0,literals:D(o),isIdentifierStart:S(t)&&t,isIdentifierContinue:S(e)&&e},b=!1;return u.$$runningExpensiveChecks=function(){return b},u}]}function bn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return xn(function(e){t.$evalAsync(e)},e)}]}function wn(){this.$get=["$browser","$exceptionHandler",function(t,e){return xn(function(e){t.defer(e)},e)}]}function xn(t,n){function i(){this.$$state={status:0}}function o(t,e){return function(n){e.call(t,n)}}function a(t){var e,r,i;i=t.pending,t.processScheduled=!1,t.pending=void 0;for(var o=0,a=i.length;o<a;++o){r=i[o][0],e=i[o][t.status];try{S(e)?r.resolve(e(t.value)):1===t.status?r.resolve(t.value):r.reject(t.value)}catch(u){r.reject(u),n(u)}}}function u(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){a(e)}))}function s(){this.promise=new i}function l(t){var e=new s,n=0,i=Zr(t)?[]:{};return r(t,function(t,r){n++,m(t).then(function(t){i.hasOwnProperty(r)||(i[r]=t,--n||e.resolve(i))},function(t){i.hasOwnProperty(r)||e.reject(t)})}),0===n&&e.resolve(i),e.promise}function f(t){var e=h();return r(t,function(t){m(t).then(e.resolve,e.reject)}),e.promise}var p=e("$q",TypeError),h=function(){var t=new s;return t.resolve=o(t,t.resolve),t.reject=o(t,t.reject),t.notify=o(t,t.notify),t};c(i.prototype,{then:function(t,e,n){if($(t)&&$(e)&&$(n))return this;var r=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&u(this.$$state),r.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return g(e,!0,t)},function(e){return g(e,!1,t)},e)}}),c(s.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){function e(t){s||(s=!0,a.$$resolve(t))}function r(t){s||(s=!0,a.$$reject(t))}var i,a=this,s=!1;try{(y(t)||S(t))&&(i=t&&t.then),S(i)?(this.promise.$$state.status=-1,i.call(t,e,r,o(this,this.notify))):(this.promise.$$state.value=t,this.promise.$$state.status=1,u(this.promise.$$state))}catch(c){r(c),n(c)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,u(this.promise.$$state)},notify:function(e){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,a=r.length;o<a;o++){i=r[o][0],t=r[o][3];try{i.notify(S(t)?t(e):e)}catch(u){n(u)}}})}});var d=function(t){var e=new s;return e.reject(t),e.promise},v=function(t,e){var n=new s;return e?n.resolve(t):n.reject(t),n.promise},g=function(t,e,n){var r=null;try{S(n)&&(r=n())}catch(i){return v(i,!1)}return N(r)?r.then(function(){return v(t,e)},function(t){return v(t,!1)}):v(t,e)},m=function(t,e,n,r){var i=new s;return i.resolve(t),i.promise.then(e,n,r)},b=m,w=function(t){function e(t){r.resolve(t)}function n(t){r.reject(t)}if(!S(t))throw p("norslvr","Expected resolverFn, got '{0}'",t);var r=new s;return t(e,n),r.promise};return w.prototype=i.prototype,w.defer=h,w.reject=d,w.when=m,w.resolve=b,w.all=l,w.race=f,w}function _n(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function Sn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=a(),this.$$ChildScope=null}return e.prototype=t,e}var i=10,o=e("$rootScope"),u=null,s=null;this.digestTtl=function(t){return arguments.length&&(i=t),i},this.$get=["$exceptionHandler","$parse","$browser",function(e,c,l){function f(t){t.currentScope.$$destroyed=!0}function p(t){9===Lr&&(t.$$childHead&&p(t.$$childHead),t.$$nextSibling&&p(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function d(){this.$id=a(),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 v(t){if(C.$$phase)throw o("inprog","{0} already in progress",C.$$phase);C.$$phase=t}function g(){C.$$phase=null}function m(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function b(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function w(){}function x(){for(;k.length;)try{k.shift()()}catch(t){e(t)}s=null}function _(){null===s&&(s=l.defer(function(){C.$apply(x)}))}d.prototype={constructor:d,$new:function(e,n){var r;return n=n||this,e?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",f),r},$watch:function(t,e,n,r){var i=c(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,a=o.$$watchers,s={fn:e,last:w,get:i,exp:r||t,eq:!!n};return u=null,S(e)||(s.fn=h),a||(a=o.$$watchers=[]),a.unshift(s),m(this,1),function(){V(a,s)>=0&&m(o,-1),u=null}},$watchGroup:function(t,e){function n(){s=!1,c?(c=!1,e(o,o,u)):e(o,i,u)}var i=new Array(t.length),o=new Array(t.length),a=[],u=this,s=!1,c=!0;if(!t.length){var l=!0;return u.$evalAsync(function(){l&&e(o,o,u)}),function(){l=!1}}return 1===t.length?this.$watch(t[0],function(t,n,r){o[0]=t,i[0]=n,e(o,t===n?o:i,r)}):(r(t,function(t,e){var r=u.$watch(t,function(t,r){o[e]=t,i[e]=r,s||(s=!0,u.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function r(t){o=t;var e,r,i,u,s;if(!$(o)){if(y(o))if(n(o)){a!==h&&(a=h,g=a.length=0,f++),e=o.length,g!==e&&(f++,a.length=g=e);for(var c=0;c<e;c++)s=a[c],u=o[c],i=s!==s&&u!==u,i||s===u||(f++,a[c]=u)}else{a!==d&&(a=d={},g=0,f++),e=0;for(r in o)Nr.call(o,r)&&(e++,u=o[r],s=a[r],r in a?(i=s!==s&&u!==u,i||s===u||(f++,a[r]=u)):(g++,a[r]=u,f++));if(g>e){f++;for(r in a)Nr.call(o,r)||(g--,delete a[r])}}else a!==o&&(a=o,f++);return f}}function i(){if(v?(v=!1,e(o,o,s)):e(o,u,s),l)if(y(o))if(n(o)){u=new Array(o.length);for(var t=0;t<o.length;t++)u[t]=o[t]}else{u={};for(var r in o)Nr.call(o,r)&&(u[r]=o[r])}else u=o}r.$stateful=!0;var o,a,u,s=this,l=e.length>1,f=0,p=c(t,r),h=[],d={},v=!0,g=0;return this.$watch(p,i)},$digest:function(){var t,n,r,a,c,f,p,h,d,$,m,y,b=i,_=this,k=[];v("$digest"),l.$$checkUrlChange(),this===C&&null!==s&&(l.defer.cancel(s),x()),u=null;do{h=!1,$=_;for(var j=0;j<E.length;j++){try{y=E[j],y.scope.$eval(y.expression,y.locals)}catch(T){e(T)}u=null}E.length=0;t:do{if(f=$.$$watchers)for(p=f.length;p--;)try{if(t=f[p])if(c=t.get,(n=c($))===(r=t.last)||(t.eq?U(n,r):"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))){if(t===u){h=!1;break t}}else h=!0,u=t,t.last=t.eq?D(n,null):n,a=t.fn,a(n,r===w?n:r,$),b<5&&(m=4-b,k[m]||(k[m]=[]),k[m].push({msg:S(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:n,oldVal:r}))}catch(T){e(T)}if(!(d=$.$$watchersCount&&$.$$childHead||$!==_&&$.$$nextSibling))for(;$!==_&&!(d=$.$$nextSibling);)$=$.$parent}while($=d);if((h||E.length)&&!b--)throw g(),o("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",i,k)}while(h||E.length);for(g();O<A.length;)try{A[O++]()}catch(T){e(T)}A.length=O=0},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===C&&l.$$applicationDestroyed(),m(this,-this.$$watchersCount);for(var e in this.$$listenerCount)b(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$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=h,this.$on=this.$watch=this.$watchGroup=function(){return h},this.$$listeners={},this.$$nextSibling=null,p(this)}},$eval:function(t,e){return c(t)(this,e)},$evalAsync:function(t,e){C.$$phase||E.length||l.defer(function(){E.length&&C.$digest()}),E.push({scope:this,expression:c(t),locals:e})},$$postDigest:function(t){A.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{g()}}catch(n){e(n)}finally{try{C.$digest()}catch(n){throw e(n),n}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&k.push(e),t=c(t),_()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);r!==-1&&(n[r]=null,b(i,1,t))}},$emit:function(t,n){var r,i,o,a=[],u=this,s=!1,c={name:t,targetScope:u,stopPropagation:function(){s=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=F([c],arguments,1);do{for(r=u.$$listeners[t]||a,c.currentScope=u,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,l)}catch(f){e(f)}else r.splice(i,1),i--,o--;if(s)return c.currentScope=null,c;u=u.$parent}while(u);return c.currentScope=null,c},$broadcast:function(t,n){var r=this,i=r,o=r,a={name:t,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[t])return a;for(var u,s,c,l=F([a],arguments,1);i=o;){for(a.currentScope=i,u=i.$$listeners[t]||[],s=0,c=u.length;s<c;s++)if(u[s])try{u[s].apply(null,l)}catch(f){e(f)}else u.splice(s,1),s--,c--;if(!(o=i.$$listenerCount[t]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var C=new d,E=C.$$asyncQueue=[],A=C.$$postDigestQueue=[],k=C.$$applyAsyncQueue=[],O=0;return C}]}function Cn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return m(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return m(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return i=In(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function En(t){if("self"===t)return t;if(w(t)){if(t.indexOf("***")>-1)throw xo("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=Xr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(C(t))return new RegExp("^"+t.source+"$");throw xo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function An(t){var e=[];return m(t)&&r(t,function(t){e.push(En(t))}),e}function kn(){this.SCE_CONTEXTS=_o;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=An(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=An(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Rn(e):!!t.exec(e.href)}function i(n){var i,o,a=In(n.toString()),u=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){u=!0;break}if(u)for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){u=!1;break}return u}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function a(t,e){var n=f.hasOwnProperty(t)?f[t]:null;if(!n)throw xo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||$(e)||""===e)return e;if("string"!=typeof e)throw xo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)}function u(t){return t instanceof l?t.$$unwrapTrustedValue():t}function s(t,e){if(null===e||$(e)||""===e)return e;var n=f.hasOwnProperty(t)?f[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===_o.RESOURCE_URL){if(i(e))return e;throw xo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",e.toString())}if(t===_o.HTML)return c(e);throw xo("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(t){throw xo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(c=n.get("$sanitize"));var l=o(),f={};return f[_o.HTML]=o(l),f[_o.CSS]=o(l),f[_o.URL]=o(l),f[_o.JS]=o(l),f[_o.RESOURCE_URL]=o(f[_o.URL]),{trustAs:a,getTrusted:s,valueOf:u}}]}function On(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&Lr<8)throw xo("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 i=gt(_o);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=d),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,function(e){return i.getTrusted(t,e)})};var o=i.parseAs,a=i.getTrusted,u=i.trustAs;return r(_o,function(t,e){var n=Mr(e);i[wt("parse_as_"+n)]=function(e){return o(t,e)},i[wt("get_trusted_"+n)]=function(e){return a(t,e)},i[wt("trust_as_"+n)]=function(e){return u(t,e)}}),i}]}function jn(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=t.chrome&&t.chrome.app&&t.chrome.app.runtime,a=!o&&t.history&&t.history.pushState,u=f((/android (\d+)/.exec(Mr((t.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((t.navigator||{}).userAgent),c=e[0]||{},l=/^(Moz|webkit|ms)(?=[A-Z])/,p=c.body&&c.body.style,h=!1,d=!1;if(p){for(var v in p)if(r=l.exec(v)){n=r[0],n=n[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in p&&"webkit"),h=!!("transition"in p||n+"Transition"in p),d=!!("animation"in p||n+"Animation"in p),!u||h&&d||(h=w(p.webkitTransition),d=w(p.webkitAnimation))}return{history:!(!a||u<4||s),hasEvent:function(t){if("input"===t&&Lr<=11)return!1;if($(i[t])){var e=c.createElement("div");i[t]="on"+t in e}return i[t]},csp:Qr(),vendorPrefix:n,transitions:h,animations:d,android:u}}]}function Tn(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$templateCache","$http","$q","$sce",function(e,n,r,i){function o(a,u){function s(t){if(!u)throw So("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText);return r.reject(t)}o.totalPendingRequests++,w(a)&&!$(e.get(a))||(a=i.getTrustedResourceUrl(a));var l=n.defaults&&n.defaults.transformResponse;return Zr(l)?l=l.filter(function(t){return t!==Ee}):l===Ee&&(l=null),n.get(a,c({cache:e,transformResponse:l},t))["finally"](function(){o.totalPendingRequests--}).then(function(t){return e.put(a,t.data),t.data},s)}return o.totalPendingRequests=0,o}]}function Nn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var i={};return i.findBindings=function(t,e,n){var i=t.getElementsByClassName("ng-binding"),o=[];return r(i,function(t){var i=Gr.element(t).data("$binding");i&&r(i,function(r){if(n){var i=new RegExp("(^|\\s)"+Xr(e)+"(\\s|\\||$)");i.test(r)&&o.push(t)}else r.indexOf(e)!=-1&&o.push(t)})}),o},i.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+e+'"]',u=t.querySelectorAll(a);if(u.length)return u}},i.getLocation=function(){return n.url()},i.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},i.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},i}]}function Mn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,u,s){S(o)||(s=u,u=o,o=h);var c,l=q(arguments,3),f=m(s)&&!s,p=(f?r:n).defer(),d=p.promise;return c=e.defer(function(){try{p.resolve(o.apply(null,l))}catch(e){p.reject(e),i(e)}finally{delete a[d.$$timeoutId]}f||t.$apply()},u),d.$$timeoutId=c,a[c]=p,d}var a={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in a)&&(a[t.$$timeoutId].reject("canceled"),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function In(t){var e=t;return Lr&&(Co.setAttribute("href",e),e=Co.href),Co.setAttribute("href",e),{href:Co.href,protocol:Co.protocol?Co.protocol.replace(/:$/,""):"",host:Co.host,search:Co.search?Co.search.replace(/^\?/,""):"",hash:Co.hash?Co.hash.replace(/^#/,""):"",hostname:Co.hostname,port:Co.port,pathname:"/"===Co.pathname.charAt(0)?Co.pathname:"/"+Co.pathname}}function Rn(t){var e=w(t)?In(t):t;return e.protocol===Eo.protocol&&e.host===Eo.host}function Pn(){this.$get=v(t)}function Ln(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,o,a,u,s,c=n.cookie||"";if(c!==i)for(i=c,t=i.split("; "),r={},a=0;a<t.length;a++)o=t[a],u=o.indexOf("="),u>0&&(s=e(o.substring(0,u)),$(r[s])&&(r[s]=e(o.substring(u+1))));return r}}function Vn(){this.$get=Ln}function Dn(t){function e(i,o){if(y(i)){var a={};return r(i,function(t,n){a[n]=e(n,t)}),a}return t.factory(i+n,o)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",zn),e("date",or),e("filter",Un),e("json",ar),e("limitTo",ur),e("lowercase",Mo),e("number",Hn),e("orderBy",cr),e("uppercase",Io)}function Un(){return function(t,r,i,o){if(!n(t)){if(null==t)return t;throw e("filter")("notarray","Expected array but received: {0}",t)}o=o||"$";var a,u,s=Bn(r);switch(s){case"function":a=r;break;case"boolean":case"null":case"number":case"string":u=!0;case"object":a=Fn(r,i,o,u);break;default:return t}return Array.prototype.filter.call(t,a)}}function Fn(t,e,n,r){var i,o=y(t)&&n in t;return e===!0?e=U:S(e)||(e=function(t,e){return!$(t)&&(null===t||null===e?t===e:!(y(e)||y(t)&&!g(t))&&(t=Mr(""+t),e=Mr(""+e),t.indexOf(e)!==-1))}),i=function(i){return o&&!y(i)?qn(i,t[n],e,n,!1):qn(i,t,e,n,r)}}function qn(t,e,n,r,i,o){var a=Bn(t),u=Bn(e);if("string"===u&&"!"===e.charAt(0))return!qn(t,e.substring(1),n,r,i);if(Zr(t))return t.some(function(t){return qn(t,e,n,r,i)});switch(a){case"object":var s;if(i){for(s in t)if("$"!==s.charAt(0)&&qn(t[s],e,n,r,!0))return!0;return!o&&qn(t,e,n,r,!1)}if("object"===u){for(s in e){var c=e[s];if(!S(c)&&!$(c)){var l=s===r,f=l?t:t[s];if(!qn(f,c,n,r,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Bn(t){return null===t?"null":typeof t}function zn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return $(n)&&(n=e.CURRENCY_SYM),$(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Kn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Hn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Kn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Wn(t){var e,n,r,i,o,a=0;for((n=t.indexOf(ko))>-1&&(t=t.replace(ko,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)==Oo;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==Oo;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>Ao&&(e=e.splice(0,Ao-1),a=n-1,n=1),{d:e,e:a,i:n}}function Gn(t,e,n,r){var i=t.d,o=i.length-t.i;e=$(e)?Math.min(Math.max(n,o),r):+e;var a=e+t.i,u=i[a];if(a>0){i.splice(Math.max(t.i,a));for(var s=a;s<i.length;s++)i[s]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,a=e+1),i[0]=0;for(var c=1;c<a;c++)i[c]=0}if(u>=5)if(a-1<0){for(var l=0;l>a;l--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[a-1]++;for(;o<Math.max(0,e);o++)i.push(0);var f=i.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0);f&&(i.unshift(f),t.i++)}function Kn(t,e,n,r,i){if(!w(t)&&!x(t)||isNaN(t))return"";var o,a=!isFinite(t),u=!1,s=Math.abs(t)+"",c="";if(a)c="∞";else{o=Wn(s),Gn(o,i,e.minFrac,e.maxFrac);var l=o.d,f=o.i,p=o.e,h=[];for(u=l.reduce(function(t,e){return t&&!e},!0);f<0;)l.unshift(0),f++;f>0?h=l.splice(f,l.length):(h=l,l=[0]);var d=[];for(l.length>=e.lgSize&&d.unshift(l.splice(-e.lgSize,l.length).join(""));l.length>e.gSize;)d.unshift(l.splice(-e.gSize,l.length).join(""));l.length&&d.unshift(l.join("")),c=d.join(n),h.length&&(c+=r+h.join("")),p&&(c+="e+"+p)}return t<0&&!u?e.negPre+c+e.negSuf:e.posPre+c+e.posSuf}function Zn(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,i="-")),t=""+t;t.length<e;)t=Oo+t;return n&&(t=t.substr(t.length-e)),i+t}function Jn(t,e,n,r,i){return n=n||0,function(o){var a=o["get"+t]();return(n>0||a>-n)&&(a+=n),0===a&&n==-12&&(a=12),Zn(a,e,r,i)}}function Yn(t,e,n){return function(r,i){var o=r["get"+t](),a=(n?"STANDALONE":"")+(e?"SHORT":""),u=Ir(a+t);return i[u][o]}}function Xn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Zn(Math[r>0?"floor":"ceil"](r/60),2)+Zn(Math.abs(r%60),2)}function Qn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function tr(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function er(t){return function(e){var n=Qn(e.getFullYear()),r=tr(e),i=+r-+n,o=1+Math.round(i/6048e5);return Zn(o,t)}}function nr(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function rr(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function ir(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function or(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,a=e[8]?r.setUTCFullYear:r.setFullYear,u=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=f(e[9]+e[10]),o=f(e[9]+e[11])),a.call(r,f(e[1]),f(e[2])-1,f(e[3]));var s=f(e[4]||0)-i,c=f(e[5]||0)-o,l=f(e[6]||0),p=Math.round(1e3*parseFloat("0."+(e[7]||0)));return u.call(r,s,c,l,p),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var a,u,s="",c=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,w(n)&&(n=No.test(n)?f(n):e(n)),x(n)&&(n=new Date(n)),!_(n)||!isFinite(n.getTime()))return n;for(;i;)u=To.exec(i),u?(c=F(c,u,1),i=c.pop()):(c.push(i),i=null);var l=n.getTimezoneOffset();return o&&(l=G(o,l),n=Z(n,o,!0)),r(c,function(e){a=jo[e],s+=a?a(n,t.DATETIME_FORMATS,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function ar(){return function(t,e){return $(e)&&(e=2),H(t,e)}}function ur(){return function(t,e,r){return e=Math.abs(Number(e))===1/0?Number(e):f(e),isNaN(e)?t:(x(t)&&(t=t.toString()),n(t)?(r=!r||isNaN(r)?0:f(r),r=r<0?Math.max(0,t.length+r):r,e>=0?sr(t,r,r+e):0===r?sr(t,e,t.length):sr(t,Math.max(0,r+e),r)):t)}}function sr(t,e,n){return w(t)?t.slice(e,n):Fr.call(t,e,n)}function cr(t){function r(e){return e.map(function(e){var n=1,r=d;if(S(e))r=e;else if(w(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(n="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e),r.constant))){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})}function i(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function o(t){return S(t.valueOf)&&(t=t.valueOf(),i(t))?t:g(t)&&(t=t.toString(),i(t))?t:t}function a(t,e){var n=typeof t;return null===t?(n="string",t="null"):"object"===n&&(t=o(t)),{value:t,type:n,index:e}}function u(t,e){var n=0,r=t.type,i=e.type;if(r===i){var o=t.value,a=e.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(y(o)&&(o=t.index),y(a)&&(a=e.index)),o!==a&&(n=o<a?-1:1)}else n=r<i?-1:1;return n}return function(t,i,o,s){function c(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:f.map(function(n){return a(n.get(t),e)})}}function l(t,e){for(var n=0,r=f.length;n<r;n++){var i=h(t.predicateValues[n],e.predicateValues[n]);if(i)return i*f[n].descending*p}return h(t.tieBreaker,e.tieBreaker)*p}if(null==t)return t;if(!n(t))throw e("orderBy")("notarray","Expected array but received: {0}",t);Zr(i)||(i=[i]),0===i.length&&(i=["+"]);var f=r(i),p=o?-1:1,h=S(s)?s:u,d=Array.prototype.map.call(t,c);return d.sort(l),t=d.map(function(t){return t.value})}}function lr(t){return S(t)&&(t={link:t}),t.restrict=t.restrict||"AC",v(t)}function fr(t,e){t.$name=e}function pr(t,e,n,i,o){var a=this,u=[];a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(e.name||e.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=Lo,a.$rollbackViewValue=function(){r(u,function(t){t.$rollbackViewValue()})},a.$commitViewValue=function(){r(u,function(t){t.$commitViewValue()})},a.$addControl=function(t){ft(t.$name,"input"),u.push(t),t.$name&&(a[t.$name]=t),t.$$parentForm=a},a.$$renameControl=function(t,e){var n=t.$name;a[n]===t&&delete a[n],a[e]=t,t.$name=e},a.$removeControl=function(t){t.$name&&a[t.$name]===t&&delete a[t.$name],r(a.$pending,function(e,n){a.$setValidity(n,null,t)}),r(a.$error,function(e,n){a.$setValidity(n,null,t)}),r(a.$$success,function(e,n){a.$setValidity(n,null,t)}),V(u,t),t.$$parentForm=Lo},Ar({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];if(r){var i=r.indexOf(n);i===-1&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(V(r,n),0===r.length&&delete t[e])},$animate:i}),a.$setDirty=function(){i.removeClass(t,wa),i.addClass(t,xa),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(t,wa,xa+" "+Vo),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(u,function(t){t.$setPristine()})},a.$setUntouched=function(){r(u,function(t){t.$setUntouched()})},a.$setSubmitted=function(){i.addClass(t,Vo),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function hr(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function dr(t,e,n,r,i,o){vr(t,e,n,r,i,o),hr(r)}function vr(t,e,n,r,i,o){var a=Mr(e[0].type);if(!i.android){var u=!1;e.on("compositionstart",function(){u=!0}),e.on("compositionend",function(){u=!1,c()})}var s,c=function(t){if(s&&(o.defer.cancel(s),s=null),!u){var i=e.val(),c=t&&t.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Yr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))e.on("input",c);else{var l=function(t,e,n){s||(s=o.defer(function(){s=null,e&&e.value===n||c(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",l)}e.on("change",c),Xo[a]&&r.$$hasNativeValidators&&a===n.type&&e.on(Yo,function(t){if(!s){var e=this[Tr],n=e.badInput,r=e.typeMismatch;s=o.defer(function(){s=null,e.badInput===n&&e.typeMismatch===r||c(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function gr(t,e){if(_(t))return t;if(w(t)){Ko.lastIndex=0;var n=Ko.exec(t);if(n){var r=+n[1],i=+n[2],o=0,a=0,u=0,s=0,c=Qn(r),l=7*(i-1);return e&&(o=e.getHours(),a=e.getMinutes(),u=e.getSeconds(),s=e.getMilliseconds()),new Date(r,0,c.getDate()+l,o,a,u,s)}}return NaN}function $r(t,e){return function(n,i){var o,a;if(_(n))return n;if(w(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),qo.test(n))return new Date(n);if(t.lastIndex=0,o=t.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(t,n){n<e.length&&(a[e[n]]=+t)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function mr(t,e,n,r){return function(i,o,a,u,s,c,l){function f(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function p(t){return m(t)&&!_(t)?n(t)||void 0:t}yr(i,o,a,u),vr(i,o,a,u,s,c);var h,d=u&&u.$options&&u.$options.timezone;if(u.$$parserName=t,u.$parsers.push(function(t){if(u.$isEmpty(t))return null;if(e.test(t)){var r=n(t,h);return d&&(r=Z(r,d)),r}}),u.$formatters.push(function(t){if(t&&!_(t))throw ka("datefmt","Expected `{0}` to be a date",t);return f(t)?(h=t,h&&d&&(h=Z(h,d,!0)),l("date")(t,r,d)):(h=null,"")}),m(a.min)||a.ngMin){var v;u.$validators.min=function(t){return!f(t)||$(v)||n(t)>=v},a.$observe("min",function(t){
v=p(t),u.$validate()})}if(m(a.max)||a.ngMax){var g;u.$validators.max=function(t){return!f(t)||$(g)||n(t)<=g},a.$observe("max",function(t){g=p(t),u.$validate()})}}}function yr(t,e,n,r){var i=e[0],o=r.$$hasNativeValidators=y(i.validity);o&&r.$parsers.push(function(t){var n=e.prop(Tr)||{};return n.badInput||n.typeMismatch?void 0:t})}function br(t,e,n,r,i,o){if(yr(t,e,n,r),vr(t,e,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:Ho.test(t)?parseFloat(t):void 0}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!x(t))throw ka("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),m(n.min)||n.ngMin){var a;r.$validators.min=function(t){return r.$isEmpty(t)||$(a)||t>=a},n.$observe("min",function(t){m(t)&&!x(t)&&(t=parseFloat(t)),a=x(t)&&!isNaN(t)?t:void 0,r.$validate()})}if(m(n.max)||n.ngMax){var u;r.$validators.max=function(t){return r.$isEmpty(t)||$(u)||t<=u},n.$observe("max",function(t){m(t)&&!x(t)&&(t=parseFloat(t)),u=x(t)&&!isNaN(t)?t:void 0,r.$validate()})}}function wr(t,e,n,r,i,o){vr(t,e,n,r,i,o),hr(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Bo.test(n)}}function xr(t,e,n,r,i,o){vr(t,e,n,r,i,o),hr(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||zo.test(n)}}function _r(t,e,n,r){$(n.name)&&e.attr("name",a());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function Sr(t,e,n,r,i){var o;if(m(r)){if(o=t(r),!o.constant)throw ka("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function Cr(t,e,n,r,i,o,a,u){var s=Sr(u,t,"ngTrueValue",n.ngTrueValue,!0),c=Sr(u,t,"ngFalseValue",n.ngFalseValue,!1),l=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",l),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t===!1},r.$formatters.push(function(t){return U(t,s)}),r.$parsers.push(function(t){return t?s:c})}function Er(t,e){return t="ngClass"+t,["$animate",function(n){function i(t,e){var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function o(t){var e=[];return Zr(t)?(r(t,function(t){e=e.concat(o(t))}),e):w(t)?t.split(" "):y(t)?(r(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(a,u,s){function c(t){var e=f(t,1);s.$addClass(e)}function l(t){var e=f(t,-1);s.$removeClass(e)}function f(t,e){var n=u.data("$classCounts")||dt(),i=[];return r(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&i.push(t))}),u.data("$classCounts",n),i.join(" ")}function p(t,e){var r=i(e,t),o=i(t,e);r=f(r,1),o=f(o,-1),r&&r.length&&n.addClass(u,r),o&&o.length&&n.removeClass(u,o)}function h(t){if(e===!0||(1&a.$index)===e){var n=o(t||[]);if(d){if(!U(t,d)){var r=o(d);p(r,n)}}else c(n)}d=Zr(t)?t.map(function(t){return gt(t)}):gt(t)}var d;a.$watch(s[t],h,!0),s.$observe("class",function(e){h(a.$eval(s[t]))}),"ngClass"!==t&&a.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var u=o(a.$eval(s[t]));i===e?c(u):l(u)}})}}}]}function Ar(t){function e(t,e,u){$(e)?n("$pending",t,u):r("$pending",t,u),T(e)?e?(l(a.$error,t,u),c(a.$$success,t,u)):(c(a.$error,t,u),l(a.$$success,t,u)):(l(a.$error,t,u),l(a.$$success,t,u)),a.$pending?(i(Ca,!0),a.$valid=a.$invalid=void 0,o("",null)):(i(Ca,!1),a.$valid=kr(a.$error),a.$invalid=!a.$valid,o("",a.$valid));var s;s=a.$pending&&a.$pending[t]?void 0:!a.$error[t]&&(!!a.$$success[t]||null),o(t,s),a.$$parentForm.$setValidity(t,s,a)}function n(t,e,n){a[t]||(a[t]={}),c(a[t],e,n)}function r(t,e,n){a[t]&&l(a[t],e,n),kr(a[t])&&(a[t]=void 0)}function i(t,e){e&&!s[t]?(f.addClass(u,t),s[t]=!0):!e&&s[t]&&(f.removeClass(u,t),s[t]=!1)}function o(t,e){t=t?"-"+ut(t,"-"):"",i(ya+t,e===!0),i(ba+t,e===!1)}var a=t.ctrl,u=t.$element,s={},c=t.set,l=t.unset,f=t.$animate;s[ba]=!(s[ya]=u.hasClass(ya)),a.$setValidity=e}function kr(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function Or(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var jr=/^\/(.+)\/([a-z]*)$/,Tr="validity",Nr=Object.prototype.hasOwnProperty,Mr=function(t){return w(t)?t.toLowerCase():t},Ir=function(t){return w(t)?t.toUpperCase():t},Rr=function(t){return w(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Pr=function(t){return w(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)&-33)}):t};"i"!=="I".toLowerCase()&&(Mr=Rr,Ir=Pr);var Lr,Vr,Dr,Ur,Fr=[].slice,qr=[].splice,Br=[].push,zr=Object.prototype.toString,Hr=Object.getPrototypeOf,Wr=e("ng"),Gr=t.angular||(t.angular={}),Kr=0;Lr=t.document.documentMode,h.$inject=[],d.$inject=[];var Zr=Array.isArray,Jr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Yr=function(t){return w(t)?t.trim():t},Xr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Qr=function(){function e(){try{return new Function(""),!1}catch(t){return!0}}if(!m(Qr.rules)){var n=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Qr.rules={noUnsafeEval:!r||r.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!r||r.indexOf("no-inline-style")!==-1}}else Qr.rules={noUnsafeEval:e(),noInlineStyle:!1}}return Qr.rules},ti=function(){if(m(ti.name_))return ti.name_;var e,n,r,i,o=ni.length;for(n=0;n<o;++n)if(r=ni[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return ti.name_=i},ei=/:/g,ni=["ng-","data-ng-","ng:","x-ng-"],ri=/[A-Z]/g,ii=!1,oi=1,ai=2,ui=3,si=8,ci=9,li=11,fi={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"};Ot.expando="ng339";var pi=Ot.cache={},hi=1,di=function(t,e,n){t.addEventListener(e,n,!1)},vi=function(t,e,n){t.removeEventListener(e,n,!1)};Ot._data=function(t){return this.cache[t[this.expando]]||{}};var gi=/([\:\-\_]+(.))/g,$i=/^moz([A-Z])/,mi={mouseleave:"mouseout",mouseenter:"mouseover"},yi=e("jqLite"),bi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,wi=/<|&#?\w+;/,xi=/<([\w:-]+)/,_i=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Si={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,"",""]};Si.optgroup=Si.option,Si.tbody=Si.tfoot=Si.colgroup=Si.caption=Si.thead,Si.th=Si.td;var Ci=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},Ei=Ot.prototype={ready:function(e){function n(){r||(r=!0,e())}var r=!1;"complete"===t.document.readyState?t.setTimeout(n):(this.on("DOMContentLoaded",n),Ot(t).on("load",n))},toString:function(){var t=[];return r(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Vr(t>=0?this[t]:this[this.length+t])},length:0,push:Br,sort:[].sort,splice:[].splice},Ai={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){Ai[Mr(t)]=t});var ki={};r("input,select,option,textarea,button,form,details".split(","),function(t){ki[t]=!0});var Oi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:Rt,removeData:Mt,hasData:St,cleanData:Ct},function(t,e){Ot[e]=t}),r({data:Rt,inheritedData:Ft,scope:function(t){return Vr.data(t,"$scope")||Ft(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Vr.data(t,"$isolateScope")||Vr.data(t,"$isolateScopeNoTemplate")},controller:Ut,injector:function(t){return Ft(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Pt,css:function(t,e,n){return e=wt(e),m(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,n){var r=t.nodeType;if(r!==ui&&r!==ai&&r!==si){var i=Mr(e);if(Ai[i]){if(!m(n))return t[e]||(t.attributes.getNamedItem(e)||h).specified?i:void 0;n?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if(m(n))t.setAttribute(e,n);else if(t.getAttribute){var o=t.getAttribute(e,2);return null===o?void 0:o}}},prop:function(t,e,n){return m(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if($(e)){var n=t.nodeType;return n===oi||n===ui?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if($(e)){if(t.multiple&&"select"===L(t)){var n=[];return r(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return $(e)?t.innerHTML:(Tt(t,!0),void(t.innerHTML=e))},empty:qt},function(t,e){Ot.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==qt&&$(2==t.length&&t!==Pt&&t!==Ut?e:n)){if(y(e)){for(r=0;r<o;r++)if(t===Rt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var a=t.$dv,u=$(a)?Math.min(o,1):o,s=0;s<u;s++){var c=t(this[s],e,n);a=a?a+c:c}return a}for(r=0;r<o;r++)t(this[r],e,n);return this}}),r({removeData:Mt,on:function(t,e,n,r){if(m(r))throw yi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(_t(t)){var i=It(t,!0),o=i.events,a=i.handle;a||(a=i.handle=Gt(t,o));for(var u=e.indexOf(" ")>=0?e.split(" "):[e],s=u.length,c=function(e,r,i){var u=o[e];u||(u=o[e]=[],u.specialHandlerWrapper=r,"$destroy"===e||i||di(t,e,a)),u.push(n)};s--;)e=u[s],mi[e]?(c(mi[e],Zt),c(e,void 0,!0)):c(e)}},off:Nt,one:function(t,e,n){t=Vr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;Tt(t),r(new Ot(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return r(t.childNodes,function(t){t.nodeType===oi&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===oi||n===li){e=new Ot(e);for(var r=0,i=e.length;r<i;r++){var o=e[r];t.appendChild(o)}}},prepend:function(t,e){if(t.nodeType===oi){var n=t.firstChild;r(new Ot(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){kt(t,Vr(e).eq(0).clone()[0])},remove:Bt,detach:function(t){Bt(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new Ot(e);for(var i=0,o=e.length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Vt,removeClass:Lt,toggleClass:function(t,e,n){e&&r(e.split(" "),function(e){var r=n;$(r)&&(r=!Pt(t,e)),(r?Vt:Lt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==li?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:jt,triggerHandler:function(t,e,n){var i,o,a,u=e.type||e,s=It(t),l=s&&s.events,f=l&&l[u];f&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:h,type:u,target:t},e.type&&(i=c(i,e)),o=gt(f),a=n?[i].concat(n):[i],r(o,function(e){i.isImmediatePropagationStopped()||e.apply(t,a)}))}},function(t,e){Ot.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o<a;o++)$(i)?(i=t(this[o],e,n,r),m(i)&&(i=Vr(i))):Dt(i,t(this[o],e,n,r));return m(i)?i:this},Ot.prototype.bind=Ot.prototype.on,Ot.prototype.unbind=Ot.prototype.off}),Xt.prototype={put:function(t,e){this[Yt(t,this.nextUid)]=e},get:function(t){return this[Yt(t,this.nextUid)]},remove:function(t){var e=this[t=Yt(t,this.nextUid)];return delete this[t],e}};var ji=[function(){this.$get=[function(){return Xt}]}],Ti=/^([^\(]+?)=>/,Ni=/^[^\(]*\(\s*([^\)]*)\)/m,Mi=/,/,Ii=/^\s*(_?)(\S+?)\1\s*$/,Ri=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Pi=e("$injector");re.$$annotate=ne;var Li=e("$animate"),Vi=1,Di="ng-animate",Ui=function(){this.$get=h},Fi=function(){var t=new Xt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(t,e,n){var i=!1;return e&&(e=w(e)?e.split(" "):Zr(e)?e:[],r(e,function(e){e&&(i=!0,t[e]=n)})),i}function a(){r(e,function(e){var n=t.get(e);if(n){var i=ue(e.attr("class")),o="",a="";r(n,function(t,e){var n=!!i[e];t!==n&&(t?o+=(o.length?" ":"")+e:a+=(a.length?" ":"")+e)}),r(e,function(t){o&&Vt(t,o),a&&Lt(t,a)}),t.remove(e)}}),e.length=0}function u(n,r,u){var s=t.get(n)||{},c=o(s,r,!0),l=o(s,u,!1);(c||l)&&(t.put(n,s),e.push(n),1===e.length&&i.$$postDigest(a))}return{enabled:h,on:h,off:h,pin:h,push:function(t,e,r,i){i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&u(t,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},qi=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Li("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){var e=new RegExp("(\\s+|\\/)"+Di+"(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw Li("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Di)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=ae(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,o){return r=r&&Vr(r),i=i&&Vr(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",se(o))},move:function(n,r,i,o){return r=r&&Vr(r),i=i&&Vr(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",se(o))},leave:function(e,n){return t.push(e,"leave",se(n),function(){e.remove()})},addClass:function(e,n,r){return r=se(r),r.addClass=oe(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=se(r),r.removeClass=oe(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=se(i),i.addClass=oe(i.addClass,n),i.removeClass=oe(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return o=se(o),o.from=o.from?c(o.from,n):n,o.to=o.to?c(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=oe(o.tempClasses,i),t.push(e,"animate",o)}}}]}],Bi=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]},zi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(t,e,n,i,o){function a(t){this.setHost(t);var e=n(),r=function(t){o(t,0,!1)};this._doneCallbacks=[],this._tick=function(t){var n=i[0];n&&n.hidden?r(t):e(t)},this._state=0}var u=0,s=1,c=2;return a.chain=function(t,e){function n(){return r===t.length?void e(!0):void t[r](function(t){return t===!1?void e(!1):(r++,void n())})}var r=0;n()},a.all=function(t,e){function n(n){o=o&&n,++i===t.length&&e(o)}var i=0,o=!0;r(t,function(t){t.done(n)})},a.prototype={setHost:function(t){this.host=t||{}},done:function(t){this._state===c?t():this._doneCallbacks.push(t)},progress:h,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){e===!1?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},"catch":function(t){return this.getPromise()["catch"](t)},"finally":function(t){return this.getPromise()["finally"](t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;e._state===u&&(e._state=s,e._tick(function(){e._resolve(t)}))},_resolve:function(t){this._state!==c&&(r(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=c)}},a}]},Hi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){function i(){return t(function(){o(),u||s.complete(),u=!0}),s}function o(){a.addClass&&(e.addClass(a.addClass),a.addClass=null),a.removeClass&&(e.removeClass(a.removeClass),a.removeClass=null),a.to&&(e.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=D(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(e.css(a.from),a.from=null);var u,s=new n;return{start:i,end:i}}}]},Wi=e("$compile"),Gi=new he;de.$inject=["$provide","$$sanitizeUriProvider"],ve.prototype.isFirstChange=function(){return this.previousValue===Gi};var Ki=/^((?:x|data)[\:\-_])/i,Zi=e("$controller"),Ji=/^(\S+)(\s+as\s+([\w$]+))?$/,Yi=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Vr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Xi="application/json",Qi={"Content-Type":Xi+";charset=utf-8"},to=/^\[|^\{(?!\{)/,eo={"[":/]$/,"{":/}$/},no=/^\)\]\}',?\n/,ro=e("$http"),io=function(t){return function(){throw ro("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}},oo=Gr.$interpolateMinErr=e("$interpolate");oo.throwNoconcat=function(t){throw oo("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",t)},oo.interr=function(t,e){return oo("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var ao=function(){this.$get=["$window",function(t){function e(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}var n=t.angular.callbacks,r={};return{createCallback:function(t){var i="_"+(n.$$counter++).toString(36),o="angular.callbacks."+i,a=e(i);return r[o]=n[i]=a,o},wasCalled:function(t){return r[t].called},getResponse:function(t){return r[t].data},removeCallback:function(t){var e=r[t];delete n[e.id],delete r[t]}}}]},uo=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,so={http:80,https:443,ftp:21},co=e("$location"),lo={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Je("$$absUrl"),url:function(t){if($(t))return this.$$url;var e=uo.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Je("$$protocol"),host:Je("$$host"),port:Je("$$port"),path:Ye("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(w(t)||x(t))t=t.toString(),this.$$search=X(t);else{if(!y(t))throw co("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=D(t,{}),r(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:$(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Ye("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};r([Ze,Ke,Ge],function(t){t.prototype=Object.create(lo),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Ge||!this.$$html5)throw co("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=$(e)?null:e,this}});var fo=e("$parse"),po=Function.prototype.call,ho=Function.prototype.apply,vo=Function.prototype.bind,go=dt();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){go[t]=!0});var $o={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},mo=function(t){this.options=t};mo.prototype={constructor:mo,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=go[e],o=go[n],a=go[r];if(i||o||a){var u=a?r:o?n:e;this.tokens.push({index:this.index,text:u,operator:!0}),this.index+=u.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return e.indexOf(t)!==-1},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\x0B"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=m(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw fo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Mr(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<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 u=$o[o];n+=u||o}i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var yo=function(t,e){this.lexer=t,this.options=e};yo.Program="Program",yo.ExpressionStatement="ExpressionStatement",yo.AssignmentExpression="AssignmentExpression",yo.ConditionalExpression="ConditionalExpression",yo.LogicalExpression="LogicalExpression",yo.BinaryExpression="BinaryExpression",yo.UnaryExpression="UnaryExpression",yo.CallExpression="CallExpression",yo.MemberExpression="MemberExpression",yo.Identifier="Identifier",yo.Literal="Literal",yo.ArrayExpression="ArrayExpression",yo.Property="Property",yo.ObjectExpression="ObjectExpression",yo.ThisExpression="ThisExpression",yo.LocalsExpression="LocalsExpression",yo.NGValueParameter="NGValueParameter",yo.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:yo.Program,body:t}},expressionStatement:function(){return{type:yo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t,e=this.expression();t=this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:yo.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:yo.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:yo.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:yo.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:yo.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=D(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:yo.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:yo.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:yo.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:yo.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:yo.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.filterChain());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:yo.Identifier,name:t.text}},constant:function(){return{type:yo.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:yo.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:yo.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:yo.ObjectExpression,properties:e}},throwError:function(t,e){throw fo("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw fo("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw fo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],a=o.text;if(a===e||a===n||a===r||a===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{"this":{type:yo.ThisExpression},$locals:{type:yo.LocalsExpression}}},vn.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},cn(i,n.$filter);var o,a="";if(this.stage="assign",o=pn(i)){this.state.computing="assign";var u=this.nextId();this.recurse(o,u),this.return_(u),a="fn.assign="+this.generateFunction("assign","s,v,l")}var s=ln(i.body);n.stage="inputs",r(s,function(t,e){var r="fn"+e;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(t,i),n.return_(i),n.state.inputs.push(r),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",l=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,tn,nn,rn,en,on,an,un,t);return this.state=this.stage=void 0,l.literal=hn(i),l.constant=dn(i),l},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return r(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return r(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,i,o,a){var u,s,c,l,f,p=this;if(i=i||h,!a&&m(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,i,o,!0));switch(t.type){case yo.Program:r(t.body,function(e,n){p.recurse(e.expression,void 0,void 0,function(t){s=t}),n!==t.body.length-1?p.current().body.push(s,";"):p.return_(s)});break;case yo.Literal:l=this.escape(t.value),this.assign(e,l),i(l);break;case yo.UnaryExpression:this.recurse(t.argument,void 0,void 0,function(t){s=t}),l=t.operator+"("+this.ifDefined(s,0)+")",this.assign(e,l),i(l);break;case yo.BinaryExpression:this.recurse(t.left,void 0,void 0,function(t){u=t}),this.recurse(t.right,void 0,void 0,function(t){s=t}),l="+"===t.operator?this.plus(u,s):"-"===t.operator?this.ifDefined(u,0)+t.operator+this.ifDefined(s,0):"("+u+")"+t.operator+"("+s+")",this.assign(e,l),i(l);break;case yo.LogicalExpression:e=e||this.nextId(),p.recurse(t.left,e),p.if_("&&"===t.operator?e:p.not(e),p.lazyRecurse(t.right,e)),i(e);break;case yo.ConditionalExpression:e=e||this.nextId(),p.recurse(t.test,e),p.if_(e,p.lazyRecurse(t.alternate,e),p.lazyRecurse(t.consequent,e)),i(e);break;case yo.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===p.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),tn(t.name),p.if_("inputs"===p.stage||p.not(p.getHasOwnProperty("l",t.name)),function(){
p.if_("inputs"===p.stage||"s",function(){o&&1!==o&&p.if_(p.not(p.nonComputedMember("s",t.name)),p.lazyAssign(p.nonComputedMember("s",t.name),"{}")),p.assign(e,p.nonComputedMember("s",t.name))})},e&&p.lazyAssign(e,p.nonComputedMember("l",t.name))),(p.state.expensiveChecks||$n(t.name))&&p.addEnsureSafeObject(e),i(e);break;case yo.MemberExpression:u=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),p.recurse(t.object,u,void 0,function(){p.if_(p.notNull(u),function(){o&&1!==o&&p.addEnsureSafeAssignContext(u),t.computed?(s=p.nextId(),p.recurse(t.property,s),p.getStringValue(s),p.addEnsureSafeMemberName(s),o&&1!==o&&p.if_(p.not(p.computedMember(u,s)),p.lazyAssign(p.computedMember(u,s),"{}")),l=p.ensureSafeObject(p.computedMember(u,s)),p.assign(e,l),n&&(n.computed=!0,n.name=s)):(tn(t.property.name),o&&1!==o&&p.if_(p.not(p.nonComputedMember(u,t.property.name)),p.lazyAssign(p.nonComputedMember(u,t.property.name),"{}")),l=p.nonComputedMember(u,t.property.name),(p.state.expensiveChecks||$n(t.property.name))&&(l=p.ensureSafeObject(l)),p.assign(e,l),n&&(n.computed=!1,n.name=t.property.name))},function(){p.assign(e,"undefined")}),i(e)},!!o);break;case yo.CallExpression:e=e||this.nextId(),t.filter?(s=p.filter(t.callee.name),c=[],r(t.arguments,function(t){var e=p.nextId();p.recurse(t,e),c.push(e)}),l=s+"("+c.join(",")+")",p.assign(e,l),i(e)):(s=p.nextId(),u={},c=[],p.recurse(t.callee,s,u,function(){p.if_(p.notNull(s),function(){p.addEnsureSafeFunction(s),r(t.arguments,function(t){p.recurse(t,p.nextId(),void 0,function(t){c.push(p.ensureSafeObject(t))})}),u.name?(p.state.expensiveChecks||p.addEnsureSafeObject(u.context),l=p.member(u.context,u.name,u.computed)+"("+c.join(",")+")"):l=s+"("+c.join(",")+")",l=p.ensureSafeObject(l),p.assign(e,l)},function(){p.assign(e,"undefined")}),i(e)}));break;case yo.AssignmentExpression:if(s=this.nextId(),u={},!fn(t.left))throw fo("lval","Trying to assign a value to a non l-value");this.recurse(t.left,void 0,u,function(){p.if_(p.notNull(u.context),function(){p.recurse(t.right,s),p.addEnsureSafeObject(p.member(u.context,u.name,u.computed)),p.addEnsureSafeAssignContext(u.context),l=p.member(u.context,u.name,u.computed)+t.operator+s,p.assign(e,l),i(e||l)})},1);break;case yo.ArrayExpression:c=[],r(t.elements,function(t){p.recurse(t,p.nextId(),void 0,function(t){c.push(t)})}),l="["+c.join(",")+"]",this.assign(e,l),i(l);break;case yo.ObjectExpression:c=[],f=!1,r(t.properties,function(t){t.computed&&(f=!0)}),f?(e=e||this.nextId(),this.assign(e,"{}"),r(t.properties,function(t){t.computed?(u=p.nextId(),p.recurse(t.key,u)):u=t.key.type===yo.Identifier?t.key.name:""+t.key.value,s=p.nextId(),p.recurse(t.value,s),p.assign(p.member(e,u,t.computed),s)})):(r(t.properties,function(e){p.recurse(e.value,t.constant?void 0:p.nextId(),void 0,function(t){c.push(p.escape(e.key.type===yo.Identifier?e.key.name:""+e.key.value)+":"+t)})}),l="{"+c.join(",")+"}",this.assign(e,l)),i(e||l);break;case yo.ThisExpression:this.assign(e,"s"),i("s");break;case yo.LocalsExpression:this.assign(e,"l"),i("l");break;case yo.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(t===!0)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){var n=/[$_a-zA-Z][$_a-zA-Z0-9]*/,r=/[^$_a-zA-Z0-9]/g;return n.test(e)?t+"."+e:t+'["'+e.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(w(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(t))return t.toString();if(t===!0)return"true";if(t===!1)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw fo("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},gn.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,cn(i,n.$filter);var o,a;(o=pn(i))&&(a=this.recurse(o));var u,s=ln(i.body);s&&(u=[],r(s,function(t,e){var r=n.recurse(t);t.input=r,u.push(r),t.watchId=e}));var c=[];r(i.body,function(t){c.push(n.recurse(t.expression))});var l=0===i.body.length?h:1===i.body.length?c[0]:function(t,e){var n;return r(c,function(r){n=r(t,e)}),n};return a&&(l.assign=function(t,e,n){return a(t,n,e)}),u&&(l.inputs=u),l.literal=hn(i),l.constant=dn(i),l},recurse:function(t,e,n){var i,o,a,u=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case yo.Literal:return this.value(t.value,e);case yo.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case yo.BinaryExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case yo.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case yo.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case yo.Identifier:return tn(t.name,u.expression),u.identifier(t.name,u.expensiveChecks||$n(t.name),e,n,u.expression);case yo.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(tn(t.property.name,u.expression),o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,n,u.expression):this.nonComputedMember(i,o,u.expensiveChecks,e,n,u.expression);case yo.CallExpression:return a=[],r(t.arguments,function(t){a.push(u.recurse(t))}),t.filter&&(o=this.$filter(t.callee.name)),t.filter||(o=this.recurse(t.callee,!0)),t.filter?function(t,n,r,i){for(var u=[],s=0;s<a.length;++s)u.push(a[s](t,n,r,i));var c=o.apply(void 0,u,i);return e?{context:void 0,name:void 0,value:c}:c}:function(t,n,r,i){var s,c=o(t,n,r,i);if(null!=c.value){nn(c.context,u.expression),rn(c.value,u.expression);for(var l=[],f=0;f<a.length;++f)l.push(nn(a[f](t,n,r,i),u.expression));s=nn(c.value.apply(c.context,l),u.expression)}return e?{value:s}:s};case yo.AssignmentExpression:return i=this.recurse(t.left,!0,1),o=this.recurse(t.right),function(t,n,r,a){var s=i(t,n,r,a),c=o(t,n,r,a);return nn(s.value,u.expression),on(s.context),s.context[s.name]=c,e?{value:c}:c};case yo.ArrayExpression:return a=[],r(t.elements,function(t){a.push(u.recurse(t))}),function(t,n,r,i){for(var o=[],u=0;u<a.length;++u)o.push(a[u](t,n,r,i));return e?{value:o}:o};case yo.ObjectExpression:return a=[],r(t.properties,function(t){t.computed?a.push({key:u.recurse(t.key),computed:!0,value:u.recurse(t.value)}):a.push({key:t.key.type===yo.Identifier?t.key.name:""+t.key.value,computed:!1,value:u.recurse(t.value)})}),function(t,n,r,i){for(var o={},u=0;u<a.length;++u)a[u].computed?o[a[u].key(t,n,r,i)]=a[u].value(t,n,r,i):o[a[u].key]=a[u].value(t,n,r,i);return e?{value:o}:o};case yo.ThisExpression:return function(t){return e?{value:t}:t};case yo.LocalsExpression:return function(t,n){return e?{value:n}:n};case yo.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=m(a)?+a:0,e?{value:a}:a}},"unary-":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=m(a)?-a:0,e?{value:a}:a}},"unary!":function(t,e){return function(n,r,i,o){var a=!t(n,r,i,o);return e?{value:a}:a}},"binary+":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a),s=e(r,i,o,a),c=un(u,s);return n?{value:c}:c}},"binary-":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a),s=e(r,i,o,a),c=(m(u)?u:0)-(m(s)?s:0);return n?{value:c}:c}},"binary*":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)*e(r,i,o,a);return n?{value:u}:u}},"binary/":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)/e(r,i,o,a);return n?{value:u}:u}},"binary%":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)%e(r,i,o,a);return n?{value:u}:u}},"binary===":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)===e(r,i,o,a);return n?{value:u}:u}},"binary!==":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)!==e(r,i,o,a);return n?{value:u}:u}},"binary==":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)==e(r,i,o,a);return n?{value:u}:u}},"binary!=":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)!=e(r,i,o,a);return n?{value:u}:u}},"binary<":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)<e(r,i,o,a);return n?{value:u}:u}},"binary>":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)>e(r,i,o,a);return n?{value:u}:u}},"binary<=":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)<=e(r,i,o,a);return n?{value:u}:u}},"binary>=":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)>=e(r,i,o,a);return n?{value:u}:u}},"binary&&":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)&&e(r,i,o,a);return n?{value:u}:u}},"binary||":function(t,e,n){return function(r,i,o,a){var u=t(r,i,o,a)||e(r,i,o,a);return n?{value:u}:u}},"ternary?:":function(t,e,n,r){return function(i,o,a,u){var s=t(i,o,a,u)?e(i,o,a,u):n(i,o,a,u);return r?{value:s}:s}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n,r,i){return function(o,a,u,s){var c=a&&t in a?a:o;r&&1!==r&&c&&!c[t]&&(c[t]={});var l=c?c[t]:void 0;return e&&nn(l,i),n?{context:c,name:t,value:l}:l}},computedMember:function(t,e,n,r,i){return function(o,a,u,s){var c,l,f=t(o,a,u,s);return null!=f&&(c=e(o,a,u,s),c=en(c),tn(c,i),r&&1!==r&&(on(f),f&&!f[c]&&(f[c]={})),l=f[c],nn(l,i)),n?{context:f,name:c,value:l}:l}},nonComputedMember:function(t,e,n,r,i,o){return function(a,u,s,c){var l=t(a,u,s,c);i&&1!==i&&(on(l),l&&!l[e]&&(l[e]={}));var f=null!=l?l[e]:void 0;return(n||$n(e))&&nn(f,o),r?{context:l,name:e,value:f}:f}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var bo=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new yo(t,n),this.astCompiler=n.csp?new gn(this.ast,e):new vn(this.ast,e)};bo.prototype={constructor:bo,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var wo=Object.prototype.valueOf,xo=e("$sce"),_o={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},So=e("$compile"),Co=t.document.createElement("a"),Eo=In(t.location.href);Ln.$inject=["$document"],Dn.$inject=["$provide"];var Ao=22,ko=".",Oo="0";zn.$inject=["$locale"],Hn.$inject=["$locale"];var jo={yyyy:Jn("FullYear",4,0,!1,!0),yy:Jn("FullYear",2,0,!0,!0),y:Jn("FullYear",1,0,!1,!0),MMMM:Yn("Month"),MMM:Yn("Month",!0),MM:Jn("Month",2,1),M:Jn("Month",1,1),LLLL:Yn("Month",!1,!0),dd:Jn("Date",2),d:Jn("Date",1),HH:Jn("Hours",2),H:Jn("Hours",1),hh:Jn("Hours",2,-12),h:Jn("Hours",1,-12),mm:Jn("Minutes",2),m:Jn("Minutes",1),ss:Jn("Seconds",2),s:Jn("Seconds",1),sss:Jn("Milliseconds",3),EEEE:Yn("Day"),EEE:Yn("Day",!0),a:nr,Z:Xn,ww:er(2),w:er(1),G:rr,GG:rr,GGG:rr,GGGG:ir},To=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,No=/^\-?\d+$/;or.$inject=["$locale"];var Mo=v(Mr),Io=v(Ir);cr.$inject=["$parse"];var Ro=v({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===zr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Po={};r(Ai,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=ge("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Po[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(Oi,function(t,e){Po[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(jr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),r(["src","srcset","href"],function(t){var e=ge("ng-"+t);Po[e]=function(){return{priority:99,link:function(n,r,i){var o=t,a=t;"href"===t&&"[object SVGAnimatedString]"===zr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(e,function(e){return e?(i.$set(a,e),void(Lr&&o&&r.prop(o,i[a]))):void("href"===t&&i.$set(a,null))})}}}});var Lo={$addControl:h,$$renameControl:fr,$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h,$setSubmitted:h},Vo="ng-submitted";pr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Do=function(t){return["$timeout","$parse",function(e,n){function r(t){return""===t?n('this[""]').assign:n(t).assign||h}var i={name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:pr,compile:function(n,i){n.addClass(wa).addClass(ya);var o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,a){var u=a[0];if(!("action"in i)){var s=function(e){t.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),e.preventDefault()};di(n[0],"submit",s),n.on("$destroy",function(){e(function(){vi(n[0],"submit",s)},0,!1)})}var l=a[1]||u.$$parentForm;l.$addControl(u);var f=o?r(u.$name):h;o&&(f(t,u),i.$observe(o,function(e){u.$name!==e&&(f(t,void 0),u.$$parentForm.$$renameControl(u,e),(f=r(u.$name))(t,u))})),n.on("$destroy",function(){u.$$parentForm.$removeControl(u),f(t,void 0),c(u,Lo)})}}}};return i}]},Uo=Do(),Fo=Do(!0),qo=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Bo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,zo=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Ho=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Wo=/^(\d{4,})-(\d{2})-(\d{2})$/,Go=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ko=/^(\d{4,})-W(\d\d)$/,Zo=/^(\d{4,})-(\d\d)$/,Jo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yo="keydown wheel mousedown",Xo=dt();r("date,datetime-local,month,time,week".split(","),function(t){Xo[t]=!0});var Qo={text:dr,date:mr("date",Wo,$r(Wo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":mr("datetimelocal",Go,$r(Go,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:mr("time",Jo,$r(Jo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:mr("week",Ko,gr,"yyyy-Www"),month:mr("month",Zo,$r(Zo,["yyyy","MM"]),"yyyy-MM"),number:br,url:wr,email:xr,radio:_r,checkbox:Cr,hidden:h,button:h,submit:h,reset:h,file:h},ta=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,u){u[0]&&(Qo[Mr(a.type)]||Qo.text)(i,o,a,u[0],e,t,n,r)}}}}],ea=/^(true|false|\d+)$/,na=function(){return{restrict:"A",priority:100,compile:function(t,e){return ea.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},ra=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=$(t)?"":t})}}}}],ia=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=$(t)?"":t})}}}}],oa=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,function(e){return t.valueOf(e)});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")})}}}}],aa=v({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),ua=Er("",!0),sa=Er("Odd",0),ca=Er("Even",1),la=lr({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),fa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],pa={},ha={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=ge("ng-"+t);pa[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){a(e,{$event:n})};ha[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var da=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var u,s,c;n.$watch(i.ngIf,function(n){n?s||a(function(n,o){s=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),u={clone:n},t.enter(n,r.parent(),r)}):(c&&(c.remove(),c=null),s&&(s.$destroy(),s=null),u&&(c=ht(u.clone),t.leave(c).then(function(){c=null}),u=null))})}}}],va=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Gr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",u=i.autoscroll;return function(r,i,s,c,l){var f,p,h,d=0,v=function(){p&&(p.remove(),p=null),f&&(f.$destroy(),f=null),h&&(n.leave(h).then(function(){p=null}),p=h,h=null)};r.$watch(o,function(o){var s=function(){!m(u)||u&&!r.$eval(u)||e()},p=++d;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&p===d){var e=r.$new();c.template=t;var u=l(e,function(t){v(),n.enter(t,null,i).then(s)});f=e,h=u,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||p===d&&(v(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(v(),c.template=null)})}}}}],ga=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return zr.call(r[0]).match(/SVG/)?(r.empty(),void e(Et(o.template,t.document).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(o.template),void e(r.contents())(n))}}}],$a=lr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),ma=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var o=e.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,u=a?Yr(o):o,s=function(t){if(!$(t)){var e=[];return t&&r(t.split(u),function(t){t&&e.push(a?Yr(t):t)}),e}};i.$parsers.push(s),i.$formatters.push(function(t){if(Zr(t))return t.join(o)}),i.$isEmpty=function(t){return!t||!t.length}}}},ya="ng-valid",ba="ng-invalid",wa="ng-pristine",xa="ng-dirty",_a="ng-untouched",Sa="ng-touched",Ca="ng-pending",Ea="ng-empty",Aa="ng-not-empty",ka=e("ngModel"),Oa=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,n,i,o,a,u,s,c,l){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,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=void 0,this.$name=l(n.name||"",!1)(t),this.$$parentForm=Lo;var f,p=o(n.ngModel),d=p.assign,v=p,g=d,y=null,b=this;this.$$setOptions=function(t){if(b.$options=t,t&&t.getterSetter){var e=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");v=function(t){var n=p(t);return S(n)&&(n=e(t)),n},g=function(t,e){S(p(t))?r(t,{$$$p:e}):d(t,e)}}else if(!p.assign)throw ka("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,J(i))},this.$render=h,this.$isEmpty=function(t){return $(t)||""===t||null===t||t!==t},this.$$updateEmptyClasses=function(t){b.$isEmpty(t)?(a.removeClass(i,Aa),a.addClass(i,Ea)):(a.removeClass(i,Ea),a.addClass(i,Aa))};var w=0;Ar({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:a}),this.$setPristine=function(){b.$dirty=!1,b.$pristine=!0,a.removeClass(i,xa),a.addClass(i,wa)},this.$setDirty=function(){b.$dirty=!0,b.$pristine=!1,a.removeClass(i,wa),a.addClass(i,xa),b.$$parentForm.$setDirty()},this.$setUntouched=function(){b.$touched=!1,b.$untouched=!0,a.setClass(i,_a,Sa)},this.$setTouched=function(){b.$touched=!0,b.$untouched=!1,a.setClass(i,Sa,_a)},this.$rollbackViewValue=function(){u.cancel(y),b.$viewValue=b.$$lastCommittedViewValue,b.$render()},this.$validate=function(){if(!x(b.$modelValue)||!isNaN(b.$modelValue)){var t=b.$$lastCommittedViewValue,e=b.$$rawModelValue,n=b.$valid,r=b.$modelValue,i=b.$options&&b.$options.allowInvalid;b.$$runValidators(e,t,function(t){i||n===t||(b.$modelValue=t?e:void 0,b.$modelValue!==r&&b.$$writeModelToScope())})}},this.$$runValidators=function(t,e,n){function i(){var t=b.$$parserName||"parse";return $(f)?(u(t,null),!0):(f||(r(b.$validators,function(t,e){u(e,null)}),r(b.$asyncValidators,function(t,e){u(e,null)})),u(t,f),f)}function o(){var n=!0;return r(b.$validators,function(r,i){var o=r(t,e);n=n&&o,u(i,o)}),!!n||(r(b.$asyncValidators,function(t,e){u(e,null)}),!1)}function a(){var n=[],i=!0;r(b.$asyncValidators,function(r,o){var a=r(t,e);if(!N(a))throw ka("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);u(o,void 0),n.push(a.then(function(){u(o,!0)},function(){i=!1,u(o,!1)}))}),n.length?c.all(n).then(function(){s(i)},h):s(!0)}function u(t,e){l===w&&b.$setValidity(t,e)}function s(t){l===w&&n(t)}w++;var l=w;return i()&&o()?void a():void s(!1)},this.$commitViewValue=function(){var t=b.$viewValue;u.cancel(y),(b.$$lastCommittedViewValue!==t||""===t&&b.$$hasNativeValidators)&&(b.$$updateEmptyClasses(t),b.$$lastCommittedViewValue=t,b.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){b.$modelValue!==o&&b.$$writeModelToScope()}var n=b.$$lastCommittedViewValue,r=n;if(f=!$(r)||void 0)for(var i=0;i<b.$parsers.length;i++)if(r=b.$parsers[i](r),$(r)){f=!1;break}x(b.$modelValue)&&isNaN(b.$modelValue)&&(b.$modelValue=v(t));var o=b.$modelValue,a=b.$options&&b.$options.allowInvalid;b.$$rawModelValue=r,a&&(b.$modelValue=r,e()),b.$$runValidators(r,b.$$lastCommittedViewValue,function(t){a||(b.$modelValue=t?r:void 0,e())})},this.$$writeModelToScope=function(){g(t,b.$modelValue),r(b.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){b.$viewValue=t,b.$options&&!b.$options.updateOnDefault||b.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=b.$options;i&&m(i.debounce)&&(n=i.debounce,x(n)?r=n:x(n[e])?r=n[e]:x(n["default"])&&(r=n["default"])),u.cancel(y),r?y=u(function(){b.$commitViewValue()},r):s.$$phase?b.$commitViewValue():t.$apply(function(){b.$commitViewValue()})},t.$watch(function(){var e=v(t);if(e!==b.$modelValue&&(b.$modelValue===b.$modelValue||e===e)){b.$modelValue=b.$$rawModelValue=e,f=void 0;for(var n=b.$formatters,r=n.length,i=e;r--;)i=n[r](i);b.$viewValue!==i&&(b.$$updateEmptyClasses(i),b.$viewValue=b.$$lastCommittedViewValue=i,b.$render(),b.$$runValidators(e,i,h))}return e})}],ja=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Oa,priority:1,compile:function(e){return e.addClass(wa).addClass(_a).addClass(ya),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],Ta=/(\s+|^)default(\s+|$)/,Na=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=D(t.$eval(e.ngModelOptions)),m(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Yr(this.$options.updateOn.replace(Ta,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Ma=lr({terminal:!0,priority:1e3}),Ia=e("ngOptions"),Ra=/^\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]+?))?$/,Pa=["$compile","$document","$parse",function(e,i,o){function a(t,e,r){function i(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function a(t){var e;if(!c&&n(t))e=t;else{e=[];for(var r in t)t.hasOwnProperty(r)&&"$"!==r.charAt(0)&&e.push(r)}return e}var u=t.match(Ra);if(!u)throw Ia("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,J(e));var s=u[5]||u[7],c=u[6],l=/ as /.test(u[0])&&u[1],f=u[9],p=o(u[2]?u[1]:s),h=l&&o(l),d=h||p,v=f&&o(f),g=f?function(t,e){return v(r,e)}:function(t){return Yt(t)},$=function(t,e){return g(t,_(t,e))},m=o(u[2]||u[1]),y=o(u[3]||""),b=o(u[4]||""),w=o(u[8]),x={},_=c?function(t,e){return x[c]=e,x[s]=t,x}:function(t){return x[s]=t,x};return{trackBy:f,getTrackByValue:$,getWatchables:o(w,function(t){var e=[];t=t||[];for(var n=a(t),i=n.length,o=0;o<i;o++){var s=t===n?o:n[o],c=t[s],l=_(c,s),f=g(c,l);if(e.push(f),u[2]||u[1]){var p=m(r,l);e.push(p)}if(u[4]){var h=b(r,l);e.push(h)}}return e}),getOptions:function(){for(var t=[],e={},n=w(r)||[],o=a(n),u=o.length,s=0;s<u;s++){var c=n===o?s:o[s],l=n[c],p=_(l,c),h=d(r,p),v=g(h,p),x=m(r,p),S=y(r,p),C=b(r,p),E=new i(v,h,x,S,C);t.push(E),e[v]=E}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[$(t)]},getViewValueFromOption:function(t){return f?Gr.copy(t.viewValue):t.viewValue}}}}}function u(t,n,o,u){function l(t,e){var n=s.cloneNode(!1);e.appendChild(n),f(t,n)}function f(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function p(){var t=_&&d.readValue();if(_)for(var e=_.items.length-1;e>=0;e--){var r=_.items[e];Bt(m(r.group)?r.element.parentNode:r.element)}_=S.getOptions();var i={};if(w&&n.prepend(h),_.items.forEach(function(t){var e;m(t.group)?(e=i[t.group],e||(e=c.cloneNode(!1),C.appendChild(e),e.label=null===t.group?"null":t.group,i[t.group]=e),l(t,e)):l(t,C)}),n[0].appendChild(C),v.$render(),!v.$isEmpty(t)){var o=d.readValue(),a=S.trackBy||g;(a?U(t,o):t===o)||(v.$setViewValue(o),v.$render())}}for(var h,d=u[0],v=u[1],g=o.multiple,$=0,y=n.children(),b=y.length;$<b;$++)if(""===y[$].value){h=y.eq($);break}var w=!!h,x=Vr(s.cloneNode(!1));x.val("?");var _,S=a(o.ngOptions,n,t),C=i[0].createDocumentFragment(),E=function(){w||n.prepend(h),n.val(""),h.prop("selected",!0),h.attr("selected",!0)},A=function(){w||h.remove()},k=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},O=function(){x.remove()};g?(v.$isEmpty=function(t){return!t||0===t.length},d.writeValue=function(t){_.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){var e=_.getOptionFromViewValue(t);e&&(e.element.selected=!0)})},d.readValue=function(){var t=n.val()||[],e=[];return r(t,function(t){var n=_.selectValueMap[t];n&&!n.disabled&&e.push(_.getViewValueFromOption(n))}),e},S.trackBy&&t.$watchCollection(function(){if(Zr(v.$viewValue))return v.$viewValue.map(function(t){return S.getTrackByValue(t)})},function(){v.$render()})):(d.writeValue=function(t){var e=_.getOptionFromViewValue(t);e?(n[0].value!==e.selectValue&&(O(),A(),n[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||w?(O(),E()):(A(),k())},d.readValue=function(){var t=_.selectValueMap[n.val()];return t&&!t.disabled?(A(),O(),_.getViewValueFromOption(t)):null},S.trackBy&&t.$watch(function(){return S.getTrackByValue(v.$viewValue)},function(){v.$render()})),w?(h.remove(),e(h)(t),h.removeClass("ng-scope")):h=Vr(s.cloneNode(!1)),n.empty(),p(),t.$watchCollection(S.getWatchables,p)}var s=t.document.createElement("option"),c=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=h},post:u}}}],La=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,u,s){function c(t){u.text(t||"")}var l,f=s.count,p=s.$attr.when&&u.attr(s.$attr.when),d=s.offset||0,v=a.$eval(p)||{},g={},m=e.startSymbol(),y=e.endSymbol(),b=m+f+"-"+d+y,w=Gr.noop;r(s,function(t,e){var n=o.exec(e);if(n){var r=(n[1]?"-":"")+Mr(n[2]);v[r]=u.attr(s.$attr[e])}}),r(v,function(t,n){g[n]=e(t.replace(i,b))}),a.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in v||(r=t.pluralCat(r-d)),r!==l&&!(i&&x(l)&&isNaN(l))){w();var o=g[r];$(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+p),w=h,c()):w=a.$watch(o,c),l=r}})}}}],Va=["$parse","$animate","$compile",function(t,i,o){var a="$$NG_REMOVED",u=e("ngRepeat"),s=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},c=function(t){return t.clone[0]},l=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,f){var p=f.ngRepeat,h=o.$$createComment("end ngRepeat",p),d=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var v=d[1],g=d[2],$=d[3],m=d[4];if(d=v.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!d)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var y=d[3]||d[1],b=d[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",$);var w,x,_,S,C={$id:Yt};return m?w=t(m):(_=function(t,e){return Yt(e)},S=function(t){return t}),function(t,e,o,f,d){w&&(x=function(e,n,r){return b&&(C[b]=e),C[y]=n,C.$index=r,w(t,C)});var v=dt();t.$watchCollection(g,function(o){var f,g,m,w,C,E,A,k,O,j,T,N,M=e[0],I=dt();if($&&(t[$]=o),n(o))O=o,
k=x||_;else{k=x||S,O=[];for(var R in o)Nr.call(o,R)&&"$"!==R.charAt(0)&&O.push(R)}for(w=O.length,T=new Array(w),f=0;f<w;f++)if(C=o===O?f:O[f],E=o[C],A=k(C,E,f),v[A])j=v[A],delete v[A],I[A]=j,T[f]=j;else{if(I[A])throw r(T,function(t){t&&t.scope&&(v[t.id]=t)}),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}",p,A,E);T[f]={id:A,scope:void 0,clone:void 0},I[A]=!0}for(var P in v){if(j=v[P],N=ht(j.clone),i.leave(N),N[0].parentNode)for(f=0,g=N.length;f<g;f++)N[f][a]=!0;j.scope.$destroy()}for(f=0;f<w;f++)if(C=o===O?f:O[f],E=o[C],j=T[f],j.scope){m=M;do m=m.nextSibling;while(m&&m[a]);c(j)!=m&&i.move(ht(j.clone),null,M),M=l(j),s(j.scope,f,y,E,b,C,w)}else d(function(t,e){j.scope=e;var n=h.cloneNode(!1);t[t.length++]=n,i.enter(t,null,M),M=n,j.clone=t,I[j.id]=j,s(j.scope,f,y,E,b,C,w)});v=I})}}}}],Da="ng-hide",Ua="ng-hide-animate",Fa=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,Da,{tempClasses:Ua})})}}}],qa=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,Da,{tempClasses:Ua})})}}}],Ba=lr(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&r(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),za=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var u=o.ngSwitch||o.on,s=[],c=[],l=[],f=[],p=function(t,e){return function(){t.splice(e,1)}};n.$watch(u,function(n){var i,o;for(i=0,o=l.length;i<o;++i)t.cancel(l[i]);for(l.length=0,i=0,o=f.length;i<o;++i){var u=ht(c[i].clone);f[i].$destroy();var h=l[i]=t.leave(u);h.then(p(l,i))}c.length=0,f.length=0,(s=a.cases["!"+n]||a.cases["?"])&&r(s,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen");var a={clone:r};c.push(a),t.enter(r,o.parent(),o)})})})}}}],Ha=lr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Wa=lr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Ga=e("ngTransclude"),Ka=["$compile",function(t){return{restrict:"EAC",terminal:!0,compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,r,i,o){function a(t,n){t.length?e.append(t):(u(),n.$destroy())}function u(){n(t,function(t){e.append(t)})}if(!o)throw Ga("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",J(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var s=r.ngTransclude||r.ngTranscludeSlot;o(a,null,s),s&&!o.isSlotFilled(s)&&u()}}}}],Za=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],Ja={$setViewValue:h,$render:h},Ya=["$element","$scope",function(e,n){var r=this,i=new Xt;r.ngModelCtrl=Ja,r.unknownOption=Vr(t.document.createElement("option")),r.renderUnknownOption=function(t){var n="? "+Yt(t)+" ?";r.unknownOption.val(n),e.prepend(r.unknownOption),e.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=h}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),e.val()},r.writeValue=function(t){r.hasOption(t)?(r.removeUnknownOption(),e.val(t),""===t&&r.emptyOption.prop("selected",!0)):null==t&&r.emptyOption?(r.removeUnknownOption(),e.val("")):r.renderUnknownOption(t)},r.addOption=function(t,e){if(e[0].nodeType!==si){ft(t,'"option value"'),""===t&&(r.emptyOption=e);var n=i.get(t)||0;i.put(t,n+1),r.ngModelCtrl.$render(),Or(e)}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.remove(t),""===t&&(r.emptyOption=void 0)):i.put(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.registerOption=function(t,e,n,i,o){if(i){var a;n.$observe("value",function(t){m(a)&&r.removeOption(a),a=t,r.addOption(t,e)})}else o?t.$watch(o,function(t,i){n.$set("value",t),i!==t&&r.removeOption(i),r.addOption(t,e)}):r.addOption(n.value,e);e.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Xa=function(){function t(t,e,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,e.on("change",function(){t.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var t=[];return r(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},a.writeValue=function(t){var n=new Xt(t);r(e.find("option"),function(t){t.selected=m(n.get(t.value))})};var u,s=NaN;t.$watch(function(){s!==o.$viewValue||U(u,o.$viewValue)||(u=gt(o.$viewValue),o.$render()),s=o.$viewValue}),o.$isEmpty=function(t){return!t||0===t.length}}}}function e(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Ya,priority:1,link:{pre:t,post:e}}},Qa=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(m(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o="$selectController",a=e.parent(),u=a.data(o)||a.parent().data(o);u&&u.registerOption(t,e,n,r,i)}}}}],tu=v({restrict:"E",terminal:!1}),eu=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},nu=function(){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if(w(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw e("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,J(n));o=t||void 0,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||$(o)||o.test(e)}}}}},ru=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=f(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},iu=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=f(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};return t.angular.bootstrap?void(t.console&&console.log("WARNING: Tried to load angular more than once.")):(st(),yt(Gr),Gr.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return e==-1?0:t.length-e-1}function n(t,n){var r=n;void 0===r&&(r=Math.min(e(t),3));var i=Math.pow(10,r),o=(t*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var i=0|t,o=n(t,e);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),void Vr(t.document).ready(function(){rt(t.document,it)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.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(t,e,n){n(6),t.exports="ngRoute"},function(t,e){/**
* @license AngularJS v1.5.8
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
!function(t,e){"use strict";function n(t,e){if(u(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(s(t)){e=e||{};for(var i in t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i])}return e||t}function r(){function t(t,n){return e.extend(Object.create(t),n)}function r(t,e){var n=e.caseInsensitiveMatch,r={originalPath:t,regexp:t},i=r.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(t,e,n,r){var o="?"===r||"*?"===r?"?":null,a="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),e=e||"",""+(o?"":e)+"(?:"+(o?e:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+t+"$",n?"i":""),r}u=e.isArray,s=e.isObject;var i={};this.when=function(t,o){var a=n(o);if(e.isUndefined(a.reloadOnSearch)&&(a.reloadOnSearch=!0),e.isUndefined(a.caseInsensitiveMatch)&&(a.caseInsensitiveMatch=this.caseInsensitiveMatch),i[t]=e.extend(a,t&&r(t,a)),t){var u="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";i[u]=e.extend({redirectTo:t},r(u,a))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,r,o,a,u,s,c){function f(t,e){var n=e.keys,r={};if(!e.regexp)return null;var i=e.regexp.exec(t);if(!i)return null;for(var o=1,a=i.length;o<a;++o){var u=n[o-1],s=i[o];u&&s&&(r[u.name]=s)}return r}function p(t){var r=w.current;m=g(),y=m&&r&&m.$$route===r.$$route&&e.equals(m.pathParams,r.pathParams)&&!m.reloadOnSearch&&!b,y||!r&&!m||n.$broadcast("$routeChangeStart",m,r).defaultPrevented&&t&&t.preventDefault()}function h(){var t=w.current,i=m;y?(t.params=i.params,e.copy(t.params,o),n.$broadcast("$routeUpdate",t)):(i||t)&&(b=!1,w.current=i,i&&i.redirectTo&&(e.isString(i.redirectTo)?r.path($(i.redirectTo,i.params)).search(i.params).replace():r.url(i.redirectTo(i.pathParams,r.path(),r.search())).replace()),a.when(i).then(d).then(function(r){i==w.current&&(i&&(i.locals=r,e.copy(i.params,o)),n.$broadcast("$routeChangeSuccess",i,t))},function(e){i==w.current&&n.$broadcast("$routeChangeError",i,t,e)}))}function d(t){if(t){var n=e.extend({},t.resolve);e.forEach(n,function(t,r){n[r]=e.isString(t)?u.get(t):u.invoke(t,null,null,r)});var r=v(t);return e.isDefined(r)&&(n.$template=r),a.all(n)}}function v(t){var n,r;return e.isDefined(n=t.template)?e.isFunction(n)&&(n=n(t.params)):e.isDefined(r=t.templateUrl)&&(e.isFunction(r)&&(r=r(t.params)),e.isDefined(r)&&(t.loadedTemplateUrl=c.valueOf(r),n=s(r))),n}function g(){var n,o;return e.forEach(i,function(i,a){!o&&(n=f(r.path(),i))&&(o=t(i,{params:e.extend({},r.search(),n),pathParams:n}),o.$$route=i)}),o||i[null]&&t(i[null],{params:{},pathParams:{}})}function $(t,n){var r=[];return e.forEach((t||"").split(":"),function(t,e){if(0===e)r.push(t);else{var i=t.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var m,y,b=!1,w={routes:i,reload:function(){b=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,b=!1}};n.$evalAsync(function(){p(t),t.defaultPrevented||h()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw l("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),r.path($(this.current.$$route.originalPath,t)),r.search(t)}};return n.$on("$locationChangeStart",p),n.$on("$locationChangeSuccess",h),w}]}function i(){this.$get=function(){return{}}}function o(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,u,s){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=t.current&&t.current.locals,u=a&&a.$template;if(e.isDefined(u)){var l=i.$new(),h=t.current,g=s(l,function(t){r.enter(t,null,p||o).then(function(){!e.isDefined(d)||d&&!i.$eval(d)||n()}),c()});p=g,f=h.scope=l,f.$emit("$viewContentLoaded"),f.$eval(v)}else c()}var f,p,h,d=a.autoscroll,v=a.onload||"";i.$on("$routeChangeSuccess",l),l()}}}function a(t,e,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var u=t(i.contents());if(o.controller){a.$scope=r;var s=e(o.controller,a);o.controllerAs&&(r[o.controllerAs]=s),i.data("$ngControllerController",s),i.children().data("$ngControllerController",s)}r[o.resolveAs||"$resolve"]=a,u(r)}}}var u,s,c=e.module("ngRoute",["ng"]).provider("$route",r),l=e.$$minErr("ngRoute");c.provider("$routeParams",i),c.directive("ngView",o),c.directive("ngView",a),o.$inject=["$route","$anchorScroll","$animate"],a.$inject=["$compile","$controller","$route"]}(window,window.angular)},function(t,e,n){var r,i;/*!
* angular-translate - v2.11.1 - 2016-07-17
*
* Copyright (c) 2016 The angular-translate team, Pascal Precht; Licensed MIT
*/
!function(n,o){r=[],i=function(){return o()}.apply(e,r),!(void 0!==i&&(t.exports=i))}(this,function(){function t(t){"use strict";var e=t.storageKey(),n=t.storage(),r=function(){var r=t.preferredLanguage();angular.isString(r)?t.use(r):n.put(e,t.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(e)?t.use(n.get(e))["catch"](r):r():angular.isString(t.preferredLanguage())&&t.use(t.preferredLanguage())}function e(){"use strict";var t,e,n=null,r=!1,i=!1;e={sanitize:function(t,e){return"text"===e&&(t=a(t)),t},escape:function(t,e){return"text"===e&&(t=o(t)),t},sanitizeParameters:function(t,e){return"params"===e&&(t=u(t,a)),t},escapeParameters:function(t,e){return"params"===e&&(t=u(t,o)),t}},e.escaped=e.escapeParameters,this.addStrategy=function(t,n){return e[t]=n,this},this.removeStrategy=function(t){return delete e[t],this},this.useStrategy=function(t){return r=!0,n=t,this},this.$get=["$injector","$log",function(o,a){var u={},s=function(t,n,r){return angular.forEach(r,function(r){if(angular.isFunction(r))t=r(t,n);else if(angular.isFunction(e[r]))t=e[r](t,n);else{if(!angular.isString(e[r]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'");if(!u[e[r]])try{u[e[r]]=o.get(e[r])}catch(i){throw u[e[r]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'")}t=u[e[r]](t,n)}}),t},c=function(){r||i||(a.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),i=!0)};return o.has("$sanitize")&&(t=o.get("$sanitize")),{useStrategy:function(t){return function(e){t.useStrategy(e)}}(this),sanitize:function(t,e,r){if(n||c(),arguments.length<3&&(r=n),!r)return t;var i=angular.isArray(r)?r:[r];return s(t,e,i)}}}];var o=function(t){var e=angular.element("<div></div>");return e.text(t),e.html()},a=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return t(e)},u=function(t,e,n){if(angular.isObject(t)){var r=angular.isArray(t)?[]:{};if(n){if(n.indexOf(t)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(t),angular.forEach(t,function(t,i){angular.isFunction(t)||(r[i]=u(t,e,n))}),n.splice(-1,1),r}return angular.isNumber(t)?t:e(t)}}function n(t,e,n,r){"use strict";var i,o,a,u,s,c,l,f,p,h,d,v,g,$,m,y,b={},w=[],x=t,_=[],S="translate-cloak",C=!1,E=!1,A=".",k=!1,O=!1,j=0,T=!0,N="default",M={"default":function(t){return(t||"").split("-").join("_")},java:function(t){var e=(t||"").split("-").join("_"),n=e.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():e},bcp47:function(t){var e=(t||"").split("_").join("-"),n=e.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():e},"iso639-1":function(t){var e=(t||"").split("_").join("-"),n=e.split("-");return n[0].toLowerCase()}},I="2.11.1",R=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var t,n,i=e.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(t=0;t<i.languages.length;t++)if(n=i.languages[t],n&&n.length)return n;for(t=0;t<o.length;t++)if(n=i[o[t]],n&&n.length)return n;return null};R.displayName="angular-translate/service: getFirstBrowserLanguage";var P=function(){var t=R()||"";return M[N]&&(t=M[N](t)),t};P.displayName="angular-translate/service: getLocale";var L=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},V=function(){return this.toString().replace(/^\s+|\s+$/g,"")},D=function(t){if(t){for(var e=[],n=angular.lowercase(t),r=0,i=w.length;r<i;r++)e.push(angular.lowercase(w[r]));if(L(e,n)>-1)return t;if(o){var a;for(var u in o)if(o.hasOwnProperty(u)){var s=!1,c=Object.prototype.hasOwnProperty.call(o,u)&&angular.lowercase(u)===angular.lowercase(t);if("*"===u.slice(-1)&&(s=u.slice(0,-1)===t.slice(0,u.length-1)),(c||s)&&(a=o[u],L(e,angular.lowercase(a))>-1))return a}}var l=t.split("_");return l.length>1&&L(e,angular.lowercase(l[0]))>-1?l[0]:void 0}},U=function(t,e){if(!t&&!e)return b;if(t&&!e){if(angular.isString(t))return b[t]}else angular.isObject(b[t])||(b[t]={}),angular.extend(b[t],F(e));return this};this.translations=U,this.cloakClassName=function(t){return t?(S=t,this):S},this.nestedObjectDelimeter=function(t){return t?(A=t,this):A};var F=function(t,e,n,r){var i,o,a,u;e||(e=[]),n||(n={});for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(u=t[i],angular.isObject(u)?F(u,e.concat(i),n,i):(o=e.length?""+e.join(A)+A+i:i,e.length&&i===r&&(a=""+e.join(A),n[a]="@:"+o),n[o]=u));return n};F.displayName="flatObject",this.addInterpolation=function(t){return _.push(t),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(t){return h=t,this},this.useSanitizeValueStrategy=function(t){return n.useStrategy(t),this},this.preferredLanguage=function(t){return t?(q(t),this):i};var q=function(t){return t&&(i=t),i};this.translationNotFoundIndicator=function(t){return this.translationNotFoundIndicatorLeft(t),this.translationNotFoundIndicatorRight(t),this},this.translationNotFoundIndicatorLeft=function(t){return t?(g=t,this):g},this.translationNotFoundIndicatorRight=function(t){return t?($=t,this):$},this.fallbackLanguage=function(t){return B(t),this};var B=function(t){return t?(angular.isString(t)?(u=!0,a=[t]):angular.isArray(t)&&(u=!1,a=t),angular.isString(i)&&L(a,i)<0&&a.push(i),this):u?a[0]:a};this.use=function(t){if(t){if(!b[t]&&!d)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+t+"'");return s=t,this}return s},this.resolveClientLocale=function(){return P()};var z=function(t){return t?(x=t,this):f?f+x:x};this.storageKey=z,this.useUrlLoader=function(t,e){return this.useLoader("$translateUrlLoader",angular.extend({url:t},e))},this.useStaticFilesLoader=function(t){return this.useLoader("$translateStaticFilesLoader",t)},this.useLoader=function(t,e){return d=t,v=e||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(t){return l=t,this},this.storagePrefix=function(t){return t?(f=t,this):t},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(t){return p=t,this},this.usePostCompiling=function(t){return C=!!t,this},this.forceAsyncReload=function(t){return E=!!t,this},this.uniformLanguageTag=function(t){return t?angular.isString(t)&&(t={standard:t}):t={},N=t.standard,this},this.determinePreferredLanguage=function(t){var e=t&&angular.isFunction(t)?t():P();return i=w.length?D(e)||e:e,this},this.registerAvailableLanguageKeys=function(t,e){return t?(w=t,e&&(o=e),this):w},this.useLoaderCache=function(t){return t===!1?m=void 0:t===!0?m=!0:"undefined"==typeof t?m="$translationCache":t&&(m=t),this},this.directivePriority=function(t){return void 0===t?j:(j=t,this)},this.statefulFilter=function(t){return void 0===t?T:(T=t,this)},this.postProcess=function(t){return y=t?t:void 0,this},this.keepContent=function(t){return O=!!t,this},this.$get=["$log","$injector","$rootScope","$q",function(t,e,n,r){var o,f,N,M=e.get(h||"$translateDefaultInterpolation"),R=!1,H={},W={},G=function(t,e,n,u,c){!s&&i&&(s=i);var p=c&&c!==s?D(c)||c:s;if(c&<(c),angular.isArray(t)){var h=function(t){for(var i={},o=[],a=function(t){var o=r.defer(),a=function(e){i[t]=e,o.resolve([t,e])};return G(t,e,n,u,c).then(a,a),o.promise},s=0,l=t.length;s<l;s++)o.push(a(t[s]));return r.all(o).then(function(){return i})};return h(t)}var d=r.defer();t&&(t=V.apply(t));var v=function(){var t=i?W[i]:W[p];if(f=0,l&&!t){var e=o.get(x);if(t=W[e],a&&a.length){var n=L(a,e);f=0===n?1:0,L(a,i)<0&&a.push(i)}}return t}();if(v){var g=function(){c||(p=s),at(t,e,n,u,p).then(d.resolve,d.reject)};g.displayName="promiseResolved",v["finally"](g)}else at(t,e,n,u,p).then(d.resolve,d.reject);return d.promise},K=function(t){return g&&(t=[g,t].join(" ")),$&&(t=[t,$].join(" ")),t},Z=function(t){s=t,l&&o.put(G.storageKey(),s),n.$emit("$translateChangeSuccess",{language:t}),M.setLocale(s);var e=function(t,e){H[e].setLocale(s)};e.displayName="eachInterpolatorLocaleSetter",angular.forEach(H,e),n.$emit("$translateChangeEnd",{language:t})},J=function(t){if(!t)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:t}),R=!0;var o=m;"string"==typeof o&&(o=e.get(o));var a=angular.extend({},v,{key:t,$http:angular.extend({},{cache:o},v.$http)}),u=function(e){var r={};n.$emit("$translateLoadingSuccess",{language:t}),angular.isArray(e)?angular.forEach(e,function(t){angular.extend(r,F(t))}):angular.extend(r,F(e)),R=!1,i.resolve({key:t,table:r}),n.$emit("$translateLoadingEnd",{language:t})};u.displayName="onLoaderSuccess";var s=function(t){n.$emit("$translateLoadingError",{language:t}),i.reject(t),n.$emit("$translateLoadingEnd",{language:t})};return s.displayName="onLoaderError",e.get(d)(a).then(u,s),i.promise};if(l&&(o=e.get(l),!o.get||!o.put))throw new Error("Couldn't use storage '"+l+"', missing get() or put() method!");if(_.length){var Y=function(t){var n=e.get(t);n.setLocale(i||s),H[n.getInterpolationIdentifier()]=n};Y.displayName="interpolationFactoryAdder",angular.forEach(_,Y)}var X=function(t){var e=r.defer();if(Object.prototype.hasOwnProperty.call(b,t))e.resolve(b[t]);else if(W[t]){var n=function(t){U(t.key,t.table),e.resolve(t.table)};n.displayName="translationTableResolver",W[t].then(n,e.reject)}else e.reject();return e.promise},Q=function(t,e,n,i){var o=r.defer(),a=function(r){if(Object.prototype.hasOwnProperty.call(r,e)){i.setLocale(t);var a=r[e];if("@:"===a.substr(0,2))Q(t,a.substr(2),n,i).then(o.resolve,o.reject);else{var u=i.interpolate(r[e],n);u=ct(e,r[e],u,n,t),o.resolve(u)}i.setLocale(s)}else o.reject()};return a.displayName="fallbackTranslationResolver",X(t).then(a,o.reject),o.promise},tt=function(t,e,n,r){var i,o=b[t];if(o&&Object.prototype.hasOwnProperty.call(o,e)){if(r.setLocale(t),i=r.interpolate(o[e],n),i=ct(e,o[e],i,n,t),"@:"===i.substr(0,2))return tt(t,i.substr(2),n,r);r.setLocale(s)}return i},et=function(t,n,r){if(p){var i=e.get(p)(t,s,n,r);return void 0!==i?i:t}return t},nt=function(t,e,n,i,o){var u=r.defer();if(t<a.length){var s=a[t];Q(s,e,n,i).then(function(t){u.resolve(t)},function(){return nt(t+1,e,n,i,o).then(u.resolve,u.reject)})}else o?u.resolve(o):p?u.resolve(et(e,n)):u.reject(et(e,n));return u.promise},rt=function(t,e,n,r){var i;if(t<a.length){var o=a[t];i=tt(o,e,n,r),i||(i=rt(t+1,e,n,r))}return i},it=function(t,e,n,r){return nt(N>0?N:f,t,e,n,r)},ot=function(t,e,n){return rt(N>0?N:f,t,e,n)},at=function(t,e,n,i,o){var u=r.defer(),s=o?b[o]:b,c=n?H[n]:M;if(s&&Object.prototype.hasOwnProperty.call(s,t)){var l=s[t];if("@:"===l.substr(0,2))G(l.substr(2),e,n,i,o).then(u.resolve,u.reject);else{var f=c.interpolate(l,e);f=ct(t,l,f,e,o),u.resolve(f)}}else{var h;p&&!R&&(h=et(t,e,i)),o&&a&&a.length?it(t,e,c,i).then(function(t){u.resolve(t)},function(t){u.reject(K(t))}):p&&!R&&h?i?u.resolve(i):u.resolve(h):i?u.resolve(i):u.reject(K(t))}return u.promise},ut=function(t,e,n,r){var i,o=r?b[r]:b,u=M;if(H&&Object.prototype.hasOwnProperty.call(H,n)&&(u=H[n]),o&&Object.prototype.hasOwnProperty.call(o,t)){var s=o[t];"@:"===s.substr(0,2)?i=ut(s.substr(2),e,n,r):(i=u.interpolate(s,e),i=ct(t,s,i,e,r))}else{var c;p&&!R&&(c=et(t,e)),r&&a&&a.length?(f=0,i=ot(t,e,u)):i=p&&!R&&c?c:K(t)}return i},st=function(t){c===t&&(c=void 0),W[t]=void 0},ct=function(t,n,r,i,o){var a=y;return a&&("string"==typeof a&&(a=e.get(a)),a)?a(t,n,r,i,o):r},lt=function(t){b[t]||!d||W[t]||(W[t]=J(t).then(function(t){return U(t.key,t.table),t}))};G.preferredLanguage=function(t){return t&&q(t),i},G.cloakClassName=function(){return S},G.nestedObjectDelimeter=function(){return A},G.fallbackLanguage=function(t){if(void 0!==t&&null!==t){if(B(t),d&&a&&a.length)for(var e=0,n=a.length;e<n;e++)W[a[e]]||(W[a[e]]=J(a[e]));G.use(G.use())}return u?a[0]:a},G.useFallbackLanguage=function(t){if(void 0!==t&&null!==t)if(t){var e=L(a,t);e>-1&&(N=e)}else N=0},G.proposedLanguage=function(){return c},G.storage=function(){return o},G.negotiateLocale=D,G.use=function(t){if(!t)return s;var e=r.defer();n.$emit("$translateChangeStart",{language:t});var i=D(t);return w.length>0&&!i?r.reject(t):(i&&(t=i),c=t,!E&&b[t]||!d||W[t]?W[t]?W[t].then(function(t){return c===t.key&&Z(t.key),e.resolve(t.key),t},function(t){return!s&&a&&a.length>0?G.use(a[0]).then(e.resolve,e.reject):e.reject(t)}):(e.resolve(t),Z(t)):(W[t]=J(t).then(function(n){return U(n.key,n.table),e.resolve(n.key),c===t&&Z(n.key),n},function(t){return n.$emit("$translateChangeError",{language:t}),e.reject(t),n.$emit("$translateChangeEnd",{language:t}),r.reject(t)}),W[t]["finally"](function(){st(t)})),e.promise)},G.resolveClientLocale=function(){return P()},G.storageKey=function(){return z()},G.isPostCompilingEnabled=function(){return C},G.isForceAsyncReloadEnabled=function(){return E},G.isKeepContent=function(){return O},G.refresh=function(t){function e(){o.resolve(),n.$emit("$translateRefreshEnd",{language:t})}function i(){o.reject(),n.$emit("$translateRefreshEnd",{language:t})}if(!d)throw new Error("Couldn't refresh translation table, no loader registered!");var o=r.defer();if(n.$emit("$translateRefreshStart",{language:t}),t)if(b[t]){var u=function(n){return U(n.key,n.table),t===s&&Z(s),e(),n};u.displayName="refreshPostProcessor",J(t).then(u,i)}else i();else{var c=[],l={};if(a&&a.length)for(var f=0,p=a.length;f<p;f++)c.push(J(a[f])),l[a[f]]=!0;s&&!l[s]&&c.push(J(s));var h=function(t){b={},angular.forEach(t,function(t){U(t.key,t.table)}),s&&Z(s),e()};h.displayName="refreshPostProcessor",r.all(c).then(h,i)}return o.promise},G.instant=function(t,e,n,r){var o=r&&r!==s?D(r)||r:s;if(null===t||angular.isUndefined(t))return t;if(r&<(r),angular.isArray(t)){for(var u={},c=0,l=t.length;c<l;c++)u[t[c]]=G.instant(t[c],e,n,r);return u}if(angular.isString(t)&&t.length<1)return t;t&&(t=V.apply(t));var f,h=[];i&&h.push(i),o&&h.push(o),a&&a.length&&(h=h.concat(a));for(var d=0,v=h.length;d<v;d++){var m=h[d];if(b[m]&&"undefined"!=typeof b[m][t]&&(f=ut(t,e,n,o)),"undefined"!=typeof f)break}return f||""===f||(g||$?f=K(t):(f=M.interpolate(t,e),p&&!R&&(f=et(t,e)))),f},G.versionInfo=function(){return I},G.loaderCache=function(){return m},G.directivePriority=function(){return j},G.statefulFilter=function(){return T},G.isReady=function(){return k};var ft=r.defer();ft.promise.then(function(){k=!0}),G.onReady=function(t){var e=r.defer();return angular.isFunction(t)&&e.promise.then(t),k?e.resolve():ft.promise.then(e.resolve),e.promise},G.getAvailableLanguageKeys=function(){return w.length>0?w:null};var pt=n.$on("$translateReady",function(){ft.resolve(),pt(),pt=null}),ht=n.$on("$translateChangeEnd",function(){ft.resolve(),ht(),ht=null});if(d){if(angular.equals(b,{})&&G.use()&&G.use(G.use()),a&&a.length)for(var dt=function(t){return U(t.key,t.table),n.$emit("$translateChangeEnd",{language:t.key}),t},vt=0,gt=a.length;vt<gt;vt++){var $t=a[vt];!E&&b[$t]||(W[$t]=J($t).then(dt))}}else n.$emit("$translateReady",{language:G.use()});return G}]}function r(t,e){"use strict";var n,r={},i="default";return r.setLocale=function(t){n=t},r.getInterpolationIdentifier=function(){return i},r.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},r.interpolate=function(n,r){r=r||{},r=e.sanitize(r,"params");var i;return angular.isNumber(n)?i=""+n:angular.isString(n)?(i=t(n)(r),i=e.sanitize(i,"text")):i="",i},r}function i(t,e,n,r,i,a){"use strict";var u=function(){return this.toString().replace(/^\s+|\s+$/g,"")};return{restrict:"AE",scope:!0,priority:t.directivePriority(),compile:function(e,s){var c=s.translateValues?s.translateValues:void 0,l=s.translateInterpolation?s.translateInterpolation:void 0,f=e[0].outerHTML.match(/translate-value-+/i),p="^(.*)("+n.startSymbol()+".*"+n.endSymbol()+")(.*)",h="^(.*)"+n.startSymbol()+"(.*)"+n.endSymbol()+"(.*)";return function(e,d,v){e.interpolateParams={},e.preText="",e.postText="",e.translateNamespace=o(e);var g={},$=function(t,n,r){if(n.translateValues&&angular.extend(t,i(n.translateValues)(e.$parent)),f)for(var o in r)if(Object.prototype.hasOwnProperty.call(n,o)&&"translateValue"===o.substr(0,14)&&"translateValues"!==o){var a=angular.lowercase(o.substr(14,1))+o.substr(15);t[a]=r[o]}},m=function(t){if(angular.isFunction(m._unwatchOld)&&(m._unwatchOld(),m._unwatchOld=void 0),angular.equals(t,"")||!angular.isDefined(t)){var r=u.apply(d.text()),i=r.match(p);if(angular.isArray(i)){e.preText=i[1],e.postText=i[3],g.translate=n(i[2])(e.$parent);var o=r.match(h);angular.isArray(o)&&o[2]&&o[2].length&&(m._unwatchOld=e.$watch(o[2],function(t){g.translate=t,S()}))}else g.translate=r?r:void 0}else g.translate=t;S()},y=function(t){v.$observe(t,function(e){g[t]=e,S()})};$(e.interpolateParams,v,s);var b=!0;v.$observe("translate",function(t){"undefined"==typeof t?m(""):""===t&&b||(g.translate=t,S()),b=!1});for(var w in v)v.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&y(w);if(v.$observe("translateDefault",function(t){e.defaultText=t,S()}),c&&v.$observe("translateValues",function(t){t&&e.$parent.$watch(function(){angular.extend(e.interpolateParams,i(t)(e.$parent))})}),f){var x=function(t){v.$observe(t,function(n){var r=angular.lowercase(t.substr(14,1))+t.substr(15);e.interpolateParams[r]=n})};for(var _ in v)Object.prototype.hasOwnProperty.call(v,_)&&"translateValue"===_.substr(0,14)&&"translateValues"!==_&&x(_)}var S=function(){for(var t in g)g.hasOwnProperty(t)&&void 0!==g[t]&&C(t,g[t],e,e.interpolateParams,e.defaultText,e.translateNamespace)},C=function(e,n,r,i,o,a){n?(a&&"."===n.charAt(0)&&(n=a+n),t(n,i,l,o,r.translateLanguage).then(function(t){E(t,r,!0,e)},function(t){E(t,r,!1,e)})):E(n,r,!1,e)},E=function(e,n,i,o){if(i||"undefined"!=typeof n.defaultText&&(e=n.defaultText),"translate"===o){(i||!i&&!t.isKeepContent()&&"undefined"==typeof v.translateKeepContent)&&d.empty().append(n.preText+e+n.postText);var a=t.isPostCompilingEnabled(),u="undefined"!=typeof s.translateCompile,c=u&&"false"!==s.translateCompile;(a&&!u||c)&&r(d.contents())(n)}else{var l=v.$attr[o];"data-"===l.substr(0,5)&&(l=l.substr(5)),l=l.substr(15),d.attr(l,e)}};(c||f||v.translateDefault)&&e.$watch("interpolateParams",S,!0);var A=e.$on("translateLanguageChanged",S),k=a.$on("$translateChangeSuccess",S);d.text().length?m(v.translate?v.translate:""):v.translate&&m(v.translate),S(),e.$on("$destroy",function(){A(),k()})}}}}function o(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function a(t,e){"use strict";return{compile:function(n){var r=function(){n.addClass(t.cloakClassName())},i=function(){n.removeClass(t.cloakClassName())};return t.onReady(function(){i()}),r(),function(n,o,a){a.translateCloak&&a.translateCloak.length&&(a.$observe("translateCloak",function(e){t(e).then(i,r)}),e.$on("$translateChangeSuccess",function(){t(a.translateCloak).then(i,r)}))}}}}function u(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(t,e,n){t.translateNamespace=o(t),t.translateNamespace&&"."===n.translateNamespace.charAt(0)?t.translateNamespace+=n.translateNamespace:t.translateNamespace=n.translateNamespace}}}}}function o(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(t,e,n){n.$observe("translateLanguage",function(e){t.translateLanguage=e}),t.$watch("translateLanguage",function(){t.$broadcast("translateLanguageChanged")})}}}}function c(t,e){"use strict";var n=function(n,r,i,o){return angular.isObject(r)||(r=t(r)(this)),e.instant(n,r,i,o)};return e.statefulFilter()&&(n.$stateful=!0),n}function l(t){"use strict";return t("translations")}return t.$inject=["$translate"],n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],r.$inject=["$interpolate","$translateSanitization"],i.$inject=["$translate","$q","$interpolate","$compile","$parse","$rootScope"],a.$inject=["$translate","$rootScope"],c.$inject=["$parse","$translate"],l.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(t),t.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",e),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",r),r.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",i),i.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateCloak",a),a.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",u),u.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",s),s.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",c),c.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",l),l.displayName="$translationCache","pascalprecht.translate"})},function(t,e,n){n(9),t.exports="contenteditable"},function(t,e){!function(t,e,n){"use strict";e.module("contenteditable",[]).directive("contenteditable",["$timeout",function(n){return{restrict:"A",require:"?ngModel",link:function(r,i,o,a){if(a){var u={};e.forEach(["stripBr","noLineBreaks","selectNonEditable","moveCaretToEndOnChange","stripTags"],function(t){var e=o[t];u[t]=e&&"false"!==e}),i.bind("input",function(t){r.$apply(function(){var t,e,r;t=i.html(),r=!1,u.stripBr&&(t=t.replace(/<br>$/,"")),u.noLineBreaks&&(e=t.replace(/<div>/g,"").replace(/<br>/g,"").replace(/<\/div>/g,""),e!==t&&(r=!0,t=e)),u.stripTags&&(r=!0,t=t.replace(/<\S[^><]*>/g,"")),a.$setViewValue(t),r&&a.$render(),""===t&&n(function(){i[0].blur(),i[0].focus()})})});var s=a.$render;a.$render=function(){var e,n,r,o;s&&s();var c=a.$viewValue||"";u.stripTags&&(c=c.replace(/<\S[^><]*>/g,"")),i.html(c),u.moveCaretToEndOnChange&&(e=i[0],r=document.createRange(),o=t.getSelection(),e.childNodes.length>0?(n=e.childNodes[e.childNodes.length-1],r.setStartAfter(n)):r.setStartAfter(e),r.collapse(!0),o.removeAllRanges(),o.addRange(r))},u.selectNonEditable&&i.bind("click",function(n){var r,i,o;o=n.toElement,o!==this&&"false"===e.element(o).attr("contenteditable")&&(r=document.createRange(),i=t.getSelection(),r.setStartBefore(o),r.setEndAfter(o),i.removeAllRanges(),i.addRange(r))})}}}}])}(window,window.angular)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(11),u=r(a),s="http",c="localhost",l="3000",f=function(t,e,n){return(0,u["default"])(i({method:n||"get",url:t},"post"===n?"data":"params",o({},e,{token:sessionStorage.getItem("studioToken")||localStorage.getItem("studioToken")})))},p={login:{post:function(t){return f(s+"://"+c+":"+l+"/auth",t,"post")}},questions:{get:function(){return f("./baza_pytan.json")},getByAuthor:function(){return f("./baza_pytan_kasia.json")},getByPage:function(t){return f(s+"://"+c+":"+l+"/baza_pytan",t)},post:function(t){return f("./test.json",t,"post")}},profile:{get:function(){return f("./profile.json")},post:function(t){return f("./test.json",t,"post")}},image:{post:function(t){return f("http://localhost:3000",t,"post")}}};e["default"]=p},function(t,e,n){t.exports=n(12)},function(t,e,n){"use strict";function r(t){var e=new a(t),n=o(a.prototype.request,e);return i.extend(n,a.prototype,e),i.extend(n,e),n}var i=n(13),o=n(14),a=n(15),u=t.exports=r();u.Axios=a,u.create=function(t){return r(t)},u.all=function(t){return Promise.all(t)},u.spread=n(33)},function(t,e,n){"use strict";function r(t){return"[object Array]"===_.call(t)}function i(t){return"[object ArrayBuffer]"===_.call(t)}function o(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function s(t){return"number"==typeof t}function c(t){return"undefined"==typeof t}function l(t){return null!==t&&"object"==typeof t}function f(t){return"[object Date]"===_.call(t)}function p(t){return"[object File]"===_.call(t)}function h(t){return"[object Blob]"===_.call(t)}function d(t){return"[object Function]"===_.call(t)}function v(t){return l(t)&&d(t.pipe)}function g(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function $(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function m(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function y(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||r(t)||(t=[t]),r(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(null,t[o],o,t)}function b(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=b(e[n],t):e[n]=t}for(var e={},n=0,r=arguments.length;n<r;n++)y(arguments[n],t);return e}function w(t,e,n){return y(e,function(e,r){n&&"function"==typeof e?t[r]=x(e,n):t[r]=e}),t}var x=n(14),_=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:i,isFormData:o,isArrayBufferView:a,isString:u,isNumber:s,isObject:l,isUndefined:c,isDate:f,isFile:p,isBlob:h,isFunction:d,isStream:v,isURLSearchParams:g,isStandardBrowserEnv:m,forEach:y,merge:b,extend:w,trim:$}},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";function r(t){this.defaults=o.merge(i,t),this.interceptors={request:new a,response:new a}}var i=n(16),o=n(13),a=n(18),u=n(19),s=n(31),c=n(32);r.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),t=o.merge(i,this.defaults,{method:"get"},t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url));var e=[u,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head"],function(t){r.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=r},function(t,e,n){"use strict";function r(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i=n(13),o=n(17),a=/^\)\]\}',?\n/,u={"Content-Type":"application/x-www-form-urlencoded"};t.exports={transformRequest:[function(t,e){return o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t){t=t.replace(a,"");try{t=JSON.parse(t)}catch(e){}}return t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:i.merge(u),post:i.merge(u),put:i.merge(u)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";function r(){this.handlers=[]}var i=n(13);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){(function(e){"use strict";var r=n(13),i=n(21);t.exports=function(t){t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var o;return"function"==typeof t.adapter?o=t.adapter:"undefined"!=typeof XMLHttpRequest?o=n(22):"undefined"!=typeof e&&(o=n(22)),Promise.resolve(t).then(o).then(function(e){return e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse)),Promise.reject(e)})}}).call(e,n(20))},function(t,e){function n(t){if(s===setTimeout)return setTimeout(t,0);try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}function r(t){if(c===clearTimeout)return clearTimeout(t);try{return c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}function i(){h&&f&&(h=!1,f.length?p=f.concat(p):d=-1,p.length&&o())}function o(){if(!h){var t=n(i);h=!0;for(var e=p.length;e;){for(f=p,p=[];++d<e;)f&&f[d].run();d=-1,e=p.length}f=null,h=!1,r(t)}}function a(t,e){this.fun=t,this.array=e}function u(){}var s,c,l=t.exports={};!function(){try{s=setTimeout}catch(t){s=function(){throw new Error("setTimeout is not defined")}}try{c=clearTimeout}catch(t){c=function(){throw new Error("clearTimeout is not defined")}}}();var f,p=[],h=!1,d=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];p.push(new a(t,e)),1!==p.length||h||n(o)},a.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=u,l.addListener=u,l.once=u,l.off=u,l.removeListener=u,l.removeAllListeners=u,l.emit=u,l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){(function(e){"use strict";var r=n(13),i=n(23),o=n(26),a=n(27),u=n(28),s=n(24),c="undefined"!=typeof window&&window.btoa||n(29);t.exports=function(t){return new Promise(function(l,f){var p=t.data,h=t.headers;r.isFormData(p)&&delete h["Content-Type"];var d=new XMLHttpRequest,v="onreadystatechange",g=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||u(t.url)||(d=new window.XDomainRequest,v="onload",g=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var $=t.auth.username||"",m=t.auth.password||"";h.Authorization="Basic "+c($+":"+m)}if(d.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[v]=function(){if(d&&(4===d.readyState||g)&&0!==d.status){var e="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?d.response:d.responseText,r={
data:n,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:e,config:t,request:d};i(l,f,r),d=null}},d.onerror=function(){f(s("Network Error",t)),d=null},d.ontimeout=function(){f(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED")),d=null},r.isStandardBrowserEnv()){var y=n(30),b=t.withCredentials||u(t.url)?y.read(t.xsrfCookieName):void 0;b&&(h[t.xsrfHeaderName]=b)}if("setRequestHeader"in d&&r.forEach(h,function(t,e){"undefined"==typeof p&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(w){if("json"!==d.responseType)throw w}"function"==typeof t.progress&&("post"===t.method||"put"===t.method?d.upload.addEventListener("progress",t.progress):"get"===t.method&&d.addEventListener("progress",t.progress)),void 0===p&&(p=null),d.send(p)})}}).call(e,n(20))},function(t,e,n){"use strict";var r=n(24);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n)):t(n)}},function(t,e,n){"use strict";var r=n(25);t.exports=function(t,e,n,i){var o=new Error(t);return r(o,e,n,i)}},function(t,e){"use strict";t.exports=function(t,e,n,r){return t.config=e,n&&(t.code=n),t.response=r,t}},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(13);t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(i.isArray(t)&&(e+="[]"),i.isArray(t)||(t=[t]),i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))}))}),o=a.join("&")}return o&&(t+=(t.indexOf("?")===-1?"?":"&")+o),t}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t){var e,n,i,o={};return t?(r.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e&&(o[e]=o[e]?o[e]+", "+n:n)}),o):o}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(n){var i=r.isString(n)?t(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e){"use strict";function n(){this.message="String contains an invalid character"}function r(t){for(var e,r,o=String(t),a="",u=0,s=i;o.charAt(0|u)||(s="=",u%1);a+=s.charAt(63&e>>8-u%1*8)){if(r=o.charCodeAt(u+=.75),r>255)throw new n;e=e<<8|r}return a}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=r},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(i)&&u.push("path="+i),r.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(){function t(t,n,r,i){n.drawImage(t,0,0,r,i);var a=o(e.toDataURL("image/jpeg")),u=new FormData;u.append("captured",a),s["default"].image.post(u)}var e=document.getElementById("canvas"),n=e.getContext("2d"),r=document.getElementById("video"),i=window.URL||window.webkitURL;return navigator.getMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia||navigator.mosGetUserMedia,navigator.getMedia({video:!0,audio:!1},function(t){r.src=i.createObjectURL(t),r.play(),c=t},function(t){console.log(t)}),{captureImage:function(){t(r,n,400,300)}}}function o(t){for(var e=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),i=new Uint8Array(r),o=0;o<e.length;o++)i[o]=e.charCodeAt(o);var a=new Blob([r],{type:n});return a}function a(){var t=c.getTracks()[0];t.stop(),video.pause()}Object.defineProperty(e,"__esModule",{value:!0}),e.runCamera=i,e.stopCamera=a;var u=n(10),s=r(u),c=void 0}]);