!function(){var config=(0===window.location.protocol.indexOf("https"),{kitId:"zam5nzz",host:"https://typeface.nyt.com/",scriptTimeout:3e3}),h=document.getElementsByTagName("html")[0];h.className+=" wf-loading";var t=setTimeout(function(){h.className=h.className.replace(/(\s|^)wf-loading(\s|$)/g," "),h.className+=" wf-inactive"},config.scriptTimeout),tk=document.createElement("script"),d=!1;tk.src=config.host+config.kitId+".js",tk.type="text/javascript",tk.async="true",tk.onload=tk.onreadystatechange=function(){var a=this.readyState;if(!(d||a&&"complete"!=a&&"loaded"!=a)){d=!0,clearTimeout(t);try{Typekit.load(config)}catch(b){}}};var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(tk,s)}(),window.magnum=function(){"use strict";var classLength,device,orientationType,viewportClass,eventQueue={},featureFlags=[],rootEl=document.getElementsByTagName("html")[0],prefix="viewport",breakpointPattern="(\\b|\\s)"+prefix+"\\-(small|medium|large)(\\-([0-9]|[1-9][0-9]|1[0-9][0-9]))?\\b",breakpointRegex=new RegExp(breakpointPattern,"g"),breakpoints=[{key:"small",val:315},{key:"small-10",val:450},{key:"small-20",val:600},{key:"medium",val:720},{key:"medium-10",val:765},{key:"medium-20",val:855},{key:"medium-30",val:960},{key:"medium-31",val:975},{key:"medium-40",val:1005},{key:"medium-50",val:1020},{key:"medium-60",val:1050},{key:"large",val:1080},{key:"large-10",val:1125},{key:"large-11",val:1155},{key:"large-20",val:1200},{key:"large-21",val:1215},{key:"large-30",val:1245},{key:"large-40",val:1280},{key:"large-41",val:1335},{key:"large-50",val:1375},{key:"large-51",val:1410},{key:"large-60",val:1607},{key:"large-70",val:1650},{key:"large-80",val:2030}],getWidth=function(){var func;if(document.documentElement&&document.documentElement.clientWidth)func=function(){return document.documentElement.clientWidth};else if(window.self&&window.self.innerWidth)func=function(){return window.self.innerWidth};else{if(!document.body)return function(){return 0};func=function(){return document.body.clientWidth}}return func}(),getHeight=function(){var func;if(document.documentElement&&document.documentElement.clientHeight)func=function(){return document.documentElement.clientHeight};else if(window.self&&window.self.innerHeight)func=function(){return window.self.innerHeight};else{if(!document.body)return function(){return 0};func=function(){return document.body.clientHeight}}return func}(),createTrigger=function(eventName){return function(){var i,callbacks=eventQueue[eventName].callbacks;for(i=0;i=breakpoint.val||breakpoint.key===breakpoints[0].key);++i)newArray.push(prefix+"-"+breakpoint.key);newArray.length!==classLength&&(changeClass(newArray,breakpointRegex),classLength=newArray.length,viewportClass=newArray[classLength-1],integer=getViewportInteger(),eventQueue.breakPoint&&eventQueue.breakPoint.trigger(integer,viewportClass))},processFlags=function(flags){var i,len,featureClasses="";for(featureFlags=flags||[],i=0,len=featureFlags.length;i-1,isGlobal=document.cookie.indexOf("NYT-Edition=edition|GLOBAL")>=0&&!removeInternationalEdition,appGetsCustomMasthead="article"===appName||"interactive"===appName;mastheadOverrides=mastheadOverrides||"",isTransparent=mastheadOverrides.indexOf("masthead-theme-transparent")>-1||mastheadOverrides.indexOf("masthead-theme-transparent-ffffff")>-1,displayColor=mastheadOverrides.indexOf("masthead-theme-transparent-ffffff")>-1||"black"===pageTheme?"white-":"","large"===size?(w=isGlobal?"450":"370",h=isGlobal?"44":"50"):"magazine"===sectionName?(w=isSmallViewport?"184":"260",h=isSmallViewport?"22":"23"):"t-magazine"===sectionName&&appGetsCustomMasthead?(w=isSmallViewport?"184":"250",h=isSmallViewport?"22":"30"):isGlobal?(w=isTransparent?"240":"236",h=isTransparent?"30":"22"):(w=isTransparent?"163":"185",h=isTransparent?"30":"26"),logoPath=path+(isGlobal?"international-logo-":"nyt-logo-")+displayColor+w+"x"+h,blackLogoPath=path+(isGlobal?"international-logo-":"nyt-logo-")+w+"x"+h,"magazine"===sectionName&&(logoPath=path+"magazine-logo-"+displayColor+w+"x"+h,blackLogoPath=path+"magazine-logo-"+w+"x"+h),"t-magazine"===sectionName&&appGetsCustomMasthead&&(logoPath=path+"t-magazine-logo-"+displayColor+w+"x"+h,blackLogoPath=path+"t-magazine-logo-"+w+"x"+h),isGlobal&&"mobile"===device&&(w="184",h="26"),html='The New York Times',$logoLink?$logoLink.innerHTML+=html:document.write(html)},addNonResponsiveViewportMeta=function(width){var browserWidth,viewportTag;browserWidth=window.outerWidth?window.outerWidth:getWidth(),browserWidth>width&&(width=browserWidth),viewportTag=document.createElement("meta"),viewportTag.setAttribute("name","viewport"),viewportTag.setAttribute("content","width="+width+", user-scalable=yes"),document.getElementsByTagName("head")[0].appendChild(viewportTag),checkSize()},addViewportMetaFromUrlParam=function(){var width,viewportTag,match=document.location.search.match(/viewportWidth=(\d+)/);match&&match[1]&&(width=+match[1]),width<=1050&&(viewportTag=document.createElement("meta"),viewportTag.setAttribute("name","viewport"),viewportTag.setAttribute("content","width="+width+", initial-scale=1, maximum-scale=1"),document.getElementsByTagName("head")[0].appendChild(viewportTag),checkSize())},addEditionClass=function(edition){var removeInternationalEdition=featureFlags.indexOf("removeInternationalEdition")>-1,classToAdd="global"!==edition||removeInternationalEdition?"edition-domestic":"edition-international";changeClass([classToAdd],new RegExp("edition-[w]*","g"))},init=function(){return 0===getClasses().length&&setClasses(""),detectDevice(),detectMoz(),detectEmbedPosition(),checkSize(),processFlags(),window.onresize=checkSize,"mobile"===device&&(orientationChange(),window.onorientationchange=orientationChange),{on:on,device:device,getWidth:getWidth,getHeight:getHeight,breakpoints:breakpoints,getViewport:getViewport,getOrientation:getOrientation,getViewportInteger:getViewportInteger,getFlags:getFlags,processFlags:processFlags,writeLogo:writeLogo,addNonResponsiveViewportMeta:addNonResponsiveViewportMeta,addViewportMetaFromUrlParam:addViewportMetaFromUrlParam,addEditionClass:addEditionClass}};return init()}(),window.magnum.responsiveImages=function(){"use strict";var bleedType,coverImage,coverImageHeight,coverImageWidth,coverImageCaption,story,storyHeader,headline,storyMeta,storyBody,cover,coverHeight,realImgHeight,realImgWidth,imageAspectRatio,imageOrientation,topCropBias,leftCropBias,bottomCropBias,rightCropBias,coverImageCaptionHeight,backgroundColor,shell,masthead,html,windowWidth=window.magnum.getWidth(),windowHeight=window.magnum.getHeight(),coverWidth=windowWidth,coverToLedeBreakpoint=780,viewportMedium50=1020,belowCoverToLedeBreakpoint=!1,isBelowVerticalFullBleedBreakpoint=!1,fullBleedImageVerticalBreakpoint=50,setStoryBodyTop=function(top){"full-bleed-cover"!==bleedType||belowCoverToLedeBreakpoint?"vertical-full-bleed"===bleedType?coverImageCaptionHeight>0?isBelowVerticalFullBleedBreakpoint||(top+=coverImageCaptionHeight+65):top+=80:top+=20:top+=coverImageCaptionHeight>0?coverImageCaptionHeight+65:80,storyBody.style.marginTop=top+"px"},setCaptionPosition=function(newCaptionPosition){coverImageCaption&&(coverImageCaption.style.top=newCaptionPosition+7+"px")},setCoverHeight=function(newCoverHeight,newCaptionPosition){cover.style.height=newCoverHeight+"px",setCaptionPosition(newCaptionPosition)},setBelowCoverToLedeBreakpoint=function(value){belowCoverToLedeBreakpoint=value},setBelowVerticalFullBleedBreakpoint=function(value){isBelowVerticalFullBleedBreakpoint=value},handleCropBias=function(offset,direction){var verticalBias,horizontalBias,pixelsCropped,fullImageWidth=coverHeight*imageAspectRatio,fullImageHeight=coverWidth/imageAspectRatio;return"horizontal"===direction&&(pixelsCropped=fullImageWidth-coverWidth,horizontalBias=(rightCropBias-leftCropBias)/100,horizontalBias<=-.5&&(horizontalBias=-.5),offset+=pixelsCropped*horizontalBias,offset>=0&&(offset=0)),"vertical"===direction&&(pixelsCropped=fullImageHeight-coverHeight,verticalBias=(bottomCropBias-topCropBias)/100,verticalBias<=-.5&&(verticalBias=-.5),offset+=pixelsCropped*verticalBias,offset>=0&&(offset=0)),offset},getAllDimensions=function(){windowHeight=window.magnum.getHeight(),windowWidth=window.magnum.getWidth(),coverHeight=cover.clientHeight,coverWidth=cover.clientWidth,coverImageHeight=coverImage.clientHeight,coverImageWidth=coverImage.clientWidth,coverImageCaptionHeight=coverImageCaption?coverImageCaption.clientHeight:0},cropImageVertically=function(){var newHeight,newWidth,offsetLeft;getAllDimensions(),newHeight=coverHeight,newWidth=coverHeight*imageAspectRatio,offsetLeft=-Math.abs((coverWidth-newWidth)/2),offsetLeft=handleCropBias(offsetLeft,"horizontal"),coverImage.style.height=newHeight+"px",coverImage.style.width=newWidth+"px",coverImage.style.maxWidth="none",coverImage.style.marginLeft=offsetLeft+"px"},cropImageHorizontally=function(){var offsetTop,newHeight=coverImageWidth/imageAspectRatio;newHeight>coverHeight&&(offsetTop=-Math.abs((newHeight-coverHeight)/2),offsetTop=handleCropBias(offsetTop,"vertical"),coverImage.style.marginTop=offsetTop+"px")},scaleImageHorizontally=function(){var newHeight=windowWidth/imageAspectRatio;setCoverHeight(newHeight,newHeight),setStoryBodyTop(storyHeader.clientHeight)},fitImage=function(){var imageScaleRatio,coverScaleRatio;getAllDimensions(),imageScaleRatio=realImgHeight/realImgWidth,coverScaleRatio=coverHeight/coverWidth,imageScaleRatio>coverScaleRatio?cropImageHorizontally():imageScaleRatio=acceptableImageWidth||currentHeight>=acceptableImageHeight;)currentWidth-=1*imageAspectRatio,currentHeight-=1;coverImage.style.width=currentWidth+"px",coverImage.style.height=currentHeight+"px",coverImageCaption&&(coverImageCaption.style.width="auto",coverImageCaption.style.marginLeft="auto",getAllDimensions(),coverImageWidth!==coverImageCaption.clientWidth&&(coverImageCaption.style.width=coverImageWidth+"px",coverImageCaption.style.marginLeft=(coverWidth-coverImageWidth)/2+"px")),handleMastheadClasses()},makeFullBleedCover=function(){getAllDimensions(),setCoverHeight(windowHeight,windowHeight),setStoryBodyTop(windowHeight),fitImage()},makeVerticalFullBleed=function(){var featureFlags=window.magnum.getFlags(),bleedMastheadColorFlag=featureFlags.indexOf("bleedMastheadColor")>-1;getAllDimensions(),setCoverHeight(windowHeight,windowHeight),"transparent"!==storyMeta.style.backgroundColor&&storyMeta.style.backgroundColor||(storyMeta.style.backgroundColor=backgroundColor),handleMastheadClasses(),bleedMastheadColorFlag&&swapMastheadBackgroundColor(),setStoryBodyTop(windowHeight),fitImage()},handleMastheadClasses=function(){"headline-image-topper"===bleedType?masthead&&masthead.className.indexOf("masthead-headline-image-topper")===-1&&(masthead.className+=" masthead-headline-image-topper"):"vertical-full-bleed"===bleedType&&masthead&&masthead.className.indexOf("masthead-vertical-fullbleed")===-1&&(masthead.className+=" masthead-vertical-fullbleed",document.getElementById("story").className.indexOf("bleed-align-left")!==-1&&(masthead.className+=" bleed-align-left"),html.className.indexOf("section-magazine")!==-1&&(masthead.className+=" masthead-magazine"),html.className.indexOf("section-t-magazine")!==-1&&(masthead.className+=" masthead-t-mag"))},swapMastheadBackgroundColor=function(){var rgbaBackgroundColor=createRGBAfromHex(backgroundColor);isBelowVerticalFullBleedBreakpoint?"transparent"!==masthead.style.backgroundColor&&masthead.style.backgroundColor||(masthead.style.backgroundColor=rgbaBackgroundColor):isBelowVerticalFullBleedBreakpoint||"transparent"===masthead.style.backgroundColor||(masthead.style.backgroundColor="transparent")},createRGBAfromHex=function(hexValue){var fullResult,shorthandHexExpansionRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;return hexValue=hexValue.replace(shorthandHexExpansionRegex,function(m,r,g,b){return r+r+g+g+b+b}),fullResult=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexValue),"rgba("+[parseInt(fullResult[1],16),parseInt(fullResult[2],16),parseInt(fullResult[3],16),"0.4)"].join()},makeShallowFullBleedLede=function(imageHeight,coverWidth){0===imageHeight&&(imageHeight=coverWidth/imageAspectRatio),setCoverHeight(imageHeight+coverImageCaptionHeight,imageHeight),handleMastheadClasses(),setStoryBodyTop(storyHeader.clientHeight)},makeDeepFullBleedLede=function(){var newCoverHeight=windowHeight-headline.clientHeight-coverImageCaptionHeight,percentageOfVerticalImageVisable=newCoverHeight/coverImageHeight*100;percentageOfVerticalImageVisable-1;getAllDimensions(),imageHeight=coverImageHeight,coverWidth=windowWidth,storyMeta.style.backgroundColor="transparent","vertical-full-bleed"===bleedType?(setBelowVerticalFullBleedBreakpoint(!0),makeShallowFullBleedLede(imageHeight,coverWidth),bleedMastheadColorFlag&&swapMastheadBackgroundColor()):belowCoverToLedeBreakpoint?makeShallowFullBleedLede(imageHeight,coverWidth):makeDeepFullBleedLede()},setCoverImage=function(imageId,bleedStyle,imgHeight,imgWidth,cropTop,cropRight,cropBottom,cropLeft,bleedBackgroundColor){html=document.getElementsByTagName("html")[0],masthead=document.getElementById("masthead"),shell=document.getElementById("shell"),cover=document.getElementById("media-"+imageId),coverImage=document.getElementById("media-image-"+imageId),coverImageCaption=document.getElementById("media-caption-"+imageId),story=document.getElementById("story"),storyHeader=document.getElementById("story-header"),headline=document.getElementById("headline"),storyMeta=document.getElementById("story-meta"),storyBody=document.getElementsByClassName("story-body-supplemental")[0],backgroundColor=bleedBackgroundColor,realImgHeight=imgHeight,realImgWidth=imgWidth,bleedType=bleedStyle,imageAspectRatio=Math.min(realImgWidth/realImgHeight),topCropBias=cropTop,leftCropBias=cropLeft,bottomCropBias=cropBottom,rightCropBias=cropRight,imageOrientation=realImgHeight>realImgWidth?"portrait":"landscape","full-bleed"===bleedType||"full-bleed-cover"===bleedType?windowWidth',a,""].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=E(e[d],"function"),E(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),A={}.hasOwnProperty;B=E(A,"undefined")||E(A.call,"undefined")?function(a,b){return b in a&&E(a.constructor.prototype[b],"undefined")}:function(a,b){return A.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if("function"!=typeof c)throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return I("flexWrap")},s.flexboxlegacy=function(){return I("boxDirection")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!E(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!I("indexedDB",a)},s.hashchange=function(){return z("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return C("background-color:rgba(150,255,150,.5)"),F(j.backgroundColor,"rgba")},s.hsla=function(){return C("background-color:hsla(120,40%,100%,.5)"),F(j.backgroundColor,"rgba")||F(j.backgroundColor,"hsla")},s.multiplebgs=function(){return C("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return I("backgroundSize")},s.borderimage=function(){return I("borderImage")},s.borderradius=function(){return I("borderRadius")},s.boxshadow=function(){return I("boxShadow")},s.textshadow=function(){return""===b.createElement("div").style.textShadow},s.opacity=function(){return D("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return I("animationName")},s.csscolumns=function(){return I("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return C((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),F(j.backgroundImage,"gradient")},s.cssreflections=function(){return I("boxReflect")},s.csstransforms=function(){return!!I("transform")},s.csstransforms3d=function(){var a=!!I("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=9===b.offsetLeft&&3===b.offsetHeight}),a},s.csstransitions=function(){return I("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var K in s)B(s,K)&&(x=K.toLowerCase(),e[x]=s[K](),v.push((e[x]?"":"no-")+x));return e.input||J(),e.addTest=function(a,b){if("object"==typeof a)for(var d in a)B(a,d)&&e.addTest(d,a[d]);else{if(a=a.toLowerCase(),e[a]!==c)return e;b="function"==typeof b?b():b,"undefined"!=typeof f&&f&&(g.className+=" has-"+(b?"":"no-")+a),e[a]=b}return e},C(""),i=k=null,e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.hasEvent=z,e.testProp=function(a){return G([a])},e.testAllProps=I,e.testStyles=y,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" has-js has-"+v.join(" has-"):""),e}(this,this.document),function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=n(c));var g;return g=d.cache[a]?d.cache[a].cloneNode():f.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!g.canHaveChildren||e.test(a)||g.tagUrn?g:d.frag.appendChild(g)}function p(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||n(a);for(var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;e+~])("+m().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),f="$1"+u+"\\:$2";d--;)b=c[d]=c[d].split("}"),b[b.length-1]=b[b.length-1].replace(e,f),c[d]=b.join("}");return c.join("{")}function z(a){for(var b=a.length;b--;)a[b].removeNode()}function A(a){function g(){clearTimeout(d._removeSheetTimer),b&&b.removeNode(!0),b=null}var b,c,d=n(a),e=a.namespaces,f=a.parentWindow;return!v||a.printShived?a:("undefined"==typeof e[u]&&e.add(u),f.attachEvent("onbeforeprint",function(){g();for(var d,e,f,h=a.styleSheets,i=[],j=h.length,k=Array(j);j--;)k[j]=h[j];for(;f=k.pop();)if(!f.disabled&&t.test(f.media)){try{d=f.imports,e=d.length}catch(m){e=0}for(j=0;j",g="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){g=!0,k=!0}}();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b);var t=/^$|\b(?:all|print)\b/,u="html5shiv",v=!k&&function(){var c=b.documentElement;return"undefined"!=typeof b.namespaces&&"undefined"!=typeof b.parentWindow&&"undefined"!=typeof c.applyElement&&"undefined"!=typeof c.removeNode&&"undefined"!=typeof a.attachEvent}();s.type+=" print",s.shivPrint=A,A(b)}(this,document),Modernizr.addTest("cors",!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest));var requirejs,require,define;!function(global){function isFunction(it){return"[object Function]"===ostring.call(it)}function isArray(it){return"[object Array]"===ostring.call(it)}function each(ary,func){if(ary){var i;for(i=0;i-1&&(!ary[i]||!func(ary[i],i,ary));i-=1);}}function hasProp(obj,prop){return hasOwn.call(obj,prop)}function getOwn(obj,prop){return hasProp(obj,prop)&&obj[prop]}function eachProp(obj,func){var prop;for(prop in obj)if(hasProp(obj,prop)&&func(obj[prop],prop))break}function mixin(target,source,force,deepStringMixin){return source&&eachProp(source,function(value,prop){!force&&hasProp(target,prop)||(deepStringMixin&&"string"!=typeof value?(target[prop]||(target[prop]={}),mixin(target[prop],value,force,deepStringMixin)):target[prop]=value)}),target}function bind(obj,fn){return function(){return fn.apply(obj,arguments)}}function scripts(){return document.getElementsByTagName("script")}function getGlobal(value){ if(!value)return value;var g=global;return each(value.split("."),function(part){g=g[part]}),g}function makeError(id,msg,err,requireModules){var e=new Error(msg+"\nhttp://requirejs.org/docs/errors.html#"+id);return e.requireType=id,e.requireModules=requireModules,err&&(e.originalError=err),e}function newContext(contextName){function trimDots(ary){var i,part;for(i=0;ary[i];i+=1)if(part=ary[i],"."===part)ary.splice(i,1),i-=1;else if(".."===part){if(1===i&&(".."===ary[2]||".."===ary[0]))break;i>0&&(ary.splice(i-1,2),i-=2)}}function normalize(name,baseName,applyMap){var pkgName,pkgConfig,mapValue,nameParts,i,j,nameSegment,foundMap,foundI,foundStarMap,starI,baseParts=baseName&&baseName.split("/"),normalizedBaseParts=baseParts,map=config.map,starMap=map&&map["*"];if(name&&"."===name.charAt(0)&&(baseName?(normalizedBaseParts=getOwn(config.pkgs,baseName)?baseParts=[baseName]:baseParts.slice(0,baseParts.length-1),name=normalizedBaseParts.concat(name.split("/")),trimDots(name),pkgConfig=getOwn(config.pkgs,pkgName=name[0]),name=name.join("/"),pkgConfig&&name===pkgName+"/"+pkgConfig.main&&(name=pkgName)):0===name.indexOf("./")&&(name=name.substring(2))),applyMap&&(baseParts||starMap)&&map){for(nameParts=name.split("/"),i=nameParts.length;i>0;i-=1){if(nameSegment=nameParts.slice(0,i).join("/"),baseParts)for(j=baseParts.length;j>0;j-=1)if(mapValue=getOwn(map,baseParts.slice(0,j).join("/")),mapValue&&(mapValue=getOwn(mapValue,nameSegment))){foundMap=mapValue,foundI=i;break}if(foundMap)break;!foundStarMap&&starMap&&getOwn(starMap,nameSegment)&&(foundStarMap=getOwn(starMap,nameSegment),starI=i)}!foundMap&&foundStarMap&&(foundMap=foundStarMap,foundI=starI),foundMap&&(nameParts.splice(0,foundI,foundMap),name=nameParts.join("/"))}return name}function removeScript(name){isBrowser&&each(scripts(),function(scriptNode){if(scriptNode.getAttribute("data-requiremodule")===name&&scriptNode.getAttribute("data-requirecontext")===context.contextName)return scriptNode.parentNode.removeChild(scriptNode),!0})}function hasPathFallback(id){var pathConfig=getOwn(config.paths,id);if(pathConfig&&isArray(pathConfig)&&pathConfig.length>1)return removeScript(id),pathConfig.shift(),context.require.undef(id),context.require([id]),!0}function splitPrefix(name){var prefix,index=name?name.indexOf("!"):-1;return index>-1&&(prefix=name.substring(0,index),name=name.substring(index+1,name.length)),[prefix,name]}function makeModuleMap(name,parentModuleMap,isNormalized,applyMap){var url,pluginModule,suffix,nameParts,prefix=null,parentName=parentModuleMap?parentModuleMap.name:null,originalName=name,isDefine=!0,normalizedName="";return name||(isDefine=!1,name="_@r"+(requireCounter+=1)),nameParts=splitPrefix(name),prefix=nameParts[0],name=nameParts[1],prefix&&(prefix=normalize(prefix,parentName,applyMap),pluginModule=getOwn(defined,prefix)),name&&(prefix?normalizedName=pluginModule&&pluginModule.normalize?pluginModule.normalize(name,function(name){return normalize(name,parentName,applyMap)}):normalize(name,parentName,applyMap):(normalizedName=normalize(name,parentName,applyMap),nameParts=splitPrefix(normalizedName),prefix=nameParts[0],normalizedName=nameParts[1],isNormalized=!0,url=context.nameToUrl(normalizedName))),suffix=!prefix||pluginModule||isNormalized?"":"_unnormalized"+(unnormalizedCounter+=1),{prefix:prefix,name:normalizedName,parentMap:parentModuleMap,unnormalized:!!suffix,url:url,originalName:originalName,isDefine:isDefine,id:(prefix?prefix+"!"+normalizedName:normalizedName)+suffix}}function getModule(depMap){var id=depMap.id,mod=getOwn(registry,id);return mod||(mod=registry[id]=new context.Module(depMap)),mod}function on(depMap,name,fn){var id=depMap.id,mod=getOwn(registry,id);!hasProp(defined,id)||mod&&!mod.defineEmitComplete?getModule(depMap).on(name,fn):"defined"===name&&fn(defined[id])}function onError(err,errback){var ids=err.requireModules,notified=!1;errback?errback(err):(each(ids,function(id){var mod=getOwn(registry,id);mod&&(mod.error=err,mod.events.error&&(notified=!0,mod.emit("error",err)))}),notified||req.onError(err))}function takeGlobalQueue(){globalDefQueue.length&&(apsp.apply(defQueue,[defQueue.length-1,0].concat(globalDefQueue)),globalDefQueue=[])}function cleanRegistry(id){delete registry[id]}function breakCycle(mod,traced,processed){var id=mod.map.id;mod.error?mod.emit("error",mod.error):(traced[id]=!0,each(mod.depMaps,function(depMap,i){var depId=depMap.id,dep=getOwn(registry,depId);!dep||mod.depMatched[i]||processed[depId]||(getOwn(traced,depId)?(mod.defineDep(i,defined[depId]),mod.check()):breakCycle(dep,traced,processed))}),processed[id]=!0)}function checkLoaded(){var map,modId,err,usingPathFallback,waitInterval=1e3*config.waitSeconds,expired=waitInterval&&context.startTime+waitInterval<(new Date).getTime(),noLoads=[],reqCalls=[],stillLoading=!1,needCycleCheck=!0;if(!inCheckLoaded){if(inCheckLoaded=!0,eachProp(registry,function(mod){if(map=mod.map,modId=map.id,mod.enabled&&(map.isDefine||reqCalls.push(mod),!mod.error))if(!mod.inited&&expired)hasPathFallback(modId)?(usingPathFallback=!0,stillLoading=!0):(noLoads.push(modId),removeScript(modId));else if(!mod.inited&&mod.fetched&&map.isDefine&&(stillLoading=!0,!map.prefix))return needCycleCheck=!1}),expired&&noLoads.length)return err=makeError("timeout","Load timeout for modules: "+noLoads,null,noLoads),err.contextName=context.contextName,onError(err);needCycleCheck&&each(reqCalls,function(mod){breakCycle(mod,{},{})}),expired&&!usingPathFallback||!stillLoading||!isBrowser&&!isWebWorker||checkLoadedTimeoutId||(checkLoadedTimeoutId=setTimeout(function(){checkLoadedTimeoutId=0,checkLoaded()},50)),inCheckLoaded=!1}}function callGetModule(args){hasProp(defined,args[0])||getModule(makeModuleMap(args[0],null,!0)).init(args[1],args[2])}function removeListener(node,func,name,ieName){node.detachEvent&&!isOpera?ieName&&node.detachEvent(ieName,func):node.removeEventListener(name,func,!1)}function getScriptData(evt){var node=evt.currentTarget||evt.srcElement;return removeListener(node,context.onScriptLoad,"load","onreadystatechange"),removeListener(node,context.onScriptError,"error"),{node:node,id:node&&node.getAttribute("data-requiremodule")}}function intakeDefines(){var args;for(takeGlobalQueue();defQueue.length;){if(args=defQueue.shift(),null===args[0])return onError(makeError("mismatch","Mismatched anonymous define() module: "+args[args.length-1]));callGetModule(args)}}var inCheckLoaded,Module,context,handlers,checkLoadedTimeoutId,config={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},map:{},config:{}},registry={},undefEvents={},defQueue=[],defined={},urlFetched={},requireCounter=1,unnormalizedCounter=1;return handlers={require:function(mod){return mod.require?mod.require:mod.require=context.makeRequire(mod.map)},exports:function(mod){if(mod.usingExports=!0,mod.map.isDefine)return mod.exports?mod.exports:mod.exports=defined[mod.map.id]={}},module:function(mod){return mod.module?mod.module:mod.module={id:mod.map.id,uri:mod.map.url,config:function(){return config.config&&getOwn(config.config,mod.map.id)||{}},exports:defined[mod.map.id]}}},Module=function(map){this.events=getOwn(undefEvents,map.id)||{},this.map=map,this.shim=getOwn(config.shim,map.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},Module.prototype={init:function(depMaps,factory,errback,options){options=options||{},this.inited||(this.factory=factory,errback?this.on("error",errback):this.events.error&&(errback=bind(this,function(err){this.emit("error",err)})),this.depMaps=depMaps&&depMaps.slice(0),this.errback=errback,this.inited=!0,this.ignore=options.ignore,options.enabled||this.enabled?this.enable():this.check())},defineDep:function(i,depExports){this.depMatched[i]||(this.depMatched[i]=!0,this.depCount-=1,this.depExports[i]=depExports)},fetch:function(){if(!this.fetched){this.fetched=!0,context.startTime=(new Date).getTime();var map=this.map;return this.shim?void context.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return map.prefix?this.callPlugin():this.load()})):map.prefix?this.callPlugin():this.load()}},load:function(){var url=this.map.url;urlFetched[url]||(urlFetched[url]=!0,context.load(this.map.id,url))},check:function(){if(this.enabled&&!this.enabling){var err,cjsModule,id=this.map.id,depExports=this.depExports,exports=this.exports,factory=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(factory)){if(this.events.error)try{exports=context.execCb(id,factory,depExports,exports)}catch(e){err=e}else exports=context.execCb(id,factory,depExports,exports);if(this.map.isDefine&&(cjsModule=this.module,cjsModule&&void 0!==cjsModule.exports&&cjsModule.exports!==this.exports?exports=cjsModule.exports:void 0===exports&&this.usingExports&&(exports=this.exports)),err)return err.requireMap=this.map,err.requireModules=[this.map.id],err.requireType="define",onError(this.error=err)}else exports=factory;this.exports=exports,this.map.isDefine&&!this.ignore&&(defined[id]=exports,req.onResourceLoad&&req.onResourceLoad(context,this.map,this.depMaps)),delete registry[id],this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var map=this.map,id=map.id,pluginMap=makeModuleMap(map.prefix);this.depMaps.push(pluginMap),on(pluginMap,"defined",bind(this,function(plugin){var load,normalizedMap,normalizedMod,name=this.map.name,parentName=this.map.parentMap?this.map.parentMap.name:null,localRequire=context.makeRequire(map.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(plugin.normalize&&(name=plugin.normalize(name,function(name){return normalize(name,parentName,!0)})||""),normalizedMap=makeModuleMap(map.prefix+"!"+name,this.map.parentMap),on(normalizedMap,"defined",bind(this,function(value){this.init([],function(){return value},null,{enabled:!0,ignore:!0})})),normalizedMod=getOwn(registry,normalizedMap.id),void(normalizedMod&&(this.depMaps.push(normalizedMap),this.events.error&&normalizedMod.on("error",bind(this,function(err){this.emit("error",err)})),normalizedMod.enable()))):(load=bind(this,function(value){this.init([],function(){return value},null,{enabled:!0})}),load.error=bind(this,function(err){this.inited=!0,this.error=err,err.requireModules=[id],eachProp(registry,function(mod){0===mod.map.id.indexOf(id+"_unnormalized")&&cleanRegistry(mod.map.id)}),onError(err)}),load.fromText=bind(this,function(text,textAlt){var moduleName=map.name,moduleMap=makeModuleMap(moduleName),hasInteractive=useInteractive;textAlt&&(text=textAlt),hasInteractive&&(useInteractive=!1),getModule(moduleMap),hasProp(config.config,id)&&(config.config[moduleName]=config.config[id]);try{req.exec(text)}catch(e){return onError(makeError("fromtexteval","fromText eval for "+id+" failed: "+e,e,[id]))}hasInteractive&&(useInteractive=!0),this.depMaps.push(moduleMap),context.completeLoad(moduleName),localRequire([moduleName],load)}),void plugin.load(map.name,localRequire,load,config))})),context.enable(pluginMap,this),this.pluginMaps[pluginMap.id]=pluginMap},enable:function(){this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(depMap,i){var id,mod,handler;if("string"==typeof depMap){if(depMap=makeModuleMap(depMap,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[i]=depMap,handler=getOwn(handlers,depMap.id))return void(this.depExports[i]=handler(this));this.depCount+=1,on(depMap,"defined",bind(this,function(depExports){this.defineDep(i,depExports),this.check()})),this.errback&&on(depMap,"error",this.errback)}id=depMap.id,mod=registry[id],hasProp(handlers,id)||!mod||mod.enabled||context.enable(depMap,this)})),eachProp(this.pluginMaps,bind(this,function(pluginMap){var mod=getOwn(registry,pluginMap.id);mod&&!mod.enabled&&context.enable(pluginMap,this)})),this.enabling=!1,this.check()},on:function(name,cb){var cbs=this.events[name];cbs||(cbs=this.events[name]=[]),cbs.push(cb)},emit:function(name,evt){each(this.events[name],function(cb){cb(evt)}),"error"===name&&delete this.events[name]}},context={config:config,contextName:contextName,registry:registry,defined:defined,urlFetched:urlFetched,defQueue:defQueue,Module:Module,makeModuleMap:makeModuleMap,nextTick:req.nextTick,configure:function(cfg){cfg.baseUrl&&"/"!==cfg.baseUrl.charAt(cfg.baseUrl.length-1)&&(cfg.baseUrl+="/");var pkgs=config.pkgs,shim=config.shim,objs={paths:!0,config:!0,map:!0};eachProp(cfg,function(value,prop){objs[prop]?"map"===prop?mixin(config[prop],value,!0,!0):mixin(config[prop],value,!0):config[prop]=value}),cfg.shim&&(eachProp(cfg.shim,function(value,id){isArray(value)&&(value={deps:value}),!value.exports&&!value.init||value.exportsFn||(value.exportsFn=context.makeShimExports(value)),shim[id]=value}),config.shim=shim),cfg.packages&&(each(cfg.packages,function(pkgObj){var location;pkgObj="string"==typeof pkgObj?{name:pkgObj}:pkgObj,location=pkgObj.location,pkgs[pkgObj.name]={name:pkgObj.name,location:location||pkgObj.name,main:(pkgObj.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}}),config.pkgs=pkgs),eachProp(registry,function(mod,id){mod.inited||mod.map.unnormalized||(mod.map=makeModuleMap(id))}),(cfg.deps||cfg.callback)&&context.require(cfg.deps||[],cfg.callback)},makeShimExports:function(value){function fn(){var ret;return value.init&&(ret=value.init.apply(global,arguments)),ret||value.exports&&getGlobal(value.exports)}return fn},makeRequire:function(relMap,options){function localRequire(deps,callback,errback){var id,map,requireMod;return options.enableBuildCallback&&callback&&isFunction(callback)&&(callback.__requireJsBuild=!0),"string"==typeof deps?isFunction(callback)?onError(makeError("requireargs","Invalid require call"),errback):relMap&&hasProp(handlers,deps)?handlers[deps](registry[relMap.id]):req.get?req.get(context,deps,relMap):(map=makeModuleMap(deps,relMap,!1,!0),id=map.id,hasProp(defined,id)?defined[id]:onError(makeError("notloaded",'Module name "'+id+'" has not been loaded yet for context: '+contextName+(relMap?"":". Use require([])")))):(intakeDefines(),context.nextTick(function(){intakeDefines(),requireMod=getModule(makeModuleMap(null,relMap)),requireMod.skipMap=options.skipMap,requireMod.init(deps,callback,errback,{enabled:!0}),checkLoaded()}),localRequire)}return options=options||{},mixin(localRequire,{isBrowser:isBrowser,toUrl:function(moduleNamePlusExt){var ext,url,index=moduleNamePlusExt.lastIndexOf("."),segment=moduleNamePlusExt.split("/")[0],isRelative="."===segment||".."===segment;return index!==-1&&(!isRelative||index>1)&&(ext=moduleNamePlusExt.substring(index,moduleNamePlusExt.length),moduleNamePlusExt=moduleNamePlusExt.substring(0,index)),url=context.nameToUrl(normalize(moduleNamePlusExt,relMap&&relMap.id,!0),ext||".fake"),ext?url:url.substring(0,url.length-5)},defined:function(id){return hasProp(defined,makeModuleMap(id,relMap,!1,!0).id)},specified:function(id){return id=makeModuleMap(id,relMap,!1,!0).id,hasProp(defined,id)||hasProp(registry,id)}}),relMap||(localRequire.undef=function(id){takeGlobalQueue();var map=makeModuleMap(id,relMap,!0),mod=getOwn(registry,id);delete defined[id],delete urlFetched[map.url],delete undefEvents[id],mod&&(mod.events.defined&&(undefEvents[id]=mod.events),cleanRegistry(id))}),localRequire},enable:function(depMap){var mod=getOwn(registry,depMap.id);mod&&getModule(depMap).enable()},completeLoad:function(moduleName){var found,args,mod,shim=getOwn(config.shim,moduleName)||{},shExports=shim.exports;for(takeGlobalQueue();defQueue.length;){if(args=defQueue.shift(),null===args[0]){if(args[0]=moduleName,found)break;found=!0}else args[0]===moduleName&&(found=!0);callGetModule(args)}if(mod=getOwn(registry,moduleName),!found&&!hasProp(defined,moduleName)&&mod&&!mod.inited){if(!(!config.enforceDefine||shExports&&getGlobal(shExports)))return hasPathFallback(moduleName)?void 0:onError(makeError("nodefine","No define call for "+moduleName,null,[moduleName]));callGetModule([moduleName,shim.deps||[],shim.exportsFn])}checkLoaded()},nameToUrl:function(moduleName,ext){var paths,pkgs,pkg,pkgPath,syms,i,parentModule,url,parentPath;if(req.jsExtRegExp.test(moduleName))url=moduleName+(ext||"");else{for(paths=config.paths,pkgs=config.pkgs,syms=moduleName.split("/"),i=syms.length;i>0;i-=1){if(parentModule=syms.slice(0,i).join("/"),pkg=getOwn(pkgs,parentModule),parentPath=getOwn(paths,parentModule)){isArray(parentPath)&&(parentPath=parentPath[0]),syms.splice(0,i,parentPath);break}if(pkg){pkgPath=moduleName===pkg.name?pkg.location+"/"+pkg.main:pkg.location,syms.splice(0,i,pkgPath);break}}url=syms.join("/"),url+=ext||(/\?/.test(url)?"":".js"),url=("/"===url.charAt(0)||url.match(/^[\w\+\.\-]+:/)?"":config.baseUrl)+url}return config.urlArgs?url+((url.indexOf("?")===-1?"?":"&")+config.urlArgs):url},load:function(id,url){req.load(context,id,url)},execCb:function(name,callback,args,exports){return callback.apply(exports,args)},onScriptLoad:function(evt){if("load"===evt.type||readyRegExp.test((evt.currentTarget||evt.srcElement).readyState)){interactiveScript=null;var data=getScriptData(evt);context.completeLoad(data.id)}},onScriptError:function(evt){var data=getScriptData(evt);if(!hasPathFallback(data.id))return onError(makeError("scripterror","Script error",evt,[data.id]))}},context.require=context.makeRequire(),context}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(script){if("interactive"===script.readyState)return interactiveScript=script}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.1.4",commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,ap=Array.prototype,apsp=ap.splice,isBrowser=!("undefined"==typeof window||!navigator||!document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}"undefined"==typeof require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(deps,callback,errback,optional){var context,config,contextName=defContextName;return isArray(deps)||"string"==typeof deps||(config=deps,isArray(callback)?(deps=callback,callback=errback,errback=optional):deps=[]),config&&config.context&&(contextName=config.context),context=getOwn(contexts,contextName),context||(context=contexts[contextName]=req.s.newContext(contextName)),config&&context.configure(config),context.require(deps,callback,errback)},req.config=function(config){return req(config)},req.nextTick="undefined"!=typeof setTimeout?function(fn){setTimeout(fn,4)}:function(fn){fn()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(prop){req[prop]=function(){var ctx=contexts[defContextName];return ctx.require[prop].apply(ctx,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=function(err){throw err},req.load=function(context,moduleName,url){var node,config=context&&context.config||{};return isBrowser?(node=config.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),node.type=config.scriptType||"text/javascript",node.charset="utf-8",node.async=!0,node.setAttribute("data-requirecontext",context.contextName),node.setAttribute("data-requiremodule",moduleName),!node.attachEvent||node.attachEvent.toString&&node.attachEvent.toString().indexOf("[native code")<0||isOpera?(node.addEventListener("load",context.onScriptLoad,!1),node.addEventListener("error",context.onScriptError,!1)):(useInteractive=!0,node.attachEvent("onreadystatechange",context.onScriptLoad)),node.src=url,currentlyAddingScript=node,baseElement?head.insertBefore(node,baseElement):head.appendChild(node),currentlyAddingScript=null,node):void(isWebWorker&&(importScripts(url),context.completeLoad(moduleName)))},isBrowser&&eachReverse(scripts(),function(script){if(head||(head=script.parentNode),dataMain=script.getAttribute("data-main"))return cfg.baseUrl||(src=dataMain.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath,dataMain=mainScript),dataMain=dataMain.replace(jsSuffixRegExp,""),cfg.deps=cfg.deps?cfg.deps.concat(dataMain):[dataMain],!0}),define=function(name,deps,callback){var node,context;"string"!=typeof name&&(callback=deps,deps=name,name=null),isArray(deps)||(callback=deps,deps=[]),!deps.length&&isFunction(callback)&&callback.length&&(callback.toString().replace(commentRegExp,"").replace(cjsRequireRegExp,function(match,dep){deps.push(dep)}),deps=(1===callback.length?["require"]:["require","exports","module"]).concat(deps)),useInteractive&&(node=currentlyAddingScript||getInteractiveScript(),node&&(name||(name=node.getAttribute("data-requiremodule")),context=contexts[node.getAttribute("data-requirecontext")])),(context?context.defQueue:globalDefQueue).push([name,deps,callback])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this),function(){"use strict";function c(a){var g,f=d;a:{g=f.className.split(/\s+/);for(var n=0,H=g.length;na.b||this.b===a.b&&this.c>a.c||this.b===a.b&&this.c===a.c&&this.g>a.g?1:this.beventCallback","A check loading is launched"),null===self._var.bait&&self._creatBait(),setTimeout(function(){self.check()},1))},1)};void 0!==window.addEventListener?window.addEventListener("load",eventCallback,!1):window.attachEvent("onload",eventCallback)};BlockAdBlock.prototype._options=null,BlockAdBlock.prototype._var=null,BlockAdBlock.prototype._bait=null,BlockAdBlock.prototype._log=function(method,message){console.log("[BlockAdBlock]["+method+"] "+message)},BlockAdBlock.prototype.setOption=function(options,value){if(void 0!==value){var key=options;options={},options[key]=value}for(var option in options)this._options[option]=options[option],this._options.debug===!0&&this._log("setOption",'The option "'+option+'" he was assigned to "'+options[option]+'"');return this},BlockAdBlock.prototype._creatBait=function(){var bait=document.createElement("div");bait.setAttribute("class",this._options.baitClass),bait.setAttribute("style",this._options.baitStyle),this._var.bait=window.document.body.appendChild(bait),this._var.bait.offsetParent,this._var.bait.offsetHeight,this._var.bait.offsetLeft,this._var.bait.offsetTop,this._var.bait.offsetWidth,this._var.bait.clientHeight,this._var.bait.clientWidth,this._options.debug===!0&&this._log("_creatBait","Bait has been created")},BlockAdBlock.prototype._destroyBait=function(){window.document.body.removeChild(this._var.bait),this._var.bait=null,this._options.debug===!0&&this._log("_destroyBait","Bait has been removed")},BlockAdBlock.prototype.check=function(loop){if(void 0===loop&&(loop=!0),this._options.debug===!0&&this._log("check","An audit was requested "+(loop===!0?"with a":"without")+" loop"),this._var.checking===!0)return this._options.debug===!0&&this._log("check","A check was canceled because there is already an ongoing"),!1;this._var.checking=!0,null===this._var.bait&&this._creatBait();var self=this;return this._var.loopNumber=0,loop===!0&&(this._var.loop=setInterval(function(){self._checkBait(loop)},this._options.loopCheckTime)),setTimeout(function(){self._checkBait(loop)},1),this._options.debug===!0&&this._log("check","A check is in progress ..."),!0},BlockAdBlock.prototype._checkBait=function(loop){var detected=!1;if(null===this._var.bait&&this._creatBait(),null===window.document.body.getAttribute("abp")&&null!==this._var.bait.offsetParent&&0!=this._var.bait.offsetHeight&&0!=this._var.bait.offsetLeft&&0!=this._var.bait.offsetTop&&0!=this._var.bait.offsetWidth&&0!=this._var.bait.clientHeight&&0!=this._var.bait.clientWidth||(detected=!0),void 0!==window.getComputedStyle){var baitTemp=window.getComputedStyle(this._var.bait,null);"none"!=baitTemp.getPropertyValue("display")&&"hidden"!=baitTemp.getPropertyValue("visibility")||(detected=!0)}this._options.debug===!0&&this._log("_checkBait","A check ("+(this._var.loopNumber+1)+"/"+this._options.loopMaxNumber+" ~"+(1+this._var.loopNumber*this._options.loopCheckTime)+"ms) was conducted and detection is "+(detected===!0?"positive":"negative")),loop===!0&&(this._var.loopNumber++,this._var.loopNumber>=this._options.loopMaxNumber&&this._stopLoop()),detected===!0?(this._stopLoop(),this._destroyBait(),this.emitEvent(!0),loop===!0&&(this._var.checking=!1)):null!==this._var.loop&&loop!==!1||(this._destroyBait(),this.emitEvent(!1),loop===!0&&(this._var.checking=!1))},BlockAdBlock.prototype._stopLoop=function(detected){clearInterval(this._var.loop),this._var.loop=null,this._var.loopNumber=0,this._options.debug===!0&&this._log("_stopLoop","A loop has been stopped")},BlockAdBlock.prototype.emitEvent=function(detected){this._options.debug===!0&&this._log("emitEvent","An event with a "+(detected===!0?"positive":"negative")+" detection was called");var fns=this._var.event[detected===!0?"detected":"notDetected"];for(var i in fns)this._options.debug===!0&&this._log("emitEvent","Call function "+(parseInt(i)+1)+"/"+fns.length),fns.hasOwnProperty(i)&&fns[i]();return this._options.resetOnEnd===!0&&this.clearEvent(),this},BlockAdBlock.prototype.clearEvent=function(){this._var.event.detected=[],this._var.event.notDetected=[],this._options.debug===!0&&this._log("clearEvent","The event list has been cleared")},BlockAdBlock.prototype.on=function(detected,fn){return this._var.event[detected===!0?"detected":"notDetected"].push(fn),this._options.debug===!0&&this._log("on",'A type of event "'+(detected===!0?"detected":"notDetected")+'" was added'),this},BlockAdBlock.prototype.onDetected=function(fn){return this.on(!0,fn)},BlockAdBlock.prototype.onNotDetected=function(fn){return this.on(!1,fn)},window.BlockAdBlock=BlockAdBlock,void 0===window.blockAdBlock&&(window.blockAdBlock=new BlockAdBlock({checkOnLoad:!1,resetOnEnd:!0}))}(window),function(){"use strict";function l(a){g.push(a),1==g.length&&f()}function m(){for(;g.length;)g[0](),g.shift()}function n(a){this.a=p,this.b=void 0,this.f=[];var b=this;try{a(function(a){q(b,a)},function(a){r(b,a)})}catch(c){r(b,c)}}function t(a){return new n(function(b,c){c(a)})}function u(a){return new n(function(b){b(a)})}function q(a,b){if(a.a==p){if(b==a)throw new TypeError;var c=!1;try{var d=b&&b.then;if(null!=b&&"object"==typeof b&&"function"==typeof d)return void d.call(b,function(b){c||q(a,b),c=!0},function(b){c||r(a,b),c=!0})}catch(e){return void(c||r(a,e))}a.a=0,a.b=b,v(a)}}function r(a,b){if(a.a==p){if(b==a)throw new TypeError;a.a=1,a.b=b,v(a)}}function v(a){l(function(){if(a.a!=p)for(;a.f.length;){var b=a.f.shift(),c=b[0],d=b[1],e=b[2],b=b[3];try{0==a.a?e("function"==typeof c?c.call(void 0,a.b):a.b):1==a.a&&("function"==typeof d?e(d.call(void 0,a.b)):b(a.b))}catch(h){b(h)}}})}function w(a){return new n(function(b,c){function d(c){return function(d){h[c]=d,e+=1,e==a.length&&b(h)}}var e=0,h=[];0==a.length&&b(h);for(var k=0;k=C?b():document.fonts.load(I(c,'"'+c.family+'"'),k).then(function(c){1<=c.length?a():setTimeout(e,25)},function(){b()})}e()}),K=new Promise(function(a,c){q=setTimeout(c,C)});Promise.race([K,J]).then(function(){clearTimeout(q),a(c)},function(){b(c)})}else m(function(){function t(){var b;(b=-1!=f&&-1!=g||-1!=f&&-1!=h||-1!=g&&-1!=h)&&((b=f!=g&&f!=h&&g!=h)||(null===B&&(b=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),B=!!b&&(536>parseInt(b[1],10)||536===parseInt(b[1],10)&&11>=parseInt(b[2],10))),b=B&&(f==u&&g==u&&h==u||f==v&&g==v&&h==v||f==w&&g==w&&h==w)),b=!b),b&&(null!==d.parentNode&&d.parentNode.removeChild(d),clearTimeout(q),a(c))}function G(){if((new Date).getTime()-F>=C)null!==d.parentNode&&d.parentNode.removeChild(d),b(c);else{var a=document.hidden;!0!==a&&void 0!==a||(f=e.a.offsetWidth,g=n.a.offsetWidth,h=p.a.offsetWidth,t()),q=setTimeout(G,50)}}var e=new r(k),n=new r(k),p=new r(k),f=-1,g=-1,h=-1,u=-1,v=-1,w=-1,d=document.createElement("div");d.dir="ltr",x(e,I(c,"sans-serif")),x(n,I(c,"serif")),x(p,I(c,"monospace")),d.appendChild(e.a),d.appendChild(n.a),d.appendChild(p.a),document.body.appendChild(d),u=e.a.offsetWidth,v=n.a.offsetWidth,w=p.a.offsetWidth,G(),z(e,function(a){f=a,t()}),x(e,I(c,'"'+c.family+'",sans-serif')),z(n,function(a){g=a,t()}),x(n,I(c,'"'+c.family+'",serif')),z(p,function(a){h=a,t()}),x(p,I(c,'"'+c.family+'",monospace'))})})},"undefined"!=typeof module?module.exports=A:(window.FontFaceObserver=A,window.FontFaceObserver.prototype.load=A.prototype.load)}();