(function(){define("pageBehaviors",["require","exports","htmlExtensions"],function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(){i.removeClass(document.documentElement,"no-js");i.addClass(document.documentElement,"js");i.hasClass(document.body,"c_native")&&window.navigator&&typeof window.navigator.gamepadInputEmulation=="string"&&(window.navigator.gamepadInputEmulation="keyboard")}return n.typeName="PageBehaviors",n}();t.PageBehaviors=r});require(["pageBehaviors","componentFactory"],function(n,t){t.ComponentFactory&&t.ComponentFactory.create&&t.ComponentFactory.create([{component:n.PageBehaviors}])});define("componentFactory",["require","exports","htmlExtensions","utility","stringExtensions"],function(n,t,i,r,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function n(){}return n.create=function(t){for(var i,r=0,u=t;r<u.length;r++){if(i=u[r],!i.c&&!i.component)throw"factoryInput should has either component or c to tell the factory what component to create.Eg.ComponentFactory.create([{ c: Carousel] or ComponentFactory.create([component: Carousel]))";n.createComponent(i.component||i.c,i)}},n.createComponent=function(t,r){if(t){var o=r&&r.eventToBind?r.eventToBind:"",f=r&&r.selector?r.selector:t.selector,s=r&&r.context?r.context:null,u=[],e=function(n,f,e){var a,c,l,o,h;for(a=r.elements?r.elements:f?i.selectElementsT(f,s):[document.body],c=0,l=a;c<l.length;c++)o=l[c],o.mwfInstances||(o.mwfInstances={}),o.mwfInstances[n]?u.push(o.mwfInstances[n]):(h=new t(o,e),(!h.isObserving||h.isObserving())&&(o.mwfInstances[n]=h,u.push(h)))};switch(o){case"DOMContentLoaded":if(n.onDomReadyHappened)n.callBindFunction(t,f,e,r,u);else{n.domReadyFunctions.push(function(){return n.callBindFunction(t,f,e,r,u)});break}break;case"load":default:if(n.onDeferredHappened)n.callBindFunction(t,f,e,r,u);else{n.deferredFunctions.push(function(){return n.callBindFunction(t,f,e,r,u)});break}}}},n.callBindFunction=function(t,i,u,f,e){f===void 0&&(f=null);var o=n.getTypeName(t),s=o||i||"",h=f&&f.params?f.params:{};h.mwfClass=o;r.createPerfMarker(s+"_Begin");u(o,i,h);r.createPerfMarker(s+"_End");f&&f.callback&&f.callback(e)},n.getTypeName=function(t){if(t.typeName)return t.typeName;if(t.name)return t.name;var i=n.typeNameRegEx.exec(t.toString());if(i&&i.length>1)return i[1]},n.enumerateComponents=function(n,t){var i,r,u;if(n&&t){i=n.mwfInstances;for(r in i)if(i.hasOwnProperty(r)&&(u=i[r],u&&!t(r,u)))break}},n.detach=function(n,t){var i=n,r;i&&i.mwfInstances&&!u.isNullOrWhiteSpace(t)&&i.mwfInstances.hasOwnProperty(t)&&(r=i.mwfInstances[t],i.mwfInstances[t]=null,r&&r.detach&&r.detach())},n.typeNameRegEx=/function\s+(\S+)\s*\(/,n.onLoadTimeoutMs=6e3,n.onDeferredHappened=!1,n.deferredFunctions=[],n.onDomReadyHappened=!1,n.domReadyFunctions=[],n}();t.ComponentFactory=f,function(){i.onDeferred(function(){var n,t,r,u;if(f.onDeferredHappened=!0,n=f.deferredFunctions,!n||n.length>0)for(t=0,r=n;t<r.length;t++)u=r[t],typeof u=="function"&&i.SafeBrowserApis.requestAnimationFrame.call(window,u);f.deferredFunctions=null},f.onLoadTimeoutMs);i.documentReady(function(){var n,t,r,u;if(f.onDomReadyHappened=!0,n=f.domReadyFunctions,!n||n.length>0)for(t=0,r=n;t<r.length;t++)u=r[t],typeof u=="function"&&i.SafeBrowserApis.requestAnimationFrame.call(window,u);f.domReadyFunctions=null},f.onLoadTimeoutMs)}()});define("htmlExtensions",["require","exports","stringExtensions"],function(n,t,i){"use strict";function e(n,t,i,f){var e,o,s;for(f===void 0&&(f=!1),e=0,o=u(n);e<o.length;e++)s=o[e],y(s,i,f,r[t])}function g(n,t,r,f){var e,s,l,o,h,c;if(f===void 0&&(f=!1),!i.isNullOrWhiteSpace(t))for(e=0,s=u(n);e<s.length;e++)for(l=s[e],o=0,h=t.split(/\s+/);o<h.length;o++)c=h[o],i.isNullOrWhiteSpace(c)||y(l,r,f,c)}function nt(n,t,r,f){var e,s,l,o,h,c;for(f===void 0&&(f=!1),e=0,s=u(n);e<s.length;e++)for(l=s[e],o=0,h=u(t);o<h.length;o++)c=h[o],i.isNullOrWhiteSpace(c)||d(l,r,f,c)}function tt(n){n=v(n);n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}function it(n,t,i,r){r===void 0&&(r=150);var f,u=0,o=function(n){var t=Date.now();f&&(clearTimeout(f),f=undefined);!!u&&t<u+r?f=setTimeout(function(){u=Date.now();i(n)},r-(t-u)):(u=t,i(n))};return e(n,t,o),o}function rt(n,t,r,f,e){function p(n){var i,t=0;return function(r){var u=Date.now();clearTimeout(i);!!t&&u<t+e?i=setTimeout(function(){t=u;n(r)},e-(u-t)):(t=u,n(r))}}var o,h,a,s,c,l,v;if(f===void 0&&(f=!1),e===void 0&&(e=150),!i.isNullOrWhiteSpace(t))for(o=0,h=u(n);o<h.length;o++)for(a=h[o],s=0,c=t.split(/\s+/);s<c.length;s++)l=c[s],i.isNullOrWhiteSpace(l)||(v=p(r),y(a,v,f,l))}function ut(n,t,i,r){r===void 0&&(r=150);var u,f=function(n){window.clearTimeout(u);u=setTimeout(function(){i(n)},r)};return e(n,t,f),f}function ft(n,t){if(t===void 0&&(t=5e3),document.readyState==="complete"){n.call(null);return}if(!document.attachEvent&&document.readyState==="interactive"){n.call(null);return}var o,i,u,f=function(){clearTimeout(o);i&&c(document,r.DOMContentLoaded,i);u&&c(document,r.onreadystatechange,u);l.requestAnimationFrame.call(window,n)};if(o=setTimeout(function(){f("timedout")},t),document.addEventListener){i=function(){f("domcontentloaded")};e(document,r.DOMContentLoaded,i,!1);return}document.attachEvent&&(u=function(){document.readyState==="complete"&&f("readystatecomplete")},e(document,r.onreadystatechange,u,!1))}function et(n,t){t===void 0&&(t=5e3);var i,u=setTimeout(function(){clearTimeout(u);c(window,r.load,i);n.call(null)},t);i=function(){clearTimeout(u);l.requestAnimationFrame.call(window,n)};document.readyState==="complete"?(clearTimeout(u),n.call(null)):e(window,r.load,i)}function p(n,t){!n||i.isNullOrWhiteSpace(t)||b(n,t)||(n.classList?n.classList.add(t):n.className=i.trim(n.className+" "+t))}function w(n,t){var o,e,s,r,f;if(!!n&&!i.isNullOrWhiteSpace(t))for(o=" "+i.trim(t)+" ",e=0,s=u(n);e<s.length;e++)if(r=s[e],r.classList)r.classList.remove(t);else if(!i.isNullOrWhiteSpace(r.className)){for(f=" "+r.className+" ";f.indexOf(o)>-1;)f=f.replace(o," ");r.className=i.trim(f)}}function ot(n,t){var i,r,u;if(t)for(i=0,r=t;i<r.length;i++)u=r[i],w(n,u)}function st(n,t){var i,r,u;if(t)for(i=0,r=t;i<r.length;i++)u=r[i],p(n,u)}function ht(n,t){var u,f,r;if(n&&t)for(u=0,f=t;u<f.length;u++)r=f[u],i.isNullOrWhiteSpace(r.name)||i.isNullOrWhiteSpace(r.value)||n.setAttribute(r.name,r.value)}function b(n,t){return!n||i.isNullOrWhiteSpace(t)?!1:n.classList?n.classList.contains(t):(" "+n.className+" ").indexOf(" "+i.trim(t)+" ")>-1}function ct(n){return n?n.parentElement.removeChild(n):n}function lt(n,t){return h(n,t)}function at(n,t){var i=h(n,t);return!i||!i.length?null:i[0]}function h(n,t){var r,u;if(i.isNullOrWhiteSpace(n)||n==="#")return[];if(r=t||document,/^[\#.]?[\w-]+$/.test(n)){switch(n[0]){case".":return r.getElementsByClassName?o(r.getElementsByClassName(n.slice(1))):o(r.querySelectorAll(n));case"#":return u=r.querySelector(n),u?[u]:[]}return o(r.getElementsByTagName(n))}return o(r.querySelectorAll(n))}function vt(n,t){var i=h(n,t);return!i||!i.length?null:i[0]}function yt(n,t){var o=t||document,u,f,i,r,e;for(u=n.split(","),i=0,r=u;i<r.length;i++)e=r[i],f+=this.selectElements(e,o);return f}function o(n){var i,t;if(!n)return[];for(i=[],t=0;t<n.length;t++)i.push(n[t]);return i}function pt(n){for(n===void 0&&(n=document.documentElement);n!==null;){var t=n.getAttribute("dir");if(!t)n=n.parentElement;else return t==="rtl"?s.right:s.left}return s.left}function a(n){var i,t,r;if(n){i=n.getBoundingClientRect();t={};for(r in i)t[r]=i[r];return typeof t.width=="undefined"&&(t.width=n.offsetWidth),typeof t.height=="undefined"&&(t.height=n.offsetHeight),t}}function wt(n){if(n)return{width:parseFloat(a(n).width)+parseFloat(f(n,"margin-left"))+parseFloat(f(n,"margin-right")),height:parseFloat(a(n).height)+parseFloat(f(n,"margin-top"))+parseFloat(f(n,"margin-bottom"))}}function f(n,t,r){if(!n)return null;if(!r&&r!=="")return r=n.style[t],i.isNullOrWhiteSpace(r)&&(r=getComputedStyle(n),r=r[t]),r;n.style[t]=r}function c(n,t,i,f){var e,o,s;if(n&&t&&i)for(e=0,o=u(n);e<o.length;e++)s=o[e],d(s,i,f,r[t])}function k(n){return Array.isArray?Array.isArray(n):{}.toString.call(n)==="[object Array]"}function u(n){return k(n)?n:[n]}function bt(n,t){return!!n&&n!==t&&n.contains(t)}function kt(n,t){return!!n&&n.contains(t)}function dt(n){return!n?"":n.textContent||n.innerText||""}function gt(n,t){!n||t===null||(n.textContent?n.textContent=t:n.innerHTML=t)}function ni(n){n&&(n.innerHTML="")}function ti(n){return n=v(n),n.target||n.srcElement}function v(n){return n||window.event}function y(n,t,i,r){i===void 0&&(i=!1);!n||(window.addEventListener?n.addEventListener(r,t,i):n.attachEvent("on"+r,t))}function d(n,t,i,r){i===void 0&&(i=!1);!n||(window.removeEventListener?n.removeEventListener(r,t,i):n.detachEvent("on"+r,t))}function ii(n,t,i){if(i===void 0&&(i={}),!n||!t)return null;var f=typeof t=="string"?t:r[t],u=null;if(i.bubbles=typeof i.bubbles=="undefined"?!0:i.bubbles,i.cancelable=typeof i.cancelable=="undefined"?!0:i.cancelable,window.CustomEvent&&typeof CustomEvent=="function")u=new CustomEvent(f,i),i.changedTouches&&i.changedTouches.length&&(u.changedTouches=i.changedTouches);else if(document.createEvent)u=document.createEvent("CustomEvent"),u.initCustomEvent(f,i.bubbles,i.cancelable,i.detail),i.changedTouches&&i.changedTouches.length&&(u.changedTouches=i.changedTouches);else{u=document.createEventObject();try{n.fireEvent("on"+f,u)}catch(e){return undefined}return u}return n.dispatchEvent(u),u}function ri(n){n.stopPropagation?n.stopPropagation():n.returnValue=!1}function ui(n){return n===void 0&&(n=window),n.scrollY||n.pageYOffset||(n.document.compatMode==="CSS1Compat"?n.document.documentElement.scrollTop:n.document.body.scrollTop)}function fi(n){if(!n)return window.document.documentElement;for(var i=n.ownerDocument.documentElement,t=n.offsetParent;t&&f(t,"position")=="static";)t=t.offsetParent;return t||i}function ei(n,t){if(n&&t){var i=t.clientHeight,r=t.scrollHeight;r>i&&(t.scrollTop=Math.min(n.offsetTop-t.firstElementChild.offsetTop,r-i))}}function oi(n){return typeof n.complete!="undefined"&&typeof n.naturalHeight!="undefined"?n&&n.complete&&n.naturalHeight>0:!0}function si(n){return n&&typeof n.complete!="undefined"&&typeof n.naturalHeight!="undefined"?n&&n.complete&&n.naturalWidth==0&&n.naturalHeight==0:!1}function hi(n){var i=n.touches&&n.touches.length?n.touches:[n],t=n.changedTouches&&n.changedTouches[0]||i[0];return{x:t.clientX,y:t.clientY}}function ci(n,t){for(var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;n;){if(i.call(n,t))break;n=n.parentElement}return n}function li(n,t){t===void 0&&(t=!0);!!n&&(window.PointerEvent||window.navigator.pointerEnabled)&&f(n,"touchAction",t?"pan-y":"pan-x")}var l,s,r;Object.defineProperty(t,"__esModule",{value:!0}),function(n){n.requestAnimationFrame=window.requestAnimationFrame||function(n){typeof n=="function"&&window.setTimeout(n,16.7)}}(l=t.SafeBrowserApis||(t.SafeBrowserApis={})),function(n){n[n.right=0]="right";n[n.left=1]="left"}(s=t.Direction||(t.Direction={})),function(n){n[n.animationend=0]="animationend";n[n.blur=1]="blur";n[n.change=2]="change";n[n.click=3]="click";n[n.DOMContentLoaded=4]="DOMContentLoaded";n[n.DOMNodeInserted=5]="DOMNodeInserted";n[n.DOMNodeRemoved=6]="DOMNodeRemoved";n[n.ended=7]="ended";n[n.error=8]="error";n[n.focus=9]="focus";n[n.focusin=10]="focusin";n[n.focusout=11]="focusout";n[n.input=12]="input";n[n.load=13]="load";n[n.keydown=14]="keydown";n[n.keypress=15]="keypress";n[n.keyup=16]="keyup";n[n.loadedmetadata=17]="loadedmetadata";n[n.mousedown=18]="mousedown";n[n.mousemove=19]="mousemove";n[n.mouseout=20]="mouseout";n[n.mouseover=21]="mouseover";n[n.mouseup=22]="mouseup";n[n.onreadystatechange=23]="onreadystatechange";n[n.resize=24]="resize";n[n.scroll=25]="scroll";n[n.submit=26]="submit";n[n.timeupdate=27]="timeupdate";n[n.touchcancel=28]="touchcancel";n[n.touchend=29]="touchend";n[n.touchmove=30]="touchmove";n[n.touchstart=31]="touchstart";n[n.wheel=32]="wheel"}(r=t.eventTypes||(t.eventTypes={}));t.addEvent=e;t.addEvents=g;t.removeEvents=nt;t.preventDefault=tt;t.addThrottledEvent=it;t.addThrottledEvents=rt;t.addDebouncedEvent=ut;t.documentReady=ft;t.onDeferred=et;t.addClass=p;t.removeClass=w;t.removeClasses=ot;t.addClasses=st;t.addAttribute=ht;t.hasClass=b;t.removeElement=ct;t.selectElements=lt;t.selectFirstElement=at;t.selectElementsT=h;t.selectFirstElementT=vt;t.selectElementsFromSelectors=yt;t.nodeListToArray=o;t.getDirection=pt;t.getClientRect=a;t.getClientRectWithMargin=wt;t.css=f;t.removeEvent=c;t.isArray=k;t.toArray=u;t.isDescendant=bt;t.isDescendantOrSelf=kt;t.getText=dt;t.setText=gt;t.removeInnerHtml=ni;t.getEventTargetOrSrcElement=ti;t.getEvent=v;t.customEvent=ii;t.stopPropagation=ri;t.getScrollY=ui;t.getOffsetParent=fi;t.scrollElementIntoView=ei;t.isImageLoadedSuccessfully=oi;t.isImageLoadFailed=si;t.getCoordinates=hi;t.getParent=ci;t.preventDefaultSwipeAction=li});define("stringExtensions",["require","exports"],function(n,t){"use strict";function r(n){return!n||typeof n!="string"||!i(n)}function i(n){return!n||typeof n!="string"?n:n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function u(n,t,i){return(i===void 0&&(i=!0),!n||!t)?!1:(i&&(n=n.toLocaleLowerCase(),t=t.toLocaleLowerCase()),n.startsWith)?n.startsWith(t):n.indexOf(t)===0}function f(n,t,i){return(i===void 0&&(i=!0),!n||!t)?!1:(i&&(n=n.toLocaleLowerCase(),t=t.toLocaleLowerCase()),n.endsWith)?n.endsWith(t):n.lastIndexOf(t)===n.length-t.length}function e(n,t,i){if(i===void 0&&(i=!0),!n||!t)return 0;var r=0;for(i&&(n=n.toLocaleLowerCase(),t=t.toLocaleLowerCase());n.charCodeAt(r)===t.charCodeAt(r);)r++;return r}function o(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return n.replace(/{(\d+)}/g,function(n,t){if(t>=i.length)return n;var r=i[t];return typeof r!="number"&&!r?"":typeof r=="string"?r:r.toString()})}Object.defineProperty(t,"__esModule",{value:!0});t.isNullOrWhiteSpace=r;t.trim=i;t.startsWith=u;t.endsWith=f;t.getMatchLength=e;t.format=o});define("utility",["require","exports","stringExtensions"],function(n,t,i){"use strict";function r(n){return!isNaN(n)&&typeof n=="number"}function e(){return window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth}function c(){return window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight}function l(n){if(n!=null)return{width:n.clientWidth,height:n.clientHeight}}function a(n){var t;if((n=n||window.event,!n)||(t=n.key||n.keyIdentifier,!t))return t;switch(t){case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Up":return"ArrowUp";case"Down":return"ArrowDown";case"Esc":return"Escape";default:return t}}function v(n){return n=n||window.event,n==null?null:n.which||n.keyCode||n.charCode}function y(n,t,i,r,u){var o="",f,e;r&&(f=new Date,f.setTime(f.getTime()+r*864e5),o="; expires="+f.toUTCString());e="";u&&(e=";domain="+u);window.document.cookie=n+"="+encodeURIComponent(t)+o+("; path="+i+";")+e}function p(n){var t,i;if(!!n)for(t=0,i=document.cookie.split("; ");t<i.length;t++){var r=i[t],f=r.indexOf("="),u=o(r.substring(0,f));if(u===n)return o(r.substring(u.length+1))}return null}function o(n){return n=decodeURIComponent(n.replace("/+/g"," ")),n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),n}function w(n){var u;if(!!n&&n.length===6){var t=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),r=parseInt(n.substring(4,6),16);if(!isNaN(t)&&!isNaN(i)&&!isNaN(r))return u=(t*299+i*587+r*114)/255e3,u>=.5?2:1}return null}function b(n,t,i){return!i||!r(n)||!r(t)||!r(i.left)||!r(i.right)||!r(i.top)||!r(i.bottom)?!1:n>=i.left&&n<=i.right&&t>=i.top&&t<=i.bottom}function k(n){console&&console.warn?console.warn(n):console&&console.error&&console.error(n)}function d(n,t){if(t||!(s("item").toLowerCase().indexOf("perf_marker_global:true")<0)){
/*!/#IFDEF perf_marker_global || log_define_timing */
if(!i.isNullOrWhiteSpace(n)&&window.performance&&window.performance.mark){var r=n.split(" ").join("_");window.performance.mark(r);window.console&&window.console.timeStamp&&window.console.timeStamp(r);
/*!/#ENDIF*/
}}}function g(n){if(i.isNullOrWhiteSpace(n)||!window.performance||!window.performance.mark)return 0;var r=n.split(" ").join("_"),t=window.performance.getEntriesByName(r);return t&&t.length?Math.round(t[t.length-1].startTime):0}function nt(n,t){var f;if(!r(n))return"00:00";f=n<0;f&&(n*=-1);var u=Math.floor(n/3600),e=n%3600,o=Math.floor(e/60),i="";return i=t?u>0?u+":":"00:":u>0?u+":":"",n=Math.floor(e%60),i+=(o<10?"0":"")+o,i+=":"+(n===0?"00":(n<10?"0":"")+n),f?"-"+i:i}function tt(n){if(!JSON||!JSON.parse)throw new Error("JSON.parse unsupported.");if(!n)throw new Error("Invalid json.");return JSON.parse(n)}function u(){for(var e,t,o,n,f,i,r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];if(!r||!r.length)return null;if(e=typeof r[0]=="boolean"&&r[0],r.length<2)return e?null:r[0];if(e&&r.length<3)return r[1];for(t=e?r[1]:r[0],o=e?2:1;o<r.length;o++)for(n in r[o])if(r[o].hasOwnProperty(n)){if(f=r[o][n],e){var s=Array.isArray?Array.isArray(f):{}.toString.call(f)==="[object Array]",h=!!t[n]&&(Array.isArray?Array.isArray(t[n]):{}.toString.call(t[n])==="[object Array]"),l=!s&&typeof f=="object",a=!h&&!!t[n]&&typeof t[n]=="object";if(s&&h){for(i=0;i<f.length;i++)s=Array.isArray?Array.isArray(f[i]):{}.toString.call(f[i])==="[object Array]",h=!!t[n][i]&&(Array.isArray?Array.isArray(t[n][i]):{}.toString.call(t[n][i])==="[object Array]"),l=!s&&typeof f[i]=="object",a=!h&&!!t[n][i]&&typeof t[n][i]=="object",t[n][i]=s?u(!0,h?t[n][i]:[],f[i]):l?u(!0,a?t[n][i]:{},f[i]):f[i];continue}else if(s){t[n]=u(!0,[],f);continue}else if(l){t[n]=u(!0,a?t[n]:{},f);continue}}t[n]=f}return t}function it(n,t,i,r,u){var f=!i||i<0?-1:Number(new Date)+i;t=t||100,function e(){var i=n();if(i&&r)r();else{if(i)return;if(f===-1||Number(new Date)<f)setTimeout(e,t);else if(u)u();else return}}()}function s(n,t){return t===void 0&&(t=!0),h(location.search,n,t)}function rt(n,t,i){return i===void 0&&(i=!0),h(n,t,i)}function h(n,t,i){if(i===void 0&&(i=!0),!t||!n)return"";var r="[\\?&]"+t.replace(/[\[\]]/g,"\\$&")+"=([^&#]*)",f=i?new RegExp(r,"i"):new RegExp(r),u=f.exec(n);return u===null?"":decodeURIComponent(u[1].replace(/\+/g," "))}function ut(n,t){var i,r;if(!t)return n;if(n.indexOf("//")===-1)throw'To avoid unexpected results in URL parsing, url must begin with "http://", "https://", or "//"';return i=document.createElement("a"),i.href=n,i.search=(i.search?i.search+"&":"?")+t,r=i.href,i=null,r}function f(n,t,i){try{if(!t||i!==undefined&&!i)return null;switch(n){case 1:if(!window.localStorage)return null;if(i===undefined)return localStorage.getItem(t);localStorage.setItem(t,i);break;case 0:if(!window.sessionStorage)return null;if(i===undefined)return sessionStorage.getItem(t);sessionStorage.setItem(t,i)}}catch(r){switch(n){case 1:console.log("Error while fetching or saving local storage. It could be due to cookie is blocked.");break;case 0:console.log("Error while fetching or saving session storage. It could be due to cookie is blocked.")}}}function ft(n,t){f(0,n,t)}function et(n){return f(0,n)}function ot(n,t){f(1,n,t)}function st(n){return f(1,n)}Object.defineProperty(t,"__esModule",{value:!0});t.isNumber=r;t.getWindowWidth=e;t.getWindowHeight=c;t.getDimensions=l;t.getVirtualKey=a;t.getKeyCode=v;t.setCookie=y;t.getCookie=p;t.detectContrast=w;t.pointInRect=b;t.apiDeprecated=k;t.createPerfMarker=d;t.getPerfMarkerValue=g;t.toElapsedTimeString=nt;t.parseJson=tt;t.extend=u;t.poll=it;t.getQSPValue=s;t.getQSPFromUrl=rt;t.addQSP=ut;t.saveToSessionStorage=ft;t.getValueFromSessionStorage=et;t.saveToLocalStorage=ot;t.getValueFromLocalStorage=st;var ht;(function(n){function t(){var t;if(window.matchMedia){for(t=0;t<n.allWidths.length;++t)if(!window.matchMedia("(min-width:"+n.allWidths[t]+"px)").matches)return t}else for(t=0;t<n.allWidths.length;++t)if(!(e()>=n.allWidths[t]))return t;return n.allWidths.length}n.allWidths=[320,540,768,1084,1400,1779];n.vpMin=n.allWidths[0];n.vpMax=2048;n.getViewport=t})(ht=t.Viewports||(t.Viewports={}))});define("defaultFocus",["jqReady!","domReady!"],function(){function o(n){return parseInt(n.getAttribute("tabindex"))>=0?!0:e.indexOf(n.tagName)!==-1?!0:!1}function u(n,t){for(var i,r=0;r<n.children.length;++r)i=n.children[r],o(i)&&(t.top||(t.top=i),t.bottom=i),u(i,t)}function f(n){var f={top:null,bottom:null},t,i,r;u(n,f);t=document.createElement("div");i=document.createElement("div");t.setAttribute("tabindex",0);i.setAttribute("tabindex",0);t.setAttribute("data-tv-prevent-focus",!0);i.setAttribute("data-tv-prevent-focus",!0);t.addEventListener("focus",function(){f.bottom.focus()});i.addEventListener("focus",function(){f.top.focus()});n.insertAdjacentElement("afterbegin",t);n.insertAdjacentElement("beforeend",i);r=10;t.style="width:"+document.documentElement.clientWidth+"px;height:"+r+"px;opacity:0;position:fixed;left:0;top:100px;z-index:9999";i.style="width:"+document.documentElement.clientWidth+"px;height:"+r+"px;opacity:0;position:fixed;left:0;top:"+(document.documentElement.clientHeight-r)+"px;z-index:9999"}function r(n){var u,r,f,i;if(!n)return!1;u=n.querySelectorAll("["+t+"]:not([disabled]):not([hidden])");r=[];for(i in u)u.hasOwnProperty(i)&&r.push(u[i]);for(r=r.sort(function(n,i){var u=parseInt(n.getAttribute(t)),r;return u=isNaN(u)?0:u,r=parseInt(i.getAttribute(t)),r=isNaN(r)?0:r,u-r}),f=!1,i=0;i<r.length;++i)if(r[i].focus(),document.activeElement===r[i]){f=!0;break}return f}var e=["A","BUTTON","IFRAME","INPUT","SELECT","TEXTAREA","X-MS-WEBVIEW"],t="data-focus-rank",n,i=[],s=function(t,u,e,o){if(n&&(n.disconnect(),n=null),t=t||document.body,t===document.body||t===document.documentElement)r(t);else{var s=function(t){if(r(t)){n.disconnect();n=null;u&&f(t);window.WinStoreClient&&window.WinStoreClient.navigateForwardInternally(e,t);return}for(var i=document.activeElement;i&&i.nodeType===Node.ELEMENT_NODE;){if(i===t){n.disconnect();n=null;u&&f(t);window.WinStoreClient&&window.WinStoreClient.navigateForwardInternally(e,t);return}i=i.parentNode}},h=function(n){for(var i,u,r=0;r<n.length;++r)if(i=n[r],i.type==="childList")for(u=0;u<i.addedNodes.length;++u)i.addedNodes[u].nodeType==1&&s(t);else i.type==="attributes"&&i.target.nodeType==1&&s(t)};n=new window.MutationObserver(h);n.observe(t,{childList:!0,attributes:!0,subtree:!0});i.push(o||document.activeElement);s(t)}},h=function(n){for(var t;i.length>0&&t!==document.activeElement;)t=i.pop(),t.focus(),window.WinStoreClient&&window.WinStoreClient.navigateBackwardInternally(n);return t===document.activeElement};return{focus:s,tryRestorePreviousFocus:h,trySetDefaultFocusInContainer:r}})})()