/*! For license information please see mng-digisubs.apple.bundle.js.LICENSE.txt */ (()=>{var e={251(e,t){t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,c=(1<>1,u=-7,d=r?o-1:0,p=r?-1:1,m=e[t+d];for(d+=p,i=m&(1<<-u)-1,m>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,n),i-=l}return(m?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,c,l=8*i-o-1,u=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,f=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+m]=255&s,m+=f,s/=256,o-=8);for(a=a<0;e[r+m]=255&a,m+=f,a/=256,l-=8);e[r+m-f]|=128*h}},579(e,t,r){var n=r(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,r){var n=r(6993),o=r(1791);e.exports=function(e,t,r,i,a){return new o(n().w(e,t,r,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1791(e,t,r){var n=r(5172),o=r(5546);e.exports=function e(t,r){function i(e,o,a,s){try{var c=t[e](o),l=c.value;return l instanceof n?r.resolve(l.v).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):r.resolve(l).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,s)})}catch(e){s(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,n){function o(){return new r(function(t,r){i(e,n,t,r)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},3612(e,t,r){"use strict";var n,o,i,a,s;r.d(t,{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===(n=window.authentication_config)||void 0===n?void 0:n.articleSharingEnabled)&&"1"===(null===(o=window.authentication_config)||void 0===o?void 0:o.isEngageArticleSharing),enableGiftedArticlesLink:"1"===(null===(i=window.authentication_config)||void 0===i?void 0:i.articleSharingEnabled)&&"1"!==(null===(a=window.authentication_config)||void 0===a?void 0:a.isEngageArticleSharing),enableSavedArticlesLink:"1"===(null===(s=window.authentication_config)||void 0===s?void 0:s.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(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4373(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633(e,t,r){var n=r(5172),o=r(6993),i=r(5869),a=r(887),s=r(1791),c=r(4373),l=r(579);function u(){"use strict";var t=o(),r=t.m(u),d=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var m={throw:1,return:2,break:3,continue:3};function f(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,m[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,l(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,r,n,o){return t.w(f(e),r,n,o&&o.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:s,async:function(e,t,r,n,o){return(p(t)?a:i)(f(e),t,r,n,o)},keys:c,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},4756(e,t,r){var n=r(4633)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},5172(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},5546(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5869(e,t,r){var n=r(887);e.exports=function(e,t,r,o,i){var a=n(e,t,r,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},6993(e,t,r){var n=r(5546);function o(){var t,r,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function c(e,o,i,a){var s=o&&o.prototype instanceof u?o:u,c=Object.create(s.prototype);return n(c,"_invoke",function(e,n,o){var i,a,s,c=0,u=o||[],d=!1,p={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,r){return i=e,a=0,s=t,p.n=r,l}};function m(e,n){for(a=e,s=n,r=0;!d&&c&&!o&&r3?(o=f===n)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=m&&((o=e<2&&mn||n>f)&&(i[4]=e,i[5]=n,p.n=f,a=0))}if(o||e>1)return l;throw d=!0,n}return function(o,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),a=u,s=f;(r=a<2?t:s)||!d;){i||(a?a<3?(a>1&&(p.n=-1),m(a,s)):p.n=s:p.v=s);try{if(c=2,i){if(a||(o="next"),r=i[o]){if(!(r=r.call(i,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,a<2&&(a=0)}else 1===a&&(r=i.return)&&r.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((r=(d=p.n<0)?s:e.call(n,p))!==l)break}catch(e){i=t,a=1,s=e}finally{c=1}}return{value:r,done:d}}}(e,i,a),!0),c}var l={};function u(){}function d(){}function p(){}r=Object.getPrototypeOf;var m=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),f=p.prototype=u.prototype=Object.create(m);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,n(e,s,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=p,n(f,"constructor",p),n(p,"constructor",d),d.displayName="GeneratorFunction",n(p,s,"GeneratorFunction"),n(f),n(f,s,"Generator"),n(f,a,function(){return this}),n(f,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7526(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],c=i[1],l=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),u=0,d=c>0?a-4:a;for(r=0;r>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,c=n-o;sc?c:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function l(e,t,r){for(var n,o=[],i=t;ia)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|h(e,t);let n=s(r);const o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return m(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return m(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return m(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const o=function(e){if(c.isBuffer(e)){const t=0|f(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),r=s(t);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(o)return n?-1:W(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return O(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return N(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function A(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),q(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:E(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):E(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function E(e,t,r,n,o){let i,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let n=-1;for(i=r;is&&(r=s-c),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=t.length;let a;for(n>i/2&&(n=i/2),a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function N(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(i=c));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:r=e[o+1],n=e[o+2],s=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,o){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(i,a),l=this.slice(n,o),u=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":case"latin1":case"binary":return v(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function O(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;on)&&(r=n);let o="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function M(e,t,r,n,o){X(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function U(e,t,r,n,o){X(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function _(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=$(function(e){j(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=$(function(e){j(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||D(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){B(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){B(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=$(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=$(function(e,t=0){return U(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let o=0,i=1,a=0;for(this[t]=255&e;++o>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=$(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=$(function(e,t=0){return U(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function X(e,t,r,n,o,i){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new x.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){j(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||Y(t,e.length-(r+1))}(n,o,i)}function j(e,t){if("number"!=typeof e)throw new x.ERR_INVALID_ARG_TYPE(t,"number",e)}function Y(e,t,r){if(Math.floor(e)!==e)throw j(e,r),new x.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new x.ERR_BUFFER_OUT_OF_BOUNDS;throw new x.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=G(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=G(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const K=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let a=0;a55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,r,n){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}const z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function $(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};function t(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function n(e){return function(){var r=this,n=arguments;return new Promise(function(o,i){var a=e.apply(r,n);function s(e){t(a,o,i,s,c,"next",e)}function c(e){t(a,o,i,s,c,"throw",e)}s(void 0)})}}r.r(e),r.d(e,{hasBrowserEnv:()=>Be,hasStandardBrowserEnv:()=>Ue,hasStandardBrowserWebWorkerEnv:()=>_e,navigator:()=>Me,origin:()=>He});var o=r(4756);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function s(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(t)}catch(e){return atob(t)}}u.prototype.name="InvalidTokenError","function"==typeof SuppressedError&&SuppressedError;var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e,t){return e(t={exports:{}},t.exports),t.exports}var h=f(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,r){var n=e.locked.get(t);void 0===n?void 0===r?e.locked.set(t,[]):e.locked.set(t,[r]):void 0!==r&&(n.unshift(r),e.locked.set(t,n))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise(function(r,n){e.isLocked(t)?e.addToLocked(t,r):(e.addToLocked(t),r())})},this.unlock=function(t){var r=e.locked.get(t);if(void 0!==r&&0!==r.length){var n=r.pop();e.locked.set(t,r),void 0!==n&&setTimeout(n,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return r.getInstance()}});m(h);var g=m(f(function(e,t){var r=p&&p.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(a,s)}c((n=n.apply(e,t||[])).next())})},n=p&&p.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?setTimeout(r,t):r(null)}}window.addEventListener("storage",a),e.addToWaiting(a);var s=setTimeout(a,Math.max(0,t-Date.now()))})];case 1:return r.sent(),[2]}})})},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter(function(e){return e!==t}))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach(function(e){return e()})},e.prototype.releaseLock=function(e){return r(this,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}})})},e.prototype.releaseLock__private__=function(t){return r(this,void 0,void 0,function(){var r,o,s,c;return n(this,function(n){switch(n.label){case 0:return r=void 0===this.storageHandler?a:this.storageHandler,o=i+"-"+t,null===(s=r.getItemSync(o))?[2]:(c=JSON.parse(s)).id!==this.id?[3,2]:[4,h.default().lock(c.iat)];case 1:n.sent(),this.acquiredIatSet.delete(c.iat),r.removeItemSync(o),h.default().unlock(c.iat),e.notifyWaiters(),n.label=2;case 2:return[2]}})})},e.lockCorrector=function(t){for(var r=Date.now()-5e3,n=t,o=[],a=0;;){var s=n.keySync(a);if(null===s)break;o.push(s),a++}for(var c=!1,l=0;l(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0}));else{const e=32768;y=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const r=[];for(let n=0;n{const t=w.call(e);return O[t]||(O[t]=t.slice(8,-1).toLowerCase())});var O;const C=e=>(e=e.toLowerCase(),t=>T(t)===e),P=e=>t=>typeof t===e,{isArray:L}=Array,D=P("undefined");function B(e){return null!==e&&!D(e)&&null!==e.constructor&&!D(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const M=C("ArrayBuffer");const U=P("string"),_=P("function"),H=P("number"),k=e=>null!==e&&"object"==typeof e,x=e=>{if("object"!==T(e))return!1;const t=R(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||I in e||N in e)},F=C("Date"),G=C("File"),X=C("Blob"),j=C("FileList"),Y=C("URLSearchParams"),[K,W,V,Z]=["ReadableStream","Request","Response","Headers"].map(C);function J(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),L(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,Q=e=>!D(e)&&e!==z;const ee=(te="undefined"!=typeof Uint8Array&&R(Uint8Array),e=>te&&e instanceof te);var te;const re=C("HTMLFormElement"),ne=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),oe=C("RegExp"),ie=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};J(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)};const ae=C("AsyncFunction"),se=(ce="function"==typeof setImmediate,le=_(z.postMessage),ce?setImmediate:le?(ue=`axios@${Math.random()}`,de=[],z.addEventListener("message",({source:e,data:t})=>{e===z&&t===ue&&de.length&&de.shift()()},!1),e=>{de.push(e),z.postMessage(ue,"*")}):e=>setTimeout(e));var ce,le,ue,de;const pe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):"undefined"!=typeof process&&process.nextTick||se,me={isArray:L,isArrayBuffer:M,isBuffer:B,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||_(e.append)&&("formdata"===(t=T(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&M(e.buffer),t},isString:U,isNumber:H,isBoolean:e=>!0===e||!1===e,isObject:k,isPlainObject:x,isEmptyObject:e=>{if(!k(e)||B(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:K,isRequest:W,isResponse:V,isHeaders:Z,isUndefined:D,isDate:F,isFile:G,isBlob:X,isRegExp:oe,isFunction:_,isStream:e=>k(e)&&_(e.pipe),isURLSearchParams:Y,isTypedArray:ee,isFileList:j,forEach:J,merge:function e(){const{caseless:t,skipUndefined:r}=Q(this)&&this||{},n={},o=(o,i)=>{const a=t&&q(n,i)||i;x(n[a])&&x(o)?n[a]=e(n[a],o):x(o)?n[a]=e({},o):L(o)?n[a]=o.slice():r&&D(o)||(n[a]=o)};for(let e=0,t=arguments.length;e(J(t,(t,n)=>{r&&_(t)?e[n]=v(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&R(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:C,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(L(e))return e;let t=e.length;if(!H(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[N]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:re,hasOwnProperty:ne,hasOwnProp:ne,reduceDescriptors:ie,freezeMethods:e=>{ie(e,(t,r)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];_(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return L(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:q,global:z,isContextDefined:Q,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[I]&&e[N])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(k(e)){if(t.indexOf(e)>=0)return;if(B(e))return e;if(!("toJSON"in e)){t[n]=e;const o=L(e)?[]:{};return J(e,(e,t)=>{const i=r(e,n+1);!D(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:ae,isThenable:e=>e&&(k(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:se,asap:pe,isIterable:e=>null!=e&&_(e[N])};function fe(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}me.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:me.toJSONObject(this.config),code:this.code,status:this.status}}});const he=fe.prototype,ge={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ge[e]={value:e}}),Object.defineProperties(fe,ge),Object.defineProperty(he,"isAxiosError",{value:!0}),fe.from=(e,t,r,n,o,i)=>{const a=Object.create(he);me.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return fe.call(a,s,c,r,n,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const ye=fe;var Ae=r(8287).hp;function Ee(e){return me.isPlainObject(e)||me.isArray(e)}function Se(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,r){return e?e.concat(t).map(function(e,t){return e=Se(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const ve=me.toFlatObject(me,{},null,function(e){return/^is[A-Z]/.test(e)});const we=function(e,t,r){if(!me.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=me.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!me.isUndefined(t[e])})).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&me.isSpecCompliantForm(t);if(!me.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(me.isDate(e))return e.toISOString();if(me.isBoolean(e))return e.toString();if(!s&&me.isBlob(e))throw new ye("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(e)||me.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Ae.from(e):e}function l(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(me.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(me.isArray(e)&&function(e){return me.isArray(e)&&!e.some(Ee)}(e)||(me.isFileList(e)||me.endsWith(r,"[]"))&&(s=me.toArray(e)))return r=Se(r),s.forEach(function(e,n){!me.isUndefined(e)&&null!==e&&t.append(!0===a?be([r],n,i):null===a?r:r+"[]",c(e))}),!1;return!!Ee(e)||(t.append(be(o,r,i),c(e)),!1)}const u=[],d=Object.assign(ve,{defaultVisitor:l,convertValue:c,isVisitable:Ee});if(!me.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!me.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),me.forEach(r,function(r,i){!0===(!(me.isUndefined(r)||null===r)&&o.call(t,r,me.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),u.pop()}}(e),t};function Re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Ne(e,t){this._pairs=[],e&&we(e,this,t)}const Ie=Ne.prototype;Ie.append=function(e,t){this._pairs.push([e,t])},Ie.toString=function(e){const t=e?function(t){return e.call(this,t,Re)}:Re;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Te=Ne;function Oe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ce(e,t,r){if(!t)return e;const n=r&&r.encode||Oe;me.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):me.isURLSearchParams(t)?t.toString():new Te(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Pe=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){me.forEach(this.handlers,function(t){null!==t&&e(t)})}},Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},De={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Te,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Be="undefined"!=typeof window&&"undefined"!=typeof document,Me="object"==typeof navigator&&navigator||void 0,Ue=Be&&(!Me||["ReactNative","NativeScript","NS"].indexOf(Me.product)<0),_e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,He=Be&&window.location.href||"http://localhost",ke={...e,...De};const xe=function(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&me.isArray(n)?n.length:i,s)return me.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&me.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&me.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null};const Fe={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=me.isObject(e);o&&me.isHTMLForm(e)&&(e=new FormData(e));if(me.isFormData(e))return n?JSON.stringify(xe(e)):e;if(me.isArrayBuffer(e)||me.isBuffer(e)||me.isStream(e)||me.isFile(e)||me.isBlob(e)||me.isReadableStream(e))return e;if(me.isArrayBufferView(e))return e.buffer;if(me.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return we(e,new ke.classes.URLSearchParams,{visitor:function(e,t,r,n){return ke.isNode&&me.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=me.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return we(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(me.isString(e))try{return(t||JSON.parse)(e),me.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Fe.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(me.isResponse(e)||me.isReadableStream(e))return e;if(e&&me.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw ye.from(e,ye.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],e=>{Fe.headers[e]={}});const Ge=Fe,Xe=me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),je=Symbol("internals");function Ye(e){return e&&String(e).trim().toLowerCase()}function Ke(e){return!1===e||null==e?e:me.isArray(e)?e.map(Ke):String(e)}function We(e,t,r,n,o){return me.isFunction(n)?n.call(this,t,r):(o&&(t=r),me.isString(t)?me.isString(n)?-1!==t.indexOf(n):me.isRegExp(n)?n.test(t):void 0:void 0)}class Ve{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Ye(t);if(!o)throw new Error("header name must be a non-empty string");const i=me.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Ke(e))}const i=(e,t)=>me.forEach(e,(e,r)=>o(e,r,t));if(me.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(me.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&Xe[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(me.isObject(e)&&me.isIterable(e)){let r,n,o={};for(const t of e){if(!me.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?me.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=Ye(e)){const r=me.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(me.isFunction(t))return t.call(this,e,r);if(me.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ye(e)){const r=me.findKey(this,e);return!(!r||void 0===this[r]||t&&!We(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Ye(e)){const o=me.findKey(r,e);!o||t&&!We(0,r[o],o,t)||(delete r[o],n=!0)}}return me.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!We(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return me.forEach(this,(n,o)=>{const i=me.findKey(r,o);if(i)return t[i]=Ke(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ke(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return me.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&me.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[je]=this[je]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ye(e);t[n]||(!function(e,t){const r=me.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return me.isArray(e)?e.forEach(n):n(e),this}}Ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),me.reduceDescriptors(Ve.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),me.freezeMethods(Ve);const Ze=Ve;function Je(e,t){const r=this||Ge,n=t||r,o=Ze.from(n.headers);let i=n.data;return me.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function qe(e){return!(!e||!e.__CANCEL__)}function ze(e,t,r){ye.call(this,null==e?"canceled":e,ye.ERR_CANCELED,t,r),this.name="CanceledError"}me.inherits(ze,ye,{__CANCEL__:!0});const $e=ze;function Qe(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new ye("Request failed with status code "+r.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const et=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];o||(o=c),r[i]=s,n[i]=c;let u=a,d=0;for(;u!==i;)d+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r)]},rt=(e,t,r=3)=>{let n=0;const o=et(50,250);return tt(r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s);n=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},nt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ot=e=>(...t)=>me.asap(()=>e(...t)),it=ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ke.origin),ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent)):()=>!0,at=ke.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];me.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),me.isString(n)&&s.push(`path=${n}`),me.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),me.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function st(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ct=e=>e instanceof Ze?{...e}:e;function lt(e,t){t=t||{};const r={};function n(e,t,r,n){return me.isPlainObject(e)&&me.isPlainObject(t)?me.merge.call({caseless:n},e,t):me.isPlainObject(t)?me.merge({},t):me.isArray(t)?t.slice():t}function o(e,t,r,o){return me.isUndefined(t)?me.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!me.isUndefined(t))return n(void 0,t)}function a(e,t){return me.isUndefined(t)?me.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(ct(e),ct(t),0,!0)};return me.forEach(Object.keys({...e,...t}),function(n){const i=c[n]||o,a=i(e[n],t[n],n);me.isUndefined(a)&&i!==s||(r[n]=a)}),r}const ut=e=>{const t=lt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=Ze.from(a),t.url=Ce(st(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),me.isFormData(r))if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(me.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&a.set(e,r)})}if(ke.hasStandardBrowserEnv&&(n&&me.isFunction(n)&&(n=n(t)),n||!1!==n&&it(t.url))){const e=o&&i&&at.read(i);e&&a.set(o,e)}return t},dt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=ut(e);let o=n.data;const i=Ze.from(n.headers).normalize();let a,s,c,l,u,{responseType:d,onUploadProgress:p,onDownloadProgress:m}=n;function f(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const n=Ze.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Qe(function(e){t(e),f()},function(e){r(e),f()},{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(r(new ye("Request aborted",ye.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new ye(n,ye.ERR_NETWORK,e,h);o.event=t||null,r(o),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Le;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new ye(t,o.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&me.forEach(i.toJSON(),function(e,t){h.setRequestHeader(t,e)}),me.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),d&&"json"!==d&&(h.responseType=n.responseType),m&&([c,u]=rt(m,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,l]=rt(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new $e(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);y&&-1===ke.protocols.indexOf(y)?r(new ye("Unsupported protocol "+y+":",ye.ERR_BAD_REQUEST,e)):h.send(o||null)})},pt=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof ye?t:new $e(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=()=>me.asap(a),s}},mt=function*(e,t){let r=e.byteLength;if(!t||r{const o=async function*(e,t){for await(const r of ft(e))yield*mt(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:gt}=me,yt=(({Request:e,Response:t})=>({Request:e,Response:t}))(me.global),{ReadableStream:At,TextEncoder:Et}=me.global,St=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},bt=e=>{e=me.merge.call({skipUndefined:!0},yt,e);const{fetch:t,Request:r,Response:n}=e,o=t?gt(t):"function"==typeof fetch,i=gt(r),a=gt(n);if(!o)return!1;const s=o&>(At),c=o&&("function"==typeof Et?(l=new Et,e=>l.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var l;const u=i&&s&&St(()=>{let e=!1;const t=new r(ke.origin,{body:new At,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=a&&s&&St(()=>me.isReadableStream(new n("").body)),p={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new ye(`Response type '${e}' is not supported`,ye.ERR_NOT_SUPPORT,r)})});const m=async(e,t)=>{const n=me.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(me.isBlob(e))return e.size;if(me.isSpecCompliantForm(e)){const t=new r(ke.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return me.isArrayBufferView(e)||me.isArrayBuffer(e)?e.byteLength:(me.isURLSearchParams(e)&&(e+=""),me.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:a,data:s,signal:c,cancelToken:l,timeout:f,onDownloadProgress:h,onUploadProgress:g,responseType:y,headers:A,withCredentials:E="same-origin",fetchOptions:S}=ut(e),b=t||fetch;y=y?(y+"").toLowerCase():"text";let v=pt([c,l&&l.toAbortSignal()],f),w=null;const R=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let N;try{if(g&&u&&"get"!==a&&"head"!==a&&0!==(N=await m(A,s))){let e,t=new r(o,{method:"POST",body:s,duplex:"half"});if(me.isFormData(s)&&(e=t.headers.get("content-type"))&&A.setContentType(e),t.body){const[e,r]=nt(N,rt(ot(g)));s=ht(t.body,65536,e,r)}}me.isString(E)||(E=E?"include":"omit");const t=i&&"credentials"in r.prototype,c={...S,signal:v,method:a.toUpperCase(),headers:A.normalize().toJSON(),body:s,duplex:"half",credentials:t?E:void 0};w=i&&new r(o,c);let l=await(i?b(w,S):b(o,c));const f=d&&("stream"===y||"response"===y);if(d&&(h||f&&R)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t]});const t=me.toFiniteNumber(l.headers.get("content-length")),[r,o]=h&&nt(t,rt(ot(h),!0))||[];l=new n(ht(l.body,65536,r,()=>{o&&o(),R&&R()}),e)}y=y||"text";let I=await p[me.findKey(p,y)||"text"](l,e);return!f&&R&&R(),await new Promise((t,r)=>{Qe(t,r,{data:I,headers:Ze.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:w})})}catch(t){if(R&&R(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ye("Network Error",ye.ERR_NETWORK,e,w),{cause:t.cause||t});throw ye.from(t,t&&t.code,e,w)}}},vt=new Map,wt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,l=vt;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:bt(t)),l=s;return s},Rt=(wt(),{http:null,xhr:dt,fetch:{get:wt}});me.forEach(Rt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Nt=e=>`- ${e}`,It=e=>me.isFunction(e)||null===e||!1===e;const Tt={getAdapter:function(e,t){e=me.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(Nt).join("\n"):" "+Nt(e[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Rt};function Ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $e(null,e)}function Ct(e){Ot(e),e.headers=Ze.from(e.headers),e.data=Je.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Tt.getAdapter(e.adapter||Ge.adapter,e)(e).then(function(t){return Ot(e),t.data=Je.call(e,e.transformResponse,t),t.headers=Ze.from(t.headers),t},function(t){return qe(t)||(Ot(e),t&&t.response&&(t.response.data=Je.call(e,e.transformResponse,t.response),t.response.headers=Ze.from(t.response.headers))),Promise.reject(t)})}const Pt="1.13.2",Lt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Dt={};Lt.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Pt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new ye(n(o," has been removed"+(t?" in "+t:"")),ye.ERR_DEPRECATED);return t&&!Dt[o]&&(Dt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},Lt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const Bt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new ye("option "+i+" must be "+r,ye.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ye("Unknown option "+i,ye.ERR_BAD_OPTION)}},validators:Lt},Mt=Bt.validators;class Ut{constructor(e){this.defaults=e||{},this.interceptors={request:new Pe,response:new Pe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=lt(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&Bt.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),null!=n&&(me.isFunction(n)?t.paramsSerializer={serialize:n}:Bt.assertOptions(n,{encode:Mt.function,serialize:Mt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Bt.assertOptions(t,{baseUrl:Mt.spelling("baseURL"),withXsrfToken:Mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&me.merge(o.common,o[t.method]);o&&me.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Ze.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Ct.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new $e(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new Ht(function(t){e=t});return{token:t,cancel:e}}}const kt=Ht;const xt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xt).forEach(([e,t])=>{xt[t]=e});const Ft=xt;const Gt=function e(t){const r=new _t(t),n=v(_t.prototype.request,r);return me.extend(n,_t.prototype,r,{allOwnKeys:!0}),me.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(lt(t,r))},n}(Ge);Gt.Axios=_t,Gt.CanceledError=$e,Gt.CancelToken=kt,Gt.isCancel=qe,Gt.VERSION=Pt,Gt.toFormData=we,Gt.AxiosError=ye,Gt.Cancel=Gt.CanceledError,Gt.all=function(e){return Promise.all(e)},Gt.spread=function(e){return function(t){return e.apply(null,t)}},Gt.isAxiosError=function(e){return me.isObject(e)&&!0===e.isAxiosError},Gt.mergeConfig=lt,Gt.AxiosHeaders=Ze,Gt.formToJSON=e=>xe(me.isHTMLForm(e)?new FormData(e):e),Gt.getAdapter=Tt.getAdapter,Gt.HttpStatusCode=Ft,Gt.default=Gt;const Xt=Gt;var jt=r(3612);const Yt=function(){if(jt.A.debug){for(var e,t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=$t().hostname;if(e&&"string"==typeof e&&e.length>0&&(t=e,e.includes("vipdev.lndo.site")))return"".concat(e.split(".")[0],".com");var r=t.split(".");return"".concat(r[r.length-2],".").concat(r[r.length-1])},tr=function(){var e=er();return".".concat(e)},rr=function(e,t,r){var n="".concat(e,"=").concat(t,";");void 0!==r?(Yt("Setting cookie with options: ",r),Object.entries(r).forEach(function(e){var t=l(e,2),r=t[0],o=t[1];if("expires"===r){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),n+="expires=".concat(i.toUTCString(),";")}else n+="".concat(r,"=").concat(o,";")})):n+="path=/;",document.cookie=n},nr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n="".concat(e,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),o=er(),i=[o,"www".concat(o),".www".concat(o)];r&&i.push(r),Object.entries(t).forEach(function(e){var t=l(e,2),r=t[0],o=t[1];n+="".concat(r,"=").concat(o,";")}),0===Object.keys(t).length&&(n+="path=/;"),document.cookie=n,i.forEach(function(e){document.cookie=n.concat("domain=",e,";")})},or=function(){return $t().host.replace(/^(?:www\.|develop\.|staging\.|preprod\.)/,"").replace("vipdev.lndo.site","com")},ir=function(e){return function(e,t){if("string"!=typeof e)throw new u("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new u(`Invalid token specified: missing part #${r+1}`);let o;try{o=d(n)}catch(e){throw new u(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new u(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}(e)},ar=function(){var e=er();return["mcall.com","courant.com","sun-sentinel.com","orlandosentinel.com","growthspotter.com","dailypress.com","pilotonline.com","nydailynews.com","baltimoresun.com","capitalgazette.com","chicagotribune.com","trbdevcloud.com"].includes(e)},sr=function(){return"complete"===document.readyState},cr=function(){return new Promise(function(e){if(("interactive"===document.readyState||sr())&&window.dataLayer)Yt("Utils digisubsDataLayerLoaded: ","Document is in interactive state, resolving."),e();else{Yt("Utils digisubsDataLayerLoaded: ","Waiting for the dataLayer to load...");var t=setInterval(n(o.mark(function r(){return o.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:window.dataLayer&&window.dataLayer.length>2&&(clearInterval(t),e(!0));case 1:case"end":return r.stop()}},r)})),50)}})},lr=function(){var e=n(o.mark(function e(t){var r,n,i;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,cr();case 1:return Yt("Utils getDataLayerObject: looking for this dataLayer object ",t),window.dataLayer=window.dataLayer||[],r="",Yt("Utils getDataLayerObject: here is dataLayer length ",window.dataLayer.length),n=function(e){return Yt("Utils dataLayerLoop: look for this element ",e),e[t]?(Yt("Utils dataLayerLoop: found ",e[t]),r=e[t],e[t]):(Yt("Utils dataLayerLoop: dataLayer search ",!1),!1)},i=window.dataLayer.some(n),e.abrupt("return",i?r:"");case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ur=function(){var e=n(o.mark(function e(){var t,r,n=arguments;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:"Page Type",e.next=1,lr(t);case 1:return r=e.sent,Yt("utils | pageType: page type is ",r),e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),dr=function(){return new Promise(function(e,t){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(Yt("utils | Authentication already ready: ",window.MNGAuthentication.authenticationReady),e(window.MNGAuthentication.authenticationReady)):(Yt("utils | Adding authenticationReady listener..."),window.addEventListener("authenticationReady",function(r){try{var n=r.detail||{};Yt("utils | Event: authentication ready: ",n),e(n)}catch(e){Yt(e),t(e)}},!1))})},pr=function(){var e=n(o.mark(function e(){return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){return jt.A.entitlementsEnabled?void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady?(Yt("Entitlements already present:",window.MNGAuthentication.entitlementsReady),void e(window.MNGAuthentication.entitlementsReady)):void window.addEventListener("entitlementsReady",function(r){try{var n=r.detail||{};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.entitlementsReady=n,Yt("Received entitlementsReady event:",n),e(n)}catch(e){Kt("Error handling entitlementsReady event:",e),t(e)}},{once:!0}):(Yt("Entitlements disabled in settings."),void e(!1))}));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),mr=function(){Yt("Clearing entitlements...");try{nr(Wt,{path:"/"})}catch(e){Yt("Failed to delete legacy cookie: ",e)}try{nr(Wt,{path:"/",domain:er(),expires:365,secure:!0})}catch(e){Yt("Failed to delete entitlements cookie: ",e)}try{window.localStorage.removeItem(Vt)}catch(e){Yt("Failed to remove local storage: ",e)}},fr=function(e){Yt("starting simpleEmailValidation");if(!e)return{valid:!1,message:"Please enter an email."};if(!/^(([^<>()[\]\\.,;:\s@']+(\.[^<>()[\]\\.,;:\s@']+)*)|('.+'))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i.test(e))return{valid:!1,message:"Please enter a valid email."};var t=e.match(/\.([^.\n\s]*)$/)[1].toUpperCase(),r=["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMAZON","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CASA","CASE","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CPA","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DOG","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUNLOP","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GAY","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","JAGUAR","JAVA","JCB","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIDS","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LK","LLC","LLP","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUSIC","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NAGOYA","NAME","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","RACING","RADIO","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIL","RIO","RIP","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPA","SPACE","SPORT","SPOT","SR","SRL","SS","ST","STADA","STAPLES","STAR","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWISS","SX","SY","SYDNEY","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4DBRK0CE","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CCKWCXETD","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ480N2RG","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBCPQ6GPA1A","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PGBS0DH","XN--PSSY2U","XN--Q7CE6A","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXA6A","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"].includes(t);return Yt("simpleEmailValidation: ","TLD search ".concat(r)),!1===r?{valid:!1,message:"Please enter a valid email domain."}:-1===["zzz.pl"].findIndex(function(t){return t===e.split("@")[1]})?{valid:!0,message:"Valid"}:{valid:!1,message:"Please enter a valid email."}};window.simpleEmailValidation=fr;window.validatePhoneNumber=function(e){return/^[0-9]([0-9 -])*[0-9]$/.test(e)};var hr=function(e){jt.A.datadogEnabled&&window.DD_RUM.addTiming(e)},gr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return new Promise(function(t,r){var i={sspw:null,sophiClient:null,engagePaywall:null,engageStatus:null},a=function(){var a=n(o.mark(function n(){var a,s,c,l,u,d,p,m,f,h,g;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,"1"!==(null===(a=window.sophi_config)||void 0===a?void 0:a.enableSophiSSPW)){n.next=1;break}if(!document.getElementById("server-paywall")){n.next=1;break}return i.sspw=!0,n.abrupt("return",t({paywall:!0,details:Jt({},i)}));case 1:return n.next=2,ur();case 2:return c=n.sent,n.next=3,lr("Paywall_Level");case 3:if(l=n.sent,"article"===c&&"free"!==l){n.next=4;break}return n.abrupt("return",t({paywall:!1,details:"article"!==c?"Page type is not an article":"Free article"}));case 4:return n.next=5,pr();case 5:if(!(u=n.sent)||!u.isEntitled){n.next=6;break}return n.abrupt("return",t({paywall:!1,details:"Entitled User"}));case 6:if("premium"!==l){n.next=7;break}return n.abrupt("return",t({paywall:!0,details:"Premium article"}));case 7:if(d=null===(s=window.ConnextUtils)||void 0===s?void 0:s.runningSophi,Yt("checkPaywallStatus - Sophi is running: ",d),!d){n.next=8;break}window.ConnextUtils.connextAlreadyRan&&window.sophiWallConfig&&!window.sophiWallConfig.error&&"paywall"===window.sophiWallConfig.wallType?(i.sophiClient=!0,i.engageStatus=!0,i.engagePaywall=!0):window.addEventListener("onPaywallShown",function(){return"paywall"===window.sophiWallConfig.wallType&&(i.sophiClient=!0),t({paywall:!0,details:Jt({},i)})},{once:!0}),n.next=12;break;case 8:if(d){n.next=12;break}return p=window.ConnextUtils.connextReady("onPaywallShown",!1),m=new Promise(function(t,r){return setTimeout(function(){return r(new Error("No Engage paywall within 10 seconds, resolving as no paywall."))},e)}),n.prev=9,n.next=10,Promise.race([p,m]);case 10:!0===(f=n.sent)?(i.engagePaywall=!0,i.engageStatus="Engage paywall detected"):(i.engagePaywall=!1,i.engageStatus="Engage response: ".concat(f)),n.next=12;break;case 11:n.prev=11,h=n.catch(9),i.engagePaywall=!1,i.engageStatus="Engage response: ".concat(h);case 12:return n.abrupt("return",t({paywall:Object.values(i).some(function(e){return e}),details:Jt({},i)}));case 13:n.prev=13,g=n.catch(0),r(g);case 14:case"end":return n.stop()}},n,null,[[0,13],[9,11]])}));return function(){return a.apply(this,arguments)}}();a()})};"undefined"!=typeof window&&(window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.checkPaywallStatus=gr);function yr(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"Apple";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.paymentSource=t,this.dynamicOfferCodeId="",this.siteName=or(),this.siteNameParsed=this.siteName.replace("www.","").replace("preprod.","").replace("develop.","").replace("local","com").replace("staging.",""),this.offerGroup=null,this.offerId=null,this.terms="",this.tokenReady=!1,this.paywayRequestToken=null,this.transactionName="",this.site=Cr[this.siteNameParsed],this.siteCode=this.site.code,this.loggedInUserData=null,this.email="",this.uuid="",this.offerDetails=null,this.entitlementToken="",this.sourceId=0,this.serviceUrl="https://paywayws.com/PaywayWS/AccessTokens",this.billingUrl="https://paywayws.com/PaywayWS/CreditCards",this.safeURL=""},[{key:"queuePaywaySession",value:(i=n(o.mark(function e(t){var r,n,i,a,s,c,l,u;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Yt("APPLE PAY | queue session started"),r=document.querySelector(".apple-pay-button"),n=document.querySelector(".terms"),e.next=1,lr("URL");case 1:if(this.safeURL=e.sent,this.safeURL.includes("staging")||this.safeURL.includes("develop")?(this.serviceUrl="https://paywaywsdev.com/PaywayWS/AccessTokens",this.billingUrl="https://paywaywsdev.com/PaywayWS/CreditCards",this.offerGroup=r.dataset.offergroup,this.offerId=r.dataset.offercode,this.terms=n.textContent):(this.offerGroup=r.dataset.offergroup,this.offerId=r.dataset.offercode,this.terms=n.textContent),this.sourceId=window.apple_config.sourceId?parseInt(window.apple_config.sourceId,10):0,this.offerDetails=this.getBillingDataLocallyWithOfferCode(this.offerGroup,this.offerId,this.sourceId),Yt("APPLE PAY | offer ",this.offerDetails),r&&(r.style.cursor="not-allowed !important"),!window.MNGAuthentication){e.next=3;break}return e.next=2,MNGAuthentication.getUserInfo();case 2:this.loggedInUserData=e.sent,this.uuid=this.loggedInUserData.userId,this.email=this.loggedInUserData.email;case 3:return i="".concat(jt.A.entitlementsEndpoint,"payway/queue_transaction"),e.prev=4,a=this.offerDetails.promo.amount.replace(".",""),s={amount:a,eciType:1,sourceId:this.sourceId,tax:"0",transactionNotes1:"",transactionNotes2:"",transactionNotes3:"",request:"queueSale"},Yt("APPLE PAY | sending queue object "),e.next=5,fetch(i,{method:"POST",headers:{"X-Api-Key":jt.A.entitlementsApiKey},body:JSON.stringify(s)});case 5:return c=e.sent,e.next=6,c.json();case 6:l=e.sent,Yt("APPLE PAY |request token received from entitler"),this.paywayRequestToken=l.data.paywayRequestToken,this.transactionName=l.data.transactionName,l.data.paywayRequestToken&&(Yt("APPLE PAY | queue session success, showing button "),r.style.display="block !important",r.addEventListener("click",this.thirdPartyPaymentButtonClicked.bind(this)),r.disabled=!1,Yt("APPLE PAY | queue success "),this.entitlementToken=t,window.MG2DL.push({event:"g2i_action_shown",actionType:"paywall",actionName:"apple_pay"})),e.next=8;break;case 7:e.prev=7,u=e.catch(4),Yt("APPLE PAY ERROR | queue failed category ",u.error.category),Yt("APPLE PAY ERROR | queue failed custom status code ",u.error.customStatusCode),Yt("APPLE PAY ERROR | queue failed message ",u.error.message),Yt("APPLE PAY ERROR | queue failed message ",u.error.errCode),document.querySelector(".error").style.display="block";case 8:case"end":return e.stop()}},e,this,[[4,7]])})),function(e){return i.apply(this,arguments)})},{key:"getBillingDataLocallyWithOfferCode",value:function(e,t){var r={1852:{4638:{billingAgreement:'AUTOMATIC RENEWAL TERMS: After the 1-year $1.00 introductory rate, your payment method will be automatically charged $21.99 every Month. \n\t\t\t\t\tBy subscribing, you agree to the Automatic Renewal Terms of this offer, the Terms of Use, and Arbitration and Refund Terms. Your subscription will renew automatically, and you will be charged up to seven days in advance of your renewal date until you cancel. \n\t\t\t\t\tYou may cancel at any time by calling Subscriber Services at 570-628-5985 or by selecting "Cancel Subscription" in your account settings. \n\t\t\t\t\tThe cancellation goes into effect at the start of your following billing cycle.',offerId:4638,promoDuration:"1 year",paymentDescription:"$1.00 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",paymentTiming:"recurring"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"28"}}},2789:{21866:{billingAgreement:this.terms,offerId:21866,promoDuration:"1 year",paymentDescription:"$0.01 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30"}},21865:{billingAgreement:this.terms,offerId:21866,promoDuration:"1 year",paymentDescription:"$0.01 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30"}},21867:{billingAgreement:this.terms,offerId:21866,promoDuration:"1 year",paymentDescription:"$0.01 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30"}},21868:{billingAgreement:this.terms,offerId:21866,promoDuration:"1 year",paymentDescription:"$0.01 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30"}}},2889:{22798:{billingAgreement:this.terms,offerId:22798,promoDuration:"1 year",paymentDescription:"$3 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"3.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},22797:{billingAgreement:this.terms,offerId:22797,promoDuration:"1 year",paymentDescription:"$3 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"3.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},22799:{billingAgreement:this.terms,offerId:22799,promoDuration:"1 year",paymentDescription:"$3 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"3.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},22800:{billingAgreement:this.terms,offerId:22800,promoDuration:"1 year",paymentDescription:"$3 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"3.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}}},2965:{23494:{billingAgreement:this.terms,offerId:23494,promoDuration:"1 year",paymentDescription:"$1 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23495:{billingAgreement:this.terms,offerId:23495,promoDuration:"1 year",paymentDescription:"$1 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23496:{billingAgreement:this.terms,offerId:23496,promoDuration:"1 year",paymentDescription:"$1 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23497:{billingAgreement:this.terms,offerId:23497,promoDuration:"1 year",paymentDescription:"$1 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}}},2966:{23498:{billingAgreement:this.terms,offerId:23498,promoDuration:"2 year",paymentDescription:"$2 for 2 years introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"2.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"2",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23499:{billingAgreement:this.terms,offerId:23499,promoDuration:"2 year",paymentDescription:"$2 for 2 years introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"2.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"2",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23500:{billingAgreement:this.terms,offerId:23500,promoDuration:"2 year",paymentDescription:"$2 for 2 years introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"2.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"2",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23501:{billingAgreement:this.terms,offerId:23501,promoDuration:"2 year",paymentDescription:"$2 for 2 years introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"2.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"2",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}}}};if(r[e]&&r[e][t]){var n=r[e][t],o=n.promoDuration,i=this.getFutureDate(o);return n.regularBilling.recurringPaymentStartDate=i,n.trialIsRecurring&&(n.promo.recurringPaymentEndDate=i),n}return null}},{key:"getFutureDate",value:function(e){var t=l(e.split(" "),2),r=t[0],n=t[1],o=parseInt(r,10),i=new Date,a=n.toLowerCase();return a.startsWith("year")?i.setFullYear(i.getFullYear()+o):a.startsWith("month")?i.setMonth(i.getMonth()+o):a.startsWith("week")?i.setDate(i.getDate()+7*o):a.startsWith("day")&&i.setDate(i.getDate()+o),i.toISOString()}},{key:"thirdPartyPaymentButtonClicked",value:(r=n(o.mark(function e(){var t,r,n,i;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{Yt("APPLE PAY | transaction button clicked - payment processing started"),t=ar()?"TribuneCEP":"MNG",r=this.paywayRequestToken,(new Date).toISOString(),n=[],console.log("rq apple offer details ",this.offerDetails),this.offerDetails.promo&&n.push(this.offerDetails.promo),n.push(this.offerDetails.regularBilling),i={requiredBillingContactFields:["postalAddress","phone"],countryCode:"US",currencyCode:"USD",merchantCapabilities:["supports3DS","supportsDebit","supportsCredit"],supportedNetworks:["visa","masterCard","amex","discover"],lineItems:n,recurringPaymentRequest:{paymentDescription:this.offerDetails.paymentDescription,regularBilling:this.offerDetails.regularBilling,trialBilling:this.offerDetails.promo,billingAgreement:this.offerDetails.billingAgreement,managementURL:"https://myaccount.".concat(this.siteNameParsed),tokenNotificationURL:"https://aws-mng-prod.subscriberconcierge.com/Webhooks/Apple/V2/".concat(t,"/").concat(this.siteCode,"/").concat(this.siteCode)},total:{label:this.offerDetails.promo.label,amount:this.offerDetails.promo.amount}},this.initApplePaySession(i,r)}catch(e){document.querySelector(".error").style.display="block",Yt("APPLE PAY ERROR | Failed to initialize payment options",e)}case 1:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"initApplePaySession",value:(t=n(o.mark(function e(t,r){var i,a,s,c,l=this;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{Yt("APPLE PAY | Apple Pay startign session with req object ",t),i=new ApplePaySession(1,t),a="".concat(jt.A.entitlementsEndpoint,"payway/create_subscription"),s=new URL(this.safeURL),c=s.hostname,i.onvalidatemerchant=function(){var e=n(o.mark(function e(t){var n,a,s,u,d,p;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Yt("APPLE PAY | Apple Pay validating merchant ",t),e.prev=1,n={request:"getApplePaySession",url:t.validationURL,domain:c,merchantIdentifier:"merchant.com.payway.mng",paywayRequestToken:r},a=JSON.stringify(n),Yt("APPLE PAY | Apple Pay validating merchant req body ",n),e.next=2,fetch(l.serviceUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:a});case 2:if((s=e.sent).ok){e.next=4;break}return e.next=3,s.text();case 3:return u=e.sent,document.querySelector(".error").style.display="block",Yt("APPLE PAY ERROR | Merchant validation error: ".concat(s.status," ").concat(u)),e.abrupt("return");case 4:return e.next=5,s.text();case 5:d=e.sent,d=JSON.parse(d);try{i.completeMerchantValidation(JSON.parse(d.appleSessionToken))}catch(e){document.querySelector(".error").style.display="block",Yt("APPLE PAY ERROR | Cannot init complete merch validation ",e)}e.next=7;break;case 6:e.prev=6,p=e.catch(1),document.querySelector(".error").style.display="block",Yt("APPLE PAY ERROR | Apple Validation reply error: ".concat(p.message));case 7:case"end":return e.stop()}},e,null,[[1,6]])}));return function(t){return e.apply(this,arguments)}}(),i.onpaymentauthorized=function(){var e=n(o.mark(function e(t){var n,s,c,u,d,p,m,f,h,g,y,A,E,S,b,v,w,R,N,I,T;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return E={accountInputMode:"applePay",paywayRequestToken:l.paywayRequestToken,transactionName:l.transactionName,transactionSourceId:window.apple_config.sourceId?parseInt(window.apple_config.sourceId,10):"0",request:"sendQueuedTransaction",applePayToken:t.payment.token.paymentData,merchantIdentifier:"merchant.com.payway.mng",cardAccount:{firstName:(null===(n=t.payment.billingContact)||void 0===n?void 0:n.givenName)||"",lastName:(null===(s=t.payment.billingContact)||void 0===s?void 0:s.familyName)||"",address:(null===(c=t.payment.billingContact)||void 0===c||null===(c=c.addressLines)||void 0===c?void 0:c.join(" "))||"",city:(null===(u=t.payment.billingContact)||void 0===u?void 0:u.locality)||"",state:(null===(d=t.payment.billingContact)||void 0===d?void 0:d.administrativeArea)||"",zip:(null===(p=t.payment.billingContact)||void 0===p?void 0:p.postalCode)||"",email:l.loggedInUserData.email||"",phone:t.payment.billingContact.phoneNumber}},S={paywayRequestToken:r,applePayData:t.payment,firstName:(null===(m=t.payment.billingContact)||void 0===m?void 0:m.givenName)||"",lastName:(null===(f=t.payment.billingContact)||void 0===f?void 0:f.familyName)||"",address:(null===(h=t.payment.billingContact)||void 0===h||null===(h=h.addressLines)||void 0===h?void 0:h.join(" "))||"",city:(null===(g=t.payment.billingContact)||void 0===g?void 0:g.locality)||"",state:(null===(y=t.payment.billingContact)||void 0===y?void 0:y.administrativeArea)||"",zip:(null===(A=t.payment.billingContact)||void 0===A?void 0:A.postalCode)||"",email:l.email||"",offerId:l.offerId,offerGroupId:l.offerGroup,uuid:l.uuid||"",domain:l.siteNameParsed,paymentAmount:l.offerDetails.promo.amount,sourceId:l.sourceId,phone:t.payment.billingContact.phoneNumber?t.payment.billingContact.phoneNumber:""},e.prev=1,e.next=2,fetch(l.billingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)});case 2:return b=e.sent,e.next=3,b.text();case 3:if(e.sent,Yt("APPLE PAY | Response from Payway"),e.prev=4,Yt("APPLE PAY | starting entitler req to naviga for new sub start"),!b.ok){e.next=11;break}return i.completePayment(ApplePaySession.STATUS_SUCCESS),e.next=5,fetch(a,{method:"POST",headers:{"X-Api-Key":jt.A.entitlementsApiKey},body:JSON.stringify(S)});case 5:if((w=e.sent).ok){e.next=6;break}return Yt("APPLE PAY | response from entitler NOT OK!!"),document.querySelector(".error").style.display="block",e.abrupt("return");case 6:return e.next=7,w.json();case 7:return e.sent,window.MG2DL.push({event:"g2i_subscription_success",payment_type:null===(v=l.offerDetails)||void 0===v||null===(v=v.regularBilling)||void 0===v?void 0:v.paymentTiming,sp_offerPlanName:"apple_pay"}),Yt("APPLE PAY | response from entitler and refreshing token"),e.next=8,dr();case 8:if(R=e.sent,Yt("APPLE PAY | getting tokens auth data"),!R){e.next=10;break}return e.next=9,Tr({idToken:R.idToken});case 9:(N=e.sent)&&(Yt("APPLE PAY | Created new token for new Apple subscriber user"),window.ConnextUtils.rerunConnextEntitlements(),Or(N));case 10:e.next=12;break;case 11:document.querySelector(".error").style.display="block",i.completePayment(ApplePaySession.STATUS_FAILURE);case 12:e.next=14;break;case 13:e.prev=13,I=e.catch(4),document.querySelector(".error").style.display="block",Yt("APPLE PAY ERROR | Naviga failed category ",I.error.category),Yt("APPLE PAY ERROR | Naviga failed custom status code ",I.error.customStatusCode),Yt("APPLE PAY ERROR | Naviga failed message ",I.error.message),Yt("APPLE PAY ERROR | Naviga failed message ",I.error.errCode);case 14:e.next=16;break;case 15:e.prev=15,T=e.catch(1),Yt("APPLE PAY ERROR | Payment error: ".concat(T));case 16:case"end":return e.stop()}},e,null,[[1,15],[4,13]])}));return function(t){return e.apply(this,arguments)}}(),i.oncancel=function(e){Yt("APPLE PAY | User canceled Apple Pay session.")};try{i.begin()}catch(e){Yt("APPLE PAY ERROR | Apple Pay session failed to start:",e)}}catch(e){Yt("APPLE PAY ERROR | Apple Failed to process payment",e)}case 1:case"end":return e.stop()}},e,this)})),function(e,r){return t.apply(this,arguments)})},{key:"getBillingDataFromEntitlerWithOfferCode",value:(e=n(o.mark(function e(){var t,r,n,i;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="".concat(jt.A.entitlementsEndpoint,"getNavigaoffer"),r={offerIdCode:this.offerCodeId,offerGroupCode:"1234"},e.next=1,fetch(t,{method:"POST",headers:{"X-Api-Key":jt.A.entitlementsApiKey},body:JSON.stringify(r)});case 1:return n=e.sent,e.next=2,n.json();case 2:return i=e.sent,e.abrupt("return",i);case 3:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})}]);var e,t,r,i}();const Lr=Pr;var Dr=!1;document.addEventListener("onPaywallShown",function(){var e=n(o.mark(function e(t){var r,n;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Dr){e.next=1;break}return e.abrupt("return");case 1:if(Dr=!0,Yt("APPLE PAY | Apple Pay script loaded - Paywall shown, check for apple pay button and hide"),document.querySelector(".error").style.display="none",(r=document.querySelector(".apple-pay-button")).style.display="none !important",!window.ApplePaySession){e.next=3;break}return Yt("APPLE PAY | Apple Pay session exists on window, continue"),e.next=2,pr();case 2:(n=e.sent)&&n.token?window.ApplePaySession.canMakePaymentsWithActiveCard("merchant.com.payway.mng")?(Yt("APPLE PAY | User logged in and can make payments - show button"),new Lr(".apple-pay-button","Apple").queuePaywaySession(n.token)):(Yt("APPLE PAY | Apple pay pay not set up exit"),r.remove()):(Yt("APPLE PAY | not logged in, exit"),r.remove(),window.MG2DL.push({event:"g2i_action_not_shown",actionType:"paywall",actionName:"apple_pay"})),e.next=4;break;case 3:Yt("APPLE PAY | Apple Pay session NOT on window, exit"),r.remove(),window.MG2DL.push({event:"g2i_action_not_shown",actionType:"paywall",actionName:"apple_pay"});case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())})()})(); //# sourceMappingURL=mng-digisubs.apple.bundle.js.map; /*! For license information please see mng-digisubs.articleShare.bundle.js.LICENSE.txt */ (()=>{var t={251(t,e){e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,c=(1<>1,l=-7,f=n?o-1:0,d=n?-1:1,h=t[e+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+t[e+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*c-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<0;t[n+h]=255&a,h+=p,a/=256,u-=8);t[n+h-p]|=128*g}},579(t,e,n){var r=n(3738).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},887(t,e,n){var r=n(6993),o=n(1791);t.exports=function(t,e,n,i,a){return new o(r().w(t,e,n,i),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},1791(t,e,n){var r=n(5172),o=n(5546);t.exports=function t(e,n){function i(t,o,a,s){try{var c=e[t](o),u=c.value;return u instanceof r?n.resolve(u.v).then(function(t){i("next",t,a,s)},function(t){i("throw",t,a,s)}):n.resolve(u).then(function(t){c.value=t,a(c)},function(t){return i("throw",t,a,s)})}catch(t){s(t)}}var a;this.next||(o(t.prototype),o(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(t,e,r){function o(){return new n(function(e,n){i(t,r,e,n)})}return a=a?a.then(o,o):o()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},3612(t,e,n){"use strict";var r,o,i,a,s;n.d(e,{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===(r=window.authentication_config)||void 0===r?void 0:r.articleSharingEnabled)&&"1"===(null===(o=window.authentication_config)||void 0===o?void 0:o.isEngageArticleSharing),enableGiftedArticlesLink:"1"===(null===(i=window.authentication_config)||void 0===i?void 0:i.articleSharingEnabled)&&"1"!==(null===(a=window.authentication_config)||void 0===a?void 0:a.isEngageArticleSharing),enableSavedArticlesLink:"1"===(null===(s=window.authentication_config)||void 0===s?void 0:s.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 e(n){return t.exports=e="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,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4373(t){t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4633(t,e,n){var r=n(5172),o=n(6993),i=n(5869),a=n(887),s=n(1791),c=n(4373),u=n(579);function l(){"use strict";var e=o(),n=e.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))}var h={throw:1,return:2,break:3,continue:3};function p(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,h[t],e)},delegateYield:function(t,o,i){return e.resultName=o,n(r.d,u(t),i)},finish:function(t){return n(r.f,t)}},n=function(t,n,o){r.p=e.prev,r.n=e.next;try{return t(n,o)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,o){return e.w(p(t),n,r,o&&o.reverse())},isGeneratorFunction:d,mark:e.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:s,async:function(t,e,n,r,o){return(d(e)?a:i)(p(t),e,n,r,o)},keys:c,values:u}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},4756(t,e,n){var r=n(4633)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},5172(t){t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},5546(t){function e(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}t.exports=e=function(t,n,r,o){function i(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(i("next",0),i("throw",1),i("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,o,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5869(t,e,n){var r=n(887);t.exports=function(t,e,n,o,i){var a=r(t,e,n,o,i);return a.next().then(function(t){return t.done?t.value:a.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},6993(t,e,n){var r=n(5546);function o(){var e,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function c(t,o,i,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return r(c,"_invoke",function(t,r,o){var i,a,s,c=0,l=o||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,a=0,s=e,d.n=n,u}};function h(t,r){for(a=t,s=r,n=0;!f&&c&&!o&&n3?(o=p===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=t<2&&hr||r>p)&&(i[4]=t,i[5]=r,d.n=p,a=0))}if(o||t>1)return u;throw f=!0,r}return function(o,l,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,p),a=l,s=p;(n=a<2?e:s)||!f;){i||(a?a<3?(a>1&&(d.n=-1),h(a,s)):d.n=s:d.v=s);try{if(c=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((n=(f=d.n<0)?s:t.call(r,d))!==u)break}catch(t){i=e,a=1,s=t}finally{c=1}}return{value:n,done:f}}}(t,i,a),!0),c}var u={};function l(){}function f(){}function d(){}n=Object.getPrototypeOf;var h=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),p=d.prototype=l.prototype=Object.create(h);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,r(t,s,"GeneratorFunction")),t.prototype=Object.create(p),t}return f.prototype=d,r(p,"constructor",d),r(d,"constructor",f),f.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(t.exports=o=function(){return{w:c,m:g}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7526(t,e){"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=s(t),a=i[0],c=i[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===c&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===c&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=16383,s=0,c=r-o;sc?c:s+a));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function u(t,e,n){for(var r,o=[],i=e;ia)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let r=s(n);const o=r.write(t,e);o!==n&&(r=r.slice(0,o));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(q(t,Uint8Array)){const e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return h(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(q(t,SharedArrayBuffer)||t&&q(t.buffer,SharedArrayBuffer)))return h(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const o=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||Z(t.length)?s(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return l(t),s(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),n=s(e);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function g(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(o)return r?-1:Y(t).length;e=(""+e).toLowerCase(),o=!0}}function A(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return v(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return R(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function E(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,o){let i,a=1,s=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){let r=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;ro&&(r=o):r=o;const i=e.length;let a;for(r>i/2&&(r=i/2),a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function R(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function v(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o239?4:e>223?3:e>191?2:1;if(o+a<=n){let n,r,s,c;switch(a){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(i=c));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=t[o+1],r=t[o+2],s=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(t){const e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,o){if(q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0);const s=Math.min(i,a),u=this.slice(r,o),l=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return S(this,t,e,n);case"ascii":case"latin1":case"binary":return b(this,t,e,n);case"base64":return O(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function T(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;or)&&(n=r);let o="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,r,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function x(t,e,n,r,o){X(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function P(t,e,n,r,o){X(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function D(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(t,e,n,r,i){return e=+e,n>>>=0,i||D(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function G(t,e,n,r,i){return e=+e,n>>>=0,i||D(t,0,n,8),o.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||U(t,e,this.length);let r=this[t],o=1,i=0;for(;++i>>=0,e>>>=0,n||U(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Q(function(t){K(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||U(t,e,this.length);let r=this[t],o=1,i=0;for(;++i=o&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||U(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||U(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||U(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Q(function(t){K(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||U(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||U(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||U(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||U(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){M(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[e]=255&t;++i>>=0,n>>>=0,!r){M(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=Q(function(t,e=0){return x(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,t,e,n,r-1,-r)}let o=0,i=1,a=0;for(this[e]=255&t;++o>>=0,!r){const r=Math.pow(2,8*n-1);M(this,t,e,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i|0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=Q(function(t,e=0){return x(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return G(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return G(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function X(t,e,n,r,o,i){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new H.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){K(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||V(e,t.length-(n+1))}(r,o,i)}function K(t,e){if("number"!=typeof t)throw new H.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,n){if(Math.floor(t)!==t)throw K(t,n),new H.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new H.ERR_BUFFER_OUT_OF_BOUNDS;throw new H.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),F("ERR_OUT_OF_RANGE",function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=_(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=_(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r},RangeError);const j=/[^+/0-9A-Za-z-_]/g;function Y(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let a=0;a55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,n,r){let o;for(o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!=t}const $=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function Q(t){return"undefined"==typeof BigInt?z:t}function z(){throw new Error("BigInt not supported")}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{hasBrowserEnv:()=>Ht,hasStandardBrowserEnv:()=>_t,hasStandardBrowserWebWorkerEnv:()=>Xt,navigator:()=>Ft,origin:()=>Kt});var e=n(3612);function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n{let n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(e)}catch(t){return atob(e)}}A.prototype.name="InvalidTokenError","function"==typeof SuppressedError&&SuppressedError;var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function w(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function m(t,e){return t(e={exports:{}},e.exports),e.exports}var S=m(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){var t=this;this.locked=new Map,this.addToLocked=function(e,n){var r=t.locked.get(e);void 0===r?void 0===n?t.locked.set(e,[]):t.locked.set(e,[n]):void 0!==n&&(r.unshift(n),t.locked.set(e,r))},this.isLocked=function(e){return t.locked.has(e)},this.lock=function(e){return new Promise(function(n,r){t.isLocked(e)?t.addToLocked(e,n):(t.addToLocked(e),n())})},this.unlock=function(e){var n=t.locked.get(e);if(void 0!==n&&0!==n.length){var r=n.pop();t.locked.set(e,n),void 0!==r&&setTimeout(r,0)}else t.locked.delete(e)}}return t.getInstance=function(){return void 0===t.instance&&(t.instance=new t),t.instance},t}();e.default=function(){return n.getInstance()}});w(S);var b=w(m(function(t,e){var n=y&&y.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,s)}c((r=r.apply(t,e||[])).next())})},r=y&&y.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?setTimeout(n,e):n(null)}}window.addEventListener("storage",a),t.addToWaiting(a);var s=setTimeout(a,Math.max(0,e-Date.now()))})];case 1:return n.sent(),[2]}})})},t.addToWaiting=function(e){this.removeFromWaiting(e),void 0!==t.waiters&&t.waiters.push(e)},t.removeFromWaiting=function(e){void 0!==t.waiters&&(t.waiters=t.waiters.filter(function(t){return t!==e}))},t.notifyWaiters=function(){void 0!==t.waiters&&t.waiters.slice().forEach(function(t){return t()})},t.prototype.releaseLock=function(t){return n(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.releaseLock__private__(t)];case 1:return[2,e.sent()]}})})},t.prototype.releaseLock__private__=function(e){return n(this,void 0,void 0,function(){var n,o,s,c;return r(this,function(r){switch(r.label){case 0:return n=void 0===this.storageHandler?a:this.storageHandler,o=i+"-"+e,null===(s=n.getItemSync(o))?[2]:(c=JSON.parse(s)).id!==this.id?[3,2]:[4,S.default().lock(c.iat)];case 1:r.sent(),this.acquiredIatSet.delete(c.iat),n.removeItemSync(o),S.default().unlock(c.iat),t.notifyWaiters(),r.label=2;case 2:return[2]}})})},t.lockCorrector=function(e){for(var n=Date.now()-5e3,r=e,o=[],a=0;;){var s=r.keySync(a);if(null===s)break;o.push(s),a++}for(var c=!1,u=0;u(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t.toBase64({alphabet:"base64url",omitPadding:!0}));else{const t=32768;O=e=>{e instanceof ArrayBuffer&&(e=new Uint8Array(e));const n=[];for(let r=0;r{const e=C.call(t);return x[e]||(x[e]=e.slice(8,-1).toLowerCase())});var x;const P=t=>(t=t.toLowerCase(),e=>M(e)===t),D=t=>e=>typeof e===t,{isArray:k}=Array,G=D("undefined");function H(t){return null!==t&&!G(t)&&null!==t.constructor&&!G(t.constructor)&&X(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const F=P("ArrayBuffer");const _=D("string"),X=D("function"),K=D("number"),V=t=>null!==t&&"object"==typeof t,j=t=>{if("object"!==M(t))return!1;const e=L(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||U in t||B in t)},Y=P("Date"),W=P("File"),J=P("Blob"),q=P("FileList"),Z=P("URLSearchParams"),[Q,z,tt,et]=["ReadableStream","Request","Response","Headers"].map(P);function nt(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),k(t))for(r=0,o=t.length;r0;)if(r=n[o],e===r.toLowerCase())return r;return null}const ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,it=t=>!G(t)&&t!==ot;const at=(st="undefined"!=typeof Uint8Array&&L(Uint8Array),t=>st&&t instanceof st);var st;const ct=P("HTMLFormElement"),ut=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),lt=P("RegExp"),ft=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};nt(n,(n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)}),Object.defineProperties(t,r)};const dt=P("AsyncFunction"),ht=(pt="function"==typeof setImmediate,gt=X(ot.postMessage),pt?setImmediate:gt?(At=`axios@${Math.random()}`,Et=[],ot.addEventListener("message",({source:t,data:e})=>{t===ot&&e===At&&Et.length&&Et.shift()()},!1),t=>{Et.push(t),ot.postMessage(At,"*")}):t=>setTimeout(t));var pt,gt,At,Et;const yt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ot):"undefined"!=typeof process&&process.nextTick||ht,wt={isArray:k,isArrayBuffer:F,isBuffer:H,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||X(t.append)&&("formdata"===(e=M(t))||"object"===e&&X(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&F(t.buffer),e},isString:_,isNumber:K,isBoolean:t=>!0===t||!1===t,isObject:V,isPlainObject:j,isEmptyObject:t=>{if(!V(t)||H(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:Q,isRequest:z,isResponse:tt,isHeaders:et,isUndefined:G,isDate:Y,isFile:W,isBlob:J,isRegExp:lt,isFunction:X,isStream:t=>V(t)&&X(t.pipe),isURLSearchParams:Z,isTypedArray:at,isFileList:q,forEach:nt,merge:function t(){const{caseless:e,skipUndefined:n}=it(this)&&this||{},r={},o=(o,i)=>{const a=e&&rt(r,i)||i;j(r[a])&&j(o)?r[a]=t(r[a],o):j(o)?r[a]=t({},o):k(o)?r[a]=o.slice():n&&G(o)||(r[a]=o)};for(let t=0,e=arguments.length;t(nt(e,(e,r)=>{n&&X(e)?t[r]=T(e,n):t[r]=e},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&L(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:M,kindOfTest:P,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(k(t))return t;let e=t.length;if(!K(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[B]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:ct,hasOwnProperty:ut,hasOwnProp:ut,reduceDescriptors:ft,freezeMethods:t=>{ft(t,(e,n)=>{if(X(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];X(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return k(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:rt,global:ot,isContextDefined:it,isSpecCompliantForm:function(t){return!!(t&&X(t.append)&&"FormData"===t[U]&&t[B])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(V(t)){if(e.indexOf(t)>=0)return;if(H(t))return t;if(!("toJSON"in t)){e[r]=t;const o=k(t)?[]:{};return nt(t,(t,e)=>{const i=n(t,r+1);!G(i)&&(o[e]=i)}),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:dt,isThenable:t=>t&&(V(t)||X(t))&&X(t.then)&&X(t.catch),setImmediate:ht,asap:yt,isIterable:t=>null!=t&&X(t[B])};function mt(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}wt.inherits(mt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:wt.toJSONObject(this.config),code:this.code,status:this.status}}});const St=mt.prototype,bt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{bt[t]={value:t}}),Object.defineProperties(mt,bt),Object.defineProperty(St,"isAxiosError",{value:!0}),mt.from=(t,e,n,r,o,i)=>{const a=Object.create(St);wt.toFlatObject(t,a,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t);const s=t&&t.message?t.message:"Error",c=null==e&&t?t.code:e;return mt.call(a,s,c,n,r,o),t&&null==a.cause&&Object.defineProperty(a,"cause",{value:t,configurable:!0}),a.name=t&&t.name||"Error",i&&Object.assign(a,i),a};const Ot=mt;var Nt=n(8287).hp;function Rt(t){return wt.isPlainObject(t)||wt.isArray(t)}function vt(t){return wt.endsWith(t,"[]")?t.slice(0,-2):t}function It(t,e,n){return t?t.concat(e).map(function(t,e){return t=vt(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}const Tt=wt.toFlatObject(wt,{},null,function(t){return/^is[A-Z]/.test(t)});const Ct=function(t,e,n){if(!wt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=wt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!wt.isUndefined(e[t])})).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&wt.isSpecCompliantForm(e);if(!wt.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(wt.isDate(t))return t.toISOString();if(wt.isBoolean(t))return t.toString();if(!s&&wt.isBlob(t))throw new Ot("Blob is not supported. Use a Buffer instead.");return wt.isArrayBuffer(t)||wt.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Nt.from(t):t}function u(t,n,o){let s=t;if(t&&!o&&"object"==typeof t)if(wt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(wt.isArray(t)&&function(t){return wt.isArray(t)&&!t.some(Rt)}(t)||(wt.isFileList(t)||wt.endsWith(n,"[]"))&&(s=wt.toArray(t)))return n=vt(n),s.forEach(function(t,r){!wt.isUndefined(t)&&null!==t&&e.append(!0===a?It([n],r,i):null===a?n:n+"[]",c(t))}),!1;return!!Rt(t)||(e.append(It(o,n,i),c(t)),!1)}const l=[],f=Object.assign(Tt,{defaultVisitor:u,convertValue:c,isVisitable:Rt});if(!wt.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!wt.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),wt.forEach(n,function(n,i){!0===(!(wt.isUndefined(n)||null===n)&&o.call(e,n,wt.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])}),l.pop()}}(t),e};function Lt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Bt(t,e){this._pairs=[],t&&Ct(t,this,e)}const Ut=Bt.prototype;Ut.append=function(t,e){this._pairs.push([t,e])},Ut.toString=function(t){const e=t?function(e){return t.call(this,e,Lt)}:Lt;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};const Mt=Bt;function xt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Pt(t,e,n){if(!e)return t;const r=n&&n.encode||xt;wt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(e,n):wt.isURLSearchParams(e)?e.toString():new Mt(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const Dt=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){wt.forEach(this.handlers,function(e){null!==e&&t(e)})}},kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Mt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ht="undefined"!=typeof window&&"undefined"!=typeof document,Ft="object"==typeof navigator&&navigator||void 0,_t=Ht&&(!Ft||["ReactNative","NativeScript","NS"].indexOf(Ft.product)<0),Xt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Kt=Ht&&window.location.href||"http://localhost",Vt={...t,...Gt};const jt=function(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&wt.isArray(r)?r.length:i,s)return wt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&wt.isObject(r[i])||(r[i]=[]);return e(t,n,r[i],o)&&wt.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r{e(function(t){return wt.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null};const Yt={transitional:kt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=wt.isObject(t);o&&wt.isHTMLForm(t)&&(t=new FormData(t));if(wt.isFormData(t))return r?JSON.stringify(jt(t)):t;if(wt.isArrayBuffer(t)||wt.isBuffer(t)||wt.isStream(t)||wt.isFile(t)||wt.isBlob(t)||wt.isReadableStream(t))return t;if(wt.isArrayBufferView(t))return t.buffer;if(wt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Ct(t,new Vt.classes.URLSearchParams,{visitor:function(t,e,n,r){return Vt.isNode&&wt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((i=wt.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ct(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(wt.isString(t))try{return(e||JSON.parse)(t),wt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Yt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(wt.isResponse(t)||wt.isReadableStream(t))return t;if(t&&wt.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(t){if(n){if("SyntaxError"===t.name)throw Ot.from(t,Ot.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vt.classes.FormData,Blob:Vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wt.forEach(["delete","get","head","post","put","patch"],t=>{Yt.headers[t]={}});const Wt=Yt,Jt=wt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qt=Symbol("internals");function Zt(t){return t&&String(t).trim().toLowerCase()}function $t(t){return!1===t||null==t?t:wt.isArray(t)?t.map($t):String(t)}function Qt(t,e,n,r,o){return wt.isFunction(r)?r.call(this,e,n):(o&&(e=n),wt.isString(e)?wt.isString(r)?-1!==e.indexOf(r):wt.isRegExp(r)?r.test(e):void 0:void 0)}class zt{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Zt(e);if(!o)throw new Error("header name must be a non-empty string");const i=wt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=$t(t))}const i=(t,e)=>wt.forEach(t,(t,n)=>o(t,n,e));if(wt.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(wt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Jt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e})(t),e);else if(wt.isObject(t)&&wt.isIterable(t)){let n,r,o={};for(const e of t){if(!wt.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[r=e[0]]=(n=o[r])?wt.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,n);return this}get(t,e){if(t=Zt(t)){const n=wt.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(wt.isFunction(e))return e.call(this,t,n);if(wt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Zt(t)){const n=wt.findKey(this,t);return!(!n||void 0===this[n]||e&&!Qt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Zt(t)){const o=wt.findKey(n,t);!o||e&&!Qt(0,n[o],o,e)||(delete n[o],r=!0)}}return wt.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!Qt(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return wt.forEach(this,(r,o)=>{const i=wt.findKey(n,o);if(i)return e[i]=$t(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete e[o],e[a]=$t(r),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return wt.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&wt.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=(this[qt]=this[qt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Zt(t);e[r]||(!function(t,e){const n=wt.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})})}(n,t),e[r]=!0)}return wt.isArray(t)?t.forEach(r):r(t),this}}zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wt.reduceDescriptors(zt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),wt.freezeMethods(zt);const te=zt;function ee(t,e){const n=this||Wt,r=e||n,o=te.from(r.headers);let i=r.data;return wt.forEach(t,function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function ne(t){return!(!t||!t.__CANCEL__)}function re(t,e,n){Ot.call(this,null==t?"canceled":t,Ot.ERR_CANCELED,e,n),this.name="CanceledError"}wt.inherits(re,Ot,{__CANCEL__:!0});const oe=re;function ie(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new Ot("Request failed with status code "+n.status,[Ot.ERR_BAD_REQUEST,Ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const ae=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),u=r[a];o||(o=c),n[i]=s,r[i]=c;let l=a,f=0;for(;l!==i;)f+=n[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),c-o{o=i,n=null,r&&(clearTimeout(r),r=null),t(...e)};return[(...t)=>{const e=Date.now(),s=e-o;s>=i?a(t,e):(n=t,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]},ce=(t,e,n=3)=>{let r=0;const o=ae(50,250);return se(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i;t({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})},n)},ue=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},le=t=>(...e)=>wt.asap(()=>t(...e)),fe=Vt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Vt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Vt.origin),Vt.navigator&&/(msie|trident)/i.test(Vt.navigator.userAgent)):()=>!0,de=Vt.hasStandardBrowserEnv?{write(t,e,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${t}=${encodeURIComponent(e)}`];wt.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),wt.isString(r)&&s.push(`path=${r}`),wt.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),wt.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function he(t,e,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(r||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const pe=t=>t instanceof te?{...t}:t;function ge(t,e){e=e||{};const n={};function r(t,e,n,r){return wt.isPlainObject(t)&&wt.isPlainObject(e)?wt.merge.call({caseless:r},t,e):wt.isPlainObject(e)?wt.merge({},e):wt.isArray(e)?e.slice():e}function o(t,e,n,o){return wt.isUndefined(e)?wt.isUndefined(t)?void 0:r(void 0,t,0,o):r(t,e,0,o)}function i(t,e){if(!wt.isUndefined(e))return r(void 0,e)}function a(t,e){return wt.isUndefined(e)?wt.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,n)=>o(pe(t),pe(e),0,!0)};return wt.forEach(Object.keys({...t,...e}),function(r){const i=c[r]||o,a=i(t[r],e[r],r);wt.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Ae=t=>{const e=ge({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=e;if(e.headers=a=te.from(a),e.url=Pt(he(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),wt.isFormData(n))if(Vt.hasStandardBrowserEnv||Vt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(wt.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach(([t,n])=>{e.includes(t.toLowerCase())&&a.set(t,n)})}if(Vt.hasStandardBrowserEnv&&(r&&wt.isFunction(r)&&(r=r(e)),r||!1!==r&&fe(e.url))){const t=o&&i&&de.read(i);t&&a.set(o,t)}return e},Ee="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){const r=Ae(t);let o=r.data;const i=te.from(r.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function A(){if(!g)return;const r=te.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());ie(function(t){e(t),p()},function(t){n(t),p()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:t,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=A:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(A)},g.onabort=function(){g&&(n(new Ot("Request aborted",Ot.ECONNABORTED,t,g)),g=null)},g.onerror=function(e){const r=e&&e.message?e.message:"Network Error",o=new Ot(r,Ot.ERR_NETWORK,t,g);o.event=e||null,n(o),g=null},g.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||kt;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new Ot(e,o.clarifyTimeoutError?Ot.ETIMEDOUT:Ot.ECONNABORTED,t,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&wt.forEach(i.toJSON(),function(t,e){g.setRequestHeader(e,t)}),wt.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),f&&"json"!==f&&(g.responseType=r.responseType),h&&([c,l]=ce(h,!0),g.addEventListener("progress",c)),d&&g.upload&&([s,u]=ce(d),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=e=>{g&&(n(!e||e.type?new oe(null,t,g):e),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const E=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);E&&-1===Vt.protocols.indexOf(E)?n(new Ot("Unsupported protocol "+E+":",Ot.ERR_BAD_REQUEST,t)):g.send(o||null)})},ye=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const o=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;r.abort(e instanceof Ot?e:new oe(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new Ot(`timeout ${e} of ms exceeded`,Ot.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>wt.asap(a),s}},we=function*(t,e){let n=t.byteLength;if(!e||n{const o=async function*(t,e){for await(const n of me(t))yield*we(n,e)}(t,e);let i,a=0,s=t=>{i||(i=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await o.next();if(e)return s(),void t.close();let i=r.byteLength;if(n){let t=a+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},{isFunction:be}=wt,Oe=(({Request:t,Response:e})=>({Request:t,Response:e}))(wt.global),{ReadableStream:Ne,TextEncoder:Re}=wt.global,ve=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Ie=t=>{t=wt.merge.call({skipUndefined:!0},Oe,t);const{fetch:e,Request:n,Response:r}=t,o=e?be(e):"function"==typeof fetch,i=be(n),a=be(r);if(!o)return!1;const s=o&&be(Ne),c=o&&("function"==typeof Re?(u=new Re,t=>u.encode(t)):async t=>new Uint8Array(await new n(t).arrayBuffer()));var u;const l=i&&s&&ve(()=>{let t=!1;const e=new n(Vt.origin,{body:new Ne,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),f=a&&s&&ve(()=>wt.isReadableStream(new r("").body)),d={stream:f&&(t=>t.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!d[t]&&(d[t]=(e,n)=>{let r=e&&e[t];if(r)return r.call(e);throw new Ot(`Response type '${t}' is not supported`,Ot.ERR_NOT_SUPPORT,n)})});const h=async(t,e)=>{const r=wt.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(wt.isBlob(t))return t.size;if(wt.isSpecCompliantForm(t)){const e=new n(Vt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return wt.isArrayBufferView(t)||wt.isArrayBuffer(t)?t.byteLength:(wt.isURLSearchParams(t)&&(t+=""),wt.isString(t)?(await c(t)).byteLength:void 0)})(e):r};return async t=>{let{url:o,method:a,data:s,signal:c,cancelToken:u,timeout:p,onDownloadProgress:g,onUploadProgress:A,responseType:E,headers:y,withCredentials:w="same-origin",fetchOptions:m}=Ae(t),S=e||fetch;E=E?(E+"").toLowerCase():"text";let b=ye([c,u&&u.toAbortSignal()],p),O=null;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let R;try{if(A&&l&&"get"!==a&&"head"!==a&&0!==(R=await h(y,s))){let t,e=new n(o,{method:"POST",body:s,duplex:"half"});if(wt.isFormData(s)&&(t=e.headers.get("content-type"))&&y.setContentType(t),e.body){const[t,n]=ue(R,ce(le(A)));s=Se(e.body,65536,t,n)}}wt.isString(w)||(w=w?"include":"omit");const e=i&&"credentials"in n.prototype,c={...m,signal:b,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:e?w:void 0};O=i&&new n(o,c);let u=await(i?S(O,m):S(o,c));const p=f&&("stream"===E||"response"===E);if(f&&(g||p&&N)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=u[e]});const e=wt.toFiniteNumber(u.headers.get("content-length")),[n,o]=g&&ue(e,ce(le(g),!0))||[];u=new r(Se(u.body,65536,n,()=>{o&&o(),N&&N()}),t)}E=E||"text";let v=await d[wt.findKey(d,E)||"text"](u,t);return!p&&N&&N(),await new Promise((e,n)=>{ie(e,n,{data:v,headers:te.from(u.headers),status:u.status,statusText:u.statusText,config:t,request:O})})}catch(e){if(N&&N(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new Ot("Network Error",Ot.ERR_NETWORK,t,O),{cause:e.cause||e});throw Ot.from(e,e&&e.code,t,O)}}},Te=new Map,Ce=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,i=[r,o,n];let a,s,c=i.length,u=Te;for(;c--;)a=i[c],s=u.get(a),void 0===s&&u.set(a,s=c?new Map:Ie(e)),u=s;return s},Le=(Ce(),{http:null,xhr:Ee,fetch:{get:Ce}});wt.forEach(Le,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const Be=t=>`- ${t}`,Ue=t=>wt.isFunction(t)||null===t||!1===t;const Me={getAdapter:function(t,e){t=wt.isArray(t)?t:[t];const{length:n}=t;let r,o;const i={};for(let a=0;a`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let e=n?t.length>1?"since :\n"+t.map(Be).join("\n"):" "+Be(t[0]):"as no adapter specified";throw new Ot("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return o},adapters:Le};function xe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new oe(null,t)}function Pe(t){xe(t),t.headers=te.from(t.headers),t.data=ee.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Me.getAdapter(t.adapter||Wt.adapter,t)(t).then(function(e){return xe(t),e.data=ee.call(t,t.transformResponse,e),e.headers=te.from(e.headers),e},function(e){return ne(e)||(xe(t),e&&e.response&&(e.response.data=ee.call(t,t.transformResponse,e.response),e.response.headers=te.from(e.response.headers))),Promise.reject(e)})}const De="1.13.2",ke={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ke[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Ge={};ke.transitional=function(t,e,n){function r(t,e){return"[Axios v"+De+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new Ot(r(o," has been removed"+(e?" in "+e:"")),Ot.ERR_DEPRECATED);return e&&!Ge[o]&&(Ge[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}},ke.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};const He={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Ot("options must be an object",Ot.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new Ot("option "+i+" must be "+n,Ot.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ot("Unknown option "+i,Ot.ERR_BAD_OPTION)}},validators:ke},Fe=He.validators;class _e{constructor(t){this.defaults=t||{},this.interceptors={request:new Dt,response:new Dt}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=ge(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&He.assertOptions(n,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean)},!1),null!=r&&(wt.isFunction(r)?e.paramsSerializer={serialize:r}:He.assertOptions(r,{encode:Fe.function,serialize:Fe.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),He.assertOptions(e,{baseUrl:Fe.spelling("baseURL"),withXsrfToken:Fe.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&wt.merge(o.common,o[e.method]);o&&wt.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=te.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))});const c=[];let u;this.interceptors.response.forEach(function(t){c.push(t.fulfilled,t.rejected)});let l,f=0;if(!s){const t=[Pe.bind(this),void 0];for(t.unshift(...a),t.push(...c),l=t.length,u=Promise.resolve(e);f{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t(function(t,r,o){n.reason||(n.reason=new oe(t,r,o),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;const e=new Ke(function(e){t=e});return{token:e,cancel:t}}}const Ve=Ke;const je={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(je).forEach(([t,e])=>{je[e]=t});const Ye=je;const We=function t(e){const n=new Xe(e),r=T(Xe.prototype.request,n);return wt.extend(r,Xe.prototype,n,{allOwnKeys:!0}),wt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(ge(e,n))},r}(Wt);We.Axios=Xe,We.CanceledError=oe,We.CancelToken=Ve,We.isCancel=ne,We.VERSION=De,We.toFormData=Ct,We.AxiosError=Ot,We.Cancel=We.CanceledError,We.all=function(t){return Promise.all(t)},We.spread=function(t){return function(e){return t.apply(null,e)}},We.isAxiosError=function(t){return wt.isObject(t)&&!0===t.isAxiosError},We.mergeConfig=ge,We.AxiosHeaders=te,We.formToJSON=t=>jt(wt.isHTMLForm(t)?new FormData(t):t),We.getAdapter=Me.getAdapter,We.HttpStatusCode=Ye,We.default=We;function Je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function qe(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"",e=Qe().hostname;if(t&&"string"==typeof t&&t.length>0&&(e=t,t.includes("vipdev.lndo.site")))return"".concat(t.split(".")[0],".com");var n=e.split(".");return"".concat(n[n.length-2],".").concat(n[n.length-1])},en=function(t){return function(t,e){if("string"!=typeof t)throw new A("Invalid token specified: must be a string");e||(e={});const n=!0===e.header?0:1,r=t.split(".")[n];if("string"!=typeof r)throw new A(`Invalid token specified: missing part #${n+1}`);let o;try{o=E(r)}catch(t){throw new A(`Invalid token specified: invalid base64 for part #${n+1} (${t.message})`)}try{return JSON.parse(o)}catch(t){throw new A(`Invalid token specified: invalid json for part #${n+1} (${t.message})`)}}(t)},nn=function(){var t=tn();return["mcall.com","courant.com","sun-sentinel.com","orlandosentinel.com","growthspotter.com","dailypress.com","pilotonline.com","nydailynews.com","baltimoresun.com","capitalgazette.com","chicagotribune.com","trbdevcloud.com"].includes(t)},rn=function(){return"complete"===document.readyState},on=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise(function(e){var n=!0;if(rn())e();else{u.log("UIHandler: ","Waiting for the body to load...");var r=setInterval(s(c.mark(function o(){return c.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:t&&(n=rn()),document.querySelector("body")&&n&&(clearInterval(r),e(!0));case 1:case"end":return o.stop()}},o)})),200)}})},an=function(){return new Promise(function(t){if(("interactive"===document.readyState||rn())&&window.dataLayer)u.log("Utils digisubsDataLayerLoaded: ","Document is in interactive state, resolving."),t();else{u.log("Utils digisubsDataLayerLoaded: ","Waiting for the dataLayer to load...");var e=setInterval(s(c.mark(function n(){return c.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:window.dataLayer&&window.dataLayer.length>2&&(clearInterval(e),t(!0));case 1:case"end":return n.stop()}},n)})),50)}})},sn=function(){return new Promise(function(t){if(rn())t();else{u.log("Utils digisubsMenuLoaded: ","Waiting for the digisubs dropdown to load...");var e=setInterval(s(c.mark(function n(){return c.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:document.getElementById("account-content")&&(clearInterval(e),t(!0));case 1:case"end":return n.stop()}},n)})),200)}})},cn=function(){var t=s(c.mark(function t(e){var n,r,o;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,an();case 1:return u.log("Utils getDataLayerObject: looking for this dataLayer object ",e),window.dataLayer=window.dataLayer||[],n="",u.log("Utils getDataLayerObject: here is dataLayer length ",window.dataLayer.length),r=function(t){return u.log("Utils dataLayerLoop: look for this element ",t),t[e]?(u.log("Utils dataLayerLoop: found ",t[e]),n=t[e],t[e]):(u.log("Utils dataLayerLoop: dataLayer search ",!1),!1)},o=window.dataLayer.some(r),t.abrupt("return",o?n:"");case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),un=function(){var t=s(c.mark(function t(){var e,n,r=arguments;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:"Page Type",t.next=1,cn(e);case 1:return n=t.sent,u.log("utils | pageType: page type is ",n),t.abrupt("return",n);case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),ln=function(){return new Promise(function(t,e){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(u.log("utils | Authentication already ready: ",window.MNGAuthentication.authenticationReady),t(window.MNGAuthentication.authenticationReady)):(u.log("utils | Adding authenticationReady listener..."),window.addEventListener("authenticationReady",function(n){try{var r=n.detail||{};u.log("utils | Event: authentication ready: ",r),t(r)}catch(t){u.log(t),e(t)}},!1))})},fn=function(){var t=s(c.mark(function t(){return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,n){return e.A.entitlementsEnabled?void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady?(u.log("Entitlements already present:",window.MNGAuthentication.entitlementsReady),void t(window.MNGAuthentication.entitlementsReady)):void window.addEventListener("entitlementsReady",function(e){try{var r=e.detail||{};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.entitlementsReady=r,u.log("Received entitlementsReady event:",r),t(r)}catch(t){u.error("Error handling entitlementsReady event:",t),n(t)}},{once:!0}):(u.log("Entitlements disabled in settings."),void t(!1))}));case 1:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),dn=function(t){u.log("starting simpleEmailValidation");if(!t)return{valid:!1,message:"Please enter an email."};if(!/^(([^<>()[\]\\.,;:\s@']+(\.[^<>()[\]\\.,;:\s@']+)*)|('.+'))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i.test(t))return{valid:!1,message:"Please enter a valid email."};var e=t.match(/\.([^.\n\s]*)$/)[1].toUpperCase(),n=["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMAZON","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CASA","CASE","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CPA","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DOG","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUNLOP","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GAY","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","JAGUAR","JAVA","JCB","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIDS","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LK","LLC","LLP","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUSIC","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NAGOYA","NAME","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","RACING","RADIO","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIL","RIO","RIP","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPA","SPACE","SPORT","SPOT","SR","SRL","SS","ST","STADA","STAPLES","STAR","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWISS","SX","SY","SYDNEY","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4DBRK0CE","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CCKWCXETD","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ480N2RG","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBCPQ6GPA1A","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PGBS0DH","XN--PSSY2U","XN--Q7CE6A","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXA6A","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"].includes(e);return u.log("simpleEmailValidation: ","TLD search ".concat(n)),!1===n?{valid:!1,message:"Please enter a valid email domain."}:-1===["zzz.pl"].findIndex(function(e){return e===t.split("@")[1]})?{valid:!0,message:"Valid"}:{valid:!1,message:"Please enter a valid email."}};window.simpleEmailValidation=dn;window.validatePhoneNumber=function(t){return/^[0-9]([0-9 -])*[0-9]$/.test(t)};var hn=function(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)};var pn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return new Promise(function(e,n){var r={sspw:null,sophiClient:null,engagePaywall:null,engageStatus:null},o=function(){var o=s(c.mark(function o(){var i,a,s,l,f,d,h,p,g,A,E;return c.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,"1"!==(null===(i=window.sophi_config)||void 0===i?void 0:i.enableSophiSSPW)){o.next=1;break}if(!document.getElementById("server-paywall")){o.next=1;break}return r.sspw=!0,o.abrupt("return",e({paywall:!0,details:qe({},r)}));case 1:return o.next=2,un();case 2:return s=o.sent,o.next=3,cn("Paywall_Level");case 3:if(l=o.sent,"article"===s&&"free"!==l){o.next=4;break}return o.abrupt("return",e({paywall:!1,details:"article"!==s?"Page type is not an article":"Free article"}));case 4:return o.next=5,fn();case 5:if(!(f=o.sent)||!f.isEntitled){o.next=6;break}return o.abrupt("return",e({paywall:!1,details:"Entitled User"}));case 6:if("premium"!==l){o.next=7;break}return o.abrupt("return",e({paywall:!0,details:"Premium article"}));case 7:if(d=null===(a=window.ConnextUtils)||void 0===a?void 0:a.runningSophi,u.log("checkPaywallStatus - Sophi is running: ",d),!d){o.next=8;break}window.ConnextUtils.connextAlreadyRan&&window.sophiWallConfig&&!window.sophiWallConfig.error&&"paywall"===window.sophiWallConfig.wallType?(r.sophiClient=!0,r.engageStatus=!0,r.engagePaywall=!0):window.addEventListener("onPaywallShown",function(){return"paywall"===window.sophiWallConfig.wallType&&(r.sophiClient=!0),e({paywall:!0,details:qe({},r)})},{once:!0}),o.next=12;break;case 8:if(d){o.next=12;break}return h=window.ConnextUtils.connextReady("onPaywallShown",!1),p=new Promise(function(e,n){return setTimeout(function(){return n(new Error("No Engage paywall within 10 seconds, resolving as no paywall."))},t)}),o.prev=9,o.next=10,Promise.race([h,p]);case 10:!0===(g=o.sent)?(r.engagePaywall=!0,r.engageStatus="Engage paywall detected"):(r.engagePaywall=!1,r.engageStatus="Engage response: ".concat(g)),o.next=12;break;case 11:o.prev=11,A=o.catch(9),r.engagePaywall=!1,r.engageStatus="Engage response: ".concat(A);case 12:return o.abrupt("return",e({paywall:Object.values(r).some(function(t){return t}),details:qe({},r)}));case 13:o.prev=13,E=o.catch(0),n(E);case 14:case"end":return o.stop()}},o,null,[[0,13],[9,11]])}));return function(){return o.apply(this,arguments)}}();o()})};"undefined"!=typeof window&&(window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.checkPaywallStatus=pn);var gn=function(t){try{window.dataLayer.push({event:t}),u.log("ANALYTICS: ".concat(t," event")),u.log("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(e){u.log("ANALYTICS: Failed to send ".concat(t," event: "),e)}};var An="#main .article-share ul",En=".dropdown-menu .account-settings",yn=".nav-wrapper-secondary .article-share ul",wn=function(){return document.querySelectorAll(An)},mn=function(){return document.querySelector(En)},Sn=function(){return document.querySelector(yn)},bn=n(8287).hp,On=function(t){return bn.from(t,"base64").toString("utf8")},Nn=function(){var t=window.localStorage.getItem(d),e=t&&On(t)&&JSON.parse(On(t),function(t,e){return t?function(t){try{var e=parseInt(t,10);return Number.isNaN(e)?t:e}catch(e){return t}}(JSON.parse(On(e))):e});return u.log("Got encoded object hash with a value of ".concat(JSON.stringify(e))),e},Rn=function(t){var e=Nn();return e&&e[t]},vn=function(t,e){var n=Nn()||{};n[t]=e,function(t){var e={};Object.keys(t).forEach(function(n){e[n]=bn.from(JSON.stringify(t[n])).toString("base64")});var n=bn.from(JSON.stringify(e)).toString("base64");window.localStorage.setItem("user-profile",n),u.log("Set encoded object hash for ".concat(t))}(n)};var In=function(t,e){var n=t,r=document.getElementById("article-share-copy-link-text".concat(e));"Link Copied"!==t&&"Link Updated"!==t&&(document.getElementById("article-share-copy-btn".concat(e)).disabled=!0);u.log("article sharing: user message inside share button: ",t,e),document.getElementById("articleCopyLinkSpinner".concat(e)).setAttribute("style","display:none"),document.getElementById("article-share-copy-btn".concat(e)).classList.remove("spinner-pad"),document.getElementById("articleCopyLinkSpinner".concat(e)).classList.remove("spring-spinner-mar"),document.getElementById("article-share-copy-link-text".concat(e)).setAttribute("style","display:flex;","align-items:center"),r.innerHTML="Link Copied"===t||"Link Updated"===t?'\n\t\n\t '.concat(n):t},Tn=function(){var t=s(c.mark(function t(){var e,n,r,o;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,ln();case 1:if(e=t.sent,!(n=e.idToken)){t.next=2;break}return r=en(n),o={uuid:r.sub},u.log("Article sharing: get user UUID",o.uuid),t.abrupt("return",o);case 2:return t.abrupt("return",!1);case 3:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),Cn=function(t){return u.log("Article sharing: updating article count everywhere with ",t),document.querySelectorAll(".article-share-count").forEach(function(e){u.log("article sharing: updated article count! ",e),e.innerHTML=t}),u.log("Article sharing: update finished, return true"),!0},Ln=function(){u.log("Article sharing: User is being spoofed, retrieving uuid to check remaining articles");var t=JSON.parse(localStorage.getItem(l)).entitlementToken;u.log("Article sharing: spoofed jwtToken: ",t);var e=t?en(t):"";return u.log("Article sharing: UUID: ",e.uuid),e},Bn=function(t){return new Promise(function(n){var r=e.A.entitlementsEndpoint,o=e.A.entitlementsApiKey,i="".concat(r,"articleSharing/checkRemaining");u.log("Article sharing: api data: ",o);var a=t.uuid;(u.log("Article sharing: callCheckRemainingEndpoint: check if user is spoofed"),window.localStorage.getItem("spoof-user"))&&(a=Ln().uuid);var l,d,h={uid:a,entitlementsToken:ze("mng-entitlements")};u.log("Article sharing: articles remaining api body: ",h),$.ajax({type:"POST",url:i,headers:{"X-Api-Key":e.A.entitlementsApiKey},data:JSON.stringify(h),success:(d=s(c.mark(function t(e){var r;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:u.log("Article sharing: checkRemaining response: successful: ",e.remaining),r="10",r="This user does not exists in the database. Return 10 for sharesRemaining."===e.remaining?"10":e.remaining,vn(f,r),n(r);case 1:case"end":return t.stop()}},t)})),function(t){return d.apply(this,arguments)}),error:(l=s(c.mark(function t(e,r,o){return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:u.log("Article sharing: checkRemaining Failure: ",o),n(!1);case 1:case"end":return t.stop()}},t)})),function(t,e,n){return l.apply(this,arguments)})})})},Un=function(){var t=s(c.mark(function t(e){var n,r,o,i,a=arguments;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],r=Rn(f),n||!r){t.next=1;break}return t.abrupt("return",r);case 1:return t.next=2,Tn(e);case 2:return o=t.sent,t.next=3,Bn(o);case 3:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),Mn=function(){var t=s(c.mark(function t(n){var r,o,i,a,s,l,d,h,p,g,A,E,y,w;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(l=function(t){for(var e="",n=a.replace(/[^0-9a-zA-Z]+/gm,""),r=n.length,o=0;o?'),null==(s=document.querySelectorAll(".article-share-h6"))||s.forEach(function(t){t.insertAdjacentHTML("beforeend",a)}));case 4:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),Dn=function(t){var e,n=document.getElementById("share-icon-position".concat(t));"rgba(0, 0, 0, 0)"===window.getComputedStyle(document.querySelector("li.share-article")).backgroundColor?(n.classList.add("article-share-icon-invert"),e=window.getComputedStyle(document.getElementById("page")).getPropertyValue("--primary")):e="white";var r='\n\t\t\n\t\t'),o=window.btoa(r),i="url(data:image/svg+xml;base64,".concat(o,")");return n.style.background=i,"url(data:image/svg+xml;base64,".concat(o,")")},kn=function(t){t.classList.contains("article-share-fixed")&&t.classList.remove("article-share-fixed")},Gn=function(){var t=s(c.mark(function t(e){var n,r,o,a,l,f,d,h,p;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u.log("Article sharing: build menu here"),t.next=1,on();case 1:if(u.log(" Article Sharing: Build sharing menuz!"),n="",r=function(){var t=s(c.mark(function t(r){var o,i,a,s,l;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(gn("articleshare-openui"),o=document.getElementById("share-box-position".concat(r)),u.log("Article Sharing: i clicked this ",o,r),i=document.getElementById(o.id),u.log("article sharing: look for this box: ",o),o.classList.contains("show-article-sharing")||(u.log("article sharing: box already open, do not show spinner"),document.getElementById("articleShareBtnSpinner".concat(r)).setAttribute("style","display:block"),document.getElementById("share-icon-position".concat(r)).setAttribute("style","display:none!important;")),a=!1,e&&!o.classList.contains("show-article-sharing")){t.next=1;break}a=!0,t.next=4;break;case 1:return t.prev=1,t.next=2,Un(r,!1);case 2:a=t.sent,Cn(a),t.next=4;break;case 3:t.prev=3,t.catch(1),u.log("Article share article count api error");case 4:u.log("article sharing: api request done, show results ",a),document.getElementById("share-icon-position".concat(r)).setAttribute("style","background:".concat(n,"; display:block!important;")),document.getElementById("articleShareBtnSpinner".concat(r)).setAttribute("style","display:none"),o.classList.toggle("show-article-sharing"),i.classList.toggle("show"),0!==r&&(hn(o)||o.classList.add("article-share-fixed")),s=document.querySelector("#article-share-position".concat(r," .article-share-link")),u.log("article sharing: accessible ",s),l=i.classList.contains("show"),u.log("article sharing: box isOpen ",l),l||(i.setAttribute("aria-expanded","false"),s.setAttribute("aria-press","false")),l&&(i.setAttribute("aria-expanded","true"),s.setAttribute("aria-press","true")),a<=0&&(u.log("article share: user out of free views ",a),In("No more shares left",r));case 5:case"end":return t.stop()}},t,null,[[1,3]])}));return function(e){return t.apply(this,arguments)}}(),o='\n\t\n\t\n\t\n\tCopy The Shareable Link',a=function(t){var n=document.getElementById("share-box-position".concat(t)),i=document.getElementById("cancel-button-label".concat(t));if(i&&(i.childNodes[0].nodeValue="Cancel"),n&&n.classList.contains("show-article-sharing")){var a=document.getElementById("article-share-copy-link-text".concat(t));e&&a&&(a.innerHTML=o),r(t,"close"),0===t&&kn(n)}},l=function(t,e){e&&e.addEventListener("click",function(){a(t)})},window.addEventListener("click",function(t){var n=t.target,r=n.closest(".article-share-link");if(e){var o=n.closest("#share-box-position0");null===(o&&o.classList.contains("show-article-sharing"))&&null===r&&a(0)}var i=n.closest("#share-box-position1");null===(i&&i.classList.contains("show-article-sharing"))&&null===r&&a(1);var s=n.closest("#share-box-position2");null===(s&&s.classList.contains("show-article-sharing"))&&null===r&&a(2)}),f=function(){var t=s(c.mark(function t(i){var a;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,cn("Page Title");case 1:a=t.sent,i.map(function(t,i){u.log("Article sharing: create button for this: ",t,i);var s=document.createElement("li");s.className="share-article",s.id="article-share-position".concat(i),s.setAttribute("tabindex","0");var c=document.createElement("button");c.className="article-share-link",c.setAttribute("aria-pressed","false"),c.setAttribute("aria-controls","share-box-position".concat(i)),c.setAttribute("aria-label","Article Sharing Button"),c.setAttribute("tabindex","0"),s.append(c);var f=document.createElement("span");f.style.display="none",f.classList.add("spring-spinner"),f.id="articleShareBtnSpinner".concat(i),f.innerHTML='\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
';var d=document.querySelector("li.share-facebook"),h=window.getComputedStyle(d),p=document.createElement("span");u.log("article sharing: share icon color: ",h.backgroundColor),"rgba(0, 0, 0, 0)"===h.backgroundColor&&f.classList.add("spring-spinner-invert"),c.append(f),p.id="share-icon-position".concat(i),p.className="article-share-icon";var g=document.createElement("span");g.className="sharing-screen-reader-text",g.innerHTML="Click to share a free article with a friend",s.append(g),t.appendChild(s),c.append(p),n=Dn(i);var A=document.createElement("div");A.id="share-box-position".concat(i),A.className="article-share-box share-box-position".concat(i);var E,y="GIFT THIS ARTICLE",w='You have '.concat("10"," gift articles remaining this month");E=a,u.log(E),u.log("article sharing article title: ",E);var m=document.location.host;if(!1===e){A.classList.add("no-share");var S=m.replace("www.","").replace("develop.","").replace("preprod.",""),b=nn()?"https://subscription.".concat(S):"https://checkout.".concat(S);w='Subscibers get '.concat("10"," gift articles each month"),A.innerHTML='\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
').concat(y,"
\n\t\t\t\t\t
What is article sharing?
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t

Subscribers are entitled to 10 gift sharing articles each month. These can be shared with friends and family who are not subscribers.

\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t

Subscribe now! or Sign in to your account.

\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t')}else A.innerHTML='\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
').concat(y,"
\n\t\t\t\t
").concat(w,"
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t

").concat(E,"

\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
Copy the link
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t');t.appendChild(A);var O=document.getElementById("article-share-position".concat(i));O.addEventListener("click",function(){r(i,"open")}),O.addEventListener("keydown",function(t){"q"===t.key&&r(i,"open")});var N=document.getElementById("article-share-close".concat(i));l(i,N);var R=document.getElementById("cancel-button".concat(i));return l(i,R),document.getElementById("article-share-copy-btn".concat(i)).addEventListener("click",function(){Hn(i)}),"done"});case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),d=[Sn()].concat(i(wn())),u.log("article sharing: target elements are ",d),d.filter(function(t){return null!==t}).length!==d.length){t.next=2;break}return t.next=2,f(d);case 2:if(u.log("Article Sharing: appending sticky nav too"),!e){t.next=4;break}return t.next=3,Pn();case 3:(h=document.querySelectorAll("#article-share-dropdown-article-page"))&&h.forEach(function(t){t.addEventListener("click",function(){r(0,"open")})}),(p=document.querySelector(".border-container #push-account-content #article-share-dropdown-article-page"))&&p.addEventListener("click",function(){document.getElementById("digisubs-toggle").click()});case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),Hn=function(){var t=s(c.mark(function t(e){var n,r,o,i,a,s;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,Mn(e);case 1:return n=t.sent,t.next=2,cn("URL");case 2:if(r=t.sent,u.log("Article sharing: check article endpoint response: successful: ",n),n.sharedCode&&"null"!==n.sharedCode&&void 0!==n.sharedCode){t.next=3;break}In("Network error, try again",e),t.next=11;break;case 3:if("Link Updated"===n.status?In("Link Updated",e):In("Link Copied",e),o="".concat(r,"?share=").concat(n.sharedCode),!document.hasFocus()){t.next=8;break}return t.prev=4,t.next=5,navigator.clipboard.writeText(o);case 5:u.log("Article sharing: Link Copied"),"Link Updated"===n.status?In("Link Updated",e):In("Link Copied",e),t.next=7;break;case 6:t.prev=6,s=t.catch(4),u.error("Clipboard write failed:",s),In("Copy failed. Try again.",e);case 7:t.next=9;break;case 8:u.warn("Clipboard copy blocked: document not focused"),In("Copy failed. Try again.",e);case 9:if((i=document.getElementById("cancel-button-label".concat(e)))&&(i.childNodes[0].nodeValue="Close"),"Link Updated"===n.status){t.next=11;break}return t.next=10,Un(e);case 10:a=t.sent,Cn(a);case 11:case"end":return t.stop()}},t,null,[[4,6]])}));return function(e){return t.apply(this,arguments)}}(),Fn=function(){var t=s(c.mark(function t(){var n,r,o,i,a,l,f,d,h;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.articleShareConvo=!1,window.MNGAuthentication.articleShare="",u.log("article sharing: code check: checking free article code"),n=window.location.search,r=new URLSearchParams(n),t.next=1,cn("Content ID");case 1:if(o=t.sent,i=tn(),u.log("article sharing: code check: url params array ",r.getAll("share")),0!==r.getAll("share").length){t.next=2;break}return u.log("No share search param"),t.abrupt("return",!1);case 2:return window.MNGAuthentication.articleShareConvo=!0,a=r.getAll("share"),gn("articleshare-readingshare"),u.log("Article sharing: code check: check share code: ",a),l=e.A.entitlementsEndpoint,f=e.A.entitlementsApiKey,d="".concat(l,"articleSharing/checkArticleSharedLink"),h={articleName:o,publication:i,code:a[0]},t.abrupt("return",$.ajax({type:"POST",url:d,headers:{"X-Api-Key":f},data:JSON.stringify(h),success:function(t){if(u.log("Article sharing: code check: looking for valid share code: ",t),"nocodefound"===t)u.log("Article sharing: code check: code does not exist"),gn("articleshare-readshare-codenotfound"),window.MNGAuthentication.articleShare="codenotfound";else{u.log("Article sharing: code check: time api timestamp response: ",t.sharedTimestamp);var e=new Date(t.sharedTimestamp),n=(e=e.setDate(e.getDate()+30))/1e3;u.log("Article sharing: code check: time api timestamp response expiration date ",n);var r=new Date;r=Math.floor(r.getTime()/1e3),u.log("Article sharing: code check: current unix time is, ",r),n0&&t.forEach(function(t){if(t&&t.classList.contains("show-article-sharing")){var e=window.scrollY,n=document.getElementById("sharing-bottom"),r=document.getElementById("sharing-top");if(n&&t.classList.contains("share-box-position2"))e/n.offsetTop*100>=93?kn(t):t.classList.contains("article-share-fixed")||t.classList.add("article-share-fixed");if(r&&t.classList.contains("share-box-position1"))window.scrollY/(document.documentElement.scrollHeight-window.innerHeight)*100>=11.5?kn(t):t.classList.contains("article-share-fixed")||t.classList.add("article-share-fixed")}})}),t.next=1,ln();case 1:return e=t.sent,n=e.isAuthenticated,t.next=2,fn();case 2:if(r=t.sent,!0!==n||void 0===window.MNGAuthentication||"function"!=typeof window.MNGAuthentication.isUserSubscriber||!r.isEntitled){t.next=7;break}return u.log("article sharing: subscriber, show sharing tool"),t.next=3,un();case 3:if(o=t.sent,u.log("article sharing: page type is ",o),"article"!==o){t.next=5;break}return t.next=4,Gn(!0);case 4:t.next=6;break;case 5:return t.next=6,Pn();case 6:t.next=9;break;case 7:return u.log("article sharing: not a logged in or a subscriber, show marketing message and check for share code"),t.next=8,Fn();case 8:return t.next=9,Gn(!1);case 9:window.addEventListener("updateArticlesRemainingUI",function(t){Cn(t.detail)});case 10:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();var Xn=function(t){var e;"rgba(0, 0, 0, 0)"===window.getComputedStyle(document.querySelector("li.share-article")).backgroundColor?(t.classList.add("article-share-icon-invert"),e=window.getComputedStyle(document.getElementById("page")).getPropertyValue("--primary")):e="white";var n='\n\t\t\n\t\t');return"url(data:image/svg+xml;base64,".concat(window.btoa(n),")")},Kn=function(){var t=s(c.mark(function t(){var e,n,r;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u.log("engage gifting: waiting for body to load"),t.next=1,on();case 1:null===(e=document.querySelector("style#engage-ga-style"))&&((e=document.createElement("style")).id="engage-ga-style",e.textContent="\n\t\t\t.share-article .engage-ga-share-popup { box-sizing: border-box; }\n\t\t\t.share-article .engage-ga-generate-link { color: white; background-color: var(--primary); }\n\t\t\t.share-article .engage-ga-generate-link:hover { background-color: var(--primary-light); }\n\t\t\t.share-article .engage-ga-generate-link:visited { text-decoration: none; }\n\t\t",document.head.appendChild(e),u.log("engage gifting: engage CSS overrides appended to head:",e)),n=function(t,e){if(null!==t.closest("#sharing-bottom")){u.log("engage gifting: create button for location ".concat(e,":"),t);var n=document.createElement("li");n.className="share-article",n.id="article-share-position".concat(e),n.setAttribute("tabindex","0"),n.setAttribute("data-mg2-action","giftArticleLink"),n.style.display="none";var r=document.createElement("button");r.className="article-share-link",r.setAttribute("aria-label","Article Gifting Button"),r.setAttribute("tabindex","0");var o=document.createElement("span");o.id="share-icon-position".concat(e),o.className="article-share-icon";var i=document.createElement("span");i.className="sharing-screen-reader-text",i.textContent="Click to share a free article with a friend",r.append(o),n.append(r,i),t.appendChild(n),o.style.background=Xn(o)}else u.log("engage gifting: skipping location ".concat(e,":"),t)},r=[Sn()].concat(i(wn())),u.log("engage gifting: target elements are ",r),r.filter(function(t){return null!==t}).length===r.length&&r.forEach(function(t,e){n(t,e)});case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),Vn=function(){var t=s(c.mark(function t(){var e;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u.log("engage gifting: building Engage gifting buttons"),t.next=1,un();case 1:if(e=t.sent,u.log("engage gifting: page type is",e),"article"!==e){t.next=2;break}return t.next=2,Kn();case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();e.A.enableEngageArticleGifting?Vn():_n()})()})(); //# sourceMappingURL=mng-digisubs.articleShare.bundle.js.map;