function X2JS(n){function p(){n.escapeMode===undefined&&(n.escapeMode=!0);n.attributePrefix=n.attributePrefix||"_";n.arrayAccessForm=n.arrayAccessForm||"none";n.emptyNodeForm=n.emptyNodeForm||"text";n.enableToStringFunc===undefined&&(n.enableToStringFunc=!0);n.arrayAccessFormPaths=n.arrayAccessFormPaths||[];n.skipEmptyTextNodesForObj===undefined&&(n.skipEmptyTextNodesForObj=!0);n.stripWhitespaces===undefined&&(n.stripWhitespaces=!0);n.datetimeAccessFormPaths=n.datetimeAccessFormPaths||[];n.useDoubleQuotes===undefined&&(n.useDoubleQuotes=!1)}function w(){function n(n){var t=String(n);return t.length===1&&(t="0"+t),t}typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")});typeof Date.prototype.toISOString!="function"&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}function o(n){var t=n.localName;return t==null&&(t=n.baseName),(t==null||t=="")&&(t=n.nodeName),t}function b(n){return n.prefix}function f(n){return typeof n=="string"?n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"):n}function s(t,i,r){var f,u;switch(n.arrayAccessForm){case"property":t[i+"_asArray"]=t[i]instanceof Array?t[i]:[t[i]]}if(!(t[i]instanceof Array)&&n.arrayAccessFormPaths.length>0){for(f=0;f<n.arrayAccessFormPaths.length;f++)if(u=n.arrayAccessFormPaths[f],typeof u=="string"){if(u==r)break}else if(u instanceof RegExp){if(u.test(r))break}else if(typeof u=="function"&&u(t,i,r))break;f!=n.arrayAccessFormPaths.length&&(t[i]=[t[i]])}}function h(n){var i=n.split(/[-T:+Z]/g),t=new Date(i[0],i[1]-1,i[2]),u=i[5].split("."),r,f;return t.setHours(i[3],i[4],u[0]),u.length>1&&t.setMilliseconds(u[1]),i[6]&&i[7]?(r=i[6]*60+Number(i[7]),f=/\d\d-\d\d:\d\d$/.test(n)?"-":"+",r=0+(f=="-"?-1*r:r),t.setMinutes(t.getMinutes()-r-t.getTimezoneOffset())):n.indexOf("Z",n.length-1)!==-1&&(t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))),t}function k(t,i,r){var e,f,u;if(n.datetimeAccessFormPaths.length>0){for(e=r.split(".#")[0],f=0;f<n.datetimeAccessFormPaths.length;f++)if(u=n.datetimeAccessFormPaths[f],typeof u=="string"){if(u==e)break}else if(u instanceof RegExp){if(u.test(e))break}else if(typeof u=="function"&&u(obj,i,e))break;return f!=n.datetimeAccessFormPaths.length?h(t):t}return t}function r(i,u){var f,l,c,h,e,a,y,v;if(i.nodeType==t.DOCUMENT_NODE){for(f={},l=i.childNodes,c=0;c<l.length;c++)h=l.item(c),h.nodeType==t.ELEMENT_NODE&&(e=o(h),f[e]=r(h,e));return f}if(i.nodeType==t.ELEMENT_NODE){for(f={},f.__cnt=0,l=i.childNodes,c=0;c<l.length;c++)h=l.item(c),e=o(h),h.nodeType!=t.COMMENT_NODE&&(f.__cnt++,f[e]==null?(f[e]=r(h,u+"."+e),s(f,e,u+"."+e)):(f[e]!=null&&(f[e]instanceof Array||(f[e]=[f[e]],s(f,e,u+"."+e))),f[e][f[e].length]=r(h,u+"."+e)));for(a=0;a<i.attributes.length;a++)y=i.attributes.item(a),f.__cnt++,f[n.attributePrefix+y.name]=y.value;return v=b(i),v!=null&&v!=""&&(f.__cnt++,f.__prefix=v),f["#text"]!=null&&(f.__text=f["#text"],f.__text instanceof Array&&(f.__text=f.__text.join("\n")),n.stripWhitespaces&&(f.__text=f.__text.trim()),delete f["#text"],n.arrayAccessForm=="property"&&delete f["#text_asArray"],f.__text=k(f.__text,e,u+"."+e)),f["#cdata-section"]!=null&&(f.__cdata=f["#cdata-section"],delete f["#cdata-section"],n.arrayAccessForm=="property"&&delete f["#cdata-section_asArray"]),f.__cnt==1&&f.__text!=null?f=f.__text:f.__cnt==0&&n.emptyNodeForm=="text"?f="":f.__cnt>1&&f.__text!=null&&n.skipEmptyTextNodesForObj&&(n.stripWhitespaces&&f.__text==""||f.__text.trim()=="")&&delete f.__text,delete f.__cnt,n.enableToStringFunc&&(f.__text!=null||f.__cdata!=null)&&(f.toString=function(){return(this.__text!=null?this.__text:"")+(this.__cdata!=null?this.__cdata:"")}),f}if(i.nodeType==t.TEXT_NODE||i.nodeType==t.CDATA_SECTION_NODE)return i.nodeValue}function i(t,i,r,u){var s="<"+(t!=null&&t.__prefix!=null?t.__prefix+":":"")+i,o,h,e;if(r!=null)for(o=0;o<r.length;o++)h=r[o],e=t[h],n.escapeMode&&(e=f(e)),s+=" "+h.substr(n.attributePrefix.length)+"=",s+=n.useDoubleQuotes?'"'+e+'"':"'"+e+"'";return s+(u?"/>":">")}function u(n,t){return"<\/"+(n.__prefix!=null?n.__prefix+":":"")+t+">"}function d(n,t){return n.indexOf(t,n.length-t.length)!==-1}function c(t,i){return n.arrayAccessForm=="property"&&d(i.toString(),"_asArray")||i.toString().indexOf(n.attributePrefix)==0||i.toString().indexOf("__")==0||t[i]instanceof Function?!0:!1}function l(n){var t=0,i;if(n instanceof Object)for(i in n)c(n,i)||t++;return t}function a(t){var r=[],i;if(t instanceof Object)for(i in t)i.toString().indexOf("__")==-1&&i.toString().indexOf(n.attributePrefix)==0&&r.push(i);return r}function g(t){var i="";return t.__cdata!=null&&(i+="<![CDATA["+t.__cdata+"]\]>"),t.__text!=null&&(i+=n.escapeMode?f(t.__text):t.__text),i}function v(t){var i="";return t instanceof Object?i+=g(t):t!=null&&(i+=n.escapeMode?f(t):t),i}function nt(n,t,r){var o="",f;if(n.length==0)o+=i(n,t,r,!0);else for(f=0;f<n.length;f++)o+=i(n[f],t,a(n[f]),!1),o+=e(n[f]),o+=u(n[f],t);return o}function e(n){var r="",h=l(n),f,t,o,s;if(h>0)for(f in n)c(n,f)||(t=n[f],o=a(t),t==null||t==undefined?r+=i(t,f,o,!0):t instanceof Object?t instanceof Array?r+=nt(t,f,o):t instanceof Date?(r+=i(t,f,o,!1),r+=t.toISOString(),r+=u(t,f)):(s=l(t),s>0||t.__text!=null||t.__cdata!=null?(r+=i(t,f,o,!1),r+=e(t),r+=u(t,f)):r+=i(t,f,o,!0)):(r+=i(t,f,o,!1),r+=v(t),r+=u(t,f)));return r+v(n)}var y="1.1.7",t;n=n||{};p();w();t={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};this.parseXmlString=function(n){var u=window.ActiveXObject||"ActiveXObject"in window,t,r,i;if(n===undefined)return null;if(window.DOMParser){if(r=new window.DOMParser,i=null,!u)try{i=r.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(f){i=null}try{t=r.parseFromString(n,"text/xml");i!=null&&t.getElementsByTagNameNS(i,"parsererror").length>0&&(t=null)}catch(f){t=null}}else n.indexOf("<?")==0&&(n=n.substr(n.indexOf("?>")+2)),t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(n);return t};this.asArray=function(n){return n===undefined||n==null?[]:n instanceof Array?n:[n]};this.toXmlDateTime=function(n){return n instanceof Date?n.toISOString():typeof n=="number"?new Date(n).toISOString():null};this.asDateTime=function(n){return typeof n=="string"?h(n):n};this.xml2json=function(n){return r(n)};this.xml_str2json=function(n){var t=this.parseXmlString(n);return t!=null?this.xml2json(t):null};this.json2xml_str=function(n){return e(n)};this.json2xml=function(n){var t=this.json2xml_str(n);return this.parseXmlString(t)};this.getVersion=function(){return y}}var GN,Design,ProductApi,Translation,ContentElements,__extends,ProductCatalogue,ProductFilterModule,CountryDetection;if(window.addEventListener("load",function(){"use strict";var n=document.querySelector(".top-navigation__main-menu__item--cart");if(n!==null){var r=n.querySelector(".top-navigation__main-menu__label--cart"),u=function(){return new Promise(function(n,t){var r=productApiConfig.settingsUrl+"api/v1/settings?site="+productApiConfig.siteContext+"&marketLocale="+productApiConfig.language+"&scope=ecom",i=new XMLHttpRequest;i.open("GET",r);i.onload=function(){i.status===200?n(JSON.parse(i.response).ecom):t(Error(i.statusText))};i.onerror=function(){t(Error("Network error"))};i.send()})},f=function(){return new Promise(function(n,t){var r=productApiConfig.settingsUrl+"api/v1/settings?site="+productApiConfig.siteContext+"&marketLocale="+productApiConfig.language+"&scope=cart",i=new XMLHttpRequest;i.open("GET",r);i.onload=function(){i.status===200?n(JSON.parse(i.response).cart):t(Error(i.statusText))};i.onerror=function(){t(Error("Network error"))};i.send()})},i=function(n){return new Promise(function(i,r){var f=sessionStorage.getItem("dr-token"),e,u;typeof f=="string"&&f!==""?i(JSON.parse(f)):(e=""+n.tokenUrl+t(n.tokenUrl)+"apiKey="+n.apiKey+"&format=jsonp&locale="+n.marketLocale,u=new XMLHttpRequest,u.open("GET",e),u.onload=function(){u.status===200?(sessionStorage.setItem("dr-token",u.response),i(JSON.parse(u.response))):r(Error(u.statusText))},u.onerror=function(){r(Error("Network error"))},u.send())})},e=function(n){return new Promise(function(r){i(n).then(function(i){var u=document.createElement("script"),f="jsonp_callback_"+Math.round(1e5*Math.random()),e=""+n.cartUrl+t(n.cartUrl)+"token="+i.access_token+"&format=json&method=get&callback="+f;u.src=e;window[f]=function(n){r(n.cart);document.body.removeChild(u);delete window[f]};document.body.appendChild(u)})})},o=function(n){return new Promise(function(r){i(n).then(function(i){r(""+n.checkoutUrl+t(n.checkoutUrl)+"locale="+n.marketLocale+"&currency="+n.currency+"&token="+i.access_token)})})},t=function(n){return n===void 0&&(n=""),n.indexOf("?")>-1?"&":"?"};u().then(function(t){if(!t.ecomEnabled){n.style.display="none";return}f().then(function(t){n.addEventListener("click",function(){o(t).then(function(n){window.location.href=n})});e(t).then(function(n){r.dataset.cartitems=String(n.totalItemsInCart)})})})}}),function(){var n=function(n){var t=document.querySelectorAll(n),i=function(n){Array.prototype.forEach.call(n,function(n){n.checked=!1})};i(t);Array.prototype.forEach.call(t,function(n){n.addEventListener("change",function(n){n.preventDefault();var r=n.target,u=r.checked;i(t);r.checked=u})})};n(".top-navigation__main-menu__item > input");n("#top-navigation__search, .top-navigation__mobile-nav__input")}(),function(){var n=document.querySelectorAll(".top-navigation__main-menu__item--search input");Array.prototype.forEach.call(n,function(n){var i=n.dataset.focus,t=document.getElementById(i);t!==null&&n.addEventListener("change",function(){setTimeout(function(){t.focus()},10)})})}(),function(){var i=document.querySelector(".top-navigation"),n=i.querySelectorAll(".top-navigation__siteselector__region__link"),f=i.querySelectorAll(".top-navigation__siteselector__list"),e=n.length>0?n[0].dataset.region:undefined,r=i.querySelector("#top-navigation__siteselector"),u="active",h=768,t;if(r!==null){var c=function(){Array.prototype.forEach.call(f,function(n){n.style.display="none"})},o=function(n){Array.prototype.forEach.call(f,function(t){t.style.display=t.dataset.region===n?"block":"none"})},s=function(t){Array.prototype.forEach.call(n,function(n){var i=n.classList;n.dataset.region===t?i.add(u):i.remove(u)})};Array.prototype.forEach.call(n,function(n){n.addEventListener("click",function(t){var i=t.target,f=i.classList.contains("top-navigation__siteselector__region__link--mobile"),e=i.classList.contains(u),r=f&&e?undefined:n.dataset.region;s(r);o(r)})});t=function(){document.documentElement.clientWidth<h||r.querySelectorAll(".top-navigation__siteselector__region__link.active").length>0||(s(e),o(e))};r.addEventListener("click",t);window.addEventListener("orientationchange",t);window.addEventListener("resize",t);c()}}(),function(n,t){typeof module=="object"&&typeof module.exports=="object"?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}(typeof window!="undefined"?window:this,function(n,t){function ii(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function ri(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if(typeof t=="string"){if(wf.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return ct.call(t,n)>-1!==r})}function hr(n,t){while((n=n[t])&&n.nodeType!==1);return n}function bf(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function vt(){u.removeEventListener("DOMContentLoaded",vt);n.removeEventListener("load",vt);i.ready()}function ft(){this.expando=i.expando+ft.uid++}function lr(n,t,r){var u;if(r===undefined&&n.nodeType===1)if(u="data-"+t.replace(cr,"-$&").toLowerCase(),r=n.getAttribute(u),typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:kf.test(r)?i.parseJSON(r):r}catch(f){}e.set(n,t,r)}else r=undefined;return r}function vr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||o!=="px"&&+s)&&et.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f=f/e,i.style(n,t,f+o);while(e!==(e=c()/s)&&e!==1&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function o(n,t){var r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[];return t===undefined||t&&i.nodeName(n,t)?i.merge([n],r):r}function ui(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function kr(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(i.type(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(br.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(pr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&ui(s),r)for(v=0;e=s[v++];)wr.test(e.type||"")&&r.push(e)}return h}function yt(){return!0}function nt(){return!1}function gr(){try{return u.activeElement}catch(n){}}function fi(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)fi(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=nt;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function nu(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n:n}function fe(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function ee(n){var t=re.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function tu(n,t){var f,c,o,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(o in u)for(f=0,c=u[o].length;f<c;f++)i.event.add(t,o,u[o][f])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function oe(n,t){var i=t.nodeName.toLowerCase();i==="input"&&yr.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function b(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,d=v-1,y=t[0],k=i.isFunction(y);if(k||v>1&&typeof y=="string"&&!f.checkClone&&ie.test(y))return n.each(function(i){var r=n.eq(i);k&&(t[0]=y.call(this,i,r.html()));b(r,t,u,e)});if(v&&(l=kr(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,l.childNodes.length===1&&(l=p),p||e)){for(c=i.map(o(l,"script"),fe),a=c.length;h<v;h++)s=l,h!==d&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ee),h=0;h<a;h++)s=c[h],wr.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):i.globalEval(s.textContent.replace(ue,"")))}return n}function iu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&ui(o(u,"script")),u.parentNode.removeChild(u));return n}function ru(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.detach(),u}function oi(n){var r=u,t=ei[n];return t||(t=ru(n,r),t!=="none"&&t||(pt=(pt||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=pt[0].contentDocument,r.write(),r.close(),t=ru(n,r),pt.detach()),ei[n]=t),t}function tt(n,t,r){var o,s,h,u,e=n.style;return r=r||wt(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&si.test(u)&&uu.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),u!==undefined?u+"":u}function ci(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function su(n){if(n in ou)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=eu.length;t--;)if(n=eu[t]+i,n in ou)return n}function hu(n,t,i){var r=et.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+w[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+w[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function lu(t,r,e){var h=!0,o=r==="width"?t.offsetWidth:t.offsetHeight,s=wt(t),c=i.css(t,"boxSizing",!1,s)==="border-box";if(u.msFullscreenElement&&n.top!==n&&t.getClientRects().length&&(o=Math.round(t.getBoundingClientRect()[r]*100)),o<=0||o==null){if(o=tt(t,r,s),(o<0||o==null)&&(o=t.style[r]),si.test(o))return o;h=c&&(f.boxSizingReliable()||o===t.style[r]);o=parseFloat(o)||0}return o+cu(t,r,e||(c?"border":"content"),h,s)+"px"}function au(n,t){for(var e,u,s,o=[],f=0,h=n.length;f<h;f++)(u=n[f],u.style)&&(o[f]=r.get(u,"olddisplay"),e=u.style.display,t?(o[f]||e!=="none"||(u.style.display=""),u.style.display===""&&ot(u)&&(o[f]=r.access(u,"olddisplay",oi(u.nodeName)))):(s=ot(u),e==="none"&&s||r.set(u,"olddisplay",s?e:i.css(u,"display"))));for(f=0;f<h;f++)(u=n[f],u.style)&&(t&&u.style.display!=="none"&&u.style.display!==""||(u.style.display=t?o[f]||"":"none"));return n}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function pu(){return n.setTimeout(function(){it=undefined}),it=i.now()}function kt(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function wu(n,t,i){for(var u,f=(l.tweeners[t]||[]).concat(l.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ce(n,t,u){var f,a,p,v,o,w,h,b,l=this,y={},s=n.style,c=n.nodeType&&ot(n),e=r.get(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),o.unqueued==null&&(o.unqueued=0,w=o.empty.fire,o.empty.fire=function(){o.unqueued||w()}),o.unqueued++,l.always(function(){l.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));n.nodeType===1&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],h=i.css(n,"display"),b=h==="none"?r.get(n,"olddisplay")||oi(n.nodeName):h,b==="inline"&&i.css(n,"float")==="none"&&(s.display="inline-block"));u.overflow&&(s.overflow="hidden",l.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],vu.exec(a)){if(delete t[f],p=p||a==="toggle",a===(c?"hide":"show"))if(a==="show"&&e&&e[f]!==undefined)c=!0;else continue;y[f]=e&&e[f]||i.style(n,f)}else h=undefined;if(i.isEmptyObject(y))(h==="none"?oi(n.nodeName):h)==="inline"&&(s.display=h);else{e?"hidden"in e&&(c=e.hidden):e=r.access(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;r.remove(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=wu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start=f==="width"||f==="height"?1:0))}}function le(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function l(n,t,r){var f,o,s=0,a=l.prefilters.length,e=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=it||pu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,f=u.tweens.length;r<f;r++)u.tweens[r].run(i);return e.notifyWith(n,[u,i,t]),i<1&&f?t:(e.resolveWith(n,[u]),!1)},u=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:it||pu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(e.notifyWith(n,[u,1,0]),e.resolveWith(n,[u,t])):e.rejectWith(n,[u,t]),this}}),h=u.props;for(le(h,u.opts.specialEasing);s<a;s++)if(f=l.prefilters[s].call(u,n,h,u.opts),f)return i.isFunction(f.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(f.stop,f)),f;return i.map(h,wu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function k(n){return n.getAttribute&&n.getAttribute("class")||""}function uf(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function ff(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===yi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function wi(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function we(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function be(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function bi(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||de.test(n)?u(n,i):bi(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)bi(n+"["+f+"]",t[f],r,u)}function sf(n){return i.isWindow(n)?n:n.nodeType===9&&n.defaultView}var y=[],u=n.document,v=y.slice,gi=y.concat,ni=y.push,ct=y.indexOf,lt={},lf=lt.toString,ti=lt.hasOwnProperty,f={},nr="2.2.0",i=function(n,t){return new i.fn.init(n,t)},af=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,vf=/^-ms-/,yf=/-([\da-z])/gi,pf=function(n,t){return t.toUpperCase()},p,ur,fr,er,or,sr,h,at,a,g,br,pt,ei,it,bt,vu,yu,bu,rt,ku,du,dt,gu,li,of,ut,ki,gt,di,hf,cf;i.fn=i.prototype={jquery:nr,constructor:i,selector:"",length:0,toArray:function(){return v.call(this)},get:function(n){return n!=null?n<0?this[n+this.length]:this[n]:v.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(v.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ni,sort:y.sort,splice:y.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((e=arguments[u])!=null)for(f in e)(r=n[f],t=e[f],n!==t)&&(h&&t&&(i.isPlainObject(t)||(o=i.isArray(t)))?(o?(o=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):t!==undefined&&(n[f]=t));return n};i.extend({expando:"jQuery"+(nr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray,isWindow:function(n){return n!=null&&n===n.window},isNumeric:function(n){var t=n&&n.toString();return!i.isArray(n)&&t-parseFloat(t)+1>=0},isPlainObject:function(n){return i.type(n)!=="object"||n.nodeType||i.isWindow(n)?!1:n.constructor&&!ti.call(n.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?lt[lf.call(n)]||"object":typeof n},globalEval:function(n){var t,r=eval;n=i.trim(n);n&&(n.indexOf("use strict")===1?(t=u.createElement("script"),t.text=n,u.head.appendChild(t).parentNode.removeChild(t)):r(n))},camelCase:function(n){return n.replace(vf,"ms-").replace(yf,pf)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ii(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(af,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(ii(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ni.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:ct.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(ii(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return gi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return(typeof t=="string"&&(u=n[t],t=n,n=u),!i.isFunction(n))?undefined:(f=v.call(arguments,2),r=function(){return n.apply(t||this,f.concat(v.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:Date.now,support:f});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=y[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){lt["[object "+t+"]"]=t.toLowerCase()});p=function(n){function u(n,t,r,u){var l,w,a,s,nt,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(v!==11&&(d=sr.exec(n)))if(l=d[1]){if(v===9)if(a=t.getElementById(l)){if(a.id===l)return r.push(a),r}else return r;else if(p&&(a=p.getElementById(l))&&et(t,a)&&a.id===l)return r.push(a),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((l=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(l)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((s=t.getAttribute("id"))?s=s.replace(hr,"\\$&"):t.setAttribute("id",s=e),y=ft(n),w=y.length,nt=yi.test(s)?"#"+s:"[id='"+s+"']";w--;)y[w]=nt+" "+yt(y[w]);g=y.join(",");p=gt.test(n)&&ii(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(tt){}finally{s===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("div");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function bi(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&r==="parentNode",f=ki++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,o){var s,h,c,l=[v,f];if(o){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,o))return!0}else while(t=t[r])if(t.nodeType===1||u){if(c=t[e]||(t[e]={}),h=c[t.uniqueID]||(c[t.uniqueID]={}),(s=h[r])&&s[0]===v&&s[1]===f)return l[2]=s[2];if(h[r]=l,l[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,f){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,f)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||ar(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?pt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===o},c,!0),a=ri(function(n){return nt(o,n)>-1},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[ri(ui(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(f),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}f.push(u)}return ui(f)}function vr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=gi.call(l));w=pt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,f,t,st,oi,ft,wt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,ki=0,hi=ni(),ci=ni(),lt=ni(),bt=function(n,t){return n===t&&(ut=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",dt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",tr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ir=new RegExp("^"+r+"*,"+r+"*"),rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),ur=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),fr=new RegExp(dt),yi=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},pi=function(){b()};try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(yr){k={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i=t.getElementById(n);return i?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=f.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+kt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]")}),a(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");d.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!f.sortDetached&&t.compareDocumentPosition(n)===r)?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:r&4?-1:1}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(o&&s){if(o===s)return wi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(ur,"='$1']"),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(e){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&di.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):undefined;return u!==undefined?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(bt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&fr.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",f=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((f?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=wt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return yi.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=cr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=lr(rt);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=ir.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=rr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},wt=u.compile=function(n,t){var r,u=[],f=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[e]?u.push(i):f.push(i);i=lt(n,vr(f,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var s,e,o,a,v,l=typeof n=="function"&&n,c=!u&&ft(n=l.selector||n);if(r=r||[],c.length===1){if(e=c[0]=c[0].slice(0),e.length>2&&(o=e[0]).type==="ID"&&f.getById&&i.nodeType===9&&h&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],i)l&&(i=i.parentNode);else return r;n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(u=v(o.matches[0].replace(y,p),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=u.length&&yt(e),!n)return k.apply(r,u),r;break}}}return(l||wt(n,c))(u,i,!h,r,!i||gt.test(n)&&ii(i.parentNode)||i),r},f.sortStable=e.split("").sort(bt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("div"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ti("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=p;i.expr=p.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=p.uniqueSort;i.text=p.getText;i.isXMLDoc=p.isXML;i.contains=p.contains;var d=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},tr=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},ir=i.expr.match.needsContext,rr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,wf=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,u=this.length,r=[],f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(t=0;t<u;t++)i.find(n,f[t],r);return r=this.pushStack(u>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ri(this,n||[],!1))},not:function(n){return this.pushStack(ri(this,n||[],!0))},is:function(n){return!!ri(this,typeof n=="string"&&ir.test(n)?i(n):n||[],!1).length}});fr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;er=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||ur,typeof n=="string"){if(f=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:fr.exec(n),f&&(f[1]||!t)){if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),rr.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&e.parentNode&&(this.length=1,this[0]=e),this.context=u,this.selector=n,this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?r.ready!==undefined?r.ready(n):n(i):(n.selector!==undefined&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};er.prototype=i.fn;ur=i(u);or=/^(?:parents|prev(?:Until|All))/;sr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=ir.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?ct.call(i(n),this[0]):ct.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return d(n,"parentNode")},parentsUntil:function(n,t,i){return d(n,"parentNode",i)},next:function(n){return hr(n,"nextSibling")},prev:function(n){return hr(n,"previousSibling")},nextAll:function(n){return d(n,"nextSibling")},prevAll:function(n){return d(n,"previousSibling")},nextUntil:function(n,t,i){return d(n,"nextSibling",i)},prevUntil:function(n,t,i){return d(n,"previousSibling",i)},siblings:function(n){return tr((n.parentNode||{}).firstChild,n)},children:function(n){return tr(n.firstChild)},contents:function(n){return n.contentDocument||i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(sr[n]||i.uniqueSort(f),or.test(n)&&f.reverse()),this.pushStack(f)}});h=/\S+/g;i.Callbacks=function(n){n=typeof n=="string"?bf(n):i.extend({},n);var o,r,h,f,t=[],e=[],u=-1,c=function(){for(f=n.once,h=o=!0;e.length;u=-1)for(r=e.shift();++u<t.length;)t[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},s={add:function(){return t&&(r&&!o&&(u=t.length-1,e.push(r)),function f(r){i.each(r,function(r,u){i.isFunction(u)?n.unique&&s.has(u)||t.push(u):u&&u.length&&i.type(u)!=="string"&&f(u)})}(arguments),r&&!o&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var f;(f=i.inArray(r,t,f))>-1;)t.splice(f,1),f<=u&&u--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=e=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=e=[],r||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],e.push(t),o||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(f.notify).done(f.resolve).fail(f.reject):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=v.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?v.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().progress(h(t,c,o)).done(h(t,s,u)).fail(f.reject):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||(at.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready")))}});i.ready.promise=function(t){return at||(at=i.Deferred(),u.readyState!=="complete"&&(u.readyState==="loading"||u.documentElement.doScroll)?(u.addEventListener("DOMContentLoaded",vt),n.addEventListener("load",vt)):n.setTimeout(i.ready)),at.promise(t)};i.ready.promise();a=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)a(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};g=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};ft.uid=1;ft.prototype={register:function(n,t){var i=t||{};return n.nodeType?n[this.expando]=i:Object.defineProperty(n,this.expando,{value:i,writable:!0,configurable:!0}),n[this.expando]},cache:function(n){if(!g(n))return{};var t=n[this.expando];return t||(t={},g(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if(typeof t=="string")u[t]=i;else for(r in t)u[r]=t[r];return u},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][t]},access:function(n,t,r){var u;return t===undefined||t&&typeof t=="string"&&r===undefined?(u=this.get(n,t),u!==undefined?u:this.get(n,i.camelCase(t))):(this.set(n,t,r),r!==undefined?r:t)},remove:function(n,t){var f,r,e,u=n[this.expando];if(u!==undefined){if(t===undefined)this.register(n);else for(i.isArray(t)?r=t.concat(t.map(i.camelCase)):(e=i.camelCase(t),t in u?r=[t,e]:(r=e,r=r in u?[r]:r.match(h)||[])),f=r.length;f--;)delete u[r[f]];(t===undefined||i.isEmptyObject(u))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new ft,e=new ft,kf=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,cr=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(n===undefined){if(this.length&&(s=e.get(u),u.nodeType===1&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),lr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return typeof n=="object"?this.each(function(){e.set(this,n)}):a(this,function(t){var r,f;if(u&&t===undefined)return(r=e.get(u,n)||e.get(u,n.replace(cr,"-$&").toLowerCase()),r!==undefined)?r:(f=i.camelCase(n),r=e.get(u,f),r!==undefined)?r:(r=lr(u,f,undefined),r!==undefined)?r:void 0;f=i.camelCase(n);this.each(function(){var i=e.get(this,f);e.set(this,f,t);n.indexOf("-")>-1&&i!==undefined&&e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||i.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var ar=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+ar+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],ot=function(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)};var yr=/^(?:checkbox|radio)$/i,pr=/<([\w:-]+)/,wr=/^$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;br=/<|&#?\w+;/,function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var df=/^key/,gf=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dr=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(h)||[""],b=t.length;b--;)(w=dr.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(c=dr.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!c||c.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){n=i.event.fix(n);var o,s,e,u,t,h=[],c=v.call(arguments),l=(r.get(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,l),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(t=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.rnamespace||n.rnamespace.test(t.namespace))&&(n.handleObj=t,n.data=t.data,e=((i.event.special[t.origType]||{}).handle||t.handler).apply(u.elem,c),e!==undefined&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(n.type!=="click"||isNaN(n.button)||n.button<1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&(r.disabled!==!0||n.type!=="click")){for(u=[],e=0;e<s;e++)o=t[e],f=o.selector+" ",u[f]===undefined&&(u[f]=o.needsContext?i(f,this).index(r)>-1:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var e,i,r,f=t.button;return n.pageX==null&&t.clientX!=null&&(e=n.target.ownerDocument||u,i=e.documentElement,r=e.body,n.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),n.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),n.which||f===undefined||(n.which=f&1?1:f&2?3:f&4?2:0),n}},fix:function(n){if(n[i.expando])return n;var f,e,o,r=n.type,s=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=gf.test(r)?this.mouseHooks:df.test(r)?this.keyHooks:{}),o=t.props?this.props.concat(t.props):this.props,n=new i.Event(s),f=o.length;f--;)e=o[f],n[e]=s[e];return n.target||(n.target=u),n.target.nodeType===3&&(n.target=n.target.parentNode),t.filter?t.filter(n,s):n},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==gr()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===gr()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&i.nodeName(this,"input"))return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?yt:nt):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:nt,isPropagationStopped:nt,isImmediatePropagationStopped:nt,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=yt;n&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=yt;n&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=yt;n&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return fi(this,n,t,i,r)},one:function(n,t,i,r){return fi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=nt),this.each(function(){i.event.remove(this,n,r,t)})}});var ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,te=/<script|<style|<link/i,ie=/checked\s*(?:[^=]|=\s*.checked.)/i,re=/^true\/(.*)/,ue=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(ne,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!f.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)oe(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)tu(s[u],e[u]);else tu(n,h);return e=o(h,"script"),e.length>0&&ui(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;(t=n[o])!==undefined;o++)if(g(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[e.expando]&&(t[e.expando]=undefined)}}});i.fn.extend({domManip:b,detach:function(n){return iu(this,n,!0)},remove:function(n){return iu(this,n)},text:function(n){return a(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return b(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=nu(this,n);t.appendChild(n)}})},prepend:function(){return b(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=nu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return b(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return b(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return a(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!te.test(n)&&!c[(pr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return b(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ni.apply(f,u.get());return this.pushStack(f)}});ei={HTML:"block",BODY:"block"};var uu=/^margin/,si=new RegExp("^("+ar+")(?!px)[a-z%]+$","i"),wt=function(t){var i=t.ownerDocument.defaultView;return i.opener||(i=n),i.getComputedStyle(t)},hi=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f},st=u.documentElement;(function(){function o(){t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";st.appendChild(r);var i=n.getComputedStyle(t);s=i.top!=="1%";c=i.marginLeft==="2px";e=i.width==="4px";t.style.marginRight="50%";h=i.marginRight==="4px";st.removeChild(r)}var s,e,h,c,r=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle=t.style.backgroundClip==="content-box",r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(t),i.extend(f,{pixelPosition:function(){return o(),s},boxSizingReliable:function(){return e==null&&o(),e},pixelMarginRight:function(){return e==null&&o(),h},reliableMarginLeft:function(){return e==null&&o(),c},reliableMarginRight:function(){var f,i=t.appendChild(u.createElement("div"));return i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",st.appendChild(r),f=!parseFloat(n.getComputedStyle(i).marginRight),st.removeChild(r),t.removeChild(i),f}}))})();var se=/^(none|table(?!-c[ea]).+)/,he={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:"0",fontWeight:"400"},eu=["Webkit","O","Moz","ms"],ou=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=tt(n,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var e,h,o,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=su(s)||s),o=i.cssHooks[t]||i.cssHooks[s],r!==undefined){if(h=typeof r,h==="string"&&(e=et.exec(r))&&e[1]&&(r=vr(n,t,e),h="number"),r==null||r!==r)return;h==="number"&&(r+=e&&e[3]||(i.cssNumber[s]?"":"px"));f.clearCloneStyle||r!==""||t.indexOf("background")!==0||(c[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(c[t]=r)}else return o&&"get"in o&&(e=o.get(n,!1,u))!==undefined?e:c[t]}},css:function(n,t,r,u){var f,s,o,e=i.camelCase(t);return(t=i.cssProps[e]||(i.cssProps[e]=su(e)||e),o=i.cssHooks[t]||i.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),f===undefined&&(f=tt(n,t,u)),f==="normal"&&t in fu&&(f=fu[t]),r===""||r)?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return se.test(i.css(n,"display"))&&n.offsetWidth===0?hi(n,he,function(){return lu(n,t,u)}):lu(n,t,u)},set:function(n,r,u){var f,e=u&&wt(n),o=u&&cu(n,t,u,i.css(n,"boxSizing",!1,e)==="border-box",e);return o&&(f=et.exec(r))&&(f[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),hu(n,r,o)}}});i.cssHooks.marginLeft=ci(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(tt(n,"marginLeft"))||n.getBoundingClientRect().left-hi(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.cssHooks.marginRight=ci(f.reliableMarginRight,function(n,t){if(t)return hi(n,{display:"inline-block"},tt,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};uu.test(n)||(i.cssHooks[n+t].set=hu)});i.fn.extend({css:function(n,t){return a(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=wt(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return au(this,!0)},hide:function(){return au(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){ot(this)?i(this).show():i(this).hide()})}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};vu=/^(?:toggle|show|hide)$/;yu=/queueHooks$/;i.Animation=i.extend(l,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return vr(i.elem,n,et.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],l.tweeners[r]=l.tweeners[r]||[],l.tweeners[r].unshift(t)},prefilters:[ce],prefilter:function(n,t){t?l.prefilters.unshift(n):l.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ot).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=l(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&yu.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||o[t].queue===n)&&(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(kt(t,!0),n,i,u)}});i.each({slideDown:kt("show"),slideUp:kt("hide"),slideToggle:kt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(it=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();it=undefined};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){bt||(bt=n.setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){n.clearInterval(bt);bt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=n.value!=="";f.optSelected=i.selected;t.disabled=!0;f.optDisabled=!i.disabled;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue=n.value==="t"}();rt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return a(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(t=t.toLowerCase(),f=i.attrHooks[t]||(i.expr.match.bool.test(t)?bu:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)&&(n[u]=!1),n.removeAttribute(r)}});bu={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=rt[t]||i.find.attr;rt[t]=function(n,t,i){var u,f;return i||(f=rt[t],rt[t]=u,u=r(n,t,i)!=null?t.toLowerCase():null,rt[t]=f),u}});ku=/^(?:input|select|textarea|button)$/i;du=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return a(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):ku.test(n.nodeName)||du.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});dt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,k(this)))});if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=k(r),t=r.nodeType===1&&(" "+u+" ").replace(dt," "),t){for(s=0;f=o[s++];)t.indexOf(" "+f+" ")<0&&(t+=f+" ");e=i.trim(t);u!==e&&r.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,k(this)))});if(!arguments.length)return this.attr("class","");if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=k(r),t=r.nodeType===1&&(" "+u+" ").replace(dt," "),t){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=i.trim(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return typeof t=="boolean"&&u==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,k(this),t),t)}):this.each(function(){var t,e,f,o;if(u==="string")for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(n===undefined||u==="boolean")&&(t=k(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+k(t)+" ").replace(dt," ").indexOf(i)>-1)return!0;return!1}});gu=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":i.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string"?r.replace(gu,""):r==null?"":r):void 0}});i.extend({valHooks:{option:{get:function(n){return i.trim(n.value)}},select:{get:function(n){for(var o,t,s=n.options,r=n.selectedIndex,u=n.type==="select-one"||r<0,h=u?null:[],c=u?r+1:s.length,e=r<0?c:u?r:0;e<c;e++)if(t=s[e],(t.selected||e===r)&&(f.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),u)return o;h.push(o)}return h},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});li=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=ti.call(t,"type")?t.type:t,y=ti.call(t,"namespace")?t.namespace.split("."):[];if((s=c=e=e||u,e.nodeType!==3&&e.nodeType!==8)&&!li.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=e),f=f==null?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,li.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&g(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||(!l._default||l._default.apply(p.pop(),f)===!1)&&g(e)&&a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=undefined,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t);u.isDefaultPrevented()&&r.preventDefault()}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ht=n.location,ai=i.now(),vi=/\?/;i.parseJSON=function(n){return JSON.parse(n+"")};i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var ae=/#.*$/,nf=/([?&])_=[^&]*/,ve=/^(.*?):[ \t]*([^\r\n]*)$/mg,ye=/^(?:GET|HEAD)$/,pe=/^\/\//,tf={},yi={},rf="*/".concat("*"),pi=u.createElement("a");pi.href=ht.href;i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ht.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ht.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":rf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?wi(wi(n,i.ajaxSettings),t):wi(i.ajaxSettings,n)},ajaxPrefilter:uf(tf),ajaxTransport:uf(yi),ajax:function(t,r){function b(t,r,u,h){var v,rt,it,p,b,a=r;s!==2&&(s=2,d&&n.clearTimeout(d),l=undefined,k=h||"",e.readyState=t>0?4:0,v=t>=200&&t<300||t===304,u&&(p=we(f,e,u)),p=be(f,p,e,v),v?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||f.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,it=p.error,v=!it)):(it=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",v?nt.resolveWith(c,[rt,a,e]):nt.rejectWith(c,[e,a,it]),e.statusCode(w),w=undefined,y&&g.trigger(v?"ajaxSuccess":"ajaxError",[e,f,v?rt:it]),tt.fireWith(c,[e,a]),y&&(g.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var l,o,k,p,d,a,y,v,f=i.ajaxSetup({},r),c=f.context||f,g=f.context&&(c.nodeType||c.jquery)?i(c):i.event,nt=i.Deferred(),tt=i.Callbacks("once memory"),w=f.statusCode||{},it={},rt={},s=0,ut="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s===2){if(!p)for(p={};t=ve.exec(k);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s===2?k:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return s||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return s||(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s<2)for(t in n)w[t]=[w[t],n[t]];else e.always(n[e.status]);return this},abort:function(n){var t=n||ut;return l&&l.abort(t),b(0,t),this}};if(nt.promise(e).complete=tt.add,e.success=e.done,e.error=e.fail,f.url=((t||f.url||ht.href)+"").replace(ae,"").replace(pe,ht.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=i.trim(f.dataType||"*").toLowerCase().match(h)||[""],f.crossDomain==null){a=u.createElement("a");try{a.href=f.url;a.href=a.href;f.crossDomain=pi.protocol+"//"+pi.host!=a.protocol+"//"+a.host}catch(ft){f.crossDomain=!0}}if(f.data&&f.processData&&typeof f.data!="string"&&(f.data=i.param(f.data,f.traditional)),ff(tf,f,r,e),s===2)return e;y=i.event&&f.global;y&&i.active++==0&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!ye.test(f.type);o=f.url;f.hasContent||(f.data&&(o=f.url+=(vi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=nf.test(o)?o.replace(nf,"$1_="+ai++):o+(vi.test(o)?"&":"?")+"_="+ai++));f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+rf+"; q=0.01":""):f.accepts["*"]);for(v in f.headers)e.setRequestHeader(v,f.headers[v]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s===2))return e.abort();ut="abort";for(v in{success:1,error:1,complete:1})e[v](f[v]);if(l=ff(yi,f,r,e),l){if(e.readyState=1,y&&g.trigger("ajaxSend",[e,f]),s===2)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=1;l.send(it,b)}catch(ft){if(s<2)b(-1,ft);else throw ft;}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){var t;return i.isFunction(n)?this.each(function(t){i(this).wrapAll(n.call(this,t))}):(this[0]&&(t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this)},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return!i.expr.filters.visible(n)};i.expr.filters.visible=function(n){return n.offsetWidth>0||n.offsetHeight>0||n.getClientRects().length>0};var ke=/%20/g,de=/\[\]$/,ef=/\r?\n/g,ge=/^(?:submit|button|image|reset|file)$/i,no=/^(?:input|select|textarea|keygen)/i;return i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():t==null?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(t===undefined&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)bi(r,n[r],t,f);return u.join("&").replace(ke,"+")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&no.test(this.nodeName)&&!ge.test(n)&&(this.checked||!yr.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(ef,"\r\n")}}):{name:t.name,value:r.replace(ef,"\r\n")}}).get()}}),i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},of={0:200,1223:204},ut=i.ajaxSettings.xhr(),f.cors=!!ut&&"withCredentials"in ut,f.ajax=ut=!!ut,i.ajaxTransport(function(t){var i,r;if(f.cors||ut&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(of[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),ki=[],gt=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=ki.pop()||i.expando+"_"+ai++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(gt.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&gt.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(gt,"$1"+f):t.jsonp!==!1&&(t.url+=(vi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){e===undefined?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,ki.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=undefined}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(r=t,t=!1);t=t||(f.createHTMLDocument?u.implementation.createHTMLDocument(""):u);var e=rr.exec(n),o=!r&&[];return e?[t.createElement(e[1])]:(e=kr([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},di=i.fn.load,i.fn.load=function(n,t,r){if(typeof n!="string"&&di)return di.apply(this,arguments);var f,o,s,u=this,e=n.indexOf(" ");return e>-1&&(f=i.trim(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=undefined):t&&typeof t=="object"&&(o="POST"),u.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;u.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){u.each(function(){r.apply(u,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};l==="static"&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=(l==="absolute"||l==="fixed")&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));t.top!=null&&(f.top=t.top-u.top+h);t.left!=null&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,r=this[0],u={top:0,left:0},e=r&&r.ownerDocument;if(e)return(t=e.documentElement,!i.contains(t,r))?u:(u=r.getBoundingClientRect(),f=sf(e),{top:u.top+f.pageYOffset-t.clientTop,left:u.left+f.pageXOffset-t.clientLeft})},position:function(){if(this[0]){var n,r,u=this[0],t={top:0,left:0};return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0)-n.scrollTop(),t.left+=i.css(n[0],"borderLeftWidth",!0)-n.scrollLeft()),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||st})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return a(this,function(n,i,u){var f=sf(n);if(u===undefined)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=ci(f.pixelPosition,function(n,r){if(r)return r=tt(n,t),si.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||typeof u!="boolean"),o=r||(u===!0||f===!0?"margin":"border");return a(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:t.nodeType===9?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):u===undefined?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:undefined,e,null)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)},size:function(){return this.length}}),i.fn.andSelf=i.fn.addBack,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),hf=n.jQuery,cf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=cf),t&&n.jQuery===i&&(n.jQuery=hf),i},t||(n.jQuery=n.$=i),i}),function(n){"use strict";function bv(n){if(o(n))r(n.objectMaxDepth)&&(er.objectMaxDepth=wf(n.objectMaxDepth)?n.objectMaxDepth:NaN),r(n.urlErrorParamsEnabled)&&kt(n.urlErrorParamsEnabled)&&(er.urlErrorParamsEnabled=n.urlErrorParamsEnabled);else return er}function wf(n){return d(n)&&n>0}function l(n,t){t=t||Error;var i="https://errors.angularjs.org/1.7.2/",r=i.replace(".","\\.")+"[\\s\\S]*",u=new RegExp(r,"g");return function(){var s=arguments[0],h=arguments[1],f="["+(n?n+":":"")+s+"] ",e=ki(arguments,2).map(function(n){return oh(n,er.objectMaxDepth)}),o,r;if(f+=h.replace(/\{\d+\}/g,function(n){var t=+n.slice(1,-1);return t<e.length?e[t].replace(u,""):n}),f+="\n"+i+(n?n+"/":"")+s,er.urlErrorParamsEnabled)for(r=0,o="?";r<e.length;r++,o="&")f+=o+"p"+r+"="+encodeURIComponent(e[r]);return new t(f)}}function ni(n){if(n==null||hr(n))return!1;if(c(n)||h(n)||f&&n instanceof f)return!0;var t="length"in Object(n)&&n.length;return d(t)&&(t>=0&&t-1 in n||typeof n.item=="function")}function t(n,i,r){var u,f,o;if(n)if(e(n))for(u in n)u!=="prototype"&&u!=="length"&&u!=="name"&&n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else if(c(n)||ni(n))for(o=typeof n!="object",u=0,f=n.length;u<f;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(ws(n))for(u in n)i.call(r,n[u],u,n);else if(typeof n.hasOwnProperty=="function")for(u in n)n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else for(u in n)st.call(n,u)&&i.call(r,n[u],u,n);return n}function ys(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 kf(n){return function(t,i){n(i,t)}}function lu(){return++ny}function ps(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function df(n,t,i){for(var f,l,s,a,u,r,v=n.$$hashKey,h=0,y=t.length;h<y;++h)if(f=t[h],o(f)||e(f))for(l=Object.keys(f),s=0,a=l.length;s<a;s++)u=l[s],r=f[u],i&&o(r)?et(r)?n[u]=new Date(r.valueOf()):sr(r)?n[u]=new RegExp(r):r.nodeName?n[u]=r.cloneNode(!0):re(r)?n[u]=r.clone():(o(n[u])||(n[u]=c(r)?[]:{}),df(n[u],[r],!0)):n[u]=r;return ps(n,v),n}function v(n){return df(n,wi.call(arguments,1),!1)}function ty(n){return df(n,wi.call(arguments,1),!0)}function it(n){return parseInt(n,10)}function gf(n,t){return v(Object.create(n),t)}function s(){}function bi(n){return n}function ht(n){return function(){return n}}function ne(n){return e(n.toString)&&n.toString!==ut}function u(n){return typeof n=="undefined"}function r(n){return typeof n!="undefined"}function o(n){return n!==null&&typeof n=="object"}function ws(n){return n!==null&&typeof n=="object"&&!vs(n)}function h(n){return typeof n=="string"}function d(n){return typeof n=="number"}function et(n){return ut.call(n)==="[object Date]"}function c(n){return Array.isArray(n)||n instanceof Array}function te(n){var t=ut.call(n);switch(t){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return n instanceof Error}}function e(n){return typeof n=="function"}function sr(n){return ut.call(n)==="[object RegExp]"}function hr(n){return n&&n.window===n}function cr(n){return n&&n.$evalAsync&&n.$watch}function iy(n){return ut.call(n)==="[object File]"}function ry(n){return ut.call(n)==="[object FormData]"}function uy(n){return ut.call(n)==="[object Blob]"}function kt(n){return typeof n=="boolean"}function au(n){return n&&e(n.then)}function fy(n){return n&&d(n.length)&&bs.test(ut.call(n))}function ey(n){return ut.call(n)==="[object ArrayBuffer]"}function re(n){return!!(n&&(n.nodeName||n.prop&&n.attr&&n.find))}function oy(n){for(var i={},r=n.split(","),t=0;t<r.length;t++)i[r[t]]=!0;return i}function ct(n){return a(n.nodeName||n[0]&&n[0].nodeName)}function ue(n,t){return Array.prototype.indexOf.call(n,t)!==-1}function lr(n,t){var i=n.indexOf(t);return i>=0&&n.splice(i,1),i}function ei(n,i,r){function h(n,t,i){var e,r,f,o;if(i--,i<0)return"...";if(e=t.$$hashKey,c(n))for(f=0,o=n.length;f<o;f++)t.push(u(n[f],i));else if(ws(n))for(r in n)t[r]=u(n[r],i);else if(n&&typeof n.hasOwnProperty=="function")for(r in n)n.hasOwnProperty(r)&&(t[r]=u(n[r],i));else for(r in n)st.call(n,r)&&(t[r]=u(n[r],i));return ps(t,e),t}function u(n,t){var r,u,i;if(!o(n))return n;if(r=f.indexOf(n),r!==-1)return s[r];if(hr(n)||cr(n))throw fi("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");return u=!1,i=l(n),i===undefined&&(i=c(n)?[]:Object.create(vs(n)),u=!0),f.push(n),s.push(i),u?h(n,i,t):i}function l(n){var t,i;switch(ut.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(u(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(e(n.cloneNode))return n.cloneNode(!0)}var f=[],s=[];if(r=wf(r)?r:NaN,i){if(fy(i)||ey(i))throw fi("cpta","Can't copy! TypedArray destination cannot be mutated.");if(n===i)throw fi("cpi","Can't copy! Source and destination are identical.");return c(i)?i.length=0:t(i,function(n,t){t!=="$$hashKey"&&delete i[t]}),f.push(n),s.push(i),h(n,i,r)}return u(n,r)}function fe(n,t){return n===t||n!==n&&t!==t}function lt(n,t){if(n===t)return!0;if(n===null||t===null)return!1;if(n!==n&&t!==t)return!0;var f=typeof n,s=typeof t,o,i,u;if(f===s&&f==="object")if(c(n)){if(!c(t))return!1;if((o=n.length)===t.length){for(i=0;i<o;i++)if(!lt(n[i],t[i]))return!1;return!0}}else{if(et(n))return et(t)?fe(n.getTime(),t.getTime()):!1;if(sr(n))return sr(t)?n.toString()===t.toString():!1;if(cr(n)||cr(t)||hr(n)||hr(t)||c(t)||et(t)||sr(t))return!1;u=p();for(i in n)if(i.charAt(0)!=="$"&&!e(n[i])){if(!lt(n[i],t[i]))return!1;u[i]=!0}for(i in t)if(!(i in u)&&i.charAt(0)!=="$"&&r(t[i])&&!e(t[i]))return!1;return!0}return!1}function vr(n,t,i){return n.concat(wi.call(t,i))}function ki(n,t){return wi.call(n,t||0)}function di(n,t){var i=arguments.length>2?ki(arguments,2):[];return!e(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,vr(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function ks(t,i){var r=i;return typeof t=="string"&&t.charAt(0)==="$"&&t.charAt(1)==="$"?r=undefined:hr(i)?r="$WINDOW":i&&n.document===i?r="$DOCUMENT":cr(i)&&(r="$SCOPE"),r}function yr(n,t){return u(n)?undefined:(d(t)||(t=t?2:null),JSON.stringify(n,ks,t))}function ds(n){return h(n)?JSON.parse(n):n}function ee(n,t){n=n.replace(gs,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return rt(i)?t:i}function nh(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function oe(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=ee(t,r);return nh(n,i*(u-r))}function wt(n){n=f(n).clone().empty();var t=f("<div><\/div>").append(n).html();try{return n[0].nodeType===ii?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(n,t){return"<"+a(t)})}catch(i){return a(t)}}function th(n){try{return decodeURIComponent(n)}catch(t){}}function se(n){var i={};return t((n||"").split("&"),function(n){var f,t,u;n&&(t=n=n.replace(/\+/g,"%20"),f=n.indexOf("="),f!==-1&&(t=n.substring(0,f),u=n.substring(f+1)),t=th(t),r(t)&&(u=r(u)?th(u):!0,st.call(i,t)?c(i[t])?i[t].push(u):i[t]=[i[t],u]:i[t]=u))}),i}function he(n){var i=[];return t(n,function(n,r){c(n)?t(n,function(n){i.push(ot(r,!0)+(n===!0?"":"="+ot(n,!0)))}):i.push(ot(r,!0)+(n===!0?"":"="+ot(n,!0)))}),i.length?i.join("&"):""}function pr(n){return ot(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ot(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 sy(n,t){for(var i,u=oi.length,r=0;r<u;++r)if(i=oi[r]+t,h(i=n.getAttribute(i)))return i;return null}function hy(t){var i=t.currentScript,r,u;return i?(i instanceof n.HTMLScriptElement||i instanceof n.SVGScriptElement)?(r=i.attributes,u=[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")],u.every(function(n){if(!n)return!0;if(!n.value)return!1;var i=t.createElement("a");if(i.href=n.value,t.location.origin===i.origin)return!0;switch(i.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})):!1:!0}function cy(i,r){var u,f,e={};if(t(oi,function(n){var t=n+"app";!u&&i.hasAttribute&&i.hasAttribute(t)&&(u=i,f=i.getAttribute(t))}),t(oi,function(n){var r=n+"app",t;!u&&(t=i.querySelector("["+r.replace(":","\\:")+"]"))&&(u=t,f=t.getAttribute(r))}),u){if(!ih){n.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");return}e.strictDi=sy(u,"strict-di")!==null;r(u,f?[f]:[],e)}}function rh(i,r,u){var s;o(u)||(u={});s={strictDi:!1};u=v(s,u);var h=function(){var e,t;if(i=f(i),i.injector()){e=i[0]===n.document?"document":wt(i);throw fi("btstrpd","App already bootstrapped with this element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"));}return r=r||[],r.unshift(["$provide",function(n){n.value("$rootElement",i)}]),u.debugInfoEnabled&&r.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),r.unshift("ng"),t=dr(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},c=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;if(n&&c.test(n.name)&&(u.debugInfoEnabled=!0,n.name=n.name.replace(c,"")),n&&!l.test(n.name))return h();n.name=n.name.replace(l,"");ft.resumeBootstrap=function(n){return t(n,function(n){r.push(n)}),h()};e(ft.resumeDeferredBootstrap)&&ft.resumeDeferredBootstrap()}function ly(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function ay(n){var t=ft.element(n).injector();if(!t)throw fi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function fh(n,t){return t=t||"_",n.replace(uh,function(n,i){return(i?t:"")+n.toLowerCase()})}function vy(){var i,t;ce||(t=ar(),or=u(t)?n.jQuery:t?n[t]:undefined,or&&or.fn.on?(f=or,v(or.fn,{scope:hi.scope,isolateScope:hi.isolateScope,controller:hi.controller,injector:hi.injector,inheritedData:hi.inheritedData})):f=w,i=f.cleanData,f.cleanData=function(n){for(var t,u=0,r;(r=n[u])!=null;u++)t=f._data(r).events,t&&t.$destroy&&f(r).triggerHandler("$destroy");i(n)},ft.element=f,ce=!0)}function wr(n,t,i){if(!n)throw fi("areq","Argument '{0}' is {1}",t||"?",i||"required");return n}function vu(n,t,i){return i&&c(n)&&(n=n[n.length-1]),wr(e(n),t,"not a function, got "+(n&&typeof n=="object"?n.constructor.name||"Object":typeof n)),n}function gi(n,t){if(n==="hasOwnProperty")throw fi("badname","hasOwnProperty is not a valid {0} name",t);}function yy(n,t,i){var r;if(!t)return n;var u=t.split("."),f,o=n,s=u.length;for(r=0;r<s;r++)f=u[r],n&&(n=(o=n)[f]);return!i&&e(n)?di(o,n):n}function yu(n){for(var t=n[0],u=n[n.length-1],i,r=1;t!==u&&(t=t.nextSibling);r++)(i||n[r]!==t)&&(i||(i=f(wi.call(n,0,r))),i.push(t));return i||n}function p(){return Object.create(null)}function le(n){if(n==null)return"";switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=!ne(n)||c(n)||et(n)?yr(n):n.toString()}return n}function wy(n){function t(n,t,i){return n[t]||(n[t]=i())}var f=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,s,h){var c={},l=function(n,t){if(n==="hasOwnProperty")throw u("badname","hasOwnProperty is not a valid {0} name",t);};return l(i,"module"),s&&n.hasOwnProperty(i)&&(n[i]=null),t(n,i,function(){function v(n,i,r,u){return u||(u=t),function(){return u[r||"push"]([n,i,arguments]),a}}function n(n,r,u){return u||(u=t),function(t,f){return f&&e(f)&&(f.$$moduleName=i),u.push([n,r,arguments]),a}}if(!s)throw f("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=[],l=[],y=[],p=v("$injector","invoke","push",l),a={_invokeQueue:t,_configBlocks:l,_runBlocks:y,info:function(n){if(r(n)){if(!o(n))throw u("aobj","Argument '{0}' must be an object","value");return c=n,this}return c},requires:s,name:i,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:v("$provide","value"),constant:v("$provide","constant","unshift"),decorator:n("$provide","decorator",l),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:p,run:function(n){return y.push(n),this}};return h&&p(h),a})}})}function bt(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)){t=t||{};for(r in n)r.charAt(0)==="$"&&r.charAt(1)==="$"||(t[r]=n[r])}return t||n}function by(n,t){var i=[];return wf(t)&&(n=ft.copy(n,null,t)),JSON.stringify(n,function(n,t){if(t=ks(n,t),o(t)){if(i.indexOf(t)>=0)return"...";i.push(t)}return t})}function oh(n,t){return typeof n=="function"?n.toString().replace(/ \{[\s\S]*$/,""):u(n)?"undefined":typeof n!="string"?by(n,t):n}function ky(i){v(i,{errorHandlingConfig:bv,bootstrap:rh,copy:ei,extend:v,merge:ty,equals:lt,element:f,forEach:t,injector:dr,noop:s,bind:di,toJson:yr,fromJson:ds,identity:bi,isUndefined:u,isDefined:r,isString:h,isFunction:e,isObject:o,isNumber:d,isElement:re,isArray:c,version:sh,isDate:et,callbacks:{$$counter:0},getTestability:ay,reloadWithDebugInfo:ly,$$minErr:l,$$csp:ti,$$encodeUriSegment:pr,$$encodeUriQuery:ot,$$lowercase:a,$$stringify:le,$$uppercase:cu});bf=wy(n);bf("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:lk});n.provider("$compile",fc).directive({a:ea,input:nv,textarea:nv,form:dd,script:ftt,select:stt,option:htt,ngBind:pg,ngBindHtml:bg,ngBindTemplate:wg,ngClass:dg,ngClassEven:nn,ngClassOdd:gg,ngCloak:tn,ngController:rn,ngForm:gd,ngHide:dn,ngIf:fn,ngInclude:en,ngInit:sn,ngNonBindable:ln,ngPluralize:pn,ngRef:wn,ngRepeat:bn,ngShow:kn,ngStyle:gn,ngSwitch:ntt,ngSwitchWhen:ttt,ngSwitchDefault:itt,ngOptions:yn,ngTransclude:utt,ngModel:ev,ngList:hn,ngChange:kg,pattern:yv,ngPattern:yv,required:vv,ngRequired:vv,minlength:wv,ngMinlength:wv,maxlength:pv,ngMaxlength:pv,ngValue:yg,ngModelOptions:sv}).directive({ngInclude:on}).directive(fu).directive(tv);n.provider({$anchorScroll:iw,$animate:sw,$animateCss:lw,$$animateJs:ew,$$animateQueue:ow,$$AnimateRunner:cw,$$animateAsyncRun:hw,$browser:vw,$cacheFactory:yw,$controller:kw,$document:dw,$$isDocumentHidden:gw,$exceptionHandler:nb,$filter:pl,$$forceReflow:tb,$interpolate:ab,$interval:vb,$http:sb,$httpParamSerializer:fb,$httpParamSerializerJQLike:eb,$httpBackend:cb,$xhrFactory:hb,$jsonpCallbacks:yb,$location:gb,$log:nk,$parse:ek,$rootScope:ck,$q:ok,$$q:sk,$sce:pk,$sceDelegate:yk,$sniffer:wk,$templateCache:pw,$templateRequest:bk,$$testability:kk,$timeout:dk,$window:rd,$$rAF:hk,$$jqLite:yp,$$Map:pp,$$cookieReader:ud})}]).info({angularVersion:"1.7.2"})}function dy(){return++hh}function tp(n){return wu(n.replace(np,"ms-"))}function ch(n,t){return t.toUpperCase()}function wu(n){return n.replace(gy,ch)}function ye(n){return!rp.test(n)}function pe(n){var t=n.nodeType;return t===dt||!t||t===eh}function ep(n){for(var t in si[n.ng339])return!0;return!1}function lh(n,i){var r,o,f,u=i.createDocumentFragment(),e=[],s;if(ye(n))e.push(i.createTextNode(n));else{for(r=u.appendChild(i.createElement("div")),o=(up.exec(n)||["",""])[1].toLowerCase(),f=at[o]||at._default,r.innerHTML=f[1]+n.replace(fp,"<$1><\/$2>")+f[2],s=f[0];s--;)r=r.lastChild;e=vr(e,r.childNodes);r=u.firstChild;r.textContent=""}return u.textContent="",u.innerHTML="",t(e,function(n){u.appendChild(n)}),u}function op(t,i){i=i||n.document;var r;return(r=ip.exec(t))?[i.createElement(r[1])]:(r=lh(t,i))?r.childNodes:[]}function sp(n,t){var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)}function w(n){if(n instanceof w)return n;var t;if(h(n)&&(n=y(n),t=!0),!(this instanceof w)){if(t&&n.charAt(0)!=="<")throw ve("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new w(n)}t?de(this,op(n)):e(n)?kh(n):de(this,n)}function we(n){return n.cloneNode(!0)}function bu(n,t){!t&&pe(n)&&f.cleanData([n]);n.querySelectorAll&&f.cleanData(n.querySelectorAll("*"))}function vh(n){for(var t in n)return!1;return!0}function yh(n){var i=n.ng339,t=i&&si[i],r=t&&t.events,u=t&&t.data;(!u||vh(u))&&(!r||vh(r))&&(delete si[i],n.ng339=undefined)}function ph(n,i,u,f){var h;if(r(f))throw ve("offargs","jqLite#off() does not support the `selector` argument");var e=ku(n),o=e&&e.events,s=e&&e.handle;if(s){if(i)h=function(t){var i=o[t];r(u)&&lr(i||[],u);r(u)&&i&&i.length>0||(n.removeEventListener(t,s),delete o[t])},t(i.split(" "),function(n){h(n);pu[n]&&h(pu[n])});else for(i in o)i!=="$destroy"&&n.removeEventListener(i,s),delete o[i];yh(n)}}function be(n,t){var r=n.ng339,i=r&&si[r];i&&(t?delete i.data[t]:i.data={},yh(n))}function ku(n,t){var i=n.ng339,r=i&&si[i];return t&&!r&&(n.ng339=i=dy(),r=si[i]={events:{},data:{},handle:undefined}),r}function ke(n,t,i){if(pe(n)){var f,e=r(i),s=!e&&t&&!o(t),c=!t,h=ku(n,!s),u=h&&h.data;if(e)u[wu(t)]=i;else{if(c)return u;if(s)return u&&u[wu(t)];for(f in t)u[wu(f)]=t[f]}}}function du(n,t){return n.getAttribute?(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function gu(n,i){if(i&&n.setAttribute){var u=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=u;t(i.split(" "),function(n){n=y(n);r=r.replace(" "+n+" "," ")});r!==u&&n.setAttribute("class",y(r))}}function nf(n,i){if(i&&n.setAttribute){var u=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=u;t(i.split(" "),function(n){n=y(n);r.indexOf(" "+n+" ")===-1&&(r+=n+" ")});r!==u&&n.setAttribute("class",y(r))}}function de(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,typeof i=="number"&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function wh(n,t){return tf(n,"$"+(t||"ngController")+"Controller")}function tf(n,t,i){var e,u,o;for(n.nodeType===eh&&(n=n.documentElement),e=c(t)?t:[t];n;){for(u=0,o=e.length;u<o;u++)if(r(i=f.data(n,e[u])))return i;n=n.parentNode||n.nodeType===ae&&n.host}}function bh(n){for(bu(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function rf(n,t){t||bu(n);var i=n.parentNode;i&&i.removeChild(n)}function hp(t,i){if(i=i||n,i.document.readyState==="complete")i.setTimeout(t);else f(i).on("load",t)}function kh(t){function i(){n.document.removeEventListener("DOMContentLoaded",i);n.removeEventListener("load",i);t()}n.document.readyState==="complete"?n.setTimeout(t):(n.document.addEventListener("DOMContentLoaded",i),n.addEventListener("load",i))}function dh(n,t){var i=kr[t.toLowerCase()];return i&&ge[ct(n)]&&i}function cp(n){return no[n]}function lp(n,t){var i=function(i,r){var f,e,s,h,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},f=t[r||i.type],e=f?f.length:0,e)for(u(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return i.immediatePropagationStopped===!0},h=f.specialHandlerWrapper||ap,e>1&&(f=bt(f)),o=0;o<e;o++)i.isImmediatePropagationStopped()||h(n,i,f[o])};return i.elem=n,i}function ap(n,t,i){i.call(n,t)}function vp(n,t,i){var r=t.relatedTarget;r&&(r===n||ah.call(n,r))||i.call(n,t)}function yp(){this.$get=function(){return v(w,{hasClass:function(n,t){return n.attr&&(n=n[0]),du(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),nf(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),gu(n,t)}})}}function nr(n,t){var r=n&&n.$$hashKey,i;return r?(typeof r=="function"&&(r=n.$$hashKey()),r):(i=typeof n,i==="function"||i==="object"&&n!==null?n.$$hashKey=i+":"+(t||lu)():i+":"+n)}function nc(){this._keys=[];this._values=[];this._lastKey=NaN;this._lastIndex=-1}function tc(n){return Function.prototype.toString.call(n)}function ic(n){var t=tc(n).replace(gp,"");return t.match(wp)||t.match(bp)}function nw(n){var t=ic(n);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function tw(n,i,r){var u,e,f;if(typeof n=="function"){if(!(u=n.$inject)){if(u=[],n.length){if(i){h(r)&&r||(r=n.name||nw(n));throw ci("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",r);}e=ic(n);t(e[1].split(kp),function(n){n.replace(dp,function(n,t,i){u.push(i)})})}n.$inject=u}}else c(n)?(f=n.length-1,vu(n[f],"fn"),u=n.slice(0,f)):vu(n,"fn",!0);return u}function dr(n,i){function v(n){return function(i,r){if(o(i))t(i,kf(n));else return n(i,r)}}function tt(n,t){if(gi(n,"service"),(e(t)||c(t))&&(t=f.instantiate(t)),!t.$get)throw ci("pget","Provider '{0}' must define $get factory method.",n);return s[n+l]=t}function rt(n,t){return function(){var i=r.invoke(t,this);if(u(i))throw ci("undef","Provider '{0}' must return a value from $get factory method.",n);return i}}function b(n,t,i){return tt(n,{$get:i!==!1?rt(n,t):t})}function ut(n,t){return b(n,["$injector",function(n){return n.instantiate(t)}])}function et(n,t){return b(n,ht(t),!1)}function ot(n,t){gi(n,"constant");s[n]=t;g[n]=t}function st(n,t){var i=f.get(n+l),u=i.$get;i.$get=function(){var n=r.invoke(u,i);return r.invoke(t,null,{$delegate:n})}}function k(n){wr(u(n)||c(n),"modulesToLoad","not an array");var o=[],i;return t(n,function(n){function u(n){for(var i,r,t=0,u=n.length;t<u;t++)i=n[t],r=f.get(i[0]),r[i[1]].apply(r,i[2])}if(!d.get(n)){d.set(n,!0);try{h(n)?(i=bf(n),r.modules[n]=i,o=o.concat(k(i.requires)).concat(i._runBlocks),u(i._invokeQueue),u(i._configBlocks)):e(n)?o.push(f.invoke(n)):c(n)?o.push(f.invoke(n)):vu(n,"module")}catch(t){c(n)&&(n=n[n.length-1]);t.message&&t.stack&&t.stack.indexOf(t.message)===-1&&(t=t.message+"\n"+t.stack);throw ci("modulerr","Failed to instantiate module {0} due to:\n{1}",n,t.stack||t.message||t);}}}),o}function it(n,t){function r(i,r){if(n.hasOwnProperty(i)){if(n[i]===y)throw ci("cdep","Circular dependency found: {0}",i+" <- "+a.join(" <- "));return n[i]}try{return a.unshift(i),n[i]=y,n[i]=t(i,r),n[i]}catch(u){n[i]===y&&delete n[i];throw u;}finally{a.shift()}}function u(n,t,u){for(var f,o=[],s=dr.$$annotate(n,i,u),e=0,h=s.length;e<h;e++){if(f=s[e],typeof f!="string")throw ci("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}function f(n){if(pt||typeof n!="function")return!1;var t=n.$$ngIsClass;return kt(t)||(t=n.$$ngIsClass=/^class\b/.test(tc(n))),t}function e(n,t,i,r){typeof i=="string"&&(r=i,i=null);var e=u(n,i,r);return c(n)&&(n=n[n.length-1]),f(n)?(e.unshift(null),new(Function.prototype.bind.apply(n,e))):n.apply(t,e)}function o(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))}return{invoke:e,instantiate:o,get:r,annotate:dr.$$annotate,has:function(t){return s.hasOwnProperty(t+l)||n.hasOwnProperty(t)}}}var nt;i=i===!0;var y={},l="Provider",a=[],d=new uf,s={$provide:{provider:v(tt),factory:v(b),service:v(ut),value:v(et),constant:v(ot),decorator:st}},f=s.$injector=it(s,function(n,t){ft.isString(t)&&a.push(t);throw ci("unpr","Unknown provider: {0}",a.join(" <- "));}),g={},w=it(g,function(n,t){var i=f.get(n+l,t);return r.invoke(i.$get,i,undefined,n)}),r=w;return s["$injector"+l]={$get:ht(w)},r.modules=f.modules=p(),nt=k(n),r=w.get("$injector"),r.strictDi=i,t(nt,function(n){n&&r.invoke(n)}),r.loadNewModules=function(n){t(k(n),function(n){n&&r.invoke(n)})},r}function iw(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function s(n){var t=null;return Array.prototype.some.call(n,function(n){if(ct(n)==="a")return t=n,!0}),t}function c(){var n=f.yOffset,i,r;return e(n)?n=n():re(n)?(i=n[0],r=t.getComputedStyle(i),n=r.position!=="fixed"?0:i.getBoundingClientRect().bottom):d(n)||(n=0),n}function u(n){var i,r;n?(n.scrollIntoView(),i=c(),i&&(r=n.getBoundingClientRect().top,t.scrollBy(0,r-i))):t.scrollTo(0,0)}function f(n){n=h(n)?n:d(n)?n.toString():i.hash();var t;n?(t=o.getElementById(n))?u(t):(t=s(o.getElementsByName(n)))?u(t):n==="top"&&u(null):u(null)}var o=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){(n!==t||n!=="")&&hp(function(){r.$evalAsync(f)})}),f}]}function gr(n,t){return!n&&!t?"":n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t}function uw(n){for(var i,t=0;t<n.length;t++)if(i=n[t],i.nodeType===rw)return i}function fw(n){h(n)&&(n=n.split(" "));var i=p();return t(n,function(n){n.length&&(i[n]=!0)}),i}function li(n){return o(n)?n:{}}function aw(n,i,r,e){function d(n){try{n.apply(null,ki(arguments,1))}finally{if(l--,l===0)while(b.length)try{b.pop()()}catch(t){r.error(t)}}}function et(n){var t=n.indexOf("#");return t===-1?"":n.substr(t)}function tt(){v=null;rt()}function it(){h=st();h=u(h)?null:h;lt(h,k)&&(h=k);k=h;y=h}function rt(){var n=y;(it(),a!==o.url()||n!==h)&&(a=o.url(),y=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={},l,b,g,nt,k;o.isMock=!1;l=0;b=[];o.$$completeOutstandingRequest=d;o.$$incOutstandingRequestCount=function(){l++};o.notifyWhenNoOutstandingRequests=function(n){l===0?n():b.push(n)};var h,y,a=c.href,ot=i.find("base"),v=null,st=e.history?function(){try{return p.state}catch(n){}}:s;it();o.url=function(t,i,r){var s,f;return u(r)&&(r=null),c!==n.location&&(c=n.location),p!==n.history&&(p=n.history),t?(s=y===r,a===t&&(!e.history||s))?o:(f=a&&ai(a)===ai(t),a=t,y=r,!e.history||f&&s?(f||(v=t),i?c.replace(t):f?c.hash=et(t):c.href=t,c.href!==t&&(v=t)):(p[i?"replaceState":"pushState"](r,"",t),it()),v&&(v=t),o):v||c.href};o.state=function(){return h};g=[];nt=!1;k=null;o.onUrlChange=function(t){if(!nt){if(e.history)f(n).on("popstate",tt);f(n).on("hashchange",tt);nt=!0}return g.push(t),t};o.$$applicationDestroyed=function(){f(n).off("hashchange popstate",tt)};o.$$checkUrlChange=rt;o.baseHref=function(){var n=ot.attr("href");return n?n.replace(/^(https?:)?\/\/[^/]*/,""):""};o.defer=function(n,t){var i;return l++,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):!1}}function vw(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new aw(n,r,t,i)}]}function yw(){this.$get=function(){function i(t,i){function y(n){n!==o&&(r?r===n&&(r=n.n):r=n,c(n.n,n.p),c(n,o),o=n,o.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=p(),h=i&&i.capacity||Number.MAX_VALUE,e=p(),o=null,r=null;return n[t]={put:function(n,t){if(!u(t)){if(h<Number.MAX_VALUE){var i=e[n]||(e[n]={key:n});y(i)}return n in f||s++,f[n]=t,s>h&&this.remove(r.key),t}},get:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;y(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===r&&(r=t.n);c(t.n,t.p);delete e[n]}n in f&&(delete f[n],s--)},removeAll:function(){f=p();s=0;e=p();o=r=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 pw(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function ww(){}function fc(i,l){function ft(n,i,r){var f=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,u=p();return t(n,function(n,t){if(n=n.trim(),n in rt){u[t]=rt[n];return}var e=n.match(f);if(!e)throw b("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]&&(rt[n]=u[t])}),u}function gt(n,t){var i={isolateScope:null,bindToController:null};if(o(n.scope)&&(n.bindToController===!0?(i.bindToController=ft(n.scope,t,!0),i.isolateScope={}):i.isolateScope=ft(n.scope,t,!1)),o(n.bindToController)&&(i.bindToController=ft(n.bindToController,t,!0)),i.bindToController&&!n.controller)throw b("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return i}function ni(n){var t=n.charAt(0);if(!t||t!==a(t))throw b("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",n);if(n!==n.trim())throw b("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",n);}function ti(n){var i=n.require||n.controller&&n.name;return!c(i)&&o(i)&&t(i,function(n,t){var r=n.match(et),u=n.substring(r[0].length);u||(i[t]=r[0]+t)}),i}function ri(n,t){if(n&&!(h(n)&&/[EACM]/.test(n)))throw b("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",n,t);return n||"EA"}var k={},it="Directive",ot=/^\s*directive:\s*([\w-]+)\s+(.*)$/,at=/(([\w-]+)(?::([^;]+))?;?)/,yt=oy("ngSrc,ngSrcset,src,srcset"),et=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,bt=/^(on[a-z]+|formaction)$/,rt=p(),w,g,d,nt,tt;this.directive=function ui(n,r){return wr(n,"name"),gi(n,"directive"),h(n)?(ni(n),wr(r,"directiveFactory"),k.hasOwnProperty(n)||(k[n]=[],i.factory(n+it,["$injector","$exceptionHandler",function(i,r){var u=[];return t(k[n],function(t,f){try{var o=i.invoke(t);e(o)?o={compile:ht(o)}:!o.compile&&o.link&&(o.compile=ht(o.link));o.priority=o.priority||0;o.index=f;o.name=o.name||n;o.require=ti(o);o.restrict=ri(o.restrict,n);o.$$moduleName=t.$$moduleName;u.push(o)}catch(s){r(s)}}),u}])),k[n].push(r)):t(n,kf(ui)),this};this.component=function fi(n,i){function u(n){function u(t){return e(t)||c(t)?function(i,r){return n.invoke(t,this,{$element:i,$attrs:r})}:t}var o=!i.template&&!i.templateUrl?"":i.template,f={controller:r,controllerAs:bw(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)==="$"&&(f[t]=n)}),f}if(!h(n))return t(n,kf(di(this,fi))),this;var r=i.controller||function(){};return t(i,function(n,t){t.charAt(0)==="$"&&(u[t]=n,e(r)&&(r[t]=n))}),u.$inject=["$injector"],this.directive(n,u)};this.aHrefSanitizationWhitelist=function(n){return r(n)?(l.aHrefSanitizationWhitelist(n),this):l.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return r(n)?(l.imgSrcSanitizationWhitelist(n),this):l.imgSrcSanitizationWhitelist()};w=!0;this.debugInfoEnabled=function(n){return r(n)?(w=n,this):w};g=!1;this.strictComponentBindingsEnabled=function(n){return r(n)?(g=n,this):g};d=10;this.onChangesTtl=function(n){return arguments.length?(d=n,this):d};nt=!0;this.commentDirectivesEnabled=function(n){return arguments.length?(nt=n,this):nt};tt=!0;this.cssClassDirectivesEnabled=function(n){return arguments.length?(tt=n,this):tt};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(i,r,l,rt,ft,ht,ni,ti,ri){function nu(){try{if(!--ir){fi=undefined;throw b("infchng","{0} $onChanges() iterations reached. Aborting!\n",d);}ni.$apply(function(){for(var n=0,t=fi.length;n<t;++n)try{fi[n]()}catch(i){l(i)}fi=undefined})}finally{ir++}}function vi(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n}function tu(n,t,i){tr.innerHTML="<span "+t+">";var u=tr.firstChild.attributes,r=u[0];u.removeNamedItem(r.name);r.value=i;n.attributes.setNamedItem(r)}function yi(n,t){try{n.addClass(t)}catch(i){}}function ui(n,t,i,r,u){var o,e;return n instanceof f||(n=f(n)),o=pi(n,t,n,i,r,u),ui.$$addScopeClass(n),e=null,function(t,i,r){var s,l;if(!n)throw b("multilink","This element has already been linked.");wr(t,"scope");u&&u.needsNewScope&&(t=t.$parent.$new());r=r||{};var h=r.parentBoundTranscludeFn,c=r.transcludeControllers,a=r.futureParentElement;if(h&&h.$$boundTransclude&&(h=h.$$boundTransclude),e||(e=uu(a)),s=e!=="html"?f(nr(e,f("<div><\/div>").append(n).html())):i?hi.clone.call(n):n,c)for(l in c)s.data("$"+l+"Controller",c[l].instance);return ui.$$addScopeInfo(s,t),i&&i(s,t),o&&o(t,s,s,h),i||(n=o=null),s}}function uu(n){var t=n&&n[0];return t?ct(t)!=="foreignobject"&&ut.call(t).match(/SVG/)?"svg":"html":"html"}function pi(n,t,i,r,u,e){function k(n,i,r,u){var o,s,c,l,e,y,v,w,a,b;if(p)for(b=i.length,a=new Array(b),e=0;e<h.length;e+=3)v=h[e],a[v]=i[v];else a=i;for(e=0,y=h.length;e<y;)c=a[h[e++]],o=h[e++],s=h[e++],o?(o.scope?(l=n.$new(),ui.$$addScopeInfo(f(c),l)):l=n,w=o.transcludeOnThisElement?oi(n,o.transclude,u):!o.templateOnThisElement&&u?u:!u&&t?oi(n,t):null,o(s,l,c,r,w)):s&&s(n,c.childNodes,undefined,u)}for(var h=[],b=c(n)||n instanceof f,l,a,o,v,y,w,p,s=0;s<n.length;s++)l=new vi,pt===11&&fu(n,s,b),a=wi(n[s],[],l,s===0?r:undefined,u),o=a.length?sr(a,n[s],l,t,i,null,[],[],e):null,o&&o.scope&&ui.$$addScopeClass(l.$$element),y=o&&o.terminal||!(v=n[s].childNodes)||!v.length?null:pi(v,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||y)&&(h.push(s,o,y),w=!0,p=p||o),e=null;return w?k:null}function fu(n,t,i){var u=n[t],f=u.parentNode,r;if(u.nodeType===ii)for(;;){if(r=f?u.nextSibling:n[t+1],!r||r.nodeType!==ii)break;u.nodeValue=u.nodeValue+r.nodeValue;r.parentNode&&r.parentNode.removeChild(r);i&&r===n[t+1]&&n.splice(t+1,1)}}function oi(n,t,i){function u(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}var f=u.$$slots=p();for(var r in t.$$slots)f[r]=t.$$slots[r]?oi(n,t.$$slots[r],i):null;return u}function wi(n,t,i,r,u){var tt=n.nodeType,it=i.$attr,c,a,s,d,g,nt;switch(tt){case dt:a=ct(n);ci(t,vt(a),"E",r,u);for(var v,f,e,p,w,l,b=n.attributes,k=0,rt=b&&b.length;k<rt;k++)d=!1,g=!1,v=b[k],f=v.name,w=v.value,p=vt(f),l=iu.test(p),l&&(f=f.replace(to,"").substr(8).replace(/_(.)/g,function(n,t){return t.toUpperCase()})),nt=p.match(ru),nt&&su(nt[1])&&(d=f,g=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),e=vt(f.toLowerCase()),it[e]=f,(l||!i.hasOwnProperty(e))&&(i[e]=w,dh(n,e)&&(i[e]=!0)),vu(n,t,w,e,l),ci(t,e,"A",r,u,d,g);if(a==="input"&&n.getAttribute("type")==="hidden"&&n.setAttribute("autocomplete","off"),!gr)break;if(s=n.className,o(s)&&(s=s.animVal),h(s)&&s!=="")while(c=at.exec(s))e=vt(c[2]),ci(t,e,"C",r,u)&&(i[e]=y(c[3])),s=s.substr(c.index+c[0].length);break;case ii:lu(t,n.nodeValue);break;case br:if(!dr)break;eu(n,t,i,r,u)}return t.sort(cu),t}function eu(n,t,i,r,u){var f,e;try{f=ot.exec(n.nodeValue);f&&(e=vt(f[1]),ci(t,e,"M",r,u)&&(i[e]=y(f[2])))}catch(o){}}function er(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw b("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,i);n.nodeType===dt&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(u>0)}else r.push(n);return f(r)}function or(n,t,i){return function(r,u,f,e,o){return u=er(u[0],t,i),n(r,u,f,e,o)}}function gi(n,t,i,r,u,f){var e;return n?ui(t,i,r,u,f):function(){return e||(e=ui(t,i,r,u,f),t=i=f=null),e.apply(this,arguments)}}function sr(i,r,s,h,a,w,k,d,g){function sr(n,t,i,r){n&&(i&&(n=or(n,i,r)),n.require=nt.require,n.directiveName=st,(tt===nt||nt.$$isolateScope)&&(n=vr(n,{isolateScope:!0})),k.push(n));t&&(i&&(t=or(t,i,r)),t.require=nt.require,t.directiveName=st,(tt===nt||nt.$$isolateScope)&&(t=vr(t,{isolateScope:!0})),d.push(t))}function at(n,i,h,a,y){function bt(n,t,i,r){var e,f;if(cr(n)||(r=i,i=t,t=n,n=undefined),ti&&(e=nt),i||(i=ti?p.parent():p),r){if(f=y.$$slots[r],f)return f(n,t,e,i,ht);if(u(f))throw b("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,wt(p));}else return y(n,t,e,i,ht)}var it,yt,w,g,et,nt,ut,p,rt,ct,at,ht;r===h?(rt=s,p=s.$$element):(p=f(h),rt=new vi(p,s));et=i;tt?g=i.$new(!0):ft&&(et=i.$parent);y&&(ut=bt,ut.$$boundTransclude=y,ut.isSlotFilled=function(n){return!!y.$$slots[n]});ot&&(nt=ou(p,rt,ut,ot,g,i,tt));tt&&(ui.$$addScopeInfo(p,g,!0,!(lt&&(lt===tt||lt===tt.$$originalDirective))),ui.$$addScopeClass(p,!0),g.$$isolateBindings=tt.$$isolateBindings,ct=pr(i,rt,g,g.$$isolateBindings,tt),ct.removeWatches&&g.$on("$destroy",ct.removeWatches));for(at in nt){var vt=ot[at],st=nt[at],pt=vt.$$bindings.bindToController;st.instance=st();p.data("$"+vt.name+"Controller",st.instance);st.bindingInfo=pr(et,rt,st.instance,pt,vt)}for(t(ot,function(n,t){var i=n.require;n.bindToController&&!c(i)&&o(i)&&v(nt[t].instance,si(t,i,p,nt))}),t(nt,function(n){var t=n.instance;if(e(t.$onChanges))try{t.$onChanges(n.bindingInfo.initialChanges)}catch(i){l(i)}if(e(t.$onInit))try{t.$onInit()}catch(i){l(i)}e(t.$doCheck)&&(et.$watch(function(){t.$doCheck()}),t.$doCheck());e(t.$onDestroy)&&et.$on("$destroy",function(){t.$onDestroy()})}),it=0,yt=k.length;it<yt;it++)w=k[it],yr(w,w.isolateScope?g:i,p,rt,w.require&&si(w.directiveName,w.require,p,nt),ut);for(ht=i,tt&&(tt.template||tt.templateUrl===null)&&(ht=g),n&&n(ht,h.childNodes,undefined,y),it=d.length-1;it>=0;it--)w=d[it],yr(w,w.isolateScope?g:i,p,rt,w.require&&si(w.directiveName,w.require,p,nt),ut);t(nt,function(n){var t=n.instance;e(t.$postLink)&&t.$postLink()})}var ht,fi,gt,oi,bt,ir,et,bi,hi,ci,ai;g=g||{};var kt=-Number.MAX_VALUE,ft=g.newScopeDirective,ot=g.controllerDirectives,tt=g.newIsolateScopeDirective,lt=g.templateDirective,ni=g.nonTlbTranscludeDirective,yi=!1,pi=!1,ti=g.hasElementTranscludeDirective,it=s.$$element=f(r),nt,st,ut,ii=w,yt=h,pt,tr=!1,ri=!1,rt;for(ht=0,fi=i.length;ht<fi;ht++){if(nt=i[ht],gt=nt.$$start,oi=nt.$$end,gt&&(it=er(r,gt,oi)),ut=undefined,kt>nt.priority)break;if(rt=nt.scope,rt&&(nt.templateUrl||(o(rt)?(ei("new/isolated scope",tt||ft,nt,it),tt=nt):ei("new/isolated scope",tt,nt,it)),ft=ft||nt),st=nt.name,!tr&&(nt.replace&&(nt.templateUrl||nt.template)||nt.transclude&&!nt.$$tlb)){for(ir=ht+1;bt=i[ir++];)if(bt.transclude&&!bt.$$tlb||bt.replace&&(bt.templateUrl||bt.template)){ri=!0;break}tr=!0}if(!nt.templateUrl&&nt.controller&&(ot=ot||p(),ei("'"+st+"' controller",ot[st],nt,it),ot[st]=nt),rt=nt.transclude,rt)if(yi=!0,nt.$$tlb||(ei("transclusion",ni,nt,it),ni=nt),rt==="element")ti=!0,kt=nt.priority,ut=it,it=s.$$element=f(ui.$$createComment(st,s[st])),r=it[0],li(a,ki(ut),r),yt=gi(ri,ut,h,kt,ii&&ii.name,{nonTlbTranscludeDirective:ni});else{if(et=p(),o(rt)){ut=n.document.createDocumentFragment();bi=p();hi=p();t(rt,function(n,t){var i=n.charAt(0)==="?";n=i?n.substring(1):n;bi[n]=t;et[t]=null;hi[t]=i});t(it.contents(),function(t){var i=bi[vt(ct(t))];i?(hi[i]=!0,et[i]=et[i]||n.document.createDocumentFragment(),et[i].appendChild(t)):ut.appendChild(t)});t(hi,function(n,t){if(!n)throw b("reqslot","Required transclusion slot `{0}` was not filled.",t);});for(ci in et)et[ci]&&(et[ci]=gi(ri,et[ci].childNodes,h));ut=ut.childNodes}else ut=f(we(r)).contents();it.empty();yt=gi(ri,ut,h,undefined,undefined,{needsNewScope:nt.$$isolateScope||nt.$$newScope});yt.$$slots=et}if(nt.template)if(pi=!0,ei("template",lt,nt,it),lt=nt,rt=e(nt.template)?nt.template(it,s):nt.template,rt=fr(rt),nt.replace){if(ii=nt,ut=ye(rt)?[]:sc(nr(nt.templateNamespace,y(rt))),r=ut[0],ut.length!==1||r.nodeType!==dt)throw b("tplrt","Template for directive '{0}' must have exactly one root element. {1}",st,"");li(a,it,r);var rr={$attr:{}},ur=wi(r,[],rr),lr=i.splice(ht+1,i.length-(ht+1));(tt||ft)&&hr(ur,tt,ft);i=i.concat(ur).concat(lr);ar(s,rr);fi=i.length}else it.html(rt);if(nt.templateUrl)pi=!0,ei("template",lt,nt,it),lt=nt,nt.replace&&(ii=nt),at=hu(i.splice(ht,i.length-ht),it,s,a,yi&&yt,k,d,{controllerDirectives:ot,newScopeDirective:ft!==nt&&ft,newIsolateScopeDirective:tt,templateDirective:lt,nonTlbTranscludeDirective:ni}),fi=i.length;else if(nt.compile)try{pt=nt.compile(it,s,yt);ai=nt.$$originalDirective||nt;e(pt)?sr(null,di(ai,pt),gt,oi):pt&&sr(di(ai,pt.pre),di(ai,pt.post),gt,oi)}catch(wr){l(wr,wt(it))}nt.terminal&&(at.terminal=!0,kt=Math.max(kt,nt.priority))}return at.scope=ft&&ft.scope===!0,at.transcludeOnThisElement=yi,at.templateOnThisElement=pi,at.transclude=yt,g.hasElementTranscludeDirective=ti,at}function si(n,i,r,u){var f,a,e,y;if(h(i)){var s=i.match(et),l=i.substring(s[0].length),v=s[1]||s[3],p=s[2]==="?";if(v==="^^"?r=r.parent():(f=u&&u[l],f=f&&f.instance),f||(a="$"+l+"Controller",f=v?r.inheritedData(a):r.data(a)),!f&&!p)throw b("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]=si(n,i[e],r,u);else o(i)&&(f={},t(i,function(t,i){f[i]=si(n,t,r,u)}));return f||null}function ou(n,t,i,r,u,f,e){var c=p(),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=ht(s,a,!0,o.controllerAs);c[o.name]=h;n.data("$"+o.name+"Controller",h.instance)}return c}function hr(n,t,i){for(var r=0,u=n.length;r<u;r++)n[r]=gf(n[r],{$$isolateScope:t,$$newScope:i})}function ci(n,t,r,f,e,s,h){var l,v;if(t===e)return null;if(l=null,k.hasOwnProperty(t))for(var c,y=i.get(t+it),a=0,p=y.length;a<p;a++)c=y[a],(u(f)||f>c.priority)&&c.restrict.indexOf(r)!==-1&&(s&&(c=gf(c,{$$start:s,$$end:h})),c.$$bindings||(v=c.$$bindings=gt(c,c.name),o(v.isolateScope)&&(c.$$isolateBindings=v.isolateScope)),n.push(c),l=c);return l}function su(n){if(k.hasOwnProperty(n))for(var r,u=i.get(n+it),t=0,f=u.length;t<f;t++)if(r=u[t],r.multiElement)return!0;return!1}function ar(n,i){var r=i.$attr,u=n.$attr;t(n,function(t,u){u.charAt(0)!=="$"&&(i[u]&&i[u]!==t&&(t.length?t+=(u==="style"?";":" ")+i[u]:t=i[u]),n.$set(u,t,!0,r[u]))});t(i,function(t,i){n.hasOwnProperty(i)||i.charAt(0)==="$"||(n[i]=t,i!=="class"&&i!=="style"&&(u[i]=r[i]))})}function hu(n,i,r,u,s,h,c,a){var p=[],w,k,d=i[0],v=n.shift(),nt=gf(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),g=e(v.templateUrl)?v.templateUrl(i,r):v.templateUrl,tt=v.templateNamespace;return i.empty(),rt(g).then(function(e){var l,rt,ut,st,ft,ct;if(e=fr(e),v.replace){if(ut=ye(e)?[]:sc(nr(tt,y(e))),l=ut[0],ut.length!==1||l.nodeType!==dt)throw b("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,g);rt={$attr:{}};li(u,i,l);ft=wi(l,[],rt);o(v.scope)&&hr(ft,!0);n=ft.concat(n);ar(r,rt)}else l=d,i.html(e);for(n.unshift(nt),w=sr(n,l,r,s,i,v,h,c,a),t(u,function(n,t){n===l&&(u[t]=i[0])}),k=pi(i[0].childNodes,s);p.length;){var et=p.shift(),ot=p.shift(),lt=p.shift(),ht=p.shift(),it=i[0];et.$$destroyed||(ot!==d&&(ct=ot.className,a.hasElementTranscludeDirective&&v.replace||(it=we(l)),li(lt,f(ot),it),yi(f(it),ct)),st=w.transcludeOnThisElement?oi(et,w.transclude,ht):ht,w(k,et,it,u,st))}p=null}).catch(function(n){te(n)&&l(n)}),function(n,t,i,r,u){var f=u;t.$$destroyed||(p?p.push(t,i,r,f):(w.transcludeOnThisElement&&(f=oi(t,w.transclude,u)),w(k,t,i,r,f)))}}function cu(n,t){var i=t.priority-n.priority;return i!==0?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function ei(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw b("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,wt(r));}function lu(n,t){var i=r(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent(),r=!!t.length;return r&&ui.$$addBindingClass(t),function(n,t){var u=t.parent();r||ui.$$addBindingClass(u);ui.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){t[0].nodeValue=n})}}})}function nr(t,i){t=a(t||"html");switch(t){case"svg":case"math":var r=n.document.createElement("div");return r.innerHTML="<"+t+">"+i+"<\/"+t+">",r.childNodes[0].childNodes;default:return i}}function au(n,t){if(t==="srcdoc")return ti.HTML;var i=ct(n);return t==="src"||t==="ngSrc"?["img","video","audio","source","track"].indexOf(i)===-1?ti.RESOURCE_URL:ti.MEDIA_URL:t==="xlinkHref"?i==="image"?ti.MEDIA_URL:i==="a"?ti.URL:ti.RESOURCE_URL:i==="form"&&t==="action"||i==="base"&&t==="href"||i==="link"&&t==="href"?ti.RESOURCE_URL:i==="a"&&(t==="href"||t==="ngHref")?ti.URL:void 0}function vu(n,t,i,u,f){var o=au(n,u),h=!f,s=yt[u]||f,e=r(i,h,o,s);if(e){if(u==="multiple"&&ct(n)==="select")throw b("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",wt(n));if(bt.test(u))throw b("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");t.push({priority:100,compile:function(){return{pre:function(n,t,f){var c=f.$$observers||(f.$$observers=p()),h=f[u];(h!==i&&(e=h&&r(h,!0,o,s),i=h),e)&&(f[u]=e(n),(c[u]||(c[u]=[])).$$inter=!0,(f.$$observers&&f.$$observers[u].$$scope||n).$watch(e,function(n,t){u==="class"&&n!==t?f.$updateClass(n,t):f.$set(u,n)}))}}}})}}function li(t,i,r){var e=i[0],s=i.length,l=e.parentNode,u,a,c;if(t)for(u=0,a=t.length;u<a;u++)if(t[u]===e){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===e&&(t.context=r);break}for(l&&l.replaceChild(r,e),c=n.document.createDocumentFragment(),u=0;u<s;u++)c.appendChild(i[u]);for(f.hasData(e)&&(f.data(r,f.data(e)),f(e).off("$destroy")),f.cleanData(c.querySelectorAll("*")),u=1;u<s;u++)delete i[u];i[0]=r;i.length=1}function vr(n,t){return v(function(){return n.apply(null,arguments)},n,t)}function yr(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(e){l(e,wt(i))}}function ai(n,t){if(g)throw b("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",n,t);}function pr(n,i,u,f,o){function v(t,i,r){e(u.$onChanges)&&!fe(i,r)&&(fi||(n.$$postDigest(nu),fi=[]),c||(c={},fi.push(y)),c[t]&&(r=c[t].previousValue),c[t]=new ef(r,i))}function y(){u.$onChanges(c);c=undefined}var l=[],a={},c;return t(f,function(t,f){var e=t.attrName,p=t.optional,it=t.mode,y,c,nt,g,w,k,tt,d;switch(it){case"@":p||st.call(i,e)||(ai(e,o.name),u[f]=i[e]=undefined);w=i.$observe(e,function(n){if(h(n)||kt(n)){var t=u[f];v(f,n,t);u[f]=n}});i.$$observers[e].$$scope=n;y=i[e];h(y)?u[f]=r(y)(n):kt(y)&&(u[f]=y);a[f]=new ef(ff,u[f]);l.push(w);break;case"=":if(!st.call(i,e)){if(p)break;ai(e,o.name);i[e]=undefined}if(p&&!i[e])break;c=ft(i[e]);g=c.literal?lt:fe;nt=c.assign||function(){y=u[f]=c(n);throw b("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",i[e],e,o.name);};y=u[f]=c(n);k=function(t){return g(t,u[f])||(g(t,y)?nt(n,t=u[f]):u[f]=t),y=t};k.$stateful=!0;w=t.collection?n.$watchCollection(i[e],k):n.$watch(ft(i[e],k),null,c.literal);l.push(w);break;case"<":if(!st.call(i,e)){if(p)break;ai(e,o.name);i[e]=undefined}if(p&&!i[e])break;c=ft(i[e]);tt=c.literal;d=u[f]=c(n);a[f]=new ef(ff,u[f]);w=n[t.collection?"$watchCollection":"$watch"](c,function(n,t){if(t===n){if(t===d||tt&&lt(t,d))return;t=d}v(f,n,t);u[f]=n});l.push(w);break;case"&":if(p||st.call(i,e)||ai(e,o.name),c=i.hasOwnProperty(e)?ft(i[e]):s,c===s&&p)break;u[f]=function(t){return c(n,t)}}}),{initialChanges:a,removeWatches:l.length&&function(){for(var n=0,t=l.length;n<t;++n)l[n]()}}}var kr=/^\w/,tr=n.document.createElement("div"),dr=nt,gr=tt,ir=d,fi;vi.prototype={$normalize:vt,$addClass:function(n){n&&n.length>0&&ri.addClass(this.$$element,n)},$removeClass:function(n){n&&n.length>0&&ri.removeClass(this.$$element,n)},$updateClass:function(n,t){var r=oc(n,t),i;r&&r.length&&ri.addClass(this.$$element,r);i=oc(t,n);i&&i.length&&ri.removeClass(this.$$element,i)},$set:function(n,i,r,f){var nt=this.$$element[0],w=dh(nt,n),a=cp(n),k=n,d,o,v,c,p;if(w?(this.$$element.prop(n,i),f=w):a&&(this[a]=i,k=a),this[n]=i,f?this.$attr[n]=f:(f=this.$attr[n],f||(this.$attr[n]=f=fh(n,"-"))),d=ct(this.$$element),d==="img"&&n==="srcset"&&i){if(!h(i))throw b("srcset","Can't pass trusted values to `$set('srcset', value)`: \"{0}\"",i.toString());var e="",g=y(i),tt=/\s/.test(g)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=g.split(tt),it=Math.floor(s.length/2);for(o=0;o<it;o++)v=o*2,e+=ti.getTrustedMediaUrl(y(s[v])),e+=" "+y(s[v+1]);c=y(s[o*2]).split(/\s/);e+=ti.getTrustedMediaUrl(y(c[0]));c.length===2&&(e+=" "+y(c[1]));this[n]=i=e}r!==!1&&(i===null||u(i)?this.$$element.removeAttr(f):kr.test(f)?this.$$element.attr(f,i):tu(this.$$element[0],f,i));p=this.$$observers;p&&t(p[k],function(n){try{n(i)}catch(t){l(t)}})},$observe:function(n,t){var i=this,f=i.$$observers||(i.$$observers=p()),r=f[n]||(f[n]=[]);return r.push(t),ni.$evalAsync(function(){r.$$inter||!i.hasOwnProperty(n)||u(i[n])||t(i[n])}),function(){lr(r,t)}}};var rr=r.startSymbol(),ur=r.endSymbol(),fr=rr==="{{"&&ur==="}}"?bi:function(n){return n.replace(/\{\{/g,rr).replace(/}}/g,ur)},iu=/^ngAttr[A-Z]/,ru=/^(.+)Start$/;return ui.$$addBindingInfo=w?function(n,t){var i=n.data("$binding")||[];c(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:s,ui.$$addBindingClass=w?function(n){yi(n,"ng-binding")}:s,ui.$$addScopeInfo=w?function(n,t,i,r){var u=i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";n.data(u,t)}:s,ui.$$addScopeClass=w?function(n,t){yi(n,t?"ng-isolate-scope":"ng-scope")}:s,ui.$$createComment=function(t,i){var r="";return w&&(r=" "+(t||"")+": ",i&&(r+=i+" ")),n.document.createComment(r)},ui}]}function ef(n,t){this.previousValue=n;this.currentValue=t}function vt(n){return n.replace(to,"").replace(ec,function(n,t,i){return i?t.toUpperCase():t})}function oc(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 sc(n){var t,i;if(n=f(n),t=n.length,t<=1)return n;while(t--)i=n[t],(i.nodeType===br||i.nodeType===ii&&i.nodeValue.trim()==="")&&dv.call(n,t,1);return n}function bw(n,t){if(t&&h(t))return t;if(h(n)){var i=ro.exec(n);if(i)return i[3]}}function kw(){var n={};this.has=function(t){return n.hasOwnProperty(t)};this.register=function(t,i){gi(t,"controller");o(t)?v(n,t):n[t]=i};this.$get=["$injector",function(t){function i(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(r,u,f,s){var l,p,a,y,w;if(f=f===!0,s&&h(s)&&(y=s),h(r)){if(p=r.match(ro),!p)throw io("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(a=p[1],y=y||p[3],r=n.hasOwnProperty(a)?n[a]:yy(u.$scope,a,!0),!r)throw io("ctrlreg","The controller with the name '{0}' is not registered.",a);vu(r,a,!0)}return f?(w=(c(r)?r[r.length-1]:r).prototype,l=Object.create(w||null),y&&i(u,y,l,a||r.name),v(function(){var n=t.invoke(r,l,u,a);return n!==l&&(o(n)||e(n))&&(l=n,y&&i(u,y,l,a||r.name)),l},{instance:l,identifier:y})):(l=t.instantiate(r,u,a),y&&i(u,y,l,a||r.name),l)}}]}function dw(){this.$get=["$window",function(n){return f(n.document)}]}function gw(){this.$get=["$document","$rootScope",function(n,t){function u(){r=i.hidden}var i=n[0],r=i&&i.hidden;n.on("visibilitychange",u);return t.$on("$destroy",function(){n.off("visibilitychange",u)}),function(){return r}}]}function nb(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function fo(n){return o(n)?et(n)?n.toISOString():yr(n):n}function fb(){this.$get=function(){return function(n){if(!n)return"";var i=[];return ys(n,function(n,r){n===null||u(n)||e(n)||(c(n)?t(n,function(n){i.push(ot(r)+"="+ot(fo(n)))}):i.push(ot(r)+"="+ot(fo(n))))}),i.join("&")}}}function eb(){this.$get=function(){return function(n){function i(n,u,f){c(n)?t(n,function(n,t){i(n,u+"["+(o(n)?t:"")+"]")}):o(n)&&!et(n)?ys(n,function(n,t){i(n,u+(f?"":"[")+t+(f?"":"]"))}):(e(n)&&(n=n()),r.push(ot(u)+"="+(n==null?"":ot(fo(n)))))}if(!n)return"";var r=[];return i(n,"",!0),r.join("&")}}}function eo(n,t){var i,r,u;if(h(n)&&(i=n.replace(ub,"").trim(),i&&(r=t("Content-Type"),u=r&&r.indexOf(hc)===0,u||ob(i))))try{n=ds(i)}catch(f){if(!u)return n;throw of("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',n,f);}return n}function ob(n){var t=n.match(ib);return t&&rb[t[0]].test(n)}function cc(n){function u(n,t){n&&(i[n]=i[n]?i[n]+", "+t:t)}var i=p(),r;return h(n)?t(n.split("\n"),function(n){r=n.indexOf(":");u(a(y(n.substr(0,r))),y(n.substr(r+1)))}):o(n)&&t(n,function(n,t){u(a(t),y(n))}),i}function lc(n){var t;return function(i){if(t||(t=cc(n)),i){var r=t[a(i)];return r===undefined&&(r=null),r}return t}}function ac(n,i,r,u){return e(u)?u(n,i,r):(t(u,function(t){n=t(n,i,r)}),n)}function oo(n){return 200<=n&&n<300}function sb(){var n=this.defaults={transformResponse:[eo],transformRequest:[function(n){return o(n)&&!iy(n)&&!uy(n)&&!ry(n)?yr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:bt(uo),put:bt(uo),patch:bt(uo)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},i=!1,f,y;this.useApplyAsync=function(n){return r(n)?(i=!!n,this):i};f=this.interceptors=[];y=this.xsrfWhitelistedOrigins=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(p,w,b,k,d,g,nt,tt){function it(i){function w(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 k(){p.$$completeOutstandingRequest(s)}function d(n,i){var r,u={};return t(n,function(n,t){e(n)?(r=n(i),r!=null&&(u[t]=r)):u[t]=n}),u}function it(t){var i=n.headers,u=v({},t.headers),r,f,e;i=v({},i.common,i[a(t.method)]);n:for(r in i){f=a(r);for(e in u)if(a(e)===f)continue n;u[r]=i[r]}return d(u,bt(t))}function ut(i){var r=i.headers,f=ac(i.data,lc(r),undefined,i.transformRequest);return u(f)&&t(r,function(n,t){a(t)==="content-type"&&delete r[t]}),u(i.withCredentials)&&!u(n.withCredentials)&&(i.withCredentials=n.withCredentials),st(i,f).then(b,b)}function b(n){var t=v({},n);return t.data=ac(n.data,n.headers,n.status,r.transformResponse),oo(n.status)?t:g.reject(t)}var r;if(!o(i))throw l("$http")("badreq","Http request configuration must be an object.  Received: {0}",i);if(!h(tt.valueOf(i.url)))throw l("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",i.url);r=v({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer,jsonpCallbackParam:n.jsonpCallbackParam},i);r.headers=it(i);r.method=cu(r.method);r.paramSerializer=h(r.paramSerializer)?nt.get(r.paramSerializer):r.paramSerializer;p.$$incOutstandingRequestCount();var c=[],y=[],f=g.resolve(r);return t(rt,function(n){(n.request||n.requestError)&&c.unshift(n.request,n.requestError);(n.response||n.responseError)&&y.push(n.response,n.responseError)}),f=w(f,c),f=f.then(ut),f=w(f,y),f.finally(k)}function et(){t(arguments,function(n){it[n]=function(t,i){return it(v({},i||{},{method:n,url:t}))}})}function ot(){t(arguments,function(n){it[n]=function(t,i,r){return it(v({},r||{},{method:n,url:t,data:i}))}})}function st(f,e){function ot(n){if(n){var r={};return t(n,function(n,t){r[t]=function(t){function r(){n(t)}i?d.$applyAsync(r):d.$$phase?r():d.$apply(r)}}),r}}function at(n,t,r,u,f){function e(){y(t,n,r,u,f)}v&&(oo(n)?v.put(s,[n,t,cc(r),u,f]):v.remove(s));i?d.$applyAsync(e):(e(),d.$$phase||d.$apply())}function y(n,t,i,r,u){t=t>=-1?t:0;(oo(t)?p.resolve:p.reject)({data:n,status:t,headers:lc(i),config:f,statusText:r,xhrStatus:u})}function st(n){y(n.data,n.status,bt(n.headers()),n.statusText,n.xhrStatus)}function lt(){var n=it.pendingRequests.indexOf(f);n!==-1&&it.pendingRequests.splice(n,1)}var p=g.defer(),k=p.promise,v,l,rt=f.headers,et=a(f.method)==="jsonp",s=f.url,nt;return et?s=tt.getTrustedResourceUrl(s):h(s)||(s=tt.valueOf(s)),s=ht(s,f.paramSerializer(f.params)),et&&(s=ct(s,f.jsonpCallbackParam)),it.pendingRequests.push(f),k.then(lt,lt),(f.cache||n.cache)&&f.cache!==!1&&(f.method==="GET"||f.method==="JSONP")&&(v=o(f.cache)?f.cache:o(n.cache)?n.cache:ft),v&&(l=v.get(s),r(l)?au(l)?l.then(st,st):c(l)?y(l[1],l[0],bt(l[2]),l[3],l[4]):y(l,200,{},"OK","complete"):v.put(s,k)),u(l)&&(nt=ut(f.url)?b()[f.xsrfCookieName||n.xsrfCookieName]:undefined,nt&&(rt[f.xsrfHeaderName||n.xsrfHeaderName]=nt),w(f.method,s,e,at,rt,f.timeout,f.withCredentials,f.responseType,ot(f.eventHandlers),ot(f.uploadEventHandlers))),k}function ht(n,t){return t.length>0&&(n+=(n.indexOf("?")===-1?"?":"&")+t),n}function ct(n,i){var r=n.split("?"),u;if(r.length>2)throw of("badjsonp",'Illegal use more than one "?", in url, "{1}"',n);return u=se(r[1]),t(u,function(t,r){if(t==="JSON_CALLBACK")throw of("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',n);if(r===i)throw of("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',i,n);}),n+=(n.indexOf("?")===-1?"?":"&")+i+"=JSON_CALLBACK"}var ft=k("$http"),rt,ut;return n.paramSerializer=h(n.paramSerializer)?nt.get(n.paramSerializer):n.paramSerializer,rt=[],t(f,function(n){rt.unshift(h(n)?nt.get(n):nt.invoke(n))}),ut=td(y),it.pendingRequests=[],et("get","delete","head","jsonp"),ot("post","put","patch"),it.defaults=n,it}]}function hb(){this.$get=function(){return function(){return new n.XMLHttpRequest}}}function cb(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(n,t,i,r){return lb(n,r,n.defer,t,i[0])}]}function lb(n,i,f,e,o){function s(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){r.removeEventListener("load",u);r.removeEventListener("error",u);o.body.removeChild(r);r=null;var f=-1,s="unknown";n&&(n.type!=="load"||e.wasCalled(t)||(n={type:"error"}),s=n.type,f=n.type==="error"?404:200);i&&i(f,s)},r.addEventListener("load",u),r.addEventListener("error",u),o.body.appendChild(r),u}return function(o,h,c,l,v,y,p,w,b,k){function ut(n){it=n==="timeout";tt&&tt();d&&d.abort()}function g(n,t,i,u,e,o){r(rt)&&f.cancel(rt);tt=d=null;n(t,i,u,e,o)}var nt,tt,d,it,rt;if(h=h||n.url(),a(o)==="jsonp")nt=e.createCallback(h),tt=s(h,nt,function(n,t){var i=n===200&&e.getResponse(nt);g(l,n,i,"",t,"complete");e.removeCallback(nt)});else{d=i(o,h);it=!1;d.open(o,h,!0);t(v,function(n,t){r(n)&&d.setRequestHeader(t,n)});d.onload=function(){var i=d.statusText||"",t="response"in d?d.response:d.responseText,n=d.status===1223?204:d.status;n===0&&(n=t?200:yt(h).protocol==="file"?404:0);g(l,n,t,d.getAllResponseHeaders(),i,"complete")};var ft=function(){g(l,-1,null,null,"","error")},et=function(){g(l,-1,null,null,"",it?"timeout":"abort")},ot=function(){g(l,-1,null,null,"","timeout")};if(d.onerror=ft,d.ontimeout=ot,d.onabort=et,t(b,function(n,t){d.addEventListener(t,n)}),t(k,function(n,t){d.upload.addEventListener(t,n)}),p&&(d.withCredentials=!0),w)try{d.responseType=w}catch(st){if(w!=="json")throw st;}d.send(u(c)?null:c)}y>0?rt=f(function(){ut("timeout")},y):au(y)&&y.then(function(){ut(r(y.$$timeoutId)?"timeout":"abort")})}}function ab(){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,f,e){function c(n){return"\\\\\\"+n}function o(i){return i.replace(a,n).replace(y,t)}function p(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function s(s,c,a,y){function lt(n){try{return n=a&&!d?e.getTrusted(a,n):e.valueOf(n),y&&!r(n)?n:le(n)}catch(t){f(ri.interr(s,t))}}var d=a===e.URL||a===e.MEDIA_URL,tt,g,ct,et;if(!s.length||s.indexOf(n)===-1)return c&&!d?void 0:(tt=o(s),d&&(tt=e.getTrusted(a,tt)),g=ht(tt),g.exp=s,g.expressions=[],g.$$watchDelegate=p,g);y=!!y;for(var nt,it,b=0,k=[],rt,ot=s.length,st,w=[],ut=[],ft;b<ot;)if((nt=s.indexOf(n,b))!==-1&&(it=s.indexOf(t,nt+h))!==-1)b!==nt&&w.push(o(s.substring(b,nt))),st=s.substring(nt+h,it),k.push(st),b=it+l,ut.push(w.length),w.push("");else{b!==ot&&w.push(o(s.substring(b)));break}return ft=w.length===1&&ut.length===1,ct=d&&ft?undefined:lt,rt=k.map(function(n){return i(n,ct)}),!c||k.length?(et=function(n){for(var t=0,i=k.length;t<i;t++){if(y&&u(n[t]))return;w[ut[t]]=n[t]}return d?e.getTrusted(a,ft?w[0]:w.join("")):(a&&w.length>1&&ri.throwNoconcat(s),w.join(""))},v(function(n){var t=0,i=k.length,r=new Array(i);try{for(;t<i;t++)r[t]=rt[t](n);return et(r)}catch(u){f(ri.interr(s,u))}},{exp:s,expressions:k,$$watchDelegate:function(n,t){var i;return n.$watchGroup(rt,function(r,u){var f=et(r);t.call(this,f,r!==u?i:f,n);i=f})}})):void 0}var h=n.length,l=t.length,a=new RegExp(n.replace(/./g,c),"g"),y=new RegExp(t.replace(/./g,c),"g");return s.startSymbol=function(){return n},s.endSymbol=function(){return t},s}]}function vb(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(n,t,i,u,f){function o(o,s,h,c){function w(){p?o.apply(null,b):o(a)}var p=arguments.length>4,b=p?ki(arguments,4):[],k=t.setInterval,d=t.clearInterval,a=0,y=r(c)&&!c,v=(y?u:i).defer(),l=v.promise;return h=r(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){if(!n)return!1;if(!n.hasOwnProperty("$$intervalId"))throw vc("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!e.hasOwnProperty(n.$$intervalId))return!1;var i=n.$$intervalId,r=e[i];return cl(r.promise),r.reject("canceled"),t.clearInterval(i),delete e[i],!0},o}]}function so(n){for(var t=n.split("/"),i=t.length;i--;)t[i]=pr(t[i].replace(/%2F/g,"/"));return t.join("/")}function bb(n,t){for(var i=n.split("/"),r=i.length;r--;)i[r]=decodeURIComponent(i[r]),t&&(i[r]=i[r].replace(/\//g,"%2F"));return i.join("/")}function yc(n,t){var i=yt(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=it(i.port)||wb[i.protocol]||null}function wc(n,t,i){var u,r,f;if(pc.test(n))throw nu("badpath",'Invalid url "{0}".',n);u=n.charAt(0)!=="/";u&&(n="/"+n);r=yt(n);f=u&&r.pathname.charAt(0)==="/"?r.pathname.substring(1):r.pathname;t.$$path=bb(f,i);t.$$search=se(r.search);t.$$hash=decodeURIComponent(r.hash);t.$$path&&t.$$path.charAt(0)!=="/"&&(t.$$path="/"+t.$$path)}function ho(n,t){return n.slice(0,t.length)===t}function gt(n,t){if(ho(t,n))return t.substr(n.length)}function ai(n){var t=n.indexOf("#");return t===-1?n:n.substr(0,t)}function tu(n){return n.replace(/(#.+)|#$/,"$1")}function kb(n){return n.substr(0,ai(n).lastIndexOf("/")+1)}function db(n){return n.substring(0,n.indexOf("/",n.indexOf("//")+2))}function co(n,t,i){this.$$html5=!0;i=i||"";yc(n,this);this.$$parse=function(n){var i=gt(t,n);if(!h(i))throw nu("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',n,t);wc(i,this,!0);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=he(this.$$search),i=this.$$hash?"#"+pr(this.$$hash):"";this.$$url=so(this.$$path)+(n?"?"+n:"")+i;this.$$absUrl=t+this.$$url.substr(1);this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(u,f){if(f&&f[0]==="#")return this.hash(f.slice(1)),!0;var e,s,o;return r(e=gt(n,u))?(s=e,o=i&&r(e=gt(i,e))?t+(gt("/",e)||e):n+s):r(e=gt(t,u))?o=t+e:t===u+"/"&&(o=t),o&&this.$$parse(o),!!o}}function lo(n,t,i){yc(n,this);this.$$parse=function(r){function o(n,t,i){var u=/^\/[A-Z]:(\/.*)/,r;return(ho(t,i)&&(t=t.replace(i,"")),u.exec(t))?n:(r=u.exec(n),r?r[1]:n)}var e=gt(n,r)||gt(t,r),f;u(e)||e.charAt(0)!=="#"?this.$$html5?f=e:(f="",u(e)&&(n=r,this.replace())):(f=gt(i,e),u(f)&&(f=e));wc(f,this,!1);this.$$path=o(this.$$path,f,n);this.$$compose()};this.$$compose=function(){var t=he(this.$$search),r=this.$$hash?"#"+pr(this.$$hash):"";this.$$url=so(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+(this.$$url?i+this.$$url:"");this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(t){return ai(n)===ai(t)?(this.$$parse(t),!0):!1}}function bc(n,t,i){this.$$html5=!0;lo.apply(this,arguments);this.$$parseLinkUrl=function(r,u){if(u&&u[0]==="#")return this.hash(u.slice(1)),!0;var f,e;return n===ai(r)?f=r:(e=gt(t,r))?f=n+i+e:t===r+"/"&&(f=t),f&&this.$$parse(f),!!f};this.$$compose=function(){var t=he(this.$$search),r=this.$$hash?"#"+pr(this.$$hash):"";this.$$url=so(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+i+this.$$url;this.$$urlUpdatedByLocation=!0}}function sf(n){return function(){return this[n]}}function dc(n,t){return function(i){return u(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function gb(){var t="!",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return r(n)?(t=n,this):t};this.html5Mode=function(t){return kt(t)?(n.enabled=t,this):o(t)?(kt(t.enabled)&&(n.enabled=t.enabled),kt(t.requireBase)&&(n.requireBase=t.requireBase),(kt(t.rewriteLinks)||h(t.rewriteLinks))&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,r,e,s,c){function d(n,t,i){var u=l.url(),f=l.$$state;try{r.url(n,t,i);l.$$state=r.state()}catch(e){l.url(u);l.$$state=f;throw e;}}function g(n,t){i.$broadcast("$locationChangeSuccess",l.absUrl(),n,l.$$state,t)}var l,p,b=r.baseHref(),a=r.url(),y,w,k,v;if(n.enabled){if(!b&&n.requireBase)throw nu("nobase","$location in HTML5 mode requires a <base> tag to be present!");y=db(a)+(b||"/");p=e.history?co:bc}else y=ai(a),p=lo;w=kb(y);l=new p(y,w,"#"+t);l.$$parseLinkUrl(a,a);l.$$state=r.state();k=/^\s*(javascript|mailto):/i;s.on("click",function(t){var a=n.rewriteLinks,e,c,v;if(a&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&t.which!==2&&t.button!==2){for(e=f(t.target);ct(e[0])!=="a";)if(e[0]===s[0]||!(e=e.parent())[0])return;h(a)&&u(e.attr(a))||(c=e.prop("href"),v=e.attr("href")||e.attr("xlink:href"),o(c)&&c.toString()==="[object SVGAnimatedString]"&&(c=yt(c.animVal).href),k.test(c))||!c||e.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(c,v)&&(t.preventDefault(),l.absUrl()!==r.url()&&i.$apply())}});tu(l.absUrl())!==tu(a)&&r.url(l.absUrl(),!0);v=!0;r.onUrlChange(function(n,t){if(!ho(n,w)){c.location.href=n;return}i.$evalAsync(function(){var r=l.absUrl(),u=l.$$state,f;(n=tu(n),l.$$parse(n),l.$$state=t,f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented,l.absUrl()===n)&&(f?(l.$$parse(r),l.$$state=u,d(r,!1,u)):(v=!1,g(r,u)))});i.$$phase||i.$digest()});return i.$watch(function(){if(v||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var t=tu(r.url()),f=tu(l.absUrl()),n=r.state(),o=l.$$replace,u=t!==f||l.$$html5&&e.history&&n!==l.$$state;(v||u)&&(v=!1,i.$evalAsync(function(){var r=l.absUrl(),f=i.$broadcast("$locationChangeStart",r,t,l.$$state,n).defaultPrevented;l.absUrl()===r&&(f?(l.$$parse(t),l.$$state=n):(u&&d(r,o,n===l.$$state?null:l.$$state),g(t,n)))}))}l.$$replace=!1}),l}]}function nk(){var n=!0,i=this;this.debugEnabled=function(t){return r(t)?(n=t,this):n};this.$get=["$window",function(r){function e(n){return te(n)&&(n.stack&&f?n=n.message&&n.stack.indexOf(n.message)===-1?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var i=r.console||{},u=i[n]||i.log||s;return function(){var n=[];return t(arguments,function(t){n.push(e(t))}),Function.prototype.apply.call(u,i,n)}}var f=pt||/\bEdge\//.test(r.navigator&&r.navigator.userAgent);return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var t=u("debug");return function(){n&&t.apply(i,arguments)}}()}}]}function nl(n){return n+""}function tk(n,t){return typeof n!="undefined"?n:t}function il(n,t){return typeof n=="undefined"?t:typeof t=="undefined"?n:n+t}function ik(n,t){var i=n(t);return!i.$stateful}function rk(n,t){switch(n.type){case i.MemberExpression:if(n.computed)return!1;break;case i.UnaryExpression:return ao;case i.BinaryExpression:return n.operator!=="+"?ao:!1;case i.CallExpression:return!1}return undefined===t?vo:t}function k(n,r,u){var f,o,s,e=n.isPure=rk(n,u);switch(n.type){case i.Program:f=!0;t(n.body,function(n){k(n.expression,r,e);f=f&&n.expression.constant});n.constant=f;break;case i.Literal:n.constant=!0;n.toWatch=[];break;case i.UnaryExpression:k(n.argument,r,e);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case i.BinaryExpression:k(n.left,r,e);k(n.right,r,e);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,e);k(n.right,r,e);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case i.ConditionalExpression:k(n.test,r,e);k(n.alternate,r,e);k(n.consequent,r,e);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,e);n.computed&&k(n.property,r,e);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=n.constant?[]:[n];break;case i.CallExpression:s=n.filter?ik(r,n.callee.name):!1;f=s;o=[];t(n.arguments,function(n){k(n,r,e);f=f&&n.constant;o.push.apply(o,n.toWatch)});n.constant=f;n.toWatch=s?o:[n];break;case i.AssignmentExpression:k(n.left,r,e);k(n.right,r,e);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case i.ArrayExpression:f=!0;o=[];t(n.elements,function(n){k(n,r,e);f=f&&n.constant;o.push.apply(o,n.toWatch)});n.constant=f;n.toWatch=o;break;case i.ObjectExpression:f=!0;o=[];t(n.properties,function(n){k(n.value,r,e);f=f&&n.value.constant;o.push.apply(o,n.value.toWatch);n.computed&&(k(n.key,r,!1),f=f&&n.key.constant,o.push.apply(o,n.key.toWatch))});n.constant=f;n.toWatch=o;break;case i.ThisExpression:n.constant=!1;n.toWatch=[];break;case i.LocalsExpression:n.constant=!1;n.toWatch=[]}}function rl(n){if(n.length===1){var i=n[0].expression,t=i.toWatch;return t.length!==1?t:t[0]!==i?t:undefined}}function ul(n){return n.type===i.Identifier||n.type===i.MemberExpression}function fl(n){if(n.body.length===1&&ul(n.body[0].expression))return{type:i.AssignmentExpression,left:n.body[0].expression,right:{type:i.NGValueParameter},operator:"="}}function uk(n){return n.body.length===0||n.body.length===1&&(n.body[0].expression.type===i.Literal||n.body[0].expression.type===i.ArrayExpression||n.body[0].expression.type===i.ObjectExpression)}function fk(n){return n.constant}function el(n){this.$filter=n}function ol(n){this.$filter=n}function hf(n,t,r){this.ast=new i(n,r);this.astCompiler=r.csp?new ol(t):new el(t)}function yo(n){return e(n.valueOf)?n.valueOf():gc.call(n)}function ek(){var u=p(),f={"true":!0,"false":!1,"null":null,undefined:undefined},n,i;this.addLiteral=function(n,t){f[n]=t};this.setIdentifierFns=function(t,r){return n=t,i=r,this};this.$get=["$filter",function(o){function v(n,t){var i,r,f,e;switch(typeof n){case"string":return n=n.trim(),r=n,i=u[r],i||(f=new ru(h),e=new hf(f,o,h),i=e.parse(n),u[r]=l(i)),a(i,t);case"function":return a(n,t);default:return a(s,t)}}function p(n){var t=new ru(h),i=new hf(t,o,h);return i.getAst(n).ast}function c(n,t,i){return n==null||t==null?n===t:typeof n=="object"&&(n=yo(n),typeof n=="object"&&!i)?!1:n===t||n!==n&&t!==t}function w(n,t,i,r,u){var f=r.inputs,o,l,s,h,e,a;if(f.length===1)return l=c,f=f[0],n.$watch(function(n){var t=f(n);return c(t,l,f.isPure)||(o=r(n,undefined,undefined,[t]),l=t&&yo(t)),o},t,i,u);for(s=[],h=[],e=0,a=f.length;e<a;e++)s[e]=c,h[e]=null;return n.$watch(function(n){for(var i,u=!1,t=0,e=f.length;t<e;t++)i=f[t](n),(u||(u=!c(i,s[t],f[t].isPure)))&&(h[t]=i,s[t]=i&&yo(i));return u&&(o=r(n,undefined,undefined,h)),o},t,i,u)}function b(n,t,i,u,f){function y(){s(o)&&h()}function e(n,t,i,r){return o=v&&r?r[0]:c(n,t,i,r),s(o)&&n.$$postDigest(y),a(o)}var s=u.literal?k:r,h,o,c=u.$$intercepted||u,a=u.$$interceptor||bi,v=u.inputs&&!c.inputs;return e.literal=u.literal,e.constant=u.constant,e.inputs=u.inputs,l(e),h=n.$watch(e,t,i,f)}function k(n){var i=!0;return t(n,function(n){r(n)||(i=!1)}),i}function d(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function l(n){return n.constant?n.$$watchDelegate=d:n.oneTime?n.$$watchDelegate=b:n.inputs&&(n.$$watchDelegate=w),n}function g(n,t){function i(i){return t(n(i))}return i.$stateful=n.$stateful||t.$stateful,i.$$pure=n.$$pure&&t.$$pure,i}function a(n,t){if(!t)return n;n.$$interceptor&&(t=g(n.$$interceptor,t),n=n.$$intercepted);var r=!1,i=function(i,u,f,e){var o=r&&e?e[0]:n(i,u,f,e);return t(o)};return i.$$intercepted=n,i.$$interceptor=t,i.literal=n.literal,i.oneTime=n.oneTime,i.constant=n.constant,t.$stateful||(r=!n.inputs,i.inputs=n.inputs?n.inputs:[n],t.$$pure||(i.inputs=i.inputs.map(function(n){return n.isPure===vo?function(t){return n(t)}:n}))),l(i)}var y=ti().noUnsafeEval,h={csp:y,literals:ei(f),isIdentifierStart:e(n)&&n,isIdentifierContinue:e(i)&&i};return v.$$getAst=p,v}]}function ok(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(t,i){return sl(function(n){t.$evalAsync(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function sk(){var n=!0;this.$get=["$browser","$exceptionHandler",function(t,i){return sl(function(n){t.defer(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function sl(n,i,r){function it(){return new et}function et(){var n=this.promise=new f;this.resolve=function(t){h(n,t)};this.reject=function(t){a(n,t)};this.notify=function(t){g(n,t)}}function f(){this.$$state={status:0}}function ot(t){var c,u,o,f,l;o=t.pending;t.processScheduled=!1;t.pending=undefined;try{for(f=0,l=o.length;f<l;++f){po(t);u=o[f][0];c=o[f][t.status];try{e(c)?h(u,c(t.value)):t.status===1?h(u,t.value):a(u,t.value)}catch(s){a(u,s);s&&s.$$passToExceptionHandler===!0&&i(s)}}}finally{--y;r&&y===0&&n(rt)}}function rt(){for(var n,t;!y&&p.length;)n=p.shift(),hl(n)||(po(n),t="Possibly unhandled rejection: "+oh(n.value),te(n.value)?i(n.value,t):i(t))}function k(t){(!r||t.pending||t.status!==2||hl(t)||(y===0&&p.length===0&&n(rt),p.push(t)),!t.processScheduled&&t.pending)&&(t.processScheduled=!0,++y,n(function(){ot(t)}))}function h(n,t){n.$$state.status||(t===n?d(n,tt("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):ut(n,t))}function ut(n,t){function s(t){i||(i=!0,ut(n,t))}function u(t){i||(i=!0,d(n,t))}function h(t){g(n,t)}var r,i=!1;try{(o(t)||e(t))&&(r=t.then);e(r)?(n.$$state.status=-1,r.call(t,s,u,h)):(n.$$state.value=t,n.$$state.status=1,k(n.$$state))}catch(f){u(f)}}function a(n,t){n.$$state.status||d(n,t)}function d(n,t){n.$$state.value=t;n.$$state.status=2;k(n.$$state)}function g(t,r){var u=t.$$state.pending;t.$$state.status<=0&&u&&u.length&&n(function(){for(var t,f,n=0,o=u.length;n<o;n++){f=u[n][0];t=u[n][3];try{g(f,e(t)?t(r):r)}catch(s){i(s)}}})}function w(n){var t=new f;return a(t,n),t}function ft(n,t,i){var r=null;try{e(i)&&(r=i())}catch(u){return w(u)}return au(r)?r.then(function(){return t(n)},w):t(n)}function b(n,t,i,r){var u=new f;return h(u,n),u.then(t,i,r)}function st(n){var i=new f,r=0,u=c(n)?[]:{};return t(n,function(n,t){r++;b(n).then(function(n){u[t]=n;--r||h(i,u)},function(n){a(i,n)})}),r===0&&h(i,u),i}function ht(n){var i=it();return t(n,function(n){b(n).then(i.resolve,i.reject)}),i.promise}function s(n){function i(n){h(t,n)}function r(n){a(t,n)}if(!e(n))throw tt("norslvr","Expected resolverFn, got '{0}'",n);var t=new f;return n(i,r),t}var tt=l("$q",TypeError),y=0,p=[],nt;return v(f.prototype,{then:function(n,t,i){if(u(n)&&u(t)&&u(i))return this;var r=new f;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,n,t,i]),this.$$state.status>0&&k(this.$$state),r},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return ft(t,nt,n)},function(t){return ft(t,w,n)},t)}}),nt=b,s.prototype=f.prototype,s.defer=it,s.reject=w,s.when=b,s.resolve=nt,s.all=st,s.race=ht,s}function hl(n){return!!n.pur}function po(n){n.pur=!0}function cl(n){po(n.$$state)}function hk(){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 ck(){function h(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=lu();this.$$ChildScope=null;this.$$suspended=!1}return t.prototype=n,t}var r=10,f=l("$rootScope"),n=null,i=null;this.digestTtl=function(n){return arguments.length&&(r=n),r};this.$get=["$exceptionHandler","$parse","$browser",function(c,l,a){function et(n){n.currentScope.$$destroyed=!0}function b(n){pt===9&&(n.$$childHead&&b(n.$$childHead),n.$$nextSibling&&b(n.$$nextSibling));n.$parent=n.$$nextSibling=n.$$prevSibling=n.$$childHead=n.$$childTail=n.$root=n.$$watchers=null}function p(){this.$id=lu();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$suspended=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function tt(n){if(v.$$phase)throw f("inprog","{0} already in progress",v.$$phase);v.$$phase=n}function g(){v.$$phase=null}function nt(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function it(n,t,i){do n.$$listenerCount[i]-=t,n.$$listenerCount[i]===0&&delete n.$$listenerCount[i];while(n=n.$parent)}function ut(){}function ft(){while(k.length)try{k.shift()()}catch(n){c(n)}i=null}function ot(){i===null&&(i=a.defer(function(){v.$apply(ft)}))}p.prototype={constructor:p,$new:function(n,t){var i;return t=t||this,n?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=h(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",et),i},$watch:function(t,i,r,u){var o=l(t),c=e(i)?i:s;if(o.$$watchDelegate)return o.$$watchDelegate(this,c,r,o,t);var h=this,f=h.$$watchers,a={fn:c,last:ut,get:o,exp:u||t,eq:!!r};return n=null,f||(f=h.$$watchers=[],f.$$digestWatchIndex=-1),f.unshift(a),f.$$digestWatchIndex++,nt(this,1),function(){var t=lr(f,a);t>=0&&(nt(h,-1),t<f.$$digestWatchIndex&&f.$$digestWatchIndex--);n=null}},$watchGroup:function(n,i){function c(){o=!1;try{h?(h=!1,i(r,r,u)):i(r,f,u)}finally{for(var t=0;t<n.length;t++)f[t]=r[t]}}var f=new Array(n.length),r=new Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?n.length===1?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){r[t]=n;o||(o=!0,u.$evalAsync(c))});e.push(i)}),function(){while(e.length)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&i(r,r,u)}),function(){s=!1})},$watchCollection:function(n,t){function h(n){var c,s,y,t,h,l;if(i=n,!u(i)){if(o(i))if(ni(i))for(r!==a&&(r=a,e=r.length=0,f++),c=i.length,e!==c&&(f++,r.length=e=c),l=0;l<c;l++)h=r[l],t=i[l],y=h!==h&&t!==t,y||h===t||(f++,r[l]=t);else{r!==v&&(r=v={},e=0,f++);c=0;for(s in i)st.call(i,s)&&(c++,t=i[s],h=r[s],s in r?(y=h!==h&&t!==t,y||h===t||(f++,r[s]=t)):(e++,r[s]=t,f++));if(e>c){f++;for(s in r)st.call(i,s)||(e--,delete r[s])}}else r!==i&&(r=i,f++);return f}}function b(){var n,r;if(y?(y=!1,t(i,i,c)):t(i,s,c),p)if(o(i))if(ni(i))for(s=new Array(i.length),n=0;n<i.length;n++)s[n]=i[n];else{s={};for(r in i)st.call(i,r)&&(s[r]=i[r])}else s=i}h.$$pure=l(n).literal;h.$stateful=!h.$$pure;var c=this,i,r,s,p=t.length>1,f=0,w=l(n,h),a=[],v={},y=!0,e=0;return this.$watch(w,b)},$digest:function(){var u,o,s,p,ct,h,l,et=r,ot,t,st=y.length?v:this,b=[],k,nt,it;tt("$digest");a.$$checkUrlChange();this===v&&i!==null&&(a.defer.cancel(i),ft());n=null;do{for(l=!1,t=st,it=0;it<y.length;it++){try{nt=y[it];p=nt.fn;p(nt.scope,nt.locals)}catch(ht){c(ht)}n=null}y.length=0;n:do{if(h=!t.$$suspended&&t.$$watchers)for(h.$$digestWatchIndex=h.length;h.$$digestWatchIndex--;)try{if(u=h[h.$$digestWatchIndex],u)if(ct=u.get,(o=ct(t))===(s=u.last)||(u.eq?lt(o,s):rt(o)&&rt(s))){if(u===n){l=!1;break n}}else l=!0,n=u,u.last=u.eq?ei(o,null):o,p=u.fn,p(o,s===ut?o:s,t),et<5&&(k=4-et,b[k]||(b[k]=[]),b[k].push({msg:e(u.exp)?"fn: "+(u.exp.name||u.exp.toString()):u.exp,newVal:o,oldVal:s}))}catch(ht){c(ht)}if(!(ot=!t.$$suspended&&t.$$watchersCount&&t.$$childHead||t!==st&&t.$$nextSibling))while(t!==st&&!(ot=t.$$nextSibling))t=t.$parent}while(t=ot);if((l||y.length)&&!et--){g();throw f("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",r,b);}}while(l||y.length);for(g();d<w.length;)try{w[d++]()}catch(ht){c(ht)}w.length=d=0;a.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&a.$$applicationDestroyed();nt(this,-this.$$watchersCount);for(t in this.$$listenerCount)it(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;b(this)}},$eval:function(n,t){return l(n)(this,t)},$evalAsync:function(n,t){v.$$phase||y.length||a.defer(function(){y.length&&v.$digest()});y.push({scope:this,fn:l(n),locals:t})},$$postDigest:function(n){w.push(n)},$apply:function(n){try{tt("$apply");try{return this.$eval(n)}finally{g()}}catch(t){c(t)}finally{try{v.$digest()}catch(t){c(t);throw t;}}},$applyAsync:function(n){function i(){t.$eval(n)}var t=this;n&&k.push(i);n=l(n);ot()},$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);i!==-1&&(delete r[i],it(u,1,n))}},$emit:function(n){var o=[],r,i=this,e=!1,u={name:n,targetScope:i,stopPropagation:function(){e=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},s=vr([u],arguments,1),t,f;do{for(r=i.$$listeners[n]||o,u.currentScope=i,t=0,f=r.length;t<f;t++){if(!r[t]){r.splice(t,1);t--;f--;continue}try{r[t].apply(null,s)}catch(h){c(h)}}if(e)break;i=i.$parent}while(i);return u.currentScope=null,u},$broadcast:function(n){var r=this,t=r,e=r,u={name:n,targetScope:r,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},s,f,i,o;if(!r.$$listenerCount[n])return u;for(s=vr([u],arguments,1);t=e;){for(u.currentScope=t,f=t.$$listeners[n]||[],i=0,o=f.length;i<o;i++){if(!f[i]){f.splice(i,1);i--;o--;continue}try{f[i].apply(null,s)}catch(h){c(h)}}if(!(e=t.$$listenerCount[n]&&t.$$childHead||t!==r&&t.$$nextSibling))while(t!==r&&!(e=t.$$nextSibling))t=t.$parent}return u.currentScope=null,u}};var v=new p,y=v.$$asyncQueue=[],w=v.$$postDigestQueue=[],k=v.$$applyAsyncQueue=[],d=0;return v}]}function lk(){var n=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return r(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return r(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u=yt(i&&i.trim()).href;return u!==""&&!u.match(f)?"unsafe:"+u:i}}}function wo(n){return n.replace(ak,ch)}function vk(n){if(n==="self")return n;if(h(n)){if(n.indexOf("***")>-1)throw ui("iwcard","Illegal sequence *** in string matcher.  String: {0}",n);return n=ie(n).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+n+"$")}if(sr(n))return new RegExp("^"+n.source+"$");throw ui("imatcher",'Matchers may only be "self", string patterns or RegExp objects');}function ll(n){var i=[];return r(n)&&t(n,function(n){i.push(vk(n))}),i}function yk(){this.SCE_CONTEXTS=nt;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=ll(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=ll(n)),t};this.$get=["$injector","$$sanitizeUri",function(i,r){function c(n,t){return n==="self"?gk(t)||nd(t):!!n.exec(t.href)}function l(i){for(var e=yt(i.toString()),f=!1,r=0,u=n.length;r<u;r++)if(c(n[r],e)){f=!0;break}if(f)for(r=0,u=t.length;r<u;r++)if(c(t[r],e)){f=!1;break}return f}function o(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}function a(n,t){var i=f.hasOwnProperty(n)?f[n]:null;if(!i)throw ui("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",n,t);if(t===null||u(t)||t==="")return t;if(typeof t!="string")throw ui("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",n);return new i(t)}function v(n){return n instanceof s?n.$$unwrapTrustedValue():n}function y(n,t){if(t===null||u(t)||t==="")return t;var i=f.hasOwnProperty(n)?f[n]:null;if(i&&t instanceof i)return t.$$unwrapTrustedValue();if(e(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),n===nt.MEDIA_URL||n===nt.URL)return r(t,n===nt.MEDIA_URL);if(n===nt.RESOURCE_URL){if(l(t))return t;throw ui("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString());}else if(n===nt.HTML)return h(t);throw ui("unsafe","Attempting to use an unsafe value in a safe context.");}var h=function(){throw ui("unsafe","Attempting to use an unsafe value in a safe context.");},s,f;return i.has("$sanitize")&&(h=i.get("$sanitize")),s=o(),f={},f[nt.HTML]=o(s),f[nt.CSS]=o(s),f[nt.MEDIA_URL]=o(s),f[nt.URL]=o(f[nt.MEDIA_URL]),f[nt.JS]=o(s),f[nt.RESOURCE_URL]=o(f[nt.URL]),{trustAs:a,getTrusted:y,valueOf:v}}]}function pk(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(i,r){var u;if(n&&pt<8)throw ui("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=bt(nt);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=bi);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(nt,function(n,t){var i=a(t);u[wo("parse_as_"+i)]=function(t){return f(n,t)};u[wo("get_trusted_"+i)]=function(t){return e(n,t)};u[wo("trust_as_"+i)]=function(t){return o(n,t)}}),u}]}function wk(){this.$get=["$window","$document",function(n,t){var r={},h=n.nw&&n.nw.process,c=!h&&n.chrome&&(n.chrome.app&&n.chrome.app.runtime||!n.chrome.app&&n.chrome.runtime&&n.chrome.runtime.id),l=!c&&n.history&&n.history.pushState,e=it((/android (\d+)/.exec(a((n.navigator||{}).userAgent))||[])[1]),v=/Boxee/i.test((n.navigator||{}).userAgent),f=t[0]||{},i=f.body&&f.body.style,o=!1,s=!1;return i&&(o=!!("transition"in i||"webkitTransition"in i),s=!!("animation"in i||"webkitAnimation"in i)),{history:!!(l&&!(e<4)&&!v),hasEvent:function(n){if(n==="input"&&pt)return!1;if(u(r[n])){var t=f.createElement("div");r[n]="on"+n in t}return r[n]},csp:ti(),transitions:o,animations:s,android:e}}]}function bk(){var n;this.httpOptions=function(t){return t?(n=t,this):n};this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,i,r,f,e){function o(s,l){function y(n){return l||(n=al("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,n.status,n.statusText),t(n)),f.reject(n)}o.totalPendingRequests++;(!h(s)||u(i.get(s)))&&(s=e.getTrustedResourceUrl(s));var a=r.defaults&&r.defaults.transformResponse;return c(a)?a=a.filter(function(n){return n!==eo}):a===eo&&(a=null),r.get(s,v({cache:i,transformResponse:a},n)).finally(function(){o.totalPendingRequests--}).then(function(n){return i.put(s,n.data)},y)}return o.totalPendingRequests=0,o}]}function kk(){this.$get=["$rootScope","$browser","$location",function(n,i,r){var u={};return u.findBindings=function(n,i,r){var f=n.getElementsByClassName("ng-binding"),u=[];return t(f,function(n){var f=ft.element(n).data("$binding");f&&t(f,function(t){if(r){var f=new RegExp("(^|\\s)"+ie(i)+"(\\s|\\||$)");f.test(t)&&u.push(n)}else t.indexOf(i)!==-1&&u.push(n)})}),u},u.findModels=function(n,t,i){for(var u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r){var e=i?"=":"*=",o="["+u[r]+"model"+e+'"'+t+'"]',f=n.querySelectorAll(o);if(f.length)return f}},u.getLocation=function(){return r.url()},u.setLocation=function(t){t!==r.url()&&(r.url(t),n.$digest())},u.whenStable=function(n){i.notifyWhenNoOutstandingRequests(n)},u}]}function dk(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,u,f){function h(h,c,l){e(h)||(l=c,c=h,h=s);var w=ki(arguments,3),p=r(l)&&!l,a=(p?u:i).defer(),v=a.promise,y;return y=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(t){a.reject(t);f(t)}finally{delete o[v.$$timeoutId]}p||n.$apply()},c),v.$$timeoutId=y,o[y]=a,v}var o={};return h.cancel=function(n){if(!n)return!1;if(!n.hasOwnProperty("$$timeoutId"))throw vl("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(n.$$timeoutId))return!1;var i=n.$$timeoutId,r=o[i];return cl(r.promise),r.reject("canceled"),delete o[i],t.defer.cancel(i)},h}]}function yt(n){if(!h(n))return n;var t=n;return pt&&(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 gk(n){return ko(n,bo)}function nd(n){return ko(n,id())}function td(n){var t=[bo].concat(n.map(yt));return function(n){var i=yt(n);return t.some(ko.bind(null,i))}}function ko(n,t){return n=yt(n),t=yt(t),n.protocol===t.protocol&&n.host===t.host}function id(){return n.document.baseURI?n.document.baseURI:(tr||(tr=n.document.createElement("a"),tr.href=".",tr=tr.cloneNode(!1)),tr.href)}function rd(){this.$get=ht(n)}function yl(n){function e(n){try{return n.cookie||""}catch(t){return""}}function r(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},i="";return function(){var h,n,o,s,c,l=e(f);if(l!==i)for(i=l,h=i.split("; "),t={},o=0;o<h.length;o++)n=h[o],s=n.indexOf("="),s>0&&(c=r(n.substring(0,s)),u(t[c])&&(t[c]=r(n.substring(s+1))));return t}}function ud(){this.$get=yl}function pl(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",kl);i("date",ia);i("filter",fd);i("json",wd);i("limitTo",bd);i("lowercase",ra);i("number",dl);i("orderBy",fa);i("uppercase",ua)}function fd(){return function(n,t,i,r){if(!ni(n)){if(n==null)return n;throw l("filter")("notarray","Expected array but received: {0}",n);}r=r||"$";var e=go(t),u,f;switch(e){case"function":u=t;break;case"boolean":case"null":case"number":case"string":f=!0;case"object":u=ed(t,i,r,f);break;default:return n}return Array.prototype.filter.call(n,u)}}function ed(n,t,i,r){var f=o(n)&&i in n;return t===!0?t=lt:e(t)||(t=function(n,t){return u(n)?!1:n===null||t===null?n===t:o(t)||o(n)&&!ne(n)?!1:(n=a(""+n),t=a(""+t),n.indexOf(t)!==-1)}),function(u){return f&&!o(u)?yi(u,n[i],t,i,!1):yi(u,n,t,i,r)}}function yi(n,t,i,r,f,o){var y=go(n),a=go(t),s,h,l,v;if(a==="string"&&t.charAt(0)==="!")return!yi(n,t.substring(1),i,r,f);if(c(n))return n.some(function(n){return yi(n,t,i,r,f)});switch(y){case"object":if(f){for(s in n)if(s.charAt&&s.charAt(0)!=="$"&&yi(n[s],t,i,r,!0))return!0;return o?!1:yi(n,t,i,r,!1)}if(a==="object"){for(s in t)if((h=t[s],!e(h)&&!u(h))&&(l=s===r,v=l?n:n[s],!yi(v,h,i,r,l,l)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function go(n){return n===null?"null":typeof n}function kl(n){var t=n.NUMBER_FORMATS;return function(n,i,r){u(i)&&(i=t.CURRENCY_SYM);u(r)&&(r=t.PATTERNS[1].maxFrac);var f=i?/\u00A4/g:/\s*\u00A4\s*/g;return n==null?n:gl(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(f,i)}}function dl(n){var t=n.NUMBER_FORMATS;return function(n,i){return n==null?n:gl(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function od(n){var e=0,r,t,i,f,u;for((t=n.indexOf(bl))>-1&&(n=n.replace(bl,"")),(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)===ns;i++);if(i===(u=n.length))r=[0],t=1;else{for(u--;n.charAt(u)===ns;)u--;for(t-=i,r=[],f=0;i<=u;i++,f++)r[f]=+n.charAt(i)}return t>wl&&(r=r.splice(0,wl-1),e=t-1,t=1),{d:r,e:e,i:t}}function sd(n,t,i,r){var f=n.d,o=f.length-n.i,e,a,s,h,c,l;if(t=u(t)?Math.min(Math.max(i,o),r):+t,e=t+n.i,a=f[e],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=t+n,r[i]=t%10,Math.floor(t/10)},0);l&&(f.unshift(l),n.i++)}function gl(n,t,i,r,u){var s;if(!(h(n)||d(n))||isNaN(n))return"";var y=!isFinite(n),a=!1,p=Math.abs(n)+"",e="",o;if(y)e="∞";else{o=od(p);sd(o,u,t.minFrac,t.maxFrac);var f=o.d,c=o.i,v=o.e,l=[];for(a=f.reduce(function(n,t){return n&&!t},!0);c<0;)f.unshift(0),c++;for(c>0?l=f.splice(c,f.length):(l=f,f=[0]),s=[],f.length>=t.lgSize&&s.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)s.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&s.unshift(f.join(""));e=s.join(i);l.length&&(e+=r+l.join(""));v&&(e+="e+"+v)}return n<0&&!a?t.negPre+e+t.negSuf:t.posPre+e+t.posSuf}function cf(n,t,i,r){var u="";for((n<0||r&&n<=0)&&(r?n=-n+1:(n=-n,u="-")),n=""+n;n.length<t;)n=ns+n;return i&&(n=n.substr(n.length-t)),u+n}function tt(n,t,i,r,u){return i=i||0,function(f){var e=f["get"+n]();return(i>0||e>-i)&&(e+=i),e===0&&i===-12&&(e=12),cf(e,t,r,u)}}function uu(n,t,i){return function(r,u){var f=r["get"+n](),e=(i?"STANDALONE":"")+(t?"SHORT":""),o=cu(e+n);return u[o][f]}}function hd(n,t,i){var r=-1*i,u=r>=0?"+":"";return u+(cf(Math[r>0?"floor":"ceil"](r/60),2)+cf(Math.abs(r%60),2))}function na(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(t<=4?5:12)-t)}function cd(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function ta(n){return function(t){var i=na(t.getFullYear()),r=cd(t),u=+r-+i,f=1+Math.round(u/6048e5);return cf(f,n)}}function ld(n,t){return n.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function ts(n,t){return n.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function ad(n,t){return n.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function ia(n){function r(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=it(t[9]+t[10]),f=it(t[9]+t[11]));e.call(r,it(t[1]),it(t[2])-1,it(t[3]));var s=it(t[4]||0)-u,h=it(t[5]||0)-f,c=it(t[6]||0),l=Math.round(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,h,c,l),r}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u,f){var l="",e=[],s,c,o;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,h(i)&&(i=pd.test(i)?it(i):r(i)),d(i)&&(i=new Date(i)),!et(i)||!isFinite(i.getTime()))return i;while(u)c=yd.exec(u),c?(e=vr(e,c,1),u=e.pop()):(e.push(u),u=null);return o=i.getTimezoneOffset(),f&&(o=ee(f,o),i=oe(i,f,!0)),t(e,function(t){s=vd[t];l+=s?s(i,n.DATETIME_FORMATS,o):t==="''"?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function wd(){return function(n,t){return u(t)&&(t=2),yr(n,t)}}function bd(){return function(n,t,i){return(t=Math.abs(Number(t))===Infinity?Number(t):it(t),rt(t))?n:(d(n)&&(n=n.toString()),!ni(n))?n:(i=!i||isNaN(i)?0:it(i),i=i<0?Math.max(0,n.length+i):i,t>=0?is(n,i,i+t):i===0?is(n,t,n.length):is(n,Math.max(0,i+t),i))}}function is(n,t,i){return h(n)?n.slice(t,i):wi.call(n,t,i)}function fa(n){function r(t){return t.map(function(t){var r=1,i=bi,u;return e(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),i.constant&&(u=i(),i=function(n){return n[u]}))),{get:i,descending:r}})}function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function u(n){return e(n.valueOf)&&(n=n.valueOf(),t(n))?n:(ne(n)&&(n=n.toString(),t(n)),n)}function f(n,t){var i=typeof n;return n===null?i="null":i==="object"&&(n=u(n)),{value:n,type:i,index:t}}function i(n,t){var e=0,u=n.type,f=t.type,i,r;return u===f?(i=n.value,r=t.value,u==="string"?(i=i.toLowerCase(),r=r.toLowerCase()):u==="object"&&(o(i)&&(i=n.index),o(r)&&(r=t.index)),i!==r&&(e=i<r?-1:1)):e=u==="undefined"?1:f==="undefined"?-1:u==="null"?1:f==="null"?-1:u<f?-1:1,e}return function(n,t,u,o){function y(n,t){return{value:n,tieBreaker:{value:t,type:"number",index:t},predicateValues:s.map(function(i){return f(i.get(n),t)})}}function p(n,t){for(var u,r=0,f=s.length;r<f;r++)if(u=a(n.predicateValues[r],t.predicateValues[r]),u)return u*s[r].descending*h;return(a(n.tieBreaker,t.tieBreaker)||i(n.tieBreaker,t.tieBreaker))*h}if(n==null)return n;if(!ni(n))throw l("orderBy")("notarray","Expected array but received: {0}",n);c(t)||(t=[t]);t.length===0&&(t=["+"]);var s=r(t),h=u?-1:1,a=e(o)?o:i,v=Array.prototype.map.call(n,y);return v.sort(p),v.map(function(n){return n.value})}}function ir(n){return e(n)&&(n={link:n}),n.restrict=n.restrict||"AC",ht(n)}function kd(n,t){n.$name=t}function lf(n,t,i,r,u){this.$$controls=[];this.$error={};this.$$success={};this.$pending=undefined;this.$name=u(t.name||t.ngForm||"")(i);this.$dirty=!1;this.$pristine=!0;this.$valid=!0;this.$invalid=!1;this.$submitted=!1;this.$$parentForm=eu;this.$$element=n;this.$$animate=r;ca(this)}function ca(n){n.$$classCache={};n.$$classCache[iv]=!(n.$$classCache[su]=n.$$element.hasClass(su))}function la(n){function o(n,t,i,u){n[t]||(n[t]={});r(n[t],i,u)}function s(n,i,r,u){n[i]&&t(n[i],r,u);aa(n[i])&&(n[i]=undefined)}function i(n,t,i){i&&!n.$$classCache[t]?(n.$$animate.addClass(n.$$element,t),n.$$classCache[t]=!0):!i&&n.$$classCache[t]&&(n.$$animate.removeClass(n.$$element,t),n.$$classCache[t]=!1)}function f(n,t,r){t=t?"-"+fh(t,"-"):"";i(n,su+t,r===!0);i(n,iv+t,r===!1)}var e=n.clazz,r=n.set,t=n.unset;e.prototype.$setValidity=function(n,e,h){u(e)?o(this,"$pending",n,h):s(this,"$pending",n,h);kt(e)?e?(t(this.$error,n,h),r(this.$$success,n,h)):(r(this.$error,n,h),t(this.$$success,n,h)):(t(this.$error,n,h),t(this.$$success,n,h));this.$pending?(i(this,oa,!0),this.$valid=this.$invalid=undefined,f(this,"",null)):(i(this,oa,!1),this.$valid=aa(this.$error),this.$invalid=!this.$valid,f(this,"",this.$valid));var c;c=this.$pending&&this.$pending[n]?undefined:this.$error[n]?!1:this.$$success[n]?!0:null;f(this,n,c);this.$$parentForm.$setValidity(n,c,this)}}function aa(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function fs(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function fg(n,t,i,r,u,f){rr(n,t,i,r,u,f);fs(r)}function rr(n,t,i,r,f,e){var c=a(t[0].type),h,o,s,l;if(!f.android){h=!1;t.on("compositionstart",function(){h=!0});t.on("compositionupdate",function(n){(u(n.data)||n.data==="")&&(h=!1)});t.on("compositionend",function(){h=!1;s()})}if(s=function(n){if(o&&(e.defer.cancel(o),o=null),!h){var u=t.val(),f=n&&n.type;c==="password"||i.ngTrim&&i.ngTrim==="false"||(u=y(u));(r.$viewValue!==u||u===""&&r.$$hasNativeValidators)&&r.$setViewValue(u,f)}},f.hasEvent("input"))t.on("input",s);else{l=function(n,t,i){o||(o=e.defer(function(){o=null;t&&t.value===i||s(n)}))};t.on("keydown",function(n){var t=n.keyCode;t===91||15<t&&t<19||37<=t&&t<=40||l(n,this,this.value)});if(f.hasEvent("paste"))t.on("paste cut drop",l)}t.on("change",s);if(ba[c]&&r.$$hasNativeValidators&&c===i.type)t.on(ug,function(n){if(!o){var t=this[as],i=t.badInput,r=t.typeMismatch;o=e.defer(function(){o=null;(t.badInput!==i||t.typeMismatch!==r)&&s(n)})}});r.$render=function(){var n=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==n&&t.val(n)}}function eg(n,t){var i;if(et(n))return n;if(h(n)&&(rs.lastIndex=0,i=rs.exec(n),i)){var r=+i[1],s=+i[2],u=0,f=0,e=0,o=0,c=na(r),l=(s-1)*7;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}function af(n,i){return function(r,u){var e,f,o;if(et(r))return r;if(h(r)){if(r.charAt(0)==='"'&&r.charAt(r.length-1)==='"'&&(r=r.substring(1,r.length-1)),ng.test(r))return new Date(r);if(n.lastIndex=0,e=n.exec(r),e)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)}),o=new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,f.sss*1e3||0),f.yyyy<100&&o.setFullYear(f.yyyy),o}return NaN}}function ou(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 r(n)&&!et(n)?d(n)||undefined:n}function d(n,t){var u=h.$options.getOption("timezone"),r;return y&&y!==u&&(t=nh(t,ee(y))),r=i(n,t),!isNaN(r)&&u&&(r=oe(r,u)),r}var v,y,p,w;es(e,o,s,h,n);rr(e,o,s,h,c,l);h.$parsers.push(function(i){return h.$isEmpty(i)?null:t.test(i)?d(i,v):(h.$$parserName=n,undefined)});h.$formatters.push(function(n){if(n&&!et(n))throw hu("datefmt","Expected `{0}` to be a date",n);if(b(n)){v=n;var t=h.$options.getOption("timezone");return t&&(y=t,v=oe(v,t,!0)),a("date")(n,f,t)}return v=null,y=null,""});(r(s.min)||s.ngMin)&&(h.$validators.min=function(n){return!b(n)||u(p)||i(n)>=p},s.$observe("min",function(n){p=k(n);h.$validate()}));(r(s.max)||s.ngMax)&&(h.$validators.max=function(n){return!b(n)||u(w)||i(n)<=w},s.$observe("max",function(n){w=k(n);h.$validate()}))}}function es(n,t,i,r,u){var f=t[0],e=r.$$hasNativeValidators=o(f.validity);e&&r.$parsers.push(function(n){var i=t.prop(as)||{};return i.badInput||i.typeMismatch?(r.$$parserName=u,undefined):n})}function ka(n){n.$parsers.push(function(t){return n.$isEmpty(t)?null:rg.test(t)?parseFloat(t):(n.$$parserName="number",undefined)});n.$formatters.push(function(t){if(!n.$isEmpty(t)){if(!d(t))throw hu("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function ur(n){return r(n)&&!d(n)&&(n=parseFloat(n)),rt(n)?undefined:n}function os(n){return(n|0)===n}function ss(n){var t=n.toString(),r=t.indexOf("."),i;return r===-1?-1<n&&n<1&&(i=/e-(\d+)$/.exec(t),i)?Number(i[1]):0:t.length-r-1}function da(n,t,i){var r=Number(n),u=!os(r),f=!os(t),e=!os(i);if(u||f||e){var s=u?ss(r):0,h=f?ss(t):0,c=e?ss(i):0,l=Math.max(s,h,c),o=Math.pow(10,l);r=r*o;t=t*o;i=i*o;u&&(r=Math.round(r));f&&(t=Math.round(t));e&&(i=Math.round(i))}return(r-t)%i==0}function og(n,t,i,f,e,o){var s,h,c;es(n,t,i,f,"number");ka(f);rr(n,t,i,f,e,o);(r(i.min)||i.ngMin)&&(f.$validators.min=function(n,t){return f.$isEmpty(t)||u(s)||t>=s},i.$observe("min",function(n){s=ur(n);f.$validate()}));(r(i.max)||i.ngMax)&&(f.$validators.max=function(n,t){return f.$isEmpty(t)||u(h)||t<=h},i.$observe("max",function(n){h=ur(n);f.$validate()}));(r(i.step)||i.ngStep)&&(f.$validators.step=function(n,t){return f.$isEmpty(t)||u(c)||da(t,s||0,c)},i.$observe("step",function(n){c=ur(n);f.$validate()}))}function sg(n,t,i,f,e,o){function v(n,r){t.attr(n,i[n]);i.$observe(n,r)}function k(n){if(h=ur(n),!rt(f.$modelValue))if(s){var i=t.val();h>i&&(i=h,t.val(i));f.$setViewValue(i)}else f.$validate()}function d(n){if(c=ur(n),!rt(f.$modelValue))if(s){var i=t.val();c<i&&(t.val(c),i=c<h?h:c);f.$setViewValue(i)}else f.$validate()}function g(n){(l=ur(n),rt(f.$modelValue))||(s&&f.$viewValue!==t.val()?f.$setViewValue(t.val()):f.$validate())}es(n,t,i,f,"range");ka(f);rr(n,t,i,f,e,o);var s=f.$$hasNativeValidators&&t[0].type==="range",h=s?0:undefined,c=s?100:undefined,l=s?1:undefined,a=t[0].validity,p=r(i.min),w=r(i.max),b=r(i.step),y=f.$render;f.$render=s&&r(a.rangeUnderflow)&&r(a.rangeOverflow)?function(){y();f.$setViewValue(t.val())}:y;p&&(f.$validators.min=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(h)||t>=h},v("min",k));w&&(f.$validators.max=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(c)||t<=c},v("max",d));b&&(f.$validators.step=s?function(){return!a.stepMismatch}:function(n,t){return f.$isEmpty(t)||u(l)||da(t,h||0,l)},v("step",g))}function hg(n,t,i,r,u,f){rr(n,t,i,r,u,f);fs(r);r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||tg.test(i)}}function cg(n,t,i,r,u,f){rr(n,t,i,r,u,f);fs(r);r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||ig.test(i)}}function lg(n,t,i,r){var f=!i.ngTrim||y(i.ngTrim)!=="false",e;u(i.name)&&t.attr("name",lu());e=function(n){var u;t[0].checked&&(u=i.value,f&&(u=y(u)),r.$setViewValue(u,n&&n.type))};t.on("change",e);r.$render=function(){var n=i.value;f&&(n=y(n));t[0].checked=n===r.$viewValue};i.$observe("value",r.$render)}function ga(n,t,i,u,f){var e;if(r(u)){if(e=n(u),!e.constant)throw hu("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",i,u);return e(t)}return f}function ag(n,t,i,r,u,f,e,o){var s=ga(o,n,"ngTrueValue",i.ngTrueValue,!0),h=ga(o,n,"ngFalseValue",i.ngFalseValue,!1),c=function(n){r.$setViewValue(t[0].checked,n&&n.type)};t.on("change",c);r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n===!1};r.$formatters.push(function(n){return lt(n,s)});r.$parsers.push(function(n){return n?s:h})}function hs(n,i){function f(n,t){var u,i,f,r;if(!n||!n.length)return[];if(!t||!t.length)return n;u=[];n:for(i=0;i<n.length;i++){for(f=n[i],r=0;r<t.length;r++)if(f===t[r])continue n;u.push(f)}return u}function r(n){return n&&n.split(" ")}function e(n){var t=n;return c(n)?t=n.map(e).join(" "):o(n)&&(t=Object.keys(n).filter(function(t){return n[t]}).join(" ")),t}n="ngClass"+n;var u;return["$parse",function(o){return{restrict:"AC",link:function(s,h,c){function w(n){n=v(r(n),1);c.$addClass(n)}function b(n){n=v(r(n),-1);c.$removeClass(n)}function k(n,t){var i=r(n),u=r(t),e=f(i,u),o=f(u,i),s=v(e,-1),h=v(o,1);c.$addClass(h);c.$removeClass(s)}function v(n,i){var r=[];return t(n,function(n){(i>0||l[n])&&(l[n]=(l[n]||0)+i,l[n]===+(i>0)&&r.push(n))}),r.join(" ")}function d(n){n===i?w(a):b(a);y=n}function g(n){y===i&&k(a,n);a=n}var l=h.data("$classCounts"),y=!0,a;l||(l=p(),h.data("$classCounts",l));n!=="ngClass"&&(u||(u=o("$index",function(n){return n&1})),s.$watch(u,d));s.$watch(o(c[n],e),g)}}}]}function yf(n,t,i,r,u,f,e,o,s){this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$$rawModelValue=undefined;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=undefined;this.$name=s(i.name||"",!1)(n);this.$$parentForm=eu;this.$options=pf;this.$$updateEvents="";this.$$updateEventHandler=this.$$updateEventHandler.bind(this);this.$$parsedNgModel=u(i.ngModel);this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=null;this.$$parserValid=undefined;this.$$parserName="parse";this.$$currentValidationRunId=0;this.$$scope=n;this.$$rootScope=n.$root;this.$$attr=i;this.$$element=r;this.$$animate=f;this.$$timeout=e;this.$$parse=u;this.$$q=o;this.$$exceptionHandler=t;ca(this);cn(this)}function cn(n){n.$$scope.$watch(function(t){var i=n.$$ngModelGet(t);return i!==n.$modelValue&&(n.$modelValue===n.$modelValue||i===i)&&n.$$setModelValue(i),i})}function ls(n){this.$$options=n}function hv(n,i){t(i,function(t,i){r(n[i])||(n[i]=t)})}function pi(n,t){n.prop("selected",t);n.attr("selected",t)}var er={objectMaxDepth:5,urlErrorParamsEnabled:!0},kv=/^\/(.+)\/([a-z]*)$/,as="validity",st=Object.prototype.hasOwnProperty,a=function(n){return h(n)?n.toLowerCase():n},cu=function(n){return h(n)?n.toUpperCase():n},pt,f,or,wi=[].slice,dv=[].splice,gv=[].push,ut=Object.prototype.toString,vs=Object.getPrototypeOf,fi=l("ng"),ft=n.angular||(n.angular={}),bf,ny=0,rt,bs,y,ie,ti,ar,gs,oi,ih,uh,ce,sh,si,hh,ah,hi,kr,ge,no,gh,b,ff,to,ec,io,ro,ri,vc,pc,kc,vi,gc,iu,tl,ru,i,ao,vo,al,vl,g,bo,tr,ra,ua,ea,fu,us,ev,pf,ov,sv;pt=n.document.documentMode;rt=Number.isNaN||function(n){return n!==n};s.$inject=[];bi.$inject=[];bs=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;y=function(n){return h(n)?n.trim():n};ie=function(n){return n.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};ti=function(){function u(){try{return new Function(""),!1}catch(n){return!0}}var i,t;return r(ti.rules)||(i=n.document.querySelector("[ng-csp]")||n.document.querySelector("[data-ng-csp]"),i?(t=i.getAttribute("ng-csp")||i.getAttribute("data-ng-csp"),ti.rules={noUnsafeEval:!t||t.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!t||t.indexOf("no-inline-style")!==-1}):ti.rules={noUnsafeEval:u(),noInlineStyle:!1}),ti.rules};ar=function(){if(r(ar.name_))return ar.name_;for(var i,e=oi.length,u,f,t=0;t<e;++t)if(u=oi[t],i=n.document.querySelector("["+u.replace(":","\\:")+"jq]"),i){f=i.getAttribute(u+"jq");break}return ar.name_=f};gs=/:/g;oi=["ng-","data-ng-","ng:","x-ng-"];ih=hy(n.document);uh=/[A-Z]/g;ce=!1;var dt=1,py=2,ii=3,br=8,eh=9,ae=11;sh={full:"1.7.2",major:1,minor:7,dot:2,codeName:"extreme-compatiplication"};w.expando="ng339";si=w.cache={};hh=1;w._data=function(n){return this.cache[n[this.expando]]||{}};var gy=/-([a-z])/g,np=/^-ms-/,pu={mouseleave:"mouseout",mouseenter:"mouseover"},ve=l("jqLite");var ip=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,rp=/<|&#?\w+;/,up=/<([\w:-]+)/,fp=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,at={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,"",""]};at.optgroup=at.option;at.tbody=at.tfoot=at.colgroup=at.caption=at.thead;at.th=at.td;ah=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)};hi=w.prototype={ready:kh,toString:function(){var n=[];return t(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return n>=0?f(this[n]):f(this[this.length+n])},length:0,push:gv,sort:[].sort,splice:[].splice};kr={};t("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(n){kr[a(n)]=n});ge={};t("input,select,option,textarea,button,form,details".split(","),function(n){ge[n]=!0});no={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};t({data:ke,removeData:be,hasData:ep,cleanData:function(n){for(var t=0,i=n.length;t<i;t++)be(n[t]),ph(n[t])}},function(n,t){w[t]=n});t({data:ke,inheritedData:tf,scope:function(n){return f.data(n,"$scope")||tf(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return f.data(n,"$isolateScope")||f.data(n,"$isolateScopeNoTemplate")},controller:wh,injector:function(n){return tf(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:du,css:function(n,t,i){if(t=tp(t),r(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,i){var u,o=n.nodeType,f,e;if(o!==ii&&o!==py&&o!==br&&n.getAttribute)if(f=a(t),e=kr[f],r(i))i===null||i===!1&&e?n.removeAttribute(t):n.setAttribute(t,e?f:i);else return u=n.getAttribute(t),e&&u!==null&&(u=f),u===null?undefined:u},prop:function(n,t,i){if(r(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(u(t)){var i=n.nodeType;return i===dt||i===ii?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,i){if(u(i)){if(n.multiple&&ct(n)==="select"){var r=[];return t(n.options,function(n){n.selected&&r.push(n.value||n.text)}),r}return n.value}n.value=i},html:function(n,t){if(u(t))return n.innerHTML;bu(n,!0);n.innerHTML=t},empty:bh},function(n,t){w.prototype[t]=function(t,i){var r,h,e=this.length,f,l,s,c;if(n!==bh&&u(n.length===2&&n!==du&&n!==wh?t:i)){if(o(t)){for(r=0;r<e;r++)if(n===ke)n(this[r],t);else for(h in t)n(this[r],h,t[h]);return this}for(f=n.$dv,l=u(f)?Math.min(e,1):e,s=0;s<l;s++)c=n(this[s],t,i),f=f?f+c:c;return f}for(r=0;r<e;r++)n(this[r],t,i);return this}});t({removeData:be,on:function(n,t,i,u){if(r(u))throw ve("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(pe(n)){var f=ku(n,!0),e=f.events,o=f.handle;o||(o=f.handle=lp(n,e));for(var h=t.indexOf(" ")>=0?t.split(" "):[t],c=h.length,s=function(t,r,u){var f=e[t];f||(f=e[t]=[],f.specialHandlerWrapper=r,t==="$destroy"||u||n.addEventListener(t,o));f.push(i)};c--;)t=h[c],pu[t]?(s(pu[t],vp),s(t,undefined,!0)):s(t)}},off:ph,one:function(n,t,i){n=f(n);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;bu(n);t(new w(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===dt&&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===dt||r===ae)for(t=new w(t),i=0,u=t.length;i<u;i++)f=t[i],n.appendChild(f)},prepend:function(n,i){if(n.nodeType===dt){var r=n.firstChild;t(new w(i),function(t){n.insertBefore(t,r)})}},wrap:function(n,t){sp(n,f(t).eq(0).clone()[0])},remove:rf,detach:function(n){rf(n,!0)},after:function(n,t){var u=n,f=n.parentNode,i,e,r;if(f)for(t=new w(t),i=0,e=t.length;i<e;i++)r=t[i],f.insertBefore(r,u.nextSibling),u=r},addClass:nf,removeClass:gu,toggleClass:function(n,i,r){i&&t(i.split(" "),function(t){var i=r;u(i)&&(i=!du(n,t));(i?nf:gu)(n,t)})},parent:function(n){var t=n.parentNode;return t&&t.nodeType!==ae?t:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:we,triggerHandler:function(n,i,r){var u,f,e,o=i.type||i,h=ku(n),c=h&&h.events,l=c&&c[o];l&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:s,type:o,target:n},i.type&&(u=v(u,i)),f=bt(l),e=r?[u].concat(r):[u],t(f,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){w.prototype[t]=function(t,i,e){for(var o,s=0,h=this.length;s<h;s++)u(o)?(o=n(this[s],t,i,e),r(o)&&(o=f(o))):de(o,n(this[s],t,i,e));return r(o)?o:this}});w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off;gh=Object.create(null);nc.prototype={_idx:function(n){return n===this._lastKey?this._lastIndex:(this._lastKey=n,this._lastIndex=this._keys.indexOf(n),this._lastIndex)},_transformKey:function(n){return rt(n)?gh:n},get:function(n){n=this._transformKey(n);var t=this._idx(n);if(t!==-1)return this._values[t]},set:function(n,t){n=this._transformKey(n);var i=this._idx(n);i===-1&&(i=this._lastIndex=this._keys.length);this._keys[i]=n;this._values[i]=t},"delete":function(n){n=this._transformKey(n);var t=this._idx(n);return t===-1?!1:(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var uf=nc,pp=[function(){this.$get=[function(){return uf}]}],wp=/^([^(]+?)=>/,bp=/^[^(]*\(\s*([^)]*)\)/m,kp=/,/,dp=/^\s*(_?)(\S+?)\1\s*$/,gp=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,ci=l("$injector");dr.$$annotate=tw;var rc=l("$animate"),rw=1,uc="ng-animate";var ew=function(){this.$get=s},ow=function(){var n=new uf,i=[];this.$get=["$$AnimateRunner","$rootScope",function(r,u){function f(n,i,r){var u=!1;return i&&(i=h(i)?i.split(" "):c(i)?i:[],t(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=fw(i.attr("class")),r="",u="";t(f,function(n,t){var i=!!e[t];n!==i&&(n?r+=(r.length?" ":"")+t:u+=(u.length?" ":"")+t)});t(i,function(n){r&&nf(n,r);u&&gu(n,u)});n.delete(i)}});i.length=0}function o(t,r,o){var s=n.get(t)||{},h=f(s,r,!0),c=f(s,o,!1);(h||c)&&(n.set(t,s),i.push(t),i.length===1&&u.$$postDigest(e))}return{enabled:s,on:s,off:s,pin:s,push:function(n,t,i,u){u&&u();i=i||{};i.from&&n.css(i.from);i.to&&n.css(i.to);(i.addClass||i.removeClass)&&o(n,i.addClass,i.removeClass);var f=new r;return f.complete(),f}}}]},sw=["$provide",function(n){var r=this,t=null,i=null;this.$$registeredAnimations=Object.create(null);this.register=function(t,i){if(t&&t.charAt(0)!==".")throw rc("notcsel","Expecting class selector starting with '.' got '{0}'.",t);var u=t+"-animation";r.$$registeredAnimations[t.substr(1)]=u;n.factory(u,i)};this.customFilter=function(n){return arguments.length===1&&(i=e(n)?n:null),i};this.classNameFilter=function(n){if(arguments.length===1&&(t=n instanceof RegExp?n:null,t)){var i=new RegExp("[(\\s|\\/)]"+uc+"[(\\s|\\/)]");if(i.test(t.toString())){t=null;throw rc("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',uc);}}return t};this.$get=["$$animateQueue",function(n){function t(n,t,i){if(i){var r=uw(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.cancel&&n.cancel()},enter:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"enter",li(e))},move:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"move",li(e))},leave:function(t,i){return n.push(t,"leave",li(i),function(){t.remove()})},addClass:function(t,i,r){return r=li(r),r.addClass=gr(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return r=li(r),r.removeClass=gr(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return u=li(u),u.addClass=gr(u.addClass,i),u.removeClass=gr(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return f=li(f),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=gr(f.tempClasses,u),n.push(t,"animate",f)}}}]}],hw=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)}}}]},cw=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(n,i,r,u,f){function e(n){this.setHost(n);var t=r(),i=function(n){f(n,0,!1)};this._doneCallbacks=[];this._tick=function(n){u()?i(n):t(n)};this._state=0}var h=0,c=1,o=2;return e.chain=function(n,t){function r(){if(i===n.length){t(!0);return}n[i](function(n){if(n===!1){t(!1);return}i++;r()})}var i=0;r()},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){this._state===o?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){t===!1?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;t._state===h&&(t._state=c,t._tick(function(){t._resolve(n)}))},_resolve:function(n){this._state!==o&&(t(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=o)}},e}]},lw=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(n,t,i){return function(t,r){function o(){return n(function(){s();e||f.complete();e=!0}),f}function s(){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)}var u=r||{},e,f;return u.$$prepared||(u=ei(u)),u.cleanupStyles&&(u.from=u.to=null),u.from&&(t.css(u.from),u.from=null),f=new i,{start:o,end:o}}}]};b=l("$compile");ff=new ww;fc.$inject=["$provide","$$sanitizeUriProvider"];ef.prototype.isFirstChange=function(){return this.previousValue===ff};to=/^((?:x|data)[:\-_])/i;ec=/[:\-_]+(.)/g;io=l("$controller");ro=/^(\S+)(\s+as\s+([\w$]+))?$/;var tb=function(){this.$get=["$document",function(n){return function(t){return t?!t.nodeType&&t instanceof f&&(t=t[0]):t=n[0].body,t.offsetWidth+1}}]},hc="application/json",uo={"Content-Type":hc+";charset=utf-8"},ib=/^\[|^\{(?!\{)/,rb={"[":/]$/,"{":/}$/},ub=/^\)]\}',?\n/,of=l("$http");ri=ft.$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())};vc=l("$interval");var yb=function(){this.$get=function(){function i(n){var t=function(n){t.data=n;t.called=!0};return t.id=n,t}var t=ft.callbacks,n={};return{createCallback:function(){var r="_"+(t.$$counter++).toString(36),u="angular.callbacks."+r,f=i(r);return n[u]=t[r]=f,u},wasCalled:function(t){return n[t].called},getResponse:function(t){return n[t].data},removeCallback:function(i){var r=n[i];delete t[r.id];delete n[i]}}}},pb=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,wb={http:80,https:443,ftp:21},nu=l("$location");pc=/^\s*[\\/]{2,}/;kc={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:sf("$$absUrl"),url:function(n){if(u(n))return this.$$url;var t=pb.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:sf("$$protocol"),host:sf("$$host"),port:sf("$$port"),path:dc("$$path",function(n){return n=n!==null?n.toString():"",n.charAt(0)==="/"?n:"/"+n}),search:function(n,i){switch(arguments.length){case 0:return this.$$search;case 1:if(h(n)||d(n))n=n.toString(),this.$$search=se(n);else if(o(n))n=ei(n,{}),t(n,function(t,i){t==null&&delete n[i]}),this.$$search=n;else throw nu("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");break;default:u(i)||i===null?delete this.$$search[n]:this.$$search[n]=i}return this.$$compose(),this},hash:dc("$$hash",function(n){return n!==null?n.toString():""}),replace:function(){return this.$$replace=!0,this}};t([bc,lo,co],function(n){n.prototype=Object.create(kc);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==co||!this.$$html5)throw nu("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=u(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});vi=l("$parse");gc={}.constructor.prototype.valueOf;iu=p();t("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){iu[n]=!0});tl={n:"\n",f:"\f",r:"\r",t:"\t",v:'\v',"'":"'",'"':'"'};ru=function(n){this.options=n};ru.prototype={constructor:ru,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=iu[t],f=iu[i],e=iu[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 t.indexOf(n)!==-1},peek:function(n){var t=n||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(n){return"0"<=n&&n<="9"&&typeof n=="string"},isWhitespace:function(n){return n===" "||n==="\r"||n==="\t"||n==="\n"||n==='\v'||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 n.length===1?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 u=r(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw vi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",n,u,this.text);},readNumber:function(){for(var n="",r=this.index,t,i;this.index<this.text.length;){if(t=a(this.text.charAt(this.index)),t==="."||this.isNumber(t))n+=t;else if(i=this.peek(),t==="e"&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&n.charAt(n.length-1)==="e")n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||n.charAt(n.length-1)!=="e")break;else 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,o;this.index++;for(var i="",e=n,u=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),e+=t,u)t==="u"?(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))):(o=tl[t],i=i+(o||t)),u=!1;else if(t==="\\")u=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:e,constant:!0,value:i});return}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 this.tokens.length!==0&&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();if(this.expect("=")){if(!ul(n))throw vi("lval","Trying to assign a value to a non l-value");n={type:i.AssignmentExpression,left:n,right:this.assignment(),operator:"="}}return n},ternary:function(){var n=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:i.ConditionalExpression,test:n,alternate:t,consequent:r}):n},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 n=this.relational(),t;t=this.expect("==","!=","===","!==");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var n=this.unary(),t;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=ei(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 t=[],n;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 vi("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(this.tokens.length===0)throw vi("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(this.tokens.length===0)throw vi("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):!1},selfReferential:{"this":{type:i.ThisExpression},$locals:{type:i.LocalsExpression}}};ao=1;vo=2;el.prototype={compile:function(n){var i=this,r,f,u,e,o,s;return this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},k(n,i.$filter),r="",this.stage="assign",(f=fl(n))&&(this.state.computing="assign",u=this.nextId(),this.recurse(f,u),this.return_(u),r="fn.assign="+this.generateFunction("assign","s,v,l")),e=rl(n.body),i.stage="inputs",t(e,function(n,t){var r="fn"+t,u;i.state[r]={vars:[],body:[],own:{}};i.state.computing=r;u=i.nextId();i.recurse(n,u);i.return_(u);i.state.inputs.push({name:r,isPure:n.isPure});n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(n),o='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",o)(this.$filter,nl,tk,il),this.state=this.stage=undefined,s},USE:"use",STRICT:"strict",watchFns:function(){var n=[],i=this.state.inputs,r=this;return t(i,function(t){n.push("var "+t.name+"="+r.generateFunction(t.name,"s"));t.isPure&&n.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),i.length&&n.push("fn.inputs=["+i.map(function(n){return n.name}).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,u,f,e,o,h){var l,a,c=this,y,v,p;if(e=e||s,!h&&r(n.watchId)){u=u||this.nextId();this.if_("i",this.lazyAssign(u,this.computedMember("i",n.watchId)),this.lazyRecurse(n,u,f,e,o,!0));return}switch(n.type){case i.Program:t(n.body,function(t,i){c.recurse(t.expression,undefined,undefined,function(n){a=n});i!==n.body.length-1?c.current().body.push(a,";"):c.return_(a)});break;case i.Literal:v=this.escape(n.value);this.assign(u,v);e(u||v);break;case i.UnaryExpression:this.recurse(n.argument,undefined,undefined,function(n){a=n});v=n.operator+"("+this.ifDefined(a,0)+")";this.assign(u,v);e(v);break;case i.BinaryExpression:this.recurse(n.left,undefined,undefined,function(n){l=n});this.recurse(n.right,undefined,undefined,function(n){a=n});v=n.operator==="+"?this.plus(l,a):n.operator==="-"?this.ifDefined(l,0)+n.operator+this.ifDefined(a,0):"("+l+")"+n.operator+"("+a+")";this.assign(u,v);e(v);break;case i.LogicalExpression:u=u||this.nextId();c.recurse(n.left,u);c.if_(n.operator==="&&"?u:c.not(u),c.lazyRecurse(n.right,u));e(u);break;case i.ConditionalExpression:u=u||this.nextId();c.recurse(n.test,u);c.if_(u,c.lazyRecurse(n.alternate,u),c.lazyRecurse(n.consequent,u));e(u);break;case i.Identifier:u=u||this.nextId();f&&(f.context=c.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);c.if_(c.stage==="inputs"||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_(c.stage==="inputs"||"s",function(){o&&o!==1&&c.if_(c.isNull(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}"));c.assign(u,c.nonComputedMember("s",n.name))})},u&&c.lazyAssign(u,c.nonComputedMember("l",n.name)));e(u);break;case i.MemberExpression:l=f&&(f.context=this.nextId())||this.nextId();u=u||this.nextId();c.recurse(n.object,l,undefined,function(){c.if_(c.notNull(l),function(){n.computed?(a=c.nextId(),c.recurse(n.property,a),c.getStringValue(a),o&&o!==1&&c.if_(c.not(c.computedMember(l,a)),c.lazyAssign(c.computedMember(l,a),"{}")),v=c.computedMember(l,a),c.assign(u,v),f&&(f.computed=!0,f.name=a)):(o&&o!==1&&c.if_(c.isNull(c.nonComputedMember(l,n.property.name)),c.lazyAssign(c.nonComputedMember(l,n.property.name),"{}")),v=c.nonComputedMember(l,n.property.name),c.assign(u,v),f&&(f.computed=!1,f.name=n.property.name))},function(){c.assign(u,"undefined")});e(u)},!!o);break;case i.CallExpression:u=u||this.nextId();n.filter?(a=c.filter(n.callee.name),y=[],t(n.arguments,function(n){var t=c.nextId();c.recurse(n,t);y.push(t)}),v=a+"("+y.join(",")+")",c.assign(u,v),e(u)):(a=c.nextId(),l={},y=[],c.recurse(n.callee,a,l,function(){c.if_(c.notNull(a),function(){t(n.arguments,function(t){c.recurse(t,n.constant?undefined:c.nextId(),undefined,function(n){y.push(n)})});v=l.name?c.member(l.context,l.name,l.computed)+"("+y.join(",")+")":a+"("+y.join(",")+")";c.assign(u,v)},function(){c.assign(u,"undefined")});e(u)}));break;case i.AssignmentExpression:a=this.nextId();l={};this.recurse(n.left,undefined,l,function(){c.if_(c.notNull(l.context),function(){c.recurse(n.right,a);v=c.member(l.context,l.name,l.computed)+n.operator+a;c.assign(u,v);e(u||v)})},1);break;case i.ArrayExpression:y=[];t(n.elements,function(t){c.recurse(t,n.constant?undefined:c.nextId(),undefined,function(n){y.push(n)})});v="["+y.join(",")+"]";this.assign(u,v);e(u||v);break;case i.ObjectExpression:y=[];p=!1;t(n.properties,function(n){n.computed&&(p=!0)});p?(u=u||this.nextId(),this.assign(u,"{}"),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;a=c.nextId();c.recurse(n.value,a);c.assign(c.member(u,l,n.computed),a)})):(t(n.properties,function(t){c.recurse(t.value,n.constant?undefined:c.nextId(),undefined,function(n){y.push(c.escape(t.key.type===i.Identifier?t.key.name:""+t.key.value)+":"+n)})}),v="{"+y.join(",")+"}",this.assign(u,v));e(u||v);break;case i.ThisExpression:this.assign(u,"s");e(u||"s");break;case i.LocalsExpression:this.assign(u,"l");e(u||"l");break;case i.NGValueParameter:this.assign(u,"v");e(u||"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(n===!0)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+")"},isNull:function(n){return n+"==null"},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)},getStringValue:function(n){this.assign(n,"getStringValue("+n+")")},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(d(n))return n.toString();if(n===!0)return"true";if(n===!1)return"false";if(n===null)return"null";if(typeof n=="undefined")return"undefined";throw vi("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]}};ol.prototype={compile:function(n){var f=this,h,e,o,i,r,u;return k(n,f.$filter),(h=fl(n))&&(e=this.recurse(h)),o=rl(n.body),o&&(i=[],t(o,function(n,t){var r=f.recurse(n);r.isPure=n.isPure;n.input=r;i.push(r);n.watchId=t})),r=[],t(n.body,function(n){r.push(f.recurse(n.expression))}),u=n.body.length===0?s:n.body.length===1?r[0]:function(n,i){var u;return t(r,function(t){u=t(n,i)}),u},e&&(u.assign=function(n,t,i){return e(n,i,t)}),i&&(u.inputs=i),u},recurse:function(n,r,u){var o,e,s=this,f;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 e=this.recurse(n.argument),this["unary"+n.operator](e,r);case i.BinaryExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.LogicalExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),r);case i.Identifier:return s.identifier(n.name,r,u);case i.MemberExpression:return o=this.recurse(n.object,!1,!!u),n.computed||(e=n.property.name),n.computed&&(e=this.recurse(n.property)),n.computed?this.computedMember(o,e,r,u):this.nonComputedMember(o,e,r,u);case i.CallExpression:return f=[],t(n.arguments,function(n){f.push(s.recurse(n))}),n.filter&&(e=this.$filter(n.callee.name)),n.filter||(e=this.recurse(n.callee,!0)),n.filter?function(n,t,i,u){for(var s,h=[],o=0;o<f.length;++o)h.push(f[o](n,t,i,u));return s=e.apply(undefined,h,u),r?{context:undefined,name:undefined,value:s}:s}:function(n,t,i,u){var s=e(n,t,i,u),h,c,o;if(s.value!=null){for(c=[],o=0;o<f.length;++o)c.push(f[o](n,t,i,u));h=s.value.apply(s.context,c)}return r?{value:h}:h};case i.AssignmentExpression:return o=this.recurse(n.left,!0,1),e=this.recurse(n.right),function(n,t,i,u){var s=o(n,t,i,u),f=e(n,t,i,u);return s.context[s.name]=f,r?{value:f}:f};case i.ArrayExpression:return f=[],t(n.elements,function(n){f.push(s.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:s.recurse(n.key),computed:!0,value:s.recurse(n.value)}):f.push({key:n.key.type===i.Identifier?n.key.name:""+n.key.value,computed:!1,value:s.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,u,f,e){var o=n(i,u,f,e);return o=r(o)?+o:0,t?{value:o}:o}},"unary-":function(n,t){return function(i,u,f,e){var o=n(i,u,f,e);return o=r(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 s=n(r,u,f,e),h=t(r,u,f,e),o=il(s,h);return i?{value:o}:o}},"binary-":function(n,t,i){return function(u,f,e,o){var s=n(u,f,e,o),h=t(u,f,e,o),c=(r(s)?s:0)-(r(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:undefined,name:undefined,value:n}:n}},identifier:function(n,t,i){return function(r,u){var f=u&&n in u?u:r,e;return i&&i!==1&&f&&f[n]==null&&(f[n]={}),e=f?f[n]:undefined,t?{context:f,name:n,value:e}:e}},computedMember:function(n,t,i,r){return function(u,f,e,o){var h=n(u,f,e,o),s,c;return h!=null&&(s=t(u,f,e,o),s=nl(s),r&&r!==1&&h&&!h[s]&&(h[s]={}),c=h[s]),i?{context:h,name:s,value:c}:c}},nonComputedMember:function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o),h;return r&&r!==1&&s&&s[t]==null&&(s[t]={}),h=s!=null?s[t]:undefined,i?{context:s,name:t,value:h}:h}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};hf.prototype={constructor:hf,parse:function(n){var t=this.getAst(n),i=this.astCompiler.compile(t.ast);return i.literal=uk(t.ast),i.constant=fk(t.ast),i.oneTime=t.oneTime,i},getAst:function(n){var t=!1;return n=n.trim(),n.charAt(0)===":"&&n.charAt(1)===":"&&(t=!0,n=n.substring(2)),{ast:this.ast.ast(n),oneTime:t}}};var ui=l("$sce"),nt={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ak=/_([a-z])/g;al=l("$templateRequest");vl=l("$timeout");g=n.document.createElement("a");bo=yt(n.location.href);yl.$inject=["$document"];pl.$inject=["$provide"];var wl=22,bl=".",ns="0";kl.$inject=["$locale"];dl.$inject=["$locale"];var vd={yyyy:tt("FullYear",4,0,!1,!0),yy:tt("FullYear",2,0,!0,!0),y:tt("FullYear",1,0,!1,!0),MMMM:uu("Month"),MMM:uu("Month",!0),MM:tt("Month",2,1),M:tt("Month",1,1),LLLL:uu("Month",!1,!0),dd:tt("Date",2),d:tt("Date",1),HH:tt("Hours",2),H:tt("Hours",1),hh:tt("Hours",2,-12),h:tt("Hours",1,-12),mm:tt("Minutes",2),m:tt("Minutes",1),ss:tt("Seconds",2),s:tt("Seconds",1),sss:tt("Milliseconds",3),EEEE:uu("Day"),EEE:uu("Day",!0),a:ld,Z:hd,ww:ta(2),w:ta(1),G:ts,GG:ts,GGG:ts,GGGG:ad},yd=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,pd=/^-?\d+$/;ia.$inject=["$locale"];ra=ht(a);ua=ht(cu);fa.$inject=["$parse"];ea=ht({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if(t[0].nodeName.toLowerCase()==="a"){var i=ut.call(t.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});fu={};t(kr,function(n,t){function r(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if(n!=="multiple"){var i=vt("ng-"+t),u=r;n==="checked"&&(u=function(n,t,u){u.ngModel!==u[i]&&r(n,t,u)});fu[i]=function(){return{restrict:"A",priority:100,link:u}}}});t(no,function(n,t){fu[t]=function(){return{priority:100,link:function(n,i,r){if(t==="ngPattern"&&r.ngPattern.charAt(0)==="/"){var u=r.ngPattern.match(kv);if(u){r.$set("ngPattern",new RegExp(u[1],u[2]));return}}n.$watch(r[t],function(n){r.$set(t,n)})}}}});t(["src","srcset","href"],function(n){var t=vt("ng-"+n);fu[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;n==="href"&&ut.call(r.prop("href"))==="[object SVGAnimatedString]"&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){if(!t){n==="href"&&u.$set(f,null);return}u.$set(f,t);pt&&e&&r.prop(e,u[f])})}}}});var eu={$addControl:s,$$renameControl:kd,$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s,$setSubmitted:s,$$setSubmitted:s},oa="ng-pending",sa="ng-submitted";lf.$inject=["$element","$attrs","$scope","$animate","$interpolate"];lf.prototype={$rollbackViewValue:function(){t(this.$$controls,function(n){n.$rollbackViewValue()})},$commitViewValue:function(){t(this.$$controls,function(n){n.$commitViewValue()})},$addControl:function(n){gi(n.$name,"input");this.$$controls.push(n);n.$name&&(this[n.$name]=n);n.$$parentForm=this},$$renameControl:function(n,t){var i=n.$name;this[i]===n&&delete this[i];this[t]=n;n.$name=t},$removeControl:function(n){n.$name&&this[n.$name]===n&&delete this[n.$name];t(this.$pending,function(t,i){this.$setValidity(i,null,n)},this);t(this.$error,function(t,i){this.$setValidity(i,null,n)},this);t(this.$$success,function(t,i){this.$setValidity(i,null,n)},this);lr(this.$$controls,n);n.$$parentForm=eu},$setDirty:function(){this.$$animate.removeClass(this.$$element,fr);this.$$animate.addClass(this.$$element,vf);this.$dirty=!0;this.$pristine=!1;this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,fr,vf+" "+sa);this.$dirty=!1;this.$pristine=!0;this.$submitted=!1;t(this.$$controls,function(n){n.$setPristine()})},$setUntouched:function(){t(this.$$controls,function(n){n.$setUntouched()})},$setSubmitted:function(){for(var n=this;n.$$parentForm&&n.$$parentForm!==eu;)n=n.$$parentForm;n.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,sa);this.$submitted=!0;t(this.$$controls,function(n){n.$$setSubmitted&&n.$$setSubmitted()})}};la({clazz:lf,set:function(n,t,i){var r=n[t],u;r?(u=r.indexOf(i),u===-1&&r.push(i)):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(lr(r,i),r.length===0&&delete n[t])}});var ha=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:lf,compile:function(i,u){i.addClass(fr).addClass(su);var f=u.name?"name":n&&u.ngForm?"ngForm":!1;return{pre:function(n,i,u,e){var o=e[0],c,l,h;if(!("action"in u)){c=function(t){n.$apply(function(){o.$commitViewValue();o.$setSubmitted()});t.preventDefault()};i[0].addEventListener("submit",c);i.on("$destroy",function(){t(function(){i[0].removeEventListener("submit",c)},0,!1)})}l=e[1]||o.$$parentForm;l.$addControl(o);h=f?r(o.$name):s;f&&(h(n,o),u.$observe(f,function(t){o.$name!==t&&(h(n,undefined),o.$$parentForm.$$renameControl(o,t),h=r(o.$name),h(n,o))}));i.on("$destroy",function(){o.$$parentForm.$removeControl(o);h(n,undefined);v(o,eu)})}}}}}]},dd=ha(),gd=ha(!0);var ng=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,tg=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ig=/^(?=.{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])?)*$/,rg=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,va=/^(\d{4,})-(\d{2})-(\d{2})$/,ya=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,rs=/^(\d{4,})-W(\d\d)$/,pa=/^(\d{4,})-(\d\d)$/,wa=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ug="keydown wheel mousedown",ba=p();t("date,datetime-local,month,time,week".split(","),function(n){ba[n]=!0});us={text:fg,date:ou("date",va,af(va,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ou("datetimelocal",ya,af(ya,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:ou("time",wa,af(wa,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:ou("week",rs,eg,"yyyy-Www"),month:ou("month",pa,af(pa,["yyyy","MM"]),"yyyy-MM"),number:og,url:hg,email:cg,radio:lg,range:sg,checkbox:ag,hidden:s,button:s,submit:s,reset:s,file:s};var nv=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(us[a(e.type)]||us.text)(u,f,e,o[0],t,n,i,r)}}}}],vg=/^(true|false|\d+)$/,yg=function(){function n(n,t,i){var u=r(i)?i:pt===9?"":null;n.prop("value",u);t.$set("value",i)}return{restrict:"A",priority:100,compile:function(t,i){return vg.test(i.ngValue)?function(t,i,r){var u=t.$eval(r.ngValue);n(i,r,u)}:function(t,i,r){t.$watch(r.ngValue,function(t){n(i,r,t)})}}}},pg=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,i,r){n.$$addBindingInfo(i,r.ngBind);i=i[0];t.$watch(r.ngBind,function(n){i.textContent=le(n)})}}}}],wg=["$interpolate","$compile",function(n,t){return{compile:function(i){return t.$$addBindingClass(i),function(i,r,f){var e=n(r.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(r,e.expressions);r=r[0];f.$observe("ngBindTemplate",function(n){r.textContent=u(n)?"":n})}}}}],bg=["$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)||"")})}}}}],kg=ht({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}});var dg=hs("",!0),gg=hs("Odd",0),nn=hs("Even",1),tn=ir({compile:function(n,t){t.$set("ngCloak",undefined);n.removeClass("ng-cloak")}}),rn=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],tv={},un={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=vt("ng-"+n);tv[t]=["$parse","$rootScope",function(i,r){return{restrict:"A",compile:function(u,f){var e=i(f[t]);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};un[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var fn=["$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=yu(h.clone),n.leave(o).done(function(n){n!==!1&&(o=null)}),h=null))})}}}],en=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ft.noop,compile:function(u,f){var o=f.ngInclude||f.src,s=f.onload||"",e=f.autoscroll;return function(u,f,h,c,l){var p=0,a,v,y,w=function(){v&&(v.remove(),v=null);a&&(a.$destroy(),a=null);y&&(i.leave(y).done(function(n){n!==!1&&(v=null)}),v=y,y=null)};u.$watch(o,function(o){var v=function(n){n!==!1&&r(e)&&(!e||u.$eval(e))&&t()},h=++p;o?(n(o,!0).then(function(n){var t,r;u.$$destroyed||h===p&&(t=u.$new(),c.template=n,r=l(t,function(n){w();i.enter(n,null,f).done(v)}),a=t,y=r,a.$emit("$includeContentLoaded",o),u.$eval(s))},function(){u.$$destroyed||h===p&&(w(),u.$emit("$includeContentError",o))}),u.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],on=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){if(ut.call(r[0]).match(/SVG/)){r.empty();t(lh(f.template,n.document).childNodes)(i,function(n){r.append(n)},{futureParentElement:r});return}r.html(f.template);t(r.contents())(i)}}}],sn=ir({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),hn=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,i,r,f){var e=r.ngList||", ",o=r.ngTrim!=="false",s=o?y(e):e,h=function(n){if(!u(n)){var i=[];return n&&t(n.split(s),function(n){n&&i.push(o?y(n):n)}),i}};f.$parsers.push(h);f.$formatters.push(function(n){return c(n)?n.join(e):undefined});f.$isEmpty=function(n){return!n||!n.length}}}},su="ng-valid",iv="ng-invalid",fr="ng-pristine",vf="ng-dirty",cs="ng-untouched",rv="ng-touched",uv="ng-empty",fv="ng-not-empty",hu=l("ngModel");yf.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"];yf.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var n=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var i=this.$$parsedNgModel(t);return e(i)&&(i=n(t)),i};this.$$ngModelSet=function(n,i){e(this.$$parsedNgModel(n))?t(n,{$$$p:i}):this.$$parsedNgModelAssign(n,i)}}else if(!this.$$parsedNgModel.assign)throw hu("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,wt(this.$$element));},$render:s,$isEmpty:function(n){return u(n)||n===""||n===null||n!==n},$$updateEmptyClasses:function(n){this.$isEmpty(n)?(this.$$animate.removeClass(this.$$element,fv),this.$$animate.addClass(this.$$element,uv)):(this.$$animate.removeClass(this.$$element,uv),this.$$animate.addClass(this.$$element,fv))},$setPristine:function(){this.$dirty=!1;this.$pristine=!0;this.$$animate.removeClass(this.$$element,vf);this.$$animate.addClass(this.$$element,fr)},$setDirty:function(){this.$dirty=!0;this.$pristine=!1;this.$$animate.removeClass(this.$$element,fr);this.$$animate.addClass(this.$$element,vf);this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1;this.$untouched=!0;this.$$animate.setClass(this.$$element,cs,rv)},$setTouched:function(){this.$touched=!0;this.$untouched=!1;this.$$animate.setClass(this.$$element,rv,cs)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render()},$validate:function(){if(!rt(this.$modelValue)){var i=this.$$lastCommittedViewValue,t=this.$$rawModelValue,r=this.$valid,u=this.$modelValue,f=this.$options.getOption("allowInvalid"),n=this;this.$$runValidators(t,i,function(i){f||r===i||(n.$modelValue=i?t:undefined,n.$modelValue!==u&&n.$$writeModelToScope())})}},$$runValidators:function(n,i,r){function c(){var n=f.$$parserName;if(u(f.$$parserValid))e(n,null);else return f.$$parserValid||(t(f.$validators,function(n,t){e(t,null)}),t(f.$asyncValidators,function(n,t){e(t,null)})),e(n,f.$$parserValid),f.$$parserValid;return!0}function l(){var r=!0;return(t(f.$validators,function(t,u){var f=Boolean(t(n,i));r=r&&f;e(u,f)}),!r)?(t(f.$asyncValidators,function(n,t){e(t,null)}),!1):!0}function a(){var r=[],u=!0;t(f.$asyncValidators,function(t,f){var o=t(n,i);if(!au(o))throw hu("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",o);e(f,undefined);r.push(o.then(function(){e(f,!0)},function(){u=!1;e(f,!1)}))});r.length?f.$$q.all(r).then(function(){o(u)},s):o(!0)}function e(n,t){h===f.$$currentValidationRunId&&f.$setValidity(n,t)}function o(n){h===f.$$currentValidationRunId&&r(n)}this.$$currentValidationRunId++;var h=this.$$currentValidationRunId,f=this;if(!c()){o(!1);return}if(!l()){o(!1);return}a()},$commitViewValue:function(){var n=this.$viewValue;(this.$$timeout.cancel(this.$$pendingDebounce),this.$$lastCommittedViewValue!==n||n===""&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(n),this.$$lastCommittedViewValue=n,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){i.$modelValue!==f&&i.$$writeModelToScope()}var o=this.$$lastCommittedViewValue,n=o,i=this,t,f,r;if(this.$$parserValid=u(n)?undefined:!0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(t=0;t<this.$parsers.length;t++)if(n=this.$parsers[t](n),u(n)){this.$$parserValid=!1;break}rt(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));f=this.$modelValue;r=this.$options.getOption("allowInvalid");this.$$rawModelValue=n;r&&(this.$modelValue=n,e());this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){r||(i.$modelValue=t?n:undefined,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue);t(this.$viewChangeListeners,function(n){try{n()}catch(t){this.$$exceptionHandler(t)}},this)},$setViewValue:function(n,t){this.$viewValue=n;this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(n){var t=this.$options.getOption("debounce"),i;d(t[n])?t=t[n]:d(t["default"])&&this.$options.getOption("updateOn").indexOf(n)===-1?t=t["default"]:d(t["*"])&&(t=t["*"]);this.$$timeout.cancel(this.$$pendingDebounce);i=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){i.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){i.$commitViewValue()})},$overrideModelOptions:function(n){this.$options=this.$options.createChild(n);this.$$setUpdateOnEvents()},$processModelValue:function(){var n=this.$$format();this.$viewValue!==n&&(this.$$updateEmptyClasses(n),this.$viewValue=this.$$lastCommittedViewValue=n,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,s))},$$format:function(){for(var t=this.$formatters,i=t.length,n=this.$modelValue;i--;)n=t[i](n);return n},$$setModelValue:function(n){this.$modelValue=this.$$rawModelValue=n;this.$$parserValid=undefined;this.$processModelValue()},$$setUpdateOnEvents:function(){if(this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents)this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(n){this.$$debounceViewValueCommit(n&&n.type)}};la({clazz:yf,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]}});ev=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:yf,priority:1,compile:function(t){return t.addClass(fr).addClass(cs).addClass(su),{pre:function(n,t,i,r){var u=r[0],e=r[1]||u.$$parentForm,f=r[2];f&&(u.$options=f.$options);u.$$initGetterSetters();e.$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){function e(){f.$setTouched()}var f=u[0];f.$$setUpdateOnEvents();i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(e):t.$apply(e))})}}}}}];ov=/(\s+|^)default(\s+|$)/;ls.prototype={getOption:function(n){return this.$$options[n]},createChild:function(n){var i=!1;return n=v({},n),t(n,function(t,r){t==="$inherit"?r==="*"?i=!0:(n[r]=this.$$options[r],r==="updateOn"&&(n.updateOnDefault=this.$$options.updateOnDefault)):r==="updateOn"&&(n.updateOnDefault=!1,n[r]=y(t.replace(ov,function(){return n.updateOnDefault=!0," "})))},this),i&&(delete n["*"],hv(n,this.$$options)),hv(n,pf.$$options),new ls(n)}};pf=new ls({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});sv=function(){function n(n,t){this.$$attrs=n;this.$$scope=t}return n.$inject=["$attrs","$scope"],n.prototype={$onInit:function(){var n=this.parentCtrl?this.parentCtrl.$options:pf,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=n.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:n}};var ln=ir({terminal:!0,priority:1e3}),an=l("ngOptions"),vn=/^\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]+?))?$/,yn=["$compile","$document","$parse",function(i,u,e){function h(n,t,i){function tt(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{t=[];for(i in n)n.hasOwnProperty(i)&&i.charAt(0)!=="$"&&t.push(i)}return t}var r=n.match(vn);if(!r)throw an("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",n,wt(t));var o=r[5]||r[7],s=r[6],l=/ as /.test(r[0])&&r[1],u=r[9],b=e(r[2]?r[1]:o),k=l&&e(l),d=k||b,g=u&&e(u),h=u?function(n,t){return g(i,t)}:function(n){return nr(n)},a=function(n,t){return h(n,c(n,t))},v=e(r[2]||r[1]),nt=e(r[3]||""),y=e(r[4]||""),p=e(r[8]),f={},c=s?function(n,t){return f[s]=t,f[o]=n,f}:function(n){return f[o]=n,f};return{trackBy:u,getTrackByValue:a,getWatchables:e(p,function(n){var u=[],f,o,t,a,p;for(n=n||[],f=w(n),o=f.length,t=0;t<o;t++){var s=n===f?t:f[t],l=n[s],e=c(l,s),b=h(l,e);u.push(b);(r[2]||r[1])&&(a=v(i,e),u.push(a));r[4]&&(p=y(i,e),u.push(p))}return u}),getOptions:function(){for(var o=[],r={},f=p(i)||[],e=w(f),g=e.length,t=0;t<g;t++){var s=f===e?t:e[t],it=f[s],n=c(it,s),l=d(i,n),b=h(l,n),rt=v(i,n),ut=nt(i,n),ft=y(i,n),k=new tt(b,l,rt,ut,ft);o.push(k);r[b]=k}return{items:o,selectValueMap:r,getOptionFromViewValue:function(n){return r[a(n)]},getViewValueFromOption:function(n){return u?ei(n.viewValue):n.viewValue}}}}}function a(n,e,s,a){function it(n,t){var i=o.cloneNode(!1);t.appendChild(i);ft(n,i)}function ut(n){var t=y.getOptionFromViewValue(n),i=t&&t.element;return i&&!i.selected&&(i.selected=!0),t}function ft(n,t){n.element=t;t.disabled=n.disabled;n.label!==t.label&&(t.label=n.label,t.textContent=n.label);t.value=n.selectValue}function et(){var u=y&&v.readValue(),n,t,f,i,o;if(y)for(n=y.items.length-1;n>=0;n--)t=y.items[n],r(t.group)?rf(t.element.parentNode):rf(t.element);y=w.getOptions();f={};y.items.forEach(function(n){var t;r(n.group)?(t=f[n.group],t||(t=l.cloneNode(!1),k.appendChild(t),t.label=n.group===null?"null":n.group,f[n.group]=t),it(n,t)):it(n,k)});e[0].appendChild(k);p.$render();p.$isEmpty(u)||(i=v.readValue(),o=w.trackBy||g,(o?lt(u,i):u===i)||(p.$setViewValue(i),p.$render()))}for(var nt,tt,y,w,k,v=a[0],p=a[1],g=s.multiple,b=0,d=e.children(),rt=d.length;b<rt;b++)if(d[b].value===""){v.hasEmptyOption=!0;v.emptyOption=d.eq(b);break}e.empty();nt=!!v.emptyOption;tt=f(o.cloneNode(!1));tt.val("?");w=h(s.ngOptions,e,n);k=u[0].createDocumentFragment();v.generateUnknownOptionValue=function(){return"?"};g?(v.writeValue=function(n){if(y){var t=n&&n.map(ut)||[];y.items.forEach(function(n){n.element.selected&&!ue(t,n)&&(n.element.selected=!1)})}},v.readValue=function(){var i=e.val()||[],n=[];return t(i,function(t){var i=y.selectValueMap[t];i&&!i.disabled&&n.push(y.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()})):(v.writeValue=function(n){if(y){var i=e[0].options[e[0].selectedIndex],t=y.getOptionFromViewValue(n);i&&i.removeAttribute("selected");t?(e[0].value!==t.selectValue&&(v.removeUnknownOption(),e[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):v.selectUnknownOrEmptyOption(n)}},v.readValue=function(){var n=y.selectValueMap[e.val()];return n&&!n.disabled?(v.unselectEmptyOption(),v.removeUnknownOption(),y.getViewValueFromOption(n)):null},w.trackBy&&n.$watch(function(){return w.getTrackByValue(p.$viewValue)},function(){p.$render()}));nt&&(i(v.emptyOption)(n),e.prepend(v.emptyOption),v.emptyOption[0].nodeType===br?(v.hasEmptyOption=!1,v.registerOption=function(n,t){if(t.val()===""){v.hasEmptyOption=!0;v.emptyOption=t;v.emptyOption.removeClass("ng-scope");p.$render();t.on("$destroy",function(){var n=v.$isEmptyOptionSelected();v.hasEmptyOption=!1;v.emptyOption=undefined;n&&p.$render()})}}):v.emptyOption.removeClass("ng-scope"));n.$watchCollection(w.getWatchables,et)}var o=n.document.createElement("option"),l=n.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(n,t,i,r){r[0].registerOption=s},post:a}}}],pn=["$locale","$interpolate","$log",function(n,i,r){var f=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(o,h,c){function d(n){h.text(n||"")}var p=c.count,w=c.$attr.when&&h.attr(c.$attr.when),b=c.offset||0,l=o.$eval(w)||{},k={},g=i.startSymbol(),nt=i.endSymbol(),tt=g+p+"-"+b+nt,v=ft.noop,y;t(c,function(n,t){var i=e.exec(t),r;i&&(r=(i[1]?"-":"")+a(i[2]),l[r]=h.attr(c.$attr[t]))});t(l,function(n,t){k[t]=i(n.replace(f,tt))});o.$watch(p,function(t){var i=parseFloat(t),e=rt(i),f;e||i in l||(i=n.pluralCat(i-b));i===y||e&&rt(y)||(v(),f=k[i],u(f)?(t!=null&&r.debug("ngPluralize: no rule defined for '"+i+"' in "+w),v=s,d()):v=o.$watch(f,d),y=i)})}}}],cv=l("ngRef"),wn=["$parse",function(n){return{priority:-1,restrict:"A",compile:function(t,i){var f=vt(ct(t)),r=n(i.ngRef),u=r.assign||function(){throw cv("nonassign",'Expression in ngRef="{0}" is non-assignable!',i.ngRef);};return function(n,t,e){var o;if(e.hasOwnProperty("ngRefRead")){if(e.ngRefRead==="$element")o=t;else if(o=t.data("$"+e.ngRefRead+"Controller"),!o)throw cv("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',e.ngRefRead,i.ngRef);}else o=t.data("$"+f+"Controller");o=o||t;u(n,o);t.on("$destroy",function(){r(n)===o&&u(n,null)})}}}}],bn=["$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=t===0;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=(t&1)==0)},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*$/),b,v,k,d,tt,it,y;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*\))$/),!l)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 y={$id:nr},nt?k=n(nt):(tt=function(n,t){return nr(t)},it=function(n){return n}),function(n,r,h,c,l){k&&(d=function(t,i,r){return v&&(y[v]=t),y[b]=i,y.$index=r,k(n,y)});var g=p();n.$watchCollection(ut,function(h){var c,pt,ht=r[0],ft,ct=p(),et,ut,ot,k,yt,nt,y,lt,at,vt,wt;if(a&&(n[a]=h),ni(h))nt=h,yt=d||tt;else{yt=d||it;nt=[];for(vt in h)st.call(h,vt)&&vt.charAt(0)!=="$"&&nt.push(vt)}for(et=nt.length,lt=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])y=g[k],delete g[k],ct[k]=y,lt[c]=y;else if(ct[k]){t(lt,function(n){n&&n.scope&&(g[n.id]=n)});throw 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);}else lt[c]={id:k,scope:undefined,clone:undefined},ct[k]=!0;for(wt in g){if(y=g[wt],at=yu(y.clone),i.leave(at),at[0].parentNode)for(c=0,pt=at.length;c<pt;c++)at[c][f]=!0;y.scope.$destroy()}for(c=0;c<et;c++)if(ut=h===nt?c:nt[c],ot=h[ut],y=lt[c],y.scope){ft=ht;do ft=ft.nextSibling;while(ft&&ft[f]);o(y)!==ft&&i.move(yu(y.clone),null,ht);ht=s(y);e(y.scope,c,b,ot,v,ut,et)}else l(function(n,t){y.scope=t;var r=rt.cloneNode(!1);n[n.length++]=r;i.enter(n,null,ht);ht=r;y.clone=n;ct[y.id]=y;e(y.scope,c,b,ot,v,ut,et)});g=ct})}}}}],lv="ng-hide",av="ng-hide-animate",kn=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,lv,{tempClasses:av})})}}}],dn=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,lv,{tempClasses:av})})}}}],gn=ir(function(n,i,r){n.$watchCollection(r.ngStyle,function(n,r){r&&n!==r&&t(r,function(n,t){i.css(t,"")});n&&i.css(n)})}),ntt=["$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(i){i!==!1&&n.splice(t,1)}};r.$watch(l,function(r){for(var u,f,l,v;o.length;)n.cancel(o.pop());for(u=0,f=s.length;u<f;++u)l=yu(h[u].clone),s[u].$destroy(),v=o[u]=n.leave(l),v.done(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)})})})}}}],ttt=ir({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,i,r,u,f){var e=r.ngSwitchWhen.split(r.ngSwitchWhenSeparator).sort().filter(function(n,t,i){return i[t-1]!==n});t(e,function(n){u.cases["!"+n]=u.cases["!"+n]||[];u.cases["!"+n].push({transclude:f,element:i})})}}),itt=ir({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})}}),rtt=l("ngTransclude"),utt=["$compile",function(n){return{restrict:"EAC",compile:function(t){var i=n(t.contents());return t.empty(),function(n,t,r,u,f){function s(n,i){n.length&&h(n)?t.append(n):(o(),i.$destroy())}function o(){i(n,function(n){t.append(n)})}function h(n){for(var i,t=0,r=n.length;t<r;t++)if(i=n[t],i.nodeType!==ii||i.nodeValue.trim())return!0}if(!f)throw rtt("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",wt(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var e=r.ngTransclude||r.ngTranscludeSlot;f(s,null,e);e&&!f.isSlotFilled(e)&&o()}}}}],ftt=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){if(i.type==="text/ng-template"){var r=i.id,u=t[0].text;n.put(r,u)}}}}],ett={$setViewValue:s,$render:s};var ott=["$element","$scope",function(t,i){function l(){h||(h=!0,i.$$postDigest(function(){h=!1;u.ngModelCtrl.$render()}))}function o(n){c||(c=!0,i.$$postDigest(function(){i.$$destroyed||(c=!1,u.ngModelCtrl.$setViewValue(u.readValue()),n&&u.ngModelCtrl.$render())}))}var u=this,e=new uf,h,c;u.selectValueMap={};u.ngModelCtrl=ett;u.multiple=!1;u.unknownOption=f(n.document.createElement("option"));u.hasEmptyOption=!1;u.emptyOption=undefined;u.renderUnknownOption=function(n){var i=u.generateUnknownOptionValue(n);u.unknownOption.val(i);t.prepend(u.unknownOption);pi(u.unknownOption,!0);t.val(i)};u.updateUnknownOption=function(n){var i=u.generateUnknownOptionValue(n);u.unknownOption.val(i);pi(u.unknownOption,!0);t.val(i)};u.generateUnknownOptionValue=function(n){return"? "+nr(n)+" ?"};u.removeUnknownOption=function(){u.unknownOption.parent()&&u.unknownOption.remove()};u.selectEmptyOption=function(){u.emptyOption&&(t.val(""),pi(u.emptyOption,!0))};u.unselectEmptyOption=function(){u.hasEmptyOption&&pi(u.emptyOption,!1)};i.$on("$destroy",function(){u.renderUnknownOption=s});u.readValue=function(){var n=t.val(),i=n in u.selectValueMap?u.selectValueMap[n]:n;return u.hasOption(i)?i:null};u.writeValue=function(n){var r=t[0].options[t[0].selectedIndex],i,e;r&&pi(f(r),!1);u.hasOption(n)?(u.removeUnknownOption(),i=nr(n),t.val(i in u.selectValueMap?i:n),e=t[0].options[t[0].selectedIndex],pi(f(e),!0)):u.selectUnknownOrEmptyOption(n)};u.addOption=function(n,t){if(t[0].nodeType!==br){gi(n,'"option value"');n===""&&(u.hasEmptyOption=!0,u.emptyOption=t);var i=e.get(n)||0;e.set(n,i+1);l()}};u.removeOption=function(n){var t=e.get(n);t&&(t===1?(e.delete(n),n===""&&(u.hasEmptyOption=!1,u.emptyOption=undefined)):e.set(n,t-1))};u.hasOption=function(n){return!!e.get(n)};u.$hasEmptyOption=function(){return u.hasEmptyOption};u.$isUnknownOptionSelected=function(){return t[0].options[0]===u.unknownOption[0]};u.$isEmptyOptionSelected=function(){return u.hasEmptyOption&&t[0].options[t[0].selectedIndex]===u.emptyOption[0]};u.selectUnknownOrEmptyOption=function(n){n==null&&u.emptyOption?(u.removeUnknownOption(),u.selectEmptyOption()):u.unknownOption.parent().length?u.updateUnknownOption(n):u.renderUnknownOption(n)};h=!1;c=!1;u.registerOption=function(n,t,i,f,e){if(i.$attr.ngValue){var s,h=NaN;i.$observe("value",function(n){var i,f=t.prop("selected");r(h)&&(u.removeOption(s),delete u.selectValueMap[h],i=!0);h=nr(n);s=n;u.selectValueMap[h]=n;u.addOption(n,t);t.attr("value",h);i&&f&&o()})}else f?i.$observe("value",function(n){u.readValue();var i,f=t.prop("selected");r(s)&&(u.removeOption(s),i=!0);s=n;u.addOption(n,t);i&&f&&o()}):e?n.$watch(e,function(n,r){i.$set("value",n);var f=t.prop("selected");r!==n&&u.removeOption(r);u.addOption(n,t);r&&f&&o()}):u.addOption(i.value,t);i.$observe("disabled",function(n){(n==="true"||n&&t.prop("selected"))&&(u.multiple?o(!0):(u.ngModelCtrl.$setViewValue(null),u.ngModelCtrl.$render()))});t.on("$destroy",function(){var n=u.readValue(),t=i.value;u.removeOption(t);l();(u.multiple&&n&&n.indexOf(t)!==-1||n===t)&&o(!0)})}}],stt=function(){function n(n,i,r,u){var e=u[0],o=u[1],c,h;if(!o){e.registerOption=s;return}e.ngModelCtrl=o;i.on("change",function(){e.removeUnknownOption();n.$apply(function(){o.$setViewValue(e.readValue())})});r.multiple&&(e.multiple=!0,e.readValue=function(){var n=[];return t(i.find("option"),function(t){if(t.selected&&!t.disabled){var i=t.value;n.push(i in e.selectValueMap?e.selectValueMap[i]:i)}}),n},e.writeValue=function(n){t(i.find("option"),function(t){var i=!!n&&(ue(n,t.value)||ue(n,e.selectValueMap[t.value])),r=t.selected;i!==r&&pi(f(t),i)})},h=NaN,n.$watch(function(){h!==o.$viewValue||lt(c,o.$viewValue)||(c=bt(o.$viewValue),o.$render());h=o.$viewValue}),o.$isEmpty=function(n){return!n||n.length===0})}function i(n,t,i,r){var u=r[1],f;u&&(f=r[0],u.$render=function(){f.writeValue(u.$viewValue)})}return{restrict:"E",require:["select","?ngModel"],controller:ott,priority:1,link:{pre:n,post:i}}},htt=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,i){var f,u;return r(i.ngValue)||(r(i.value)?f=n(i.value,!0):(u=n(t.text(),!0),u||i.$set("value",t.text()))),function(n,t,i){var r="$selectController",e=t.parent(),o=e.data(r)||e.parent().data(r);o&&o.registerOption(n,t,i,f,u)}}}}],vv=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()}))}}},yv=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){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,wt(t));f=n||undefined;r.$validate()});r.$validators.pattern=function(n,t){return r.$isEmpty(t)||u(f)||f.test(t)}}}}},pv=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=-1;i.$observe("maxlength",function(n){var t=it(n);u=rt(t)?-1:t;r.$validate()});r.$validators.maxlength=function(n,t){return u<0||r.$isEmpty(t)||t.length<=u}}}}},wv=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=it(n)||0;r.$validate()});r.$validators.minlength=function(n,t){return r.$isEmpty(t)||t.length>=u}}}}};if(n.angular.bootstrap){n.console&&console.log("WARNING: Tried to load AngularJS more than once.");return}vy();ky(ft);ft.module("ngLocale",[],["$provide",function(n){function i(n){n=n+"";var t=n.indexOf(".");return t==-1?0:n.length-t-1}function r(n,t){var r=t,u,f;return undefined===r&&(r=Math.min(i(n),3)),u=Math.pow(10,r),f=(n*u|0)%u,{v:r,f:f}}var t={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"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,i){var u=n|0,f=r(n,i);return u==1&&f.v==0?t.ONE:t.OTHER}})}]);f(function(){cy(n.document,rh)})}(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,t){"use strict";function i(n,i,r){function e(n,r,f){var s,o,e,h;return f=f||{},o=f.expires,s=t.isDefined(f.path)?f.path:u,t.isUndefined(r)&&(o="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(o)&&(o=new Date(o)),e=encodeURIComponent(n)+"="+encodeURIComponent(r),e+=s?";path="+s:"",e+=f.domain?";domain="+f.domain:"",e+=o?";expires="+o.toUTCString():"",e+=f.secure?";secure":"",e+=f.samesite?";samesite="+f.samesite:"",h=e.length+1,h>4096&&i.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+h+" > 4096 bytes)!"),e}var u=r.baseHref(),f=n[0];return function(n,t,i){f.cookie=e(n,t,i)}}t.module("ngCookies",["ng"]).info({angularVersion:"1.7.2"}).provider("$cookies",[function(){function i(i){return i?t.extend({},n,i):n}var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(t){return n()[t]},getObject:function(n){var i=this.get(n);return i?t.fromJson(i):i},getAll:function(){return n()},put:function(n,t,u){r(n,t,i(u))},putObject:function(n,i,r){this.put(n,t.toJson(i),r)},remove:function(n,t){r(n,undefined,i(t))}}}]}]);i.$inject=["$document","$log","$browser"];t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=i})}(window,window.angular),!X2JS)throw new Error("You're required to include the X2JS library to use the xml module.");(function(n,t){function i(n){var t=n.headers("content-type");return t?t.search(/\Wxml/i)>-1:!1}function r(n,t){function r(r){return r&&i(r)?(r.data=t.xml_str2json(r.data),r):n.when(r)}function u(r){return r&&i(r)&&(r.data=t.xml_str2json(r.data)),n.reject(r)}return{response:r,responseError:u}}function u(n){n.factory("xmlHttpInterceptor",["$q","x2js",r])}function f(){this.config={};this.$get=["X2JS",function(n){return new n(this.config)}]}n&&n.module("xml",[]).config(["$provide",u]).provider("x2js",f).value("X2JS",t)})(angular,X2JS);angular.module("gn.audio.ecommerce",["gn.audio.site.settings","gn.audio.pricing"]),function(n){var t;(function(n){var t;(function(){"use strict";var t="product-action",i=t+" jbr-btn jbr-btn-large jbr-btn--yellow",s='\n        <button type="button" class="'+i+'" ng-class="{ \'jbr-btn--loading\': loading }" ng-click="execute()">\n            <span class="'+t+'--add" system-dictionary="CustomizerAddToCart"><\/span>\n        <\/button>\n    ',h='\n        <button type="button" class="'+i+'" ng-class="{ \'jbr-btn--loading\': loading }" ng-click="execute()">\n            <span class="'+t+'--preorder" system-dictionary="Preorder"><\/span>\n        <\/button>\n    ',c='\n        <button type="button" class="'+i+'" ng-class="{ \'jbr-btn--loading\': loading }" ng-click="execute()">\n            <span class="'+t+'--backorder" system-dictionary="Backorder"><\/span>\n        <\/button>\n    ',l='\n        <price p-id="pId" p-type="{{pType}}" segment-type="segmentType"><\/price>\n    ',a='\n        <a class="'+i+'" href="javascript:;" ng-href="{{whereToBuyUrl()}}">\n            <span class="'+t+'--where" system-dictionary="WhereToBuy"><\/span>\n        <\/a>\n    ',r,u,f,e,o;angular.module("gn.audio.ecommerce").directive("productAction",["$compile","pricing","ecommerce","siteSettings",function(t,i,r,u){return{link:function(f,e,o){var v,y=function(){f.price={availabilityState:n.Pricing.AvailabilityState.WhereToBuy}},d=function(){v!==undefined&&v.ecomEnabled&&(f.loading=!0,r.add(f.price.sku))},g=function(){switch(f.pType){case n.Pricing.ProductType.Product:i.getByProduct(f.pId).then(function(n){f.price=n},function(){y()}).finally(function(){w()});break;case n.Pricing.ProductType.Group:i.getByGroup(f.pId).then(function(n){f.price=n},function(){y()}).finally(function(){w()})}},k=function(){v!==undefined&&v.ecomEnabled?g():(y(),w())},nt=function(){return f.price===undefined?undefined:f.price.availabilityState},p=function(n){var t=angular.element(n);return v.ecomEnabled&&o.showPrice==="true"&&t.append(l),t[0].outerHTML},w=function(){var i="",r;e.empty();switch(nt()){case n.Pricing.AvailabilityState.Add:i=p(s);break;case n.Pricing.AvailabilityState.PreOrder:i=p(h);break;case n.Pricing.AvailabilityState.BackOrder:i=p(c);break;case n.Pricing.AvailabilityState.WhereToBuy:i=a}angular.isString(i)&&i!==""&&(r=t(i)(f),e.append(r))},b;f.loading=!1;f.whereToBuyUrl=function(){switch(f.segmentType){case n.Pricing.SegmentType.Business:return"/where-to-buy/partner-locator";default:return"/where-to-buy/retailer-locator"}};f.execute=function(){d()};u.getEcomSetting().then(function(n){v=n}).finally(function(){f.pId=Number(f.pId);angular.isNumber(f.pId)&&!isNaN(f.pId)&&k();b=f.$watch("pId",function(n,t){n===t||isNaN(f.pId)||k()})});f.$on("$destroy",function(){b!==undefined&&b()})},restrict:"E",scope:{pId:"=",pType:"@",segmentType:"=?"}}}]);r=function(){function n(){}return n.prototype.combine=function(n,t){var r=(n||"").indexOf("?")>-1,i="";return angular.isObject(t)&&(i=Object.keys(t).map(function(n){return n+"="+t[n]}).join("&")),i===""?n:""+n+(r?"&":"?")+i},n}();angular.module("gn.audio.ecommerce").service("ecommerceUrlBuilder",[r]);u=function(){function n(n,t,i,r,u,f){this.$http=n;this.$q=t;this.$window=i;this.ecommerceToken=r;this.siteSettings=u;this.ecommerceUrlBuilder=f}return n.prototype.add=function(n){this.addToCart(n)},n.prototype.preorder=function(n){this.addToCart(n)},n.prototype.backorder=function(n){this.addToCart(n)},n.prototype.getCart=function(){var n=this,t=this.$q.defer();return this.siteSettings.getCartSetting().then(function(i){n.ecommerceToken.get().then(function(r){var u={cache:!1,headers:{Authorization:"Bearer "+r.access_token}},f=n.ecommerceUrlBuilder.combine(i.cartUrl,{token:r.access_token,format:"json",method:"get"});n.$http.jsonp(f,u).then(function(n){t.resolve(n.data.cart)},function(){t.reject()})},angular.noop)},angular.noop),t.promise},n.prototype.getCheckoutUrl=function(){var n=this,t=this.$q.defer();return this.siteSettings.getCartSetting().then(function(i){n.ecommerceToken.get().then(function(r){var u=n.ecommerceUrlBuilder.combine(i.checkoutUrl,{locale:i.marketLocale,currency:i.currency,token:r.access_token}),f=n.getGa();f&&(u+="&"+f);t.resolve(u)})}),t.promise},n.prototype.checkout=function(){var n=this;return this.getCheckoutUrl().then(function(t){return n.$window.location.href=t})},n.prototype.addToCart=function(n){var t=this;this.getCheckoutUrl().then(function(i){var r=angular.isArray(n)?n.join(","):n;t.$window.location.href=t.ecommerceUrlBuilder.combine(i,{action:"add",externalReferenceId:r})})},n.prototype.getGa=function(){var i="",n=window.ga,t;return typeof n!="undefined"&&angular.isFunction(n.getAll)&&(t=n.getAll()||[],t.length>0&&(i=t[0].get("linkerParam"))),i},n}();f=function(){function n(){this.$get=["$http","$q","$window","ecommerceToken","siteSettings","ecommerceUrlBuilder",function(n,t,i,r,f,e){return new u(n,t,i,r,f,e)}]}return n}();angular.module("gn.audio.ecommerce").provider("ecommerce",f);e=function(){function n(n,t,i,r){this.$http=n;this.$q=t;this.siteSettings=i;this.ecommerceUrlBuilder=r;this._tokenSessionKey="dr-token"}return n.prototype.get=function(){var t=this,n=this.$q.defer(),u=(new Date).getTime(),i=JSON.parse(sessionStorage.getItem(this._tokenSessionKey)),r=angular.isObject(i)?i.expires:undefined;return r&&u<r?n.resolve(i):this.siteSettings.getCartSetting().then(function(i){var r=t.ecommerceUrlBuilder.combine(i.tokenUrl,{apiKey:i.apiKey,format:"jsonp",locale:i.marketLocale});t.$http.jsonp(r,{headers:{accept:"application/json"},cache:!0}).then(function(i){var r=i.data;r.expires=(new Date).getTime()+r.expires_in*1e3;sessionStorage.setItem(t._tokenSessionKey,JSON.stringify(r));n.resolve(i.data)},function(){n.reject()})}),n.promise},n}();o=function(){function n(){this.$get=["$http","$q","siteSettings","ecommerceUrlBuilder",function(n,t,i,r){return new e(n,t,i,r)}]}return n}();angular.module("gn.audio.ecommerce").provider("ecommerceToken",o)})(t=n.ECommerce||(n.ECommerce={}))})(t=n.Audio||(n.Audio={}))}(GN||(GN={}));__extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();angular.module("gn.audio.pricing",["gn.audio.site.settings"]),function(n){var t;(function(n){var t;(function(n){"use strict";var o,s,y,p,u,f,e;(function(n){n.Business="Business";n.Consumer="Consumer";n.Convergence="Convergence";n.Unknown=""})(o=n.SegmentType||(n.SegmentType={})),function(n){n.Family="f";n.Group="g";n.Product="p"}(s=n.ProductType||(n.ProductType={}));"use strict";var t="product-price",r=t+"__listed-price",i=t+"__sales-price",h='<span system-dictionary="PriceComingSoon"><\/span>',c='\n        <span class="'+t+'" ng-class="{ \''+t+'--discounted\': price.isDiscounted }" ng-show="!empty && !loading">\n            <span class="'+t+'__price-label" ng-if="price.familyId || price.groupId" system-dictionary="PriceFrom"><\/span>\n            <span class="'+r+'" ng-class="{ \''+r+'--discounted\': price.isDiscounted }" ng-bind="formattedListedPrice()"><\/span>\n            <span class="'+i+'" ng-class="{ \''+i+'--discounted\': price.isDiscounted }"\n                ng-show="price.isDiscounted" ng-bind="formattedDiscountedPrice()"><\/span>\n        <\/span>\n    ',l='\n        <span class="'+t+" "+t+'--vat" ng-class="{ \''+t+'--discounted\': price.isDiscounted }" ng-show="!empty && !loading">\n            <span class="'+t+'__price-label" ng-if="price.familyId || price.groupId" system-dictionary="PriceFrom"><\/span>\n            <span class="'+r+'" ng-class="{ \''+r+'--discounted\': price.isDiscounted }" ng-bind="formattedListedPriceWithoutVat()"><\/span>\n            <span class="'+i+'" ng-class="{ \''+i+'--discounted\': price.isDiscounted }"\n                ng-show="price.isDiscounted" ng-bind="formattedDiscountedPriceWithoutVat()"><\/span>\n            <span class="'+t+'__vat">\n                (<span ng-bind="formattedListedPrice()" ng-show="!price.isDiscounted"><\/span>\n                <span ng-class="{ \''+i+'--discounted\': price.isDiscounted }" ng-show="price.isDiscounted" ng-bind="formattedDiscountedPrice()"><\/span>\n                <span system-dictionary="IncludingVAT"><\/span>)\n            <\/span>\n        <\/span>\n    ',a='\n        <span class="'+t+" "+t+'--vat" ng-class="{ \''+t+'--discounted\': price.isDiscounted }" ng-show="!empty && !loading">\n            <span class="'+t+'__price-label" ng-if="price.familyId || price.groupId" system-dictionary="PriceFrom"><\/span>\n            <span class="'+r+'" ng-class="{ \''+r+'--discounted\': price.isDiscounted }" ng-bind="formattedListedPriceWithoutVat()"><\/span>\n            <span class="'+i+'" ng-class="{ \''+i+'--discounted\': price.isDiscounted }"\n                ng-show="price.isDiscounted" ng-bind="formattedDiscountedPriceWithoutVat()"><\/span>\n            <span class="'+t+'__vat">\n                <span system-dictionary="ExcludingVAT"><\/span>\n            <\/span>\n        <\/span>\n    ',v='<span class="'+t+'__remark" ng-show="withRemark">*<\/span>';angular.module("gn.audio.pricing").directive("price",["$compile","pricing","siteSettings",function(i,r,u){return{link:function(f,e){var y,s;f.empty=!0;f.loading=!0;var b=function(n){return n===undefined?NaN:n.discountedPrice||n.fromDiscountedPrice},o=function(r){var u,o;if(e.empty(),f.empty=r===undefined,f.price=r,f.empty){if(angular.isFunction(f.onPriceLoaded))f.onPriceLoaded({price:f.price});return}if(o=r.listedPrice||r.fromListedPrice,r.availabilityState===n.AvailabilityState.ComingSoon?u=i(h)(f):(f.pType===n.ProductType.Family||r.availabilityState<n.AvailabilityState.WhereToBuy)&&angular.isDefined(o)&&(u=k(r)),angular.isDefined(u)&&(f.withRemarkAsContent&&e.append(v),(f.withRemarkAsContent||f.withRemark)&&e.find("."+t).addClass(t+"--remark"),e.append(u)),angular.isFunction(f.onPriceLoaded))f.onPriceLoaded({price:f.price})},p=function(){f.loading=!1},w=function(){if(!f.pId||!y.ecomEnabled){o();return}switch(f.pType){case n.ProductType.Family:r.getByFamily(f.pId).then(o,function(){o()}).finally(p);break;case n.ProductType.Group:r.getByGroup(f.pId).then(o,function(){o()}).finally(p);break;case n.ProductType.Product:r.getByProduct(f.pId).then(o,function(){o()}).finally(p)}},k=function(t){var r,u=f.segmentType===n.SegmentType.Business,e=b(t),o=s.priceDisplayThreshold;switch(!0){case s.priceDisplayOption===n.PriceDisplayOption.ExcludeVATThreshold&&(u||e<o):r=i(a)(f);break;case s.priceDisplayOption===n.PriceDisplayOption.ExcludeIncludeVAT&&u:r=i(l)(f);break;default:r=i(c)(f)}return r};f.formattedDiscountedPrice=function(){return f.price===undefined?"":f.price.formattedDiscountedPrice||f.price.formattedFromDiscountedPrice};f.formattedDiscountedPriceWithoutVat=function(){return f.price===undefined?"":f.price.formattedDiscountedPriceWithoutVat||f.price.formattedFromDiscountedPriceWithoutVat};f.formattedListedPrice=function(){return f.price===undefined?"":f.price.formattedListedPrice||f.price.formattedFromListedPrice};f.formattedListedPriceWithoutVat=function(){return f.price===undefined?"":f.price.formattedListedPriceWithoutVat||f.price.formattedFromListedPriceWithoutVat};u.getEcomSetting().then(function(n){y=n}).finally(function(){y.ecomEnabled&&u.getPriceDisplaySetting().then(function(n){s=n}).finally(function(){angular.isNumber(f.pId)&&w();var n=f.$watch("pId",function(n,t){n!==t&&w()});f.$on("$destroy",function(){n()})})})},restrict:"E",scope:{onPriceLoaded:"&?",pId:"=",pType:"@",segmentType:"=?",withRemark:"@?",withRemarkAsContent:"@?"}}}]),function(n){n[n.Add=0]="Add";n[n.PreOrder=1]="PreOrder";n[n.BackOrder=2]="BackOrder";n[n.WhereToBuy=3]="WhereToBuy";n[n.ComingSoon=4]="ComingSoon"}(y=n.AvailabilityState||(n.AvailabilityState={})),function(n){n.ExcludeIncludeVAT="ExcludeIncludeVAT";n.ExcludeVATThreshold="ExcludeVATThreshold";n.Simple="Simple"}(p=n.PriceDisplayOption||(n.PriceDisplayOption={}));u=function(){function t(){var t=this;this.debounceTime=200;this.debouncedItems=[];this.stack={};Object.keys(n.ProductType).forEach(function(i){t.stack[n.ProductType[i]]=[]})}return t.prototype.addToStack=function(n,t,i){this.debouncedItems.push({id:n,result:i,type:t});this.stack[t].push(n)},t.prototype.removeFromStack=function(n,t){var u,r,i;for(n===void 0&&(n=[]),u=function(i){var u=r.stack[t][i];n.some(function(n){return u===n})&&r.stack[t].splice(i,1)},r=this,i=this.stack[t].length-1;i>-1;i--)u(i)},t.prototype.getFilterProperty=function(t){var i;switch(t){case n.ProductType.Product:i="productId";break;case n.ProductType.Group:i="groupId";break;case n.ProductType.Family:i="familyId";break;default:i=""}return i},t.prototype.resolve=function(n,t){var r=this,i;(n===void 0&&(n=[]),i=this.getFilterProperty(t),i!=="")&&n.forEach(function(n){r.debouncedItems.filter(function(r){return r.type===t&&r.id===n[i]}).forEach(function(t){t.result.resolve(n)})})},t.prototype.reject=function(n,t){this.debouncedItems.filter(function(i){return i.type===t&&i.id===n}).forEach(function(n){n.result.reject()})},t.prototype.executeStack=function(t,i){var u,e,f,r;if(Object.keys(n.ProductType).some(function(t){return n.ProductType[t]===i})){if(r=this.stack[i],r.length===0)return;t.call(this,angular.copy(r),i);this.removeFromStack(r,i)}else for(u=0,e=Object.keys(this.stack);u<e.length;u++)(f=e[u],r=this.stack[f],r.length!==0)&&(t.call(this,angular.copy(r),angular.copy(f)),this.removeFromStack(r,f))},t}();n.DebouncedStackService=u;f=function(t){function i(n,i,r,u,f){var e=t.call(this)||this;return e.$http=n,e.$q=i,e.$timeout=r,e.baseUrl=u,e.language=f,e}return __extends(i,t),i.prototype.getByFamily=function(n){return this.getByFamilyDebounced(n)},i.prototype.getByFamilyDebounced=function(t){var i=this,r=this.$q.defer(),u;return angular.isNumber(t)?(u=this.debouncedItems.filter(function(i){return i.type===n.ProductType.Family&&i.id===t})[0],u!==undefined)?u.result.promise:(this.addToStack(t,n.ProductType.Family,r),this.$timeout.cancel(this.familyGetMultiplePricesTimeout),this.familyGetMultiplePricesTimeout=this.$timeout(function(){i.executeStack(function(t){i.getByFamilies(t).then(function(r){r===void 0&&(r=[]);t.filter(function(n){return r.every(function(t){return t.familyId!==n})}).forEach(function(t){i.reject(t,n.ProductType.Family)});i.resolve(r,n.ProductType.Family)})},n.ProductType.Family)},this.debounceTime),r.promise):(r.reject(),r.promise)},i.prototype.getByFamilies=function(n){var t=this.buildUrl("v1/family?familyIds=",n.filter(Boolean).join("&familyIds="));return this.$http.get(t,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getByGroup=function(n){return this.getByGroupDebounced(n)},i.prototype.getByGroupDebounced=function(t){var i=this,r=this.$q.defer(),u;return angular.isNumber(t)?(u=this.debouncedItems.filter(function(i){return i.type===n.ProductType.Group&&i.id===t})[0],u!==undefined)?u.result.promise:(this.addToStack(t,n.ProductType.Group,r),this.$timeout.cancel(this.groupGetMultiplePricesTimeout),this.groupGetMultiplePricesTimeout=this.$timeout(function(){i.executeStack(function(t){i.getByGroups(t).then(function(r){r===void 0&&(r=[]);t.filter(function(n){return r.every(function(t){return t.groupId!==n})}).forEach(function(t){i.reject(t,n.ProductType.Group)});i.resolve(r,n.ProductType.Group)})},n.ProductType.Group)},this.debounceTime),r.promise):(r.reject(),r.promise)},i.prototype.getByGroups=function(n){var t=this.buildUrl("v1/groups?groupIds=",n.filter(Boolean).join("&groupIds="));return this.$http.get(t,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getByProduct=function(n){return this.getByProductDebounced(n)},i.prototype.getByProductDebounced=function(t){var i=this,r=this.$q.defer(),u;return angular.isNumber(t)?(u=this.debouncedItems.filter(function(i){return i.type===n.ProductType.Product&&i.id===t})[0],u!==undefined)?u.result.promise:(this.addToStack(t,n.ProductType.Product,r),this.$timeout.cancel(this.productGetMultiplePricesTimeout),this.productGetMultiplePricesTimeout=this.$timeout(function(){i.executeStack(function(t){i.getByProducts(t).then(function(r){r===void 0&&(r=[]);t.filter(function(n){return r.every(function(t){return t.productId!==n})}).forEach(function(t){i.reject(t,n.ProductType.Product)});i.resolve(r,n.ProductType.Product)})},n.ProductType.Product)},this.debounceTime),r.promise):(r.reject(),r.promise)},i.prototype.getByProducts=function(n){n===void 0&&(n=[]);var t=this.buildUrl("v1/products?productIds=",n.filter(Boolean).join("&productIds="));return this.$http.get(t,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.buildUrl=function(n,t){return this.baseUrl+n+t+("&marketLocale="+this.language)},i}(n.DebouncedStackService);e=function(){function n(){var n=this;this.$get=["$http","$q","$timeout",function(t,i,r){return new f(t,i,r,n._baseUrl,n._language)}]}return n.prototype.baseUrl=function(n){return angular.isDefined(n)?(this._baseUrl=n,this):this._baseUrl},n.prototype.language=function(n){return angular.isDefined(n)?(this._language=n,this):this._language},n}();angular.module("gn.audio.pricing").provider("pricing",e)})(t=n.Pricing||(n.Pricing={}))})(t=n.Audio||(n.Audio={}))}(GN||(GN={}));__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();angular.module("gn.audio.product.catalogue",[]),function(n){var t;(function(n){var t;(function(n){"use strict";var u,f,e,t,i,r;(function(n){n.Available="available";n.Discontinued="discontinued";n.Supported="supported"})(u=n.IncludeType||(n.IncludeType={})),function(n){n.Family="f";n.Group="g";n.Product="p"}(f=n.ProductType||(n.ProductType={})),function(n){n.Business="Business";n.Consumer="Consumer";n.Convergence="Convergence";n.Unknown=""}(e=n.SegmentType||(n.SegmentType={}));t=function(){function t(){var t=this;this.debounceTime=200;this.debouncedItems=[];this.stack={};Object.keys(n.ProductType).forEach(function(i){t.stack[n.ProductType[i]]=[]})}return t.prototype.addToStack=function(n,t,i){this.debouncedItems.push({id:n,result:i,type:t});this.stack[t].push(n)},t.prototype.removeFromStack=function(n,t){var u,r,i;for(n===void 0&&(n=[]),u=function(i){var u=r.stack[t][i];n.some(function(n){return u===n})&&r.stack[t].splice(i,1)},r=this,i=this.stack[t].length-1;i>-1;i--)u(i)},t.prototype.getFilterProperty=function(t){var i;switch(t){case n.ProductType.Product:i="productId";break;case n.ProductType.Group:i="groupId";break;case n.ProductType.Family:i="familyId";break;default:i=""}return i},t.prototype.resolve=function(n,t){var r=this,i;(n===void 0&&(n=[]),i=this.getFilterProperty(t),i!=="")&&n.forEach(function(n){r.debouncedItems.filter(function(r){return r.type===t&&r.id===n[i]}).forEach(function(t){t.result.resolve(n)})})},t.prototype.reject=function(n,t){this.debouncedItems.filter(function(i){return i.type===t&&i.id===n}).forEach(function(n){n.result.reject()})},t.prototype.executeStack=function(t,i){var u,e,f,r;if(Object.keys(n.ProductType).some(function(t){return n.ProductType[t]===i})){if(r=this.stack[i],r.length===0)return;t.call(this,angular.copy(r),i);this.removeFromStack(r,i)}else for(u=0,e=Object.keys(this.stack);u<e.length;u++)(f=e[u],r=this.stack[f],r.length!==0)&&(t.call(this,angular.copy(r),angular.copy(f)),this.removeFromStack(r,f))},t}();n.DebouncedStackService=t;i=function(t){function i(n,i,r,u,f){var e=t.call(this)||this;return e.$http=n,e.$q=i,e.$timeout=r,e.baseUrl=u,e.language=f,e}return __extends(i,t),i.prototype.getDebounced=function(n,t){var i=this,r=this.$q.defer(),u;return angular.isNumber(n)?(u=this.debouncedItems.filter(function(i){return i.type===t&&i.id===n})[0],u!==undefined)?u.result.promise:(this.addToStack(n,t,r),this.$timeout.cancel(this.stackTimeout),this.stackTimeout=this.$timeout(function(){i.executeStack(function(n,t){i.getMany(n,t).then(function(r){r===void 0&&(r=[]);var u=i.getFilterProperty(t);n.filter(function(n){return r.every(function(t){return t[u]!==n})}).forEach(function(n){i.reject(n,t)});i.resolve(r,t)})})},this.debounceTime),r.promise):(r.reject(),r.promise)},i.prototype.getMany=function(n,t){var i=this.getUrl(n,t);return this.$http.get(i,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getFamilyAttributes=function(t,i){i===void 0&&(i=n.IncludeType.Available);var r=this.getUrl(t,n.ProductType.Family,"attributes");return r+="&include="+i,this.$http.get(r,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getGroupAttributes=function(t,i){i===void 0&&(i=n.IncludeType.Available);var r=this.getBaseTypeUrl(n.ProductType.Group)+"/attributes?ids="+encodeURIComponent(t.join("|"));return r+="&include="+i+"&marketLocale="+this.language,this.$http.get(r,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getGroupAccessories=function(t){var i=this.getUrl(t,n.ProductType.Group,"accessories");return this.$http.get(i,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getRelated=function(n,t){var i=this.getUrl(n,t,"related");return this.$http.get(i,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getFamilyGroups=function(t){var i=this.getUrl(t,n.ProductType.Family,"groups");return this.$http.get(i,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getGroupProducts=function(t){var i=this.getUrl(t,n.ProductType.Group,"products");return this.$http.get(i,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getBullets=function(n,t){var i=this.getUrl(n,t,"bullets");return this.$http.get(i,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getFeatures=function(n,t){var i=this.getUrl(n,t,"features");return this.$http.get(i,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getImages=function(n,t){var i=this.getUrl(n,t,"images");return this.$http.get(i,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getKeySellingPoints=function(n,t){var i=this.getUrl(n,t,"keysellingpoints");return this.$http.get(i,{cache:!0}).then(function(n){return n.data||[]})},i.prototype.getSegmentType=function(t,i){return this.getDebounced(t,i).then(function(n){return n.segmentType},function(){return n.SegmentType.Unknown})},i.prototype.getUrl=function(t,i,r){i===void 0&&(i=n.ProductType.Family);r===void 0&&(r="");var f=typeof t=="number"?"?":"&",u=this.getBaseTypeUrl(i);return u+=typeof t=="number"?"/"+encodeURIComponent(String(t)):"/filter?ids="+encodeURIComponent(t.join("|")),r!==""&&(u+="/"+r),u+(f+"marketLocale="+this.language)},i.prototype.getBaseTypeUrl=function(n){return this.baseUrl+"v1/"+this.getUrlSuffix(n)},i.prototype.getUrlSuffix=function(t){var i="";switch(t){case n.ProductType.Group:i="group";break;case n.ProductType.Product:i="product";break;default:i="family"}return i},i}(n.DebouncedStackService);r=function(){function n(){var n=this;this.$get=["$http","$q","$timeout",function(t,r,u){return new i(t,r,u,n._baseUrl,n._language)}]}return n.prototype.baseUrl=function(n){return angular.isDefined(n)?(this._baseUrl=n,this):this._baseUrl},n.prototype.language=function(n){return angular.isDefined(n)?(this._language=n,this):this._language},n}();angular.module("gn.audio.product.catalogue").provider("productCatalogue",r)})(t=n.ProductCatalogue||(n.ProductCatalogue={}))})(t=n.Audio||(n.Audio={}))}(GN||(GN={}));angular.module("gn.audio.quicksearch",[]),function(n){var t;(function(n){var t;(function(n){"use strict";var r,t,i;(function(n){n.Available="available";n.Discontinued="discontinued";n.Supported="supported"})(r=n.IncludeType||(n.IncludeType={}));t=function(){function t(n,t,i){this.$http=n;this.url=t;this.language=i}return t.prototype.get=function(n){n===void 0&&(n={});var t=this.validate(n);return this.$http.post(this.url,t).then(function(n){return n.data})},t.prototype.getByEntity=function(t,i,r){r===void 0&&(r=n.IncludeType.Available);switch(t){case"g":return this.getGroups(i,r);case"f":default:return this.getFamilies(i,r)}},t.prototype.getGroups=function(t,i){t===void 0&&(t={});i===void 0&&(i=n.IncludeType.Available);var r=this.validate(t);return this.$http.post(this.url+"/groups?include="+i.toLowerCase(),r).then(function(n){return n.data})},t.prototype.getFamilies=function(t,i){t===void 0&&(t={});i===void 0&&(i=n.IncludeType.Available);var r=this.validate(t);return this.$http.post(this.url+"/families?include="+i.toLowerCase(),r).then(function(n){return n.data})},t.prototype.getSuggestions=function(n){return n===void 0&&(n={}),angular.isString(n.marketLocale)||(n.marketLocale=this.language),this.$http.post(this.url+"/suggest",n).then(function(n){return n.data})},t.prototype.validate=function(n){var t=angular.copy(n);return angular.isString(t.orderBy)||(t.orderBy=""),angular.isDefined(t.includePrices)||(t.includePrices=!1),angular.isString(t.marketLocale)||(t.marketLocale=this.language),t},t}();i=function(){function n(){var n=this;this.$get=["$http",function(i){return new t(i,n._url,n._language)}]}return n.prototype.url=function(n){return angular.isDefined(n)?(this._url=n,this):this._url},n.prototype.language=function(n){return angular.isDefined(n)?(this._language=n,this):this._language},n}();angular.module("gn.audio.quicksearch").provider("quickSearch",i)})(t=n.QuickSearch||(n.QuickSearch={}))})(t=n.Audio||(n.Audio={}))}(GN||(GN={}));angular.module("gn.audio.site.settings",[]),function(n){var t;(function(n){var t;(function(n){"use strict";var r,u,f,t,i;(function(n){n.ExcludeIncludeVAT="ExcludeIncludeVAT";n.ExcludeVATThreshold="ExcludeVATThreshold";n.Simple="Simple"})(r=n.PriceDisplayOption||(n.PriceDisplayOption={})),function(n){n.Blueparrott="blueparrott";n.Jabra="jabra"}(u=n.SiteContext||(n.SiteContext={})),function(n){n.Cart="cart";n.Display="display";n.Ecom="ecom";n.Support="support"}(f=n.SiteSettingsScope||(n.SiteSettingsScope={}));t=function(){function t(n,t){this.$http=n;this.configuration=t}return t.prototype.getAll=function(){var t=this.configuration,i=n.SiteSettingsScope.Cart+","+n.SiteSettingsScope.Display+","+n.SiteSettingsScope.Ecom,r=t.baseUrl+"?site="+t.siteContext+"&marketLocale="+t.marketLocale+"&scope="+i;return this.$http.get(r,{cache:!0}).then(function(n){return angular.extend({},n.data.cart,n.data.display,n.data.ecom,n.data.support)})},t.prototype.getEcomSetting=function(){var t=this.configuration,i=t.baseUrl+"?site="+t.siteContext+"&marketLocale="+t.marketLocale+"&scope="+n.SiteSettingsScope.Ecom;return this.$http.get(i,{cache:!0}).then(function(n){return n.data.ecom})},t.prototype.getCartSetting=function(){var t=this.configuration,i=t.baseUrl+"?site="+t.siteContext+"&marketLocale="+t.marketLocale+"&scope="+n.SiteSettingsScope.Cart;return this.$http.get(i,{cache:!0}).then(function(n){return n.data.cart})},t.prototype.getPriceDisplaySetting=function(){var t=this.configuration,i=t.baseUrl+"?site="+t.siteContext+"&marketLocale="+t.marketLocale+"&scope="+n.SiteSettingsScope.Display;return this.$http.get(i,{cache:!0}).then(function(n){return n.data.display})},t.prototype.getSupportSetting=function(){var t=this.configuration,i=t.baseUrl+"?site="+t.siteContext+"&marketLocale="+t.marketLocale+"&scope="+n.SiteSettingsScope.Support;return this.$http.get(i,{cache:!0}).then(function(n){var t=(n.data.support.wasThisUsefulReasons||"").split("||").map(function(n){var t=n.split("@@");return{code:t[1]||"",title:t[0]||""}});return{supportUrl:n.data.support.supportUrl,wasThisUsefulUrl:n.data.support.wasThisUsefulUrl,wasThisUsefulReasons:t}})},t}();i=function(){function n(){var n=this;this.$get=["$http",function(i){return new t(i,n._configuration)}]}return n.prototype.config=function(n){return angular.isDefined(n)?(this._configuration=n,this):this._configuration},n}();angular.module("gn.audio.site.settings").provider("siteSettings",i)})(t=n.SiteSettings||(n.SiteSettings={}))})(t=n.Audio||(n.Audio={}))}(GN||(GN={}));angular.module("gn.audio.was.this.useful",["gn.audio.site.settings"]),function(n){var t;(function(n){var t;(function(n){"use strict";var e,t,i,r,u,f;(function(n){n[n.None=0]="None";n[n.Yes=1]="Yes";n[n.No=2]="No";n[n.Share=3]="Share";n[n.Sent=4]="Sent";n[n.Sending=5]="Sending"})(e=n.WasThisUsefulMode||(n.WasThisUsefulMode={}));t=function(){function t(t,i){this.$location=t;this.wasThisUseful=i;this.currentMode=n.WasThisUsefulMode.None;this.sending=!1}return t.prototype.sendModel=function(t,i){var r=this;i===void 0&&(i=!0);angular.isString(t.PageUrl)||(t.PageUrl=this.$location.absUrl());angular.isString(t.Id)||(t.Id=this.itemId);angular.isString(t.SpotName)||(t.SpotName=this.itemLink);i&&(this.sending=!0,this.switchMode(n.WasThisUsefulMode.Sending));this.wasThisUseful.send(t).then(function(n){r.itemId=n.ReturnValue}).finally(function(){i&&(r.sending=!1,r.switchMode(n.WasThisUsefulMode.Sent))})},t.prototype.send=function(n,t){n===void 0&&(n=!0);t===void 0&&(t=!0);var i={Useful:t};this.sendModel(i,n)},t.prototype.switchMode=function(t,i,r){i===void 0&&(i=!1);r===void 0&&(r=!0);this.currentMode=t;i&&this.send(t!==n.WasThisUsefulMode.No,r)},t}();angular.module("gn.audio.was.this.useful").component("wasThisUseful",{bindings:{itemLink:"<"},controller:["$location","wasThisUseful",t],template:'\n                <div class="was-this-useful__title" system-dictionary="WasThisUsefulTitle"><\/div>\n                <div class="was-this-useful__actions" ng-show="$ctrl.currentMode !== 4" ng-cloak>\n                    <button ng-click="$ctrl.switchMode(1, true)" class="was-this-useful__action was-this-useful__action--yes" type="button" system-dictionary="WasThisUsefulYes" ng-disabled="sending"><\/button>\n                    <button ng-click="$ctrl.switchMode(2, true, false)" class="was-this-useful__action was-this-useful__action--no" type="button" system-dictionary="WasThisUsefulNo" ng-disabled="sending"><\/button>\n                    <button ng-click="$ctrl.switchMode(3)" class="was-this-useful__action was-this-useful__action--share" type="button"><\/button>\n                <\/div>\n                <div class="was-this-useful__content" ng-show="$ctrl.currentMode !== 0" ng-cloak>\n                    <was-this-useful-no ng-show="$ctrl.currentMode === 2"><\/was-this-useful-no>\n                    <was-this-useful-share item-link="$ctrl.itemLink" ng-show="$ctrl.currentMode === 3"><\/was-this-useful-share>\n                    <div class="was-this-useful__result" ng-show="$ctrl.currentMode === 4">\n                        <div class="was-this-useful__sub-title was-this-useful__sub-title--bold" system-dictionary="WasThisUsefulResultTitle"><\/div>\n                        <div class="was-this-useful__sub-title" system-dictionary="WasThisUsefulResultDesription"><\/div>\n                    <\/div>\n                    <div class="was-this-useful__loading" ng-show="$ctrl.currentMode === 5">\n                        <img classs="was-this-useful__loading__image" src="/components/design/content/ajax-loader.gif" alt="loading" />\n                    <\/div>\n                <\/div>\n            '});i=function(){function t(n){this.siteSettings=n;this.info={}}return t.prototype.$onInit=function(){var n=this;this.siteSettings.getSupportSetting().then(function(t){n.reasons=t.wasThisUsefulReasons})},t.prototype.send=function(){var n={FeedbackText:this.info.text,Reason:this.info.reason===undefined?null:this.info.reason.code,Useful:!1};this.wasThisUsefulController.sendModel(n,!0)},t.prototype.cancel=function(){this.wasThisUsefulController.switchMode(n.WasThisUsefulMode.None)},t}();angular.module("gn.audio.was.this.useful").component("wasThisUsefulNo",{controller:["siteSettings",i],require:{wasThisUsefulController:"^^wasThisUseful"},template:'\n                <form name="wtuNoForm" class="was-this-useful__no" novalidate ng-submit="$ctrl.send()">\n                    <div class="was-this-useful__no__title" system-dictionary="WasThisUsefulHelpUs"><\/div>\n                    <div class="was-this-useful__sub-title" system-dictionary="WasThisUsefulSelectReason"><\/div>\n                    <select class="was-this-useful__no__input was-this-useful__no__reasons" required ng-options="reason.title for reason in $ctrl.reasons" ng-model="$ctrl.info.reason"><\/select>\n                    <div class="was-this-useful__sub-title" system-dictionary="WasThisUsefulFeedbackTItle"><\/div>\n                    <textarea class="was-this-useful__no__input was-this-useful__no__text" rows="10" ng-model="$ctrl.info.text"><\/textarea>\n                    <div class="was-this-useful__sub-title" system-dictionary="WasThisUsefulResultDesription"><\/div>\n                    <div class="was-this-useful__no__actions">\n                        <a class="was-this-useful__action was-this-useful__action--cancel" href="javascript:;" system-dictionary="WasThisUsefulCancel" ng-click="$ctrl.cancel()"><\/a>\n                        <button class="was-this-useful__action was-this-useful__action--send" type="submit" system-dictionary="WasThisUsefulSend"><\/button>\n                    <\/div>\n                <\/form>\n            '});r=function(){function n(n){this.$location=n}return n.prototype.getShareItemLink=function(){return this.$location.protocol()+"://"+document.location.host+document.location.pathname+"#/"+this.itemLink+"#"+this.$location.hash()},n.prototype.copy=function(n){var r=n.target,t=r.previousElementSibling,i;t.focus();t.setSelectionRange(0,t.value.length);i=document.execCommand&&document.execCommand("copy");i||prompt("",t.value)},n}();angular.module("gn.audio.was.this.useful").component("wasThisUsefulShare",{bindings:{itemLink:"<"},controller:["$location",r],template:'\n                <div class="was-this-useful__share">\n                    <input class="was-this-useful__share__input" type="text" readonly="readonly" ng-value="$ctrl.getShareItemLink()" />\n                    <a class="was-this-useful__share__copy jbr-btn icon icon__pack" href="javascript:;" ng-click="$ctrl.copy($event)"><\/a>\n                <\/div>\n            '});u=function(){function n(n,t){this.$http=n;this.siteSettings=t}return n.prototype.send=function(n){var t=this;return this.siteSettings.getSupportSetting().then(function(i){return t.$http.post(i.wasThisUsefulUrl,{wasThisUseful:n},{headers:{"Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"}}).then(function(n){return n.data})})},n}();f=function(){function n(){this.$get=["$http","siteSettings",function(n,t){return new u(n,t)}]}return n.prototype.config=function(n){return angular.isDefined(n)?(this._configuration=n,this):this._configuration},n}();angular.module("gn.audio.was.this.useful").provider("wasThisUseful",f)})(t=n.WasThisUseful||(n.WasThisUseful={}))})(t=n.Audio||(n.Audio={}))}(GN||(GN={})),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports!="undefined"?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};t=function(){function i(i,r){var u=this,f;u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(i),appendDots:n(i),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous<\/button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return n('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3};u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};n.extend(u,u.initials);u.activeBreakpoint=null;u.animType=null;u.animProp=null;u.breakpoints=[];u.breakpointSettings=[];u.cssTransitions=!1;u.focussed=!1;u.interrupted=!1;u.hidden="hidden";u.paused=!0;u.positionProp=null;u.respondTo=null;u.rowCount=1;u.shouldClick=!0;u.$slider=n(i);u.$slidesCache=null;u.transformType=null;u.transitionType=null;u.visibilityChange="visibilitychange";u.windowWidth=0;u.windowTimer=null;f=n(i).data("slick")||{};u.options=n.extend({},u.defaults,r,f);u.currentSlide=u.options.initialSlide;u.originalSettings=u.options;typeof document.mozHidden!="undefined"?(u.hidden="mozHidden",u.visibilityChange="mozvisibilitychange"):typeof document.webkitHidden!="undefined"&&(u.hidden="webkitHidden",u.visibilityChange="webkitvisibilitychange");u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.instanceUid=t++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.registerBreakpoints();u.init(!0)}var t=0;return i}();t.prototype.activateADA=function(){var n=this;n.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};t.prototype.addSlide=t.prototype.slickAdd=function(t,i,r){var u=this;if(typeof i=="boolean")r=i,i=null;else if(i<0||i>=u.slideCount)return!1;u.unload();typeof i=="number"?i===0&&u.$slides.length===0?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):r===!0?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("data-slick-index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateHeight=function(){var n=this,t;n.options.slidesToShow===1&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.animate({height:t},n.options.speed))};t.prototype.animateSlide=function(t,i){var u={},r=this;r.animateHeight();r.options.rtl===!0&&r.options.vertical===!1&&(t=-t);r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){n=Math.ceil(n);r.options.vertical===!1?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),u[r.animType]=r.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.getNavTarget=function(){var i=this,t=i.options.asNavFor;return t&&t!==null&&(t=n(t).not(i.$slider)),t};t.prototype.asNavFor=function(t){var r=this,i=r.getNavTarget();i!==null&&typeof i=="object"&&i.each(function(){var i=n(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayClear();n.slideCount>n.options.slidesToShow&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this,t=n.currentSlide+n.options.slidesToScroll;n.paused||n.interrupted||n.focussed||(n.options.infinite===!1&&(n.direction===1&&n.currentSlide+1===n.slideCount-1?n.direction=0:n.direction===0&&(t=n.currentSlide-n.options.slidesToScroll,n.currentSlide-1==0&&(n.direction=1))),n.slideHandler(t))};t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=n(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=n(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))};t.prototype.buildDots=function(){var t=this,i,r;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),r=n("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)r.append(n("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=r.appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("data-slick-index",t).data("originalStyling",n(i).attr("style")||"")});t.$slider.addClass("slick-slider");t.$slideTrack=t.slideCount===0?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.setSlideClasses(typeof t.currentSlide=="number"?t.currentSlide:0);t.options.draggable===!0&&t.$list.addClass("draggable")};t.prototype.buildRows=function(){var n=this,t,i,r,f,c,u,e,o,s,h;if(f=document.createDocumentFragment(),u=n.$slider.children(),n.options.rows>1){for(e=n.options.slidesPerRow*n.options.rows,c=Math.ceil(u.length/e),t=0;t<c;t++){for(o=document.createElement("div"),i=0;i<n.options.rows;i++){for(s=document.createElement("div"),r=0;r<n.options.slidesPerRow;r++)h=t*e+(i*n.options.slidesPerRow+r),u.get(h)&&s.appendChild(u.get(h));o.appendChild(s)}f.appendChild(o)}n.$slider.empty().append(f);n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}};t.prototype.checkResponsive=function(t,i){var r=this,f,u,e,o=!1,s=r.$slider.width(),h=window.innerWidth||n(window).width();if(r.respondTo==="window"?e=h:r.respondTo==="slider"?e=s:r.respondTo==="min"&&(e=Math.min(h,s)),r.options.responsive&&r.options.responsive.length&&r.options.responsive!==null){u=null;for(f in r.breakpoints)r.breakpoints.hasOwnProperty(f)&&(r.originalSettings.mobileFirst===!1?e<r.breakpoints[f]&&(u=r.breakpoints[f]):e>r.breakpoints[f]&&(u=r.breakpoints[f]));u!==null?r.activeBreakpoint!==null?(u!==r.activeBreakpoint||i)&&(r.activeBreakpoint=u,r.breakpointSettings[u]==="unslick"?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):(r.activeBreakpoint=u,r.breakpointSettings[u]==="unslick"?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):r.activeBreakpoint!==null&&(r.activeBreakpoint=null,r.options=r.originalSettings,t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=u);t||o===!1||r.$slider.trigger("breakpoint",[r,o])}};t.prototype.changeSlide=function(t,i){var r=this,u=n(t.currentTarget),f,e,o,s;u.is("a")&&t.preventDefault();u.is("li")||(u=u.closest("li"));o=r.slideCount%r.options.slidesToScroll!=0;f=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll;switch(t.data.message){case"previous":e=f===0?r.options.slidesToScroll:r.options.slidesToShow-f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-e,!1,i);break;case"next":e=f===0?r.options.slidesToScroll:f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+e,!1,i);break;case"index":s=t.data.index===0?0:t.data.index||u.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(s),!1,i);u.children().trigger("focus");break;default:return}};t.prototype.checkNavigable=function(n){var u=this,t,i,r;if(t=u.getNavigableIndexes(),i=0,n>t[t.length-1])n=t[t.length-1];else for(r in t){if(n<t[r]){n=i;break}i=t[r]}return n};t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&t.$dots!==null&&n("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",n.proxy(t.interrupt,t,!0)).off("mouseleave.slick",n.proxy(t.interrupt,t,!1));t.$slider.off("focus.slick blur.slick");t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide));t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler);t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler);t.$list.off("touchend.slick mouseup.slick",t.swipeHandler);t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler);t.$list.off("click.slick",t.clickHandler);n(document).off(t.visibilityChange,t.visibility);t.cleanUpSlideEvents();t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().off("click.slick",t.selectHandler);n(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange);n(window).off("resize.slick.slick-"+t.instanceUid,t.resize);n("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault);n(window).off("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",n.proxy(t.interrupt,t,!0));t.$list.off("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.cleanUpRows=function(){var n=this,t;n.options.rows>1&&(t=n.$slides.children().children(),t.removeAttr("style"),n.$slider.empty().append(t))};t.prototype.clickHandler=function(n){var t=this;t.shouldClick===!1&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(t){var i=this;i.autoPlayClear();i.touchObject={};i.cleanUpEvents();n(".slick-cloned",i.$slider).detach();i.$dots&&i.$dots.remove();i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove());i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove());i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){n(this).attr("style",n(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides));i.cleanUpRows();i.$slider.removeClass("slick-slider");i.$slider.removeClass("slick-initialized");i.$slider.removeClass("slick-dotted");i.unslicked=!0;t||i.$slider.trigger("destroy",[i])};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t){var i=this;i.cssTransitions===!1?(i.$slides.eq(n).css({zIndex:i.options.zIndex}),i.$slides.eq(n).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(n),i.$slides.eq(n).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(n);t.call()},i.options.speed))};t.prototype.fadeSlideOut=function(n){var t=this;t.cssTransitions===!1?t.$slides.eq(n).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(n),t.$slides.eq(n).css({opacity:0,zIndex:t.options.zIndex-2}))};t.prototype.filterSlides=t.prototype.slickFilter=function(n){var t=this;n!==null&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var r=n(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=r.is(":focus"),t.autoPlay())},0)})};t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){var n=this;return n.currentSlide};t.prototype.getDotCount=function(){var n=this,i=0,r=0,t=0;if(n.options.infinite===!0)while(i<n.slideCount)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else if(n.options.centerMode===!0)t=n.slideCount;else if(n.options.asNavFor)while(i<n.slideCount)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else t=1+Math.ceil((n.slideCount-n.options.slidesToShow)/n.options.slidesToScroll);return t-1};t.prototype.getLeft=function(n){var t=this,f,r,u=0,i;return t.slideOffset=0,r=t.$slides.first().outerHeight(!0),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,u=r*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth*-1,u=(t.options.slidesToShow-(n-t.slideCount))*r*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,u=t.slideCount%t.options.slidesToScroll*r*-1))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=t.options.vertical===!1?n*t.slideWidth*-1+t.slideOffset:n*r*-1+u,t.options.variableWidth===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=t.options.rtl===!0?i[0]?(t.$slideTrack.width()-i[0].offsetLeft-i.width())*-1:0:i[0]?i[0].offsetLeft*-1:0,t.options.centerMode===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=(t.options.rtl===!0?i[0]?(t.$slideTrack.width()-i[0].offsetLeft-i.width())*-1:0:i[0]?i[0].offsetLeft*-1:0)+(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getOption=t.prototype.slickGetOption=function(n){var t=this;return t.options[n]};t.prototype.getNavigableIndexes=function(){var n=this,t=0,i=0,u=[],r;for(n.options.infinite===!1?r=n.slideCount:(t=n.options.slidesToScroll*-1,i=n.options.slidesToScroll*-1,r=n.slideCount*2);t<r;)u.push(t),t=i+n.options.slidesToScroll,i+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return u};t.prototype.getSlick=function(){return this};t.prototype.getSlideCount=function(){var t=this,i,r;return r=t.options.centerMode===!0?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,t.options.swipeToSlide===!0?(t.$slideTrack.find(".slick-slide").each(function(u,f){if(f.offsetLeft-r+n(f).outerWidth()/2>t.swipeLeft*-1)return i=f,!1}),Math.abs(n(i).attr("data-slick-index")-t.currentSlide)||1):t.options.slidesToScroll};t.prototype.goTo=t.prototype.slickGoTo=function(n,t){var i=this;i.changeSlide({data:{message:"index",index:parseInt(n)}},t)};t.prototype.init=function(t){var i=this;n(i.$slider).hasClass("slick-initialized")||(n(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler());t&&i.$slider.trigger("init",[i]);i.options.accessibility===!0&&i.initADA();i.options.autoplay&&(i.paused=!1,i.autoPlay())};t.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"});t.$slideTrack.attr("role","listbox");t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){n(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+i+""})});t.$dots!==null&&t.$dots.attr("role","tablist").find("li").each(function(i){n(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+i+"",id:"slick-slide"+t.instanceUid+i+""})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar");t.activateADA()};t.prototype.initArrowEvents=function(){var n=this;if(n.options.arrows===!0&&n.slideCount>n.options.slidesToShow){n.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},n.changeSlide);n.$nextArrow.off("click.slick").on("click.slick",{message:"next"},n.changeSlide)}};t.prototype.initDotEvents=function(){var t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow)n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide);if(t.options.dots===!0&&t.options.pauseOnDotsHover===!0)n("li",t.$dots).on("mouseenter.slick",n.proxy(t.interrupt,t,!0)).on("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.initSlideEvents=function(){var t=this;if(t.options.pauseOnHover){t.$list.on("mouseenter.slick",n.proxy(t.interrupt,t,!0));t.$list.on("mouseleave.slick",n.proxy(t.interrupt,t,!1))}};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.initSlideEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);n(document).on(t.visibilityChange,n.proxy(t.visibility,t));if(t.options.accessibility===!0)t.$list.on("keydown.slick",t.keyHandler);if(t.options.focusOnSelect===!0)n(t.$slideTrack).children().on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,n.proxy(t.orientationChange,t));n(window).on("resize.slick.slick-"+t.instanceUid,n.proxy(t.resize,t));n("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault);n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.show()};t.prototype.keyHandler=function(n){var t=this;n.target.tagName.match("TEXTAREA|INPUT|SELECT")||(n.keyCode===37&&t.options.accessibility===!0?t.changeSlide({data:{message:t.options.rtl===!0?"next":"previous"}}):n.keyCode===39&&t.options.accessibility===!0&&t.changeSlide({data:{message:t.options.rtl===!0?"previous":"next"}}))};t.prototype.lazyLoad=function(){function f(i){n("img[data-lazy]",i).each(function(){var i=n(this),r=n(this).attr("data-lazy"),u=document.createElement("img");u.onload=function(){i.animate({opacity:0},100,function(){i.attr("src",r).animate({opacity:1},200,function(){i.removeAttr("data-lazy").removeClass("slick-loading")});t.$slider.trigger("lazyLoaded",[t,i,r])})};u.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");t.$slider.trigger("lazyLoadError",[t,i,r])};u.src=r})}var t=this,e,r,i,u;t.options.centerMode===!0?t.options.infinite===!0?(i=t.currentSlide+(t.options.slidesToShow/2+1),u=i+t.options.slidesToShow+2):(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),u=2+(t.options.slidesToShow/2+1)+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,u=Math.ceil(i+t.options.slidesToShow),t.options.fade===!0&&(i>0&&i--,u<=t.slideCount&&u++));e=t.$slider.find(".slick-slide").slice(i,u);f(e);t.slideCount<=t.options.slidesToShow?(r=t.$slider.find(".slick-slide"),f(r)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),f(r)):t.currentSlide===0&&(r=t.$slider.find(".slick-cloned").slice(t.options.slidesToShow*-1),f(r))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();n.options.lazyLoad==="progressive"&&n.progressiveLazyLoad()};t.prototype.next=t.prototype.slickNext=function(){var n=this;n.changeSlide({data:{message:"next"}})};t.prototype.orientationChange=function(){var n=this;n.checkResponsive();n.setPosition()};t.prototype.pause=t.prototype.slickPause=function(){var n=this;n.autoPlayClear();n.paused=!0};t.prototype.play=t.prototype.slickPlay=function(){var n=this;n.autoPlay();n.options.autoplay=!0;n.paused=!1;n.focussed=!1;n.interrupted=!1};t.prototype.postSlide=function(n){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,n]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&t.initADA())};t.prototype.prev=t.prototype.slickPrev=function(){var n=this;n.changeSlide({data:{message:"previous"}})};t.prototype.preventDefault=function(n){n.preventDefault()};t.prototype.progressiveLazyLoad=function(t){t=t||1;var i=this,e=n("img[data-lazy]",i.$slider),r,u,f;e.length?(r=e.first(),u=r.attr("data-lazy"),f=document.createElement("img"),f.onload=function(){r.attr("src",u).removeAttr("data-lazy").removeClass("slick-loading");i.options.adaptiveHeight===!0&&i.setPosition();i.$slider.trigger("lazyLoaded",[i,r,u]);i.progressiveLazyLoad()},f.onerror=function(){t<3?setTimeout(function(){i.progressiveLazyLoad(t+1)},500):(r.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,r,u]),i.progressiveLazyLoad())},f.src=u):i.$slider.trigger("allImagesLoaded",[i])};t.prototype.refresh=function(t){var i=this,r,u;u=i.slideCount-i.options.slidesToShow;!i.options.infinite&&i.currentSlide>u&&(i.currentSlide=u);i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0);r=i.currentSlide;i.destroy(!0);n.extend(i,i.initials,{currentSlide:r});i.init();t||i.changeSlide({data:{message:"index",index:r}},!1)};t.prototype.registerBreakpoints=function(){var t=this,u,f,i,r=t.options.responsive||null;if(n.type(r)==="array"&&r.length){t.respondTo=t.options.respondTo||"window";for(u in r)if(i=t.breakpoints.length-1,f=r[u].breakpoint,r.hasOwnProperty(u)){while(i>=0)t.breakpoints[i]&&t.breakpoints[i]===f&&t.breakpoints.splice(i,1),i--;t.breakpoints.push(f);t.breakpointSettings[f]=r[u].settings}t.breakpoints.sort(function(n,i){return t.options.mobileFirst?n-i:i-n})}};t.prototype.reinit=function(){var t=this;if(t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&t.currentSlide!==0&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),t.options.focusOnSelect===!0)n(t.$slideTrack).children().on("click.slick",t.selectHandler);t.setSlideClasses(typeof t.currentSlide=="number"?t.currentSlide:0);t.setPosition();t.focusHandler();t.paused=!t.options.autoplay;t.autoPlay();t.$slider.trigger("reInit",[t])};t.prototype.resize=function(){var t=this;n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.unslicked||t.setPosition()},50))};t.prototype.removeSlide=t.prototype.slickRemove=function(n,t,i){var r=this;if(typeof n=="boolean"?(t=n,n=t===!0?0:r.slideCount-1):n=t===!0?--n:n,r.slideCount<1||n<0||n>r.slideCount-1)return!1;r.unload();i===!0?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove();r.$slides=r.$slideTrack.children(this.options.slide);r.$slideTrack.children(this.options.slide).detach();r.$slideTrack.append(r.$slides);r.$slidesCache=r.$slides;r.reinit()};t.prototype.setCSS=function(n){var t=this,i={},r,u;t.options.rtl===!0&&(n=-n);r=t.positionProp=="left"?Math.ceil(n)+"px":"0px";u=t.positionProp=="top"?Math.ceil(n)+"px":"0px";i[t.positionProp]=n;t.transformsEnabled===!1?t.$slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this,t;n.options.vertical===!1?n.options.centerMode===!0&&n.$list.css({padding:"0px "+n.options.centerPadding}):(n.$list.height(n.$slides.first().outerHeight(!0)*n.options.slidesToShow),n.options.centerMode===!0&&n.$list.css({padding:n.options.centerPadding+" 0px"}));n.listWidth=n.$list.width();n.listHeight=n.$list.height();n.options.vertical===!1&&n.options.variableWidth===!1?(n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow),n.$slideTrack.width(Math.ceil(n.slideWidth*n.$slideTrack.children(".slick-slide").length))):n.options.variableWidth===!0?n.$slideTrack.width(5e3*n.slideCount):(n.slideWidth=Math.ceil(n.listWidth),n.$slideTrack.height(Math.ceil(n.$slides.first().outerHeight(!0)*n.$slideTrack.children(".slick-slide").length)));t=n.$slides.first().outerWidth(!0)-n.$slides.first().width();n.options.variableWidth===!1&&n.$slideTrack.children(".slick-slide").width(n.slideWidth-t)};t.prototype.setFade=function(){var t=this,i;t.$slides.each(function(r,u){i=t.slideWidth*r*-1;t.options.rtl===!0?n(u).css({position:"relative",right:i,top:0,zIndex:t.options.zIndex-2,opacity:0}):n(u).css({position:"relative",left:i,top:0,zIndex:t.options.zIndex-2,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})};t.prototype.setHeight=function(){var n=this,t;n.options.slidesToShow===1&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setOption=t.prototype.slickSetOption=function(){var t=this,u,f,e,i,o=!1,r;if(n.type(arguments[0])==="object"?(e=arguments[0],o=arguments[1],r="multiple"):n.type(arguments[0])==="string"&&(e=arguments[0],i=arguments[1],o=arguments[2],arguments[0]==="responsive"&&n.type(arguments[1])==="array"?r="responsive":typeof arguments[1]!="undefined"&&(r="single")),r==="single")t.options[e]=i;else if(r==="multiple")n.each(e,function(n,i){t.options[n]=i});else if(r==="responsive")for(f in i)if(n.type(t.options.responsive)!=="array")t.options.responsive=[i[f]];else{for(u=t.options.responsive.length-1;u>=0;)t.options.responsive[u].breakpoint===i[f].breakpoint&&t.options.responsive.splice(u,1),u--;t.options.responsive.push(i[f])}o&&(t.unload(),t.reinit())};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();n.options.fade===!1?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();n.$slider.trigger("setPosition",[n])};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=n.options.vertical===!0?"top":"left";n.positionProp==="top"?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");(t.WebkitTransition!==undefined||t.MozTransition!==undefined||t.msTransition!==undefined)&&n.options.useCSS===!0&&(n.cssTransitions=!0);n.options.fade&&(typeof n.options.zIndex=="number"?n.options.zIndex<3&&(n.options.zIndex=3):n.options.zIndex=n.defaults.zIndex);t.OTransform!==undefined&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(n.animType=!1));t.MozTransform!==undefined&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",t.perspectiveProperty===undefined&&t.MozPerspective===undefined&&(n.animType=!1));t.webkitTransform!==undefined&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(n.animType=!1));t.msTransform!==undefined&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",t.msTransform===undefined&&(n.animType=!1));t.transform!==undefined&&n.animType!==!1&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=n.options.useTransform&&n.animType!==null&&n.animType!==!1};t.prototype.setSlideClasses=function(n){var t=this,u,i,r,f;i=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");t.$slides.eq(n).addClass("slick-current");t.options.centerMode===!0?(u=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u,n+u+1).addClass("slick-active").attr("aria-hidden","false"):(r=t.options.slidesToShow+n,i.slice(r-u+1,r+u+2).addClass("slick-active").attr("aria-hidden","false")),n===0?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=t.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(f=t.slideCount%t.options.slidesToShow,r=t.options.infinite===!0?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));t.options.lazyLoad==="ondemand"&&t.lazyLoad()};t.prototype.setupInfinite=function(){var t=this,i,r,u;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=t.options.centerMode===!0?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;i<u;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.interrupt=function(n){var t=this;n||t.autoPlay();t.interrupted=n};t.prototype.selectHandler=function(t){var i=this,u=n(t.target).is(".slick-slide")?n(t.target):n(t.target).parents(".slick-slide"),r=parseInt(u.attr("data-slick-index"));if(r||(r=0),i.slideCount<=i.options.slidesToShow){i.setSlideClasses(r);i.asNavFor(r);return}i.slideHandler(r)};t.prototype.slideHandler=function(n,t,i){var u,f,s,o,h=null,r=this,e;if((t=t||!1,r.animating!==!0||r.options.waitForAnimate!==!0)&&(r.options.fade!==!0||r.currentSlide!==n)&&!(r.slideCount<=r.options.slidesToShow)){if(t===!1&&r.asNavFor(n),u=n,h=r.getLeft(u),o=r.getLeft(r.currentSlide),r.currentLeft=r.swipeLeft===null?o:r.swipeLeft,r.options.infinite===!1&&r.options.centerMode===!1&&(n<0||n>r.getDotCount()*r.options.slidesToScroll)){r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(o,function(){r.postSlide(u)}):r.postSlide(u));return}if(r.options.infinite===!1&&r.options.centerMode===!0&&(n<0||n>r.slideCount-r.options.slidesToScroll)){r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(o,function(){r.postSlide(u)}):r.postSlide(u));return}if(r.options.autoplay&&clearInterval(r.autoPlayTimer),f=u<0?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:u-r.slideCount:u,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,f]),s=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(e=r.getNavTarget(),e=e.slick("getSlick"),e.slideCount<=e.options.slidesToShow&&e.setSlideClasses(r.currentSlide)),r.updateDots(),r.updateArrows(),r.options.fade===!0){i!==!0?(r.fadeSlideOut(s),r.fadeSlide(f,function(){r.postSlide(f)})):r.postSlide(f);r.animateHeight();return}i!==!0?r.animateSlide(h,function(){r.postSlide(f)}):r.postSlide(f)}};t.prototype.startLoad=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return(i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),n=Math.round(u*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0)?t.options.rtl===!1?"left":"right":n<=360&&n>=315?t.options.rtl===!1?"left":"right":n>=135&&n<=225?t.options.rtl===!1?"right":"left":t.options.verticalSwiping===!0?n>=35&&n<=135?"down":"up":"vertical"};t.prototype.swipeEnd=function(){var n=this,i,t;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=n.touchObject.swipeLength>10?!1:!0,n.touchObject.curX===undefined)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){t=n.swipeDirection();switch(t){case"left":case"down":i=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount();n.currentDirection=0;break;case"right":case"up":i=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount();n.currentDirection=1}t!="vertical"&&(n.slideHandler(i),n.touchObject={},n.$slider.trigger("swipe",[n,t]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(t.options.swipe!==!1&&(!("ontouchend"in document)||t.options.swipe!==!1)&&(t.options.draggable!==!1||n.type.indexOf("mouse")===-1)){t.touchObject.fingerCount=n.originalEvent&&n.originalEvent.touches!==undefined?n.originalEvent.touches.length:1;t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold;t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold);switch(n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}}};t.prototype.swipeMove=function(n){var t=this,f,e,r,u,i;if(i=n.originalEvent!==undefined?n.originalEvent.touches:null,!t.dragging||i&&i.length!==1)return!1;if(f=t.getLeft(t.currentSlide),t.touchObject.curX=i!==undefined?i[0].pageX:n.clientX,t.touchObject.curY=i!==undefined?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),t.options.verticalSwiping===!0&&(t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2)))),e=t.swipeDirection(),e!=="vertical"){if(n.originalEvent!==undefined&&t.touchObject.swipeLength>4&&n.preventDefault(),u=(t.options.rtl===!1?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),t.options.verticalSwiping===!0&&(u=t.touchObject.curY>t.touchObject.startY?1:-1),r=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,t.options.infinite===!1&&(t.currentSlide===0&&e==="right"||t.currentSlide>=t.getDotCount()&&e==="left")&&(r=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.swipeLeft=t.options.vertical===!1?f+r*u:f+r*(t.$list.height()/t.listWidth)*u,t.options.verticalSwiping===!0&&(t.swipeLeft=f+r*u),t.options.fade===!0||t.options.touchMove===!1)return!1;if(t.animating===!0)return t.swipeLeft=null,!1;t.setCSS(t.swipeLeft)}};t.prototype.swipeStart=function(n){var t=this,i;if(t.interrupted=!0,t.touchObject.fingerCount!==1||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;n.originalEvent!==undefined&&n.originalEvent.touches!==undefined&&(i=n.originalEvent.touches[0]);t.touchObject.startX=t.touchObject.curX=i!==undefined?i.pageX:n.clientX;t.touchObject.startY=t.touchObject.curY=i!==undefined?i.pageY:n.clientY;t.dragging=!0};t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var n=this;n.$slidesCache!==null&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove();t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};t.prototype.unslick=function(n){var t=this;t.$slider.trigger("unslick",[t,n]);t.destroy()};t.prototype.updateArrows=function(){var n=this,t;t=Math.floor(n.options.slidesToShow/2);n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&!n.options.infinite&&(n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.currentSlide===0?(n.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&n.options.centerMode===!1?(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-1&&n.options.centerMode===!0&&(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))};t.prototype.updateDots=function(){var n=this;n.$dots!==null&&(n.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))};t.prototype.visibility=function(){var n=this;n.options.autoplay&&(n.interrupted=document[n.hidden]?!0:!1)};n.fn.slick=function(){for(var i=this,r=arguments[0],f=Array.prototype.slice.call(arguments,1),e=i.length,u,n=0;n<e;n++)if(typeof r=="object"||typeof r=="undefined"?i[n].slick=new t(i[n],r):u=i[n].slick[r].apply(i[n].slick,f),typeof u!="undefined")return u;return i}}),function(n,t,i,r){function c(n,t){return n[t]===r?u[t]:n[t]}function nt(){var n=t.pageYOffset;return n===r?f.scrollTop:n}function l(n,t){var i=u["on"+n];i&&(d(i)?i.call(t[0]):(i.addClass&&t.addClass(i.addClass),i.removeClass&&t.removeClass(i.removeClass)));t.trigger("lazy"+n,[t]);o()}function tt(t){l(t.type,n(this).off(b,tt))}function it(i){var g,ut;if(e.length){i=i||u.forceLoad;y=Infinity;for(var ft=nt(),st=t.innerHeight||f.clientHeight,ht=t.innerWidth||f.clientWidth,o=0,c=e.length;o<c;o++){var h=e[o],r=h[0],v=h[s],it=!1,rt=i||w(r,a)<0,p;if(n.contains(f,r)){if(i||!v.visibleOnly||r.offsetWidth||r.offsetHeight){if(!rt){var k=r.getBoundingClientRect(),et=v.edgeX,ot=v.edgeY;p=k.top+ft-ot-st;rt=p<=ft&&k.bottom>-ot&&k.left<=ht+et&&k.right>-et}if(rt){h.on(b,tt);l("show",h);g=v.srcAttr;ut=d(g)?g(h):r.getAttribute(g);ut&&(r.src=ut);it=!0}else p<y&&(y=p)}}else it=!0;it&&(w(r,a,0),e.splice(o--,1),c--)}c||l("complete",n(f))}}function rt(){h>1?(h=1,it(),setTimeout(rt,u.throttle)):h=0}function o(n){e.length&&(n&&n.type==="scroll"&&n.currentTarget===t&&y>=nt()||(h||setTimeout(rt,0),h=2))}function ut(){v.lazyLoadXT()}function et(){it(!0)}var s="lazyLoadXT",a="lazied",b="load error",p="lazy-hidden",f=i.documentElement||i.body,ft=t.onscroll===r||!!t.operamini||!f.getBoundingClientRect,u={autoInit:!0,selector:"img[data-src]",blankImage:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",throttle:99,forceLoad:ft,loadEvent:"pageshow",updateEvent:"load orientationchange resize scroll touchmove focus",forceEvent:"lazyloadall",oninit:{removeClass:"lazy"},onshow:{addClass:p},onload:{removeClass:p,addClass:"lazy-loaded"},onerror:{removeClass:p},checkDuplicates:!0},k={srcAttr:"data-src",edgeX:0,edgeY:0,visibleOnly:!0},v=n(t),d=n.isFunction,g=n.extend,w=n.data||function(t,i){return n(t).data(i)},e=[],y=0,h=0;n[s]=g(u,k,n[s]);n.fn[s]=function(i){i=i||{};var f=c(i,"blankImage"),v=c(i,"checkDuplicates"),y=c(i,"scrollContainer"),p=c(i,"show"),h={},r;n(y).on("scroll",o);for(r in k)h[r]=c(i,r);return this.each(function(r,c){if(c===t)n(u.selector).lazyLoadXT(i);else{var b=v&&w(c,a),y=n(c).data(a,p?-1:1);if(b){o();return}f&&c.tagName==="IMG"&&!c.src&&(c.src=f);y[s]=g({},h);l("init",y);e.push(y);o()}})};n(i).ready(function(){l("start",v);v.on(u.updateEvent,o).on(u.forceEvent,et);n(i).on(u.updateEvent,o);if(u.autoInit){v.on(u.loadEvent,ut);ut()}})}(window.jQuery||window.Zepto||window.$,window,document),function(n){var t=n.lazyLoadXT;t.selector+=",video,iframe[data-src]";t.videoPoster="data-poster";n(document).on("lazyshow","video",function(i,r){var u=r.lazyLoadXT.srcAttr,e=n.isFunction(u),f=!1;r.attr("poster",r.attr(t.videoPoster));r.children("source,track").each(function(t,i){var r=n(i),o=e?u(r):r.attr(u);o&&(r.attr("src",o),f=!0)});f&&this.load()})}(window.jQuery||window.Zepto||window.$),function(n,t,i,r){function c(t,i){return Math[i].apply(null,n.map(t,function(n){return n[u]}))}function b(n){return n[u]>=e[u]||n[u]===o}function k(n){return n[u]===o}function d(r){var nt=r.attr(f.srcsetAttr),h,g,l,d;if(!nt||(h=n.map(nt.replace(/(\s[\d.]+[whx]),/g,"$1 @,@ ").split(" @,@ "),function(n){return{url:a.exec(n)[1],w:parseFloat((v.exec(n)||s)[1]),h:parseFloat((y.exec(n)||s)[1]),x:parseFloat((p.exec(n)||w)[1])}}),!h.length))return!1;g=i.documentElement;e={w:t.innerWidth||g.clientWidth,h:t.innerHeight||g.clientHeight,x:t.devicePixelRatio||1};for(l in e)u=l,o=c(h,"max"),h=n.grep(h,b);for(l in e)u=l,o=c(h,"min"),h=n.grep(h,k);return d=h[0].url,f.srcsetExtended&&(d=(r.attr(f.srcsetBaseAttr)||"")+d+(r.attr(f.srcsetExtAttr)||"")),d}var f=n.lazyLoadXT,l=function(){return"srcset"in new Image}(),a=/^\s*(\S*)/,v=/\S\s+(\d+)w/,y=/\S\s+(\d+)h/,p=/\S\s+([\d\.]+)x/,s=[0,Infinity],w=[0,1],h={srcsetAttr:"data-srcset",srcsetExtended:!0,srcsetBaseAttr:"data-srcset-base",srcsetExtAttr:"data-srcset-ext"},e={w:0,h:0,x:0},u,o;for(u in h)f[u]===r&&(f[u]=h[u]);f.selector+=",img["+f.srcsetAttr+"]";n(i).on("lazyshow","img",function(n,t){var i=t.attr(f.srcsetAttr);i&&(!f.srcsetExtended&&l?t.attr("srcset",i):t.lazyLoadXT.srcAttr=d)})}(window.jQuery||window.Zepto||window.$,window,document),function(n){"use strict";var i=n.lazyLoadXT,t=i.bgAttr||"data-bg";i.selector+=",["+t+"]";n(document).on("lazyshow",function(i){var r=n(i.target),u=r.attr(t);u&&r.css("background-image","url('"+u+"')").removeAttr(t);setTimeout(function(){r.removeClass("lazy-hidden").addClass("lazy-loaded")},10)})}(window.jQuery||window.Zepto||window.$),function(n){"use strict";var t={blankImage:"/components/design/content/blank.png"};window.outerWidth<480&&(t.edgeY=300);n.extend(n.lazyLoadXT,t)}(window.jQuery||window.Zepto||window.$);!function(n){var t=navigator.userAgent;n.HTMLPictureElement&&/ecko/.test(t)&&t.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",function(){var r,u=document.createElement("source"),e=function(n){var i,r,t=n.parentNode;"PICTURE"===t.nodeName.toUpperCase()?(i=u.cloneNode(),t.insertBefore(i,t.firstElementChild),setTimeout(function(){t.removeChild(i)})):(!n._pfLastSize||n.offsetWidth>n._pfLastSize)&&(n._pfLastSize=n.offsetWidth,r=n.sizes,n.sizes+=",100vw",setTimeout(function(){n.sizes=r}))},o=function(){for(var t=document.querySelectorAll("picture > img, img[srcset][sizes]"),n=0;n<t.length;n++)e(t[n])},t=function(){clearTimeout(r);r=setTimeout(o,99)},i=n.matchMedia&&matchMedia("(orientation: landscape)"),f=function(){t();i&&i.addListener&&i.addListener(t)};return u.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?f():document.addEventListener("DOMContentLoaded",f),t}())}(window),function(n,t,i){"use strict";function v(n){return" "===n||"\t"===n||"\n"===n||"\f"===n||"\r"===n}function wt(t,i){var r=new n.Image;return r.onerror=function(){o[t]=!1;f()},r.onload=function(){o[t]=1===r.width;f()},r.src=i,"pending"}function bt(){w=!1;a=n.devicePixelRatio;h={};b={};r.DPR=a||1;u.width=Math.max(n.innerWidth||0,e.clientWidth);u.height=Math.max(n.innerHeight||0,e.clientHeight);u.vw=u.width/100;u.vh=u.height/100;y=[u.height,u.width,a].join("-");u.em=r.getEmValue();u.rem=u.em}function kt(n,t,i,r){var f,o,e,u;return"saveData"===p.algorithm?n>2.7?u=i+1:(o=t-i,f=Math.pow(n-.6,1.5),e=o*f,r&&(e+=.1*f),u=n+e):u=i>1?Math.sqrt(n*t):n,u>i}function dt(n){var i,t=r.getSet(n),u=!1;"pending"!==t&&(u=y,t&&(i=r.setRes(t),r.applySetCandidate(i,n)));n[r.ns].evaled=u}function gt(n,t){return n.res-t.res}function ni(n,t,i){var u;return!i&&t&&(i=n[r.ns].sets,i=i&&i[i.length-1]),u=et(t,i),u&&(t=r.makeUrl(t),n[r.ns].curSrc=t,n[r.ns].curCan=u,u.res||ft(u,u.set.sizes)),u}function et(n,t){var i,f,u;if(n&&t)for(u=r.parseSet(t),n=r.makeUrl(n),i=0;i<u.length;i++)if(n===r.makeUrl(u[i].url)){f=u[i];break}return f}function ti(n,t){for(var i,f,o=n.getElementsByTagName("source"),u=0,e=o.length;e>u;u++)i=o[u],i[r.ns]=!0,f=i.getAttribute("srcset"),f&&t.push({srcset:f,media:i.getAttribute("media"),type:i.getAttribute("type"),sizes:i.getAttribute("sizes")})}function ii(n,t){function h(t){var i,r=t.exec(n.substring(e));if(r)return(i=r[0],e+=i.length,i)}function o(){for(var u,r,e,h,v,o,l,y,n=!1,i={},a=0;a<f.length;a++)h=f[a],v=h[h.length-1],o=h.substring(0,h.length-1),l=parseInt(o,10),y=parseFloat(o),vt.test(o)&&"w"===v?((u||r)&&(n=!0),0===l?n=!0:u=l):vi.test(o)&&"x"===v?((u||r||e)&&(n=!0),0>y?n=!0:r=y):vt.test(o)&&"h"===v?((e||r)&&(n=!0),0===l?n=!0:e=l):n=!0;n||(i.url=s,u&&(i.w=u),r&&(i.d=r),e&&(i.h=e),e||r||u||(i.d=1),1===i.d&&(t.has1x=!0),i.set=t,c.push(i))}function l(){for(h(hi),i="",u="in descriptor";;){if(r=n.charAt(e),"in descriptor"===u)if(v(r))i&&(f.push(i),i="",u="after descriptor");else{if(","===r)return e+=1,i&&f.push(i),void o();if("("===r)i+=r,u="in parens";else{if(""===r)return i&&f.push(i),void o();i+=r}}else if("in parens"===u)if(")"===r)i+=r,u="in descriptor";else{if(""===r)return f.push(i),void o();i+=r}else if("after descriptor"===u&&!v(r)){if(""===r)return void o();u="in descriptor";e-=1}e+=1}}for(var s,f,i,u,r,a=n.length,e=0,c=[];;){if(h(ci),e>=a)return c;s=h(li);f=[];","===s.slice(-1)?(s=s.replace(ai,""),o()):l()}}function ri(n){function s(n){function u(){r&&(f.push(r),r="")}function s(){f[0]&&(h.push(f),f=[])}for(var i,r="",f=[],h=[],e=0,t=0,o=!1;;){if(i=n.charAt(t),""===i)return u(),s(),h;if(o){if("*"===i&&"/"===n[t+1]){o=!1;t+=2;u();continue}t+=1}else{if(v(i)){if(n.charAt(t-1)&&v(n.charAt(t-1))||!r){t+=1;continue}if(0===e){u();t+=1;continue}i=" "}else if("("===i)e+=1;else if(")"===i)e-=1;else{if(","===i){u();s();t+=1;continue}if("/"===i&&"*"===n.charAt(t+1)){o=!0;t+=2;continue}}r+=i;t+=1}}}function h(n){return c.test(n)&&parseFloat(n)>=0?!0:l.test(n)?!0:"0"===n||"-0"===n||"+0"===n?!0:!1}var i,u,e,t,f,o,c=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,l=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(u=s(n),e=u.length,i=0;e>i;i++)if((t=u[i],f=t[t.length-1],h(f))&&((o=f,t.pop(),0===t.length)||(t=t.join(" "),r.matchesMedia(t))))return o;return"100vw"}t.createElement("picture");var ui,c,ot,y,r={},k=!1,l=function(){},s=t.createElement("img"),d=s.getAttribute,st=s.setAttribute,ht=s.removeAttribute,e=t.documentElement,o={},p={algorithm:""},g="data-pfsrc",ct=g+"set",nt=navigator.userAgent,fi=/rident/.test(nt)||/ecko/.test(nt)&&nt.match(/rv\:(\d+)/)&&RegExp.$1>35,tt="currentSrc",ei=/\s+\+?\d+(e\d+)?w/,oi=/(\([^)]+\))?\s*(.+)/,it=n.picturefillCFG,si="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",lt="font-size:100%!important;",w=!0,h={},b={},a=n.devicePixelRatio,u={px:1,"in":96},at=t.createElement("a"),rt=!1,hi=/^[ \t\n\r\u000c]+/,ci=/^[, \t\n\r\u000c]+/,li=/^[^ \t\n\r\u000c]+/,ai=/[,]+$/,vt=/^\d+$/,vi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,yt=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent&&n.attachEvent("on"+t,i)},ut=function(n){var t={};return function(i){return i in t||(t[i]=n(i)),t[i]}},pt=function(){var n=/^([\d\.]+)(em|vw|px)$/,t=function(){for(var n=arguments,t=0,i=n[0];++t in n;)i=i.replace(n[t],n[++t]);return i},i=ut(function(n){return"return "+t((n||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"});return function(t,r){var f;if(!(t in h))if(h[t]=!1,r&&(f=t.match(n)))h[t]=f[1]*u[f[2]];else try{h[t]=new Function("e",i(t))(u)}catch(e){}return h[t]}}(),ft=function(n,t){return n.w?(n.cWidth=r.calcListLength(t||"100vw"),n.res=n.w/n.cWidth):n.res=n.d,n},f=function(n){if(k){var f,u,e,i=n||{};if(i.elements&&1===i.elements.nodeType&&("IMG"===i.elements.nodeName.toUpperCase()?i.elements=[i.elements]:(i.context=i.elements,i.elements=null)),f=i.elements||r.qsa(i.context||t,i.reevaluate||i.reselect?r.sel:r.selShort),e=f.length){for(r.setupRun(i),rt=!0,u=0;e>u;u++)r.fillImg(f[u],i);r.teardownRun(i)}}};for(ui=n.console&&console.warn?function(n){console.warn(n)}:l,(tt in s)||(tt="src"),o["image/jpeg"]=!0,o["image/gif"]=!0,o["image/png"]=!0,o["image/svg+xml"]=t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),r.ns=("pf"+(new Date).getTime()).substr(0,9),r.supSrcset=("srcset"in s),r.supSizes=("sizes"in s),r.supPicture=!!n.HTMLPictureElement,r.supSrcset&&r.supPicture&&!r.supSizes&&!function(n){s.srcset="data:,a";n.src="data:,a";r.supSrcset=s.complete===n.complete;r.supPicture=r.supSrcset&&r.supPicture}(t.createElement("img")),r.supSrcset&&!r.supSizes?!function(){var i="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n=t.createElement("img"),u=function(){var t=n.width;2===t&&(r.supSizes=!0);ot=r.supSrcset&&!r.supSizes;k=!0;setTimeout(f)};n.onload=u;n.onerror=u;n.setAttribute("sizes","9px");n.srcset=i+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w";n.src=i}():k=!0,r.selShort="picture>img,img[srcset]",r.sel=r.selShort,r.cfg=p,r.DPR=a||1,r.u=u,r.types=o,r.setSize=l,r.makeUrl=ut(function(n){return at.href=n,at.href}),r.qsa=function(n,t){return"querySelector"in n?n.querySelectorAll(t):[]},r.matchesMedia=function(){return r.matchesMedia=n.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?function(n){return!n||matchMedia(n).matches}:r.mMQ,r.matchesMedia.apply(this,arguments)},r.mMQ=function(n){return n?pt(n):!0},r.calcLength=function(n){var t=pt(n,!0)||!1;return 0>t&&(t=!1),t},r.supportsType=function(n){return n?o[n]:!0},r.parseSize=ut(function(n){var t=(n||"").match(oi);return{media:t&&t[1],length:t&&t[2]}}),r.parseSet=function(n){return n.cands||(n.cands=ii(n.srcset,n)),n.cands},r.getEmValue=function(){var n;if(!c&&(n=t.body)){var i=t.createElement("div"),r=e.style.cssText,u=n.style.cssText;i.style.cssText=si;e.style.cssText=lt;n.style.cssText=lt;n.appendChild(i);c=i.offsetWidth;n.removeChild(i);c=parseFloat(c,10);e.style.cssText=r;n.style.cssText=u}return c||16},r.calcListLength=function(n){if(!(n in b)||p.uT){var t=r.calcLength(ri(n));b[n]=t?t:u.width}return b[n]},r.setRes=function(n){var t,i,u;if(n)for(t=r.parseSet(n),i=0,u=t.length;u>i;i++)ft(t[i],n.sizes);return t},r.setRes.res=ft,r.applySetCandidate=function(n,t){if(n.length){var f,e,o,l,i,s,u,a,v,h=t[r.ns],c=r.DPR;if(s=h.curSrc||t[tt],u=h.curCan||ni(t,s,n[0].set),u&&u.set===n[0].set&&(v=fi&&!t.complete&&u.res-.1>c,v||(u.cached=!0,u.res>=c&&(i=u))),!i)for(n.sort(gt),l=n.length,i=n[l-1],e=0;l>e;e++)if(f=n[e],f.res>=c){o=e-1;i=n[o]&&(v||s!==r.makeUrl(f.url))&&kt(n[o].res,f.res,c,n[o].cached)?n[o]:f;break}i&&(a=r.makeUrl(i.url),h.curSrc=a,h.curCan=i,a!==s&&r.setSrc(t,i),r.setSize(t))}},r.setSrc=function(n,t){var i;n.src=t.url;"image/svg+xml"===t.set.type&&(i=n.style.width,n.style.width=n.offsetWidth+1+"px",n.offsetWidth+1&&(n.style.width=i))},r.getSet=function(n){for(var t,u,f=!1,e=n[r.ns].sets,i=0;i<e.length&&!f;i++)if(t=e[i],t.srcset&&r.matchesMedia(t.media)&&(u=r.supportsType(t.type))){"pending"===u&&(t=u);f=t;break}return f},r.parseSets=function(n,t,u){var o,e,s,h,c=t&&"PICTURE"===t.nodeName.toUpperCase(),f=n[r.ns];(f.src===i||u.src)&&(f.src=d.call(n,"src"),f.src?st.call(n,g,f.src):ht.call(n,g));(f.srcset===i||u.srcset||!r.supSrcset||n.srcset)&&(o=d.call(n,"srcset"),f.srcset=o,h=!0);f.sets=[];c&&(f.pic=!0,ti(t,f.sets));f.srcset?(e={srcset:f.srcset,sizes:d.call(n,"sizes")},f.sets.push(e),s=(ot||f.src)&&ei.test(f.srcset||""),s||!f.src||et(f.src,e)||e.has1x||(e.srcset+=", "+f.src,e.cands.push({url:f.src,d:1,set:e}))):f.src&&f.sets.push({srcset:f.src,sizes:null});f.curCan=null;f.curSrc=i;f.supported=!(c||e&&!r.supSrcset||s&&!r.supSizes);h&&r.supSrcset&&!f.supported&&(o?(st.call(n,ct,o),n.srcset=""):ht.call(n,ct));f.supported&&!f.srcset&&(!f.src&&n.src||n.src!==r.makeUrl(f.src))&&(null===f.src?n.removeAttribute("src"):n.src=f.src);f.parsed=!0},r.fillImg=function(n,t){var i,u=t.reselect||t.reevaluate;n[r.ns]||(n[r.ns]={});i=n[r.ns];(u||i.evaled!==y)&&((!i.parsed||t.reevaluate)&&r.parseSets(n,n.parentNode,t),i.supported?i.evaled=y:dt(n))},r.setupRun=function(){(!rt||w||a!==n.devicePixelRatio)&&bt()},r.supPicture?(f=l,r.fillImg=l):!function(){var i,h=n.attachEvent?/d$|^c/:/d$|^c|^i/,f=function(){var n=t.readyState||"";o=setTimeout(f,"loading"===n?200:999);t.body&&(r.fillImgs(),i=i||h.test(n),i&&clearTimeout(o))},o=setTimeout(f,t.body?9:99),c=function(n,t){var i,r,u=function(){var f=new Date-r;t>f?i=setTimeout(u,t-f):(i=null,n())};return function(){r=new Date;i||(i=setTimeout(u,t))}},s=e.clientHeight,l=function(){w=Math.max(n.innerWidth||0,e.clientWidth)!==u.width||e.clientHeight!==s;s=e.clientHeight;w&&r.fillImgs()};yt(n,"resize",c(l,99));yt(t,"readystatechange",f)}(),r.picturefill=f,r.fillImgs=f,r.teardownRun=l,f._=r,n.picturefillCFG={pf:r,push:function(n){var t=n.shift();"function"==typeof r[t]?r[t].apply(r,n):(p[t]=n[0],rt&&r.fillImgs({reselect:!0}))}};it&&it.length;)n.picturefillCFG.push(it.shift());n.picturefill=f;"object"==typeof module&&"object"==typeof module.exports?module.exports=f:"function"==typeof define&&define.amd&&define("picturefill",function(){return f});r.supPicture||(o["image/webp"]=wt("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document);angular.module("gn.audio.design.web",[]),function(){"use strict";angular.module("gn.audio.design.web").directive("fallbackSrc",[function(){return{link:function(n,t,i){t.bind("error",function(n){n.target.setAttribute("src",i.fallbackSrc);n.target.classList.add("fallback-src")});n.$on("$destroy",function(){t.unbind("error")})},restrict:"A"}},])}(),function(){"use strict";angular.module("gn.audio.design.web").directive("focusOn",["$timeout",function(n){return{link:function(t,i,r){var u=document.getElementById(r.focusOn);if(u!==null)i.on("change",function(){n(function(){u.focus()},10)})},restrict:"A"}},])}(),function(){"use strict";angular.module("gn.audio.design.web").directive("hideWhen",["$window","domUtils",function(n,t){return{link:function(i,r,u){var e=angular.element(u.hideWhen),f,o;if(e.length!==0){f=Number(u.hideWhenThreshold);o=isNaN(f)?0:f;angular.element(n).on("scroll",function(){var n=Array.prototype.some.call(e,function(n){return t.isScrolledIntoView(n,o)});n?r.hide():r.show()})}},restrict:"A"}},])}(),function(){"use strict";angular.module("gn.audio.design.web").directive("jabraVideo",["$log","$q",function(n,t){return{link:function(i,r){var f,u,e,o=function(){var i=t.defer(),r=new Image;return r.onload=function(){n.info("Youtube is accessible.");i.resolve()},r.onerror=function(){n.warn("The user can not access Youtube.");i.reject()},r.src="//youtube.com/favicon.ico",i.promise};if(!i.youtube&&!i.ku6){n.warn("No video identifiers specified.");return}o().then(function(){u="//www.youtube.com/embed/"+i.youtube+"?rel=0&showinfo=0&iv_load_policy=3&rel=0&controls="+Number(i.controls!=="false")+"&autoplay="+Number(i.autoplay==="true")},function(){u="//player.ku6.com/refer/"+i.ku6+"/v.swf&amp;adss=0&amp;&amp;pl=0&amp;pv=0&amp;so=0auto="+Number(i.autoplay==="true")}).finally(function(){u!==undefined&&(f=i.lazy==="true"?"data-src":"src",e='<iframe class="embed-responsive-item" '+f+'="'+u+'"><\/iframe>',r.html(e))})},restrict:"E",scope:{autoplay:"@",controls:"@",ku6:"@",lazy:"@",youtube:"@"}}},])}(),function(){"use strict";angular.module("gn.audio.design.web").directive("scrollTo",["smoothScroll","domUtils",function(n,t){return{link:function(i,r,u){r.on("click",function(i){var r=t.getElement(u.scrollTo),f=angular.element(r).outerHeight(),e=document.documentElement.clientHeight,s=u.scrollToOffset===""||isNaN(Number(u.scrollToOffset))?60:Number(u.scrollToOffset),o;return(i.preventDefault(),!r)?!1:(u.scrollToPosition==="center"&&f<e&&(o=(e-f)/2),n(r,{offset:(o||0)+s}),!1)})},restrict:"A"}},]).directive("scrollToOnInit",["$location","smoothScroll","domUtils",function(n,t,i){return{link:function(){var u=n.url().replace(/\//,""),r=i.getElement(u);r&&t(r)},restrict:"A"}},])}(),function(){"use strict";angular.module("gn.audio.design.web").directive("setSticky",["$window",function(n){var t=angular.element(n);return{link:function(n,i,r){var u=r.setSticky,f=i[0],o=i.offset().top,e=function(){if(f.offsetWidth!==0||f.offsetHeight!==0)if(t.scrollTop()>=o){if(i.hasClass(u))return;f.offsetHeight!==0&&i.after('<div class="sticky-phantom" style="height: '+i.outerHeight()+'px;"><\/div>');i.addClass(u)}else i.hasClass(u)&&i.removeClass(u).next(".sticky-phantom").remove()};e();t.on("scroll",e)},restrict:"A"}},])}(),function(){"use strict";angular.module("gn.audio.design.web").directive("slickRefresh",[function(){return{link:function(n,t){var r=jQuery.lazyLoadXT,i;if(r){i=t.parent();t.on("change",function(){var n=i.find("slick").slick("getSlick");n.length!==0&&(n.refresh(!1),window.scrollTo(0,document.body.scrollTop+1),window.scrollTo(0,document.body.scrollTop-1))})}},restrict:"A"}},])}(),function(){"use strict";angular.module("gn.audio.design.web").directive("slick",["$timeout",function(n){return{link:function(t,i,r){var u,e=function(){return n(function(){var n=angular.element(i);return n.slick("unslick"),n.slick("getSlick").lazyLoad(),n.find(".slick-list,[tabindex]").remove(),n.off("init afterChange loading stopLoading"),n})},f=function(){return n(function(){function o(){jQuery.lazyLoadXT&&(u.find(jQuery.lazyLoadXT.selector).filter(":not(.lazy-loaded)").data("lazied",0).lazyLoadXT(),angular.element(window).trigger("scroll"))}var f,u=angular.element(i),e;angular.isNumber(t.currentIndex)&&(f=t.currentIndex);e=function(n,i){return t.customPaging({index:i,slick:n})};u.slick({accessibility:t.accessibility!=="false",adaptiveHeight:t.adaptiveHeight==="true",appendArrows:t.appendArrows?$(t.appendArrows):$(i),appendDots:t.appendDots?$(t.appendDots):$(i),arrows:t.arrows!=="false",asNavFor:t.asNavFor?t.asNavFor:void 0,autoplay:t.autoplay==="true",autoplaySpeed:t.autoplaySpeed?parseInt(t.autoplaySpeed,10):3e3,beforeChange:r.onBeforeChange?t.onBeforeChange:void 0,centerMode:t.centerMode==="true",centerPadding:t.centerPadding||"50px",cssEase:t.cssEase||"ease",customPaging:r.customPaging?e:void 0,dots:t.dots==="true",draggable:t.draggable!=="false",easing:t.easing||"linear",fade:t.fade==="true",focusOnSelect:t.focusOnSelect==="true",infinite:t.infinite!=="false",initialSlide:t.initialSlide||0,lazyLoad:t.lazyLoad||"ondemand",nextArrow:t.nextArrow?$(t.nextArrow):void 0,onReInit:r.onReInit?t.onReInit:void 0,onSetPosition:r.onSetPosition?t.onSetPosition:void 0,pauseOnHover:t.pauseOnHover!=="false",prevArrow:t.prevArrow?$(t.prevArrow):void 0,responsive:t.responsive||void 0,rtl:t.rtl==="true",slide:t.slide||"div",slidesToScroll:t.slidesToScroll?parseInt(t.slidesToScroll,10):1,slidesToShow:t.slidesToShow?parseInt(t.slidesToShow,10):1,speed:t.speed?parseInt(t.speed,10):300,swipe:t.swipe!=="false",swipeToSlide:t.swipeToSlide==="true",touchMove:t.touchMove!=="false",touchThreshold:t.touchThreshold?parseInt(t.touchThreshold,10):5,useCSS:t.useCSS!=="false",variableWidth:t.variableWidth==="true",vertical:t.vertical==="true"});o();u.on("loading",function(){u.height(u.outerHeight())});u.on("stopLoading",function(){n(function(){u.height("auto")})});u.on("init",function(n){return(r.onInit&&t.onInit(),angular.isNumber(f))?n.slideHandler(f):!0});u.on("afterChange",function(n,i,r){return o(),t.onAfterChange&&t.onAfterChange(),angular.isNumber(f)?t.$apply(function(){return f=r,t.currentIndex=r}):void 0});return t.$watch("currentIndex",function(n){if(angular.isNumber(f)&&angular.isNumber(n)&&n!==f)return u.slick("slickGoTo",n)})})};if(t.$watch("loading",function(){return t.loading===undefined?!1:(angular.element(i).trigger(t.loading===!0?"loading":"stopLoading"),t.loading)}),t.initOnload)return u=!1,t.$watch("data",function(n){return angular.isDefined(n)?(u&&e(),f(),u=!0):!1});f();u=!0},restrict:"AEC",scope:{accessibility:"@",adaptiveHeight:"@",appendArrows:"@",appendDots:"@",arrows:"@",asNavFor:"@",autoplay:"@",autoplaySpeed:"@",centerMode:"@",centerPadding:"@",cssEase:"@",currentIndex:"=",customPaging:"&",data:"=",dots:"@",draggable:"@",easing:"@",fade:"@",focusOnSelect:"@",infinite:"@",initOnload:"@",initialSlide:"@",lazyLoad:"@",loading:"=",nextArrow:"@",onAfterChange:"&",onBeforeChange:"&",onInit:"&",onReInit:"&",onSetPosition:"&",pauseOnDotsHover:"@",pauseOnHover:"@",prevArrow:"@",responsive:"=",rtl:"@",slide:"@",slidesToScroll:"@",slidesToShow:"@",speed:"@",swipe:"@",swipeToSlide:"@",touchMove:"@",touchThreshold:"@",useCSS:"@",variableWidth:"@",vertical:"@"}}},])}(),function(){"use strict";angular.module("gn.audio.design.web").directive("syncModel",[function(){return{link:function(n,t,i,r){var u=t.val()||t.html();r.$pristine&&r.$viewValue!==u&&u&&r.$setViewValue(u)},require:"ngModel",restrict:"A"}},])}(),function(){"use strict";angular.module("gn.audio.design.web").filter("format",function(){return function(n){var t=arguments;return n.replace(/\{(\d+)\}/g,function(n,i){return t[1*i+1]})}})}(),function(n){var t;(function(n){var t;(function(){"use strict";var n=function(n,t){t===void 0&&(t={});var e=t.duration||800,o=t.offset||0,s=t.easing||"easeInOutQuart",h=t.callbackBefore||angular.noop,c=t.callbackAfter||angular.noop,i=document.getElementById(t.containerId)||undefined,r=i!==undefined,u=function(){return r?i.scrollTop:window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop},l=function(n,t){switch(n){case"easeInQuad":return t*t;case"easeOutQuad":return t*(2-t);case"easeInOutQuad":return t<.5?2*t*t:-1+(4-2*t)*t;case"easeInCubic":return t*t*t;case"easeOutCubic":return--t*t*t+1;case"easeInOutCubic":return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1;case"easeInQuart":return t*t*t*t;case"easeOutQuart":return 1- --t*t*t*t;case"easeInOutQuart":return t<.5?8*t*t*t*t:1-8*--t*t*t*t;case"easeInQuint":return t*t*t*t*t;case"easeOutQuint":return 1+--t*t*t*t*t;case"easeInOutQuint":return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t;default:return t}},f=function(n){var t=0;if(n.offsetParent)do t+=n.offsetTop,n=n.offsetParent;while(n);return Math.max(t-o,0)};window.setTimeout(function(){var v,a,y,w,t,o,p,b,k,d=function(){v=u();a=f(n);y=0;w=a-v},g=function(){return window.innerHeight+window.pageYOffset>=document.body.scrollHeight},nt=function(){var t=u();if(b=window.innerHeight+t,p=r?i.scrollHeight:document.body.scrollHeight,o===a||t===a||b>=p){if(!g()&&o!==f(n)){d();return}clearInterval(k);c(n)}},tt=function(){y+=16;t=y/e;t=t>1?1:t;o=v+w*l(s,t);r?i.scrollTop=o:window.scrollTo(0,o);nt()};h(n);d();k=window.setInterval(tt,16)},0)};angular.module("gn.audio.design.web").factory("smoothScroll",[function(){return n}])})(t=n.DesignWeb||(n.DesignWeb={}))})(t=n.Audio||(n.Audio={}))}(GN||(GN={})),function(n){var t;(function(n){var t;(function(){"use strict";var n=function(){function n(){}return n.prototype.isScrolledIntoView=function(n,t){var e=angular.element(n),o=angular.element(window),i=o.scrollTop(),u=i+o.height(),r=e.offset().top,f=r+e.outerHeight();return r>i&&r+t<u||r<i&&f>u||f>i&&f<u},n.prototype.getEndLocation=function(n,t){var i,r=isNaN(t)?0:t;if(n.offsetParent)do i+=n.offsetTop,n=n.offsetParent;while(n);return Math.max((i||0)-r,0)},n.prototype.getElement=function(n){var t=document.getElementById(n);return!t&&(t=this.tryGetFormElement(n),!t)?undefined:t},n.prototype.tryGetFormElement=function(n){var t=angular.element('[data-wffm="'+n+'"]');return t.length===0?undefined:t[0]},n}();angular.module("gn.audio.design.web").factory("domUtils",[function(){return new n}])})(t=n.DesignWeb||(n.DesignWeb={}))})(t=n.Audio||(n.Audio={}))}(GN||(GN={}));angular.module("JabraApplication.Design",["gn.audio.design.web"]),function(){"use strict"}(Design||(Design={})),function(){"use strict";var n=function(){function n(){this.anchors=[]}return n.prototype.add=function(n){this.anchors.push(n)},n.prototype.getAnchors=function(){return this.anchors},n.prototype.remove=function(n){var t=this.anchors.indexOf(n);t!==-1&&this.anchors.splice(t,1)},n}();angular.module("JabraApplication.Design").factory("anchorBarFactory",[function(){return new n}])}(Design||(Design={})),function(){"use strict";angular.module("JabraApplication.Design").directive("anchorBarItem",["anchorBarFactory",function(n){return{link:function(t,i,r){var u={id:r.id,selected:!1,title:r.anchorBarTitle};angular.isString(r.lazyAnchorBarItem)&&r.lazyAnchorBarItem!==""?t.$watch(r.lazyAnchorBarItem,function(t){t===!0?n.add(u):n.remove(u)}):r.lazyAnchorBarItem!==""&&n.add(u)},restrict:"A"}},])}(Design||(Design={})),function(){"use strict";angular.module("JabraApplication.Design").filter("regex",[function(){return function(n,t,i){var r=new RegExp(i,"ig");return(n||[]).filter(function(n){return r.lastIndex=0,r.test(String(n[t]))})}},])}(Design||(Design={})),function(n){"use strict";n.module("JabraApplication.ProductApi",["gn.audio.product.catalogue"])}(angular),function(){"use strict";var n=function(){function n(n,t,i,r){var u=this;this.$scope=n;this.$transclude=t;this.$element=i;this.productCatalogue=r;this.$scope.pId=Number(this.$scope.pId);angular.isNumber(this.$scope.pId)&&!isNaN(this.$scope.pId)&&this.updateFromProduct();this.$scope.$watch("pId",function(n,t){n===t||isNaN(u.$scope.pId)||u.updateFromProduct()})}return n.prototype.removeProduct=function(){this.$element.remove();this.$scope.$destroy()},n.prototype.updateFromProduct=function(){var n=this;this.$transcludeScope!==undefined&&(this.$transcludeScope.$destroy(),this.$transcludeScope=undefined,this.$element.empty());this.$transclude(this.$scope,function(t,i){n.$transcludeScope=i;n.$element.append(t)});this.productCatalogue.getDebounced(this.$scope.pId,this.$scope.pType).then(function(t){if(!t){n.removeProduct();return}n.$scope.product=t},function(){n.removeProduct()})},n}();angular.module("JabraApplication.ProductApi").directive("product",[function(){return{controller:["$scope","$transclude","$element","productCatalogue",n],restrict:"E",scope:{pId:"=",pType:"@"},transclude:!0}},])}(ProductApi||(ProductApi={})),function(){"use strict";var n=function(){function n(n,t,i,r){this.$scope=n;this.$transclude=t;this.$element=i;this.productCatalogue=r}return n.prototype.$onInit=function(){var n=this;angular.isString(this.$scope.pIds)&&this.$scope.pIds!==""&&this.updateFromProducts();this.$scope.$watch("pIds",function(t,i){t!==i&&n.updateFromProducts()})},n.prototype.updateFromProducts=function(){var n=this;this.$transcludeScope!==undefined&&(this.$transcludeScope.$destroy(),this.$transcludeScope=undefined,this.$element.empty());this.$transclude(this.$scope,function(t,i){n.$transcludeScope=i;n.$element.append(t)});this.$scope.productIds=(this.$scope.pIds||"").split(",").map(Number).filter(function(n){return!isNaN(n)});angular.isString(this.$scope.productType)&&this.productCatalogue.getMany(this.$scope.productIds,this.$scope.productType).then(function(t){n.$scope.products=t})},n}();angular.module("JabraApplication.ProductApi").directive("products",[function(){return{controller:["$scope","$transclude","$element","productCatalogue",n],restrict:"E",scope:{pIds:"=",productType:"@?pType"},transclude:!0}},])}(ProductApi||(ProductApi={})),function(){"use strict"}(ProductApi||(ProductApi={})),function(n){"use strict";n.module("JabraApplication.Translation",[])}(angular),function(){"use strict";var n=function(){function n(){this.systemDictionary=[];var n=angular.element("#system-dictionary").html();angular.isString(n)&&n!==""&&(this.systemDictionary=JSON.parse(n),angular.element("#system-dictionary").remove())}return n.prototype.getSystem=function(n){var t=this.systemDictionary.filter(function(t){return t.key===n})[0];return t===undefined?"":t.value},n}();angular.module("JabraApplication.Translation").factory("translationFactory",[function(){return new n}])}(Translation||(Translation={})),function(){"use strict";angular.module("JabraApplication.Translation").directive("systemDictionary",["translationFactory",function(n){return{link:function(t,i,r){var u=r.systemDictionary,f=n.getSystem(u);i.empty().html(f)}}},])}(Translation||(Translation={})),function(n,t,i){var n=i(n),t=i(t),u=i("body"),f=".video-spot",r=".video-spot__fullpage",s=".video-spot__fullpage-content",e=function(){i(s).each(function(){var t=i(this);t.css({position:"absolute",left:(n.width()-t.outerWidth())/2,top:(n.height()-t.outerHeight())/2})})},h=function(n){var o=i(n.target).closest(f),s=i(r,o),t=i(r,o).find("iframe"),h=(t.data("src")||t.attr("src")).replace(/autoplay=0/gi,"autoplay=1").replace(/auto=0/gi,"auto=1");n.preventDefault();s.fadeIn(400,e);t.attr("src",h);u.addClass("noscroll")},c=function(n){var t=i(n.target).closest(f),u=i(".video-spot__fallback-video",t),r=i("iframe",u);n.preventDefault();i(".video-spot__fallback-image, .video-spot__button-play--fallback",t).hide();i(".video-spot__fallback-video",t).show();r.attr("src",r.attr("src").replace(/autoplay=0/gi,"autoplay=1").replace(/auto=0/gi,"auto=1"))},o=function(){var n=i("iframe",r);i(r).fadeOut(400);n.each(function(){var n=i(this);n.data("src",n.attr("src"));n.attr("src","about:blank")});u.removeClass("noscroll")};i(function(){n.on("load resize",e);t.on("keydown",function(n){n.keyCode===27&&o()});i(".video-spot__button-play--fullscreen").on("click",h);i(".video-spot__button-play--fallback").on("click",c);i(r).not(i("iframe",r)).click(o)})}(window,document,jQuery),function(n){"use strict";n.module("JabraApplication.ContentElements",["xml","JabraApplication.Design",])}(angular),function(){"use strict";var n=function(){function n(n,t){n.formSubmitted=(JSON.parse(localStorage.getItem("successfullySubmitedForms"))||[]).indexOf(t.attr("id"))!==-1}return n}();angular.module("JabraApplication.ContentElements").controller("NewsletterSpotController",["$scope","$element",n])}(ContentElements||(ContentElements={})),function(){"use strict";var n=function(){function n(n){this.$scope=n;this.$scope.selectedIndex=0;this.$scope.isSelected=function(t){return n.selectedIndex===t}}return n}();angular.module("JabraApplication.ContentElements").controller("TabsSpotController",["$scope",n])}(ContentElements||(ContentElements={})),function(){"use strict";angular.module("JabraApplication.ContentElements").directive("anchorBar",["smoothScroll","anchorBarFactory",function(n,t){return{link:function(i,r,u){i.anchors=[];i.loading=!0;i.mobile=document.documentElement.offsetWidth<768;i.select=function(t){angular.isObject(t)&&!i.mobile&&i.anchors.some(function(n){return n.id===t.id})&&(t.selected||(u.makeTabs===undefined?n(document.getElementById(t.id),{offset:i.scrollOffset?i.scrollOffset:0}):(i.anchors.forEach(function(n){n.selected=!1;angular.element("#"+n.id).removeClass("anchor-bar-tab--selected").addClass("anchor-bar-tab--hidden")}),t.selected=!0,angular.element("#"+t.id).removeClass("anchor-bar-tab--hidden").addClass("anchor-bar-tab--selected"),window.scrollTo(window.pageXOffset,window.pageYOffset+1),window.scrollTo(window.pageXOffset,window.pageYOffset-1))))};i.$watch(function(){return t.getAnchors()},function(){i.anchors=t.getAnchors();i.loading=!1;i.mobile||u.makeTabs===undefined||i.select(i.anchors[0])})},restrict:"E",scope:{scrollOffset:"=?"},template:'\n                    <div class="anchor-bar__container container" ng-hide="anchors.length === 0" ng-cloak>\n                        <div class="anchor-bar__row row">\n                            <ul class="anchor-bar__link-items">\n                                <li class="anchor-bar__link-item" ng-if="loading">\n                                    <a class="anchor-bar__link" href="javascript:;">&nbsp;<\/a>\n                                <\/li>\n                                <li class="anchor-bar__link-item" ng-repeat="anchor in anchors" ng-class="{ \'anchor-bar__link-item--selected\': anchor.selected }">\n                                    <a class="anchor-bar__link" title="{{anchor.title}}" ng-click="select(anchor)" href="javascript:;" ng-bind="anchor.title"><\/a>\n                                <\/li>\n                            <\/ul>\n                        <\/div>\n                    <\/div>\n                '}},])}(ContentElements||(ContentElements={})),function(){"use strict";var n={theme:"@",title:"@",versionTitle:"@"},t='\n        <a class="software-btn jbr-btn jbr-btn-large software-btn--{{theme}}" ng-href="{{software.downloadUrl}}">\n            <span class="software-btn__title" ng-bind="title"><\/span>\n            <span class="software-btn__info">{{versionTitle}} {{software.version}} | {{software.date}}<\/span>\n        <\/a>\n    ';angular.module("JabraApplication.ContentElements").directive("directSoftware",["$http","x2js",function(i,r){return{link:function(n){var t=function(t){var i=t.data?t.data.versionInfo:undefined;angular.isDefined(i)&&(n.software={date:i.releaseDate,downloadUrl:i.installerUrl,version:i.version.split(".").splice(0,2).join(".")})};n.theme=n.theme||"default";i.get("/jabradirect/jabradirectversion.xml",{transformResponse:function(n){return r.xml_str2json(n)}}).then(t,t)},restrict:"E",scope:angular.copy(n),template:t}},]).directive("macsuiteSoftware",["$http","x2js",function(i,r){return{link:function(n){var t=function(t){var i=t.data?t.data.productVersionInfo:undefined;angular.isDefined(i)&&(n.software={date:i.releaseDate,downloadUrl:i.downloadUrl,version:i.pacakgeVersion.split(".").splice(0,2).join(".")})};n.theme=n.theme||"default";i.get("/macsuite/jmsversionupdate.xml",{transformResponse:function(n){return r.xml_str2json(n)}}).then(t,t)},restrict:"E",scope:angular.copy(n),template:t}},])}(ContentElements||(ContentElements={}));"function"!=typeof Object.create&&(Object.create=function(n){function t(){}return t.prototype=n,new t}),function(n){var t={init:function(t,i){var r=this;r.elem=i;r.$elem=n(i);r.imageSrc=r.$elem.data("zoom-image")?r.$elem.data("zoom-image"):r.$elem.attr("src");r.options=n.extend({},n.fn.elevateZoom.options,t);r.options.tint&&(r.options.lensColour="none",r.options.lensOpacity="1");"inner"==r.options.zoomType&&(r.options.showLens=!1);r.$elem.parent().removeAttr("title").removeAttr("alt");r.zoomImage=r.imageSrc;r.refresh(1);n("#"+r.options.gallery+" a").click(function(t){return r.options.galleryActiveClass&&(n("#"+r.options.gallery+" a").removeClass(r.options.galleryActiveClass),n(this).addClass(r.options.galleryActiveClass)),t.preventDefault(),r.zoomImagePre=n(this).data("zoom-image")?n(this).data("zoom-image"):n(this).data("image"),r.swaptheimage(n(this).data("image"),r.zoomImagePre),!1})},refresh:function(n){var t=this;setTimeout(function(){t.fetch(t.imageSrc)},n||t.options.refresh)},fetch:function(n){var t=this,i=new Image;i.onload=function(){t.largeWidth=i.width;t.largeHeight=i.height;t.startZoom();t.currentImage=t.imageSrc;t.options.onZoomedImageLoaded(t.$elem)};i.src=n},startZoom:function(){var t=this,i;t.nzWidth=t.$elem.width();t.nzHeight=t.$elem.height();t.isWindowActive=!1;t.isLensActive=!1;t.isTintActive=!1;t.overWindow=!1;t.options.imageCrossfade&&(t.zoomWrap=t.$elem.wrap('<div style="height:'+t.nzHeight+"px;width:"+t.nzWidth+'px;" class="zoomWrapper" />'),t.$elem.css("position","absolute"));t.zoomLock=1;t.scrollingLock=!1;t.changeBgSize=!1;t.currentZoomLevel=t.options.zoomLevel;t.nzOffset=t.$elem.offset();t.widthRatio=t.largeWidth/t.currentZoomLevel/t.nzWidth;t.heightRatio=t.largeHeight/t.currentZoomLevel/t.nzHeight;"window"==t.options.zoomType&&(t.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(t.options.zoomWindowBgColour)+";width: "+String(t.options.zoomWindowWidth)+"px;height: "+String(t.options.zoomWindowHeight)+"px;float: left;background-size: "+t.largeWidth/t.currentZoomLevel+"px "+t.largeHeight/t.currentZoomLevel+"px;display: none;z-index:100;border: "+String(t.options.borderSize)+"px solid "+t.options.borderColour+";background-repeat: no-repeat;position: absolute;");"inner"==t.options.zoomType&&(i=t.$elem.css("border-left-width"),t.zoomWindowStyle="overflow: hidden;margin-left: "+String(i)+";margin-top: "+String(i)+";background-position: 0px 0px;width: "+String(t.nzWidth)+"px;height: "+String(t.nzHeight)+"px;float: left;display: none;cursor:"+t.options.cursor+";px solid "+t.options.borderColour+";background-repeat: no-repeat;position: absolute;");"window"==t.options.zoomType&&(lensHeight=t.nzHeight<t.options.zoomWindowWidth/t.widthRatio?t.nzHeight:String(t.options.zoomWindowHeight/t.heightRatio),lensWidth=t.largeWidth<t.options.zoomWindowWidth?t.nzWidth:t.options.zoomWindowWidth/t.widthRatio,t.lensStyle="background-position: 0px 0px;width: "+String(t.options.zoomWindowWidth/t.widthRatio)+"px;height: "+String(t.options.zoomWindowHeight/t.heightRatio)+"px;float: right;display: none;overflow: hidden;z-index: 999;-webkit-transform: translateZ(0);opacity:"+t.options.lensOpacity+";filter: alpha(opacity = "+100*t.options.lensOpacity+"); zoom:1;width:"+lensWidth+"px;height:"+lensHeight+"px;background-color:"+t.options.lensColour+";cursor:"+t.options.cursor+";border: "+t.options.lensBorderSize+"px solid "+t.options.lensBorderColour+";background-repeat: no-repeat;position: absolute;");t.tintStyle="display: block;position: absolute;background-color: "+t.options.tintColour+";filter:alpha(opacity=0);opacity: 0;width: "+t.nzWidth+"px;height: "+t.nzHeight+"px;";t.lensRound="";"lens"==t.options.zoomType&&(t.lensStyle="background-position: 0px 0px;float: left;display: none;border: "+String(t.options.borderSize)+"px solid "+t.options.borderColour+";width:"+String(t.options.lensSize)+"px;height:"+String(t.options.lensSize)+"px;background-repeat: no-repeat;position: absolute;");"round"==t.options.lensShape&&(t.lensRound="border-top-left-radius: "+String(t.options.lensSize/2+t.options.borderSize)+"px;border-top-right-radius: "+String(t.options.lensSize/2+t.options.borderSize)+"px;border-bottom-left-radius: "+String(t.options.lensSize/2+t.options.borderSize)+"px;border-bottom-right-radius: "+String(t.options.lensSize/2+t.options.borderSize)+"px;");t.zoomContainer=n('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:'+t.nzOffset.left+"px;top:"+t.nzOffset.top+"px;height:"+t.nzHeight+"px;width:"+t.nzWidth+'px;"><\/div>');n("body").append(t.zoomContainer);t.options.containLensZoom&&"lens"==t.options.zoomType&&t.zoomContainer.css("overflow","hidden");"inner"!=t.options.zoomType&&(t.zoomLens=n("<div class='zoomLens' style='"+t.lensStyle+t.lensRound+"'>&nbsp;<\/div>").appendTo(t.zoomContainer).click(function(){t.$elem.trigger("click")}),t.options.tint&&(t.tintContainer=n("<div/>").addClass("tintContainer"),t.zoomTint=n("<div class='zoomTint' style='"+t.tintStyle+"'><\/div>"),t.zoomLens.wrap(t.tintContainer),t.zoomTintcss=t.zoomLens.after(t.zoomTint),t.zoomTintImage=n('<img style="position: absolute; left: 0px; top: 0px; max-width: none; width: '+t.nzWidth+"px; height: "+t.nzHeight+'px;" src="'+t.imageSrc+'">').appendTo(t.zoomLens).click(function(){t.$elem.trigger("click")})));t.zoomWindow=isNaN(t.options.zoomWindowPosition)?n("<div style='z-index:999;left:"+t.windowOffsetLeft+"px;top:"+t.windowOffsetTop+"px;"+t.zoomWindowStyle+"' class='zoomWindow'>&nbsp;<\/div>").appendTo("body").click(function(){t.$elem.trigger("click")}):n("<div style='z-index:999;left:"+t.windowOffsetLeft+"px;top:"+t.windowOffsetTop+"px;"+t.zoomWindowStyle+"' class='zoomWindow'>&nbsp;<\/div>").appendTo(t.zoomContainer).click(function(){t.$elem.trigger("click")});t.zoomWindowContainer=n("<div/>").addClass("zoomWindowContainer").css("width",t.options.zoomWindowWidth);t.zoomWindow.wrap(t.zoomWindowContainer);"lens"==t.options.zoomType&&t.zoomLens.css({backgroundImage:"url('"+t.imageSrc+"')"});"window"==t.options.zoomType&&t.zoomWindow.css({backgroundImage:"url('"+t.imageSrc+"')"});"inner"==t.options.zoomType&&t.zoomWindow.css({backgroundImage:"url('"+t.imageSrc+"')"});t.$elem.bind("touchmove",function(n){n.preventDefault();t.setPosition(n.originalEvent.touches[0]||n.originalEvent.changedTouches[0])});t.zoomContainer.bind("touchmove",function(n){"inner"==t.options.zoomType&&t.showHideWindow("show");n.preventDefault();t.setPosition(n.originalEvent.touches[0]||n.originalEvent.changedTouches[0])});t.zoomContainer.bind("touchend",function(){t.showHideWindow("hide");t.options.showLens&&t.showHideLens("hide");t.options.tint&&"inner"!=t.options.zoomType&&t.showHideTint("hide")});t.$elem.bind("touchend",function(){t.showHideWindow("hide");t.options.showLens&&t.showHideLens("hide");t.options.tint&&"inner"!=t.options.zoomType&&t.showHideTint("hide")});t.options.showLens&&(t.zoomLens.bind("touchmove",function(n){n.preventDefault();t.setPosition(n.originalEvent.touches[0]||n.originalEvent.changedTouches[0])}),t.zoomLens.bind("touchend",function(){t.showHideWindow("hide");t.options.showLens&&t.showHideLens("hide");t.options.tint&&"inner"!=t.options.zoomType&&t.showHideTint("hide")}));t.$elem.bind("mousemove",function(n){!1==t.overWindow&&t.setElements("show");(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});t.zoomContainer.bind("mousemove",function(n){!1==t.overWindow&&t.setElements("show");(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});"inner"!=t.options.zoomType&&t.zoomLens.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});t.options.tint&&"inner"!=t.options.zoomType&&t.zoomTint.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});"inner"==t.options.zoomType&&t.zoomWindow.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});t.zoomContainer.add(t.$elem).mouseenter(function(){!1==t.overWindow&&t.setElements("show")}).mouseleave(function(){t.scrollLock||t.setElements("hide")});"inner"!=t.options.zoomType&&t.zoomWindow.mouseenter(function(){t.overWindow=!0;t.setElements("hide")}).mouseleave(function(){t.overWindow=!1});t.minZoomLevel=t.options.minZoomLevel?t.options.minZoomLevel:2*t.options.scrollZoomIncrement;t.options.scrollZoom&&t.zoomContainer.add(t.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll",function(i){t.scrollLock=!0;clearTimeout(n.data(this,"timer"));n.data(this,"timer",setTimeout(function(){t.scrollLock=!1},250));var r=i.originalEvent.wheelDelta||-1*i.originalEvent.detail;return i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault(),0<r/120?t.currentZoomLevel>=t.minZoomLevel&&t.changeZoomLevel(t.currentZoomLevel-t.options.scrollZoomIncrement):t.options.maxZoomLevel?t.currentZoomLevel<=t.options.maxZoomLevel&&t.changeZoomLevel(parseFloat(t.currentZoomLevel)+t.options.scrollZoomIncrement):t.changeZoomLevel(parseFloat(t.currentZoomLevel)+t.options.scrollZoomIncrement),!1})},setElements:function(n){if(!this.options.zoomEnabled)return!1;"show"==n&&this.isWindowSet&&("inner"==this.options.zoomType&&this.showHideWindow("show"),"window"==this.options.zoomType&&this.showHideWindow("show"),this.options.showLens&&this.showHideLens("show"),this.options.tint&&"inner"!=this.options.zoomType&&this.showHideTint("show"));"hide"==n&&("window"==this.options.zoomType&&this.showHideWindow("hide"),this.options.tint||this.showHideWindow("hide"),this.options.showLens&&this.showHideLens("hide"),this.options.tint&&this.showHideTint("hide"))},setPosition:function(n){if(!this.options.zoomEnabled)return!1;this.nzHeight=this.$elem.height();this.nzWidth=this.$elem.width();this.nzOffset=this.$elem.offset();this.options.tint&&"inner"!=this.options.zoomType&&(this.zoomTint.css({top:0}),this.zoomTint.css({left:0}));this.options.responsive&&!this.options.scrollZoom&&this.options.showLens&&(lensHeight=this.nzHeight<this.options.zoomWindowWidth/this.widthRatio?this.nzHeight:String(this.options.zoomWindowHeight/this.heightRatio),lensWidth=this.largeWidth<this.options.zoomWindowWidth?this.nzWidth:this.options.zoomWindowWidth/this.widthRatio,this.widthRatio=this.largeWidth/this.nzWidth,this.heightRatio=this.largeHeight/this.nzHeight,"lens"!=this.options.zoomType&&(lensHeight=this.nzHeight<this.options.zoomWindowWidth/this.widthRatio?this.nzHeight:String(this.options.zoomWindowHeight/this.heightRatio),lensWidth=this.options.zoomWindowWidth<this.options.zoomWindowWidth?this.nzWidth:this.options.zoomWindowWidth/this.widthRatio,this.zoomLens.css("width",lensWidth),this.zoomLens.css("height",lensHeight),this.options.tint&&(this.zoomTintImage.css("width",this.nzWidth),this.zoomTintImage.css("height",this.nzHeight))),"lens"==this.options.zoomType&&this.zoomLens.css({width:String(this.options.lensSize)+"px",height:String(this.options.lensSize)+"px"}));this.zoomContainer.css({top:this.nzOffset.top});this.zoomContainer.css({left:this.nzOffset.left});this.mouseLeft=parseInt(n.pageX-this.nzOffset.left);this.mouseTop=parseInt(n.pageY-this.nzOffset.top);"window"==this.options.zoomType&&(this.Etoppos=this.mouseTop<this.zoomLens.height()/2,this.Eboppos=this.mouseTop>this.nzHeight-this.zoomLens.height()/2-2*this.options.lensBorderSize,this.Eloppos=this.mouseLeft<0+this.zoomLens.width()/2,this.Eroppos=this.mouseLeft>this.nzWidth-this.zoomLens.width()/2-2*this.options.lensBorderSize);"inner"==this.options.zoomType&&(this.Etoppos=this.mouseTop<this.nzHeight/2/this.heightRatio,this.Eboppos=this.mouseTop>this.nzHeight-this.nzHeight/2/this.heightRatio,this.Eloppos=this.mouseLeft<0+this.nzWidth/2/this.widthRatio,this.Eroppos=this.mouseLeft>this.nzWidth-this.nzWidth/2/this.widthRatio-2*this.options.lensBorderSize);0>=this.mouseLeft||0>this.mouseTop||this.mouseLeft>this.nzWidth||this.mouseTop>this.nzHeight?this.setElements("hide"):(this.options.showLens&&(this.lensLeftPos=String(this.mouseLeft-this.zoomLens.width()/2),this.lensTopPos=String(this.mouseTop-this.zoomLens.height()/2)),this.Etoppos&&(this.lensTopPos=0),this.Eloppos&&(this.tintpos=this.lensLeftPos=this.windowLeftPos=0),"window"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-this.zoomLens.height()-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.zoomLens.width()-2*this.options.lensBorderSize)),"inner"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.nzWidth-2*this.options.lensBorderSize)),"lens"==this.options.zoomType&&(this.windowLeftPos=String(-1*((n.pageX-this.nzOffset.left)*this.widthRatio-this.zoomLens.width()/2)),this.windowTopPos=String(-1*((n.pageY-this.nzOffset.top)*this.heightRatio-this.zoomLens.height()/2)),this.zoomLens.css({backgroundPosition:this.windowLeftPos+"px "+this.windowTopPos+"px"}),this.changeBgSize&&(this.nzHeight>this.nzWidth?("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"})):("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"})),this.changeBgSize=!1),this.setWindowPostition(n)),this.options.tint&&"inner"!=this.options.zoomType&&this.setTintPosition(n),"window"==this.options.zoomType&&this.setWindowPostition(n),"inner"==this.options.zoomType&&this.setWindowPostition(n),this.options.showLens&&(this.fullwidth&&"lens"!=this.options.zoomType&&(this.lensLeftPos=0),this.zoomLens.css({left:this.lensLeftPos+"px",top:this.lensTopPos+"px"})))},showHideWindow:function(n){"show"!=n||this.isWindowActive||(this.options.zoomWindowFadeIn?this.zoomWindow.stop(!0,!0,!1).fadeIn(this.options.zoomWindowFadeIn):this.zoomWindow.show(),this.isWindowActive=!0);"hide"==n&&this.isWindowActive&&(this.options.zoomWindowFadeOut?this.zoomWindow.stop(!0,!0).fadeOut(this.options.zoomWindowFadeOut):this.zoomWindow.hide(),this.isWindowActive=!1)},showHideLens:function(n){"show"!=n||this.isLensActive||(this.options.lensFadeIn?this.zoomLens.stop(!0,!0,!1).fadeIn(this.options.lensFadeIn):this.zoomLens.show(),this.isLensActive=!0);"hide"==n&&this.isLensActive&&(this.options.lensFadeOut?this.zoomLens.stop(!0,!0).fadeOut(this.options.lensFadeOut):this.zoomLens.hide(),this.isLensActive=!1)},showHideTint:function(n){"show"!=n||this.isTintActive||(this.options.zoomTintFadeIn?this.zoomTint.css({opacity:this.options.tintOpacity}).animate().stop(!0,!0).fadeIn("slow"):(this.zoomTint.css({opacity:this.options.tintOpacity}).animate(),this.zoomTint.show()),this.isTintActive=!0);"hide"==n&&this.isTintActive&&(this.options.zoomTintFadeOut?this.zoomTint.stop(!0,!0).fadeOut(this.options.zoomTintFadeOut):this.zoomTint.hide(),this.isTintActive=!1)},setLensPostition:function(){},setWindowPostition:function(t){var i=this;if(isNaN(i.options.zoomWindowPosition))i.externalContainer=n("#"+i.options.zoomWindowPosition),i.externalContainerWidth=i.externalContainer.width(),i.externalContainerHeight=i.externalContainer.height(),i.externalContainerOffset=i.externalContainer.offset(),i.windowOffsetTop=i.externalContainerOffset.top,i.windowOffsetLeft=i.externalContainerOffset.left;else switch(i.options.zoomWindowPosition){case 1:i.windowOffsetTop=i.options.zoomWindowOffety;i.windowOffsetLeft=+i.nzWidth;break;case 2:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=i.nzWidth);break;case 3:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize;i.windowOffsetLeft=i.nzWidth;break;case 4:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=i.nzWidth;break;case 5:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 6:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize));break;case 7:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=0;break;case 8:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 9:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize;i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 10:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize));break;case 11:i.windowOffsetTop=i.options.zoomWindowOffety;i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 12:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize);i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 13:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize);i.windowOffsetLeft=0;break;case 14:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize));break;case 15:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize);i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 16:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize);i.windowOffsetLeft=i.nzWidth;break;default:i.windowOffsetTop=i.options.zoomWindowOffety;i.windowOffsetLeft=i.nzWidth}i.isWindowSet=!0;i.windowOffsetTop+=i.options.zoomWindowOffety;i.windowOffsetLeft+=i.options.zoomWindowOffetx;i.zoomWindow.css({top:i.windowOffsetTop});i.zoomWindow.css({left:i.windowOffsetLeft});"inner"==i.options.zoomType&&(i.zoomWindow.css({top:0}),i.zoomWindow.css({left:0}));i.windowLeftPos=String(-1*((t.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2));i.windowTopPos=String(-1*((t.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2));i.Etoppos&&(i.windowTopPos=0);i.Eloppos&&(i.windowLeftPos=0);i.Eboppos&&(i.windowTopPos=-1*(i.largeHeight/i.currentZoomLevel-i.zoomWindow.height()));i.Eroppos&&(i.windowLeftPos=-1*(i.largeWidth/i.currentZoomLevel-i.zoomWindow.width()));i.fullheight&&(i.windowTopPos=0);i.fullwidth&&(i.windowLeftPos=0);("window"==i.options.zoomType||"inner"==i.options.zoomType)&&(1==i.zoomLock&&(1>=i.widthRatio&&(i.windowLeftPos=0),1>=i.heightRatio&&(i.windowTopPos=0)),i.largeHeight<i.options.zoomWindowHeight&&(i.windowTopPos=0),i.largeWidth<i.options.zoomWindowWidth&&(i.windowLeftPos=0),i.options.easing?(i.xp||(i.xp=0),i.yp||(i.yp=0),i.loop||(i.loop=setInterval(function(){i.xp+=(i.windowLeftPos-i.xp)/i.options.easingAmount;i.yp+=(i.windowTopPos-i.yp)/i.options.easingAmount;i.scrollingLock?(clearInterval(i.loop),i.xp=i.windowLeftPos,i.yp=i.windowTopPos,i.xp=-1*((t.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2),i.yp=-1*((t.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2),i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"!=i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.windowLeftPos+"px "+i.windowTopPos+"px"}),i.scrollingLock=!1,i.loop=!1):(i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"!=i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.xp+"px "+i.yp+"px"}))},16))):(i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.largeHeight/i.newvaluewidth<i.options.zoomWindowHeight?i.zoomWindow.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}):i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.windowLeftPos+"px "+i.windowTopPos+"px"})))},setTintPosition:function(n){this.nzOffset=this.$elem.offset();this.tintpos=String(-1*(n.pageX-this.nzOffset.left-this.zoomLens.width()/2));this.tintposy=String(-1*(n.pageY-this.nzOffset.top-this.zoomLens.height()/2));this.Etoppos&&(this.tintposy=0);this.Eloppos&&(this.tintpos=0);this.Eboppos&&(this.tintposy=-1*(this.nzHeight-this.zoomLens.height()-2*this.options.lensBorderSize));this.Eroppos&&(this.tintpos=-1*(this.nzWidth-this.zoomLens.width()-2*this.options.lensBorderSize));this.options.tint&&(this.fullheight&&(this.tintposy=0),this.fullwidth&&(this.tintpos=0),this.zoomTintImage.css({left:this.tintpos+"px"}),this.zoomTintImage.css({top:this.tintposy+"px"}))},swaptheimage:function(t,i){var r=this,u=new Image;r.options.loadingIcon&&(r.spinner=n("<div style=\"background: url('"+r.options.loadingIcon+"') no-repeat center;height:"+r.nzHeight+"px;width:"+r.nzWidth+'px;z-index: 2000;position: absolute; background-position: center center;"><\/div>'),r.$elem.after(r.spinner));r.options.onImageSwap(r.$elem);u.onload=function(){r.largeWidth=u.width;r.largeHeight=u.height;r.zoomImage=i;r.zoomWindow.css({"background-size":r.largeWidth+"px "+r.largeHeight+"px"});r.zoomWindow.css({"background-size":r.largeWidth+"px "+r.largeHeight+"px"});r.swapAction(t,i)};u.src=i},swapAction:function(t,i){var r=this,e=new Image,u,f;e.onload=function(){r.nzHeight=e.height;r.nzWidth=e.width;r.options.onImageSwapComplete(r.$elem);r.doneCallback()};e.src=t;r.currentZoomLevel=r.options.zoomLevel;r.options.maxZoomLevel=!1;"lens"==r.options.zoomType&&r.zoomLens.css({backgroundImage:"url('"+i+"')"});"window"==r.options.zoomType&&r.zoomWindow.css({backgroundImage:"url('"+i+"')"});"inner"==r.options.zoomType&&r.zoomWindow.css({backgroundImage:"url('"+i+"')"});r.currentImage=i;r.options.imageCrossfade?(u=r.$elem,f=u.clone(),r.$elem.attr("src",t),r.$elem.after(f),f.stop(!0).fadeOut(r.options.imageCrossfade,function(){n(this).remove()}),r.$elem.width("auto").removeAttr("width"),r.$elem.height("auto").removeAttr("height"),u.fadeIn(r.options.imageCrossfade),r.options.tint&&"inner"!=r.options.zoomType&&(u=r.zoomTintImage,f=u.clone(),r.zoomTintImage.attr("src",i),r.zoomTintImage.after(f),f.stop(!0).fadeOut(r.options.imageCrossfade,function(){n(this).remove()}),u.fadeIn(r.options.imageCrossfade),r.zoomTint.css({height:r.$elem.height()}),r.zoomTint.css({width:r.$elem.width()})),r.zoomContainer.css("height",r.$elem.height()),r.zoomContainer.css("width",r.$elem.width()),"inner"!=r.options.zoomType||r.options.constrainType||(r.zoomWrap.parent().css("height",r.$elem.height()),r.zoomWrap.parent().css("width",r.$elem.width()),r.zoomWindow.css("height",r.$elem.height()),r.zoomWindow.css("width",r.$elem.width()))):(r.$elem.attr("src",t),r.options.tint&&(r.zoomTintImage.attr("src",i),r.zoomTintImage.attr("height",r.$elem.height()),r.zoomTintImage.css({height:r.$elem.height()}),r.zoomTint.css({height:r.$elem.height()})),r.zoomContainer.css("height",r.$elem.height()),r.zoomContainer.css("width",r.$elem.width()));r.options.imageCrossfade&&(r.zoomWrap.css("height",r.$elem.height()),r.zoomWrap.css("width",r.$elem.width()));r.options.constrainType&&("height"==r.options.constrainType&&(r.zoomContainer.css("height",r.options.constrainSize),r.zoomContainer.css("width","auto"),r.options.imageCrossfade?(r.zoomWrap.css("height",r.options.constrainSize),r.zoomWrap.css("width","auto"),r.constwidth=r.zoomWrap.width()):(r.$elem.css("height",r.options.constrainSize),r.$elem.css("width","auto"),r.constwidth=r.$elem.width()),"inner"==r.options.zoomType&&(r.zoomWrap.parent().css("height",r.options.constrainSize),r.zoomWrap.parent().css("width",r.constwidth),r.zoomWindow.css("height",r.options.constrainSize),r.zoomWindow.css("width",r.constwidth)),r.options.tint&&(r.tintContainer.css("height",r.options.constrainSize),r.tintContainer.css("width",r.constwidth),r.zoomTint.css("height",r.options.constrainSize),r.zoomTint.css("width",r.constwidth),r.zoomTintImage.css("height",r.options.constrainSize),r.zoomTintImage.css("width",r.constwidth))),"width"==r.options.constrainType&&(r.zoomContainer.css("height","auto"),r.zoomContainer.css("width",r.options.constrainSize),r.options.imageCrossfade?(r.zoomWrap.css("height","auto"),r.zoomWrap.css("width",r.options.constrainSize),r.constheight=r.zoomWrap.height()):(r.$elem.css("height","auto"),r.$elem.css("width",r.options.constrainSize),r.constheight=r.$elem.height()),"inner"==r.options.zoomType&&(r.zoomWrap.parent().css("height",r.constheight),r.zoomWrap.parent().css("width",r.options.constrainSize),r.zoomWindow.css("height",r.constheight),r.zoomWindow.css("width",r.options.constrainSize)),r.options.tint&&(r.tintContainer.css("height",r.constheight),r.tintContainer.css("width",r.options.constrainSize),r.zoomTint.css("height",r.constheight),r.zoomTint.css("width",r.options.constrainSize),r.zoomTintImage.css("height",r.constheight),r.zoomTintImage.css("width",r.options.constrainSize))))},doneCallback:function(){this.options.loadingIcon&&this.spinner.hide();this.nzOffset=this.$elem.offset();this.nzWidth=this.$elem.width();this.nzHeight=this.$elem.height();this.currentZoomLevel=this.options.zoomLevel;this.widthRatio=this.largeWidth/this.nzWidth;this.heightRatio=this.largeHeight/this.nzHeight;"window"==this.options.zoomType&&(lensHeight=this.nzHeight<this.options.zoomWindowWidth/this.widthRatio?this.nzHeight:String(this.options.zoomWindowHeight/this.heightRatio),lensWidth=this.options.zoomWindowWidth<this.options.zoomWindowWidth?this.nzWidth:this.options.zoomWindowWidth/this.widthRatio,this.zoomLens&&(this.zoomLens.css("width",lensWidth),this.zoomLens.css("height",lensHeight)))},getCurrentImage:function(){return this.zoomImage},getGalleryList:function(){var t=this;return t.gallerylist=[],t.options.gallery?n("#"+t.options.gallery+" a").each(function(){var i="";n(this).data("zoom-image")?i=n(this).data("zoom-image"):n(this).data("image")&&(i=n(this).data("image"));i==t.zoomImage?t.gallerylist.unshift({href:""+i+"",title:n(this).find("img").attr("title")}):t.gallerylist.push({href:""+i+"",title:n(this).find("img").attr("title")})}):t.gallerylist.push({href:""+t.zoomImage+"",title:n(this).find("img").attr("title")}),t.gallerylist},changeZoomLevel:function(n){this.scrollingLock=!0;this.newvalue=parseFloat(n).toFixed(2);newvalue=parseFloat(n).toFixed(2);maxheightnewvalue=this.largeHeight/(this.options.zoomWindowHeight/this.nzHeight*this.nzHeight);maxwidthtnewvalue=this.largeWidth/(this.options.zoomWindowWidth/this.nzWidth*this.nzWidth);"inner"!=this.options.zoomType&&(maxheightnewvalue<=newvalue?(this.heightRatio=this.largeHeight/maxheightnewvalue/this.nzHeight,this.newvalueheight=maxheightnewvalue,this.fullheight=!0):(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue,this.fullheight=!1),maxwidthtnewvalue<=newvalue?(this.widthRatio=this.largeWidth/maxwidthtnewvalue/this.nzWidth,this.newvaluewidth=maxwidthtnewvalue,this.fullwidth=!0):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1),"lens"==this.options.zoomType&&(maxheightnewvalue<=newvalue?(this.fullwidth=!0,this.newvaluewidth=maxheightnewvalue):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1)));"inner"==this.options.zoomType&&(maxheightnewvalue=parseFloat(this.largeHeight/this.nzHeight).toFixed(2),maxwidthtnewvalue=parseFloat(this.largeWidth/this.nzWidth).toFixed(2),newvalue>maxheightnewvalue&&(newvalue=maxheightnewvalue),newvalue>maxwidthtnewvalue&&(newvalue=maxwidthtnewvalue),maxheightnewvalue<=newvalue?(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,this.fullheight=!0):(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,this.fullheight=!1),maxwidthtnewvalue<=newvalue?(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue>maxwidthtnewvalue?maxwidthtnewvalue:newvalue,this.fullwidth=!0):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1));scrcontinue=!1;"inner"==this.options.zoomType&&(this.nzWidth>this.nzHeight&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullwidth=this.fullheight=!0)),this.nzHeight>this.nzWidth&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullwidth=this.fullheight=!0)));"inner"!=this.options.zoomType&&(scrcontinue=!0);scrcontinue&&(this.zoomLock=0,this.changeZoom=!0,this.options.zoomWindowHeight/this.heightRatio<=this.nzHeight&&(this.currentZoomLevel=this.newvalueheight,"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({height:String(this.options.zoomWindowHeight/this.heightRatio)+"px"})),"lens"==this.options.zoomType||"inner"==this.options.zoomType)&&(this.changeBgSize=!0),this.options.zoomWindowWidth/this.widthRatio<=this.nzWidth&&("inner"!=this.options.zoomType&&this.newvaluewidth>this.newvalueheight&&(this.currentZoomLevel=this.newvaluewidth),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({width:String(this.options.zoomWindowWidth/this.widthRatio)+"px"})),"lens"==this.options.zoomType||"inner"==this.options.zoomType)&&(this.changeBgSize=!0),"inner"==this.options.zoomType&&(this.changeBgSize=!0,this.nzWidth>this.nzHeight&&(this.currentZoomLevel=this.newvaluewidth),this.nzHeight>this.nzWidth&&(this.currentZoomLevel=this.newvaluewidth)));this.setPosition(this.currentLoc)},closeAll:function(){self.zoomWindow&&self.zoomWindow.hide();self.zoomLens&&self.zoomLens.hide();self.zoomTint&&self.zoomTint.hide()},changeState:function(n){"enable"==n&&(this.options.zoomEnabled=!0);"disable"==n&&(this.options.zoomEnabled=!1)}};n.fn.elevateZoom=function(i){return this.each(function(){var r=Object.create(t);r.init(i,this);n.data(this,"elevateZoom",r)})};n.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:.1,minZoomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:"default",responsive:!0,onComplete:n.noop,onZoomedImageLoaded:function(){},onImageSwap:n.noop,onImageSwapComplete:n.noop}}(window.jQuery,window,document);$(function(){var r=function(n){var u=!1,o,t=this,i=!1,r,f,e;this.initZoom=function(){n.find("img").elevateZoom({zoomType:"inner",cursor:"zoom-out",responsive:!0});i=!0;o=$(".zoomContainer")};this.changeImage=function(t){i&&(r=n.find("img").data("elevateZoom"),r.swaptheimage(t,t))};this.zoomOff=function(){$(".zoomContainer").remove();i=!1;u=!1};this.zoomOn=function(){window.innerWidth<768||(i||t.initZoom(),setTimeout(function(){$(".zoomContainer .zoomWindow").css("display","block");$(".zoomContainer .zoomWindow").css("top",0);$(".zoomContainer .zoomWindow").css("left",0);r=n.find("img").data("elevateZoom");r.setPosition(f)},50),u=!0)};this.toggle=function(){u?t.zoomOff():t.zoomOn()};e=function(){n.click(t.toggle);n.bind("mousemove",function(n){f=n})};e()},u=$(".hero-customizer-spot__elevate-zoom"),n=new r(u),f=$(".hero-customizer-spot__thumbs");f.on("click","img",function(){var t=$(this).data("ez-image");$(this).hasClass("elevate-zoom-image")?n.changeImage(t):setTimeout(function(){n.zoomOff()},500)});var e=function(n){var i=this,u=n.find(".expand__inner"),r=$(".show-more-toggle--mobile"),t=!1;this.expand=function(){n.outerHeight(u.outerHeight());r.css({visibility:"hidden"});t=!0};this.collapse=function(){n.outerHeight(0);r.css({visibility:"visible"});t=!1};this.toggle=function(){t?i.collapse():i.expand()}},t=$(".hero-customizer-spot .expand"),i=new e(t);t.mouseleave(i.collapse);$(".hero-customizer-spot").on("click",".show-more-toggle",i.toggle)});__extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),function(n){"use strict";n.module("JabraApplication.ProductCatalogue",["gn.audio.ecommerce","JabraApplication.Design","JabraApplication.ProductApi","JabraApplication.Translation",])}(angular),function(){"use strict";var n=function(){function n(n,t){var i=this;this.$scope=n;this.productCatalogue=t;this.$scope.$watch("productId",function(){i.productCatalogue.getGroupAccessories(Number(i.$scope.productId)).then(function(n){i.$scope.accessories=n},angular.noop)})}return n.prototype.$onInit=function(){},n}();angular.module("JabraApplication.ProductCatalogue").controller("AccessoriesSpotController",["$scope","productCatalogue",n])}(ProductCatalogue||(ProductCatalogue={})),function(n){var t;(function(){"use strict";var n=function(){function n(n,t){var i=this,r;this.$scope=n;this.productCatalogue=t;this.$scope.replaceProductContent=!1;this.$scope.template="<script>window.replaceMainContent();<\/script>";r=this.$scope.$watch("familyId",function(){i.$scope.familyId!==undefined&&(i.productCatalogue.getFamilyGroups(Number(i.$scope.familyId)).then(function(n){i.$scope.replaceProductContent=n.length===0},angular.noop),r())})}return n}();angular.module("JabraApplication.ProductCatalogue").controller("NonProductSpotController",["$scope","productCatalogue",n])})(t=n.FamilyCustomizer||(n.FamilyCustomizer={}))}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";var n=function(){function n(n,t){var i=this,r,u;this.$scope=n;this.productCatalogue=t;this.$scope.groupIds=[];this.$scope.groups=[];this.$scope.groupsLoaded=!1;this.$scope.familyIds=[];this.$scope.families=[];this.$scope.familiesLoaded=!1;r=this.$scope.$watch("groupIdsJson",function(n,t){if(i.$scope.groupIds=JSON.parse(t),!angular.isArray(i.$scope.groupIds)||i.$scope.groupIds.length===0){i.$scope.groupsLoaded=!0;return}r();i.productCatalogue.getMany(i.$scope.groupIds,GN.Audio.ProductCatalogue.ProductType.Group).then(function(n){i.$scope.groups=n;i.$scope.groupsLoaded=!0;i.$scope.familiesLoaded&&(i.$scope.relatedProducts=(i.$scope.relatedProducts||[]).concat(i.$scope.groups).concat(i.$scope.families))},angular.noop)});u=this.$scope.$watch("familyIdsJson",function(n,t){if(i.$scope.familyIds=JSON.parse(t),!angular.isArray(i.$scope.familyIds)||i.$scope.familyIds.length===0){i.$scope.familiesLoaded=!0;return}u();i.productCatalogue.getMany(i.$scope.familyIds,GN.Audio.ProductCatalogue.ProductType.Family).then(function(n){i.$scope.families=n;i.$scope.familiesLoaded=!0;i.$scope.groupsLoaded&&(i.$scope.relatedProducts=(i.$scope.relatedProducts||[]).concat(i.$scope.groups).concat(i.$scope.families))},angular.noop)})}return n.prototype.$onInit=function(){},n}();angular.module("JabraApplication.ProductCatalogue").controller("RelatedProductsConfigurationController",["$scope","productCatalogue",n])}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";var n=function(){function n(n,t){var i=this;this.$scope=n;this.productCatalogue=t;this.$scope.$watch("entityId + entityType",function(){var n;switch(i.$scope.entityType){case"Family":n=GN.Audio.ProductCatalogue.ProductType.Family;break;case"Group":n=GN.Audio.ProductCatalogue.ProductType.Group}n!==undefined&&i.productCatalogue.getRelated(Number(i.$scope.entityId),n).then(function(n){i.$scope.relatedProducts=n},angular.noop)})}return n}();angular.module("JabraApplication.ProductCatalogue").controller("RelatedProductsController",["$scope","productCatalogue",n])}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";var n=function(){function n(n){var t=this;this.$scope=n;this.$scope.selected="";this.$scope.toggle=function(n){var i=n.target,r=i.value;t.$scope.selected=t.$scope.selected===r?"":r;i.checked=t.$scope.selected!==""}}return n}();angular.module("JabraApplication.ProductCatalogue").controller("ShopRibbonController",["$scope",n])}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";angular.module("JabraApplication.ProductCatalogue").directive("condensedMenu",["$window",function(n){return{link:function(t,i){var r=document.getElementById("customizer"),e=document.getElementsByTagName("footer")[0],o=i.find(".condensed-menu__content"),u=0,f=function(n){var t=n.getBoundingClientRect(),i=document.documentElement;return t.top>(window.innerHeight||i.clientHeight)||t.bottom<0};t.condensedMenuContent=o;t.customizerVisible=!1;angular.element(n).bind("load touchmove scroll",function(o){var s=n.pageYOffset,h=i.offset().top;if(r&&(t.customizerVisible=!f(r)||!f(e)),!angular.element(o.target).context||s===u){t.$apply();return}u=s;t.condensedVisible=s>(h>0?h:0);t.$apply()})},restrict:"E"}},])}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";angular.module("JabraApplication.ProductCatalogue").directive("fadeOutOnBgChange",[function(){return{link:function(n,t,i){var r=function(n){for(var u,f=function(n){var t=n.target,r;t.classList.add("hidden","fade-out");r=document.createElement("img");r.src=i.fadeOutOnBgChangeSrc;r.onload=function(){setTimeout(function(){t.style.backgroundImage="url('"+i.fadeOutOnBgChangeSrc+"')";t.classList.remove("hidden","fade-out")},250)}},t=0,r=n;t<r.length;t++)u=r[t],f(u)},u=new MutationObserver(r);u.observe(t[0],{attributes:!0,attributeFilter:["fade-out-on-bg-change-src"]})},restrict:"A"}}])}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";angular.module("JabraApplication.ProductCatalogue").directive("fadeOutOnSrcChange",[function(){return{link:function(n,t,i){var r=function(n){for(var u,f=function(n){var t=n.target;t.classList.add("hidden","fade-out");t.src=i.fadeOutOnSrcChangeSrc;t.onload||(t.onload=function(){setTimeout(function(){t.classList.remove("hidden","fade-out")},250)})},t=0,r=n;t<r.length;t++)u=r[t],f(u)},u=new MutationObserver(r);u.observe(t[0],{attributes:!0,attributeFilter:["fade-out-on-src-change-src"]})},restrict:"A"}}])}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";var n=function(){function n(n,t,i,r){var u=this;this.$scope=n;this.$transclude=t;this.$element=i;this.productCatalogue=r;this.$scope.pId=Number(this.$scope.pId);angular.isNumber(this.$scope.pId)&&!isNaN(this.$scope.pId)&&this.updateFromProduct();this.$scope.$watch("pId",function(n,t){n===t||isNaN(u.$scope.pId)||u.updateFromProduct()})}return n.prototype.updateFromProduct=function(){var n=this;this.$transclude(this.$scope,function(t){n.$element.empty().append(t)});this.productCatalogue.getBullets(this.$scope.pId,this.$scope.pType).then(function(t){if(n.$scope.bullets=t,angular.isFunction(n.$scope.onBulletsLoad))n.$scope.onBulletsLoad({bullets:t})})},n}();angular.module("JabraApplication.ProductCatalogue").directive("productBullets",[function(){return{controller:["$scope","$transclude","$element","productCatalogue",n],restrict:"E",scope:{onBulletsLoad:"&?",pId:"=",pType:"@"},transclude:!0}},])}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";var n=function(){function n(n,t,i,r){var u=this;this.$scope=n;this.$transclude=t;this.$element=i;this.productCatalogue=r;this.$scope.pId=Number(this.$scope.pId);angular.isNumber(this.$scope.pId)&&!isNaN(this.$scope.pId)&&this.updateFromProduct();this.$scope.$watch("pId",function(n,t){n===t||isNaN(u.$scope.pId)||u.updateFromProduct()})}return n.prototype.updateFromProduct=function(){var n=this;this.$transclude(this.$scope,function(t){n.$element.empty().append(t)});this.productCatalogue.getFeatures(this.$scope.pId,this.$scope.pType).then(function(t){n.$scope.features=t})},n}();angular.module("JabraApplication.ProductCatalogue").directive("productFeatures",[function(){return{controller:["$scope","$transclude","$element","productCatalogue",n],restrict:"E",scope:{pId:"=",pType:"@"},transclude:!0}},])}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";var n=function(){function n(n,t,i,r){var u=this;this.$scope=n;this.$transclude=t;this.$element=i;this.productCatalogue=r;this.$scope.pId=Number(this.$scope.pId);angular.isNumber(this.$scope.pId)&&this.updateFromProduct();this.$scope.$watch("pId",function(n,t){n===t||isNaN(u.$scope.pId)||u.updateFromProduct()})}return n.prototype.updateFromProduct=function(){var n=this;this.$transclude(this.$scope,function(t){n.$element.empty().append(t)});this.productCatalogue.getImages(this.$scope.pId,this.$scope.pType).then(function(t){n.$scope.images=t})},n}();angular.module("JabraApplication.ProductCatalogue").directive("productImages",[function(){return{controller:["$scope","$transclude","$element","productCatalogue",n],restrict:"E",scope:{pId:"=",pType:"@"},transclude:!0}},])}(ProductCatalogue||(ProductCatalogue={})),function(){"use strict";var n=function(){function n(n,t,i,r){var u=this;this.$scope=n;this.$transclude=t;this.$element=i;this.productCatalogue=r;this.$scope.pId=Number(this.$scope.pId);angular.isNumber(this.$scope.pId)&&!isNaN(this.$scope.pId)&&this.updateFromProduct();this.$scope.$watch("pId",function(n,t){n===t||isNaN(u.$scope.pId)||u.updateFromProduct()})}return n.prototype.updateFromProduct=function(){var n=this;(this.$transclude(this.$scope,function(t){n.$element.empty().append(t)}),this.$scope.pId)&&this.productCatalogue.getKeySellingPoints(this.$scope.pId,this.$scope.pType).then(function(t){n.$scope.keySellingPoints=t})},n}();angular.module("JabraApplication.ProductCatalogue").directive("productKeySellingPoints",[function(){return{controller:["$scope","$transclude","$element","productCatalogue",n],restrict:"E",scope:{pId:"=",pType:"@"},transclude:!0}},])}(ProductCatalogue||(ProductCatalogue={})),function(n){var t;(function(){"use strict"})(t=n.FamilyCustomizer||(n.FamilyCustomizer={}))}(ProductCatalogue||(ProductCatalogue={})),function(n){var t;(function(n){"use strict";var t=function(){function n(n,t){this._type="";this.idSuffix="";(t===null||typeof t!="object")&&(t={});this.value=t.value||"";this.title=t.title||"";this.disabled=!1;this.visible=!0;this.idSuffix=String(Math.random()).substr(2);this._type=n}return n.prototype.id=function(){return this.value.toLowerCase().replace(/\s/g,"-")+"_"+this.idSuffix},n.prototype.type=function(){return this._type},n}(),i,r;n.OptionBase=t;i=function(n){function t(t){return n.call(this,"checkbox",t)||this}return __extends(t,n),t}(t);n.CheckboxOption=i;r=function(n){function t(t){return n.call(this,"radio",t)||this}return __extends(t,n),t}(t);n.RadioOption=r})(t=n.FamilyCustomizer||(n.FamilyCustomizer={}))}(ProductCatalogue||(ProductCatalogue={})),function(n){var t;(function(){"use strict";var n=function(){function n(){}return n.prototype.match=function(n,t){t===void 0&&(t=[]);var i=n;return t.filter(function(n){return n.hasValue()}).every(function(n){return i.attributes.some(function(t){return t.key===n.key&&t.valueKey===n.value})})},n.prototype.filter=function(n,t){var r,i;for(n===void 0&&(n=[]),t===void 0&&(t=[]),r=[],i=0;i<n.length;i++)this.match(n[i],t)&&r.push(n[i]);return r},n.prototype.prepare=function(n,t){var f,u,e,i,r;for(n===void 0&&(n=[]),t===void 0&&(t=[]),i=0;i<t.length;i++)for(f=t[i].key,r=0;r<n.length;r++)(u=n[r].attributes.filter(function(n){return n.key===f}),u.length!==0)&&(e=t[i].options.filter(function(n){return u.some(function(t){return t.valueKey===n.value})}),angular.forEach(e,function(n){return n.visible=!0}))},n.prototype.process=function(n,t){n===void 0&&(n=[]);t===void 0&&(t=[]);var i=this.forecast(n,t);t.forEach(function(n,t){n.options.forEach(function(n,r){n.disabled=i[t].options[r].disabled})})},n.prototype.forecast=function(n,t){var r,e,i,f,o,u;for(n===void 0&&(n=[]),t===void 0&&(t=[]),r=[],angular.copy(t,r),f=0;f<r.length;f++)if(i=r[f],angular.isArray(i.options)&&i.options.some(function(n){return n.visible})){for(o=i.value,u=0;u<i.options.length;u++)i.value=i.options[u].value,e=this.filter(n,r),i.options[u].disabled=e.length===0;i.value=o}return r},n}();angular.module("JabraApplication.ProductCatalogue").service("customizerFilterService",n)})(t=n.FamilyCustomizer||(n.FamilyCustomizer={}))}(ProductCatalogue||(ProductCatalogue={})),function(n){var t;(function(n){"use strict";var t=function(){function t(t,i,r){var u=this,f,e;this.$scope=t;this.productCatalogue=i;this.filterService=r;this.filterTemplateSuffix="family-customizer-spot-filter-";this.filterOptionHistory={};this.initiailized=!1;this.$scope.configuration={};this.$scope.onPriceLoad=function(n){u.$scope.price=n};this.$scope.toggle=function(n,t){var i=u.filterOptionHistory[n.key];i===t?(delete u.filterOptionHistory[n.key],n.value=undefined,u.$scope.filterChange(n)):u.filterOptionHistory[n.key]=t};this.$scope.filterChange=function(){u.filter()};this.$scope.__selectionList=function(){return(u.$scope.selections||[]).filter(function(n){return n!==u.$scope.selection}).map(function(n){return n.productName}).join(", ")};this.$scope.whereToBuy=function(){return u.$scope.selection?u.$scope.selection.segmentType===GN.Audio.ProductCatalogue.SegmentType.Business?"/where-to-buy/partner-locator":"/where-to-buy/retailer-locator":""};f=this.$scope.$watch("configuration.filtersJSON",function(){u.$scope.configuration.filtersJSON!==undefined&&(u.$scope.filters=angular.fromJson(u.$scope.configuration.filtersJSON).map(function(t){return n.Filter.initFromService(t,u.filterTemplateSuffix)}),angular.forEach(u.$scope.filters,function(n){angular.forEach(n.options,function(n){n.disabled=!1;n.visible=!1})}),f())});e=this.$scope.$watch("configuration.familyId",function(){u.$scope.configuration.familyId!==undefined&&(u.productCatalogue.getFamilyAttributes(Number(u.$scope.configuration.familyId)).then(u.onGetFamilyByIdSuccess.bind(u),angular.noop),e())})}return t.prototype.preSelectColor=function(){var n,t,i="Product_Mobcolorhex";this.$scope.filters&&this.$scope.filters.length!==0&&this.$scope.selection&&(t=this.$scope.selection.attributes.filter(function(n){return n.key===i}),t.length!==0)&&(n=this.$scope.filters.filter(function(n){return n.key===i}),n.length!==0)&&(n[0].value=t[0].value)},t.prototype.filter=function(){this.initiailized&&(this.$scope.selections=this.filterService.filter(this.$scope.groups,this.$scope.filters),this.$scope.selection=this.$scope.selections[0],this.filterService.process(this.$scope.groups,this.$scope.filters))},t.prototype.onGetFamilyByIdSuccess=function(n){this.$scope.groups=n;this.$scope.selection=this.$scope.groups[0];this.filterService.prepare(n,this.$scope.filters);this.preSelectColor();this.initiailized=!0;this.filter()},t}();n.FamilyCustomizerController=t;angular.module("JabraApplication.ProductCatalogue").controller("FamilyCustomizerController",["$scope","productCatalogue","customizerFilterService",t])})(t=n.FamilyCustomizer||(n.FamilyCustomizer={}))}(ProductCatalogue||(ProductCatalogue={})),function(n){var t;(function(n){"use strict";var t=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this,f;return u.$scope=t,u.filterTemplateSuffix="hero-customizer-spot-filter-",u.defaultFilterValues={},u.$scope.selectImage=function(n){(u.$scope.images.forEach(function(n){n.selected=!1}),u.$scope.lifestyleImages.forEach(function(n){n.selected=!1}),angular.isObject(n)&&n!==null)&&(n.selected=!0,u.$scope.selectedImage=n)},u.$scope.getColorOptionImage=function(n,t){var f=n.value,r,i;return n.value=t,r=[n],i=u.filterService.filter(u.$scope.groups,r)[0],n.value=f,i?i.images[0].url:""},t.removeSizes=function(n){return(n||"").replace(/\?(.)*/gi,"")},u.$scope.getFilterDefaultValue=function(n){return u.defaultFilterValues[n.key]},f=u.$scope.$watch("configuration.lifestyleImages",function(){var n=JSON.parse(u.$scope.configuration.lifestyleImages);n&&(u.$scope.lifestyleImages=[],n.forEach(function(n){u.$scope.lifestyleImages.push({isLifestyleImage:!0,selected:!1,url:n.Src})}));f()}),u}return __extends(t,n),t.prototype.onGetFamilyByIdSuccess=function(t){var i=this;n.prototype.onGetFamilyByIdSuccess.call(this,t);this.setImages(this.$scope.selection);this.$scope.selectImage(this.$scope.images[0]);this.$scope.filters.forEach(function(n){i.defaultFilterValues[n.key]=n.value})},t.prototype.setImages=function(n){this.$scope.images=n.images.filter(function(n){return angular.isObject(n)&&angular.isString(n.url)&&n.url!==""}).filter(function(n){return n.url.match(/.(jpg|jpeg|png|tiff|tif)/gi)!==null}).map(function(n){return{isLifestyleImage:!1,selected:!1,url:n.url}})},t.prototype.filter=function(){n.prototype.filter.call(this);this.setImages(this.$scope.selection);this.$scope.selectImage(this.$scope.images[0])},t}(n.FamilyCustomizerController);angular.module("JabraApplication.ProductCatalogue").controller("HeroCustomizerController",["$scope","productCatalogue","customizerFilterService",t])})(t=n.FamilyCustomizer||(n.FamilyCustomizer={}))}(ProductCatalogue||(ProductCatalogue={})),function(n){var t;(function(n){"use strict";var t=function(){function t(t,i,r,u){var f=this;this.idSuffix="";(u===null||typeof u!="object")&&(u={});this.templateSuffix=r;this.key=t;this.value="";this.title=u.title||"";this.type=i||"";this.options=(u.options||[]).map(function(t){return new n.OptionBase(f.type,t)});this.idSuffix=String(Math.random()).substr(2)}return t.initFromService=function(n,i){if(n===null||typeof n!="object")return undefined;var r=n.Options||[];return new t(n.Name,r.length===1?"checkbox":"radio",i,{options:r.map(function(n){return{title:n.Title,value:n.Value}}),title:n.Title})},t.prototype.hasValue=function(){return typeof this.value=="string"&&this.value!==""},t.prototype.id=function(){return this.key.toLowerCase().replace(/\s/g,"-")+"_"+this.idSuffix},t.prototype.template=function(){return this.key==="Product_Mobcolorhex"?this.templateSuffix+"color.html":this.templateSuffix+this.type+".html"},t}();n.Filter=t})(t=n.FamilyCustomizer||(n.FamilyCustomizer={}))}(ProductCatalogue||(ProductCatalogue={})),function(n){"use strict";n.module("JabraApplication.ProductFilterModule",["gn.audio.ecommerce","gn.audio.quicksearch","gn.audio.product.catalogue","JabraApplication.Design"])}(angular),function(){"use strict";var n=function(){function n(n,t){var r=this,i,u=function(){i=t(function(){r.isMobile=n.innerWidth<992},300)};angular.element(n).bind("load resize",function(){t.cancel(i);u()})}return n}();angular.module("JabraApplication.ProductFilterModule").service("pfmResolutionHelper",["$window","$timeout",n])}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=function(){function n(n){this.$log=n;this._queue=[]}return n.prototype.add=function(n){if(!angular.isString(n)||n===""){this.$log.warn("Provided queue item name is not a string or empty.");return}if(this._queue.indexOf(n)>-1){this.$log.warn("Provided queue item name is already present in queue. ",n);return}this.$log.info("Adding queue item. ",n);this._queue.push(n)},n.prototype.isEmpty=function(){return this._queue.length===0},n.prototype.remove=function(n){var t;if(!angular.isString(n)||n===""){this.$log.warn("Provided queue item name is not a string or empty.");return}if(t=this._queue.indexOf(n),t===-1){this.$log.warn("Provided queue item name is not present in queue. ",n);return}this.$log.info("Removing queue item. ",n);this._queue.splice(t,1)},n}();angular.module("JabraApplication.ProductFilterModule").service("pfmLoadQueue",["$log",n])}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict"}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict"}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict"}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=function(){function n(){}return n.prototype.build=function(n,t,i){var r,u,f,o,e;for(n===void 0&&(n=[]),t===void 0&&(t=[]),i===void 0&&(i=""),r="",u="",f=0;f<n.length;f++)(o=n[f].filters,e=o.filter(function(n){return t.indexOf(n.id)>-1}),u="",e.forEach(function(n){var t="";n.attachedOptions.forEach(function(n){t+=t===""?"":" and ";t+="attributes/any(a: a eq '"+n.key+"|"+n.value+"')"});u+=(u===""?"":" or ")+t}),u!=="")&&(r+=r===""?e.length===1?u:"("+u+")":" and ("+u+")");return i!==""&&r!==""?r=i+" and "+r:i!==""&&r===""&&(r=i),r||""},n}();angular.module("JabraApplication.ProductFilterModule").service("pfmQueryBuilder",[n])}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=function(){function n(n){this.$location=n}return Object.defineProperty(n.prototype,"filters",{get:function(){return(this.$location.search().pff||"").split("-").filter(function(n){return n!==""})},set:function(n){this.$location.search("pff",angular.isArray(n)&&n.length>0?n.join("-"):null)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pageNumber",{get:function(){var n=Number(this.$location.search().pfp);return isNaN(n)&&(n=1,this.$location.search("pfp",n)),n},set:function(n){this.$location.search("pfp",n||null)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"searchQuery",{get:function(){return this.$location.search().pfq||""},set:function(n){this.$location.search("pfq",n||null)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sorter",{get:function(){return this.$location.search().pfs||""},set:function(n){this.$location.search("pfs",n||null)},enumerable:!0,configurable:!0}),n}();angular.module("JabraApplication.ProductFilterModule").service("pfmUrlHelper",["$location",n])}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict"}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict"}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=function(){function n(n,t,i,r,u,f){var e=this,o,s,h;this.$scope=n;this.urlHelper=t;this.resolutionHelper=i;this.loadQueue=r;this.quickSearch=u;this.queryBuilder=f;this.$scope.orderOptions={options:[]};o=this.$scope.$watch("_ordersJson",function(){if(e.$scope._ordersJson!==undefined){e.$scope.orderOptions.options=JSON.parse(e.$scope._ordersJson);var n=e.urlHelper.sorter.split("-");n.length>0?(e.$scope.orderOptions.current=e.$scope.orderOptions.options.filter(function(t){return t.property.toLowerCase()===(n[0]||"").toLowerCase()&&t.direction.toLowerCase()===(n[1]||"").toLowerCase()})[0],e.$scope.orderOptions.current===undefined&&(e.$scope.orderOptions.current=e.$scope.orderOptions.options[0])):e.$scope.orderOptions.current=e.$scope.orderOptions.options[0];e.$scope.orderOptions.current!==undefined&&(e.urlHelper.sorter=e.$scope.orderOptions.current.property.toLowerCase()+"-"+e.$scope.orderOptions.current.direction.toLowerCase());o()}});this.$scope.searchOptions={filter:"",search:this.urlHelper.searchQuery};s=this.$scope.$watch("searchOptions.preFilter",function(){e.initialize();s()});h=this.$scope.$watch("_filterGroupsJson",function(){var n,i,r,f,t,u,o;if(e.$scope._filterGroupsJson!==undefined){for(e.$scope.filterGroups=JSON.parse(e.$scope._filterGroupsJson),e.$scope.filterGroups.forEach(function(n){n.selected=0}),n=0,i=e.$scope.filterGroups;n<i.length;n++)for(r=i[n],f=function(n){n.selected=e.urlHelper.filters.some(function(t){return n.id.indexOf(t)>-1});n.selected&&(e.$scope.selectedFilters.push(n.id),r.selected++)},t=0,u=r.filters;t<u.length;t++)o=u[t],f(o);h();e.$scope.load()}});this.$scope.toggleFilter=function(n,t){var i=e.$scope.selectedFilters.indexOf(n),r=t.filters.filter(function(t){return t.id===n})[0];i===-1?(e.$scope.selectedFilters.push(n),t.selected++,r.selected=!0):(e.$scope.selectedFilters.splice(i,1),t.selected--,r.selected=!1);e.urlHelper.filters=e.$scope.selectedFilters.map(function(n){return n.substring(n.length-4)});e.$scope.searchOptionsChanged()};this.$scope.orderChanged=function(n){e.$scope.orderOptions.current=n;e.urlHelper.sorter=n.property.toLowerCase()+"-"+n.direction.toLowerCase();e.$scope.searchOptionsChanged(!0)}}return n.prototype.initialize=function(){var n=this;this.$scope.pagingOptions={count:0,currentPage:this.urlHelper.pageNumber,pageSize:12};this.$scope.loadedProducts=[];this.$scope.filterGroups=[];this.$scope.selectedFilters=[];this.$scope.loading=function(){return!n.loadQueue.isEmpty()};this.$scope.applyFilters=function(){n.$scope.pagingOptions.currentPage=1;n.$scope.load();n.$scope.showFilters=!1};this.$scope.load=function(){var i=n.$scope.pagingOptions.pageSize,t;n.urlHelper.pageNumber=n.$scope.pagingOptions.currentPage;n.loadQueue.add("pfmcontroller#loadMore");n.$scope.searchOptions.filter=n.queryBuilder.build(n.$scope.filterGroups,n.$scope.selectedFilters,n.$scope.searchOptions.preFilter);t={filter:n.$scope.searchOptions.filter,search:n.$scope.searchOptions.search,skip:i*(n.$scope.pagingOptions.currentPage-1),top:i};n.$scope.orderOptions.current!==undefined&&(t.orderBy=n.$scope.orderOptions.current.property+" "+n.$scope.orderOptions.current.direction);n.quickSearch.getByEntity(n.$scope.entityType,t,n.$scope.showSupportLinks?GN.Audio.QuickSearch.IncludeType.Supported:GN.Audio.QuickSearch.IncludeType.Available).then(function(t){n.$scope.loadedProducts.length=0;n.$scope.loadedProducts=t.items||[];n.$scope.pagingOptions.count=t.count||0}).finally(function(){n.loadQueue.remove("pfmcontroller#loadMore");typeof testFreaks!="undefined"&&setTimeout(function(){testFreaks.push(["load","items"])},50)})};this.$scope.searchOptionsChanged=function(t){(t===void 0&&(t=!1),n.urlHelper.searchQuery=n.$scope.searchOptions.search,!n.$scope.isMobile||t)&&(n.$scope.pagingOptions.count=0,n.$scope.pagingOptions.currentPage=1,n.$scope.load())};this.$scope.$watch(function(){return n.resolutionHelper.isMobile},function(){n.$scope.isMobile=n.resolutionHelper.isMobile})},n}();angular.module("JabraApplication.ProductFilterModule").controller("PfmController",["$scope","pfmUrlHelper","pfmResolutionHelper","pfmLoadQueue","quickSearch","pfmQueryBuilder",n])}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=function(){function n(n){this.$timeout=n}return n.prototype.pages=function(){for(var i=Math.ceil(this.count/this.pageSize),t=[],n=1;n<=i;n++)t.push(n);return t},n.prototype.limitStart=function(){return this.currentPage<3?0:this.currentPage-3},n.prototype.firstPage=function(){this.setPage(1)},n.prototype.lastPage=function(){this.setPage(this.pages().length)},n.prototype.nextPage=function(){this.setPage(this.currentPage+1)},n.prototype.prevPage=function(){this.setPage(this.currentPage-1)},n.prototype.setPage=function(n){var t=this;this.currentPage!==n&&(this.currentPage=n,this.$timeout(function(){t.pageAction()}))},n}();angular.module("JabraApplication.ProductFilterModule").component("pfmPager",{bindings:{count:"=",currentPage:"=",pageAction:"&?",pageSize:"<"},controller:["$timeout",n],template:'\n                <ul class="pfm-pager__pages">\n                    <li class="pfm-pager__page jbr-btn jbr-btn-square jbr-btn--dark first-page" ng-disabled="$ctrl.currentPage === 1" ng-click="$ctrl.firstPage()">&nbsp;<\/li>\n                    <li class="pfm-pager__page jbr-btn jbr-btn-square jbr-btn--dark prev-page" ng-disabled="$ctrl.currentPage === 1" ng-click="$ctrl.prevPage()">&nbsp;<\/li>\n                    <li ng-repeat="page in $ctrl.pages() | limitTo:5:$ctrl.limitStart()" class="pfm-pager__page jbr-btn jbr-btn-square jbr-btn--dark" ng-bind="page" ng-click="$ctrl.setPage(page)"\n                        ng-disabled="page === $ctrl.currentPage"><\/li>\n                    <li class="pfm-pager__page jbr-btn jbr-btn-square jbr-btn--dark next-page" ng-disabled="$ctrl.currentPage === $ctrl.pages().length || $ctrl.pages().length === 0"\n                        ng-click="$ctrl.nextPage()">&nbsp;<\/li>\n                    <li class="pfm-pager__page jbr-btn jbr-btn-square jbr-btn--dark last-page" ng-disabled="$ctrl.currentPage === $ctrl.pages().length || $ctrl.pages().length === 0"\n                        ng-click="$ctrl.lastPage()">&nbsp;<\/li>\n                <\/ul>\n            '})}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=function(){function n(){this.showFilters=!1}return n.prototype.overlayClicked=function(){this.showFilters=!1},n.prototype.toggleFilters=function(){this.showFilters=!this.showFilters},n.prototype.filterChanged=function(n){if(this.showFilters=!1,angular.isFunction(this.onFilterChange))this.onFilterChange({filterId:n.id,filterGroup:this.filterGroup})},n}();angular.module("JabraApplication.ProductFilterModule").component("productFilterGroup",{bindings:{filterGroup:"<",onFilterChange:"&?"},controller:[n],template:'\n                <div class="product-filter-group__container">\n                    <div class="overlay" ng-show="$ctrl.showFilters" ng-cloak ng-click="$ctrl.overlayClicked()"><\/div>\n                    <div class="product-filter-group__title" ng-click="$ctrl.toggleFilters()">\n                        <span ng-bind="::$ctrl.filterGroup.title"><\/span>\n                        <span ng-show="$ctrl.filterGroup.selected > 0" ng-bind="\'(\' + $ctrl.filterGroup.selected + \')\'"><\/span>\n                    <\/div>\n                    <ul class="product-filter-group__filters" ng-show="$ctrl.showFilters" ng-cloak>\n                        <li ng-repeat="filter in $ctrl.filterGroup.filters" class="product-filter-group__filter" ng-bind="::filter.title" \n                            ng-click="$ctrl.filterChanged(filter)" ng-class="{ selected: filter.selected }"><\/li>\n                    <\/ul>\n                <\/div>\n            '})}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=function(){function n(){}return n.prototype.$onInit=function(){this.labels=(this.attributes||[]).filter(function(n){return n.toLowerCase()==="meta_discontinued|true"||n.toLowerCase()==="meta_refurbished|true"}).filter(function(n,t,i){return i.indexOf(n)===t}).map(function(n){return n.split("|")[0]}).sort(function(n,t){return n>t?1:n<t?-1:0})},n}();angular.module("JabraApplication.ProductFilterModule").component("productItemLabels",{bindings:{attributes:"<"},controller:[n],template:'\n                <span class="product-item__label product-item__label--{{::label | lowercase}}" ng-repeat="label in $ctrl.labels" system-dictionary="{{::label}}"><\/span>\n            '})}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=function(){function n(){}return n.prototype.productId=function(){return!angular.isObject(this.product)||this.product===null?0:this.isGroupMode()?this.product.groupId:this.product.familyId},n.prototype.productUrl=function(){return!angular.isObject(this.product)||this.product===null?"javascript:;":this.isSupportedState()?this.product.supportPageUrl:this.product.pageUrl},n.prototype.isFamilyMode=function(){return this.productType==="f"},n.prototype.isGroupMode=function(){return this.productType==="g"},n.prototype.isSupportedState=function(){return this.productState==="supported"},n}();angular.module("JabraApplication.ProductFilterModule").component("productItem",{bindings:{product:"<",productState:"@?",productType:"@"},controller:[n],template:'\n                <div class="product-item__container">\n                    <product-item-labels class="product-item__labels" attributes="::$ctrl.product.attributes"><\/product-item-labels>\n                    <div class="product-read-more__close"><\/div>\n                    <slick lazy-load="ondemand" slides-to-show="1" dots="false" init-onload="true" data="::$ctrl.product.images">\n                        <div class="product-item__image" ng-repeat="image in $ctrl.product.images" ng-cloak>\n                            <a href="javascript:;" ng-href="{{::$ctrl.productUrl()}}">\n                                <img src="/components/design/content/ajax-loader.gif" data-lazy="{{::image}}?w=250&h=250" alt="{{::$ctrl.product.title}}" />\n                            <\/a>\n                        <\/div>\n                    <\/slick>\n                    <div class="product-item__name">\n                        <a href="javascript:;" ng-href="{{::$ctrl.productUrl()}}" ng-bind="::$ctrl.product.title"><\/a>\n                    <\/div>\n                    <div class="product-item__sku" ng-show="::$ctrl.product.sku" ng-bind="::$ctrl.product.sku" ng-cloak><\/div>\n                    <div class="product-item__testfreaks testfreaks-item" data-product-id="{{::$ctrl.product.pageUrl}}"><\/div>\n                    <div class="product-item__features-container">\n                        <ul class="product-item__features" ng-show="$ctrl.product.features.length > 0" ng-cloak>\n                            <li ng-repeat="feature in $ctrl.product.features | limitTo: 4" class="product-item__feature" ng-bind-html="::feature"><\/li>\n                        <\/ul>\n                        <p class="product-item__features" ng-show="$ctrl.product.features.length === 0" ng-bind-html="::$ctrl.product.uniqueSellingPoint"><\/p>\n                    <\/div>\n                    <product-read-more product-id="::$ctrl.productId()" product-type="::$ctrl.productType" empty-text="::$ctrl.product.summary"><\/product-read-more>\n                    <div class="product-read-more__label">\n                        <span class="product-read-more__label--collapsed" system-dictionary="ReadMore"><\/span>\n                        <span class="product-read-more__label--expanded" system-dictionary="ReadLess" ng-cloak><\/span>\n                    <\/div>\n                    <div class="product-item__ecom">\n                        <price p-id="::$ctrl.productId()" p-type="{{::$ctrl.productType}}" segment-type="::$ctrl.product.segmentType"><\/price>\n                        <product-action ng-if="$ctrl.isGroupMode() && !$ctrl.isSupportedState()" p-id="::$ctrl.productId()" p-type="{{::$ctrl.productType}}" \n                            segment-type="::$ctrl.product.segmentType"><\/product-action>\n                        <a class="jbr-btn jbr-btn-large jbr-btn--yellow" ng-if="$ctrl.isFamilyMode()" href="javascript:;" \n                            ng-href="{{::$ctrl.productUrl()}}" system-dictionary="ShowMeMore"><\/a>\n                        <a class="jbr-btn jbr-btn-large jbr-btn--yellow" ng-if="$ctrl.isGroupMode() && $ctrl.isSupportedState()" href="javascript:;" \n                            ng-href="{{::$ctrl.productUrl()}}" system-dictionary="ProductSupport"><\/a>\n                    <\/div>\n                <\/div>\n            '})}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=function(){function n(){this.showOrders=!1}return n.prototype.overlayClicked=function(){this.showOrders=!1},n.prototype.toggleOrders=function(){this.showOrders=!this.showOrders},n.prototype.orderChanged=function(n){if(this.showOrders=!1,angular.isFunction(this.onOrderChange))this.onOrderChange({order:n})},n}();angular.module("JabraApplication.ProductFilterModule").component("productOrders",{bindings:{onOrderChange:"&?",orders:"<",selectedOrder:"<?"},controller:[n],template:'\n                <div class="product-orders__container">\n                    <div class="overlay" ng-show="$ctrl.showOrders" ng-cloak ng-click="$ctrl.overlayClicked()"><\/div>\n                    <div class="product-orders__title" ng-click="$ctrl.toggleOrders()">\n                        <span system-dictionary="SortBy"><\/span>\n                    <\/div>\n                    <ul class="product-orders__orders" ng-show="$ctrl.showOrders" ng-cloak>\n                        <li ng-repeat="order in $ctrl.orders" class="product-orders__order" ng-bind="::order.title" \n                            ng-click="$ctrl.orderChanged(order)" ng-class="{ selected: order === $ctrl.selectedOrder }"><\/li>\n                    <\/ul>\n                <\/div>\n            '})}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";var n=400,t='\n        <product-bullets p-id="::productId" p-type="{{::productType}}" on-bullets-load="onBulletsLoaded(bullets)">\n            <ul class="product-read-more__bullets" ng-show="bullets.length > 0">\n                <li class="product-read-more__bullet" ng-repeat="bullet in bullets | limitTo:5" ng-bind-html="::bullet.text"><\/li>\n            <\/ul>\n            <p class="product-read-more__bullets" ng-show="bullets.length === 0" ng-bind-html="::$parent.emptyText"><\/div>\n        <\/product-bullets>\n    ';angular.module("JabraApplication.ProductFilterModule").directive("productReadMore",["$compile","$timeout",function(i,r){return{link:function(u,f){var o="desktop",e=f.parent(),s=e.find(".product-read-more__close"),p=e.find(".product-read-more__label"),h=e.find("slick"),l=e.find(".product-item__features-container"),a=e.find(".product-read-more__label--collapsed"),v=e.find(".product-read-more__label--expanded"),c=function(r){var e=f.find("product-bullets"),y=e.length>0,c;y?(s.fadeToggle(n),l.slideToggle(n),e.slideToggle(n),a.toggle(),v.toggle(),o==="desktop"&&h.slideToggle(n,function(){h.slick("setPosition")})):(c=i(t)(u),f.prepend(c));r.preventDefault()},y=function(){var n=o;o=window.innerWidth<768?"mobile":"desktop";n!==o&&w()},w=function(){var t=f.find("product-bullets");a.show();v.hide();s.fadeOut(n);t.slideUp(n);l.slideDown(n);h.slideDown(n,function(){h.slick("setPosition")})};u.onBulletsLoaded=function(){r(function(){var t=f.find("product-bullets");a.hide();v.show();l.slideUp(n);t.slideDown(n);o==="desktop"&&(h.slideUp(n),s.fadeIn(n))},0,!1)};p.on("click",c);s.on("click",c);angular.element(window).on("resize",y);y();u.$on("$destroy",function(){p.off("click",c);s.off("click",c);angular.element(window).off("resize",y)})},restrict:"E",scope:{productId:"<",productType:"<",emptyText:"<"}}}])}(ProductFilterModule||(ProductFilterModule={})),function(){"use strict";angular.module("JabraApplication.ProductFilterModule").directive("productToolbarSticky",["$window",function(n){var t=angular.element(n);return{link:function(n,i,r){var u=r.productToolbarSticky,f=i[0],o=angular.element(r.productToolbarContainer),e=function(){if(f.offsetWidth===0&&f.offsetHeight===0){i.removeClass(u).next(".sticky-phantom").remove();return}var n=i.hasClass(u),r=n?i.next(".sticky-phantom").offset().top:i.offset().top;if(t.scrollTop()>=r){if(t.scrollTop()>o.offset().top+o.height()-i.height()?i.css("opacity",0):i.css("opacity",1),i.hasClass(u))return;f.offsetHeight!==0&&i.after('<div class="sticky-phantom" style="height: '+i.outerHeight()+'px;"><\/div>');i.addClass(u)}else i.hasClass(u)&&i.removeClass(u).next(".sticky-phantom").remove()};e();t.on("scroll resize",e);n.$on("$destory",function(){t.off("scroll resize",e)})},restrict:"A"}},])}(ProductFilterModule||(ProductFilterModule={})),function(n){"use strict";n.module("JabraApplication.CountryDetection",["ngCookies"])}(angular),function(){"use strict";var n=function(){function n(n,t){this.$cookies=t;this.$scope=n;this.cookieName="ShowCountrySelector"}return n.prototype.saveAndClose=function(){var n=new Date,t;n.setDate(n.getDate()+7);t={expires:n,path:"/"};this.$cookies.put(this.cookieName,"1",t)},n.prototype.shouldShow=function(){var n;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(n=!0)}(navigator.userAgent||navigator.vendor),!this.$cookies.get(this.cookieName)&&!Boolean(n)},n}();angular.module("JabraApplication.CountryDetection").controller("LanguageOptionsBoxController",["$scope","$cookies",n])}(CountryDetection||(CountryDetection={})),function(n){"use strict";n.module("JabraApplication.Navigation",["gn.audio.site.settings","gn.audio.quicksearch"])}(angular),function(){"use strict";var n=angular.module("JabraApplication.Navigation");n.factory("loginHost",["$window",function(n){return n.location.host&&n.location.host.indexOf(".jabra.")>0?"https://"+n.location.host:n.location.host==="jabra-public-shell-en"?"http://"+n.location.host:"https://www.jabra.com"}]);n.factory("loginService",["$http","$rootScope","$q","loginHost",function(n,t,i,r){var u={},e="login",f=r+"/services/AuthenticationService/AuthenticationService.svc";return u.login=function(r,u,o,s){var h=i.defer(),c={Login:r,Password:u,RememberMe:Number(o||!1)+""};return typeof s=="object"&&s!==null&&(c.DuplicateProfileId=s.CrmContactId||""),n.post(f+"/Authenticate",c).then(function(n){var r=(n.data.IsAuthenticated+"").toLowerCase()==="true",i={authenticated:r,requiresSelection:!1,customerName:n.data.CustomerName};r&&(n.data.DuplicateProfiles&&n.data.DuplicateProfiles.length>1?(i.profiles=n.data.DuplicateProfiles,i.requiresSelection=(c.DuplicateProfileId||"").length===0):t.$broadcast(e));h.resolve(i)},function(n){h.reject(n)}),h.promise},u.isAuthenticated=function(){var t=i.defer();return n.get(f+"/IsAuthenticated",{params:{cache:(new Date).getTime()}}).then(function(n){t.resolve(n.data)},function(n){t.reject(n)}),t.promise},u.logOff=function(){var i=n.get(f+"/Logoff",{params:{cache:(new Date).getTime()}});return i.then(function(){t.$broadcast(e)}),i},u.resetPassword=function(t){var r=i.defer();return n.get(f+"/ResetPassword/"+t,{cache:!1}).then(function(n){r.resolve(n.data)},function(){r.resolve(!1)}),r.promise},u.onLoginChange=function(n,t){return n.$on(e,t)},u.showLogin=function(){window.location.protocol==="https:"&&t.$broadcast("showlogin")},u.onShowLogin=function(n,t){return n.$on("showlogin",t)},u}])}(),function(){"use strict";angular.module("JabraApplication.Navigation").controller("LoginStateController",["$scope","$location","loginService",function(n,t,i){function r(){i.isAuthenticated().then(function(i){n.authenticated=String(i).toLowerCase()==="true";n.authenticated||t.path()!=="/login"||n.showLogin()})}n.authenticated=!1;n.logOff=function(){i.logOff().then(function(){document.location.href="http://"+document.location.host})};n.showLogin=function(){i.showLogin()};i.onLoginChange(n,function(){r()});r()}])}(),function(){"use strict";angular.module("JabraApplication.Navigation").controller("PartnernetLoginController",["$scope","loginService","$window",function(n,t,i){function r(n,t){var r=new RegExp("[\\?&#]"+n+"=([^&#]*)"),i=r.exec(t);return!i||i.length<=0?null:decodeURIComponent(i[1].replace(/\+/g," "))}function e(){return r("returnUrl",i.location.search)||r("url",i.location.hash)||n.targetPage}function u(t){n.loading=!1;t&&t.authenticated?t.requiresSelection&&t.profiles?(n.profiles=t.profiles,n.mode="selectprofile",n.customerName=t.customerName):i.location.href=e():n.invalid=!0}function f(){n.loading=!1;n.invalid=!0}n.showlogin=i.location.protocol==="https:"&&i.location.hash&&i.location.hash.indexOf("#/login")>=0;n.invalid=!1;n.loading=!1;n.email="";n.password="";n.remember=!1;n.targetPage=null;n.mode="";n.profiles=[];n.customerName="";n.submit=function(r){r||(r=i.location.href);n.targetPage=r;n.loading=!0;n.invalid=!1;t.login(n.email,n.password,n.remember).then(u,f)};n.selectProfile=function(i){t.login(n.email,n.password,n.remember,i).then(u,f)};n.close=function(){n.invalid=!1;n.showlogin=!1;n.mode=""};n.forgot=function(){n.email&&t.resetPassword(n.email).then(function(t){n.mode=t?"forgot-success":"forgot-unknown"})};t.onShowLogin(n,function(){n.invalid=!1;n.showlogin=!0;n.mode=""})}])}(),function(n){"use strict";n.module("JabraApplication.Navigation").controller("TopNavigationSearchController",["$scope","topNavSearchHelper",function(n,t){var r=function(n,t){t||(t=window.location.href);n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},i=r("q");i&&t.setCurrentSearchPhrase(i);n.searchQuery=t.getCurrentSearchPhrase();n.$on("search:query:reset",function(){n.searchQuery="";t.setCurrentSearchPhrase(n.searchQuery);var i=document.getElementById("q");i!==null&&i.focus()});n.doSearch=function(){t.setCurrentSearchPhrase(n.searchQuery)}}])}(angular),function(n){"use strict";n.module("JabraApplication.Navigation").controller("TopNavigationSearchResultsController",["$scope","$rootScope","topNavSearchHelper","quickSearch",function(n,t,i,r){var o="",u="",e=5,f=5,s=2,h=function(t,i,r){var u=Math.ceil(r/i),o,h=1,e=1,c=0,s=Math.ceil(f/2);if(n.selectedPage=t,n.productResultsPages=[],u&&u!==1)for(u<=f?e=u:t<=s?e=f:(c=u-t,c<s?(h=u-f+1,e=u):(h=t-s+1,e=t+s-1)),o=h;o<=e;o++)n.productResultsPages.push(o)},c=function(){var t;window.bcsCurrentQuery=u;window.bcsAlterQuery?t=window.setInterval(function(){document.getElementsByClassName("bcs-searchbox").length!==0&&(window.bcsAlterQuery(u),clearInterval(t),n.loading=!1,n.$apply())},100):n.loading=!1};n.loading=!1;n.showResults=!1;n.selectedPage=0;n.productResultsCount=0;n.productResultsItems=[];n.showResultsContainer=function(){if(u.length<s){n.showResults=!1;return}n.productResultsItems={};n.updateProductSearch();n.showResults=!0};n.updateProductSearch=function(t){var i=t||1,f=e*Math.max(i-1,0);n.productResultsPages=[];n.loading=!0;r.get({filter:n.filterQuery,orderBy:o,search:u,skip:f,top:e}).then(function(t){n.productResultsCount=t.count||0;n.productResultsItems=t.items||[];h(i,e,n.productResultsCount)},function(){n.productResultsCount=0;n.productResultsItems=[]}).finally(function(){if(t!==undefined){n.loading=!1;return}c()})};n.findNew=function(){t.$broadcast("search:query:reset")};n.$watch(function(){return i.getCurrentSearchPhrase()},function(t){u=t;n.showResultsContainer()});n.seeAllResults=function(){var n=document.getElementById("site-search");n!==null&&n.submit()}},])}(angular),function(){"use strict";angular.module("JabraApplication.Navigation").directive("autoFillSync",["$timeout",function(n){return{require:"ngModel",link:function(t,i,r,u){return n(function(){var n=i.val();u.$pristine&&u.$viewValue!==n&&n&&u.$setViewValue(n)},500)}}}])}(),function(n){"use strict";n.module("JabraApplication.Navigation").directive("doDesktopRedirect",[function(){return{link:function(t,i,r){var u=!1,f=r.doDesktopRedirect;if(n.isString(f)&&f!==""){i.on("touchstart",function(){u=!0});i.on("click",function(){if(u){u=!1;return}window.location.href=f})}}}}])}(angular),function(n){"use strict";n.module("JabraApplication.Navigation").factory("topNavSearchHelper",[function(){var n="";return{getCurrentSearchPhrase:function(){return n},setCurrentSearchPhrase:function(t){n=t.substr(0,100);n&&n.length>2&&window.ga!==undefined&&window.ga("send","pageview","/search?q="+n)}}}])}(angular),function(){"use strict";var n=function(){var n=new DOMParser,t=function(n){var i=document.getElementsByTagName("link")[0],t=n.documentElement.innerHTML||n.documentElement.textContent;(t.indexOf("&lt;")>-1||t.indexOf("&gt;")>-1)&&(t=t.replace(/&lt;/gi,"<").replace(/&gt;/g,">"));i.insertAdjacentHTML("beforebegin",t)},i=function(n){for(var r,t,u=document.getElementsByTagName("head")[0],e=[].slice.call(n.documentElement.childNodes),i=0,f=e;i<f.length;i++)(r=f[i],(r.tagName||"").toLowerCase()==="script")&&(t=document.createElement("script"),t.type="text/javascript",t.defer=!0,t.async=!0,t.setAttribute("src",r.getAttribute("src")),u.insertBefore(t,u.firstChild))};angular.element("noscript[defer]").each(function(r,u){var o=(u.innerHTML||"").trim().replace("\n",""),s=(u.innerHTML||"").trim().replace("\n",""),f,e;if(o!==""){f=n.parseFromString(s,"text/html");e=(u.getAttribute("defer")||"").toLowerCase();switch(e){case"scripts":i(f);break;case"links":default:t(f)}u.parentNode.removeChild(u)}})},t=requestAnimationFrame||window.mozRequestAnimationFrame||webkitRequestAnimationFrame||window.msRequestAnimationFrame;t?t(n):window.addEventListener("load",n)}(),function(n){"use strict";n.module("JabraApplication",["gn.audio.was.this.useful","JabraApplication.ProductApi","JabraApplication.Translation","JabraApplication.ContentElements","JabraApplication.CountryDetection","JabraApplication.ProductCatalogue","JabraApplication.ProductFilterModule","JabraApplication.Navigation","JabraApplication.FeatureToggle"]).config(["$sceProvider",function(n){n.enabled(!1)},]).config(["$locationProvider",function(n){n.hashPrefix("")},]).config(["productApiConfig","quickSearchProvider",function(n,t){t.url(n.productCatalogueUrl+"v1/search").language(n.language)},]).config(["productApiConfig","productCatalogueProvider",function(n,t){t.baseUrl(n.productCatalogueUrl).language(n.language)},]).config(["productApiConfig","pricingProvider",function(n,t){t.baseUrl(n.pricingUrl).language(n.language)},]).config(["productApiConfig","siteSettingsProvider",function(n,t){t.config({baseUrl:n.settingsUrl+"/api/v1/settings",marketLocale:n.language,siteContext:n.siteContext})},])}(angular)