File: D:/HostingSpaces/SBogers47/leden.ehbocranendonck.nl/wwwroot/js/kms/angular.js
!function(e){"use strict";function t(e){return function(){var t,n=arguments[0];for(t="["+(e?e+":":"")+n+"] http://errors.angularjs.org/1.5.8/"+(e?e+"/":"")+n,n=1;n<arguments.length;n++){var r;t=t+(1==n?"?":"&")+"p"+(n-1)+"=",t+=encodeURIComponent(r="function"==typeof(r=arguments[n])?r.toString().replace(/ \{[\s\S]*$/,""):void 0===r?"undefined":"string"!=typeof r?JSON.stringify(r):r)}return Error(t)}}function n(e){if(null==e||S(e))return!1;if(qn(e)||y(e)||In&&e instanceof In)return!0;var t="length"in Object(e)&&e.length;return b(t)&&(0<=t&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function r(e,t,i){var o,a;if(e)if(x(e))for(o in e)"prototype"==o||"length"==o||"name"==o||e.hasOwnProperty&&!e.hasOwnProperty(o)||t.call(i,e[o],o,e);else if(qn(e)||n(e)){var s="object"!=typeof e;for(o=0,a=e.length;o<a;o++)(s||o in e)&&t.call(i,e[o],o,e)}else if(e.forEach&&e.forEach!==r)e.forEach(t,i,e);else if(v(e))for(o in e)t.call(i,e[o],o,e);else if("function"==typeof e.hasOwnProperty)for(o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e);else for(o in e)Dn.call(e,o)&&t.call(i,e[o],o,e);return e}function i(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function o(e){return function(t,n){e(n,t)}}function a(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var s=t[i];if(m(s)||x(s))for(var u=Object.keys(s),l=0,c=u.length;l<c;l++){var f=u[l],d=s[f];n&&m(d)?w(d)?e[f]=new Date(d.valueOf()):k(d)?e[f]=new RegExp(d):d.nodeName?e[f]=d.cloneNode(!0):E(d)?e[f]=d.clone():(m(e[f])||(e[f]=qn(d)?[]:{}),a(e[f],[d],!0)):e[f]=d}}return r?e.$$hashKey=r:delete e.$$hashKey,e}function s(e){return a(e,Un.call(arguments,1),!1)}function u(e){return a(e,Un.call(arguments,1),!0)}function l(e){return parseInt(e,10)}function c(e,t){return s(Object.create(e),t)}function f(){}function d(e){return e}function h(e){return function(){return e}}function p(e){return x(e.toString)&&e.toString!==Vn}function g(e){return void 0===e}function $(e){return void 0!==e}function m(e){return null!==e&&"object"==typeof e}function v(e){return null!==e&&"object"==typeof e&&!Rn(e)}function y(e){return"string"==typeof e}function b(e){return"number"==typeof e}function w(e){return"[object Date]"===Vn.call(e)}function x(e){return"function"==typeof e}function k(e){return"[object RegExp]"===Vn.call(e)}function S(e){return e&&e.window===e}function C(e){return e&&e.$evalAsync&&e.$watch}function A(e){return"boolean"==typeof e}function E(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function _(e){return Fn(e.nodeName||e[0]&&e[0].nodeName)}function I(e,t){var n=e.indexOf(t);return 0<=n&&e.splice(n,1),n}function M(e,t){function n(e,t){var n,r=t.$$hashKey;if(qn(e)){n=0;for(var o=e.length;n<o;n++)t.push(i(e[n]))}else if(v(e))for(n in e)t[n]=i(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=i(e[n]));else for(n in e)Dn.call(e,n)&&(t[n]=i(e[n]));return r?t.$$hashKey=r:delete t.$$hashKey,t}function i(e){if(!m(e))return e;if(-1!==(t=a.indexOf(e)))return s[t];if(S(e)||C(e))throw Bn("cpws");var t=!1,r=o(e);return void 0===r&&(r=qn(e)?[]:Object.create(Rn(e)),t=!0),a.push(e),s.push(r),t?n(e,r):r}function o(e){switch(Vn.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(i(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":return(t=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0])).lastIndex=e.lastIndex,t;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(x(e.cloneNode))return e.cloneNode(!0)}var a=[],s=[];if(t){if(function(e){return e&&b(e.length)&&Hn.test(Vn.call(e))}(t)||"[object ArrayBuffer]"===Vn.call(t))throw Bn("cpta");if(e===t)throw Bn("cpi");return qn(t)?t.length=0:r(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),a.push(e),s.push(t),n(e,t)}return i(e)}function O(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r=typeof e;if(r==typeof t&&"object"==r){if(!qn(e)){if(w(e))return!!w(t)&&O(e.getTime(),t.getTime());if(k(e))return!!k(t)&&e.toString()==t.toString();if(C(e)||C(t)||S(e)||S(t)||qn(t)||w(t)||k(t))return!1;for(n in r=te(),e)if("$"!==n.charAt(0)&&!x(e[n])){if(!O(e[n],t[n]))return!1;r[n]=!0}for(n in t)if(!(n in r)&&"$"!==n.charAt(0)&&$(t[n])&&!x(t[n]))return!1;return!0}if(!qn(t))return!1;if((r=e.length)==t.length){for(n=0;n<r;n++)if(!O(e[n],t[n]))return!1;return!0}}return!1}function T(e,t,n){return e.concat(Un.call(t,n))}function D(e,t){var n=2<arguments.length?Un.call(arguments,2):[];return!x(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,T(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function F(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":C(n)&&(r="$SCOPE"),r}function P(e,t){if(!g(e))return b(t)||(t=t?2:null),JSON.stringify(e,F,t)}function U(e){return y(e)?JSON.parse(e):e}function N(e,t){e=e.replace(Yn,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function j(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return n*=(t=N(t,r))-r,(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}function V(e){e=In(e).clone();try{e.empty()}catch(e){}var t=In("<div>").append(e).html();try{return e[0].nodeType===er?Fn(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Fn(t)})}catch(e){return Fn(t)}}function R(e){try{return decodeURIComponent(e)}catch(e){}}function B(e){var t={};return r((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),$(r=R(r))&&(i=!$(i)||R(i),Dn.call(t,r)?qn(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function z(e){var t=[];return r(e,function(e,n){qn(e)?r(e,function(e){t.push(q(n,!0)+(!0===e?"":"="+q(e,!0)))}):t.push(q(n,!0)+(!0===e?"":"="+q(e,!0)))}),t.length?t.join("&"):""}function L(e){return q(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function q(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 H(e,t){var n,i,o={};r(Jn,function(t){t+="app",!n&&e.hasAttribute&&e.hasAttribute(t)&&(n=e,i=e.getAttribute(t))}),r(Jn,function(t){var r;t+="app",!n&&(r=e.querySelector("["+t.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(t))}),n&&(o.strictDi=null!==function(e,t){var n,r,i=Jn.length;for(r=0;r<i;++r)if(n=Jn[r]+t,y(n=e.getAttribute(n)))return n;return null}(n,"strict-di"),t(n,i?[i]:[],o))}function W(t,n,i){m(i)||(i={}),i=s({strictDi:!1},i);var o=function(){if((t=In(t)).injector()){var r=t[0]===e.document?"document":V(t);throw Bn("btstrpd",r.replace(/</,"<").replace(/>/,">"))}return(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng"),(r=Ie(n,i.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),r},a=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!u.test(e.name))return o();e.name=e.name.replace(u,""),zn.resumeBootstrap=function(e){return r(e,function(e){n.push(e)}),o()},x(zn.resumeDeferredBootstrap)&&zn.resumeDeferredBootstrap()}function G(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function K(e){if(!(e=zn.element(e).injector()))throw Bn("test");return e.get("$$testability")}function X(e,t){return t=t||"_",e.replace(Zn,function(e,n){return(n?t:"")+e.toLowerCase()})}function Y(e,t,n){if(!e)throw Bn("areq",t||"?",n||"required");return e}function J(e,t,n){return n&&qn(e)&&(e=e[e.length-1]),Y(x(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function Z(e,t){if("hasOwnProperty"===e)throw Bn("badname",t)}function Q(e,t,n){if(!t)return e;for(var r,i=e,o=(t=t.split(".")).length,a=0;a<o;a++)r=t[a],e&&(e=(i=e)[r]);return!n&&x(e)?D(i,e):e}function ee(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=In(Un.call(e,0,i))),t.push(n));return t||e}function te(){return Object.create(null)}function ne(e,t){if(qn(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(m(e))for(n in t=t||{},e)"$"===n.charAt(0)&&"$"===n.charAt(1)||(t[n]=e[n]);return t||e}function re(e){return e.replace(ir,function(e,t,n,r){return r?n.toUpperCase():n}).replace(or,"Moz$1")}function ie(e){return 1===(e=e.nodeType)||!e||9===e}function oe(e,t){var n,i,o=t.createDocumentFragment(),a=[];if(lr.test(e)){for(n=o.appendChild(t.createElement("div")),i=(cr.exec(e)||["",""])[1].toLowerCase(),i=dr[i]||dr._default,n.innerHTML=i[1]+e.replace(fr,"<$1></$2>")+i[2],i=i[0];i--;)n=n.lastChild;a=T(a,n.childNodes),(n=o.firstChild).textContent=""}else a.push(t.createTextNode(e));return o.textContent="",o.innerHTML="",r(a,function(e){o.appendChild(e)}),o}function ae(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function se(t){if(t instanceof se)return t;var n,r;if(y(t)&&(t=Wn(t),n=!0),!(this instanceof se)){if(n&&"<"!=t.charAt(0))throw sr("nosel");return new se(t)}n&&(n=e.document,t=(r=ur.exec(t))?[n.createElement(r[1])]:(r=oe(t,n))?r.childNodes:[]);me(this,t)}function ue(e){return e.cloneNode(!0)}function le(e,t){if(t||fe(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;r<i;r++)fe(n[r])}function ce(e,t,n,i){if($(i))throw sr("offargs");var o=(i=de(e))&&i.events,a=i&&i.handle;if(a)if(t){var s=function(t){var r=o[t];$(n)&&I(r||[],n),$(n)&&r&&0<r.length||(e.removeEventListener(t,a,!1),delete o[t])};r(t.split(" "),function(e){s(e),ar[e]&&s(ar[e])})}else for(t in o)"$destroy"!==t&&e.removeEventListener(t,a,!1),delete o[t]}function fe(e,t){var n=e.ng339,r=n&&nr[n];r&&(t?delete r.data[t]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),ce(e)),delete nr[n],e.ng339=void 0))}function de(e,t){var n=(n=e.ng339)&&nr[n];return t&&!n&&(e.ng339=n=++rr,n=nr[n]={events:{},data:{},handle:void 0}),n}function he(e,t,n){if(ie(e)){var r=$(n),i=!r&&t&&!m(t),o=!t;if(e=(e=de(e,!i))&&e.data,r)e[t]=n;else{if(o)return e;if(i)return e&&e[t];s(e,t)}}}function pe(e,t){return!!e.getAttribute&&-1<(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")}function ge(e,t){t&&e.setAttribute&&r(t.split(" "),function(t){e.setAttribute("class",Wn((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Wn(t)+" "," ")))})}function $e(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(e){e=Wn(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Wn(n))}}function me(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;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function ve(e,t){return ye(e,"$"+(t||"ngController")+"Controller")}function ye(e,t,n){for(9==e.nodeType&&(e=e.documentElement),t=qn(t)?t:[t];e;){for(var r=0,i=t.length;r<i;r++)if($(n=In.data(e,t[r])))return n;e=e.parentNode||11===e.nodeType&&e.host}}function be(e){for(le(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function we(e,t){t||le(e);var n=e.parentNode;n&&n.removeChild(e)}function xe(e,t){var n=gr[t.toLowerCase()];return n&&$r[_(e)]&&n}function ke(e,t,n){n.call(e,t)}function Se(e,t,n){var r=t.relatedTarget;r&&(r===e||hr.call(e,r))||n.call(e,t)}function Ce(){this.$get=function(){return s(se,{hasClass:function(e,t){return e.attr&&(e=e[0]),pe(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),$e(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),ge(e,t)}})}}function Ae(e,t){var n=e&&e.$$hashKey;return n?("function"==typeof n&&(n=e.$$hashKey()),n):"function"==(n=typeof e)||"object"==n&&null!==e?e.$$hashKey=n+":"+(t||function(){return++Ln})():n+":"+e}function Ee(e,t){if(t){var n=0;this.nextUid=function(){return++n}}r(e,this.put,this)}function _e(e){return(e=(Function.prototype.toString.call(e)+" ").replace(kr,"")).match(yr)||e.match(br)}function Ie(e,t){function n(e){return function(t,n){if(!m(t))return e(t,n);r(t,o(e))}}function i(e,t){if(Z(e,"service"),(x(t)||qn(t))&&(t=p.instantiate(t)),!t.$get)throw Sr("pget",e);return d[e+"Provider"]=t}function a(e,t){return function(){var n=b.invoke(t,this);if(g(n))throw Sr("undef",e);return n}}function s(e,t,n){return i(e,{$get:!1!==n?a(e,t):t})}function u(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===l)throw Sr("cdep",t+" <- "+c.join(" <- "));return e[t]}try{return c.unshift(t),e[t]=l,e[t]=n(t,r)}catch(n){throw e[t]===l&&delete e[t],n}finally{c.shift()}}function i(e,n,i){for(var o=[],a=0,s=(e=Ie.$$annotate(e,t,i)).length;a<s;a++){var u=e[a];if("string"!=typeof u)throw Sr("itkn",u);o.push(n&&n.hasOwnProperty(u)?n[u]:r(u,i))}return o}return{invoke:function(e,t,n,r){return"string"==typeof n&&(r=n,n=null),n=i(e,n,r),qn(e)&&(e=e[e.length-1]),(r=!(11>=_n)&&("function"==typeof e&&/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(e)+" ")))?(n.unshift(null),new(Function.prototype.bind.apply(e,n))):e.apply(t,n)},instantiate:function(e,t,n){var r=qn(e)?e[e.length-1]:e;return(e=i(e,t,n)).unshift(null),new(Function.prototype.bind.apply(r,e))},get:r,annotate:Ie.$$annotate,has:function(t){return d.hasOwnProperty(t+"Provider")||e.hasOwnProperty(t)}}}t=!0===t;var l={},c=[],f=new Ee([],!0),d={$provide:{provider:n(i),factory:n(s),service:n(function(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}),value:n(function(e,t){return s(e,h(t),!1)}),constant:n(function(e,t){Z(e,"constant"),d[e]=t,$[e]=t}),decorator:function(e,t){var n=p.get(e+"Provider"),r=n.$get;n.$get=function(){var e=b.invoke(r,n);return b.invoke(t,null,{$delegate:e})}}}},p=d.$injector=u(d,function(e,t){throw zn.isString(t)&&c.push(t),Sr("unpr",c.join(" <- "))}),$={},v=u($,function(e,t){var n=p.get(e+"Provider",t);return b.invoke(n.$get,n,void 0,e)}),b=v;d.$injectorProvider={$get:h(v)};var w=function e(t){Y(g(t)||qn(t),"modulesToLoad","not an array");var n,i=[];return r(t,function(t){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=p.get(r[0]);i[r[1]].apply(i,r[2])}}if(!f.get(t)){f.put(t,!0);try{y(t)?(n=On(t),i=i.concat(e(n.requires)).concat(n._runBlocks),r(n._invokeQueue),r(n._configBlocks)):x(t)?i.push(p.invoke(t)):qn(t)?i.push(p.invoke(t)):J(t,"module")}catch(e){throw qn(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1==e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Sr("modulerr",t,e.stack||e.message||e)}}}),i}(e);return(b=v.get("$injector")).strictDi=t,r(w,function(e){e&&b.invoke(e)}),b}function Me(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){function o(e){var t;e?(e.scrollIntoView(),x(t=a.yOffset)?t=t():E(t)?(t=t[0],t="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom):b(t)||(t=0),t&&(e=e.getBoundingClientRect().top,n.scrollBy(0,e-t))):n.scrollTo(0,0)}function a(e){var t;(e=y(e)?e:r.hash())?(t=s.getElementById(e))?o(t):(t=function(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===_(e))return t=e,!0}),t}(s.getElementsByName(e)))?o(t):"top"===e&&o(null):o(null)}var s=n.document;return t&&i.$watch(function(){return r.hash()},function(t,n){t===n&&""===t||function(t,n){"complete"===(n=n||e).document.readyState?n.setTimeout(t):In(n).on("load",t)}(function(){i.$evalAsync(a)})}),a}]}function Oe(e,t){return e||t?e?t?(qn(e)&&(e=e.join(" ")),qn(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function Te(e){return m(e)?e:{}}function De(e,t,n,i){function o(e){try{e.apply(null,Un.call(arguments,1))}finally{if(0===--m)for(;v.length;)try{v.pop()()}catch(e){n.error(e)}}}function a(){k=null,s(),u()}function s(){O(y=g(y=S())?null:y,E)&&(y=E),E=y}function u(){w===l.url()&&b===y||(w=l.url(),b=y,r(C,function(e){e(l.url(),y)}))}var l=this,c=e.location,d=e.history,h=e.setTimeout,p=e.clearTimeout,$={};l.isMock=!1;var m=0,v=[];l.$$completeOutstandingRequest=o,l.$$incOutstandingRequestCount=function(){m++},l.notifyWhenNoOutstandingRequests=function(e){0===m?e():v.push(e)};var y,b,w=c.href,x=t.find("base"),k=null,S=i.history?function(){try{return d.state}catch(e){}}:f;s(),b=y,l.url=function(t,n,r){if(g(r)&&(r=null),c!==e.location&&(c=e.location),d!==e.history&&(d=e.history),t){var o=b===r;if(w===t&&(!i.history||o))return l;var a=w&&ut(w)===ut(t);return w=t,b=r,!i.history||a&&o?(a||(k=t),n?c.replace(t):a?(n=c,r=-1===(r=t.indexOf("#"))?"":t.substr(r),n.hash=r):c.href=t,c.href!==t&&(k=t)):(d[n?"replaceState":"pushState"](r,"",t),s(),b=y),k&&(k=t),l}return k||c.href.replace(/%27/g,"'")},l.state=function(){return y};var C=[],A=!1,E=null;l.onUrlChange=function(t){return A||(i.history&&In(e).on("popstate",a),In(e).on("hashchange",a),A=!0),C.push(t),t},l.$$applicationDestroyed=function(){In(e).off("hashchange popstate",a)},l.$$checkUrlChange=u,l.baseHref=function(){var e=x.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},l.defer=function(e,t){var n;return m++,n=h(function(){delete $[n],o(e)},t||0),$[n]=!0,n},l.defer.cancel=function(e){return!!$[e]&&(delete $[e],p(e),o(f),!0)}}function Fe(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new De(e,r,t,n)}]}function Pe(){this.$get=function(){function e(e,r){function i(e){e!=d&&(h?h==e&&(h=e.n):h=e,o(e.n,e.p),o(e,d),(d=e).n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid",e);var a=0,u=s({},r,{id:e}),l=te(),c=r&&r.capacity||Number.MAX_VALUE,f=te(),d=null,h=null;return n[e]={put:function(e,t){if(!g(t)){if(c<Number.MAX_VALUE)i(f[e]||(f[e]={key:e}));return e in l||a++,l[e]=t,a>c&&this.remove(h.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=f[e];if(!t)return;i(t)}return l[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=f[e];if(!t)return;t==d&&(d=t.p),t==h&&(h=t.n),o(t.n,t.p),delete f[e]}e in l&&(delete l[e],a--)},removeAll:function(){l=te(),a=0,f=te(),d=h=null},destroy:function(){f=u=l=null,delete n[e]},info:function(){return s({},u,{size:a})}}}var n={};return e.info=function(){var e={};return r(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function Ue(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Ne(t,n){function i(e,t,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=te();return r(e,function(e,r){if(e in w)o[r]=w[e];else{var a=e.match(i);if(!a)throw Tr("iscp",t,r,e,n?"controller bindings definition":"isolate scope definition");o[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r},a[4]&&(w[e]=o[r])}}),o}var a={},u=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,l=/(([\w\-]+)(?:\:([^;]+))?;?)/,p=function(e){var t,n={};for(e=e.split(","),t=0;t<e.length;t++)n[e[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),v=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,b=/^(on[a-z]+|formaction)$/,w=te();this.directive=function e(n,i){return Z(n,"directive"),y(n)?(function(e){var t=e.charAt(0);if(!t||t!==Fn(t))throw Tr("baddir",e);if(e!==e.trim())throw Tr("baddir",e)}(n),Y(i,"directiveFactory"),a.hasOwnProperty(n)||(a[n]=[],t.factory(n+"Directive",["$injector","$exceptionHandler",function(e,t){var i=[];return r(a[n],function(o,a){try{var s=e.invoke(o);x(s)?s={compile:h(s)}:!s.compile&&s.link&&(s.compile=h(s.link)),s.priority=s.priority||0,s.index=a,s.name=s.name||n,s.require=function(e){var t=e.require||e.controller&&e.name;return!qn(t)&&m(t)&&r(t,function(e,n){var r=e.match(v);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}(s),s.restrict=s.restrict||"EA",s.$$moduleName=o.$$moduleName,i.push(s)}catch(e){t(e)}}),i}])),a[n].push(i)):r(n,o(e)),this},this.component=function(e,t){function n(e){function n(t){return x(t)||qn(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var o=t.template||t.templateUrl?t.template:"",a={controller:i,controllerAs:ze(t.controller)||t.controllerAs||"$ctrl",template:n(o),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return r(t,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}var i=t.controller||function(){};return r(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,x(i)&&(i[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return $(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return $(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var k=!0;this.debugInfoEnabled=function(e){return $(e)?(k=e,this):k};var S=10;this.onChangesTtl=function(e){return arguments.length?(S=e,this):S},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,o,h,w,E,M,T,F,P){function U(){try{if(!--ye)throw $e=void 0,Tr("infchng",S);M.$apply(function(){for(var e=[],t=0,n=$e.length;t<n;++t)try{$e[t]()}catch(t){e.push(t)}if($e=void 0,e.length)throw e})}finally{ye++}}function N(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=t[i]}else this.$attr={};this.$$element=e}function j(e,t){try{e.addClass(t)}catch(e){}}function R(t,n,r,i,o){t instanceof In||(t=In(t));for(var a=/\S+/,s=0,u=t.length;s<u;s++){var l=t[s];l.nodeType===er&&l.nodeValue.match(a)&&ae(l,t[s]=e.document.createElement("span"))}var c=B(t,n,t,r,i,o);R.$$addScopeClass(t);var f=null;return function(e,n,r){Y(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new());var i=(r=r||{}).parentBoundTranscludeFn,a=r.transcludeControllers;if(r=r.futureParentElement,i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=(r=r&&r[0])&&"foreignobject"!==_(r)&&Vn.call(r).match(/SVG/)?"svg":"html"),r="html"!==f?In(ce(f,In("<div>").append(t).html())):n?pr.clone.call(t):t,a)for(var s in a)r.data("$"+s+"Controller",a[s].instance);return R.$$addScopeInfo(r,e),n&&n(r,e),c&&c(e,r,r,i),r}}function B(e,t,n,r,i,o){for(var a,s,u,l,c,f=[],d=0;d<e.length;d++)a=new N,(o=(s=L(e[d],[],a,0===d?r:void 0,i)).length?K(s,e[d],a,t,n,null,[],[],o):null)&&o.scope&&R.$$addScopeClass(a.$$element),a=o&&o.terminal||!(u=e[d].childNodes)||!u.length?null:B(u,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||a)&&(f.push(d,o,a),l=!0,c=c||o),o=null;return l?function(e,n,r,i){var o,a,s,u,l,d;if(c)for(d=Array(n.length),u=0;u<f.length;u+=3)d[o=f[u]]=n[o];else d=n;for(u=0,l=f.length;u<l;)a=d[f[u++]],n=f[u++],o=f[u++],n?(n.scope?(s=e.$new(),R.$$addScopeInfo(In(a),s)):s=e,n(o,s,a,r,n.transcludeOnThisElement?z(e,n.transclude,i):!n.templateOnThisElement&&i?i:!i&&t?z(e,t):null)):o&&o(e,a.childNodes,void 0,i)}:null}function z(e,t,n){function r(r,i,o,a,s){return r||((r=e.$new(!1,s)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i,o=r.$$slots=te();for(i in t.$$slots)o[i]=t.$$slots[i]?z(e,t.$$slots[i],n):null;return r}function L(e,t,n,r,i){var o=n.$attr;switch(e.nodeType){case 1:ee(t,Ve(_(e)),"E",r,i);for(var a,s,u,c,f=e.attributes,d=0,h=f&&f.length;d<h;d++){var p=!1,g=!1;s=(a=f[d]).name,u=Wn(a.value),a=Ve(s),(c=Se.test(a))&&(s=s.replace(Fr,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()})),(a=a.match(Ce))&&ne(a[1])&&(p=s,g=s.substr(0,s.length-5)+"end",s=s.substr(0,s.length-6)),o[a=Ve(s.toLowerCase())]=s,!c&&n.hasOwnProperty(a)||(n[a]=u,xe(e,a)&&(n[a]=!0)),fe(e,t,u,a,c),ee(t,a,"A",r,i,p,g)}if(m(o=e.className)&&(o=o.animVal),y(o)&&""!==o)for(;e=l.exec(o);)ee(t,a=Ve(e[2]),"C",r,i)&&(n[a]=Wn(e[3])),o=o.substr(e.index+e[0].length);break;case er:if(11===_n)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===er;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);le(t,e.nodeValue);break;case 8:q(e,t,n,r,i)}return t.sort(oe),t}function q(e,t,n,r,i){try{var o=u.exec(e.nodeValue);if(o){var a=Ve(o[1]);ee(t,a,"M",r,i)&&(n[a]=Wn(o[2]))}}catch(e){}}function H(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Tr("uterdir",t,n);1==e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(0<i);else r.push(e);return In(r)}function W(e,t,n){return function(r,i,o,a,s){return i=H(i[0],t,n),e(r,i,o,a,s)}}function G(e,t,n,r,i,o){var a;return e?R(t,n,r,i,o):function(){return a||(a=R(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function K(e,t,n,i,a,u,l,c,f){function d(e,t,n,r){e&&(n&&(e=W(e,n,r)),e.require=p.require,e.directiveName=$,(A===p||p.$$isolateScope)&&(e=he(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=W(t,n,r)),t.require=p.require,t.directiveName=$,(A===p||p.$$isolateScope)&&(t=he(t,{isolateScope:!0})),c.push(t))}function h(e,i,a,u,f){var d,h,p,$,v,y,b,w;for(d in t===a?(u=n,w=n.$$element):u=new N(w=In(a),n),v=i,A?$=i.$new(!0):k&&(v=i.$parent),f&&((b=function(e,t,n,r){var i;if(C(e)||(r=n,n=t,t=e,e=void 0),T&&(i=y),n||(n=T?w.parent():w),!r)return f(e,t,i,n,M);var o=f.$$slots[r];if(o)return o(e,t,i,n,M);if(g(o))throw Tr("noslot",r,V(w))}).$$boundTransclude=f,b.isSlotFilled=function(e){return!!f.$$slots[e]}),S&&(y=Z(w,u,b,S,$,i,A)),A&&(R.$$addScopeInfo(w,$,!0,!(E&&(E===A||E===A.$$originalDirective))),R.$$addScopeClass(w,!0),$.$$isolateBindings=A.$$isolateBindings,(h=ge(i,u,$,$.$$isolateBindings,A)).removeWatches&&$.$on("$destroy",h.removeWatches)),y){h=S[d],p=y[d];var _=h.$$bindings.bindToController;p.bindingInfo=p.identifier&&_?ge(v,u,p.instance,_,h):{};var I=p();I!==p.instance&&(p.instance=I,w.data("$"+h.name+"Controller",I),p.bindingInfo.removeWatches&&p.bindingInfo.removeWatches(),p.bindingInfo=ge(v,u,p.instance,_,h))}for(r(S,function(e,t){var n=e.require;e.bindToController&&!qn(n)&&m(n)&&s(y[t].instance,J(t,n,w,y))}),r(y,function(e){var t=e.instance;if(x(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){o(e)}if(x(t.$onInit))try{t.$onInit()}catch(e){o(e)}x(t.$doCheck)&&(v.$watch(function(){t.$doCheck()}),t.$doCheck()),x(t.$onDestroy)&&v.$on("$destroy",function(){t.$onDestroy()})}),d=0,h=l.length;d<h;d++)pe(p=l[d],p.isolateScope?$:i,w,u,p.require&&J(p.directiveName,p.require,w,y),b);var M=i;for(A&&(A.template||null===A.templateUrl)&&(M=$),e&&e(M,a.childNodes,void 0,f),d=c.length-1;0<=d;d--)pe(p=c[d],p.isolateScope?$:i,w,u,p.require&&J(p.directiveName,p.require,w,y),b);r(y,function(e){x((e=e.instance).$postLink)&&e.$postLink()})}f=f||{};for(var p,$,v,y,b,w=-Number.MAX_VALUE,k=f.newScopeDirective,S=f.controllerDirectives,A=f.newIsolateScopeDirective,E=f.templateDirective,I=f.nonTlbTranscludeDirective,M=!1,O=!1,T=f.hasElementTranscludeDirective,F=n.$$element=In(t),P=i,U=!1,j=!1,B=0,z=e.length;B<z;B++){var q=(p=e[B]).$$start,K=p.$$end;if(q&&(F=H(t,q,K)),v=void 0,w>p.priority)break;if((b=p.scope)&&(p.templateUrl||(m(b)?(se("new/isolated scope",A||k,p,F),A=p):se("new/isolated scope",A,p,F)),k=k||p),$=p.name,!U&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(b=B+1;U=e[b++];)if(U.transclude&&!U.$$tlb||U.replace&&(U.templateUrl||U.template)){j=!0;break}U=!0}if(!p.templateUrl&&p.controller&&(b=p.controller,S=S||te(),se("'"+$+"' controller",S[$],p,F),S[$]=p),b=p.transclude)if(M=!0,p.$$tlb||(se("transclusion",I,p,F),I=p),"element"==b)T=!0,w=p.priority,v=F,F=n.$$element=In(R.$$createComment($,n[$])),t=F[0],de(a,Un.call(v,0),t),v[0].$$parentNode=v[0].parentNode,P=G(j,v,i,w,u&&u.name,{nonTlbTranscludeDirective:I});else{var X=te();if(v=In(ue(t)).contents(),m(b)){v=[];var Y=te(),ee=te();for(var ne in r(b,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,Y[e]=t,X[t]=null,ee[t]=n}),r(F.contents(),function(e){var t=Y[Ve(_(e))];t?(ee[t]=!0,X[t]=X[t]||[],X[t].push(e)):v.push(e)}),r(ee,function(e,t){if(!e)throw Tr("reqslot",t)}),X)X[ne]&&(X[ne]=G(j,X[ne],i))}F.empty(),(P=G(j,v,i,void 0,void 0,{needsNewScope:p.$$isolateScope||p.$$newScope})).$$slots=X}if(p.template)if(O=!0,se("template",E,p,F),E=p,b=x(p.template)?p.template(F,n):p.template,b=ke(b),p.replace){if(u=p,v=lr.test(b)?Be(ce(p.templateNamespace,Wn(b))):[],t=v[0],1!=v.length||1!==t.nodeType)throw Tr("tplrt",$,"");de(a,F,t),b=L(t,[],z={$attr:{}});var oe=e.splice(B+1,e.length-(B+1));(A||k)&&Q(b,A,k),e=e.concat(b).concat(oe),re(n,z),z=e.length}else F.html(b);if(p.templateUrl)O=!0,se("template",E,p,F),E=p,p.replace&&(u=p),h=ie(e.splice(B,e.length-B),F,n,a,M&&P,l,c,{controllerDirectives:S,newScopeDirective:k!==p&&k,newIsolateScopeDirective:A,templateDirective:E,nonTlbTranscludeDirective:I}),z=e.length;else if(p.compile)try{y=p.compile(F,n,P);var ae=p.$$originalDirective||p;x(y)?d(null,D(ae,y),q,K):y&&d(D(ae,y.pre),D(ae,y.post),q,K)}catch(e){o(e,V(F))}p.terminal&&(h.terminal=!0,w=Math.max(w,p.priority))}return h.scope=k&&!0===k.scope,h.transcludeOnThisElement=M,h.templateOnThisElement=O,h.transclude=P,f.hasElementTranscludeDirective=T,h}function J(e,t,n,i){var o;if(y(t)){var a=t.match(v);t=t.substring(a[0].length);var s=a[1]||a[3];a="?"===a[2];if("^^"===s?n=n.parent():o=(o=i&&i[t])&&o.instance,!o){var u="$"+t+"Controller";o=s?n.inheritedData(u):n.data(u)}if(!o&&!a)throw Tr("ctreq",t,e)}else if(qn(t))for(o=[],s=0,a=t.length;s<a;s++)o[s]=J(e,t[s],n,i);else m(t)&&(o={},r(t,function(t,r){o[r]=J(e,t,n,i)}));return o||null}function Z(e,t,n,r,i,o,a){var s,u=te();for(s in r){var l=r[s],c={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=l.controller;"@"==f&&(f=t[l.name]),c=E(f,c,!0,l.controllerAs),u[l.name]=c,e.data("$"+l.name+"Controller",c.instance)}return u}function Q(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=c(e[r],{$$isolateScope:t,$$newScope:n})}function ee(e,n,r,s,u,l,f){if(n===u)return null;if(u=null,a.hasOwnProperty(n))for(var d,h=0,p=(n=t.get(n+"Directive")).length;h<p;h++)try{if(d=n[h],(g(s)||s>d.priority)&&-1!=d.restrict.indexOf(r)){if(l&&(d=c(d,{$$start:l,$$end:f})),!d.$$bindings){var $=d,v=d,y=d.name,b={isolateScope:null,bindToController:null};if(m(v.scope)&&(!0===v.bindToController?(b.bindToController=i(v.scope,y,!0),b.isolateScope={}):b.isolateScope=i(v.scope,y,!1)),m(v.bindToController)&&(b.bindToController=i(v.bindToController,y,!0)),m(b.bindToController)){var w=v.controller,x=v.controllerAs;if(!w)throw Tr("noctrl",y);if(!ze(w,x))throw Tr("noident",y)}var k=$.$$bindings=b;m(k.isolateScope)&&(d.$$isolateBindings=k.isolateScope)}e.push(d),u=d}}catch(e){o(e)}return u}function ne(e){if(a.hasOwnProperty(e))for(var n=t.get(e+"Directive"),r=0,i=n.length;r<i;r++)if((e=n[r]).multiElement)return!0;return!1}function re(e,t){var n=t.$attr,i=e.$attr;r(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),r(t,function(t,r){e.hasOwnProperty(r)||"$"===r.charAt(0)||(e[r]=t,"class"!==r&&"style"!==r&&(i[r]=n[r]))})}function ie(e,t,n,i,o,a,s,u){var l,f,d=[],p=t[0],g=e.shift(),$=c(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=x(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,y=g.templateNamespace;return t.empty(),h(v).then(function(c){var h,b;if(c=ke(c),g.replace){if(c=lr.test(c)?Be(ce(y,Wn(c))):[],h=c[0],1!=c.length||1!==h.nodeType)throw Tr("tplrt",g.name,v);c={$attr:{}},de(i,t,h);var w=L(h,[],c);m(g.scope)&&Q(w,!0),e=w.concat(e),re(n,c)}else h=p,t.html(c);for(e.unshift($),l=K(e,h,n,o,t,g,a,s,u),r(i,function(e,n){e==h&&(i[n]=t[0])}),f=B(t[0].childNodes,o);d.length;){c=d.shift(),b=d.shift();var x=d.shift(),k=d.shift();w=t[0];if(!c.$$destroyed){if(b!==p){var S=b.className;u.hasElementTranscludeDirective&&g.replace||(w=ue(h)),de(x,In(b),w),j(In(w),S)}b=l.transcludeOnThisElement?z(c,l.transclude,k):k,l(f,c,w,i,b)}}d=null}),function(e,t,n,r,i){e=i,t.$$destroyed||(d?d.push(t,n,r,e):(l.transcludeOnThisElement&&(e=z(t,l.transclude,i)),l(f,t,n,r,e)))}}function oe(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function se(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Tr("multidir",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,V(r))}function le(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=!!(e=e.parent()).length;return t&&R.$$addBindingClass(e),function(e,n){var i=n.parent();t||R.$$addBindingClass(i),R.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){n[0].nodeValue=e})}}})}function ce(t,n){switch(t=Fn(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function fe(e,t,r,i,o){var a=function(e,t){if("srcdoc"==t)return T.HTML;var n=_(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?T.RESOURCE_URL:void 0}(e,i);o=p[i]||o;var s=n(r,!0,a,o);if(s){if("multiple"===i&&"select"===_(e))throw Tr("selmulti",V(e));t.push({priority:100,compile:function(){return{pre:function(e,t,u){if(t=u.$$observers||(u.$$observers=te()),b.test(i))throw Tr("nodomevents");var l=u[i];l!==r&&(s=l&&n(l,!0,a,o),r=l),s&&(u[i]=s(e),(t[i]||(t[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!=t?u.$updateClass(e,t):u.$set(i,e)}))}}}})}}function de(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]==a){t[i++]=r,o=i+s-1;for(var l=t.length;i<l;i++,o++)o<l?t[i]=t[o]:delete t[i];t.length-=s-1,t.context===a&&(t.context=r);break}for(u&&u.replaceChild(r,a),t=e.document.createDocumentFragment(),i=0;i<s;i++)t.appendChild(n[i]);for(In.hasData(a)&&(In.data(r,In.data(a)),In(a).off("$destroy")),In.cleanData(t.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function he(e,t){return s(function(){return e.apply(null,arguments)},e,t)}function pe(e,t,n,r,i,a){try{e(t,n,r,i,a)}catch(e){o(e,V(n))}}function ge(e,t,i,o,a){function s(t,n,r){x(i.$onChanges)&&n!==r&&($e||(e.$$postDigest(U),$e=[]),l||(l={},$e.push(u)),l[t]&&(r=l[t].previousValue),l[t]=new je(r,n))}function u(){i.$onChanges(l),l=void 0}var l,c=[],d={};return r(o,function(r,o){var u,l,h,p,g=r.attrName,$=r.optional;switch(r.mode){case"@":$||Dn.call(t,g)||(i[o]=t[g]=void 0),t.$observe(g,function(e){(y(e)||A(e))&&(s(o,e,i[o]),i[o]=e)}),t.$$observers[g].$$scope=e,y(u=t[g])?i[o]=n(u)(e):A(u)&&(i[o]=u),d[o]=new je(Dr,i[o]);break;case"=":if(!Dn.call(t,g)){if($)break;t[g]=void 0}if($&&!t[g])break;l=w(t[g]),p=l.literal?O:function(e,t){return e===t||e!=e&&t!=t},h=l.assign||function(){throw u=i[o]=l(e),Tr("nonassign",t[g],g,a.name)},u=i[o]=l(e),($=function(t){return p(t,i[o])||(p(t,u)?h(e,t=i[o]):i[o]=t),u=t}).$stateful=!0,$=r.collection?e.$watchCollection(t[g],$):e.$watch(w(t[g],$),null,l.literal),c.push($);break;case"<":if(!Dn.call(t,g)){if($)break;t[g]=void 0}if($&&!t[g])break;l=w(t[g]);var m=i[o]=l(e);d[o]=new je(Dr,i[o]),$=e.$watch(l,function(e,t){if(t===e){if(t===m)return;t=m}s(o,e,t),i[o]=e},l.literal),c.push($);break;case"&":if((l=t.hasOwnProperty(g)?w(t[g]):f)===f&&$)break;i[o]=function(t){return l(e,t)}}}),{initialChanges:d,removeWatches:c.length&&function(){for(var e=0,t=c.length;e<t;++e)c[e]()}}}var $e,me=/^\w/,ve=e.document.createElement("div"),ye=S;N.prototype={$normalize:Ve,$addClass:function(e){e&&0<e.length&&F.addClass(this.$$element,e)},$removeClass:function(e){e&&0<e.length&&F.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Re(e,t);n&&n.length&&F.addClass(this.$$element,n),(n=Re(t,e))&&n.length&&F.removeClass(this.$$element,n)},$set:function(e,t,n,i){var a=xe(this.$$element[0],e),s=mr[e],u=e;if(a?(this.$$element.prop(e,t),i=a):s&&(this[s]=t,u=s),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=X(e,"-")),"a"===(a=_(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=P(t,"src"===e);else if("img"===a&&"srcset"===e&&$(t)){a="",s=Wn(t);for(var l=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,c=(l=/\s/.test(s)?l:/(,)/,s=s.split(l),l=Math.floor(s.length/2),0);c<l;c++){var f=2*c;a=(a=a+P(Wn(s[f]),!0))+" "+Wn(s[f+1])}s=Wn(s[2*c]).split(/\s/),a+=P(Wn(s[0]),!0),2===s.length&&(a+=" "+Wn(s[1])),this[e]=t=a}!1!==n&&(null===t||g(t)?this.$$element.removeAttr(i):me.test(i)?this.$$element.attr(i,t):function(e,t,n){ve.innerHTML="<span "+t+">";var r=(t=ve.firstChild.attributes)[0];t.removeNamedItem(r.name),r.value=n,e.attributes.setNamedItem(r)}(this.$$element[0],i,t)),(e=this.$$observers)&&r(e[u],function(e){try{e(t)}catch(e){o(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=te()),i=r[e]||(r[e]=[]);return i.push(t),M.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||g(n[e])||t(n[e])}),function(){I(i,t)}}};var be=n.startSymbol(),we=n.endSymbol(),ke="{{"==be&&"}}"==we?d:function(e){return e.replace(/\{\{/g,be).replace(/}}/g,we)},Se=/^ngAttr[A-Z]/,Ce=/^(.+)Start$/;return R.$$addBindingInfo=k?function(e,t){var n=e.data("$binding")||[];qn(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:f,R.$$addBindingClass=k?function(e){j(e,"ng-binding")}:f,R.$$addScopeInfo=k?function(e,t,n,r){e.data(n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:f,R.$$addScopeClass=k?function(e,t){j(e,t?"ng-isolate-scope":"ng-scope")}:f,R.$$createComment=function(t,n){var r="";return k&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},R}]}function je(e,t){this.previousValue=e,this.currentValue=t}function Ve(e){return re(e.replace(Fr,""))}function Re(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/),o=0;e:for(;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(0<n.length?" ":"")+a}return n}function Be(e){var t=(e=In(e)).length;if(1>=t)return e;for(;t--;)8===e[t].nodeType&&Nn.call(e,t,1);return e}function ze(e,t){if(t&&y(t))return t;if(y(e)){var n=Ur.exec(e);if(n)return n[3]}}function Le(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){Z(t,"controller"),m(t)?s(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||!m(e.$scope))throw t("$controller")("noscp",i,n);e.$scope[n]=r}return function(t,a,u,l){var c,f,d;if(u=!0===u,l&&y(l)&&(d=l),y(t)){if(!(l=t.match(Ur)))throw Pr("ctrlfmt",t);f=l[1],d=d||l[3],J(t=e.hasOwnProperty(f)?e[f]:Q(a.$scope,f,!0)||(n?Q(i,f,!0):void 0),f,!0)}return u?(u=(qn(t)?t[t.length-1]:t).prototype,c=Object.create(u||null),d&&o(a,d,c,f||t.name),s(function(){var e=r.invoke(t,c,a,f);return e!==c&&(m(e)||x(e))&&(c=e,d&&o(a,d,c,f||t.name)),c},{instance:c,identifier:d})):(c=r.instantiate(t,a,f),d&&o(a,d,c,f||t.name),c)}}]}function qe(){this.$get=["$window",function(e){return In(e.document)}]}function He(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function We(e){return m(e)?w(e)?e.toISOString():P(e):e}function Ge(){this.$get=function(){return function(e){if(!e)return"";var t=[];return i(e,function(e,n){null===e||g(e)||(qn(e)?r(e,function(e){t.push(q(n)+"="+q(We(e)))}):t.push(q(n)+"="+q(We(e))))}),t.join("&")}}}function Ke(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,o,a){null===n||g(n)||(qn(n)?r(n,function(t,n){e(t,o+"["+(m(t)?n:"")+"]")}):m(n)&&!w(n)?i(n,function(t,n){e(t,o+(a?"":"[")+n+(a?"":"]"))}):t.push(q(o)+"="+q(We(n))))}(e,"",!0),t.join("&")}}}function Xe(e,t){if(y(e)){var n=e.replace(zr,"").trim();if(n){var r=t("Content-Type");(r=r&&0===r.indexOf(jr))||(r=(r=n.match(Rr))&&Br[r[0]].test(n)),r&&(e=U(n))}}return e}function Ye(e){var t,n=te();return y(e)?r(e.split("\n"),function(e){t=e.indexOf(":");var r=Fn(Wn(e.substr(0,t)));e=Wn(e.substr(t+1)),r&&(n[r]=n[r]?n[r]+", "+e:e)}):m(e)&&r(e,function(e,t){var r=Fn(t),i=Wn(e);r&&(n[r]=n[r]?n[r]+", "+i:i)}),n}function Je(e){var t;return function(n){return t||(t=Ye(e)),n?(void 0===(n=t[Fn(n)])&&(n=null),n):t}}function Ze(e,t,n,i){return x(i)?i(e,t,n):(r(i,function(r){e=r(e,t,n)}),e)}function Qe(){var e=this.defaults={transformResponse:[Xe],transformRequest:[function(e){return m(e)&&"[object File]"!==Vn.call(e)&&"[object Blob]"!==Vn.call(e)&&"[object FormData]"!==Vn.call(e)?P(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ne(Vr),put:ne(Vr),patch:ne(Vr)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(e){return $(e)?(n=!!e,this):n};var i=!0;this.useLegacyPromiseExtensions=function(e){return $(e)?(i=!!e,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,u,l,c,f,d){function h(n){function o(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function a(e){var t=s({},e);return t.data=Ze(e.data,e.headers,e.status,u.transformResponse),200<=(e=e.status)&&300>e?t:f.reject(t)}if(!m(n))throw t("$http")("badreq",n);if(!y(n.url))throw t("$http")("badreq",n.url);var u=s({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},n);u.headers=function(t){var n,i,o,a=e.headers,u=s({},t.headers);a=s({},a.common,a[Fn(t.method)]);e:for(n in a){for(o in i=Fn(n),u)if(Fn(o)===i)continue e;u[n]=a[n]}return function(e,t){var n,i={};return r(e,function(e,r){x(e)?null!=(n=e(t))&&(i[r]=n):i[r]=e}),i}(u,ne(t))}(n),u.method=Pn(u.method),u.paramSerializer=y(u.paramSerializer)?d.get(u.paramSerializer):u.paramSerializer;var l=[],c=[],h=f.when(u);return r(b,function(e){(e.request||e.requestError)&&l.unshift(e.request,e.requestError),(e.response||e.responseError)&&c.push(e.response,e.responseError)}),h=(h=o(h,l)).then(function(t){var n=t.headers,i=Ze(t.data,Je(n),void 0,t.transformRequest);return g(i)&&r(n,function(e,t){"content-type"===Fn(t)&&delete n[t]}),g(t.withCredentials)&&!g(e.withCredentials)&&(t.withCredentials=e.withCredentials),p(t,i).then(a,a)}),h=o(h,c),i?(h.success=function(e){return J(e,"fn"),h.then(function(t){e(t.data,t.status,t.headers,u)}),h},h.error=function(e){return J(e,"fn"),h.then(null,function(t){e(t.data,t.status,t.headers,u)}),h}):(h.success=qr("success"),h.error=qr("error")),h}function p(t,i){function o(e){if(e){var t={};return r(e,function(e,r){t[r]=function(t){function r(){e(t)}n?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}}),t}}function s(e,n,r,i){(200<=(n=-1<=n?n:0)&&300>n?b.resolve:b.reject)({data:e,status:n,headers:Je(r),config:t,statusText:i})}function l(e){s(e.data,e.status,ne(e.headers()),e.statusText)}function d(){var e=h.pendingRequests.indexOf(t);-1!==e&&h.pendingRequests.splice(e,1)}var p,y,b=f.defer(),w=b.promise,k=t.headers,S=function(e,t){return 0<t.length&&(e+=(-1==e.indexOf("?")?"?":"&")+t),e}(t.url,t.paramSerializer(t.params));return h.pendingRequests.push(t),w.then(d,d),!t.cache&&!e.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(p=m(t.cache)?t.cache:m(e.cache)?e.cache:v),p&&($(y=p.get(S))?y&&x(y.then)?y.then(l,l):qn(y)?s(y[1],y[0],ne(y[2]),y[3]):s(y,200,{},"OK"):p.put(S,w)),g(y)&&((y=Kt(t.url)?u()[t.xsrfCookieName||e.xsrfCookieName]:void 0)&&(k[t.xsrfHeaderName||e.xsrfHeaderName]=y),a(t.method,S,i,function(e,t,r,i){function o(){s(t,e,r,i)}p&&(200<=e&&300>e?p.put(S,[e,t,Ye(r),i]):p.remove(S)),n?c.$applyAsync(o):(o(),c.$$phase||c.$apply())},k,t.timeout,t.withCredentials,t.responseType,o(t.eventHandlers),o(t.uploadEventHandlers))),w}var v=l("$http");e.paramSerializer=y(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var b=[];return r(o,function(e){b.unshift(y(e)?d.get(e):d.invoke(e))}),h.pendingRequests=[],function(e){r(arguments,function(e){h[e]=function(t,n){return h(s({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){r(arguments,function(e){h[e]=function(t,n,r){return h(s({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),h.defaults=e,h}]}function et(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function tt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,i){return function(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,!1),r.removeEventListener("error",a,!1),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,!1),r.addEventListener("error",a,!1),o.body.appendChild(r),a}return function(o,s,u,l,c,d,h,p,m,v){function y(){k&&k(),S&&S.abort()}function b(t,r,i,o,a){$(C)&&n.cancel(C),k=S=null,t(r,i,o,a),e.$$completeOutstandingRequest(f)}if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"===Fn(o))var w=i.createCallback(s),k=a(s,w,function(e,t){var n=200===e&&i.getResponse(w);b(l,e,n,"",t),i.removeCallback(w)});else{var S=t(o,s);if(S.open(o,s,!0),r(c,function(e,t){$(e)&&S.setRequestHeader(t,e)}),S.onload=function(){var e=S.statusText||"",t="response"in S?S.response:S.responseText,n=1223===S.status?204:S.status;0===n&&(n=t?200:"file"==Gt(s).protocol?404:0),b(l,n,t,S.getAllResponseHeaders(),e)},o=function(){b(l,-1,null,null,"")},S.onerror=o,S.onabort=o,r(m,function(e,t){S.addEventListener(t,e)}),r(v,function(e,t){S.upload.addEventListener(t,e)}),h&&(S.withCredentials=!0),p)try{S.responseType=p}catch(e){if("json"!==p)throw e}S.send(g(u)?null:u)}if(0<d)var C=n(y,d);else d&&x(d.then)&&d.then(y)}}(e,i,e.defer,t,n[0])}]}function nt(){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(p,t)}function u(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function l(o,l,d,p){function m(e){try{var t,n=e;if(e=d?i.getTrusted(d,n):i.valueOf(n),p&&!$(e))t=e;else if(null==e)t="";else{switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=P(e)}t=e}return t}catch(e){r(Hr.interr(o,e))}}var v;if(!o.length||-1===o.indexOf(e))return l||((v=h(l=a(o))).exp=o,v.expressions=[],v.$$watchDelegate=u),v;p=!!p;var y,b,w=0,k=[],S=[];v=o.length;for(var C=[],A=[];w<v;){if(-1==(y=o.indexOf(e,w))||-1==(b=o.indexOf(t,y+c))){w!==v&&C.push(a(o.substring(w)));break}w!==y&&C.push(a(o.substring(w,y))),w=o.substring(y+c,b),k.push(w),S.push(n(w,m)),w=b+f,A.push(C.length),C.push("")}if(d&&1<C.length&&Hr.throwNoconcat(o),!l||k.length){var E=function(e){for(var t=0,n=k.length;t<n;t++){if(p&&g(e[t]))return;C[A[t]]=e[t]}return C.join("")};return s(function(e){var t=0,n=k.length,i=Array(n);try{for(;t<n;t++)i[t]=S[t](e);return E(i)}catch(e){r(Hr.interr(o,e))}},{exp:o,expressions:k,$$watchDelegate:function(e,t){var n;return e.$watchGroup(S,function(r,i){var o=E(r);x(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var c=e.length,f=t.length,d=new RegExp(e.replace(/./g,o),"g"),p=new RegExp(t.replace(/./g,o),"g");return l.startSymbol=function(){return e},l.endSymbol=function(){return t},l}]}function rt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,u,l){function c(){f?o.apply(null,d):o(g)}var f=4<arguments.length,d=f?Un.call(arguments,4):[],h=t.setInterval,p=t.clearInterval,g=0,m=$(l)&&!l,v=(m?r:n).defer(),y=v.promise;return u=$(u)?u:0,y.$$intervalId=h(function(){m?i.defer(c):e.$evalAsync(c),v.notify(g++),0<u&&g>=u&&(v.resolve(g),p(y.$$intervalId),delete a[y.$$intervalId]),m||e.$apply()},s),a[y.$$intervalId]=v,y}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function it(e){for(var t=(e=e.split("/")).length;t--;)e[t]=L(e[t]);return e.join("/")}function ot(e,t){var n=Gt(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=l(n.port)||Kr[n.protocol]||null}function at(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=Gt(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=B(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function st(e,t){if(0===t.lastIndexOf(e,0))return t.substr(e.length)}function ut(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function lt(e){return e.replace(/(#.+)|#$/,"$1")}function ct(e,t,n){this.$$html5=!0,n=n||"",ot(e,this),this.$$parse=function(e){var n=st(t,e);if(!y(n))throw Xr("ipthprfx",e,t);at(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=z(this.$$search),n=this.$$hash?"#"+L(this.$$hash):"";this.$$url=it(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):($(o=st(e,r))?(a=o,a=$(o=st(n,o))?t+(st("/",o)||o):e+a):$(o=st(t,r))?a=t+o:t==r+"/"&&(a=t),a&&this.$$parse(a),!!a);var o,a}}function ft(e,t,n){ot(e,this),this.$$parse=function(r){var i;g(o=st(e,r)||st(t,r))||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",g(o)&&(e=r,this.replace())):g(i=st(n,o))&&(i=o),at(i,this),r=this.$$path;var o=e,a=/^\/[A-Z]:(\/.*)/;0===i.lastIndexOf(o,0)&&(i=i.replace(o,"")),a.exec(i)||(r=(i=a.exec(r))?i[1]:r),this.$$path=r,this.$$compose()},this.$$compose=function(){var t=z(this.$$search),r=this.$$hash?"#"+L(this.$$hash):"";this.$$url=it(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return ut(e)==ut(t)&&(this.$$parse(t),!0)}}function dt(e,t,n){this.$$html5=!0,ft.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e==ut(r)?o=r:(a=st(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o);var o,a},this.$$compose=function(){var t=z(this.$$search),r=this.$$hash?"#"+L(this.$$hash):"";this.$$url=it(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function ht(e){return function(){return this[e]}}function pt(e,t){return function(n){return g(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function gt(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return $(t)?(e=t,this):e},this.html5Mode=function(e){return A(e)?(t.enabled=e,this):m(e)?(A(e.enabled)&&(t.enabled=e.enabled),A(e.requireBase)&&(t.requireBase=e.requireBase),A(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(e){throw l.url(i),l.$$state=o,e}}function u(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c;c=r.baseHref();var f,d=r.url();if(t.enabled){if(!c&&t.requireBase)throw Xr("nobase");f=d.substring(0,d.indexOf("/",d.indexOf("//")+2))+(c||"/"),c=i.history?ct:dt}else f=ut(d),c=ft;var h=f.substr(0,ut(f).lastIndexOf("/")+1);(l=new c(f,h,"#"+e)).$$parseLinkUrl(d,d),l.$$state=r.state();var p=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=In(e.target);"a"!==_(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");m(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=Gt(s.animVal).href),p.test(s)||!s||i.attr("target")||e.isDefaultPrevented()||!l.$$parseLinkUrl(s,u)||(e.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),lt(l.absUrl())!=lt(d)&&r.url(l.absUrl(),!0);var $=!0;return r.onUrlChange(function(e,t){g(st(h,e))?a.location.href=e:(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;e=lt(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)):($=!1,u(i,o)))}),n.$$phase||n.$digest())}),n.$watch(function(){var e=lt(r.url()),t=lt(l.absUrl()),o=r.state(),a=l.$$replace,c=e!==t||l.$$html5&&i.history&&o!==l.$$state;($||c)&&($=!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 $t(){var e=!0,t=this;this.debugEnabled=function(t){return $(t)?(e=t,this):e},this.$get=["$window",function(n){function i(e){var t=n.console||{},i=t[e]||t.log||f;e=!1;try{e=!!i.apply}catch(e){}return e?function(){var e=[];return r(arguments,function(t){e.push(function(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function mt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw Jr("isecfld",t);return e}function vt(e){return e+""}function yt(e,t){if(e){if(e.constructor===e)throw Jr("isecfn",t);if(e.window===e)throw Jr("isecwindow",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw Jr("isecdom",t);if(e===Object)throw Jr("isecobj",t)}return e}function bt(e,t){if(e){if(e.constructor===e)throw Jr("isecfn",t);if(e===Zr||e===Qr||e===ei)throw Jr("isecff",t)}}function wt(e,t){if(e&&(e===(0).constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw Jr("isecaf",t)}function xt(e,t){return void 0!==e?e:t}function kt(e,t){return void 0===e?t:void 0===t?e:e+t}function St(e,t){var n,i;switch(e.type){case ii.Program:n=!0,r(e.body,function(e){St(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case ii.Literal:e.constant=!0,e.toWatch=[];break;case ii.UnaryExpression:St(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case ii.BinaryExpression:St(e.left,t),St(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case ii.LogicalExpression:St(e.left,t),St(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case ii.ConditionalExpression:St(e.test,t),St(e.alternate,t),St(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case ii.Identifier:e.constant=!1,e.toWatch=[e];break;case ii.MemberExpression:St(e.object,t),e.computed&&St(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case ii.CallExpression:n=!!e.filter&&!t(e.callee.name).$stateful,i=[],r(e.arguments,function(e){St(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&!t(e.callee.name).$stateful?i:[e];break;case ii.AssignmentExpression:St(e.left,t),St(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case ii.ArrayExpression:n=!0,i=[],r(e.elements,function(e){St(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i;break;case ii.ObjectExpression:n=!0,i=[],r(e.properties,function(e){St(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 ii.ThisExpression:e.constant=!1,e.toWatch=[];break;case ii.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Ct(e){if(1==e.length){var t=(e=e[0].expression).toWatch;return 1!==t.length?t:t[0]!==e?t:void 0}}function At(e){return e.type===ii.Identifier||e.type===ii.MemberExpression}function Et(e){if(1===e.body.length&&At(e.body[0].expression))return{type:ii.AssignmentExpression,left:e.body[0].expression,right:{type:ii.NGValueParameter},operator:"="}}function _t(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===ii.Literal||e.body[0].expression.type===ii.ArrayExpression||e.body[0].expression.type===ii.ObjectExpression)}function It(e,t){this.astBuilder=e,this.$filter=t}function Mt(e,t){this.astBuilder=e,this.$filter=t}function Ot(e){return"constructor"==e}function Tt(e){return x(e.valueOf)?e.valueOf():ai.call(e)}function Dt(){var e,t,n=te(),i=te(),o={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){o[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(a){function s(e,t,r){var o,s,u;switch(r=r||y,typeof e){case"string":u=e=e.trim();var g=r?i:n;if(!(o=g[u])){":"===e.charAt(0)&&":"===e.charAt(1)&&(s=!0,e=e.substring(2));var $=new ri(o=r?v:m);(o=new oi($,a,o).parse(e)).constant?o.$$watchDelegate=h:s?o.$$watchDelegate=o.literal?d:c:o.inputs&&(o.$$watchDelegate=l),r&&(o=function e(t){function n(e,n,r,i){var o=y;y=!0;try{return t(e,n,r,i)}finally{y=o}}if(!t)return t;n.$$watchDelegate=t.$$watchDelegate;n.assign=e(t.assign);n.constant=t.constant;n.literal=t.literal;for(var r=0;t.inputs&&r<t.inputs.length;++r)t.inputs[r]=e(t.inputs[r]);n.inputs=t.inputs;return n}(o)),g[u]=o}return p(o,t);case"function":return p(e,t);default:return p(f,t)}}function u(e,t){return null==e||null==t?e===t:("object"!=typeof e||"object"!=typeof(e=Tt(e)))&&(e===t||e!=e&&t!=t)}function l(e,t,n,r,i){var o;if(1===(s=r.inputs).length){var a=u,s=s[0];return e.$watch(function(e){var t=s(e);return u(t,a)||(o=r(e,void 0,void 0,[t]),a=t&&Tt(t)),o},t,n,i)}for(var l=[],c=[],f=0,d=s.length;f<d;f++)l[f]=u,c[f]=null;return e.$watch(function(e){for(var t=!1,n=0,i=s.length;n<i;n++){var a=s[n](e);(t||(t=!u(a,l[n])))&&(c[n]=a,l[n]=a&&Tt(a))}return t&&(o=r(e,void 0,void 0,c)),o},t,n,i)}function c(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,x(t)&&t.apply(this,arguments),$(e)&&r.$$postDigest(function(){$(o)&&i()})},n)}function d(e,t,n,i){function o(e){var t=!0;return r(e,function(e){$(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return i(e)},function(e,n,r){s=e,x(t)&&t.call(this,e,n,r),o(e)&&r.$$postDigest(function(){o(s)&&a()})},n)}function h(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function p(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1;n=n!==d&&n!==c?function(n,i,o,a){return o=r&&a?a[0]:e(n,i,o,a),t(o,n,i)}:function(n,r,i,o){return i=e(n,r,i,o),n=t(i,n,r),$(i)?n:i};return e.$$watchDelegate&&e.$$watchDelegate!==l?n.$$watchDelegate=e.$$watchDelegate:t.$stateful||(n.$$watchDelegate=l,r=!e.inputs,n.inputs=e.inputs?e.inputs:[e]),n}var g=Kn().noUnsafeEval,m={csp:g,expensiveChecks:!1,literals:M(o),isIdentifierStart:x(e)&&e,isIdentifierContinue:x(t)&&t},v={csp:g,expensiveChecks:!0,literals:M(o),isIdentifierStart:x(e)&&e,isIdentifierContinue:x(t)&&t},y=!1;return s.$$runningExpensiveChecks=function(){return y},s}]}function Ft(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Ut(function(t){e.$evalAsync(t)},t)}]}function Pt(){this.$get=["$browser","$exceptionHandler",function(e,t){return Ut(function(t){e.defer(t)},t)}]}function Ut(e,n){function i(){this.$$state={status:0}}function o(e,t){return function(n){t.call(e,n)}}function a(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){var e,r,i;i=t.pending,t.processScheduled=!1,t.pending=void 0;for(var o=0,a=i.length;o<a;++o){r=i[o][0],e=i[o][t.status];try{x(e)?r.resolve(e(t.value)):1===t.status?r.resolve(t.value):r.reject(t.value)}catch(e){r.reject(e),n(e)}}}))}function u(){this.promise=new i}var l=t("$q",TypeError),c=function(){var e=new u;return e.resolve=o(e,e.resolve),e.reject=o(e,e.reject),e.notify=o(e,e.notify),e};s(i.prototype,{then:function(e,t,n){if(g(e)&&g(t)&&g(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),0<this.$$state.status&&a(this.$$state),r.promise},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return d(t,!0,e)},function(t){return d(t,!1,e)},t)}}),s(u.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(l("qcycle",e)):this.$$resolve(e))},$$resolve:function(e){function t(e){s||(s=!0,i.$$reject(e))}var r,i=this,s=!1;try{(m(e)||x(e))&&(r=e&&e.then),x(r)?(this.promise.$$state.status=-1,r.call(e,function(e){s||(s=!0,i.$$resolve(e))},t,o(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,a(this.promise.$$state))}catch(e){t(e),n(e)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,a(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending;0>=this.promise.$$state.status&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;o<a;o++){i=r[o][0],e=r[o][3];try{i.notify(x(e)?e(t):t)}catch(e){n(e)}}})}});var f=function(e,t){var n=new u;return t?n.resolve(e):n.reject(e),n.promise},d=function(e,t,n){var r=null;try{x(n)&&(r=n())}catch(e){return f(e,!1)}return r&&x(r.then)?r.then(function(){return f(e,t)},function(e){return f(e,!1)}):f(e,t)},h=function(e,t,n,r){var i=new u;return i.resolve(e),i.promise.then(t,n,r)},p=function(e){if(!x(e))throw l("norslvr",e);var t=new u;return e(function(e){t.resolve(e)},function(e){t.reject(e)}),t.promise};return p.prototype=i.prototype,p.defer=c,p.reject=function(e){var t=new u;return t.reject(e),t.promise},p.when=h,p.resolve=h,p.all=function(e){var t=new u,n=0,i=qn(e)?[]:{};return r(e,function(e,r){n++,h(e).then(function(e){i.hasOwnProperty(r)||(i[r]=e,--n||t.resolve(i))},function(e){i.hasOwnProperty(r)||t.reject(e)})}),0===n&&t.resolve(i),t.promise},p.race=function(e){var t=c();return r(e,function(e){h(e).then(t.resolve,t.reject)}),t.promise},p}function Nt(){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 jt(){var e=10,i=t("$rootScope"),o=null,a=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(t,s,u){function l(e){e.currentScope.$$destroyed=!0}function c(){this.$id=++Ln,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function d(e){if(y.$$phase)throw i("inprog",y.$$phase);y.$$phase=e}function h(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function p(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function $(){}function v(){for(;k.length;)try{k.shift()()}catch(e){t(e)}a=null}c.prototype={constructor:c,$new:function(e,t){var n;return t=t||this,e?(n=new c).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++Ln,this.$$ChildScope=null}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!=this)&&n.$on("$destroy",l),n},$watch:function(e,t,n,r){var i=s(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var a=this,u=a.$$watchers,l={fn:t,last:$,get:i,exp:r||e,eq:!!n};return o=null,x(t)||(l.fn=f),u||(u=a.$$watchers=[]),u.unshift(l),h(this,1),function(){0<=I(u,l)&&h(a,-1),o=null}},$watchGroup:function(e,t){function n(){u=!1,l?(l=!1,t(o,o,s)):t(o,i,s)}var i=Array(e.length),o=Array(e.length),a=[],s=this,u=!1,l=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(o,o,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,r){o[0]=e,i[0]=n,t(o,e===n?o:i,r)}):(r(e,function(e,t){var r=s.$watch(e,function(e,r){o[t]=e,i[t]=r,u||(u=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function r(e){var t,r,a;if(!g(i=e)){if(m(i))if(n(i))for(o!==d&&($=(o=d).length=0,c++),e=i.length,$!==e&&(c++,o.length=$=e),t=0;t<e;t++)a=o[t],r=i[t],a!=a&&r!=r||a===r||(c++,o[t]=r);else{for(t in o!==h&&(o=h={},$=0,c++),e=0,i)Dn.call(i,t)&&(e++,r=i[t],a=o[t],t in o?a!=a&&r!=r||a===r||(c++,o[t]=r):($++,o[t]=r,c++));if($>e)for(t in c++,o)Dn.call(i,t)||($--,delete o[t])}else o!==i&&(o=i,c++);return c}}r.$stateful=!0;var i,o,a,u=this,l=1<t.length,c=0,f=s(e,r),d=[],h={},p=!0,$=0;return this.$watch(f,function(){if(p?(p=!1,t(i,i,u)):t(i,a,u),l)if(m(i))if(n(i)){a=Array(i.length);for(var e=0;e<i.length;e++)a[e]=i[e]}else for(e in a={},i)Dn.call(i,e)&&(a[e]=i[e]);else a=i})},$digest:function(){var n,r,s,l,c,f,h,p,g,m=e,k=[];d("$digest"),u.$$checkUrlChange(),this===y&&null!==a&&(u.defer.cancel(a),v()),o=null;do{for(f=!1,h=this,l=0;l<b.length;l++){try{(g=b[l]).scope.$eval(g.expression,g.locals)}catch(e){t(e)}o=null}b.length=0;e:do{if(l=h.$$watchers)for(c=l.length;c--;)try{if(n=l[c])if((r=(0,n.get)(h))===(s=n.last)||(n.eq?O(r,s):"number"==typeof r&&"number"==typeof s&&isNaN(r)&&isNaN(s))){if(n===o){f=!1;break e}}else f=!0,o=n,n.last=n.eq?M(r,null):r,(0,n.fn)(r,s===$?r:s,h),5>m&&(k[p=4-m]||(k[p]=[]),k[p].push({msg:x(n.exp)?"fn: "+(n.exp.name||n.exp.toString()):n.exp,newVal:r,oldVal:s}))}catch(e){t(e)}if(!(l=h.$$watchersCount&&h.$$childHead||h!==this&&h.$$nextSibling))for(;h!==this&&!(l=h.$$nextSibling);)h=h.$parent}while(h=l);if((f||b.length)&&!m--)throw y.$$phase=null,i("infdig",e,k)}while(f||b.length);for(y.$$phase=null;S<w.length;)try{w[S++]()}catch(e){t(e)}w.length=S=0},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===y&&u.$$applicationDestroyed(),h(this,-this.$$watchersCount),this.$$listenerCount)p(this,this.$$listenerCount[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=f,this.$on=this.$watch=this.$watchGroup=function(){return f},this.$$listeners={},this.$$nextSibling=null,function e(t){9===_n&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e,t){y.$$phase||b.length||u.defer(function(){b.length&&y.$digest()}),b.push({scope:this,expression:s(e),locals:t})},$$postDigest:function(e){w.push(e)},$apply:function(e){try{d("$apply");try{return this.$eval(e)}finally{y.$$phase=null}}catch(e){t(e)}finally{try{y.$digest()}catch(e){throw t(e),e}}},$applyAsync:function(e){var t=this;e&&k.push(function(){t.$eval(e)}),e=s(e),null===a&&(a=u.defer(function(){y.$apply(v)}))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,p(i,1,e))}},$emit:function(e,n){var r,i,o,a=[],s=this,u=!1,l={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=T([l],arguments,1);do{for(r=s.$$listeners[e]||a,l.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,c)}catch(e){t(e)}else r.splice(i,1),i--,o--;if(u)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,n){var r=this,i=this,o={name:e,targetScope:this,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[e])return o;for(var a,s,u=T([o],arguments,1);r=i;){for(o.currentScope=r,a=0,s=(i=r.$$listeners[e]||[]).length;a<s;a++)if(i[a])try{i[a].apply(null,u)}catch(e){t(e)}else i.splice(a,1),a--,s--;if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==this&&r.$$nextSibling))for(;r!==this&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var y=new c,b=y.$$asyncQueue=[],w=y.$$postDigestQueue=[],k=y.$$applyAsyncQueue=[],S=0;return y}]}function Vt(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return $(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return $(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return""===(i=Gt(n).href)||i.match(o)?n:"unsafe:"+i}}}function Rt(e){var t=[];return $(e)&&r(e,function(e){t.push(function(e){if("self"===e)return e;if(y(e)){if(-1<e.indexOf("***"))throw si("iwcard",e);return e=Gn(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(k(e))return new RegExp("^"+e.source+"$");throw si("imatcher")}(e))}),t}function Bt(){this.SCE_CONTEXTS=ui;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Rt(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Rt(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Kt(t):!!e.exec(t.href)}function i(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var o=function(e){throw si("unsafe")};n.has("$sanitize")&&(o=n.get("$sanitize"));var a=i(),s={};return s[ui.HTML]=i(a),s[ui.CSS]=i(a),s[ui.URL]=i(a),s[ui.JS]=i(a),s[ui.RESOURCE_URL]=i(s[ui.URL]),{trustAs:function(e,t){var n=s.hasOwnProperty(e)?s[e]:null;if(!n)throw si("icontext",e,t);if(null===t||g(t)||""===t)return t;if("string"!=typeof t)throw si("itype",e);return new n(t)},getTrusted:function(n,i){if(null===i||g(i)||""===i)return i;if((l=s.hasOwnProperty(n)?s[n]:null)&&i instanceof l)return i.$$unwrapTrustedValue();if(n===ui.RESOURCE_URL){var a,u,l=Gt(i.toString()),c=!1;for(a=0,u=e.length;a<u;a++)if(r(e[a],l)){c=!0;break}if(c)for(a=0,u=t.length;a<u;a++)if(r(t[a],l)){c=!1;break}if(c)return i;throw si("insecurl",i.toString())}if(n===ui.HTML)return o(i);throw si("unsafe")},valueOf:function(e){return e instanceof a?e.$$unwrapTrustedValue():e}}}]}function zt(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&8>_n)throw si("iequirks");var i=ne(ui);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=d),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(ui,function(e,t){var n=Fn(t);i[re("parse_as_"+n)]=function(t){return o(e,t)},i[re("get_trusted_"+n)]=function(t){return a(e,t)},i[re("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function Lt(){this.$get=["$window","$document",function(e,t){var n,r={},i=!(e.chrome&&e.chrome.app&&e.chrome.app.runtime)&&e.history&&e.history.pushState,o=l((/android (\d+)/.exec(Fn((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,c=s.body&&s.body.style,f=!1,d=!1;if(c){for(var h in c)if(f=u.exec(h)){n=(n=f[0])[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),f=!!("transition"in c||n+"Transition"in c),d=!!("animation"in c||n+"Animation"in c),!o||f&&d||(f=y(c.webkitTransition),d=y(c.webkitAnimation))}return{history:!(!i||4>o||a),hasEvent:function(e){if("input"===e&&11>=_n)return!1;if(g(r[e])){var t=s.createElement("div");r[e]="on"+e in t}return r[e]},csp:Kn(),vendorPrefix:n,transitions:f,animations:d,android:o}}]}function qt(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,r,i){function o(a,u){o.totalPendingRequests++,y(a)&&!g(t.get(a))||(a=i.getTrustedResourceUrl(a));var l=n.defaults&&n.defaults.transformResponse;return qn(l)?l=l.filter(function(e){return e!==Xe}):l===Xe&&(l=null),n.get(a,s({cache:t,transformResponse:l},e)).finally(function(){o.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},function(e){if(!u)throw li("tpload",a,e.status,e.statusText);return r.reject(e)})}return o.totalPendingRequests=0,o}]}function Ht(){this.$get=["$rootScope","$browser","$location",function(e,t,n){return{findBindings:function(e,t,n){e=e.getElementsByClassName("ng-binding");var i=[];return r(e,function(e){var o=zn.element(e).data("$binding");o&&r(o,function(r){n?new RegExp("(^|\\s)"+Gn(t)+"(\\s|\\||$)").test(r)&&i.push(e):-1!=r.indexOf(t)&&i.push(e)})}),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=e.querySelectorAll("["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]');if(o.length)return o}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}}}]}function Wt(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){x(o)||(u=s,s=o,o=f);var l,c=Un.call(arguments,3),d=$(u)&&!u,h=(d?r:n).defer(),p=h.promise;return l=t.defer(function(){try{h.resolve(o.apply(null,c))}catch(e){h.reject(e),i(e)}finally{delete a[p.$$timeoutId]}d||e.$apply()},s),p.$$timeoutId=l,a[l]=h,p}var a={};return o.cancel=function(e){return!!(e&&e.$$timeoutId in a)&&(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},o}]}function Gt(e){return _n&&(ci.setAttribute("href",e),e=ci.href),ci.setAttribute("href",e),{href:ci.href,protocol:ci.protocol?ci.protocol.replace(/:$/,""):"",host:ci.host,search:ci.search?ci.search.replace(/^\?/,""):"",hash:ci.hash?ci.hash.replace(/^#/,""):"",hostname:ci.hostname,port:ci.port,pathname:"/"===ci.pathname.charAt(0)?ci.pathname:"/"+ci.pathname}}function Kt(e){return(e=y(e)?Gt(e):e).protocol===fi.protocol&&e.host===fi.host}function Xt(){this.$get=h(e)}function Yt(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var n=e[0]||{},r={},i="";return function(){var e,o,a,s,u;if((e=n.cookie||"")!==i)for(e=(i=e).split("; "),r={},a=0;a<e.length;a++)0<(s=(o=e[a]).indexOf("="))&&(u=t(o.substring(0,s)),g(r[u])&&(r[u]=t(o.substring(s+1))));return r}}function Jt(){this.$get=Yt}function Zt(e){function t(n,i){if(m(n)){var o={};return r(n,function(e,n){o[n]=t(n,e)}),o}return e.factory(n+"Filter",i)}this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],t("currency",nn),t("date",dn),t("filter",Qt),t("json",hn),t("limitTo",pn),t("lowercase",vi),t("number",rn),t("orderBy",$n),t("uppercase",yi)}function Qt(){return function(e,r,i,o){if(!n(e)){if(null==e)return e;throw t("filter")("notarray",e)}var a;switch(o=o||"$",tn(r)){case"function":break;case"boolean":case"null":case"number":case"string":a=!0;case"object":r=function(e,t,n,r){var i=m(e)&&n in e;return!0===t?t=O:x(t)||(t=function(e,t){return!(g(e)||(null===e||null===t?e!==t:m(t)||m(e)&&!p(e)||(e=Fn(""+e),t=Fn(""+t),-1===e.indexOf(t))))}),function(o){return i&&!m(o)?en(o,e[n],t,n,!1):en(o,e,t,n,r)}}(r,i,o,a);break;default:return e}return Array.prototype.filter.call(e,r)}}function en(e,t,n,r,i,o){var a=tn(e),s=tn(t);if("string"===s&&"!"===t.charAt(0))return!en(e,t.substring(1),n,r,i);if(qn(e))return e.some(function(e){return en(e,t,n,r,i)});switch(a){case"object":var u;if(i){for(u in e)if("$"!==u.charAt(0)&&en(e[u],t,n,r,!0))return!0;return!o&&en(e,t,n,r,!1)}if("object"===s){for(u in t)if(!x(o=t[u])&&!g(o)&&!en((a=u===r)?e:e[u],o,n,r,a,a))return!1;return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function tn(e){return null===e?"null":typeof e}function nn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return g(n)&&(n=t.CURRENCY_SYM),g(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:on(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function rn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:on(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function on(e,t,n,r,i){if(!y(e)&&!b(e)||isNaN(e))return"";var o=!isFinite(e),a=!1,s=Math.abs(e)+"",u="";if(o)u="∞";else{for(function(e,t,n,r){var i=e.d,o=i.length-e.i;if(r=i[n=(t=g(t)?Math.min(Math.max(n,o),r):+t)+e.i],0<n){i.splice(Math.max(e.i,n));for(var a=n;a<i.length;a++)i[a]=0}else for(o=Math.max(0,o),e.i=1,i.length=Math.max(1,n=t+1),i[0]=0,a=1;a<n;a++)i[a]=0;if(5<=r)if(0>n-1){for(r=0;r>n;r--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[n-1]++;for(;o<Math.max(0,t);o++)i.push(0);(t=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0))&&(i.unshift(t),e.i++)}(a=function(e){var t,n,r,i,o,a=0;for(-1<(n=e.indexOf(hi))&&(e=e.replace(hi,"")),0<(r=e.search(/e/i))?(0>n&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):0>n&&(n=e.length),r=0;e.charAt(r)==pi;r++);if(r==(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)==pi;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>di&&(t=t.splice(0,di-1),a=n-1,n=1),{d:t,e:a,i:n}}(s),i,t.minFrac,t.maxFrac),u=a.d,s=a.i,i=a.e,o=[],a=u.reduce(function(e,t){return e&&!t},!0);0>s;)u.unshift(0),s++;for(0<s?o=u.splice(s,u.length):(o=u,u=[0]),s=[],u.length>=t.lgSize&&s.unshift(u.splice(-t.lgSize,u.length).join(""));u.length>t.gSize;)s.unshift(u.splice(-t.gSize,u.length).join(""));u.length&&s.unshift(u.join("")),u=s.join(n),o.length&&(u+=r+o.join("")),i&&(u+="e+"+i)}return 0>e&&!a?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function an(e,t,n,r){var i="";for((0>e||r&&0>=e)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=pi+e;return n&&(e=e.substr(e.length-t)),i+e}function sn(e,t,n,r,i){return n=n||0,function(o){return o=o["get"+e](),(0<n||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),an(o,t,r,i)}}function un(e,t,n){return function(r,i){var o=r["get"+e]();return i[Pn((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function ln(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(4>=t?5:12)-t)}function cn(e){return function(t){var n=ln(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+n,an(t=1+Math.round(t/6048e5),e)}}function fn(e,t){return 0>=e.getFullYear()?t.ERAS[0]:t.ERAS[1]}function dn(e){function t(e){var t;if(t=e.match(n)){e=new Date(0);var r=0,i=0,o=t[8]?e.setUTCFullYear:e.setFullYear,a=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=l(t[9]+t[10]),i=l(t[9]+t[11])),o.call(e,l(t[1]),l(t[2])-1,l(t[3])),r=l(t[4]||0)-r,i=l(t[5]||0)-i,o=l(t[6]||0),t=Math.round(1e3*parseFloat("0."+(t[7]||0))),a.call(e,r,i,o,t)}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="",c=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,y(n)&&(n=mi.test(n)?l(n):t(n)),b(n)&&(n=new Date(n)),!w(n)||!isFinite(n.getTime()))return n;for(;i;)(s=$i.exec(i))?i=(c=T(c,s,1)).pop():(c.push(i),i=null);var f=n.getTimezoneOffset();return o&&(f=N(o,f),n=j(n,o,!0)),r(c,function(t){a=gi[t],u+=a?a(n,e.DATETIME_FORMATS,f):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function hn(){return function(e,t){return g(t)&&(t=2),P(e,t)}}function pn(){return function(e,t,r){return t=1/0===Math.abs(Number(t))?Number(t):l(t),isNaN(t)?e:(b(e)&&(e=e.toString()),n(e)?(r=0>(r=!r||isNaN(r)?0:l(r))?Math.max(0,e.length+r):r,0<=t?gn(e,r,r+t):0===r?gn(e,t,e.length):gn(e,Math.max(0,r+t),r)):e)}}function gn(e,t,n){return y(e)?e.slice(t,n):Un.call(e,t,n)}function $n(e){function r(t){return t.map(function(t){var n=1,r=d;if(x(t))r=t;else if(y(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(n="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).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,t){var n=0,r=e.type;if(r===(i=t.type)){var i=e.value,o=t.value;"string"===r?(i=i.toLowerCase(),o=o.toLowerCase()):"object"===r&&(m(i)&&(i=e.index),m(o)&&(o=t.index)),i!==o&&(n=i<o?-1:1)}else n=r<i?-1:1;return n}return function(e,a,s,u){if(null==e)return e;if(!n(e))throw t("orderBy")("notarray",e);qn(a)||(a=[a]),0===a.length&&(a=["+"]);var l=r(a),c=s?-1:1,f=x(u)?u:o;return(e=Array.prototype.map.call(e,function(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:l.map(function(n){var r=n.get(e);return n=typeof r,null===r?(n="string",r="null"):"object"===n&&(x(r.valueOf)&&i(r=r.valueOf())||p(r)&&i(r=r.toString())),{value:r,type:n,index:t}})}})).sort(function(e,t){for(var n=0,r=l.length;n<r;n++){var i=f(e.predicateValues[n],t.predicateValues[n]);if(i)return i*l[n].descending*c}return f(e.tieBreaker,t.tieBreaker)*c}),e.map(function(e){return e.value})}}function mn(e){return x(e)&&(e={link:e}),e.restrict=e.restrict||"AC",h(e)}function vn(e,t,n,i,o){var a=this,s=[];a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(t.name||t.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=xi,a.$rollbackViewValue=function(){r(s,function(e){e.$rollbackViewValue()})},a.$commitViewValue=function(){r(s,function(e){e.$commitViewValue()})},a.$addControl=function(e){Z(e.$name,"input"),s.push(e),e.$name&&(a[e.$name]=e),e.$$parentForm=a},a.$$renameControl=function(e,t){var n=e.$name;a[n]===e&&delete a[n],a[t]=e,e.$name=t},a.$removeControl=function(e){e.$name&&a[e.$name]===e&&delete a[e.$name],r(a.$pending,function(t,n){a.$setValidity(n,null,e)}),r(a.$error,function(t,n){a.$setValidity(n,null,e)}),r(a.$$success,function(t,n){a.$setValidity(n,null,e)}),I(s,e),e.$$parentForm=xi},An({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(I(r,n),0===r.length&&delete e[t])},$animate:i}),a.$setDirty=function(){i.removeClass(e,io),i.addClass(e,oo),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(e,io,oo+" ng-submitted"),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(s,function(e){e.$setPristine()})},a.$setUntouched=function(){r(s,function(e){e.$setUntouched()})},a.$setSubmitted=function(){i.addClass(e,"ng-submitted"),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function yn(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function bn(e,t,n,r,i,o){var a=Fn(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,l()})}var u,l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val();e=e&&e.type,"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Wn(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,e)}};if(i.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&19>t||37<=t&&40>=t||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",l),Pi[a]&&r.$$hasNativeValidators&&a===n.type&&t.on("keydown wheel mousedown",function(e){if(!u){var t=this.validity,n=t.badInput,r=t.typeMismatch;u=o.defer(function(){u=null,t.badInput===n&&t.typeMismatch===r||l(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function wn(e,t){return function(n,i){var o,a;if(w(n))return n;if(y(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ai.test(n))return new Date(n);if(e.lastIndex=0,o=e.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function xn(e,t,n,r){return function(i,o,a,s,u,l,c){function f(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function d(e){return $(e)&&!w(e)?n(e)||void 0:e}kn(i,o,a,s),bn(0,o,a,s,u,l);var h,p,m,v=s&&s.$options&&s.$options.timezone;(s.$$parserName=e,s.$parsers.push(function(e){return s.$isEmpty(e)?null:t.test(e)?(e=n(e,h),v&&(e=j(e,v)),e):void 0}),s.$formatters.push(function(e){if(e&&!w(e))throw so("datefmt",e);return f(e)?((h=e)&&v&&(h=j(h,v,!0)),c("date")(e,r,v)):(h=null,"")}),$(a.min)||a.ngMin)&&(s.$validators.min=function(e){return!f(e)||g(p)||n(e)>=p},a.$observe("min",function(e){p=d(e),s.$validate()}));($(a.max)||a.ngMax)&&(s.$validators.max=function(e){return!f(e)||g(m)||n(e)<=m},a.$observe("max",function(e){m=d(e),s.$validate()}))}}function kn(e,t,n,r){(r.$$hasNativeValidators=m(t[0].validity))&&r.$parsers.push(function(e){var n=t.prop("validity")||{};return n.badInput||n.typeMismatch?void 0:e})}function Sn(e,t,n,r,i){if($(r)){if(!(e=e(r)).constant)throw so("constexpr",n,r);return e(t)}return i}function Cn(e,t){return e="ngClass"+e,["$animate",function(n){function i(e,t){var n=[],r=0;e:for(;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function o(e){var t=[];return qn(e)?(r(e,function(e){t=t.concat(o(e))}),t):y(e)?e.split(" "):m(e)?(r(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,s,u){function l(e){e=c(e,1),u.$addClass(e)}function c(e,t){var n=s.data("$classCounts")||te(),i=[];return r(e,function(e){(0<t||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(0<t)&&i.push(e))}),s.data("$classCounts",n),i.join(" ")}function f(e,t){var r=i(t,e),o=i(e,t);r=c(r,1),o=c(o,-1);r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function d(e){if(!0===t||(1&a.$index)===t){var n=o(e||[]);if(h){if(!O(e,h)){f(o(h),n)}}else l(n)}h=qn(e)?e.map(function(e){return ne(e)}):ne(e)}var h;a.$watch(u[e],d,!0),u.$observe("class",function(t){d(a.$eval(u[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var s=o(a.$eval(u[e]));i===t?l(s):(i=c(s,-1),u.$removeClass(i))}})}}}]}function An(e){function t(e,t){t&&!o[e]?(u.addClass(i,e),o[e]=!0):!t&&o[e]&&(u.removeClass(i,e),o[e]=!1)}function n(e,n){e=e?"-"+X(e,"-"):"",t(no+e,!0===n),t(ro+e,!1===n)}var r=e.ctrl,i=e.$element,o={},a=e.set,s=e.unset,u=e.$animate;o[ro]=!(o[no]=i.hasClass(no)),r.$setValidity=function(e,i,o){g(i)?(r.$pending||(r.$pending={}),a(r.$pending,e,o)):(r.$pending&&s(r.$pending,e,o),En(r.$pending)&&(r.$pending=void 0)),A(i)?i?(s(r.$error,e,o),a(r.$$success,e,o)):(a(r.$error,e,o),s(r.$$success,e,o)):(s(r.$error,e,o),s(r.$$success,e,o)),r.$pending?(t(ao,!0),r.$valid=r.$invalid=void 0,n("",null)):(t(ao,!1),r.$valid=En(r.$error),r.$invalid=!r.$valid,n("",r.$valid)),n(e,i=r.$pending&&r.$pending[e]?void 0:!r.$error[e]&&(!!r.$$success[e]||null)),r.$$parentForm.$setValidity(e,i,r)}}function En(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var _n,In,Mn,On,Tn=/^\/(.+)\/([a-z]*)$/,Dn=Object.prototype.hasOwnProperty,Fn=function(e){return y(e)?e.toLowerCase():e},Pn=function(e){return y(e)?e.toUpperCase():e},Un=[].slice,Nn=[].splice,jn=[].push,Vn=Object.prototype.toString,Rn=Object.getPrototypeOf,Bn=t("ng"),zn=e.angular||(e.angular={}),Ln=0;_n=e.document.documentMode,f.$inject=[],d.$inject=[];var qn=Array.isArray,Hn=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Wn=function(e){return y(e)?e.trim():e},Gn=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Kn=function(){if(!$(Kn.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Kn.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else{t=Kn;try{new Function(""),n=!1}catch(e){n=!0}t.rules={noUnsafeEval:n,noInlineStyle:!1}}}return Kn.rules},Xn=function(){if($(Xn.name_))return Xn.name_;var t,n,r,i,o=Jn.length;for(n=0;n<o;++n)if(r=Jn[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Xn.name_=i},Yn=/:/g,Jn=["ng-","data-ng-","ng:","x-ng-"],Zn=/[A-Z]/g,Qn=!1,er=3,tr={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"};se.expando="ng339";var nr=se.cache={},rr=1;se._data=function(e){return this.cache[e[this.expando]]||{}};var ir=/([\:\-\_]+(.))/g,or=/^moz([A-Z])/,ar={mouseleave:"mouseout",mouseenter:"mouseover"},sr=t("jqLite"),ur=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,lr=/<|&#?\w+;/,cr=/<([\w:-]+)/,fr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,dr={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};dr.optgroup=dr.option,dr.tbody=dr.tfoot=dr.colgroup=dr.caption=dr.thead,dr.th=dr.td;var hr=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},pr=se.prototype={ready:function(t){function n(){r||(r=!0,t())}var r=!1;"complete"===e.document.readyState?e.setTimeout(n):(this.on("DOMContentLoaded",n),se(e).on("load",n))},toString:function(){var e=[];return r(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return In(0<=e?this[e]:this[this.length+e])},length:0,push:jn,sort:[].sort,splice:[].splice},gr={};r("multiple selected checked disabled readOnly required open".split(" "),function(e){gr[Fn(e)]=e});var $r={};r("input select option textarea button form details".split(" "),function(e){$r[e]=!0});var mr={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:he,removeData:fe,hasData:function(e){for(var t in nr[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)fe(e[t])}},function(e,t){se[t]=e}),r({data:he,inheritedData:ye,scope:function(e){return In.data(e,"$scope")||ye(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return In.data(e,"$isolateScope")||In.data(e,"$isolateScopeNoTemplate")},controller:ve,injector:function(e){return ye(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:pe,css:function(e,t,n){if(t=re(t),!$(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r=e.nodeType;if(r!==er&&2!==r&&8!==r)if(r=Fn(t),gr[r]){if(!$(n))return e[t]||(e.attributes.getNamedItem(t)||f).specified?r:void 0;n?(e[t]=!0,e.setAttribute(t,r)):(e[t]=!1,e.removeAttribute(r))}else if($(n))e.setAttribute(t,n);else if(e.getAttribute)return null===(e=e.getAttribute(t,2))?void 0:e},prop:function(e,t,n){if(!$(n))return e[t];e[t]=n},text:function(){function e(e,t){if(g(t)){var n=e.nodeType;return 1===n||n===er?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(g(t)){if(e.multiple&&"select"===_(e)){var n=[];return r(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){if(g(t))return e.innerHTML;le(e,!0),e.innerHTML=t},empty:be},function(e,t){se.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==be&&g(2==e.length&&e!==pe&&e!==ve?t:n)){if(m(t)){for(r=0;r<o;r++)if(e===he)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(o=g(r=e.$dv)?Math.min(o,1):o,i=0;i<o;i++){var a=e(this[i],t,n);r=r?r+a:a}return r}for(r=0;r<o;r++)e(this[r],t,n);return this}}),r({removeData:fe,on:function(e,t,n,r){if($(r))throw sr("onargs");if(ie(e)){var i=(r=de(e,!0)).events,o=r.handle;o||(o=r.handle=function(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(g(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||ke;1<o&&(i=ne(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}(e,i));for(var a=(r=0<=t.indexOf(" ")?t.split(" "):[t]).length,s=function(t,r,a){var s=i[t];s||((s=i[t]=[]).specialHandlerWrapper=r,"$destroy"===t||a||e.addEventListener(t,o,!1)),s.push(n)};a--;)t=r[a],ar[t]?(s(ar[t],Se),s(t,void 0,!0)):s(t)}},off:ce,one:function(e,t,n){(e=In(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;le(e),r(new se(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){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){if(1===(n=e.nodeType)||11===n)for(var n=0,r=(t=new se(t)).length;n<r;n++)e.appendChild(t[n])},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;r(new se(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){ae(e,In(t).eq(0).clone()[0])},remove:we,detach:function(e){we(e,!0)},after:function(e,t){for(var n=e,r=e.parentNode,i=0,o=(t=new se(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:$e,removeClass:ge,toggleClass:function(e,t,n){t&&r(t.split(" "),function(t){var r=n;g(r)&&(r=!pe(e,t)),(r?$e:ge)(e,t)})},parent:function(e){return(e=e.parentNode)&&11!==e.nodeType?e:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:ue,triggerHandler:function(e,t,n){var i,o,a=t.type||t,u=de(e);(u=(u=u&&u.events)&&u[a])&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:f,type:a,target:e},t.type&&(i=s(i,t)),t=ne(u),o=n?[i].concat(n):[i],r(t,function(t){i.isImmediatePropagationStopped()||t.apply(e,o)}))}},function(e,t){se.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)g(i)?$(i=e(this[o],t,n,r))&&(i=In(i)):me(i,e(this[o],t,n,r));return $(i)?i:this},se.prototype.bind=se.prototype.on,se.prototype.unbind=se.prototype.off}),Ee.prototype={put:function(e,t){this[Ae(e,this.nextUid)]=t},get:function(e){return this[Ae(e,this.nextUid)]},remove:function(e){var t=this[e=Ae(e,this.nextUid)];return delete this[e],t}};var vr=[function(){this.$get=[function(){return Ee}]}],yr=/^([^\(]+?)=>/,br=/^[^\(]*\(\s*([^\)]*)\)/m,wr=/,/,xr=/^\s*(_?)(\S+?)\1\s*$/,kr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Sr=t("$injector");Ie.$$annotate=function(e,t,n){var i;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw y(n)&&n||(n=e.name||function(e){return(e=_e(e))?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Sr("strictdi",n);r((t=_e(e))[1].split(wr),function(e){e.replace(xr,function(e,t,n){i.push(n)})})}e.$inject=i}}else qn(e)?(J(e[t=e.length-1],"fn"),i=e.slice(0,t)):J(e,"fn",!0);return i};var Cr=t("$animate"),Ar=function(){this.$get=f},Er=function(){var e=new Ee,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(e,t,n){var i=!1;return t&&r(t=y(t)?t.split(" "):qn(t)?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=function(e){y(e)&&(e=e.split(" "));var t=te();return r(e,function(e){e.length&&(t[e]=!0)}),t}(t.attr("class")),o="",a="";r(n,function(e,t){e!==!!i[t]&&(e?o+=(o.length?" ":"")+t:a+=(a.length?" ":"")+t)}),r(t,function(e){o&&$e(e,o),a&&ge(e,a)}),e.remove(t)}}),t.length=0}return{enabled:f,on:f,off:f,pin:f,push:function(r,s,u,l){return l&&l(),(u=u||{}).from&&r.css(u.from),u.to&&r.css(u.to),(u.addClass||u.removeClass)&&(s=u.addClass,l=u.removeClass,s=o(u=e.get(r)||{},s,!0),l=o(u,l,!1),(s||l)&&(e.put(r,u),t.push(r),1===t.length&&i.$$postDigest(a))),(r=new n).complete(),r}}}]},_r=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Cr("notcsel",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)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw Cr("nongcls","ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r;e:{for(r=0;r<n.length;r++){var i=n[r];if(1===i.nodeType){r=i;break e}}r=void 0}!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&&In(r),i=i&&In(i),t(n,r=r||i.parent(),i),e.push(n,"enter",Te(o))},move:function(n,r,i,o){return r=r&&In(r),i=i&&In(i),t(n,r=r||i.parent(),i),e.push(n,"move",Te(o))},leave:function(t,n){return e.push(t,"leave",Te(n),function(){t.remove()})},addClass:function(t,n,r){return(r=Te(r)).addClass=Oe(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return(r=Te(r)).removeClass=Oe(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return(i=Te(i)).addClass=Oe(i.addClass,n),i.removeClass=Oe(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return(o=Te(o)).from=o.from?s(o.from,n):n,o.to=o.to?s(o.to,r):r,o.tempClasses=Oe(o.tempClasses,i||"ng-inline-animate"),e.push(t,"animate",o)}}}]}],Ir=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),1<n.length||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Mr=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,i,o){function a(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){var n=i[0];n&&n.hidden?o(e,0,!1):t(e)},this._state=0}return a.chain=function(e,t){var n=0;!function r(){n===e.length?t(!0):e[n](function(e){!1===e?t(!1):(n++,r())})}()},a.all=function(e,t){function n(n){o=o&&n,++i===e.length&&t(o)}var i=0,o=!0;r(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:f,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(r(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},a}]},Or=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o.addClass&&(t.addClass(o.addClass),o.addClass=null),o.removeClass&&(t.removeClass(o.removeClass),o.removeClass=null),o.to&&(t.css(o.to),o.to=null),a||s.complete(),a=!0}),s}var o=r||{};o.$$prepared||(o=M(o)),o.cleanupStyles&&(o.from=o.to=null),o.from&&(t.css(o.from),o.from=null);var a,s=new n;return{start:i,end:i}}}]},Tr=t("$compile"),Dr=new function(){};Ne.$inject=["$provide","$$sanitizeUriProvider"],je.prototype.isFirstChange=function(){return this.previousValue===Dr};var Fr=/^((?:x|data)[\:\-_])/i,Pr=t("$controller"),Ur=/^(\S+)(\s+as\s+([\w$]+))?$/,Nr=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof In&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},jr="application/json",Vr={"Content-Type":jr+";charset=utf-8"},Rr=/^\[|^\{(?!\{)/,Br={"[":/]$/,"{":/}$/},zr=/^\)\]\}',?\n/,Lr=t("$http"),qr=function(e){return function(){throw Lr("legacy",e)}},Hr=zn.$interpolateMinErr=t("$interpolate");Hr.throwNoconcat=function(e){throw Hr("noconcat",e)},Hr.interr=function(e,t){return Hr("interr",e,t.toString())};var Wr=function(){this.$get=["$window",function(e){var t=e.angular.callbacks,n={};return{createCallback:function(e){var r="angular.callbacks."+(e="_"+(t.$$counter++).toString(36)),i=function(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}(e);return n[r]=t[e]=i,r},wasCalled:function(e){return n[e].called},getResponse:function(e){return n[e].data},removeCallback:function(e){delete t[n[e].id],delete n[e]}}}]},Gr=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Kr={http:80,https:443,ftp:21},Xr=t("$location"),Yr={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:ht("$$absUrl"),url:function(e){if(g(e))return this.$$url;var t=Gr.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:ht("$$protocol"),host:ht("$$host"),port:ht("$$port"),path:pt("$$path",function(e){return"/"==(e=null!==e?e.toString():"").charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(y(e)||b(e))e=e.toString(),this.$$search=B(e);else{if(!m(e))throw Xr("isrcharg");r(e=M(e,{}),function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:g(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:pt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};r([dt,ft,ct],function(e){e.prototype=Object.create(Yr),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==ct||!this.$$html5)throw Xr("nostate");return this.$$state=g(t)?null:t,this}});var Jr=t("$parse"),Zr=Function.prototype.call,Qr=Function.prototype.apply,ei=Function.prototype.bind,ti=te();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){ti[e]=!0});var ni={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ri=function(e){this.options=e};ri.prototype={constructor:ri,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;)if('"'===(e=this.text.charAt(this.index))||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var t=e+this.peek(),n=t+this.peek(2),r=ti[t],i=ti[n];ti[e]||r||i?(e=i?n:r?t:e,this.tokens.push({index:this.index,text:e,operator:!0}),this.index+=e.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){return e=e||1,this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(e){return"0"<=e&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&"z">=e||"A"<=e&&"Z">=e||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return 55296<=n&&56319>=n&&56320<=r&&57343>=r?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){throw n=n||this.index,t=$(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n,Jr("lexerr",e,t,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Fn(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);r=r+o;if(i)"u"===o?((i=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,n+=String.fromCharCode(parseInt(i,16))):n+=ni[o]||o,i=!1;else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var ii=function(e,t){this.lexer=e,this.options=t};ii.Program="Program",ii.ExpressionStatement="ExpressionStatement",ii.AssignmentExpression="AssignmentExpression",ii.ConditionalExpression="ConditionalExpression",ii.LogicalExpression="LogicalExpression",ii.BinaryExpression="BinaryExpression",ii.UnaryExpression="UnaryExpression",ii.CallExpression="CallExpression",ii.MemberExpression="MemberExpression",ii.Identifier="Identifier",ii.Literal="Literal",ii.ArrayExpression="ArrayExpression",ii.Property="Property",ii.ObjectExpression="ObjectExpression",ii.ThisExpression="ThisExpression",ii.LocalsExpression="LocalsExpression",ii.NGValueParameter="NGValueParameter",ii.prototype={ast:function(e){return this.text=e,this.tokens=this.lexer.lex(e),e=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var e=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:ii.Program,body:e}},expressionStatement:function(){return{type:ii.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();return this.expect("=")&&(e={type:ii.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:ii.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:ii.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:ii.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:ii.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:ii.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:ii.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:ii.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:ii.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=M(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:ii.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());t=this.expect("(","[",".");)"("===t.text?(e={type:ii.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:ii.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:ii.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){e=[e];for(var t={type:ii.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return t},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:ii.Identifier,name:e.text}},constant:function(){return{type:ii.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:ii.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:ii.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:ii.ObjectExpression,properties:t}},throwError:function(e,t){throw Jr("syntax",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Jr("ueoe",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 Jr("ueoe",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=(e=this.tokens[e]).text;if(o===t||o===n||o===r||o===i||!(t||n||r||i))return e}return!1},expect:function(e,t,n,r){return!!(e=this.peek(e,t,n,r))&&(this.tokens.shift(),e)},selfReferential:{this:{type:ii.ThisExpression},$locals:{type:ii.LocalsExpression}}},It.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},St(i,n.$filter);var o,a="";return this.stage="assign",(o=Et(i))&&(this.state.computing="assign",a=this.nextId(),this.recurse(o,a),this.return_(a),a="fn.assign="+this.generateFunction("assign","s,v,l")),o=Ct(i.body),n.stage="inputs",r(o,function(e,t){var r="fn"+t;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(e,i),n.return_(i),n.state.inputs.push(r),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i),a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",a=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",a)(this.$filter,mt,yt,bt,vt,wt,xt,kt,e),this.state=this.stage=void 0,a.literal=_t(i),a.constant=i.constant,a},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,d,h=this;if(i=i||f,!a&&$(e.watchId))t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,i,o,!0));else switch(e.type){case ii.Program:r(e.body,function(t,n){h.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?h.current().body.push(u,";"):h.return_(u)});break;case ii.Literal:c=this.escape(e.value),this.assign(t,c),i(c);break;case ii.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 ii.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 ii.LogicalExpression:t=t||this.nextId(),h.recurse(e.left,t),h.if_("&&"===e.operator?t:h.not(t),h.lazyRecurse(e.right,t)),i(t);break;case ii.ConditionalExpression:t=t||this.nextId(),h.recurse(e.test,t),h.if_(t,h.lazyRecurse(e.alternate,t),h.lazyRecurse(e.consequent,t)),i(t);break;case ii.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),mt(e.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",e.name)),function(){h.if_("inputs"===h.stage||"s",function(){o&&1!==o&&h.if_(h.not(h.nonComputedMember("s",e.name)),h.lazyAssign(h.nonComputedMember("s",e.name),"{}")),h.assign(t,h.nonComputedMember("s",e.name))})},t&&h.lazyAssign(t,h.nonComputedMember("l",e.name))),(h.state.expensiveChecks||Ot(e.name))&&h.addEnsureSafeObject(t),i(t);break;case ii.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),h.recurse(e.object,s,void 0,function(){h.if_(h.notNull(s),function(){o&&1!==o&&h.addEnsureSafeAssignContext(s),e.computed?(u=h.nextId(),h.recurse(e.property,u),h.getStringValue(u),h.addEnsureSafeMemberName(u),o&&1!==o&&h.if_(h.not(h.computedMember(s,u)),h.lazyAssign(h.computedMember(s,u),"{}")),c=h.ensureSafeObject(h.computedMember(s,u)),h.assign(t,c),n&&(n.computed=!0,n.name=u)):(mt(e.property.name),o&&1!==o&&h.if_(h.not(h.nonComputedMember(s,e.property.name)),h.lazyAssign(h.nonComputedMember(s,e.property.name),"{}")),c=h.nonComputedMember(s,e.property.name),(h.state.expensiveChecks||Ot(e.property.name))&&(c=h.ensureSafeObject(c)),h.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){h.assign(t,"undefined")}),i(t)},!!o);break;case ii.CallExpression:t=t||this.nextId(),e.filter?(u=h.filter(e.callee.name),l=[],r(e.arguments,function(e){var t=h.nextId();h.recurse(e,t),l.push(t)}),c=u+"("+l.join(",")+")",h.assign(t,c),i(t)):(u=h.nextId(),s={},l=[],h.recurse(e.callee,u,s,function(){h.if_(h.notNull(u),function(){h.addEnsureSafeFunction(u),r(e.arguments,function(e){h.recurse(e,h.nextId(),void 0,function(e){l.push(h.ensureSafeObject(e))})}),s.name?(h.state.expensiveChecks||h.addEnsureSafeObject(s.context),c=h.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):c=u+"("+l.join(",")+")",c=h.ensureSafeObject(c),h.assign(t,c)},function(){h.assign(t,"undefined")}),i(t)}));break;case ii.AssignmentExpression:if(u=this.nextId(),s={},!At(e.left))throw Jr("lval");this.recurse(e.left,void 0,s,function(){h.if_(h.notNull(s.context),function(){h.recurse(e.right,u),h.addEnsureSafeObject(h.member(s.context,s.name,s.computed)),h.addEnsureSafeAssignContext(s.context),c=h.member(s.context,s.name,s.computed)+e.operator+u,h.assign(t,c),i(t||c)})},1);break;case ii.ArrayExpression:l=[],r(e.elements,function(e){h.recurse(e,h.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),i(c);break;case ii.ObjectExpression:l=[],d=!1,r(e.properties,function(e){e.computed&&(d=!0)}),d?(t=t||this.nextId(),this.assign(t,"{}"),r(e.properties,function(e){e.computed?(s=h.nextId(),h.recurse(e.key,s)):s=e.key.type===ii.Identifier?e.key.name:""+e.key.value,u=h.nextId(),h.recurse(e.value,u),h.assign(h.member(t,s,e.computed),u)})):(r(e.properties,function(t){h.recurse(t.value,e.constant?void 0:h.nextId(),void 0,function(e){l.push(h.escape(t.key.type===ii.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(t,c)),i(t||c);break;case ii.ThisExpression:this.assign(t,"s"),i("s");break;case ii.LocalsExpression:this.assign(t,"l"),i("l");break;case ii.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){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(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(y(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(b(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Jr("esc")},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]}},Mt.prototype={compile:function(e,t){var n,i,o,a=this,s=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,St(s,a.$filter),(n=Et(s))&&(i=this.recurse(n)),(n=Ct(s.body))&&(o=[],r(n,function(e,t){var n=a.recurse(e);e.input=n,o.push(n),e.watchId=t}));var u=[];return r(s.body,function(e){u.push(a.recurse(e.expression))}),n=0===s.body.length?f:1===s.body.length?u[0]:function(e,t){var n;return r(u,function(r){n=r(e,t)}),n},i&&(n.assign=function(e,t,n){return i(e,n,t)}),o&&(n.inputs=o),n.literal=_t(s),n.constant=s.constant,n},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 ii.Literal:return this.value(e.value,t);case ii.UnaryExpression:return o=this.recurse(e.argument),this["unary"+e.operator](o,t);case ii.BinaryExpression:case ii.LogicalExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case ii.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case ii.Identifier:return mt(e.name,s.expression),s.identifier(e.name,s.expensiveChecks||Ot(e.name),t,n,s.expression);case ii.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(mt(e.property.name,s.expression),o=e.property.name),e.computed&&(o=this.recurse(e.property)),e.computed?this.computedMember(i,o,t,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,t,n,s.expression);case ii.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<a.length;++u)s.push(a[u](e,n,r,i));return e=o.apply(void 0,s,i),t?{context:void 0,name:void 0,value:e}:e}:function(e,n,r,i){var u,l=o(e,n,r,i);if(null!=l.value){yt(l.context,s.expression),bt(l.value,s.expression),u=[];for(var c=0;c<a.length;++c)u.push(yt(a[c](e,n,r,i),s.expression));u=yt(l.value.apply(l.context,u),s.expression)}return t?{value:u}:u};case ii.AssignmentExpression:return i=this.recurse(e.left,!0,1),o=this.recurse(e.right),function(e,n,r,a){var u=i(e,n,r,a);return e=o(e,n,r,a),yt(u.value,s.expression),wt(u.context),u.context[u.name]=e,t?{value:e}:e};case ii.ArrayExpression:return a=[],r(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case ii.ObjectExpression:return a=[],r(e.properties,function(e){e.computed?a.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):a.push({key:e.key.type===ii.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case ii.ThisExpression:return function(e){return t?{value:e}:e};case ii.LocalsExpression:return function(e,n){return t?{value:n}:n};case ii.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){return n=$(n=e(n,r,i,o))?+n:0,t?{value:n}:n}},"unary-":function(e,t){return function(n,r,i,o){return n=$(n=e(n,r,i,o))?-n:0,t?{value:n}:n}},"unary!":function(e,t){return function(n,r,i,o){return n=!e(n,r,i,o),t?{value:n}:n}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a);return s=kt(s,r=t(r,i,o,a)),n?{value:s}:s}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a);return r=t(r,i,o,a),s=($(s)?s:0)-($(r)?r:0),n?{value:s}:s}},"binary*":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)*t(r,i,o,a),n?{value:r}:r}},"binary/":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)/t(r,i,o,a),n?{value:r}:r}},"binary%":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)%t(r,i,o,a),n?{value:r}:r}},"binary===":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)===t(r,i,o,a),n?{value:r}:r}},"binary!==":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)!==t(r,i,o,a),n?{value:r}:r}},"binary==":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)==t(r,i,o,a),n?{value:r}:r}},"binary!=":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)!=t(r,i,o,a),n?{value:r}:r}},"binary<":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)<t(r,i,o,a),n?{value:r}:r}},"binary>":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)>t(r,i,o,a),n?{value:r}:r}},"binary<=":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)<=t(r,i,o,a),n?{value:r}:r}},"binary>=":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)>=t(r,i,o,a),n?{value:r}:r}},"binary&&":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)&&t(r,i,o,a),n?{value:r}:r}},"binary||":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)||t(r,i,o,a),n?{value:r}:r}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){return i=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s),r?{value:i}:i}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n,r,i){return function(o,a,s,u){return o=a&&e in a?a:o,r&&1!==r&&o&&!o[e]&&(o[e]={}),a=o?o[e]:void 0,t&&yt(a,i),n?{context:o,name:e,value:a}:a}},computedMember:function(e,t,n,r,i){return function(o,a,s,u){var l,c,f=e(o,a,s,u);return null!=f&&(l=t(o,a,s,u),mt(l+="",i),r&&1!==r&&(wt(f),f&&!f[l]&&(f[l]={})),yt(c=f[l],i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(e,t,n,r,i,o){return function(a,s,u,l){return a=e(a,s,u,l),i&&1!==i&&(wt(a),a&&!a[t]&&(a[t]={})),s=null!=a?a[t]:void 0,(n||Ot(t))&&yt(s,o),r?{context:a,name:t,value:s}:s}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var oi=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new ii(e,n),this.astCompiler=n.csp?new Mt(this.ast,t):new It(this.ast,t)};oi.prototype={constructor:oi,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var ai=Object.prototype.valueOf,si=t("$sce"),ui={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},li=t("$compile"),ci=e.document.createElement("a"),fi=Gt(e.location.href);Yt.$inject=["$document"],Zt.$inject=["$provide"];var di=22,hi=".",pi="0";nn.$inject=["$locale"],rn.$inject=["$locale"];var gi={yyyy:sn("FullYear",4,0,!1,!0),yy:sn("FullYear",2,0,!0,!0),y:sn("FullYear",1,0,!1,!0),MMMM:un("Month"),MMM:un("Month",!0),MM:sn("Month",2,1),M:sn("Month",1,1),LLLL:un("Month",!1,!0),dd:sn("Date",2),d:sn("Date",1),HH:sn("Hours",2),H:sn("Hours",1),hh:sn("Hours",2,-12),h:sn("Hours",1,-12),mm:sn("Minutes",2),m:sn("Minutes",1),ss:sn("Seconds",2),s:sn("Seconds",1),sss:sn("Milliseconds",3),EEEE:un("Day"),EEE:un("Day",!0),a:function(e,t){return 12>e.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){return(0<=(e=-1*n)?"+":"")+(an(Math[0<e?"floor":"ceil"](e/60),2)+an(Math.abs(e%60),2))},ww:cn(2),w:cn(1),G:fn,GG:fn,GGG:fn,GGGG:function(e,t){return 0>=e.getFullYear()?t.ERANAMES[0]:t.ERANAMES[1]}},$i=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,mi=/^\-?\d+$/;dn.$inject=["$locale"];var vi=h(Fn),yi=h(Pn);$n.$inject=["$parse"];var bi=h({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]"===Vn.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),wi={};r(gr,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=Ve("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,0,i)}),wi[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(mr,function(e,t){wi[t]=function(){return{priority:100,link:function(e,n,r){"ngPattern"===t&&"/"==r.ngPattern.charAt(0)&&(n=r.ngPattern.match(Tn))?r.$set("ngPattern",new RegExp(n[1],n[2])):e.$watch(r[t],function(e){r.$set(t,e)})}}}}),r(["src","srcset","href"],function(e){var t=Ve("ng-"+e);wi[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Vn.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){t?(i.$set(a,t),_n&&o&&r.prop(o,i[a])):"href"===e&&i.$set(a,null)})}}}});var xi={$addControl:f,$$renameControl:function(e,t){e.$name=t},$removeControl:f,$setValidity:f,$setDirty:f,$setPristine:f,$setSubmitted:f};vn.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var ki=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||f}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:vn,compile:function(n,i){n.addClass(io).addClass(no);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var u=a[0];if(!("action"in i)){var l=function(t){e.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",l,!1),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",l,!1)},0,!1)})}(a[1]||u.$$parentForm).$addControl(u);var c=o?r(u.$name):f;o&&(c(e,u),i.$observe(o,function(t){u.$name!==t&&(c(e,void 0),u.$$parentForm.$$renameControl(u,t),(c=r(u.$name))(e,u))})),n.on("$destroy",function(){u.$$parentForm.$removeControl(u),c(e,void 0),s(u,xi)})}}}}}]},Si=ki(),Ci=ki(!0),Ai=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Ei=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,_i=/^(?=.{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])?)*$/,Ii=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Mi=/^(\d{4,})-(\d{2})-(\d{2})$/,Oi=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ti=/^(\d{4,})-W(\d\d)$/,Di=/^(\d{4,})-(\d\d)$/,Fi=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Pi=te();r(["date","datetime-local","month","time","week"],function(e){Pi[e]=!0});var Ui={text:function(e,t,n,r,i,o){bn(0,t,n,r,i,o),yn(r)},date:xn("date",Mi,wn(Mi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":xn("datetimelocal",Oi,wn(Oi,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:xn("time",Fi,wn(Fi,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:xn("week",Ti,function(e,t){if(w(e))return e;if(y(e)){Ti.lastIndex=0;var n=Ti.exec(e);if(n){var r=+n[1],i=+n[2],o=n=0,a=0,s=0,u=ln(r);i=7*(i-1);return t&&(n=t.getHours(),o=t.getMinutes(),a=t.getSeconds(),s=t.getMilliseconds()),new Date(r,0,u.getDate()+i,n,o,a,s)}}return NaN},"yyyy-Www"),month:xn("month",Di,wn(Di,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o){var a,s;(kn(0,t,0,r),bn(0,t,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(e){return r.$isEmpty(e)?null:Ii.test(e)?parseFloat(e):void 0}),r.$formatters.push(function(e){if(!r.$isEmpty(e)){if(!b(e))throw so("numfmt",e);e=e.toString()}return e}),$(n.min)||n.ngMin)&&(r.$validators.min=function(e){return r.$isEmpty(e)||g(a)||e>=a},n.$observe("min",function(e){$(e)&&!b(e)&&(e=parseFloat(e)),a=b(e)&&!isNaN(e)?e:void 0,r.$validate()}));($(n.max)||n.ngMax)&&(r.$validators.max=function(e){return r.$isEmpty(e)||g(s)||e<=s},n.$observe("max",function(e){$(e)&&!b(e)&&(e=parseFloat(e)),s=b(e)&&!isNaN(e)?e:void 0,r.$validate()}))},url:function(e,t,n,r,i,o){bn(0,t,n,r,i,o),yn(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Ei.test(n)}},email:function(e,t,n,r,i,o){bn(0,t,n,r,i,o),yn(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||_i.test(n)}},radio:function(e,t,n,r){g(n.name)&&t.attr("name",++Ln),t.on("click",function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)}),r.$render=function(){t[0].checked=n.value==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(e,t,n,r,i,o,a,s){var u=Sn(s,e,"ngTrueValue",n.ngTrueValue,!0),l=Sn(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("click",function(e){r.$setViewValue(t[0].checked,e&&e.type)}),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return O(e,u)}),r.$parsers.push(function(e){return e?u:l})},hidden:f,button:f,submit:f,reset:f,file:f},Ni=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Ui[Fn(a.type)]||Ui.text)(i,o,a,s[0],t,e,n,r)}}}}],ji=/^(true|false|\d+)$/,Vi=function(){return{restrict:"A",priority:100,compile:function(e,t){return ji.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Ri=["$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=g(e)?"":e})}}}}],Bi=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){n=e(r.attr(i.$attr.ngBindTemplate)),t.$$addBindingInfo(r,n.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=g(e)?"":e})}}}}],zi=["$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)||"")})}}}}],Li=h({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),qi=Cn("",!0),Hi=Cn("Odd",0),Wi=Cn("Even",1),Gi=mn({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Ki=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Xi={},Yi={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=Ve("ng-"+e);Xi[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})};Yi[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var Ji=["$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=ee(s.clone),e.leave(l).then(function(){l=null}),s=null))})}}}],Zi=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:zn.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,g=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),h&&(n.leave(h).then(function(){d=null}),d=h,h=null)};r.$watch(o,function(o){var u=function(){!$(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,e=c(t,function(e){g(),n.enter(e,null,i).then(u)}),h=e,(f=t).$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||d!==p||(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),l.template=null)})}}}}],Qi=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){Vn.call(r[0]).match(/SVG/)?(r.empty(),t(oe(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),t(r.contents())(n))}}}],eo=mn({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),to=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var o=t.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?Wn(o):o;i.$parsers.push(function(e){if(!g(e)){var t=[];return e&&r(e.split(s),function(e){e&&t.push(a?Wn(e):e)}),t}}),i.$formatters.push(function(e){if(qn(e))return e.join(o)}),i.$isEmpty=function(e){return!e||!e.length}}}},no="ng-valid",ro="ng-invalid",io="ng-pristine",oo="ng-dirty",ao="ng-pending",so=t("ngModel"),uo=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,n,i,o,a,s,u,l,c){this.$modelValue=this.$viewValue=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=c(n.name||"",!1)(e),this.$$parentForm=xi;var d,h=o(n.ngModel),p=h.assign,m=h,v=p,y=null,w=this;this.$$setOptions=function(e){if((w.$options=e)&&e.getterSetter){var t=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");m=function(e){var n=h(e);return x(n)&&(n=t(e)),n},v=function(e,t){x(h(e))?r(e,{$$$p:t}):p(e,t)}}else if(!h.assign)throw so("nonassign",n.ngModel,V(i))},this.$render=f,this.$isEmpty=function(e){return g(e)||""===e||null===e||e!=e},this.$$updateEmptyClasses=function(e){w.$isEmpty(e)?(a.removeClass(i,"ng-not-empty"),a.addClass(i,"ng-empty")):(a.removeClass(i,"ng-empty"),a.addClass(i,"ng-not-empty"))};var k=0;An({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:a}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,a.removeClass(i,oo),a.addClass(i,io)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,a.removeClass(i,io),a.addClass(i,oo),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,a.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,a.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){s.cancel(y),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!b(w.$modelValue)||!isNaN(w.$modelValue)){var e=w.$$rawModelValue,t=w.$valid,n=w.$modelValue,r=w.$options&&w.$options.allowInvalid;w.$$runValidators(e,w.$$lastCommittedViewValue,function(i){r||t===i||(w.$modelValue=i?e:void 0,w.$modelValue!==n&&w.$$writeModelToScope())})}},this.$$runValidators=function(e,t,n){function i(e,t){a===k&&w.$setValidity(e,t)}function o(e){a===k&&n(e)}var a=++k;!function(){var e=w.$$parserName||"parse";return g(d)?(i(e,null),!0):(d||(r(w.$validators,function(e,t){i(t,null)}),r(w.$asyncValidators,function(e,t){i(t,null)})),i(e,d),d)}()?o(!1):function(){var n=!0;return r(w.$validators,function(r,o){var a=r(e,t);n=n&&a,i(o,a)}),!!n||(r(w.$asyncValidators,function(e,t){i(t,null)}),!1)}()?function(){var n=[],a=!0;r(w.$asyncValidators,function(r,o){var s=r(e,t);if(!s||!x(s.then))throw so("nopromise",s);i(o,void 0),n.push(s.then(function(){i(o,!0)},function(){a=!1,i(o,!1)}))}),n.length?l.all(n).then(function(){o(a)},f):o(!0)}():o(!1)},this.$commitViewValue=function(){var e=w.$viewValue;s.cancel(y),(w.$$lastCommittedViewValue!==e||""===e&&w.$$hasNativeValidators)&&(w.$$updateEmptyClasses(e),w.$$lastCommittedViewValue=e,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var t=w.$$lastCommittedViewValue;if(d=!g(t)||void 0)for(var n=0;n<w.$parsers.length;n++)if(g(t=w.$parsers[n](t))){d=!1;break}b(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=m(e));var r=w.$modelValue,i=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=t,i&&(w.$modelValue=t,w.$modelValue!==r&&w.$$writeModelToScope()),w.$$runValidators(t,w.$$lastCommittedViewValue,function(e){i||(w.$modelValue=e?t:void 0,w.$modelValue!==r&&w.$$writeModelToScope())})},this.$$writeModelToScope=function(){v(e,w.$modelValue),r(w.$viewChangeListeners,function(e){try{e()}catch(e){t(e)}})},this.$setViewValue=function(e,t){w.$viewValue=e,w.$options&&!w.$options.updateOnDefault||w.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n=0,r=w.$options;r&&$(r.debounce)&&(b(r=r.debounce)?n=r:b(r[t])?n=r[t]:b(r.default)&&(n=r.default)),s.cancel(y),n?y=s(function(){w.$commitViewValue()},n):u.$$phase?w.$commitViewValue():e.$apply(function(){w.$commitViewValue()})},e.$watch(function(){var t=m(e);if(t!==w.$modelValue&&(w.$modelValue==w.$modelValue||t==t)){w.$modelValue=w.$$rawModelValue=t,d=void 0;for(var n=w.$formatters,r=n.length,i=t;r--;)i=n[r](i);w.$viewValue!==i&&(w.$$updateEmptyClasses(i),w.$viewValue=w.$$lastCommittedViewValue=i,w.$render(),w.$$runValidators(t,i,f))}return t})}],lo=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:uo,priority:1,compile:function(t){return t.addClass(io).addClass("ng-untouched").addClass(no),{pre:function(e,t,n,r){var i=r[0];t=r[1]||i.$$parentForm,i.$$setOptions(r[2]&&r[2].$options),t.$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){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],co=/(\s+|^)default(\s+|$)/,fo=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=M(e.$eval(t.ngModelOptions)),$(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Wn(this.$options.updateOn.replace(co,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},ho=mn({terminal:!0,priority:1e3}),po=t("ngOptions"),go=/^\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]+?))?$/,$o=["$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 for(var r in t=[],e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t.push(r);return t}var s=e.match(go);if(!s)throw po("iexp",e,V(t));var u=s[5]||s[7],l=s[6];e=/ as /.test(s[0])&&s[1];var c=s[9];t=o(s[2]?s[1]:u);var f=e&&o(e)||t,d=c&&o(c),h=c?function(e,t){return d(r,t)}:function(e){return Ae(e)},p=function(e,t){return h(e,b(e,t))},g=o(s[2]||s[1]),$=o(s[3]||""),m=o(s[4]||""),v=o(s[8]),y={},b=l?function(e,t){return y[l]=t,y[u]=e,y}:function(e){return y[u]=e,y};return{trackBy:c,getTrackByValue:p,getWatchables:o(v,function(e){for(var t=[],n=a(e=e||[]),i=n.length,o=0;o<i;o++){var u=e[l=e===n?o:n[o]],l=b(u,l);u=h(u,l);t.push(u),(s[2]||s[1])&&(u=g(r,l),t.push(u)),s[4]&&(l=m(r,l),t.push(l))}return t}),getOptions:function(){for(var e=[],t={},n=v(r)||[],o=a(n),s=o.length,u=0;u<s;u++){var l=n===o?u:o[u],d=b(n[l],l),y=f(r,d);y=new i(l=h(y,d),y,g(r,d),$(r,d),d=m(r,d));e.push(y),t[l]=y}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[p(e)]},getViewValueFromOption:function(e){return c?zn.copy(e.viewValue):e.viewValue}}}}}var s=e.document.createElement("option"),u=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=f},post:function(e,n,o,l){function c(){var e=b&&d.readValue();if(b)for(var t=b.items.length-1;0<=t;t--){var r=b.items[t];$(r.group)?we(r.element.parentNode):we(r.element)}b=w.getOptions();var i={};v&&n.prepend(f),b.items.forEach(function(e){var t;if($(e.group)){(t=i[e.group])||(t=u.cloneNode(!1),x.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t);var n=s.cloneNode(!1)}else t=x,n=s.cloneNode(!1);t.appendChild(n),function(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}(e,n)}),n[0].appendChild(x),h.$render(),h.$isEmpty(e)||(t=d.readValue(),(w.trackBy||p?O(e,t):e===t)||(h.$setViewValue(t),h.$render()))}var f,d=l[0],h=l[1],p=o.multiple;l=0;for(var g=n.children(),m=g.length;l<m;l++)if(""===g[l].value){f=g.eq(l);break}var v=!!f,y=In(s.cloneNode(!1));y.val("?");var b,w=a(o.ngOptions,n,e),x=i[0].createDocumentFragment();p?(h.$isEmpty=function(e){return!e||0===e.length},d.writeValue=function(e){b.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){(e=b.getOptionFromViewValue(e))&&(e.element.selected=!0)})},d.readValue=function(){var e=n.val()||[],t=[];return r(e,function(e){(e=b.selectValueMap[e])&&!e.disabled&&t.push(b.getViewValueFromOption(e))}),t},w.trackBy&&e.$watchCollection(function(){if(qn(h.$viewValue))return h.$viewValue.map(function(e){return w.getTrackByValue(e)})},function(){h.$render()})):(d.writeValue=function(e){var t=b.getOptionFromViewValue(e);t?(n[0].value!==t.selectValue&&(y.remove(),v||f.remove(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||v?(y.remove(),v||n.prepend(f),n.val(""),f.prop("selected",!0),f.attr("selected",!0)):(v||f.remove(),n.prepend(y),n.val("?"),y.prop("selected",!0),y.attr("selected",!0))},d.readValue=function(){var e=b.selectValueMap[n.val()];return e&&!e.disabled?(v||f.remove(),y.remove(),b.getViewValueFromOption(e)):null},w.trackBy&&e.$watch(function(){return w.getTrackByValue(h.$viewValue)},function(){h.$render()})),v?(f.remove(),t(f)(e),f.removeClass("ng-scope")):f=In(s.cloneNode(!1)),n.empty(),c(),e.$watchCollection(w.getWatchables,c)}}}}],mo=["$locale","$interpolate","$log",function(e,t,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(e){s.text(e||"")}var c,d=u.count,h=u.$attr.when&&s.attr(u.$attr.when),p=u.offset||0,$=a.$eval(h)||{},m={},v=t.startSymbol(),y=t.endSymbol(),w=v+d+"-"+p+y,x=zn.noop;r(u,function(e,t){var n=o.exec(t);n&&(n=(n[1]?"-":"")+Fn(n[2]),$[n]=s.attr(u.$attr[t]))}),r($,function(e,n){m[n]=t(e.replace(i,w))}),a.$watch(d,function(t){var r=parseFloat(t),i=isNaN(r);i||r in $||(r=e.pluralCat(r-p)),r===c||i&&b(c)&&isNaN(c)||(x(),g(i=m[r])?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),x=f,l()):x=a.$watch(i,l),c=r)})}}}],vo=["$parse","$animate","$compile",function(e,i,o){var a=t("ngRepeat"),s=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,u){var l=u.ngRepeat,c=o.$$createComment("end ngRepeat",l);if(!(f=l.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw a("iexp",l);var f,d=f[1],h=f[2],p=f[3],g=f[4];if(!(f=d.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw a("iidexp",d);var $=f[3]||f[1],m=f[2];if(p&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(p)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(p)))throw a("badident",p);var v,y,b,w,x={$id:Ae};return g?v=e(g):(b=function(e,t){return Ae(t)},w=function(e){return e}),function(e,t,o,u,f){v&&(y=function(t,n,r){return m&&(x[m]=t),x[$]=n,x.$index=r,v(e,x)});var d=te();e.$watchCollection(h,function(o){var u,h,g,v,x,k,S,C,A,E,_=t[0],I=te();if(p&&(e[p]=o),n(o))C=o,h=y||b;else for(E in h=y||w,C=[],o)Dn.call(o,E)&&"$"!==E.charAt(0)&&C.push(E);for(v=C.length,E=Array(v),u=0;u<v;u++)if(x=o===C?u:C[u],k=o[x],S=h(x,k,u),d[S])A=d[S],delete d[S],I[S]=A,E[u]=A;else{if(I[S])throw r(E,function(e){e&&e.scope&&(d[e.id]=e)}),a("dupes",l,S,k);E[u]={id:S,scope:void 0,clone:void 0},I[S]=!0}for(g in d){if(S=ee((A=d[g]).clone),i.leave(S),S[0].parentNode)for(u=0,h=S.length;u<h;u++)S[u].$$NG_REMOVED=!0;A.scope.$destroy()}for(u=0;u<v;u++)if(x=o===C?u:C[u],k=o[x],(A=E[u]).scope){g=_;do{g=g.nextSibling}while(g&&g.$$NG_REMOVED);A.clone[0]!=g&&i.move(ee(A.clone),null,_),_=A.clone[A.clone.length-1],s(A.scope,u,$,k,m,x,v)}else f(function(e,t){A.scope=t;var n=c.cloneNode(!1);e[e.length++]=n,i.enter(e,null,_),_=n,A.clone=e,I[A.id]=A,s(A.scope,u,$,k,m,x,v)});d=I})}}}}],yo=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],bo=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],wo=mn(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&r(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),xo=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=[],u=[],l=[],c=[],f=function(e,t){return function(){e.splice(t,1)}};n.$watch(o.ngSwitch||o.on,function(n){var i,o;for(i=0,o=l.length;i<o;++i)e.cancel(l[i]);for(i=l.length=0,o=c.length;i<o;++i){var d=ee(u[i].clone);c[i].$destroy(),(l[i]=e.leave(d)).then(f(l,i))}u.length=0,c.length=0,(s=a.cases["!"+n]||a.cases["?"])&&r(s,function(n){n.transclude(function(r,i){c.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen"),u.push({clone:r}),e.enter(r,o.parent(),o)})})})}}}],ko=mn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),So=mn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Co=t("ngTransclude"),Ao=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function a(){n(e,function(e){t.append(e)})}if(!o)throw Co("orphan",V(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude=""),o(function(e,n){e.length?t.append(e):(a(),n.$destroy())},null,r=r.ngTransclude||r.ngTranscludeSlot),r&&!o.isSlotFilled(r)&&a()}}}}],Eo=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){"text/ng-template"==n.type&&e.put(n.id,t[0].text)}}}],_o={$setViewValue:f,$render:f},Io=["$element","$scope",function(t,n){var r=this,i=new Ee;r.ngModelCtrl=_o,r.unknownOption=In(e.document.createElement("option")),r.renderUnknownOption=function(e){e="? "+Ae(e)+" ?",r.unknownOption.val(e),t.prepend(r.unknownOption),t.val(e)},n.$on("$destroy",function(){r.renderUnknownOption=f}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),t.val()},r.writeValue=function(e){r.hasOption(e)?(r.removeUnknownOption(),t.val(e),""===e&&r.emptyOption.prop("selected",!0)):null==e&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(e)},r.addOption=function(e,t){if(8!==t[0].nodeType){Z(e,'"option value"'),""===e&&(r.emptyOption=t);var n=i.get(e)||0;i.put(e,n+1),r.ngModelCtrl.$render(),t[0].hasAttribute("selected")&&(t[0].selected=!0)}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.remove(e),""===e&&(r.emptyOption=void 0)):i.put(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.registerOption=function(e,t,n,i,o){var a;i?n.$observe("value",function(e){$(a)&&r.removeOption(a),a=e,r.addOption(e,t)}):o?e.$watch(o,function(e,i){n.$set("value",e),i!==e&&r.removeOption(i),r.addOption(e,t)}):r.addOption(n.value,t);t.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Mo=function(){return{restrict:"E",require:["select","?ngModel"],controller:Io,priority:1,link:{pre:function(e,t,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,t.on("change",function(){e.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return r(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Ee(e);r(t.find("option"),function(e){e.selected=$(n.get(e.value))})};var s,u=NaN;e.$watch(function(){u!==o.$viewValue||O(s,o.$viewValue)||(s=ne(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length}}}},post:function(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},Oo=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if($(n.value))var r=e(n.value,!0);else{var i=e(t.text(),!0);i||n.$set("value",t.text())}return function(e,t,n){var o=t.parent();(o=o.data("$selectController")||o.parent().data("$selectController"))&&o.registerOption(e,t,n,r,i)}}}}],To=h({restrict:"E",terminal:!1}),Do=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},Fo=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(y(e)&&0<e.length&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp",a,e,V(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||g(o)||o.test(t)}}}}},Po=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){e=l(e),i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(e,t){return 0>i||r.$isEmpty(t)||t.length<=i}}}}},Uo=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=l(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load angular more than once."):(function(){var t;if(!Qn){var n=Xn();(Mn=g(n)?e.jQuery:n?e[n]:void 0)&&Mn.fn.on?(In=Mn,s(Mn.fn,{scope:pr.scope,isolateScope:pr.isolateScope,controller:pr.controller,injector:pr.injector,inheritedData:pr.inheritedData}),t=Mn.cleanData,Mn.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=Mn._data(r,"events"))&&n.$destroy&&Mn(r).triggerHandler("$destroy");t(e)}):In=se,zn.element=In,Qn=!0}}(),s(zn,{bootstrap:W,copy:M,extend:s,merge:u,equals:O,element:In,forEach:r,injector:Ie,noop:f,bind:D,toJson:P,fromJson:U,identity:d,isUndefined:g,isDefined:$,isString:y,isFunction:x,isObject:m,isNumber:b,isElement:E,isArray:qn,version:tr,isDate:w,lowercase:Fn,uppercase:Pn,callbacks:{$$counter:0},getTestability:K,$$minErr:t,$$csp:Kn,reloadWithDebugInfo:G}),(On=function(e){function n(e,t,n){return e[t]||(e[t]=n())}var r=t("$injector"),i=t("ng");return(e=n(e,"angular",Object)).$$minErr=e.$$minErr||t,n(e,"module",function(){var e={};return function(t,o,a){if("hasOwnProperty"===t)throw i("badname","module");return o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,r){return r||(r=i),function(){return r[n||"push"]([e,t,arguments]),c}}function n(e,n){return function(r,o){return o&&x(o)&&(o.$$moduleName=t),i.push([e,n,arguments]),c}}if(!o)throw r("nomod",t);var i=[],s=[],u=[],l=e("$injector","invoke","push",s),c={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(e){return u.push(e),this}};return a&&l(a),c})}})}(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Vt}),e.provider("$compile",Ne).directive({a:bi,input:Ni,textarea:Ni,form:Si,script:Eo,select:Mo,style:To,option:Oo,ngBind:Ri,ngBindHtml:zi,ngBindTemplate:Bi,ngClass:qi,ngClassEven:Wi,ngClassOdd:Hi,ngCloak:Gi,ngController:Ki,ngForm:Ci,ngHide:bo,ngIf:Ji,ngInclude:Zi,ngInit:eo,ngNonBindable:ho,ngPluralize:mo,ngRepeat:vo,ngShow:yo,ngStyle:wo,ngSwitch:xo,ngSwitchWhen:ko,ngSwitchDefault:So,ngOptions:$o,ngTransclude:Ao,ngModel:lo,ngList:to,ngChange:Li,pattern:Fo,ngPattern:Fo,required:Do,ngRequired:Do,minlength:Uo,ngMinlength:Uo,maxlength:Po,ngMaxlength:Po,ngValue:Vi,ngModelOptions:fo}).directive({ngInclude:Qi}).directive(wi).directive(Xi),e.provider({$anchorScroll:Me,$animate:_r,$animateCss:Or,$$animateJs:Ar,$$animateQueue:Er,$$AnimateRunner:Mr,$$animateAsyncRun:Ir,$browser:Fe,$cacheFactory:Pe,$controller:Le,$document:qe,$exceptionHandler:He,$filter:Zt,$$forceReflow:Nr,$interpolate:nt,$interval:rt,$http:Qe,$httpParamSerializer:Ge,$httpParamSerializerJQLike:Ke,$httpBackend:tt,$xhrFactory:et,$jsonpCallbacks:Wr,$location:gt,$log:$t,$parse:Dt,$rootScope:jt,$q:Ft,$$q:Pt,$sce:zt,$sceDelegate:Bt,$sniffer:Lt,$templateCache:Ue,$templateRequest:qt,$$testability:Ht,$timeout:Wt,$window:Xt,$$rAF:Nt,$$jqLite:Ce,$$HashMap:vr,$$cookieReader:Jt})}]),zn.module("ngLocale",[],["$provide",function(e){e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),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 n=0|e,r=t;return void 0===r&&(r=Math.min(function(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}(e),3)),Math.pow(10,r),1==n&&0==r?"one":"other"}})}]),In(e.document).ready(function(){H(e.document,W)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(e,t){"use strict";var n,r,i,o,a,s,u,l,c=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",function(){var f=!1;this.$get=["$$sanitizeUri",function(e){return f&&r(k,w),function(t){var n=[];return u(t,l(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return o(e)?(f=e,this):f},n=t.bind,r=t.extend,i=t.forEach,o=t.isDefined,a=t.lowercase,s=t.noop,u=function(t,n){null==t?t="":"string"!=typeof t&&(t=""+t),d.innerHTML=t;var r=5;do{if(0===r)throw c("uinput","Failed to sanitize html because the input is unstable");r--,e.document.documentMode&&O(d),t=d.innerHTML,d.innerHTML=t}while(t!==d.innerHTML);for(var i=d.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),I(i.attributes));break;case 3:n.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1==i.nodeType&&n.end(i.nodeName.toLowerCase()),o=i.nextSibling)))for(;null==o&&(i=i.parentNode)!==d;)o=i.nextSibling,1==i.nodeType&&n.end(i.nodeName.toLowerCase());i=o}for(;i=d.firstChild;)d.removeChild(i)},l=function(e,t){var r=!1,o=n(e,e.push);return{start:function(e,n){e=a(e),!r&&x[e]&&(r=e),r||!0!==k[e]||(o("<"),o(e),i(n,function(n,r){var i=a(r),s="img"===e&&"src"===i||"background"===i;!0!==E[i]||!0===S[i]&&!t(n,s)||(o(" "),o(r),o('="'),o(M(n)),o('"'))}),o(">"))},end:function(e){e=a(e),r||!0!==k[e]||!0===g[e]||(o("</"),o(e),o(">")),e==r&&(r=!1)},chars:function(e){r||o(M(e))}}};var d,h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/([^\#-~ |!])/g,g=_("area,br,col,hr,img,wbr"),$=_("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),m=_("rp,rt"),v=r({},m,$),y=r({},$,_("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),b=r({},m,_("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),w=_("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),x=_("script,style"),k=r({},g,y,b,v),S=_("background,cite,href,longdesc,src,xlink:href"),C=_("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),A=_("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),E=r({},S,A,C);function _(e,t){var n,r={},i=e.split(",");for(n=0;n<i.length;n++)r[t?a(i[n]):i[n]]=!0;return r}function I(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function M(e){return e.replace(/&/g,"&").replace(h,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(p,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function O(t){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&O(s),(s=t.nextSibling)&&O(s)}!function(e){var t;if(!e.document||!e.document.implementation)throw c("noinert","Can't create an inert html document");var n=((t=e.document.implementation.createHTMLDocument("inert")).documentElement||t.getDocumentElement()).getElementsByTagName("body");if(1===n.length)d=n[0];else{var r=t.createElement("html");d=t.createElement("body"),r.appendChild(d),t.appendChild(r)}}(e)}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,i=t.$$minErr("linky"),o=t.isDefined,a=t.isFunction,u=t.isObject,c=t.isString;return function(t,f,d){if(null==t||""===t)return t;if(!c(t))throw i("notstring","Expected string but received: {0}",t);for(var h,p,g,$=a(d)?d:u(d)?function(){return d}:function(){return{}},m=t,v=[];h=m.match(n);)p=h[0],h[2]||h[4]||(p=(h[3]?"http://":"mailto:")+p),g=h.index,y(m.substr(0,g)),b(p,h[0].replace(r,"")),m=m.substring(g+h[0].length);return y(m),e(v.join(""));function y(e){var t,n;e&&v.push((t=e,l(n=[],s).chars(t),n.join("")))}function b(e,t){var n,r=$(e);for(n in v.push("<a "),r)v.push(n+'="'+r[n]+'" ');!o(f)||"target"in r||v.push('target="',f,'" '),v.push('href="',e.replace(/"/g,"""),'">'),y(t),v.push("</a>")}}}])}(window,window.angular),function(){function e(e,t){window.XMLHttpRequest.prototype[e]=t(window.XMLHttpRequest.prototype[e])}function t(e,t,n){try{Object.defineProperty(e,t,{get:n})}catch(e){}}if(window.FileAPI||(window.FileAPI={}),!window.XMLHttpRequest)throw"AJAX is not supported. XMLHttpRequest is not defined.";if(FileAPI.shouldLoad=!window.FormData||FileAPI.forceLoad,FileAPI.shouldLoad){var n=function(e){if(!e.__listeners){e.upload||(e.upload={}),e.__listeners=[];var t=e.upload.addEventListener;e.upload.addEventListener=function(n,r){e.__listeners[n]=r,t&&t.apply(this,arguments)}}};e("open",function(e){return function(t,r,i){n(this),this.__url=r;try{e.apply(this,[t,r,i])}catch(n){n.message.indexOf("Access is denied")>-1&&(this.__origError=n,e.apply(this,[t,"_fix_for_ie_crossdomain__",i]))}}}),e("getResponseHeader",function(e){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):null==e?null:e.apply(this,[t])}}),e("getAllResponseHeaders",function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==e?null:e.apply(this)}}),e("abort",function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==e?null:e.apply(this)}}),e("setRequestHeader",function(e){return function(t,r){if("__setXHR_"===t){n(this);var i=r(this);i instanceof Function&&i(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=r,e.apply(this,arguments)}}),e("send",function(e){return function(){var n=this;if(arguments[0]&&arguments[0].__isFileAPIShim){for(var r=arguments[0],i={url:n.__url,jsonp:!1,cache:!0,complete:function(e,r){e&&angular.isString(e)&&-1!==e.indexOf("#2174")&&(e=null),n.__completed=!0,!e&&n.__listeners.load&&n.__listeners.load({type:"load",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),!e&&n.__listeners.loadend&&n.__listeners.loadend({type:"loadend",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),"abort"===e&&n.__listeners.abort&&n.__listeners.abort({type:"abort",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),void 0!==r.status&&t(n,"status",function(){return 0===r.status&&e&&"abort"!==e?500:r.status}),void 0!==r.statusText&&t(n,"statusText",function(){return r.statusText}),t(n,"readyState",function(){return 4}),void 0!==r.response&&t(n,"response",function(){return r.response});var i=r.responseText||(e&&0===r.status&&"abort"!==e?e:void 0);t(n,"responseText",function(){return i}),t(n,"response",function(){return i}),e&&t(n,"err",function(){return e}),n.__fileApiXHR=r,n.onreadystatechange&&n.onreadystatechange(),n.onload&&n.onload()},progress:function(e){if(e.target=n,n.__listeners.progress&&n.__listeners.progress(e),n.__total=e.total,n.__loaded=e.loaded,e.total===e.loaded){var t=this;setTimeout(function(){n.__completed||(n.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4)}},headers:n.__requestHeaders,data:{},files:{}},o=0;o<r.data.length;o++){var a=r.data[o];null!=a.val&&null!=a.val.name&&null!=a.val.size&&null!=a.val.type?i.files[a.key]=a.val:i.data[a.key]=a.val}setTimeout(function(){if(!FileAPI.hasFlash)throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.__fileApiXHR=FileAPI.upload(i)},1)}else{if(this.__origError)throw this.__origError;e.apply(n,arguments)}}}),window.XMLHttpRequest.__isFileAPIShim=!0,window.FormData=FormData=function(){return{append:function(e,t,n){t.__isFileAPIBlobShim&&(t=t.data[0]),this.data.push({key:e,val:t,name:n})},data:[],__isFileAPIShim:!0}},window.Blob=Blob=function(e){return{data:e,__isFileAPIBlobShim:!0}}}}(),function(){function e(){try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(e){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function t(e){var t=0,n=0;if(window.jQuery)return jQuery(e).offset();if(e.offsetParent)do{t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent}while(e);return{left:t,top:n}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=e(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var n,r,i,o,a,s=document.createElement("script"),u=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)n=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)r=window.FileAPI.jsPath;else for(i=0;i<u.length;i++)if((o=(a=u[i].src).search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/))>-1){r=a.substring(0,o+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=r),s.setAttribute("src",n||r+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(s)}FileAPI.ngfFixIE=function(n,r,i){if(!e())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.bind("mouseenter",function(){var e=r.parent();n.attr("disabled")?e&&e.removeClass("js-fileapi-wrapper"):(r.attr("__ngf_flash_")||(r.unbind("change"),r.unbind("click"),r.bind("change",function(e){o.apply(this,[e]),i.apply(this,[e])}),r.attr("__ngf_flash_","true")),e.addClass("js-fileapi-wrapper"),function(e){return"input"===e[0].tagName.toLowerCase()&&e.attr("type")&&"file"===e.attr("type").toLowerCase()}(n)||(e.css("position","absolute").css("top",t(n[0]).top+"px").css("left",t(n[0]).left+"px").css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",n.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),r.css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))});var o=function(e){for(var t=FileAPI.getFiles(e),n=0;n<t.length;n++)void 0===t[n].size&&(t[n].size=0),void 0===t[n].name&&(t[n].name="file"),void 0===t[n].type&&(t[n].type="undefined");e.target||(e.target={}),e.target.files=t,e.target.files!==t&&(e.__files_=t),(e.__files_||e.target.files).item=function(t){return(e.__files_||e.target.files)[t]||null}}},FileAPI.disableFileInput=function(e,t){t?e.removeClass("js-fileapi-wrapper"):e.addClass("js-fileapi-wrapper")}}}(),window.FileReader||(window.FileReader=function(){var e=this,t=!1;this.listeners={},this.addEventListener=function(t,n){e.listeners[t]=e.listeners[t]||[],e.listeners[t].push(n)},this.removeEventListener=function(t,n){e.listeners[t]&&e.listeners[t].splice(e.listeners[t].indexOf(n),1)},this.dispatchEvent=function(t){var n=e.listeners[t.type];if(n)for(var r=0;r<n.length;r++)n[r].call(e,t)},this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;var n=function(t,n){var r={type:t,target:e,loaded:n.loaded,total:n.total,error:n.error};return null!=n.result&&(r.target.result=n.result),r},r=function(r){var i;t||(t=!0,e.onloadstart&&e.onloadstart(n("loadstart",r))),"load"===r.type?(e.onloadend&&e.onloadend(n("loadend",r)),i=n("load",r),e.onload&&e.onload(i),e.dispatchEvent(i)):"progress"===r.type?(i=n("progress",r),e.onprogress&&e.onprogress(i),e.dispatchEvent(i)):(i=n("error",r),e.onerror&&e.onerror(i),e.dispatchEvent(i))};this.readAsDataURL=function(e){FileAPI.readAsDataURL(e,r)},this.readAsText=function(e){FileAPI.readAsText(e,r)}}),!window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=function(e){return function(t,n){if("__setXHR_"===t){var r=n(this);r instanceof Function&&r(this)}else e.apply(this,arguments)}}(window.XMLHttpRequest.prototype.setRequestHeader));var ngFileUpload=angular.module("ngFileUpload",[]);ngFileUpload.version="12.0.4",ngFileUpload.service("UploadBase",["$http","$q","$timeout",function(e,t,n){function r(r){function i(e){l.notify&&l.notify(e),c.progressFunc&&n(function(){c.progressFunc(e)})}function s(e){return null!=r._start&&a?{loaded:e.loaded+r._start,total:r._file&&r._file.size||e.total,type:e.type,config:r,lengthComputable:!0,target:e.target}:e}function u(){e(r).then(function(e){a&&r._chunkSize&&!r._finished&&r._file?(i({loaded:r._end,total:r._file&&r._file.size,config:r,type:"progress"}),o.upload(r,!0)):(r._finished&&delete r._finished,l.resolve(e))},function(e){l.reject(e)},function(e){l.notify(e)})}r.method=r.method||"POST",r.headers=r.headers||{};var l=r._deferred=r._deferred||t.defer(),c=l.promise;return r.disableProgress||(r.headers.__setXHR_=function(){return function(e){e&&e.upload&&e.upload.addEventListener&&(r.__XHR=e,r.xhrFn&&r.xhrFn(e),e.upload.addEventListener("progress",function(e){e.config=r,i(s(e))},!1),e.upload.addEventListener("load",function(e){e.lengthComputable&&(e.config=r,i(s(e)))},!1))}}),a?r._chunkSize&&r._end&&!r._finished?(r._start=r._end,r._end+=r._chunkSize,u()):r.resumeSizeUrl?e.get(r.resumeSizeUrl).then(function(e){r._start=r.resumeSizeResponseReader?r.resumeSizeResponseReader(e.data):parseInt((null==e.data.size?e.data:e.data.size).toString()),r._chunkSize&&(r._end=r._start+r._chunkSize),u()},function(e){throw e}):r.resumeSize?r.resumeSize().then(function(e){r._start=e,u()},function(e){throw e}):(r._chunkSize&&(r._start=0,r._end=r._start+r._chunkSize),u()):u(),c.success=function(e){return c.then(function(t){e(t.data,t.status,t.headers,r)}),c},c.error=function(e){return c.then(null,function(t){e(t.data,t.status,t.headers,r)}),c},c.progress=function(e){return c.progressFunc=e,c.then(null,null,function(t){e(t)}),c},c.abort=c.pause=function(){return r.__XHR&&n(function(){r.__XHR.abort()}),c},c.xhr=function(e){return r.xhrFn=(t=r.xhrFn,function(){t&&t.apply(c,arguments),e.apply(c,arguments)}),c;var t},o.promisesCount++,c.finally(function(){o.promisesCount--}),c}function i(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var o=this;o.promisesCount=0,this.isResumeSupported=function(){return window.Blob&&window.Blob.prototype.slice};var a=this.isResumeSupported();this.isUploadInProgress=function(){return o.promisesCount>0},this.rename=function(e,t){return e.ngfName=t,e},this.jsonBlob=function(e){null==e||angular.isString(e)||(e=JSON.stringify(e));var t=new window.Blob([e],{type:"application/json"});return t._ngfBlob=!0,t},this.json=function(e){return angular.toJson(e)},this.isFile=function(e){return null!=e&&(e instanceof window.Blob||e.flashId&&e.name&&e.size)},this.upload=function(e,t){function n(t,n){if(t._ngfBlob)return t;if(e._file=e._file||t,null!=e._start&&a){e._end&&e._end>=t.size&&(e._finished=!0,e._end=t.size);var r=t.slice(e._start,e._end||t.size);return r.name=t.name,r.ngfName=t.ngfName,e._chunkSize&&(n.append("_chunkSize",e._chunkSize),n.append("_currentChunkSize",e._end-e._start),n.append("_chunkNumber",Math.floor(e._start/e._chunkSize)),n.append("_totalSize",e._file.size)),r}return t}function s(t,r,i){if(void 0!==r)if(angular.isDate(r)&&(r=r.toISOString()),angular.isString(r))t.append(i,r);else if(o.isFile(r)){var a=n(r,t),u=i.split(",");u[1]&&(a.ngfName=u[1].replace(/^\s+|\s+$/g,""),i=u[0]),e._fileKey=e._fileKey||i,t.append(i,a,a.ngfName||a.name)}else if(angular.isObject(r)){if(r.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+i;r.$$ngfCircularDetection=!0;try{for(var l in r)if(r.hasOwnProperty(l)&&"$$ngfCircularDetection"!==l){var c=null==e.objectKey?"[i]":e.objectKey;r.length&&parseInt(l)>-1&&(c=null==e.arrayKey?c:e.arrayKey),s(t,r[l],i+c.replace(/[ik]/g,l))}}finally{delete r.$$ngfCircularDetection}}else t.append(i,r)}return t||(e=i(e)),e._isDigested||(e._isDigested=!0,e._chunkSize=o.translateScalars(e.resumeChunkSize),e._chunkSize=e._chunkSize?parseInt(e._chunkSize.toString()):null,e.headers=e.headers||{},e.headers["Content-Type"]=void 0,e.transformRequest=e.transformRequest?angular.isArray(e.transformRequest)?e.transformRequest:[e.transformRequest]:[],e.transformRequest.push(function(t){var n,r=new window.FormData;for(n in t=t||e.fields||{},e.file&&(t.file=e.file),t)if(t.hasOwnProperty(n)){var i=t[n];e.formDataAppender?e.formDataAppender(r,n,i):s(r,i,n)}return r})),r(e)},this.http=function(t){return(t=i(t)).transformRequest=t.transformRequest||function(t){return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:e.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=o.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,r(t)},this.translateScalars=function(e){if(angular.isString(e)){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1048576*e.substring(0,e.length-2));if(e.search(/gb/i)===e.length-2)return parseFloat(1073741824*e.substring(0,e.length-2));if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e},this.urlToBlob=function(n){var r=t.defer();return e({url:n,method:"get",responseType:"arraybuffer"}).then(function(e){var t=new Uint8Array(e.data),n=e.headers("content-type")||"image/WebP",i=new window.Blob([t],{type:n});r.resolve(i)},function(e){r.reject(e)}),r.promise},this.setDefaults=function(e){this.defaults=e||{}},this.defaults={},this.version=ngFileUpload.version}]),ngFileUpload.service("Upload",["$parse","$timeout","$compile","$q","UploadExif",function(e,t,n,r,i){function o(e,t,n){var i=[u.emptyPromise()];return angular.forEach(e,function(r,o){0===r.type.indexOf("image/jpeg")&&u.attrGetter("ngfFixOrientation",t,n,{$file:r})&&i.push(u.happyPromise(u.applyExifRotation(r),r).then(function(t){e.splice(o,1,t)}))}),r.all(i)}function a(e,t,n){var i=u.attrGetter("ngfResize",t,n);if(!i||!u.isResizeSupported()||!e.length)return u.emptyPromise();if(!(i instanceof Function))return s(i,e,t,n);var o=r.defer();i(e).then(function(r){s(r,e,t,n).then(function(e){o.resolve(e)},function(e){o.reject(e)})},function(e){o.reject(e)})}function s(e,t,n,i){function o(r,o){if(0===r.type.indexOf("image")){if(e.pattern&&!u.validatePattern(r,e.pattern))return;var s=u.resize(r,e.width,e.height,e.quality,e.type,e.ratio,e.centerCrop,function(e,t){return u.attrGetter("ngfResizeIf",n,i,{$width:e,$height:t,$file:r})},!1!==e.restoreExif);a.push(s),s.then(function(e){t.splice(o,1,e)},function(e){r.$error="resize",r.$errorParam=(e?(e.message?e.message:e)+": ":"")+(r&&r.name)})}}for(var a=[u.emptyPromise()],s=0;s<t.length;s++)o(t[s],s);return r.all(a)}var u=i;return u.getAttrWithDefaults=function(e,t){if(null!=e[t])return e[t];var n=u.defaults[t];return null==n?n:angular.isString(n)?n:JSON.stringify(n)},u.attrGetter=function(t,n,r,i){var o=this.getAttrWithDefaults(n,t);if(!r)return o;try{return i?e(o)(r,i):e(o)(r)}catch(e){if(t.search(/min|max|pattern/i))return o;throw e}},u.shouldUpdateOn=function(e,t,n){var r=u.attrGetter("ngModelOptions",t,n);return!r||!r.updateOn||r.updateOn.split(" ").indexOf(e)>-1},u.emptyPromise=function(){var e=r.defer(),n=arguments;return t(function(){e.resolve.apply(e,n)}),e.promise},u.rejectPromise=function(){var e=r.defer(),n=arguments;return t(function(){e.reject.apply(e,n)}),e.promise},u.happyPromise=function(e,n){var i=r.defer();return e.then(function(e){i.resolve(e)},function(e){t(function(){throw e}),i.resolve(n)}),i.promise},u.updateModel=function(n,r,i,s,l,c,f){function d(o,a,l,f,d){r.$$ngfPrevValidFiles=o,r.$$ngfPrevInvalidFiles=a;var h=o&&o.length?o[0]:null,p=a&&a.length?a[0]:null;n&&(u.applyModelValidation(n,o),n.$setViewValue(d?h:o)),s&&e(s)(i,{$files:o,$file:h,$newFiles:l,$duplicateFiles:f,$invalidFiles:a,$invalidFile:p,$event:c});var g=u.attrGetter("ngfModelInvalid",r);g&&t(function(){e(g).assign(i,d?p:a)}),t(function(){})}function h(){b=[],y=[],angular.forEach(g,function(e){e.$error?y.push(e):b.push(e)})}function p(){function e(){t(function(){d(w?$.concat(b):b,w?m.concat(y):y,l,v,x)},S&&S.debounce?S.debounce.change||S.debounce:0)}a(k?g:b,r,i).then(function(){k?u.validate(g,$.length,n,r,i).then(function(){h(),e()}):e()},function(e){throw"Could not resize files "+e})}var g,$,m,v=[],y=[],b=[];$=r.$$ngfPrevValidFiles||[],m=r.$$ngfPrevInvalidFiles||[],n&&n.$modelValue&&($=function(e){return angular.isArray(e)?e:[e]}(n.$modelValue));var w=u.attrGetter("ngfKeep",r,i);g=(l||[]).slice(0),("distinct"===w||!0===u.attrGetter("ngfKeepDistinct",r,i))&&function(){function e(e,t){return e.name===t.name&&(e.$ngfOrigSize||e.size)===(t.$ngfOrigSize||t.size)&&e.type===t.type}function t(t){var n;for(n=0;n<$.length;n++)if(e(t,$[n]))return!0;for(n=0;n<m.length;n++)if(e(t,m[n]))return!0;return!1}if(l){g=[],v=[];for(var n=0;n<l.length;n++)t(l[n])?v.push(l[n]):g.push(l[n])}}();var x=!w&&!u.attrGetter("ngfMultiple",r,i)&&!u.attrGetter("multiple",r);if(!w||g.length){u.attrGetter("ngfBeforeModelChange",r,i,{$files:l,$file:l&&l.length?l[0]:null,$newFiles:g,$duplicateFiles:v,$event:c});var k=u.attrGetter("ngfValidateAfterResize",r,i),S=u.attrGetter("ngModelOptions",r,i);u.validate(g,$.length,n,r,i).then(function(){f?d(g,[],l,v,x):(S&&S.allowInvalid||k?b=g:h(),u.attrGetter("ngfFixOrientation",r,i)&&u.isExifSupported()?o(b,r,i).then(function(){p()}):p())})}},u}]),ngFileUpload.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(e,t,n,r){function i(e){var t=e.match(/Android[^\d]*(\d+)\.(\d+)/);if(t&&t.length>2){var n=r.defaults.androidFixMinorVersion||4;return parseInt(t[1])<4||parseInt(t[1])===n&&parseInt(t[2])<n}return-1===e.indexOf("Chrome")&&/.*Windows.*Safari.*/.test(e)}function o(e,t,n,r,o,s,u,l){function c(){return"input"===t[0].tagName.toLowerCase()&&n.type&&"file"===n.type.toLowerCase()}function f(){return p("ngfChange")||p("ngfSelect")}function d(t){if(l.shouldUpdateOn("change",n,e)){for(var i=t.__files_||t.target&&t.target.files,o=[],a=0;a<i.length;a++)o.push(i[a]);l.updateModel(r,n,e,f(),o.length?o:null,t)}}function h(t){l.shouldUpdateOn("click",n,e)&&m.val()&&(m.val(null),l.updateModel(r,n,e,f(),null,t,!0))}var p=function(e,t){return l.attrGetter(e,n,t)};l.registerModelChangeValidator(r,n,e);var g=[];g.push(e.$watch(p("ngfMultiple"),function(){m.attr("multiple",p("ngfMultiple",e))})),g.push(e.$watch(p("ngfCapture"),function(){m.attr("capture",p("ngfCapture",e))})),g.push(e.$watch(p("ngfAccept"),function(){m.attr("accept",p("ngfAccept",e))})),n.$observe("accept",function(){m.attr("accept",p("accept"))}),g.push(function(){n.$$observers&&delete n.$$observers.accept});var $=0,m=t;c()||(m=function(){if(c())return t;var e=angular.element('<input type="file">');!function(e){if(t!==e)for(var n=0;n<t[0].attributes.length;n++){var r=t[0].attributes[n];"type"!==r.name&&"class"!==r.name&&"style"!==r.name&&((null==r.value||""===r.value)&&("required"===r.name&&(r.value="required"),"multiple"===r.name&&(r.value="multiple")),e.attr(r.name,"id"===r.name?"ngf-"+r.value:r.value))}}(e);var n=angular.element("<label>upload</label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),a.push({el:t,ref:n}),document.body.appendChild(n.append(e)[0]),e}()),m.bind("change",d),c()?t.bind("click",h):t.bind("click touchstart touchend",function(n){if(t.attr("disabled"))return!1;if(!p("ngfSelectDisabled",e)){var r=function(e){var t=e.changedTouches||e.originalEvent&&e.originalEvent.changedTouches;if("touchstart"===e.type)return $=t?t[0].clientY:0,!0;if(e.stopPropagation(),e.preventDefault(),"touchend"===e.type){var n=t?t[0].clientY:0;if(Math.abs(n-$)>20)return!1}}(n);if(null!=r)return r;h(n);try{c()||document.body.contains(m[0])||(a.push({el:t,ref:m.parent()}),document.body.appendChild(m.parent()[0]),m.bind("change",d))}catch(e){}return i(navigator.userAgent)?setTimeout(function(){m[0].click()},0):m[0].click(),!1}}),-1!==navigator.appVersion.indexOf("MSIE 10")&&m.bind("click",function e(t){if(m&&!m.attr("__ngf_ie10_Fix_")){if(!m[0].parentNode)return void(m=null);t.preventDefault(),t.stopPropagation(),m.unbind("click");var n=m.clone();return m.replaceWith(n),(m=n).attr("__ngf_ie10_Fix_","true"),m.bind("change",d),m.bind("click",e),m[0].click(),!1}m.removeAttr("__ngf_ie10_Fix_")}),r&&r.$formatters.push(function(e){return(null==e||0===e.length)&&m.val()&&m.val(null),e}),e.$on("$destroy",function(){c()||m.parent().remove(),angular.forEach(g,function(e){e()})}),s(function(){for(var e=0;e<a.length;e++){var t=a[e];document.body.contains(t.el[0])||(a.splice(e,1),t.ref.remove())}}),window.FileAPI&&window.FileAPI.ngfFixIE&&window.FileAPI.ngfFixIE(t,m,d)}var a=[];return{restrict:"AEC",require:"?ngModel",link:function(e,n,i,a){o(e,n,i,a,0,t,0,r)}}}]),function(){function e(e,t,n,r,i,o,a,s){function u(o){var a=e.attrGetter("ngfNoObjectUrl",i,n);e.dataUrl(o,a).finally(function(){t(function(){var e=(a?o.$ngfDataUrl:o.$ngfBlobUrl)||o.$ngfDataUrl;s?r.css("background-image","url('"+(e||"")+"')"):r.attr("src",e),e?r.removeClass("ng-hide"):r.addClass("ng-hide")})})}t(function(){var t=n.$watch(i[o],function(t){var n=a;if("ngfThumbnail"===o&&(n||(n={width:r[0].clientWidth,height:r[0].clientHeight}),0===n.width&&window.getComputedStyle)){var i=getComputedStyle(r[0]);n={width:parseInt(i.width.slice(0,-2)),height:parseInt(i.height.slice(0,-2))}}return angular.isString(t)?(r.removeClass("ng-hide"),s?r.css("background-image","url('"+t+"')"):r.attr("src",t)):void(!t||!t.type||0!==t.type.search(function(e){return"img"===e.tagName.toLowerCase()?"image":"audio"===e.tagName.toLowerCase()?"audio":"video"===e.tagName.toLowerCase()?"video":/./}(r[0]))||s&&0!==t.type.indexOf("image")?r.addClass("ng-hide"):n&&e.isResizeSupported()?e.resize(t,n.width,n.height,n.quality).then(function(e){u(e)},function(e){throw e}):u(t))});n.$on("$destroy",function(){t()})})}ngFileUpload.service("UploadDataUrl",["UploadBase","$timeout","$q",function(e,t,n){var r=e;return r.base64DataUrl=function(e){if(angular.isArray(e)){var t=n.defer(),i=0;return angular.forEach(e,function(n){r.dataUrl(n,!0).finally(function(){if(++i===e.length){var n=[];angular.forEach(e,function(e){n.push(e.$ngfDataUrl)}),t.resolve(n,e)}})}),t.promise}return r.dataUrl(e,!0)},r.dataUrl=function(e,i){if(!e)return r.emptyPromise(e,e);if(i&&null!=e.$ngfDataUrl||!i&&null!=e.$ngfBlobUrl)return r.emptyPromise(i?e.$ngfDataUrl:e.$ngfBlobUrl,e);var o=i?e.$$ngfDataUrlPromise:e.$$ngfBlobUrlPromise;if(o)return o;var a=n.defer();return t(function(){if(window.FileReader&&e&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 8")||e.size<2e4)&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 9")||e.size<4e6)){var n=window.URL||window.webkitURL;if(n&&n.createObjectURL&&!i){var o;try{o=n.createObjectURL(e)}catch(n){return void t(function(){e.$ngfBlobUrl="",a.reject()})}t(function(){if(e.$ngfBlobUrl=o,o){a.resolve(o,e),r.blobUrls=r.blobUrls||[],r.blobUrlsTotalSize=r.blobUrlsTotalSize||0,r.blobUrls.push({url:o,size:e.size}),r.blobUrlsTotalSize+=e.size||0;for(var t=r.defaults.blobUrlsMaxMemory||268435456,i=r.defaults.blobUrlsMaxQueueSize||200;(r.blobUrlsTotalSize>t||r.blobUrls.length>i)&&r.blobUrls.length>1;){var s=r.blobUrls.splice(0,1)[0];n.revokeObjectURL(s.url),r.blobUrlsTotalSize-=s.size}}})}else{var s=new FileReader;s.onload=function(n){t(function(){e.$ngfDataUrl=n.target.result,a.resolve(n.target.result,e),t(function(){delete e.$ngfDataUrl},1e3)})},s.onerror=function(){t(function(){e.$ngfDataUrl="",a.reject()})},s.readAsDataURL(e)}}else t(function(){e[i?"$ngfDataUrl":"$ngfBlobUrl"]="",a.reject()})}),(o=i?e.$$ngfDataUrlPromise=a.promise:e.$$ngfBlobUrlPromise=a.promise).finally(function(){delete e[i?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),o},r}]),ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){e(t,n,r,i,o,"ngfSrc",t.attrGetter("ngfResize",o,r),!1)}}}]),ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){e(t,n,r,i,o,"ngfBackground",t.attrGetter("ngfResize",o,r),!0)}}}]),ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){var a=t.attrGetter("ngfSize",o,r);e(t,n,r,i,o,"ngfThumbnail",a,t.attrGetter("ngfAsBackground",o,r))}}}]),ngFileUpload.config(["$compileProvider",function(e){e.imgSrcSanitizationWhitelist&&e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/),e.aHrefSanitizationWhitelist&&e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/)}]),ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(e,t){return function(n,r,i){if(angular.isString(n))return t.trustAsResourceUrl(n);var o=n&&((r?n.$ngfDataUrl:n.$ngfBlobUrl)||n.$ngfDataUrl);return n&&!o?(!n.$ngfDataUrlFilterInProgress&&angular.isObject(n)&&(n.$ngfDataUrlFilterInProgress=!0,e.dataUrl(n,r)),""):(n&&delete n.$ngfDataUrlFilterInProgress,(n&&o?i?t.trustAsResourceUrl(o):o:n)||"")}}])}(),ngFileUpload.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(e,t,n){var r=e;return r.validatePattern=function(e,t){if(!t)return!0;var n=function e(t){var n="",r=[];if(t.length>2&&"/"===t[0]&&"/"===t[t.length-1])n=t.substring(1,t.length-1);else{var i=t.split(",");if(i.length>1)for(var o=0;o<i.length;o++){var a=e(i[o]);a.regexp?(n+="("+a.regexp+")",o<i.length-1&&(n+="|")):r=r.concat(a.excludes)}else 0===t.indexOf("!")?r.push("^((?!"+e(t.substring(1)).regexp+").)*$"):(0===t.indexOf(".")&&(t="*"+t),n=(n="^"+t.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$").replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:n,excludes:r}}(t),r=!0;if(n.regexp&&n.regexp.length){var i=new RegExp(n.regexp,"i");r=null!=e.type&&i.test(e.type)||null!=e.name&&i.test(e.name)}for(var o=n.excludes.length;o--;){var a=new RegExp(n.excludes[o],"i");r=r&&(null==e.type||a.test(e.type))&&(null==e.name||a.test(e.name))}return r},r.ratioToFloat=function(e){var t=e.toString(),n=t.search(/[x:]/i);return n>-1?parseFloat(t.substring(0,n))/parseFloat(t.substring(n+1)):parseFloat(t)},r.registerModelChangeValidator=function(e,t,n){e&&e.$formatters.push(function(i){e.$dirty&&(i&&!angular.isArray(i)&&(i=[i]),r.validate(i,0,e,t,n).then(function(){r.applyModelValidation(e,i)}))})},r.applyModelValidation=function(e,t){(function(e,t){null==t||e.$dirty||(e.$setDirty?e.$setDirty():e.$dirty=!0)})(e,t),angular.forEach(e.$ngfValidations,function(t){e.$setValidity(t.name,t.valid)})},r.getValidationAttr=function(e,t,n,i,o){var a="ngf"+n[0].toUpperCase()+n.substr(1),s=r.attrGetter(a,e,t,{$file:o});if(null==s&&(s=r.attrGetter("ngfValidate",e,t,{$file:o}))){var u=(i||n).split(".");s=s[u[0]],u.length>1&&(s=s&&s[u[1]])}return s},r.validate=function(e,n,i,o,a){function s(t,n,s){if(e){for(var u=e.length,l=null;u--;){var c=e[u];if(c){var f=r.getValidationAttr(o,a,t,n,c);null!=f&&(s(c,f,u)||(c.$error=t,(c.$errorMessages=c.$errorMessages||{})[t]=!0,c.$errorParam=f,e.splice(u,1),l=!1))}}null!==l&&i.$ngfValidations.push({name:t,valid:l})}}function u(n,s,u,c,f){function d(e,t,r){null!=r?c(t,r).then(function(i){f(i,r)?e.resolve():(t.$error=n,(t.$errorMessages=t.$errorMessages||{})[n]=!0,t.$errorParam=r,e.reject())},function(){l("ngfValidateForce",{$file:t})?(t.$error=n,(t.$errorMessages=t.$errorMessages||{})[n]=!0,t.$errorParam=r,e.reject()):e.resolve()}):e.resolve()}var h=[r.emptyPromise()];return e?(e=void 0===e.length?[e]:e,angular.forEach(e,function(e){var i=t.defer();return h.push(i.promise),!u||null!=e.type&&0===e.type.search(u)?void("dimensions"===n&&null!=r.attrGetter("ngfDimensions",o)?r.imageDimensions(e).then(function(t){d(i,e,l("ngfDimensions",{$file:e,$width:t.width,$height:t.height}))},function(){i.reject()}):"duration"===n&&null!=r.attrGetter("ngfDuration",o)?r.mediaDuration(e).then(function(t){d(i,e,l("ngfDuration",{$file:e,$duration:t}))},function(){i.reject()}):d(i,e,r.getValidationAttr(o,a,n,s,e))):void i.resolve()}),t.all(h).then(function(){i.$ngfValidations.push({name:n,valid:!0})},function(){i.$ngfValidations.push({name:n,valid:!1})})):void 0}(i=i||{}).$ngfValidations=i.$ngfValidations||[],angular.forEach(i.$ngfValidations,function(e){e.valid=!0});var l=function(e,t){return r.attrGetter(e,o,a,t)};if(null==e||0===e.length)return r.emptyPromise(i);e=void 0===e.length?[e]:e.slice(0),s("maxFiles",null,function(e,t,r){return t>n+r}),s("pattern",null,r.validatePattern),s("minSize","size.min",function(e,t){return e.size+.1>=r.translateScalars(t)}),s("maxSize","size.max",function(e,t){return e.size-.1<=r.translateScalars(t)});var c=0;if(s("maxTotalSize",null,function(t,n){return!((c+=t.size)>r.translateScalars(n))||(e.splice(0,e.length),!1)}),s("validateFn",null,function(e,t){return!0===t||null===t||""===t}),!e.length)return r.emptyPromise(i,i.$ngfValidations);var f=t.defer(),d=[];return d.push(r.happyPromise(u("maxHeight","height.max",/image/,this.imageDimensions,function(e,t){return e.height<=t}))),d.push(r.happyPromise(u("minHeight","height.min",/image/,this.imageDimensions,function(e,t){return e.height>=t}))),d.push(r.happyPromise(u("maxWidth","width.max",/image/,this.imageDimensions,function(e,t){return e.width<=t}))),d.push(r.happyPromise(u("minWidth","width.min",/image/,this.imageDimensions,function(e,t){return e.width>=t}))),d.push(r.happyPromise(u("dimensions",null,/image/,function(e,t){return r.emptyPromise(t)},function(e){return e}))),d.push(r.happyPromise(u("ratio",null,/image/,this.imageDimensions,function(e,t){for(var n=t.toString().split(","),i=!1,o=0;o<n.length;o++)Math.abs(e.width/e.height-r.ratioToFloat(n[o]))<1e-4&&(i=!0);return i}))),d.push(r.happyPromise(u("maxRatio","ratio.max",/image/,this.imageDimensions,function(e,t){return e.width/e.height-r.ratioToFloat(t)<1e-4}))),d.push(r.happyPromise(u("minRatio","ratio.min",/image/,this.imageDimensions,function(e,t){return e.width/e.height-r.ratioToFloat(t)>-1e-4}))),d.push(r.happyPromise(u("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(e,t){return e<=r.translateScalars(t)}))),d.push(r.happyPromise(u("minDuration","duration.min",/audio|video/,this.mediaDuration,function(e,t){return e>=r.translateScalars(t)}))),d.push(r.happyPromise(u("duration",null,/audio|video/,function(e,t){return r.emptyPromise(t)},function(e){return e}))),d.push(r.happyPromise(u("validateAsyncFn",null,null,function(e,t){return t},function(e){return!0===e||null===e||""===e}))),t.all(d).then(function(){f.resolve(i,i.$ngfValidations)})},r.imageDimensions=function(e){if(e.$ngfWidth&&e.$ngfHeight){var i=t.defer();return n(function(){i.resolve({width:e.$ngfWidth,height:e.$ngfHeight})}),i.promise}if(e.$ngfDimensionPromise)return e.$ngfDimensionPromise;var o=t.defer();return n(function(){return 0!==e.type.indexOf("image")?void o.reject("not image"):void r.dataUrl(e).then(function(t){function r(){var t=a[0].clientWidth,n=a[0].clientHeight;a.remove(),e.$ngfWidth=t,e.$ngfHeight=n,o.resolve({width:t,height:n})}function i(){a.remove(),o.reject("load error")}var a=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important");a.on("load",r),a.on("error",i);var s=0;(function e(){n(function(){a[0].parentNode&&(a[0].clientWidth?r():s>10?i():e())},1e3)})(),angular.element(document.getElementsByTagName("body")[0]).append(a)},function(){o.reject("load error")})}),e.$ngfDimensionPromise=o.promise,e.$ngfDimensionPromise.finally(function(){delete e.$ngfDimensionPromise}),e.$ngfDimensionPromise},r.mediaDuration=function(e){if(e.$ngfDuration){var i=t.defer();return n(function(){i.resolve(e.$ngfDuration)}),i.promise}if(e.$ngfDurationPromise)return e.$ngfDurationPromise;var o=t.defer();return n(function(){return 0!==e.type.indexOf("audio")&&0!==e.type.indexOf("video")?void o.reject("not media"):void r.dataUrl(e).then(function(t){function r(){var t=a[0].duration;e.$ngfDuration=t,a.remove(),o.resolve(t)}function i(){a.remove(),o.reject("load error")}var a=angular.element(0===e.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed");a.on("loadedmetadata",r),a.on("error",i);var s=0;(function e(){n(function(){a[0].parentNode&&(a[0].duration?r():s>10?i():e())},1e3)})(),angular.element(document.body).append(a)},function(){o.reject("load error")})}),e.$ngfDurationPromise=o.promise,e.$ngfDurationPromise.finally(function(){delete e.$ngfDurationPromise}),e.$ngfDurationPromise},r}]),ngFileUpload.service("UploadResize",["UploadValidate","$q",function(e,t){var n=e,r=function(e,r,i,o,a,s,u,l){var c=t.defer(),f=document.createElement("canvas"),d=document.createElement("img");return d.onload=function(){if(null==l||!1!==l(d.width,d.height))try{if(s){var e=n.ratioToFloat(s);e>d.width/d.height?(r=d.width,i=r/e):(i=d.height,r=i*e)}r||(r=d.width),i||(i=d.height);var t=function(e,t,n,r,i){var o=i?Math.max(n/e,r/t):Math.min(n/e,r/t);return{width:e*o,height:t*o,marginX:e*o-n,marginY:t*o-r}}(d.width,d.height,r,i,u);f.width=Math.min(t.width,r),f.height=Math.min(t.height,i),f.getContext("2d").drawImage(d,Math.min(0,-t.marginX/2),Math.min(0,-t.marginY/2),t.width,t.height),c.resolve(f.toDataURL(a||"image/WebP",o||.934))}catch(e){c.reject(e)}else c.reject("resizeIf")},d.onerror=function(){c.reject()},d.src=e,c.promise};return n.dataUrltoBlob=function(e,t,n){for(var r=e.split(","),i=r[0].match(/:(.*?);/)[1],o=atob(r[1]),a=o.length,s=new Uint8Array(a);a--;)s[a]=o.charCodeAt(a);var u=new window.Blob([s],{type:i});return u.name=t,u.$ngfOrigSize=n,u},n.isResizeSupported=function(){var e=document.createElement("canvas");return window.atob&&e.getContext&&e.getContext("2d")&&window.Blob},n.isResizeSupported()&&Object.defineProperty(window.Blob.prototype,"name",{get:function(){return this.$ngfName},set:function(e){this.$ngfName=e},configurable:!0}),n.resize=function(e,i,o,a,s,u,l,c,f){if(0!==e.type.indexOf("image"))return n.emptyPromise(e);var d=t.defer();return n.dataUrl(e,!0).then(function(t){r(t,i,o,a,s||e.type,u,l,c).then(function(r){if("image/jpeg"===e.type&&f)try{r=n.restoreExif(t,r)}catch(e){setTimeout(function(){throw e},1)}try{var i=n.dataUrltoBlob(r,e.name,e.size);d.resolve(i)}catch(e){d.reject(e)}},function(t){"resizeIf"===t&&d.resolve(e),d.reject(t)})},function(e){d.reject(e)}),d.promise},n}]),function(){function e(e,n,r,i,o,a,s,u,l,c){function f(){return n.attr("disabled")||g("ngfDropDisabled",e)}function d(t,n){u.updateModel(i,r,e,g("ngfChange")||g("ngfDrop"),t,n)}function h(t,n){if(!u.shouldUpdateOn(t,r,e)||!n)return u.rejectPromise([]);var i=[];n.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,function(e,t,n){i.push(n)});var o=[],a=[];if(i.length){angular.forEach(i,function(e){o.push(u.urlToBlob(e).then(function(e){a.push(e)}))});var s=c.defer();return c.all(o).then(function(){s.resolve(a)},function(e){s.reject(e)}),s.promise}return u.emptyPromise()}var p=t(),g=function(e,t,n){return u.attrGetter(e,r,t,n)};if(g("dropAvailable")&&a(function(){e[g("dropAvailable")]?e[g("dropAvailable")].value=p:e[g("dropAvailable")]=p}),p){null==g("ngfSelect")&&u.registerModelChangeValidator(i,r,e);var $,m=null,v=o(g("ngfStopPropagation")),y=1;n[0].addEventListener("dragover",function(t){if(!f()&&u.shouldUpdateOn("drop",r,e)){if(t.preventDefault(),v(e)&&t.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var i=t.dataTransfer.effectAllowed;t.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy"}a.cancel(m),$||($="C",function(e,t,n,r){var i=g("ngfDragOverClass",e,{$event:n}),o="dragover";if(angular.isString(i))o=i;else if(i&&(i.delay&&(y=i.delay),i.accept||i.reject)){var a=n.dataTransfer.items;if(null!=a&&a.length)for(var s=i.pattern||g("ngfPattern",e,{$event:n}),l=a.length;l--;){if(!u.validatePattern(a[l],s)){o=i.reject;break}o=i.accept}else o=i.accept}r(o)}(e,0,t,function(r){$=r,n.addClass($),g("ngfDrag",e,{$isDragging:!0,$class:$,$event:t})}))}},!1),n[0].addEventListener("dragenter",function(t){!f()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),v(e)&&t.stopPropagation())},!1),n[0].addEventListener("dragleave",function(t){!f()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),v(e)&&t.stopPropagation(),m=a(function(){$&&n.removeClass($),$=null,g("ngfDrag",e,{$isDragging:!1,$event:t})},y||100))},!1),n[0].addEventListener("drop",function(t){if(!f()&&u.shouldUpdateOn("drop",r,e)){t.preventDefault(),v(e)&&t.stopPropagation(),$&&n.removeClass($),$=null;var i,o=t.dataTransfer.items;try{i=t.dataTransfer&&t.dataTransfer.getData&&t.dataTransfer.getData("text/html")}catch(e){}(function(t,n,i,o){function a(e,t){var n=c.defer();if(null!=e)if(e.isDirectory){var r=[u.emptyPromise()];if(d){var i={type:"directory"};i.name=i.path=(t||"")+e.name+e.name,h.push(i)}var o=e.createReader(),s=[],g=function(){o.readEntries(function(i){try{i.length?(s=s.concat(Array.prototype.slice.call(i||[],0)),g()):(angular.forEach(s.slice(0),function(n){h.length<=l&&f>=p&&r.push(a(n,(t||"")+e.name+"/"))}),c.all(r).then(function(){n.resolve()},function(e){n.reject(e)}))}catch(e){n.reject(e)}},function(e){n.reject(e)})};g()}else e.file(function(e){try{e.path=(t||"")+e.name,d&&(e=u.rename(e,e.path)),h.push(e),p+=e.size,n.resolve()}catch(e){n.reject(e)}},function(e){n.reject(e)});return n.promise}var l=u.getValidationAttr(r,e,"maxFiles")||Number.MAX_VALUE,f=u.getValidationAttr(r,e,"maxTotalSize")||Number.MAX_VALUE,d=g("ngfIncludeDir",e),h=[],p=0,$=[u.emptyPromise()];if(t&&t.length>0&&"file"!==s.protocol())for(var m=0;m<t.length;m++){if(t[m].webkitGetAsEntry&&t[m].webkitGetAsEntry()&&t[m].webkitGetAsEntry().isDirectory){var v=t[m].webkitGetAsEntry();if(v.isDirectory&&!i)continue;null!=v&&$.push(a(v))}else{var y=t[m].getAsFile();null!=y&&(h.push(y),p+=y.size)}if(h.length>l||p>f||!o&&h.length>0)break}else if(null!=n)for(var b=0;b<n.length;b++){var w=n.item(b);if((w.type||w.size>0)&&(h.push(w),p+=w.size),h.length>l||p>f||!o&&h.length>0)break}var x=c.defer();return c.all($).then(function(){if(o||d||!h.length)x.resolve(h);else{for(var e=0;h[e]&&"directory"===h[e].type;)e++;x.resolve([h[e]])}},function(e){x.reject(e)}),x.promise})(o,t.dataTransfer.files,!1!==g("ngfAllowDir",e),g("multiple")||g("ngfMultiple",e)).then(function(e){e.length?d(e,t):h("dropUrl",i).then(function(e){d(e,t)})})}},!1),n[0].addEventListener("paste",function(t){if(navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&g("ngfEnableFirefoxPaste",e)&&t.preventDefault(),!f()&&u.shouldUpdateOn("paste",r,e)){var n=[],i=t.clipboardData||t.originalEvent.clipboardData;if(i&&i.items)for(var o=0;o<i.items.length;o++)-1!==i.items[o].type.indexOf("image")&&n.push(i.items[o].getAsFile());n.length?d(n,t):h("pasteUrl",i).then(function(e){d(e,t)})}},!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&g("ngfEnableFirefoxPaste",e)&&(n.attr("contenteditable",!0),n.on("keypress",function(e){e.metaKey||e.ctrlKey||e.preventDefault()}))}else!0===g("ngfHideOnDropNotAvailable",e)&&n.css("display","none")}function t(){var e=document.createElement("div");return"draggable"in e&&"ondrop"in e&&!/Edge\/12./i.test(navigator.userAgent)}ngFileUpload.directive("ngfDrop",["$parse","$timeout","$location","Upload","$http","$q",function(t,n,r,i,o,a){return{restrict:"AEC",require:"?ngModel",link:function(o,s,u,l){e(o,s,u,l,t,n,r,i,0,a)}}}]),ngFileUpload.directive("ngfNoFileDrop",function(){return function(e,n){t()&&n.css("display","none")}}),ngFileUpload.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(e,n,r){return function(i,o,a){if(t()){var s=e(r.attrGetter("ngfDropAvailable",a));n(function(){s(i),s.assign&&s.assign(i,!0)})}}}])}(),ngFileUpload.service("UploadExif",["UploadResize","$q",function(e,t){var n=e;return n.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&n.isResizeSupported()},n.readOrientation=function(e){var n=t.defer(),r=new FileReader,i=e.slice?e.slice(0,65536):e;return r.readAsArrayBuffer(i),r.onerror=function(e){return n.reject(e)},r.onload=function(e){var t={orientation:1},r=new DataView(this.result);if(65496!==r.getUint16(0,!1))return n.resolve(t);for(var i=r.byteLength,o=2;i>o;){var a=r.getUint16(o,!1);if(o+=2,65505===a){if(1165519206!==r.getUint32(o+=2,!1))return n.resolve(t);var s=18761===r.getUint16(o+=6,!1);o+=r.getUint32(o+4,s);var u=r.getUint16(o,s);o+=2;for(var l=0;u>l;l++)if(274===r.getUint16(o+12*l,s)){var c=r.getUint16(o+12*l+8,s);return c>=2&&8>=c&&(r.setUint16(o+12*l+8,1,s),t.fixedArrayBuffer=e.target.result),t.orientation=c,n.resolve(t)}}else{if(65280!=(65280&a))break;o+=r.getUint16(o,!1)}}return n.resolve(t)},n.promise},n.applyExifRotation=function(e){if(0!==e.type.indexOf("image/jpeg"))return n.emptyPromise(e);var r=t.defer();return n.readOrientation(e).then(function(t){return t.orientation<2||t.orientation>8?r.resolve(e):void n.dataUrl(e,!0).then(function(i){var o=document.createElement("canvas"),a=document.createElement("img");a.onload=function(){try{o.width=t.orientation>4?a.height:a.width,o.height=t.orientation>4?a.width:a.height;var i=o.getContext("2d");(function(e,t,n,r){switch(t){case 2:return e.transform(-1,0,0,1,n,0);case 3:return e.transform(-1,0,0,-1,n,r);case 4:return e.transform(1,0,0,-1,0,r);case 5:return e.transform(0,1,1,0,0,0);case 6:return e.transform(0,1,-1,0,r,0);case 7:return e.transform(0,-1,-1,0,r,n);case 8:e.transform(0,-1,1,0,0,n)}})(i,t.orientation,a.width,a.height),i.drawImage(a,0,0);var s=o.toDataURL(e.type||"image/WebP",.934);s=n.restoreExif(function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;r>i;i++)t+=String.fromCharCode(n[i]);return window.btoa(t)}(t.fixedArrayBuffer),s);var u=n.dataUrltoBlob(s,e.name);r.resolve(u)}catch(e){return r.reject(e)}},a.onerror=function(){r.reject()},a.src=i},function(e){r.reject(e)})},function(e){r.reject(e)}),r.promise},n.restoreExif=function(e,t){var n={KEY_STR:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode64:function(e){var t,n,r,i,o,a="",s="",u="",l=0;do{r=(t=e[l++])>>2,i=(3&t)<<4|(n=e[l++])>>4,o=(15&n)<<2|(s=e[l++])>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(u),t=n=s="",r=i=o=u=""}while(l<e.length);return a},restore:function(e,t){e.match("data:image/jpeg;base64,")&&(e=e.replace("data:image/jpeg;base64,",""));var n=this.decode64(e),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)},exifManipulation:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)},getExifArray:function(e){for(var t,n=0;n<e.length;n++)if(255===(t=e[n])[0]&225===t[1])return t;return[]},insertExif:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return(s=s.concat(t)).concat(a)},slice2Segments:function(e){for(var t=0,n=[];!(255===e[t]&218===e[t+1]);){if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,i=e.slice(t,r);n.push(i),t=r}if(t>e.length)break}return n},decode64:function(e){var t,n,r,i,o="",a="",s=0,u=[];/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(r=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&r)<<4|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>2,o=(3&i)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),u.push(t),64!==i&&u.push(n),64!==a&&u.push(o),t=n=o="",r=i=a=""}while(s<e.length);return u}};return n.restore(e,t)},n}]);var app=angular.module("fileUpload",["ngFileUpload"]);function processSelectedFile(e,t){var n=$("#"+t).parent().parent().scope();n.block.image=e,n.$apply()}function initiateTinyMceWithDelay(e,t,n){t(function(){initiateTinyMce(e,e.textBoxId),void 0!==e.textBoxIds&&(null!=e.textBoxIds.left&&initiateTinyMce(e,e.textBoxIds.left,"description","left"),null!=e.textBoxIds.right&&initiateTinyMce(e,e.textBoxIds.right,"description","right"))},n)}function initiateTinyMce(e,t,n,r){void 0===t&&(t=e.textboxId),void 0===n&&(n="description"),tinymce.init({elements:t,mode:"exact",skin:"kms",menubar:!1,statusbar:!1,plugins:["code","paste","link","table"],toolbar:"styleselect | bold italic underline | bullist numlist | indent | link | code",height:"200",default_link_target:"_blank",paste_as_text:!0,style_formats:[{title:"Titel 1",block:"h1"},{title:"Titel 2",block:"h2"},{title:"Titel 3",block:"h3"},{title:"Titel 4",block:"h4"}],convert_urls:!1,setup:function(t){t.on("change",function(i){t.save(),void 0===r?e.block[n]=t.getContent():e.block[n][r]=t.getContent(),e.$$phase||e.$apply()}),t.on("KeyUp",function(i){t.save(),void 0===r?e.block[n]=t.getContent():e.block[n][r]=t.getContent(),e.$$phase||e.$apply()})}})}function startToMove(){$(document).find("textarea").each(function(){tinyMCE.execCommand("mceFocus",!1,$(this).attr("id")),tinyMCE.execCommand("mceRemoveEditor",!1,$(this).attr("id"))})}function stopToMove(){setTimeout(function(){$(document).find("textarea").each(function(){tinymce.execCommand("mceAddEditor",!0,$(this).attr("id"))})},100)}function getBlockTypes(e){var t={two_column_block:{typeSlug:"two-column-block",code_name:"",view:"",typeName:"Twee tekstkolommen",status:!0,description:{left:"",right:""},textWidth:"50"},content_block:{typeSlug:"content-block",code_name:"",view:"",typeName:"Afbeelding en tekst",status:!0,location:"left",textWidth:"66",description:"",subFolder:"dynamic",image:null,link:"",link_text:"Lees meer"},view_block:{typeSlug:"view-block",code_name:"",view:"",typeName:"View",status:!0},full_image_block:{typeSlug:"full-image-block",code_name:"",view:"",typeName:"100% Afbeelding",subFolder:"dynamic",max_images:1,status:!0,image:null},full_text_block:{typeSlug:"full-text-block",code_name:"",view:"",typeName:"Een tekstkolom",description:"",status:!0,link:"",link_text:"Lees meer"},multiple_images_block:{typeSlug:"multiple-images-block",code_name:"",view:"",typeName:"Meerdere afbeeldingen",tab:[{title:"Afbeelding 1",max_images:1},{title:"Afbeelding 2a",max_images:2},{title:"Afbeelding 2b (optioneel)",max_images:1}],status:!0,location:"left",subFolder:"dynamic",textWidth:"66"},page_link_block:{typeSlug:"page-link-block",code_name:"",view:"",typeName:"Page-link block",link_text:"Lees meer",special:0,status:!0,pageId:null},image_slider_block:{typeSlug:"image-slider-block",code_name:"",view:"",typeName:"Image gallery",tab:[{title:""}],subFolder:"dynamic",status:!0,pageId:null},video_block:{typeSlug:"video-block",code_name:"",view:"",typeName:"Video",youtube:"",status:!0,pageId:null},file_block:{typeSlug:"file-block",code_name:"",view:"",typeName:"Bestand block",title:"",special:0,download_text:"Download",file:"",status:!0,pageId:null}},n={};return angular.forEach(e,function(e,r){n[r]=angular.merge(t[r],e)}),n}app.controller("fileUploadController",["$scope","Upload","$timeout",function(e,t,n){console.log("fileuploadcontroller loading"),e.files=[],e.dynamic=!1,e.uploadSizes="",e.maxImages,e.errorMsg={},e.subFolder=!1,e.attributeKey="",e.forModel,e.forModelId,e.canUploadNewImage,e.uploadFiles=function(r,i,o,a,s){console.log("upload for block with blockId: "+a+" and tabKey: "+s),console.log("uploadedFiles files:"),console.log(r);var u=document.querySelector("[ng-controller=KmsAttributeDynamicController]");if(e.forModel=u.dataset.forModel,e.forModelId=u.dataset.forModelId,console.log("fileUploadController uploading files For model: "+e.forModel+" with id: "+e.forModelId+" and blockId: "+a),void 0===e.files&&(e.files=[]),e.files.length>=o)return console.log("File upload not allowed. "+e.files.length+"/"+o+" uploaded"),!1;e.errFiles=i,angular.forEach(r,function(r){var i={loading:!0,thumb_image_url:"/images/kms/loading.gif"};e.files.push(i);var o=e.files.length-1;r.upload=t.upload({url:"/kms/upload",data:{file:r,uploadSizes:e.uploadSizes,dynamic:e.dynamic,subFolder:e.subFolder,attribute_key:e.attributeKey,forModelName:e.forModel,forModelId:e.forModelId,forBlockId:a,forTabId:s}}),r.upload.then(function(t){n(function(){console.log(t),console.log("Image Id: "+t.data.uploaded[0].id),e.files[o]=t.data.uploaded[0],console.log("$scope.files["+o+"] ="),console.log(e.files[o]);var n=t.data.uploaded[0].forBlockId,r=e.getBlocksData();for(var i in r)if(console.log("Looping over blocks to find a block with id: "+n+". Current block id: "+r[i].blockId),!1!==r.hasOwnProperty(i)&&!1!==r[i].hasOwnProperty("blockId")){if(r[i].blockId==n){console.log("found block with id: "+n);var a=[];t.data.uploaded[0].forTabId?(console.log("Uploaded an image for tab: "+t.data.uploaded[0].forTabId),a=t.data.uploaded[0].id+"#"+t.data.uploaded[0].forTabId):(console.log("Uploaded an image without tab: "+t.data.uploaded[0].id),a=t.data.uploaded[0].id);if(r[i].hasOwnProperty("fileIds")){var s=r[i].fileIds.length;r[i].fileIds[s]=a,console.log("Updating fileIds with image id: "+a)}else console.log("Setting fileIds to a new array with image id: "+a),r[i].fileIds=[a];console.log("files.length = "+r[i].fileIds.length+" maxImages = "+e.maxImages),e.canUploadNewImage=r[i].fileIds.length<e.maxImages}e.setBlocksData(r)}else console.warn("Detected block data without a block id. Because of this, it is not possible to upload a file for that block. This does not mean that the uploaded image can be linked to the block your uploading currently for")})},function(t){t.status>0&&(e.errorMsg=t.status+": "+t.data),console.error("Error: "+e.errorMsg)},function(e){r.progress=Math.min(100,parseInt(100*e.loaded/e.total))})})},e.deleteImage=function(t,n,r){var i=e.files[t].id;console.log("idToDelete: "+i+" from blockId: "+n),e.files.splice(t,1),console.log("Current image amount: "+e.files.length);var o=e.getBlocksData();for(var a in o)if(!1!==o.hasOwnProperty(a)&&!1!==o[a].hasOwnProperty("blockId")){if(o[a].blockId==n)for(var t in console.log("found block with id: "+n),!1===o[a].hasOwnProperty("fileIdsToDelete")&&(o[a].fileIdsToDelete=[]),console.log("Current files to delete: "+o[a].fileIdsToDelete),i=void 0!==r?i+"#"+r:i,o[a].fileIds){var s=o[a].fileIds[t];if(void 0!==r?console.log("Looping over the file ids to find an image with id: "+i+" for tab: "+r+" ("+s+")"):console.log("Looping over the file ids to find an image with id: "+i),s==i){if(console.log("Image marked to delete on save: "+i),o[a].fileIdsToDelete[o[a].fileIdsToDelete.length]=i,o[a].fileIds.splice(t,1),void 0===r)e.canUploadNewImage=o[a].fileIds.length<e.maxImages;else{var u=0;for(var t in o[a].fileIds)o[a].fileIds[t].split("#")[1]==r&&u++;e.canUploadNewImage=u<e.maxImages}break}}}else console.warn("Detected block data without a block id. Because of this, it is not possible to upload a file for that block. This does not mean that the uploaded image can be linked to the block your uploading currently for");e.setBlocksData(o),delete e.errorMsg.toMany},e.initFiles=function(t,n,r){if(console.log("fileupload:initFiles: "+t+" maxImages: "+n),t){var i=[];if(void 0!==r)for(var o in t){var a=t[o].split("#");2===a.length&&(a[1]!=r?console.log("fileupload:initFiles: Ignoring image with id: "+a[0]+" because it belongs to tab "+a[1]+" and we are processing images for tab "+r):i[i.length]=t[o])}else i=t;i.length>0?$.ajax({type:"POST",url:"/kms/getimagedata",data:{fileIds:i},success:function(t){console.log("Retrieved files: "),console.log(t),e.files=t,void 0!==n&&(e.maxImages=n),console.log("files.length < $scope.maxImages: "+i.length<e.maxImages),e.canUploadNewImage=i.length<e.maxImages,e.$apply()},error:function(){console.log("An error occured while retrieving image(s)")},headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},dataType:"json"}):(e.maxImages=n,e.canUploadNewImage=!0,e.files=[])}else e.maxImages=n,e.canUploadNewImage=!0,e.files=[]},e.updateFiles=function(t){console.log("Updated files"),e.files=t},e.sortableOptions={update:function(t,n){n.item.sortable.cancel();var r=n.item.sortable.index,i=n.item.sortable.dropindex,o=e.files[r];e.files[r]=e.files[i],e.files[i]=o,e.setFileIds()}},console.log("fileuploadcontroller initialized")}]),angular.element(document).ready(function(){}),angular.module("kms.dynamic-attribute",[]).controller("KmsAttributeDynamicController",function(e,t,n,r){var i=$(t)[0];e.forModel=i.dataset.forModel,e.forModelId=i.dataset.forModelId,e.key=i.dataset.key;e.blocks=[];var o=$("#"+e.key+"_data",t).html();""!=o&&'""'!=o&&null!=o&&(e.blocks=JSON.parse(o)),e.blockSettings={};var a=document.getElementById("blockSettings");if(a){var s=a.value;""!=s&&'""'!=s&&(e.blockSettings=JSON.parse(s))}e.blockTypes=getBlockTypes(e.blockSettings),e.addBlock=function(t){angular.isUndefined(t)||e.blocks.push(angular.copy(t))},e.removeBlock=function(t){startToMove();var n=e.blocks.indexOf(t);e.blocks.splice(n,1),stopToMove()},e.upBlock=function(t){var n=e.blocks.indexOf(t);n<1||(startToMove(),e.blocks[n]=e.blocks[n-1],e.blocks[n-1]=t,stopToMove())},e.downBlock=function(t){var n=e.blocks.indexOf(t);n>=e.blocks.length-1||(startToMove(),e.blocks[n]=e.blocks[n+1],e.blocks[n+1]=t,stopToMove())},e.deleteImage=function(t,n,r,i){null==i?e.blocks[n].images.splice(r,1):e.blocks[n].tab[i].images.splice(r,1)},e.deleteFile=function(t){delete e.blocks[t].file},e.changeOrder=function(t,n,r,i){var o=r;if(null==i){var a=e.blocks[n].images[r];switch(t){case"left":if(0==o)return;e.blocks[n].images[r]=e.blocks[n].images[r-1],e.blocks[n].images[r-1]=a;break;case"right":if(o+1==e.blocks[n].images.length)return;e.blocks[n].images[r]=e.blocks[n].images[r+1],e.blocks[n].images[r+1]=a}}else{a=e.blocks[n].tab[i].images[r];switch(t){case"left":if(0==o)return;e.blocks[n].tab[i].images[r]=e.blocks[n].tab[i].images[r-1],e.blocks[n].tab[i].images[r-1]=a;break;case"right":if(o+1==e.blocks[n].tab[i].images.length)return;e.blocks[n].tab[i].images[r]=e.blocks[n].tab[i].images[r+1],e.blocks[n].tab[i].images[r+1]=a}}},e.addImageTab=function(t){e.blocks[t].tab.push({title:""});var n=e.blocks[t].tab.length;e.setActiveTab(t,n-1)},e.removeImageTab=function(t,n){e.blocks[t].tab.splice(n,1),e.setActiveTab(t,0)},e.setActiveTab=function(t,n){e.blocks[t].active_tab=n},e.moveTab=function(t,n,r){var i=e.blocks[n].tab[r];switch(t){case"left":if(0==r)return;e.blocks[n].tab[r]=e.blocks[n].tab[r-1],e.blocks[n].tab[r-1]=i;break;case"right":if(r+1==e.blocks[n].tab.length)return;e.blocks[n].tab[r]=e.blocks[n].tab[r+1],e.blocks[n].tab[r+1]=i}},e.setUniqueId=function(t){if(void 0===e.blocks[t].blockId){var n=(new Date).valueOf();e.blocks[t].blockId=Math.round(n+1e3*Math.random())}},e.debug=function(){}}).directive("block",function(e){return{restrict:"E",template:'<div class="header"><div class="start"><div class="block-title">{{block.typeName}}</div><div class="buttons"><div class="position-button up" ng-click="upBlock(block)"></div><div class="position-button down" ng-click="downBlock(block)"></div></div></div><div class="end"><div class="btn btn-danger btn-trash" ng-click="removeBlock(block)"> </div></div></div>',link:function(t,n,r){switch(t.block.typeSlug){case"content-block":t.imageBoxId=t.key+"-image-box-"+t.$index,t.textBoxId=t.key+"-text-box-"+t.$index,n.append(e("<content-block></content-block>")(t));break;case"view-block":n.append(e("<view-block></view-block>")(t));break;case"page-link-block":n.append(e("<page-link-block></page-link-block>")(t));break;case"image-slider-block":n.append(e("<image-slider-block></image-slider-block>")(t));break;case"video-block":n.append(e("<video-block></video-block>")(t));break;case"file-block":n.append(e("<file-block></file-block>")(t));break;case"two-column-block":t.textBoxIds=[],t.textBoxIds.left=t.key+"-text-box-"+t.$index+"-left",t.textBoxIds.right=t.key+"-text-box-"+t.$index+"-right",n.append(e("<two-column-block></two-column-block>")(t));break;case"full-text-block":t.textBoxId=t.key+"-text-box-"+t.$index,n.append(e("<full-text-block></full-text-block>")(t));break;case"full-image-block":n.append(e("<full-image-block></full-image-block>")(t));break;case"multiple-images-block":n.append(e("<multiple-images-block></multiple-images-block>")(t))}t.dataElement=document.querySelector(r.dataElement),t.getBlocksData=function(){return JSON.parse(t.dataElement.getAttribute("value"))},t.setBlocksData=function(e){t.dataElement.setAttribute("value",JSON.stringify(e))}}}}).directive("contentBlock",function(e){var t=0;return{restrict:"E",templateUrl:"/kms/api/template/dynamic-page-content-block",link:function(n,r,i){n.image="imageHolder",n.loopCount=t,t++,n.loopCount=n.key,initiateTinyMceWithDelay(n,e,100),n.openBox=function(e){$.colorbox({href:"/kms/elfinder/standalonepopup/"+e,fastIframe:!0,iframe:!0,width:"70%",height:"520px"})}}}}).directive("viewBlock",function(e){return{restrict:"E",templateUrl:"/kms/api/template/dynamic-view",link:function(e){}}}).directive("twoColumnBlock",function(e){var t=0;return{restrict:"E",templateUrl:"/kms/api/template/two-column-block",link:function(n,r,i){n.image="imageHolder",n.loopCount=t,t++,n.loopCount=n.key,initiateTinyMceWithDelay(n,e,100),n.openBox=function(e){$.colorbox({href:"/kms/elfinder/standalonepopup/"+e,fastIframe:!0,iframe:!0,width:"70%",height:"520px"})}}}}).directive("imageSliderBlock",function(){return{restrict:"E",templateUrl:"/kms/api/template/dynamic-image-slider-block",link:function(e){}}}).directive("fullImageBlock",function(){return{restrict:"E",templateUrl:"/kms/api/template/dynamic-full-image-block",link:function(e){}}}).directive("fullTextBlock",function(e){return{restrict:"E",templateUrl:"/kms/api/template/dynamic-full-text-block",link:function(t){initiateTinyMceWithDelay(t,e,100)}}}).directive("multipleImagesBlock",function(){return{restrict:"E",templateUrl:"/kms/api/template/dynamic-multiple-images-block",link:function(e){}}}).directive("pageLinkBlock",function(e){return{restrict:"E",templateUrl:"/kms/api/template/dynamic-page-link-block",link:function(t,n,r){t.pages=[],e.get("/kms/api/pages").then(function(e){var n=[],r=function(e){for(var t in e)e[t].title&&n.push({value:e[t].id,label:e[t].title}),r(e[t].children)};r(e.data),t.pages=n})}}}).directive("videoBlock",function(){return{restrict:"E",templateUrl:"/kms/api/template/dynamic-video-block",link:function(e){}}}).directive("fileBlock",function(){return{restrict:"E",templateUrl:"/kms/api/template/dynamic-file-block",link:function(e){}}});