/*! Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. */ var WinJS_Init=function(n,t){var i=typeof n!="undefined"?n:typeof t!="undefined"?t:typeof global!="undefined"?global:{};(function(n){typeof define=="function"&&define.amd?define([],n):(i.msWriteProfilerMark&&msWriteProfilerMark("WinJS.4.4 4.4.0.winjs.2016.5.19 base.js,StartTM"),typeof exports=="object"&&typeof exports.nodeName!="string"?n():n(i.WinJS),i.msWriteProfilerMark&&msWriteProfilerMark("WinJS.4.4 4.4.0.winjs.2016.5.19 base.js,StopTM"))})(function(){var u,r;return function(){"use strict";function t(n,t){n=n||"";var i=n.split("/");return i.pop(),t.map(function(n){if(n[0]==="."){var r=n.split("/"),t=i.slice(0);return r.forEach(function(n){n===".."?t.pop():n!=="."&&t.push(n)}),t.join("/")}return n})}function f(r,f,e){return r.map(function(r){if(r==="exports")return e;if(r==="require")return function(n,i){u(t(f,n),i)};var o=n[r];if(!o)throw new Error("Undefined dependency: "+r);return o.resolved||(o.resolved=i(o.dependencies,o.factory,r,o.exports),typeof o.resolved=="undefined"&&(o.resolved=o.exports)),o.resolved})}function i(n,t,i,r){var u=f(n,i,r);return t&&t.apply?t.apply(null,u):t}var n={};r=function(i,r,u){Array.isArray(r)||(u=r,r=[]);var f={dependencies:t(i,r),factory:u};r.indexOf("exports")!==-1&&(f.exports={});n[i]=f};u=function(n,t){Array.isArray(n)||(n=[n]);i(n,t)}}(),r("amd",function(){}),r("WinJS/Core/_WinJS",{}),r("WinJS/Core/_Global",[],function(){"use strict";return typeof n!="undefined"?n:typeof t!="undefined"?t:typeof global!="undefined"?global:{}}),r("WinJS/Core/_BaseCoreUtils",["./_Global"],function(n){"use strict";function i(n){return n.supportedForProcessing=!0,n}var t=!!n.Windows;return{hasWinRT:t,markSupportedForProcessing:i,_setImmediate:n.setImmediate?n.setImmediate.bind(n):function(t){n.setTimeout(t,0)}}}),r("WinJS/Core/_WriteProfilerMark",["./_Global"],function(n){"use strict";return n.msWriteProfilerMark||function(){}}),r("WinJS/Core/_Base",["./_WinJS","./_Global","./_BaseCoreUtils","./_WriteProfilerMark"],function(n,t,i,r){"use strict";function u(n,t,i){for(var s=Object.keys(t),h=Array.isArray(n),u,e=0,c=s.length;e"),r}function s(n,i){return o(t,n,i)}function h(n){var f,t=i.uninitialized,u;return{setName:function(n){f=n},get:function(){switch(t){case i.initialized:return u;case i.uninitialized:t=i.working;try{r("WinJS.Namespace._lazy:"+f+",StartTM");u=n()}finally{r("WinJS.Namespace._lazy:"+f+",StopTM");t=i.uninitialized}return n=null,t=i.initialized,u;case i.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal";}},set:function(n){switch(t){case i.working:throw"Illegal: reentrancy on initialization";default:t=i.initialized;u=n}},enumerable:!0,configurable:!0}}function c(n,i,r){var o=[n],f=null;return i&&(f=e(t,i),o.push(f)),u(o,r,i||""),f}var f=n,i;f.Namespace||(f.Namespace=Object.create(Object.prototype));i={uninitialized:1,working:2,initialized:3};Object.defineProperties(f.Namespace,{defineWithParent:{value:o,writable:!0,enumerable:!0,configurable:!0},define:{value:s,writable:!0,enumerable:!0,configurable:!0},_lazy:{value:h,writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:c,writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(n,t,r){return n=n||function(){},i.markSupportedForProcessing(n),t&&u(n.prototype,t),r&&u(n,r),n}function r(n,r,f,e){if(n){r=r||function(){};var o=n.prototype;return r.prototype=Object.create(o),i.markSupportedForProcessing(r),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,configurable:!0,enumerable:!0}),f&&u(r.prototype,f),e&&u(r,e),r}return t(r,f,e)}function f(n){n=n||function(){};for(var t=1,i=arguments.length;t1&&(n=n.replace(/({{)|(}})|{(\d+)}|({)|(})/g,function(n,i,r,u,f,e){if(f||e)throw l(k.malformedFormatStringInput,f||e);return i&&"{"||r&&"}"||t[(u|0)+1]})),n}var e,v=!1,s="contextchanged",h,w=r.Class.mix(r.Class.define(null,{},{supportedForProcessing:!1}),u.eventMixin),o=new w,b=u._createEventProperty,k={get malformedFormatStringInput(){return"Malformed, did you mean to escape your '{0}'?"}},y,c;r.Namespace.define("WinJS.Resources",{_getWinJSString:a});r.Namespace._moduleDefine(n,"WinJS.Resources",{addEventListener:function(t,r,u){if(i.Windows.ApplicationModel.Resources.Core.ResourceManager&&!v&&t===s)try{var f=n._getResourceContext();f?f.qualifierValues.addEventListener("mapchanged",function(t){n.dispatchEvent(s,{qualifier:t.key,changed:t.target[t.key]})},!1):i.Windows.ApplicationModel.Resources.Core.ResourceManager.current.defaultContext.qualifierValues.addEventListener("mapchanged",function(t){n.dispatchEvent(s,{qualifier:t.key,changed:t.target[t.key]})},!1);v=!0}catch(e){}o.addEventListener(t,r,u)},removeEventListener:o.removeEventListener.bind(o),dispatchEvent:o.dispatchEvent.bind(o),_formatString:l,_getStringWinRT:function(t){var f,r,s,u,o;if(!e){f=i.Windows.ApplicationModel.Resources.Core.ResourceManager.current.mainResourceMap;try{e=f.getSubtree("Resources")}catch(h){}e||(e=f)}try{o=n._getResourceContext();u=o?e.getValue(t,o):e.getValue(t);u&&(r=u.valueAsString,r===undefined&&(r=u.toString()))}catch(h){}if(!r)return n._getStringJS(t);try{s=u.getQualifierValue("Language")}catch(h){return{value:r}}return{value:r,lang:s}},_getStringJS:function(n){var i=t.strings&&t.strings[n];return typeof i=="string"&&(i={value:i}),i||{value:n,empty:!0}},_getResourceContext:function(){if(t.document&&typeof h=="undefined"){var n=i.Windows.ApplicationModel.Resources.Core.ResourceContext;h=n.getForCurrentView?n.getForCurrentView():null}return h},oncontextchanged:b(s)});y=i.Windows.ApplicationModel.Resources.Core.ResourceManager?n._getStringWinRT:n._getStringJS;c=function(n){return y(n)};r.Namespace._moduleDefine(n,null,{_formatString:l,_getWinJSString:a});r.Namespace._moduleDefine(n,"WinJS.Resources",{getString:{get:function(){return c},set:function(n){c=n}}})}),r("WinJS/Core/_Trace",["./_Global"],function(n){"use strict";function t(n){return n}return{_traceAsyncOperationStarting:n.Debug&&n.Debug.msTraceAsyncOperationStarting&&n.Debug.msTraceAsyncOperationStarting.bind(n.Debug)||t,_traceAsyncOperationCompleted:n.Debug&&n.Debug.msTraceAsyncOperationCompleted&&n.Debug.msTraceAsyncOperationCompleted.bind(n.Debug)||t,_traceAsyncCallbackStarting:n.Debug&&n.Debug.msTraceAsyncCallbackStarting&&n.Debug.msTraceAsyncCallbackStarting.bind(n.Debug)||t,_traceAsyncCallbackCompleted:n.Debug&&n.Debug.msTraceAsyncCallbackCompleted&&n.Debug.msTraceAsyncCallbackCompleted.bind(n.Debug)||t}}),r("WinJS/Promise/_StateMachine",["../Core/_Global","../Core/_BaseCoreUtils","../Core/_Base","../Core/_ErrorFromName","../Core/_Events","../Core/_Trace"],function(n,t,i,r,u,f){"use strict";function e(){}function g(n,t){var i;i=t&&typeof t=="object"&&typeof t.then=="function"?p:dt;n._value=t;n._setState(i)}function nt(n,t,i,r,u,f){return{exception:n,error:t,promise:i,handler:f,id:r,parent:u}}function tt(n,t,i,r){var u=i._isException,f=i._errorId;return nt(u?t:null,u?null:t,n,f,i,r)}function gt(n,t,i){var r=i._isException,u=i._errorId;return vt(n,u,r),nt(r?t:null,r?null:t,n,u,i)}function ni(n,t){var i=++ht;return vt(n,i),nt(null,t,n,i)}function ti(n,t){var i=++ht;return vt(n,i,!0),nt(t,null,n,i)}function it(n,t,i,r){var u=f._traceAsyncOperationStarting("WinJS.Promise.done");at(n,{c:t,e:i,p:r,asyncOpID:u})}function rt(n,t,i,r){n._value=t;l(n,t,i,r);n._setState(lt)}function ii(t,i){var l=t._value,u=t._listeners,e,s;if(u)for(t._listeners=null,e=0,s=Array.isArray(u)?u.length:1;e=p.min;)t instanceof it&&(u(t,!1),r++),t=t._nextJob;for(r===0&&(n+=" None\n"),n+="Drain requests:\n",i=0,f=y.length;ia&&(a=n,ct=!0))}function pr(n,t){for(var r=y.length,i=0;ia;)kt=n,wr(),t=!0,n=rr();return t}function gt(n){return n>=p.aboveNormal+1?l.HIGH:n>=p.belowNormal?l.NORMAL:l.IDLE}function kr(n,t){return lt[n]>=lt[t]}function dr(n,t){return lt[n]>lt[t]}function er(n){switch(n){case l.HIGH:return!1;case l.NORMAL:return l.isTaskScheduledAtPriorityOrHigher(l.HIGH);case l.IDLE:return l.isTaskScheduledAtPriorityOrHigher(l.NORMAL)}}function gr(n,t){var i=w(t);i.priority>a&&(a=i.priority,ct=!0);i._insertJobAfter(n)}function ci(n,t){var i=w(t);i.priority>a&&(a=i.priority,ct=!0);i._nextMarker._insertJobBefore(n)}function li(n){return n=n|0,n=Math.max(n,cr),Math.min(n,tr)}function w(n){return n=li(n),bt[-1*(n-tr)]}function nu(n){var c,s,e,b;ni=!0;tt("timeslice","StartTM");var r,u=!0,t,i,o=!1,f=!1;ct=!1;try{for(var k=ai(),d=k+ir,h=function(){return(o=!1,ct)?!0:er(gt(a))?!0:!y.length?ai()>d?(o=!0,!0):!1:!1};a>=p.min&&!h()&&!f;){r=!1;t=w(a)._nextJob;do kt=t.priority,t instanceof it?(i!==t.priority&&(+i===i&&tt("priority","StopTM",w(i).name),tt("priority","StartTM",w(t.priority).name),i=t.priority),r=!0,u=!1,pt=t,v(pt,"job-running","StartTM",w(kt).name),t._execute(h),v(pt,"job-running","StopTM",w(kt).name),pt=null,u=!0):(c=gt(a),a=t.priority,r=fr(),s=gt(a),dr(c,s)&&(!dt||l.isTaskScheduledAtPriorityOrHigher(s))&&(f=!0)),t=t._nextJob;while(t&&!r&&!f&&!er(gt(a)));ct=!1}}finally{for(pt=null,u||(v(t,"job-error","info"),v(t,"job-running","StopTM",w(kt).name),t.cancel()),+i===i&&tt("priority","StopTM",w(i).name),e=!1;a>=p.min&&!e;){r=!1;t=w(a)._nextJob;do t instanceof it?e=!0:(a=t.priority,r=fr()),t=t._nextJob;while(t&&!r&&!e)}b=u?o?"timeslice exhausted":a=p.min&&pi();tt("yielding","info",b);tt("timeslice","StopTM")}}function pi(n){var t,i,r;(+n!==n&&(n=a),t=gt(n),ni)||ui&&(!dt||kr(ui,t))||(i=++vi,r=function(){yi")];var ui=null,ni,kt,pt=null,dt=!!(t.MSApp&&t.MSApp.execAtPriority),y=[],ct,ir=30,a=p.min;bt.reduce(function(n,t){return n&&(n._insertJobAfter(t),n._insertMarkerAfter(t)),t});var br=t.setImmediate?t.setImmediate.bind(t):function(n){t.setTimeout(n,16)},hi={execAsyncAtPriority:function(n,i){i===l.HIGH&&t.setTimeout(n,0);br(n)},execAtPriority:function(n){return n()},getCurrentPriority:function(){return hi.NORMAL},isTaskScheduledAtPriorityOrHigher:function(){return!1},HIGH:"high",NORMAL:"normal",IDLE:"idle"},l=dt?t.MSApp:hi;lt={};lt[l.IDLE]=1;lt[l.NORMAL]=2;lt[l.HIGH]=3;ai=t.performance&&t.performance.now&&t.performance.now.bind(t.performance)||Date.now.bind(Date);vi=0;yi=0;i.Namespace._moduleDefine(n,"WinJS.Utilities.Scheduler",{Priority:p,schedule:or,createOwnerToken:ru,execHigh:iu,requestDrain:tu,currentPriority:{get:uu},schedulePromiseHigh:ti(p.high),schedulePromiseAboveNormal:ti(p.aboveNormal),schedulePromiseNormal:ti(p.normal),schedulePromiseBelowNormal:ti(p.belowNormal),schedulePromiseIdle:ti(p.idle),retrieveState:ar,_JobNode:it,_JobInfo:bi,_OwnerToken:ki,_dumpList:lr,_isEmpty:{get:vr},_usingWwaScheduler:{get:function(){return dt},set:function(n){dt=n;l=dt?t.MSApp:hi}},_MSApp:{get:function(){return l},set:function(n){l=n}},_TIME_SLICE:ir})}),r("WinJS/Core/_BaseUtils",["exports","./_Global","./_Base","./_BaseCoreUtils","./_ErrorFromName","./_Resources","./_Trace","../Promise","../Scheduler"],function(n,t,i,r,u,f,e,o,s){"use strict";function g(n){return n}function p(n,t,i){return n.split(".").reduce(function(n,t){return n?i(n[t]):null},t)}function nt(n,i){return n?p(n,i||t,g):null}function w(n){return n.length>0&&n.indexOf("-moz")!==0&&n.charAt(0)==="-"&&(n=n.slice(1)),n.replace(/\-[a-z]/g,function(n){return n[1].toUpperCase()})}function b(n,t){return n===""?t:n+t.charAt(0).toUpperCase()+t.slice(1)}function a(n,t){return(n!==""?"-"+n.toLowerCase()+"-":"")+t}function tt(){var r,c,n,l,u,v,f,o,y;if(!t.document)return{};var i={},p=t.document.documentElement.style,s=["","webkit","ms","Moz"],h=["animation","transition","transform","animation-name","animation-duration","animation-delay","animation-timing-function","animation-iteration-count","animation-direction","animation-fill-mode","grid-column","grid-columns","grid-column-span","grid-row","grid-rows","grid-row-span","transform-origin","transition-property","transition-duration","transition-delay","transition-timing-function","scroll-snap-points-x","scroll-snap-points-y","scroll-chaining","scroll-limit","scroll-limit-x-max","scroll-limit-x-min","scroll-limit-y-max","scroll-limit-y-min","scroll-snap-type","scroll-snap-x","scroll-snap-y","touch-action","overflow-style","user-select"],e={};for(r=0,c=h.length;r=0;t--)n[t]||(n.splice(t,1),i--);return i}function d(n){var t=n.className||"";return typeof t=="string"?t:t.baseVal||""}function y(n,t){var i=n.className||"";return typeof i=="string"?n.className=t:n.className.baseVal=t,n}function rt(n,t){var h,r,o,s,i;if(n.classList){if(t.indexOf(" ")<0)n.classList.add(t);else for(r=t.split(" "),v(r),i=0,h=r.length;i=0){for(r=t.split(" "),v(r),i=0;i=0&&r.splice(o,1);r.length>0&&(u=r.join(" "))}else{for(s=!1,i=0;i0&&f[0].length>0?y(n,c+" "+u):y(n,u)),n}function ut(n,t){var e,f,r,o,s,u,h,i;if(n.classList){if(n.classList.length===0)return n;for(r=t.split(" "),v(r),i=0,e=r.length;i=0)r=t.split(" "),o=v(r);else{if(f.indexOf(t)<0)return n;r=[t];o=1}for(u=f.split(" "),h=v(u),i=h-1;i>=0;i--)r.indexOf(u[i])>=0&&(u.splice(i,1),s=!0);return s&&y(n,u.join(" ")),n}function fi(n,t){var r;if(n.classList)return n.classList.toggle(t),n;var u=d(n),i=u.trim().split(" "),f=i.length,e=!1;for(r=0;r0?n+" "+i:i},"")):f>0&&i[0].length>0?y(n,u+" "+t):y(n,u+t),n}function ei(n,t,i){n.getAttribute(t)!==""+i&&n.setAttribute(t,i)}function ft(n,t,i,r){var u=Math.max(t,Math.min(i,+n));return u===0?0:u||Math.max(t,Math.min(i,r))}function kt(n,t){if(!wt.test(t)&&bt.test(t)){var i=n.style.left;return n.style.left=t,t=n.style.pixelLeft,n.style.left=i,t}return Math.round(parseFloat(t))||0}function o(n,t){return kt(n,l(n,null)[t])}function p(n){return parseFloat(n)||0}function s(n,t){return p(l(n,null)[t])}function oi(n){var t=l(n);return{top:p(t.marginTop),right:p(t.marginRight),bottom:p(t.marginBottom),left:p(t.marginLeft)}}function dt(n,t,i,r,u){var f=t.toLowerCase();n._eventsMap||(n._eventsMap={});n._eventsMap[f]||(n._eventsMap[f]=[]);n._eventsMap[f].push({listener:i,useCapture:r,data:u})}function ot(n,t,i,r){var o=t.toLowerCase(),f=n._eventsMap&&n._eventsMap[o],u,e;if(f)for(u=f.length-1;u>=0;u--)if(e=f[u],e.listener===i&&!!r==!!e.useCapture)return f.splice(u,1),e;return null}function ci(n,t){var i=t.toLowerCase();return n._eventsMap&&n._eventsMap[i]&&n._eventsMap[i].slice(0)||[]}function g(n,t,i){for(var u,r,f;n;){for(u=ci(n,t),r=0,f=u.length;r
<\/div><\/div>";t.document.body.appendChild(n);i=n.firstChild;i.scrollLeft>0&&(at=!0);i.scrollLeft+=100;i.scrollLeft===0&&(ni=!0);t.document.body.removeChild(n);lt=!0}function vt(n){var i=l(n),t=n.scrollLeft;return i.direction==="rtl"&&(lt||ti(),at&&(t=n.scrollWidth-n.clientWidth-t),t=Math.abs(t)),{scrollLeft:t,scrollTop:n.scrollTop}}function yt(n,t,i){if(t!==undefined){var r=l(n);r.direction==="rtl"&&(lt||ti(),ni?t=-t:at&&(t=n.scrollWidth-n.clientWidth-t));n.scrollLeft=t}i!==undefined&&(n.scrollTop=i)}function ii(n){return vt(n)}function di(n,t){t=t||{};yt(n,t.scrollLeft,t.scrollTop)}function ri(n){return n.uniqueID||n._uniqueID||(n._uniqueID="element__"+ ++tr),n.uniqueID||n._uniqueID}function ir(n){n.id||(n.id=ri(n))}function rr(n){var i=t.document.documentElement,r=ii(i);return{left:n.clientX+(t.document.body.dir==="rtl"?-r.scrollLeft:r.scrollLeft),top:n.clientY+i.scrollTop}}function ur(n,t){for(var r,u=[],i=0,f=t.length;i=0,t==="tabindex"&&(t="tabIndex"),this._pendingChanges.push({type:"attributes",target:n.target,attributeName:t}),this._observerCount!==1||i?this._scheduled===!1&&(this._scheduled=!0,r._setImmediate(this._dispatchEvent.bind(this))):this._dispatchEvent())},_dispatchEvent:function(){try{this._callback(this._pendingChanges)}finally{this._pendingChanges=[];this._scheduled=!1}}},{_isShim:!0}),bi=t.MutationObserver||wi,ct=null,ki=i.Class.define(function(){t.addEventListener("resize",this._handleResize.bind(this))},{subscribe:function(n,t){n.addEventListener(this._resizeEvent,t);rt(n,this._resizeClass)},unsubscribe:function(n,t){ut(n,this._resizeClass);n.removeEventListener(this._resizeEvent,t)},_handleResize:function(){for(var i,r=t.document.querySelectorAll("."+this._resizeClass),u=r.length,n=0;n=0,nr=!!(t.MSPointerEvent||t.TouchEvent),tr=0;pt=".win-selectionborder, .win-selectionbackground, .win-selectioncheckmark, .win-selectioncheckmarkbackground";k="_msDataKey";i.Namespace._moduleDefine(n,"WinJS.Utilities",{_dataKey:k,_supportsSnapPoints:{get:function(){return gi}},_supportsTouchDetection:{get:function(){return nr}},_uniqueID:ri,_ensureId:ir,_clamp:ft,_getCursorPos:rr,_getElementsByClasses:ur,_createGestureRecognizer:function(){if(t.MSGesture)return new t.MSGesture;var n=function(){};return{addEventListener:n,removeEventListener:n,addPointer:n,stop:n}},_MSGestureEvent:si,_MSManipulationEvent:hi,_elementsFromPoint:function(n,i){if(t.document.msElementsFromPoint)return t.document.msElementsFromPoint(n,i);var r=t.document.elementFromPoint(n,i);return r?[r]:null},_matchesSelector:function(n,t){var i=n.matches||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector;return i.call(n,t)},_selectionPartsSelector:pt,_isSelectionRendered:function(n){return n.querySelectorAll(pt).length>0},_addEventListener:function(n,t,i,u){var o=t&&t.toLowerCase(),f=h[o],e=r._browserEventEquivalents[t];f?f.register(n,t,i,u):e?n.addEventListener(e,i,u):n.addEventListener(t,i,u)},_removeEventListener:function(n,t,i,u){var o=t&&t.toLowerCase(),f=h[o],e=r._browserEventEquivalents[t];f?f.unregister(n,t,i,u):e?n.removeEventListener(e,i,u):n.removeEventListener(t,i,u)},_initEventImpl:function(n,i,r){r=r.toLowerCase();var u=tt[r];if(u)switch(n.toLowerCase()){case"pointer":t.PointerEvent||(arguments[2]=u.mspointer);break;default:arguments[2]=u[n.toLowerCase()]}i["init"+n+"Event"].apply(i,Array.prototype.slice.call(arguments,2))},_initMouseEvent:function(n){this._initEventImpl.apply(this,["Mouse",n].concat(Array.prototype.slice.call(arguments,1)))},_initPointerEvent:function(n){this._initEventImpl.apply(this,["Pointer",n].concat(Array.prototype.slice.call(arguments,1)))},_PointerEventProxy:nt,_bubbleEvent:g,_setPointerCapture:function(n,t){n.setPointerCapture&&n.setPointerCapture(t)},_releasePointerCapture:function(n,t){n.releasePointerCapture&&n.releasePointerCapture(t)},_MSPointerEvent:et,_getComputedStyle:l,_zoomToDuration:w,_zoomTo:function(n,t){this._supportsSnapPoints&&n.msZoomTo?n.msZoomTo(t):e.schedule(function(){var i=vt(n),o=typeof n._zoomToDestX=="number"?n._zoomToDestX:i.scrollLeft,s=typeof n._zoomToDestY=="number"?n._zoomToDestY:i.scrollTop,u=l(n),c=n.scrollWidth-parseInt(u.width,10)-parseInt(u.paddingLeft,10)-parseInt(u.paddingRight,10),a=n.scrollHeight-parseInt(u.height,10)-parseInt(u.paddingTop,10)-parseInt(u.paddingBottom,10),f,e;if(typeof t.contentX!="number"&&(t.contentX=o),typeof t.contentY!="number"&&(t.contentY=s),f=ft(t.contentX,0,c),e=ft(t.contentY,0,a),f!==o||e!==s){n._zoomToId=n._zoomToId||0;n._zoomToId++;n._zoomToDestX=f;n._zoomToDestY=e;var v=n._zoomToId,y=r._now(),p=(n._zoomToDestX-i.scrollLeft)/w,b=(n._zoomToDestY-i.scrollTop)/w,h=function(){var t=r._now()-y;n._zoomToId===v&&(t>w?(yt(n,n._zoomToDestX,n._zoomToDestY),n._zoomToDestX=null,n._zoomToDestY=null):(yt(n,i.scrollLeft+t*p,i.scrollTop+t*b),r._requestAnimationFrame(h)))};r._requestAnimationFrame(h)}},e.Priority.high,null,"WinJS.Utilities._zoomTo")},_setActive:function(n,i){var r=!0,u,f;try{t.HTMLElement&&t.HTMLElement.prototype.setActive?n.setActive():(i&&(u=i.scrollLeft,f=i.scrollTop),n.focus(),i&&(i.scrollLeft=u,i.scrollTop=f))}catch(e){r=!1}return r},_MutationObserver:bi,_resizeNotifier:{get:function(){return ct||(ct=new ki),ct}},_GenericListener:it,_globalListener:new it("Global",t,{registerThruWinJSCustomEvents:!0}),_documentElementListener:new it("DocumentElement",t.document.documentElement,{registerThruWinJSCustomEvents:!0}),_inputPaneListener:u.Windows.UI.ViewManagement.InputPane?new it("InputPane",u.Windows.UI.ViewManagement.InputPane.getForCurrentView()):{addEventListener:function(){},removeEventListener:function(){}},_addInsertedNotifier:function(i){var u=t.document.createElement("div");return u.style[r._browserStyleEquivalents["animation-name"].scriptName]="WinJS-node-inserted",u.style[r._browserStyleEquivalents["animation-duration"].scriptName]="0.01s",u.style.position="absolute",i.appendChild(u),n._addEventListener(u,"animationStart",function(n){if(n.animationName==="WinJS-node-inserted"){var n=t.document.createEvent("Event");n.initEvent("WinJSNodeInserted",!1,!0);i.dispatchEvent(n)}},!1),u},_inDom:function(i){return new f(function(r){if(t.document.body.contains(i))r();else{var u=function(){i.removeEventListener("WinJSNodeInserted",u,!1);r()};n._addInsertedNotifier(i);i.addEventListener("WinJSNodeInserted",u,!1)}})},_setFlexStyle:function(n,t){var i=n.style;typeof t.grow!="undefined"&&(i.msFlexPositive=t.grow,i.webkitFlexGrow=t.grow,i.flexGrow=t.grow);typeof t.shrink!="undefined"&&(i.msFlexNegative=t.shrink,i.webkitFlexShrink=t.shrink,i.flexShrink=t.shrink);typeof t.basis!="undefined"&&(i.msFlexPreferredSize=t.basis,i.webkitFlexBasis=t.basis,i.flexBasis=t.basis)},Key:{backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pause:19,capsLock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40,insert:45,deleteKey:46,num0:48,num1:49,num2:50,num3:51,num4:52,num5:53,num6:54,num7:55,num8:56,num9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindows:91,rightWindows:92,menu:93,numPad0:96,numPad1:97,numPad2:98,numPad3:99,numPad4:100,numPad5:101,numPad6:102,numPad7:103,numPad8:104,numPad9:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NavigationView:136,NavigationMenu:137,NavigationUp:138,NavigationDown:139,NavigationLeft:140,NavigationRight:141,NavigationAccept:142,NavigationCancel:143,numLock:144,scrollLock:145,browserBack:166,browserForward:167,semicolon:186,equal:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,GamepadA:195,GamepadB:196,GamepadX:197,GamepadY:198,GamepadRightShoulder:199,GamepadLeftShoulder:200,GamepadLeftTrigger:201,GamepadRightTrigger:202,GamepadDPadUp:203,GamepadDPadDown:204,GamepadDPadLeft:205,GamepadDPadRight:206,GamepadMenu:207,GamepadView:208,GamepadLeftThumbstick:209,GamepadRightThumbstick:210,GamepadLeftThumbstickUp:211,GamepadLeftThumbstickDown:212,GamepadLeftThumbstickRight:213,GamepadLeftThumbstickLeft:214,GamepadRightThumbstickUp:215,GamepadRightThumbstickDown:216,GamepadRightThumbstickRight:217,GamepadRightThumbstickLeft:218,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222,IME:229},data:function(n){return n[k]||(n[k]={}),n[k]},hasClass:function(n,t){var i;if(n.classList)return n.classList.contains(t);var u=d(n),r=u.trim().split(" "),f=r.length;for(i=0;i0)for(var t=n.childNodes.length-1;t>=0;t--)n.removeChild(n.childNodes.item(t));return n},_isDOMElement:function(n){return n&&typeof n=="object"&&typeof n.tagName=="string"},getContentWidth:function(n){var t=o(n,"borderLeftWidth")+o(n,"borderRightWidth"),i=o(n,"paddingLeft")+o(n,"paddingRight");return n.offsetWidth-t-i},_getPreciseContentWidth:function(n){var t=s(n,"borderLeftWidth")+s(n,"borderRightWidth"),i=s(n,"paddingLeft")+s(n,"paddingRight");return n.offsetWidth-t-i},getTotalWidth:function(n){var t=o(n,"marginLeft")+o(n,"marginRight");return n.offsetWidth+t},_getPreciseTotalWidth:function(n){var t=s(n,"marginLeft")+s(n,"marginRight");return n.offsetWidth+t},getContentHeight:function(n){var t=o(n,"borderTopWidth")+o(n,"borderBottomWidth"),i=o(n,"paddingTop")+o(n,"paddingBottom");return n.offsetHeight-t-i},_getPreciseContentHeight:function(n){var t=s(n,"borderTopWidth")+s(n,"borderBottomWidth"),i=s(n,"paddingTop")+s(n,"paddingBottom");return n.offsetHeight-t-i},getTotalHeight:function(n){var t=o(n,"marginTop")+o(n,"marginBottom");return n.offsetHeight+t},_getPreciseTotalHeight:function(n){var t=s(n,"marginTop")+s(n,"marginBottom");return n.offsetHeight+t},getPosition:function(t){return n._getPositionRelativeTo(t,null)},getTabIndex:function(n){var i,t;return n.disabled?-1:(i=n.getAttribute("tabindex"),i===null||i===undefined)?(t=n.tagName,/BUTTON|COMMAND|MENUITEM|OBJECT|SELECT|TEXTAREA/.test(t)||n.href&&(t==="A"||t==="AREA"||t==="LINK")||t==="INPUT"&&n.type!=="hidden"||t==="TH"&&n.sorted)?0:-1:parseInt(i,10)},convertToPixels:kt,_convertToPrecisePixels:p,_getPreciseMargins:oi,eventWithinElement:function(n,t){var i=t.relatedTarget;return i&&i!==n?n.contains(i):!1},_deprecated:function(n){t.console&&t.console.warn(n)},_syncRenderer:function(n,i){if(i=i||"div",typeof n=="function")return function(t,i){return i?(i.appendChild(n(t)),i):n(t)};var r;return typeof n.render=="function"?r=n:n.winControl&&typeof n.winControl.render=="function"&&(r=n.winControl),function(n,u){var e=u||t.document.createElement(i),f,o;return r.render(n,e),u?u:(f=e.firstElementChild,f&&e.dispose&&(o=f.dispose,f.dispose=function(){f.dispose=o;e.appendChild(f);e.dispose()}),f)}},_getPositionRelativeTo:function(n,i){for(var f=n,e=n.offsetParent,r=n.offsetTop,u=n.offsetLeft,o;(n=n.parentNode)&&n!==i&&n!==t.document.body&&n!==t.document.documentElement;)r-=n.scrollTop,o=l(n,null).direction,u-=o!=="rtl"?n.scrollLeft:-vt(n).scrollLeft,n===e&&(r+=n.offsetTop,u+=n.offsetLeft,e=n.offsetParent);return{left:u,top:r,width:f.offsetWidth,height:f.offsetHeight}},_getHighAndLowTabIndices:function(n){for(var u,t,e=n.getElementsByTagName("*"),i=0,r=0,o=!1,f=0,s=e.length;f0&&(tr&&(r=t)));return{highest:r,lowest:i}},_getLowestTabIndexInList:function(n){for(var t=0,i,r=0;r=0,!e)?!1:(r?n._setActive(i,u):i.focus(),f!==t.document.activeElement)?!0:!1},_setActiveFirstFocusableElement:function(n,t){return this._focusFirstFocusableElement(n,!0,t)},_focusFirstFocusableElement:function(n,t,i){for(var u=n.getElementsByTagName("*"),e=this._getLowestTabIndexInList(u),f=0,r;e;){for(r=0;r=0;r--)if(u[r].tabIndex===e){if(this._tryFocus(u[r],t,i))return!0}else f=0;r--)if(u[r].tabIndex===e){if(this._tryFocus(u[r],t,i))return!0}else f0;r--)if(this._tryFocus(u[r],t,i))return!0;return!1}})}}),r("WinJS/ControlProcessor/_OptionsLexer",["exports","../Core/_Base"],function(n,t){"use strict";t.Namespace._moduleDefine(n,"WinJS.UI",{_optionsLexer:t.Namespace._lazy(function(){function i(t){return{type:n.reservedWord,value:t,length:t.length,keyword:!0}}function u(n){switch(n.charCodeAt(0)){case 98:switch(n){case"break":return i(n)}break;case 99:switch(n){case"case":case"catch":case"class":case"const":case"continue":return i(n)}break;case 100:switch(n){case"debugger":case"default":case"delete":case"do":return i(n)}break;case 101:switch(n){case"else":case"enum":case"export":case"extends":return i(n)}break;case 102:switch(n){case"false":return t.falseLiteral;case"finally":case"for":case"function":return i(n)}break;case 105:switch(n){case"if":case"import":case"in":case"instanceof":return i(n)}break;case 110:switch(n){case"null":return t.nullLiteral;case"new":return i(n)}break;case 114:switch(n){case"return":return i(n)}break;case 115:switch(n){case"super":case"switch":return i(n)}break;case 116:switch(n){case"true":return t.trueLiteral;case"this":return t.thisKeyword;case"throw":case"try":case"typeof":return i(n)}break;case 118:switch(n){case"var":case"void":return i(n)}break;case 119:switch(n){case"while":case"with":return i(n)}}return}var n={leftBrace:1,rightBrace:2,leftBracket:3,rightBracket:4,separator:5,colon:6,semicolon:7,comma:8,dot:9,nullLiteral:10,trueLiteral:11,falseLiteral:12,numberLiteral:13,stringLiteral:14,identifier:15,reservedWord:16,thisKeyword:17,leftParentheses:18,rightParentheses:19,eof:20,error:21},t={leftBrace:{type:n.leftBrace,length:1},rightBrace:{type:n.rightBrace,length:1},leftBracket:{type:n.leftBracket,length:1},rightBracket:{type:n.rightBracket,length:1},colon:{type:n.colon,length:1},semicolon:{type:n.semicolon,length:1},comma:{type:n.comma,length:1},dot:{type:n.dot,length:1},nullLiteral:{type:n.nullLiteral,length:4,value:null,keyword:!0},trueLiteral:{type:n.trueLiteral,length:4,value:!0,keyword:!0},falseLiteral:{type:n.falseLiteral,length:5,value:!1,keyword:!0},thisKeyword:{type:n.thisKeyword,length:4,value:"this",keyword:!0},leftParentheses:{type:n.leftParentheses,length:1},rightParentheses:{type:n.rightParentheses,length:1},eof:{type:n.eof,length:0}},r=function(){function h(n,t,r,u){switch(n){case n>=97&&n<=122&&n:case n>=65&&n<=90&&n:case 36:case 95:return!0;case s(n)&&n:case e(n)&&n:return!1;case n>127&&n:return!0;case 92:return r+4=97&&u<=122&&u:case u>=65&&u<=90&&u:case 36:case 95:break;case s(u)&&u:case e(u)&&u:return f?-t:t;case u>127&&u:break;case u>=48&&u<=57&&u:break;case 92:if(t+5=48&&n<=57&&n:case n>=97&&n<=102&&n:case n>=65&&n<=70&&n:return!0;default:return!1}}function a(n,t,r){while(t=48&&n<=57&&n:return!0;default:return!1}}function o(n,t,i){while(t=8192&&n<=8202&&n:case 8239:case 8287:case 12288:return!0;default:return!1}}function p(n,t,i){while(t=8192&&r<=8202&&r:case 8239:case 8287:case 12288:break;default:return t}t++}return t}function w(i,u,o,c){for(var w,b,v,d,k,g,nt;o=49&&b<=57&&b:v=f(u,w,o,c);break;case 58:v=t.colon;break;case 59:v=t.semicolon;break;case 91:v=t.leftBracket;break;case 93:v=t.rightBracket;break;case 123:v=t.leftBrace;break;case 125:v=t.rightBrace;break;default:if(h(b,u,o,c)){v=l(u,o-1,c);break}v={type:n.error,length:o-w,value:u.substring(w,o)}}o+=v.length-1;i.push(v)}}return function(n){var i=[];return w(i,n,0,n.length),i.push(t.eof),i}}();return r.tokenType=n,r})})}),r("WinJS/ControlProcessor/_OptionsParser",["exports","../Core/_Base","../Core/_BaseUtils","../Core/_ErrorFromName","../Core/_Resources","./_OptionsLexer"],function(n,t,i,r,u,f){"use strict";function s(){throw"Illegal";}function v(n){for(var i=Object.keys(e.tokenType),t=0,r=i.length;t"}var c={get invalidOptionsRecord(){return"Invalid options record: '{0}', expected to be in the format of an object literal. {1}"},get unexpectedTokenExpectedToken(){return"Unexpected token: {0}, expected token: {1}, at offset {2}"},get unexpectedTokenExpectedTokens(){return"Unexpected token: {0}, expected one of: {1}, at offset {2}"},get unexpectedTokenGeneric(){return"Unexpected token: {0}, at offset {1}"}},e=t.Namespace.defineWithParent(null,null,{lexer:t.Namespace._lazy(function(){return f._optionsLexer}),tokenType:t.Namespace._lazy(function(){return f._optionsLexer.tokenType})}),a=i.requireSupportedForProcessing,o=t.Namespace.defineWithParent(null,null,{BaseInterpreter:t.Namespace._lazy(function(){return t.Class.define(null,{_error:function(n){throw new r("WinJS.UI.ParseError",n);},_currentOffset:function(){for(var i=this._pos,t=0,n=0;n0)return r.window.scrollTo(n.pageXOffset,0),!1}else if(t==="down"){var ct=r.document.documentElement.scrollHeight,lt=r.window.innerHeight,ft=ct-lt;if(r.window.pageYOffset=r||t<=i)return 0;var f=Math.min(t,r)-Math.max(n,i),u=Math.min(r-i,t-n);return u===0?0:f/u}function it(n,t,i,r,u){var c=0,e,f,s=0,h=0;switch(n){case k.left:if(u.left>=r.left)break;e=o(r.top,r.bottom,u.top,u.bottom);f=r.left-u.right;e>0?h=o(i.top,i.bottom,u.top,u.bottom):s=r.bottom<=u.top?u.top-r.bottom:r.top-u.bottom;break;case k.right:if(u.right<=r.right)break;e=o(r.top,r.bottom,u.top,u.bottom);f=u.left-r.right;e>0?h=o(i.top,i.bottom,u.top,u.bottom):s=r.bottom<=u.top?u.top-r.bottom:r.top-u.bottom;break;case k.up:if(u.top>=r.top)break;e=o(r.left,r.right,u.left,u.right);f=r.top-u.bottom;e>0?h=o(i.left,i.right,u.left,u.right):s=r.right<=u.left?u.left-r.right:r.left-u.right;break;case k.down:if(u.bottom<=r.bottom)break;e=o(r.left,r.right,u.left,u.right);f=u.top-r.bottom;e>0?h=o(i.left,i.right,u.left,u.right):s=r.right<=u.left?u.left-r.right:r.left-u.right}return f>=0&&(f=t-f,s=t-s,f>=0&&s>=0&&(f+=f*e,c=f*ut.primaryAxisDistanceWeight+s*ut.secondaryAxisDistanceWeight+h*ut.percentInHistoryShadowWeight)),c}function rt(n,t){var i,u;return(n||t)&&(!n||n.parentNode)||r.document.activeElement!==r.document.body&&(n=r.document.activeElement),n?(i=n,u=w(i.getBoundingClientRect())):u=t?w(t):b(),{element:i,rect:u}}var nt,u,v,y,p,h,l,e,d,a,tt,c,f,g;if(t=t||{},t.focusRoot=t.focusRoot||i.focusRoot||r.document.body,t.historyRect=t.historyRect||b(),nt=Math.max(r.screen.availHeight,r.screen.availWidth),u=rt(t.referenceElement,t.referenceRect),u.element&&(v=u.element.getAttribute(et.focusOverride)||u.element.getAttribute(et.focusOverrideLegacy),v&&(y=s.optionsParser(v),p=y[n]||y[n[0].toUpperCase()+n.substr(1)],p))){for(l=u.element;!h&&l;)h=l.querySelector(p),l=l.parentElement;if(h)return h===r.document.activeElement?null:{target:h,targetRect:w(h.getBoundingClientRect()),referenceRect:u.rect,usedOverride:!0}}for(e={element:null,rect:null,score:0},d=t.focusRoot.querySelectorAll("*"),a=0,tt=d.length;au.rect.bottom||f.bottome.score&&(e.element=c,e.rect=f,e.score=g)}return e.element?{target:e.element,targetRect:e.rect,referenceRect:u.rect,usedOverride:!1}:null}function b(){return{top:-1,bottom:-1,right:-1,left:-1,height:0,width:0}}function w(n){return{top:Math.floor(n.top),bottom:Math.floor(n.top+n.height),right:Math.floor(n.left+n.width),left:Math.floor(n.left),height:Math.floor(n.height),width:Math.floor(n.width)}}function yt(n){var t=r.window.devicePixelRatio;return{height:(Math.floor(n.height)|0)*t,width:(Math.floor(n.width)|0)*t,x:(Math.floor(n.left)|0)*t,y:((Math.floor(n.top)|0)+r.window.screenTop)*t}}function ht(n,t){var u=rt.dispatchEvent(it.focusChanging,{nextFocusElement:n,keyCode:t}),i;return u||(n.focus(),i=w(n.getBoundingClientRect()),i.topr.window.innerHeight-v&&r.window.scrollTo(r.window.pageXOffset,r.window.pageYOffset+v)),r.document.activeElement===n}function ct(n){var t=n.tagName,i;return!n.hasAttribute("tabindex")&&vt.indexOf(t)===-1&&!e.hasClass(n,a.focusable)?!1:t==="IFRAME"&&!y.isXYFocusEnabled(n)?!1:t==="DIV"&&n.winControl&&n.winControl.disabled?!1:t==="A"&&(!n.hasAttribute("href")||!n.getAttribute("href"))?!1:(i=e._getComputedStyle(n),n.getAttribute("tabIndex")==="-1"||i.display==="none"||i.visibility==="hidden"||n.disabled)?!1:!0}function pt(n){for(var t=n.parentElement;t&&!lt(t);)t=t.parentElement;return t}function wt(n){var t=pt(n);return t&&!e.hasClass(t,a.toggleModeActive)}function lt(n){if(e.hasClass(n,a.toggleMode))return!0;if(n.tagName==="INPUT"){var t=n.type.toLowerCase();if(t==="date"||t==="datetime"||t==="datetime-local"||t==="email"||t==="month"||t==="number"||t==="password"||t==="range"||t==="search"||t==="tel"||t==="text"||t==="time"||t==="url"||t==="week")return!0}else if(n.tagName==="TEXTAREA")return!0;return!1}function at(n){var i=!1,r=!1,u=!1,t;return n&&(i=e._matchesSelector(n,"."+a.suspended+", ."+a.suspended+" *"),r=lt(n),u=e.hasClass(n,a.toggleModeActive)),t=nt.RestState,i?t=nt.SuspendedState:r&&(t=u?nt.ToggleModeActiveState:nt.ToggleModeRestState),t}function bt(n){function c(i){t.top=-1;t.bottom=0;i&&(t.top+=v,t.bottom+=v);e.xyFocus("down",n.keyCode,t)}function l(i){t.top=f;t.bottom=f+1;i&&(t.top-=v,t.bottom-=v);e.xyFocus("up",n.keyCode,t)}var e,u,a,o,p,s,h;if(!n.defaultPrevented){e=at(r.document.activeElement);u="";i.keyCodeMap.up.indexOf(n.keyCode)!==-1?u="up":i.keyCodeMap.down.indexOf(n.keyCode)!==-1?u="down":i.keyCodeMap.left.indexOf(n.keyCode)!==-1?u="left":i.keyCodeMap.right.indexOf(n.keyCode)!==-1&&(u="right");u&&(a=e.xyFocus(u,n.keyCode),a&&n.preventDefault());var y=r.window.innerWidth,f=r.window.innerHeight,t=b();t.left=0;t.right=y;t.width=y;t.height=1;i.keyCodeMap.pageUp.indexOf(n.keyCode)!==-1?r.window.pageYOffset>0?(o=Math.max(r.window.pageYOffset-f,0),o!==0&&(o+=v),r.window.scrollTo(r.window.pageXOffset,o),l(!0)):c(!1):i.keyCodeMap.pageDown.indexOf(n.keyCode)!==-1?(p=r.document.documentElement.scrollHeight,s=p-f,r.window.pageYOffset=0;i--)try{r=t[i];r.contentWindow?n(r,i):t.splice(i,1)}catch(u){t.splice(i,1)}}var t=[];n.count=u;n.getIFrameFromWindow=f;n.isXYFocusEnabled=e;n.registerIFrame=o;n.unregisterIFrame=s}(y||(y={}));r.document&&(i.keyCodeMap.left.push(h.GamepadLeftThumbstickLeft,h.GamepadDPadLeft,h.NavigationLeft),i.keyCodeMap.right.push(h.GamepadLeftThumbstickRight,h.GamepadDPadRight,h.NavigationRight),i.keyCodeMap.up.push(h.GamepadLeftThumbstickUp,h.GamepadDPadUp,h.NavigationUp),i.keyCodeMap.down.push(h.GamepadLeftThumbstickDown,h.GamepadDPadDown,h.NavigationDown),i.keyCodeMap.accept.push(h.GamepadA,h.NavigationAccept),i.keyCodeMap.cancel.push(h.GamepadB,h.NavigationCancel),i.keyCodeMap.pageUp.push(h.GamepadLeftTrigger),i.keyCodeMap.pageDown.push(h.GamepadRightTrigger),r.addEventListener("message",function(n){var f=null,u,o,t,i,e;try{if(f=n.source,!f)return}catch(n){return}if(n.data&&n.data[c.messageDataProperty]){u=n.data[c.messageDataProperty];switch(u.type){case c.register:t=y.getIFrameFromWindow(f);t&&y.registerIFrame(t);break;case c.unregister:t=y.getIFrameFromWindow(f);t&&y.unregisterIFrame(t);break;case c.dFocusEnter:o=g(u.direction,-1,u.referenceRect,!0);o||(ct(r.document.body)?r.document.body.focus():g(u.direction,-1));break;case c.dFocusExit:if(t=y.getIFrameFromWindow(f),r.document.activeElement!==t)break;i=u.referenceRect;e=t.getBoundingClientRect();i.left+=e.left;i.top+=e.top;typeof i.right=="number"&&(i.right+=e.left);typeof i.bottom=="number"&&(i.bottom+=e.top);g(u.direction,-1,i)}}}),f.ready().then(function(){if(e.hasWinRT&&r.Windows&&r.Windows.Xbox&&e.addClass(r.document.body,a.xboxPlatform),r.document.addEventListener("keydown",dt,!0),r.document.addEventListener("keydown",bt),r.document.addEventListener("keyup",kt),r.top!==r.window){var n={};n[c.messageDataProperty]={type:c.register,version:1};r.parent.postMessage(n,"*")}}),tt={focusRoot:{get:function(){return i.focusRoot},set:function(n){i.focusRoot=n}},findNextFocusElement:ft,keyCodeMap:i.keyCodeMap,moveFocus:ot,onfocuschanged:o._createEventProperty(it.focusChanged),onfocuschanging:o._createEventProperty(it.focusChanging),_xyFocus:g,_iframeHelper:y},tt=f._merge(tt,o.eventMixin),tt._listeners={},rt=tt,u.Namespace.define("WinJS.UI.XYFocus",tt))}),r("base",["WinJS/Core/_WinJS","WinJS/XYFocus",],function(n){"use strict";return n.Namespace.define("WinJS.Utilities",{_require:u,_define:r}),n}),u(["WinJS/Core/_WinJS","base"],function(n){i.WinJS=n;typeof module!="undefined"&&(module.exports=n)}),i.WinJS}),function(n){n.UI.XYFocus.keyCodeMap.up.push(n.Utilities.Key.upArrow);n.UI.XYFocus.keyCodeMap.down.push(n.Utilities.Key.downArrow);n.UI.XYFocus.keyCodeMap.left.push(n.Utilities.Key.leftArrow);n.UI.XYFocus.keyCodeMap.right.push(n.Utilities.Key.rightArrow)}(i.WinJS)}