';var v=m.childNodes[0],b=m.childNodes[1],w=m.childNodes[2];function x(e,t,i,n,r){var s=e.width-30;m.parentNode||document.body.appendChild(m),v.textContent=t,b.textContent=i,v.style.maxWidth=b.style.maxWidth=s+"px";var a=Math.min(160,Math.max(78,88*e.width/1e3)),h=new o({parentRect:e,x:0,y:0,width:a,height:a,originX:.5,parentOriginX:.5}),c=v.getBoundingClientRect(),d=new o({parentRect:e,x:0,y:h.absY+h.height+17,width:r||Math.ceil(c.width),height:Math.ceil(c.height),originX:.5,parentOriginX:.5,_isForText:!0}),u=b.getBoundingClientRect(),p=new o({parentRect:e,x:0,y:d.absY+d.height+13,width:n||Math.ceil(u.width),height:Math.ceil(u.height),originX:.5,parentOriginX:.5,_isForText:!0});return v.textContent="",b.textContent="",{accountSettingsLayout:p,greetingLayout:d,avatarLayout:h}}function y(e,t,i,n,r,s,o,a){return!1!==a&&(!(!a&&e.width<=425)&&(!(!a&&Math.max(r.absY+r.height,s?s.absY+s.height:0)7?s-1:s,Math.floor(g))),v=t.length?Math.ceil(s/m):0,b=t.length?Math.ceil(s/v):0;b>1&&(l+=(g-b)*l*.25/(b-1));var w=Math.max(0,c+(b-1)*l),x=Math.max(0,c+(v-1)*f+d),y=b<=3;return new o({parentRect:e,x:0,y:0,width:w,height:x,originX:.5,parentOriginX:.5,parentAnchorY:.5,itemNames:t.map((function(e){return"appIcon."+e})),itemCount:s,columnCount:b,rowCount:v,itemSize:c,itemIntervalX:l,itemIntervalY:f,alignment:y?"center":"left",usesLargeLayout:h,layoutRectAtIdx:function(e){var t=new o({parentRect:this.parentRect,width:c,height:c+d,originX:.5,originY:.5,parentOriginX:.5,parentOriginY:.5,parentAnchorX:.5,parentAnchorY:.5}),n=Math.floor(e/this.columnCount),r=e%this.columnCount;i&&(r=b-1-r);var s=0;return"center"===this.alignment&&n===this.rowCount-1&&(s=(this.columnCount-this.itemCount%this.columnCount)%this.columnCount*this.itemIntervalX/2),t.absX=this.absX+r*this.itemIntervalX+s,t.absY=this.absY+n*this.itemIntervalY,t},getNamedChildLayoutRects:function(){for(var e,t={},i=this.itemNames,n=0;e=i[n];n++)t[e]=this.layoutRectAtIdx(n);return t}})}function S(e,t,i){var n=e.width-80;w.textContent=i,w.style.maxWidth=n+"px";var r=w.getBoundingClientRect();return w.textContent="",new o({parentRect:e,x:0,y:t.absY+t.height+30,width:Math.ceil(r.width),height:Math.ceil(r.height),originX:.5,parentOriginX:.5})}function M(e,t,i,n,r,s,a,h){var c=o.getBoundingBox(t,i,n),d=s?o.getBoundingBox(r,s):r,u=a||.4,p=u/(1-u),l=h||.18,f=(e.height-c.height-d.height)/(1+.8*p+p)*p,g=.8*f,m=Math.min(c.height,d.height),v=Math.min(g,.8*m),b=f+u*(g-v),w=Math.max(0,.01*(800-e.height)),x=Math.max(v,l*m,.2*(r.itemIntervalY-r.itemSize))-w,y=Math.max(b,.8*x,.15*c.height)-w,O=y+c.height+x,S=y-c.absY,M=O-d.absY;t.y+=S,i.y+=S,n.y+=S,r.y+=M,s&&(s.y+=M)}function I(){var e=document.createElement("div");return e.className="bootstrap-mock-springboard-view",e.style.cssText="position: absolute; pointer-events: none; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;",e.setAttribute("aria-hidden","true"),e.innerHTML='
',e.avatar=e.firstChild,e.greeting=e.avatar.nextSibling,e.accountSettings=e.greeting.nextSibling,e}function C(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l(),r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Good afternoon, Abcdef.",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"Account Settings",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:d;e.style.width=t+"px",e.style.height=i+"px";var a=g(t,i,n.map((function(e){return e[1]})),r,s,void 0,void 0,!1,o),h=e.avatar.style,c=a.avatar;h.width=c.width+"px",h.height=c.height+"px",h.left=c.absX+"px",h.top=c.absY+"px";var u=e.greeting.style,p=a.greeting;u.width=p.width+"px",u.height=p.height+"px",u.left=p.absX+"px",u.top=p.absY+"px";var f=e.accountSettings.style,m=a.accountSettings;f.width=1.2*m.width+"px",f.height=m.height+"px",f.left=m.absX-.1*m.width+"px",f.top=m.absY+"px";for(var v,b=e._naec||(e._naec=e.childNodes.length),w=a._compoundAppSwitcherGrid,x=0;x=0&&a&&(this.downloadURL=d,this.size=o,this.title=a,a.indexOf(".")>=0&&(this.fileType=a.substr(a.lastIndexOf(".")+1)))}};e.hasEnteredLimitedExperienceMode=e.hasEnteredLimitedExperienceMode||!1;var f=function(){function t(e){var t=this._url=function(e){if(e&&e.hash&&e.hash.indexOf("redirectingUserToCorrectDomain=true")>=0){var t=new URL(e),i=t.hash,n=i.indexOf("?"),r=i.substr(0,n);r.length<=1&&(r="");var s=i.substr(n);t.hash=r,t.search=s;var o=window.top.history;return o.replaceState(o.state,document.title,t.href),t}return e}(e),i=function(e){var t=[];if(e){var i=e.pathname;i&&(t=Object(a.a)(i))}return t}(t);this._applicationIdentifier=void 0,this._shortGuid=void 0;var n=t.hash,s=window.userAgent;if(s||(s=window.navigator.userAgent),this.updatePrimaryInteractionMode(r.a.sharedInstance.primaryInteractionMode),this.updateUserAgent(s),this.updateDeviceType(r.a.sharedInstance.deviceType),this.setupBrowserFinders(),0===i.length&&n&&n.length){var o=n,h="#newspublisher"===o;"#"!==o[0]||h||(o=o.substr(1));var c=g((i=o.split("/"))[0]),p=this.supportsShareURLs=u.indexOf(c)>=0;if(!d.has(c)&&-1===c.indexOf("postLoginRedirectUrl=")){if("share"!==c){var f=g(i[0]);this._applicationIdentifier=m(f)}i.length>1&&p?this._shortGuid=g(i[1]):this._relativePath=i.slice(1).join("/"),h||this.isTouch||this._setRedirectUrlPath(c)}}else if(i.length>0){var v=g(i[0]),b=this.supportsShareURLs=u.indexOf(v)>=0;if("attachment"===v)this._mailDropDetail=new l(decodeURIComponent(e.toString())),this._applicationIdentifier="mail";else if(d.has(v))"v"===v&&(this._shortGuid=g(i[1]));else{if("share"!==v){var w=g(i[0]);this._applicationIdentifier=m(w)}if(i.length>1&&"share"!==i[1]&&b)this._shortGuid=g(i[1]);else if(n&&n.length>1&&b)if(1===function(e){return e.split("&")}(n).length)this._shortGuid=g(n);else{var x=function(e){var t=e.match(/st=(.*)&i=(.*)/),i={};return t.shift(),"e"===t[0]?i.applicationIdentifier="calendar":"t"===t[0]&&(i.applicationIdentifier="reminders"),i.shortGuid=t[1],i}(n);if(this._shortGuid=x.shortGuid,x.applicationIdentifier!==this._applicationIdentifier){var y=window.location.href.replace(this._applicationIdentifier,x.applicationIdentifier);this._applicationIdentifier=x.applicationIdentifier,window.history.replaceState(window.history.state,window.document.title,y)}}else this._relativePath=i.slice(1).join("/")}}"find-my-iphone"===this._applicationIdentifier?this._setRedirectUrlPath("/find"):"notes2"===this._applicationIdentifier||"notes3"===this._applicationIdentifier?this._setRedirectUrlPath("/notes"):"drive"===this._applicationIdentifier&&this._setRedirectUrlPath("/iclouddrive")}var i,c,f=t.prototype;return f._determineLimitedExperienceModeStatus=function(){return!!this.limitedExperienceMode||(this.limitedExperienceMode=(p.indexOf(this.applicationIdentifier)>=0||void 0!==this.shortGuid)&&this.limitedExperienceSupportedBrowser(),this.limitedExperienceMode)},f.limitedExperienceSupportedBrowser=function(){return!!this.isTouch&&this.isBrowserVersionAtLeast({android:7,ios:8})},f.updatePrimaryInteractionMode=function(e){this.primaryInteractionMode=e,this.isTouch=e===s.a.TOUCH},f.updateDeviceType=function(e){this.deviceType=e},f.areCookiesEnabled=function(){try{return n.set("COS_BOOTSTRAP_COOKIE_TEST","1"),"1"===n.get("COS_BOOTSTRAP_COOKIE_TEST")}catch(e){return!1}},f.updateUserAgent=function(e){var t=this.userAgent=e.toLowerCase();this.isEdge=/\sedge\//.test(t),this.isFirefoxiOS=!this.isEdge&&/fxios/.test(t),this.isChrome=!this.isEdge&&!this.isFirefoxiOS&&/chrome|crios/.test(t),this.isSafari=!this.isEdge&&!this.isFirefoxiOS&&!this.isChrome&&/safari/.test(t),this.isFirefox=this.isFirefoxiOS||!this.isEdge&&!this.isChrome&&!this.isSafari&&/firefox/.test(t),this.isIE=!this.isEdge&&!this.isChrome&&!this.isSafari&&!this.isFirefox&&/trident|msie/.test(t),this.isWindows=!!/windows/.test(t);var i=(t.match(/webkit\/(.+?) /)||[])[1],n=((t.split(/\s*[;)(]\s*/)||[])[1]||"").toLowerCase(),r=this.isMac=!!/macintosh/.test(t)||/mac os x/.test(t)&&!/like mac os x/.test(t),s=r&&this.isTouch&&!this.isChrome,o=this.isIOS="ipad"===n||n.indexOf("ipod")>=0||"iphone"===n||s;if(this.isMobileSafari=(/apple.*mobile/.test(t)&&o?i:0)||s,s)this.osMajorVersion=13,this.osMinorVersion=0;else if(r){var a=t.match(/mac os x (\d+)[ _.](\d+)[ _.]?(\d+)?/);a&&(this.osMajorVersion=parseInt(a[1]),this.osMinorVersion=parseInt(a[2]),this.osMicroVersion=parseInt(0|a[3]))}else if(this.isWindows){var h=t.match(/windows[ a-z]+?(\d+)[ _.](\d+)/);h&&(this.osMajorVersion=parseInt(h[1]),this.osMinorVersion=parseInt(h[2]))}else if(o){var c=t.match(/\b(ipad|iphone|ipod)\b.*\bos (\d+)_(\d+)/i);c&&(this.osMajorVersion=parseInt(c[2]),this.osMinorVersion=parseInt(c[3]))}this.isAppleSystemFontCapable=!s&&r&&10===this.osMajorVersion&&this.osMinorVersion>=14||o&&this.osMajorVersion>=12},f.determineRedirectUrl=function(){var e,t=this.url.origin,i=this.isCrawler(),n=this.isOnSupportedDesktop(),r=this.isOnSupportedMobile(),s=this.isTermsAndConditionUrl(),o=-1!==window.location.hash.indexOf("postLoginRedirectUrl=");return navigator.cookieEnabled||this.areCookiesEnabled()?i||s||o||(!this.isTouch||r||this._determineLimitedExperienceModeStatus()?this.isTouch||n||this._determineLimitedExperienceModeStatus()||(e=t+"/unsupported_browser/"):e=this.applicationIdentifier?t+"/unsupported_mobile/":t+"/find/"):e=t+"/enable_cookies/",e},f._setRedirectUrlPath=function(e){var t=this.relativePath,i=this.shortGuid,n=t?"/"+t:"",r=i?"/#"+i:"";this._redirectUrlPath=""+e+n+r},f.isOnSupportedDesktop=function(){return this.isBrowserVersionAtLeast({mobilesafari:-1,android:-1,safari:6,firefox:21,opera:0,crios:0,chrome:0,edge:79,ie:-1,otherwise:!0})},f.isOnSupportedMobile=function(){return this.deviceType===o.a.TABLET?this.isBrowserVersionAtLeast({ios:13}):this.isBrowserVersionAtLeast({android:7,ios:8})},f.isOnSupportedMouseDeviceWithWarningMode=function(){return!this.isBrowserVersionAtLeast({safari:7,firefox:21,chrome:35,edge:12,otherwise:!1})},f.isOnSupportedTouchDeviceWithWarningMode=function(){return!1},f.isCrawler=function(){return this.isBrowserVersionAtLeast({googlebot:0})},f.isTermsAndConditionUrl=function(){return-1!==window.location.hash.indexOf("#terms")},f.isBrowserVersionAtLeast=function(e){var t,i,n,r=this.BROWSER_FINDER_VERSIONS;for(t in e)if("otherwise"!==t){var s=r[t];if(s.matches)return i=s.version||this.getUserAgentVersion(r[t]),-1!==(n=e[t])&&i>=n}return!!e.otherwise},f.getUserAgentVersion=function(e){var t,i=0;try{t=this.userAgent.match(e.regexp),i=parseInt(t[t.length-1],10)}catch(n){}return i},f.setupBrowserFinders=function(){var e=this;this.BROWSER_FINDER_VERSIONS={safari:{get matches(){return e.isSafari},regexp:/version\/(\d+\.*\d+).*?safari/},mobilesafari:{get matches(){return e.isMobileSafari},regexp:/version\/(\d+\.*\d+).*?safari/},ios:{get matches(){return e.isMobileSafari},get version(){return e.osMajorVersion}},android:{get matches(){return!!/android/.test(e.userAgent)},regexp:/android (\d+\.*\d*)/},firefox:{get matches(){return e.isFirefox},regexp:/firefox\/(\d+\.*\d+)/},chrome:{get matches(){return e.isChrome},regexp:/chrome\/(\d+\.*\d+)/},opera:{get matches(){return!!/opera/.test(e.userAgent)},regexp:/version\/(\d+\.*\d+)/},ie:{get matches(){return e.isIE},regexp:/(msie |trident.*?rv:)(\d+\.*\d+)/},edge:{get matches(){return e.isEdge},regexp:/edge\/(\d+\.*\d+)/},crios:{get matches(){return e.userAgent.match(/\scrios\//)},regexp:/crios\/(\d+\.*\d+)/},googlebot:{get matches(){return e.userAgent.match(/\sgooglebot\//)},regexp:/googlebot\/(\d+\.*\d+)/},mobilesafariwebview:{get matches(){return e.isMobileSafari&&e.userAgent.match(/^((?!safari).)*$/)},regexp:/applewebkit\/\d+\.*\d+.*mobile\/(\d+[A-z]*\d+)$/},facebookMessengeriOSwebview:{get matches(){return e.isMobileSafari&&e.userAgent.match(/fban\/messengerforios;/)},regexp:/applewebkit\/(\d+)[\.*\d+]+ .*mobile\/(\d+[A-z]*\d+).*fban\/messengerforios/}}},i=t,(c=[{key:"applicationIdentifier",get:function(){return this._applicationIdentifier}},{key:"limitedExperienceMode",get:function(){return e.hasEnteredLimitedExperienceMode},set:function(t){!0===t&&(e.hasEnteredLimitedExperienceMode=!0)}},{key:"shortGuid",get:function(){return this._shortGuid}},{key:"mailDropDetail",get:function(){return this._mailDropDetail}},{key:"relativePath",get:function(){return this._relativePath}},{key:"url",get:function(){return this._url}},{key:"redirectUrlPath",get:function(){return this._redirectUrlPath}}])&&h(i.prototype,c),t}();function g(e){var t=e;if("#"===t[0]&&(t=t.substr(1)),t.indexOf("#")>=0){var i=t.split("#");t=i[0]}var n=t.indexOf("?");return n>0&&(t=t.substr(0,n)),t}function m(e){var t=e;return t.toLowerCase()}}).call(this,i(4))},function(e,t,i){"use strict";function n(e){for(var t=[],i=e.split("/"),n=0,r=i.length;n