!function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof ne)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===I)return e;break;default:return ne(u(e))}if(e.nodeType===I)return ne(e)}function u(e){if(!e[0])return e;for(var t=0;t=0)&&(n=M(n)),0===n&&(n=null),r[t]=n}}),r}function M(e){var t=0,n=e.split(/\s*,\s*/);return G(n,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function A(e){return 0===e||null!=e}function D(e,t){var n=F,r=e+"s";return t?n+=ie:r+=" linear all",[n,r]}function T(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function O(e,t,n){G(n,function(n){e[n]=Q(e[n])?e[n]:t.style.getPropertyValue(n)})}var F,L,P,N,I=1,R="-add",U="-remove",j="ng-",V="-active",H="-prepare",z="ng-animate",q="$$ngAnimateChildren",Y="";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?(Y="-webkit-",F="WebkitTransition",L="webkitTransitionEnd transitionend"):(F="transition",L="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?(Y="-webkit-",P="WebkitAnimation",N="webkitAnimationEnd animationend"):(P="animation",N="animationend");var W,B,G,Z,Q,J,K,X,ee,te,ne,re,ie="Duration",oe="Property",ae="Delay",se="TimingFunction",ue="IterationCount",le="PlayState",ce=9999,fe=P+ae,de=P+ie,he=F+ae,pe=F+ie,me=t.$$minErr("ng"),ge=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o0&&(l=n.get(s),!l)){var c=o(a,"-stagger");r.addClass(i,c),l=E(e,i,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,c),n.put(s,l)}return l||{}}function M(e){z.push(e),g.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=l(),r=0;r=ne&&r>=ie&&(K=!0,g())}function z(){function t(){if(!Q){if(b(!1),G(le,function(e){var t=e[0],n=e[1];B.style[t]=n}),I(e,q),r.addClass(e,Ce),Ue.recalculateTimingStyles){if(_e=B.getAttribute("class")+" "+xe,Me=y(B,_e),Ie=T(B,_e,Me),Re=Ie.maxDelay,te=Math.max(Re,0),ie=Ie.maxDuration,0===ie)return void g();Ue.hasTransitions=Ie.transitionDuration>0,Ue.hasAnimations=Ie.animationDuration>0}if(Ue.applyAnimationDelay&&(Re="boolean"!=typeof q.delay&&A(q.delay)?parseFloat(q.delay):Re,te=Math.max(Re,0),Ie.animationDelay=Re,je=S(Re,!0),le.push(je),B.style[je[0]]=je[1]),ne=te*ye,ae=ie*ye,q.easing){var t,i=q.easing;Ue.hasTransitions&&(t=F+se,le.push([t,i]),B.style[t]=i),Ue.hasAnimations&&(t=P+se,le.push([t,i]),B.style[t]=i)}Ie.transitionDuration&&he.push(L),Ie.animationDuration&&he.push(N),ue=Date.now();var o=ne+we*ae,a=ue+o,s=e.data($e)||[],l=!0;if(s.length){var c=s[0];l=a>c.expectedEndTime,l?u.cancel(c.timer):s.push(g)}if(l){var f=u(n,o,!1);s[0]={timer:f,expectedEndTime:a},s.push(g),e.data($e,s)}he.length&&e.on(he.join(" "),H),q.to&&(q.cleanupStyles&&O(Y,B,Object.keys(q.to)),m(e,q))}}function n(){var t=e.data($e);if(t){for(var n=1;n0&&(Ie.transitionDuration&&0===Ae.transitionDuration||Ie.animationDuration&&0===Ae.animationDuration)&&Math.max(Ae.animationDelay,Ae.transitionDelay);o?u(t,Math.floor(o*Pe*ye),!1):t(),ee.resume=function(){i(!0)},ee.pause=function(){i(!1)}}}var q=n||{};q.$$prepared||(q=d(W(q)));var Y={},B=$(e);if(!B||!B.parentNode||!v.enabled())return E();var Q,J,K,X,ee,te,ne,ie,ae,ue,le=[],fe=e.attr("class"),de=i(q),he=[];if(0===q.duration||!c.animations&&!c.transitions)return E();var pe=q.event&&Z(q.event)?q.event.join(" "):q.event,me=pe&&q.structural,ge="",ve="";me?ge=o(pe,j,!0):pe&&(ge=pe),q.addClass&&(ve+=o(q.addClass,R)),q.removeClass&&(ve.length&&(ve+=" "),ve+=o(q.removeClass,U)),q.applyClassesEarly&&ve.length&&I(e,q);var xe=[ge,ve].join(" ").trim(),_e=fe+" "+xe,Ce=o(xe,V),Se=de.to&&Object.keys(de.to).length>0,Ee=(q.keyframeStyle||"").length>0;if(!Ee&&!Se&&!xe)return E();var Me,Ae;if(q.stagger>0){var De=parseFloat(q.stagger);Ae={transitionDelay:De,animationDelay:De,transitionDuration:0,animationDuration:0}}else Me=y(B,_e),Ae=_(B,xe,Me,ke);q.$$skipPreparationClasses||r.addClass(e,xe);var Te;if(q.transitionStyle){var Oe=[F,q.transitionStyle];k(B,Oe),le.push(Oe)}if(q.duration>=0){Te=B.style[F].length>0;var Fe=D(q.duration,Te);k(B,Fe),le.push(Fe)}if(q.keyframeStyle){var Le=[P,q.keyframeStyle];k(B,Le),le.push(Le)}var Pe=Ae?q.staggerIndex>=0?q.staggerIndex:t.count(Me):0,Ne=0===Pe;Ne&&!q.skipBlocking&&w(B,ce);var Ie=T(B,_e,Me),Re=Ie.maxDelay;te=Math.max(Re,0),ie=Ie.maxDuration;var Ue={};if(Ue.hasTransitions=Ie.transitionDuration>0,Ue.hasAnimations=Ie.animationDuration>0,Ue.hasTransitionAll=Ue.hasTransitions&&"all"===Ie.transitionProperty,Ue.applyTransitionDuration=Se&&(Ue.hasTransitions&&!Ue.hasTransitionAll||Ue.hasAnimations&&!Ue.hasTransitions),Ue.applyAnimationDuration=q.duration&&Ue.hasAnimations,Ue.applyTransitionDelay=A(q.delay)&&(Ue.applyTransitionDuration||Ue.hasTransitions),Ue.applyAnimationDelay=A(q.delay)&&Ue.hasAnimations,Ue.recalculateTimingStyles=ve.length>0,(Ue.applyTransitionDuration||Ue.applyAnimationDuration)&&(ie=q.duration?parseFloat(q.duration):ie,Ue.applyTransitionDuration&&(Ue.hasTransitions=!0,Ie.transitionDuration=ie,Te=B.style[F+oe].length>0,le.push(D(ie,Te))),Ue.applyAnimationDuration&&(Ue.hasAnimations=!0,Ie.animationDuration=ie,le.push(C(ie)))),0===ie&&!Ue.recalculateTimingStyles)return E();if(null!=q.delay){var je;"boolean"!=typeof q.delay&&(je=parseFloat(q.delay),te=Math.max(je,0)),Ue.applyTransitionDelay&&le.push(S(je)),Ue.applyAnimationDelay&&le.push(S(je,!0))}return null==q.duration&&Ie.transitionDuration>0&&(Ue.recalculateTimingStyles=Ue.recalculateTimingStyles||Ne),ne=te*ye,ae=ie*ye,q.skipBlocking||(Ue.blockTransition=Ie.transitionDuration>0,Ue.blockKeyframeAnimation=Ie.animationDuration>0&&Ae.animationDelay>0&&0===Ae.animationDuration),q.from&&(q.cleanupStyles&&O(Y,B,Object.keys(q.from)),p(e,q)),Ue.blockTransition||Ue.blockKeyframeAnimation?b(ie):q.skipBlocking||w(B,!1),{$$willAnimate:!0,end:l,start:function(){if(!Q)return ee={end:l,cancel:f,resume:null,pause:null},X=new s(ee),M(z),X}}}}]}],Ce=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,a,s,u,l,c,f){function d(e){return e.replace(/\bng-\S+\b/g,"")}function h(e,t){return ee(e)&&(e=e.split(" ")),ee(t)&&(t=t.split(" ")),e.filter(function(e){return t.indexOf(e)===-1}).join(" ")}function p(t,a,u){function l(e){var t={},n=$(e).getBoundingClientRect();return G(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=v.scrollTop;break;case"left":r+=v.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function c(){var t=e(g,{addClass:i,delay:!0,from:l(a)});return t.$$willAnimate?t:null}function f(e){return e.attr("class")||""}function p(){var t=d(f(u)),n=h(t,y),r=h(y,t),a=e(g,{to:l(u),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function m(){g.remove(),a.removeClass(n),u.removeClass(n)}var g=ne($(a).cloneNode(!0)),y=d(f(g));a.addClass(n),u.addClass(n),g.addClass(r),b.append(g);var w,x=c();if(!x&&(w=p(),!w))return m();var k=x||w;return{start:function(){function e(){n&&n.end()}var t,n=k.start();return n.done(function(){return n=null,!w&&(w=p())?(n=w.start(),n.done(function(){n=null,m(),t.complete()}),n):(m(),void t.complete())}),t=new s({end:e,cancel:e})}}}function m(e,t,n,r){var i=g(e,re),o=g(t,re),a=[];if(G(r,function(e){var t=e.out,r=e["in"],i=p(n,t,r);i&&a.push(i)}),i||o||0!==a.length)return{start:function(){function e(){G(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),G(a,function(e){t.push(e.start())});var n=new s({end:e,cancel:e});return s.all(t,function(e){n.complete(e)}),n}}}function g(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=_(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return re;var v=f[0].body,y=$(u),b=ne(t(y)||v.contains(y)?y:v);return function(e){return e.from&&e.to?m(e.from,e.to,e.classes,e.anchors):g(e)}}]}],Se=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=Z(n)?n:n.split(" ");for(var r=[],i={},o=0;o0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var l=1,c=2,p=" ",m=this.rules={skip:[],cancel:[],join:[]};m.join.push(function(e,t,n){return!t.structural&&a(t)}),m.skip.push(function(e,t,n){return!t.structural&&!a(t)}),m.skip.push(function(e,t,n){return"leave"===n.event&&t.structural}),m.skip.push(function(e,t,n){return n.structural&&n.state===c&&!t.structural}),m.cancel.push(function(e,t,n){return n.structural&&t.structural}),m.cancel.push(function(e,t,n){return n.state===c&&t.structural}),m.cancel.push(function(e,t,n){if(n.structural)return!1;var r=t.addClass,o=t.removeClass,a=n.addClass,s=n.removeClass;return!(te(r)&&te(o)||te(a)&&te(s))&&(i(r,s)||i(o,a))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(r,i,p,m,v,w,x,k,_,C,S){function E(){var e=!1;return function(t){e?t():i.$$postDigest(function(){e=!0,t()})}}function M(e,t){return g(e,t,{})}function A(e,t,n){var r=$(t),i=$(e),o=[],a=z[n];return a&&G(a,function(e){ie.call(e.node,r)?o.push(e.callback):"leave"===n&&ie.call(e.node,i)&&o.push(e.callback)}),o}function D(e,t,n){var r=u(t);return e.filter(function(e){var t=e.node===r&&(!n||e.callback===n);return!t})}function T(e,t){"close"!==e||t[0].parentNode||oe.off(t)}function O(e,t,n){function u(t,n,i,o){_(function(){var t=A(m,e,n);t.length?r(function(){G(t,function(t){t(e,i,o)}),T(i,e)}):T(i,e)}),t.progress(n,i,o)}function f(t){b(e,v),re(e,v),h(e,v),v.domOperation(),k.complete(!t)}var p,m,v=W(n);e=s(e),e&&(p=$(e),m=e.parent()),v=d(v);var k=new x,_=E();if(Z(v.addClass)&&(v.addClass=v.addClass.join(" ")),v.addClass&&!ee(v.addClass)&&(v.addClass=null),Z(v.removeClass)&&(v.removeClass=v.removeClass.join(" ")),v.removeClass&&!ee(v.removeClass)&&(v.removeClass=null),v.from&&!X(v.from)&&(v.from=null),v.to&&!X(v.to)&&(v.to=null),!p)return f(),k;var C=[p.getAttribute("class"),v.addClass,v.removeClass].join(" ");if(!K(C))return f(),k;var D=["enter","move","leave"].indexOf(t)>=0,O=S(),P=!V||O||j.get(p),I=!P&&U.get(p)||{},H=!!I.state;if(P||H&&I.state===l||(P=!N(e,m,t)),P)return O&&u(k,t,"start"),f(),O&&u(k,t,"close"),k;D&&F(e);var z={structural:D,element:e,event:t,addClass:v.addClass,removeClass:v.removeClass,close:f,options:v,runner:k};if(H){var q=o("skip",e,z,I);if(q)return I.state===c?(f(),k):(g(e,I,z),I.runner);var Y=o("cancel",e,z,I);if(Y)if(I.state===c)I.runner.end();else{if(!I.structural)return g(e,I,z),I.runner;I.close()}else{var B=o("join",e,z,I);if(B){if(I.state!==c)return y(e,D?t:null,v),t=z.event=I.event,v=g(e,I,z),I.runner;M(e,z)}}}else M(e,z);var Q=z.structural;if(Q||(Q="animate"===z.event&&Object.keys(z.options.to||{}).length>0||a(z)),!Q)return f(),L(e),k;var J=(I.counter||0)+1;return z.counter=J,R(e,l,z),i.$$postDigest(function(){var n=U.get(p),r=!n;n=n||{};var i=e.parent()||[],o=i.length>0&&("animate"===n.event||n.structural||a(n));if(r||n.counter!==J||!o)return r&&(re(e,v),h(e,v)),(r||D&&n.event!==t)&&(v.domOperation(),k.end()),void(o||L(e));t=!n.structural&&a(n,!0)?"setClass":n.event,R(e,c);var s=w(e,t,n.options);k.setHost(s),u(k,t,"start",{}),s.done(function(n){f(!n);var r=U.get(p);r&&r.counter===J&&L($(e)),u(k,t,"close",{})})}),k}function F(e){var t=$(e),n=t.querySelectorAll("["+Me+"]");G(n,function(e){var t=parseInt(e.getAttribute(Me),10),n=U.get(e);if(n)switch(t){case c:n.runner.end();case l:U.remove(e)}})}function L(e){var t=$(e);t.removeAttribute(Me),U.remove(t)}function P(e,t){return $(e)===$(t)}function N(e,t,n){var r,i=ne(m[0].body),o=P(e,i)||"HTML"===e[0].nodeName,a=P(e,p),s=!1,u=j.get($(e)),l=ne.data(e[0],Ae);for(l&&(t=l),t=$(t);t&&(a||(a=P(t,p)),t.nodeType===I);){var c=U.get(t)||{};if(!s){var f=j.get(t);if(f===!0&&u!==!1){u=!0;break}f===!1&&(u=!1),s=c.structural}if(te(r)||r===!0){var d=ne.data(t,q);Q(d)&&(r=d)}if(s&&r===!1)break;if(o||(o=P(t,i)),o&&a)break;t=a||!(l=ne.data(t,Ae))?t.parentNode:$(l)}var h=(!s||r)&&u!==!0;return h&&a&&o}function R(e,t,n){n=n||{},n.state=t;var r=$(e);r.setAttribute(Me,t);var i=U.get(r),o=i?B(i,n):n;U.put(r,o)}var U=new v,j=new v,V=null,H=i.$watch(function(){return 0===k.totalPendingRequests},function(e){e&&(H(),i.$$postDigest(function(){i.$$postDigest(function(){null===V&&(V=!0)})}))}),z=Object.create(null),Y=t.classNameFilter(),K=Y?function(e){return Y.test(e)}:function(){return!0},re=f(_),ie=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},oe={on:function(e,t,n){var r=u(t);z[e]=z[e]||[],z[e].push({node:r,callback:n}),ne(t).on("$destroy",function(){var i=U.get(r);i||oe.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||ee(arguments[0])){var r=z[e];r&&(z[e]=1===arguments.length?null:D(r,t,n))}else{t=arguments[0];for(var i in z)z[i]=D(z[i],t)}},pin:function(e,t){n(J(e),"element","not an element"),n(J(t),"parentElement","not an element"),e.data(Ae,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,O(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!V;else{var r=J(e);if(r){var i=$(e);1===n?t=!j.get(i):j.put(i,!t)}else t=V=!!e}return t}};return oe}]}],Te=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function i(e){return e.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,s,u,l,c,p){function m(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,r=n.parentNode;o.put(n,e);for(var a;r;){if(a=o.get(r)){a.processed||(a=t(a));break}r=r.parentNode}return(a||i).children.push(e),e}function n(e){var t,n=[],r=[];for(t=0;t=0,l=e.structural?b(a):[];if(l.length){var c=u?"to":"from";G(l,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][c]={animationID:r,element:ne(e)}})}else t.push(e)});var r={},i={};return G(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var u=a?a.animationID:s.animationID,l=u.toString();return void(r[l]||(r[l]=!0,t.push(e[u])))}var c=e[a.animationID],f=e[s.animationID],d=a.animationID.toString();if(!i[d]){var h=i[d]={structural:!0,beforeStart:function(){c.beforeStart(),f.beforeStart()},close:function(){c.close(),f.close()},classes:x(c.classes,f.classes),from:c,to:f,anchors:[]};h.classes.length?t.push(h):(t.push(c),t.push(f))}i[d].anchors.push({out:a.element,"in":s.element})}),t}function x(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r=0;t--){var n=a[t],r=u.get(n),i=r(e);if(i)return i}}function _(){c.addClass(z),T&&e.addClass(c,T),O&&(e.removeClass(c,O),O=null)}function C(e,t){function n(e){var n=i(e);n&&n.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function S(){var e=i(c);!e||"leave"===f&&y.$$domOperationFired||e.end()}function E(t){c.off("$destroy",S),n(c),v(c,y),h(c,y),y.domOperation(),T&&e.removeClass(c,T),c.removeClass(z),A.complete(!t)}y=d(y);var M=["enter","move","leave"].indexOf(f)>=0,A=new l({end:function(){E()},cancel:function(){E(!0)}});if(!a.length)return E(),A;t(c,A);var D=r(c.attr("class"),r(y.addClass,y.removeClass)),T=y.tempClasses;T&&(D+=" "+T,y.tempClasses=null);var O;return M&&(O="ng-"+f+H,e.addClass(c,O)),g.push({element:c,classes:D,event:f,structural:M,options:y,beforeStart:_,close:E}),c.on("$destroy",S),g.length>1?A:(s.$$postDigest(function(){var e=[];G(g,function(t){i(t.element)?e.push(t):t.close()}),g.length=0;var t=w(e),n=[];G(t,function(e){n.push({domNode:$(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close,r=e.anchors?e.from.element||e.to.element:e.element;if(i(r)){var o=k(e);o&&(t=o.start)}if(t){var a=t();a.done(function(e){n(!e)}),C(e,a)}else n()}})}),p(m(n))}),A)}}]}],Oe=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r["for"],function(r){a&&e.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[],function(){re=t.noop,W=t.copy,B=t.extend,ne=t.element,G=t.forEach,Z=t.isArray,ee=t.isString,X=t.isObject,te=t.isUndefined,Q=t.isDefined,K=t.isFunction,J=t.isElement}).directive("ngAnimateSwap",Oe).directive("ngAnimateChildren",ve).factory("$$rAFScheduler",ge).provider("$$animateQueue",De).provider("$$animation",Te).provider("$animateCss",_e).provider("$$animateCssDriver",Ce).provider("$$animateJs",Se).provider("$$animateJsDriver",Ee)}(window,window.angular)},{}],2:[function(e,t,n){e("./angular-animate"),t.exports="ngAnimate"},{"./angular-animate":1}],3:[function(e,t,n){!function(e,t){"use strict";function n(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&a.test("."+e)}function r(e,r){if(!n(r))throw o("badmember",'Dotted member path "@{0}" is invalid.',r);for(var i=r.split("."),a=0,s=i.length;a/g,">")}function m(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=u(e),!n&&M[e]&&(n=e),n||A[e]!==!0||(r("<"),r(e),a(i,function(n,i){var o=u(i),a="img"===e&&"src"===o||"background"===o;F[o]!==!0||D[o]===!0&&!t(n,a)||(r(" "),r(i),r('="'),r(p(n)),r('"'))}),r(">"))},end:function(e){e=u(e),n||A[e]!==!0||w[e]===!0||(r("")),e==n&&(n=!1)},chars:function(e){n||r(p(e))}}}function g(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),a=t.isDefined,s=t.isFunction,u=t.isObject,l=t.isString;return function(t,c,f){function d(e){e&&y.push(r(e))}function h(e,t){var n,r=v(e);y.push("'),d(t),y.push("")}if(null==t||""===t)return t;if(!l(t))throw o("notstring","Expected string but received: {0}",t);for(var p,m,g,v=s(f)?f:u(f)?function(){return f}:function(){return{}},$=t,y=[];p=$.match(n);)m=p[0],p[2]||p[4]||(m=(p[3]?"http://":"mailto:")+m),g=p.index,d($.substr(0,g)),h(m,p[0].replace(i,"")),$=$.substring(g+p[0].length);return d($),e(y.join(""))}}])}(window,window.angular)},{}],6:[function(e,t,n){e("./angular-sanitize"),t.exports="ngSanitize"},{"./angular-sanitize":5}],7:[function(e,t,n){angular.module("ui.sortable",[]).value("uiSortableConfig",{items:"> [ng-repeat],> [data-ng-repeat],> [x-ng-repeat]"}).directive("uiSortable",["uiSortableConfig","$timeout","$log",function(e,t,n){return{require:"?ngModel",scope:{ngModel:"=",uiSortable:"="},link:function(r,i,o,a){function s(e,t){var n="function"==typeof e,r="function"==typeof t;return n&&r?function(){e.apply(this,arguments),t.apply(this,arguments)}:r?t:e}function u(e){var t=e.data("ui-sortable");return t&&"object"==typeof t&&"ui-sortable"===t.widgetFullName?t:null}function l(t,n){return C[t]?("stop"===t&&(n=s(n,function(){r.$apply()}),n=s(n,v)),n=s(C[t],n)):S[t]&&(n=S[t](n)),n||"items"!==t&&"ui-model-items"!==t||(n=e.items),n}function c(e,t,n){function r(e,t){t in k||(k[t]=null)}angular.forEach(C,r);var i=null;if(t){var o;angular.forEach(t,function(t,n){if(!(e&&n in e)){if(n in _)return void("ui-floating"===n?k[n]="auto":k[n]=l(n,void 0));o||(o=angular.element.ui.sortable().options);var r=o[n];r=l(n,r),i||(i={}),i[n]=r,k[n]=r}})}return angular.forEach(e,function(e,t){return t in _?("ui-floating"!==t||e!==!1&&e!==!0||!n||(n.floating=e),void(k[t]=l(t,e))):(e=l(t,e),i||(i={}),i[t]=e,void(k[t]=e))}),i}function f(e){var t=e.sortable("option","placeholder");if(t&&t.element&&"function"==typeof t.element){var n=t.element();return n=angular.element(n)}return null}function d(e,t){var n=k["ui-model-items"].replace(/[^,]*>/g,""),r=e.find('[class="'+t.attr("class")+'"]:not('+n+")");return r}function h(e,t){var n=e.sortable("option","helper");return"clone"===n||"function"==typeof n&&t.item.sortable.isCustomHelperUsed()}function p(e,t,n){var r=null;return h(e,t)&&"parent"===e.sortable("option","appendTo")&&(r=n.last()),r}function m(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))}function g(e,t){for(var n=null,r=0;r=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function r(e,t,i){var o,a;if(e)if(_(e))for(o in e)"prototype"!==o&&"length"!==o&&"name"!==o&&e.hasOwnProperty(o)&&t.call(i,e[o],o,e);else if(li(e)||n(e)){var s="object"!=typeof e;for(o=0,a=e.length;o=0&&e.splice(n,1),n}function j(e,t){function n(e,t){var n,r=t.$$hashKey;if(li(e))for(var o=0,a=e.length;o2?z(arguments,2):[];return!_(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,H(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function Y(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:S(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":E(n)&&(r="$SCOPE"),r}function W(e,t){if(!v(e))return x(t)||(t=t?2:null),JSON.stringify(e,Y,t)}function B(e){return w(e)?JSON.parse(e):e}function G(e,t){e=e.replace(mi,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return ui(n)?t:n}function Z(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Q(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset(),i=G(t,r);return Z(e,n*(i-r))}function J(e){e=Jr(e).clone();try{e.empty()}catch(t){}var n=Jr("
").append(e).html();try{return e[0].nodeType===xi?Wr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Wr(t)})}catch(t){return Wr(n)}}function K(e){try{return decodeURIComponent(e)}catch(t){}}function X(e){var t={};return r((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),n!==-1&&(r=e.substring(0,n),i=e.substring(n+1)),r=K(r),$(r)&&(i=!$(i)||K(i),Yr.call(t,r)?li(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function ee(e){var t=[];return r(e,function(e,n){li(e)?r(e,function(e){t.push(ne(n,!0)+(e===!0?"":"="+ne(e,!0)))}):t.push(ne(n,!0)+(e===!0?"":"="+ne(e,!0)))}),t.length?t.join("&"):""}function te(e){return ne(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ne(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function re(e,t){var n,r,i=gi.length;for(r=0;r protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==re(i,"strict-di"),n(i,o?[o]:[],a)}}function ae(t,n,i){y(i)||(i={});var o={strictDi:!1};i=l(o,i);var a=function(){if(t=Jr(t),t.injector()){var r=t[0]===e.document?"document":J(t);throw oi("btstrpd","App already bootstrapped with this element '{0}'",r.replace(//,">"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=lt(n,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return e&&s.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!u.test(e.name)?a():(e.name=e.name.replace(u,""),ai.resumeBootstrap=function(e){return r(e,function(e){n.push(e)}),a()},void(_(ai.resumeDeferredBootstrap)&&ai.resumeDeferredBootstrap()))}function se(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ue(e){var t=ai.element(e).injector();if(!t)throw oi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function le(e,t){return t=t||"_",e.replace($i,function(e,n){return(n?t:"")+e.toLowerCase()})}function ce(){var t;if(!yi){var n=pi();Kr=v(n)?e.jQuery:n?e[n]:void 0,Kr&&Kr.fn.on?(Jr=Kr,l(Kr.fn,{scope:Ui.scope,isolateScope:Ui.isolateScope,controller:Ui.controller,injector:Ui.injector,inheritedData:Ui.inheritedData}),t=Kr.cleanData,Kr.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)n=Kr._data(r,"events"),n&&n.$destroy&&Kr(r).triggerHandler("$destroy");t(e)}):Jr=Le,ai.element=Jr,yi=!0}}function fe(e,t,n){if(!e)throw oi("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function de(e,t,n){return n&&li(e)&&(e=e[e.length-1]),fe(_(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function he(e,t){if("hasOwnProperty"===e)throw oi("badname","hasOwnProperty is not a valid {0} name",t)}function pe(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s=0)return"...";t.push(n)}return n})}function we(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):v(e)?"undefined":"string"!=typeof e?be(e):e}function xe(n){l(n,{bootstrap:ae,copy:j,extend:l,merge:c,equals:V,element:Jr,forEach:r,injector:lt,noop:h,bind:q,toJson:W,fromJson:B,identity:p,isUndefined:v,isDefined:$,isString:w,isFunction:_,isObject:y,isNumber:x,isElement:P,isArray:li,version:Si,isDate:k,lowercase:Wr,uppercase:Br,callbacks:{$$counter:0},getTestability:ue,reloadWithDebugInfo:se,$$minErr:t,$$csp:hi,$$encodeUriSegment:te,$$encodeUriQuery:ne,$$stringify:ve}),(Xr=$e(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:En}),e.provider("$compile",bt).directive({a:Bo,input:ha,textarea:ha,form:Xo,script:ss,select:cs,option:fs,ngBind:ga,ngBindHtml:$a,ngBindTemplate:va,ngClass:ba,ngClassEven:xa,ngClassOdd:wa,ngCloak:ka,ngController:_a,ngForm:ea,ngHide:es,ngIf:Ea,ngInclude:Ma,ngInit:Da,ngNonBindable:Ya,ngPluralize:Za,ngRepeat:Qa,ngShow:Xa,ngStyle:ts,ngSwitch:ns,ngSwitchWhen:rs,ngSwitchDefault:is,ngOptions:Ga,ngTransclude:as,ngModel:Ha,ngList:Ta,ngChange:ya,pattern:hs,ngPattern:hs,required:ds,ngRequired:ds,minlength:ms,ngMinlength:ms,maxlength:ps,ngMaxlength:ps,ngValue:ma,ngModelOptions:qa}).directive({ngInclude:Aa}).directive(Go).directive(Ca),e.provider({$anchorScroll:ct,$animate:to,$animateCss:io,$$animateJs:Xi,$$animateQueue:eo,$$AnimateRunner:ro,$$animateAsyncRun:no,$browser:gt,$cacheFactory:vt,$controller:St,$document:Et,$$isDocumentHidden:Mt,$exceptionHandler:At,$filter:Hn,$$forceReflow:fo,$interpolate:zt,$interval:qt,$http:Ut,$httpParamSerializer:Tt,$httpParamSerializerJQLike:Ot,$httpBackend:Vt,$xhrFactory:jt,$jsonpCallbacks:bo,$location:an,$log:sn,$parse:wn,$rootScope:Sn,$q:xn,$$q:kn,$sce:On,$sceDelegate:Tn,$sniffer:Fn,$templateCache:$t,$templateRequest:Ln,$$testability:Pn,$timeout:Nn,$window:Un,$$rAF:Cn,$$jqLite:nt,$$HashMap:zi,$$cookieReader:Vn})}])}function ke(){return++Mi}function _e(e){return Se(e.replace(Di,"ms-"))}function Ce(e,t){return t.toUpperCase()}function Se(e){return e.replace(Ai,Ce)}function Ee(e){return!Li.test(e)}function Me(e){var t=e.nodeType;return t===bi||!t||t===_i}function Ae(e){for(var t in Ei[e.ng339])return!0;return!1}function De(e){for(var t=0,n=e.length;t")+o[2],a=o[0];a--;)n=n.lastChild;u=H(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",r(u,function(e){s.appendChild(e)}),s}function Oe(t,n){n=n||e.document;var r;return(r=Fi.exec(t))?[n.createElement(r[1])]:(r=Te(t,n))?r.childNodes:[]}function Fe(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Le(e){if(e instanceof Le)return e;var t;if(w(e)&&(e=fi(e),t=!0),!(this instanceof Le)){if(t&&"<"!==e.charAt(0))throw Oi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Le(e)}t?qe(this,Oe(e)):_(e)?Qe(e):qe(this,e)}function Pe(e){return e.cloneNode(!0)}function Ne(e,t){if(t||Re(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;r0||(e.removeEventListener(t,s),delete a[t])};r(t.split(" "),function(e){u(e),Ti[e]&&u(Ti[e])})}else for(t in a)"$destroy"!==t&&e.removeEventListener(t,s),delete a[t]}function Re(e,t){var n=e.ng339,r=n&&Ei[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Ie(e)),delete Ei[n],e.ng339=void 0}}function Ue(e,t){var n=e.ng339,r=n&&Ei[n];return t&&!r&&(e.ng339=n=ke(),r=Ei[n]={events:{},data:{},handle:void 0}),r}function je(e,t,n){if(Me(e)){var r,i=$(n),o=!i&&t&&!y(t),a=!t,s=Ue(e,!o),u=s&&s.data;if(i)u[Se(t)]=n;else{if(a)return u;if(o)return u&&u[Se(t)];for(r in t)u[Se(r)]=t[r]}}}function Ve(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function He(e,t){t&&e.setAttribute&&r(t.split(" "),function(t){e.setAttribute("class",fi((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+fi(t)+" "," ")))})}function ze(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(e){e=fi(e),n.indexOf(" "+e+" ")===-1&&(n+=e+" ")}),e.setAttribute("class",fi(n))}}function qe(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r1&&(i=ye(i));for(var u=0;uc&&this.remove(h.key),t}},get:function(e){if(c";var r=Ce.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function H(e,t){try{e.addClass(t)}catch(n){}}function Y(e,t,n,r,i){e instanceof Jr||(e=Jr(e));var o=B(e,t,e,n,r,i);Y.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw oo("multilink","This element has already been linked.");fe(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),r=r||{};var s=r.parentBoundTranscludeFn,u=r.transcludeControllers,l=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=W(l));var c;if(c="html"!==a?Jr(me(a,Jr("
").append(e).html())):n?Ui.clone.call(e):e,u)for(var f in u)c.data("$"+f+"Controller",u[f].instance);return Y.$$addScopeInfo(c,t),n&&n(c,t),o&&o(t,c,c,s),n||(e=o=null),c}}function W(e){var t=e&&e[0];return t&&"foreignobject"!==I(t)&&ri.call(t).match(/SVG/)?"svg":"html"}function B(e,t,n,r,i,o){function a(e,n,r,i){var o,a,s,u,l,c,f,d,m;if(h){var g=n.length;for(m=new Array(g),l=0;l0)}else r.push(e);return Jr(r)}function ee(e,t,n){return function(r,i,o,a,s){return i=X(i[0],t,n),e(r,i,o,a,s)}}function te(e,t,n,r,i,o){var a;return e?Y(t,n,r,i,o):function(){return a||(a=Y(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function ne(e,t,n,o,a,s,u,c,f){function d(e,t,n,r){e&&(n&&(e=ee(e,n,r)),e.require=p.require,e.directiveName=m,(C===p||p.$$isolateScope)&&(e=be(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=ee(t,n,r)),t.require=p.require,t.directiveName=m,(C===p||p.$$isolateScope)&&(t=be(t,{isolateScope:!0})),c.push(t))}function h(e,o,a,s,f){function d(e,t,n,r){var i;if(E(e)||(r=n,n=t,t=e,e=void 0),O&&(i=b),n||(n=O?M.parent():M),!r)return f(e,t,i,n,U);var o=f.$$slots[r];if(o)return o(e,t,i,n,U);if(v(o))throw oo("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,J(M))}var h,p,m,g,$,b,w,M,A,T;t===a?(A=n,M=n.$$element):(M=Jr(a),A=new R(M,n)),$=o,C?g=o.$new(!0):x&&($=o.$parent),f&&(w=d,w.$$boundTransclude=f,w.isSlotFilled=function(e){return!!f.$$slots[e]}),k&&(b=ie(M,A,w,k,g,o,C)),C&&(Y.$$addScopeInfo(M,g,!0,!(S&&(S===C||S===C.$$originalDirective))),Y.$$addScopeClass(M,!0),g.$$isolateBindings=C.$$isolateBindings,T=xe(o,A,g,g.$$isolateBindings,C),T.removeWatches&&g.$on("$destroy",T.removeWatches));for(var F in b){var L=k[F],P=b[F],N=L.$$bindings.bindToController;if(D){N?P.bindingInfo=xe($,A,P.instance,N,L):P.bindingInfo={};var I=P();I!==P.instance&&(P.instance=I,M.data("$"+L.name+"Controller",I),P.bindingInfo.removeWatches&&P.bindingInfo.removeWatches(),P.bindingInfo=xe($,A,P.instance,N,L))}else P.instance=P(),M.data("$"+L.name+"Controller",P.instance),P.bindingInfo=xe($,A,P.instance,N,L)}for(r(k,function(e,t){var n=e.require;e.bindToController&&!li(n)&&y(n)&&l(b[t].instance,re(t,n,M,b))}),r(b,function(e){var t=e.instance;if(_(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(n){i(n)}if(_(t.$onInit))try{t.$onInit()}catch(n){i(n)}_(t.$doCheck)&&($.$watch(function(){t.$doCheck()}),t.$doCheck()),_(t.$onDestroy)&&$.$on("$destroy",function(){t.$onDestroy()})}),h=0,p=u.length;h=0;h--)m=c[h],we(m,m.isolateScope?g:o,M,A,m.require&&re(m.directiveName,m.require,M,b),w);r(b,function(e){var t=e.instance;_(t.$postLink)&&t.$postLink()})}f=f||{};for(var p,m,g,$,b,w=-Number.MAX_VALUE,x=f.newScopeDirective,k=f.controllerDirectives,C=f.newIsolateScopeDirective,S=f.templateDirective,M=f.nonTlbTranscludeDirective,A=!1,T=!1,O=f.hasElementTranscludeDirective,F=n.$$element=Jr(t),L=s,P=o,N=!1,U=!1,j=0,V=e.length;jp.priority)break;if(b=p.scope,b&&(p.templateUrl||(y(b)?(he("new/isolated scope",C||x,p,F),C=p):he("new/isolated scope",C,p,F)),x=x||p),m=p.name,!N&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(var B,G=j+1;B=e[G++];)if(B.transclude&&!B.$$tlb||B.replace&&(B.templateUrl||B.template)){U=!0;break}N=!0}if(!p.templateUrl&&p.controller&&(k=k||ge(),he("'"+m+"' controller",k[m],p,F),k[m]=p),b=p.transclude)if(A=!0,p.$$tlb||(he("transclusion",M,p,F),M=p),"element"===b)O=!0,w=p.priority,g=F,F=n.$$element=Jr(Y.$$createComment(m,n[m])),t=F[0],ye(a,z(g),t),g[0].$$parentNode=g[0].parentNode,P=te(U,g,o,w,L&&L.name,{nonTlbTranscludeDirective:M});else{var Z=ge();if(y(b)){g=[];var K=ge(),ne=ge();r(b,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,K[e]=t,Z[t]=null,ne[t]=n}),r(F.contents(),function(e){var t=K[xt(I(e))];t?(ne[t]=!0,Z[t]=Z[t]||[],Z[t].push(e)):g.push(e)}),r(ne,function(e,t){if(!e)throw oo("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ae in Z)Z[ae]&&(Z[ae]=te(U,Z[ae],o))}else g=Jr(Pe(t)).contents();F.empty(),P=te(U,g,o,void 0,void 0,{needsNewScope:p.$$isolateScope||p.$$newScope}),P.$$slots=Z}if(p.template)if(T=!0,he("template",S,p,F),S=p,b=_(p.template)?p.template(F,n):p.template,b=Oe(b),p.replace){if(L=p,g=Ee(b)?[]:_t(me(p.templateNamespace,fi(b))),t=g[0],1!==g.length||t.nodeType!==bi)throw oo("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m,"");ye(a,F,t);var se={$attr:{}},le=Q(t,[],se),fe=e.splice(j+1,e.length-(j+1));(C||x)&&oe(le,C,x),e=e.concat(le).concat(fe),ue(n,se),V=e.length}else F.html(b);if(p.templateUrl)T=!0,he("template",S,p,F),S=p,p.replace&&(L=p),h=ce(e.splice(j,e.length-j),F,n,a,A&&P,u,c,{controllerDirectives:k,newScopeDirective:x!==p&&x,newIsolateScopeDirective:C,templateDirective:S,nonTlbTranscludeDirective:M}),V=e.length;else if(p.compile)try{$=p.compile(F,n,P);var de=p.$$originalDirective||p;_($)?d(null,q(de,$),H,W):$&&d(q(de,$.pre),q(de,$.post),H,W)}catch(pe){i(pe,J(F))}p.terminal&&(h.terminal=!0,w=Math.max(w,p.priority))}return h.scope=x&&x.scope===!0,h.transcludeOnThisElement=A,h.templateOnThisElement=T,h.transclude=P,f.hasElementTranscludeDirective=O,h}function re(e,t,n,i){var o;if(w(t)){var a=t.match(C),s=t.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(o=i&&i[s],o=o&&o.instance),!o){var c="$"+s+"Controller";o=u?n.inheritedData(c):n.data(c)}if(!o&&!l)throw oo("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(li(t)){o=[];for(var f=0,d=t.length;fc.priority)&&c.restrict.indexOf(r)!==-1){if(s&&(c=d(c,{$$start:s,$$end:u})),!c.$$bindings){var $=c.$$bindings=a(c,c.name);y($.isolateScope)&&(c.$$isolateBindings=$.isolateScope)}e.push(c),l=c}return l}function se(e){if(f.hasOwnProperty(e))for(var n,r=t.get(e+g),i=0,o=r.length;i"+n+"",r.childNodes[0].childNodes;default:return n}}function ve(e,t){if("srcdoc"===t)return m.HTML;var n=I(e);if("src"===t||"ngSrc"===t){if(["img","video","audio","source","track"].indexOf(n)===-1)return m.RESOURCE_URL}else if("xlinkHref"===t||"form"===n&&"action"===t||"link"===n&&"href"===t)return m.RESOURCE_URL}function $e(e,t,r,i,o){var a=ve(e,i),s=!o,u=k[i]||o,l=n(r,s,a,u);if(l){if("multiple"===i&&"select"===I(e))throw oo("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",J(e));if(S.test(i))throw oo("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=ge()),c=o[i];c!==r&&(l=c&&n(c,!0,a,u),r=c),l&&(o[i]=l(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(l,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function ye(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i0&&M.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&M.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=kt(e,t);n&&n.length&&M.addClass(this.$$element,n);var r=kt(t,e);r&&r.length&&M.removeClass(this.$$element,r)},$set:function(e,t,n,o){var a,s=this.$$element[0],u=Je(s,e),l=Ke(e),c=e;if(u?(this.$$element.prop(e,t),o=u):l&&(this[l]=t,c=l),this[e]=t,o?this.$attr[e]=o:(o=this.$attr[e],o||(this.$attr[e]=o=le(e,"-"))),a=I(this.$$element),"a"===a&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=P(t,"src"===e);else if("img"===a&&"srcset"===e&&$(t)){for(var f="",d=fi(t),h=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(d)?h:/(,)/,m=d.split(p),g=Math.floor(m.length/2),y=0;y0?" ":"")+a}return n}function _t(e){e=Jr(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===ki||n.nodeType===xi&&""===n.nodeValue.trim())&&ti.call(e,t,1)}return e}function Ct(e,t){if(t&&w(t))return t;if(w(e)){var n=co.exec(e);if(n)return n[3]}}function St(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){he(t,"controller"),y(t)?l(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(e,n,r,i){if(!e||!y(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);e.$scope[n]=r}return function(t,a,s,u){var c,f,d,h;if(s=s===!0,u&&w(u)&&(h=u),w(t)){if(f=t.match(co),!f)throw lo("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);if(d=f[1],h=h||f[3],t=e.hasOwnProperty(d)?e[d]:pe(a.$scope,d,!0)||(n?pe(i,d,!0):void 0),!t)throw lo("ctrlreg","The controller with the name '{0}' is not registered.",d);de(t,d,!0)}if(s){var p=(li(t)?t[t.length-1]:t).prototype;return c=Object.create(p||null),h&&o(a,h,c,d||t.name),l(function(){var e=r.invoke(t,c,a,d);return e!==c&&(y(e)||_(e))&&(c=e,h&&o(a,h,c,d||t.name)),c},{instance:c,identifier:h})}return c=r.instantiate(t,a,d),h&&o(a,h,c,d||t.name),c}}]}function Et(){this.$get=["$window",function(e){return Jr(e.document)}]}function Mt(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function At(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function Dt(e){return y(e)?k(e)?e.toISOString():W(e):e}function Tt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return i(e,function(e,n){null===e||v(e)||(li(e)?r(e,function(e){t.push(ne(n)+"="+ne(Dt(e)))}):t.push(ne(n)+"="+ne(Dt(e))))}),t.join("&")}}}function Ot(){this.$get=function(){return function(e){function t(e,o,a){null===e||v(e)||(li(e)?r(e,function(e,n){t(e,o+"["+(y(e)?n:"")+"]")}):y(e)&&!k(e)?i(e,function(e,n){t(e,o+(a?"":"[")+n+(a?"":"]"))}):n.push(ne(o)+"="+ne(Dt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function Ft(e,t){if(w(e)){var n=e.replace(vo,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(ho)||Lt(n))&&(e=B(n))}}return e}function Lt(e){var t=e.match(mo);return t&&go[t[0]].test(e)}function Pt(e){function t(e,t){e&&(i[e]=i[e]?i[e]+", "+t:t)}var n,i=ge();return w(e)?r(e.split("\n"),function(e){n=e.indexOf(":"),t(Wr(fi(e.substr(0,n))),fi(e.substr(n+1)))}):y(e)&&r(e,function(e,n){t(Wr(n),fi(e))}),i}function Nt(e){var t;return function(n){if(t||(t=Pt(e)),n){var r=t[Wr(n)];return void 0===r&&(r=null),r}return t}}function It(e,t,n,i){return _(i)?i(e,t,n):(r(i,function(r){e=r(e,t,n)}),e)}function Rt(e){return 200<=e&&e<300}function Ut(){var e=this.defaults={transformResponse:[Ft],transformRequest:[function(e){return!y(e)||M(e)||D(e)||A(e)?e:W(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ye(po),put:ye(po),patch:ye(po)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},n=!1;this.useApplyAsync=function(e){return $(e)?(n=!!e,this):n};var i=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(o,a,s,u,c,f,d,p){function m(n){function i(e,t){for(var n=0,r=t.length;n=-1?n:0,(Rt(n)?x.resolve:x.reject)({data:e,status:n,headers:Nt(r),config:t,statusText:i})}function d(e){l(e.data,e.status,ye(e.headers()),e.statusText)}function h(){var e=m.pendingRequests.indexOf(t);e!==-1&&m.pendingRequests.splice(e,1)}var g,b,x=f.defer(),_=x.promise,E=t.headers,M="jsonp"===Wr(t.method),A=t.url; if(M?A=p.getTrustedResourceUrl(A):w(A)||(A=p.valueOf(A)),A=k(A,t.paramSerializer(t.params)),M&&(A=C(A,t.jsonpCallbackParam)),m.pendingRequests.push(t),_.then(h,h),!t.cache&&!e.cache||t.cache===!1||"GET"!==t.method&&"JSONP"!==t.method||(g=y(t.cache)?t.cache:y(e.cache)?e.cache:S),g&&(b=g.get(A),$(b)?O(b)?b.then(d,d):li(b)?l(b[1],b[0],ye(b[2]),b[3]):l(b,200,{},"OK"):g.put(A,_)),v(b)){var D=Rn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;D&&(E[t.xsrfHeaderName||e.xsrfHeaderName]=D),a(t.method,A,i,u,E,t.timeout,t.withCredentials,t.responseType,o(t.eventHandlers),o(t.uploadEventHandlers))}return _}function k(e,t){return t.length>0&&(e+=(e.indexOf("?")===-1?"?":"&")+t),e}function C(e,t){if(/[&?][^=]+=JSON_CALLBACK/.test(e))throw $o("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);var n=new RegExp("[&?]"+t+"=");if(n.test(e))throw $o("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e);return e+=(e.indexOf("?")===-1?"?":"&")+t+"=JSON_CALLBACK"}var S=u("$http");e.paramSerializer=w(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var E=[];return r(i,function(e){E.unshift(w(e)?d.get(e):d.invoke(e))}),m.pendingRequests=[],g("get","delete","head","jsonp"),b("post","put","patch"),m.defaults=e,m}]}function jt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Vt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Ht(e,r,e.defer,t,n[0])}]}function Ht(e,t,n,i,o){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=e,r.async=!0,a=function(e){r.removeEventListener("load",a),r.removeEventListener("error",a),o.body.removeChild(r),r=null;var s=-1,u="unknown";e&&("load"!==e.type||i.wasCalled(t)||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},r.addEventListener("load",a),r.addEventListener("error",a),o.body.appendChild(r),a}return function(o,s,u,l,c,f,d,h,p,m){function g(){w&&w(),x&&x.abort()}function y(e,t,r,i,o){$(C)&&n.cancel(C),w=x=null,e(t,r,i,o)}if(s=s||e.url(),"jsonp"===Wr(o))var b=i.createCallback(s),w=a(s,b,function(e,t){var n=200===e&&i.getResponse(b);y(l,e,n,"",t),i.removeCallback(b)});else{var x=t(o,s);x.open(o,s,!0),r(c,function(e,t){$(e)&&x.setRequestHeader(t,e)}),x.onload=function(){var e=x.statusText||"",t="response"in x?x.response:x.responseText,n=1223===x.status?204:x.status;0===n&&(n=t?200:"file"===In(s).protocol?404:0),y(l,n,t,x.getAllResponseHeaders(),e)};var k=function(){y(l,-1,null,null,"")};if(x.onerror=k,x.onabort=k,x.ontimeout=k,r(p,function(e,t){x.addEventListener(t,e)}),r(m,function(e,t){x.upload.addEventListener(t,e)}),d&&(x.withCredentials=!0),h)try{x.responseType=h}catch(_){if("json"!==h)throw _}x.send(v(u)?null:u)}if(f>0)var C=n(g,f);else O(f)&&f.then(g)}}function zt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(d,e).replace(h,t)}function s(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function u(o,u,d,h){function p(e){try{return e=T(e),h&&!$(e)?e:ve(e)}catch(t){r(yo.interr(o,t))}}if(!o.length||o.indexOf(e)===-1){var g;if(!u){var y=a(o);g=m(y),g.exp=o,g.expressions=[],g.$$watchDelegate=s}return g}h=!!h;for(var b,w,x,k=0,C=[],S=[],E=o.length,M=[],A=[];k1&&yo.throwNoconcat(o),!u||C.length){var D=function(e){for(var t=0,n=C.length;t4,d=f?z(arguments,4):[],h=t.setInterval,p=t.clearInterval,m=0,g=$(l)&&!l,v=(g?r:n).defer(),y=v.promise;return u=$(u)?u:0,y.$$intervalId=h(function(){g?i.defer(c):e.$evalAsync(c),v.notify(m++),u>0&&m>=u&&(v.resolve(m),p(y.$$intervalId),delete a[y.$$intervalId]),g||e.$apply()},s),a[y.$$intervalId]=v,y}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].promise["catch"](h),a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function Yt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=te(t[n]);return t.join("/")}function Wt(e,t){var n=In(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||xo[n.protocol]||null}function Bt(e,t){if(_o.test(e))throw ko("badpath",'Invalid url "{0}".',e);var n="/"!==e.charAt(0);n&&(e="/"+e);var r=In(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=X(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Gt(e,t){return e.slice(0,t.length)===t}function Zt(e,t){if(Gt(t,e))return t.substr(e.length)}function Qt(e){var t=e.indexOf("#");return t===-1?e:e.substr(0,t)}function Jt(e){return e.replace(/(#.+)|#$/,"$1")}function Kt(e){return e.substr(0,Qt(e).lastIndexOf("/")+1)}function Xt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function en(e,t,n){this.$$html5=!0,n=n||"",Wt(e,this),this.$$parse=function(e){var n=Zt(t,e);if(!w(n))throw ko("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Bt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ee(this.$$search),n=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Yt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return $(o=Zt(e,r))?(a=o,s=n&&$(o=Zt(n,o))?t+(Zt("/",o)||o):e+a):$(o=Zt(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function tn(e,t,n){Wt(e,this),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return Gt(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o,a=Zt(e,r)||Zt(t,r);v(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",v(a)&&(e=r,this.replace())):(o=Zt(n,a),v(o)&&(o=a)),Bt(o,this),this.$$path=i(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var t=ee(this.$$search),r=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Yt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return Qt(e)===Qt(t)&&(this.$$parse(t),!0)}}function nn(e,t,n){this.$$html5=!0,tn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e===Qt(r)?o=r:(a=Zt(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=ee(this.$$search),r=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Yt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function rn(e){return function(){return this[e]}}function on(e,t){return function(n){return v(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function an(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return $(t)?(e=t,this):e},this.html5Mode=function(e){return T(e)?(t.enabled=e,this):y(e)?(T(e.enabled)&&(t.enabled=e.enabled),T(e.requireBase)&&(t.requireBase=e.requireBase),(T(e.rewriteLinks)||w(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(a){throw l.url(i),l.$$state=o,a}}function u(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c,f,d=r.baseHref(),h=r.url();if(t.enabled){if(!d&&t.requireBase)throw ko("nobase","$location in HTML5 mode requires a tag to be present!");f=Xt(h)+(d||"/"),c=i.history?en:nn}else f=Qt(h),c=tn;var p=Kt(f);l=new c(f,p,"#"+e),l.$$parseLinkUrl(h,h),l.$$state=r.state();var m=/^\s*(javascript|mailto):/i;o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=Jr(e.target);"a"!==I(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!w(i)||!v(s.attr(i))){var u=s.prop("href"),c=s.attr("href")||s.attr("xlink:href");y(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=In(u.animVal).href),m.test(u)||!u||s.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(u,c)&&(e.preventDefault(),l.absUrl()!==r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}}),Jt(l.absUrl())!==Jt(h)&&r.url(l.absUrl(),!0);var g=!0;return r.onUrlChange(function(e,t){return Gt(e,p)?(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;e=Jt(e),l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(g=!1,u(i,o)))}),void(n.$$phase||n.$digest())):void(a.location.href=e)}),n.$watch(function(){var e=Jt(r.url()),t=Jt(l.absUrl()),o=r.state(),a=l.$$replace,c=e!==t||l.$$html5&&i.history&&o!==l.$$state;(g||c)&&(g=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(c&&s(t,a,o===l.$$state?null:l.$$state),u(e,o)))})),l.$$replace=!1}),l}]}function sn(){var e=!0,t=this;this.debugEnabled=function(t){return $(t)?(e=t,this):e},this.$get=["$window",function(n){function i(e){return e instanceof Error&&(e.stack?e=e.message&&e.stack.indexOf(e.message)===-1?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function o(e){var t=n.console||{},o=t[e]||t.log||h,a=!1;try{a=!!o.apply}catch(s){}return a?function(){var e=[];return r(arguments,function(t){e.push(i(t))}),o.apply(t,e)}:function(e,t){o(e,null==t?"":t)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function un(e){return e+""}function ln(e,t){return"undefined"!=typeof e?e:t}function cn(e,t){return"undefined"==typeof e?t:"undefined"==typeof t?e:e+t}function fn(e,t){var n=e(t);return!n.$stateful}function dn(e,t){var n,i,o;switch(e.type){case To.Program:n=!0,r(e.body,function(e){dn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case To.Literal:e.constant=!0,e.toWatch=[];break;case To.UnaryExpression:dn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case To.BinaryExpression:dn(e.left,t),dn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case To.LogicalExpression:dn(e.left,t),dn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case To.ConditionalExpression:dn(e.test,t),dn(e.alternate,t),dn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case To.Identifier:e.constant=!1,e.toWatch=[e];break;case To.MemberExpression:dn(e.object,t),e.computed&&dn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case To.CallExpression:o=!!e.filter&&fn(t,e.callee.name),n=o,i=[],r(e.arguments,function(e){dn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=o?i:[e];break;case To.AssignmentExpression:dn(e.left,t),dn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case To.ArrayExpression:n=!0,i=[],r(e.elements,function(e){dn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i;break;case To.ObjectExpression:n=!0,i=[],r(e.properties,function(e){dn(e.value,t),n=n&&e.value.constant&&!e.computed,e.value.constant||i.push.apply(i,e.value.toWatch)}),e.constant=n,e.toWatch=i;break;case To.ThisExpression:e.constant=!1,e.toWatch=[];break;case To.LocalsExpression:e.constant=!1,e.toWatch=[]}}function hn(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function pn(e){return e.type===To.Identifier||e.type===To.MemberExpression}function mn(e){if(1===e.body.length&&pn(e.body[0].expression))return{type:To.AssignmentExpression,left:e.body[0].expression,right:{type:To.NGValueParameter},operator:"="}}function gn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===To.Literal||e.body[0].expression.type===To.ArrayExpression||e.body[0].expression.type===To.ObjectExpression)}function vn(e){return e.constant}function $n(e,t){this.astBuilder=e,this.$filter=t}function yn(e,t){this.astBuilder=e,this.$filter=t}function bn(e){return _(e.valueOf)?e.valueOf():Eo.call(e)}function wn(){var e,t,n=ge(),i={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(e,t){i[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(o){function a(e,t){var r,i,a;switch(typeof e){case"string":if(e=e.trim(),a=e,r=n[a],!r){":"===e.charAt(0)&&":"===e.charAt(1)&&(i=!0,e=e.substring(2));var s=new Do(m),p=new Oo(s,o,m);r=p.parse(e),r.constant?r.$$watchDelegate=f:i?r.$$watchDelegate=r.literal?c:l:r.inputs&&(r.$$watchDelegate=u),n[a]=r}return d(r,t);case"function":return d(e,t);default:return d(h,t)}}function s(e,t){return null==e||null==t?e===t:("object"!=typeof e||(e=bn(e),"object"!=typeof e))&&(e===t||e!==e&&t!==t)}function u(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var u=s;return a=a[0],e.$watch(function(e){var t=a(e);return s(t,u)||(o=r(e,void 0,void 0,[t]),u=t&&bn(t)),o},t,n,i)}for(var l=[],c=[],f=0,d=a.length;f0&&f(this.$$state),r},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return b(t,A,e)},function(t){return b(t,$,e)},t)}});var A=w;return C.prototype=s.prototype,C.defer=o,C.reject=$,C.when=w,C.resolve=A,C.all=x,C.race=k,C}function Cn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Sn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=a(),this.$$ChildScope=null}return t.prototype=e,t}var i=10,o=t("$rootScope"),s=null,u=null;this.digestTtl=function(e){return arguments.length&&(i=e),i},this.$get=["$exceptionHandler","$parse","$browser",function(t,l,c){function f(e){e.currentScope.$$destroyed=!0}function d(e){9===Qr&&(e.$$childHead&&d(e.$$childHead),e.$$nextSibling&&d(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function p(){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 m(e){if(C.$$phase)throw o("inprog","{0} already in progress",C.$$phase);C.$$phase=e}function g(){C.$$phase=null}function $(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function b(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function w(){}function x(){for(;M.length;)try{M.shift()()}catch(e){t(e)}u=null}function k(){null===u&&(u=c.defer(function(){C.$apply(x)}))}p.prototype={constructor:p,$new:function(t,n){var r;return n=n||this,t?(r=new p,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!==this)&&r.$on("$destroy",f),r},$watch:function(e,t,n,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,a=o.$$watchers,u={fn:t,last:w,get:i,exp:r||e,eq:!!n};return s=null,_(t)||(u.fn=h),a||(a=o.$$watchers=[],a.$$digestWatchIndex=-1),a.unshift(u),a.$$digestWatchIndex++,$(this,1),function(){var e=U(a,u);e>=0&&($(o,-1),et){f++;for(r in a)Yr.call(o,r)||(g--,delete a[r])}}else a!==o&&(a=o,f++);return f}}function i(){if(m?(m=!1,t(o,o,u)):t(o,s,u),c)if(y(o))if(n(o)){s=new Array(o.length);for(var e=0;e1,f=0,d=l(e,r),h=[],p={},m=!0,g=0;return this.$watch(d,i)},$digest:function(){var e,n,r,a,l,f,d,h,p,v,$,y=i,b=this,k=[];m("$digest"),c.$$checkUrlChange(),this===C&&null!==u&&(c.defer.cancel(u),x()),s=null;do{d=!1,p=b;for(var M=0;M-1)throw Fo("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=di(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(C(e))return new RegExp("^"+e.source+"$");throw Fo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Dn(e){var t=[];return $(e)&&r(e,function(e){t.push(An(e))}),t}function Tn(){this.SCE_CONTEXTS=Lo;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Dn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Dn(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Rn(t):!!e.exec(t.href)}function i(n){var i,o,a=In(n.toString()),s=!1;for(i=0,o=e.length;i to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=ye(Lo);i.isEnabled=function(){return e},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=p),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:t(n,function(t){return i.getTrusted(e,t)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return r(Lo,function(e,t){var n=Wr(t);i[Mn("parse_as_"+n)]=function(t){return o(e,t)},i[Mn("get_trusted_"+n)]=function(t){return a(e,t)},i[Mn("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function Fn(){this.$get=["$window","$document",function(e,t){var n={},r=e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id),i=!r&&e.history&&e.history.pushState,o=f((/android (\d+)/.exec(Wr((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=s.body&&s.body.style,l=!1,c=!1;return u&&(l=!!("transition"in u||"webkitTransition"in u),c=!!("animation"in u||"webkitAnimation"in u)),{history:!(!i||o<4||a),hasEvent:function(e){if("input"===e&&Qr)return!1;if(v(n[e])){var t=s.createElement("div");n[e]="on"+e in t}return n[e]},csp:hi(),transitions:l,animations:c,android:o}}]}function Ln(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,u){function c(e){return u||(e=No("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e)),i.reject(e)}a.totalPendingRequests++,w(s)&&!v(n.get(s))||(s=o.getTrustedResourceUrl(s));var f=r.defaults&&r.defaults.transformResponse;return li(f)?f=f.filter(function(e){return e!==Ft}):f===Ft&&(f=null),r.get(s,l({cache:n,transformResponse:f},e))["finally"](function(){a.totalPendingRequests--}).then(function(e){return n.put(s,e.data),e.data},c)}return a.totalPendingRequests=0,a}]}function Pn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var i={};return i.findBindings=function(e,t,n){var i=e.getElementsByClassName("ng-binding"),o=[];return r(i,function(e){var i=ai.element(e).data("$binding");i&&r(i,function(r){if(n){var i=new RegExp("(^|\\s)"+di(t)+"(\\s|\\||$)");i.test(r)&&o.push(e)}else r.indexOf(t)!==-1&&o.push(e)})}),o},i.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i0&&(l=n(a.substring(0,u)),v(i[l])&&(i[l]=n(a.substring(u+1))));return i}}function Vn(){this.$get=jn}function Hn(e){function t(i,o){if(y(i)){var a={};return r(i,function(e,n){a[n]=t(n,e)}),a}return e.factory(i+n,o)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Bn),t("date",ur),t("filter",zn),t("json",lr),t("limitTo",cr),t("lowercase",Yo),t("number",Gn),t("orderBy",dr),t("uppercase",Wo)}function zn(){return function(e,r,i,o){if(!n(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var a,s,u=Wn(r);switch(u){case"function":a=r;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=qn(r,i,o,s);break;default:return e}return Array.prototype.filter.call(e,a)}}function qn(e,t,n,r){var i,o=y(e)&&n in e;return t===!0?t=V:_(t)||(t=function(e,t){return!v(e)&&(null===e||null===t?e===t:!(y(t)||y(e)&&!g(e))&&(e=Wr(""+e),t=Wr(""+t),e.indexOf(t)!==-1))}),i=function(i){return o&&!y(i)?Yn(i,e[n],t,n,!1):Yn(i,e,t,n,r)}}function Yn(e,t,n,r,i,o){var a=Wn(e),s=Wn(t);if("string"===s&&"!"===t.charAt(0))return!Yn(e,t.substring(1),n,r,i);if(li(e))return e.some(function(e){return Yn(e,t,n,r,i)});switch(a){case"object":var u;if(i){for(u in e)if("$"!==u.charAt(0)&&Yn(e[u],t,n,r,!0))return!0;return!o&&Yn(e,t,n,r,!1)}if("object"===s){for(u in t){var l=t[u];if(!_(l)&&!v(l)){var c=u===r,f=c?e:e[u];if(!Yn(f,l,n,r,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Wn(e){return null===e?"null":typeof e}function Bn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return v(n)&&(n=t.CURRENCY_SYM),v(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Jn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Gn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Jn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Zn(e){var t,n,r,i,o,a=0;for((n=e.indexOf(jo))>-1&&(e=e.replace(jo,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===Vo;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Vo;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>Uo&&(t=t.splice(0,Uo-1),a=n-1,n=1),{d:t,e:a,i:n}}function Qn(e,t,n,r){var i=e.d,o=i.length-e.i;t=v(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o0?h=c.splice(f,c.length):(h=c,c=[0]);var p=[];for(c.length>=t.lgSize&&p.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)p.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&p.unshift(c.join("")),l=p.join(n),h.length&&(l+=r+h.join("")),d&&(l+="e+"+d)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Kn(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,i="-")),e=""+e;e.length0||a>-n)&&(a+=n),0===a&&n===-12&&(a=12),Kn(a,t,r,i)}}function er(e,t,n){return function(r,i){var o=r["get"+e](),a=(n?"STANDALONE":"")+(t?"SHORT":""),s=Br(a+e);return i[s][o]}}function tr(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Kn(Math[r>0?"floor":"ceil"](r/60),2)+Kn(Math.abs(r%60),2)}function nr(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function rr(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ir(e){return function(t){var n=nr(t.getFullYear()),r=rr(t),i=+r-+n,o=1+Math.round(i/6048e5);return Kn(o,e)}}function or(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function ar(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function sr(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function ur(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=f(t[9]+t[10]),o=f(t[9]+t[11])),a.call(r,f(t[1]),f(t[2])-1,f(t[3]));var u=f(t[4]||0)-i,l=f(t[5]||0)-o,c=f(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,l,c,d),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var a,s,u="",l=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,w(n)&&(n=qo.test(n)?f(n):t(n)),x(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;i;)s=zo.exec(i),s?(l=H(l,s,1),i=l.pop()):(l.push(i),i=null);var c=n.getTimezoneOffset();return o&&(c=G(o,c),n=Q(n,o,!0)),r(l,function(t){a=Ho[t],u+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function lr(){return function(e,t){return v(t)&&(t=2),W(e,t)}}function cr(){return function(e,t,r){return t=Math.abs(Number(t))===1/0?Number(t):f(t),ui(t)?e:(x(e)&&(e=e.toString()),n(e)?(r=!r||isNaN(r)?0:f(r),r=r<0?Math.max(0,e.length+r):r,t>=0?fr(e,r,r+t):0===r?fr(e,t,e.length):fr(e,Math.max(0,r+t),r)):e)}}function fr(e,t,n){return w(e)?e.slice(t,n):ei.call(e,t,n)}function dr(e){function r(t){return t.map(function(t){var n=1,r=p;if(_(t))r=t;else if(w(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant))){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function i(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return _(e.valueOf)&&(e=e.valueOf(),i(e))?e:g(e)&&(e=e.toString(),i(e))?e:e}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(y(o)&&(o=e.index),y(a)&&(a=t.index)),o!==a&&(n=o=m},a.$observe("min",function(e){m=d(e),s.$validate()})}if($(a.max)||a.ngMax){var g;s.$validators.max=function(e){return!f(e)||v(g)||n(e)<=g},a.$observe("max",function(e){g=d(e),s.$validate()})}}}function Cr(e,t,n,r){var i=t[0],o=r.$$hasNativeValidators=y(i.validity);o&&r.$parsers.push(function(e){var n=t.prop(qr)||{};return n.badInput||n.typeMismatch?void 0:e})}function Sr(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:ia.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!x(t))throw ja("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function Er(e){return $(e)&&!x(e)&&(e=parseFloat(e)),ui(e)?void 0:e}function Mr(e){return(0|e)===e}function Ar(e){var t=e.toString(),n=t.indexOf(".");if(n===-1){if(-1=a},n.$observe("min",function(e){a=Er(e),r.$validate()})),($(n.max)||n.ngMax)&&(r.$validators.max=function(e){return r.$isEmpty(e)||v(s)||e<=s},n.$observe("max",function(e){s=Er(e),r.$validate()})),$(n.step)||n.ngStep){var u;r.$validators.step=function(e,t){return r.$isEmpty(t)||v(u)||Dr(t,a||0,u)},n.$observe("step",function(e){u=Er(e),r.$validate()})}}function Or(e,t,n,r,i,o){function a(e,r){t.attr(e,n[e]),n.$observe(e,r)}function s(e){if(f=Er(e),!ui(r.$modelValue))if(c){var n=t.val();f>n&&(n=f,t.val(n)),r.$setViewValue(n)}else r.$validate()}function u(e){if(d=Er(e),!ui(r.$modelValue))if(c){var n=t.val();d=f},a("min",s)),g&&(r.$validators.max=c?function(){return!0}:function(e,t){return r.$isEmpty(t)||v(d)||t<=d},a("max",u)),y&&(r.$validators.step=c?function(){return!p.stepMismatch}:function(e,t){return r.$isEmpty(t)||v(h)||Dr(t,f||0,h)},a("step",l))}function Fr(e,t,n,r,i,o){wr(e,t,n,r,i,o),yr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||na.test(n)}}function Lr(e,t,n,r,i,o){wr(e,t,n,r,i,o),yr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||ra.test(n)}}function Pr(e,t,n,r){var i=!n.ngTrim||"false"!==fi(n.ngTrim);v(n.name)&&t.attr("name",a());var o=function(e){var o;t[0].checked&&(o=n.value,i&&(o=fi(o)),r.$setViewValue(o,e&&e.type))};t.on("click",o),r.$render=function(){var e=n.value;i&&(e=fi(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)}function Nr(e,t,n,r,i){var o;if($(r)){if(o=e(r),!o.constant)throw ja("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function Ir(e,t,n,r,i,o,a,s){var u=Nr(s,e,"ngTrueValue",n.ngTrueValue,!0),l=Nr(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return V(e,u)}),r.$parsers.push(function(e){return e?u:l})}function Rr(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r0||C[e])&&(C[e]=(C[e]||0)+t,C[e]===+(t>0)&&n.push(e))}),n.join(" ")}function g(e){e===t?d(y):h(y),S=e}function v(e){var t=o(e);t!==y&&$(t)}function $(e){S===t&&p(y,e),y=e}var y,b=f[e].trim(),w=":"===b.charAt(0)&&":"===b.charAt(1),x=w?a:o,k=u(b,x),_=w?v:$,C=c.data("$classCounts"),S=!0;C||(C=ge(),c.data("$classCounts",C)),"ngClass"!==e&&(s||(s=u("$index",function(e){return 1&e})),l.$watch(s,g)),l.$watch(k,_,w)}}}]}function Ur(e,t,n,r,i,o,a,s,u){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=u(n.name||"",!1)(e),this.$$parentForm=Zo,this.$options=Va,this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,this.$$scope=e,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,gr(this),jr(this)}function jr(e){e.$$scope.$watch(function(){var t=e.$$ngModelGet(e.$$scope);if(t!==e.$modelValue&&(e.$modelValue===e.$modelValue||t===t)){e.$modelValue=e.$$rawModelValue=t,e.$$parserValid=void 0;for(var n=e.$formatters,r=n.length,i=t;r--;)i=n[r](i);e.$viewValue!==i&&(e.$$updateEmptyClasses(i),e.$viewValue=e.$$lastCommittedViewValue=i,e.$render(),e.$$runValidators(e.$modelValue,e.$viewValue,h))}return t})}function Vr(e){this.$$options=e}function Hr(e,t){r(t,function(t,n){$(e[n])||(e[n]=t)})}var zr=/^\/(.+)\/([a-z]*)$/,qr="validity",Yr=Object.prototype.hasOwnProperty,Wr=function(e){return w(e)?e.toLowerCase():e},Br=function(e){return w(e)?e.toUpperCase():e},Gr=function(e){return w(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Zr=function(e){return w(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)&-33)}):e};"i"!=="I".toLowerCase()&&(Wr=Gr,Br=Zr);var Qr,Jr,Kr,Xr,ei=[].slice,ti=[].splice,ni=[].push,ri=Object.prototype.toString,ii=Object.getPrototypeOf,oi=t("ng"),ai=e.angular||(e.angular={}),si=0;Qr=e.document.documentMode;var ui=Number.isNaN||function(e){return e!==e};h.$inject=[],p.$inject=[];var li=Array.isArray,ci=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,fi=function(e){return w(e)?e.trim():e},di=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#(?:<\/\1>|)$/,Li=/<|&#?\w+;/,Pi=/<([\w:-]+)/,Ni=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ii={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Ii.optgroup=Ii.option,Ii.tbody=Ii.tfoot=Ii.colgroup=Ii.caption=Ii.thead,Ii.th=Ii.td;var Ri=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Ui=Le.prototype={ready:Qe,toString:function(){var e=[];return r(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Jr(e>=0?this[e]:this[this.length+e])},length:0,push:ni,sort:[].sort,splice:[].splice},ji={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){ji[Wr(e)]=e});var Vi={};r("input,select,option,textarea,button,form,details".split(","),function(e){Vi[e]=!0});var Hi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};r({data:je,removeData:Re,hasData:Ae,cleanData:De},function(e,t){Le[t]=e}),r({data:je,inheritedData:We,scope:function(e){return Jr.data(e,"$scope")||We(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Jr.data(e,"$isolateScope")||Jr.data(e,"$isolateScopeNoTemplate")},controller:Ye,injector:function(e){return We(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Ve,css:function(e,t,n){return t=_e(t),$(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,n){var r,i=e.nodeType;if(i!==xi&&i!==wi&&i!==ki&&e.getAttribute){var o=Wr(t),a=ji[o];return $(n)?void(null===n||n===!1&&a?e.removeAttribute(t):e.setAttribute(t,a?o:n)):(r=e.getAttribute(t),a&&null!==r&&(r=o),null===r?void 0:r)}},prop:function(e,t,n){return $(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(v(t)){var n=e.nodeType;return n===bi||n===xi?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(v(t)){if(e.multiple&&"select"===I(e)){var n=[];return r(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){return v(t)?e.innerHTML:(Ne(e,!0),void(e.innerHTML=t))},empty:Be},function(e,t){Le.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Be&&v(2===e.length&&e!==Ve&&e!==Ye?t:n)){if(y(t)){for(r=0;r=0?t.split(" "):[t],u=s.length,l=function(t,r,i){var s=o[t];s||(s=o[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,a)),s.push(n)};u--;)t=s[u],Ti[t]?(l(Ti[t],tt),l(t,void 0,!0)):l(t)}},off:Ie,one:function(e,t,n){e=Jr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,i=e.parentNode;Ne(e),r(new Le(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(e){var t=[];return r(e.childNodes,function(e){e.nodeType===bi&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===bi||n===Ci){t=new Le(t);for(var r=0,i=t.length;r/,Yi=/^[^(]*\(\s*([^)]*)\)/m,Wi=/,/,Bi=/^\s*(_?)(\S+?)\1\s*$/,Gi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Zi=t("$injector");lt.$$annotate=ut;var Qi=t("$animate"),Ji=1,Ki="ng-animate",Xi=function(){this.$get=h},eo=function(){var e=new it,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(e,t,n){var i=!1;return t&&(t=w(t)?t.split(" "):li(t)?t:[],r(t,function(t){t&&(i=!0,e[t]=n)})),i}function a(){r(t,function(t){var n=e.get(t);if(n){var i=ht(t.attr("class")),o="",a="";r(n,function(e,t){var n=!!i[t];e!==n&&(e?o+=(o.length?" ":"")+t:a+=(a.length?" ":"")+t)}),r(t,function(e){o&&ze(e,o),a&&He(e,a)}),e.remove(t)}}),t.length=0}function s(n,r,s){var u=e.get(n)||{},l=o(u,r,!0),c=o(u,s,!1);(l||c)&&(e.put(n,u),t.push(n),1===t.length&&i.$$postDigest(a))}return{enabled:h,on:h,off:h,pin:h,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},to=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Qi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+Ki+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw Qi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Ki)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=dt(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&Jr(r),i=i&&Jr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",pt(o))},move:function(n,r,i,o){return r=r&&Jr(r),i=i&&Jr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",pt(o))},leave:function(t,n){return e.push(t,"leave",pt(n),function(){t.remove()})},addClass:function(t,n,r){return r=pt(r),r.addClass=ft(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=pt(r),r.removeClass=ft(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=pt(i),i.addClass=ft(i.addClass,n),i.removeClass=ft(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=pt(o),o.from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=ft(o.tempClasses,i),e.push(t,"animate",o)}}}]}],no=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e <= >= && || ! = |".split(" "),function(e){Mo[e]=!0});var Ao={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},Do=function(e){this.options=e};Do.prototype={constructor:Do,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=$(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw So("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:To.Program,body:e}},expressionStatement:function(){return{type:To.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!pn(e))throw So("lval","Trying to assign a value to a non l-value");e={type:To.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:To.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:To.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:To.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:To.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:To.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:To.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:To.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:To.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=j(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:To.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:To.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:To.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:To.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:To.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do e.push(this.filterChain());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:To.Identifier,name:e.text}},constant:function(){return{type:To.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:To.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:To.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:To.ObjectExpression,properties:t}},throwError:function(e,t){throw So("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw So("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw So("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{"this":{type:To.ThisExpression},$locals:{type:To.LocalsExpression}}},$n.prototype={compile:function(e){var t=this,n=this.astBuilder.ast(e);this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},dn(n,t.$filter);var i,o="";if(this.stage="assign",i=mn(n)){this.state.computing="assign";var a=this.nextId();this.recurse(i,a),this.return_(a),o="fn.assign="+this.generateFunction("assign","s,v,l")}var s=hn(n.body);t.stage="inputs",r(s,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push(r),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(n);var u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+o+this.watchFns()+"return fn;",l=new Function("$filter","getStringValue","ifDefined","plus",u)(this.$filter,un,ln,cn);return this.state=this.stage=void 0,l.literal=gn(n),l.constant=vn(n),l},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return r(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return r(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,i,o,a){var s,u,l,c,f,d=this;if(i=i||h,!a&&$(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,i,o,!0));switch(e.type){case To.Program:r(e.body,function(t,n){d.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?d.current().body.push(u,";"):d.return_(u)});break;case To.Literal:c=this.escape(e.value),this.assign(t,c),i(t||c);break;case To.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),c=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,c),i(c);break;case To.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){u=e}),c="+"===e.operator?this.plus(s,u):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(u,0):"("+s+")"+e.operator+"("+u+")",this.assign(t,c),i(c);break;case To.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),i(t);break;case To.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),i(t);break;case To.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),function(){d.if_("inputs"===d.stage||"s",function(){o&&1!==o&&d.if_(d.isNull(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),d.assign(t,d.nonComputedMember("s",e.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),i(t);break;case To.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,s,void 0,function(){d.if_(d.notNull(s),function(){e.computed?(u=d.nextId(),d.recurse(e.property,u),d.getStringValue(u),o&&1!==o&&d.if_(d.not(d.computedMember(s,u)),d.lazyAssign(d.computedMember(s,u),"{}")),c=d.computedMember(s,u),d.assign(t,c),n&&(n.computed=!0,n.name=u)):(o&&1!==o&&d.if_(d.isNull(d.nonComputedMember(s,e.property.name)),d.lazyAssign(d.nonComputedMember(s,e.property.name),"{}")),c=d.nonComputedMember(s,e.property.name),d.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){d.assign(t,"undefined")}),i(t)},!!o);break;case To.CallExpression:t=t||this.nextId(),e.filter?(u=d.filter(e.callee.name),l=[],r(e.arguments,function(e){var t=d.nextId();d.recurse(e,t),l.push(t)}),c=u+"("+l.join(",")+")",d.assign(t,c),i(t)):(u=d.nextId(),s={},l=[],d.recurse(e.callee,u,s,function(){d.if_(d.notNull(u),function(){r(e.arguments,function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,function(e){l.push(e)})}),c=s.name?d.member(s.context,s.name,s.computed)+"("+l.join(",")+")":u+"("+l.join(",")+")",d.assign(t,c)},function(){d.assign(t,"undefined")}),i(t)}));break;case To.AssignmentExpression:u=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){d.if_(d.notNull(s.context),function(){d.recurse(e.right,u),c=d.member(s.context,s.name,s.computed)+e.operator+u,d.assign(t,c),i(t||c)})},1);break;case To.ArrayExpression:l=[],r(e.elements,function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),i(t||c);break;case To.ObjectExpression:l=[],f=!1,r(e.properties,function(e){e.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),r(e.properties,function(e){e.computed?(s=d.nextId(),d.recurse(e.key,s)):s=e.key.type===To.Identifier?e.key.name:""+e.key.value,u=d.nextId(),d.recurse(e.value,u),d.assign(d.member(t,s,e.computed),u)})):(r(e.properties,function(t){d.recurse(t.value,e.constant?void 0:d.nextId(),void 0,function(e){l.push(d.escape(t.key.type===To.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(t,c)),i(t||c);break;case To.ThisExpression:this.assign(t,"s"),i(t||"s");break;case To.LocalsExpression:this.assign(t,"l"),i(t||"l");break;case To.NGValueParameter:this.assign(t,"v"),i(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(w(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if("undefined"==typeof e)return"undefined";throw So("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},yn.prototype={compile:function(e){var t=this,n=this.astBuilder.ast(e);dn(n,t.$filter);var i,o;(i=mn(n))&&(o=this.recurse(i));var a,s=hn(n.body);s&&(a=[],r(s,function(e,n){var r=t.recurse(e);e.input=r,a.push(r),e.watchId=n}));var u=[];r(n.body,function(e){u.push(t.recurse(e.expression))});var l=0===n.body.length?h:1===n.body.length?u[0]:function(e,t){var n;return r(u,function(r){n=r(e,t)}),n};return o&&(l.assign=function(e,t,n){return o(e,n,t)}),a&&(l.inputs=a),l.literal=gn(n),l.constant=vn(n),l},recurse:function(e,t,n){var i,o,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case To.Literal:return this.value(e.value,t);case To.UnaryExpression:return o=this.recurse(e.argument),this["unary"+e.operator](o,t);case To.BinaryExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case To.LogicalExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case To.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case To.Identifier:return s.identifier(e.name,t,n);case To.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(o=e.property.name),e.computed&&(o=this.recurse(e.property)),e.computed?this.computedMember(i,o,t,n):this.nonComputedMember(i,o,t,n);case To.CallExpression:return a=[],r(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(o=this.$filter(e.callee.name)),e.filter||(o=this.recurse(e.callee,!0)),e.filter?function(e,n,r,i){for(var s=[],u=0;u":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,n,r){return function(i,o,a,s){var u,l,c=e(i,o,a,s);return null!=c&&(u=t(i,o,a,s),u=un(u),r&&1!==r&&c&&!c[u]&&(c[u]={}),l=c[u]),n?{context:c,name:u,value:l}:l}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s);r&&1!==r&&u&&null==u[t]&&(u[t]={});var l=null!=u?u[t]:void 0;return n?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var Oo=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new To(e,n),this.astCompiler=n.csp?new yn(this.ast,t):new $n(this.ast,t)};Oo.prototype={constructor:Oo,parse:function(e){return this.astCompiler.compile(e)}};var Fo=t("$sce"),Lo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Po=/_([a-z])/g,No=t("$compile"),Io=e.document.createElement("a"),Ro=In(e.location.href);jn.$inject=["$document"],Hn.$inject=["$provide"];var Uo=22,jo=".",Vo="0";Bn.$inject=["$locale"],Gn.$inject=["$locale"];var Ho={yyyy:Xn("FullYear",4,0,!1,!0),yy:Xn("FullYear",2,0,!0,!0),y:Xn("FullYear",1,0,!1,!0),MMMM:er("Month"),MMM:er("Month",!0),MM:Xn("Month",2,1),M:Xn("Month",1,1),LLLL:er("Month",!1,!0),dd:Xn("Date",2),d:Xn("Date",1),HH:Xn("Hours",2),H:Xn("Hours",1),hh:Xn("Hours",2,-12),h:Xn("Hours",1,-12),mm:Xn("Minutes",2),m:Xn("Minutes",1),ss:Xn("Seconds",2),s:Xn("Seconds",1),sss:Xn("Milliseconds",3),EEEE:er("Day"),EEE:er("Day",!0),a:or,Z:tr,ww:ir(2),w:ir(1),G:ar,GG:ar,GGG:ar,GGGG:sr},zo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,qo=/^-?\d+$/;ur.$inject=["$locale"];var Yo=m(Wr),Wo=m(Br);dr.$inject=["$parse"];var Bo=m({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===ri.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Go={};r(ji,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=xt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Go[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(Hi,function(e,t){Go[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(zr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),r(["src","srcset","href"],function(e){var t=xt("ng-"+e);Go[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===ri.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(Qr&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null))})}}}});var Zo={$addControl:h,$$renameControl:pr,$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h,$setSubmitted:h},Qo="ng-pending",Jo="ng-submitted";mr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],mr.prototype={$rollbackViewValue:function(){r(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){r(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){he(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],r(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),r(this.$error,function(t,n){this.$setValidity(n,null,e)},this),r(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),U(this.$$controls,e),e.$$parentForm=Zo},$setDirty:function(){this.$$animate.removeClass(this.$$element,La),this.$$animate.addClass(this.$$element,Pa),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,La,Pa+" "+Jo),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,r(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){r(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,Jo),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},vr({clazz:mr,set:function(e,t,n){var r=e[t];if(r){var i=r.indexOf(n);i===-1&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(U(r,n),0===r.length&&delete e[t])}});var Ko=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||h}var i={name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:mr,compile:function(n,i){n.addClass(La).addClass(Oa);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",u)},0,!1)})}var c=a[1]||s.$$parentForm;c.$addControl(s);var f=o?r(s.$name):h;o&&(f(e,s),i.$observe(o,function(t){s.$name!==t&&(f(e,void 0),s.$$parentForm.$$renameControl(s,t),(f=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),f(e,void 0),l(s,Zo)})}}}};return i}]},Xo=Ko(),ea=Ko(!0),ta=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,na=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ra=/^(?=.{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])?)*$/,ia=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,oa=/^(\d{4,})-(\d{2})-(\d{2})$/,aa=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,sa=/^(\d{4,})-W(\d\d)$/,ua=/^(\d{4,})-(\d\d)$/,la=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ca="keydown wheel mousedown",fa=ge();r("date,datetime-local,month,time,week".split(","),function(e){fa[e]=!0});var da={text:br,date:_r("date",oa,kr(oa,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":_r("datetimelocal",aa,kr(aa,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:_r("time",la,kr(la,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:_r("week",sa,xr,"yyyy-Www"),month:_r("month",ua,kr(ua,["yyyy","MM"]),"yyyy-MM"),number:Tr,url:Fr,email:Lr,radio:Pr,range:Or,checkbox:Ir,hidden:h,button:h,submit:h,reset:h,file:h},ha=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(da[Wr(a.type)]||da.text)(i,o,a,s[0],t,e,n,r)}}}}],pa=/^(true|false|\d+)$/,ma=function(){function e(e,t,n){e.prop("value",n),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return pa.test(n.ngValue)?function(t,n,r){var i=t.$eval(r.ngValue);e(n,r,i)}:function(t,n,r){t.$watch(r.ngValue,function(t){e(n,r,t)})}}}},ga=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=ve(e)})}}}}],va=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=v(e)?"":e})}}}}],$a=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],ya=m({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),ba=Rr("",!0),wa=Rr("Odd",0),xa=Rr("Even",1),ka=hr({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),_a=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Ca={},Sa={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(e){var t=xt("ng-"+e);Ca[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};Sa[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var Ea=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=me(s.clone),e.leave(l).done(function(e){e!==!1&&(l=null)}),s=null))})}}}],Ma=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ai.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,d,h,p=0,m=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),h&&(n.leave(h).done(function(e){e!==!1&&(d=null)}),d=h,h=null)};r.$watch(o,function(o){var u=function(e){e===!1||!$(s)||s&&!r.$eval(s)||t()},d=++p;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&d===p){ var t=r.$new();l.template=e;var s=c(t,function(e){m(),n.enter(e,null,i).done(u)});f=t,h=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||d===p&&(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),l.template=null)})}}}}],Aa=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return ri.call(r[0]).match(/SVG/)?(r.empty(),void t(Te(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void t(r.contents())(n))}}}],Da=hr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Ta=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var o=n.ngList||", ",a="false"!==n.ngTrim,s=a?fi(o):o,u=function(e){if(!v(e)){var t=[];return e&&r(e.split(s),function(e){e&&t.push(a?fi(e):e)}),t}};i.$parsers.push(u),i.$formatters.push(function(e){if(li(e))return e.join(o)}),i.$isEmpty=function(e){return!e||!e.length}}}},Oa="ng-valid",Fa="ng-invalid",La="ng-pristine",Pa="ng-dirty",Na="ng-untouched",Ia="ng-touched",Ra="ng-empty",Ua="ng-not-empty",ja=t("ngModel");Ur.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Ur.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return _(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){_(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw ja("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,J(this.$$element))},$render:h,$isEmpty:function(e){return v(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,Ua),this.$$animate.addClass(this.$$element,Ra)):(this.$$animate.removeClass(this.$$element,Ra),this.$$animate.addClass(this.$$element,Ua))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Pa),this.$$animate.addClass(this.$$element,La)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,La),this.$$animate.addClass(this.$$element,Pa),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,Na,Ia)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,Ia,Na)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!ui(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function i(){var e=c.$$parserName||"parse";return v(c.$$parserValid)?(s(e,null),!0):(c.$$parserValid||(r(c.$validators,function(e,t){s(t,null)}),r(c.$asyncValidators,function(e,t){s(t,null)})),s(e,c.$$parserValid),c.$$parserValid)}function o(){var n=!0;return r(c.$validators,function(r,i){var o=Boolean(r(e,t));n=n&&o,s(i,o)}),!!n||(r(c.$asyncValidators,function(e,t){s(t,null)}),!1)}function a(){var n=[],i=!0;r(c.$asyncValidators,function(r,o){var a=r(e,t);if(!O(a))throw ja("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then(function(){s(o,!0)},function(){i=!1,s(o,!1)}))}),n.length?c.$$q.all(n).then(function(){u(i)},h):u(!0)}function s(e,t){l===c.$$currentValidationRunId&&c.$setValidity(e,t)}function u(e){l===c.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var l=this.$$currentValidationRunId,c=this;return i()&&o()?void a():void u(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){r.$modelValue!==o&&r.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=t,r=this;if(this.$$parserValid=!v(n)||void 0,this.$$parserValid)for(var i=0;i0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})}},vr({clazz:Ur,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var Va,Ha=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ur,priority:1,compile:function(t){return t.addClass(La).addClass(Na).addClass(Oa),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$options.getOption("updateOn")&&n.on(a.$options.getOption("updateOn"),function(e){a.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],za=/(\s+|^)default(\s+|$)/;Vr.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=l({},e),r(e,function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=fi(n.replace(za,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],Hr(e,this.$$options)),Hr(e,Va.$$options),new Vr(e)}},Va=new Vr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var qa=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:Va,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},Ya=hr({terminal:!0,priority:1e3}),Wa=t("ngOptions"),Ba=/^\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]+?))?$/,Ga=["$compile","$document","$parse",function(t,i,o){function a(e,t,r){function i(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&n(e))t=e;else{t=[];for(var r in e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t.push(r)}return t}var s=e.match(Ba);if(!s)throw Wa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,J(t));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],d=o(s[2]?s[1]:u),h=c&&o(c),p=h||d,m=f&&o(f),g=f?function(e,t){return m(r,t)}:function(e){return rt(e)},v=function(e,t){return g(e,k(e,t))},$=o(s[2]||s[1]),y=o(s[3]||""),b=o(s[4]||""),w=o(s[8]),x={},k=l?function(e,t){return x[l]=t,x[u]=e,x}:function(e){return x[u]=e,x};return{trackBy:f,getTrackByValue:v,getWatchables:o(w,function(e){var t=[];e=e||[];for(var n=a(e),i=n.length,o=0;o=0;t--){var r=k.items[t];Ge($(r.group)?r.element.parentNode:r.element)}k=_.getOptions();var i={};if(w&&n.prepend(p.emptyOption),k.items.forEach(function(e){var t;$(e.group)?(t=i[e.group],t||(t=l.cloneNode(!1),C.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),c(e,t)):c(e,C)}),n[0].appendChild(C),m.$render(),!m.$isEmpty(e)){var o=p.readValue(),a=_.trackBy||g;(a?V(e,o):e===o)||(m.$setViewValue(o),m.$render())}}for(var p=s[0],m=s[1],g=o.multiple,v=0,y=n.children(),b=y.length;v0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,J(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||v(o)||o.test(t)}}}}},ps=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=f(e);i=ui(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},ms=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=f(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};return e.angular.bootstrap?void e.console:(ce(),xe(ai),ai.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return t==-1?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r),o=(e*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.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(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),void Jr(function(){oe(e.document,ae)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('')},{}],9:[function(e,t,n){e("./angular"),t.exports=angular},{"./angular":8}],10:[function(e,t,n){!function(r,i){if("function"==typeof define&&define.amd)define(["module","select"],i);else if("undefined"!=typeof n)i(t,e("select"));else{var o={exports:{}};i(o,r.select),r.clipboardAction=o.exports}}(this,function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(t),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.addEventListener("focus",window.scrollTo(0,n)),this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,i["default"])(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,i["default"])(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==("undefined"==typeof e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s})},{select:20}],11:[function(e,t,n){!function(r,i){if("function"==typeof define&&define.amd)define(["module","./clipboard-action","tiny-emitter","good-listener"],i);else if("undefined"!=typeof n)i(t,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var o={exports:{}};i(o,r.clipboardAction,r.tinyEmitter,r.goodListener),r.clipboard=o.exports}}(this,function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var l=i(t),c=i(n),f=i(r),d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,f["default"])(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l["default"]({action:this.action(t),target:this.target(t),text:this.text(t),trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}]),t}(c["default"]);e.exports=h})},{"./clipboard-action":10,"good-listener":16,"tiny-emitter":21}],12:[function(e,t,n){function r(e,t){for(;e&&e.nodeType!==i;){if(e.matches(t))return e;e=e.parentNode}}var i=9;if(Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}t.exports=r},{}],13:[function(e,t,n){function r(e,t,n,r,o){var a=i.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function i(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=e("./closest");t.exports=r},{"./closest":12}],14:[function(e,t,n){(function(){var e,n,r,i,o,a,s,u,l=[].slice,c={}.hasOwnProperty,f=function(e,t){function n(){this.constructor=e}for(var r in t)c.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};s=function(){}, n=function(){function e(){}return e.prototype.addEventListener=e.prototype.on,e.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},e.prototype.emit=function(){var e,t,n,r,i,o;if(r=arguments[0],e=2<=arguments.length?l.call(arguments,1):[],this._callbacks=this._callbacks||{},n=this._callbacks[r])for(i=0,o=n.length;i
'),this.element.appendChild(n)),r=n.getElementsByTagName("span")[0],r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,r;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),r=t.optWidth/t.optHeight,e.heightr?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/r),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:s,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:s,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,r,i,o,a,s,u,l,c,f,d,h,p;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),f=e.previewElement.querySelectorAll("[data-dz-name]"),o=0,u=f.length;o'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),r=function(n){return function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),h=e.previewElement.querySelectorAll("[data-dz-remove]"),p=[],s=0,c=h.length;s\n
\n
\n
\n
\n
\n
\n
\n
\n \n Check\n \n \n \n \n \n
\n
\n \n Error\n \n \n \n \n \n \n \n
\n
'},r=function(){var e,t,n,r,i,o,a;for(r=arguments[0],n=2<=arguments.length?l.call(arguments,1):[],o=0,a=n.length;o'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(r=function(e){return function(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null==e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!=e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!=e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t,n,i,o;if(n=e.hiddenFileInput.files,n.length)for(i=0,o=n.length;i',this.options.dictFallbackText&&(r+="

"+this.options.dictFallbackText+"

"),r+='',n=t.createElement(r),"FORM"!==this.element.tagName?(i=t.createElement('
'),i.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=i?i:n)},t.prototype.getExistingFallback=function(){var e,t,n,r,i,o;for(t=function(e){var t,n,r;for(n=0,r=e.length;n0){for(a=["TB","GB","MB","KB","b"],n=s=0,u=a.length;s=t){r=e/Math.pow(this.options.filesizeBase,4-n),i=o;break}r=Math.round(10*r)/10}return""+r+" "+i},t.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},t.prototype.drop=function(e){var t,n;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&(n=e.dataTransfer.items,n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)))},t.prototype.paste=function(e){var t,n;if(null!=(null!=e&&null!=(n=e.clipboardData)?n.items:void 0))return this.emit("paste",e),t=e.clipboardData.items,t.length?this._addFilesFromItems(t):void 0},t.prototype.handleFiles=function(e){var t,n,r,i;for(i=[],n=0,r=e.length;n0){for(o=0,a=n.length;o1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):t.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,n):n(this.options.dictInvalidFileType)},t.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=t.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}}(this))},t.prototype.enqueueFiles=function(e){var t,n,r;for(n=0,r=e.length;n=t)&&(r=this.getQueuedFiles(),r.length>0)){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-n));for(;e=I;c=0<=I?++T:--T)o.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(x,o,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var i,o,a;for(o=0,a=e.length;oc;)t=i[4*(u-1)+3],0===t?o=u:c=u,u=o+c>>1;return l=u/a,0===l?1:l},a=function(e,t,n,r,i,a,s,u,l,c){var f;return f=o(t),e.drawImage(t,n,r,i,a,s,u,l,c/f)},i=function(e,t){var n,r,i,o,a,s,u,l,c;if(i=!1,c=!0,r=e.document,l=r.documentElement,n=r.addEventListener?"addEventListener":"attachEvent",u=r.addEventListener?"removeEventListener":"detachEvent",s=r.addEventListener?"":"on",o=function(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?e:r)[u](s+n.type,o,!1),!i&&(i=!0)?t.call(e,n.type||n):void 0},a=function(){var e;try{l.doScroll("left")}catch(t){return e=t,void setTimeout(a,50)}return o("poll")},"complete"!==r.readyState){if(r.createEventObject&&l.doScroll){try{c=!e.frameElement}catch(f){}c&&a()}return r[n](s+"DOMContentLoaded",o,!1),r[n](s+"readystatechange",o,!1),e[n](s+"load",o,!1)}},e._autoDiscoverFunction=function(){if(e.autoDiscover)return e.discover()},i(window,e._autoDiscoverFunction)}).call(this)},{}],15:[function(e,t,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},{}],16:[function(e,t,n){function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return i(e,t,n);if(s.nodeList(e))return o(e,t,n);if(s.string(e))return a(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function o(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function a(e,t,n){return u(document.body,e,t,n)}var s=e("./is"),u=e("delegate");t.exports=r},{"./is":15,delegate:13}],17:[function(e,t,n){(function(e){(function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||f.defaults,this.rules=d.normal,this.options.gfm&&(this.options.tables?this.rules=d.tables:this.rules=d.gfm)}function r(e,t){if(this.options=t||f.defaults,this.links=e,this.rules=h.normal,this.renderer=this.options.renderer||new i,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=h.breaks:this.rules=h.gfm:this.options.pedantic&&(this.rules=h.pedantic)}function i(e){this.options=e||{}}function o(e){this.tokens=[],this.token=null,this.options=e||f.defaults,this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options}function a(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function u(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}function l(){}function c(e){for(var t,n,r=1;rAn error occured:

"+a(d.message+"",!0)+"
";throw d}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:l,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:l,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:l,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=u(d.item,"gm")(/bull/g,d.bullet)(),d.list=u(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=u(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=u(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=u(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=c({},d),d.gfm=c({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=u(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=c({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=d,e.lex=function(t,n){var r=new e(n);return r.lex(t)},e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},e.prototype.token=function(e,t,n){for(var r,i,o,a,s,u,l,c,f,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),u={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),o=o[0].match(this.rules.item),r=!1,f=o.length,c=0;c1&&s.length>1||(e=o.slice(c+1).join("\n")+e,c=f-1)),i=r||/\n\n(?!\s*$)/.test(u),c!==f-1&&(r="\n"===u.charAt(u.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(u,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),u={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:l,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:l,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,h.link=u(h.link)("inside",h._inside)("href",h._href)(),h.reflink=u(h.reflink)("inside",h._inside)(),h.normal=c({},h),h.pedantic=c({},h.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),h.gfm=c({},h.normal,{escape:u(h.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:u(h.text)("]|","~]|")("|","|https?://|")()}),h.breaks=c({},h.gfm,{br:u(h.br)("{2,}","*")(),text:u(h.gfm.text)("{2,}","*")()}),r.rules=h,r.output=function(e,t,n){var i=new r(t,n);return i.output(e)},r.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),"@"===i[2]?(n=":"===i[1].charAt(6)?this.mangle(i[1].substring(7)):this.mangle(i[1]),r=this.mangle("mailto:")+n):(n=a(i[1]),r=n),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):a(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(a(i[2],!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(a(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(i[0].length),n=a(i[1]),r=n,o+=this.renderer.link(r,null,n);return o},r.prototype.outputLink=function(e,t){var n=a(t.href),r=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,a(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},i.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
'+(n?e:a(e,!0))+"\n
\n":"
"+(n?e:a(e,!0))+"\n
"},i.prototype.blockquote=function(e){return"
\n"+e+"
\n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,n){return"'+e+"\n"},i.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},i.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},i.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},i.prototype.paragraph=function(e){return"

    "+e+"

    \n"},i.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},i.prototype.tablerow=function(e){return"\n"+e+"\n"},i.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"\n"},i.prototype.strong=function(e){return""+e+""},i.prototype.em=function(e){return""+e+""},i.prototype.codespan=function(e){return""+e+""},i.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},i.prototype.del=function(e){return""+e+""},i.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(s(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(i){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var o='
    "},i.prototype.image=function(e,t,n){var r=''+n+'":">"},i.prototype.text=function(e){return e},o.parse=function(e,t,n){var r=new o(t,n);return r.parse(e)},o.prototype.parse=function(e){this.inline=new r(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},o.prototype.next=function(){return this.token=this.tokens.pop()},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i,o="",a="";for(n="",e=0;e0)for(n in br)r=br[n],i=t[r],v(i)||(e[r]=i);return e}function y(e){$(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),wr===!1&&(wr=!0,n.updateOffset(this),wr=!1)}function b(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function k(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();Or[n]=Or[n+"s"]=Or[t]=e}function R(e){return"string"==typeof e?Or[e]||Or[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)c(e,n)&&(t=R(n),t&&(r[t]=e[n]));return r}function j(e,t){Fr[e]=t}function V(e){var t=[];for(var n in e)t.push({unit:n,priority:Fr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function H(e,t){return function(r){return null!=r?(q(this,e,r),n.updateOffset(this,t),this):z(this,e)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function Y(e){return e=R(e),E(this[e])?this[e]():this}function W(e,t){if("object"==typeof e){e=U(e);for(var n=V(e),r=0;r=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function G(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Ir[e]=i),t&&(Ir[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),n&&(Ir[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Q(e){var t,n,r=e.match(Lr);for(t=0,n=r.length;t=0&&Pr.test(e);)e=e.replace(Pr,n),Pr.lastIndex=0,r-=1;return e}function X(e,t,n){ti[e]=E(t)?t:function(e,r){return e&&n?n:t}}function ee(e,t){return c(ti,e)?ti[e](t._strict,t._locale):new RegExp(te(e))}function te(e){return ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function re(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function we(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function xe(e,t,n){var r=7+t-n,i=(7+we(e,0,r).getUTCDay()-t)%7;return-i+r-1}function ke(e,t,n,r,i){var o,a,s=(7+n-r)%7,u=xe(e,r,i),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=ve(o)+l):l>ve(e)?(o=e+1,a=l-ve(e)):(o=e,a=l),{year:o,dayOfYear:a}}function _e(e,t,n){var r,i,o=xe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Ce(i,t,n)):a>Ce(e.year(),t,n)?(r=a-Ce(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ce(e,t,n){var r=xe(e,t,n),i=xe(e+1,t,n);return(ve(e)-r+i)/7}function Se(e){return _e(e,this._week.dow,this._week.doy).week}function Ee(){return this._week.dow}function Me(){return this._week.doy}function Ae(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function De(e){var t=_e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Te(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Oe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Fe(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function Le(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Pe(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ne(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(), this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=di.call(this._weekdaysParse,a),i!==-1?i:null):"ddd"===t?(i=di.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=di.call(this._minWeekdaysParse,a),i!==-1?i:null):"dddd"===t?(i=di.call(this._weekdaysParse,a),i!==-1?i:(i=di.call(this._shortWeekdaysParse,a),i!==-1?i:(i=di.call(this._minWeekdaysParse,a),i!==-1?i:null))):"ddd"===t?(i=di.call(this._shortWeekdaysParse,a),i!==-1?i:(i=di.call(this._weekdaysParse,a),i!==-1?i:(i=di.call(this._minWeekdaysParse,a),i!==-1?i:null))):(i=di.call(this._minWeekdaysParse,a),i!==-1?i:(i=di.call(this._weekdaysParse,a),i!==-1?i:(i=di.call(this._shortWeekdaysParse,a),i!==-1?i:null)))}function Ie(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ne.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Re(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Te(e,this.localeData()),this.add(e-t,"d")):t}function Ue(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function je(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Oe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ve(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=ki),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function He(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_i),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ze(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ci),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qe(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=ne(s[t]),u[t]=ne(u[t]),l[t]=ne(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ye(){return this.hours()%12||12}function We(){return this.hours()||24}function Be(e,t){G(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ge(e,t){return t._meridiemParse}function Ze(e){return"p"===(e+"").toLowerCase().charAt(0)}function Qe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Je(e){return e?e.toLowerCase().replace("_","-"):e}function Ke(e){for(var t,n,r,i,o=0;o0;){if(r=Xe(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&k(i,n,!0)>=t-1)break;t--}o++}return null}function Xe(n){var r=null;if(!Di[n]&&"undefined"!=typeof t&&t&&t.exports)try{r=Si._abbr,e("./locale/"+n),et(r)}catch(i){}return Di[n]}function et(e,t){var n;return e&&(n=v(t)?rt(e):tt(e,t),n&&(Si=n)),Si._abbr}function tt(e,t){if(null!==t){var n=Ai;if(t.abbr=e,null!=Di[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Di[e]._config;else if(null!=t.parentLocale){if(null==Di[t.parentLocale])return Ti[t.parentLocale]||(Ti[t.parentLocale]=[]),Ti[t.parentLocale].push({name:e,config:t}),null;n=Di[t.parentLocale]._config}return Di[e]=new D(A(n,t)),Ti[e]&&Ti[e].forEach(function(e){tt(e.name,e.config)}),et(e),Di[e]}return delete Di[e],null}function nt(e,t){if(null!=t){var n,r=Ai;null!=Di[e]&&(r=Di[e]._config),t=A(r,t),n=new D(t),n.parentLocale=Di[e],Di[e]=n,et(e)}else null!=Di[e]&&(null!=Di[e].parentLocale?Di[e]=Di[e].parentLocale:null!=Di[e]&&delete Di[e]);return Di[e]}function rt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Si;if(!i(e)){if(t=Xe(e))return t;e=[e]}return Ke(e)}function it(){return Cr(Di)}function ot(e){var t,n=e._a;return n&&p(e).overflow===-2&&(t=n[ii]<0||n[ii]>11?ii:n[oi]<1||n[oi]>ae(n[ri],n[ii])?oi:n[ai]<0||n[ai]>24||24===n[ai]&&(0!==n[si]||0!==n[ui]||0!==n[li])?ai:n[si]<0||n[si]>59?si:n[ui]<0||n[ui]>59?ui:n[li]<0||n[li]>999?li:-1,p(e)._overflowDayOfYear&&(toi)&&(t=oi),p(e)._overflowWeeks&&t===-1&&(t=ci),p(e)._overflowWeekday&&t===-1&&(t=fi),p(e).overflow=t),e}function at(e){var t,n,r,i,o,a,s=e._i,u=Oi.exec(s)||Fi.exec(s);if(u){for(p(e).iso=!0,t=0,n=Pi.length;tve(i)&&(p(e)._overflowDayOfYear=!0),n=we(i,0,e._dayOfYear),e._a[ii]=n.getUTCMonth(),e._a[oi]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ai]&&0===e._a[si]&&0===e._a[ui]&&0===e._a[li]&&(e._nextDay=!0,e._a[ai]=0),e._d=(e._useUTC?we:be).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ai]=24)}}function ft(e){var t,n,r,i,o,a,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=ut(t.GG,e._a[ri],_e(bt(),1,4).year),r=ut(t.W,1),i=ut(t.E,1),(i<1||i>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var l=_e(bt(),o,a);n=ut(t.gg,e._a[ri],l.year),r=ut(t.w,l.week),null!=t.d?(i=t.d,(i<0||i>6)&&(u=!0)):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>Ce(n,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=ke(n,r,i,o,a),e._a[ri]=s.year,e._dayOfYear=s.dayOfYear)}function dt(e){if(e._f===n.ISO_8601)return void at(e);e._a=[],p(e).empty=!0;var t,r,i,o,a,s=""+e._i,u=s.length,l=0;for(i=K(e._f,e._locale).match(Lr)||[],t=0;t0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Ir[o]?(r?p(e).empty=!1:p(e).unusedTokens.push(o),oe(o,r,e)):e._strict&&!r&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-l,s.length>0&&p(e).unusedInput.push(s),e._a[ai]<=12&&p(e).bigHour===!0&&e._a[ai]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[ai]=ht(e._locale,e._a[ai],e._meridiem),ct(e),ot(e)}function ht(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function pt(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Rt(){if(!v(this._isDSTShifted))return this._isDSTShifted;var e={};if($(e,this),e=vt(e),e._a){var t=e._isUTC?d(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ut(){return!!this.isValid()&&!this._isUTC}function jt(){return!!this.isValid()&&this._isUTC}function Vt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ht(e,t){var n,r,i,o=e,a=null;return Ct(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=Hi.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:x(a[oi])*n,h:x(a[ai])*n,m:x(a[si])*n,s:x(a[ui])*n,ms:x(St(1e3*a[li]))*n}):(a=zi.exec(e))?(n="-"===a[1]?-1:1,o={y:zt(a[2],n),M:zt(a[3],n),w:zt(a[4],n),d:zt(a[5],n),h:zt(a[6],n),m:zt(a[7],n),s:zt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Yt(bt(o.from),bt(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new _t(o),Ct(e)&&c(e,"_locale")&&(r._locale=e._locale),r}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Yt(e,t){var n;return e.isValid()&&t.isValid()?(t=At(t,e),e.isBefore(t)?n=qt(e,t):(n=qt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Wt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Ht(n,r),Bt(this,i,e),this}}function Bt(e,t,r,i){var o=t._milliseconds,a=St(t._days),s=St(t._months);e.isValid()&&(i=null==i||i,o&&e._d.setTime(e._d.valueOf()+o*r),a&&q(e,"Date",z(e,"Date")+a*r),s&&fe(e,z(e,"Month")+s*r),i&&n.updateOffset(e,a||s))}function Gt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Zt(e,t){var r=e||bt(),i=At(r,this).startOf("day"),o=n.calendarFormat(this,i)||"sameElse",a=t&&(E(t[o])?t[o].call(this,r):t[o]);return this.format(a||this.localeData().calendar(o,this,bt(r)))}function Qt(){return new y(this)}function Jt(e,t){var n=b(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(t=R(v(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()o&&(t=o),Ln.call(this,e,t,n,r,i))}function Ln(e,t,n,r,i){var o=ke(e,t,n,r,i),a=we(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Pn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Nn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function In(e,t){t[li]=x(1e3*("0."+e))}function Rn(){return this._isUTC?"UTC":""}function Un(){return this._isUTC?"Coordinated Universal Time":""}function jn(e){return bt(1e3*e)}function Vn(){return bt.apply(null,arguments).parseZone()}function Hn(e){return e}function zn(e,t,n,r){var i=rt(),o=d().set(r,t);return i[n](o,e)}function qn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return zn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=zn(e,r,n,"month");return i}function Yn(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var i=rt(),o=e?i._week.dow:0;if(null!=n)return zn(t,(n+o)%7,r,"day");var a,u=[];for(a=0;a<7;a++)u[a]=zn(t,(a+o)%7,r,"day");return u}function Wn(e,t){return qn(e,t,"months")}function Bn(e,t){return qn(e,t,"monthsShort")}function Gn(e,t,n){return Yn(e,t,n,"weekdays")}function Zn(e,t,n){return Yn(e,t,n,"weekdaysShort")}function Qn(e,t,n){return Yn(e,t,n,"weekdaysMin")}function Jn(){var e=this._data;return this._milliseconds=eo(this._milliseconds),this._days=eo(this._days),this._months=eo(this._months),e.milliseconds=eo(e.milliseconds),e.seconds=eo(e.seconds),e.minutes=eo(e.minutes),e.hours=eo(e.hours),e.months=eo(e.months),e.years=eo(e.years),this}function Kn(e,t,n,r){var i=Ht(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Xn(e,t){return Kn(this,e,t,1)}function er(e,t){return Kn(this,e,t,-1)}function tr(e){return e<0?Math.floor(e):Math.ceil(e)}function nr(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*tr(ir(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=w(o/1e3),u.seconds=e%60,t=w(e/60),u.minutes=t%60,n=w(t/60),u.hours=n%24,a+=w(n/24),i=w(rr(a)),s+=i,a-=tr(ir(i)),r=w(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function rr(e){return 4800*e/146097}function ir(e){return 146097*e/4800}function or(e){var t,n,r=this._milliseconds;if(e=R(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+rr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ir(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ar(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12)}function sr(e){return function(){return this.as(e)}}function ur(e){return e=R(e),this[e+"s"]()}function lr(e){return function(){return this._data[e]}}function cr(){return w(this.days()/7)}function fr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function dr(e,t,n){var r=Ht(e).abs(),i=vo(r.as("s")),o=vo(r.as("m")),a=vo(r.as("h")),s=vo(r.as("d")),u=vo(r.as("M")),l=vo(r.as("y")),c=i<$o.s&&["s",i]||o<=1&&["m"]||o<$o.m&&["mm",o]||a<=1&&["h"]||a<$o.h&&["hh",a]||s<=1&&["d"]||s<$o.d&&["dd",s]||u<=1&&["M"]||u<$o.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,fr.apply(null,c)}function hr(e){return void 0===e?vo:"function"==typeof e&&(vo=e,!0)}function pr(e,t){return void 0!==$o[e]&&(void 0===t?$o[e]:($o[e]=t,!0))}function mr(e){var t=this.localeData(),n=dr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function gr(){var e,t,n,r=yo(this._milliseconds)/1e3,i=yo(this._days),o=yo(this._months);e=w(r/60),t=w(e/60),r%=60,e%=60,n=w(o/12),o%=12;var a=n,s=o,u=i,l=t,c=e,f=r,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||f?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(f?f+"S":""):"P0D"}var vr,$r;$r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r68?1900:2e3)};var $i=H("FullYear",!0);G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),j("week",5),j("isoWeek",5),X("w",zr),X("ww",zr,Ur),X("W",zr),X("WW",zr,Ur),ie(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)});var yi={dow:0,doy:6};G("d",0,"do","day"),G("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),G("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),G("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),X("d",zr),X("e",zr),X("E",zr),X("dd",function(e,t){return t.weekdaysMinRegex(e)}),X("ddd",function(e,t){return t.weekdaysShortRegex(e)}),X("dddd",function(e,t){return t.weekdaysRegex(e)}),ie(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),ie(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var bi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ki=ei,_i=ei,Ci=ei;G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Ye),G("k",["kk",2],0,We),G("hmm",0,0,function(){return""+Ye.apply(this)+B(this.minutes(),2)}),G("hmmss",0,0,function(){return""+Ye.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Be("a",!0),Be("A",!1),I("hour","h"),j("hour",13),X("a",Ge),X("A",Ge),X("H",zr),X("h",zr),X("HH",zr,Ur),X("hh",zr,Ur),X("hmm",qr),X("hmmss",Yr),X("Hmm",qr),X("Hmmss",Yr),re(["H","HH"],ai),re(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),re(["h","hh"],function(e,t,n){t[ai]=x(e),p(n).bigHour=!0}),re("hmm",function(e,t,n){var r=e.length-2;t[ai]=x(e.substr(0,r)),t[si]=x(e.substr(r)),p(n).bigHour=!0}),re("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ai]=x(e.substr(0,r)),t[si]=x(e.substr(r,2)),t[ui]=x(e.substr(i)),p(n).bigHour=!0}),re("Hmm",function(e,t,n){var r=e.length-2;t[ai]=x(e.substr(0,r)),t[si]=x(e.substr(r))}),re("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ai]=x(e.substr(0,r)),t[si]=x(e.substr(r,2)),t[ui]=x(e.substr(i))});var Si,Ei=/[ap]\.?m?\.?/i,Mi=H("Hours",!0),Ai={calendar:Sr,longDateFormat:Er,invalidDate:Mr,ordinal:Ar,ordinalParse:Dr,relativeTime:Tr,months:pi,monthsShort:mi,week:yi,weekdays:bi,weekdaysMin:xi,weekdaysShort:wi,meridiemParse:Ei},Di={},Ti={},Oi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Li=/Z|[+-]\d\d(?::?\d\d)?/,Pi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ni=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ii=/^\/?Date\((\-?\d+)/i;n.createFromInputFallback=C("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){};var Ri=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:g()}),ji=function(){return Date.now?Date.now():+new Date};Et("Z",":"),Et("ZZ",""),X("Z",Kr),X("ZZ",Kr),re(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Mt(Kr,e)});var Vi=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Hi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,zi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ht.fn=_t.prototype;var qi=Wt(1,"add"),Yi=Wt(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Wi=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Mn("gggg","weekYear"),Mn("ggggg","weekYear"),Mn("GGGG","isoWeekYear"),Mn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),X("G",Qr),X("g",Qr),X("GG",zr,Ur),X("gg",zr,Ur),X("GGGG",Br,Vr),X("gggg",Br,Vr),X("GGGGG",Gr,Hr),X("ggggg",Gr,Hr),ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),ie(["gg","GG"],function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)}),G("Q",0,"Qo","quarter"),I("quarter","Q"),j("quarter",7),X("Q",Rr),re("Q",function(e,t){t[ii]=3*(x(e)-1)}),G("D",["DD",2],"Do","date"),I("date","D"),j("date",9),X("D",zr),X("DD",zr,Ur),X("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient; }),re(["D","DD"],oi),re("Do",function(e,t){t[oi]=x(e.match(zr)[0],10)});var Bi=H("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),j("dayOfYear",4),X("DDD",Wr),X("DDDD",jr),re(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),G("m",["mm",2],0,"minute"),I("minute","m"),j("minute",14),X("m",zr),X("mm",zr,Ur),re(["m","mm"],si);var Gi=H("Minutes",!1);G("s",["ss",2],0,"second"),I("second","s"),j("second",15),X("s",zr),X("ss",zr,Ur),re(["s","ss"],ui);var Zi=H("Seconds",!1);G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),j("millisecond",16),X("S",Wr,Rr),X("SS",Wr,Ur),X("SSS",Wr,jr);var Qi;for(Qi="SSSS";Qi.length<=9;Qi+="S")X(Qi,Zr);for(Qi="S";Qi.length<=9;Qi+="S")re(Qi,In);var Ji=H("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var Ki=y.prototype;Ki.add=qi,Ki.calendar=Zt,Ki.clone=Qt,Ki.diff=rn,Ki.endOf=vn,Ki.format=ln,Ki.from=cn,Ki.fromNow=fn,Ki.to=dn,Ki.toNow=hn,Ki.get=Y,Ki.invalidAt=Sn,Ki.isAfter=Jt,Ki.isBefore=Kt,Ki.isBetween=Xt,Ki.isSame=en,Ki.isSameOrAfter=tn,Ki.isSameOrBefore=nn,Ki.isValid=_n,Ki.lang=Wi,Ki.locale=pn,Ki.localeData=mn,Ki.max=Ui,Ki.min=Ri,Ki.parsingFlags=Cn,Ki.set=W,Ki.startOf=gn,Ki.subtract=Yi,Ki.toArray=wn,Ki.toObject=xn,Ki.toDate=bn,Ki.toISOString=sn,Ki.inspect=un,Ki.toJSON=kn,Ki.toString=an,Ki.unix=yn,Ki.valueOf=$n,Ki.creationData=En,Ki.year=$i,Ki.isLeapYear=ye,Ki.weekYear=An,Ki.isoWeekYear=Dn,Ki.quarter=Ki.quarters=Pn,Ki.month=de,Ki.daysInMonth=he,Ki.week=Ki.weeks=Ae,Ki.isoWeek=Ki.isoWeeks=De,Ki.weeksInYear=On,Ki.isoWeeksInYear=Tn,Ki.date=Bi,Ki.day=Ki.days=Re,Ki.weekday=Ue,Ki.isoWeekday=je,Ki.dayOfYear=Nn,Ki.hour=Ki.hours=Mi,Ki.minute=Ki.minutes=Gi,Ki.second=Ki.seconds=Zi,Ki.millisecond=Ki.milliseconds=Ji,Ki.utcOffset=Tt,Ki.utc=Ft,Ki.local=Lt,Ki.parseZone=Pt,Ki.hasAlignedHourOffset=Nt,Ki.isDST=It,Ki.isLocal=Ut,Ki.isUtcOffset=jt,Ki.isUtc=Vt,Ki.isUTC=Vt,Ki.zoneAbbr=Rn,Ki.zoneName=Un,Ki.dates=C("dates accessor is deprecated. Use date instead.",Bi),Ki.months=C("months accessor is deprecated. Use month instead",de),Ki.years=C("years accessor is deprecated. Use year instead",$i),Ki.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ot),Ki.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Rt);var Xi=D.prototype;Xi.calendar=T,Xi.longDateFormat=O,Xi.invalidDate=F,Xi.ordinal=L,Xi.preparse=Hn,Xi.postformat=Hn,Xi.relativeTime=P,Xi.pastFuture=N,Xi.set=M,Xi.months=se,Xi.monthsShort=ue,Xi.monthsParse=ce,Xi.monthsRegex=me,Xi.monthsShortRegex=pe,Xi.week=Se,Xi.firstDayOfYear=Me,Xi.firstDayOfWeek=Ee,Xi.weekdays=Fe,Xi.weekdaysMin=Pe,Xi.weekdaysShort=Le,Xi.weekdaysParse=Ie,Xi.weekdaysRegex=Ve,Xi.weekdaysShortRegex=He,Xi.weekdaysMinRegex=ze,Xi.isPM=Ze,Xi.meridiem=Qe,et("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),n.lang=C("moment.lang is deprecated. Use moment.locale instead.",et),n.langData=C("moment.langData is deprecated. Use moment.localeData instead.",rt);var eo=Math.abs,to=sr("ms"),no=sr("s"),ro=sr("m"),io=sr("h"),oo=sr("d"),ao=sr("w"),so=sr("M"),uo=sr("y"),lo=lr("milliseconds"),co=lr("seconds"),fo=lr("minutes"),ho=lr("hours"),po=lr("days"),mo=lr("months"),go=lr("years"),vo=Math.round,$o={s:45,m:45,h:22,d:26,M:11},yo=Math.abs,bo=_t.prototype;return bo.abs=Jn,bo.add=Xn,bo.subtract=er,bo.as=or,bo.asMilliseconds=to,bo.asSeconds=no,bo.asMinutes=ro,bo.asHours=io,bo.asDays=oo,bo.asWeeks=ao,bo.asMonths=so,bo.asYears=uo,bo.valueOf=ar,bo._bubble=nr,bo.get=ur,bo.milliseconds=lo,bo.seconds=co,bo.minutes=fo,bo.hours=ho,bo.days=po,bo.weeks=cr,bo.months=mo,bo.years=go,bo.humanize=mr,bo.toISOString=gr,bo.toString=gr,bo.toJSON=gr,bo.locale=pn,bo.localeData=mn,bo.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gr),bo.lang=Wi,G("X",0,0,"unix"),G("x",0,0,"valueOf"),X("x",Qr),X("X",Xr),re("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),re("x",function(e,t,n){n._d=new Date(x(e))}),n.version="2.17.1",r(bt),n.fn=Ki,n.min=xt,n.max=kt,n.now=ji,n.utc=d,n.unix=jn,n.months=Wn,n.isDate=u,n.locale=et,n.invalid=g,n.duration=Ht,n.isMoment=b,n.weekdays=Gn,n.parseZone=Vn,n.localeData=rt,n.isDuration=Ct,n.monthsShort=Bn,n.weekdaysMin=Qn,n.defineLocale=tt,n.updateLocale=nt,n.locales=it,n.weekdaysShort=Zn,n.normalizeUnits=R,n.relativeTimeRounding=hr,n.relativeTimeThreshold=pr,n.calendarFormat=Gt,n.prototype=Ki,n})},{}],20:[function(e,t,n){function r(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),r=document.createRange();r.selectNodeContents(e),n.removeAllRanges(),n.addRange(r),t=n.toString()}return t}t.exports=r},{}],21:[function(e,t,n){function r(){}r.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){i.off(e,r),t.apply(n,arguments)}var i=this;return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;for(r;r tr",containment:"parent",axis:"y"},e.addEmptyTag=r,i(),e.tagChange=function(t){var n=e.tags.indexOf(t);n===e.tags.length-1&&(""===t.name&&""===t.value||r())},e.tagBlur=function(t){var n=e.tags.length-1===e.tags.indexOf(t);if(""===t.name&&""===t.value&&!n){var r=e.tags.indexOf(t);e.tags.splice(r,1)}},e.removeTag=function(t){var n=e.tags.indexOf(t);e.tags.splice(n,1)}}]),e.controller("PageAttachmentController",["$scope","$http","$attrs",function(e,n,r){function i(){return{page_id:l}}function o(r,i){var o=e.files.map(function(e){return e.id}).join(":");o!==c&&(c=o,n.put(window.baseUrl("/attachments/sort/page/"+l),{files:e.files}).then(function(e){t.emit("success",e.data.message)},u("sort")))}function a(){var t=window.baseUrl("/attachments/get/page/"+l);n.get(t).then(function(t){e.files=t.data,c=t.data.map(function(e){return e.id}).join(":")},u("get"))}function s(t){for(var n=0;n tr",containment:"parent",axis:"y",stop:o},e.getUploadUrl=function(e){var t="undefined"!=typeof e?"/"+e.id:"";return window.baseUrl("/attachments/upload"+t)},a(),e.uploadSuccess=function(n,r){e.$apply(function(){e.files.push(r)}),t.emit("success",trans("entities.attachments_file_uploaded"))},e.uploadSuccessUpdate=function(n,r){e.$apply(function(){var t=s(r);t!==-1&&(e.files[t]=r),e.editFile&&(e.editFile=angular.copy(r),r.link="")}),t.emit("success",trans("entities.attachments_file_updated"))},e.deleteFile=function(r){return r.deleting?void n["delete"](window.baseUrl("/attachments/"+r.id)).then(function(n){t.emit("success",n.data.message),e.files.splice(e.files.indexOf(r),1)},u("delete")):void(r.deleting=!0)},e.attachLinkSubmit=function(r){r.uploaded_to=l,n.post(window.baseUrl("/attachments/link"),r).then(function(n){e.files.push(n.data),t.emit("success",trans("entities.attachments_link_attached")),e.file=i()},u("link"))},e.startEdit=function(t){e.editFile=angular.copy(t),e.editFile.link=t.external?t.path:""},e.cancelEdit=function(){e.editFile=!1},e.updateFile=function(r){n.put(window.baseUrl("/attachments/"+r.id),r).then(function(n){var i=s(n.data);i!==-1&&(e.files[i]=n.data),e.editFile&&!r.external&&(e.editFile.link=""),e.editFile=!1,t.emit("success",trans("entities.attachments_updated_success"))},u("edit"))},e.getFileUrl=function(e){return window.baseUrl("/attachments/"+e.id)}}])};var i=e("moment"),o=r(i);e("moment/locale/en-gb");var a=e("./pages/page-form"),s=r(a);o["default"].locale("en-gb")},{"./pages/page-form":25,moment:19,"moment/locale/en-gb":18}],23:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=function(e,t){e.directive("tabContainer",function(){return{restrict:"A",link:function(e,t,n){var r=t.find("[tab-content]"),i=t.find("[tab-button]");if(n.tabContainer){var o=n.tabContainer;i.filter('[tab-button="'+o+'"]').addClass("selected"),r.hide().filter('[tab-content="'+o+'"]').show()}else r.hide().first().show(),i.first().addClass("selected");i.click(function(){var e=$(this);i.removeClass("selected"),r.hide();var t=e.addClass("selected").attr("tab-button");r.filter('[tab-content="'+t+'"]').show()})}}}),e.directive("subForm",function(){return{restrict:"A",link:function(e,t,n){function r(t){t.preventDefault(),n.subForm&&e.$eval(n.subForm)}t.on("keypress",function(e){13===e.keyCode&&r(e)}),t.find('button[type="submit"]').click(r)}}}),e.directive("dropZone",[function(){return{restrict:"E",template:'\n
    \n
    {{message}}
    \n
    \n ',scope:{uploadUrl:"@",eventSuccess:"=",eventError:"=",uploadedTo:"@"},link:function(e,t,n){e.message=n.message,n.placeholder&&(t[0].querySelector(".dz-message").textContent=n.placeholder);new o["default"](t[0].querySelector(".dropzone-container"),{url:e.uploadUrl,init:function(){var t=this;t.on("sending",function(t,n,r){var i=window.document.querySelector("meta[name=token]").getAttribute("content");r.append("_token",i);var o="undefined"==typeof e.uploadedTo?0:e.uploadedTo;r.append("uploaded_to",o)}),"undefined"!=typeof e.eventSuccess&&t.on("success",e.eventSuccess),t.on("success",function(e,n){$(e.previewElement).fadeOut(400,function(){t.removeFile(e)})}),"undefined"!=typeof e.eventError&&t.on("error",e.eventError),t.on("error",function(e,t,n){function r(t){$(e.previewElement).find("[data-dz-errormessage]").text(t)}413===n.status&&r(trans("errors.server_upload_limit")),t.file&&r(t.file[0])})}})}}}]),e.directive("dropdown",[function(){return{restrict:"A",link:function(e,t,n){var r=t.find("ul");t.find("[dropdown-toggle]").on("click",function(){r.show().addClass("anim menuIn");var e=r.find("input"),n=e.length>0;n&&(e.first().focus(),t.on("keypress","input",function(e){if(13===e.keyCode)return e.preventDefault(),r.hide(),r.removeClass("anim menuIn"),!1})),t.mouseleave(function(){r.hide(),r.removeClass("anim menuIn")})})}}}]),e.directive("tinymce",["$timeout",function(e){return{restrict:"A",scope:{tinymce:"=",mceModel:"=",mceChange:"="},link:function(t,n,r){function i(n){n.on("ExecCommand change NodeChange ObjectResized",function(r){var i=n.getContent();e(function(){t.mceModel=i}),t.mceChange(i)}),n.on("keydown",function(e){t.$emit("editor-keydown",e)}),n.on("init",function(e){t.mceModel=n.getContent()}),t.$on("html-update",function(e,r){n.setContent(r),n.selection.select(n.getBody(),!0),n.selection.collapse(!1),t.mceModel=n.getContent()})}t.tinymce.extraSetups.push(i),tinymce.PluginManager.add("customhr",function(e){e.addCommand("InsertHorizontalRule",function(){var t=document.createElement("hr"),n=e.selection.getNode(),r=n.parentNode;r.insertBefore(t,n)}),e.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),e.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})}),tinymce.init(t.tinymce)}}}]);var n=new s["default"].Renderer;n.listitem=function(e){return/^\s*\[[x ]\]\s*/.test(e)?(e=e.replace(/^\s*\[ \]\s*/,'').replace(/^\s*\[x\]\s*/,''),'
  • '+e+"
  • "):"
  • "+e+"
  • "},e.directive("markdownInput",["$timeout",function(e){return{restrict:"A",scope:{mdModel:"=",mdChange:"="},link:function(t,r,i){r=r.find("textarea").first();var o=r.val();t.mdModel=o,t.mdChange((0,s["default"])(o,{renderer:n})),r.on("change input",function(i){o=r.val(),e(function(){t.mdModel=o,t.mdChange((0,s["default"])(o,{renderer:n}))})}),t.$on("markdown-update",function(e,n){r.val(n),t.mdModel=n,t.mdChange((0,s["default"])(n))})}}}]),e.directive("markdownEditor",["$timeout",function(e){return{restrict:"A",link:function(e,t,n){function r(){h=u[0].scrollHeight,p=u.height(),m=l[0].scrollHeight,g=l.height()}function i(){window.showEntityLinkSelector(function(e){var t=d,n=u[0].selectionEnd,r=n!==t,i=u.val();if(r){var o=i.substring(t,n),a="["+o+"]("+e.link+")";u.val(i.substring(0,t)+a+i.substring(n))}else{var s=" ["+e.name+"]("+e.link+") ";u.val(i.substring(0,t)+s+i.substring(t))}u.change()})}function o(e){if(e=e.originalEvent,e.clipboardData){var t=e.clipboardData.items;if(t)for(var n=0;na?"!["+c+"]":"![]")+("("+f+")");u[0].value=l.substring(0,a)+d+l.substring(s),u.focus(),u[0].selectionStart=a,u[0].selectionEnd=a;var h="image-"+Date.now()+"."+n;t.append("file",e,h),t.append("_token",document.querySelector('meta[name="token"]').getAttribute("content")),r.open("POST",window.baseUrl("/images/gallery/upload")),r.onload=function(){var e=u[0].selectionStart;if(200===r.status||201===r.status){var t=JSON.parse(r.responseText);u[0].value=u[0].value.replace(f,t.thumbs.display),u.change()}else u[0].value=u[0].value.replace(d,""),u.change();u.focus(),u[0].selectionStart=e,u[0].selectionEnd=e},r.send(t)}}var u=t.find("[markdown-input] textarea").first(),l=t.find(".markdown-display").first(),c=t.find('button[data-action="insertImage"]'),f=t.find('button[data-action="insertEntityLink"]');l.on("click","a",function(e){e.preventDefault(),window.open(this.getAttribute("href"))});var d=0;u.blur(function(e){d=u[0].selectionStart});var h=void 0,p=void 0,m=void 0,g=void 0;setTimeout(function(){r()},200),window.addEventListener("resize",r);var v=800,$=0;u.on("scroll",function(e){var t=Date.now();t-$>v&&r();var n=u.scrollTop()/(h-p),i=(m-g)*n;l.scrollTop(i),$=t}),u.keydown(function(t){if(73===t.which&&t.ctrlKey&&t.shiftKey){t.preventDefault();var n=u[0].selectionStart,r=u.val(),o="![](http://)";return u.val(r.substring(0,n)+o+r.substring(n)),u.focus(),u[0].selectionStart=n+"![](".length,void(u[0].selectionEnd=n+"![](http://".length)}return 75===t.which&&t.ctrlKey&&t.shiftKey?void i():void e.$emit("editor-keydown",t)}),c.click(function(e){window.ImageManager.showExternal(function(e){var t=d,n=u.val(),r="!["+e.name+"]("+e.thumbs.display+")";u.val(n.substring(0,t)+r+n.substring(t)),u.change()})}),f.click(i),u.on("paste",o),u.on("drop",a)}}}]),e.directive("toolbox",[function(){return{restrict:"A",link:function(e,t,n){function r(e,n){i.removeClass("active"),o.hide(),i.filter('[toolbox-tab-button="'+e+'"]').addClass("active"),o.filter('[toolbox-tab-content="'+e+'"]').show(),n&&t.addClass("open")}var i=t.find("[toolbox-tab-button]"),o=t.find("[toolbox-tab-content]"),a=t.find("[toolbox-toggle]");a.click(function(e){t.toggleClass("open")}),r(o.first().attr("toolbox-tab-content"),!1),i.click(function(e){var t=$(this).attr("toolbox-tab-button");r(t,!0)})}}}]),e.directive("tagAutosuggestions",["$http",function(e){return{restrict:"A",link:function(t,n,r){function i(e,t){t[h].className="",h=e,t[h].className="active"}function o(e,t){if(0===t.length)return c.hide(),f=!1,void(m=t);if(f||(c.show(),f=!0),e!==d&&(c.detach(),e.after(c),d=e),m.join()===t.join())return void(m=t);c[0].innerHTML="";for(var n=0;n=0}});var b=$(".notification"),w=b.filter(".pos"),x=b.filter(".neg"),k=b.filter(".warning");window.Events.listen("success",function(e){w.hide(),w.find("span").text(e),setTimeout(function(){w.show()},1)}),window.Events.listen("warning",function(e){k.find("span").text(e),k.show()}),window.Events.listen("error",function(e){x.find("span").text(e),x.show()}),b.click(function(){$(this).fadeOut(100)}),$(".chapter-toggle").click(function(e){e.preventDefault(),$(this).toggleClass("open"),$(this).closest(".chapter").find(".inset-list").slideToggle(180)}),$("#back-to-top").click(function(){$("#header").smoothScrollTo()});var _=!1,C=document.getElementById("back-to-top"),S=1200;window.addEventListener("scroll",function(){var e=document.documentElement.scrollTop||document.body.scrollTop||0;!_&&e>S?(C.style.display="block",_=!0,setTimeout(function(){C.style.opacity=.4},1)):_&&e0||navigator.userAgent.indexOf("Safari")!==-1)&&$("body").addClass("flexbox-support")},{"./controllers":22,"./directives":23,"./pages/page-show":26,"./services":27,"./translations":28,angular:9,"angular-animate":2,"angular-resource":4,"angular-sanitize":6,"angular-ui-sortable":7}],25:[function(e,t,n){"use strict";function r(e,t){if(e.clipboardData){var n=e.clipboardData.items;if(n)for(var r=function(e){if(n[e].type.indexOf("image")===-1)return{v:void 0};var r=n[e].getAsFile(),i=new FormData,o="png",a=new XMLHttpRequest;if(r.name){var s=r.name.match(/\.(.+)$/);s&&(o=s[1])}var u="image-"+Math.random().toString(16).slice(2),l=window.baseUrl("/loading.gif");t.execCommand("mceInsertContent",!1,'');var c="image-"+Date.now()+"."+o;i.append("file",r,c),i.append("_token",document.querySelector('meta[name="token"]').getAttribute("content")),a.open("POST",window.baseUrl("/images/gallery/upload")),a.onload=function(){if(200===a.status||201===a.status){var e=JSON.parse(a.responseText);t.dom.setAttrib(u,"src",e.thumbs.display)}else t.dom.remove(u)},a.send(i)},i=0;i';i+=''+t.name+'',i+="
    ",r.tinyMCE.activeEditor.execCommand("mceInsertContent",!1,i)})},paste_preprocess:function(e,t){var n=t.content;n.indexOf('';n+=''+e.name+'',n+="",t.execCommand("mceInsertContent",!1,n)})}}),t.on("paste",function(e){r(e,t)})}};return e}},{}],26:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("clipboard"),o=r(i);n["default"]=window.setupPageShow=function(e){function t(){var t=d?window.baseUrl("/link/"+e+"#"+h):"{{@"+e+"#"+h+"}}";d&&0!==t.indexOf("http")&&(t=window.location.protocol+"//"+window.location.host+t),u.find("input").val(t)}function n(e){var t=document.getElementById(e);if($(".page-content [data-highlighted]").attr("data-highlighted","").css("background-color",""),null!==t){var n=$(t),r=$("#custom-styles").attr("data-color-light");n.css("background-color",r).attr("data-highlighted","true").smoothScrollTo()}else $(".page-content").find(':contains("'+e+'")').smoothScrollTo()}function r(){g.width(v.width()+15),g.addClass("fixed"),w=!0}function i(){g.css("width","auto"),g.removeClass("fixed"),w=!1}function a(e){var t=m.scrollTop()>b;!t||w&&!e?t||!w&&!e||i():r()}function s(){a(!1)}var u=$("#pointer").detach(),l=!1,c=u.children("div.pointer").first(),f=!1,d=!0,h="";u.on("click","input",function(e){$(this).select(),e.stopPropagation()}),u.on("click","span.icon",function(e){var n=$(e.currentTarget);d=!d,n.html(d?'':''),t()});new o["default"]("#pointer button");if($(document.body).find("*").on("click focus",function(e){if(l&&!f){var t=$(e.target);t.is(".zmdi")||1===$(e.target).closest("#pointer").length||(u.detach(),l=!1)}}),$('.page-content [id^="bkmrk"]').on("mouseup keyup",function(e){e.stopPropagation();var n=window.getSelection();if(0!==n.toString().length){var r=$(this);h=r.attr("id"),t(),r.before(u),u.show(),l=!0;var i=e.pageX-r.offset().left-c.width()/2;i<0&&(i=0);var o=i/r.width()*100;c.css("left",o+"%"),f=!0,setTimeout(function(){f=!1},100)}}),window.location.hash){var p=window.location.hash.replace(/\%20/g," ").substr(1);n(p)}$(".sidebar-page-nav").on("click","a",function(e){n(e.target.getAttribute("href").substr(1))});var m=$(window),g=$(".book-tree"),v=g.parent(),y=$(document).height()>m.height()&&g.height()<$(".page-content").height(),b=$("#header").height()+$(".toolbar").height(),w=m.scrollTop()>b;y&&m.width()>1e3&&(m.on("scroll",s),a(!0)),m.on("resize",function(e){y&&m.width()>1e3?(m.on("scroll",s),a(!0)):(m.off("scroll",s),i())})}},{clipboard:11}],27:[function(e,t,n){"use strict";t.exports=function(e,t){e.factory("imageManagerService",function(){return{show:!1,showExternal:!1}})}},{}],28:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n