(()=>{"use strict";var n,i,t,o,a;window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;window.authentication_config.debug,window.authentication_config&&window.authentication_config.sessionServer,!!window.authentication_config&&window.authentication_config.entitlementsEnabled,!!window.authentication_config&&window.authentication_config.dropdownEnabled,!!window.authentication_config&&window.authentication_config.enableReaderDashboardLink,!!window.authentication_config&&window.authentication_config.enableDashboardCancel,!!window.authentication_config&&window.authentication_config.enableDashboardBenefitHub,"1"===(null===(n=window.authentication_config)||void 0===n?void 0:n.articleSharingEnabled)&&(null===(i=window.authentication_config)||void 0===i||i.isEngageArticleSharing),"1"===(null===(t=window.authentication_config)||void 0===t?void 0:t.articleSharingEnabled)&&(null===(o=window.authentication_config)||void 0===o||o.isEngageArticleSharing),null===(a=window.authentication_config)||void 0===a||a.articleSavingEnabled,window.authentication_config&&window.authentication_config.prosperstackClientid,!!window.authentication_config&&window.authentication_config.oneTapEnabled,!!window.authentication_config&&window.authentication_config.useTribMainGoogle,!!window.authentication_config&&window.authentication_config.isAdfreeArticle,window.authentication_config&&window.authentication_config.auth0Domain,window.authentication_config&&window.authentication_config.auth0ClientId,window.authentication_config&&window.authentication_config.entitlementsEndpoint,window.authentication_config&&window.authentication_config.entitlementsAPIKey,!!window.authentication_config&&window.authentication_config.linaCheckOnArticles,!!window.authentication_config&&window.authentication_config.serverEntitlements,window.authentication_config&&window.authentication_config.googleClientId,window.authentication_config&&window.authentication_config.newsletterId,window.authentication_config&&window.authentication_config.pluginSecret,!!window.authentication_config&&window.authentication_config.newslettersEnabled,!!window.authentication_config.bcLowaSegements&&window.authentication_config.bcLowaSegements,!!window.authentication_config.blueconicEnabled&&window.authentication_config.blueconicEnabled,!!window.authentication_config.enableDatadog&&window.authentication_config.enableDatadog})(); //# sourceMappingURL=mng-digisubs.settings.bundle.js.map; /*! For license information please see mng-digisubs.connextUtils.bundle.js.LICENSE.txt */ (()=>{var t={579(t,n,e){var o=e(3738).default;t.exports=function(t){if(null!=t){var n=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],e=0;if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}throw new TypeError(o(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},887(t,n,e){var o=e(6993),i=e(1791);t.exports=function(t,n,e,r,a){return new i(o().w(t,n,e,r),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},1791(t,n,e){var o=e(5172),i=e(5546);t.exports=function t(n,e){function r(t,i,a,u){try{var c=n[t](i),s=c.value;return s instanceof o?e.resolve(s.v).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(s).then(function(t){c.value=t,a(c)},function(t){return r("throw",t,a,u)})}catch(t){u(t)}}var a;this.next||(i(t.prototype),i(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(t,n,o){function i(){return new e(function(n,e){r(t,o,n,e)})}return a=a?a.then(i,i):i()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},3612(t,n,e){"use strict";var o,i,r,a,u;e.d(n,{A:()=>c}),window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const c={debug:!!window.authentication_config.debug,sessionServer:window.authentication_config?window.authentication_config.sessionServer:"",entitlementsEnabled:!!window.authentication_config&&"1"===window.authentication_config.entitlementsEnabled,dropdownEnabled:!!window.authentication_config&&"1"===window.authentication_config.dropdownEnabled,enableReaderDashboardLink:!!window.authentication_config&&"1"===window.authentication_config.enableReaderDashboardLink,enableDashboardCancel:!!window.authentication_config&&"1"===window.authentication_config.enableDashboardCancel,enableDashboardBenefitHub:!!window.authentication_config&&"1"===window.authentication_config.enableDashboardBenefitHub,enableEngageArticleGifting:"1"===(null===(o=window.authentication_config)||void 0===o?void 0:o.articleSharingEnabled)&&"1"===(null===(i=window.authentication_config)||void 0===i?void 0:i.isEngageArticleSharing),enableGiftedArticlesLink:"1"===(null===(r=window.authentication_config)||void 0===r?void 0:r.articleSharingEnabled)&&"1"!==(null===(a=window.authentication_config)||void 0===a?void 0:a.isEngageArticleSharing),enableSavedArticlesLink:"1"===(null===(u=window.authentication_config)||void 0===u?void 0:u.articleSavingEnabled),prosperstackClientid:window.authentication_config?window.authentication_config.prosperstackClientid:"",oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,useTribMainGoogle:!!window.authentication_config&&"1"===window.authentication_config.useTribMainGoogle,isAdfreeArticle:!!window.authentication_config&&"1"===window.authentication_config.isAdfreeArticle,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.authentication_config?window.authentication_config.entitlementsEndpoint:"",entitlementsApiKey:window.authentication_config?window.authentication_config.entitlementsAPIKey:"",linaCheckOnArticles:!!window.authentication_config&&window.authentication_config.linaCheckOnArticles,serverEntitlements:!!window.authentication_config&&window.authentication_config.serverEntitlements,googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:"",newslettersEnabled:!!window.authentication_config&&"1"===window.authentication_config.newslettersEnabled,bcLowaSegements:!!window.authentication_config.bcLowaSegements&&"1"===window.authentication_config.bcLowaSegements,blueconicEnabled:!!window.authentication_config.blueconicEnabled&&"1"===window.authentication_config.blueconicEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog}},3738(t){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},4373(t){t.exports=function(t){var n=Object(t),e=[];for(var o in n)e.unshift(o);return function t(){for(;e.length;)if((o=e.pop())in n)return t.value=o,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4633(t,n,e){var o=e(5172),i=e(6993),r=e(5869),a=e(887),u=e(1791),c=e(4373),s=e(579);function l(){"use strict";var n=i(),e=n.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function d(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===f||"GeneratorFunction"===(n.displayName||n.name))}var p={throw:1,return:2,break:3,continue:3};function h(t){var n,e;return function(o){n||(n={stop:function(){return e(o.a,2)},catch:function(){return o.v},abrupt:function(t,n){return e(o.a,p[t],n)},delegateYield:function(t,i,r){return n.resultName=i,e(o.d,s(t),r)},finish:function(t){return e(o.f,t)}},e=function(t,e,i){o.p=n.prev,o.n=n.next;try{return t(e,i)}finally{n.next=o.n}}),n.resultName&&(n[n.resultName]=o.v,n.resultName=void 0),n.sent=o.v,n.next=o.n;try{return t.call(this,n)}finally{o.p=n.prev,o.n=n.next}}}return(t.exports=l=function(){return{wrap:function(t,e,o,i){return n.w(h(t),e,o,i&&i.reverse())},isGeneratorFunction:d,mark:n.m,awrap:function(t,n){return new o(t,n)},AsyncIterator:u,async:function(t,n,e,o,i){return(d(n)?a:r)(h(t),n,e,o,i)},keys:c,values:s}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},4756(t,n,e){var o=e(4633)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},5172(t){t.exports=function(t,n){this.v=t,this.k=n},t.exports.__esModule=!0,t.exports.default=t.exports},5546(t){function n(e,o,i,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t.exports=n=function(t,e,o,i){function r(e,o){n(t,e,function(t){return this._invoke(e,o,t)})}e?a?a(t,e,{value:o,enumerable:!i,configurable:!i,writable:!i}):t[e]=o:(r("next",0),r("throw",1),r("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,o,i,r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},5869(t,n,e){var o=e(887);t.exports=function(t,n,e,i,r){var a=o(t,n,e,i,r);return a.next().then(function(t){return t.done?t.value:a.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},6993(t,n,e){var o=e(5546);function i(){var n,e,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",u=r.toStringTag||"@@toStringTag";function c(t,i,r,a){var u=i&&i.prototype instanceof l?i:l,c=Object.create(u.prototype);return o(c,"_invoke",function(t,o,i){var r,a,u,c=0,l=i||[],f=!1,d={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(t,e){return r=t,a=0,u=n,d.n=e,s}};function p(t,o){for(a=t,u=o,e=0;!f&&c&&!i&&e3?(i=h===o)&&(u=r[(a=r[4])?5:(a=3,3)],r[4]=r[5]=n):r[0]<=p&&((i=t<2&&po||o>h)&&(r[4]=t,r[5]=o,d.n=h,a=0))}if(i||t>1)return s;throw f=!0,o}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),a=l,u=h;(e=a<2?n:u)||!f;){r||(a?a<3?(a>1&&(d.n=-1),p(a,u)):d.n=u:d.v=u);try{if(c=2,r){if(a||(i="next"),e=r[i]){if(!(e=e.call(r,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=r.return)&&e.call(r),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);r=n}else if((e=(f=d.n<0)?u:t.call(o,d))!==s)break}catch(t){r=n,a=1,u=t}finally{c=1}}return{value:e,done:f}}}(t,r,a),!0),c}var s={};function l(){}function f(){}function d(){}e=Object.getPrototypeOf;var p=[][a]?e(e([][a]())):(o(e={},a,function(){return this}),e),h=d.prototype=l.prototype=Object.create(p);function w(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,o(t,u,"GeneratorFunction")),t.prototype=Object.create(h),t}return f.prototype=d,o(h,"constructor",d),o(d,"constructor",f),f.displayName="GeneratorFunction",o(d,u,"GeneratorFunction"),o(h),o(h,u,"Generator"),o(h,a,function(){return this}),o(h,"toString",function(){return"[object Generator]"}),(t.exports=i=function(){return{w:c,m:w}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}},n={};function e(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return t[o](r,r.exports,e),r.exports}e.d=(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),(()=>{"use strict";function t(t,n,e,o,i,r,a){try{var u=t[r](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(o,i)}function n(n){return function(){var e=this,o=arguments;return new Promise(function(i,r){var a=n.apply(e,o);function u(n){t(a,i,r,u,c,"next",n)}function c(n){t(a,i,r,u,c,"throw",n)}u(void 0)})}}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var n=function(t,n){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==o(n)?n:n+""}function r(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:"onInit",o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.backupTimeoutLength;return o&&!this.runningSophi&&(i=t.defaultTimeoutLength),this.readyInstance&&!1!==this.promiseStatus?s("connextReady promise already exists, status is ".concat(this.promiseStatus,".")):(this.connextTimeout&&this.clearTimeouts(),s("Creating new connext ready promise with timeout of ".concat(i,".")),this.readyInstance=new Promise(function(r){var a=!1;n.promiseStatus="pending";var u=function(t){a||(n.promiseStatus=t,r(t),a=!0)};if("undefined"!=typeof Connext)return s("Connext already ready."),"string"==typeof e&&n.removeEventListener(e),void u(!0);if(!o){var c=1;n.subCheckInterval=setInterval(function(){if("undefined"!=typeof Connext)return s("Sub timeout check -- Connext loaded..."),n.clearTimeouts(),void u(!0);s("Sub timeout check, connext not loaded yet, interval ".concat(c,"...")),c+=1},t.subTimeoutInterval)}n.connextTimeout=setTimeout(function(){if("string"==typeof e&&n.removeEventListener(e),"undefined"!=typeof Connext)return s("Connext actually did load..."),void u(!0);s("Connext did not load in time. Resolving false..."),n.clearTimeouts(),u(!1)},i),s("Listening for Connext Ready event...");var l=function(){s("Connext loaded!"),n.clearTimeouts(),"string"==typeof e&&n.removeEventListener(e),u(!0)};document.addEventListener("string"==typeof e?e:"onFinish",l),"string"==typeof e&&(n.eventListeners[e]=l),s("Connext added event listener for ".concat(e))})),this.readyInstance}},{key:"runConnext",value:function(){s("Running Connext now..."),Connext.Run(),this.connextAlreadyRan=!0,this.runConnextIfSilentTimer&&clearTimeout(this.runConnextIfSilentTimer)}},{key:"clearTimeouts",value:function(){clearTimeout(this.connextTimeout),this.subCheckInterval&&clearInterval(this.subCheckInterval),this.connextTimeout=null,this.subCheckInterval=null}},{key:"rerunConnextEntitlements",value:(l=n(u.mark(function t(){var n,e,o=arguments;return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>0&&void 0!==o[0]&&o[0],e=!(o.length>1&&void 0!==o[1])||o[1],t.next=1,this.connextReady("onInit",e);case 1:if(t.sent){t.next=2;break}return t.abrupt("return");case 2:if(Connext&&!this.connextAlreadyRan){t.next=3;break}return t.abrupt("return");case 3:n&&Connext.GetOptions().Silentmode?this.runConnext():n?s("Not rerunning Connext"):this.runConnext();case 4:case"end":return t.stop()}},t,this)})),function(){return l.apply(this,arguments)})},{key:"runConnextIfSilent",value:(c=n(u.mark(function t(){var n;return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.connextReady();case 1:if(n=t.sent,!this.runningSophi&&!this.connextAlreadyRan){t.next=2;break}return t.abrupt("return");case 2:n&&Connext.GetOptions().Silentmode&&(s("Silent mode, running Connext now."),this.rerunConnextEntitlements());case 3:case"end":return t.stop()}},t,this)})),function(){return c.apply(this,arguments)})},{key:"removeEventListener",value:function(t){this.eventListeners[t]?(document.removeEventListener(t,this.eventListeners[t]),delete this.eventListeners[t],s("Connext removed event listener for ".concat(t,"."))):s("No event listener to remove for ".concat(t,"."))}}],o&&r(e.prototype,o),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,o,i,c,l}();a(l,"defaultTimeoutLength",7e3),a(l,"backupTimeoutLength",1e5),a(l,"subTimeoutInterval",5e3),window.ConnextUtils=window.ConnextUtils||new l})()})(); //# sourceMappingURL=mng-digisubs.connextUtils.bundle.js.map;