You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
20 KiB
Plaintext

!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="https://localhost:8080/./js/dest/",t(t.s=221)}({1:function(e,t,n){"use strict";function i(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=i(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getCookie=function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}},118:function(e,t,n){var i=n(174);"string"==typeof i&&(i=[[e.i,i,""]]);var r,o={hmr:!0};o.transform=r,o.insertInto=void 0;n(2)(i,o);i.locals&&(e.exports=i.locals)},14:function(e,t,n){"use strict";e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var r=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r))return e;var o;return o=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},174:function(e,t,n){t=e.exports=n(1)(!1),t.push([e.i,'.lire-iframe__modal___1uF_L{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;margin:0;padding:0;z-index:1000}.lire-iframe__modal___1uF_L .lire-iframe__background___253nA{width:100%;height:100%;background:transparent;-webkit-transition:background .5s ease-out .1s;transition:background .5s ease-out .1s}.lire-iframe__modal___1uF_L .lire-iframe__background___253nA .lire-iframe__iframe___DrmNt{width:100%;min-height:100%;border:none;opacity:0;-webkit-transition:opacity .3s ease-out .1s;transition:opacity .3s ease-out .1s;overflow-x:hidden;overflow-y:auto}.lire-iframe__modal___1uF_L.lire-iframe__open___1S3Ye .lire-iframe__background___253nA{background:rgba(0,0,0,.75);-webkit-transition:background .15s ease-out;transition:background .15s ease-out}.lire-iframe__modal___1uF_L.lire-iframe__open___1S3Ye .lire-iframe__background___253nA .lire-iframe__iframe___DrmNt{opacity:1}@media only screen and (max-width:575.98px),only screen and (min-width:576px) and (max-width:767.98px){.lire-iframe__modal___1uF_L.lire-iframe__open___1S3Ye .lire-iframe__background___253nA{background:#fff}}.lire-iframe__modal___1uF_L.lire-iframe__loading___3hXtb .lire-iframe__background___253nA .lire-iframe__iframe___DrmNt{opacity:0}.lire-iframe__modal___1uF_L.lire-iframe__loading___3hXtb .lire-iframe__background___253nA:after{content:"";position:absolute;width:2em;height:2em;background-size:contain;background-position:50%;left:calc(50% - 1em);top:calc(50% - 1em);margin:0 auto;z-index:201}@media only screen and (min-width:768px) and (max-width:999999999px) and (orientation:landscape){.lire-iframe__modal___1uF_L.lire-iframe__loading___3hXtb .lire-iframe__background___253nA:after{background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%22198%22%20height%3D%22198%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill%3D%22none%22%20class%3D%22bk%22%20d%3D%22M0%200h100v100H0z%22%2F%3E%3Crect%20id%3D%22a%22%20x%3D%2248%22%20y%3D%2240%22%20width%3D%224%22%20height%3D%2220%22%20rx%3D%222%22%20ry%3D%222%22%20fill%3D%22%23fff%22%20transform%3D%22translate%280%20-22%29%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28324%2050%2050%29%22%20opacity%3D%22.87%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28288%2050%2050%29%22%20opacity%3D%22.74%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28252%2050%2050%29%22%20opacity%3D%22.61%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28216%2050%2050%29%22%20opacity%3D%22.48%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28180%2050%2050%29%22%20opacity%3D%22.37%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28144%2050%2050%29%22%20opacity%3D%22.26%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28108%2050%2050%29%22%20opacity%3D%22.17%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%2872%2050%2050%29%22%20opacity%3D%22.09%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%2836%2050%2050%29%22%20opacity%3D%22.02%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;-webkit-animation:lire-iframe__spin___2HKBu .8s steps(10) infinite 1s;animation:lire-iframe__spin___2HKBu .8s steps(10) infinite 1s;visibility:hidden;pointer-events:none}}@media only screen and (max-width:575.98px),only screen and (min-width:576px) and (max-width:767.98px){.lire-iframe__modal___1uF_L.lire-iframe__loading___3hXtb .lire-iframe__background___253nA:after{background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%22198%22%20height%3D%22198%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill%3D%22none%22%20class%3D%22bk%22%20d%3D%22M0%200h100v100H0z%22%2F%3E%3Crect%20id%3D%22a%22%20x%3D%2248%22%20y%3D%2240%22%20width%3D%224%22%20height%3D%2220%22%20rx%3D%222%22%20ry%3D%222%22%20transform%3D%22translate%280%20-22%29%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28324%2050%2050%29%22%20opacity%3D%22.87%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28288%2050%2050%29%22%20opacity%3D%22.74%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28252%2050%2050%29%22%20opacity%3D%22.61%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28216%2050%2050%29%22%20opacity%3D%22.48%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28180%2050%2050%29%22%20opacity%3D%22.37%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28144%2050%2050%29%22%20opacity%3D%22.26%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%28108%2050%2050%29%22%20opacity%3D%22.17%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%2872%2050%2050%29%22%20opacity%3D%22.09%22%2F%3E%3Cuse%20xlink%3Ahref%3D%22%23a%22%20transform%3D%22rotate%2836%2050%2050%29%22%20opacity%3D%22.02%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;-webkit-animation:lire-iframe__spin___2HKBu .8s steps(10) infinite 1s;animation:lire-iframe__spin___2HKBu .8s steps(10) infinite 1s;visibility:hidden;pointer-events:none}}@-webkit-keyframes lire-iframe__spin___2HKBu{0%{visibility:visible}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes lire-iframe__spin___2HKBu{0%{visibility:visible}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.lire-iframe__scrollbarMeasure___15Gj6{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}',""]),t.locals={modal:"lire-iframe__modal___1uF_L",background:"lire-iframe__background___253nA",iframe:"lire-iframe__iframe___DrmNt",open:"lire-iframe__open___1S3Ye",loading:"lire-iframe__loading___3hXtb",spin:"lire-iframe__spin___2HKBu",scrollbarMeasure:"lire-iframe__scrollbarMeasure___15Gj6"}},2:function(e,t,n){function i(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=m[i.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(u(i.parts[o],t))}else{for(var a=[],o=0;o<i.parts.length;o++)a.push(u(i.parts[o],t));m[i.id]={id:i.id,refs:1,parts:a}}}}function r(e,t){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=t.base?o[0]+t.base:o[0],s=o[1],l=o[2],c=o[3],u={css:s,media:l,sourceMap:c};i[a]?i[a].parts.push(u):n.push(i[a]={id:a,parts:[u]})}return n}function o(e,t){var n=v(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=w[w.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),w.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=v(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,r)}}function a(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=w.indexOf(e);t>=0&&w.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",c(t,e.attrs),o(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(t,e.attrs),o(e,t),t}function c(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function u(e,t){var n,i,r,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var c=b++;n=y||(y=s(t)),i=d.bind(null,n,c,!1),r=d.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),i=h.bind(null,n,t),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),i=f.bind(null,n),r=function(){a(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}function d(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=x(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function h(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=D(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var m={},p=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},_=p(function(){return window&&document&&document.all&&!window.atob}),g=function(e){return document.querySelector(e)},v=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=g.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),y=null,b=0,w=[],D=n(14);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=_()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=r(e,t);return i(n,t),function(e){for(var o=[],a=0;a<n.length;a++){var s=n[a],l=m[s.id];l.refs--,o.push(l)}if(e){i(r(e,t),t)}for(var a=0;a<o.length;a++){var l=o[a];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete m[l.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},221:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o,a,s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c=n(115),u=n(38),d=n(118),f=i(d),h=(a=o=function(){function e(t){var n=this;r(this,e),this.getMessage=function(t){var i=u.receivePostMessage.call(n,t);if(i){var r=i.message,o=i.props;switch(r){case"componentDidMount":e.handleComponentMount.call(n);break;case"authComponentDidMount":e.handleAuthMount.call(n);break;case"cancel":e.cancel.call(n);break;case"success":e.handleSuccess.call(n,o)}}},this.refreshStyles=function(t){e.removeStyles.call(n),window.setTimeout(function(){e.createStyles.call(n),e.addStyles.call(n)},50)},this.el=document.createElement("div"),this.el.id="lire-ui",this.el.className=f.default.modal,this.src=t.hostName+"/auth/login/iframe?clientId="+t.clientID,this.signIn=this.signIn.bind(this),this.complete=this.complete.bind(this),this.setOptions=this.setOptions.bind(this),this.options=s({},t,{hostName:t.hostName,mode:t.mode||"login",removable:!1!==t.removable,module:"lire-modal"}),this.css=null,this.htmlClassName="lire-ui-html-class",this.bodyClassName="lire-ui-body-class",this.isIOS=/iP(ad|od|hone)/i.test(window.navigator.userAgent)&&/WebKit/i.test(window.navigator.userAgent),this.isIOSSafari=/iP(ad|od|hone)/i.test(window.navigator.userAgent)&&/WebKit/i.test(window.navigator.userAgent)&&!/(CriOS|FxiOS|OPiOS|mercury)/i.test(window.navigator.userAgent),this.isIOSChrome=/iP(ad|od|hone)/i.test(window.navigator.userAgent)&&/WebKit/i.test(window.navigator.userAgent)&&/CriOS/i.test(window.navigator.userAgent),this.isIOSFireFox=/iP(ad|od|hone)/i.test(window.navigator.userAgent)&&/WebKit/i.test(window.navigator.userAgent)&&/FxiOS/i.test(window.navigator.userAgent),this.isIPhone=/iP(od|hone)/i.test(window.navigator.userAgent),this.isIE="number"==typeof document.documentMode||new Function("return/*@cc_on!@*/!1")(),this.iOSVersion=this.isIOS?parseFloat(window.navigator.userAgent.match(/OS (\d)?\d_\d(_\d)?/i)[0].replace("_",".").replace("_","").replace("OS ","")):0,this.bodyScrollTop=0,this.bodyScrollLeft=0,this.scrollbarWidth=e.getScrollbarWidth()}return l(e,[{key:"signIn",value:function(t){var n=this.options,i=n.onError,r=n.luVariation,o=n.hostName,a=n.redirectURI,s=this.options.view=window.NYTD.LireUI.getView(r);if("function"==typeof i){if(!t||"login"!==t&&"register"!==t)return void i('TypeError: Invalid parameter passed. Please pass string parameter ("register" or "login")');if(!this.options.clientID){return void(0,this.options.onError)('TypeError: Invalid option "clientID"')}}if(this.isIOS&&this.iOSVersion<11.26||this.isIE||"fullRedirect"===s)return window.location.href=o+"/auth/login?URI="+encodeURIComponent(a);this.options.mode=t,document.getElementById(this.el.id)||document.body.appendChild(this.el),this.el.style.zIndex=e.getHighestZIndex(this.el),e.createIframe(this.src,this.el),e.createStyles.call(this),e.addStyles.call(this),window.addEventListener("message",this.getMessage,!1),window.addEventListener("orientationchange",this.refreshStyles,!1)}},{key:"complete",value:function(){var t=this;window.removeEventListener("message",this.getMessage,!1),window.removeEventListener("orientationchange",this.refreshStyles,!1),this.el.classList.remove(f.default.open),e.removeStyles.call(this),window.setTimeout(function(){e.remove(t.el)},500)}},{key:"setOptions",value:function(e){this.options=s({},this.options,e)}}],[{key:"createStyles",value:function(){var t=this.bodyScrollTop=Math.max(document.body.scrollTop,document.documentElement.scrollTop),n=this.bodyScrollLeft=Math.max(document.body.scrollLeft,document.documentElement.scrollLeft),i=document.head||document.getElementsByTagName("head")[0],r=(parseInt(e.getStyle(document.body,"margin-right"))||0)+this.scrollbarWidth;this.css=document.createElement("style"),this.css.setAttribute("type","text/css");var o="",a="",s=" margin-right: "+r+"px; ",l=" position: static; ",c="",u="",d="",f=" overflow: initial; ",h=" overflow: hidden; ";if(this.isIOS){var m=this.isIOSSafari?1:window.devicePixelRatio,p=window.innerHeight*m;o=" top: "+-t+"px; ",a=" left: "+-n+"px; ",l=" position: fixed; ",c=" height: "+p+"px; ",u=" height: "+(p+t)+"px; ",d=" width: 100%; ",f=" overflow: hidden; ",this.el.style["overflow-y"]="scroll",this.el.style["-webkit-overflow-scrolling"]="touch"}var _="."+this.htmlClassName+" {"+f+c+"} ",g="."+this.bodyClassName+" {"+l+h+u+d+o+a+s+"} ",v=_+g;this.css.styleSheet?this.css.styleSheet.cssText=v:this.css.appendChild(document.createTextNode(v)),i.appendChild(this.css)}},{key:"addStyles",value:function(){var e=document.documentElement,t=document.body;t.classList&&(e.classList.add(this.htmlClassName),t.classList.add(this.bodyClassName))}},{key:"removeStyles",value:function(){var e=this,t=document.documentElement,n=document.body,i=this.css;n.classList&&(t.classList.remove(this.htmlClassName),n.classList.remove(this.bodyClassName),i&&i.parentNode&&i.parentNode.removeChild(i)),window.setTimeout(function(){window.scrollTo(e.bodyScrollLeft,e.bodyScrollTop)},50)}},{key:"getView",value:function(e){switch(e){case"1_email_pw":return null;case"2_email_btn":return"username"===(0,c.getCookie)("nyt-auth-method")?"username":"sso";default:return"fullRedirect"}}},{key:"handleComponentMount",value:function(){this.el.querySelector("iframe").contentWindow.postMessage({message:"receiveProps",messageType:u.MSG_TYPE,props:JSON.parse(JSON.stringify(this.options))},"*")}},{key:"handleAuthMount",value:function(){var e=this.el.querySelector("iframe");this.el.classList.remove(f.default.loading),e.contentWindow.focus()}},{key:"cancel",value:function(){this.complete();var e=this.options.onCancel;if("function"==typeof e)try{e()}catch(e){}}},{key:"remove",value:function(e){var t=e.parentNode;e.parentNode&&t.removeChild(e)}},{key:"handleSuccess",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.options.onSuccess;"function"==typeof t&&t(e)}},{key:"getStyle",value:function(e,t){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(e,null).getPropertyValue(t):""}},{key:"getNodeZIndex",value:function(t){return parseInt(e.getStyle(t,"z-index"))}},{key:"getNotNodeSelector",value:function(e){return(":not(."+e+")").split(" ").join("):not(.").trim()}},{key:"getHighestZIndex",value:function(t){var n=e.getNodeZIndex(t),i=e.getNotNodeSelector(t.className),r=document.body.querySelectorAll("body *"+i);return[].forEach.call(r,function(t){var i=e.getNodeZIndex(t),r=parseInt(t.style.zIndex),o=r||i;o&&(o=parseInt(o),(!n||o>n)&&(n=o+1))}),n}},{key:"getScrollbarWidth",value:function(){var e=document.createElement("div");e.className=f.default.scrollbarMeasure,document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}}]),e}(),o.createIframe=function(e,t){if(!t.hasChildNodes()){var n=document.createElement("div");n.className=f.default.background;var i=document.createElement("iframe");i.className=f.default.iframe,i.src=e,n.appendChild(i),t.appendChild(n)}window.setTimeout(function(){t.classList.add(f.default.open),t.classList.add(f.default.loading)})},a);window.NYTD=window.NYTD||{},window.NYTD.LireUI=h},38:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},r=function(e){return i(e,".nytimes.com")},o=t.MSG_TYPE="Lire iframe";t.receivePostMessage=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=e.data;return r(t)?n:null},t.sendParentMessage=function(e,t){var n=window.parent;n&&n.postMessage({message:e,messageType:o,props:t},"*")}}});