!function(){function t(n,t){window.XMLHttpRequest.prototype[n]=t(window.XMLHttpRequest.prototype[n])}function n(n,t,i){try{Object.defineProperty(n,t,{get:i})}catch(r){}}function u(n){return"input"===n[0].tagName.toLowerCase()&&n.attr("type")&&"file"===n.attr("type").toLowerCase()}var i=function(){try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(n)return!0}catch(t){if(void 0!=navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1},r;(window.XMLHttpRequest&&!window.FormData||window.FileAPI&&FileAPI.forceLoad)&&(r=function(n){if(!n.__listeners){n.upload||(n.upload={});n.__listeners=[];var t=n.upload.addEventListener;n.upload.addEventListener=function(i,r){n.__listeners[i]=r;t&&t.apply(this,arguments)}}},t("open",function(n){return function(t,i,u){r(this);this.__url=i;try{n.apply(this,[t,i,u])}catch(f){f.message.indexOf("Access is denied")>-1&&(this.__origError=f,n.apply(this,[t,"_fix_for_ie_crossdomain__",u]))}}}),t("getResponseHeader",function(n){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):null==n?null:n.apply(this,[t])}}),t("getAllResponseHeaders",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==n?null:n.apply(this)}}),t("abort",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==n?null:n.apply(this)}}),t("setRequestHeader",function(n){return function(t,i){if("__setXHR_"===t){r(this);var u=i(this);u instanceof Function&&u(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=i,n.apply(this,arguments)}}),t("send",function(t){return function(){var r=this,o,f,e,u;if(arguments[0]&&arguments[0].__isFileAPIShim){for(o=arguments[0],f={url:r.__url,jsonp:!1,cache:!0,complete:function(t,i){r.__completed=!0;!t&&r.__listeners.load&&r.__listeners.load({type:"load",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0});!t&&r.__listeners.loadend&&r.__listeners.loadend({type:"loadend",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0});"abort"===t&&r.__listeners.abort&&r.__listeners.abort({type:"abort",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0});void 0!==i.status&&n(r,"status",function(){return 0==i.status&&t&&"abort"!==t?500:i.status});void 0!==i.statusText&&n(r,"statusText",function(){return i.statusText});n(r,"readyState",function(){return 4});void 0!==i.response&&n(r,"response",function(){return i.response});var u=i.responseText||(t&&0==i.status&&"abort"!==t?t:void 0);n(r,"responseText",function(){return u});n(r,"response",function(){return u});t&&n(r,"err",function(){return t});r.__fileApiXHR=i;r.onreadystatechange&&r.onreadystatechange();r.onload&&r.onload()},fileprogress:function(n){if(n.target=r,r.__listeners.progress&&r.__listeners.progress(n),r.__total=n.total,r.__loaded=n.loaded,n.total===n.loaded){var t=this;setTimeout(function(){r.__completed||(r.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4)}},headers:r.__requestHeaders},f.data={},f.files={},e=0;e<o.data.length;e++)u=o.data[e],null!=u.val&&null!=u.val.name&&null!=u.val.size&&null!=u.val.type?f.files[u.key]=u.val:f.data[u.key]=u.val;setTimeout(function(){if(!i())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';r.__fileApiXHR=FileAPI.upload(f)},1)}else{if(this.__origError)throw this.__origError;t.apply(r,arguments)}}}),window.XMLHttpRequest.__isFileAPIShim=!0,window.FormData=FormData=function(){return{append:function(n,t,i){t.__isFileAPIBlobShim&&(t=t.data[0]);this.data.push({key:n,val:t,name:i})},data:[],__isFileAPIShim:!0}},window.Blob=Blob=function(n){return{data:n,__isFileAPIBlobShim:!0}},function(){if(window.FileAPI||(window.FileAPI={}),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var f,n,t,r,u,e=document.createElement("script"),o=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)f=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)n=window.FileAPI.jsPath;else for(t=0;t<o.length;t++)if(u=o[t].src,r=u.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/),r>-1){n=u.substring(0,r+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=n);e.setAttribute("src",f||n+"FileAPI.min.js");document.getElementsByTagName("head")[0].appendChild(e);FileAPI.hasFlash=i()}}(),FileAPI.ngfFixIE=function(n,t,r,f){var e,o;if(!i())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';e=function(){function s(n){var t,i;if(t=i=0,n.offsetParent)do t+=n.offsetLeft,i+=n.offsetTop;while(n=n.offsetParent);return{left:t,top:i}}if(n.attr("disabled"))n.__ngf_elem__.removeClass("js-fileapi-wrapper");else{var i=n.__ngf_elem__;i?r(n.__ngf_elem__):(i=n.__ngf_elem__=t(),i.addClass("js-fileapi-wrapper"),!u(n),setTimeout(function(){i.bind("mouseenter",e)},10),i.bind("change",function(n){o.apply(this,[n]);f.apply(this,[n])}));u(n)||i.css("position","absolute").css("top",s(n[0]).top+"px").css("left",s(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")}};n.bind("mouseenter",e);o=function(n){for(var t=FileAPI.getFiles(n),i=0;i<t.length;i++)void 0===t[i].size&&(t[i].size=0),void 0===t[i].name&&(t[i].name="file"),void 0===t[i].type&&(t[i].type="undefined");n.target||(n.target={});n.target.files=t;n.target.files!=t&&(n.__files_=t);(n.__files_||n.target.files).item=function(t){return(n.__files_||n.target.files)[t]||null}}},FileAPI.disableFileInput=function(n,t){t?n.removeClass("js-fileapi-wrapper"):n.addClass("js-fileapi-wrapper")});window.FileReader||(window.FileReader=function(){var n=this,r=!1,t,i;this.listeners={};this.addEventListener=function(t,i){n.listeners[t]=n.listeners[t]||[];n.listeners[t].push(i)};this.removeEventListener=function(t,i){n.listeners[t]&&n.listeners[t].splice(n.listeners[t].indexOf(i),1)};this.dispatchEvent=function(t){var r=n.listeners[t.type],i;if(r)for(i=0;i<r.length;i++)r[i].call(n,t)};this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;t=function(t,i){var r={type:t,target:n,loaded:i.loaded,total:i.total,error:i.error};return null!=i.result&&(r.target.result=i.result),r};i=function(i){var u;(r||(r=!0,n.onloadstart&&n.onloadstart(t("loadstart",i))),"load"===i.type)?(n.onloadend&&n.onloadend(t("loadend",i)),u=t("load",i),n.onload&&n.onload(u),n.dispatchEvent(u)):"progress"===i.type?(u=t("progress",i),n.onprogress&&n.onprogress(u),n.dispatchEvent(u)):(u=t("error",i),n.onerror&&n.onerror(u),n.dispatchEvent(u))};this.readAsArrayBuffer=function(n){FileAPI.readAsBinaryString(n,i)};this.readAsBinaryString=function(n){FileAPI.readAsBinaryString(n,i)};this.readAsDataURL=function(n){FileAPI.readAsDataURL(n,i)};this.readAsText=function(n){FileAPI.readAsText(n,i)}})}();!function(n){"use strict";function l(n,t){return t=t||Error,function(){var f,r,i=arguments,e=i[0],u="["+(n?n+":":"")+e+"] ";for(u+=i[1].replace(/\{\d+\}/g,function(n){var t=+n.slice(1,-1)+2;return t<i.length?ss(i[t]):n}),u+="\nhttp://errors.angularjs.org/1.5.8/"+(n?n+"/":"")+e,r=2,f="?";r<i.length;r++,f="&")u+=f+"p"+(r-2)+"="+encodeURIComponent(ss(i[r]));return new t(u)}}function ni(n){if(null==n||fr(n))return!1;if(c(n)||h(n)||e&&n instanceof e)return!0;var t="length"in Object(n)&&n.length;return w(t)&&(t>=0&&(t-1 in n||n instanceof Array)||"function"==typeof n.item)}function t(n,i,r){var u,e,o;if(n)if(f(n))for(u in n)"prototype"==u||"length"==u||"name"==u||n.hasOwnProperty&&!n.hasOwnProperty(u)||i.call(r,n[u],u,n);else if(c(n)||ni(n))for(o="object"!=typeof n,u=0,e=n.length;u<e;u++)(o||u in n)&&i.call(r,n[u],u,n);else if(n.forEach&&n.forEach!==t)n.forEach(i,r,n);else if(po(n))for(u in n)i.call(r,n[u],u,n);else if("function"==typeof n.hasOwnProperty)for(u in n)n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else for(u in n)at.call(n,u)&&i.call(r,n[u],u,n);return n}function lo(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function ao(n){return function(t,i){n(i,t)}}function su(){return++la}function vo(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function pf(n,t,i){for(var e,u,r,a=n.$$hashKey,s=0,v=t.length;s<v;++s)if(e=t[s],o(e)||f(e))for(var l=Object.keys(e),h=0,y=l.length;h<y;h++)u=l[h],r=e[u],i&&o(r)?et(r)?n[u]=new Date(r.valueOf()):ur(r)?n[u]=new RegExp(r):r.nodeName?n[u]=r.cloneNode(!0):bf(r)?n[u]=r.clone():(o(n[u])||(n[u]=c(r)?[]:{}),pf(n[u],[r],!0)):n[u]=r;return vo(n,a),n}function v(n){return pf(n,pi.call(arguments,1),!1)}function aa(n){return pf(n,pi.call(arguments,1),!0)}function tt(n){return parseInt(n,10)}function wf(n,t){return v(Object.create(n),t)}function s(){}function rr(n){return n}function ft(n){return function(){return n}}function yo(n){return f(n.toString)&&n.toString!==rt}function r(n){return void 0===n}function u(n){return void 0!==n}function o(n){return null!==n&&"object"==typeof n}function po(n){return null!==n&&"object"==typeof n&&!co(n)}function h(n){return"string"==typeof n}function w(n){return"number"==typeof n}function et(n){return"[object Date]"===rt.call(n)}function f(n){return"function"==typeof n}function ur(n){return"[object RegExp]"===rt.call(n)}function fr(n){return n&&n.window===n}function er(n){return n&&n.$evalAsync&&n.$watch}function oi(n){return"boolean"==typeof n}function hu(n){return n&&f(n.then)}function bf(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function vt(n){return a(n.nodeName||n[0]&&n[0].nodeName)}function or(n,t){var i=n.indexOf(t);return i>=0&&n.splice(i,1),i}function ti(n,i){function l(n,t){var i,e=t.$$hashKey,u,f;if(c(n))for(u=0,f=n.length;u<f;u++)t.push(r(n[u]));else if(po(n))for(i in n)t[i]=r(n[i]);else if(n&&"function"==typeof n.hasOwnProperty)for(i in n)n.hasOwnProperty(i)&&(t[i]=r(n[i]));else for(i in n)at.call(n,i)&&(t[i]=r(n[i]));return vo(t,e),t}function r(n){var i,u,t;if(!o(n))return n;if(i=e.indexOf(n),-1!==i)return s[i];if(fr(n)||er(n))throw ei("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");return u=!1,t=function(n){var t,i;switch(rt.call(n)){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 n.constructor(r(n.buffer),n.byteOffset,n.length);case"[object ArrayBuffer]":return n.slice?n.slice(0):(t=new ArrayBuffer(n.byteLength),new Uint8Array(t).set(new Uint8Array(n)),t);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new n.constructor(n.valueOf());case"[object RegExp]":return i=new RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),i.lastIndex=n.lastIndex,i;case"[object Blob]":return new n.constructor([n],{type:n.type})}if(f(n.cloneNode))return n.cloneNode(!0)}(n),void 0===t&&(t=c(n)?[]:Object.create(co(n)),u=!0),e.push(n),s.push(t),u?l(n,t):t}var h,u,e=[],s=[];if(i){if((u=i)&&w(u.length)&&va.test(rt.call(u))||(h=i,"[object ArrayBuffer]"===rt.call(h)))throw ei("cpta","Can't copy! TypedArray destination cannot be mutated.");if(n===i)throw ei("cpi","Can't copy! Source and destination are identical.");return c(i)?i.length=0:t(i,function(n,t){"$$hashKey"!==t&&delete i[t]}),e.push(n),s.push(i),l(n,i)}return r(n)}function ot(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!=n&&t!=t)return!0;var e,i,r,o=typeof n;if(o==typeof t&&"object"==o){if(!c(n)){if(et(n))return!!et(t)&&ot(n.getTime(),t.getTime());if(ur(n))return!!ur(t)&&n.toString()==t.toString();if(er(n)||er(t)||fr(n)||fr(t)||c(t)||et(t)||ur(t))return!1;for(i in r=y(),n)if("$"!==i.charAt(0)&&!f(n[i])){if(!ot(n[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&"$"!==i.charAt(0)&&u(t[i])&&!f(t[i]))return!1;return!0}if(!c(t))return!1;if((e=n.length)==t.length){for(i=0;i<e;i++)if(!ot(n[i],t[i]))return!1;return!0}}return!1}function hr(n,t,i){return n.concat(pi.call(t,i))}function cr(n,t){return pi.call(n,t||0)}function lr(n,t){var i=arguments.length>2?cr(arguments,2):[];return!f(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,hr(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function bo(t,i){var r=i;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:fr(i)?r="$WINDOW":i&&n.document===i?r="$DOCUMENT":er(i)&&(r="$SCOPE"),r}function ar(n,t){if(!r(n))return w(t)||(t=t?2:null),JSON.stringify(n,bo,t)}function ko(n){return h(n)?JSON.parse(n):n}function ns(n,t){n=n.replace(go,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function kf(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset();return function(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(ns(t,r)-r))}function yt(n){n=e(n).clone();try{n.empty()}catch(n){}var t=e("<div>").append(n).html();try{return n[0].nodeType===ki?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+a(t)})}catch(n){return a(t)}}function ts(n){try{return decodeURIComponent(n)}catch(n){}}function is(n){var i={};return t((n||"").split("&"),function(n){var f,t,r;n&&(t=n=n.replace(/\+/g,"%20"),-1!==(f=n.indexOf("="))&&(t=n.substring(0,f),r=n.substring(f+1)),u(t=ts(t))&&(r=!u(r)||ts(r),at.call(i,t)?c(i[t])?i[t].push(r):i[t]=[i[t],r]:i[t]=r))}),i}function df(n){var i=[];return t(n,function(n,r){c(n)?t(n,function(n){i.push(ct(r,!0)+(!0===n?"":"="+ct(n,!0)))}):i.push(ct(r,!0)+(!0===n?"":"="+ct(n,!0)))}),i.length?i.join("&"):""}function cu(n){return ct(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ct(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ya(n,i){var r,u,f={};t(si,function(t){var i=t+"app";!r&&n.hasAttribute&&n.hasAttribute(i)&&(r=n,u=n.getAttribute(i))});t(si,function(t){var i,f=t+"app";!r&&(i=n.querySelector("["+f.replace(":","\\:")+"]"))&&(r=i,u=i.getAttribute(f))});r&&(f.strictDi=null!==function(n,t){for(var i,u=si.length,r=0;r<u;++r)if(i=si[r]+t,h(i=n.getAttribute(i)))return i;return null}(r,"strict-di"),i(r,u?[u]:[],f))}function rs(i,r,u){o(u)||(u={});u=v({strictDi:!1},u);var s=function(){var f,t;if((i=e(i)).injector()){f=i[0]===n.document?"document":yt(i);throw ei("btstrpd","App already bootstrapped with this element '{0}'",f.replace(/</,"&lt;").replace(/>/,"&gt;"));}return(r=r||[]).unshift(["$provide",function(n){n.value("$rootElement",i)}]),u.debugInfoEnabled&&r.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),r.unshift("ng"),t=kr(r,u.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),t},h=/^NG_ENABLE_DEBUG_INFO!/,c=/^NG_DEFER_BOOTSTRAP!/;if(n&&h.test(n.name)&&(u.debugInfoEnabled=!0,n.name=n.name.replace(h,"")),n&&!c.test(n.name))return s();n.name=n.name.replace(c,"");ut.resumeBootstrap=function(n){return t(n,function(n){r.push(n)}),s()};f(ut.resumeDeferredBootstrap)&&ut.resumeDeferredBootstrap()}function pa(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function wa(n){var t=ut.element(n).injector();if(!t)throw ei("test","no injector found for element argument to getTestability");return t.get("$$testability")}function fs(n,t){return t=t||"_",n.replace(us,function(n,i){return(i?t:"")+n.toLowerCase()})}function lu(n,t,i){if(!n)throw ei("areq","Argument '{0}' is {1}",t||"?",i||"required");return n}function wi(n,t,i){return i&&c(n)&&(n=n[n.length-1]),lu(f(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function bi(n,t){if("hasOwnProperty"===n)throw ei("badname","hasOwnProperty is not a valid {0} name",t);}function es(n,t,i){if(!t)return n;for(var u,e=t.split("."),o=n,s=e.length,r=0;r<s;r++)u=e[r],n&&(n=(o=n)[u]);return!i&&f(n)?lr(o,n):n}function au(n){for(var t,i=n[0],u=n[n.length-1],r=1;i!==u&&(i=i.nextSibling);r++)(t||n[r]!==i)&&(t||(t=e(pi.call(n,0,r))),t.push(i));return t||n}function y(){return Object.create(null)}function st(n,t){var i,u,r;if(c(n))for(t=t||[],i=0,u=n.length;i<u;i++)t[i]=n[i];else if(o(n))for(r in t=t||{},n)"$"===r.charAt(0)&&"$"===r.charAt(1)||(t[r]=n[r]);return t||n}function ss(n){return"function"==typeof n?n.toString().replace(/ \{[\s\S]*$/,""):r(n)?"undefined":"string"!=typeof n?function(n){var t=[];return JSON.stringify(n,function(n,i){if(o(i=bo(n,i))){if(t.indexOf(i)>=0)return"...";t.push(i)}return i})}(n):n}function pr(n){return n.replace(ka,function(n,t,i,r){return r?i.toUpperCase():i}).replace(da,"Moz$1")}function ie(n){return!nv.test(n)}function cs(n){var t=n.nodeType;return t===bt||!t||t===os}function ls(n,i){var r,o,f,s,u=i.createDocumentFragment(),e=[];if(ie(n))e.push(i.createTextNode(n));else{for(r=u.appendChild(i.createElement("div")),o=(tv.exec(n)||["",""])[1].toLowerCase(),f=lt[o]||lt._default,r.innerHTML=f[1]+n.replace(iv,"<$1><\/$2>")+f[2],s=f[0];s--;)r=r.lastChild;e=hr(e,r.childNodes);(r=u.firstChild).textContent=""}return u.textContent="",u.innerHTML="",t(e,function(n){u.appendChild(n)}),u}function as(n,t){var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)}function b(t){if(t instanceof b)return t;var u,f,i,r;if(h(t)&&(t=p(t),u=!0),!(this instanceof b)){if(u&&"<"!=t.charAt(0))throw te("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new b(t)}ps(this,u?(f=t,i=i||n.document,(r=ga.exec(f))?[i.createElement(r[1])]:(r=ls(f,i))?r.childNodes:[]):t)}function re(n){return n.cloneNode(!0)}function wu(n,t){if(t||wr(n),n.querySelectorAll)for(var r=n.querySelectorAll("*"),i=0,u=r.length;i<u;i++)wr(r[i])}function ys(n,i,r,f){var h;if(u(f))throw te("offargs","jqLite#off() does not support the `selector` argument");var e=bu(n),o=e&&e.events,s=e&&e.handle;if(s)if(i)h=function(t){var i=o[t];u(r)&&or(i||[],r);u(r)&&i&&i.length>0||(yr(n,t,s),delete o[t])},t(i.split(" "),function(n){h(n);pu[n]&&h(pu[n])});else for(i in o)"$destroy"!==i&&yr(n,i,s),delete o[i]}function wr(n,t){var r=n.ng339,i=r&&vr[r];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),ys(n));delete vr[r];n.ng339=void 0}}function bu(n,t){var i=n.ng339,r=i&&vr[i];return t&&!r&&(n.ng339=i=++ba,r=vr[i]={events:{},data:{},handle:void 0}),r}function ue(n,t,i){if(cs(n)){var f=u(i),e=!f&&t&&!o(t),h=!t,s=bu(n,!e),r=s&&s.data;if(f)r[t]=i;else{if(h)return r;if(e)return r&&r[t];v(r,t)}}}function ku(n,t){return!!n.getAttribute&&(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function du(n,i){i&&n.setAttribute&&t(i.split(" "),function(t){n.setAttribute("class",p((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+p(t)+" "," ")))})}function gu(n,i){if(i&&n.setAttribute){var r=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");t(i.split(" "),function(n){n=p(n);-1===r.indexOf(" "+n+" ")&&(r+=n+" ")});n.setAttribute("class",p(r))}}function ps(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,"number"==typeof i&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function ws(n,t){return nf(n,"$"+(t||"ngController")+"Controller")}function nf(n,t,i){var f,r,o;for(n.nodeType==os&&(n=n.documentElement),f=c(t)?t:[t];n;){for(r=0,o=f.length;r<o;r++)if(u(i=e.data(n,f[r])))return i;n=n.parentNode||n.nodeType===ne&&n.host}}function bs(n){for(wu(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function tf(n,t){t||wu(n);var i=n.parentNode;i&&i.removeChild(n)}function ks(n,t){var i=br[t.toLowerCase()];return i&&fe[vt(n)]&&i}function rv(n,t,i){i.call(n,t)}function uv(n,t,i){var r=t.relatedTarget;r&&(r===n||vs.call(n,r))||i.call(n,t)}function fv(){this.$get=function(){return v(b,{hasClass:function(n,t){return n.attr&&(n=n[0]),ku(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),gu(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),du(n,t)}})}}function ci(n,t){var r=n&&n.$$hashKey,i;return r?("function"==typeof r&&(r=n.$$hashKey()),r):(i=typeof n,"function"==i||"object"==i&&null!==n?n.$$hashKey=i+":"+(t||su)():i+":"+n)}function di(n,i){if(i){var r=0;this.nextUid=function(){return++r}}t(n,this.put,this)}function ds(n){return Function.prototype.toString.call(n)+" "}function gs(n){var t=ds(n).replace(lv,"");return t.match(ov)||t.match(sv)}function kr(n,i){function v(n){return function(i,r){if(!o(i))return n(i,r);t(i,ao(n))}}function g(n,t){if(bi(n,"service"),(f(t)||c(t))&&(t=a.instantiate(t)),!t.$get)throw li("pget","Provider '{0}' must define $get factory method.",n);return e[n+s]=t}function tt(n,t){return function(){var i=u.invoke(t,this);if(r(i))throw li("undef","Provider '{0}' must return a value from $get factory method.",n);return i}}function w(n,t,i){return g(n,{$get:!1!==i?tt(n,t):t})}function nt(n,t){function r(i,r){if(n.hasOwnProperty(i)){if(n[i]===y)throw li("cdep","Circular dependency found: {0}",i+" <- "+l.join(" <- "));return n[i]}try{return l.unshift(i),n[i]=y,n[i]=t(i,r)}catch(r){throw n[i]===y&&delete n[i],r;}finally{l.shift()}}function u(n,t,u){for(var f,o=[],s=kr.$$annotate(n,i,u),e=0,h=s.length;e<h;e++){if(f=s[e],"string"!=typeof f)throw li("itkn","Incorrect injection token! Expected service name as string, got {0}",f);o.push(t&&t.hasOwnProperty(f)?t[f]:r(f,u))}return o}return{invoke:function(n,t,i,r){"string"==typeof i&&(r=i,i=null);var f,e=u(n,i,r);return c(n)&&(n=n[n.length-1]),f=n,dt<=11||"function"!=typeof f||!/^(?:class\b|constructor\()/.test(ds(f))?n.apply(t,e):(e.unshift(null),new(Function.prototype.bind.apply(n,e)))},instantiate:function(n,t,i){var f=c(n)?n[n.length-1]:n,r=u(n,t,i);return r.unshift(null),new(Function.prototype.bind.apply(f,r))},get:r,annotate:kr.$$annotate,has:function(t){return e.hasOwnProperty(t+s)||n.hasOwnProperty(t)}}}var d;i=!0===i;var y={},s="Provider",l=[],b=new di([],!0),e={$provide:{provider:v(g),factory:v(w),service:v(function(n,t){return w(n,["$injector",function(n){return n.instantiate(t)}])}),value:v(function(n,t){return w(n,ft(t),!1)}),constant:v(function(n,t){bi(n,"constant");e[n]=t;k[n]=t}),decorator:function(n,t){var i=a.get(n+s),r=i.$get;i.$get=function(){var n=u.invoke(r,i);return u.invoke(t,null,{$delegate:n})}}}},a=e.$injector=nt(e,function(n,t){throw ut.isString(t)&&l.push(t),li("unpr","Unknown provider: {0}",l.join(" <- "));}),k={},p=nt(k,function(n,t){var i=a.get(n+s,t);return u.invoke(i.$get,i,void 0,n)}),u=p;return e["$injector"+s]={$get:ft(p)},d=function n(i){lu(r(i)||c(i),"modulesToLoad","not an array");var u,e=[];return t(i,function(t){function i(n){for(var i,r,t=0,u=n.length;t<u;t++)i=n[t],r=a.get(i[0]),r[i[1]].apply(r,i[2])}if(!b.get(t)){b.put(t,!0);try{h(t)?(u=yf(t),e=e.concat(n(u.requires)).concat(u._runBlocks),i(u._invokeQueue),i(u._configBlocks)):f(t)||c(t)?e.push(a.invoke(t)):wi(t,"module")}catch(n){throw c(t)&&(t=t[t.length-1]),n.message&&n.stack&&-1==n.stack.indexOf(n.message)&&(n=n.message+"\n"+n.stack),li("modulerr","Failed to instantiate module {0} due to:\n{1}",t,n.stack||n.message||n);}}}),e}(n),(u=p.get("$injector")).strictDi=i,t(d,function(n){n&&u.invoke(n)}),u}function av(){var t=!0;this.disableAutoScrolling=function(){t=!1};this.$get=["$window","$location","$rootScope",function(i,r,u){function o(n){var t,r;n?(n.scrollIntoView(),t=function(){var n=s.yOffset,t;return f(n)?n=n():bf(n)?(t=n[0],n="fixed"!==i.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom):w(n)||(n=0),n}(),t&&(r=n.getBoundingClientRect().top,i.scrollBy(0,r-t))):i.scrollTo(0,0)}function s(n){var t,u,i;(n=h(n)?n:r.hash())?(t=c.getElementById(n))?o(t):(u=c.getElementsByName(n),i=null,Array.prototype.some.call(u,function(n){if("a"===vt(n))return i=n,!0}),(t=i)?o(t):"top"===n&&o(null)):o(null)}var c=i.document;return t&&u.$watch(function(){return r.hash()},function(t,i){var f,r;t===i&&""===t||(f=function(){u.$evalAsync(s)},"complete"===(r=r||n).document.readyState?r.setTimeout(f):e(r).on("load",f))}),s}]}function dr(n,t){return n||t?n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t:""}function ai(n){return o(n)?n:{}}function dv(n,i,u,f){function d(n){try{n.apply(null,cr(arguments,1))}finally{if(0==--y)for(;b.length;)try{b.pop()()}catch(n){u.error(n)}}}function tt(){v=null;it();rt()}function it(){ot(h=r(h=st())?null:h,k)&&(h=k);k=h}function rt(){a===o.url()&&l===h||(a=o.url(),l=h,t(g,function(n){n(o.url(),h)}))}var o=this,c=n.location,p=n.history,ut=n.setTimeout,ft=n.clearTimeout,w={},y,b,g,nt,k;o.isMock=!1;y=0;b=[];o.$$completeOutstandingRequest=d;o.$$incOutstandingRequestCount=function(){y++};o.notifyWhenNoOutstandingRequests=function(n){0===y?n():b.push(n)};var h,l,a=c.href,et=i.find("base"),v=null,st=f.history?function(){try{return p.state}catch(n){}}:s;it();l=h;o.url=function(t,i,u){var s,e;return(r(u)&&(u=null),c!==n.location&&(c=n.location),p!==n.history&&(p=n.history),t)?(s=l===u,a===t&&(!f.history||s))?o:(e=a&&vi(a)===vi(t),a=t,l=u,!f.history||e&&s?(e||(v=t),i?c.replace(t):e?c.hash=function(n){var t=n.indexOf("#");return-1===t?"":n.substr(t)}(t):c.href=t,c.href!==t&&(v=t)):(p[i?"replaceState":"pushState"](u,"",t),it(),l=h),v&&(v=t),o):v||c.href.replace(/%27/g,"'")};o.state=function(){return h};g=[];nt=!1;k=null;o.onUrlChange=function(t){return nt||(f.history&&e(n).on("popstate",tt),e(n).on("hashchange",tt),nt=!0),g.push(t),t};o.$$applicationDestroyed=function(){e(n).off("hashchange popstate",tt)};o.$$checkUrlChange=rt;o.baseHref=function(){var n=et.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};o.defer=function(n,t){var i;return y++,i=ut(function(){delete w[i];d(n)},t||0),w[i]=!0,i};o.defer.cancel=function(n){return!!w[n]&&(delete w[n],ft(n),d(s),!0)}}function gv(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new dv(n,r,t,i)}]}function ny(){this.$get=function(){function i(t,i){function p(n){n!=o&&(u?u==n&&(u=n.n):u=n,c(n.n,n.p),c(n,o),(o=n).n=null)}function c(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw l("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var s=0,a=v({},i,{id:t}),f=y(),h=i&&i.capacity||Number.MAX_VALUE,e=y(),o=null,u=null;return n[t]={put:function(n,t){if(!r(t))return h<Number.MAX_VALUE&&p(e[n]||(e[n]={key:n})),n in f||s++,f[n]=t,s>h&&this.remove(u.key),t},get:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;p(t)}return f[n]},remove:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;t==o&&(o=t.p);t==u&&(u=t.n);c(t.n,t.p);delete e[n]}n in f&&(delete f[n],s--)},removeAll:function(){f=y();s=0;e=y();o=u=null},destroy:function(){f=null;a=null;e=null;delete n[t]},info:function(){return v({},a,{size:s})}}}var n={};return i.info=function(){var i={};return t(n,function(n,t){i[t]=n.info()}),i},i.get=function(t){return n[t]},i}}function ty(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function nh(i,l){function tt(n,i,r){var f=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,u=y();return t(n,function(n,t){if(n in nt)u[t]=nt[n];else{var e=n.match(f);if(!e)throw d("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",i,t,n,r?"controller bindings definition":"isolate scope definition");u[t]={mode:e[1][0],collection:"*"===e[2],optional:"?"===e[3],attrName:e[4]||t};e[4]&&(nt[n]=u[t])}}),u}function ct(n,t){var i={isolateScope:null,bindToController:null},r,u;if(o(n.scope)&&(!0===n.bindToController?(i.bindToController=tt(n.scope,t,!0),i.isolateScope={}):i.isolateScope=tt(n.scope,t,!1)),o(n.bindToController)&&(i.bindToController=tt(n.bindToController,t,!0)),o(i.bindToController)){if(r=n.controller,u=n.controllerAs,!r)throw d("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!uh(r,u))throw d("noident","Cannot bind to controller without identifier for directive '{0}'.",t);}return i}var b={},g="Directive",ut=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,et=/(([\w\-]+)(?:\:([^;]+))?;?)/,st=function(n){for(var i={},r=n.split(","),t=0;t<r.length;t++)i[r[t]]=!0;return i}("ngSrc,ngSrcset,src,srcset"),it=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,ht=/^(on[a-z]+|formaction)$/,nt=y(),w,k;this.directive=function n(r,u){return bi(r,"directive"),h(r)?(!function(n){var t=n.charAt(0);if(!t||t!==a(t))throw d("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",n);if(n!==n.trim())throw d("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",n);}(r),lu(u,"directiveFactory"),b.hasOwnProperty(r)||(b[r]=[],i.factory(r+g,["$injector","$exceptionHandler",function(n,i){var u=[];return t(b[r],function(e,s){try{var h=n.invoke(e);f(h)?h={compile:ft(h)}:!h.compile&&h.link&&(h.compile=ft(h.link));h.priority=h.priority||0;h.index=s;h.name=h.name||r;h.require=function(n){var i=n.require||n.controller&&n.name;return!c(i)&&o(i)&&t(i,function(n,t){var r=n.match(it);n.substring(r[0].length)||(i[t]=r[0]+t)}),i}(h);h.restrict=h.restrict||"EA";h.$$moduleName=e.$$moduleName;u.push(h)}catch(n){i(n)}}),u}])),b[r].push(u)):t(r,ao(n)),this};this.component=function(n,i){function u(n){function u(t){return f(t)||c(t)?function(i,r){return n.invoke(t,this,{$element:i,$attrs:r})}:t}var o=i.template||i.templateUrl?i.template:"",e={controller:r,controllerAs:uh(i.controller)||i.controllerAs||"$ctrl",template:u(o),templateUrl:u(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return t(i,function(n,t){"$"===t.charAt(0)&&(e[t]=n)}),e}var r=i.controller||function(){};return t(i,function(n,t){"$"===t.charAt(0)&&(u[t]=n,f(r)&&(r[t]=n))}),u.$inject=["$injector"],this.directive(n,u)};this.aHrefSanitizationWhitelist=function(n){return u(n)?(l.aHrefSanitizationWhitelist(n),this):l.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(l.imgSrcSanitizationWhitelist(n),this):l.imgSrcSanitizationWhitelist()};w=!0;this.debugInfoEnabled=function(n){return u(n)?(w=n,this):w};k=10;this.onChangesTtl=function(n){return arguments.length?(k=n,this):k};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(i,l,nt,tt,ft,lt,wt,kt,gt,ni){function pr(){try{if(!--di)throw ii=void 0,d("infchng","{0} $onChanges() iterations reached. Aborting!\n",k);wt.$apply(function(){for(var t=[],n=0,i=ii.length;n<i;++n)try{ii[n]()}catch(n){t.push(n)}if(ii=void 0,t.length)throw t;})}finally{di++}}function ci(n,t){if(t)for(var u,f=Object.keys(t),i=0,r=f.length;i<r;i++)this[u=f[i]]=t[u];else this.$attr={};this.$$element=n}function li(n,t){try{n.addClass(t)}catch(n){}}function ti(t,i,r,u,f){var h,c,o;t instanceof e||(t=e(t));for(var l=/\S+/,s=0,a=t.length;s<a;s++)h=t[s],h.nodeType===ki&&h.nodeValue.match(l)&&as(h,t[s]=n.document.createElement("span"));return c=ai(t,i,t,r,u,f),ti.$$addScopeClass(t),o=null,function(n,i,r){var a;lu(n,"scope");f&&f.needsNewScope&&(n=n.$parent.$new());var v,h,u,s=(r=r||{}).parentBoundTranscludeFn,l=r.transcludeControllers,y=r.futureParentElement;if(s&&s.$$boundTransclude&&(s=s.$$boundTransclude),o||(h=(v=y)&&v[0],o=h&&"foreignobject"!==vt(h)&&rt.call(h).match(/SVG/)?"svg":"html"),u="html"!==o?e(pi(o,e("<div>").append(t).html())):i?hi.clone.call(t):t,l)for(a in l)u.data("$"+a+"Controller",l[a].instance);return ti.$$addScopeInfo(u,n),i&&i(u,n),c&&c(n,u,u,s),u}}function ai(n,t,i,r,u,f){for(var c,y,o,l,a,p,v,s=[],h=0;h<n.length;h++)c=new ci,(o=(y=vi(n[h],[],c,0===h?r:void 0,u)).length?fr(y,n[h],c,t,i,null,[],[],f):null)&&o.scope&&ti.$$addScopeClass(c.$$element),a=o&&o.terminal||!(l=n[h].childNodes)||!l.length?null:ai(l,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||a)&&(s.push(h,o,a),p=!0,v=v||o),f=null;return p?function(n,i,r,u){var o,h,c,l,f,y,p,a,w;if(v)for(w=i.length,a=new Array(w),f=0;f<s.length;f+=3)a[p=s[f]]=i[p];else a=i;for(f=0,y=s.length;f<y;)c=a[s[f++]],o=s[f++],h=s[f++],o?(o.scope?(l=n.$new(),ti.$$addScopeInfo(e(c),l)):l=n,o(h,l,c,r,o.transcludeOnThisElement?ui(n,o.transclude,u):!o.templateOnThisElement&&u?u:!u&&t?ui(n,t):null)):h&&h(n,c.childNodes,void 0,u)}:null}function ui(n,t,i){function u(r,u,f,e,o){return r||((r=n.$new(!1,o)).$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}var f=u.$$slots=y();for(var r in t.$$slots)f[r]=t.$$slots[r]?ui(n,t.$$slots[r],i):null;return u}function vi(n,t,i,r,u){var c,s,tt=n.nodeType,it=i.$attr,k,d,g;switch(tt){case bt:ei(t,pt(vt(n)),"E",r,u);for(var nt,f,e,a,v,y,w=n.attributes,b=0,rt=w&&w.length;b<rt;b++)k=!1,d=!1,f=(nt=w[b]).name,v=p(nt.value),a=pt(f),(y=wr.test(a))&&(f=f.replace(he,"").substr(8).replace(/_(.)/g,function(n,t){return t.toUpperCase()})),g=a.match(br),g&&kr(g[1])&&(k=f,d=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),it[e=pt(f.toLowerCase())]=f,!y&&i.hasOwnProperty(e)||(i[e]=v,ks(n,e)&&(i[e]=!0)),nu(n,t,v,e,y),ei(t,e,"A",r,u,k,d);if(o(s=n.className)&&(s=s.animVal),h(s)&&""!==s)for(;c=et.exec(s);)ei(t,e=pt(c[2]),"C",r,u)&&(i[e]=p(c[3])),s=s.substr(c.index+c[0].length);break;case ki:if(11===dt)for(;n.parentNode&&n.nextSibling&&n.nextSibling.nodeType===ki;)n.nodeValue=n.nodeValue+n.nextSibling.nodeValue,n.parentNode.removeChild(n.nextSibling);!function(n,t){var i=l(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent(),r=!!t.length;return r&&ti.$$addBindingClass(t),function(n,t){var u=t.parent();r||ti.$$addBindingClass(u);ti.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){t[0].nodeValue=n})}}})}(t,n.nodeValue);break;case vu:!function(n,t,i,r,u){var f,e;try{f=ut.exec(n.nodeValue);f&&(e=pt(f[1]),ei(t,e,"M",r,u)&&(i[e]=p(f[2])))}catch(n){}}(n,t,i,r,u)}return t.sort(gr),t}function ir(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw d("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,i);n.nodeType==bt&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(u>0)}else r.push(n);return e(r)}function ur(n,t,i){return function(r,u,f,e,o){return u=ir(u[0],t,i),n(r,u,f,e,o)}}function yi(n,t,i,r,u,f){var e;return n?ti(t,i,r,u,f):function(){return e||(e=ti(t,i,r,u,f),t=i=f=null),e.apply(this,arguments)}}function fr(n,i,u,s,h,l,a,w,b){function yr(n,t,i,r){n&&(i&&(n=ur(n,i,r)),n.require=k.require,n.directiveName=et,(g===k||k.$$isolateScope)&&(n=ar(n,{isolateScope:!0})),a.push(n));t&&(i&&(t=ur(t,i,r)),t.require=k.require,t.directiveName=et,(g===k||k.$$isolateScope)&&(t=ar(t,{isolateScope:!0})),w.push(t))}function ct(n,s,h,l,p){var ft,kt,k,tt,ht,it,ct,b,et,dt,wt,pt,at;for(wt in i===h?(et=u,b=u.$$element):et=new ci(b=e(h),u),ht=s,g?tt=s.$new(!0):ut&&(ht=s.$parent),p&&(ct=function(n,t,i,u){var e,f;if(er(n)||(u=i,i=t,t=n,n=void 0),ii&&(e=it),i||(i=ii?b.parent():b),!u)return p(n,t,e,i,at);if(f=p.$$slots[u],f)return f(n,t,e,i,at);if(r(f))throw d("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',u,yt(b));},ct.$$boundTransclude=p,ct.isSlotFilled=function(n){return!!p.$$slots[n]}),ot&&(it=function(n,t,i,r,u,f,e){var c=y(),l,h;for(l in r){var o=r[l],a={$scope:o===e||o.$$isolateScope?u:f,$element:n,$attrs:t,$transclude:i},s=o.controller;"@"==s&&(s=t[o.name]);h=lt(s,a,!0,o.controllerAs);c[o.name]=h;n.data("$"+o.name+"Controller",h.instance)}return c}(b,et,ct,ot,tt,s,g)),g&&(ti.$$addScopeInfo(b,tt,!0,!(st&&(st===g||st===g.$$originalDirective))),ti.$$addScopeClass(b,!0),tt.$$isolateBindings=g.$$isolateBindings,(dt=wi(s,et,tt,tt.$$isolateBindings,g)).removeWatches&&tt.$on("$destroy",dt.removeWatches)),it){var vt=ot[wt],rt=it[wt],bt=vt.$$bindings.bindToController;rt.bindingInfo=rt.identifier&&bt?wi(ht,et,rt.instance,bt,vt):{};pt=rt();pt!==rt.instance&&(rt.instance=pt,b.data("$"+vt.name+"Controller",pt),rt.bindingInfo.removeWatches&&rt.bindingInfo.removeWatches(),rt.bindingInfo=wi(ht,et,rt.instance,bt,vt))}for(t(ot,function(n,t){var i=n.require;n.bindToController&&!c(i)&&o(i)&&v(it[t].instance,fi(t,i,b,it))}),t(it,function(n){var t=n.instance;if(f(t.$onChanges))try{t.$onChanges(n.bindingInfo.initialChanges)}catch(n){nt(n)}if(f(t.$onInit))try{t.$onInit()}catch(n){nt(n)}f(t.$doCheck)&&(ht.$watch(function(){t.$doCheck()}),t.$doCheck());f(t.$onDestroy)&&ht.$on("$destroy",function(){t.$onDestroy()})}),ft=0,kt=a.length;ft<kt;ft++)vr(k=a[ft],k.isolateScope?tt:s,b,et,k.require&&fi(k.directiveName,k.require,b,it),ct);for(at=s,g&&(g.template||null===g.templateUrl)&&(at=tt),n&&n(at,h.childNodes,void 0,p),ft=w.length-1;ft>=0;ft--)vr(k=w[ft],k.isolateScope?tt:s,b,et,k.require&&fi(k.directiveName,k.require,b,it),ct);t(it,function(n){var t=n.instance;f(t.$postLink)&&t.$postLink()})}var gt,oi,wt,rr,ft,gi,hi,li,ai;b=b||{};for(var k,et,it,at,rt,kt=-Number.MAX_VALUE,ut=b.newScopeDirective,ot=b.controllerDirectives,g=b.newIsolateScopeDirective,st=b.templateDirective,ni=b.nonTlbTranscludeDirective,bi=!1,ki=!1,ii=b.hasElementTranscludeDirective,tt=u.$$element=e(i),ui=l,dt=s,nr=!1,ei=!1,ht=0,di=n.length;ht<di;ht++){if(gt=(k=n[ht]).$$start,oi=k.$$end,gt&&(tt=ir(i,gt,oi)),it=void 0,kt>k.priority)break;if((rt=k.scope)&&(k.templateUrl||(o(rt)?(ri("new/isolated scope",g||ut,k,tt),g=k):ri("new/isolated scope",g,k,tt)),ut=ut||k),et=k.name,!nr&&(k.replace&&(k.templateUrl||k.template)||k.transclude&&!k.$$tlb)){for(rr=ht+1;wt=n[rr++];)if(wt.transclude&&!wt.$$tlb||wt.replace&&(wt.templateUrl||wt.template)){ei=!0;break}nr=!0}if(!k.templateUrl&&k.controller&&(rt=k.controller,ot=ot||y(),ri("'"+et+"' controller",ot[et],k,tt),ot[et]=k),rt=k.transclude)if(bi=!0,k.$$tlb||(ri("transclusion",ni,k,tt),ni=k),"element"==rt)ii=!0,kt=k.priority,it=tt,tt=u.$$element=e(ti.$$createComment(et,u[et])),i=tt[0],si(h,cr(it),i),it[0].$$parentNode=it[0].parentNode,dt=yi(ei,it,s,kt,ui&&ui.name,{nonTlbTranscludeDirective:ni});else{if(ft=y(),it=e(re(i)).contents(),o(rt)){it=[];gi=y();hi=y();for(li in t(rt,function(n,t){var i="?"===n.charAt(0);n=i?n.substring(1):n;gi[n]=t;ft[t]=null;hi[t]=i}),t(tt.contents(),function(n){var t=gi[pt(vt(n))];t?(hi[t]=!0,ft[t]=ft[t]||[],ft[t].push(n)):it.push(n)}),t(hi,function(n,t){if(!n)throw d("reqslot","Required transclusion slot `{0}` was not filled.",t);}),ft)ft[li]&&(ft[li]=yi(ei,ft[li],s))}tt.empty();(dt=yi(ei,it,s,void 0,void 0,{needsNewScope:k.$$isolateScope||k.$$newScope})).$$slots=ft}if(k.template)if(ki=!0,ri("template",st,k,tt),st=k,rt=f(k.template)?k.template(tt,u):k.template,rt=tr(rt),k.replace){if(ui=k,it=ie(rt)?[]:ih(pi(k.templateNamespace,p(rt))),i=it[0],1!=it.length||i.nodeType!==bt)throw d("tplrt","Template for directive '{0}' must have exactly one root element. {1}",et,"");si(h,tt,i);var fr={$attr:{}},or=vi(i,[],fr),pr=n.splice(ht+1,n.length-(ht+1));(g||ut)&&sr(or,g,ut);n=n.concat(or).concat(pr);hr(u,fr);di=n.length}else tt.html(rt);if(k.templateUrl)ki=!0,ri("template",st,k,tt),st=k,k.replace&&(ui=k),ct=dr(n.splice(ht,n.length-ht),tt,u,h,bi&&dt,a,w,{controllerDirectives:ot,newScopeDirective:ut!==k&&ut,newIsolateScopeDirective:g,templateDirective:st,nonTlbTranscludeDirective:ni}),di=n.length;else if(k.compile)try{at=k.compile(tt,u,dt);ai=k.$$originalDirective||k;f(at)?yr(null,lr(ai,at),gt,oi):at&&yr(lr(ai,at.pre),lr(ai,at.post),gt,oi)}catch(n){nt(n,yt(tt))}k.terminal&&(ct.terminal=!0,kt=Math.max(kt,k.priority))}return ct.scope=ut&&!0===ut.scope,ct.transcludeOnThisElement=bi,ct.templateOnThisElement=ki,ct.transclude=dt,b.hasElementTranscludeDirective=ii,ct}function fi(n,i,r,u){var f,a,e,y;if(h(i)){var s=i.match(it),l=i.substring(s[0].length),v=s[1]||s[3],p="?"===s[2];if(("^^"===v?r=r.parent():f=(f=u&&u[l])&&f.instance,f)||(a="$"+l+"Controller",f=v?r.inheritedData(a):r.data(a)),!f&&!p)throw d("ctreq","Controller '{0}', required by directive '{1}', can't be found!",l,n);}else if(c(i))for(f=[],e=0,y=i.length;e<y;e++)f[e]=fi(n,i[e],r,u);else o(i)&&(f={},t(i,function(t,i){f[i]=fi(n,t,r,u)}));return f||null}function sr(n,t,i){for(var r=0,u=n.length;r<u;r++)n[r]=wf(n[r],{$$isolateScope:t,$$newScope:i})}function ei(n,t,u,f,e,s,h){var l,v;if(t===e)return null;if(l=null,b.hasOwnProperty(t))for(var c,y=i.get(t+g),a=0,p=y.length;a<p;a++)try{(c=y[a],(r(f)||f>c.priority)&&-1!=c.restrict.indexOf(u))&&((s&&(c=wf(c,{$$start:s,$$end:h})),c.$$bindings)||(v=c.$$bindings=ct(c,c.name),o(v.isolateScope)&&(c.$$isolateBindings=v.isolateScope)),n.push(c),l=c)}catch(n){nt(n)}return l}function kr(n){if(b.hasOwnProperty(n))for(var r=i.get(n+g),t=0,u=r.length;t<u;t++)if(r[t].multiElement)return!0;return!1}function hr(n,i){var r=i.$attr,u=n.$attr;n.$$element;t(n,function(t,u){"$"!=u.charAt(0)&&(i[u]&&i[u]!==t&&(t+=("style"===u?";":" ")+i[u]),n.$set(u,t,!0,r[u]))});t(i,function(t,i){n.hasOwnProperty(i)||"$"===i.charAt(0)||(n[i]=t,"class"!==i&&"style"!==i&&(u[i]=r[i]))})}function dr(n,i,r,u,s,h,c,l){var y,w,v=[],b=i[0],a=n.shift(),g=wf(a,{templateUrl:null,transclude:null,replace:null,$$originalDirective:a}),k=f(a.templateUrl)?a.templateUrl(i,r):a.templateUrl,nt=a.templateNamespace;return i.empty(),tt(k).then(function(f){var tt,rt,ut,st,ft,ct;if(f=tr(f),a.replace){if(ut=ie(f)?[]:ih(pi(nt,p(f))),tt=ut[0],1!=ut.length||tt.nodeType!==bt)throw d("tplrt","Template for directive '{0}' must have exactly one root element. {1}",a.name,k);rt={$attr:{}};si(u,i,tt);ft=vi(tt,[],rt);o(a.scope)&&sr(ft,!0);n=ft.concat(n);hr(r,rt)}else tt=b,i.html(f);for(n.unshift(g),y=fr(n,tt,r,s,i,a,h,c,l),t(u,function(n,t){n==tt&&(u[t]=i[0])}),w=ai(i[0].childNodes,s);v.length;){var et=v.shift(),ot=v.shift(),lt=v.shift(),ht=v.shift(),it=i[0];et.$$destroyed||(ot!==b&&(ct=ot.className,l.hasElementTranscludeDirective&&a.replace||(it=re(tt)),si(lt,e(ot),it),li(e(it),ct)),st=y.transcludeOnThisElement?ui(et,y.transclude,ht):ht,y(w,et,it,u,st))}v=null}),function(n,t,i,r,u){var f=u;t.$$destroyed||(v?v.push(t,i,r,f):(y.transcludeOnThisElement&&(f=ui(t,y.transclude,u)),y(w,t,i,r,f)))}}function gr(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function ri(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw d("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,yt(r));}function pi(t,i){switch(t=a(t||"html")){case"svg":case"math":var r=n.document.createElement("div");return r.innerHTML="<"+t+">"+i+"<\/"+t+">",r.childNodes[0].childNodes;default:return i}}function nu(n,t,i,r,u){var e=function(n,t){if("srcdoc"==t)return kt.HTML;var i=vt(n);if("xlinkHref"==t||"form"==i&&"action"==t||"img"!=i&&("src"==t||"ngSrc"==t))return kt.RESOURCE_URL}(n,r),f;if(u=st[r]||u,f=l(i,!0,e,u),f){if("multiple"===r&&"select"===vt(n))throw d("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",yt(n));t.push({priority:100,compile:function(){return{pre:function(n,t,o){var h=o.$$observers||(o.$$observers=y()),s;if(ht.test(r))throw d("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");s=o[r];s!==i&&(f=s&&l(s,!0,e,u),i=s);f&&(o[r]=f(n),(h[r]||(h[r]=[])).$$inter=!0,(o.$$observers&&o.$$observers[r].$$scope||n).$watch(f,function(n,t){"class"===r&&n!=t?o.$updateClass(n,t):o.$set(r,n)}))}}}})}}function si(t,i,r){var u,l,f=i[0],s=i.length,a=f.parentNode,c;if(t)for(u=0,l=t.length;u<l;u++)if(t[u]==f){t[u++]=r;for(var o=u,h=o+s-1,v=t.length;o<v;o++,h++)h<v?t[o]=t[h]:delete t[o];t.length-=s-1;t.context===f&&(t.context=r);break}for(a&&a.replaceChild(r,f),c=n.document.createDocumentFragment(),u=0;u<s;u++)c.appendChild(i[u]);for(e.hasData(f)&&(e.data(r,e.data(f)),e(f).off("$destroy")),e.cleanData(c.querySelectorAll("*")),u=1;u<s;u++)delete i[u];i[0]=r;i.length=1}function ar(n,t){return v(function(){return n.apply(null,arguments)},n,t)}function vr(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(n){nt(n,yt(i))}}function wi(n,i,r,u,e){function v(t,i,u){f(r.$onChanges)&&i!==u&&(ii||(n.$$postDigest(pr),ii=[]),o||(o={},ii.push(y)),o[t]&&(u=o[t].previousValue),o[t]=new uf(u,i))}function y(){r.$onChanges(o);o=void 0}var o,c=[],a={};return t(u,function(t,u){var y,o,nt,k,w,f=t.attrName,p=t.optional,b,g;switch(t.mode){case"@":p||at.call(i,f)||(r[u]=i[f]=void 0);i.$observe(f,function(n){if(h(n)||oi(n)){var t=r[u];v(u,n,t);r[u]=n}});i.$$observers[f].$$scope=n;h(y=i[f])?r[u]=l(y)(n):oi(y)&&(r[u]=y);a[u]=new uf(rf,r[u]);break;case"=":if(!at.call(i,f)){if(p)break;i[f]=void 0}if(p&&!i[f])break;o=ft(i[f]);k=o.literal?ot:function(n,t){return n===t||n!=n&&t!=t};nt=o.assign||function(){throw y=r[u]=o(n),d("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",i[f],f,e.name);};y=r[u]=o(n);b=function(t){return k(t,r[u])||(k(t,y)?nt(n,t=r[u]):r[u]=t),y=t};b.$stateful=!0;w=t.collection?n.$watchCollection(i[f],b):n.$watch(ft(i[f],b),null,o.literal);c.push(w);break;case"<":if(!at.call(i,f)){if(p)break;i[f]=void 0}if(p&&!i[f])break;o=ft(i[f]);g=r[u]=o(n);a[u]=new uf(rf,r[u]);w=n.$watch(o,function(n,t){if(t===n){if(t===g)return;t=g}v(u,n,t);r[u]=n},o.literal);c.push(w);break;case"&":if((o=i.hasOwnProperty(f)?ft(i[f]):s)===s&&p)break;r[u]=function(t){return o(n,t)}}}),{initialChanges:a,removeWatches:c.length&&function(){for(var n=0,t=c.length;n<t;++n)c[n]()}}}var ii,yr=/^\w/,bi=n.document.createElement("div"),di=k;ci.prototype={$normalize:pt,$addClass:function(n){n&&n.length>0&&gt.addClass(this.$$element,n)},$removeClass:function(n){n&&n.length>0&&gt.removeClass(this.$$element,n)},$updateClass:function(n,t){var r=th(n,t),i;r&&r.length&&gt.addClass(this.$$element,r);i=th(t,n);i&&i.length&&gt.removeClass(this.$$element,i)},$set:function(n,i,f,e){var l,w=ks(this.$$element[0],n),a=ee[n],b=n,v,c,y;if(w?(this.$$element.prop(n,i),e=w):a&&(this[a]=i,b=a),this[n]=i,e?this.$attr[n]=e:(e=this.$attr[n])||(this.$attr[n]=e=fs(n,"-")),"a"===(l=vt(this.$$element))&&("href"===n||"xlinkHref"===n)||"img"===l&&"src"===n)this[n]=i=ni(i,"src"===n);else if("img"===l&&"srcset"===n&&u(i)){for(var o="",k=p(i),d=/\s/.test(k)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=k.split(d),g=Math.floor(s.length/2),h=0;h<g;h++)v=2*h,o+=ni(p(s[v]),!0),o+=" "+p(s[v+1]);c=p(s[2*h]).split(/\s/);o+=ni(p(c[0]),!0);2===c.length&&(o+=" "+p(c[1]));this[n]=i=o}!1!==f&&(null===i||r(i)?this.$$element.removeAttr(e):yr.test(e)?this.$$element.attr(e,i):function(n,t,i){bi.innerHTML="<span "+t+">";var u=bi.firstChild.attributes,r=u[0];u.removeNamedItem(r.name);r.value=i;n.attributes.setNamedItem(r)}(this.$$element[0],e,i));y=this.$$observers;y&&t(y[b],function(n){try{n(i)}catch(n){nt(n)}})},$observe:function(n,t){var i=this,f=i.$$observers||(i.$$observers=y()),u=f[n]||(f[n]=[]);return u.push(t),wt.$evalAsync(function(){u.$$inter||!i.hasOwnProperty(n)||r(i[n])||t(i[n])}),function(){or(u,t)}}};var gi=l.startSymbol(),nr=l.endSymbol(),tr="{{"==gi&&"}}"==nr?rr:function(n){return n.replace(/\{\{/g,gi).replace(/}}/g,nr)},wr=/^ngAttr[A-Z]/,br=/^(.+)Start$/;return ti.$$addBindingInfo=w?function(n,t){var i=n.data("$binding")||[];c(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:s,ti.$$addBindingClass=w?function(n){li(n,"ng-binding")}:s,ti.$$addScopeInfo=w?function(n,t,i,r){var u=i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";n.data(u,t)}:s,ti.$$addScopeClass=w?function(n,t){li(n,t?"ng-isolate-scope":"ng-scope")}:s,ti.$$createComment=function(t,i){var r="";return w&&(r=" "+(t||"")+": ",i&&(r+=i+" ")),n.document.createComment(r)},ti}]}function uf(n,t){this.previousValue=n;this.currentValue=t}function pt(n){return pr(n.replace(he,""))}function th(n,t){var u="",e=n.split(/\s+/),o=t.split(/\s+/),i,f,r;n:for(i=0;i<e.length;i++){for(f=e[i],r=0;r<o.length;r++)if(f==o[r])continue n;u+=(u.length>0?" ":"")+f}return u}function ih(n){var t=(n=e(n)).length;if(t<=1)return n;for(;t--;)n[t].nodeType===vu&&ha.call(n,t,1);return n}function uh(n,t){if(t&&h(t))return t;if(h(n)){var i=ce.exec(n);if(i)return i[3]}}function iy(){var n={},t=!1;this.has=function(t){return n.hasOwnProperty(t)};this.register=function(t,i){bi(t,"controller");o(t)?v(n,t):n[t]=i};this.allowGlobals=function(){t=!0};this.$get=["$injector","$window",function(i,r){function u(n,t,i,r){if(!n||!o(n.$scope))throw l("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);n.$scope[t]=i}return function(e,s,l,a){var y,b,p,w,k;if(l=!0===l,a&&h(a)&&(w=a),h(e)){if(!(b=e.match(ce)))throw rh("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);p=b[1];w=w||b[3];wi(e=n.hasOwnProperty(p)?n[p]:es(s.$scope,p,!0)||(t?es(r,p,!0):void 0),p,!0)}return l?(k=(c(e)?e[e.length-1]:e).prototype,y=Object.create(k||null),w&&u(s,w,y,p||e.name),v(function(){var n=i.invoke(e,y,s,p);return n!==y&&(o(n)||f(n))&&(y=n,w&&u(s,w,y,p||e.name)),y},{instance:y,identifier:w})):(y=i.instantiate(e,s,p),w&&u(s,w,y,p||e.name),y)}}]}function ry(){this.$get=["$window",function(n){return e(n.document)}]}function uy(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function ae(n){return o(n)?et(n)?n.toISOString():ar(n):n}function cy(){this.$get=function(){return function(n){if(!n)return"";var i=[];return lo(n,function(n,u){null===n||r(n)||(c(n)?t(n,function(n){i.push(ct(u)+"="+ct(ae(n)))}):i.push(ct(u)+"="+ct(ae(n))))}),i.join("&")}}}function ly(){this.$get=function(){return function(n){if(!n)return"";var i=[];return function n(u,f,e){null===u||r(u)||(c(u)?t(u,function(t,i){n(t,f+"["+(o(t)?i:"")+"]")}):o(u)&&!et(u)?lo(u,function(t,i){n(t,f+(e?"":"[")+i+(e?"":"]"))}):i.push(ct(f)+"="+ct(ae(u))))}(n,"",!0),i.join("&")}}}function ve(n,t){var i,r,u,f;return h(n)&&(i=n.replace(sy,"").trim(),i&&(r=t("Content-Type"),(r&&0===r.indexOf(fh)||(f=(u=i).match(ey))&&oy[f[0]].test(u))&&(n=ko(i)))),n}function oh(n){function u(n,t){n&&(i[n]=i[n]?i[n]+", "+t:t)}var r,i=y();return h(n)?t(n.split("\n"),function(n){r=n.indexOf(":");u(a(p(n.substr(0,r))),p(n.substr(r+1)))}):o(n)&&t(n,function(n,t){u(a(t),p(n))}),i}function sh(n){var t;return function(i){if(t||(t=oh(n)),i){var r=t[a(i)];return void 0===r&&(r=null),r}return t}}function hh(n,i,r,u){return f(u)?u(n,i,r):(t(u,function(t){n=t(n,i,r)}),n)}function ye(n){return 200<=n&&n<300}function ay(){var n=this.defaults={transformResponse:[ve],transformRequest:[function(n){return!o(n)||(t=n,"[object File]"===rt.call(t))||function(n){return"[object Blob]"===rt.call(n)}(n)||function(n){return"[object FormData]"===rt.call(n)}(n)?n:ar(n);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:st(le),put:st(le),patch:st(le)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},i=!1,e,s;this.useApplyAsync=function(n){return u(n)?(i=!!n,this):i};e=!0;this.useLegacyPromiseExtensions=function(n){return u(n)?(e=!!n,this):e};s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(y,p,w,b,k,d){function g(s){function ft(n,t){for(var u,f,i=0,r=t.length;i<r;)u=t[i++],f=t[i++],n=n.then(u,f);return t.length=0,n}function et(n){var t=v({},n);return t.data=hh(n.data,n.headers,n.status,it.transformResponse),ye(n.status)?t:k.reject(t)}var it;if(!o(s))throw l("$http")("badreq","Http request configuration must be an object.  Received: {0}",s);if(!h(s.url))throw l("$http")("badreq","Http request configuration url must be a string.  Received: {0}",s.url);it=v({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer},s);it.headers=function(i){var u,o,s,r=n.headers,e=v({},i.headers);r=v({},r.common,r[a(i.method)]);n:for(u in r){for(s in o=a(u),e)if(a(s)===o)continue n;e[u]=r[u]}return function(n,i){var u,r={};return t(n,function(n,t){f(n)?null!=(u=n(i))&&(r[t]=u):r[t]=n}),r}(e,st(i))}(s);it.method=ir(it.method);it.paramSerializer=h(it.paramSerializer)?d.get(it.paramSerializer):it.paramSerializer;var rt=[],ut=[],w=k.when(it);return t(nt,function(n){(n.request||n.requestError)&&rt.unshift(n.request,n.requestError);(n.response||n.responseError)&&ut.push(n.response,n.responseError)}),w=(w=ft(w,rt)).then(function(f){var e=f.headers,s=hh(f.data,sh(e),void 0,f.transformRequest);return r(s)&&t(e,function(n,t){"content-type"===a(t)&&delete e[t]}),r(f.withCredentials)&&!r(n.withCredentials)&&(f.withCredentials=n.withCredentials),function(f,e){function it(n){if(n){var r={};return t(n,function(n,t){r[t]=function(t){function r(){n(t)}i?b.$applyAsync(r):b.$$phase?r():b.$apply(r)}}),r}}function ft(n,t,r,u){function f(){a(t,n,r,u)}h&&(ye(n)?h.put(l,[n,t,oh(r),u]):h.remove(l));i?b.$applyAsync(f):(f(),b.$$phase||b.$apply())}function a(n,t,i,r){(ye(t=t>=-1?t:0)?v.resolve:v.reject)({data:n,status:t,headers:sh(i),config:f,statusText:r})}function rt(n){a(n.data,n.status,st(n.headers()),n.statusText)}function ut(){var n=g.pendingRequests.indexOf(f);-1!==n&&g.pendingRequests.splice(n,1)}var h,s,v=k.defer(),w=v.promise,nt=f.headers,l=function(n,t){return t.length>0&&(n+=(-1==n.indexOf("?")?"?":"&")+t),n}(f.url,f.paramSerializer(f.params)),d;return g.pendingRequests.push(f),w.then(ut,ut),!f.cache&&!n.cache||!1===f.cache||"GET"!==f.method&&"JSONP"!==f.method||(h=o(f.cache)?f.cache:o(n.cache)?n.cache:tt),h&&(u(s=h.get(l))?hu(s)?s.then(rt,rt):c(s)?a(s[1],s[0],st(s[2]),s[3]):a(s,200,{},"OK"):h.put(l,w)),r(s)&&(d=lc(f.url)?p()[f.xsrfCookieName||n.xsrfCookieName]:void 0,d&&(nt[f.xsrfHeaderName||n.xsrfHeaderName]=d),y(f.method,l,e,ft,nt,f.timeout,f.withCredentials,f.responseType,it(f.eventHandlers),it(f.uploadEventHandlers))),w}(f,s).then(et,et)}),w=ft(w,ut),e?(w.success=function(n){return wi(n,"fn"),w.then(function(t){n(t.data,t.status,t.headers,it)}),w},w.error=function(n){return wi(n,"fn"),w.then(null,function(t){n(t.data,t.status,t.headers,it)}),w}):(w.success=eh("success"),w.error=eh("error")),w}var tt=w("$http"),nt;return n.paramSerializer=h(n.paramSerializer)?d.get(n.paramSerializer):n.paramSerializer,nt=[],t(s,function(n){nt.unshift(h(n)?d.get(n):d.invoke(n))}),g.pendingRequests=[],function(){t(arguments,function(n){g[n]=function(t,i){return g(v({},i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){t(arguments,function(n){g[n]=function(t,i,r){return g(v({},r||{},{method:n,url:t,data:i}))}})}("post","put","patch"),g.defaults=n,g}]}function vy(){this.$get=function(){return function(){return new n.XMLHttpRequest}}}function yy(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(n,i,f,e){return function(n,i,f,e,o){function h(n,t,i){n=n.replace("JSON_CALLBACK",t);var r=o.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){yr(r,"load",u);yr(r,"error",u);o.body.removeChild(r);r=null;var f=-1,s="unknown";n&&("load"!==n.type||e.wasCalled(t)||(n={type:"error"}),s=n.type,f="error"===n.type?404:200);i&&i(f,s)},yu(r,"load",u),yu(r,"error",u),o.body.appendChild(r),u}return function(o,c,l,v,y,p,w,b,k,d){function ft(){tt&&tt();g&&g.abort()}function ut(t,i,r,e,o){u(rt)&&f.cancel(rt);tt=g=null;t(i,r,e,o);n.$$completeOutstandingRequest(s)}var nt,tt,g,it,rt;if(n.$$incOutstandingRequestCount(),c=c||n.url(),"jsonp"===a(o))nt=e.createCallback(c),tt=h(c,nt,function(n,t){var i=200===n&&e.getResponse(nt);ut(v,n,i,"",t);e.removeCallback(nt)});else{if(g=i(o,c),g.open(o,c,!0),t(y,function(n,t){u(n)&&g.setRequestHeader(t,n)}),g.onload=function(){var i=g.statusText||"",t="response"in g?g.response:g.responseText,n=1223===g.status?204:g.status;0===n&&(n=t?200:"file"==fi(c).protocol?404:0);ut(v,n,t,g.getAllResponseHeaders(),i)},it=function(){ut(v,-1,null,null,"")},g.onerror=it,g.onabort=it,t(k,function(n,t){g.addEventListener(t,n)}),t(d,function(n,t){g.upload.addEventListener(t,n)}),w&&(g.withCredentials=!0),b)try{g.responseType=b}catch(n){if("json"!==b)throw n;}g.send(r(l)?null:l)}p>0?rt=f(ft,p):hu(p)&&p.then(ft)}}(n,e,n.defer,i,f[0])}]}function py(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,e,o){function l(n){return"\\\\\\"+n}function s(i){return i.replace(y,n).replace(p,t)}function w(n,t,i,r){var u;return u=n.$watch(function(n){return u(),r(n)},t,i)}function h(h,l,y,p){function ht(n){try{return n=st(n),p&&!u(n)?n:function(n){if(null==n)return"";switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=ar(n)}return n}(n)}catch(n){e(ri.interr(h,n))}}var nt,ut,st;if(!h.length||-1===h.indexOf(n))return l||((nt=ft(s(h))).exp=h,nt.expressions=[],nt.$$watchDelegate=w),nt;p=!!p;for(var d,tt,it,b=0,g=[],rt=[],et=h.length,k=[],ot=[];b<et;){if(-1==(d=h.indexOf(n,b))||-1==(tt=h.indexOf(t,d+c))){b!==et&&k.push(s(h.substring(b)));break}b!==d&&k.push(s(h.substring(b,d)));it=h.substring(d+c,tt);g.push(it);rt.push(i(it,ht));b=tt+a;ot.push(k.length);k.push("")}if(y&&k.length>1&&ri.throwNoconcat(h),!l||g.length)return ut=function(n){for(var t=0,i=g.length;t<i;t++){if(p&&r(n[t]))return;k[ot[t]]=n[t]}return k.join("")},st=function(n){return y?o.getTrusted(y,n):o.valueOf(n)},v(function(n){var t=0,i=g.length,r=new Array(i);try{for(;t<i;t++)r[t]=rt[t](n);return ut(r)}catch(n){e(ri.interr(h,n))}},{exp:h,expressions:g,$$watchDelegate:function(n,t){var i;return n.$watchGroup(rt,function(r,u){var e=ut(r);f(t)&&t.call(this,e,r!==u?i:e,n);i=e})}})}var c=n.length,a=t.length,y=new RegExp(n.replace(/./g,l),"g"),p=new RegExp(t.replace(/./g,l),"g");return h.startSymbol=function(){return n},h.endSymbol=function(){return t},h}]}function wy(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(n,t,i,r,f){function o(o,s,h,c){function w(){p?o.apply(null,b):o(a)}var p=arguments.length>4,b=p?cr(arguments,4):[],k=t.setInterval,d=t.clearInterval,a=0,y=u(c)&&!c,v=(y?r:i).defer(),l=v.promise;return h=u(h)?h:0,l.$$intervalId=k(function(){y?f.defer(w):n.$evalAsync(w);v.notify(a++);h>0&&a>=h&&(v.resolve(a),d(l.$$intervalId),delete e[l.$$intervalId]);y||n.$apply()},s),e[l.$$intervalId]=v,l}var e={};return o.cancel=function(n){return!(!n||!(n.$$intervalId in e))&&(e[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete e[n.$$intervalId],!0)},o}]}function pe(n){for(var t=n.split("/"),i=t.length;i--;)t[i]=cu(t[i]);return t.join("/")}function ch(n,t){var i=fi(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=tt(i.port)||dy[i.protocol]||null}function lh(n,t){var r="/"!==n.charAt(0),i;r&&(n="/"+n);i=fi(n);t.$$path=decodeURIComponent(r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname);t.$$search=is(i.search);t.$$hash=decodeURIComponent(i.hash);t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function ah(n,t){return 0===n.lastIndexOf(t,0)}function wt(n,t){if(ah(t,n))return t.substr(n.length)}function vi(n){var t=n.indexOf("#");return-1==t?n:n.substr(0,t)}function gr(n){return n.replace(/(#.+)|#$/,"$1")}function we(n,t,i){this.$$html5=!0;i=i||"";ch(n,this);this.$$parse=function(n){var i=wt(t,n);if(!h(i))throw ff("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',n,t);lh(i,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=df(this.$$search),i=this.$$hash?"#"+cu(this.$$hash):"";this.$$url=pe(this.$$path)+(n?"?"+n:"")+i;this.$$absUrl=t+this.$$url.substr(1)};this.$$parseLinkUrl=function(r,f){return f&&"#"===f[0]?(this.hash(f.slice(1)),!0):(u(e=wt(n,r))?(s=e,o=u(e=wt(i,e))?t+(wt("/",e)||e):n+s):u(e=wt(t,r))?o=t+e:t==r+"/"&&(o=t),o&&this.$$parse(o),!!o);var e,s,o}}function be(n,t,i){ch(n,this);this.$$parse=function(u){var f,e=wt(n,u)||wt(t,u);r(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",r(e)&&(n=u,this.replace())):r(f=wt(i,e))&&(f=e);lh(f,this);this.$$path=function(n,t,i){var r,u=/^\/[A-Z]:(\/.*)/;return(ah(t,i)&&(t=t.replace(i,"")),u.exec(t))?n:(r=u.exec(n))?r[1]:n}(this.$$path,f,n);this.$$compose()};this.$$compose=function(){var t=df(this.$$search),r=this.$$hash?"#"+cu(this.$$hash):"";this.$$url=pe(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+(this.$$url?i+this.$$url:"")};this.$$parseLinkUrl=function(t){return vi(n)==vi(t)&&(this.$$parse(t),!0)}}function vh(n,t,i){this.$$html5=!0;be.apply(this,arguments);this.$$parseLinkUrl=function(r,u){return u&&"#"===u[0]?(this.hash(u.slice(1)),!0):(n==vi(r)?f=r:(e=wt(t,r))?f=n+i+e:t===r+"/"&&(f=t),f&&this.$$parse(f),!!f);var f,e};this.$$compose=function(){var t=df(this.$$search),r=this.$$hash?"#"+cu(this.$$hash):"";this.$$url=pe(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+i+this.$$url}}function ef(n){return function(){return this[n]}}function ph(n,t){return function(i){return r(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function gy(){var t="",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return u(n)?(t=n,this):t};this.html5Mode=function(t){return oi(t)?(n.enabled=t,this):o(t)?(oi(t.enabled)&&(n.enabled=t.enabled),oi(t.requireBase)&&(n.requireBase=t.requireBase),oi(t.rewriteLinks)&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,u,f,s,h){function d(n,t,i){var r=c.url(),f=c.$$state;try{u.url(n,t,i);c.$$state=u.state()}catch(n){throw c.url(r),c.$$state=f,n;}}function g(n,t){i.$broadcast("$locationChangeSuccess",c.absUrl(),n,c.$$state,t)}var c,y,a,p,b=u.baseHref(),l=u.url(),w,k,v;if(n.enabled){if(!b&&n.requireBase)throw ff("nobase","$location in HTML5 mode requires a <base> tag to be present!");a=(p=l).substring(0,p.indexOf("/",p.indexOf("//")+2))+(b||"/");y=f.history?we:vh}else a=vi(l),y=be;return w=function(n){return n.substr(0,vi(n).lastIndexOf("/")+1)}(a),(c=new y(a,w,"#"+t)).$$parseLinkUrl(l,l),c.$$state=u.state(),k=/^\s*(javascript|mailto):/i,s.on("click",function(t){var r,f,l;if(n.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(r=e(t.target);"a"!==vt(r[0]);)if(r[0]===s[0]||!(r=r.parent())[0])return;f=r.prop("href");l=r.attr("href")||r.attr("xlink:href");o(f)&&"[object SVGAnimatedString]"===f.toString()&&(f=fi(f.animVal).href);k.test(f)||!f||r.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(f,l)&&(t.preventDefault(),c.absUrl()!=u.url()&&(i.$apply(),h.angular["ff-684208-preventDefault"]=!0))}}),gr(c.absUrl())!=gr(l)&&u.url(c.absUrl(),!0),v=!0,u.onUrlChange(function(n,t){r(wt(w,n))?h.location.href=n:(i.$evalAsync(function(){var f,r=c.absUrl(),u=c.$$state;n=gr(n);c.$$parse(n);c.$$state=t;f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented;c.absUrl()===n&&(f?(c.$$parse(r),c.$$state=u,d(r,!1,u)):(v=!1,g(r,u)))}),i.$$phase||i.$digest())}),i.$watch(function(){var t=gr(u.url()),e=gr(c.absUrl()),n=u.state(),o=c.$$replace,r=t!==e||c.$$html5&&f.history&&n!==c.$$state;(v||r)&&(v=!1,i.$evalAsync(function(){var u=c.absUrl(),f=i.$broadcast("$locationChangeStart",u,t,c.$$state,n).defaultPrevented;c.absUrl()===u&&(f?(c.$$parse(t),c.$$state=n):(r&&d(u,o,n===c.$$state?null:c.$$state),g(t,n)))}));c.$$replace=!1}),c}]}function np(){var n=!0,i=this;this.debugEnabled=function(t){return u(t)?(n=t,this):n};this.$get=["$window",function(r){function u(n){var i=r.console||{},u=i[n]||i.log||s,f=!1;try{f=!!u.apply}catch(n){}return f?function(){var n=[];return t(arguments,function(t){n.push(function(n){return n instanceof Error&&(n.stack?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}(t))}),u.apply(i,n)}:function(n,t){u(n,null==t?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:(f=u("debug"),function(){n&&f.apply(i,arguments)})};var f}]}function gi(n,t){if("__defineGetter__"===n||"__defineSetter__"===n||"__lookupGetter__"===n||"__lookupSetter__"===n||"__proto__"===n)throw it("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return n}function wh(n){return n+""}function ui(n,t){if(n){if(n.constructor===n)throw it("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(n.window===n)throw it("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw it("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(n===Object)throw it("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t);}return n}function bh(n,t){if(n){if(n.constructor===n)throw it("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(n===tp||n===ip||n===rp)throw it("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t);}}function of(n,t){if(n&&(n===0..constructor||n===(!1).constructor||n==="".constructor||n==={}.constructor||n===[].constructor||n===Function.constructor))throw it("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t);}function up(n,t){return void 0!==n?n:t}function dh(n,t){return void 0===n?t:void 0===t?n:n+t}function gh(n,t){return!n(t).$stateful}function k(n,r){var u,f;switch(n.type){case i.Program:u=!0;t(n.body,function(n){k(n.expression,r);u=u&&n.expression.constant});n.constant=u;break;case i.Literal:n.constant=!0;n.toWatch=[];break;case i.UnaryExpression:k(n.argument,r);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case i.BinaryExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.left.toWatch.concat(n.right.toWatch);break;case i.LogicalExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case i.ConditionalExpression:k(n.test,r);k(n.alternate,r);k(n.consequent,r);n.constant=n.test.constant&&n.alternate.constant&&n.consequent.constant;n.toWatch=n.constant?[]:[n];break;case i.Identifier:n.constant=!1;n.toWatch=[n];break;case i.MemberExpression:k(n.object,r);n.computed&&k(n.property,r);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=[n];break;case i.CallExpression:u=!!n.filter&&gh(r,n.callee.name);f=[];t(n.arguments,function(n){k(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=n.filter&&gh(r,n.callee.name)?f:[n];break;case i.AssignmentExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case i.ArrayExpression:u=!0;f=[];t(n.elements,function(n){k(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=f;break;case i.ObjectExpression:u=!0;f=[];t(n.properties,function(n){k(n.value,r);u=u&&n.value.constant&&!n.computed;n.value.constant||f.push.apply(f,n.value.toWatch)});n.constant=u;n.toWatch=f;break;case i.ThisExpression:case i.LocalsExpression:n.constant=!1;n.toWatch=[]}}function nc(n){if(1==n.length){var i=n[0].expression,t=i.toWatch;return 1!==t.length||t[0]!==i?t:void 0}}function tc(n){return n.type===i.Identifier||n.type===i.MemberExpression}function ic(n){if(1===n.body.length&&tc(n.body[0].expression))return{type:i.AssignmentExpression,left:n.body[0].expression,right:{type:i.NGValueParameter},operator:"="}}function rc(n){return 0===n.body.length||1===n.body.length&&(n.body[0].expression.type===i.Literal||n.body[0].expression.type===i.ArrayExpression||n.body[0].expression.type===i.ObjectExpression)}function uc(n){return n.constant}function fc(n,t){this.astBuilder=n;this.$filter=t}function ec(n,t){this.astBuilder=n;this.$filter=t}function cf(n){return"constructor"==n}function ke(n){return f(n.valueOf)?n.valueOf():oc.call(n)}function fp(){var n,i,e=y(),o=y(),r={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(n,t){r[n]=t};this.setIdentifierFns=function(t,r){return n=t,i=r,this};this.$get=["$filter",function(h){function w(n,t,i){var r,l,p,u,f,w;switch(i=i||c,typeof n){case"string":return n=n.trim(),u=i?o:e,(r=u[p=n])||(":"===n.charAt(0)&&":"===n.charAt(1)&&(l=!0,n=n.substring(2)),f=i?g:d,w=new sf(f),(r=new hf(w,h,f).parse(n)).constant?r.$$watchDelegate=nt:l?r.$$watchDelegate=r.literal?k:b:r.inputs&&(r.$$watchDelegate=v),i&&(r=a(r)),u[p]=r),y(r,t);case"function":return y(n,t);default:return y(s,t)}}function a(n){function t(t,i,r,u){var f=c;c=!0;try{return n(t,i,r,u)}finally{c=f}}if(!n)return n;t.$$watchDelegate=n.$$watchDelegate;t.assign=a(n.assign);t.constant=n.constant;t.literal=n.literal;for(var i=0;n.inputs&&i<n.inputs.length;++i)n.inputs[i]=a(n.inputs[i]);return t.inputs=n.inputs,t}function l(n,t){return null==n||null==t?n===t:("object"!=typeof n||"object"!=typeof(n=ke(n)))&&(n===t||n!=n&&t!=t)}function v(n,t,i,r,u){var e,f=r.inputs,s;if(1===f.length)return s=l,f=f[0],n.$watch(function(n){var t=f(n);return l(t,s)||(e=r(n,void 0,void 0,[t]),s=t&&ke(t)),e},t,i,u);for(var h=[],c=[],o=0,a=f.length;o<a;o++)h[o]=l,c[o]=null;return n.$watch(function(n){for(var i,u=!1,t=0,o=f.length;t<o;t++)i=f[t](n),(u||(u=!l(i,h[t])))&&(c[t]=i,h[t]=i&&ke(i));return u&&(e=r(n,void 0,void 0,c)),e},t,i,u)}function b(n,t,i,r){var e,o;return e=n.$watch(function(n){return r(n)},function(n,i,r){o=n;f(t)&&t.apply(this,arguments);u(n)&&r.$$postDigest(function(){u(o)&&e()})},i)}function k(n,i,r,e){function h(n){var i=!0;return t(n,function(n){u(n)||(i=!1)}),i}var o,s;return o=n.$watch(function(n){return e(n)},function(n,t,r){s=n;f(i)&&i.call(this,n,t,r);h(n)&&r.$$postDigest(function(){h(s)&&o()})},r)}function nt(n,t,i,r){var u;return u=n.$watch(function(n){return u(),r(n)},t,i)}function y(n,t){if(!t)return n;var r=n.$$watchDelegate,f=!1,i=r!==k&&r!==b?function(i,r,u,e){var o=f&&e?e[0]:n(i,r,u,e);return t(o,i,r)}:function(i,r,f,e){var o=n(i,r,f,e),s=t(o,i,r);return u(o)?s:o};return n.$$watchDelegate&&n.$$watchDelegate!==v?i.$$watchDelegate=n.$$watchDelegate:t.$stateful||(i.$$watchDelegate=v,f=!n.inputs,i.inputs=n.inputs?n.inputs:[n]),i}var p=ii().noUnsafeEval,d={csp:p,expensiveChecks:!1,literals:ti(r),isIdentifierStart:f(n)&&n,isIdentifierContinue:f(i)&&i},g={csp:p,expensiveChecks:!0,literals:ti(r),isIdentifierStart:f(n)&&n,isIdentifierContinue:f(i)&&i},c=!1;return w.$$runningExpensiveChecks=function(){return c},w}]}function ep(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return sc(function(t){n.$evalAsync(t)},t)}]}function op(){this.$get=["$browser","$exceptionHandler",function(n,t){return sc(function(t){n.defer(t)},t)}]}function sc(n,i){function y(){this.$$state={status:0}}function s(n,t){return function(i){t.call(n,i)}}function p(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,n(function(){!function(n){var e,t,u,r,o;for(u=n.pending,n.processScheduled=!1,n.pending=void 0,r=0,o=u.length;r<o;++r){t=u[r][0];e=u[r][n.status];try{f(e)?t.resolve(e(n.value)):1===n.status?t.resolve(n.value):t.reject(n.value)}catch(n){t.reject(n);i(n)}}}(t)}))}function u(){this.promise=new y}var w=l("$q",TypeError),b=function(){var n=new u;return n.resolve=s(n,n.resolve),n.reject=s(n,n.reject),n.notify=s(n,n.notify),n};v(y.prototype,{then:function(n,t,i){if(r(n)&&r(t)&&r(i))return this;var f=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([f,n,t,i]),this.$$state.status>0&&p(this.$$state),f.promise},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return k(t,!0,n)},function(t){return k(t,!1,n)},t)}});v(u.prototype,{resolve:function(n){this.promise.$$state.status||(n===this.promise?this.$$reject(w("qcycle","Expected promise to be resolved with value other than itself '{0}'",n)):this.$$resolve(n))},$$resolve:function(n){function e(n){t||(t=!0,u.$$reject(n))}var r,u=this,t=!1;try{(o(n)||f(n))&&(r=n&&n.then);f(r)?(this.promise.$$state.status=-1,r.call(n,function(n){t||(t=!0,u.$$resolve(n))},e,s(this,this.notify))):(this.promise.$$state.value=n,this.promise.$$state.status=1,p(this.promise.$$state))}catch(n){e(n);i(n)}},reject:function(n){this.promise.$$state.status||this.$$reject(n)},$$reject:function(n){this.promise.$$state.value=n;this.promise.$$state.status=2;p(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&n(function(){for(var n,e,u=0,o=r.length;u<o;u++){e=r[u][0];n=r[u][3];try{e.notify(f(n)?n(t):t)}catch(n){i(n)}}})}});var h=function(n,t){var i=new u;return t?i.resolve(n):i.reject(n),i.promise},k=function(n,t,i){var r=null;try{f(i)&&(r=i())}catch(n){return h(n,!1)}return hu(r)?r.then(function(){return h(n,t)},function(n){return h(n,!1)}):h(n,t)},a=function(n,t,i,r){var f=new u;return f.resolve(n),f.promise.then(t,i,r)},d=a,e=function(n){if(!f(n))throw w("norslvr","Expected resolverFn, got '{0}'",n);var t=new u;return n(function(n){t.resolve(n)},function(n){t.reject(n)}),t.promise};return e.prototype=y.prototype,e.defer=b,e.reject=function(n){var t=new u;return t.reject(n),t.promise},e.when=a,e.resolve=d,e.all=function(n){var r=new u,f=0,i=c(n)?[]:{};return t(n,function(n,t){f++;a(n).then(function(n){i.hasOwnProperty(t)||(i[t]=n,--f||r.resolve(i))},function(n){i.hasOwnProperty(t)||r.reject(n)})}),0===f&&r.resolve(i),r.promise},e.race=function(n){var i=b();return t(n,function(n){a(n).then(i.resolve,i.reject)}),i.promise},e}function sp(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function hp(){var n=10,e=l("$rootScope"),i=null,u=null;this.digestTtl=function(t){return arguments.length&&(n=t),n};this.$get=["$exceptionHandler","$parse","$browser",function(h,c,l){function ut(n){n.currentScope.$$destroyed=!0}function w(n){9===dt&&(n.$$childHead&&w(n.$$childHead),n.$$nextSibling&&w(n.$$nextSibling));n.$parent=n.$$nextSibling=n.$$prevSibling=n.$$childHead=n.$$childTail=n.$root=n.$$watchers=null}function y(){this.$id=su();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 nt(n){if(a.$$phase)throw e("inprog","{0} already in progress",a.$$phase);a.$$phase=n}function d(){a.$$phase=null}function g(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function tt(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function it(){}function rt(){for(;b.length;)try{b.shift()()}catch(n){h(n)}u=null}y.prototype={constructor:y,$new:function(n,t){var i;return t=t||this,n?(i=new y).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=su();this.$$ChildScope=null}return t.prototype=n,t}(this)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!=this)&&i.$on("$destroy",ut),i},$watch:function(n,t,r,u){var e=c(n);if(e.$$watchDelegate)return e.$$watchDelegate(this,t,r,e,n);var h=this,o=h.$$watchers,l={fn:t,last:it,get:e,exp:u||n,eq:!!r};return i=null,f(t)||(l.fn=s),o||(o=h.$$watchers=[]),o.unshift(l),g(this,1),function(){or(o,l)>=0&&g(h,-1);i=null}},$watchGroup:function(n,i){function c(){o=!1;h?(h=!1,i(r,r,u)):i(r,f,u)}var f=new Array(n.length),r=new Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?1===n.length?this.$watch(n[0],function(n,t,u){r[0]=n;f[0]=t;i(r,n===t?r:f,u)}):(t(n,function(n,t){var i=u.$watch(n,function(n,i){r[t]=n;f[t]=i;o||(o=!0,u.$evalAsync(c))});e.push(i)}),function(){for(;e.length;)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&i(r,r,u)}),function(){s=!1})},$watchCollection:function(n,t){function y(n){var c,s,t,h,v;if(!r(i=n)){if(o(i))if(ni(i))for(u!==l&&(e=(u=l).length=0,f++),c=i.length,e!==c&&(f++,u.length=e=c),v=0;v<c;v++)h=u[v],t=i[v],h!=h&&t!=t||h===t||(f++,u[v]=t);else{for(s in u!==a&&(u=a={},e=0,f++),c=0,i)at.call(i,s)&&(c++,t=i[s],h=u[s],s in u?h!=h&&t!=t||h===t||(f++,u[s]=t):(e++,u[s]=t,f++));if(e>c)for(s in f++,u)at.call(i,s)||(e--,delete u[s])}else u!==i&&(u=i,f++);return f}}y.$stateful=!0;var i,u,s,h=this,p=t.length>1,f=0,w=c(n,y),l=[],a={},v=!0,e=0;return this.$watch(w,function(){var n,r;if(v?(v=!1,t(i,i,h)):t(i,s,h),p)if(o(i))if(ni(i))for(s=new Array(i.length),n=0;n<i.length;n++)s[n]=i[n];else for(r in s={},i)at.call(i,r)&&(s[r]=i[r]);else s=i})},$digest:function(){var t,o,s,b,g,c,tt,r,ut,ft,et=n,st=this,y=[],w;nt("$digest");l.$$checkUrlChange();this===a&&null!==u&&(l.defer.cancel(u),rt());i=null;do{for(c=!1,r=st,w=0;w<v.length;w++){try{(ft=v[w]).scope.$eval(ft.expression,ft.locals)}catch(n){h(n)}i=null}v.length=0;n:do{if(b=r.$$watchers)for(g=b.length;g--;)try{if(t=b[g])if((o=t.get(r))===(s=t.last)||(t.eq?ot(o,s):"number"==typeof o&&"number"==typeof s&&isNaN(o)&&isNaN(s))){if(t===i){c=!1;break n}}else c=!0,i=t,t.last=t.eq?ti(o,null):o,t.fn(o,s===it?o:s,r),et<5&&(y[ut=4-et]||(y[ut]=[]),y[ut].push({msg:f(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:o,oldVal:s}))}catch(n){h(n)}if(!(tt=r.$$watchersCount&&r.$$childHead||r!==st&&r.$$nextSibling))for(;r!==st&&!(tt=r.$$nextSibling);)r=r.$parent}while(r=tt);if((c||v.length)&&!et--)throw d(),e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",n,y);}while(c||v.length);for(d();k<p.length;)try{p[k++]()}catch(n){h(n)}p.length=k=0},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;for(t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===a&&l.$$applicationDestroyed(),g(this,-this.$$watchersCount),this.$$listenerCount)tt(this,this.$$listenerCount[t],t);n&&n.$$childHead==this&&(n.$$childHead=this.$$nextSibling);n&&n.$$childTail==this&&(n.$$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=s;this.$on=this.$watch=this.$watchGroup=function(){return s};this.$$listeners={};this.$$nextSibling=null;w(this)}},$eval:function(n,t){return c(n)(this,t)},$evalAsync:function(n,t){a.$$phase||v.length||l.defer(function(){v.length&&a.$digest()});v.push({scope:this,expression:c(n),locals:t})},$$postDigest:function(n){p.push(n)},$apply:function(n){try{nt("$apply");try{return this.$eval(n)}finally{d()}}catch(n){h(n)}finally{try{a.$digest()}catch(n){throw h(n),n;}}},$applyAsync:function(n){var t=this;n&&b.push(function(){t.$eval(n)});n=c(n);null===u&&(u=l.defer(function(){a.$apply(rt)}))},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=r.indexOf(t);-1!==i&&(r[i]=null,tt(u,1,n))}},$emit:function(n){var u,t,f,o=[],r=this,e=!1,i={name:n,targetScope:r,stopPropagation:function(){e=!0},preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1},s=hr([i],arguments,1);do{for(u=r.$$listeners[n]||o,i.currentScope=r,t=0,f=u.length;t<f;t++)if(u[t])try{u[t].apply(null,s)}catch(n){h(n)}else u.splice(t,1),t--,f--;if(e)return i.currentScope=null,i;r=r.$parent}while(r);return i.currentScope=null,i},$broadcast:function(n){var r=this,t=r,e=r,u={name:n,targetScope:r,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},f,i,o,s;if(!r.$$listenerCount[n])return u;for(s=hr([u],arguments,1);t=e;){for(u.currentScope=t,i=0,o=(f=t.$$listeners[n]||[]).length;i<o;i++)if(f[i])try{f[i].apply(null,s)}catch(n){h(n)}else f.splice(i,1),i--,o--;if(!(e=t.$$listenerCount[n]&&t.$$childHead||t!==r&&t.$$nextSibling))for(;t!==r&&!(e=t.$$nextSibling);)t=t.$parent}return u.currentScope=null,u}};var a=new y,v=a.$$asyncQueue=[],p=a.$$postDigestQueue=[],b=a.$$applyAsyncQueue=[],k=0;return a}]}function cp(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return u(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(t=n,this):t};this.$get=function(){return function(i,r){var u,f=r?t:n;return""===(u=fi(i).href)||u.match(f)?i:"unsafe:"+u}}}function hc(n){var i=[];return u(n)&&t(n,function(n){i.push(function(n){if("self"===n)return n;if(h(n)){if(n.indexOf("***")>-1)throw kt("iwcard","Illegal sequence *** in string matcher.  String: {0}",n);return n=wo(n).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+n+"$")}if(ur(n))return new RegExp("^"+n.source+"$");throw kt("imatcher",'Matchers may only be "self", string patterns or RegExp objects');}(n))}),i}function lp(){this.SCE_CONTEXTS=ht;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=hc(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=hc(n)),t};this.$get=["$injector",function(i){function s(n,t){return"self"===n?lc(t):!!n.exec(t.href)}function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var o=function(){throw kt("unsafe","Attempting to use an unsafe value in a safe context.");},e,u;return i.has("$sanitize")&&(o=i.get("$sanitize")),e=f(),u={},u[ht.HTML]=f(e),u[ht.CSS]=f(e),u[ht.URL]=f(e),u[ht.JS]=f(e),u[ht.RESOURCE_URL]=f(u[ht.URL]),{trustAs:function(n,t){var i=u.hasOwnProperty(n)?u[n]:null;if(!i)throw kt("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",n,t);if(null===t||r(t)||""===t)return t;if("string"!=typeof t)throw kt("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",n);return new i(t)},getTrusted:function(i,f){if(null===f||r(f)||""===f)return f;var e=u.hasOwnProperty(i)?u[i]:null;if(e&&f instanceof e)return f.$$unwrapTrustedValue();if(i===ht.RESOURCE_URL){if(function(i){for(var e=fi(i.toString()),f=!1,r=0,u=n.length;r<u;r++)if(s(n[r],e)){f=!0;break}if(f)for(r=0,u=t.length;r<u;r++)if(s(t[r],e)){f=!1;break}return f}(f))return f;throw kt("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",f.toString());}if(i===ht.HTML)return o(f);throw kt("unsafe","Attempting to use an unsafe value in a safe context.");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function ap(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(i,r){var u;if(n&&dt<8)throw kt("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");u=st(ht);u.isEnabled=function(){return n};u.trustAs=r.trustAs;u.getTrusted=r.getTrusted;u.valueOf=r.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=rr);u.parseAs=function(n,t){var r=i(t);return r.literal&&r.constant?r:i(t,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return t(ht,function(n,t){var i=a(t);u[pr("parse_as_"+i)]=function(t){return f(n,t)};u[pr("get_trusted_"+i)]=function(t){return e(n,t)};u[pr("trust_as_"+i)]=function(t){return o(n,t)}}),u}]}function vp(){this.$get=["$window","$document",function(n,t){var u,l,o={},y=!(n.chrome&&n.chrome.app&&n.chrome.app.runtime)&&n.history&&n.history.pushState,s=tt((/android (\d+)/.exec(a((n.navigator||{}).userAgent))||[])[1]),p=/Boxee/i.test((n.navigator||{}).userAgent),c=t[0]||{},i=c.body&&c.body.style,f=!1,e=!1,v;if(i){for(v in i)if(l=/^(Moz|webkit|ms)(?=[A-Z])/.exec(v)){u=(u=l[0])[0].toUpperCase()+u.substr(1);break}u||(u="WebkitOpacity"in i&&"webkit");f=!(!("transition"in i)&&!(u+"Transition"in i));e=!(!("animation"in i)&&!(u+"Animation"in i));!s||f&&e||(f=h(i.webkitTransition),e=h(i.webkitAnimation))}return{history:!(!y||s<4||p),hasEvent:function(n){if("input"===n&&dt<=11)return!1;if(r(o[n])){var t=c.createElement("div");o[n]="on"+n in t}return o[n]},csp:ii(),vendorPrefix:u,transitions:f,animations:e,android:s}}]}function yp(){var n;this.httpOptions=function(t){return t?(n=t,this):n};this.$get=["$templateCache","$http","$q","$sce",function(t,i,u,f){function e(o,s){e.totalPendingRequests++;h(o)&&!r(t.get(o))||(o=f.getTrustedResourceUrl(o));var l=i.defaults&&i.defaults.transformResponse;return c(l)?l=l.filter(function(n){return n!==ve}):l===ve&&(l=null),i.get(o,v({cache:t,transformResponse:l},n)).finally(function(){e.totalPendingRequests--}).then(function(n){return t.put(o,n.data),n.data},function(n){if(!s)throw cc("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,n.status,n.statusText);return u.reject(n)})}return e.totalPendingRequests=0,e}]}function pp(){this.$get=["$rootScope","$browser","$location",function(n,i,r){return{findBindings:function(n,i,r){var f=n.getElementsByClassName("ng-binding"),u=[];return t(f,function(n){var f=ut.element(n).data("$binding");f&&t(f,function(t){r?new RegExp("(^|\\s)"+wo(i)+"(\\s|\\||$)").test(t)&&u.push(n):-1!=t.indexOf(i)&&u.push(n)})}),u},findModels:function(n,t,i){for(var e,f,u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r)if(e="["+u[r]+"model"+(i?"=":"*=")+'"'+t+'"]',f=n.querySelectorAll(e),f.length)return f},getLocation:function(){return r.url()},setLocation:function(t){t!==r.url()&&(r.url(t),n.$digest())},whenStable:function(n){i.notifyWhenNoOutstandingRequests(n)}}}]}function wp(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,r,e){function h(h,c,l){f(h)||(l=c,c=h,h=s);var v,w=cr(arguments,3),p=u(l)&&!l,a=(p?r:i).defer(),y=a.promise;return v=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(n){a.reject(n);e(n)}finally{delete o[y.$$timeoutId]}p||n.$apply()},c),y.$$timeoutId=v,o[v]=a,y}var o={};return h.cancel=function(n){return!(!n||!(n.$$timeoutId in o))&&(o[n.$$timeoutId].reject("canceled"),delete o[n.$$timeoutId],t.defer.cancel(n.$$timeoutId))},h}]}function fi(n){var t=n;return dt&&(g.setAttribute("href",t),t=g.href),g.setAttribute("href",t),{href:g.href,protocol:g.protocol?g.protocol.replace(/:$/,""):"",host:g.host,search:g.search?g.search.replace(/^\?/,""):"",hash:g.hash?g.hash.replace(/^#/,""):"",hostname:g.hostname,port:g.port,pathname:"/"===g.pathname.charAt(0)?g.pathname:"/"+g.pathname}}function lc(n){var t=h(n)?fi(n):n;return t.protocol===de.protocol&&t.host===de.host}function bp(){this.$get=ft(n)}function ac(n){function u(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},i="";return function(){var e,o,n,s,h,c=f.cookie||"";if(c!==i)for(e=(i=c).split("; "),t={},n=0;n<e.length;n++)(s=(o=e[n]).indexOf("="))>0&&(h=u(o.substring(0,s)),r(t[h])&&(t[h]=u(o.substring(s+1))));return t}}function kp(){this.$get=ac}function vc(n){function i(u,f){if(o(u)){var e={};return t(u,function(n,t){e[t]=i(t,n)}),e}return n.factory(u+r,f)}var r="Filter";this.register=i;this.$get=["$injector",function(n){return function(t){return n.get(t+r)}}];i("currency",wc);i("date",nl);i("filter",dp);i("json",iw);i("limitTo",rw);i("lowercase",tl);i("number",bc);i("orderBy",rl);i("uppercase",il)}function dp(){return function(n,t,i,u){if(!ni(n)){if(null==n)return n;throw l("filter")("notarray","Expected array but received: {0}",n);}var e,s;switch(u=u||"$",ge(t)){case"function":e=t;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":e=function(n,t,i,u){var e,s=o(n)&&i in n;return!0===t?t=ot:f(t)||(t=function(n,t){return!r(n)&&(null===n||null===t?n===t:!(o(t)||o(n)&&!yo(n))&&(n=a(""+n),t=a(""+t),-1!==n.indexOf(t)))}),e=function(r){return s&&!o(r)?yi(r,n[i],t,i,!1):yi(r,n,t,i,u)},e}(t,i,u,s);break;default:return n}return Array.prototype.filter.call(n,e)}}function yi(n,t,i,u,e,o){var v=ge(n),a=ge(t),s,h,l;if("string"===a&&"!"===t.charAt(0))return!yi(n,t.substring(1),i,u,e);if(c(n))return n.some(function(n){return yi(n,t,i,u,e)});switch(v){case"object":if(e){for(s in n)if("$"!==s.charAt(0)&&yi(n[s],t,i,u,!0))return!0;return!o&&yi(n,t,i,u,!1)}if("object"===a){for(s in t)if(h=t[s],!f(h)&&!r(h)&&(l=s===u,!yi(l?n:n[s],h,i,u,l,l)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function ge(n){return null===n?"null":typeof n}function wc(n){var t=n.NUMBER_FORMATS;return function(n,i,u){return r(i)&&(i=t.CURRENCY_SYM),r(u)&&(u=t.PATTERNS[1].maxFrac),null==n?n:kc(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,u).replace(/\u00A4/g,i)}}function bc(n){var t=n.NUMBER_FORMATS;return function(n,i){return null==n?n:kc(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function kc(n,t,i,u,f){var c;if(!h(n)&&!w(n)||isNaN(n))return"";var s,p=!isFinite(n),v=!1,b=Math.abs(n)+"",o="";if(p)o="∞";else{s=function(n){var r,t,i,f,u,e=0;for((t=n.indexOf(pc))>-1&&(n=n.replace(pc,"")),(i=n.search(/e/i))>0?(t<0&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):t<0&&(t=n.length),i=0;n.charAt(i)==no;i++);if(i==(u=n.length))r=[0],t=1;else{for(u--;n.charAt(u)==no;)u--;for(t-=i,r=[],f=0;i<=u;i++,f++)r[f]=+n.charAt(i)}return t>yc&&(r=r.splice(0,yc-1),e=t-1,t=1),{d:r,e:e,i:t}}(b),function(n,t,i,u){var f=n.d,o=f.length-n.i,e=(t=r(t)?Math.min(Math.max(i,o),u):+t)+n.i,a=f[e],s,h,c,l;if(e>0)for(f.splice(Math.max(n.i,e)),s=e;s<f.length;s++)f[s]=0;else for(o=Math.max(0,o),n.i=1,f.length=Math.max(1,e=t+1),f[0]=0,h=1;h<e;h++)f[h]=0;if(a>=5)if(e-1<0){for(c=0;c>e;c--)f.unshift(0),n.i++;f.unshift(1);n.i++}else f[e-1]++;for(;o<Math.max(0,t);o++)f.push(0);l=f.reduceRight(function(n,t,i,r){return t+=n,r[i]=t%10,Math.floor(t/10)},0);l&&(f.unshift(l),n.i++)}(s,f,t.minFrac,t.maxFrac);var e=s.d,l=s.i,y=s.e,a=[];for(v=e.reduce(function(n,t){return n&&!t},!0);l<0;)e.unshift(0),l++;for(l>0?a=e.splice(l,e.length):(a=e,e=[0]),c=[],e.length>=t.lgSize&&c.unshift(e.splice(-t.lgSize,e.length).join(""));e.length>t.gSize;)c.unshift(e.splice(-t.gSize,e.length).join(""));e.length&&c.unshift(e.join(""));o=c.join(i);a.length&&(o+=u+a.join(""));y&&(o+="e+"+y)}return n<0&&!v?t.negPre+o+t.negSuf:t.posPre+o+t.posSuf}function lf(n,t,i,r){var u="";for((n<0||r&&n<=0)&&(r?n=1-n:(n=-n,u="-")),n=""+n;n.length<t;)n=no+n;return i&&(n=n.substr(n.length-t)),u+n}function nt(n,t,i,r,u){return i=i||0,function(f){var e=f["get"+n]();return(i>0||e>-i)&&(e+=i),0===e&&-12==i&&(e=12),lf(e,t,r,u)}}function tu(n,t,i){return function(r,u){var f=r["get"+n]();return u[ir((i?"STANDALONE":"")+(t?"SHORT":"")+n)][f]}}function dc(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(t<=4?5:12)-t)}function gc(n){return function(t){var i,r=dc(t.getFullYear()),u=+(i=t,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay())))-+r;return lf(1+Math.round(u/6048e5),n)}}function to(n,t){return n.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function nl(n){var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(r,u,f){var s,c,l="",e=[],o;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,h(r)&&(r=tw.test(r)?tt(r):function(n){var t;if(t=n.match(i)){var r=new Date(0),u=0,f=0,e=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(u=tt(t[9]+t[10]),f=tt(t[9]+t[11]));e.call(r,tt(t[1]),tt(t[2])-1,tt(t[3]));var s=tt(t[4]||0)-u,h=tt(t[5]||0)-f,c=tt(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(r,s,h,c,l),r}return n}(r)),w(r)&&(r=new Date(r)),!et(r)||!isFinite(r.getTime()))return r;for(;u;)(c=nw.exec(u))?u=(e=hr(e,c,1)).pop():(e.push(u),u=null);return o=r.getTimezoneOffset(),f&&(o=ns(f,o),r=kf(r,f,!0)),t(e,function(t){s=gp[t];l+=s?s(r,n.DATETIME_FORMATS,o):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function iw(){return function(n,t){return r(t)&&(t=2),ar(n,t)}}function rw(){return function(n,t,i){return t=Math.abs(Number(t))===1/0?Number(t):tt(t),isNaN(t)?n:(w(n)&&(n=n.toString()),ni(n)?(i=(i=!i||isNaN(i)?0:tt(i))<0?Math.max(0,n.length+i):i,t>=0?io(n,i,i+t):0===i?io(n,t,n.length):io(n,Math.max(0,i+t),i)):n)}}function io(n,t,i){return h(n)?n.slice(t,i):pi.call(n,t,i)}function rl(n){function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function i(n,t){var f=0,u=n.type,e=t.type,i,r;return u===e?(i=n.value,r=t.value,"string"===u?(i=i.toLowerCase(),r=r.toLowerCase()):"object"===u&&(o(i)&&(i=n.index),o(r)&&(r=t.index)),i!==r&&(f=i<r?-1:1)):f=u<e?-1:1,f}return function(r,u,e,o){if(null==r)return r;if(!ni(r))throw l("orderBy")("notarray","Expected array but received: {0}",r);c(u)||(u=[u]);0===u.length&&(u=["+"]);var s=u.map(function(t){var r=1,i=rr,u;return f(t)?i=t:h(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(r="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=n(t)).constant)&&(u=i(),i=function(n){return n[u]}),{get:i,descending:r}}),a=e?-1:1,v=f(o)?o:i,y=Array.prototype.map.call(r,function(n,i){return{value:n,tieBreaker:{value:i,type:"number",index:i},predicateValues:s.map(function(r){return function(n,i){var r=typeof n;return null===n?(r="string",n="null"):"object"===r&&(n=function(n){return f(n.valueOf)&&t(n=n.valueOf())?n:(yo(n)&&t(n=n.toString()),n)}(n)),{value:n,type:r,index:i}}(r.get(n),i)})}});return y.sort(function(n,t){for(var r,i=0,u=s.length;i<u;i++)if(r=v(n.predicateValues[i],t.predicateValues[i]),r)return r*s[i].descending*a;return v(n.tieBreaker,t.tieBreaker)*a}),r=y.map(function(n){return n.value})}}function nr(n){return f(n)&&(n={link:n}),n.restrict=n.restrict||"AC",ft(n)}function fl(n,i,r,u,f){var e=this,o=[];e.$error={};e.$$success={};e.$pending=void 0;e.$name=f(i.name||i.ngForm||"")(r);e.$dirty=!1;e.$pristine=!0;e.$valid=!0;e.$invalid=!1;e.$submitted=!1;e.$$parentForm=ru;e.$rollbackViewValue=function(){t(o,function(n){n.$rollbackViewValue()})};e.$commitViewValue=function(){t(o,function(n){n.$commitViewValue()})};e.$addControl=function(n){bi(n.$name,"input");o.push(n);n.$name&&(e[n.$name]=n);n.$$parentForm=e};e.$$renameControl=function(n,t){var i=n.$name;e[i]===n&&delete e[i];e[t]=n;n.$name=t};e.$removeControl=function(n){n.$name&&e[n.$name]===n&&delete e[n.$name];t(e.$pending,function(t,i){e.$setValidity(i,null,n)});t(e.$error,function(t,i){e.$setValidity(i,null,n)});t(e.$$success,function(t,i){e.$setValidity(i,null,n)});or(o,n);n.$$parentForm=ru};na({ctrl:this,$element:n,set:function(n,t,i){var r=n[t];r?-1===r.indexOf(i)&&r.push(i):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(or(r,i),0===r.length&&delete n[t])},$animate:u});e.$setDirty=function(){u.removeClass(n,tr);u.addClass(n,vf);e.$dirty=!0;e.$pristine=!1;e.$$parentForm.$setDirty()};e.$setPristine=function(){u.setClass(n,tr,vf+" "+ro);e.$dirty=!1;e.$pristine=!0;e.$submitted=!1;t(o,function(n){n.$setPristine()})};e.$setUntouched=function(){t(o,function(n){n.$setUntouched()})};e.$setSubmitted=function(){u.addClass(n,ro);e.$submitted=!0;e.$$parentForm.$setSubmitted()}}function eo(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function uu(n,t,i,r,u,f){var e,h=a(t[0].type),s,o,c;if(u.android||(s=!1,t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1;o()})),o=function(n){if(e&&(f.defer.cancel(e),e=null),!s){var u=t.val(),o=n&&n.type;"password"===h||i.ngTrim&&"false"===i.ngTrim||(u=p(u));(r.$viewValue!==u||""===u&&r.$$hasNativeValidators)&&r.$setViewValue(u,o)}},u.hasEvent("input"))t.on("input",o);else c=function(n,t,i){e||(e=f.defer(function(){e=null;t&&t.value===i||o(n)}))},t.on("keydown",function(n){var t=n.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(n,this,this.value)}),u.hasEvent("paste")&&t.on("paste cut",c);t.on("change",o);ll[h]&&r.$$hasNativeValidators&&h===i.type&&t.on(cw,function(n){if(!e){var t=this[ho],i=t.badInput,r=t.typeMismatch;e=f.defer(function(){e=null;t.badInput===i&&t.typeMismatch===r||o(n)})}});r.$render=function(){var n=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==n&&t.val(n)}}function af(n,i){return function(r,u){var e,f;if(et(r))return r;if(h(r)){if('"'==r.charAt(0)&&'"'==r.charAt(r.length-1)&&(r=r.substring(1,r.length-1)),ew.test(r))return new Date(r);if(n.lastIndex=0,e=n.exec(r))return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},t(e,function(n,t){t<i.length&&(f[i[t]]=+n)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1e3*f.sss||0)}return NaN}}function fu(n,t,i,f){return function(e,o,s,h,c,l,a){function b(n){return n&&!(n.getTime&&n.getTime()!=n.getTime())}function k(n){return u(n)&&!et(n)?i(n)||void 0:n}al(e,o,s,h);uu(0,o,s,h,c,l);var v,p,w,y=h&&h.$options&&h.$options.timezone;(h.$$parserName=n,h.$parsers.push(function(n){if(h.$isEmpty(n))return null;if(t.test(n)){var r=i(n,v);return y&&(r=kf(r,y)),r}}),h.$formatters.push(function(n){if(n&&!et(n))throw ou("datefmt","Expected `{0}` to be a date",n);return b(n)?((v=n)&&y&&(v=kf(v,y,!0)),a("date")(n,f,y)):(v=null,"")}),u(s.min)||s.ngMin)&&(h.$validators.min=function(n){return!b(n)||r(p)||i(n)>=p},s.$observe("min",function(n){p=k(n);h.$validate()}));(u(s.max)||s.ngMax)&&(h.$validators.max=function(n){return!b(n)||r(w)||i(n)<=w},s.$observe("max",function(n){w=k(n);h.$validate()}))}}function al(n,t,i,r){var u=t[0];(r.$$hasNativeValidators=o(u.validity))&&r.$parsers.push(function(n){var i=t.prop(ho)||{};if(!i.badInput&&!i.typeMismatch)return n})}function vl(n,t,i,r,f){var e;if(u(r)){if(!(e=n(r)).constant)throw ou("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",i,r);return e(t)}return f}function oo(n,i){return n="ngClass"+n,["$animate",function(r){function f(n,t){var f=[],i,u,r;n:for(i=0;i<n.length;i++){for(u=n[i],r=0;r<t.length;r++)if(u==t[r])continue n;f.push(u)}return f}function u(n){var i=[];return c(n)?(t(n,function(n){i=i.concat(u(n))}),i):h(n)?n.split(" "):o(n)?(t(n,function(n,t){n&&(i=i.concat(t.split(" ")))}),i):n}return{restrict:"AC",link:function(e,o,s){function a(n){var t=l(n,1);s.$addClass(t)}function l(n,i){var r=o.data("$classCounts")||y(),u=[];return t(n,function(n){(i>0||r[n])&&(r[n]=(r[n]||0)+i,r[n]===+(i>0)&&u.push(n))}),o.data("$classCounts",r),u.join(" ")}function v(n){if(!0===i||(1&e.$index)===i){var t=u(n||[]);h?ot(n,h)||!function(n,t){var i=f(t,n),u=f(n,t);i=l(i,1);u=l(u,-1);i&&i.length&&r.addClass(o,i);u&&u.length&&r.removeClass(o,u)}(u(h),t):a(t)}h=c(n)?n.map(function(n){return st(n)}):st(n)}var h;e.$watch(s[n],v,!0);s.$observe("class",function(){v(e.$eval(s[n]))});"ngClass"!==n&&e.$watch("$index",function(t,r){var o=1&t,f;o!==(1&r)&&(f=u(e.$eval(s[n])),o===i?a(f):function(n){var t=l(n,-1);s.$removeClass(t)}(f))})}}}]}function na(n){function f(n,t){t&&!i[n]?(h.addClass(e,n),i[n]=!0):!t&&i[n]&&(h.removeClass(e,n),i[n]=!1)}function s(n,t){n=n?"-"+fs(n,"-"):"";f(eu+n,!0===t);f(wl+n,!1===t)}var t=n.ctrl,e=n.$element,i={},o=n.set,u=n.unset,h=n.$animate;i[wl]=!(i[eu]=e.hasClass(eu));t.$setValidity=function(n,i,e){r(i)?function(n,i,r){t[n]||(t[n]={});o(t[n],i,r)}("$pending",n,e):function(n,i,r){t[n]&&u(t[n],i,r);ta(t[n])&&(t[n]=void 0)}("$pending",n,e);oi(i)?i?(u(t.$error,n,e),o(t.$$success,n,e)):(o(t.$error,n,e),u(t.$$success,n,e)):(u(t.$error,n,e),u(t.$$success,n,e));t.$pending?(f(kl,!0),t.$valid=t.$invalid=void 0,s("",null)):(f(kl,!1),t.$valid=ta(t.$error),t.$invalid=!t.$valid,s("",t.$valid));var h;h=t.$pending&&t.$pending[n]?void 0:!t.$error[n]&&(!!t.$$success[n]||null);s(n,h);t.$$parentForm.$setValidity(n,h,t)}}function ta(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}var sa=/^\/(.+)\/([a-z]*)$/,ho="validity",at=Object.prototype.hasOwnProperty,a=function(n){return h(n)?n.toLowerCase():n},ir=function(n){return h(n)?n.toUpperCase():n},c,ii,sr,go,si,us,gf,hs,vs,hi,br,fe,ee,oe,se,d,rf,he,rh,ce,ri,yh,it,nu,kh,sf,i,hf,oc,kt,ht,cc,g,de,tl,il,ul,iu,ru,ro,fo;"i"!=="I".toLowerCase()&&(a=function(n){return h(n)?n.replace(/[A-Z]/g,function(n){return String.fromCharCode(32|n.charCodeAt(0))}):n},ir=function(n){return h(n)?n.replace(/[a-z]/g,function(n){return String.fromCharCode(-33&n.charCodeAt(0))}):n});var dt,e,gt,yf,pi=[].slice,ha=[].splice,ca=[].push,rt=Object.prototype.toString,co=Object.getPrototypeOf,ei=l("ng"),ut=n.angular||(n.angular={}),la=0;dt=n.document.documentMode;s.$inject=[];rr.$inject=[];c=Array.isArray;var va=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,p=function(n){return h(n)?n.trim():n},wo=function(n){return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};ii=function(){var i,t;return u(ii.rules)||(i=n.document.querySelector("[ng-csp]")||n.document.querySelector("[data-ng-csp]"),i?(t=i.getAttribute("ng-csp")||i.getAttribute("data-ng-csp"),ii.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")}):ii.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(n){return!0}}(),noInlineStyle:!1}),ii.rules};sr=function(){if(u(sr.name_))return sr.name_;for(var r,i,f,e=si.length,t=0;t<e;++t)if(i=si[t],r=n.document.querySelector("["+i.replace(":","\\:")+"jq]")){f=r.getAttribute(i+"jq");break}return sr.name_=f};go=/:/g;si=["ng-","data-ng-","ng:","x-ng-"];us=/[A-Z]/g;gf=!1;var bt=1,ki=3,vu=8,os=9,ne=11;hs={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"};b.expando="ng339";var vr=b.cache={},ba=1,yu=function(n,t,i){n.addEventListener(t,i,!1)},yr=function(n,t,i){n.removeEventListener(t,i,!1)};b._data=function(n){return this.cache[n[this.expando]]||{}};var ka=/([\:\-\_]+(.))/g,da=/^moz([A-Z])/,pu={mouseleave:"mouseout",mouseenter:"mouseover"},te=l("jqLite");var ga=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,nv=/<|&#?\w+;/,tv=/<([\w:-]+)/,iv=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,lt={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,"",""]};lt.optgroup=lt.option;lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.thead;lt.th=lt.td;vs=n.Node.prototype.contains||function(n){return!!(16&this.compareDocumentPosition(n))};hi=b.prototype={ready:function(t){function i(){r||(r=!0,t())}var r=!1;"complete"===n.document.readyState?n.setTimeout(i):(this.on("DOMContentLoaded",i),b(n).on("load",i))},toString:function(){var n=[];return t(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return e(n>=0?this[n]:this[this.length+n])},length:0,push:ca,sort:[].sort,splice:[].splice};br={};t("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(n){br[a(n)]=n});fe={};t("input,select,option,textarea,button,form,details".split(","),function(n){fe[n]=!0});ee={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};t({data:ue,removeData:wr,hasData:function(n){for(var t in vr[n.ng339])return!0;return!1},cleanData:function(n){for(var t=0,i=n.length;t<i;t++)wr(n[t])}},function(n,t){b[t]=n});t({data:ue,inheritedData:nf,scope:function(n){return e.data(n,"$scope")||nf(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return e.data(n,"$isolateScope")||e.data(n,"$isolateScopeNoTemplate")},controller:ws,injector:function(n){return nf(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:ku,css:function(n,t,i){if(t=pr(t),!u(i))return n.style[t];n.style[t]=i},attr:function(n,t,i){var f=n.nodeType,r,e;if(f!==ki&&2!==f&&f!==vu)if(r=a(t),br[r]){if(!u(i))return n[t]||(n.attributes.getNamedItem(t)||s).specified?r:void 0;i?(n[t]=!0,n.setAttribute(t,r)):(n[t]=!1,n.removeAttribute(r))}else if(u(i))n.setAttribute(t,i);else if(n.getAttribute)return e=n.getAttribute(t,2),null===e?void 0:e},prop:function(n,t,i){if(!u(i))return n[t];n[t]=i},text:function(){function n(n,t){if(r(t)){var i=n.nodeType;return i===bt||i===ki?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,i){if(r(i)){if(n.multiple&&"select"===vt(n)){var u=[];return t(n.options,function(n){n.selected&&u.push(n.value||n.text)}),0===u.length?null:u}return n.value}n.value=i},html:function(n,t){if(r(t))return n.innerHTML;wu(n,!0);n.innerHTML=t},empty:bs},function(n,t){b.prototype[t]=function(t,i){var u,s,e=this.length,c;if(n!==bs&&r(2==n.length&&n!==ku&&n!==ws?t:i)){if(o(t)){for(u=0;u<e;u++)if(n===ue)n(this[u],t);else for(s in t)n(this[u],s,t[s]);return this}for(var f=n.$dv,l=r(f)?Math.min(e,1):e,h=0;h<l;h++)c=n(this[h],t,i),f=f?f+c:c;return f}for(u=0;u<e;u++)n(this[u],t,i);return this}});t({removeData:wr,on:function(n,t,i,f){if(u(f))throw te("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(cs(n)){var e=bu(n,!0),o=e.events,s=e.handle;s||(s=e.handle=function(n,t){var i=function(i,u){var f,e,s,h,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},f=t[u||i.type],e=f?f.length:0,e)for(r(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return!0===i.immediatePropagationStopped},h=f.specialHandlerWrapper||rv,e>1&&(f=st(f)),o=0;o<e;o++)i.isImmediatePropagationStopped()||h(n,i,f[o])};return i.elem=n,i}(n,o));for(var c=t.indexOf(" ")>=0?t.split(" "):[t],l=c.length,h=function(t,r,u){var f=o[t];f||((f=o[t]=[]).specialHandlerWrapper=r,"$destroy"===t||u||yu(n,t,s));f.push(i)};l--;)t=c[l],pu[t]?(h(pu[t],uv),h(t,void 0,!0)):h(t)}},off:ys,one:function(n,t,i){(n=e(n)).on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,i){var r,u=n.parentNode;wu(n);t(new b(i),function(t){r?u.insertBefore(t,r.nextSibling):u.replaceChild(t,n);r=t})},children:function(n){var i=[];return t(n.childNodes,function(n){n.nodeType===bt&&i.push(n)}),i},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var r=n.nodeType,i,u,f;if(r===bt||r===ne)for(i=0,u=(t=new b(t)).length;i<u;i++)f=t[i],n.appendChild(f)},prepend:function(n,i){if(n.nodeType===bt){var r=n.firstChild;t(new b(i),function(t){n.insertBefore(t,r)})}},wrap:function(n,t){as(n,e(t).eq(0).clone()[0])},remove:tf,detach:function(n){tf(n,!0)},after:function(n,t){for(var r,u=n,f=n.parentNode,i=0,e=(t=new b(t)).length;i<e;i++)r=t[i],f.insertBefore(r,u.nextSibling),u=r},addClass:gu,removeClass:du,toggleClass:function(n,i,u){i&&t(i.split(" "),function(t){var i=u;r(i)&&(i=!ku(n,t));(i?gu:du)(n,t)})},parent:function(n){var t=n.parentNode;return t&&t.nodeType!==ne?t:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:re,triggerHandler:function(n,i,r){var u,f,e,o=i.type||i,h=bu(n),c=h&&h.events,l=c&&c[o];l&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:s,type:o,target:n},i.type&&(u=v(u,i)),f=st(l),e=r?[u].concat(r):[u],t(f,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){b.prototype[t]=function(t,i,f){for(var o,s=0,h=this.length;s<h;s++)r(o)?u(o=n(this[s],t,i,f))&&(o=e(o)):ps(o,n(this[s],t,i,f));return u(o)?o:this};b.prototype.bind=b.prototype.on;b.prototype.unbind=b.prototype.off});di.prototype={put:function(n,t){this[ci(n,this.nextUid)]=t},get:function(n){return this[ci(n,this.nextUid)]},remove:function(n){var t=this[n=ci(n,this.nextUid)];return delete this[n],t}};var ev=[function(){this.$get=[function(){return di}]}],ov=/^([^\(]+?)=>/,sv=/^[^\(]*\(\s*([^\)]*)\)/m,hv=/,/,cv=/^\s*(_?)(\S+?)\1\s*$/,lv=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,li=l("$injector");kr.$$annotate=function(n,i,r){var u,f;if("function"==typeof n){if(!(u=n.$inject)){if(u=[],n.length){if(i)throw h(r)&&r||(r=n.name||function(n){var t=gs(n);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(n)),li("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",r);t(gs(n)[1].split(hv),function(n){n.replace(cv,function(n,t,i){u.push(i)})})}n.$inject=u}}else c(n)?(wi(n[f=n.length-1],"fn"),u=n.slice(0,f)):wi(n,"fn",!0);return u};oe=l("$animate");se="ng-animate";var vv=function(){this.$get=s},yv=function(){var n=new di,i=[];this.$get=["$$AnimateRunner","$rootScope",function(r,u){function f(n,i,r){var u=!1;return i&&t(i=h(i)?i.split(" "):c(i)?i:[],function(t){t&&(u=!0,n[t]=r)}),u}function e(){t(i,function(i){var f=n.get(i);if(f){var e=function(n){h(n)&&(n=n.split(" "));var i=y();return t(n,function(n){n.length&&(i[n]=!0)}),i}(i.attr("class")),r="",u="";t(f,function(n,t){n!==!!e[t]&&(n?r+=(r.length?" ":"")+t:u+=(u.length?" ":"")+t)});t(i,function(n){r&&gu(n,r);u&&du(n,u)});n.remove(i)}});i.length=0}return{enabled:s,on:s,off:s,pin:s,push:function(t,o,s,h){h&&h();(s=s||{}).from&&t.css(s.from);s.to&&t.css(s.to);(s.addClass||s.removeClass)&&function(t,r,o){var s=n.get(t)||{},h=f(s,r,!0),c=f(s,o,!1);(h||c)&&(n.put(t,s),i.push(t),1===i.length&&u.$$postDigest(e))}(t,s.addClass,s.removeClass);var c=new r;return c.complete(),c}}}]},pv=["$provide",function(n){var t=this;this.$$registeredAnimations=Object.create(null);this.register=function(i,r){if(i&&"."!==i.charAt(0))throw oe("notcsel","Expecting class selector starting with '.' got '{0}'.",i);var u=i+"-animation";t.$$registeredAnimations[i.substr(1)]=u;n.factory(u,r)};this.classNameFilter=function(n){if(1===arguments.length&&(this.$$classNameFilter=n instanceof RegExp?n:null,this.$$classNameFilter&&new RegExp("(\\s+|\\/)"+se+"(\\s+|\\/)").test(this.$$classNameFilter.toString())))throw oe("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',se);return this.$$classNameFilter};this.$get=["$$animateQueue",function(n){function t(n,t,i){if(i){var r=function(n){for(var i,t=0;t<n.length;t++)if(i=n[t],1===i.nodeType)return i}(i);!r||r.parentNode||r.previousElementSibling||(i=null)}i?i.after(n):t.prepend(n)}return{on:n.on,off:n.off,pin:n.pin,enabled:n.enabled,cancel:function(n){n.end&&n.end()},enter:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),t(i,r=r||u.parent(),u),n.push(i,"enter",ai(f))},move:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),t(i,r=r||u.parent(),u),n.push(i,"move",ai(f))},leave:function(t,i){return n.push(t,"leave",ai(i),function(){t.remove()})},addClass:function(t,i,r){return(r=ai(r)).addClass=dr(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return(r=ai(r)).removeClass=dr(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return(u=ai(u)).addClass=dr(u.addClass,i),u.removeClass=dr(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return(f=ai(f)).from=f.from?v(f.from,i):i,f.to=f.to?v(f.to,r):r,u=u||"ng-inline-animate",f.tempClasses=dr(f.tempClasses,u),n.push(t,"animate",f)}}}]}],wv=function(){this.$get=["$$rAF",function(n){function i(i){t.push(i);t.length>1||n(function(){for(var n=0;n<t.length;n++)t[n]();t=[]})}var t=[];return function(){var n=!1;return i(function(){n=!0}),function(t){n?t():i(t)}}}]},bv=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(n,i,r,u,f){function e(n){this.setHost(n);var t=r();this._doneCallbacks=[];this._tick=function(n){var i=u[0];i&&i.hidden?function(n){f(n,0,!1)}(n):t(n)};this._state=0}return e.chain=function(n,t){var i=0;!function r(){if(i===n.length)return void t(!0);n[i](function(n){!1!==n?(i++,r()):t(!1)})}()},e.all=function(n,i){function f(t){r=r&&t;++u===n.length&&i(r)}var u=0,r=!0;t(n,function(n){n.done(f)})},e.prototype={setHost:function(n){this.host=n||{}},done:function(n){2===this._state?n():this._doneCallbacks.push(n)},progress:s,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){!1===t?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise().catch(n)},"finally":function(n){return this.getPromise().finally(n)},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(n){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(n)}))},_resolve:function(n){2!==this._state&&(t(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=2)}},e}]},kv=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(n,t,i){return function(t,r){function o(){return n(function(){!function(){u.addClass&&(t.addClass(u.addClass),u.addClass=null);u.removeClass&&(t.removeClass(u.removeClass),u.removeClass=null);u.to&&(t.css(u.to),u.to=null)}();e||f.complete();e=!0}),f}var u=r||{},e,f;return u.$$prepared||(u=ti(u)),u.cleanupStyles&&(u.from=u.to=null),u.from&&(t.css(u.from),u.from=null),f=new i,{start:o,end:o}}}]};d=l("$compile");rf=new function(){};nh.$inject=["$provide","$$sanitizeUriProvider"];uf.prototype.isFirstChange=function(){return this.previousValue===rf};he=/^((?:x|data)[\:\-_])/i;rh=l("$controller");ce=/^(\S+)(\s+as\s+([\w$]+))?$/;var fy=function(){this.$get=["$document",function(n){return function(t){return t?!t.nodeType&&t instanceof e&&(t=t[0]):t=n[0].body,t.offsetWidth+1}}]},fh="application/json",le={"Content-Type":fh+";charset=utf-8"},ey=/^\[|^\{(?!\{)/,oy={"[":/]$/,"{":/}$/},sy=/^\)\]\}',?\n/,hy=l("$http"),eh=function(n){return function(){throw hy("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",n);}};ri=ut.$interpolateMinErr=l("$interpolate");ri.throwNoconcat=function(n){throw ri("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",n);};ri.interr=function(n,t){return ri("interr","Can't interpolate: {0}\n{1}",n,t.toString())};var by=function(){this.$get=["$window",function(n){var i=n.angular.callbacks,t={};return{createCallback:function(){var n="_"+(i.$$counter++).toString(36),r="angular.callbacks."+n,u=function(n){var t=function(n){t.data=n;t.called=!0};return t.id=n,t}(n);return t[r]=i[n]=u,r},wasCalled:function(n){return t[n].called},getResponse:function(n){return t[n].data},removeCallback:function(n){var r=t[n];delete i[r.id];delete t[n]}}}]},ky=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,dy={http:80,https:443,ftp:21},ff=l("$location");yh={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:ef("$$absUrl"),url:function(n){if(r(n))return this.$$url;var t=ky.exec(n);return(t[1]||""===n)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===n)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:ef("$$protocol"),host:ef("$$host"),port:ef("$$port"),path:ph("$$path",function(n){return"/"==(n=null!==n?n.toString():"").charAt(0)?n:"/"+n}),search:function(n,i){switch(arguments.length){case 0:return this.$$search;case 1:if(h(n)||w(n))n=n.toString(),this.$$search=is(n);else{if(!o(n))throw ff("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t(n=ti(n,{}),function(t,i){null==t&&delete n[i]});this.$$search=n}break;default:r(i)||null===i?delete this.$$search[n]:this.$$search[n]=i}return this.$$compose(),this},hash:ph("$$hash",function(n){return null!==n?n.toString():""}),replace:function(){return this.$$replace=!0,this}};t([vh,be,we],function(n){n.prototype=Object.create(yh);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==we||!this.$$html5)throw ff("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=r(t)?null:t,this}});it=l("$parse");var tp=Function.prototype.call,ip=Function.prototype.apply,rp=Function.prototype.bind;nu=y();t("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){nu[n]=!0});kh={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};sf=function(n){this.options=n};sf.prototype={constructor:sf,lex:function(n){var t,r;for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(t=this.text.charAt(this.index),'"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var i=t+this.peek(),u=i+this.peek(2),o=nu[t],f=nu[i],e=nu[u];o||f||e?(r=e?u:f?i:t,this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return-1!==t.indexOf(n)},peek:function(n){var t=n||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(n){return"0"<=n&&n<="9"&&"string"==typeof n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdentifierStart:function(n){return this.options.isIdentifierStart?this.options.isIdentifierStart(n,this.codePointAt(n)):this.isValidIdentifierStart(n)},isValidIdentifierStart:function(n){return"a"<=n&&n<="z"||"A"<=n&&n<="Z"||"_"===n||"$"===n},isIdentifierContinue:function(n){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(n,this.codePointAt(n)):this.isValidIdentifierContinue(n)},isValidIdentifierContinue:function(n,t){return this.isValidIdentifierStart(n,t)||this.isNumber(n)},codePointAt:function(n){return 1===n.length?n.charCodeAt(0):(n.charCodeAt(0)<<10)+n.charCodeAt(1)-56613888},peekMultichar:function(){var n=this.text.charAt(this.index),t=this.peek(),i,r;return t?(i=n.charCodeAt(0),r=t.charCodeAt(0),i>=55296&&i<=56319&&r>=56320&&r<=57343?n+t:n):n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;var r=u(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw it("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",n,r,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=a(this.text.charAt(this.index)),"."==t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"==t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"==n.charAt(n.length-1))n+=t;else{if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!=n.charAt(n.length-1))break;this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){var t=this.index,n;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){if(n=this.peekMultichar(),!this.isIdentifierContinue(n))break;this.index+=n.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(n){var f=this.index,t,r;this.index++;for(var i="",e=n,u=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),e+=t,u)"u"===t?(r=this.text.substring(this.index+1,this.index+5),r.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,i+=String.fromCharCode(parseInt(r,16))):i+=kh[t]||t,u=!1;else if("\\"===t)u=!0;else{if(t===n)return this.index++,void this.tokens.push({index:f,text:e,constant:!0,value:i});i+=t}this.index++}this.throwError("Unterminated quote",f)}};i=function(n,t){this.lexer=n;this.options=t};i.Program="Program";i.ExpressionStatement="ExpressionStatement";i.AssignmentExpression="AssignmentExpression";i.ConditionalExpression="ConditionalExpression";i.LogicalExpression="LogicalExpression";i.BinaryExpression="BinaryExpression";i.UnaryExpression="UnaryExpression";i.CallExpression="CallExpression";i.MemberExpression="MemberExpression";i.Identifier="Identifier";i.Literal="Literal";i.ArrayExpression="ArrayExpression";i.Property="Property";i.ObjectExpression="ObjectExpression";i.ThisExpression="ThisExpression";i.LocalsExpression="LocalsExpression";i.NGValueParameter="NGValueParameter";i.prototype={ast:function(n){this.text=n;this.tokens=this.lexer.lex(n);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var n=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&n.push(this.expressionStatement()),!this.expect(";"))return{type:i.Program,body:n}},expressionStatement:function(){return{type:i.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var n=this.expression();this.expect("|");)n=this.filter(n);return n},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary();return this.expect("=")&&(n={type:i.AssignmentExpression,left:n,right:this.assignment(),operator:"="}),n},ternary:function(){var n,t,r=this.logicalOR();return this.expect("?")&&(n=this.expression(),this.consume(":"))?(t=this.expression(),{type:i.ConditionalExpression,test:r,alternate:n,consequent:t}):r},logicalOR:function(){for(var n=this.logicalAND();this.expect("||");)n={type:i.LogicalExpression,operator:"||",left:n,right:this.logicalAND()};return n},logicalAND:function(){for(var n=this.equality();this.expect("&&");)n={type:i.LogicalExpression,operator:"&&",left:n,right:this.equality()};return n},equality:function(){for(var t,n=this.relational();t=this.expect("==","!=","===","!==");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var t,n=this.additive();t=this.expect("<",">","<=",">=");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var t,n=this.multiplicative();t=this.expect("+","-");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var t,n=this.unary();t=this.expect("*","/","%");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.unary()};return n},unary:function(){var n;return(n=this.expect("+","-","!"))?{type:i.UnaryExpression,operator:n.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var n,t;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?n=ti(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?n={type:i.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(n={type:i.CallExpression,callee:n,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(n={type:i.MemberExpression,object:n,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?n={type:i.MemberExpression,object:n,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return n},filter:function(n){for(var t=[n],r={type:i.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var n=[];if(")"!==this.peekToken().text)do n.push(this.filterChain());while(this.expect(","));return n},identifier:function(){var n=this.consume();return n.identifier||this.throwError("is not a valid identifier",n),{type:i.Identifier,name:n.text}},constant:function(){return{type:i.Literal,value:this.consume().value}},arrayDeclaration:function(){var n=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:i.ArrayExpression,elements:n}},object:function(){var n,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n={type:i.Property,kind:"init"};this.peek().constant?(n.key=this.constant(),n.computed=!1,this.consume(":"),n.value=this.expression()):this.peek().identifier?(n.key=this.identifier(),n.computed=!1,this.peek(":")?(this.consume(":"),n.value=this.expression()):n.value=n.key):this.peek("[")?(this.consume("["),n.key=this.expression(),this.consume("]"),n.computed=!0,this.consume(":"),n.value=this.expression()):this.throwError("invalid key",this.peek());t.push(n)}while(this.expect(","));return this.consume("}"),{type:i.ObjectExpression,properties:t}},throwError:function(n,t){throw it("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,n,t.index+1,this.text,this.text.substring(t.index));},consume:function(n){if(0===this.tokens.length)throw it("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw it("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){var e=this.tokens[n],f=e.text;if(f===t||f===i||f===r||f===u||!t&&!i&&!r&&!u)return e}return!1},expect:function(n,t,i,r){var u=this.peek(n,t,i,r);return!!u&&(this.tokens.shift(),u)},selfReferential:{"this":{type:i.ThisExpression},$locals:{type:i.LocalsExpression}}};fc.prototype={compile:function(n,i){var r=this,u=this.astBuilder.ast(n),s,e,o,h,c,f;return this.state={nextId:0,filters:{},expensiveChecks:i,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},k(u,r.$filter),e="",(this.stage="assign",s=ic(u))&&(this.state.computing="assign",o=this.nextId(),this.recurse(s,o),this.return_(o),e="fn.assign="+this.generateFunction("assign","s,v,l")),h=nc(u.body),r.stage="inputs",t(h,function(n,t){var i="fn"+t,u;r.state[i]={vars:[],body:[],own:{}};r.state.computing=i;u=r.nextId();r.recurse(n,u);r.return_(u);r.state.inputs.push(i);n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(u),c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+e+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,gi,ui,bh,wh,of,up,dh,n),this.state=this.stage=void 0,f.literal=rc(u),f.constant=uc(u),f},USE:"use",STRICT:"strict",watchFns:function(){var n=[],i=this.state.inputs,r=this;return t(i,function(t){n.push("var "+t+"="+r.generateFunction(t,"s"))}),i.length&&n.push("fn.inputs=["+i.join(",")+"];"),n.join("")},generateFunction:function(n,t){return"function("+t+"){"+this.varsPrefix(n)+this.body(n)+"};"},filterPrefix:function(){var n=[],i=this;return t(this.state.filters,function(t,r){n.push(t+"=$filter("+i.escape(r)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(n){return this.state[n].vars.length?"var "+this.state[n].vars.join(",")+";":""},body:function(n){return this.state[n].body.join("")},recurse:function(n,r,f,e,o,h){var l,v,y,a,p,c=this;if(e=e||s,!h&&u(n.watchId))return r=r||this.nextId(),void this.if_("i",this.lazyAssign(r,this.computedMember("i",n.watchId)),this.lazyRecurse(n,r,f,e,o,!0));switch(n.type){case i.Program:t(n.body,function(t,i){c.recurse(t.expression,void 0,void 0,function(n){v=n});i!==n.body.length-1?c.current().body.push(v,";"):c.return_(v)});break;case i.Literal:a=this.escape(n.value);this.assign(r,a);e(a);break;case i.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(n){v=n});a=n.operator+"("+this.ifDefined(v,0)+")";this.assign(r,a);e(a);break;case i.BinaryExpression:this.recurse(n.left,void 0,void 0,function(n){l=n});this.recurse(n.right,void 0,void 0,function(n){v=n});a="+"===n.operator?this.plus(l,v):"-"===n.operator?this.ifDefined(l,0)+n.operator+this.ifDefined(v,0):"("+l+")"+n.operator+"("+v+")";this.assign(r,a);e(a);break;case i.LogicalExpression:r=r||this.nextId();c.recurse(n.left,r);c.if_("&&"===n.operator?r:c.not(r),c.lazyRecurse(n.right,r));e(r);break;case i.ConditionalExpression:r=r||this.nextId();c.recurse(n.test,r);c.if_(r,c.lazyRecurse(n.alternate,r),c.lazyRecurse(n.consequent,r));e(r);break;case i.Identifier:r=r||this.nextId();f&&(f.context="inputs"===c.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);gi(n.name);c.if_("inputs"===c.stage||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_("inputs"===c.stage||"s",function(){o&&1!==o&&c.if_(c.not(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}"));c.assign(r,c.nonComputedMember("s",n.name))})},r&&c.lazyAssign(r,c.nonComputedMember("l",n.name)));(c.state.expensiveChecks||cf(n.name))&&c.addEnsureSafeObject(r);e(r);break;case i.MemberExpression:l=f&&(f.context=this.nextId())||this.nextId();r=r||this.nextId();c.recurse(n.object,l,void 0,function(){c.if_(c.notNull(l),function(){o&&1!==o&&c.addEnsureSafeAssignContext(l);n.computed?(v=c.nextId(),c.recurse(n.property,v),c.getStringValue(v),c.addEnsureSafeMemberName(v),o&&1!==o&&c.if_(c.not(c.computedMember(l,v)),c.lazyAssign(c.computedMember(l,v),"{}")),a=c.ensureSafeObject(c.computedMember(l,v)),c.assign(r,a),f&&(f.computed=!0,f.name=v)):(gi(n.property.name),o&&1!==o&&c.if_(c.not(c.nonComputedMember(l,n.property.name)),c.lazyAssign(c.nonComputedMember(l,n.property.name),"{}")),a=c.nonComputedMember(l,n.property.name),(c.state.expensiveChecks||cf(n.property.name))&&(a=c.ensureSafeObject(a)),c.assign(r,a),f&&(f.computed=!1,f.name=n.property.name))},function(){c.assign(r,"undefined")});e(r)},!!o);break;case i.CallExpression:r=r||this.nextId();n.filter?(v=c.filter(n.callee.name),y=[],t(n.arguments,function(n){var t=c.nextId();c.recurse(n,t);y.push(t)}),a=v+"("+y.join(",")+")",c.assign(r,a),e(r)):(v=c.nextId(),l={},y=[],c.recurse(n.callee,v,l,function(){c.if_(c.notNull(v),function(){c.addEnsureSafeFunction(v);t(n.arguments,function(n){c.recurse(n,c.nextId(),void 0,function(n){y.push(c.ensureSafeObject(n))})});l.name?(c.state.expensiveChecks||c.addEnsureSafeObject(l.context),a=c.member(l.context,l.name,l.computed)+"("+y.join(",")+")"):a=v+"("+y.join(",")+")";a=c.ensureSafeObject(a);c.assign(r,a)},function(){c.assign(r,"undefined")});e(r)}));break;case i.AssignmentExpression:if(v=this.nextId(),l={},!tc(n.left))throw it("lval","Trying to assign a value to a non l-value");this.recurse(n.left,void 0,l,function(){c.if_(c.notNull(l.context),function(){c.recurse(n.right,v);c.addEnsureSafeObject(c.member(l.context,l.name,l.computed));c.addEnsureSafeAssignContext(l.context);a=c.member(l.context,l.name,l.computed)+n.operator+v;c.assign(r,a);e(r||a)})},1);break;case i.ArrayExpression:y=[];t(n.elements,function(n){c.recurse(n,c.nextId(),void 0,function(n){y.push(n)})});a="["+y.join(",")+"]";this.assign(r,a);e(a);break;case i.ObjectExpression:y=[];p=!1;t(n.properties,function(n){n.computed&&(p=!0)});p?(r=r||this.nextId(),this.assign(r,"{}"),t(n.properties,function(n){n.computed?(l=c.nextId(),c.recurse(n.key,l)):l=n.key.type===i.Identifier?n.key.name:""+n.key.value;v=c.nextId();c.recurse(n.value,v);c.assign(c.member(r,l,n.computed),v)})):(t(n.properties,function(t){c.recurse(t.value,n.constant?void 0:c.nextId(),void 0,function(n){y.push(c.escape(t.key.type===i.Identifier?t.key.name:""+t.key.value)+":"+n)})}),a="{"+y.join(",")+"}",this.assign(r,a));e(r||a);break;case i.ThisExpression:this.assign(r,"s");e("s");break;case i.LocalsExpression:this.assign(r,"l");e("l");break;case i.NGValueParameter:this.assign(r,"v");e("v")}},getHasOwnProperty:function(n,t){var i=n+"."+t,r=this.current().own;return r.hasOwnProperty(i)||(r[i]=this.nextId(!1,n+"&&("+this.escape(t)+" in "+n+")")),r[i]},assign:function(n,t){if(n)return this.current().body.push(n,"=",t,";"),n},filter:function(n){return this.state.filters.hasOwnProperty(n)||(this.state.filters[n]=this.nextId(!0)),this.state.filters[n]},ifDefined:function(n,t){return"ifDefined("+n+","+this.escape(t)+")"},plus:function(n,t){return"plus("+n+","+t+")"},return_:function(n){this.current().body.push("return ",n,";")},if_:function(n,t,i){if(!0===n)t();else{var r=this.current().body;r.push("if(",n,"){");t();r.push("}");i&&(r.push("else{"),i(),r.push("}"))}},not:function(n){return"!("+n+")"},notNull:function(n){return n+"!=null"},nonComputedMember:function(n,t){return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(t)?n+"."+t:n+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(n,t){return n+"["+t+"]"},member:function(n,t,i){return i?this.computedMember(n,t):this.nonComputedMember(n,t)},addEnsureSafeObject:function(n){this.current().body.push(this.ensureSafeObject(n),";")},addEnsureSafeMemberName:function(n){this.current().body.push(this.ensureSafeMemberName(n),";")},addEnsureSafeFunction:function(n){this.current().body.push(this.ensureSafeFunction(n),";")},addEnsureSafeAssignContext:function(n){this.current().body.push(this.ensureSafeAssignContext(n),";")},ensureSafeObject:function(n){return"ensureSafeObject("+n+",text)"},ensureSafeMemberName:function(n){return"ensureSafeMemberName("+n+",text)"},ensureSafeFunction:function(n){return"ensureSafeFunction("+n+",text)"},getStringValue:function(n){this.assign(n,"getStringValue("+n+")")},ensureSafeAssignContext:function(n){return"ensureSafeAssignContext("+n+",text)"},lazyRecurse:function(n,t,i,r,u,f){var e=this;return function(){e.recurse(n,t,i,r,u,f)}},lazyAssign:function(n,t){var i=this;return function(){i.assign(n,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)},escape:function(n){if(h(n))return"'"+n.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(n))return n.toString();if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if(void 0===n)return"undefined";throw it("esc","IMPOSSIBLE");},nextId:function(n,t){var i="v"+this.state.nextId++;return n||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}};ec.prototype={compile:function(n,i){var l,o,h=this,r=this.astBuilder.ast(n),f,c,e,u;return this.expression=n,this.expensiveChecks=i,k(r,h.$filter),(l=ic(r))&&(o=this.recurse(l)),c=nc(r.body),c&&(f=[],t(c,function(n,t){var i=h.recurse(n);n.input=i;f.push(i);n.watchId=t})),e=[],t(r.body,function(n){e.push(h.recurse(n.expression))}),u=0===r.body.length?s:1===r.body.length?e[0]:function(n,i){var r;return t(e,function(t){r=t(n,i)}),r},o&&(u.assign=function(n,t,i){return o(n,i,t)}),f&&(u.inputs=f),u.literal=rc(r),u.constant=uc(r),u},recurse:function(n,r,u){var s,o,f,e=this;if(n.input)return this.inputs(n.input,n.watchId);switch(n.type){case i.Literal:return this.value(n.value,r);case i.UnaryExpression:return o=this.recurse(n.argument),this["unary"+n.operator](o,r);case i.BinaryExpression:case i.LogicalExpression:return s=this.recurse(n.left),o=this.recurse(n.right),this["binary"+n.operator](s,o,r);case i.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),r);case i.Identifier:return gi(n.name,e.expression),e.identifier(n.name,e.expensiveChecks||cf(n.name),r,u,e.expression);case i.MemberExpression:return s=this.recurse(n.object,!1,!!u),n.computed||(gi(n.property.name,e.expression),o=n.property.name),n.computed&&(o=this.recurse(n.property)),n.computed?this.computedMember(s,o,r,u,e.expression):this.nonComputedMember(s,o,e.expensiveChecks,r,u,e.expression);case i.CallExpression:return f=[],t(n.arguments,function(n){f.push(e.recurse(n))}),n.filter&&(o=this.$filter(n.callee.name)),n.filter||(o=this.recurse(n.callee,!0)),n.filter?function(n,t,i,u){for(var h,s=[],e=0;e<f.length;++e)s.push(f[e](n,t,i,u));return h=o.apply(void 0,s,u),r?{context:void 0,name:void 0,value:h}:h}:function(n,t,i,u){var c,s=o(n,t,i,u),l,h;if(null!=s.value){for(ui(s.context,e.expression),bh(s.value,e.expression),l=[],h=0;h<f.length;++h)l.push(ui(f[h](n,t,i,u),e.expression));c=ui(s.value.apply(s.context,l),e.expression)}return r?{value:c}:c};case i.AssignmentExpression:return s=this.recurse(n.left,!0,1),o=this.recurse(n.right),function(n,t,i,u){var f=s(n,t,i,u),h=o(n,t,i,u);return ui(f.value,e.expression),of(f.context),f.context[f.name]=h,r?{value:h}:h};case i.ArrayExpression:return f=[],t(n.elements,function(n){f.push(e.recurse(n))}),function(n,t,i,u){for(var e=[],o=0;o<f.length;++o)e.push(f[o](n,t,i,u));return r?{value:e}:e};case i.ObjectExpression:return f=[],t(n.properties,function(n){n.computed?f.push({key:e.recurse(n.key),computed:!0,value:e.recurse(n.value)}):f.push({key:n.key.type===i.Identifier?n.key.name:""+n.key.value,computed:!1,value:e.recurse(n.value)})}),function(n,t,i,u){for(var o={},e=0;e<f.length;++e)f[e].computed?o[f[e].key(n,t,i,u)]=f[e].value(n,t,i,u):o[f[e].key]=f[e].value(n,t,i,u);return r?{value:o}:o};case i.ThisExpression:return function(n){return r?{value:n}:n};case i.LocalsExpression:return function(n,t){return r?{value:t}:t};case i.NGValueParameter:return function(n,t,i){return r?{value:i}:i}}},"unary+":function(n,t){return function(i,r,f,e){var o=n(i,r,f,e);return o=u(o)?+o:0,t?{value:o}:o}},"unary-":function(n,t){return function(i,r,f,e){var o=n(i,r,f,e);return o=u(o)?-o:0,t?{value:o}:o}},"unary!":function(n,t){return function(i,r,u,f){var e=!n(i,r,u,f);return t?{value:e}:e}},"binary+":function(n,t,i){return function(r,u,f,e){var o=dh(n(r,u,f,e),t(r,u,f,e));return i?{value:o}:o}},"binary-":function(n,t,i){return function(r,f,e,o){var s=n(r,f,e,o),h=t(r,f,e,o),c=(u(s)?s:0)-(u(h)?h:0);return i?{value:c}:c}},"binary*":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)*t(r,u,f,e);return i?{value:o}:o}},"binary/":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)/t(r,u,f,e);return i?{value:o}:o}},"binary%":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)%t(r,u,f,e);return i?{value:o}:o}},"binary===":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)===t(r,u,f,e);return i?{value:o}:o}},"binary!==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!==t(r,u,f,e);return i?{value:o}:o}},"binary==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)==t(r,u,f,e);return i?{value:o}:o}},"binary!=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!=t(r,u,f,e);return i?{value:o}:o}},"binary<":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<t(r,u,f,e);return i?{value:o}:o}},"binary>":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>t(r,u,f,e);return i?{value:o}:o}},"binary<=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<=t(r,u,f,e);return i?{value:o}:o}},"binary>=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>=t(r,u,f,e);return i?{value:o}:o}},"binary&&":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)&&t(r,u,f,e);return i?{value:o}:o}},"binary||":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)||t(r,u,f,e);return i?{value:o}:o}},"ternary?:":function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o)?t(u,f,e,o):i(u,f,e,o);return r?{value:s}:s}},value:function(n,t){return function(){return t?{context:void 0,name:void 0,value:n}:n}},identifier:function(n,t,i,r,u){return function(f,e){var o=e&&n in e?e:f,s;return r&&1!==r&&o&&!o[n]&&(o[n]={}),s=o?o[n]:void 0,t&&ui(s,u),i?{context:o,name:n,value:s}:s}},computedMember:function(n,t,i,r,u){return function(f,e,o,s){var c,l,h=n(f,e,o,s);return null!=h&&(gi(c=wh(c=t(f,e,o,s)),u),r&&1!==r&&(of(h),h&&!h[c]&&(h[c]={})),ui(l=h[c],u)),i?{context:h,name:c,value:l}:l}},nonComputedMember:function(n,t,i,r,u,f){return function(e,o,s,h){var c=n(e,o,s,h),l;return u&&1!==u&&(of(c),c&&!c[t]&&(c[t]={})),l=null!=c?c[t]:void 0,(i||cf(t))&&ui(l,f),r?{context:c,name:t,value:l}:l}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};hf=function(n,t,r){this.lexer=n;this.$filter=t;this.options=r;this.ast=new i(n,r);this.astCompiler=r.csp?new ec(this.ast,t):new fc(this.ast,t)};hf.prototype={constructor:hf,parse:function(n){return this.astCompiler.compile(n,this.options.expensiveChecks)}};oc=Object.prototype.valueOf;kt=l("$sce");ht={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};cc=l("$compile");g=n.document.createElement("a");de=fi(n.location.href);ac.$inject=["$document"];vc.$inject=["$provide"];var yc=22,pc=".",no="0";wc.$inject=["$locale"];bc.$inject=["$locale"];var gp={yyyy:nt("FullYear",4,0,!1,!0),yy:nt("FullYear",2,0,!0,!0),y:nt("FullYear",1,0,!1,!0),MMMM:tu("Month"),MMM:tu("Month",!0),MM:nt("Month",2,1),M:nt("Month",1,1),LLLL:tu("Month",!1,!0),dd:nt("Date",2),d:nt("Date",1),HH:nt("Hours",2),H:nt("Hours",1),hh:nt("Hours",2,-12),h:nt("Hours",1,-12),mm:nt("Minutes",2),m:nt("Minutes",1),ss:nt("Seconds",2),s:nt("Seconds",1),sss:nt("Milliseconds",3),EEEE:tu("Day"),EEE:tu("Day",!0),a:function(n,t){return n.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(n,t,i){var r=-1*i,u=r>=0?"+":"";return u+(lf(Math[r>0?"floor":"ceil"](r/60),2)+lf(Math.abs(r%60),2))},ww:gc(2),w:gc(1),G:to,GG:to,GGG:to,GGGG:function(n,t){return n.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},nw=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,tw=/^\-?\d+$/;nl.$inject=["$locale"];tl=ft(a);il=ft(ir);rl.$inject=["$parse"];ul=ft({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if("a"===t[0].nodeName.toLowerCase()){var i="[object SVGAnimatedString]"===rt.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});iu={};t(br,function(n,t){function u(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if("multiple"!=n){var i=pt("ng-"+t),r=u;"checked"===n&&(r=function(n,t,r){r.ngModel!==r[i]&&u(n,0,r)});iu[i]=function(){return{restrict:"A",priority:100,link:r}}}});t(ee,function(n,t){iu[t]=function(){return{priority:100,link:function(n,i,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var u=r.ngPattern.match(sa);if(u)return void r.$set("ngPattern",new RegExp(u[1],u[2]))}n.$watch(r[t],function(n){r.$set(t,n)})}}}});t(["src","srcset","href"],function(n){var t=pt("ng-"+n);iu[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===rt.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){t?(u.$set(f,t),dt&&e&&r.prop(e,u[f])):"href"===n&&u.$set(f,null)})}}}});ru={$addControl:s,$$renameControl:function(n,t){n.$name=t},$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s,$setSubmitted:s};ro="ng-submitted";fl.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var el=function(n){return["$timeout","$parse",function(t,i){function r(n){return""===n?i('this[""]').assign:i(n).assign||s}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:fl,compile:function(i,u){i.addClass(tr).addClass(eu);var f=u.name?"name":!(!n||!u.ngForm)&&"ngForm";return{pre:function(n,i,u,e){var o=e[0],c,h;"action"in u||(c=function(t){n.$apply(function(){o.$commitViewValue();o.$setSubmitted()});t.preventDefault()},yu(i[0],"submit",c),i.on("$destroy",function(){t(function(){yr(i[0],"submit",c)},0,!1)}));(e[1]||o.$$parentForm).$addControl(o);h=f?r(o.$name):s;f&&(h(n,o),u.$observe(f,function(t){o.$name!==t&&(h(n,void 0),o.$$parentForm.$$renameControl(o,t),(h=r(o.$name))(n,o))}));i.on("$destroy",function(){o.$$parentForm.$removeControl(o);h(n,void 0);v(o,ru)})}}}}}]},uw=el(),fw=el(!0),ew=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ow=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,sw=/^(?=.{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])?)*$/,hw=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,ol=/^(\d{4,})-(\d{2})-(\d{2})$/,sl=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,uo=/^(\d{4,})-W(\d\d)$/,hl=/^(\d{4,})-(\d\d)$/,cl=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,cw="keydown wheel mousedown",ll=y();t("date,datetime-local,month,time,week".split(","),function(n){ll[n]=!0});fo={text:function(n,t,i,r,u,f){uu(n,t,i,r,u,f);eo(r)},date:fu("date",ol,af(ol,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":fu("datetimelocal",sl,af(sl,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:fu("time",cl,af(cl,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:fu("week",uo,function(n,t){var i;if(et(n))return n;if(h(n)&&(uo.lastIndex=0,i=uo.exec(n),i)){var r=+i[1],s=+i[2],u=0,f=0,e=0,o=0,c=dc(r),l=7*(s-1);return t&&(u=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(r,0,c.getDate()+l,u,f,e,o)}return NaN},"yyyy-Www"),month:fu("month",hl,af(hl,["yyyy","MM"]),"yyyy-MM"),number:function(n,t,i,f,e,o){var s,h;(al(n,t,i,f),uu(n,t,i,f,e,o),f.$$parserName="number",f.$parsers.push(function(n){return f.$isEmpty(n)?null:hw.test(n)?parseFloat(n):void 0}),f.$formatters.push(function(n){if(!f.$isEmpty(n)){if(!w(n))throw ou("numfmt","Expected `{0}` to be a number",n);n=n.toString()}return n}),u(i.min)||i.ngMin)&&(f.$validators.min=function(n){return f.$isEmpty(n)||r(s)||n>=s},i.$observe("min",function(n){u(n)&&!w(n)&&(n=parseFloat(n));s=w(n)&&!isNaN(n)?n:void 0;f.$validate()}));(u(i.max)||i.ngMax)&&(f.$validators.max=function(n){return f.$isEmpty(n)||r(h)||n<=h},i.$observe("max",function(n){u(n)&&!w(n)&&(n=parseFloat(n));h=w(n)&&!isNaN(n)?n:void 0;f.$validate()}))},url:function(n,t,i,r,u,f){uu(n,t,i,r,u,f);eo(r);r.$$parserName="url";r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||ow.test(i)}},email:function(n,t,i,r,u,f){uu(n,t,i,r,u,f);eo(r);r.$$parserName="email";r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||sw.test(i)}},radio:function(n,t,i,u){r(i.name)&&t.attr("name",su());t.on("click",function(n){t[0].checked&&u.$setViewValue(i.value,n&&n.type)});u.$render=function(){var n=i.value;t[0].checked=n==u.$viewValue};i.$observe("value",u.$render)},checkbox:function(n,t,i,r,u,f,e,o){var s=vl(o,n,"ngTrueValue",i.ngTrueValue,!0),h=vl(o,n,"ngFalseValue",i.ngFalseValue,!1);t.on("click",function(n){r.$setViewValue(t[0].checked,n&&n.type)});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return!1===n};r.$formatters.push(function(n){return ot(n,s)});r.$parsers.push(function(n){return n?s:h})},hidden:s,button:s,submit:s,reset:s,file:s};var yl=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(fo[a(e.type)]||fo.text)(u,f,e,o[0],t,n,i,r)}}}}],lw=/^(true|false|\d+)$/,aw=function(){return{restrict:"A",priority:100,compile:function(n,t){return lw.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},vw=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,i,u){n.$$addBindingInfo(i,u.ngBind);i=i[0];t.$watch(u.ngBind,function(n){i.textContent=r(n)?"":n})}}}}],yw=["$interpolate","$compile",function(n,t){return{compile:function(i){return t.$$addBindingClass(i),function(i,u,f){var e=n(u.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(u,e.expressions);u=u[0];f.$observe("ngBindTemplate",function(n){u.textContent=r(n)?"":n})}}}}],pw=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(t){return n.valueOf(t)});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){var i=f(t);r.html(n.getTrustedHtml(i)||"")})}}}}],ww=ft({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}});var bw=oo("",!0),kw=oo("Odd",0),dw=oo("Even",1),gw=nr({compile:function(n,t){t.$set("ngCloak",void 0);n.removeClass("ng-cloak")}}),nb=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],pl={},tb={blur:!0,focus:!0};t("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=pt("ng-"+n);pl[t]=["$parse","$rootScope",function(i,r){return{restrict:"A",compile:function(u,f){var e=i(f[t],null,!0);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};tb[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var ib=["$animate","$compile",function(n,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.$$createComment("end ngIf",u.ngIf);h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=au(h.clone),n.leave(o).then(function(){o=null}),h=null))})}}}],rb=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ut.noop,compile:function(r,f){var o=f.ngInclude||f.src,s=f.onload||"",e=f.autoscroll;return function(r,f,h,c,l){var y,a,v,p=0,w=function(){a&&(a.remove(),a=null);y&&(y.$destroy(),y=null);v&&(i.leave(v).then(function(){a=null}),a=v,v=null)};r.$watch(o,function(o){var a=function(){u(e)&&(!e||r.$eval(e))&&t()},h=++p;o?(n(o,!0).then(function(n){var t,u;r.$$destroyed||h!==p||(t=r.$new(),c.template=n,u=l(t,function(n){w();i.enter(n,null,f).then(a)}),v=u,(y=t).$emit("$includeContentLoaded",o),r.$eval(s))},function(){r.$$destroyed||h===p&&(w(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],ub=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){if(rt.call(r[0]).match(/SVG/))return r.empty(),void t(ls(f.template,n.document).childNodes)(i,function(n){r.append(n)},{futureParentElement:r});r.html(f.template);t(r.contents())(i)}}}],fb=nr({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),eb=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,i,u,f){var e=i.attr(u.$attr.ngList)||", ",o="false"!==u.ngTrim,s=o?p(e):e;f.$parsers.push(function(n){if(!r(n)){var i=[];return n&&t(n.split(s),function(n){n&&i.push(o?p(n):n)}),i}});f.$formatters.push(function(n){if(c(n))return n.join(e)});f.$isEmpty=function(n){return!n||!n.length}}}},eu="ng-valid",wl="ng-invalid",tr="ng-pristine",vf="ng-dirty",so="ng-untouched",bl="ng-touched",kl="ng-pending",dl="ng-empty",gl="ng-not-empty",ou=l("ngModel"),ob=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(n,i,e,o,h,c,l,a,v,y){var g;this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$$rawModelValue=void 0;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=void 0;this.$name=y(e.name||"",!1)(n);this.$$parentForm=ru;var b,k=h(e.ngModel),tt=k.assign,nt=k,it=tt,d=null,p=this;this.$$setOptions=function(n){if(p.$options=n,n&&n.getterSetter){var t=h(e.ngModel+"()"),i=h(e.ngModel+"($$$p)");nt=function(n){var i=k(n);return f(i)&&(i=t(n)),i};it=function(n,t){f(k(n))?i(n,{$$$p:t}):tt(n,t)}}else if(!k.assign)throw ou("nonassign","Expression '{0}' is non-assignable. Element: {1}",e.ngModel,yt(o));};this.$render=s;this.$isEmpty=function(n){return r(n)||""===n||null===n||n!=n};this.$$updateEmptyClasses=function(n){p.$isEmpty(n)?(c.removeClass(o,gl),c.addClass(o,dl)):(c.removeClass(o,dl),c.addClass(o,gl))};g=0;na({ctrl:this,$element:o,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]},$animate:c});this.$setPristine=function(){p.$dirty=!1;p.$pristine=!0;c.removeClass(o,vf);c.addClass(o,tr)};this.$setDirty=function(){p.$dirty=!0;p.$pristine=!1;c.removeClass(o,tr);c.addClass(o,vf);p.$$parentForm.$setDirty()};this.$setUntouched=function(){p.$touched=!1;p.$untouched=!0;c.setClass(o,so,bl)};this.$setTouched=function(){p.$touched=!0;p.$untouched=!1;c.setClass(o,bl,so)};this.$rollbackViewValue=function(){l.cancel(d);p.$viewValue=p.$$lastCommittedViewValue;p.$render()};this.$validate=function(){if(!w(p.$modelValue)||!isNaN(p.$modelValue)){var t=p.$$lastCommittedViewValue,n=p.$$rawModelValue,i=p.$valid,r=p.$modelValue,u=p.$options&&p.$options.allowInvalid;p.$$runValidators(n,t,function(t){u||i===t||(p.$modelValue=t?n:void 0,p.$modelValue!==r&&p.$$writeModelToScope())})}};this.$$runValidators=function(n,i,u){function f(n,t){c===g&&p.$setValidity(n,t)}function o(n){c===g&&u(n)}var e,h,c=++g;(function(){var n=p.$$parserName||"parse";return r(b)?(f(n,null),!0):(b||(t(p.$validators,function(n,t){f(t,null)}),t(p.$asyncValidators,function(n,t){f(t,null)})),f(n,b),b)})()?function(){var r=!0;return(t(p.$validators,function(t,u){var e=t(n,i);r=r&&e;f(u,e)}),!r)?(t(p.$asyncValidators,function(n,t){f(t,null)}),!1):!0}()?(e=[],h=!0,t(p.$asyncValidators,function(t,r){var u=t(n,i);if(!hu(u))throw ou("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",u);f(r,void 0);e.push(u.then(function(){f(r,!0)},function(){h=!1;f(r,!1)}))}),e.length?v.all(e).then(function(){o(h)},s):o(!0)):o(!1):o(!1)};this.$commitViewValue=function(){var n=p.$viewValue;l.cancel(d);(p.$$lastCommittedViewValue!==n||""===n&&p.$$hasNativeValidators)&&(p.$$updateEmptyClasses(n),p.$$lastCommittedViewValue=n,p.$pristine&&this.$setDirty(),this.$$parseAndValidate())};this.$$parseAndValidate=function(){function e(){p.$modelValue!==f&&p.$$writeModelToScope()}var t=p.$$lastCommittedViewValue,i,f,u;if(b=!r(t)||void 0)for(i=0;i<p.$parsers.length;i++)if(r(t=p.$parsers[i](t))){b=!1;break}w(p.$modelValue)&&isNaN(p.$modelValue)&&(p.$modelValue=nt(n));f=p.$modelValue;u=p.$options&&p.$options.allowInvalid;p.$$rawModelValue=t;u&&(p.$modelValue=t,e());p.$$runValidators(t,p.$$lastCommittedViewValue,function(n){u||(p.$modelValue=n?t:void 0,e())})};this.$$writeModelToScope=function(){it(n,p.$modelValue);t(p.$viewChangeListeners,function(n){try{n()}catch(n){i(n)}})};this.$setViewValue=function(n,t){p.$viewValue=n;p.$options&&!p.$options.updateOnDefault||p.$$debounceViewValueCommit(t)};this.$$debounceViewValueCommit=function(t){var i,r=0,f=p.$options;f&&u(f.debounce)&&(w(i=f.debounce)?r=i:w(i[t])?r=i[t]:w(i.default)&&(r=i.default));l.cancel(d);r?d=l(function(){p.$commitViewValue()},r):a.$$phase?p.$commitViewValue():n.$apply(function(){p.$commitViewValue()})};n.$watch(function(){var t=nt(n);if(t!==p.$modelValue&&(p.$modelValue==p.$modelValue||t==t)){p.$modelValue=p.$$rawModelValue=t;b=void 0;for(var r=p.$formatters,u=r.length,i=t;u--;)i=r[u](i);p.$viewValue!==i&&(p.$$updateEmptyClasses(i),p.$viewValue=p.$$lastCommittedViewValue=i,p.$render(),p.$$runValidators(t,i,s))}return t})}],sb=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ob,priority:1,compile:function(t){return t.addClass(tr).addClass(so).addClass(eu),{pre:function(n,t,i,r){var u=r[0],f=r[1]||u.$$parentForm;u.$$setOptions(r[2]&&r[2].$options);f.$addControl(u);i.$observe("name",function(n){u.$name!==n&&u.$$parentForm.$$renameControl(u,n)});n.$on("$destroy",function(){u.$$parentForm.$removeControl(u)})},post:function(t,i,r,u){var f=u[0];f.$options&&f.$options.updateOn&&i.on(f.$options.updateOn,function(n){f.$$debounceViewValueCommit(n&&n.type)});i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(f.$setTouched):t.$apply(f.$setTouched))})}}}}}],hb=/(\s+|^)default(\s+|$)/,cb=function(){return{restrict:"A",controller:["$scope","$attrs",function(n,t){var i=this;this.$options=ti(n.$eval(t.ngModelOptions));u(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=p(this.$options.updateOn.replace(hb,function(){return i.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}};var lb=nr({terminal:!0,priority:1e3}),ab=l("ngOptions"),vb=/^\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]+?))?$/,yb=["$compile","$document","$parse",function(i,r,f){var o=n.document.createElement("option"),h=n.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(n,t,i,r){r[0].registerOption=s},post:function(n,s,l,a){function et(n,t){var i=o.cloneNode(!1);t.appendChild(i),function(n,t){n.element=t;t.disabled=n.disabled;n.label!==t.label&&(t.label=n.label,t.textContent=n.label);n.value!==t.value&&(t.value=n.selectValue)}(n,i)}function st(){var r=v&&b.readValue(),n,t,f,i;if(v)for(n=v.items.length-1;n>=0;n--)t=v.items[n],u(t.group)?tf(t.element.parentNode):tf(t.element);v=w.getOptions();f={};(k&&s.prepend(y),v.items.forEach(function(n){var t;u(n.group)?((t=f[n.group])||(t=h.cloneNode(!1),tt.appendChild(t),t.label=null===n.group?"null":n.group,f[n.group]=t),et(n,t)):et(n,tt)}),s[0].appendChild(tt),p.$render(),p.$isEmpty(r))||(i=b.readValue(),(w.trackBy||ft?ot(r,i):r===i)||(p.$setViewValue(i),p.$render()))}for(var v,k,d,y,b=a[0],p=a[1],ft=l.multiple,g=0,nt=s.children(),ht=nt.length;g<ht;g++)if(""===nt[g].value){y=nt.eq(g);break}k=!!y;d=e(o.cloneNode(!1));d.val("?");var w=function(n,t,i){function nt(n,t,i,r,u){this.selectValue=n;this.viewValue=t;this.label=i;this.group=r;this.disabled=u}function w(n){var t,i;if(!s&&ni(n))t=n;else for(i in t=[],n)n.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t.push(i);return t}var r=n.match(vb);if(!r)throw ab("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",n,yt(t));var o=r[5]||r[7],s=r[6],l=/ as /.test(r[0])&&r[1],u=r[9],b=f(r[2]?r[1]:o),k=l&&f(l)||b,d=u&&f(u),h=u?function(n,t){return d(i,t)}:function(n){return ci(n)},a=function(n,t){return h(n,c(n,t))},v=f(r[2]||r[1]),g=f(r[3]||""),y=f(r[4]||""),p=f(r[8]),e={},c=s?function(n,t){return e[s]=t,e[o]=n,e}:function(n){return e[o]=n,e};return{trackBy:u,getTrackByValue:a,getWatchables:f(p,function(n){for(var l,a,t=[],f=w(n=n||[]),p=f.length,u=0;u<p;u++){var o=n===f?u:f[u],s=n[o],e=c(s,o),b=h(s,e);(t.push(b),r[2]||r[1])&&(l=v(i,e),t.push(l));r[4]&&(a=y(i,e),t.push(a))}return t}),getOptions:function(){for(var o=[],r={},f=p(i)||[],e=w(f),tt=e.length,t=0;t<tt;t++){var s=f===e?t:e[t],it=f[s],n=c(it,s),l=k(i,n),b=h(l,n),d=new nt(b,l,v(i,n),g(i,n),y(i,n));o.push(d);r[b]=d}return{items:o,selectValueMap:r,getOptionFromViewValue:function(n){return r[a(n)]},getViewValueFromOption:function(n){return u?ut.copy(n.viewValue):n.viewValue}}}}}(l.ngOptions,s,n),tt=r[0].createDocumentFragment(),it=function(){k||y.remove()},rt=function(){d.remove()};ft?(p.$isEmpty=function(n){return!n||0===n.length},b.writeValue=function(n){v.items.forEach(function(n){n.element.selected=!1});n&&n.forEach(function(n){var t=v.getOptionFromViewValue(n);t&&(t.element.selected=!0)})},b.readValue=function(){var i=s.val()||[],n=[];return t(i,function(t){var i=v.selectValueMap[t];i&&!i.disabled&&n.push(v.getViewValueFromOption(i))}),n},w.trackBy&&n.$watchCollection(function(){if(c(p.$viewValue))return p.$viewValue.map(function(n){return w.getTrackByValue(n)})},function(){p.$render()})):(b.writeValue=function(n){var t=v.getOptionFromViewValue(n);t?(s[0].value!==t.selectValue&&(rt(),it(),s[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===n||k?(rt(),k||s.prepend(y),s.val(""),y.prop("selected",!0),y.attr("selected",!0)):(it(),s.prepend(d),s.val("?"),d.prop("selected",!0),d.attr("selected",!0))},b.readValue=function(){var n=v.selectValueMap[s.val()];return n&&!n.disabled?(it(),rt(),v.getViewValueFromOption(n)):null},w.trackBy&&n.$watch(function(){return w.getTrackByValue(p.$viewValue)},function(){p.$render()}));k?(y.remove(),i(y)(n),y.removeClass("ng-scope")):y=e(o.cloneNode(!1));s.empty();st();n.$watchCollection(w.getWatchables,st)}}}}],pb=["$locale","$interpolate","$log",function(n,i,u){var f=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(o,h,c){function g(n){h.text(n||"")}var l,p=c.count,b=c.$attr.when&&h.attr(c.$attr.when),k=c.offset||0,v=o.$eval(b)||{},d={},nt=i.startSymbol(),tt=i.endSymbol(),it=nt+p+"-"+k+tt,y=ut.noop;t(c,function(n,t){var i=e.exec(t),r;i&&(r=(i[1]?"-":"")+a(i[2]),v[r]=h.attr(c.$attr[t]))});t(v,function(n,t){d[t]=i(n.replace(f,it))});o.$watch(p,function(t){var i=parseFloat(t),e=isNaN(i),f;(e||i in v||(i=n.pluralCat(i-k)),i===l||e&&w(l)&&isNaN(l))||(y(),f=d[i],r(f)?(null!=t&&u.debug("ngPluralize: no rule defined for '"+i+"' in "+b),y=s,g()):y=o.$watch(f,g),l=i)})}}}],wb=["$parse","$animate","$compile",function(n,i,r){var f="$$NG_REMOVED",u=l("ngRepeat"),e=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=0===t;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=0==(1&t))},o=function(n){return n.clone[0]},s=function(n){return n.clone[n.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(h,c){var w=c.ngRepeat,rt=r.$$createComment("end ngRepeat",w),l=w.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),k,d,tt,it,b,v,p;if(!l)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",w);var g=l[1],ut=l[2],a=l[3],nt=l[4];if(!(l=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);if(b=l[3]||l[1],v=l[2],a&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(a)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(a)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",a);return p={$id:ci},nt?k=n(nt):(tt=function(n,t){return ci(t)},it=function(n){return n}),function(n,r,h,c,l){k&&(d=function(t,i,r){return v&&(p[v]=t),p[b]=i,p.$index=r,k(n,p)});var g=y();n.$watchCollection(ut,function(h){var c,pt,ft,et,ut,ot,k,yt,nt,p,st,ht,ct=r[0],lt=y(),vt,wt;if(a&&(n[a]=h),ni(h))nt=h,yt=d||tt;else for(vt in yt=d||it,nt=[],h)at.call(h,vt)&&"$"!==vt.charAt(0)&&nt.push(vt);for(et=nt.length,st=new Array(et),c=0;c<et;c++)if(ut=h===nt?c:nt[c],ot=h[ut],k=yt(ut,ot,c),g[k])p=g[k],delete g[k],lt[k]=p,st[c]=p;else{if(lt[k])throw t(st,function(n){n&&n.scope&&(g[n.id]=n)}),u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",w,k,ot);st[c]={id:k,scope:void 0,clone:void 0};lt[k]=!0}for(wt in g){if(ht=au((p=g[wt]).clone),i.leave(ht),ht[0].parentNode)for(c=0,pt=ht.length;c<pt;c++)ht[c][f]=!0;p.scope.$destroy()}for(c=0;c<et;c++)if(ut=h===nt?c:nt[c],ot=h[ut],(p=st[c]).scope){ft=ct;do ft=ft.nextSibling;while(ft&&ft[f]);o(p)!=ft&&i.move(au(p.clone),null,ct);ct=s(p);e(p.scope,c,b,ot,v,ut,et)}else l(function(n,t){p.scope=t;var r=rt.cloneNode(!1);n[n.length++]=r;i.enter(n,null,ct);ct=r;p.clone=n;lt[p.id]=p;e(p.scope,c,b,ot,v,ut,et)});g=lt})}}}}],ia="ng-hide",ra="ng-hide-animate",bb=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,ia,{tempClasses:ra})})}}}],kb=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,ia,{tempClasses:ra})})}}}],db=nr(function(n,i,r){n.$watch(r.ngStyle,function(n,r){r&&n!==r&&t(r,function(n,t){i.css(t,"")});n&&i.css(n)},!0)}),gb=["$animate","$compile",function(n,i){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(r,u,f,e){var l=f.ngSwitch||f.on,c=[],h=[],o=[],s=[],a=function(n,t){return function(){n.splice(t,1)}};r.$watch(l,function(r){for(var l,u=0,f=o.length;u<f;++u)n.cancel(o[u]);for(o.length=0,u=0,f=s.length;u<f;++u)l=au(h[u].clone),s[u].$destroy(),(o[u]=n.leave(l)).then(a(o,u));h.length=0;s.length=0;(c=e.cases["!"+r]||e.cases["?"])&&t(c,function(t){t.transclude(function(r,u){var f,e;s.push(u);f=t.element;r[r.length++]=i.$$createComment("end ngSwitchWhen");e={clone:r};h.push(e);n.enter(r,f.parent(),f)})})})}}}],nk=nr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),tk=nr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),ik=l("ngTransclude"),rk=["$compile",function(n){return{restrict:"EAC",terminal:!0,compile:function(t){var i=n(t.contents());return t.empty(),function(n,t,r,u,f){function o(){i(n,function(n){t.append(n)})}if(!f)throw ik("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",yt(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var e=r.ngTransclude||r.ngTranscludeSlot;f(function(n,i){n.length?t.append(n):(o(),i.$destroy())},null,e);e&&!f.isSlotFilled(e)&&o()}}}}],uk=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){if("text/ng-template"==i.type){var r=i.id,u=t[0].text;n.put(r,u)}}}}],fk={$setViewValue:s,$render:s},ek=["$element","$scope",function(t,i){var r=this,f=new di;r.ngModelCtrl=fk;r.unknownOption=e(n.document.createElement("option"));r.renderUnknownOption=function(n){var i="? "+ci(n)+" ?";r.unknownOption.val(i);t.prepend(r.unknownOption);t.val(i)};i.$on("$destroy",function(){r.renderUnknownOption=s});r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()};r.readValue=function(){return r.removeUnknownOption(),t.val()};r.writeValue=function(n){r.hasOption(n)?(r.removeUnknownOption(),t.val(n),""===n&&r.emptyOption.prop("selected",!0)):null==n&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(n)};r.addOption=function(n,t){if(t[0].nodeType!==vu){bi(n,'"option value"');""===n&&(r.emptyOption=t);var i,u=f.get(n)||0;f.put(n,u+1);r.ngModelCtrl.$render();(i=t)[0].hasAttribute("selected")&&(i[0].selected=!0)}};r.removeOption=function(n){var t=f.get(n);t&&(1===t?(f.remove(n),""===n&&(r.emptyOption=void 0)):f.put(n,t-1))};r.hasOption=function(n){return!!f.get(n)};r.registerOption=function(n,t,i,f,e){var o;f?i.$observe("value",function(n){u(o)&&r.removeOption(o);o=n;r.addOption(n,t)}):e?n.$watch(e,function(n,u){i.$set("value",n);u!==n&&r.removeOption(u);r.addOption(n,t)}):r.addOption(i.value,t);t.on("$destroy",function(){r.removeOption(i.value);r.ngModelCtrl.$render()})}}],ok=function(){return{restrict:"E",require:["select","?ngModel"],controller:ek,priority:1,link:{pre:function(n,i,r,f){var e=f[1],o,h,s;e&&(o=f[0],(o.ngModelCtrl=e,i.on("change",function(){n.$apply(function(){e.$setViewValue(o.readValue())})}),r.multiple)&&(o.readValue=function(){var n=[];return t(i.find("option"),function(t){t.selected&&n.push(t.value)}),n},o.writeValue=function(n){var r=new di(n);t(i.find("option"),function(n){n.selected=u(r.get(n.value))})},s=NaN,n.$watch(function(){s!==e.$viewValue||ot(h,e.$viewValue)||(h=st(e.$viewValue),e.$render());s=e.$viewValue}),e.$isEmpty=function(n){return!n||0===n.length}))},post:function(n,t,i,r){var u=r[1],f;u&&(f=r[0],u.$render=function(){f.writeValue(u.$viewValue)})}}}},sk=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,i){var f,r;return u(i.value)?f=n(i.value,!0):(r=n(t.text(),!0),r||i.$set("value",t.text())),function(n,t,i){var u="$selectController",e=t.parent(),o=e.data(u)||e.parent().data(u);o&&o.registerOption(n,t,i,f,r)}}}}],hk=ft({restrict:"E",terminal:!1}),ua=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){r&&(i.required=!0,r.$validators.required=function(n,t){return!i.required||!r.$isEmpty(t)},i.$observe("required",function(){r.$validate()}))}}},fa=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,u){if(u){var f,e=i.ngPattern||i.pattern;i.$observe("pattern",function(n){if(h(n)&&n.length>0&&(n=new RegExp("^"+n+"$")),n&&!n.test)throw l("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,n,yt(t));f=n||void 0;u.$validate()});u.$validators.pattern=function(n,t){return u.$isEmpty(t)||r(f)||f.test(t)}}}}},ea=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=-1;i.$observe("maxlength",function(n){var t=tt(n);u=isNaN(t)?-1:t;r.$validate()});r.$validators.maxlength=function(n,t){return u<0||r.$isEmpty(t)||t.length<=u}}}}},oa=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=tt(n)||0;r.$validate()});r.$validators.minlength=function(n,t){return r.$isEmpty(t)||t.length>=u}}}}};n.angular.bootstrap?n.console&&console.log("WARNING: Tried to load angular more than once."):(!function(){var i,t;gf||(t=sr(),(gt=r(t)?n.jQuery:t?n[t]:void 0)&&gt.fn.on?(e=gt,v(gt.fn,{scope:hi.scope,isolateScope:hi.isolateScope,controller:hi.controller,injector:hi.injector,inheritedData:hi.inheritedData}),i=gt.cleanData,gt.cleanData=function(n){for(var r,t,u=0;null!=(t=n[u]);u++)(r=gt._data(t,"events"))&&r.$destroy&&gt(t).triggerHandler("$destroy");i(n)}):e=b,ut.element=e,gf=!0)}(),function(i){v(i,{bootstrap:rs,copy:ti,extend:v,merge:aa,equals:ot,element:e,forEach:t,injector:kr,noop:s,bind:lr,toJson:ar,fromJson:ko,identity:rr,isUndefined:r,isDefined:u,isString:h,isFunction:f,isObject:o,isNumber:w,isElement:bf,isArray:c,version:hs,isDate:et,lowercase:a,uppercase:ir,callbacks:{$$counter:0},getTestability:wa,$$minErr:l,$$csp:ii,reloadWithDebugInfo:pa});yf=function(n){function t(n,t,i){return n[t]||(n[t]=i())}var r=l("$injector"),u=l("ng"),i=t(n,"angular",Object);return i.$$minErr=i.$$minErr||l,t(i,"module",function(){var n={};return function(i,e,o){return function(n){if("hasOwnProperty"===n)throw u("badname","hasOwnProperty is not a valid {0} name","module");}(i),e&&n.hasOwnProperty(i)&&(n[i]=null),t(n,i,function(){function s(n,i,r,f){return f||(f=t),function(){return f[r||"push"]([n,i,arguments]),u}}function n(n,r){return function(e,o){return o&&f(o)&&(o.$$moduleName=i),t.push([n,r,arguments]),u}}if(!e)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var t=[],h=[],c=[],l=s("$injector","invoke","push",h),u={_invokeQueue:t,_configBlocks:h,_runBlocks:c,requires:e,name:i,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:s("$provide","value"),constant:s("$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(n){return c.push(n),this}};return o&&l(o),u})}})}(n);yf("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:cp});n.provider("$compile",nh).directive({a:ul,input:yl,textarea:yl,form:uw,script:uk,select:ok,style:hk,option:sk,ngBind:vw,ngBindHtml:pw,ngBindTemplate:yw,ngClass:bw,ngClassEven:dw,ngClassOdd:kw,ngCloak:gw,ngController:nb,ngForm:fw,ngHide:kb,ngIf:ib,ngInclude:rb,ngInit:fb,ngNonBindable:lb,ngPluralize:pb,ngRepeat:wb,ngShow:bb,ngStyle:db,ngSwitch:gb,ngSwitchWhen:nk,ngSwitchDefault:tk,ngOptions:yb,ngTransclude:rk,ngModel:sb,ngList:eb,ngChange:ww,pattern:fa,ngPattern:fa,required:ua,ngRequired:ua,minlength:oa,ngMinlength:oa,maxlength:ea,ngMaxlength:ea,ngValue:aw,ngModelOptions:cb}).directive({ngInclude:ub}).directive(iu).directive(pl);n.provider({$anchorScroll:av,$animate:pv,$animateCss:kv,$$animateJs:vv,$$animateQueue:yv,$$AnimateRunner:bv,$$animateAsyncRun:wv,$browser:gv,$cacheFactory:ny,$controller:iy,$document:ry,$exceptionHandler:uy,$filter:vc,$$forceReflow:fy,$interpolate:py,$interval:wy,$http:ay,$httpParamSerializer:cy,$httpParamSerializerJQLike:ly,$httpBackend:yy,$xhrFactory:vy,$jsonpCallbacks:by,$location:gy,$log:np,$parse:fp,$rootScope:hp,$q:ep,$$q:op,$sce:ap,$sceDelegate:lp,$sniffer:vp,$templateCache:ty,$templateRequest:yp,$$testability:pp,$timeout:wp,$window:bp,$$rAF:sp,$$jqLite:fv,$$HashMap:ev,$$cookieReader:kp})}])}(ut),ut.module("ngLocale",[],["$provide",function(n){var t="one",i="other";n.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(n,r){var u=0|n,f=function(n,t){var i=t,r;return void 0===i&&(i=Math.min(function(n){var t=(n+="").indexOf(".");return-1==t?0:n.length-t-1}(n),3)),r=Math.pow(10,i),{v:i,f:(n*r|0)%r}}(n,r);return 1==u&&0==f.v?t:i}})}]),e(n.document).ready(function(){ya(n.document,rs)}))}(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(n){"use strict";var t=n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype,r=n.Blob&&function(){try{return Boolean(new Blob)}catch(n){return!1}}(),f=r&&n.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(n){return!1}}(),u=n.BlobBuilder||n.WebKitBlobBuilder||n.MozBlobBuilder||n.MSBlobBuilder,i=(r||u)&&n.atob&&n.ArrayBuffer&&n.Uint8Array&&function(n){var i,e,o,t,s,h;for(i=n.split(",")[0].indexOf("base64")>=0?atob(n.split(",")[1]):decodeURIComponent(n.split(",")[1]),e=new ArrayBuffer(i.length),o=new Uint8Array(e),t=0;t<i.length;t+=1)o[t]=i.charCodeAt(t);return s=n.split(",")[0].split(":")[1].split(";")[0],r?new Blob([f?o:e],{type:s}):(h=new u,h.append(e),h.getBlob(s))};n.HTMLCanvasElement&&!t.toBlob&&(t.mozGetAsFile?t.toBlob=function(n,r,u){u&&t.toDataURL&&i?n(i(this.toDataURL(r,u))):n(this.mozGetAsFile("blob",r))}:t.toDataURL&&i&&(t.toBlob=function(n,t,r){n(i(this.toDataURL(t,r)))}));n.dataURLtoBlob=i}(window),function(n,t){"use strict";function u(n,t,i,r,u){var f={type:i.type||i,target:n,result:r};h(f,u);t(f)}function ot(n){return f&&!!f.prototype["readAs"+n]}function v(n,r,e,o){if(i.isBlob(n)&&ot(e)){var s=new f;c(s,ut,function h(t){var i=t.type;"progress"==i?u(n,r,t,t.target.result,{loaded:t.loaded,total:t.total}):"loadend"==i?(l(s,ut,h),s=null):u(n,r,t,t.target.result)});try{o?s["readAs"+e](n,o):s["readAs"+e](n)}catch(a){u(n,r,"error",t,{error:a.toString()})}}else u(n,r,"error",t,{error:"filreader_not_support_"+e})}function kt(n,t){if(!n.type&&n.size%4096==0&&n.size<=102400)if(f)try{var i=new f;ft(i,ut,function(n){var r="error"!=n.type;t(r);r&&i.abort()});i.readAsDataURL(n)}catch(r){t(!1)}else t(null);else t(!0)}function st(n){var t;return n.getAsEntry?t=n.getAsEntry():n.webkitGetAsEntry&&(t=n.webkitGetAsEntry()),t}function g(n,t){if(n)if(n.isFile)n.file(function(i){i.fullPath=n.fullPath;t(!1,[i])},function(n){t("FileError.code: "+n.code)});else if(n.isDirectory){var u=n.createReader(),r=[];u.readEntries(function(n){i.afor(n,function(n,u){g(u,function(u,f){u?i.log(u):r=r.concat(f);n?n():t(!1,r)})})},function(n){t("directory_reader: "+n)})}else g(st(n),t);else t("invalid entry")}function dt(n){var t={};return r(n,function(n,i){n&&"object"==typeof n&&void 0===n.nodeType&&(n=h({},n));t[i]=n}),t}function nt(n){return ei.test(n&&n.tagName)}function ht(n){return(n.originalEvent||n||"").dataTransfer||{}}function gt(n){for(var t in n)if(n.hasOwnProperty(t)&&!(n[t]instanceof Object||"overlay"===t||"filter"===t))return!0;return!1}var ct=1,tt=function(){},a=n.document,it=a.doctype||{},rt=n.navigator.userAgent,p=n.createObjectURL&&n||n.URL&&URL.revokeObjectURL&&URL||n.webkitURL&&webkitURL,w=n.Blob,ni=n.File,f=n.FileReader,ti=n.FormData,b=n.XMLHttpRequest,e=n.jQuery,y=!(!(ni&&f&&(n.Uint8Array||ti||b.prototype.sendAsBinary))||/safari\//i.test(rt)&&!/chrome\//i.test(rt)&&/windows/i.test(rt)),lt=y&&"withCredentials"in new b,ii=y&&!!w&&!!(w.prototype.webkitSlice||w.prototype.mozSlice||w.prototype.slice),at=n.dataURLtoBlob,ri=/img/i,ui=/canvas/i,fi=/img|canvas/i,ei=/input/i,oi=/^data:[^,]+,/,vt={}.toString,yt=n.Math,k=function(t){return t=new n.Number(yt.pow(1024,t)),t.from=function(n){return yt.round(n*this)},t},o={},pt=[],ut="abort progress error load loadend",si="status statusText readyState response responseXML responseText responseBody".split(" "),d="currentTarget",wt="preventDefault",s=function(n){return n&&"length"in n},r=function(n,t,i){var r,f,u;if(n)if(s(n))for(r=0,f=n.length;f>r;r++)r in n&&t.call(i,n[r],r,n);else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n)},h=function(n){for(var i=arguments,t=1,u=function(t,i){n[i]=t};t<i.length;t++)r(i[t],u);return n},c=function(n,t,u){var s,h;n&&(s=i.uid(n),o[s]||(o[s]={}),h=f&&n&&n instanceof f,r(t.split(/\s+/),function(t){e&&!h?e.event.add(n,t,u):(o[s][t]||(o[s][t]=[]),o[s][t].push(u),n.addEventListener?n.addEventListener(t,u,!1):n.attachEvent?n.attachEvent("on"+t,u):n["on"+t]=u)}))},l=function(n,t,u){if(n){var s=i.uid(n),h=o[s]||{},c=f&&n&&n instanceof f;r(t.split(/\s+/),function(t){if(e&&!c)e.event.remove(n,t,u);else{for(var i=h[t]||[],r=i.length;r--;)if(i[r]===u){i.splice(r,1);break}n.addEventListener?n.removeEventListener(t,u,!1):n.detachEvent?n.detachEvent("on"+t,u):n["on"+t]=null}})}},ft=function(n,t,i){c(n,t,function r(u){l(n,t,r);i(u)})},et=function(t){return t.target||(t.target=n.event&&n.event.srcElement||a),3===t.target.nodeType&&(t.target=t.target.parentNode),t},bt=function(n){var t=a.createElement("input");return t.setAttribute("type","file"),n in t},i={version:"2.0.7",cors:!1,html5:!0,media:!1,formData:!0,multiPassResize:!0,debug:!1,pingUrl:!1,multiFlash:!1,flashAbortTimeout:0,withCredentials:!0,staticPath:"./dist/",flashUrl:0,flashImageUrl:0,postNameConcat:function(n,t){return n+(null!=t?"["+t+"]":"")},ext2mime:{jpg:"image/jpeg",tif:"image/tiff",txt:"text/plain"},accept:{"image/*":"art bm bmp dwg dxf cbr cbz fif fpx gif ico iefs jfif jpe jpeg jpg jps jut mcf nap nif pbm pcx pgm pict pm png pnm qif qtif ras rast rf rp svf tga tif tiff xbm xbm xpm xwd","audio/*":"m4a flac aac rm mpa wav wma ogg mp3 mp2 m3u mod amf dmf dsm far gdm imf it m15 med okt s3m stm sfx ult uni xm sid ac3 dts cue aif aiff wpl ape mac mpc mpp shn wv nsf spc gym adplug adx dsp adp ymf ast afc hps xs","video/*":"m4v 3gp nsv ts ty strm rm rmvb m3u ifo mov qt divx xvid bivx vob nrg img iso pva wmv asf asx ogm m2v avi bin dat dvr-ms mpg mpeg mp4 mkv avc vp3 svq3 nuv viv dv fli flv wpl"},uploadRetry:0,networkDownRetryTimeout:5e3,chunkSize:0,chunkUploadRetry:0,chunkNetworkDownRetryTimeout:2e3,KB:k(1),MB:k(2),GB:k(3),TB:k(4),EMPTY_PNG:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII=",expando:"fileapi"+(new Date).getTime(),uid:function(n){return n?n[i.expando]=n[i.expando]||i.uid():(++ct,i.expando+ct)},log:function(){i.debug&&n.console&&console.log&&(console.log.apply?console.log.apply(console,arguments):console.log([].join.call(arguments," ")))},newImage:function(n,t){var r=a.createElement("img");return t&&i.event.one(r,"error load",function(n){t("error"==n.type,r);r=null}),r.src=n,r},getXHR:function(){var t;if(b)t=new b;else if(n.ActiveXObject)try{t=new ActiveXObject("MSXML2.XMLHttp.3.0")}catch(i){t=new ActiveXObject("Microsoft.XMLHTTP")}return t},isArray:s,support:{dnd:lt&&"ondrop"in a.createElement("div"),cors:lt,html5:y,chunked:ii,dataURI:!0,accept:bt("accept"),multiple:bt("multiple")},event:{on:c,off:l,one:ft,fix:et},throttle:function(t,i){var r,u;return function(){u=arguments;r||(t.apply(n,u),r=setTimeout(function(){r=0;t.apply(n,u)},i))}},F:function(){},parseJSON:function(t){return n.JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t.replace(/([\r\n])/g,"\\$1")+");")()},trim:function(n){return n=String(n),n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},defer:function(){var i,n,r=[],u={resolve:function(t,f){for(u.resolve=tt,n=t||!1,i=f;f=r.shift();)f(n,i)},then:function(u){n!==t?u(n,i):r.push(u)}};return u},queue:function(n){var r=0,u=0,t=!1,f=!1,i={inc:function(){u++},next:function(){r++;setTimeout(i.check,0)},check:function(){r>=u&&!t&&i.end()},isFail:function(){return t},fail:function(){t||n(t=!0)},end:function(){f||(f=!0,n())}};return i},each:r,afor:function(n,t){var i=0,r=n.length;s(n)&&r--?!function u(){t(r!=i&&u,n[i],i++)}():t(!1)},extend:h,isFile:function(n){return"[object File]"===vt.call(n)},isBlob:function(n){return this.isFile(n)||"[object Blob]"===vt.call(n)},isCanvas:function(n){return n&&ui.test(n.nodeName)},getFilesFilter:function(n){return n="string"==typeof n?n:n.getAttribute&&n.getAttribute("accept")||"",n?new RegExp("("+n.replace(/\./g,"\\.").replace(/,/g,"|")+")$","i"):/./},readAsDataURL:function(n,t){i.isCanvas(n)?u(n,t,"load",i.toDataURL(n)):v(n,t,"DataURL")},readAsBinaryString:function(n,t){ot("BinaryString")?v(n,t,"BinaryString"):v(n,function(n){if("load"==n.type)try{n.result=i.toBinaryString(n.result)}catch(r){n.type="error";n.message=r.toString()}t(n)},"DataURL")},readAsArrayBuffer:function(n,t){v(n,t,"ArrayBuffer")},readAsText:function(n,t,i){i||(i=t,t="utf-8");v(n,i,"Text",t)},toDataURL:function(n,t){return"string"==typeof n?n:n.toDataURL?n.toDataURL(t||"image/png"):void 0},toBinaryString:function(t){return n.atob(i.toDataURL(t).replace(oi,""))},readAsImage:function(n,r,f){var e,o,s;i.isFile(n)?p?(e=p.createObjectURL(n),e===t?u(n,r,"error"):i.readAsImage(e,r,f)):i.readAsDataURL(n,function(t){"load"==t.type?i.readAsImage(t.result,r,f):(f||"error"==t.type)&&u(n,r,t,null,{loaded:t.loaded,total:t.total})}):i.isCanvas(n)?u(n,r,"load",n):ri.test(n.nodeName)?n.complete?u(n,r,"load",n):(o="error abort load",ft(n,o,function h(t){"load"==t.type&&p&&p.revokeObjectURL(n.src);l(n,o,h);u(n,r,t,n)})):n.iframe?u(n,r,{type:"error"}):(s=i.newImage(n.dataURL||n),i.readAsImage(s,r,f))},checkFileObj:function(n){var t={},u=i.accept;return"object"==typeof n?t=n:t.name=(n+"").split(/\\|\//g).pop(),null==t.type&&(t.type=t.name.split(".").pop()),r(u,function(n,r){n=new RegExp(n.replace(/\s/g,"|"),"i");(n.test(t.type)||i.ext2mime[t.type])&&(t.type=i.ext2mime[t.type]||r.split("/")[0]+"/"+t.type)}),t},getDropFiles:function(n,t){var e=[],u=ht(n),o=s(u.items)&&u.items[0]&&st(u.items[0]),f=i.queue(function(){t(e)});r((o?u.items:u.files)||[],function(n){f.inc();try{o?g(n,function(n,t){n?i.log("[err] getDropFiles:",n):e.push.apply(e,t);f.next()}):kt(n,function(t){t&&e.push(n);f.next()})}catch(t){f.next();i.log("[err] getDropFiles: ",t)}});f.check()},getFiles:function(n,t,r){var u=[];return r?(i.filterFiles(i.getFiles(n),t,r),null):(n.jquery&&(n.each(function(){u=u.concat(i.getFiles(this))}),n=u,u=[]),"string"==typeof t&&(t=i.getFilesFilter(t)),n.originalEvent?n=et(n.originalEvent):n.srcElement&&(n=et(n)),n.dataTransfer?n=n.dataTransfer:n.target&&(n=n.target),n.files?(u=n.files,y||(u[0].blob=n,u[0].iframe=!0)):!y&&nt(n)?i.trim(n.value)&&(u=[i.checkFileObj(n.value)],u[0].blob=n,u[0].iframe=!0):s(n)&&(u=n),i.filter(u,function(n){return!t||t.test(n.name)}))},getTotalSize:function(n){for(var t=0,i=n&&n.length;i--;)t+=n[i].size;return t},getInfo:function(n,t){var r={},f=pt.concat();i.isFile(n)?!function u(){var i=f.shift();i?i.test(n.type)?i(n,function(n,i){n?t(n):(h(r,i),u())}):u():t(!1,r)}():t("not_support_info",r)},addInfoReader:function(n,t){t.test=function(t){return n.test(t)};pt.push(t)},filter:function(n,t){for(var r,u=[],i=0,f=n.length;f>i;i++)i in n&&(r=n[i],t.call(r,r,i,n)&&u.push(r));return u},filterFiles:function(n,t,r){if(n.length){var u,f=n.concat(),e=[],o=[];!function s(){f.length?(u=f.shift(),i.getInfo(u,function(n,i){(t(u,n?!1:i)?e:o).push(u);s()})):r(e,o)}()}else r([],n)},upload:function(n){n=h({jsonp:"callback",prepare:i.F,beforeupload:i.F,upload:i.F,fileupload:i.F,fileprogress:i.F,filecomplete:i.F,progress:i.F,complete:i.F,pause:i.F,imageOriginal:!0,chunkSize:i.chunkSize,chunkUploadRetry:i.chunkUploadRetry,uploadRetry:i.uploadRetry},n);n.imageAutoOrientation&&!n.imageTransform&&(n.imageTransform={rotate:"auto"});var f,t=new i.XHR(n),u=this._getFilesDataArray(n.files),o=this,e=0,s=0,c=!1;return r(u,function(n){e+=n.size}),t.files=[],r(u,function(n){t.files.push(n.file)}),t.total=e,t.loaded=0,t.filesLeft=u.length,n.beforeupload(t,n),f=function(){var l=u.shift(),a=l&&l.file,y=!1,v=dt(n),p;if(t.filesLeft=u.length,a&&a.name===i.expando&&(a=null,i.log("[warn] FileAPI.upload() — called without files")),("abort"!=t.statusText||t.current)&&l){if(c=!1,t.currentFile=a,a&&n.prepare(a,v)===!1)return f.call(o),void 0;v.file=a;o._getFormData(v,l,function(c){s||n.upload(t,n);var p=new i.XHR(h({},v,{upload:a?function(){n.fileupload(a,p,v)}:tt,progress:a?function(i){y||(y=i.loaded===i.total,n.fileprogress({type:"progress",total:l.total=i.total,loaded:l.loaded=i.loaded},a,p,v),n.progress({type:"progress",total:e,loaded:t.loaded=s+l.size*(i.loaded/i.total)|0},a,p,v))}:tt,complete:function(i){r(si,function(n){t[n]=p[n]});a&&(l.total=l.total||l.size,l.loaded=l.total,i||(this.progress(l),y=!0,s+=l.size,t.loaded=s),n.filecomplete(i,p,a,v));setTimeout(function(){f.call(o)},0)}}));t.abort=function(n){n||(u.length=0);this.current=n;p.abort()};p.send(c)})}else p=200==t.status||201==t.status||204==t.status,n.complete(p?!1:t.statusText||"error",t,n),c=!0},setTimeout(f,0),t.append=function(n,s){n=i._getFilesDataArray([].concat(n));r(n,function(n){e+=n.size;t.files.push(n.file);s?u.unshift(n):u.push(n)});t.statusText="";c&&f.call(o)},t.remove=function(n){for(var t,i=u.length;i--;)u[i].file==n&&(t=u.splice(i,1),e-=t.size);return t},t},_getFilesDataArray:function(n){var t=[],u={},f;return nt(n)?(f=i.getFiles(n),u[n.name||"file"]=null!==n.getAttribute("multiple")?f:f[0]):s(n)&&nt(n[0])?r(n,function(n){u[n.name||"file"]=i.getFiles(n)}):u=n,r(u,function e(n,i){s(n)?r(n,function(n){e(n,i)}):n&&(n.name||n.image)&&t.push({name:i,file:n,size:n.size,total:n.size,loaded:0})}),t.length||t.push({file:{name:i.expando}}),t},_getFormData:function(n,t,u){var c=t.file,h=t.name,o=c.name,l=c.type,f=i.support.transform&&n.imageTransform,e=new i.Form,s=i.queue(function(){u(e)}),v=f&&gt(f),a=i.postNameConcat;r(n.data,function y(n,t){"object"==typeof n?r(n,function(n,i){y(n,a(t,i))}):e.append(t,n)}),function p(t){t.image?(s.inc(),t.toData(function(n,t){o=o||(new Date).getTime()+".png";p(t);s.next()})):i.Image&&f&&(/^image/.test(t.type)||fi.test(t.nodeName))?(s.inc(),v&&(f=[f]),i.Image.transform(t,f,n.imageAutoOrientation,function(u,c){if(v&&!u)at||i.flashEngine||(e.multipart=!0),e.append(h,c[0],o,f[0].type||l);else{var y=0;u||r(c,function(n,t){at||i.flashEngine||(e.multipart=!0);f[t].postName||(y=1);e.append(f[t].postName||a(h,t),n,o,f[t].type||l)});(u||n.imageOriginal)&&e.append(a(h,y?"original":null),t,o,l)}s.next()})):o!==i.expando&&e.append(h,t,o)}(c);s.check()},reset:function(n,t){var f,u;return e?(u=e(n).clone(!0).insertBefore(n).val("")[0],t||e(n).remove()):(f=n.parentNode,u=f.insertBefore(n.cloneNode(!0),n),u.value="",t||f.removeChild(n),r(o[i.uid(n)],function(t,i){r(t,function(t){l(n,i,t);c(u,i,t)})})),u},load:function(n,t){var r=i.getXHR();return r?(r.open("GET",n,!0),r.overrideMimeType&&r.overrideMimeType("text/plain; charset=x-user-defined"),c(r,"progress",function(n){n.lengthComputable&&t({type:n.type,loaded:n.loaded,total:n.total},r)}),r.onreadystatechange=function(){if(4==r.readyState)if(r.onreadystatechange=null,200==r.status){n=n.split("/");var u={name:n[n.length-1],size:r.getResponseHeader("Content-Length"),type:r.getResponseHeader("Content-Type")};u.dataURL="data:"+u.type+";base64,"+i.encode64(r.responseBody||r.responseText);t({type:"load",result:u},r)}else t({type:"error"},r)},r.send(null)):t({type:"error"}),r},encode64:function(n){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="",i=0;for("string"!=typeof n&&(n=String(n));i<n.length;){var r,u,s=255&n.charCodeAt(i++),f=255&n.charCodeAt(i++),e=255&n.charCodeAt(i++),h=s>>2,c=(3&s)<<4|f>>4;isNaN(f)?r=u=64:(r=(15&f)<<2|e>>6,u=isNaN(e)?64:63&e);o+=t.charAt(h)+t.charAt(c)+t.charAt(r)+t.charAt(u)}return o}};i.addInfoReader(/^image/,function(n,t){if(!n.__dimensions){var r=n.__dimensions=i.defer();i.readAsImage(n,function(n){var t=n.target;r.resolve("load"==n.type?!1:"error",{width:t.width,height:t.height});t.src=i.EMPTY_PNG;t=null})}n.__dimensions.then(t)});i.event.dnd=function(n,t,r){var e,u;r||(r=t,t=i.F);f?(c(n,"dragenter dragleave dragover",t.ff=t.ff||function(n){for(var i=ht(n).types,r=i&&i.length,f=!1;r--;)if(~i[r].indexOf("File")){n[wt]();u!==n.type&&(u=n.type,"dragleave"!=u&&t.call(n[d],!0,n),f=!0);break}f&&(clearTimeout(e),e=setTimeout(function(){t.call(n[d],"dragleave"!=u,n)},50))}),c(n,"drop",r.ff=r.ff||function(n){n[wt]();u=0;t.call(n[d],!1,n);i.getDropFiles(n,function(t){r.call(n[d],t,n)})})):i.log("Drag'n'Drop -- not supported")};i.event.dnd.off=function(n,t,i){l(n,"dragenter dragleave dragover",t.ff);l(n,"drop",i.ff)};e&&!e.fn.dnd&&(e.fn.dnd=function(n,t){return this.each(function(){i.event.dnd(this,n,t)})},e.fn.offdnd=function(n,t){return this.each(function(){i.event.dnd.off(this,n,t)})});n.FileAPI=h(i,n.FileAPI);i.log("FileAPI: "+i.version);i.log("protocol: "+n.location.protocol);i.log("doctype: ["+it.name+"] "+it.publicId+" "+it.systemId);r(a.getElementsByTagName("meta"),function(n){/x-ua-compatible/i.test(n.getAttribute("http-equiv"))&&i.log("meta.http-equiv: "+n.getAttribute("content"))});i.flashUrl||(i.flashUrl=i.staticPath+"FileAPI.flash.swf");i.flashImageUrl||(i.flashImageUrl=i.staticPath+"FileAPI.flash.image.swf");i.flashWebcamUrl||(i.flashWebcamUrl=i.staticPath+"FileAPI.flash.camera.swf")}(window,void 0),function(n,t,i){"use strict";function r(t){if(t instanceof r){var i=new r(t.file);return n.extend(i.matrix,t.matrix),i}return this instanceof r?(this.file=t,this.size=t.size||100,this.matrix={sx:0,sy:0,sw:0,sh:0,dx:0,dy:0,dw:0,dh:0,resize:0,deg:0,quality:1,filter:0},void 0):new r(t)}var u=Math.min,f=Math.round,e=function(){return t.createElement("canvas")},o=!1,s={8:270,3:180,6:90,7:270,4:180,5:90};try{o=e().toDataURL("image/png").indexOf("data:image/png")>-1}catch(h){}r.prototype={image:!0,constructor:r,set:function(t){return n.extend(this.matrix,t),this},crop:function(n,t,r,u){return r===i&&(r=n,u=t,n=t=0),this.set({sx:n,sy:t,sw:r,sh:u||r})},resize:function(n,t,i){return/min|max/.test(t)&&(i=t,t=n),this.set({dw:n,dh:t||n,resize:i})},preview:function(n,t){return this.resize(n,t||n,"preview")},rotate:function(n){return this.set({deg:n})},filter:function(n){return this.set({filter:n})},overlay:function(n){return this.set({overlay:n})},clone:function(){return new r(this)},_load:function(t,i){var r=this;/img|video/i.test(t.nodeName)?i.call(r,null,t):n.readAsImage(t,function(n){i.call(r,"load"!=n.type,n.result)})},_apply:function(t,i){var a,s=e(),f=this.getMatrix(t),w=s.getContext("2d"),g=t.videoWidth||t.width,nt=t.videoHeight||t.height,h=f.deg,c=f.dw,l=f.dh,v=g,y=nt,k=f.filter,o=t,d=f.overlay,p=n.queue(function(){t.src=n.EMPTY_PNG;i(!1,s)}),b=n.renderImageToCanvas;for(h-=360*Math.floor(h/360),t._type=this.file.type;f.multipass&&u(v/c,y/l)>2;)v=v/2+.5|0,y=y/2+.5|0,a=e(),a.width=v,a.height=y,o!==t?(b(a,o,0,0,o.width,o.height,0,0,v,y),o=a):(o=a,b(o,t,f.sx,f.sy,f.sw,f.sh,0,0,v,y),f.sx=f.sy=f.sw=f.sh=0);s.width=h%180?l:c;s.height=h%180?c:l;s.type=f.type;s.quality=f.quality;w.rotate(h*Math.PI/180);b(w.canvas,o,f.sx,f.sy,f.sw||o.width,f.sh||o.height,180==h||270==h?-c:0,90==h||180==h?-l:0,c,l);c=s.width;l=s.height;d&&n.each([].concat(d),function(t){p.inc();var i=new window.Image,r=function(){var f=0|t.x,e=0|t.y,o=t.w||i.width,s=t.h||i.height,u=t.rel;f=1==u||4==u||7==u?(c-o+f)/2:2==u||5==u||8==u?c-(o+f):f;e=3==u||4==u||5==u?(l-s+e)/2:u>=6?l-(s+e):e;n.event.off(i,"error load abort",r);try{w.globalAlpha=t.opacity||1;w.drawImage(i,f,e,o,s)}catch(h){}p.next()};n.event.on(i,"error load abort",r);i.src=t.src;i.complete&&r()});k&&(p.inc(),r.applyFilter(s,k,p.next));p.check()},getMatrix:function(t){var i=n.extend({},this.matrix),r=i.sw=i.sw||t.videoWidth||t.naturalWidth||t.width,e=i.sh=i.sh||t.videoHeight||t.naturalHeight||t.height,o=i.dw=i.dw||r,s=i.dh=i.dh||e,h=r/e,c=o/s,v=i.resize,l,a;return"preview"==v?(o!=r||s!=e)&&(c>=h?(l=r,a=l/c):(a=e,l=a*c),(l!=r||a!=e)&&(i.sx=~~((r-l)/2),i.sy=~~((e-a)/2),r=l,e=a)):v&&(r>o||e>s?"min"==v?(o=f(c>h?u(r,o):s*h),s=f(c>h?o/h:u(e,s))):(o=f(h>=c?u(r,o):s*h),s=f(h>=c?o/h:u(e,s))):(o=r,s=e)),i.sw=r,i.sh=e,i.dw=o,i.dh=s,i.multipass=n.multiPassResize,i},_trans:function(t){this._load(this.file,function(i,r){if(i)t(i);else try{this._apply(r,t)}catch(i){n.log("[err] FileAPI.Image.fn._apply:",i);t(i)}})},get:function(t){if(n.support.transform){var i=this,r=i.matrix;"auto"==r.deg?n.getInfo(i.file,function(n,u){r.deg=s[u&&u.exif&&u.exif.Orientation]||0;i._trans(t)}):i._trans(t)}else t("not_support_transform");return this},toData:function(n){return this.get(n)}};r.exifOrientation=s;r.transform=function(t,u,f,e){function o(o,s){var c={},h=n.queue(function(n){e(n,c)});o?h.fail():n.each(u,function(n,u){var e,l,o;h.isFail()||(e=new r(s.nodeType?s:t),l="function"==typeof n,(l?n(s,e):n.width?e[n.preview?"preview":"resize"](n.width,n.height,n.strategy):n.maxWidth&&(s.width>n.maxWidth||s.height>n.maxHeight)&&e.resize(n.maxWidth,n.maxHeight,"max"),n.crop)&&(o=n.crop,e.crop(0|o.x,0|o.y,o.w||o.width,o.h||o.height)),n.rotate===i&&f&&(n.rotate="auto"),e.set({type:e.matrix.type||n.type||t.type||"image/png"}),l||e.set({deg:n.rotate,overlay:n.overlay,filter:n.filter,quality:n.quality||1}),h.inc(),e.toData(function(n,t){n?h.fail():(c[u]=t,h.next())}))})}t.width?o(!1,t):n.getInfo(t,o)};n.each(["TOP","CENTER","BOTTOM"],function(t,i){n.each(["LEFT","CENTER","RIGHT"],function(n,u){r[t+"_"+n]=3*i+u;r[n+"_"+t]=3*i+u})});r.toCanvas=function(n){var i=t.createElement("canvas");return i.width=n.videoWidth||n.width,i.height=n.videoHeight||n.height,i.getContext("2d").drawImage(n,0,0),i};r.fromDataURL=function(t,i,r){var u=n.newImage(t);n.extend(u,i);r(u)};r.applyFilter=function(t,i,u){"function"==typeof i?i(t,u):window.Caman&&window.Caman("IMG"==t.tagName?r.toCanvas(t):t,function(){"string"==typeof i?this[i]():n.each(i,function(n,t){this[t](n)},this);this.render(u)})};n.renderImageToCanvas=function(t,i,r,u,f,e,o,s,h,c){try{return t.getContext("2d").drawImage(i,r,u,f,e,o,s,h,c)}catch(l){throw n.log("renderImageToCanvas failed"),l;}};n.support.canvas=n.support.transform=o;n.Image=r}(FileAPI,document),function(n){"use strict";n(FileAPI)}(function(n){"use strict";if(window.navigator&&window.navigator.platform&&/iP(hone|od|ad)/.test(window.navigator.platform)){var t=n.renderImageToCanvas;n.detectSubsampling=function(n){var t,i;return n.width*n.height>1048576?(t=document.createElement("canvas"),t.width=t.height=1,i=t.getContext("2d"),i.drawImage(n,-n.width+1,0),0===i.getImageData(0,0,1,1).data[3]):!1};n.detectVerticalSquash=function(n,t){var o,u,f,i,s,r=n.naturalHeight||n.height,e=document.createElement("canvas"),h=e.getContext("2d");for(t&&(r/=2),e.width=1,e.height=r,h.drawImage(n,0,0),o=h.getImageData(0,0,1,r).data,u=0,f=r,i=r;i>u;)s=o[4*(i-1)+3],0===s?f=i:u=i,i=f+u>>1;return i/r||1};n.renderImageToCanvas=function(i,r,u,f,e,o,s,h,c,l){if("image/jpeg"===r._type){var v,y,p,w,k=i.getContext("2d"),b=document.createElement("canvas"),a=1024,d=b.getContext("2d");if(b.width=a,b.height=a,k.save(),v=n.detectSubsampling(r),v&&(u/=2,f/=2,e/=2,o/=2),y=n.detectVerticalSquash(r,v),v||1!==y){for(f*=y,c=Math.ceil(a*c/e),l=Math.ceil(a*l/o/y),h=0,w=0;o>w;){for(s=0,p=0;e>p;)d.clearRect(0,0,a,a),d.drawImage(r,u,f,e,o,-p,-w,e,o),k.drawImage(b,0,0,a,a,s,h,c,l),p+=a,s+=c;w+=a;h+=l}return k.restore(),i}}return t(i,r,u,f,e,o,s,h,c,l)}}}),function(n,t){"use strict";function r(t,i,r){var u=t.blob,f=t.file;if(f){if(!u.toDataURL)return n.readAsBinaryString(u,function(n){"load"==n.type&&i(t,n.result)}),void 0;var o={"image/jpeg":".jpe?g","image/png":".png"},e=o[t.type]?t.type:"image/png",s=o[e]||".png",h=u.quality||1;f.match(new RegExp(s+"$","i"))||(f+=s.replace("?",""));t.file=f;t.type=e;!r&&u.toBlob?u.toBlob(function(n){i(t,n)},e,h):i(t,n.toBinaryString(u.toDataURL(e,h)))}else i(t,u)}var u=t.document,f=t.FormData,e=function(){this.items=[]},i=t.encodeURIComponent;e.prototype={append:function(n,t,i,r){this.items.push({name:n,blob:t&&t.blob||(void 0==t?"":t),file:t&&(i||t.name),type:t&&(r||t.type)})},each:function(n){for(var t=0,i=this.items.length;i>t;t++)n.call(this,this.items[t])},toData:function(t,i){i._chunked=n.support.chunked&&i.chunkSize>0&&1==n.filter(this.items,function(n){return n.file}).length;n.support.html5?n.formData&&!this.multipart&&f?i._chunked?(n.log("FileAPI.Form.toPlainData"),this.toPlainData(t)):(n.log("FileAPI.Form.toFormData"),this.toFormData(t)):(n.log("FileAPI.Form.toMultipartData"),this.toMultipartData(t)):(n.log("FileAPI.Form.toHtmlData"),this.toHtmlData(t))},_to:function(t,i,r,u){var f=n.queue(function(){i(t)});this.each(function(n){r(n,t,f,u)});f.check()},toHtmlData:function(t){this._to(u.createDocumentFragment(),t,function(t,i){var r,f=t.blob;t.file?(n.reset(f,!0),f.name=t.name,f.disabled=!1,i.appendChild(f)):(r=u.createElement("input"),r.name=t.name,r.type="hidden",r.value=f,i.appendChild(r))})},toPlainData:function(n){this._to({},n,function(n,t,u){n.file&&(t.type=n.file);n.blob.toBlob?(u.inc(),r(n,function(n,i){t.name=n.name;t.file=i;t.size=i.length;t.type=n.type;u.next()})):n.file?(t.name=n.blob.name,t.file=n.blob,t.size=n.blob.size,t.type=n.type):(t.params||(t.params=[]),t.params.push(i(n.name)+"="+i(n.blob)));t.start=-1;t.end=t.file&&t.file.FileAPIReadPosition||-1;t.retry=0})},toFormData:function(n){this._to(new f,n,function(n,t,i){n.blob&&n.blob.toBlob?(i.inc(),r(n,function(n,r){t.append(n.name,r,n.file);i.next()})):n.file?t.append(n.name,n.blob,n.file):t.append(n.name,n.blob);n.file&&t.append("_"+n.name,n.file)})},toMultipartData:function(t){this._to([],t,function(n,t,u,f){u.inc();r(n,function(n,r){t.push("--_"+f+('\r\nContent-Disposition: form-data; name="'+n.name+'"'+(n.file?'; filename="'+i(n.file)+'"':"")+(n.file?"\r\nContent-Type: "+(n.type||"application/octet-stream"):"")+"\r\n\r\n"+(n.file?r:i(r))+"\r\n"));u.next()},!0)},n.expando)}};n.Form=e}(FileAPI,window),function(n,t){"use strict";var i=function(){},u=n.document,r=function(n){this.uid=t.uid();this.xhr={abort:i,getResponseHeader:i,getAllResponseHeaders:i};this.options=n},f={"":1,XML:1,Text:1,Body:1};r.prototype={status:0,statusText:"",constructor:r,getResponseHeader:function(n){return this.xhr.getResponseHeader(n)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()||{}},end:function(r,u){var f=this,e=f.options;f.end=f.abort=i;f.status=r;u&&(f.statusText=u);t.log("xhr.end:",r,u);e.complete(200==r||201==r?!1:f.statusText||"unknown",f);f.xhr&&f.xhr.node&&setTimeout(function(){var t=f.xhr.node;try{t.parentNode.removeChild(t)}catch(i){}try{delete n[f.uid]}catch(i){}n[f.uid]=f.xhr.node=null},9)},abort:function(){this.end(0,"abort");this.xhr&&(this.xhr.aborted=!0,this.xhr.abort())},send:function(n){var i=this,t=this.options;n.toData(function(n){t.upload(t,i);i._send.call(i,t,n)},t)},_send:function(i,r){var e,o=this,c=o.uid,p=o.uid+"Load",s=i.url,w,b,a,v,h,l,y,k,d;if(t.log("XHR._send:",r),i.cache||(s+=(~s.indexOf("?")?"&":"?")+t.uid()),r.nodeName)w=i.jsonp,s=s.replace(/([a-z]+)=(\?)/i,"$1="+c),i.upload(i,o),b=function(n){if(~s.indexOf(n.origin))try{var i=t.parseJSON(n.data);i.id==c&&a(i.status,i.statusText,i.response)}catch(r){a(0,r.message)}},a=n[c]=function(i,r,u){o.readyState=4;o.responseText=u;o.end(i,r);t.event.off(n,"message",b);n[c]=e=h=n[p]=null},o.xhr.abort=function(){try{h.stop?h.stop():h.contentWindow.stop?h.contentWindow.stop():h.contentWindow.document.execCommand("Stop")}catch(n){}a(0,"abort")},t.event.on(n,"message",b),n[p]=function(){try{var i=h.contentWindow,r=i.document,n=i.result||t.parseJSON(r.body.innerHTML);a(n.status,n.statusText,n.response)}catch(u){t.log("[transport.onload]",u)}},e=u.createElement("div"),e.innerHTML='<form target="'+c+'" action="'+s+'" method="POST" enctype="multipart/form-data" style="position: absolute; top: -1000px; overflow: hidden; width: 1px; height: 1px;"><iframe name="'+c+'" src="javascript:false;" onload="'+p+'()"><\/iframe>'+(w&&i.url.indexOf("=?")<0?'<input value="'+c+'" name="'+w+'" type="hidden"/>':"")+"<\/form>",v=e.getElementsByTagName("form")[0],h=e.getElementsByTagName("iframe")[0],v.appendChild(r),t.log(v.parentNode.innerHTML),u.body.appendChild(e),o.xhr.node=e,o.readyState=2,v.submit(),v=null;else{if(s=s.replace(/([a-z]+)=(\?)&?/i,""),this.xhr&&this.xhr.aborted)return t.log("Error: already aborted"),void 0;(e=o.xhr=t.getXHR(),r.params&&(s+=(s.indexOf("?")<0?"?":"&")+r.params.join("&")),e.open("POST",s,!0),t.withCredentials&&(e.withCredentials="true"),i.headers&&i.headers["X-Requested-With"]||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.each(i.headers,function(n,t){e.setRequestHeader(t,n)}),i._chunked)?(e.upload&&e.upload.addEventListener("progress",t.throttle(function(n){r.retry||i.progress({type:n.type,total:r.size,loaded:r.start+n.loaded,totalSize:r.size},o,i)},100),!1),e.onreadystatechange=function(){var n=parseInt(e.getResponseHeader("X-Last-Known-Byte"),10),u,s;if(o.status=e.status,o.statusText=e.statusText,o.readyState=e.readyState,4==e.readyState){for(u in f)o["response"+u]=e["response"+u];(e.onreadystatechange=null,!e.status||e.status-201>0)?(t.log("Error: "+e.status),(!e.status&&!e.aborted||500==e.status||416==e.status)&&++r.retry<=i.chunkUploadRetry)?(s=e.status?0:t.chunkNetworkDownRetryTimeout,i.pause(r.file,i),t.log("X-Last-Known-Byte: "+n),n?r.end=n:(r.end=r.start-1,416==e.status&&(r.end=r.end-i.chunkSize)),setTimeout(function(){o._send(i,r)},s)):o.end(e.status):(r.retry=0,r.end==r.size-1?o.end(e.status):(t.log("X-Last-Known-Byte: "+n),n&&(r.end=n),r.file.FileAPIReadPosition=r.end,setTimeout(function(){o._send(i,r)},0)));e=null}},r.start=r.end+1,r.end=Math.max(Math.min(r.start+i.chunkSize,r.size)-1,r.start),l=r.file,y=(l.slice||l.mozSlice||l.webkitSlice).call(l,r.start,r.end+1),r.size&&!y.size?setTimeout(function(){o.end(-1)}):(e.setRequestHeader("Content-Range","bytes "+r.start+"-"+r.end+"/"+r.size),e.setRequestHeader("Content-Disposition","attachment; filename="+encodeURIComponent(r.name)),e.setRequestHeader("Content-Type",r.type||"application/octet-stream"),e.send(y)),l=y=null):(e.upload&&e.upload.addEventListener("progress",t.throttle(function(n){i.progress(n,o,i)},100),!1),e.onreadystatechange=function(){var n,u;if(o.status=e.status,o.statusText=e.statusText,o.readyState=e.readyState,4==e.readyState){for(n in f)o["response"+n]=e["response"+n];(e.onreadystatechange=null,!e.status||e.status>201)?(t.log("Error: "+e.status),(!e.status&&!e.aborted||500==e.status)&&(i.retry||0)<i.uploadRetry)?(i.retry=(i.retry||0)+1,u=t.networkDownRetryTimeout,i.pause(i.file,i),setTimeout(function(){o._send(i,r)},u)):o.end(e.status):o.end(e.status);e=null}},t.isArray(r))?(e.setRequestHeader("Content-Type","multipart/form-data; boundary=_"+t.expando),k=r.join("")+"--_"+t.expando+"--",e.sendAsBinary?e.sendAsBinary(k):(d=Array.prototype.map.call(k,function(n){return 255&n.charCodeAt(0)}),e.send(new Uint8Array(d).buffer))):e.send(r)}}};t.XHR=r}(window,FileAPI),function(n,t){"use strict";function u(n){return n>=0?n+"px":n}function h(n){var t,r=e.createElement("canvas"),i=!1;try{t=r.getContext("2d");t.drawImage(n,0,0,1,1);i=255!=t.getImageData(0,0,1,1).data[4]}catch(u){}return i}var c=n.URL||n.webkitURL,e=n.document,r=n.navigator,o=r.getUserMedia||r.webkitGetUserMedia||r.mozGetUserMedia||r.msGetUserMedia,s=!!o,i,f;t.support.media=s;i=function(n){this.video=n};i.prototype={isActive:function(){return!!this._active},start:function(n){var f,e,t=this,i=t.video,u=function(i){t._active=!i;clearTimeout(e);clearTimeout(f);n&&n(i,t)};o.call(r,{video:!0},function(n){t.stream=n;i.src=c.createObjectURL(n);f=setInterval(function(){h(i)&&u(null)},1e3);e=setTimeout(function(){u("timeout")},5e3);i.play()},u)},stop:function(){try{this._active=!1;this.video.pause();this.stream.stop()}catch(n){}},shot:function(){return new f(this.video)}};i.get=function(n){return new i(n.firstChild)};i.publish=function(r,f,o){var c,h;"function"==typeof f&&(o=f,f={});f=t.extend({},{width:"100%",height:"100%",start:!0},f);r.jquery&&(r=r[0]);c=function(n){if(n)o(n);else{var t=i.get(r);f.start?t.start(o):o(null,t)}};(r.style.width=u(f.width),r.style.height=u(f.height),t.html5&&s)?(h=e.createElement("video"),h.style.width=u(f.width),h.style.height=u(f.height),n.jQuery?jQuery(r).empty():r.innerHTML="",r.appendChild(h),c()):i.fallback(r,f,c)};i.fallback=function(n,t,i){i("not_support_camera")};f=function(n){var i=n.nodeName?t.Image.toCanvas(n):n,r=t.Image(i);return r.type="image/png",r.width=i.width,r.height=i.height,r.size=i.width*i.height*4,r};i.Shot=f;t.Camera=i}(window,FileAPI),function(n,t,i){"use strict";var r=n.document,e=n.location,f=n.navigator,u=i.each;i.support.flash=function(){var r=f.mimeTypes,t=!1;if(f.plugins&&"object"==typeof f.plugins["Shockwave Flash"])t=f.plugins["Shockwave Flash"].description&&!(r&&r["application/x-shockwave-flash"]&&!r["application/x-shockwave-flash"].enabledPlugin);else try{t=!(!n.ActiveXObject||!new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(u){i.log("Flash -- does not supported.")}return t&&/^file:/i.test(e)&&i.log("[warn] Flash does not work on `file:` protocol."),t}();i.support.flash&&(0||!i.html5||!i.support.html5||i.cors&&!i.support.cors||i.media&&!i.support.media)&&function(){function p(n){return('<object id="#id#" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+(n.width||"100%")+'" height="'+(n.height||"100%")+'"><param name="movie" value="#src#" /><param name="flashvars" value="#flashvars#" /><param name="swliveconnect" value="true" /><param name="allownetworking" value="all" /><param name="menu" value="false" /><param name="wmode" value="#wmode#" /><embed flashvars="#flashvars#" swliveconnect="true" allownetworking="all" name="#id#" src="#src#" width="'+(n.width||"100%")+'" height="'+(n.height||"100%")+'" menu="false" wmode="transparent" type="application/x-shockwave-flash"><\/embed><\/object>').replace(/#(\w+)#/gi,function(t,i){return n[i]})}function h(n,t){if(n&&n.style){var r,i;for(r in t){i=t[r];"number"==typeof i&&(i+="px");try{n.style[r]=i}catch(u){}}}}function c(n,t){u(t,function(t,i){var r=n[i];n[i]=function(){return this.parent=r,t.apply(this,arguments)}})}function l(n){return n&&!n.flashId}function y(n){var t=n.wid=i.uid();return o._fn[t]=n,"FileAPI.Flash._fn."+t}function a(n){try{o._fn[n.wid]=null;delete o._fn[n.wid]}catch(t){}}function v(n,t){if(!d.test(n)){if(/^\.\//.test(n)||"/"!=n.charAt(0)){var i=e.pathname;i=i.substr(0,i.lastIndexOf("/"));n=(i+"/"+n).replace("/./","/")}"//"!=n.substr(0,2)&&(n="//"+e.host+n);d.test(n)||(n=e.protocol+n)}return t&&(n+=(/\?/.test(n)?"&":"?")+t),n}function w(n,t,u){function c(){try{var n=o.get(s);n.setImage(t)}catch(r){i.log('[err] FlashAPI.Preview.setImage -- can not set "base64":',r)}}var e,s=i.uid(),f=r.createElement("div"),l=10;for(e in n)f.setAttribute(e,n[e]),f[e]=n[e];h(f,n);n.width="100%";n.height="100%";f.innerHTML=p(i.extend({id:s,src:v(i.flashImageUrl,"r="+i.uid()),wmode:"opaque",flashvars:"scale="+n.scale+"&callback="+y(function w(){return a(w),--l>0&&c(),!0})},n));u(!1,f);f=null}function g(n){return{id:n.id,name:n.name,matrix:n.matrix,flashId:n.flashId}}function nt(n){function t(n){var t,i;if(t=i=0,n.offsetParent)do t+=n.offsetLeft,i+=n.offsetTop;while(n=n.offsetParent);return{left:t,top:i}}return n.getBoundingClientRect(),r.body,(n&&n.ownerDocument).documentElement,{top:t(n).top,left:t(n).left,width:n.offsetWidth,height:n.offsetHeight}}var s=i.uid(),b=0,k={},d=/^https?:/i,o={_fn:{},init:function(){var n=r.body&&r.body.firstChild,t;if(n)do if(1==n.nodeType)return i.log("FlashAPI.state: awaiting"),t=r.createElement("div"),t.id="_"+s,h(t,{top:1,right:1,width:5,height:5,position:"absolute",zIndex:"1000000"}),n.parentNode.insertBefore(t,n),o.publish(t,s),void 0;while(n=n.nextSibling);10>b&&setTimeout(o.init,50*++b)},publish:function(n,t,r){r=r||{};n.innerHTML=p({id:t,src:v(i.flashUrl,"r="+i.version),wmode:r.camera?"":"transparent",flashvars:"callback="+(r.onEvent||"FileAPI.Flash.onEvent")+"&flashId="+t+"&storeKey="+f.userAgent.match(/\d/gi).join("")+"_"+i.version+(o.isReady||(i.pingUrl?"&ping="+i.pingUrl:""))+"&timeout="+i.flashAbortTimeout+(r.camera?"&useCamera="+v(i.flashWebcamUrl):"")+"&debug="+(i.debug?"1":"")},r)},ready:function(){i.log("FlashAPI.state: ready");o.ready=i.F;o.isReady=!0;o.patch();o.patchCamera&&o.patchCamera();i.event.on(r,"mouseover",o.mouseover);i.event.on(r,"click",function(n){o.mouseover(n)&&(n.preventDefault?n.preventDefault():n.returnValue=!0)})},getEl:function(){return r.getElementById("_"+s)},getWrapper:function(n){do if(/js-fileapi-wrapper/.test(n.className))return n;while((n=n.parentNode)&&n!==r.body)},disableMouseover:!1,mouseover:function(n){var t,f,u,e,c;if(!o.disableMouseover)if(t=i.event.fix(n).target,/input/i.test(t.nodeName)&&"file"==t.type&&!t.disabled){if(f=t.getAttribute(s),u=o.getWrapper(t),i.multiFlash){if("i"==f||"r"==f)return!1;if("p"!=f){if(t.setAttribute(s,"i"),e=r.createElement("div"),!u)return i.log("[err] FlashAPI.mouseover: js-fileapi-wrapper not found"),void 0;h(e,{top:0,left:0,width:t.offsetWidth,height:t.offsetHeight,zIndex:"1000000",position:"absolute"});u.appendChild(e);o.publish(e,i.uid());t.setAttribute(s,"p")}return!0}u&&(c=nt(u),h(o.getEl(),c),o.curInp=t)}else/object|embed/i.test(t.nodeName)||h(o.getEl(),{top:1,left:1,width:5,height:5})},onEvent:function(n){var t=n.type;if("ready"==t){try{o.getInput(n.flashId).setAttribute(s,"r")}catch(r){}return o.ready(),setTimeout(function(){o.mouseenter(n)},50),!0}"ping"===t?i.log("(flash -> js).ping:",[n.status,n.savedStatus],n.error):"log"===t?i.log("(flash -> js).log:",n.target):t in o&&setTimeout(function(){i.log("FlashAPI.event."+n.type+":",n);o[t](n)},1)},mouseDown:function(){o.disableMouseover=!0},cancel:function(){o.disableMouseover=!1},mouseenter:function(n){var r=o.getInput(n.flashId),t,f;r&&(o.cmd(n,"multiple",null!=r.getAttribute("multiple")),t=[],f={},u((r.getAttribute("accept")||"").split(/,\s*/),function(n){i.accept[n]&&u(i.accept[n].split(" "),function(n){f[n]=1})}),u(f,function(n,i){t.push(i)}),o.cmd(n,"accept",t.length?t.join(",")+","+t.join(",").toUpperCase():"*"))},get:function(t){return r[t]||n[t]||r.embeds[t]},getInput:function(n){if(!i.multiFlash)return o.curInp;try{var t=o.getWrapper(o.get(n));if(t)return t.getElementsByTagName("input")[0]}catch(r){i.log('[err] Can not find "input" by flashId:',n,r)}},select:function(n){try{var f,s=o.getInput(n.flashId),h=i.uid(s),e=n.target.files;u(e,function(n){i.checkFileObj(n)});k[h]=e;r.createEvent?(f=r.createEvent("Event"),f.files=e,f.initEvent("change",!0,!0),s.dispatchEvent(f)):t?t(s).trigger({type:"change",files:e}):(f=r.createEventObject(),f.files=e,s.fireEvent("onchange",f))}finally{o.disableMouseover=!1}},cmd:function(n,t,r,u){try{return i.log("(js -> flash)."+t+":",r),o.get(n.flashId||n).cmd(t,r)}catch(f){i.log("(js -> flash).onError:",f);u||setTimeout(function(){o.cmd(n,t,r,!0)},50)}},patch:function(){i.flashEngine=!0;c(i,{getFiles:function(n,t,r){if(r)return i.filterFiles(i.getFiles(n),t,r),null;var u=i.isArray(n)?n:k[i.uid(n.target||n.srcElement||n)];return u?(t&&(t=i.getFilesFilter(t),u=i.filter(u,function(n){return t.test(n.name)})),u):this.parent.apply(this,arguments)},getInfo:function(n,t){if(l(n))this.parent.apply(this,arguments);else if(n.isShot)t(null,n.info={width:n.width,height:n.height});else{if(!n.__info){var r=n.__info=i.defer();r.resolve(null,n.info=null)}n.__info.then(t)}}});i.support.transform=!0;i.Image&&c(i.Image.prototype,{get:function(n,t){return this.set({scaleMode:t||"noScale"}),this.parent(n)},_load:function(n,t){if(i.log("FlashAPI.Image._load:",n),l(n))this.parent.apply(this,arguments);else{var r=this;i.getInfo(n,function(i){t.call(r,i,n)})}},_apply:function(n,t){if(i.log("FlashAPI.Image._apply:",n),l(n))this.parent.apply(this,arguments);else{var r=this.getMatrix(n.info),u=t;o.cmd(n,"imageTransform",{id:n.id,matrix:r,callback:y(function f(e,o){i.log("FlashAPI.Image._apply.callback:",e);a(f);e?u(e):i.support.html5||i.support.dataURI&&!(o.length>3e4)?(r.filter&&(u=function(n,u){n?t(n):i.Image.applyFilter(u,r.filter,function(){t(n,this.canvas)})}),i.newImage("data:"+n.type+";base64,"+o,u)):w({width:r.deg%180?r.dh:r.dw,height:r.deg%180?r.dw:r.dh,scale:r.scaleMode},o,u)})})}},toData:function(n){var t=this.file,r=t.info,u=this.getMatrix(r);i.log("FlashAPI.Image.toData");l(t)?this.parent.apply(this,arguments):("auto"==u.deg&&(u.deg=i.Image.exifOrientation[r&&r.exif&&r.exif.Orientation]||0),n.call(this,!t.info,{id:t.id,flashId:t.flashId,name:t.name,type:t.type,matrix:u}))}});i.Image&&c(i.Image,{fromDataURL:function(n,t,r){!i.support.dataURI||n.length>3e4?w(i.extend({scale:"exactFit"},t),n.replace(/^data:[^,]+,/,""),function(n,t){r(t)}):this.parent(n,t,r)}});c(i.Form.prototype,{toData:function(n){for(var t=this.items,r=t.length;r--;)if(t[r].file&&l(t[r].blob))return this.parent.apply(this,arguments);i.log("FlashAPI.Form.toData");n(t)}});c(i.XHR.prototype,{_send:function(n,t){var h;if(t.nodeName||t.append&&i.support.html5||i.isArray(t)&&"string"==typeof t[0])return this.parent.apply(this,arguments);var r,f,l={},c={},e=this;if(u(t,function(n){n.file?(c[n.name]=n=g(n.blob),f=n.id,r=n.flashId):l[n.name]=n.blob}),f||(r=s),!r)return i.log("[err] FlashAPI._send: flashId -- undefined"),this.parent.apply(this,arguments);i.log("FlashAPI.XHR._send: "+r+" -> "+f);e.xhr={headers:{},abort:function(){o.cmd(r,"abort",{id:f})},getResponseHeader:function(n){return this.headers[n]},getAllResponseHeaders:function(){return this.headers}};h=i.queue(function(){o.cmd(r,"upload",{url:v(n.url.replace(/([a-z]+)=(\?)&?/i,"")),data:l,files:f?c:null,headers:n.headers||{},callback:y(function t(r){var u=r.type,f=r.result;i.log("FlashAPI.upload."+u);"progress"==u?(r.loaded=Math.min(r.loaded,r.total),r.lengthComputable=!0,n.progress(r)):"complete"==u?(a(t),"string"==typeof f&&(e.responseText=f.replace(/%22/g,'"').replace(/%5c/g,"\\").replace(/%26/g,"&").replace(/%25/g,"%")),e.end(r.status||200)):("abort"==u||"error"==u)&&(e.end(r.status||0,r.message),a(t))})})});u(c,function(n){h.inc();i.getInfo(n,h.next)});h.check()}})}};i.Flash=o;i.newImage("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",function(n,t){i.support.dataURI=!(1!=t.width||1!=t.height);o.init()})}()}(window,window.jQuery,FileAPI),function(n,t,i){"use strict";var u=i.each,r=[];i.support.flash&&i.media&&!i.support.media&&!function(){function t(n){var t=n.wid=i.uid();return i.Flash._fn[t]=n,"FileAPI.Flash._fn."+t}function f(n){try{i.Flash._fn[n.wid]=null;delete i.Flash._fn[n.wid]}catch(t){}}var n=i.Flash;i.extend(i.Flash,{patchCamera:function(){i.Camera.fallback=function(r,u,e){var o=i.uid();i.log("FlashAPI.Camera.publish: "+o);n.publish(r,o,i.extend(u,{camera:!0,onEvent:t(function s(n){"camera"===n.type&&(f(s),n.error?(i.log("FlashAPI.Camera.publish.error: "+n.error),e(n.error)):(i.log("FlashAPI.Camera.publish.success: "+o),e(null)))})}))};u(r,function(n){i.Camera.fallback.apply(i.Camera,n)});r=[];i.extend(i.Camera.prototype,{_id:function(){return this.video.id},start:function(r){var u=this;n.cmd(this._id(),"camera.on",{callback:t(function e(n){f(e);n.error?(i.log("FlashAPI.camera.on.error: "+n.error),r(n.error,u)):(i.log("FlashAPI.camera.on.success: "+u._id()),u._active=!0,r(null,u))})})},stop:function(){this._active=!1;n.cmd(this._id(),"camera.off")},shot:function(){i.log("FlashAPI.Camera.shot:",this._id());var n=i.Flash.cmd(this._id(),"shot",{});return n.type="image/png",n.flashId=this._id(),n.isShot=!0,new i.Camera.Shot(n)}})}});i.Camera.fallback=function(){r.push(arguments)}}()}(window,window.jQuery,FileAPI);"function"==typeof define&&define.amd&&define("FileAPI",[],function(){return FileAPI});!function(){function e(n,t){window.XMLHttpRequest.prototype[n]=t(window.XMLHttpRequest.prototype[n])}function o(n,t,i,f,e,o){function h(){return"input"===t[0].tagName.toLowerCase()&&t.attr("type")&&"file"===t.attr("type").toLowerCase()}function c(t){var c;if(!s){s=!0;try{for(var a=t.__files_||t.target&&t.target.files,h=[],v=[],l=0;l<a.length;l++)c=a.item(l),u(n,e,i,c,t)?h.push(c):v.push(c);r(e,o,n,f,i,p,h,v,t);0==h.length&&(t.target.value=h)}finally{s=!1}}}function l(r){var f,u;for(i.ngfMultiple&&r.attr("multiple",e(i.ngfMultiple)(n)),e(i.ngfMultiple)(n)||r.attr("multiple",void 0),i.accept&&r.attr("accept",i.accept),i.ngfCapture&&r.attr("capture",e(i.ngfCapture)(n)),i.ngfDisabled&&r.attr("disabled",e(i.ngfDisabled)(n)),f=0;f<t[0].attributes.length;f++)u=t[0].attributes[f],"type"!==u.name&&"class"!==u.name&&"id"!==u.name&&"style"!==u.name&&r.attr(u.name,u.value)}function a(){if(!t.attr("disabled")){var n=angular.element('<input type="file">');return l(n),h()?(t.replaceWith(n),t=n):(n.css("display","none").attr("tabindex","-1").attr("__ngf_gen__",!0),t.__ngf_ref_elem__&&t.__ngf_ref_elem__.remove(),t.__ngf_ref_elem__=n,document.body.appendChild(n[0])),n}}function v(t){r(e,o,n,f,i,p,[],[],t,!0)}function y(n){function r(){i[0].click();h()&&(t.bind("click touchend",y),n.preventDefault())}n.preventDefault();var i=a(n);i&&(i.bind("change",c),v(n),navigator.userAgent.toLowerCase().match(/android/)?setTimeout(function(){r()},0):r())}var p=i.ngfChange||i.ngfSelect&&i.ngfSelect.indexOf("(")>0,s=!1;window.FileAPI&&window.FileAPI.ngfFixIE?window.FileAPI.ngfFixIE(t,a,l,c,v):t.bind("click touchend",y)}function s(n,t,f,e,o,s,h){function w(n,t,i){var s=!0,e=i.dataTransfer.items,f,r;if(null!=e)for(f=0;f<e.length&&s;f++)s=s&&("file"==e[f].kind||""==e[f].kind)&&u(n,o,t,e[f],i);return r=o(t.ngfDragOverClass)(n,{$event:i}),r&&(r.delay&&(p=r.delay),r.accept&&(r=s?r.accept:r.reject)),r||t.ngfDragOverClass||"dragover"}function b(t,i,r,e){function y(i){u(n,o,f,i,t)?l.push(i):d.push(i)}function k(n,t,i){var f,e,r,u;null!=t&&(t.isDirectory?(f=(i||"")+t.name,y({name:t.name,type:"directory",path:f}),e=t.createReader(),r=[],a++,u=function(){e.readEntries(function(f){try{if(f.length)r=r.concat(Array.prototype.slice.call(f||[],0)),u();else{for(var e=0;e<r.length;e++)k(n,r[e],(i?i:"")+t.name+"/");a--}}catch(o){a--;console.error(o)}},function(){a--})},u()):(a++,t.file(function(n){try{a--;n.path=(i?i:"")+n.name;y(n)}catch(t){a--;console.error(t)}},function(){a--})))}var l=[],d=[],v=t.dataTransfer.items,a=0,p,b,w,c,g;if(v&&v.length>0&&"file"!=h.protocol())for(c=0;c<v.length;c++){if(v[c].webkitGetAsEntry&&v[c].webkitGetAsEntry()&&v[c].webkitGetAsEntry().isDirectory){if(p=v[c].webkitGetAsEntry(),p.isDirectory&&!r)continue;null!=p&&k(l,p)}else b=v[c].getAsFile(),null!=b&&y(b);if(!e&&l.length>0)break}else if(w=t.dataTransfer.files,null!=w)for(c=0;c<w.length&&(y(w.item(c)),e||!(l.length>0));c++);g=0;!function nt(n){s(function(){if(a)10*g++<2e4&&nt(10);else{if(!e&&l.length>1){for(c=0;"directory"==l[c].type;)c++;l=[l[c]]}i(l,d)}},n||0)}()}var a=i();if(f.dropAvailable&&s(function(){n[f.dropAvailable]?n[f.dropAvailable].value=a:n[f.dropAvailable]=a}),!a)return 1==o(f.ngfHideOnDropNotAvailable)(n)&&t.css("display","none"),void 0;var c,y=null,v=o(f.ngfStopPropagation),p=1,l=(o(f.ngfAccept),o(f.ngfDisabled));t[0].addEventListener("dragover",function(i){if(!l(n)){if(i.preventDefault(),v(n)&&i.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var r=i.dataTransfer.effectAllowed;i.dataTransfer.dropEffect="move"===r||"linkMove"===r?"move":"copy"}s.cancel(y);n.actualDragOverClass||(c=w(n,f,i));t.addClass(c)}},!1);t[0].addEventListener("dragenter",function(t){l(n)||(t.preventDefault(),v(n)&&t.stopPropagation())},!1);t[0].addEventListener("dragleave",function(){l(n)||(y=s(function(){t.removeClass(c);c=null},p||1))},!1);t[0].addEventListener("drop",function(i){l(n)||(i.preventDefault(),v(n)&&i.stopPropagation(),t.removeClass(c),c=null,b(i,function(t,u){r(o,s,n,e,f,f.ngfChange||f.ngfDrop&&f.ngfDrop.indexOf("(")>0,t,u,i)},0!=o(f.ngfAllowDir)(n),f.multiple||o(f.ngfMultiple)(n)))},!1)}function i(){var n=document.createElement("div");return"draggable"in n&&"ondrop"in n}function r(n,t,i,r,u,f,e,o,s,h){function c(){r&&(n(u.ngModel).assign(i,e),t(function(){r&&r.$setViewValue(null!=e&&0==e.length?null:e)}));u.ngModelRejected&&n(u.ngModelRejected).assign(i,o);f&&n(f)(i,{$files:e,$rejectedFiles:o,$event:s})}h?c():t(function(){c()})}function u(n,t,i,r,u){var h=t(i.ngfAccept),c=t(i.ngfMaxSize)(n)||9007199254740991,l=t(i.ngfMinSize)(n)||-1,e=h(n,{$file:r,$event:u}),s=!1,o;return null!=e&&angular.isString(e)&&(o=new RegExp(f(e),"gi"),s=null!=r.type&&r.type.match(o)||null!=r.name&&r.name.match(o)),(null==e||s)&&(null==r.size||r.size<c&&r.size>l)}function f(n){var i,t,r;if(n.length>2&&"/"===n[0]&&"/"===n[n.length-1])return n.substring(1,n.length-1);if(i=n.split(","),t="",i.length>1)for(r=0;r<i.length;r++)t+="("+f(i[r])+")",r<i.length-1&&(t+="|");else 0==n.indexOf(".")&&(n="*"+n),t="^"+n.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",t=t.replace(/\\\*/g,".*").replace(/\\\?/g,".");return t}var n,t;window.XMLHttpRequest&&!window.XMLHttpRequest.__isFileAPIShim&&e("setRequestHeader",function(n){return function(t,i){if("__setXHR_"===t){var r=i(this);r instanceof Function&&r(this)}else n.apply(this,arguments)}});t=angular.module("ngFileUpload",[]);t.version="4.0.4";t.service("Upload",["$http","$q","$timeout",function(t,i,r){function u(n){n.method=n.method||"POST";n.headers=n.headers||{};n.transformRequest=n.transformRequest||function(n,i){return window.ArrayBuffer&&n instanceof window.ArrayBuffer?n:t.defaults.transformRequest[0](n,i)};var f=i.defer(),u=f.promise;return n.headers.__setXHR_=function(){return function(t){t&&(n.__XHR=t,n.xhrFn&&n.xhrFn(t),t.upload.addEventListener("progress",function(t){t.config=n;f.notify?f.notify(t):u.progress_fn&&r(function(){u.progress_fn(t)})},!1),t.upload.addEventListener("load",function(t){t.lengthComputable&&(t.config=n,f.notify?f.notify(t):u.progress_fn&&r(function(){u.progress_fn(t)}))},!1))}},t(n).then(function(n){f.resolve(n)},function(n){f.reject(n)},function(n){f.notify(n)}),u.success=function(t){return u.then(function(i){t(i.data,i.status,i.headers,n)}),u},u.error=function(t){return u.then(null,function(i){t(i.data,i.status,i.headers,n)}),u},u.progress=function(n){return u.progress_fn=n,u.then(null,null,function(t){n(t)}),u},u.abort=function(){return n.__XHR&&r(function(){n.__XHR.abort()}),u},u.xhr=function(t){return n.xhrFn=function(n){return function(){n&&n.apply(u,arguments);t.apply(u,arguments)}}(n.xhrFn),u},u}this.upload=function(t){return t.headers=t.headers||{},t.headers["Content-Type"]=void 0,t.transformRequest=t.transformRequest?angular.isArray(t.transformRequest)?t.transformRequest:[t.transformRequest]:[],t.transformRequest.push(function(i){var f=new FormData,u={},r,o,s,e;for(n in t.fields)t.fields.hasOwnProperty(n)&&(u[n]=t.fields[n]);if(i&&(u.data=i),t.formDataAppender)for(n in u)u.hasOwnProperty(n)&&t.formDataAppender(f,n,u[n]);else for(n in u)u.hasOwnProperty(n)&&(r=u[n],void 0!==r&&(angular.isDate(r)&&(r=r.toISOString()),angular.isString(r)?f.append(n,r):t.sendObjectsAsJsonBlob&&angular.isObject(r)?f.append(n,new Blob([r],{type:"application/json"})):f.append(n,JSON.stringify(r))));if(null!=t.file)if(o=t.fileFormDataName||"file",angular.isArray(t.file))for(s=angular.isString(o),e=0;e<t.file.length;e++)f.append(s?o:o[e],t.file[e],t.fileName&&t.fileName[e]||t.file[e].name);else f.append(o,t.file,t.fileName||t.file.name);return f}),u(t)};this.http=function(n){return u(n)}}]);t.directive("ngfSelect",["$parse","$timeout","$compile",function(n,t,i){return{restrict:"AEC",require:"?ngModel",link:function(r,u,f,e){o(r,u,f,e,n,t,i)}}}]);t.directive("ngfDrop",["$parse","$timeout","$location",function(n,t,i){return{restrict:"AEC",require:"?ngModel",link:function(r,u,f,e){s(r,u,f,e,n,t,i)}}}]);t.directive("ngfNoFileDrop",function(){return function(n,t){i()&&t.css("display","none")}});t.directive("ngfDropAvailable",["$parse","$timeout",function(n,t){return function(r,u,f){if(i()){var e=n(f.ngfDropAvailable);t(function(){e(r);e.assign&&e.assign(r,!0)})}}}]);t.directive("ngfThumbnail",["$parse","$timeout",function(n,t){return{restrict:"AE",link:function(n,i,r){window.FileReader&&n.$watch(r.ngfThumbnail,function(n){n&&n.type.indexOf("image")>-1?t(function(){var r=new FileReader;r.readAsDataURL(n);r.onload=function(n){t(function(){i.attr("src",n.target.result)})}}):i.attr("src","")})}}}])}(),function(){function t(n,t){window.XMLHttpRequest.prototype[n]=t(window.XMLHttpRequest.prototype[n])}function n(n,t,i){try{Object.defineProperty(n,t,{get:i})}catch(r){}}function u(n){return"input"===n[0].tagName.toLowerCase()&&n.attr("type")&&"file"===n.attr("type").toLowerCase()}var i=function(){try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(n)return!0}catch(t){if(void 0!=navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1},r;(window.XMLHttpRequest&&!window.FormData||window.FileAPI&&FileAPI.forceLoad)&&(r=function(n){if(!n.__listeners){n.upload||(n.upload={});n.__listeners=[];var t=n.upload.addEventListener;n.upload.addEventListener=function(i,r){n.__listeners[i]=r;t&&t.apply(this,arguments)}}},t("open",function(n){return function(t,i,u){r(this);this.__url=i;try{n.apply(this,[t,i,u])}catch(f){f.message.indexOf("Access is denied")>-1&&(this.__origError=f,n.apply(this,[t,"_fix_for_ie_crossdomain__",u]))}}}),t("getResponseHeader",function(n){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):null==n?null:n.apply(this,[t])}}),t("getAllResponseHeaders",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==n?null:n.apply(this)}}),t("abort",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==n?null:n.apply(this)}}),t("setRequestHeader",function(n){return function(t,i){if("__setXHR_"===t){r(this);var u=i(this);u instanceof Function&&u(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=i,n.apply(this,arguments)}}),t("send",function(t){return function(){var r=this,o,f,e,u;if(arguments[0]&&arguments[0].__isFileAPIShim){for(o=arguments[0],f={url:r.__url,jsonp:!1,cache:!0,complete:function(t,i){r.__completed=!0;!t&&r.__listeners.load&&r.__listeners.load({type:"load",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0});!t&&r.__listeners.loadend&&r.__listeners.loadend({type:"loadend",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0});"abort"===t&&r.__listeners.abort&&r.__listeners.abort({type:"abort",loaded:r.__loaded,total:r.__total,target:r,lengthComputable:!0});void 0!==i.status&&n(r,"status",function(){return 0==i.status&&t&&"abort"!==t?500:i.status});void 0!==i.statusText&&n(r,"statusText",function(){return i.statusText});n(r,"readyState",function(){return 4});void 0!==i.response&&n(r,"response",function(){return i.response});var u=i.responseText||(t&&0==i.status&&"abort"!==t?t:void 0);n(r,"responseText",function(){return u});n(r,"response",function(){return u});t&&n(r,"err",function(){return t});r.__fileApiXHR=i;r.onreadystatechange&&r.onreadystatechange();r.onload&&r.onload()},fileprogress:function(n){if(n.target=r,r.__listeners.progress&&r.__listeners.progress(n),r.__total=n.total,r.__loaded=n.loaded,n.total===n.loaded){var t=this;setTimeout(function(){r.__completed||(r.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4)}},headers:r.__requestHeaders},f.data={},f.files={},e=0;e<o.data.length;e++)u=o.data[e],null!=u.val&&null!=u.val.name&&null!=u.val.size&&null!=u.val.type?f.files[u.key]=u.val:f.data[u.key]=u.val;setTimeout(function(){if(!i())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';r.__fileApiXHR=FileAPI.upload(f)},1)}else{if(this.__origError)throw this.__origError;t.apply(r,arguments)}}}),window.XMLHttpRequest.__isFileAPIShim=!0,window.FormData=FormData=function(){return{append:function(n,t,i){t.__isFileAPIBlobShim&&(t=t.data[0]);this.data.push({key:n,val:t,name:i})},data:[],__isFileAPIShim:!0}},window.Blob=Blob=function(n){return{data:n,__isFileAPIBlobShim:!0}},function(){if(window.FileAPI||(window.FileAPI={}),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var f,n,t,r,u,e=document.createElement("script"),o=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)f=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)n=window.FileAPI.jsPath;else for(t=0;t<o.length;t++)if(u=o[t].src,r=u.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/),r>-1){n=u.substring(0,r+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=n);e.setAttribute("src",f||n+"FileAPI.min.js");document.getElementsByTagName("head")[0].appendChild(e);FileAPI.hasFlash=i()}}(),FileAPI.ngfFixIE=function(n,t,r,f){var e,o;if(!i())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';e=function(){function s(n){var t,i;if(t=i=0,n.offsetParent)do t+=n.offsetLeft,i+=n.offsetTop;while(n=n.offsetParent);return{left:t,top:i}}if(n.attr("disabled"))n.__ngf_elem__.removeClass("js-fileapi-wrapper");else{var i=n.__ngf_elem__;i?r(n.__ngf_elem__):(i=n.__ngf_elem__=t(),i.addClass("js-fileapi-wrapper"),!u(n),setTimeout(function(){i.bind("mouseenter",e)},10),i.bind("change",function(n){o.apply(this,[n]);f.apply(this,[n])}));u(n)||i.css("position","absolute").css("top",s(n[0]).top+"px").css("left",s(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")}};n.bind("mouseenter",e);o=function(n){for(var t=FileAPI.getFiles(n),i=0;i<t.length;i++)void 0===t[i].size&&(t[i].size=0),void 0===t[i].name&&(t[i].name="file"),void 0===t[i].type&&(t[i].type="undefined");n.target||(n.target={});n.target.files=t;n.target.files!=t&&(n.__files_=t);(n.__files_||n.target.files).item=function(t){return(n.__files_||n.target.files)[t]||null}}},FileAPI.disableFileInput=function(n,t){t?n.removeClass("js-fileapi-wrapper"):n.addClass("js-fileapi-wrapper")});window.FileReader||(window.FileReader=function(){var n=this,r=!1,t,i;this.listeners={};this.addEventListener=function(t,i){n.listeners[t]=n.listeners[t]||[];n.listeners[t].push(i)};this.removeEventListener=function(t,i){n.listeners[t]&&n.listeners[t].splice(n.listeners[t].indexOf(i),1)};this.dispatchEvent=function(t){var r=n.listeners[t.type],i;if(r)for(i=0;i<r.length;i++)r[i].call(n,t)};this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;t=function(t,i){var r={type:t,target:n,loaded:i.loaded,total:i.total,error:i.error};return null!=i.result&&(r.target.result=i.result),r};i=function(i){var u;(r||(r=!0,n.onloadstart&&n.onloadstart(t("loadstart",i))),"load"===i.type)?(n.onloadend&&n.onloadend(t("loadend",i)),u=t("load",i),n.onload&&n.onload(u),n.dispatchEvent(u)):"progress"===i.type?(u=t("progress",i),n.onprogress&&n.onprogress(u),n.dispatchEvent(u)):(u=t("error",i),n.onerror&&n.onerror(u),n.dispatchEvent(u))};this.readAsArrayBuffer=function(n){FileAPI.readAsBinaryString(n,i)};this.readAsBinaryString=function(n){FileAPI.readAsBinaryString(n,i)};this.readAsDataURL=function(n){FileAPI.readAsDataURL(n,i)};this.readAsText=function(n){FileAPI.readAsText(n,i)}})}(),function(n,t){"use strict";function r(n,i,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(u,f,e,o,s){function v(){c&&(r.cancel(c),c=null);h&&(h.$destroy(),h=null);l&&(c=r.leave(l),c.then(function(){c=null}),l=null)}function y(){var e=n.current&&n.current.locals,o;t.isDefined(e&&e.$template)?(e=u.$new(),o=n.current,l=s(e,function(n){r.enter(n,null,l||f).then(function(){t.isDefined(a)&&(!a||u.$eval(a))&&i()});v()}),h=o.scope=e,h.$emit("$viewContentLoaded"),h.$eval(p)):v()}var h,l,c,a=e.autoscroll,p=e.onload||"";u.$on("$routeChangeSuccess",y);y()}}}function u(n,t,i){return{restrict:"ECA",priority:-400,link:function(r,u){var f=i.current,e=f.locals,s,o;u.html(e.$template);s=n(u.contents());f.controller&&(e.$scope=r,o=t(f.controller,e),f.controllerAs&&(r[f.controllerAs]=o),u.data("$ngControllerController",o),u.children().data("$ngControllerController",o));r[f.resolveAs||"$resolve"]=e;s(r)}}}var f,e,i=t.module("ngRoute",["ng"]).provider("$route",function(){function i(n,i){return t.extend(Object.create(n),i)}function r(n,t){var r=t.caseInsensitiveMatch,i={originalPath:n,regexp:n},u=i.keys=[];return n=n.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(n,t,i,r){return n="?"===r||"*?"===r?"?":null,r="*"===r||"*?"===r?"*":null,u.push({name:i,optional:!!n}),t=t||"",""+(n?"":t)+"(?:"+(n?t:"")+(r&&"(.+?)"||"([^/]+)")+(n||"")+")"+(n||"")}).replace(/([\/$\*])/g,"\\$1"),i.regexp=new RegExp("^"+n+"$",r?"i":""),i}f=t.isArray;e=t.isObject;var n={};this.when=function(i,u){var o,s,h;if(o=void 0,f(u))for(o=o||[],s=0,h=u.length;s<h;s++)o[s]=u[s];else if(e(u))for(s in o=o||{},u)("$"!==s.charAt(0)||"$"!==s.charAt(1))&&(o[s]=u[s]);return o=o||u,t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),n[i]=t.extend(o,i&&r(i,o)),i&&(s="/"==i[i.length-1]?i.substr(0,i.length-1):i+"/",n[s]=t.extend({redirectTo:i},r(s,o))),this};this.caseInsensitiveMatch=!1;this.otherwise=function(n){return"string"==typeof n&&(n={redirectTo:n}),this.when(null,n),this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(r,u,f,e,s,h,c){function y(n){var i=a.current;!(b=(l=g())&&i&&l.$$route===i.$$route&&t.equals(l.pathParams,i.pathParams)&&!l.reloadOnSearch&&!v)&&(i||l)&&r.$broadcast("$routeChangeStart",l,i).defaultPrevented&&n&&n.preventDefault()}function p(){var i=a.current,n=l;b?(i.params=n.params,t.copy(i.params,f),r.$broadcast("$routeUpdate",i)):(n||i)&&(v=!1,(a.current=n)&&n.redirectTo&&(t.isString(n.redirectTo)?u.path(w(n.redirectTo,n.params)).search(n.params).replace():u.url(n.redirectTo(n.pathParams,u.path(),u.search())).replace()),e.when(n).then(k).then(function(u){n==a.current&&(n&&(n.locals=u,t.copy(n.params,f)),r.$broadcast("$routeChangeSuccess",n,i))},function(t){n==a.current&&r.$broadcast("$routeChangeError",n,i,t)}))}function k(n){if(n){var i=t.extend({},n.resolve);return t.forEach(i,function(n,r){i[r]=t.isString(n)?s.get(n):s.invoke(n,null,null,r)}),n=d(n),t.isDefined(n)&&(i.$template=n),e.all(i)}}function d(n){var r,i;return t.isDefined(r=n.template)?t.isFunction(r)&&(r=r(n.params)):t.isDefined(i=n.templateUrl)&&(t.isFunction(i)&&(i=i(n.params)),t.isDefined(i)&&(n.loadedTemplateUrl=c.valueOf(i),r=h(i))),r}function g(){var f,r;return t.forEach(n,function(n){var e,o,h,s,a,c,l;if(e=!r){if(o=u.path(),e=n.keys,h={},n.regexp)if(o=n.regexp.exec(o)){for(s=1,a=o.length;s<a;++s)c=e[s-1],l=o[s],c&&l&&(h[c.name]=l);e=h}else e=null;else e=null;e=f=e}e&&(r=i(n,{params:t.extend({},u.search(),f),pathParams:f}),r.$$route=n)}),r||n[null]&&i(n[null],{params:{},pathParams:{}})}function w(n,i){var r=[];return t.forEach((n||"").split(":"),function(n,t){if(0===t)r.push(n);else{var u=n.match(/(\w+)(?:[?*])?(.*)/),f=u[1];r.push(i[f]);r.push(u[2]||"");delete i[f]}}),r.join("")}var v=!1,l,b,a={routes:n,reload:function(){v=!0;var n={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0;v=!1}};r.$evalAsync(function(){y(n);n.defaultPrevented||p()})},updateParams:function(n){if(this.current&&this.current.$$route)n=t.extend({},this.current.params,n),u.path(w(this.current.$$route.originalPath,n)),u.search(n);else throw o("norout");}};return r.$on("$locationChangeStart",y),r.$on("$locationChangeSuccess",p),a}]}),o=t.$$minErr("ngRoute");i.provider("$routeParams",function(){this.$get=function(){return{}}});i.directive("ngView",r);i.directive("ngView",u);r.$inject=["$route","$anchorScroll","$animate"];u.$inject=["$compile","$controller","$route"]}(window,window.angular),function(n,t){"use strict";function r(n,i){i=i||{};t.forEach(i,function(n,t){delete i[t]});for(var r in n)n.hasOwnProperty(r)&&("$"!==r.charAt(0)||"$"!==r.charAt(1))&&(i[r]=n[r]);return i}var i=t.$$minErr("$resource"),u=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;t.module("ngResource",["ng"]).provider("$resource",function(){var f=/^https?:\/\/[^\/]*/,n=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}};this.$get=["$http","$log","$q","$timeout",function(e,o,s,h){function v(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function y(t,i){this.template=t;this.defaults=l({},n.defaults,i);this.urlParams={}}function p(f,v,k,d){function nt(n,r){var f={};return r=l({},v,r),c(r,function(r,e){var s,o,c;if(a(r)&&(r=r(n)),r&&r.charAt&&"@"==r.charAt(0)){if(s=n,o=r.substr(1),null==o||""===o||"hasOwnProperty"===o||!u.test("."+o))throw i("badmember",o);for(var o=o.split("."),h=0,l=o.length;h<l&&t.isDefined(s);h++)c=o[h],s=null!==s?s[c]:void 0}else s=r;f[e]=s}),f}function tt(n){return n.resource}function g(n){r(n||{},this)}var it=new y(f,d);return k=l({},n.defaults.actions,k),g.prototype.toJSON=function(){var n=l({},this);return delete n.$promise,delete n.$resolved,n},c(k,function(u,f){var p=/^(POST|PUT|PATCH)$/i.test(u.method),v=u.timeout,y=t.isDefined(u.cancellable)?u.cancellable:d&&t.isDefined(d.cancellable)?d.cancellable:n.defaults.cancellable;v&&!t.isNumber(v)&&(o.debug("ngResource:\n  Only numeric values are allowed as `timeout`.\n  Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete u.timeout,v=null);g[f]=function(n,o,k,d){var ut={},et,ot,ht;switch(arguments.length){case 4:ht=d;ot=k;case 3:case 2:if(a(o)){if(a(n)){ot=n;ht=o;break}ot=o;ht=k}else{ut=n;et=o;ot=k;break}case 1:a(n)?ot=n:p?et=n:ut=n;break;case 0:break;default:throw i("badargs",arguments.length);}var ct=this instanceof g,rt=ct?et:u.isArray?[]:new g(et),ft={},at=u.interceptor&&u.interceptor.response||tt,vt=u.interceptor&&u.interceptor.responseError||void 0,st,lt;return c(u,function(n,t){switch(t){default:ft[t]=b(n);case"params":case"isArray":case"interceptor":case"cancellable":}}),!ct&&y&&(st=s.defer(),ft.timeout=st.promise,v&&(lt=h(st.resolve,v))),p&&(ft.data=et),it.setUrlParams(ft,l({},nt(et,u.params||{}),ut),u.url),ut=e(ft).then(function(n){var e=n.data,o;if(e){if(t.isArray(e)!==!!u.isArray)throw i("badcfg",f,u.isArray?"array":"object",t.isArray(e)?"array":"object",ft.method,ft.url);u.isArray?(rt.length=0,c(e,function(n){"object"==typeof n?rt.push(new g(n)):rt.push(n)})):(o=rt.$promise,r(e,rt),rt.$promise=o)}return n.resource=rt,n},function(n){return(ht||w)(n),s.reject(n)}),ut["finally"](function(){rt.$resolved=!0;!ct&&y&&(rt.$cancelRequest=t.noop,h.cancel(lt),st=lt=ft.timeout=null)}),ut=ut.then(function(n){var t=at(n);return(ot||w)(t,n.headers),t},vt),ct?ut:(rt.$promise=ut,rt.$resolved=!1,y&&(rt.$cancelRequest=st.resolve),rt)};g.prototype["$"+f]=function(n,t,i){return a(n)&&(i=t,t=n,n={}),n=g[f].call(this,n,this,t,i),n.$promise||n}}),g.bind=function(n){return p(f,l({},v,n),k)},g}var w=t.noop,c=t.forEach,l=t.extend,b=t.copy,a=t.isFunction;return y.prototype={setUrlParams:function(n,r,u){var o=this,e=u||o.template,s,h,l="",a=o.urlParams={};c(e.split(/\W/),function(n){if("hasOwnProperty"===n)throw i("badname");!/^\d+$/.test(n)&&n&&new RegExp("(^|[^\\\\]):"+n+"(\\W|$)").test(e)&&(a[n]={isQueryParamValue:new RegExp("\\?.*=:"+n+"(?:\\W|$)").test(e)})});e=e.replace(/\\:/g,":");e=e.replace(f,function(n){return l=n,""});r=r||{};c(o.urlParams,function(n,i){s=r.hasOwnProperty(i)?r[i]:o.defaults[i];t.isDefined(s)&&null!==s?(h=n.isQueryParamValue?v(s,!0):v(s,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+"),e=e.replace(new RegExp(":"+i+"(\\W|$)","g"),function(n,t){return h+t})):e=e.replace(new RegExp("(/?):"+i+"(\\W|$)","g"),function(n,t,i){return"/"==i.charAt(0)?i:t+i})});o.defaults.stripTrailingSlashes&&(e=e.replace(/\/+$/,"")||"/");e=e.replace(/\/\.(?=\w+($|\?))/,".");n.url=l+e.replace(/\/\\\./,"/.");c(r,function(t,i){o.urlParams[i]||(n.params=n.params||{},n.params[i]=t)})}},p}]})}(window,window.angular),function(n,t){"use strict";function i(n,i,r){var u=r.baseHref(),f=n[0];return function(n,r,e){var s,o;e=e||{};o=e.expires;s=t.isDefined(e.path)?e.path:u;t.isUndefined(r)&&(o="Thu, 01 Jan 1970 00:00:00 GMT",r="");t.isString(o)&&(o=new Date(o));r=encodeURIComponent(n)+"="+encodeURIComponent(r);r=r+(s?";path="+s:"")+(e.domain?";domain="+e.domain:"");r+=o?";expires="+o.toUTCString():"";r+=e.secure?";secure":"";e=r.length+1;4096<e&&i.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+e+" > 4096 bytes)!");f.cookie=r}}t.module("ngCookies",["ng"]).provider("$cookies",[function(){var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(i,r){return{get:function(n){return i()[n]},getObject:function(n){return(n=this.get(n))?t.fromJson(n):n},getAll:function(){return i()},put:function(i,u,f){r(i,u,f?t.extend({},n,f):n)},putObject:function(n,i,r){this.put(n,t.toJson(i),r)},remove:function(i,u){r(i,void 0,u?t.extend({},n,u):n)}}}]}]);t.module("ngCookies").factory("$cookieStore",["$cookies",function(n){return{get:function(t){return n.getObject(t)},put:function(t,i){n.putObject(t,i)},remove:function(t){n.remove(t)}}}]);i.$inject=["$document","$log","$browser"];t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=i})}(window,window.angular),function(n,t){"use strict";function l(n){var t=[];return u(t,h).chars(n),t.join("")}var f=t.$$minErr("$sanitize"),e,i,o,s,r,h,c,u;t.module("ngSanitize",[]).provider("$sanitize",function(){function a(n,t){for(var f={},u=n.split(","),i=0;i<u.length;i++)f[t?r(u[i]):u[i]]=!0;return f}function tt(n){for(var i,r={},t=0,u=n.length;t<u;t++)i=n[t],r[i.name]=i.value;return r}function k(n){return n.replace(/&/g,"&amp;").replace(it,function(n){var t=n.charCodeAt(0);return n=n.charCodeAt(1),"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(rt,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function y(t){var u,f;if(t.nodeType===n.Node.ELEMENT_NODE)for(var i=t.attributes,r=0,e=i.length;r<e;r++)u=i[r],f=u.name.toLowerCase(),("xmlns:ns1"===f||0===f.lastIndexOf("ns1:",0))&&(t.removeAttributeNode(u),r--,e--);(i=t.firstChild)&&y(i);(i=t.nextSibling)&&y(i)}var p=!1;this.$get=["$$sanitizeUri",function(n){return p&&i(b,ut),function(t){var i=[];return c(t,u(i,function(t,i){return!/^unsafe:/.test(n(t,i))})),i.join("")}}];this.enableSvg=function(n){return s(n)?(p=n,this):p};e=t.bind;i=t.extend;o=t.forEach;s=t.isDefined;r=t.lowercase;h=t.noop;c=function(t,i){var r,u;null===t||void 0===t?t="":"string"!=typeof t&&(t=""+t);l.innerHTML=t;r=5;do{if(0===r)throw f("uinput");r--;n.document.documentMode&&y(l);t=l.innerHTML;l.innerHTML=t}while(t!==l.innerHTML);for(r=l.firstChild;r;){switch(r.nodeType){case 1:i.start(r.nodeName.toLowerCase(),tt(r.attributes));break;case 3:i.chars(r.textContent)}if(!(u=r.firstChild)&&(1==r.nodeType&&i.end(r.nodeName.toLowerCase()),u=r.nextSibling,!u))for(;null==u;){if(r=r.parentNode,r===l)break;u=r.nextSibling;1==r.nodeType&&i.end(r.nodeName.toLowerCase())}r=u}for(;r=l.firstChild;)l.removeChild(r)};u=function(n,t){var u=!1,i=e(n,n.push);return{start:function(n,f){n=r(n);!u&&ft[n]&&(u=n);u||!0!==b[n]||(i("<"),i(n),o(f,function(u,f){var e=r(f),o="img"===n&&"src"===e||"background"===e;!0===et[e]&&(!0!==nt[e]||t(u,o))&&(i(" "),i(f),i('="'),i(k(u)),i('"'))}),i(">"))},end:function(n){n=r(n);u||!0!==b[n]||!0===d[n]||(i("<\/"),i(n),i(">"));n==u&&(u=!1)},chars:function(n){u||i(k(n))}}};var it=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rt=/([^\#-~ |!])/g,d=a("area,br,col,hr,img,wbr"),w=a("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),v=a("rp,rt"),g=i({},v,w),w=i({},w,a("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")),v=i({},v,a("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")),ut=a("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"),ft=a("script,style"),b=i({},d,w,v,g),nt=a("background,cite,href,longdesc,src,xlink:href"),g=a("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"),v=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),et=i({},nt,v,g),l;(function(n){if(n.document&&n.document.implementation)n=n.document.implementation.createHTMLDocument("inert");else throw f("noinert");var t=(n.documentElement||n.getDocumentElement()).getElementsByTagName("body");1===t.length?l=t[0]:(t=n.createElement("html"),l=n.createElement("body"),t.appendChild(l),n.appendChild(t))})(n)});t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,u=t.$$minErr("linky"),f=t.isDefined,e=t.isFunction,o=t.isObject,s=t.isString;return function(t,h,c){function p(n){n&&a.push(l(n))}function b(n,t){var i,r=k(n);a.push("<a ");for(i in r)a.push(i+'="'+r[i]+'" ');!f(h)||"target"in r||a.push('target="',h,'" ');a.push('href="',n.replace(/"/g,"&quot;"),'">');p(t);a.push("<\/a>")}if(null==t||""===t)return t;if(!s(t))throw u("notstring",t);for(var k=e(c)?c:o(c)?function(){return c}:function(){return{}},v=t,a=[],y,w;t=v.match(i);)y=t[0],t[2]||t[4]||(y=(t[3]?"http://":"mailto:")+y),w=t.index,p(v.substr(0,w)),b(y,t[0].replace(r,"")),v=v.substring(w+t[0].length);return p(v),n(a.join(""))}}])}(window,window.angular);angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]);angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(n,t,i,r){var u=r.has("$animateCss")?r.get("$animateCss"):null;return{link:function(r,f,e){function v(){l=!!("horizontal"in e);l?(s={width:""},o={width:"0"}):(s={height:""},o={height:"0"});r.$eval(e.uibCollapse)||f.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(s)}function h(n){return l?{width:n.scrollWidth+"px"}:{height:n.scrollHeight+"px"}}function y(){f.hasClass("collapse")&&f.hasClass("in")||t.resolve(w(r)).then(function(){f.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1);u?u(f,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:h(f[0])}).start()["finally"](a):n.addClass(f,"in",{css:{overflow:"hidden"},to:h(f[0])}).then(a)})}function a(){f.removeClass("collapsing").addClass("collapse").css(s);b(r)}function p(){return f.hasClass("collapse")||f.hasClass("in")?void t.resolve(k(r)).then(function(){f.css(h(f[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0);u?u(f,{removeClass:"in",to:o}).start()["finally"](c):n.removeClass(f,"in",{to:o}).then(c)}):c()}function c(){f.css(o);f.removeClass("collapsing").addClass("collapse");d(r)}var w=i(e.expanding),b=i(e.expanded),k=i(e.collapsing),d=i(e.collapsed),l=!1,s={},o={};v();r.$watch(e.uibCollapse,function(n){n?p():y()})}}}]);angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(n,t,i){i.$observe("disabled",function(n){i.$set("tabindex",n?-1:null)})}}});angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(n,t,i){this.groups=[];this.closeOthers=function(r){var u=angular.isDefined(t.closeOthers)?n.$eval(t.closeOthers):i.closeOthers;u&&angular.forEach(this.groups,function(n){n!==r&&(n.isOpen=!1)})};this.addGroup=function(n){var t=this;this.groups.push(n);n.$on("$destroy",function(){t.removeGroup(n)})};this.removeGroup=function(n){var t=this.groups.indexOf(n);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(n,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){t.addClass("panel");r.addGroup(n);n.openClass=i.openClass||"panel-open";n.panelClass=i.panelClass||"panel-default";n.$watch("isOpen",function(i){t.toggleClass(n.openClass,!!i);i&&r.closeOthers(n)});n.toggleOpen=function(t){n.isDisabled||t&&32!==t.which||(n.isOpen=!n.isOpen)};var u="accordiongroup-"+n.$id+"-"+Math.floor(1e4*Math.random());n.headingId=u+"-tab";n.panelId=u+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,angular.noop))}}}).directive("uibAccordionTransclude",function(){function n(){return"uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"}return{require:"^uibAccordionGroup",link:function(t,i,r,u){t.$watch(function(){return u[r.uibAccordionTransclude]},function(t){if(t){var r=angular.element(i[0].querySelector(n()));r.html("");r.append(t)}})}}});angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(n,t,i,r,u){n.closeable=!!i.close;t.addClass("alert");i.$set("role","alert");n.closeable&&t.addClass("alert-dismissible");var f=angular.isDefined(i.dismissOnTimeout)?r(i.dismissOnTimeout)(n.$parent):null;f&&u(function(){n.close()},parseInt(f,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(n,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}});angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(n){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,i,r,u){var e=u[0],f=u[1],o=n(r.uibUncheckable);i.find("input").css({display:"none"});f.$render=function(){i.toggleClass(e.activeClass,angular.equals(f.$modelValue,t.$eval(r.uibBtnRadio)))};i.on(e.toggleEvent,function(){if(!r.disabled){var n=i.hasClass(e.activeClass);n&&!angular.isDefined(r.uncheckable)||t.$apply(function(){f.$setViewValue(n?null:t.$eval(r.uibBtnRadio));f.$render()})}});r.uibUncheckable&&t.$watch(o,function(n){r.$set("uncheckable",n?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){return angular.isDefined(t)?n.$eval(t):i}var f=r[0],u=r[1];t.find("input").css({display:"none"});u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.on(f.toggleEvent,function(){i.disabled||n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(n,t,i,r,u){function a(){for(;s.length;)s.shift()}function h(n){for(var t=0;t<f.length;t++)f[t].slide.active=t===n}function w(i,r,c){if(!k){if(angular.extend(i,{direction:c}),angular.extend(f[o].slide||{},{direction:c}),u.enabled(t)&&!n.$currentTransition&&f[r].element&&e.slides.length>1){f[r].element.data(b,i.direction);var l=e.getCurrentIndex();angular.isNumber(l)&&f[l].element&&f[l].element.data(b,i.direction);n.$currentTransition=!0;u.on("addClass",f[r].element,function(t,i){if("close"===i&&(n.$currentTransition=null,u.off("addClass",t),s.length)){var r=s.pop().slide,f=r.index,o=f>e.getCurrentIndex()?"next":"prev";a();w(r,f,o)}})}n.active=i.index;o=i.index;h(r);p()}}function v(n){for(var t=0;t<f.length;t++)if(f[t].slide===n)return t}function y(){c&&(i.cancel(c),c=null)}function d(t){t.length||(n.$currentTransition=null,a())}function p(){y();var t=+n.interval;!isNaN(t)&&t>0&&(c=i(g,t))}function g(){var t=+n.interval;l&&!isNaN(t)&&t>0&&f.length?n.next():n.pause()}var c,l,e=this,f=e.slides=n.slides=[],b="uib-slideDirection",o=n.active,s=[],k=!1;t.addClass("carousel");e.addSlide=function(t,i){f.push({slide:t,element:i});f.sort(function(n,t){return+n.slide.index-+t.slide.index});(t.index===n.active||1===f.length&&!angular.isNumber(n.active))&&(n.$currentTransition&&(n.$currentTransition=null),o=t.index,n.active=t.index,h(o),e.select(f[v(t)]),1===f.length&&n.play())};e.getCurrentIndex=function(){for(var n=0;n<f.length;n++)if(f[n].slide.index===o)return n};e.next=n.next=function(){var t=(e.getCurrentIndex()+1)%f.length;return 0===t&&n.noWrap()?void n.pause():e.select(f[t],"next")};e.prev=n.prev=function(){var t=e.getCurrentIndex()-1<0?f.length-1:e.getCurrentIndex()-1;return n.noWrap()&&t===f.length-1?void n.pause():e.select(f[t],"prev")};e.removeSlide=function(t){var i=v(t),r=s.indexOf(f[i]);-1!==r&&s.splice(r,1);f.splice(i,1);f.length>0&&o===i?i>=f.length?(o=f.length-1,n.active=o,h(o),e.select(f[f.length-1])):(o=i,n.active=o,h(o),e.select(f[i])):o>i&&(o--,n.active=o);0===f.length&&(o=null,n.active=null,a())};e.select=n.select=function(t,i){var r=v(t.slide);void 0===i&&(i=r>e.getCurrentIndex()?"next":"prev");t.slide.index===o||n.$currentTransition?t&&t.slide.index!==o&&n.$currentTransition&&s.push(f[r]):w(t.slide,r,i)};n.indexOfSlide=function(n){return+n.slide.index};n.isActive=function(t){return n.active===t.slide.index};n.isPrevDisabled=function(){return 0===n.active&&n.noWrap()};n.isNextDisabled=function(){return n.active===f.length-1&&n.noWrap()};n.pause=function(){n.noPause||(l=!1,y())};n.play=function(){l||(l=!0,p())};t.on("mouseenter",n.pause);t.on("mouseleave",n.play);n.$on("$destroy",function(){k=!0;y()});n.$watch("noTransition",function(n){u.enabled(t,!n)});n.$watch("interval",p);n.$watchCollection("slides",d);n.$watch("active",function(n){var t,i;if(angular.isNumber(n)&&o!==n){for(t=0;t<f.length;t++)if(f[t].slide.index===n){n=t;break}i=f[n];i&&(h(n),e.select(f[n]),o=n)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(n){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(t,i,r,u){i.addClass("item");u.addSlide(t,i);t.$on("$destroy",function(){u.removeSlide(t)});t.$watch("active",function(t){n[t?"addClass":"removeClass"](i,"active")})}}}]).animation(".item",["$animateCss",function(n){function t(n,t,i){n.removeClass(t);i&&i()}var i="uib-slideDirection";return{beforeAddClass:function(r,u,f){if("active"===u){var s=!1,e=r.data(i),o="next"===e?"left":"right",h=t.bind(this,r,o+" "+e,f);return r.addClass(e),n(r,{addClass:o}).start().done(h),function(){s=!0}}f()},beforeRemoveClass:function(r,u,f){if("active"===u){var o=!1,s=r.data(i),e="next"===s?"left":"right",h=t.bind(this,r,e,f);return n(r,{addClass:e}).start().done(h),function(){o=!0}}f()}}}]);angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(n,t,i,r){function l(n){var e=[],i=n.split(""),o=n.indexOf("'"),f,t;if(o>-1){for(f=!1,n=n.split(""),t=o;t<n.length;t++)f?("'"===n[t]&&(t+1<n.length&&"'"===n[t+1]?(n[t+1]="$",i[t+1]=""):(i[t]="",f=!1)),n[t]="$"):"'"===n[t]&&(n[t]="$",i[t]="",f=!0);n=n.join("")}return angular.forEach(u,function(t){var r=n.indexOf(t.key),u,f;if(r>-1){for(n=n.split(""),i[r]="("+t.regex+")",n[r]="$",u=r+1,f=r+t.key.length;f>u;u++)i[u]="",n[u]="$";n=n.join("");e.push({index:r,key:t.key,apply:t.apply,matcher:t.regex})}}),{regex:new RegExp("^"+i.join("")+"$"),map:r(e,"index")}}function a(n){for(var r,i,u=[],t=0;t<n.length;)if(angular.isNumber(i)){if("'"===n.charAt(t))(t+1>=n.length||"'"!==n.charAt(t+1))&&(u.push(v(n,i,t)),i=null);else if(t===n.length)for(;i<n.length;)r=o(n,i),u.push(r),i=r.endIdx;t++}else"'"!==n.charAt(t)?(r=o(n,t),u.push(r.parser),t=r.endIdx):(i=t,t++);return u}function v(n,t,i){return function(){return n.substr(t+1,i-t-1)}}function o(n,t){for(var f,r=n.substr(t),i=0;i<u.length;i++)if(new RegExp("^"+u[i].key).test(r))return f=u[i],{endIdx:t+f.key.length,parser:f.formatter};return{endIdx:t+1,parser:function(){return r.charAt(0)}}}function y(n,t,i){return 1>i?!1:1===t&&i>28?29===i&&(n%4==0&&n%100!=0||n%400==0):3===t||5===t||8===t||10===t?31>i:!0}function s(n){return parseInt(n,10)}function p(n,t){return n&&t?f(n,t):n}function w(n,t){return n&&t?f(n,t,!0):n}function h(n,t){n=n.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function c(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function f(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=h(t,r);return c(n,i*(u-r))}var e,u,b=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){e=t.id;this.parsers={};this.formatters={};u=[{key:"yyyy",regex:"\\d{4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(n){n=+n;this.year=69>n?n+2e3:n+1900},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(n){this.year=+n},formatter:function(n){var t=new Date;return t.setFullYear(Math.abs(n.getFullYear())),i(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){var t=n.getMonth();return/^[0-9]$/.test(t)?i(n,"MM"):i(n,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.MONTH.indexOf(n)},formatter:function(n){return i(n,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(n){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(n)},formatter:function(n){return i(n,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1},formatter:function(n){return i(n,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){var t=n.getDate();return/^[1-9]$/.test(t)?i(n,"dd"):i(n,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n},formatter:function(n){return i(n,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(n){return i(n,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(n){return i(n,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(n){this.hours=+n},formatter:function(n){return i(n,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.minutes=+n},formatter:function(n){return i(n,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(n){this.milliseconds=+n},formatter:function(n){return i(n,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(n){this.seconds=+n},formatter:function(n){return i(n,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(n){12===this.hours&&(this.hours=0);"PM"===n&&(this.hours+=12)},formatter:function(n){return i(n,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(n){var t=n.match(/([+-])(\d{2})(\d{2})/),i=t[1],r=t[2],u=t[3];this.hours+=s(i+r);this.minutes+=s(i+u)},formatter:function(n){return i(n,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(n){return i(n,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(n){return i(n,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(n){return i(n,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(n){return i(n,"G")}}]};this.init();this.filter=function(n,i){if(!angular.isDate(n)||isNaN(n)||!i)return"";i=t.DATETIME_FORMATS[i]||i;t.id!==e&&this.init();this.formatters[i]||(this.formatters[i]=a(i));var r=this.formatters[i];return r.reduce(function(t,i){return t+i(n)},"")};this.parse=function(i,r,u){var f,o,s,k,a,v,p;if(!angular.isString(i)||!r)return i;r=t.DATETIME_FORMATS[r]||r;r=r.replace(b,"\\$&");t.id!==e&&this.init();this.parsers[r]||(this.parsers[r]=l(r,"apply"));var w=this.parsers[r],d=w.regex,g=w.map,h=i.match(d),c=!1;if(h&&h.length){for(angular.isDate(u)&&!isNaN(u.getTime())?f={year:u.getFullYear(),month:u.getMonth(),date:u.getDate(),hours:u.getHours(),minutes:u.getMinutes(),seconds:u.getSeconds(),milliseconds:u.getMilliseconds()}:(u&&n.warn("dateparser:","baseDate is not a valid date"),f={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),s=1,k=h.length;k>s;s++)a=g[s-1],"Z"===a.matcher&&(c=!0),a.apply&&a.apply.call(f,h[s]);return v=c?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,p=c?Date.prototype.setUTCHours:Date.prototype.setHours,y(f.year,f.month,f.date)&&(!angular.isDate(u)||isNaN(u.getTime())||c?(o=new Date(0),v.call(o,f.year,f.month,f.date),p.call(o,f.hours||0,f.minutes||0,f.seconds||0,f.milliseconds||0)):(o=new Date(u),v.call(o,f.year,f.month,f.date),p.call(o,f.hours,f.minutes,f.seconds,f.milliseconds))),o}};this.toTimezone=p;this.fromTimezone=w;this.timezoneToOffset=h;this.addDateMinutes=c;this.convertTimezoneToLocal=f}]);angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(n){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,i=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(r,u){function h(n,t){f.push(n);o.push({scope:n,element:t});y.forEach(function(t){c(t,n)});n.$on("$destroy",l)}function c(t,r){var h=t.match(i),c=r.$eval(h[1]),f=h[2],u=e[t],s;u||(s=function(t){var i=null;o.some(function(n){var r=n.scope.$eval(a);if(r===t)return(i=n,!0)});u.lastActivated!==i&&(u.lastActivated&&n.removeClass(u.lastActivated.element,c),i&&n.addClass(i.element,c),u.lastActivated=i)},e[t]=u={lastActivated:null,scope:r,watchFn:s,compareWithExp:f,watcher:r.$watch(f,s)});u.watchFn(r.$eval(f))}function l(n){var i=n.targetScope,r=f.indexOf(i),t;(f.splice(r,1),o.splice(r,1),f.length)?(t=f[0],angular.forEach(e,function(n){n.scope===i&&(n.watcher=t.$watch(n.compareWithExp,n.watchFn),n.scope=t)})):e={}}var f=[],o=[],e={},s=u.uibIsClass.match(t),a=s[2],v=s[1],y=v.split(",");return h}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(n,t,i,r,u,f,e,o,s,h,c,l){function w(t){n.datepickerMode=t;n.datepickerOptions.datepickerMode=t}var a=this,v={$setViewValue:angular.noop},y={},p=[],b;t.addClass("uib-datepicker");i.$set("role","application");n.datepickerOptions||(n.datepickerOptions={});this.modes=["day","month","year"];["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":n[t]=n.datepickerOptions[t]||angular.noop;break;case"datepickerMode":n.datepickerMode=angular.isDefined(n.datepickerOptions.datepickerMode)?n.datepickerOptions.datepickerMode:s.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":a[t]=angular.isDefined(n.datepickerOptions[t])?u(n.datepickerOptions[t])(n.$parent):s[t];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":a[t]=angular.isDefined(n.datepickerOptions[t])?n.datepickerOptions[t]:s[t];break;case"startingDay":a.startingDay=angular.isDefined(n.datepickerOptions.startingDay)?n.datepickerOptions.startingDay:angular.isNumber(s.startingDay)?s.startingDay:(f.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":n.$watch("datepickerOptions."+t,function(n){n?angular.isDate(n)?a[t]=l.fromTimezone(new Date(n),y.timezone):(h&&e.warn("Literal date support has been deprecated, please switch to date object usage"),a[t]=new Date(o(n,"medium"))):a[t]=s[t]?l.fromTimezone(new Date(s[t]),y.timezone):null;a.refreshView()});break;case"maxMode":case"minMode":n.datepickerOptions[t]?n.$watch(function(){return n.datepickerOptions[t]},function(i){a[t]=n[t]=angular.isDefined(i)?i:n.datepickerOptions[t];("minMode"===t&&a.modes.indexOf(n.datepickerOptions.datepickerMode)<a.modes.indexOf(a[t])||"maxMode"===t&&a.modes.indexOf(n.datepickerOptions.datepickerMode)>a.modes.indexOf(a[t]))&&(n.datepickerMode=a[t],n.datepickerOptions.datepickerMode=a[t])}):a[t]=n[t]=s[t]||null}});n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(1e4*Math.random());n.disabled=angular.isDefined(i.disabled)||!1;angular.isDefined(i.ngDisabled)&&p.push(n.$parent.$watch(i.ngDisabled,function(t){n.disabled=t;a.refreshView()}));n.isActive=function(t){return 0===a.compare(t.date,a.activeDate)?(n.activeDateId=t.uid,!0):!1};this.init=function(t){v=t;y=t.$options||n.datepickerOptions.ngModelOptions||s.ngModelOptions;n.datepickerOptions.initDate?(a.activeDate=l.fromTimezone(n.datepickerOptions.initDate,y.timezone)||new Date,n.$watch("datepickerOptions.initDate",function(n){n&&(v.$isEmpty(v.$modelValue)||v.$invalid)&&(a.activeDate=l.fromTimezone(n,y.timezone),a.refreshView())})):a.activeDate=new Date;var i=v.$modelValue?new Date(v.$modelValue):new Date;this.activeDate=isNaN(i)?l.fromTimezone(new Date,y.timezone):l.fromTimezone(i,y.timezone);v.$render=function(){a.render()}};this.render=function(){if(v.$viewValue){var n=new Date(v.$viewValue),t=!isNaN(n);t?this.activeDate=l.fromTimezone(n,y.timezone):c||e.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()};this.refreshView=function(){if(this.element){n.selectedDt=null;this._refreshView();n.activeDt&&(n.activeDateId=n.activeDt.uid);var t=v.$viewValue?new Date(v.$viewValue):null;t=l.fromTimezone(t,y.timezone);v.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}};this.createDateObject=function(t,i){var r=v.$viewValue?new Date(v.$viewValue):null,f,e,u;return r=l.fromTimezone(r,y.timezone),f=new Date,f=l.fromTimezone(f,y.timezone),e=this.compare(t,f),u={date:t,label:l.filter(t,i),selected:r&&0===this.compare(t,r),disabled:this.isDisabled(t),past:0>e,current:0===e,future:e>0,customClass:this.customClass(t)||null},r&&0===this.compare(t,r)&&(n.selectedDt=u),a.activeDate&&0===this.compare(u.date,a.activeDate)&&(n.activeDt=u),u};this.isDisabled=function(t){return n.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||n.dateDisabled&&n.dateDisabled({date:t,mode:n.datepickerMode})};this.customClass=function(t){return n.customClass({date:t,mode:n.datepickerMode})};this.split=function(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i};n.select=function(t){if(n.datepickerMode===a.minMode){var i=v.$viewValue?l.fromTimezone(new Date(v.$viewValue),y.timezone):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());i=l.toTimezone(i,y.timezone);v.$setViewValue(i);v.$render()}else a.activeDate=t,w(a.modes[a.modes.indexOf(n.datepickerMode)-1]),n.$emit("uib:datepicker.mode");n.$broadcast("uib:datepicker.focus")};n.move=function(n){var t=a.activeDate.getFullYear()+n*(a.step.years||0),i=a.activeDate.getMonth()+n*(a.step.months||0);a.activeDate.setFullYear(t,i,1);a.refreshView()};n.toggleMode=function(t){t=t||1;n.datepickerMode===a.maxMode&&1===t||n.datepickerMode===a.minMode&&-1===t||(w(a.modes[a.modes.indexOf(n.datepickerMode)+t]),n.$emit("uib:datepicker.mode"))};n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};b=function(){a.element[0].focus()};n.$on("uib:datepicker.focus",b);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey&&!n.disabled)if(t.preventDefault(),a.shortcutPropagation||t.stopPropagation(),"enter"===i||"space"===i){if(a.isDisabled(a.activeDate))return;n.select(a.activeDate)}else!t.ctrlKey||"up"!==i&&"down"!==i?(a.handleKeyDown(i,t),a.refreshView()):n.toggleMode("up"===i?1:-1)};t.on("keydown",function(t){n.$apply(function(){n.keydown(t)})});n.$on("$destroy",function(){for(;p.length;)p.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(n,t,i){function r(n,t){return 1!==t||n%4!=0||n%100==0&&n%400!=0?f[t]:29}function u(n){var t=new Date(n),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1}var f=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1};this.element=t;this.init=function(t){angular.extend(t,this);n.showWeeks=t.showWeeks;t.refreshView()};this.getDates=function(n,t){for(var r,u=new Array(t),i=new Date(n),f=0;t>f;)r=new Date(i),u[f++]=r,i.setDate(i.getDate()+1);return u};this._refreshView=function(){var a=this.activeDate.getFullYear(),h=this.activeDate.getMonth(),e=new Date(this.activeDate),t,r,f;e.setFullYear(a,h,1);var o=this.startingDay-e.getDay(),c=o>0?7-o:-o,l=new Date(e);for(c>0&&l.setDate(-c+1),t=this.getDates(l,42),r=0;42>r;r++)t[r]=angular.extend(this.createDateObject(t[r],this.formatDay),{secondary:t[r].getMonth()!==h,uid:n.uniqueId+"-"+r});for(n.labels=new Array(7),f=0;7>f;f++)n.labels[f]={abbr:i(t[f].date,this.formatDayHeader),full:i(t[f].date,"EEEE")};if(n.title=i(this.activeDate,this.formatDayTitle),n.rows=this.split(t,7),n.showWeeks){n.weekNumbers=[];for(var v=(11-this.startingDay)%7,y=n.rows.length,s=0;y>s;s++)n.weekNumbers.push(u(n.rows[s][v].date))}};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getDate(),i;"left"===n?t-=1:"up"===n?t-=7:"right"===n?t+=1:"down"===n?t+=7:"pageup"===n||"pagedown"===n?(i=this.activeDate.getMonth()+("pageup"===n?-1:1),this.activeDate.setMonth(i,1),t=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),t)):"home"===n?t=1:"end"===n&&(t=r(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(t)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(n,t,i){this.step={years:1};this.element=t;this.init=function(n){angular.extend(n,this);n.refreshView()};this._refreshView=function(){for(var r,u=new Array(12),f=this.activeDate.getFullYear(),t=0;12>t;t++)r=new Date(this.activeDate),r.setFullYear(f,t,1),u[t]=angular.extend(this.createDateObject(r,this.formatMonth),{uid:n.uniqueId+"-"+t});n.title=i(this.activeDate,this.formatMonthTitle);n.rows=this.split(u,this.monthColumns);n.yearHeaderColspan=this.monthColumns>3?this.monthColumns-2:1};this.compare=function(n,t){var i=new Date(n.getFullYear(),n.getMonth()),r=new Date(t.getFullYear(),t.getMonth());return i.setFullYear(n.getFullYear()),r.setFullYear(t.getFullYear()),i-r};this.handleKeyDown=function(n){var t=this.activeDate.getMonth(),i;"left"===n?t-=1:"up"===n?t-=this.monthColumns:"right"===n?t+=1:"down"===n?t+=this.monthColumns:"pageup"===n||"pagedown"===n?(i=this.activeDate.getFullYear()+("pageup"===n?-1:1),this.activeDate.setFullYear(i)):"home"===n?t=0:"end"===n&&(t=11);this.activeDate.setMonth(t)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(n,t){function u(n){return parseInt((n-1)/i,10)*i+1}var r,i;this.element=t;this.yearpickerInit=function(){r=this.yearColumns;i=this.yearRows*r;this.step={years:i}};this._refreshView=function(){for(var e,f=new Array(i),t=0,o=u(this.activeDate.getFullYear());i>t;t++)e=new Date(this.activeDate),e.setFullYear(o+t,0,1),f[t]=angular.extend(this.createDateObject(e,this.formatYear),{uid:n.uniqueId+"-"+t});n.title=[f[0].label,f[i-1].label].join(" - ");n.rows=this.split(f,r);n.columns=r};this.compare=function(n,t){return n.getFullYear()-t.getFullYear()};this.handleKeyDown=function(n){var t=this.activeDate.getFullYear();"left"===n?t-=1:"up"===n?t-=r:"right"===n?t+=1:"down"===n?t+=r:"pageup"===n||"pagedown"===n?t+=("pageup"===n?-1:1)*i:"home"===n?t=u(this.activeDate.getFullYear()):"end"===n&&(t=u(this.activeDate.getFullYear())+i-1);this.activeDate.setFullYear(t)}}]).directive("uibDatepicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}}).directive("uibDaypicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibYearpicker",function(){return{templateUrl:function(n,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(n,t,i,r){var u=r[0];angular.extend(u,r[1]);u.yearpickerInit();u.refreshView()}}});angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(n,t){var r,u,f={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},i={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},e=/(HTML|BODY)/;return{getRawNode:function(n){return n.nodeName?n:n[0]||n},parseStyle:function(n){return n=parseFloat(n),isFinite(n)?n:0},offsetParent:function(i){function u(n){return"static"===(t.getComputedStyle(n).position||"static")}i=this.getRawNode(i);for(var r=i.offsetParent||n[0].documentElement;r&&r!==n[0].documentElement&&u(r);)r=r.offsetParent;return r||n[0].documentElement},scrollbarWidth:function(i){var e,f;return i?(angular.isUndefined(u)&&(e=n.find("body"),e.addClass("uib-position-body-scrollbar-measure"),u=t.innerWidth-e[0].clientWidth,u=isFinite(u)?u:0,e.removeClass("uib-position-body-scrollbar-measure")),u):(angular.isUndefined(r)&&(f=angular.element('<div class="uib-position-scrollbar-measure"><\/div>'),n.find("body").append(f),r=f[0].offsetWidth-f[0].clientWidth,r=isFinite(r)?r:0,f.remove()),r)},scrollbarPadding:function(n){n=this.getRawNode(n);var u=t.getComputedStyle(n),f=this.parseStyle(u.paddingRight),o=this.parseStyle(u.paddingBottom),i=this.scrollParent(n,!1,!0),r=this.scrollbarWidth(e.test(i.tagName));return{scrollbarWidth:r,widthOverflow:i.scrollWidth>i.clientWidth,right:f+r,originalRight:f,heightOverflow:i.scrollHeight>i.clientHeight,bottom:o+r,originalBottom:o}},isScrollable:function(n,i){n=this.getRawNode(n);var u=i?f.hidden:f.normal,r=t.getComputedStyle(n);return u.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(i,r,u){var c,e,s;i=this.getRawNode(i);var l=r?f.hidden:f.normal,h=n[0].documentElement,o=t.getComputedStyle(i);if(u&&l.test(o.overflow+o.overflowY+o.overflowX))return i;if(c="absolute"===o.position,e=i.parentElement||h,e===h||"fixed"===o.position)return h;for(;e.parentElement&&e!==h;){if(s=t.getComputedStyle(e),c&&"static"!==s.position&&(c=!1),!c&&l.test(s.overflow+s.overflowY+s.overflowX))break;e=e.parentElement}return e},position:function(i,r){var u,o,f,e;return i=this.getRawNode(i),u=this.offset(i),r&&(o=t.getComputedStyle(i),u.top-=this.parseStyle(o.marginTop),u.left-=this.parseStyle(o.marginLeft)),f=this.offsetParent(i),e={top:0,left:0},f!==n[0].documentElement&&(e=this.offset(f),e.top+=f.clientTop-f.scrollTop,e.left+=f.clientLeft-f.scrollLeft),{width:Math.round(angular.isNumber(u.width)?u.width:i.offsetWidth),height:Math.round(angular.isNumber(u.height)?u.height:i.offsetHeight),top:Math.round(u.top-e.top),left:Math.round(u.left-e.left)}},offset:function(i){i=this.getRawNode(i);var r=i.getBoundingClientRect();return{width:Math.round(angular.isNumber(r.width)?r.width:i.offsetWidth),height:Math.round(angular.isNumber(r.height)?r.height:i.offsetHeight),top:Math.round(r.top+(t.pageYOffset||n[0].documentElement.scrollTop)),left:Math.round(r.left+(t.pageXOffset||n[0].documentElement.scrollLeft))}},viewportOffset:function(i,r,u){var o;i=this.getRawNode(i);u=u!==!1;var s=i.getBoundingClientRect(),f={top:0,left:0,bottom:0,right:0},e=r?n[0].documentElement:this.scrollParent(i),h=e.getBoundingClientRect();return(f.top=h.top+e.clientTop,f.left=h.left+e.clientLeft,e===n[0].documentElement&&(f.top+=t.pageYOffset,f.left+=t.pageXOffset),f.bottom=f.top+e.clientHeight,f.right=f.left+e.clientWidth,u)&&(o=t.getComputedStyle(e),f.top+=this.parseStyle(o.paddingTop),f.bottom-=this.parseStyle(o.paddingBottom),f.left+=this.parseStyle(o.paddingLeft),f.right-=this.parseStyle(o.paddingRight)),{top:Math.round(s.top-f.top),bottom:Math.round(f.bottom-s.bottom),left:Math.round(s.left-f.left),right:Math.round(f.right-s.right)}},parsePlacement:function(n){var t=i.auto.test(n);return t&&(n=n.replace(i.auto,"")),n=n.split("-"),n[0]=n[0]||"top",i.primary.test(n[0])||(n[0]="top"),n[1]=n[1]||"center",i.secondary.test(n[1])||(n[1]="center"),n[2]=t?!0:!1,n},positionElements:function(n,r,u,f){var c,l,e,h,v,y;if(n=this.getRawNode(n),r=this.getRawNode(r),c=angular.isDefined(r.offsetWidth)?r.offsetWidth:r.prop("offsetWidth"),l=angular.isDefined(r.offsetHeight)?r.offsetHeight:r.prop("offsetHeight"),u=this.parsePlacement(u),e=f?this.offset(n):this.position(n),h={top:0,left:0,placement:""},u[2]){var o=this.viewportOffset(n,f),a=t.getComputedStyle(r),s={width:c+Math.round(Math.abs(this.parseStyle(a.marginLeft)+this.parseStyle(a.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(a.marginTop)+this.parseStyle(a.marginBottom)))};(u[0]="top"===u[0]&&s.height>o.top&&s.height<=o.bottom?"bottom":"bottom"===u[0]&&s.height>o.bottom&&s.height<=o.top?"top":"left"===u[0]&&s.width>o.left&&s.width<=o.right?"right":"right"===u[0]&&s.width>o.right&&s.width<=o.left?"left":u[0],u[1]="top"===u[1]&&s.height-e.height>o.bottom&&s.height-e.height<=o.top?"bottom":"bottom"===u[1]&&s.height-e.height>o.top&&s.height-e.height<=o.bottom?"top":"left"===u[1]&&s.width-e.width>o.right&&s.width-e.width<=o.left?"right":"right"===u[1]&&s.width-e.width>o.left&&s.width-e.width<=o.right?"left":u[1],"center"===u[1])&&(i.vertical.test(u[0])?(v=e.width/2-c/2,o.left+v<0&&s.width-e.width<=o.right?u[1]="left":o.right+v<0&&s.width-e.width<=o.left&&(u[1]="right")):(y=e.height/2-s.height/2,o.top+y<0&&s.height-e.height<=o.bottom?u[1]="top":o.bottom+y<0&&s.height-e.height<=o.top&&(u[1]="bottom")))}switch(u[0]){case"top":h.top=e.top-l;break;case"bottom":h.top=e.top+e.height;break;case"left":h.left=e.left-c;break;case"right":h.left=e.left+e.width}switch(u[1]){case"top":h.top=e.top;break;case"bottom":h.top=e.top+e.height-l;break;case"left":h.left=e.left;break;case"right":h.left=e.left+e.width-c;break;case"center":i.vertical.test(u[0])?h.left=e.left+e.width/2-c/2:h.top=e.top+e.height/2-l/2}return h.top=Math.round(h.top),h.left=Math.round(h.left),h.placement="center"===u[1]?u[0]:u[0]+"-"+u[1],h},adjustTop:function(n,t,i,r){if(-1!==n.indexOf("top")&&i!==r)return{top:t.top-r+"px"}},positionArrow:function(n,r){var o,f,e,u,c;if(n=this.getRawNode(n),o=n.querySelector(".tooltip-inner, .popover-inner"),o&&(f=angular.element(o).hasClass("tooltip-inner"),e=f?n.querySelector(".tooltip-arrow"):n.querySelector(".arrow"),e)){if(u={top:"",bottom:"",left:"",right:""},r=this.parsePlacement(r),"center"===r[1])return void angular.element(e).css(u);var l="border-"+r[0]+"-width",s=t.getComputedStyle(e)[l],h="border-";h+=i.vertical.test(r[0])?r[0]+"-"+r[1]:r[1]+"-"+r[0];h+="-radius";c=t.getComputedStyle(f?o:n)[h];switch(r[0]){case"top":u.bottom=f?"0":"-"+s;break;case"bottom":u.top=f?"0":"-"+s;break;case"left":u.right=f?"0":"-"+s;break;case"right":u.left=f?"0":"-"+s}u[r[1]]=c;angular.element(e).css(u)}}}}]);angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p){function ut(t){var i=l.parse(t,b,n.date),r;if(isNaN(i))for(r=0;r<ot.length;r++)if(i=l.parse(t,ot[r],n.date),!isNaN(i))return i;return i}function yt(n){if(angular.isNumber(n)&&(n=new Date(n)),!n)return null;if(angular.isDate(n)&&!isNaN(n))return n;if(angular.isString(n)){var t=ut(n);if(!isNaN(t))return l.fromTimezone(t,g.timezone)}if(w.$options&&w.$options.allowInvalid)return n}function pt(n,t){var r=n||t;return i.ngRequired||r?(angular.isNumber(r)&&(r=new Date(r)),r?angular.isDate(r)&&!isNaN(r)?!0:angular.isString(r)?!isNaN(ut(r)):!1:!0):!0}function ft(i){if(n.isOpen||!n.disabled){var r=nt[0],u=t[0].contains(i.target),f=void 0!==r.contains&&r.contains(i.target);!n.isOpen||u||f||n.$apply(function(){n.isOpen=!1})}}function ht(i){27===i.which&&n.isOpen?(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!1}),t[0].focus()):40!==i.which||n.isOpen||(i.preventDefault(),i.stopPropagation(),n.$apply(function(){n.isOpen=!0}))}function d(){if(n.isOpen){var r=angular.element(nt[0].querySelector(".uib-datepicker-popup")),f=i.popupPlacement?i.popupPlacement:a.placement,u=h.positionElements(t,r,f,it);r.css({top:u.top+"px",left:u.left+"px"});r.hasClass("uib-position-measure")&&r.removeClass("uib-position-measure")}}var b,ct,it,lt,at,vt,tt,et,k,w,g,nt,ot,rt=!1,st=[];this.init=function(u){if(w=u,g=angular.isObject(u.$options)?u.$options:{timezone:null},ct=angular.isDefined(i.closeOnDateSelection)?n.$parent.$eval(i.closeOnDateSelection):a.closeOnDateSelection,it=angular.isDefined(i.datepickerAppendToBody)?n.$parent.$eval(i.datepickerAppendToBody):a.appendToBody,lt=angular.isDefined(i.onOpenFocus)?n.$parent.$eval(i.onOpenFocus):a.onOpenFocus,at=angular.isDefined(i.datepickerPopupTemplateUrl)?i.datepickerPopupTemplateUrl:a.datepickerPopupTemplateUrl,vt=angular.isDefined(i.datepickerTemplateUrl)?i.datepickerTemplateUrl:a.datepickerTemplateUrl,ot=angular.isDefined(i.altInputFormats)?n.$parent.$eval(i.altInputFormats):a.altInputFormats,n.showButtonBar=angular.isDefined(i.showButtonBar)?n.$parent.$eval(i.showButtonBar):a.showButtonBar,a.html5Types[i.type]?(b=a.html5Types[i.type],rt=!0):(b=i.uibDatepickerPopup||a.datepickerPopup,i.$observe("uibDatepickerPopup",function(n){var t=n||a.datepickerPopup;if(t!==b&&(b=t,w.$modelValue=null,!b))throw new Error("uibDatepickerPopup must have a date format specified.");})),!b)throw new Error("uibDatepickerPopup must have a date format specified.");if(rt&&i.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");tt=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker><\/div><\/div>");tt.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":at});et=angular.element(tt.children()[0]);et.attr("template-url",vt);n.datepickerOptions||(n.datepickerOptions={});rt&&"month"===i.type&&(n.datepickerOptions.datepickerMode="month",n.datepickerOptions.minMode="month");et.attr("datepicker-options","datepickerOptions");rt?w.$formatters.push(function(t){return n.date=l.fromTimezone(t,g.timezone),t}):(w.$$parserName="date",w.$validators.date=pt,w.$parsers.unshift(yt),w.$formatters.push(function(t){return w.$isEmpty(t)?(n.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),n.date=l.fromTimezone(t,g.timezone),l.filter(n.date,b))}));w.$viewChangeListeners.push(function(){n.date=ut(w.$viewValue)});t.on("keydown",ht);nt=r(tt)(n);tt.remove();it?o.find("body").append(nt):t.after(nt);n.$on("$destroy",function(){for(n.isOpen===!0&&(s.$$phase||n.$apply(function(){n.isOpen=!1})),nt.remove(),t.off("keydown",ht),o.off("click",ft),k&&k.off("scroll",d),angular.element(e).off("resize",d);st.length;)st.shift()()})};n.getText=function(t){return n[t+"Text"]||a[t+"Text"]};n.isDisabled=function(t){"today"===t&&(t=l.fromTimezone(new Date,g.timezone));var i={};return angular.forEach(["minDate","maxDate"],function(t){n.datepickerOptions[t]?angular.isDate(n.datepickerOptions[t])?i[t]=new Date(n.datepickerOptions[t]):(p&&u.warn("Literal date support has been deprecated, please switch to date object usage"),i[t]=new Date(c(n.datepickerOptions[t],"medium"))):i[t]=null}),n.datepickerOptions&&i.minDate&&n.compare(t,i.minDate)<0||i.maxDate&&n.compare(t,i.maxDate)>0};n.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};n.dateSelection=function(i){n.date=i;var r=n.date?l.filter(n.date,b):null;t.val(r);w.$setViewValue(r);ct&&(n.isOpen=!1,t[0].focus())};n.keydown=function(i){27===i.which&&(i.stopPropagation(),n.isOpen=!1,t[0].focus())};n.select=function(t,i){if(i.stopPropagation(),"today"===t){var r=new Date;angular.isDate(n.date)?(t=new Date(n.date),t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate())):(t=l.fromTimezone(r,g.timezone),t.setHours(0,0,0,0))}n.dateSelection(t)};n.close=function(i){i.stopPropagation();n.isOpen=!1;t[0].focus()};n.disabled=angular.isDefined(i.disabled)||!1;i.ngDisabled&&st.push(n.$parent.$watch(f(i.ngDisabled),function(t){n.disabled=t}));n.$watch("isOpen",function(r){r?n.disabled?n.isOpen=!1:v(function(){d();lt&&n.$broadcast("uib:datepicker.focus");o.on("click",ft);var r=i.popupPlacement?i.popupPlacement:a.placement;it||h.parsePlacement(r)[2]?(k=k||angular.element(h.scrollParent(t)),k&&k.on("scroll",d)):k=null;angular.element(e).on("resize",d)},0,!1):(o.off("click",ft),k&&k.off("scroll",d),angular.element(e).off("resize",d))});n.$on("uib:datepicker.mode",function(){v(d,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(n,t,i,r){var u=r[0],f=r[1];f.init(u)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}});angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(n){return function(t,i){var r;return function(){var u=this,f=Array.prototype.slice.call(arguments);r&&n.cancel(r);r=n(function(){t.apply(u,f)},i)}}}]);angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(n,t){var i=null,r;this.open=function(t){i||n.on("click",r);i&&i!==t&&(i.isOpen=!1);i=t};this.close=function(t){i===t&&(n.off("click",r),n.off("keydown",this.keybindFilter),i=null)};r=function(n){var r,u;!i||n&&"disabled"===i.getAutoClose()||n&&3===n.which||(r=i.getToggleElement(),n&&r&&r[0].contains(n.target)||(u=i.getDropdownElement(),n&&"outsideClick"===i.getAutoClose()&&u&&u[0].contains(n.target)||(i.focusToggleElement(),i.isOpen=!1,t.$$phase||i.$apply())))};this.keybindFilter=function(n){if(i){var t=i.getDropdownElement(),u=i.getToggleElement(),f=t&&t[0].contains(n.target),e=u&&u[0].contains(n.target);27===n.which?(n.stopPropagation(),i.focusToggleElement(),r()):i.isKeynavEnabled()&&-1!==[38,40].indexOf(n.which)&&i.isOpen&&(f||e)&&(n.preventDefault(),n.stopPropagation(),i.focusDropdownEntry(n.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(n,t,i,r,u,f,e,o,s,h,c){var p,w,l=this,a=n.$new(),k=u.appendToOpenClass,d=u.openClass,y=angular.noop,nt=i.onToggle?r(i.onToggle):angular.noop,b=!1,v=null,g=!1,tt=s.find("body");t.addClass("dropdown");this.init=function(){if(i.isOpen&&(w=r(i.isOpen),y=w.assign,n.$watch(w,function(n){a.isOpen=!!n})),angular.isDefined(i.dropdownAppendTo)){var u=r(i.dropdownAppendTo)(a);u&&(v=angular.element(u))}b=angular.isDefined(i.dropdownAppendToBody);g=angular.isDefined(i.keyboardNav);b&&!v&&(v=tt);v&&l.dropdownMenu&&(v.append(l.dropdownMenu),t.on("$destroy",function(){l.dropdownMenu.remove()}))};this.toggle=function(n){return a.isOpen=arguments.length?!!n:!a.isOpen,angular.isFunction(y)&&y(a,a.isOpen),a.isOpen};this.isOpen=function(){return a.isOpen};a.getToggleElement=function(){return l.toggleElement};a.getAutoClose=function(){return i.autoClose||"always"};a.getElement=function(){return t};a.isKeynavEnabled=function(){return g};a.focusDropdownEntry=function(n){var i=l.dropdownMenu?angular.element(l.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(n){case 40:l.selectedOption=angular.isNumber(l.selectedOption)?l.selectedOption===i.length-1?l.selectedOption:l.selectedOption+1:0;break;case 38:l.selectedOption=angular.isNumber(l.selectedOption)?0===l.selectedOption?0:l.selectedOption-1:i.length-1}i[l.selectedOption].focus()};a.getDropdownElement=function(){return l.dropdownMenu};a.focusToggleElement=function(){l.toggleElement&&l.toggleElement[0].focus()};a.$watch("isOpen",function(i,r){var u,it,g,w,rt,tt,ut,et,ft;v&&l.dropdownMenu&&(w=o.positionElements(t,l.dropdownMenu,"bottom-left",!0),rt=0,(u={top:w.top+"px",display:i?"block":"none"},it=l.dropdownMenu.hasClass("dropdown-menu-right"),it?(u.left="auto",g=o.scrollbarPadding(v),g.heightOverflow&&g.scrollbarWidth&&(rt=g.scrollbarWidth),u.right=window.innerWidth-rt-(w.left+t.prop("offsetWidth"))+"px"):(u.left=w.left+"px",u.right="auto"),b)||(tt=o.offset(v),u.top=w.top-tt.top+"px",it?u.right=window.innerWidth-(w.left-tt.left+t.prop("offsetWidth"))+"px":u.left=w.left-tt.left+"px"),l.dropdownMenu.css(u));ut=v?v:t;et=ut.hasClass(v?k:d);(et===!i&&e[i?"addClass":"removeClass"](ut,v?k:d).then(function(){angular.isDefined(i)&&i!==r&&nt(n,{open:!!i})}),i)?(l.dropdownMenuTemplateUrl?c(l.dropdownMenuTemplateUrl).then(function(n){p=a.$new();h(n.trim())(p,function(n){var t=n;l.dropdownMenu.replaceWith(t);l.dropdownMenu=t;s.on("keydown",f.keybindFilter)})}):s.on("keydown",f.keybindFilter),a.focusToggleElement(),f.open(a,t)):((f.close(a,t),l.dropdownMenuTemplateUrl)&&(p&&p.$destroy(),ft=angular.element('<ul class="dropdown-menu"><\/ul>'),l.dropdownMenu.replaceWith(ft),l.dropdownMenu=ft),l.selectedOption=null);angular.isFunction(y)&&y(n,i)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(n,t,i,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(n,t,i,r){if(r&&!angular.isDefined(i.dropdownNested)){t.addClass("dropdown-menu");var u=i.templateUrl;u&&(r.dropdownMenuTemplateUrl=u);r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(n,t,i,r){if(r){t.addClass("dropdown-toggle");r.toggleElement=t;var u=function(u){u.preventDefault();t.hasClass("disabled")||i.disabled||n.$apply(function(){r.toggle()})};t.bind("click",u);t.attr({"aria-haspopup":!0,"aria-expanded":!1});n.$watch(r.isOpen,function(n){t.attr("aria-expanded",!!n)});n.$on("$destroy",function(){t.unbind("click",u)})}}}});angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t===n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t===n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.pop()},length:function(){return n.length}}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap","ui.bootstrap.position"]).factory("$$multiMap",function(){return{createNew:function(){var n={};return{entries:function(){return Object.keys(n).map(function(t){return{key:t,value:n[t]}})},get:function(t){return n[t]},hasKey:function(t){return!!n[t]},keys:function(){return Object.keys(n)},put:function(t,i){n[t]||(n[t]=[]);n[t].push(i)},remove:function(t,i){var r=n[t],u;r&&(u=r.indexOf(i),-1!==u&&r.splice(u,1),r.length||delete n[t])}}}}}).provider("$uibResolve",function(){var n=this;this.resolver=null;this.setResolver=function(n){this.resolver=n};this.$get=["$injector","$q",function(t,i){var r=n.resolver?t.get(n.resolver):null;return{resolve:function(n,u,f,e){if(r)return r.resolve(n,u,f,e);var o=[];return angular.forEach(n,function(n){angular.isFunction(n)||angular.isArray(n)?o.push(i.resolve(t.invoke(n))):angular.isString(n)?o.push(i.resolve(t.get(n))):o.push(i.resolve(n))}),i.all(o).then(function(t){var i={},r=0;return angular.forEach(n,function(n,u){i[u]=t[r++]}),i})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(n,t,i){function r(t,r,u){u.modalInClass&&(n.addClass(r,u.modalInClass),t.$on(i.NOW_CLOSING_EVENT,function(i,f){var e=f();t.modalOptions.animation?n.removeClass(r,u.modalInClass).then(e):e()}))}return{restrict:"A",compile:function(n,t){return n.addClass(t.backdropClass),r}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(n,t,i,r){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(u,f,e){f.addClass(e.windowTopClass||"");u.size=e.size;u.close=function(t){var i=n.getTop();i&&i.value.backdrop&&"static"!==i.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))};f.on("click",u.close);u.$isRendered=!0;var o=t.defer();u.$$postDigest(function(){o.resolve()});o.promise.then(function(){var o=null;e.modalInClass&&(o=i(f,{addClass:e.modalInClass}).start(),u.$on(n.NOW_CLOSING_EVENT,function(n,t){var r=t();i(f,{removeClass:e.modalInClass}).start().then(r)}));t.when(o).then(function(){var i=n.getTop(),t;(i&&n.modalRendered(i.key),r[0].activeElement&&f[0].contains(r[0].activeElement))||(t=f[0].querySelector("[autofocus]"),t?t.focus():f[0].focus())})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(n,t){t.modalAnimation&&n.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(n){return{link:function(t,i,r,u,f){f(t.$parent,function(t){i.empty();n.enter(t,i)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(n,t,i,r,u,f,e,o,s){function ft(n){var t="-";return n.replace(ht,function(n,i){return(i?t:"")+n.toLowerCase()})}function et(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}function b(){for(var n=-1,i=c.keys(),t=0;t<i.length;t++)c.get(i[t]).value.backdrop&&(n=t);return n>-1&&y>n&&(n=y),n}function d(n,t){var i=c.get(n).value,r=i.appendTo;c.remove(n);p=c.top();p&&(y=parseInt(p.value.modalDomEl.attr("index"),10));nt(i.modalDomEl,i.modalScope,function(){var t=i.openedClass||ut,u;k.remove(t,n);u=k.hasKey(t);r.toggleClass(t,u);!u&&a&&a.heightOverflow&&a.scrollbarWidth&&(a.originalRight?r.css({paddingRight:a.originalRight+"px"}):r.css({paddingRight:""}),a=null);g(!0)},i.closedDeferred);ot();t&&t.focus?t.focus():r.focus&&r.focus()}function g(n){var t;c.length()>0&&(t=c.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",n))}function ot(){if(l&&-1===b()){var n=v;nt(l,v,function(){n=null});l=void 0;v=void 0}}function nt(t,i,r,u){function o(){o.done||(o.done=!0,n.leave(t).then(function(){r&&r();t.remove();u&&u.resolve()}),i.$destroy())}var e,s=null,c=function(){return e||(e=f.defer(),s=e.promise),function(){e.resolve()}};return i.$broadcast(h.NOW_CLOSING_EVENT,c),f.when(s).then(o)}function tt(n){var t,i,r;if(n.isDefaultPrevented())return n;if(t=c.top(),t)switch(n.which){case 27:t.value.keyboard&&(n.preventDefault(),u.$apply(function(){h.dismiss(t.key,"escape key press")}));break;case 9:i=h.loadFocusElementList(t);r=!1;n.shiftKey?(h.isFocusInFirstItem(n,i)||h.isModalFocused(n,t))&&(r=h.focusLastFocusableElement(i)):h.isFocusInLastItem(n,i)&&(r=h.focusFirstFocusableElement(i));r&&(n.preventDefault(),n.stopPropagation())}}function it(n,t,i){return!n.value.modalScope.$broadcast("modal.closing",t,i).defaultPrevented}function rt(){Array.prototype.forEach.call(document.querySelectorAll("["+w+"]"),function(n){var i=parseInt(n.getAttribute(w),10),t=i-1;n.setAttribute(w,t);t||(n.removeAttribute(w),n.removeAttribute("aria-hidden"))})}var l,v,a,ut="modal-open",c=o.createNew(),k=e.createNew(),h={NOW_CLOSING_EVENT:"modal.stack.now-closing"},y=0,p=null,w="data-bootstrap-modal-aria-hidden-count",st="a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]",ht=/[A-Z]/g;return u.$watch(b,function(n){v&&(v.index=n)}),i.on("keydown",tt),u.$on("$destroy",function(){i.off("keydown",tt)}),h.open=function(t,f){function nt(n){function t(n){var t=n.parent()?n.parent().children():[];return Array.prototype.filter.call(t,function(t){return t!==n[0]})}if(n&&"BODY"!==n[0].tagName)return t(n).forEach(function(n){var i="true"===n.getAttribute("aria-hidden"),t=parseInt(n.getAttribute(w),10);t||(t=i?1:0);n.setAttribute(w,t+1);n.setAttribute("aria-hidden","true")}),nt(n.parent())}var it=i[0].activeElement,tt=f.openedClass||ut,e,d,h,o;if(g(!1),p=c.top(),c.add(t,{deferred:f.deferred,renderDeferred:f.renderDeferred,closedDeferred:f.closedDeferred,modalScope:f.scope,backdrop:f.backdrop,keyboard:f.keyboard,openedClass:f.openedClass,windowTopClass:f.windowTopClass,animation:f.animation,appendTo:f.appendTo}),k.put(tt,t),e=f.appendTo,d=b(),!e.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");d>=0&&!l&&(v=u.$new(!0),v.modalOptions=f,v.index=d,l=angular.element('<div uib-modal-backdrop="modal-backdrop"><\/div>'),l.attr({"class":"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),f.backdropClass&&l.addClass(f.backdropClass),f.animation&&l.attr("modal-animation","true"),r(l)(v),n.enter(l,e),s.isScrollable(e)&&(a=s.scrollbarPadding(e),a.heightOverflow&&a.scrollbarWidth&&e.css({paddingRight:a.right+"px"})));f.component?(h=document.createElement(ft(f.component.name)),h=angular.element(h),h.attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):h=f.content;y=p?parseInt(p.value.modalDomEl.attr("index"),10)+1:0;o=angular.element('<div uib-modal-window="modal-window"><\/div>');o.attr({"class":"modal","template-url":f.windowTemplateUrl,"window-top-class":f.windowTopClass,role:"dialog","aria-labelledby":f.ariaLabelledBy,"aria-describedby":f.ariaDescribedBy,size:f.size,index:y,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(h);f.windowClass&&o.addClass(f.windowClass);f.animation&&o.attr("modal-animation","true");e.addClass(tt);f.scope&&(f.scope.$$topModalIndex=y);n.enter(r(o)(f.scope),e);c.top().value.modalDomEl=o;c.top().value.modalOpener=it;nt(o)},h.close=function(n,t){var i=c.get(n);return rt(),i&&it(i,t,!0)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.resolve(t),d(n,i.value.modalOpener),!0):!i},h.dismiss=function(n,t){var i=c.get(n);return rt(),i&&it(i,t,!1)?(i.value.modalScope.$$uibDestructionScheduled=!0,i.value.deferred.reject(t),d(n,i.value.modalOpener),!0):!i},h.dismissAll=function(n){for(var t=this.getTop();t&&this.dismiss(t.key,n);)t=this.getTop()},h.getTop=function(){return c.top()},h.modalRendered=function(n){var t=c.get(n);h.focusFirstFocusableElement(h.loadFocusElementList(t));t&&t.value.renderDeferred.resolve()},h.focusFirstFocusableElement=function(n){return n.length>0?(n[0].focus(),!0):!1},h.focusLastFocusableElement=function(n){return n.length>0?(n[n.length-1].focus(),!0):!1},h.isModalFocused=function(n,t){if(n&&t){var i=t.value.modalDomEl;if(i&&i.length)return(n.target||n.srcElement)===i[0]}return!1},h.isFocusInFirstItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[0]:!1},h.isFocusInLastItem=function(n,t){return t.length>0?(n.target||n.srcElement)===t[t.length-1]:!1},h.loadFocusElementList=function(n){var t,i;if(n&&(t=n.value.modalDomEl,t&&t.length))return i=t[0].querySelectorAll(st),i?Array.prototype.filter.call(i,function(n){return et(n)}):i},h}]).provider("$uibModal",function(){var n={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,i,r,u,f,e,o){function c(n){return n.template?i.when(n.template):u(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl)}var h={},s=null;return h.getPromiseChain=function(){return s},h.open=function(u){function v(){return w}var l=i.defer(),a=i.defer(),y=i.defer(),p=i.defer(),h={result:l.promise,opened:a.promise,closed:y.promise,rendered:p.promise,close:function(n){return o.close(h,n)},dismiss:function(n){return o.dismiss(h,n)}},w,b;if(u=angular.extend({},n.options,u),u.resolve=u.resolve||{},u.appendTo=u.appendTo||r.find("body").eq(0),!u.component&&!u.template&&!u.templateUrl)throw new Error("One of component or template or templateUrl options is required.");return w=u.component?i.when(e.resolve(u.resolve,{},null,null)):i.all([c(u),e.resolve(u.resolve,{},null,null)]),b=s=i.all([s]).then(v,v).then(function(n){function w(t,r,u,f){t.$scope=i;t.$scope.$resolve={};u?t.$scope.$uibModalInstance=h:t.$uibModalInstance=h;var e=r?n[1]:n;angular.forEach(e,function(n,i){f&&(t[i]=n);t.$scope.$resolve[i]=n})}var b=u.scope||t,i=b.$new();i.$close=h.close;i.$dismiss=h.dismiss;i.$on("$destroy",function(){i.$$uibDestructionScheduled||i.$dismiss("$uibUnscheduledDestruction")});var r,e,s={scope:i,deferred:l,renderDeferred:p,closedDeferred:y,animation:u.animation,backdrop:u.backdrop,keyboard:u.keyboard,backdropClass:u.backdropClass,windowTopClass:u.windowTopClass,windowClass:u.windowClass,windowTemplateUrl:u.windowTemplateUrl,ariaLabelledBy:u.ariaLabelledBy,ariaDescribedBy:u.ariaDescribedBy,size:u.size,openedClass:u.openedClass,appendTo:u.appendTo},c={},v={};u.component?(w(c,!1,!0,!1),c.name=u.component,s.component=c):u.controller&&(w(v,!0,!1,!0),e=f(u.controller,v,!0,u.controllerAs),u.controllerAs&&u.bindToController&&(r=e.instance,r.$close=i.$close,r.$dismiss=i.$dismiss,angular.extend(r,{$resolve:v.$scope.$resolve},b)),r=e(),angular.isFunction(r.$onInit)&&r.$onInit());u.component||(s.content=n[0]);o.open(h,s);a.resolve(!0)},function(n){a.reject(n);l.reject(n)})["finally"](function(){s===b&&(s=null)}),h},h}]};return n});angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(n){return{create:function(t,i,r){t.setNumPages=r.numPages?n(r.numPages).assign:angular.noop;t.ngModelCtrl={$setViewValue:angular.noop};t._watchers=[];t.init=function(n,u){t.ngModelCtrl=n;t.config=u;n.$render=function(){t.render()};r.itemsPerPage?t._watchers.push(i.$parent.$watch(r.itemsPerPage,function(n){t.itemsPerPage=parseInt(n,10);i.totalPages=t.calculateTotalPages();t.updatePage()})):t.itemsPerPage=u.itemsPerPage;i.$watch("totalItems",function(n,r){(angular.isDefined(n)||n!==r)&&(i.totalPages=t.calculateTotalPages(),t.updatePage())})};t.calculateTotalPages=function(){var n=t.itemsPerPage<1?1:Math.ceil(i.totalItems/t.itemsPerPage);return Math.max(n||0,1)};t.render=function(){i.page=parseInt(t.ngModelCtrl.$viewValue,10)||1};i.selectPage=function(n,r){r&&r.preventDefault();var u=!i.ngDisabled||!r;u&&i.page!==n&&n>0&&n<=i.totalPages&&(r&&r.target&&r.target.blur(),t.ngModelCtrl.$setViewValue(n),t.ngModelCtrl.$render())};i.getText=function(n){return i[n+"Text"]||t.config[n+"Text"]};i.noPrevious=function(){return 1===i.page};i.noNext=function(){return i.page===i.totalPages};t.updatePage=function(){t.setNumPages(i.$parent,i.totalPages);i.page>i.totalPages?i.selectPage(i.totalPages):t.ngModelCtrl.$render()};i.$on("$destroy",function(){for(;t._watchers.length;)t._watchers.shift()()})}}}]);angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(n,t,i,r){n.align=angular.isDefined(t.align)?n.$parent.$eval(t.align):r.align;i.create(this,n,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(n){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(n,t){return t.templateUrl||"uib/template/pager/pager.html"},link:function(t,i,r,u){i.addClass("pager");var e=u[0],f=u[1];f&&e.init(f,n)}}}]);angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(n,t,i,r,u){function e(n,t,i){return{number:n,text:t,active:i}}function l(n,t){var u=[],i=1,r=t,c=angular.isDefined(f)&&t>f,s,l,y,p,w,b,k,d;for(c&&(h?(i=Math.max(n-Math.floor(f/2),1),r=i+f-1,r>t&&(r=t,i=r-f+1)):(i=(Math.ceil(n/f)-1)*f+1,r=Math.min(i+f-1,t))),s=i;r>=s;s++)l=e(s,v(s),s===n),u.push(l);return c&&f>0&&(!h||a||o)&&(i>1&&((!o||i>3)&&(y=e(i-1,"...",!1),u.unshift(y)),o&&(3===i&&(p=e(2,"2",!1),u.unshift(p)),w=e(1,"1",!1),u.unshift(w))),t>r&&((!o||t-2>r)&&(b=e(r+1,"...",!1),u.push(b)),o&&(r===t-2&&(k=e(t-1,t-1,!1),u.push(k)),d=e(t,t,!1),u.push(d)))),u}var s=this,f=angular.isDefined(t.maxSize)?n.$parent.$eval(t.maxSize):u.maxSize,h=angular.isDefined(t.rotate)?n.$parent.$eval(t.rotate):u.rotate,a=angular.isDefined(t.forceEllipses)?n.$parent.$eval(t.forceEllipses):u.forceEllipses,o=angular.isDefined(t.boundaryLinkNumbers)?n.$parent.$eval(t.boundaryLinkNumbers):u.boundaryLinkNumbers,v=angular.isDefined(t.pageLabel)?function(i){return n.$parent.$eval(t.pageLabel,{$page:i})}:angular.identity,c;n.boundaryLinks=angular.isDefined(t.boundaryLinks)?n.$parent.$eval(t.boundaryLinks):u.boundaryLinks;n.directionLinks=angular.isDefined(t.directionLinks)?n.$parent.$eval(t.directionLinks):u.directionLinks;r.create(this,n,t);t.maxSize&&s._watchers.push(n.$parent.$watch(i(t.maxSize),function(n){f=parseInt(n,10);s.render()}));c=this.render;this.render=function(){c();n.page>0&&n.page<=n.totalPages&&(n.pages=l(n.page,n.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(n,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(n,t){return t.templateUrl||"uib/template/pagination/pagination.html"},link:function(n,i,r,u){i.addClass("pagination");var e=u[0],f=u[1];f&&e.init(f,t)}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function i(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var r={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(u,f,e,o,s,h,c,l,a){function y(n){if(27===n.which){var t=v.top();t&&(t.value.close(),t=null)}}var v=a.createNew();return o.on("keyup",y),c.$on("$destroy",function(){o.off("keyup",y)}),function(u,c,a,y){function p(t){var i=(t||y.trigger||a).split(" "),r=i.map(function(t){return n[t]||t});return{show:i,hide:r}}y=angular.extend({},r,t,y);var k=i(u),w=h.startSymbol(),b=h.endSymbol(),d="<div "+k+'-popup uib-title="'+w+"title"+b+'" '+(y.useContentExp?'content-exp="contentExp()" ':'content="'+w+"content"+b+'" ')+'origin-scope="origScope" class="uib-position-measure '+c+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ><\/div>';return{compile:function(){var n=f(d);return function(t,i,r){function g(){f.isOpen?nt():at()}function at(){ei&&!t.$eval(r[c+"Enable"])||(vt(),ii(),f.popupDelay?it||(it=e(dt,f.popupDelay,!1)):dt())}function nt(){st();f.popupCloseDelay?rt||(rt=e(k,f.popupCloseDelay,!1)):k()}function dt(){return st(),vt(),f.content?(ti(),void f.$evalAsync(function(){f.isOpen=!0;gt(!0);ot()})):angular.noop}function st(){it&&(e.cancel(it),it=null);d&&(e.cancel(d),d=null)}function k(){f&&f.$evalAsync(function(){f&&(f.isOpen=!1,gt(!1),f.animation?tt||(tt=e(yt,150,!1)):yt())})}function vt(){rt&&(e.cancel(rt),rt=null);tt&&(e.cancel(tt),tt=null)}function ti(){h||(b=f.$new(),h=n(b,function(n){ft?o.find("body").append(n):i.after(n)}),v.add(f,{close:k}),ri())}function yt(){st();vt();ui();h&&(h.remove(),h=null,ht&&e.cancel(ht));v.remove(f);b&&(b.$destroy(),b=null)}function ii(){var n,i,e;f.title=r[c+"Title"];f.content=ct?ct(t):r[u];f.popupClass=r[c+"Class"];f.placement=angular.isDefined(r[c+"Placement"])?r[c+"Placement"]:y.placement;n=s.parsePlacement(f.placement);ut=n[1]?n[0]+"-"+n[1]:n[0];i=parseInt(r[c+"PopupDelay"],10);e=parseInt(r[c+"PopupCloseDelay"],10);f.popupDelay=isNaN(i)?y.popupDelay:i;f.popupCloseDelay=isNaN(e)?y.popupCloseDelay:e}function gt(n){et&&angular.isFunction(et.assign)&&et.assign(t,n)}function ri(){a.length=0;ct?(a.push(t.$watch(ct,function(n){f.content=n;!n&&f.isOpen&&k()})),a.push(b.$watch(function(){pt||(pt=!0,b.$$postDigest(function(){pt=!1;f&&f.isOpen&&ot()}))}))):a.push(r.$observe(u,function(n){f.content=n;!n&&f.isOpen?k():ot()}));a.push(r.$observe(c+"Title",function(n){f.title=n;f.isOpen&&ot()}));a.push(r.$observe(c+"Placement",function(n){f.placement=n?n:y.placement;f.isOpen&&ot()}))}function ui(){a.length&&(angular.forEach(a,function(n){n()}),a.length=0)}function ni(n){f&&f.isOpen&&h&&(i[0].contains(n.target)||h[0].contains(n.target)||nt())}function fi(){var u=[],f=[],n=t.$eval(r[c+"Trigger"]);wt();angular.isObject(n)?(Object.keys(n).forEach(function(t){u.push(t);f.push(n[t])}),w={show:u,hide:f}):w=p(n);"none"!==w.show&&w.show.forEach(function(n,t){"outsideClick"===n?(i.on("click",g),o.on("click",ni)):n===w.hide[t]?i.on(n,g):n&&(i.on(n,at),i.on(w.hide[t],nt));i.on("keypress",function(n){27===n.which&&nt()})})}var h,b,tt,it,rt,d,ht,ut,ft=angular.isDefined(y.appendToBody)?y.appendToBody:!1,w=p(void 0),ei=angular.isDefined(r[c+"Enable"]),f=t.$new(!0),pt=!1,et=angular.isDefined(r[c+"IsOpen"])?l(r[c+"IsOpen"]):!1,ct=y.useContentExp?l(r[u]):!1,a=[],ot=function(){h&&h.html()&&(d||(d=e(function(){var n=s.positionElements(i,h,f.placement,ft),r=angular.isDefined(h.offsetHeight)?h.offsetHeight:h.prop("offsetHeight"),u=ft?s.offset(i):s.position(i),t;h.css({top:n.top+"px",left:n.left+"px"});t=n.placement.split("-");h.hasClass(t[0])||(h.removeClass(ut.split("-")[0]),h.addClass(t[0]));h.hasClass(y.placementClassPrefix+n.placement)||(h.removeClass(y.placementClassPrefix+ut),h.addClass(y.placementClassPrefix+n.placement));ht=e(function(){var i=angular.isDefined(h.offsetHeight)?h.offsetHeight:h.prop("offsetHeight"),n=s.adjustTop(t,u,r,i);n&&h.css(n);ht=null},0,!1);h.hasClass("uib-position-measure")?(s.positionArrow(h,n.placement),h.removeClass("uib-position-measure")):ut!==n.placement&&s.positionArrow(h,n.placement);ut=n.placement;d=null},0,!1)))},wt,bt,kt,lt;f.origScope=t;f.isOpen=!1;f.contentExp=function(){return f.content};r.$observe("disabled",function(n){n&&st();n&&f.isOpen&&k()});et&&t.$watch(et,function(n){f&&!n===f.isOpen&&g()});wt=function(){w.show.forEach(function(n){"outsideClick"===n?i.off("click",g):(i.off(n,at),i.off(n,g))});w.hide.forEach(function(n){"outsideClick"===n?o.off("click",ni):i.off(n,nt)})};fi();bt=t.$eval(r[c+"Animation"]);f.animation=angular.isDefined(bt)?!!bt:y.animation;lt=c+"AppendToBody";kt=lt in r&&void 0===r[lt]?!0:t.$eval(r[lt]);ft=angular.isDefined(kt)?kt:ft;t.$on("$destroy",function(){wt();yt();f=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(n,t,i,r){return{link:function(u,f,e){var o,s,h,a=u.$eval(e.tooltipTemplateTranscludeScope),l=0,c=function(){s&&(s.remove(),s=null);o&&(o.$destroy(),o=null);h&&(n.leave(h).then(function(){s=null}),s=h,h=null)};u.$watch(t.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(t){var e=++l;t?(r(t,!0).then(function(r){if(e===l){var u=a.$new(),s=r,v=i(s)(u,function(t){c();n.enter(t,f)});o=u;h=v;o.$emit("$includeContentLoaded",t)}},function(){e===l&&(c(),u.$emit("$includeContentError",t))}),u.$emit("$includeContentRequested",t)):c()});u.$on("$destroy",c)}}}]).directive("uibTooltipClasses",["$uibPosition",function(n){return{restrict:"A",link:function(t,i,r){if(t.placement){var u=n.parsePlacement(t.placement);i.addClass(u[0])}t.popupClass&&i.addClass(t.popupClass);t.animation&&i.addClass(r.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(n){return n("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(n){return n("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(n){return n("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(n){return n("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(n){return n("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(n){return n("uibPopover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(n,t,i){function r(){return angular.isDefined(n.maxParam)?n.maxParam:i.max}var u=this,f=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=r();this.addBar=function(n,t,i){f||t.css({transition:"none"});this.bars.push(n);n.max=r();n.title=i&&angular.isDefined(i.title)?i.title:"progressbar";n.$watch("value",function(){n.recalculatePercentage()});n.recalculatePercentage=function(){var t=u.bars.reduce(function(n,t){return t.percent=+(100*t.value/t.max).toFixed(2),n+t.percent},0);t>100&&(n.percent-=t-100)};n.$on("$destroy",function(){t=null;u.removeBar(n)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1);this.bars.forEach(function(n){n.recalculatePercentage()})};n.$watch("maxParam",function(){u.bars.forEach(function(n){n.max=r();n.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t,i)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]),{title:i.title})}}});angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(n,t,i){var r={$setViewValue:angular.noop},u=this;this.init=function(u){var f,e;r=u;r.$render=this.render;r.$formatters.push(function(n){return angular.isNumber(n)&&n<<0!==n&&(n=Math.round(n)),n});this.stateOn=angular.isDefined(t.stateOn)?n.$parent.$eval(t.stateOn):i.stateOn;this.stateOff=angular.isDefined(t.stateOff)?n.$parent.$eval(t.stateOff):i.stateOff;this.enableReset=angular.isDefined(t.enableReset)?n.$parent.$eval(t.enableReset):i.enableReset;f=angular.isDefined(t.titles)?n.$parent.$eval(t.titles):i.titles;this.titles=angular.isArray(f)&&f.length>0?f:i.titles;e=angular.isDefined(t.ratingStates)?n.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max);n.range=this.buildTemplateObjects(e)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;i>t;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},n[t]);return n};this.getTitle=function(n){return n>=this.titles.length?n+1:this.titles[n]};n.rate=function(t){if(!n.readonly&&t>=0&&t<=n.range.length){var i=u.enableReset&&r.$viewValue===t?0:t;r.$setViewValue(i);r.$render()}};n.enter=function(t){n.readonly||(n.value=t);n.onHover({value:t})};n.reset=function(){n.value=r.$viewValue;n.onLeave()};n.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),n.rate(n.value+(38===t.which||39===t.which?1:-1)))};this.render=function(){n.value=r.$viewValue;n.title=u.getTitle(n.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(n,t,i,r){var u=r[0],f=r[1];u.init(f)}}});angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(n){function r(n){for(var i=0;i<t.tabs.length;i++)if(t.tabs[i].index===n)return i}var i,t=this,u;t.tabs=[];t.select=function(n,f){var s,o,e;if(!u){if(s=r(i),o=t.tabs[s],o){if(o.tab.onDeselect({$event:f,$selectedIndex:n}),f&&f.isDefaultPrevented())return;o.tab.active=!1}e=t.tabs[n];e?(e.tab.onSelect({$event:f}),e.tab.active=!0,t.active=e.index,i=e.index):!e&&angular.isDefined(i)&&(t.active=null,i=null)}};t.addTab=function(n){if(t.tabs.push({tab:n,index:n.index}),t.tabs.sort(function(n,t){return n.index>t.index?1:n.index<t.index?-1:0}),n.index===t.active||!angular.isDefined(t.active)&&1===t.tabs.length){var i=r(n.index);t.select(i)}};t.removeTab=function(n){for(var i,u,r=0;r<t.tabs.length;r++)if(t.tabs[r].tab===n){i=r;break}t.tabs[i].index===t.active&&(u=i===t.tabs.length-1?i-1:i+1%t.tabs.length,t.select(u));t.tabs.splice(i,1)};n.$watch("tabset.active",function(n){angular.isDefined(n)&&n!==i&&t.select(r(n))});n.$on("$destroy",function(){u=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(n,t){return t.templateUrl||"uib/template/tabs/tabset.html"},link:function(n,t,i){n.vertical=angular.isDefined(i.vertical)?n.$parent.$eval(i.vertical):!1;n.justified=angular.isDefined(i.justified)?n.$parent.$eval(i.justified):!1}}}).directive("uibTab",["$parse",function(n){return{require:"^uibTabset",replace:!0,templateUrl:function(n,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,i,r,u,f){t.disabled=!1;r.disable&&t.$parent.$watch(n(r.disable),function(n){t.disabled=!!n});angular.isUndefined(r.index)&&(t.index=u.tabs&&u.tabs.length?Math.max.apply(null,u.tabs.map(function(n){return n.index}))+1:0);angular.isUndefined(r.classes)&&(t.classes="");t.select=function(n){if(!t.disabled){for(var r,i=0;i<u.tabs.length;i++)if(u.tabs[i].tab===t){r=i;break}u.select(r,n)}};u.addTab(t);t.$on("$destroy",function(){u.removeTab(t)});t.$transcludeFn=f}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}).directive("uibTabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("uib-tab-heading")||n.hasAttribute("data-uib-tab-heading")||n.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===n.tagName.toLowerCase()||"data-uib-tab-heading"===n.tagName.toLowerCase()||"x-uib-tab-heading"===n.tagName.toLowerCase()||"uib:tab-heading"===n.tagName.toLowerCase())}return{restrict:"A",require:"^uibTabset",link:function(t,i,r){var u=t.$eval(r.uibTabContentTransclude).tab;u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}});angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(n,t,i,r,u,f,e){function ut(){var t=+n.hours,i=n.showMeridian?t>0&&13>t:t>=0&&24>t;if(i&&""!==n.hours)return(n.showMeridian&&(12===t&&(t=0),n.meridian===v[1]&&(t+=12)),t)}function ft(){var t=+n.minutes,i=t>=0&&60>t;if(i&&""!==n.minutes)return t}function ct(){var t=+n.seconds;if(t>=0&&60>t)return t}function p(n,t){return null===n?"":angular.isDefined(n)&&n.toString().length<2&&!t?"0"+n:n.toString()}function g(n){nt();s.$setViewValue(new Date(o));ot(n)}function nt(){tt&&tt.$setValidity("hours",!0);it&&it.$setValidity("minutes",!0);rt&&rt.$setValidity("seconds",!0);s.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1;n.invalidSeconds=!1}function ot(t){if(s.$modelValue){var i=o.getHours(),r=o.getMinutes(),u=o.getSeconds();n.showMeridian&&(i=0===i||12===i?12:i%12);n.hours="h"===t?i:p(i,!ht);"m"!==t&&(n.minutes=p(r));n.meridian=o.getHours()<12?v[0]:v[1];"s"!==t&&(n.seconds=p(u));n.meridian=o.getHours()<12?v[0]:v[1]}else n.hours=null,n.minutes=null,n.seconds=null,n.meridian=v[0]}function y(n){o=et(o,n);g()}function w(n,t){return et(n,60*t)}function et(n,t){var i=new Date(n.getTime()+1e3*t),r=new Date(n);return r.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),r}function st(){return(null===n.hours||""===n.hours)&&(null===n.minutes||""===n.minutes)&&(!n.showSeconds||n.showSeconds&&(null===n.seconds||""===n.seconds))}var tt,it,rt,o=new Date,a=[],s={$setViewValue:angular.noop},v=angular.isDefined(i.meridians)?n.$parent.$eval(i.meridians):e.meridians||f.DATETIME_FORMATS.AMPMS,ht=angular.isDefined(i.padHours)?n.$parent.$eval(i.padHours):!0,b,k,c,l,h,d;n.tabindex=angular.isDefined(i.tabindex)?i.tabindex:0;t.removeAttr("tabindex");this.init=function(t,r){var h,c;s=t;s.$render=this.render;s.$formatters.unshift(function(n){return n?new Date(n):null});var u=r.eq(0),f=r.eq(1),o=r.eq(2);tt=u.controller("ngModel");it=f.controller("ngModel");rt=o.controller("ngModel");h=angular.isDefined(i.mousewheel)?n.$parent.$eval(i.mousewheel):e.mousewheel;h&&this.setupMousewheelEvents(u,f,o);c=angular.isDefined(i.arrowkeys)?n.$parent.$eval(i.arrowkeys):e.arrowkeys;c&&this.setupArrowkeyEvents(u,f,o);n.readonlyInput=angular.isDefined(i.readonlyInput)?n.$parent.$eval(i.readonlyInput):e.readonlyInput;this.setupInputEvents(u,f,o)};b=e.hourStep;i.hourStep&&a.push(n.$parent.$watch(r(i.hourStep),function(n){b=+n}));k=e.minuteStep;i.minuteStep&&a.push(n.$parent.$watch(r(i.minuteStep),function(n){k=+n}));a.push(n.$parent.$watch(r(i.min),function(n){var t=new Date(n);c=isNaN(t)?void 0:t}));a.push(n.$parent.$watch(r(i.max),function(n){var t=new Date(n);l=isNaN(t)?void 0:t}));h=!1;i.ngDisabled&&a.push(n.$parent.$watch(r(i.ngDisabled),function(n){h=n}));n.noIncrementHours=function(){var n=w(o,60*b);return h||n>l||o>n&&c>n};n.noDecrementHours=function(){var n=w(o,60*-b);return h||c>n||n>o&&n>l};n.noIncrementMinutes=function(){var n=w(o,k);return h||n>l||o>n&&c>n};n.noDecrementMinutes=function(){var n=w(o,-k);return h||c>n||n>o&&n>l};n.noIncrementSeconds=function(){var n=et(o,d);return h||n>l||o>n&&c>n};n.noDecrementSeconds=function(){var n=et(o,-d);return h||c>n||n>o&&n>l};n.noToggleMeridian=function(){return o.getHours()<12?h||w(o,720)>l:h||w(o,-720)<c};d=e.secondStep;i.secondStep&&a.push(n.$parent.$watch(r(i.secondStep),function(n){d=+n}));n.showSeconds=e.showSeconds;i.showSeconds&&a.push(n.$parent.$watch(r(i.showSeconds),function(t){n.showSeconds=!!t}));n.showMeridian=e.showMeridian;i.showMeridian&&a.push(n.$parent.$watch(r(i.showMeridian),function(t){if(n.showMeridian=!!t,s.$error.time){var i=ut(),r=ft();angular.isDefined(i)&&angular.isDefined(r)&&(o.setHours(i),g())}else ot()}));this.setupMousewheelEvents=function(t,i,r){var u=function(n){n.originalEvent&&(n=n.originalEvent);var t=n.wheelDelta?n.wheelDelta:-n.deltaY;return n.detail||t>0};t.bind("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.bind("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()});r.bind("mousewheel wheel",function(t){h||n.$apply(u(t)?n.incrementSeconds():n.decrementSeconds());t.preventDefault()})};this.setupArrowkeyEvents=function(t,i,r){t.bind("keydown",function(t){h||(38===t.which?(t.preventDefault(),n.incrementHours(),n.$apply()):40===t.which&&(t.preventDefault(),n.decrementHours(),n.$apply()))});i.bind("keydown",function(t){h||(38===t.which?(t.preventDefault(),n.incrementMinutes(),n.$apply()):40===t.which&&(t.preventDefault(),n.decrementMinutes(),n.$apply()))});r.bind("keydown",function(t){h||(38===t.which?(t.preventDefault(),n.incrementSeconds(),n.$apply()):40===t.which&&(t.preventDefault(),n.decrementSeconds(),n.$apply()))})};this.setupInputEvents=function(t,i,r){if(n.readonlyInput)return n.updateHours=angular.noop,n.updateMinutes=angular.noop,void(n.updateSeconds=angular.noop);var u=function(t,i,r){s.$setViewValue(null);s.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t,tt&&tt.$setValidity("hours",!1));angular.isDefined(i)&&(n.invalidMinutes=i,it&&it.$setValidity("minutes",!1));angular.isDefined(r)&&(n.invalidSeconds=r,rt&&rt.$setValidity("seconds",!1))};n.updateHours=function(){var n=ut(),t=ft();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(n),o.setMinutes(t),c>o||o>l?u(!0):g("h")):u(!0)};t.bind("blur",function(){s.$setTouched();st()?nt():null===n.hours||""===n.hours?u(!0):!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=p(n.hours,!ht)})});n.updateMinutes=function(){var n=ft(),t=ut();s.$setDirty();angular.isDefined(n)&&angular.isDefined(t)?(o.setHours(t),o.setMinutes(n),c>o||o>l?u(void 0,!0):g("m")):u(void 0,!0)};i.bind("blur",function(){s.$setTouched();st()?nt():null===n.minutes?u(void 0,!0):!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=p(n.minutes)})});n.updateSeconds=function(){var n=ct();s.$setDirty();angular.isDefined(n)?(o.setSeconds(n),g("s")):u(void 0,void 0,!0)};r.bind("blur",function(){st()?nt():!n.invalidSeconds&&n.seconds<10&&n.$apply(function(){n.seconds=p(n.seconds)})})};this.render=function(){var t=s.$viewValue;isNaN(t)?(s.$setValidity("time",!1),u.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(o=t),c>o||o>l?(s.$setValidity("time",!1),n.invalidHours=!0,n.invalidMinutes=!0):nt(),ot())};n.showSpinners=angular.isDefined(i.showSpinners)?n.$parent.$eval(i.showSpinners):e.showSpinners;n.incrementHours=function(){n.noIncrementHours()||y(3600*b)};n.decrementHours=function(){n.noDecrementHours()||y(3600*-b)};n.incrementMinutes=function(){n.noIncrementMinutes()||y(60*k)};n.decrementMinutes=function(){n.noDecrementMinutes()||y(60*-k)};n.incrementSeconds=function(){n.noIncrementSeconds()||y(d)};n.decrementSeconds=function(){n.noDecrementSeconds()||y(-d)};n.toggleMeridian=function(){var t=ft(),i=ut();n.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(i)?y(720*(o.getHours()<12?60:-60)):n.meridian=n.meridian===v[0]?v[1]:v[0])};n.blur=function(){s.$setTouched()};n.$on("$destroy",function(){for(;a.length;)a.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(t,i){return i.templateUrl||n.templateUrl},link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u,t.find("input"))}}}]);angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+i+'".');return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(n,t,i,r,u,f,e,o,s,h,c,l,a){function rt(){v.moveInProgress||(v.moveInProgress=!0,v.$digest());ti()}function bt(){v.position=nt?l.offset(t):l.position(t);v.position.top+=t.prop("offsetHeight")}var y,ut,ri=[9,13,27,38,40],d=n.$eval(i.typeaheadMinLength),at,g,ct,tt,p,b,ni,lt,ti,yt,ii,pt,wt,it;d||0===d||(d=1);n.$watch(i.typeaheadMinLength,function(n){d=n||0===n?n:1});at=n.$eval(i.typeaheadWaitMs)||0;g=n.$eval(i.typeaheadEditable)!==!1;n.$watch(i.typeaheadEditable,function(n){g=n!==!1});var ft,et,ot=u(i.typeaheadLoading).assign||angular.noop,ui=i.typeaheadShouldSelect?u(i.typeaheadShouldSelect):function(n,t){var i=t.$event;return 13===i.which||9===i.which},fi=u(i.typeaheadOnSelect),ei=angular.isDefined(i.typeaheadSelectOnBlur)?n.$eval(i.typeaheadSelectOnBlur):!1,st=u(i.typeaheadNoResults).assign||angular.noop,kt=i.typeaheadInputFormatter?u(i.typeaheadInputFormatter):void 0,nt=i.typeaheadAppendToBody?n.$eval(i.typeaheadAppendToBody):!1,vt=i.typeaheadAppendTo?n.$eval(i.typeaheadAppendTo):null,oi=n.$eval(i.typeaheadFocusFirst)!==!1,si=i.typeaheadSelectOnExact?n.$eval(i.typeaheadSelectOnExact):!1,hi=u(i.typeaheadIsOpen).assign||angular.noop,ht=n.$eval(i.typeaheadShowHint)||!1,dt=u(i.ngModel),ci=u(i.ngModel+"($$$p)"),li=function(t,i){return angular.isFunction(dt(n))&&ut&&ut.$options&&ut.$options.getterSetter?ci(t,{$$$p:i}):dt.assign(t,i)},w=a.parse(i.uibTypeahead),v=n.$new(),ai=n.$on("$destroy",function(){v.$destroy()});v.$on("$destroy",ai);ct="typeahead-"+v.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":ct});ht&&(tt=angular.element("<div><\/div>"),tt.css("position","relative"),t.after(tt),p=t.clone(),p.attr("placeholder",""),p.attr("tabindex","-1"),p.val(""),p.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),p.attr("id")&&p.removeAttr("id"),tt.append(p),p.after(t));b=angular.element("<div uib-typeahead-popup><\/div>");b.attr({id:ct,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"});angular.isDefined(i.typeaheadTemplateUrl)&&b.attr("template-url",i.typeaheadTemplateUrl);angular.isDefined(i.typeaheadPopupTemplateUrl)&&b.attr("popup-template-url",i.typeaheadPopupTemplateUrl);var vi=function(){ht&&p.val("")},k=function(){v.matches=[];v.activeIdx=-1;t.attr("aria-expanded",!1);vi()},gt=function(n){return ct+"-option-"+n};v.$watch("activeIdx",function(n){0>n?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",gt(n))});ni=function(n,t){return v.matches.length>t&&n?n.toUpperCase()===v.matches[t].label.toUpperCase():!1};lt=function(i,r){var u={$viewValue:i};ot(n,!0);st(n,!1);f.when(w.source(n,u)).then(function(f){var s=i===y.$viewValue,e,o;if(s&&ft)if(f&&f.length>0){for(v.activeIdx=oi?0:-1,st(n,!1),v.matches.length=0,e=0;e<f.length;e++)u[w.itemName]=f[e],v.matches.push({id:gt(e),label:w.viewMapper(v,u),model:f[e]});(v.query=i,bt(),t.attr("aria-expanded",!0),si&&1===v.matches.length&&ni(i,0)&&(angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(0,r)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(0,r)),ht)&&(o=v.matches[0].label,angular.isString(i)&&i.length>0&&o.slice(0,i.length).toUpperCase()===i.toUpperCase()?p.val(i+o.slice(i.length)):p.val(""))}else k(),st(n,!0);s&&ot(n,!1)},function(){k();ot(n,!1);st(n,!0)})};nt&&(angular.element(s).on("resize",rt),o.find("body").on("scroll",rt));ti=c(function(){v.matches.length&&bt();v.moveInProgress=!1},200);v.moveInProgress=!1;v.query=void 0;ii=function(n){yt=e(function(){lt(n)},at)};pt=function(){yt&&e.cancel(yt)};k();v.assignIsOpen=function(t){hi(n,t)};v.select=function(r,u){var f,s,o={};et=!0;o[w.itemName]=s=v.matches[r].model;f=w.modelMapper(n,o);li(n,f);y.$setValidity("editable",!0);y.$setValidity("parse",!0);fi(n,{$item:s,$model:f,$label:w.viewMapper(n,o),$event:u});k();v.$eval(i.typeaheadFocusOnSelect)!==!1&&e(function(){t[0].focus()},0,!1)};t.on("keydown",function(t){var r,i;if(0!==v.matches.length&&-1!==ri.indexOf(t.which)){if(r=ui(n,{$event:t}),-1===v.activeIdx&&r||9===t.which&&t.shiftKey)return k(),void v.$digest();t.preventDefault();switch(t.which){case 27:t.stopPropagation();k();n.$digest();break;case 38:v.activeIdx=(v.activeIdx>0?v.activeIdx:v.matches.length)-1;v.$digest();i=b[0].querySelectorAll(".uib-typeahead-match")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;case 40:v.activeIdx=(v.activeIdx+1)%v.matches.length;v.$digest();i=b[0].querySelectorAll(".uib-typeahead-match")[v.activeIdx];i.parentNode.scrollTop=i.offsetTop;break;default:r&&v.$apply(function(){angular.isNumber(v.debounceUpdate)||angular.isObject(v.debounceUpdate)?c(function(){v.select(v.activeIdx,t)},angular.isNumber(v.debounceUpdate)?v.debounceUpdate:v.debounceUpdate["default"]):v.select(v.activeIdx,t)})}}});t.bind("focus",function(n){ft=!0;0!==d||y.$viewValue||e(function(){lt(y.$viewValue,n)},0)});t.bind("blur",function(n){ei&&v.matches.length&&-1!==v.activeIdx&&!et&&(et=!0,v.$apply(function(){angular.isObject(v.debounceUpdate)&&angular.isNumber(v.debounceUpdate.blur)?c(function(){v.select(v.activeIdx,n)},v.debounceUpdate.blur):v.select(v.activeIdx,n)}));!g&&y.$error.editable&&(y.$setViewValue(),v.$apply(function(){y.$setValidity("editable",!0);y.$setValidity("parse",!0)}),t.val(""));ft=!1;et=!1});wt=function(i){t[0]!==i.target&&3!==i.which&&0!==v.matches.length&&(k(),h.$$phase||n.$digest())};o.on("click",wt);n.$on("$destroy",function(){o.off("click",wt);(nt||vt)&&it.remove();nt&&(angular.element(s).off("resize",rt),o.find("body").off("scroll",rt));b.remove();ht&&tt.remove()});it=r(b)(v);nt?o.find("body").append(it):vt?angular.element(vt).eq(0).append(it):t.after(it);this.init=function(t,i){y=t;ut=i;v.debounceUpdate=y.$options&&u(y.$options.debounce)(n);y.$parsers.unshift(function(t){return ft=!0,0===d||t&&t.length>=d?at>0?(pt(),ii(t)):lt(t):(ot(n,!1),pt(),k()),g?t:t?void y.$setValidity("editable",!1):(y.$setValidity("editable",!0),null)});y.$formatters.push(function(t){var r,u,i={};return g||y.$setValidity("editable",!0),kt?(i.$model=t,kt(n,i)):(i[w.itemName]=t,r=w.viewMapper(n,i),i[w.itemName]=void 0,u=w.viewMapper(n,i),r!==u?r:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(n,t,i,r){r[2].init(r[0],r[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(n){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(n,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,i,r){t.templateUrl=r.templateUrl;t.isOpen=function(){var n=t.matches.length>0;return t.assignIsOpen({isOpen:n}),n};t.isActive=function(n){return t.active===n};t.selectActive=function(n){t.active=n};t.selectMatch=function(i,r){var u=t.debounce();angular.isNumber(u)||angular.isObject(u)?n(function(){t.select({activeIdx:i,evt:r})},angular.isNumber(u)?u:u["default"]):t.select({activeIdx:i,evt:r})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(n,t,i){return{scope:{index:"=",match:"=",query:"="},link:function(r,u,f){var e=i(f.templateUrl)(r.$parent)||"uib/template/typeahead/typeahead-match.html";n(e).then(function(n){var i=angular.element(n.trim());u.replaceWith(i);t(i)(r)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,t,i){function u(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function f(n){return/<.*>/g.test(n)}var r;return r=t.has("$sanitize"),function(t,e){return!r&&f(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(u(e),"gi"),"<strong>$&<\/strong>"):t,r||(t=n.trustAsHtml(t)),t}}]);angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(n){n.put("uib/template/accordion/accordion-group.html",'<div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n  <h4 class="panel-title">\n    <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading" ng-disabled="isDisabled" uib-tabindex-toggle><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}<\/span><\/a>\n  <\/h4>\n<\/div>\n<div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n  <div class="panel-body" ng-transclude><\/div>\n<\/div>\n')}]);angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(n){n.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude><\/div>')}]);angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(n){n.put("uib/template/alert/alert.html",'<button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n  <span aria-hidden="true">&times;<\/span>\n  <span class="sr-only">Close<\/span>\n<\/button>\n<div ng-transclude><\/div>\n')}]);angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(n){n.put("uib/template/carousel/carousel.html",'<div class="carousel-inner" ng-transclude><\/div>\n<a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"><\/span>\n  <span class="sr-only">previous<\/span>\n<\/a>\n<a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"><\/span>\n  <span class="sr-only">next<\/span>\n<\/a>\n<ol class="carousel-indicators" ng-show="slides.length > 1">\n  <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n    <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active<\/span><\/span>\n  <\/li>\n<\/ol>\n')}]);angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(n){n.put("uib/template/carousel/slide.html",'<div class="text-center" ng-transclude><\/div>\n')}]);angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/datepicker.html",'<div ng-switch="datepickerMode">\n  <div uib-daypicker ng-switch-when="day" tabindex="0" class="uib-daypicker"><\/div>\n  <div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker"><\/div>\n  <div uib-yearpicker ng-switch-when="year" tabindex="0" class="uib-yearpicker"><\/div>\n<\/div>\n')}]);angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"><\/i><span class="sr-only">previous<\/span><\/button><\/th>\n      <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"><\/i><span class="sr-only">next<\/span><\/button><\/th>\n    <\/tr>\n    <tr>\n      <th ng-if="showWeeks" class="text-center"><\/th>\n      <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}<\/small><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr class="uib-weeks" ng-repeat="row in rows track by $index" role="row">\n      <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}<\/em><\/td>\n      <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default btn-sm"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"><\/i><span class="sr-only">previous<\/span><\/button><\/th>\n      <th colspan="{{::yearHeaderColspan}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"><\/i><span class="sr-only">next<\/span><\/i><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr class="uib-months" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"><\/i><span class="sr-only">previous<\/span><\/button><\/th>\n      <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"><\/i><span class="sr-only">next<\/span><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr class="uib-years" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/datepickerPopup/popup.html",'<ul role="presentation" class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n  <li ng-transclude><\/li>\n  <li ng-if="showButtonBar" class="uib-button-bar">\n    <span class="btn-group pull-left">\n      <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}<\/button>\n      <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}<\/button>\n    <\/span>\n    <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}<\/button>\n  <\/li>\n<\/ul>\n')}]);angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(n){n.put("uib/template/modal/window.html","<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude><\/div><\/div>\n")}]);angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(n){n.put("uib/template/pager/pager.html",'<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}<\/a><\/li>\n<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}<\/a><\/li>\n')}]);angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(n){n.put("uib/template/pagination/pagination.html",'<li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'first\')}}<\/a><\/li>\n<li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}<\/a><\/li>\n<li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)" ng-disabled="ngDisabled&&!page.active" uib-tabindex-toggle>{{page.text}}<\/a><\/li>\n<li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}<\/a><\/li>\n<li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'last\')}}<\/a><\/li>\n')}]);angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip-arrow"><\/div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"><\/div>\n')}]);angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip-arrow"><\/div>\n<div class="tooltip-inner" ng-bind="content"><\/div>\n')}]);angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip-arrow"><\/div>\n<div class="tooltip-inner"\n  uib-tooltip-template-transclude="contentExp()"\n  tooltip-template-transclude-scope="originScope()"><\/div>\n')}]);angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(n){n.put("uib/template/popover/popover-html.html",'<div class="arrow"><\/div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"><\/h3>\n    <div class="popover-content" ng-bind-html="contentExp()"><\/div>\n<\/div>\n')}]);angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(n){n.put("uib/template/popover/popover-template.html",'<div class="arrow"><\/div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"><\/h3>\n    <div class="popover-content"\n      uib-tooltip-template-transclude="contentExp()"\n      tooltip-template-transclude-scope="originScope()"><\/div>\n<\/div>\n')}]);angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(n){n.put("uib/template/popover/popover.html",'<div class="arrow"><\/div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"><\/h3>\n    <div class="popover-content" ng-bind="content"><\/div>\n<\/div>\n')}]);angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(n){n.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude><\/div>\n')}]);angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(n){n.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"><\/div>')}]);angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(n){n.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude><\/div>\n<\/div>\n')}]);angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(n){n.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}" aria-valuetext="{{title}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})<\/span>\n    <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}"><\/i>\n<\/span>\n')}]);angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(n){n.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n  <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}<\/a>\n<\/li>\n')}]);angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(n){n.put("uib/template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{tabset.type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude><\/ul>\n  <div class="tab-content">\n    <div class="tab-pane"\n         ng-repeat="tab in tabset.tabs"\n         ng-class="{active: tabset.active === tab.index}"\n         uib-tab-content-transclude="tab">\n    <\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(n){n.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n  <tbody>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n      <td>&nbsp;<\/td>\n      <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n      <td ng-show="showSeconds">&nbsp;<\/td>\n      <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n      <td ng-show="showMeridian"><\/td>\n    <\/tr>\n    <tr>\n      <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n        <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n      <\/td>\n      <td class="uib-separator">:<\/td>\n      <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n        <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n      <\/td>\n      <td ng-show="showSeconds" class="uib-separator">:<\/td>\n      <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n        <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n      <\/td>\n      <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}<\/button><\/td>\n    <\/tr>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n      <td>&nbsp;<\/td>\n      <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n      <td ng-show="showSeconds">&nbsp;<\/td>\n      <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n      <td ng-show="showMeridian"><\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(n){n.put("uib/template/typeahead/typeahead-match.html",'<a href\n   tabindex="-1"\n   ng-bind-html="match.label | uibTypeaheadHighlight:query"\n   ng-attr-title="{{match.label}}"><\/a>\n')}]);angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(n){n.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li class="uib-typeahead-match" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n        <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"><\/div>\n    <\/li>\n<\/ul>\n')}]);angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibCarouselCss||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}<\/style>');angular.$$uibCarouselCss=!0});angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}<\/style>');angular.$$uibDatepickerCss=!0});angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}<\/style>');angular.$$uibPositionCss=!0});angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}<\/style>');angular.$$uibDatepickerpopupCss=!0});angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}<\/style>');angular.$$uibTooltipCss=!0});angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}<\/style>');angular.$$uibTimepickerCss=!0});angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}<\/style>');angular.$$uibTypeaheadCss=!0});var saveAs=saveAs||function(n){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var v=n.document,r=function(){return n.URL||n.webkitURL||n},i=v.createElementNS("http://www.w3.org/1999/xhtml","a"),y="download"in i,p=function(n){var t=new MouseEvent("click");n.dispatchEvent(t)},s=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),u=n.webkitRequestFileSystem,h=n.requestFileSystem||u||n.mozRequestFileSystem,w=function(t){(n.setImmediate||n.setTimeout)(function(){throw t;},0)},f="application/octet-stream",c=0,b=4e4,e=function(n){var t=function(){"string"==typeof n?r().revokeObjectURL(n):n.remove()};setTimeout(t,b)},o=function(n,t,i){var r,u;for(t=[].concat(t),r=t.length;r--;)if(u=n["on"+t[r]],"function"==typeof u)try{u.call(n,i||n)}catch(f){w(f)}},l=function(n){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["﻿",n],{type:n.type}):n},a=function(t,a,v){v||(t=l(t));var b,d,it,w=this,nt=t.type,rt=!1,tt=function(){o(w,"writestart progress write writeend".split(" "))},k=function(){var i,u;if(d&&s&&"undefined"!=typeof FileReader)return i=new FileReader,i.onloadend=function(){var n=i.result;d.location.href="data:attachment/file"+n.slice(n.search(/[,;]/));w.readyState=w.DONE;tt()},i.readAsDataURL(t),void(w.readyState=w.INIT);((rt||!b)&&(b=r().createObjectURL(t)),d)?d.location.href=b:(u=n.open(b,"_blank"),void 0===u&&s&&(n.location.href=b));w.readyState=w.DONE;tt();e(b)},g=function(n){return function(){if(w.readyState!==w.DONE)return n.apply(this,arguments)}},ut={create:!0,exclusive:!1};return w.readyState=w.INIT,a||(a="download"),y?(b=r().createObjectURL(t),void setTimeout(function(){i.href=b;i.download=a;p(i);tt();e(b);w.readyState=w.DONE})):(n.chrome&&nt&&nt!==f&&(it=t.slice||t.webkitSlice,t=it.call(t,0,t.size,f),rt=!0),u&&"download"!==a&&(a+=".download"),(nt===f||u)&&(d=n),h?(c+=t.size,void h(n.TEMPORARY,c,g(function(n){n.root.getDirectory("saved",ut,g(function(n){var i=function(){n.getFile(a,ut,g(function(n){n.createWriter(g(function(i){i.onwriteend=function(t){d.location.href=n.toURL();w.readyState=w.DONE;o(w,"writeend",t);e(n)};i.onerror=function(){var n=i.error;n.code!==n.ABORT_ERR&&k()};"writestart progress write abort".split(" ").forEach(function(n){i["on"+n]=w["on"+n]});i.write(t);w.abort=function(){i.abort();w.readyState=w.DONE};w.readyState=w.WRITING}),k)}),k)};n.getFile(a,{create:!1},g(function(n){n.remove();i()}),g(function(n){n.code===n.NOT_FOUND_ERR?i():k()}))}),k)}),k)):void k())},t=a.prototype,k=function(n,t,i){return new a(n,t,i)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(n,t,i){return i||(n=l(n)),navigator.msSaveOrOpenBlob(n,t||"download")}:(t.abort=function(){var n=this;n.readyState=n.DONE;o(n,"abort")},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,k)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!==define.amd&&define([],function(){return saveAs});angular.module("jlareau.bowser",[]).factory("bowser",[function(){function i(t){function r(n){var i=t.match(n);return i&&i.length>1&&i[1]||""}function a(n){var i=t.match(n);return i&&i.length>1&&i[2]||""}var e=r(/(ipod|iphone|ipad)/i).toLowerCase(),v=/like android/i.test(t),o=!v&&/android/i.test(t),y=/CrOS/.test(t),s=r(/edge\/(\d+(\.\d+)?)/i),f=r(/version\/(\d+(\.\d+)?)/i),c=/tablet/i.test(t),l=!c&&/[^-]mobi/i.test(t),i,u,h;return/opera|opr/i.test(t)?i={name:"Opera",opera:n,version:f||r(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:n,version:f||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(t)?(i={name:"Windows Phone",windowsphone:n},s?(i.msedge=n,i.version=s):(i.msie=n,i.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:n,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:y?i={name:"Chrome",chromeBook:n,chrome:n,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(t)?i={name:"Microsoft Edge",msedge:n,version:s}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:n,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:e?(i={name:e=="iphone"?"iPhone":e=="ipad"?"iPad":"iPod"},f&&(i.version=f)):/sailfish/i.test(t)?i={name:"Sailfish",sailfish:n,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:n,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(t)?(i={name:"Firefox",firefox:n,version:r(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=n)):/silk/i.test(t)?i={name:"Amazon Silk",silk:n,version:r(/silk\/(\d+(\.\d+)?)/i)}:o?i={name:"Android",version:f}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:n,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",blackberry:n,version:f||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(t)?(i={name:"WebOS",webos:n,version:f||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=n)):i=/bada/i.test(t)?{name:"Bada",bada:n,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(t)?{name:"Tizen",tizen:n,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||f}:/safari/i.test(t)?{name:"Safari",safari:n,version:f}:{name:r(/^(.*)\/(.*) /),version:a(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(i.name=i.name||"Webkit",i.webkit=n,!i.version&&f&&(i.version=f)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=n,i.version=i.version||r(/gecko\/(\d+(\.\d+)?)/i)),!i.msedge&&(o||i.silk)?i.android=n:e&&(i[e]=n,i.ios=n),u="",i.windowsphone?u=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):e?(u=r(/os (\d+([_\s]\d+)*) like mac os x/i),u=u.replace(/[_\s]/g,".")):o?u=r(/android[ \/-](\d+(\.\d+)*)/i):i.webos?u=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?u=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?u=r(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(u=r(/tizen[\/\s](\d+(\.\d+)*)/i)),u&&(i.osversion=u),h=u.split(".")[0],c||e=="ipad"||o&&(h==3||h==4&&!l)||i.silk?i.tablet=n:(l||e=="iphone"||e=="ipod"||o||i.blackberry||i.webos||i.bada)&&(i.mobile=n),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.chrome&&i.version>=20||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1?i.a=n:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6?i.c=n:i.x=n,i}var n=!0,t=i(typeof navigator!="undefined"?navigator.userAgent:"");return t.test=function(n){for(var r,i=0;i<n.length;++i)if(r=n[i],typeof r=="string"&&r in t)return!0;return!1},t._detect=i,t}]);angular.module("isteven-multi-select",["ng"]).directive("istevenMultiSelect",["$sce","$timeout","$templateCache",function(n,t){return{restrict:"AE",scope:{inputModel:"=",outputModel:"=",isDisabled:"=",onClear:"&",onClose:"&",onSearchChange:"&",onItemClick:"&",onOpen:"&",onReset:"&",onSelectAll:"&",onSelectNone:"&",translation:"="},templateUrl:"isteven-multi-select.htm",link:function(i,r,u){function b(n){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",i="",r=0;r<n;r++)i+=t.charAt(Math.floor(Math.random()*t.length));return i}var a,w,l,v,y;i.backUp=[];i.varButtonLabel="";i.spacingProperty="";i.indexProperty="";i.orientationH=!1;i.orientationV=!0;i.filteredModel=[];i.inputLabel={labelFilter:""};i.tabIndex=0;i.lang={};i.helperStatus={all:!0,none:!0,reset:!0,filter:!0};var e=0,c=[],o=0,s="",f=[],p=0,h=null;i.clearClicked=function(n){i.inputLabel.labelFilter="";i.updateFilter();i.select("clear",n)};i.numberToArray=function(n){return new Array(n)};i.searchChanged=function(){if(i.inputLabel.labelFilter.length<p&&i.inputLabel.labelFilter.length>0)return!1;i.updateFilter()};i.updateFilter=function(){var n,f,r;if(i.filteredModel=[],n=0,typeof i.inputModel=="undefined")return!1;for(n=i.inputModel.length-1;n>=0;n--){if(typeof i.inputModel[n][u.groupProperty]!="undefined"&&i.inputModel[n][u.groupProperty]===!1&&i.filteredModel.push(i.inputModel[n]),f=!1,typeof i.inputModel[n][u.groupProperty]=="undefined"){if(typeof u.searchProperty!="undefined"&&u.searchProperty!==""){for(r in i.inputModel[n])if(typeof i.inputModel[n][r]!="boolean"&&String(i.inputModel[n][r]).toUpperCase().indexOf(i.inputLabel.labelFilter.toUpperCase())>=0&&u.searchProperty.indexOf(r)>-1){f=!0;break}}else for(r in i.inputModel[n])if(typeof i.inputModel[n][r]!="boolean"&&String(i.inputModel[n][r]).toUpperCase().indexOf(i.inputLabel.labelFilter.toUpperCase())>=0){f=!0;break}f===!0&&i.filteredModel.push(i.inputModel[n])}typeof i.inputModel[n][u.groupProperty]!="undefined"&&i.inputModel[n][u.groupProperty]===!0&&(typeof i.filteredModel[i.filteredModel.length-1][u.groupProperty]!="undefined"&&i.filteredModel[i.filteredModel.length-1][u.groupProperty]===!1?i.filteredModel.pop():i.filteredModel.push(i.inputModel[n]))}i.filteredModel.reverse();t(function(){if(i.getFormElements(),i.inputLabel.labelFilter.length>p){var n=[];angular.forEach(i.filteredModel,function(t){if(typeof t!="undefined"&&typeof t[u.groupProperty]=="undefined"){var f=angular.copy(t),r=n.push(f);delete n[r-1][i.indexProperty];delete n[r-1][i.spacingProperty]}});i.onSearchChange({data:{keyword:i.inputLabel.labelFilter,result:n}})}},0)};i.getFormElements=function(){var n;f=[];var e=[],t=[],o=[],u=[];for(i.helperStatus.all||i.helperStatus.none||i.helperStatus.reset?(e=r.children().children().next().children().children()[0].getElementsByTagName("button"),i.helperStatus.filter&&(t=r.children().children().next().children().children().next()[0].getElementsByTagName("input"),u=r.children().children().next().children().children().next()[0].getElementsByTagName("button"))):i.helperStatus.filter&&(t=r.children().children().next().children().children()[0].getElementsByTagName("input"),u=r.children().children().next().children().children()[0].getElementsByTagName("button")),o=i.helperStatus.all||i.helperStatus.none||i.helperStatus.reset||i.helperStatus.filter?r.children().children().next().children().next()[0].getElementsByTagName("input"):r.children().children().next()[0].getElementsByTagName("input"),n=0;n<e.length;n++)f.push(e[n]);for(n=0;n<t.length;n++)f.push(t[n]);for(n=0;n<u.length;n++)f.push(u[n]);for(n=0;n<o.length;n++)f.push(o[n])};i.isGroupMarker=function(n,t){return typeof n[u.groupProperty]!="undefined"&&n[u.groupProperty]===t?!0:!1};i.removeGroupEndMarker=function(n){return typeof n[u.groupProperty]!="undefined"&&n[u.groupProperty]===!1?!1:!0};i.syncItems=function(n,r,f){var a,p,l;if((r.preventDefault(),r.stopPropagation(),typeof u.disableProperty!="undefined"&&n[u.disableProperty]===!0)||typeof u.isDisabled!="undefined"&&i.isDisabled===!0||typeof n[u.groupProperty]!="undefined"&&n[u.groupProperty]===!1)return!1;if(a=i.filteredModel.indexOf(n),typeof n[u.groupProperty]!="undefined"&&n[u.groupProperty]===!0){if(typeof u.selectionMode!="undefined"&&u.selectionMode.toUpperCase()==="SINGLE")return!1;for(var s,w=0,b=i.filteredModel.length-1,v=[],y=0,c=a;c<i.filteredModel.length;c++){if(y===0&&c>a)break;if(typeof i.filteredModel[c][u.groupProperty]!="undefined"&&i.filteredModel[c][u.groupProperty]===!0)v.length===0&&(w=c+1),y=y+1;else if(typeof i.filteredModel[c][u.groupProperty]!="undefined"&&i.filteredModel[c][u.groupProperty]===!1){if(y=y-1,v.length>0&&y===0){for(p=!0,b=c,s=0;s<v.length;s++)if(typeof v[s][i.tickProperty]!="undefined"&&v[s][i.tickProperty]===!1){p=!1;break}if(p===!0)for(s=w;s<=b;s++)typeof i.filteredModel[s][u.groupProperty]=="undefined"&&(typeof u.disableProperty=="undefined"?(i.filteredModel[s][i.tickProperty]=!1,l=i.filteredModel[s][i.indexProperty],i.inputModel[l][i.tickProperty]=!1):i.filteredModel[s][u.disableProperty]!==!0&&(i.filteredModel[s][i.tickProperty]=!1,l=i.filteredModel[s][i.indexProperty],i.inputModel[l][i.tickProperty]=!1));else for(s=w;s<=b;s++)typeof i.filteredModel[s][u.groupProperty]=="undefined"&&(typeof u.disableProperty=="undefined"?(i.filteredModel[s][i.tickProperty]=!0,l=i.filteredModel[s][i.indexProperty],i.inputModel[l][i.tickProperty]=!0):i.filteredModel[s][u.disableProperty]!==!0&&(i.filteredModel[s][i.tickProperty]=!0,l=i.filteredModel[s][i.indexProperty],i.inputModel[l][i.tickProperty]=!0))}}else v.push(i.filteredModel[c])}}else{if(typeof u.selectionMode!="undefined"&&u.selectionMode.toUpperCase()==="SINGLE"){for(c=0;c<i.filteredModel.length;c++)i.filteredModel[c][i.tickProperty]=!1;for(c=0;c<i.inputModel.length;c++)i.inputModel[c][i.tickProperty]=!1;i.filteredModel[a][i.tickProperty]=!0}else i.filteredModel[a][i.tickProperty]=!i.filteredModel[a][i.tickProperty];l=i.filteredModel[a][i.indexProperty];i.inputModel[l][i.tickProperty]=i.filteredModel[a][i.tickProperty]}h=angular.copy(n);h!==null&&t(function(){delete h[i.indexProperty];delete h[i.spacingProperty];i.onItemClick({data:h});h=null},0);i.refreshOutputModel();i.refreshButton();e=i.tabIndex;i.tabIndex=f+o;r.target.focus();i.removeFocusStyle(e);i.setFocusStyle(i.tabIndex);typeof u.selectionMode!="undefined"&&u.selectionMode.toUpperCase()==="SINGLE"&&i.toggleCheckboxes(r)};i.refreshOutputModel=function(){i.outputModel=[];var t=[],n={};typeof u.outputProperties!="undefined"?(t=u.outputProperties.split(" "),angular.forEach(i.inputModel,function(r){if(typeof r!="undefined"&&typeof r[u.groupProperty]=="undefined"&&r[i.tickProperty]===!0){n={};angular.forEach(r,function(i,r){t.indexOf(r)>-1&&(n[r]=i)});var f=i.outputModel.push(n);delete i.outputModel[f-1][i.indexProperty];delete i.outputModel[f-1][i.spacingProperty]}})):angular.forEach(i.inputModel,function(n){if(typeof n!="undefined"&&typeof n[u.groupProperty]=="undefined"&&n[i.tickProperty]===!0){var r=angular.copy(n),t=i.outputModel.push(r);delete i.outputModel[t-1][i.indexProperty];delete i.outputModel[t-1][i.spacingProperty]}})};i.refreshButton=function(){var r,t;i.varButtonLabel="";r=0;i.outputModel.length===0?i.varButtonLabel=i.lang.nothingSelected:(t=i.outputModel.length,typeof u.maxLabels!="undefined"&&u.maxLabels!==""&&(t=u.maxLabels),i.more=i.outputModel.length>t?!0:!1,angular.forEach(i.inputModel,function(n){typeof n!="undefined"&&n[u.tickProperty]===!0&&(r<t&&(i.varButtonLabel+=(i.varButtonLabel.length>0?'<\/div>, <div class="buttonLabel">':'<div class="buttonLabel">')+i.writeLabel(n,"buttonLabel")),r++)}),i.more===!0&&(t>0&&(i.varButtonLabel+=", ... "),i.varButtonLabel+="("+i.outputModel.length+")"));i.varButtonLabel=n.trustAsHtml(i.varButtonLabel+'<span class="caret"><\/span>')};i.itemIsDisabled=function(n){return typeof u.disableProperty!="undefined"&&n[u.disableProperty]===!0?!0:i.isDisabled===!0?!0:!1};i.writeLabel=function(t,i){var f=u[i].split(" "),r="";return(angular.forEach(f,function(n){t[n]&&(r+="&nbsp;"+n.split(".").reduce(function(n,t){return n[t]},t))}),i.toUpperCase()==="BUTTONLABEL")?r:n.trustAsHtml(r)};i.toggleCheckboxes=function(){var e=r.children()[0],n,u;if(angular.element(document).off("click",i.externalClickListener),angular.element(document).off("keydown",i.keyboardListener),angular.element(s).hasClass("show"))angular.element(s).removeClass("show"),angular.element(e).removeClass("buttonClicked"),angular.element(document).off("click",i.externalClickListener),angular.element(document).off("keydown",i.keyboardListener),i.removeFocusStyle(i.tabIndex),typeof f[i.tabIndex]!="undefined"&&f[i.tabIndex].blur(),t(function(){i.onClose()},0),r.children().children()[0].focus();else{i.inputLabel.labelFilter="";i.updateFilter();c=[];o=0;angular.element(s).addClass("show");angular.element(e).addClass("buttonClicked");angular.element(document).on("click",i.externalClickListener);angular.element(document).on("keydown",i.keyboardListener);if(i.getFormElements(),i.tabIndex=0,n=angular.element(r[0].querySelector(".helperContainer"))[0],typeof n!="undefined"){for(u=0;u<n.getElementsByTagName("BUTTON").length;u++)c[u]=n.getElementsByTagName("BUTTON")[u];o=c.length+n.getElementsByTagName("INPUT").length}r[0].querySelector(".inputFilter")?(r[0].querySelector(".inputFilter").focus(),i.tabIndex=i.tabIndex+o-2,angular.element(r).children()[0].blur()):i.isDisabled||(i.tabIndex=i.tabIndex+o,i.inputModel.length>0&&(f[i.tabIndex].focus(),i.setFocusStyle(i.tabIndex),angular.element(r).children()[0].blur()));i.onOpen()}};i.externalClickListener=function(n){for(var f=r.find(n.target.tagName),u=0;u<f.length;u++)if(n.target==f[u])return;angular.element(s.previousSibling).removeClass("buttonClicked");angular.element(s).removeClass("show");angular.element(document).off("click",i.externalClickListener);angular.element(document).off("keydown",i.keyboardListener);t(function(){i.onClose()},0);r.children().children()[0].focus()};i.select=function(n,t){var r=c.indexOf(t.target);i.tabIndex=r;switch(n.toUpperCase()){case"ALL":angular.forEach(i.filteredModel,function(n){typeof n!="undefined"&&n[u.disableProperty]!==!0&&typeof n[u.groupProperty]=="undefined"&&(n[i.tickProperty]=!0)});i.refreshOutputModel();i.refreshButton();i.onSelectAll();break;case"NONE":angular.forEach(i.filteredModel,function(n){typeof n!="undefined"&&n[u.disableProperty]!==!0&&typeof n[u.groupProperty]=="undefined"&&(n[i.tickProperty]=!1)});i.refreshOutputModel();i.refreshButton();i.onSelectNone();break;case"RESET":angular.forEach(i.filteredModel,function(n){if(typeof n[u.groupProperty]=="undefined"&&typeof n!="undefined"&&n[u.disableProperty]!==!0){var t=n[i.indexProperty];n[i.tickProperty]=i.backUp[t][i.tickProperty]}});i.refreshOutputModel();i.refreshButton();i.onReset();break;case"CLEAR":i.tabIndex=i.tabIndex+1;i.onClear();break;case"FILTER":i.tabIndex=c.length-1}};i.prepareGrouping=function(){var n=0;angular.forEach(i.filteredModel,function(t){t[i.spacingProperty]=n;t[u.groupProperty]===!0?n+=2:t[u.groupProperty]===!1&&(n-=2)})};i.prepareIndex=function(){var n=0;angular.forEach(i.filteredModel,function(t){t[i.indexProperty]=n;n++})};i.keyboardListener=function(n){var t=n.keyCode?n.keyCode:n.which,r=!1,u;if(t===27)n.preventDefault(),n.stopPropagation(),i.toggleCheckboxes(n);else if(t!==40&&t!==39&&(n.shiftKey||t!=9)){if(t===38||t===37||n.shiftKey&&t==9)for(r=!0,e=i.tabIndex,i.tabIndex--,i.tabIndex<0&&(i.tabIndex=f.length-1,e=0);f[i.tabIndex].disabled===!0;){if(i.tabIndex--,i.tabIndex===e)break;i.tabIndex<0&&(i.tabIndex=f.length-1)}}else for(r=!0,e=i.tabIndex,i.tabIndex++,i.tabIndex>f.length-1&&(i.tabIndex=0,e=f.length-1);f[i.tabIndex].disabled===!0;)if(i.tabIndex++,i.tabIndex>f.length-1&&(i.tabIndex=0),i.tabIndex===e)break;r===!0&&(n.preventDefault(),f[i.tabIndex].focus(),u=document.activeElement,u.type.toUpperCase()==="CHECKBOX"?(i.setFocusStyle(i.tabIndex),i.removeFocusStyle(e)):(i.removeFocusStyle(e),i.removeFocusStyle(o),i.removeFocusStyle(f.length-1)));r=!1};i.setFocusStyle=function(n){angular.element(f[n]).parent().parent().parent().addClass("multiSelectFocus")};i.removeFocusStyle=function(n){angular.element(f[n]).parent().parent().parent().removeClass("multiSelectFocus")};i.groupProperty=u.groupProperty;i.tickProperty=u.tickProperty;i.directiveId=u.directiveId;a=b(5);i.indexProperty="idx_"+a;i.spacingProperty="spc_"+a;typeof u.orientation!="undefined"&&(u.orientation.toUpperCase()==="HORIZONTAL"?(i.orientationH=!0,i.orientationV=!1):(i.orientationH=!1,i.orientationV=!0));s=r.children().children().next()[0];typeof u.maxHeight!="undefined"&&(w=r.children().children().children()[0],angular.element(w).attr("style","height:"+u.maxHeight+"; overflow-y:scroll;"));for(l in i.helperStatus)i.helperStatus.hasOwnProperty(l)&&typeof u.helperElements!="undefined"&&u.helperElements.toUpperCase().indexOf(l.toUpperCase())===-1&&(i.helperStatus[l]=!1);typeof u.selectionMode!="undefined"&&u.selectionMode.toUpperCase()==="SINGLE"&&(i.helperStatus.all=!1,i.helperStatus.none=!1);i.icon={};i.icon.selectAll="&#10003;";i.icon.selectNone="&times;";i.icon.reset="&#8630;";i.icon.tickMark="&#10003;";typeof u.translation!="undefined"?(i.lang.selectAll=n.trustAsHtml(i.icon.selectAll+"&nbsp;&nbsp;"+i.translation.selectAll),i.lang.selectNone=n.trustAsHtml(i.icon.selectNone+"&nbsp;&nbsp;"+i.translation.selectNone),i.lang.reset=n.trustAsHtml(i.icon.reset+"&nbsp;&nbsp;"+i.translation.reset),i.lang.search=i.translation.search,i.lang.nothingSelected=n.trustAsHtml(i.translation.nothingSelected)):(i.lang.selectAll=n.trustAsHtml(i.icon.selectAll+"&nbsp;&nbsp;Select All"),i.lang.selectNone=n.trustAsHtml(i.icon.selectNone+"&nbsp;&nbsp;Select None"),i.lang.reset=n.trustAsHtml(i.icon.reset+"&nbsp;&nbsp;Reset"),i.lang.search="Search...",i.lang.nothingSelected="None Selected");i.icon.tickMark=n.trustAsHtml(i.icon.tickMark);typeof u.MinSearchLength!="undefined"&&parseInt(u.MinSearchLength)>0&&(p=Math.floor(parseInt(u.MinSearchLength)));i.$watch("inputModel",function(n){n&&(i.refreshOutputModel(),i.refreshButton())},!0);i.$watch("inputModel",function(n){n&&(i.backUp=angular.copy(i.inputModel),i.updateFilter(),i.prepareGrouping(),i.prepareIndex(),i.refreshOutputModel(),i.refreshButton())});i.$watch("isDisabled",function(n){i.isDisabled=n});v=function(){i.$apply(function(){i.scrolled=!1})};angular.element(document).bind("touchstart",v);y=function(){i.$apply(function(){i.scrolled=!0})};angular.element(document).bind("touchmove",y);i.$on("$destroy",function(){angular.element(document).unbind("touchstart",v);angular.element(document).unbind("touchmove",y)})}}}]).run(["$templateCache",function(n){n.put("isteven-multi-select.htm",'<span class="multiSelect inlineBlock"><button id="{{directiveId}}" type="button"ng-click="toggleCheckboxes( $event ); refreshSelectedItems(); refreshButton(); prepareGrouping; prepareIndex();"ng-bind-html="varButtonLabel"ng-disabled="disable-button"><\/button><div class="checkboxLayer"><div class="helperContainer" ng-if="helperStatus.filter || helperStatus.all || helperStatus.none || helperStatus.reset "><div class="line" ng-if="helperStatus.all || helperStatus.none || helperStatus.reset "><button type="button" class="helperButton"ng-disabled="isDisabled"ng-if="helperStatus.all"ng-click="select( \'all\', $event );"ng-bind-html="lang.selectAll"><\/button><button type="button" class="helperButton"ng-disabled="isDisabled"ng-if="helperStatus.none"ng-click="select( \'none\', $event );"ng-bind-html="lang.selectNone"><\/button><button type="button" class="helperButton reset"ng-disabled="isDisabled"ng-if="helperStatus.reset"ng-click="select( \'reset\', $event );"ng-bind-html="lang.reset"><\/button><\/div><div class="line" style="position:relative" ng-if="helperStatus.filter"><input placeholder="{{lang.search}}" type="text"ng-click="select( \'filter\', $event )" ng-model="inputLabel.labelFilter" ng-change="searchChanged()" class="inputFilter"/><button type="button" class="clearButton" ng-click="clearClicked( $event )" >×<\/button> <\/div> <\/div> <div class="checkBoxContainer"><div ng-repeat="item in filteredModel | filter:removeGroupEndMarker" class="multiSelectItem"ng-class="{selected: item[ tickProperty ], horizontal: orientationH, vertical: orientationV, multiSelectGroup:item[ groupProperty ], disabled:itemIsDisabled( item )}"ng-click="syncItems( item, $event, $index );" ng-mouseleave="removeFocusStyle( tabIndex );"> <div class="acol" ng-if="item[ spacingProperty ] > 0" ng-repeat="i in numberToArray( item[ spacingProperty ] ) track by $index"><\/div>  <div class="acol"><label><input class="checkbox focusable" type="checkbox" ng-disabled="itemIsDisabled( item )" ng-checked="item[ tickProperty ]" ng-click="syncItems( item, $event, $index )" /><span ng-class="{disabled:itemIsDisabled( item )}" ng-bind-html="writeLabel( item, \'itemLabel\' )"><\/span><\/label><\/div><span class="tickMark" ng-if="item[ groupProperty ] !== true && item[ tickProperty ] === true" ng-bind-html="icon.tickMark"><\/span><\/div><\/div><\/div><\/span>')}])