CINXE.COM
DAZN
<!doctype html><html><head><title>DAZN</title><meta class="protected" charset="utf-8"><meta class="protected" http-equiv="x-ua-compatible" content="ie=edge"><meta name="description" content=""><meta class="protected" name="viewport" content="width=device-width,initial-scale=1"><base href="/"><link class="protected" rel="preconnect" href="https://cdn.cookielaw.org"><link rel="preload" href="https://static.dazndn.com/fonts/DAZNTrim_v2.9_normal_400.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="https://static.dazndn.com/fonts/DAZNTrim_v2.9_normal_600.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="https://static.dazndn.com/fonts/DAZNTrim_v2.9_normal_800.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="https://static.dazndn.com/fonts/Oscine_v2.001_normal_400.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="https://static.dazndn.com/fonts/DAZNTrim_v2.9_italic_600.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="https://static.dazndn.com/fonts/DAZNTrimCondensed_v1.0_normal_400.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="https://static.dazndn.com/fonts/DAZNTrimCondensed_v1.0_normal_700.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="https://static.dazndn.com/fonts/Oscine_v2.001_normal_400.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="https://static.dazndn.com/fonts/Oscine_v2.001_normal_700.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="https://static.dazndn.com/fonts/Oscine_v2.001_normal_800.woff2" as="font" type="font/woff2" crossorigin> <!--ignore-minification-start--> <script class="protected">window.NREUM || (NREUM = {}); NREUM.init = { distributed_tracing: { enabled: true, exclude_newrelic_header: true, cors_use_newrelic_header: false, cors_use_tracecontext_headers: true, }, privacy: { cookies_enabled: false }, ajax: { deny_list: [ 'akamaized.net', 'bam.nr-data.net', 'conviva.com', 'cookielaw.org', 'daznedge.net', 'google-analytics.com', 'google.com', 'telefonica.com', ], }, }; NREUM.loader_config = { accountID: '2364732', trustKey: '2631807', agentID: '928521288', licenseKey: 'c19d614eaa', applicationID: '928521288', }; NREUM.info = { beacon: 'bam.nr-data.net', errorBeacon: 'bam.nr-data.net', licenseKey: 'c19d614eaa', applicationID: '928521288', sa: 1, }; /*! For license information please see nr-loader-spa-1.261.1.min.js.LICENSE.txt */ (() => { var e, t, r = { 2983: (e, t, r) => { 'use strict'; r.d(t, { D0: () => v, gD: () => y, Vp: () => s, oC: () => x, fr: () => _, jD: () => C, hR: () => T, xN: () => b, x1: () => c, aN: () => A, V: () => j, }); var n = r(384), i = r(7864); const o = { beacon: n.NT.beacon, errorBeacon: n.NT.errorBeacon, licenseKey: void 0, applicationID: void 0, sa: void 0, queueTime: void 0, applicationTime: void 0, ttGuid: void 0, user: void 0, account: void 0, product: void 0, extra: void 0, jsAttributes: {}, userAttributes: void 0, atts: void 0, transactionName: void 0, tNamePlain: void 0, }, a = {}; function s(e) { if (!e) throw new Error( 'All info objects require an agent identifier!', ); if (!a[e]) throw new Error( 'Info for '.concat(e, ' was never set'), ); return a[e]; } function c(e, t) { if (!e) throw new Error( 'All info objects require an agent identifier!', ); a[e] = (0, i.a)(t, o); const r = (0, n.nY)(e); r && (r.info = a[e]); } var u = r(993); const d = e => { if (!e || 'string' != typeof e) return !1; try { document.createDocumentFragment().querySelector(e); } catch { return !1; } return !0; }; var l = r(2614), f = r(944); const h = '[data-nr-mask]', g = () => { const e = { mask_selector: '*', block_selector: '[data-nr-block]', mask_input_options: { color: !1, date: !1, 'datetime-local': !1, email: !1, month: !1, number: !1, range: !1, search: !1, tel: !1, text: !1, time: !1, url: !1, week: !1, textarea: !1, select: !1, password: !0, }, }; return { ajax: { deny_list: void 0, block_internal: !0, enabled: !0, harvestTimeSeconds: 10, autoStart: !0, }, distributed_tracing: { enabled: void 0, exclude_newrelic_header: void 0, cors_use_newrelic_header: void 0, cors_use_tracecontext_headers: void 0, allowed_origins: void 0, }, feature_flags: [], harvest: { tooManyRequestsDelay: 60 }, jserrors: { enabled: !0, harvestTimeSeconds: 10, autoStart: !0, }, logging: { enabled: !0, harvestTimeSeconds: 10, autoStart: !0, level: u.p_.INFO, }, metrics: { enabled: !0, autoStart: !0 }, obfuscate: void 0, page_action: { enabled: !0, harvestTimeSeconds: 30, autoStart: !0, }, page_view_event: { enabled: !0, autoStart: !0 }, page_view_timing: { enabled: !0, harvestTimeSeconds: 30, long_task: !1, autoStart: !0, }, privacy: { cookies_enabled: !0 }, proxy: { assets: void 0, beacon: void 0 }, session: { expiresMs: l.wk, inactiveMs: l.BB }, session_replay: { autoStart: !0, enabled: !1, harvestTimeSeconds: 60, preload: !1, sampling_rate: 10, error_sampling_rate: 100, collect_fonts: !1, inline_images: !1, inline_stylesheet: !0, mask_all_inputs: !0, get mask_text_selector() { return e.mask_selector; }, set mask_text_selector(t) { d(t) ? (e.mask_selector = '' .concat(t, ',') .concat(h)) : '' === t || null === t ? (e.mask_selector = h) : (0, f.R)( "An invalid session_replay.mask_selector was provided. '*' will be used.", t, ); }, get block_class() { return 'nr-block'; }, get ignore_class() { return 'nr-ignore'; }, get mask_text_class() { return 'nr-mask'; }, get block_selector() { return e.block_selector; }, set block_selector(t) { d(t) ? (e.block_selector += ','.concat(t)) : '' !== t && (0, f.R)( 'An invalid session_replay.block_selector was provided and will not be used', t, ); }, get mask_input_options() { return e.mask_input_options; }, set mask_input_options(t) { t && 'object' == typeof t ? (e.mask_input_options = { ...t, password: !0, }) : (0, f.R)( 'An invalid session_replay.mask_input_option was provided and will not be used', t, ); }, }, session_trace: { enabled: !0, harvestTimeSeconds: 10, autoStart: !0, }, soft_navigations: { enabled: !0, harvestTimeSeconds: 10, autoStart: !0, }, spa: { enabled: !0, harvestTimeSeconds: 10, autoStart: !0, }, ssl: void 0, }; }, p = {}, m = 'All configuration objects require an agent identifier!'; function v(e) { if (!e) throw new Error(m); if (!p[e]) throw new Error( 'Configuration for '.concat(e, ' was never set'), ); return p[e]; } function b(e, t) { if (!e) throw new Error(m); p[e] = (0, i.a)(t, g()); const r = (0, n.nY)(e); r && (r.init = p[e]); } function y(e, t) { if (!e) throw new Error(m); var r = v(e); if (r) { for (var n = t.split('.'), i = 0; i < n.length - 1; i++) if ('object' != typeof (r = r[n[i]])) return; r = r[n[n.length - 1]]; } return r; } const w = { accountID: void 0, trustKey: void 0, agentID: void 0, licenseKey: void 0, applicationID: void 0, xpid: void 0, }, R = {}; function x(e) { if (!e) throw new Error( 'All loader-config objects require an agent identifier!', ); if (!R[e]) throw new Error( 'LoaderConfig for '.concat(e, ' was never set'), ); return R[e]; } function A(e, t) { if (!e) throw new Error( 'All loader-config objects require an agent identifier!', ); R[e] = (0, i.a)(t, w); const r = (0, n.nY)(e); r && (r.loader_config = R[e]); } const T = (0, n.dV)().o; var E = r(6154), N = r(9324); const S = { buildEnv: N.F3, distMethod: N.Xs, version: N.xv, originTime: E.WN, }, O = { customTransaction: void 0, disabled: !1, isolatedBacklog: !1, loaderType: void 0, maxBytes: 3e4, onerror: void 0, origin: '' + E.gm.location, ptid: void 0, releaseIds: {}, appMetadata: {}, session: void 0, denyList: void 0, harvestCount: 0, timeKeeper: void 0, }, I = {}; function _(e) { if (!e) throw new Error( 'All runtime objects require an agent identifier!', ); if (!I[e]) throw new Error( 'Runtime for '.concat(e, ' was never set'), ); return I[e]; } function j(e, t) { if (!e) throw new Error( 'All runtime objects require an agent identifier!', ); I[e] = { ...(0, i.a)(t, O), ...S }; const r = (0, n.nY)(e); r && (r.runtime = I[e]); } function C(e) { return (function (e) { try { const t = s(e); return ( !!t.licenseKey && !!t.errorBeacon && !!t.applicationID ); } catch (e) { return !1; } })(e); } }, 7864: (e, t, r) => { 'use strict'; r.d(t, { a: () => i }); var n = r(944); function i(e, t) { try { if (!e || 'object' != typeof e) return (0, n.R)( 'Setting a Configurable requires an object as input', ); if (!t || 'object' != typeof t) return (0, n.R)( 'Setting a Configurable requires a model to set its initial properties', ); const r = Object.create( Object.getPrototypeOf(t), Object.getOwnPropertyDescriptors(t), ), o = 0 === Object.keys(r).length ? e : r; for (let a in o) if (void 0 !== e[a]) try { if (null === e[a]) { r[a] = null; continue; } Array.isArray(e[a]) && Array.isArray(t[a]) ? (r[a] = Array.from( new Set([...e[a], ...t[a]]), )) : 'object' == typeof e[a] && 'object' == typeof t[a] ? (r[a] = i(e[a], t[a])) : (r[a] = e[a]); } catch (e) { (0, n.R)( 'An error occurred while setting a property of a Configurable', e, ); } return r; } catch (e) { (0, n.R)( 'An error occured while setting a Configurable', e, ); } } }, 9324: (e, t, r) => { 'use strict'; r.d(t, { F3: () => i, Xs: () => o, Yq: () => a, xv: () => n }); const n = '1.261.1', i = 'PROD', o = 'CDN', a = '2.0.0-alpha.12'; }, 6154: (e, t, r) => { 'use strict'; r.d(t, { A4: () => s, OF: () => d, RI: () => i, Vr: () => g, WN: () => p, bv: () => o, gm: () => a, lR: () => f, lT: () => h, m: () => u, mw: () => c, sb: () => l, }); var n = r(1863); const i = 'undefined' != typeof window && !!window.document, o = 'undefined' != typeof WorkerGlobalScope && (('undefined' != typeof self && self instanceof WorkerGlobalScope && self.navigator instanceof WorkerNavigator) || ('undefined' != typeof globalThis && globalThis instanceof WorkerGlobalScope && globalThis.navigator instanceof WorkerNavigator)), a = i ? window : 'undefined' != typeof WorkerGlobalScope && (('undefined' != typeof self && self instanceof WorkerGlobalScope && self) || ('undefined' != typeof globalThis && globalThis instanceof WorkerGlobalScope && globalThis)), s = 'complete' === a?.document?.readyState, c = Boolean('hidden' === a?.document?.visibilityState), u = '' + a?.location, d = /iPad|iPhone|iPod/.test(a.navigator?.userAgent), l = d && 'undefined' == typeof SharedWorker, f = (() => { const e = a.navigator?.userAgent?.match( /Firefox[/\s](\d+\.\d+)/, ); return Array.isArray(e) && e.length >= 2 ? +e[1] : 0; })(), h = Boolean(i && window.document.documentMode), g = !!a.navigator?.sendBeacon, p = Date.now() - (0, n.t)(); }, 4777: (e, t, r) => { 'use strict'; r.d(t, { J: () => o }); var n = r(944); const i = { agentIdentifier: '', ee: void 0 }; class o { constructor(e) { try { if ('object' != typeof e) return (0, n.R)( 'shared context requires an object as input', ); (this.sharedContext = {}), Object.assign(this.sharedContext, i), Object.entries(e).forEach(e => { let [t, r] = e; Object.keys(i).includes(t) && (this.sharedContext[t] = r); }); } catch (e) { (0, n.R)( 'An error occurred while setting SharedContext', e, ); } } } }, 7295: (e, t, r) => { 'use strict'; r.d(t, { Xv: () => a, gX: () => i, iW: () => o }); var n = []; function i(e) { if (!e || o(e)) return !1; if (0 === n.length) return !0; for (var t = 0; t < n.length; t++) { var r = n[t]; if ('*' === r.hostname) return !1; if ( s(r.hostname, e.hostname) && c(r.pathname, e.pathname) ) return !1; } return !0; } function o(e) { return void 0 === e.hostname; } function a(e) { if (((n = []), e && e.length)) for (var t = 0; t < e.length; t++) { let r = e[t]; if (!r) continue; 0 === r.indexOf('http://') ? (r = r.substring(7)) : 0 === r.indexOf('https://') && (r = r.substring(8)); const i = r.indexOf('/'); let o, a; i > 0 ? ((o = r.substring(0, i)), (a = r.substring(i))) : ((o = r), (a = '')); let [s] = o.split(':'); n.push({ hostname: s, pathname: a }); } } function s(e, t) { return ( !(e.length > t.length) && t.indexOf(e) === t.length - e.length ); } function c(e, t) { return ( 0 === e.indexOf('/') && (e = e.substring(1)), 0 === t.indexOf('/') && (t = t.substring(1)), '' === e || e === t ); } }, 1687: (e, t, r) => { 'use strict'; r.d(t, { Ak: () => c, Ze: () => l, x3: () => u }); var n = r(7836), i = r(1478), o = r(3606), a = r(860); const s = {}; function c(e, t) { const r = { staged: !1, priority: a.P[t] || 0 }; d(e), s[e].get(t) || s[e].set(t, r); } function u(e, t) { d(e), s[e].get(t) && s[e].delete(t), s[e].size && f(e); } function d(e) { if (!e) throw new Error('agentIdentifier required'); s[e] || (s[e] = new Map()); } function l() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '', t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 'feature', r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2]; if ((d(e), !e || !s[e].get(t) || r)) return h(e, t); (s[e].get(t).staged = !0), f(e); } function f(e) { const t = Array.from(s[e]); t.every(e => { let [t, r] = e; return r.staged; }) && (t.sort((e, t) => e[1].priority - t[1].priority), t.forEach(t => { let [r] = t; s[e].delete(r), h(e, r); })); } function h(e, t) { const r = e ? n.ee.get(e) : n.ee, a = o.i.handlers; if (r.backlog && a) { var s = r.backlog[t], c = a[t]; if (c) { for (var u = 0; s && u < s.length; ++u) g(s[u], c); (0, i.$)(c, function (e, t) { (0, i.$)(t, function (t, r) { r[0].on(e, r[1]); }); }); } r.isolatedBacklog || delete a[t], (r.backlog[t] = null), r.emit('drain-' + t, []); } } function g(e, t) { var r = e[1]; (0, i.$)(t[r], function (t, r) { var n = e[0]; if (r[0] === n) { var i = r[1], o = e[3], a = e[2]; i.apply(o, a); } }); } }, 7836: (e, t, r) => { 'use strict'; r.d(t, { P: () => c, ee: () => u }); var n = r(384), i = r(8990), o = r(2983), a = r(2646), s = r(5607); const c = 'nr@context:'.concat(s.W), u = (function e(t, r) { var n = {}, s = {}, d = {}, l = !1; try { l = 16 === r.length && (0, o.fr)(r).isolatedBacklog; } catch (e) {} var f = { on: g, addEventListener: g, removeEventListener: function (e, t) { var r = n[e]; if (!r) return; for (var i = 0; i < r.length; i++) r[i] === t && r.splice(i, 1); }, emit: function (e, r, n, i, o) { !1 !== o && (o = !0); if (u.aborted && !i) return; t && o && t.emit(e, r, n); for ( var a = h(n), c = p(e), d = c.length, l = 0; l < d; l++ ) c[l].apply(a, r); var g = v()[s[e]]; g && g.push([f, e, r, a]); return a; }, get: m, listeners: p, context: h, buffer: function (e, t) { const r = v(); if (((t = t || 'feature'), f.aborted)) return; Object.entries(e || {}).forEach(e => { let [n, i] = e; (s[i] = t), t in r || (r[t] = []); }); }, abort: function () { (f._aborted = !0), Object.keys(f.backlog).forEach(e => { delete f.backlog[e]; }); }, isBuffering: function (e) { return !!v()[s[e]]; }, debugId: r, backlog: l ? {} : t && 'object' == typeof t.backlog ? t.backlog : {}, isolatedBacklog: l, }; return ( Object.defineProperty(f, 'aborted', { get: () => { let e = f._aborted || !1; return e || (t && (e = t.aborted), e); }, }), f ); function h(e) { return e && e instanceof a.y ? e : e ? (0, i.I)(e, c, () => new a.y(c)) : new a.y(c); } function g(e, t) { n[e] = p(e).concat(t); } function p(e) { return n[e] || []; } function m(t) { return (d[t] = d[t] || e(f, t)); } function v() { return f.backlog; } })(void 0, 'globalEE'), d = (0, n.Zm)(); d.ee || (d.ee = u); }, 2646: (e, t, r) => { 'use strict'; r.d(t, { y: () => n }); class n { constructor(e) { this.contextId = e; } } }, 9908: (e, t, r) => { 'use strict'; r.d(t, { d: () => n, p: () => i }); var n = r(7836).ee.get('handle'); function i(e, t, r, i, o) { o ? (o.buffer([e], i), o.emit(e, t, r)) : (n.buffer([e], i), n.emit(e, t, r)); } }, 3606: (e, t, r) => { 'use strict'; r.d(t, { i: () => o }); var n = r(9908); o.on = a; var i = (o.handlers = {}); function o(e, t, r, o) { a(o || n.d, i, e, t, r); } function a(e, t, r, i, o) { o || (o = 'feature'), e || (e = n.d); var a = (t[o] = t[o] || {}); (a[r] = a[r] || []).push([e, i]); } }, 3878: (e, t, r) => { 'use strict'; r.d(t, { DD: () => c, jT: () => a, sp: () => s }); var n = r(6154); let i = !1, o = !1; try { const e = { get passive() { return (i = !0), !1; }, get signal() { return (o = !0), !1; }, }; n.gm.addEventListener('test', null, e), n.gm.removeEventListener('test', null, e); } catch (e) {} function a(e, t) { return i || o ? { capture: !!e, passive: i, signal: t } : !!e; } function s(e, t) { let r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], n = arguments.length > 3 ? arguments[3] : void 0; window.addEventListener(e, t, a(r, n)); } function c(e, t) { let r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], n = arguments.length > 3 ? arguments[3] : void 0; document.addEventListener(e, t, a(r, n)); } }, 5607: (e, t, r) => { 'use strict'; r.d(t, { W: () => n }); const n = (0, r(9566).bz)(); }, 9566: (e, t, r) => { 'use strict'; r.d(t, { LA: () => s, ZF: () => c, bz: () => a, el: () => u }); var n = r(6154); const i = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'; function o(e, t) { return e ? 15 & e[t] : (16 * Math.random()) | 0; } function a() { const e = n.gm?.crypto || n.gm?.msCrypto; let t, r = 0; return ( e && e.getRandomValues && (t = e.getRandomValues(new Uint8Array(30))), i .split('') .map(e => 'x' === e ? o(t, r++).toString(16) : 'y' === e ? ((3 & o()) | 8).toString(16) : e, ) .join('') ); } function s(e) { const t = n.gm?.crypto || n.gm?.msCrypto; let r, i = 0; t && t.getRandomValues && (r = t.getRandomValues(new Uint8Array(e))); const a = []; for (var s = 0; s < e; s++) a.push(o(r, i++).toString(16)); return a.join(''); } function c() { return s(16); } function u() { return s(32); } }, 2614: (e, t, r) => { 'use strict'; r.d(t, { BB: () => a, H3: () => n, g: () => u, iL: () => c, tS: () => s, uh: () => i, wk: () => o, }); const n = 'NRBA', i = 'SESSION', o = 144e5, a = 18e5, s = { STARTED: 'session-started', PAUSE: 'session-pause', RESET: 'session-reset', RESUME: 'session-resume', UPDATE: 'session-update', }, c = { SAME_TAB: 'same-tab', CROSS_TAB: 'cross-tab' }, u = { OFF: 0, FULL: 1, ERROR: 2 }; }, 1863: (e, t, r) => { 'use strict'; function n() { return Math.floor(performance.now()); } r.d(t, { t: () => n }); }, 7485: (e, t, r) => { 'use strict'; r.d(t, { D: () => i }); var n = r(6154); function i(e) { if (0 === (e || '').indexOf('data:')) return { protocol: 'data' }; try { const t = new URL(e, location.href), r = { port: t.port, hostname: t.hostname, pathname: t.pathname, search: t.search, protocol: t.protocol.slice( 0, t.protocol.indexOf(':'), ), sameOrigin: t.protocol === n.gm?.location?.protocol && t.host === n.gm?.location?.host, }; return ( (r.port && '' !== r.port) || ('http:' === t.protocol && (r.port = '80'), 'https:' === t.protocol && (r.port = '443')), r.pathname && '' !== r.pathname ? r.pathname.startsWith('/') || (r.pathname = '/'.concat(r.pathname)) : (r.pathname = '/'), r ); } catch (e) { return {}; } } }, 944: (e, t, r) => { 'use strict'; function n(e, t) { 'function' == typeof console.warn && (console.warn('New Relic: '.concat(e)), t && console.warn(t)); } r.d(t, { R: () => n }); }, 5284: (e, t, r) => { 'use strict'; r.d(t, { t: () => c, B: () => s }); var n = r(7836), i = r(6154); const o = 'newrelic'; const a = new Set(), s = {}; function c(e, t) { const r = n.ee.get(t); (s[t] ??= {}), e && 'object' == typeof e && (a.has(t) || (r.emit('rumresp', [e]), (s[t] = e), a.add(t), (function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; try { i.gm.dispatchEvent( new CustomEvent(o, { detail: e }), ); } catch (e) {} })({ loaded: !0 }))); } }, 8990: (e, t, r) => { 'use strict'; r.d(t, { I: () => i }); var n = Object.prototype.hasOwnProperty; function i(e, t, r) { if (n.call(e, t)) return e[t]; var i = r(); if (Object.defineProperty && Object.keys) try { return ( Object.defineProperty(e, t, { value: i, writable: !0, enumerable: !1, }), i ); } catch (e) {} return (e[t] = i), i; } }, 6389: (e, t, r) => { 'use strict'; function n(e) { var t = this; let r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 500, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; const i = n?.leading || !1; let o; return function () { for ( var n = arguments.length, a = new Array(n), s = 0; s < n; s++ ) a[s] = arguments[s]; i && void 0 === o && (e.apply(t, a), (o = setTimeout(() => { o = clearTimeout(o); }, r))), i || (clearTimeout(o), (o = setTimeout(() => { e.apply(t, a); }, r))); }; } function i(e) { var t = this; let r = !1; return function () { if (!r) { r = !0; for ( var n = arguments.length, i = new Array(n), o = 0; o < n; o++ ) i[o] = arguments[o]; e.apply(t, i); } }; } r.d(t, { J: () => i, s: () => n }); }, 1478: (e, t, r) => { 'use strict'; r.d(t, { $: () => n }); const n = (e, t) => Object.entries(e || {}).map(e => { let [r, n] = e; return t(r, n); }); }, 3304: (e, t, r) => { 'use strict'; r.d(t, { A: () => o }); var n = r(7836); const i = () => { const e = new WeakSet(); return (t, r) => { if ('object' == typeof r && null !== r) { if (e.has(r)) return; e.add(r); } return r; }; }; function o(e) { try { return JSON.stringify(e, i()); } catch (e) { try { n.ee.emit('internal-error', [e]); } catch (e) {} } } }, 5289: (e, t, r) => { 'use strict'; r.d(t, { GG: () => o, sB: () => a }); var n = r(3878); function i() { return ( 'undefined' == typeof document || 'complete' === document.readyState ); } function o(e, t) { if (i()) return e(); (0, n.sp)('load', e, t); } function a(e) { if (i()) return e(); (0, n.DD)('DOMContentLoaded', e); } }, 384: (e, t, r) => { 'use strict'; r.d(t, { NT: () => o, US: () => d, Zm: () => a, bQ: () => c, dV: () => s, nY: () => u, pV: () => l, }); var n = r(6154), i = r(1863); const o = { beacon: 'bam.nr-data.net', errorBeacon: 'bam.nr-data.net', }; function a() { return ( n.gm.NREUM || (n.gm.NREUM = {}), void 0 === n.gm.newrelic && (n.gm.newrelic = n.gm.NREUM), n.gm.NREUM ); } function s() { let e = a(); return ( e.o || (e.o = { ST: n.gm.setTimeout, SI: n.gm.setImmediate, CT: n.gm.clearTimeout, XHR: n.gm.XMLHttpRequest, REQ: n.gm.Request, EV: n.gm.Event, PR: n.gm.Promise, MO: n.gm.MutationObserver, FETCH: n.gm.fetch, }), e ); } function c(e, t) { let r = a(); (r.initializedAgents ??= {}), (t.initializedAt = { ms: (0, i.t)(), date: new Date(), }), (r.initializedAgents[e] = t); } function u(e) { let t = a(); return t.initializedAgents?.[e]; } function d(e, t) { a()[e] = t; } function l() { return ( (function () { let e = a(); const t = e.info || {}; e.info = { beacon: o.beacon, errorBeacon: o.errorBeacon, ...t, }; })(), (function () { let e = a(); const t = e.init || {}; e.init = { ...t }; })(), s(), (function () { let e = a(); const t = e.loader_config || {}; e.loader_config = { ...t }; })(), a() ); } }, 2843: (e, t, r) => { 'use strict'; r.d(t, { u: () => i }); var n = r(3878); function i(e) { let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], r = arguments.length > 2 ? arguments[2] : void 0, i = arguments.length > 3 ? arguments[3] : void 0; (0, n.DD)( 'visibilitychange', function () { if (t) return void ( 'hidden' === document.visibilityState && e() ); e(document.visibilityState); }, r, i, ); } }, 8941: (e, t, r) => { 'use strict'; r.d(t, { um: () => f, NZ: () => R, vC: () => T, Ri: () => O, Ak: () => _, o8: () => C, MO: () => U, bX: () => V, }); var n = r(7836), i = r(3434), o = r(8990), a = r(6154); const s = {}, c = a.gm.XMLHttpRequest, u = 'addEventListener', d = 'removeEventListener', l = 'nr@wrapped:'.concat(n.P); function f(e) { var t = (function (e) { return (e || n.ee).get('events'); })(e); if (s[t.debugId]++) return t; s[t.debugId] = 1; var r = (0, i.YM)(t, !0); function f(e) { r.inPlace(e, [u, d], '-', g); } function g(e, t) { return e[1]; } return ( 'getPrototypeOf' in Object && (a.RI && h(document, f), h(a.gm, f), h(c.prototype, f)), t.on(u + '-start', function (e, t) { var n = e[1]; if ( null !== n && ('function' == typeof n || 'object' == typeof n) ) { var i = (0, o.I)(n, l, function () { var e = { object: function () { if ( 'function' != typeof n.handleEvent ) return; return n.handleEvent.apply( n, arguments, ); }, function: n, }[typeof n]; return e ? r( e, 'fn-', null, e.name || 'anonymous', ) : n; }); this.wrapped = e[1] = i; } }), t.on(d + '-start', function (e) { e[1] = this.wrapped || e[1]; }), t ); } function h(e, t) { let r = e; for ( ; 'object' == typeof r && !Object.prototype.hasOwnProperty.call(r, u); ) r = Object.getPrototypeOf(r); for ( var n = arguments.length, i = new Array(n > 2 ? n - 2 : 0), o = 2; o < n; o++ ) i[o - 2] = arguments[o]; r && t(r, ...i); } var g = 'fetch-', p = g + 'body-', m = ['arrayBuffer', 'blob', 'json', 'text', 'formData'], v = a.gm.Request, b = a.gm.Response, y = 'prototype'; const w = {}; function R(e) { const t = (function (e) { return (e || n.ee).get('fetch'); })(e); if (!(v && b && a.gm.fetch)) return t; if (w[t.debugId]++) return t; function r(e, r, i) { var o = e[r]; 'function' == typeof o && (e[r] = function () { var e, r = [...arguments], a = {}; t.emit(i + 'before-start', [r], a), a[n.P] && a[n.P].dt && (e = a[n.P].dt); var s = o.apply(this, r); return ( t.emit(i + 'start', [r, e], s), s.then( function (e) { return ( t.emit(i + 'end', [null, e], s), e ); }, function (e) { throw ( (t.emit(i + 'end', [e], s), e) ); }, ) ); }); } return ( (w[t.debugId] = 1), m.forEach(e => { r(v[y], e, p), r(b[y], e, p); }), r(a.gm, 'fetch', g), t.on(g + 'end', function (e, r) { var n = this; if (r) { var i = r.headers.get('content-length'); null !== i && (n.rxSize = i), t.emit(g + 'done', [null, r], n); } else t.emit(g + 'done', [e], n); }), t ); } const x = {}, A = ['pushState', 'replaceState']; function T(e) { const t = (function (e) { return (e || n.ee).get('history'); })(e); return ( !a.RI || x[t.debugId]++ || ((x[t.debugId] = 1), (0, i.YM)(t).inPlace(window.history, A, '-')), t ); } var E = r(3878); const N = {}, S = ['appendChild', 'insertBefore', 'replaceChild']; function O(e) { const t = (function (e) { return (e || n.ee).get('jsonp'); })(e); if (!a.RI || N[t.debugId]) return t; N[t.debugId] = !0; var r = (0, i.YM)(t), o = /[?&](?:callback|cb)=([^&#]+)/, s = /(.*)\.([^.]+)/, c = /^(\w+)(\.|$)(.*)$/; function u(e, t) { if (!e) return t; const r = e.match(c), n = r[1]; return u(r[3], t[n]); } return ( r.inPlace(Node.prototype, S, 'dom-'), t.on('dom-start', function (e) { !(function (e) { if ( !e || 'string' != typeof e.nodeName || 'script' !== e.nodeName.toLowerCase() ) return; if ('function' != typeof e.addEventListener) return; var n = ((i = e.src), (a = i.match(o)), a ? a[1] : null); var i, a; if (!n) return; var c = (function (e) { var t = e.match(s); if (t && t.length >= 3) return { key: t[2], parent: u(t[1], window), }; return { key: e, parent: window }; })(n); if ('function' != typeof c.parent[c.key]) return; var d = {}; function l() { t.emit('jsonp-end', [], d), e.removeEventListener( 'load', l, (0, E.jT)(!1), ), e.removeEventListener( 'error', f, (0, E.jT)(!1), ); } function f() { t.emit('jsonp-error', [], d), t.emit('jsonp-end', [], d), e.removeEventListener( 'load', l, (0, E.jT)(!1), ), e.removeEventListener( 'error', f, (0, E.jT)(!1), ); } r.inPlace(c.parent, [c.key], 'cb-', d), e.addEventListener( 'load', l, (0, E.jT)(!1), ), e.addEventListener( 'error', f, (0, E.jT)(!1), ), t.emit('new-jsonp', [e.src], d); })(e[0]); }), t ); } const I = {}; function _(e) { const t = (function (e) { return (e || n.ee).get('mutation'); })(e); if (!a.RI || I[t.debugId]) return t; I[t.debugId] = !0; var r = (0, i.YM)(t), o = a.gm.MutationObserver; return ( o && ((window.MutationObserver = function (e) { return this instanceof o ? new o(r(e, 'fn-')) : o.apply(this, arguments); }), (MutationObserver.prototype = o.prototype)), t ); } const j = {}; function C(e) { const t = (function (e) { return (e || n.ee).get('promise'); })(e); if (j[t.debugId]) return t; j[t.debugId] = !0; var r = t.context, o = (0, i.YM)(t), s = a.gm.Promise; return ( s && (function () { function e(r) { var n = t.context(), i = o(r, 'executor-', n, null, !1); const a = Reflect.construct(s, [i], e); return ( (t.context(a).getCtx = function () { return n; }), a ); } (a.gm.Promise = e), Object.defineProperty(e, 'name', { value: 'Promise', }), (e.toString = function () { return s.toString(); }), Object.setPrototypeOf(e, s), ['all', 'race'].forEach(function (r) { const n = s[r]; e[r] = function (e) { let i = !1; [...(e || [])].forEach(e => { this.resolve(e).then( a('all' === r), a(!1), ); }); const o = n.apply(this, arguments); return o; function a(e) { return function () { t.emit( 'propagate', [null, !i], o, !1, !1, ), (i = i || !e); }; } }; }), ['resolve', 'reject'].forEach(function (r) { const n = s[r]; e[r] = function (e) { const r = n.apply(this, arguments); return ( e !== r && t.emit( 'propagate', [e, !0], r, !1, !1, ), r ); }; }), (e.prototype = s.prototype); const n = s.prototype.then; (s.prototype.then = function () { var e = this, i = r(e); i.promise = e; for ( var a = arguments.length, s = new Array(a), c = 0; c < a; c++ ) s[c] = arguments[c]; (s[0] = o(s[0], 'cb-', i, null, !1)), (s[1] = o(s[1], 'cb-', i, null, !1)); const u = n.apply(this, s); return ( (i.nextPromise = u), t.emit('propagate', [e, !0], u, !1, !1), u ); }), (s.prototype.then[i.Jt] = n), t.on('executor-start', function (e) { (e[0] = o( e[0], 'resolve-', this, null, !1, )), (e[1] = o( e[1], 'resolve-', this, null, !1, )); }), t.on('executor-err', function (e, t, r) { e[1](r); }), t.on('cb-end', function (e, r, n) { t.emit( 'propagate', [n, !0], this.nextPromise, !1, !1, ); }), t.on('propagate', function (e, r, n) { (this.getCtx && !r) || (this.getCtx = function () { if (e instanceof Promise) var r = t.context(e); return r && r.getCtx ? r.getCtx() : this; }); }); })(), t ); } const P = {}, k = 'setTimeout', L = 'setInterval', D = 'clearTimeout', H = '-start', M = '-', K = [k, 'setImmediate', L, D, 'clearImmediate']; function U(e) { const t = (function (e) { return (e || n.ee).get('timer'); })(e); if (P[t.debugId]++) return t; P[t.debugId] = 1; var r = (0, i.YM)(t); return ( r.inPlace(a.gm, K.slice(0, 2), k + M), r.inPlace(a.gm, K.slice(2, 3), L + M), r.inPlace(a.gm, K.slice(3), D + M), t.on(L + H, function (e, t, n) { e[0] = r(e[0], 'fn-', null, n); }), t.on(k + H, function (e, t, n) { (this.method = n), (this.timerDuration = isNaN(e[1]) ? 0 : +e[1]), (e[0] = r(e[0], 'fn-', this, n)); }), t ); } var F = r(944); const B = {}, G = ['open', 'send']; function V(e) { var t = e || n.ee; const r = (function (e) { return (e || n.ee).get('xhr'); })(t); if (B[r.debugId]++) return r; (B[r.debugId] = 1), f(t); var o = (0, i.YM)(r), s = a.gm.XMLHttpRequest, c = a.gm.MutationObserver, u = a.gm.Promise, d = a.gm.setInterval, l = 'readystatechange', h = [ 'onload', 'onerror', 'onabort', 'onloadstart', 'onloadend', 'onprogress', 'ontimeout', ], g = [], p = (a.gm.XMLHttpRequest = function (e) { const t = new s(e), n = r.context(t); try { r.emit('new-xhr', [t], n), t.addEventListener( l, ((i = n), function () { var e = this; e.readyState > 3 && !i.resolved && ((i.resolved = !0), r.emit('xhr-resolved', [], e)), o.inPlace(e, h, 'fn-', R); }), (0, E.jT)(!1), ); } catch (e) { (0, F.R)( 'An error occurred while intercepting XHR', e, ); try { r.emit('internal-error', [e]); } catch (e) {} } var i; return t; }); function m(e, t) { o.inPlace(t, ['onreadystatechange'], 'fn-', R); } if ( ((function (e, t) { for (var r in e) t[r] = e[r]; })(s, p), (p.prototype = s.prototype), o.inPlace(p.prototype, G, '-xhr-', R), r.on('send-xhr-start', function (e, t) { m(e, t), (function (e) { g.push(e), c && (v ? v.then(w) : d ? d(w) : ((b = -b), (y.data = b))); })(t); }), r.on('open-xhr-start', m), c) ) { var v = u && u.resolve(); if (!d && !u) { var b = 1, y = document.createTextNode(b); new c(w).observe(y, { characterData: !0 }); } } else t.on('fn-end', function (e) { (e[0] && e[0].type === l) || w(); }); function w() { for (var e = 0; e < g.length; e++) m(0, g[e]); g.length && (g = []); } function R(e, t) { return t; } return r; } }, 3434: (e, t, r) => { 'use strict'; r.d(t, { Jt: () => o, YM: () => c }); var n = r(7836), i = r(5607); const o = 'nr@original:'.concat(i.W); var a = Object.prototype.hasOwnProperty, s = !1; function c(e, t) { return ( e || (e = n.ee), (r.inPlace = function (e, t, n, i, o) { n || (n = ''); const a = '-' === n.charAt(0); for (let s = 0; s < t.length; s++) { const c = t[s], u = e[c]; d(u) || (e[c] = r(u, a ? c + n : n, i, c, o)); } }), (r.flag = o), r ); function r(t, r, n, s, c) { return d(t) ? t : (r || (r = ''), (nrWrapper[o] = t), (function (e, t, r) { if (Object.defineProperty && Object.keys) try { return ( Object.keys(e).forEach(function ( r, ) { Object.defineProperty(t, r, { get: function () { return e[r]; }, set: function (t) { return (e[r] = t), t; }, }); }), t ); } catch (e) { u([e], r); } for (var n in e) a.call(e, n) && (t[n] = e[n]); })(t, nrWrapper, e), nrWrapper); function nrWrapper() { var o, a, d, l; try { (a = this), (o = [...arguments]), (d = 'function' == typeof n ? n(o, a) : n || {}); } catch (t) { u([t, '', [o, a, s], d], e); } i(r + 'start', [o, a, s], d, c); try { return (l = t.apply(a, o)); } catch (e) { throw (i(r + 'err', [o, a, e], d, c), e); } finally { i(r + 'end', [o, a, l], d, c); } } } function i(r, n, i, o) { if (!s || t) { var a = s; s = !0; try { e.emit(r, n, i, t, o); } catch (t) { u([t, r, n, i], e); } s = a; } } } function u(e, t) { t || (t = n.ee); try { t.emit('internal-error', e); } catch (e) {} } function d(e) { return !(e && 'function' == typeof e && e.apply && !e[o]); } }, 9300: (e, t, r) => { 'use strict'; r.d(t, { T: () => n }); const n = r(860).K.ajax; }, 6774: (e, t, r) => { 'use strict'; r.d(t, { T: () => n }); const n = r(860).K.jserrors; }, 993: (e, t, r) => { 'use strict'; r.d(t, { ET: () => o, It: () => s, TZ: () => a, YY: () => u, bu: () => c, p_: () => i, zk: () => d, }); var n = r(860); const i = { ERROR: 'ERROR', WARN: 'WARN', INFO: 'INFO', DEBUG: 'DEBUG', TRACE: 'TRACE', }, o = 'log', a = n.K.logging, s = 1e6, c = 'failed to wrap logger: ', u = 'invalid log level: ', d = 'ignored log: '; }, 3785: (e, t, r) => { 'use strict'; r.d(t, { R: () => d, b: () => l }); var n = r(9908), i = r(1863), o = r(944), a = r(3304), s = r(860), c = r(3969), u = r(993); function d(e, t) { let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, d = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : u.p_.INFO; try { if ('string' != typeof t) { const e = (0, a.A)(t); t = e && '{}' !== e ? e : String(t); } } catch (e) { return void (0, o.R)( 'could not cast log message to string', t, ); } (0, n.p)( c.xV, ['API/logging/'.concat(d.toLowerCase(), '/called')], void 0, s.K.metrics, e, ), (0, n.p)( u.ET, [(0, i.t)(), t, r, d], void 0, s.K.logging, e, ); } function l(e) { return ( 'string' == typeof e && Object.values(u.p_).some( t => t.toUpperCase() === e.toUpperCase(), ) ); } }, 3969: (e, t, r) => { 'use strict'; r.d(t, { TZ: () => n, XG: () => s, rs: () => i, xV: () => a, z_: () => o, }); const n = r(860).K.metrics, i = 'sm', o = 'cm', a = 'storeSupportabilityMetrics', s = 'storeEventMetrics'; }, 8166: (e, t, r) => { 'use strict'; r.d(t, { T: () => n }); const n = r(860).K.pageAction; }, 6630: (e, t, r) => { 'use strict'; r.d(t, { T: () => n }); const n = r(860).K.pageViewEvent; }, 782: (e, t, r) => { 'use strict'; r.d(t, { T: () => n }); const n = r(860).K.pageViewTiming; }, 6344: (e, t, r) => { 'use strict'; r.d(t, { BB: () => f, G4: () => o, It: () => c, No: () => u, Qb: () => h, TZ: () => i, Ug: () => a, _s: () => s, bc: () => l, yP: () => d, }); var n = r(2614); const i = r(860).K.sessionReplay, o = { RECORD: 'recordReplay', PAUSE: 'pauseReplay', REPLAY_RUNNING: 'replayRunning', ERROR_DURING_REPLAY: 'errorDuringReplay', }, a = 0.12, s = { DomContentLoaded: 0, Load: 1, FullSnapshot: 2, IncrementalSnapshot: 3, Meta: 4, Custom: 5, }, c = 1e6, u = 64e3, d = { [n.g.ERROR]: 15e3, [n.g.FULL]: 3e5, [n.g.OFF]: 0 }, l = { RESET: { message: 'Session was reset', sm: 'Reset' }, IMPORT: { message: 'Recorder failed to import', sm: 'Import', }, TOO_MANY: { message: '429: Too Many Requests', sm: 'Too-Many', }, TOO_BIG: { message: 'Payload was too large', sm: 'Too-Big', }, CROSS_TAB: { message: 'Session Entity was set to OFF on another tab', sm: 'Cross-Tab', }, ENTITLEMENTS: { message: 'Session Replay is not allowed and will not be started', sm: 'Entitlement', }, }, f = 5e3, h = { API: 'api' }; }, 5270: (e, t, r) => { 'use strict'; r.d(t, { Aw: () => s, CT: () => u, K4: () => c, SR: () => a }); var n = r(2983), i = r(7767), o = r(6154); function a(e) { return ( !!n.hR.MO && (0, i.V)(e) && !0 === (0, n.gD)(e, 'session_trace.enabled') ); } function s(e) { return ( !0 === (0, n.gD)(e, 'session_replay.preload') && a(e) ); } function c(e, t) { return ( !!a(e) && (!!t?.isNew || !!t?.state.sessionReplayMode) ); } function u(e, t) { const r = t.correctAbsoluteTimestamp(e); return { originalTimestamp: e, correctedTimestamp: r, timestampDiff: e - r, originTime: o.WN, correctedOriginTime: t.correctedOriginTime, originTimeDiff: Math.floor( o.WN - t.correctedOriginTime, ), }; } }, 3738: (e, t, r) => { 'use strict'; r.d(t, { He: () => i, Kp: () => s, Lc: () => u, Rz: () => d, TZ: () => n, bD: () => o, d3: () => a, jx: () => l, uP: () => c, }); const n = r(860).K.sessionTrace, i = 'bstResource', o = 'resource', a = '-start', s = '-end', c = 'fn' + a, u = 'fn' + s, d = 'pushState', l = 1e3; }, 3962: (e, t, r) => { 'use strict'; r.d(t, { AM: () => o, O2: () => s, Qu: () => c, TZ: () => a, ih: () => u, tC: () => i, }); var n = r(860); const i = ['click', 'keydown', 'submit'], o = 'api', a = n.K.softNav, s = { INITIAL_PAGE_LOAD: '', ROUTE_CHANGE: 1, UNSPECIFIED: 2, }, c = { INTERACTION: 1, AJAX: 2, CUSTOM_END: 3, CUSTOM_TRACER: 4, }, u = { IP: 'in progress', FIN: 'finished', CAN: 'cancelled', }; }, 7378: (e, t, r) => { 'use strict'; r.d(t, { $p: () => x, BR: () => b, Kp: () => R, L3: () => y, Lc: () => c, NC: () => o, SG: () => d, TZ: () => i, U6: () => g, UT: () => m, d3: () => w, dT: () => f, e5: () => T, gx: () => v, l9: () => l, oW: () => h, op: () => p, rw: () => u, tH: () => E, uP: () => s, wW: () => A, xq: () => a, }); var n = r(2983); const i = r(860).K.spa, o = [ 'click', 'submit', 'keypress', 'keydown', 'keyup', 'change', ], a = 999, s = 'fn-start', c = 'fn-end', u = 'cb-start', d = 'api-ixn-', l = 'remaining', f = 'interaction', h = 'spaNode', g = 'jsonpNode', p = 'fetch-start', m = 'fetch-done', v = 'fetch-body-', b = 'jsonp-end', y = n.hR.ST, w = '-start', R = '-end', x = '-body', A = 'cb' + R, T = 'jsTime', E = 'fetch'; }, 4234: (e, t, r) => { 'use strict'; r.d(t, { W: () => i }); var n = r(7836); class i { constructor(e, t, r) { (this.agentIdentifier = e), (this.aggregator = t), (this.ee = n.ee.get(e)), (this.featureName = r), (this.blocked = !1); } } }, 7767: (e, t, r) => { 'use strict'; r.d(t, { V: () => o }); var n = r(2983), i = r(6154); const o = e => i.RI && !0 === (0, n.gD)(e, 'privacy.cookies_enabled'); }, 425: (e, t, r) => { 'use strict'; r.d(t, { j: () => O }); var n = r(860), i = r(2983), o = r(9908), a = r(7836), s = r(1687), c = r(5289), u = r(6154), d = r(944), l = r(3969), f = r(384), h = r(6344); const g = [ 'setErrorHandler', 'finished', 'addToTrace', 'addRelease', 'addPageAction', 'setCurrentRouteName', 'setPageViewName', 'setCustomAttribute', 'interaction', 'noticeError', 'setUserId', 'setApplicationVersion', 'start', h.G4.RECORD, h.G4.PAUSE, 'log', 'wrapLogger', ], p = [ 'setErrorHandler', 'finished', 'addToTrace', 'addRelease', ]; var m = r(1863), v = r(2614), b = r(993), y = r(3785), w = r(2646), R = r(3434); function x(e, t, r, n) { const i = (function (e) { return (e || a.ee).get('logger'); })(e), o = (0, R.YM)(i), s = new w.y(a.P); return ( (s.level = n.level), (s.customAttributes = n.customAttributes), o.inPlace(t, [r], 'wrap-logger-', s), i ); } function A() { const e = (0, f.pV)(); g.forEach(t => { e[t] = function () { for ( var r = arguments.length, n = new Array(r), i = 0; i < r; i++ ) n[i] = arguments[i]; return (function (t) { for ( var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++ ) n[i - 1] = arguments[i]; let o = []; return ( Object.values(e.initializedAgents).forEach( e => { e.exposed && e.api[t] && o.push(e.api[t](...n)); }, ), o.length > 1 ? o : o[0] ); })(t, ...n); }; }); } const T = {}; var E = r(5284); const N = e => { const t = e.startsWith('http'); (e += '/'), (r.p = t ? e : 'https://' + e); }; let S = !1; function O(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, g = arguments.length > 2 ? arguments[2] : void 0, w = arguments.length > 3 ? arguments[3] : void 0, { init: R, info: O, loader_config: I, runtime: _ = { loaderType: g }, exposed: j = !0, } = t; const C = (0, f.pV)(); O || ((R = C.init), (O = C.info), (I = C.loader_config)), (0, i.xN)(e.agentIdentifier, R || {}), (0, i.aN)(e.agentIdentifier, I || {}), (O.jsAttributes ??= {}), u.bv && (O.jsAttributes.isWorker = !0), (0, i.x1)(e.agentIdentifier, O); const P = (0, i.D0)(e.agentIdentifier), k = [O.beacon, O.errorBeacon]; S || (P.proxy.assets && (N(P.proxy.assets), k.push(P.proxy.assets)), P.proxy.beacon && k.push(P.proxy.beacon), A(), (0, f.US)('activatedFeatures', E.B), (e.runSoftNavOverSpa &&= !0 === P.soft_navigations.enabled && P.feature_flags.includes('soft_nav'))), (_.denyList = [ ...(P.ajax.deny_list || []), ...(P.ajax.block_internal ? k : []), ]), (_.ptid = e.agentIdentifier), (0, i.V)(e.agentIdentifier, _), void 0 === e.api && (e.api = (function (e, t) { let f = arguments.length > 2 && void 0 !== arguments[2] && arguments[2]; t || (0, s.Ak)(e, 'api'); const g = {}; var w = a.ee.get(e), R = w.get('tracer'); (T[e] = v.g.OFF), w.on(h.G4.REPLAY_RUNNING, t => { T[e] = t; }); var A = 'api-', E = A + 'ixn-'; function N(t, r, n, o) { const a = (0, i.Vp)(e); return ( null === r ? delete a.jsAttributes[t] : (0, i.x1)(e, { ...a, jsAttributes: { ...a.jsAttributes, [t]: r, }, }), I( A, n, !0, o || null === r ? 'session' : void 0, )(t, r) ); } function S() {} (g.log = function (e) { let { customAttributes: t = {}, level: r = b.p_.INFO, } = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return ( (t && 'object' == typeof t) || (t = {}), 'string' == typeof e && e ? (0, y.b)(r) ? e.length > b.It ? (0, d.R)( b.zk + '> ' + b.It + ' bytes: ', e.slice(0, 25) + '...', ) : void (0, y.R)( w, e, t, r.toUpperCase(), ) : (0, d.R)(b.YY + r, b.p_) : (0, d.R)(b.zk + 'invalid message') ); }), (g.wrapLogger = function (e, t) { let { customAttributes: r = {}, level: n = b.p_.INFO, } = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; return ( (r && 'object' == typeof r) || (r = {}), 'object' == typeof e && e && 'string' == typeof t && t && 'function' == typeof e[t] && 'object' == typeof r ? (0, y.b)(n) ? void x(w, e, t, { customAttributes: r, level: n.toUpperCase(), }) : (0, d.R)( b.bu + b.YY + n, b.p_, ) : (0, d.R)( b.bu + 'invalid argument(s)', ) ); }), p.forEach(e => { g[e] = I(A, e, !0, 'api'); }), (g.addPageAction = I( A, 'addPageAction', !0, n.K.pageAction, )), (g.setPageViewName = function (t, r) { if ('string' == typeof t) return ( '/' !== t.charAt(0) && (t = '/' + t), ((0, i.fr)( e, ).customTransaction = (r || 'http://custom.transaction') + t), I(A, 'setPageViewName', !0)() ); }), (g.setCustomAttribute = function (e, t) { let r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2]; if ('string' == typeof e) { if ( [ 'string', 'number', 'boolean', ].includes(typeof t) || null === t ) return N( e, t, 'setCustomAttribute', r, ); (0, d.R)( 'Failed to execute setCustomAttribute.\nNon-null value must be a string, number or boolean type, but a type of <'.concat( typeof t, '> was provided.', ), ); } else (0, d.R)( 'Failed to execute setCustomAttribute.\nName must be a string type, but a type of <'.concat( typeof e, '> was provided.', ), ); }), (g.setUserId = function (e) { if ('string' == typeof e || null === e) return N( 'enduser.id', e, 'setUserId', !0, ); (0, d.R)( 'Failed to execute setUserId.\nNon-null value must be a string type, but a type of <'.concat( typeof e, '> was provided.', ), ); }), (g.setApplicationVersion = function (e) { if ('string' == typeof e || null === e) return N( 'application.version', e, 'setApplicationVersion', !1, ); (0, d.R)( 'Failed to execute setApplicationVersion. Expected <String | null>, but got <'.concat( typeof e, '>.', ), ); }), (g.start = () => { try { (0, o.p)( l.xV, ['API/start/called'], void 0, n.K.metrics, w, ), w.emit('manual-start-all'); } catch (e) { (0, d.R)( 'An unexpected issue occurred', e, ); } }), (g[h.G4.RECORD] = function () { (0, o.p)( l.xV, ['API/recordReplay/called'], void 0, n.K.metrics, w, ), (0, o.p)( h.G4.RECORD, [], void 0, n.K.sessionReplay, w, ); }), (g[h.G4.PAUSE] = function () { (0, o.p)( l.xV, ['API/pauseReplay/called'], void 0, n.K.metrics, w, ), (0, o.p)( h.G4.PAUSE, [], void 0, n.K.sessionReplay, w, ); }), (g.interaction = function (e) { return new S().get( 'object' == typeof e ? e : {}, ); }); const O = (S.prototype = { createTracer: function (e, t) { var r = {}, i = this, a = 'function' == typeof t; return ( (0, o.p)( l.xV, ['API/createTracer/called'], void 0, n.K.metrics, w, ), f || (0, o.p)( E + 'tracer', [(0, m.t)(), e, r], i, n.K.spa, w, ), function () { if ( (R.emit( (a ? '' : 'no-') + 'fn-start', [(0, m.t)(), i, a], r, ), a) ) try { return t.apply( this, arguments, ); } catch (e) { const t = 'string' == typeof e ? new Error(e) : e; throw ( (R.emit( 'fn-err', [ arguments, this, t, ], r, ), t) ); } finally { R.emit( 'fn-end', [(0, m.t)()], r, ); } } ); }, }); function I(e, t, r, i) { return function () { return ( (0, o.p)( l.xV, ['API/' + t + '/called'], void 0, n.K.metrics, w, ), i && (0, o.p)( e + t, [(0, m.t)(), ...arguments], r ? null : this, i, w, ), r ? void 0 : this ); }; } function _() { r.e(478) .then(r.bind(r, 8778)) .then(t => { let { setAPI: r } = t; r(e), (0, s.Ze)(e, 'api'); }) .catch(e => { (0, d.R)( 'Downloading runtime APIs failed...', e, ), w.abort(); }); } return ( [ 'actionText', 'setName', 'setAttribute', 'save', 'ignore', 'onEnd', 'getContext', 'end', 'get', ].forEach(e => { O[e] = I( E, e, void 0, f ? n.K.softNav : n.K.spa, ); }), (g.setCurrentRouteName = f ? I(E, 'routeName', void 0, n.K.softNav) : I(A, 'routeName', !0, n.K.spa)), (g.noticeError = function (t, r) { 'string' == typeof t && (t = new Error(t)), (0, o.p)( l.xV, ['API/noticeError/called'], void 0, n.K.metrics, w, ), (0, o.p)( 'err', [t, (0, m.t)(), !1, r, !!T[e]], void 0, n.K.jserrors, w, ); }), u.RI ? (0, c.GG)(() => _(), !0) : _(), g ); })(e.agentIdentifier, w, e.runSoftNavOverSpa)), void 0 === e.exposed && (e.exposed = j), (S = !0); } }, 8374: (e, t, r) => { r.nc = (() => { try { return document?.currentScript?.nonce; } catch (e) {} return ''; })(); }, 860: (e, t, r) => { 'use strict'; r.d(t, { K: () => n, P: () => i }); const n = { ajax: 'ajax', jserrors: 'jserrors', logging: 'logging', metrics: 'metrics', pageAction: 'page_action', pageViewEvent: 'page_view_event', pageViewTiming: 'page_view_timing', sessionReplay: 'session_replay', sessionTrace: 'session_trace', softNav: 'soft_navigations', spa: 'spa', }, i = { [n.pageViewEvent]: 1, [n.pageViewTiming]: 2, [n.metrics]: 3, [n.jserrors]: 4, [n.spa]: 5, [n.ajax]: 6, [n.sessionTrace]: 7, [n.pageAction]: 8, [n.softNav]: 9, [n.sessionReplay]: 10, [n.logging]: 11, }; }, }, n = {}; function i(e) { var t = n[e]; if (void 0 !== t) return t.exports; var o = (n[e] = { exports: {} }); return r[e](o, o.exports, i), o.exports; } (i.m = r), (i.d = (e, t) => { for (var r in t) i.o(t, r) && !i.o(e, r) && Object.defineProperty(e, r, { enumerable: !0, get: t[r] }); }), (i.f = {}), (i.e = e => Promise.all( Object.keys(i.f).reduce((t, r) => (i.f[r](e, t), t), []), )), (i.u = e => ({ 212: 'nr-spa-compressor', 249: 'nr-spa-recorder', 478: 'nr-spa', }[e] + '-1.261.1.min.js')), (i.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)), (e = {}), (t = 'NRBA-1.261.1.PROD:'), (i.l = (r, n, o, a) => { if (e[r]) e[r].push(n); else { var s, c; if (void 0 !== o) for ( var u = document.getElementsByTagName('script'), d = 0; d < u.length; d++ ) { var l = u[d]; if ( l.getAttribute('src') == r || l.getAttribute('data-webpack') == t + o ) { s = l; break; } } if (!s) { c = !0; var f = { 478: 'sha512-ZbWStv7fkkK7+yqsn6eqoJlW+CghM7PjpfFcByMPYTJNLGVARAKXxpvMO9e+qfP03BE0awcG0qpVyS4eHLiDAA==', 249: 'sha512-K6eKbQfHoHK8eJ87nEMTz0eRYryCQpILJVfa9zwG9mwzZcVq+S9l8jGY67o+9iobuZvlIfyfhnkxONwFHdop0w==', 212: 'sha512-sDN2MQL8shzPkVcH8febZBLdnIXFgQQEF6gXsFvid8MHLAv3BJKAhS5NSTP6xinVWTTk+SXb+DC7o2z4WGANsQ==', }; ((s = document.createElement('script')).charset = 'utf-8'), (s.timeout = 120), i.nc && s.setAttribute('nonce', i.nc), s.setAttribute('data-webpack', t + o), (s.src = r), 0 !== s.src.indexOf(window.location.origin + '/') && (s.crossOrigin = 'anonymous'), f[a] && (s.integrity = f[a]); } e[r] = [n]; var h = (t, n) => { (s.onerror = s.onload = null), clearTimeout(g); var i = e[r]; if ( (delete e[r], s.parentNode && s.parentNode.removeChild(s), i && i.forEach(e => e(n)), t) ) return t(n); }, g = setTimeout( h.bind(null, void 0, { type: 'timeout', target: s }), 12e4, ); (s.onerror = h.bind(null, s.onerror)), (s.onload = h.bind(null, s.onload)), c && document.head.appendChild(s); } }), (i.r = e => { 'undefined' != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: 'Module', }), Object.defineProperty(e, '__esModule', { value: !0 }); }), (i.p = 'https://js-agent.newrelic.com/'), (() => { var e = { 38: 0, 788: 0 }; i.f.j = (t, r) => { var n = i.o(e, t) ? e[t] : void 0; if (0 !== n) if (n) r.push(n[2]); else { var o = new Promise((r, i) => (n = e[t] = [r, i])); r.push((n[2] = o)); var a = i.p + i.u(t), s = new Error(); i.l( a, r => { if ( i.o(e, t) && (0 !== (n = e[t]) && (e[t] = void 0), n) ) { var o = r && ('load' === r.type ? 'missing' : r.type), a = r && r.target && r.target.src; (s.message = 'Loading chunk ' + t + ' failed.\n(' + o + ': ' + a + ')'), (s.name = 'ChunkLoadError'), (s.type = o), (s.request = a), n[1](s); } }, 'chunk-' + t, t, ); } }; var t = (t, r) => { var n, o, [a, s, c] = r, u = 0; if (a.some(t => 0 !== e[t])) { for (n in s) i.o(s, n) && (i.m[n] = s[n]); if (c) c(i); } for (t && t(r); u < a.length; u++) (o = a[u]), i.o(e, o) && e[o] && e[o][0](), (e[o] = 0); }, r = (self['webpackChunk:NRBA-1.261.1.PROD'] = self['webpackChunk:NRBA-1.261.1.PROD'] || []); r.forEach(t.bind(null, 0)), (r.push = t.bind(null, r.push.bind(r))); })(), (() => { 'use strict'; i(8374); var e = i(944), t = i(6344), r = i(9566), n = i(7836); class o { agentIdentifier; constructor() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : (0, r.LA)(16); (this.agentIdentifier = e), (this.ee = n.ee.get(e)); } #e(t) { for ( var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++ ) n[i - 1] = arguments[i]; if ('function' == typeof this.api?.[t]) return this.api[t](...n); (0, e.R)( 'Call to agent api '.concat( t, ' failed. The API is not currently initialized.', ), ); } addPageAction(e, t) { return this.#e('addPageAction', e, t); } setPageViewName(e, t) { return this.#e('setPageViewName', e, t); } setCustomAttribute(e, t, r) { return this.#e('setCustomAttribute', e, t, r); } noticeError(e, t) { return this.#e('noticeError', e, t); } setUserId(e) { return this.#e('setUserId', e); } setApplicationVersion(e) { return this.#e('setApplicationVersion', e); } setErrorHandler(e) { return this.#e('setErrorHandler', e); } finished(e) { return this.#e('finished', e); } addRelease(e, t) { return this.#e('addRelease', e, t); } start(e) { return this.#e('start', e); } recordReplay() { return this.#e(t.G4.RECORD); } pauseReplay() { return this.#e(t.G4.PAUSE); } addToTrace(e) { return this.#e('addToTrace', e); } setCurrentRouteName(e) { return this.#e('setCurrentRouteName', e); } interaction() { return this.#e('interaction'); } log(e, t) { return this.#e('logInfo', e, t); } wrapLogger(e, t, r) { return this.#e('wrapLogger', e, t, r); } } var a = i(860), s = i(2983); const c = Object.values(a.K); function u(e) { const t = {}; return ( c.forEach(r => { t[r] = (function (e, t) { return ( !0 === (0, s.gD)(t, ''.concat(e, '.enabled')) ); })(r, e); }), t ); } var d = i(425); var l = i(1687), f = i(4234), h = i(5289), g = i(6154), p = i(5270), m = i(7767), v = i(6389); class b extends f.W { constructor(e, t, r) { let n = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3]; super(e, t, r), (this.auto = n), (this.abortHandler = void 0), (this.featAggregate = void 0), (this.onAggregateImported = void 0), !1 === (0, s.gD)( this.agentIdentifier, ''.concat(this.featureName, '.autoStart'), ) && (this.auto = !1), this.auto ? (0, l.Ak)(e, r) : this.ee.on( 'manual-start-all', (0, v.J)(() => { (0, l.Ak)( this.agentIdentifier, this.featureName, ), (this.auto = !0), this.importAggregator(); }), ); } importAggregator() { let t, r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; if (this.featAggregate || !this.auto) return; this.onAggregateImported = new Promise(e => { t = e; }); const n = async () => { let n; try { if ((0, m.V)(this.agentIdentifier)) { const { setupAgentSession: e } = await i .e(478) .then(i.bind(i, 6526)); n = e(this.agentIdentifier); } } catch (t) { (0, e.R)( 'A problem occurred when starting up session manager. This page will not start or extend any session.', t, ), this.ee.emit('internal-error', [t]), this.featureName === a.K.sessionReplay && this.abortHandler?.(); } try { if (!this.#t(this.featureName, n)) return ( (0, l.Ze)( this.agentIdentifier, this.featureName, ), void t(!1) ); const { lazyFeatureLoader: e } = await i .e(478) .then(i.bind(i, 6103)), { Aggregate: o } = await e( this.featureName, 'aggregate', ); (this.featAggregate = new o( this.agentIdentifier, this.aggregator, r, )), t(!0); } catch (r) { (0, e.R)( 'Downloading and initializing '.concat( this.featureName, ' failed...', ), r, ), this.abortHandler?.(), (0, l.Ze)( this.agentIdentifier, this.featureName, !0, ), t(!1), this.ee && this.ee.abort(); } }; g.RI ? (0, h.GG)(() => n(), !0) : n(); } #t(e, t) { return e === a.K.sessionReplay ? (0, p.K4)(this.agentIdentifier, t) : !(e === a.K.sessionTrace && !t); } } var y = i(6630); class w extends b { static featureName = y.T; constructor(e, t) { let r = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; super(e, t, y.T, r), this.importAggregator(); } } var R = i(4777), x = i(1478); class A extends R.J { constructor(e) { super(e), (this.aggregatedData = {}); } store(e, t, r, n, i) { var o = this.getBucket(e, t, r, i); return ( (o.metrics = (function (e, t) { t || (t = { count: 0 }); return ( (t.count += 1), (0, x.$)(e, function (e, r) { t[e] = T(r, t[e]); }), t ); })(n, o.metrics)), o ); } merge(e, t, r, n, i) { var o = this.getBucket(e, t, n, i); if (o.metrics) { var a = o.metrics; (a.count += r.count), (0, x.$)(r, function (e, t) { if ('count' !== e) { var n = a[e], i = r[e]; i && !i.c ? (a[e] = T(i.t, n)) : (a[e] = (function (e, t) { if (!t) return e; t.c || (t = E(t.t)); return ( (t.min = Math.min( e.min, t.min, )), (t.max = Math.max( e.max, t.max, )), (t.t += e.t), (t.sos += e.sos), (t.c += e.c), t ); })(i, a[e])); } }); } else o.metrics = r; } storeMetric(e, t, r, n) { var i = this.getBucket(e, t, r); return (i.stats = T(n, i.stats)), i; } getBucket(e, t, r, n) { this.aggregatedData[e] || (this.aggregatedData[e] = {}); var i = this.aggregatedData[e][t]; return ( i || ((i = this.aggregatedData[e][t] = { params: r || {} }), n && (i.custom = n)), i ); } get(e, t) { return t ? this.aggregatedData[e] && this.aggregatedData[e][t] : this.aggregatedData[e]; } take(e) { for (var t = {}, r = '', n = !1, i = 0; i < e.length; i++) (t[(r = e[i])] = Object.values( this.aggregatedData[r] || {}, )), t[r].length && (n = !0), delete this.aggregatedData[r]; return n ? t : null; } } function T(e, t) { return null == e ? (function (e) { e ? e.c++ : (e = { c: 1 }); return e; })(t) : t ? (t.c || (t = E(t.t)), (t.c += 1), (t.t += e), (t.sos += e * e), e > t.max && (t.max = e), e < t.min && (t.min = e), t) : { t: e }; } function E(e) { return { t: e, min: e, max: e, sos: e * e, c: 1 }; } var N = i(384), S = i(3304); var O = i(9908), I = i(2843), _ = i(3878), j = i(782), C = i(1863); class P extends b { static featureName = j.T; constructor(e, t) { let r = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; super(e, t, j.T, r), g.RI && ((0, I.u)( () => (0, O.p)( 'docHidden', [(0, C.t)()], void 0, j.T, this.ee, ), !0, ), (0, _.sp)('pagehide', () => (0, O.p)( 'winPagehide', [(0, C.t)()], void 0, j.T, this.ee, ), ), this.importAggregator()); } } var k = i(3969); class L extends b { static featureName = k.TZ; constructor(e, t) { let r = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; super(e, t, k.TZ, r), this.importAggregator(); } } var D = i(6774); class H { constructor(e, t, r, n, i) { (this.name = 'UncaughtError'), (this.message = 'string' == typeof e ? e : (0, S.A)(e)), (this.sourceURL = t), (this.line = r), (this.column = n), (this.__newrelic = i); } } function M(e) { return F(e) ? e : new H( void 0 !== e?.message ? e.message : e, e?.filename || e?.sourceURL, e?.lineno || e?.line, e?.colno || e?.col, e?.__newrelic, ); } function K(e) { let t = 'Unhandled Promise Rejection'; if (F(e?.reason)) try { return ( (e.reason.message = t + ': ' + e.reason.message), M(e.reason) ); } catch (t) { return M(e.reason); } if (void 0 === e.reason) return M(t); const r = M(e.reason); return (r.message = t + ': ' + r?.message), r; } function U(e) { if ( e.error instanceof SyntaxError && !/:\d+$/.test(e.error.stack?.trim()) ) { const t = new H( e.message, e.filename, e.lineno, e.colno, e.error.__newrelic, ); return (t.name = SyntaxError.name), t; } return F(e.error) ? e.error : M(e); } function F(e) { return e instanceof Error && !!e.stack; } class B extends b { static featureName = D.T; #r = !1; constructor(e, r) { let n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; super(e, r, D.T, n); try { this.removeOnAbort = new AbortController(); } catch (e) {} this.ee.on('internal-error', e => { this.abortHandler && (0, O.p)( 'ierr', [M(e), (0, C.t)(), !0, {}, this.#r], void 0, this.featureName, this.ee, ); }), this.ee.on(t.G4.REPLAY_RUNNING, e => { this.#r = e; }), g.gm.addEventListener( 'unhandledrejection', e => { this.abortHandler && (0, O.p)( 'err', [ K(e), (0, C.t)(), !1, { unhandledPromiseRejection: 1 }, this.#r, ], void 0, this.featureName, this.ee, ); }, (0, _.jT)(!1, this.removeOnAbort?.signal), ), g.gm.addEventListener( 'error', e => { this.abortHandler && (0, O.p)( 'err', [U(e), (0, C.t)(), !1, {}, this.#r], void 0, this.featureName, this.ee, ); }, (0, _.jT)(!1, this.removeOnAbort?.signal), ), (this.abortHandler = this.#n), this.importAggregator(); } #n() { this.removeOnAbort?.abort(), (this.abortHandler = void 0); } } var G = i(8990); let V = 1; const z = 'nr@id'; function W(e) { const t = typeof e; return !e || ('object' !== t && 'function' !== t) ? -1 : e === g.gm ? 0 : (0, G.I)(e, z, function () { return V++; }); } function q(e) { if ('string' == typeof e && e.length) return e.length; if ('object' == typeof e) { if ( 'undefined' != typeof ArrayBuffer && e instanceof ArrayBuffer && e.byteLength ) return e.byteLength; if ( 'undefined' != typeof Blob && e instanceof Blob && e.size ) return e.size; if ( !( 'undefined' != typeof FormData && e instanceof FormData ) ) try { return (0, S.A)(e).length; } catch (e) { return; } } } var Y = i(8941), Z = i(7485); class X { constructor(e) { this.agentIdentifier = e; } generateTracePayload(e) { if (!this.shouldGenerateTrace(e)) return null; var t = (0, s.oC)(this.agentIdentifier); if (!t) return null; var n = (t.accountID || '').toString() || null, i = (t.agentID || '').toString() || null, o = (t.trustKey || '').toString() || null; if (!n || !i) return null; var a = (0, r.ZF)(), c = (0, r.el)(), u = Date.now(), d = { spanId: a, traceId: c, timestamp: u }; return ( (e.sameOrigin || (this.isAllowedOrigin(e) && this.useTraceContextHeadersForCors())) && ((d.traceContextParentHeader = this.generateTraceContextParentHeader(a, c)), (d.traceContextStateHeader = this.generateTraceContextStateHeader( a, u, n, i, o, ))), ((e.sameOrigin && !this.excludeNewrelicHeader()) || (!e.sameOrigin && this.isAllowedOrigin(e) && this.useNewrelicHeaderForCors())) && (d.newrelicHeader = this.generateTraceHeader( a, c, u, n, i, o, )), d ); } generateTraceContextParentHeader(e, t) { return '00-' + t + '-' + e + '-01'; } generateTraceContextStateHeader(e, t, r, n, i) { return i + '@nr=0-1-' + r + '-' + n + '-' + e + '----' + t; } generateTraceHeader(e, t, r, n, i, o) { if (!('function' == typeof g.gm?.btoa)) return null; var a = { v: [0, 1], d: { ty: 'Browser', ac: n, ap: i, id: e, tr: t, ti: r }, }; return o && n !== o && (a.d.tk = o), btoa((0, S.A)(a)); } shouldGenerateTrace(e) { return this.isDtEnabled() && this.isAllowedOrigin(e); } isAllowedOrigin(e) { var t = !1, r = {}; if ( ((0, s.gD)( this.agentIdentifier, 'distributed_tracing', ) && (r = (0, s.D0)( this.agentIdentifier, ).distributed_tracing), e.sameOrigin) ) t = !0; else if (r.allowed_origins instanceof Array) for (var n = 0; n < r.allowed_origins.length; n++) { var i = (0, Z.D)(r.allowed_origins[n]); if ( e.hostname === i.hostname && e.protocol === i.protocol && e.port === i.port ) { t = !0; break; } } return t; } isDtEnabled() { var e = (0, s.gD)( this.agentIdentifier, 'distributed_tracing', ); return !!e && !!e.enabled; } excludeNewrelicHeader() { var e = (0, s.gD)( this.agentIdentifier, 'distributed_tracing', ); return !!e && !!e.exclude_newrelic_header; } useNewrelicHeaderForCors() { var e = (0, s.gD)( this.agentIdentifier, 'distributed_tracing', ); return !!e && !1 !== e.cors_use_newrelic_header; } useTraceContextHeadersForCors() { var e = (0, s.gD)( this.agentIdentifier, 'distributed_tracing', ); return !!e && !!e.cors_use_tracecontext_headers; } } var J = i(9300), Q = i(7295), ee = ['load', 'error', 'abort', 'timeout'], te = ee.length, re = s.hR.REQ, ne = s.hR.XHR; class ie extends b { static featureName = J.T; constructor(e, t) { let r = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; super(e, t, J.T, r), (this.dt = new X(e)), (this.handler = (e, t, r, n) => (0, O.p)(e, t, r, n, this.ee)); try { const e = { xmlhttprequest: 'xhr', fetch: 'fetch', beacon: 'beacon', }; g.gm?.performance ?.getEntriesByType('resource') .forEach(t => { if ( t.initiatorType in e && 0 !== t.responseStatus ) { const r = { status: t.responseStatus }, n = { rxSize: t.transferSize, duration: Math.floor(t.duration), cbTime: 0, }; oe(r, t.name), this.handler( 'xhr', [ r, n, t.startTime, t.responseEnd, e[t.initiatorType], ], void 0, a.K.ajax, ); } }); } catch (e) {} (0, Y.NZ)(this.ee), (0, Y.bX)(this.ee), (function (e, t, r, n) { function i(e) { var t = this; (t.totalCbs = 0), (t.called = 0), (t.cbTime = 0), (t.end = x), (t.ended = !1), (t.xhrGuids = {}), (t.lastSize = null), (t.loadCaptureCalled = !1), (t.params = this.params || {}), (t.metrics = this.metrics || {}), e.addEventListener( 'load', function (r) { A(t, e); }, (0, _.jT)(!1), ), g.lR || e.addEventListener( 'progress', function (e) { t.lastSize = e.loaded; }, (0, _.jT)(!1), ); } function o(e) { (this.params = { method: e[0] }), oe(this, e[1]), (this.metrics = {}); } function c(t, r) { var i = (0, s.oC)(e); i.xpid && this.sameOrigin && r.setRequestHeader('X-NewRelic-ID', i.xpid); var o = n.generateTracePayload( this.parsedOrigin, ); if (o) { var a = !1; o.newrelicHeader && (r.setRequestHeader( 'newrelic', o.newrelicHeader, ), (a = !0)), o.traceContextParentHeader && (r.setRequestHeader( 'traceparent', o.traceContextParentHeader, ), o.traceContextStateHeader && r.setRequestHeader( 'tracestate', o.traceContextStateHeader, ), (a = !0)), a && (this.dt = o); } } function u(e, r) { var n = this.metrics, i = e[0], o = this; if (n && i) { var a = q(i); a && (n.txSize = a); } (this.startTime = (0, C.t)()), (this.body = i), (this.listener = function (e) { try { 'abort' !== e.type || o.loadCaptureCalled || (o.params.aborted = !0), ('load' !== e.type || (o.called === o.totalCbs && (o.onloadCalled || 'function' != typeof r.onload) && 'function' == typeof o.end)) && o.end(r); } catch (e) { try { t.emit('internal-error', [e]); } catch (e) {} } }); for (var s = 0; s < te; s++) r.addEventListener( ee[s], this.listener, (0, _.jT)(!1), ); } function d(e, t, r) { (this.cbTime += e), t ? (this.onloadCalled = !0) : (this.called += 1), this.called !== this.totalCbs || (!this.onloadCalled && 'function' == typeof r.onload) || 'function' != typeof this.end || this.end(r); } function l(e, t) { var r = '' + W(e) + !!t; this.xhrGuids && !this.xhrGuids[r] && ((this.xhrGuids[r] = !0), (this.totalCbs += 1)); } function f(e, t) { var r = '' + W(e) + !!t; this.xhrGuids && this.xhrGuids[r] && (delete this.xhrGuids[r], (this.totalCbs -= 1)); } function h() { this.endTime = (0, C.t)(); } function p(e, r) { r instanceof ne && 'load' === e[0] && t.emit('xhr-load-added', [e[1], e[2]], r); } function m(e, r) { r instanceof ne && 'load' === e[0] && t.emit('xhr-load-removed', [e[1], e[2]], r); } function v(e, t, r) { t instanceof ne && ('onload' === r && (this.onload = !0), ('load' === (e[0] && e[0].type) || this.onload) && (this.xhrCbStart = (0, C.t)())); } function b(e, r) { this.xhrCbStart && t.emit( 'xhr-cb-time', [ (0, C.t)() - this.xhrCbStart, this.onload, r, ], r, ); } function y(e) { var t, r = e[1] || {}; if ( ('string' == typeof e[0] ? 0 === (t = e[0]).length && g.RI && (t = '' + g.gm.location.href) : e[0] && e[0].url ? (t = e[0].url) : g.gm?.URL && e[0] && e[0] instanceof URL ? (t = e[0].href) : 'function' == typeof e[0].toString && (t = e[0].toString()), 'string' == typeof t && 0 !== t.length) ) { t && ((this.parsedOrigin = (0, Z.D)(t)), (this.sameOrigin = this.parsedOrigin.sameOrigin)); var i = n.generateTracePayload( this.parsedOrigin, ); if ( i && (i.newrelicHeader || i.traceContextParentHeader) ) if (e[0] && e[0].headers) s(e[0].headers, i) && (this.dt = i); else { var o = {}; for (var a in r) o[a] = r[a]; (o.headers = new Headers( r.headers || {}, )), s(o.headers, i) && (this.dt = i), e.length > 1 ? (e[1] = o) : e.push(o); } } function s(e, t) { var r = !1; return ( t.newrelicHeader && (e.set( 'newrelic', t.newrelicHeader, ), (r = !0)), t.traceContextParentHeader && (e.set( 'traceparent', t.traceContextParentHeader, ), t.traceContextStateHeader && e.set( 'tracestate', t.traceContextStateHeader, ), (r = !0)), r ); } } function w(e, t) { (this.params = {}), (this.metrics = {}), (this.startTime = (0, C.t)()), (this.dt = t), e.length >= 1 && (this.target = e[0]), e.length >= 2 && (this.opts = e[1]); var r, n = this.opts || {}, i = this.target; 'string' == typeof i ? (r = i) : 'object' == typeof i && i instanceof re ? (r = i.url) : g.gm?.URL && 'object' == typeof i && i instanceof URL && (r = i.href), oe(this, r); var o = ( '' + ((i && i instanceof re && i.method) || n.method || 'GET') ).toUpperCase(); (this.params.method = o), (this.body = n.body), (this.txSize = q(n.body) || 0); } function R(e, t) { if ( ((this.endTime = (0, C.t)()), this.params || (this.params = {}), (0, Q.iW)(this.params)) ) return; let n; (this.params.status = t ? t.status : 0), 'string' == typeof this.rxSize && this.rxSize.length > 0 && (n = +this.rxSize); const i = { txSize: this.txSize, rxSize: n, duration: (0, C.t)() - this.startTime, }; r( 'xhr', [ this.params, i, this.startTime, this.endTime, 'fetch', ], this, a.K.ajax, ); } function x(e) { const t = this.params, n = this.metrics; if (!this.ended) { this.ended = !0; for (let t = 0; t < te; t++) e.removeEventListener( ee[t], this.listener, !1, ); t.aborted || (0, Q.iW)(t) || ((n.duration = (0, C.t)() - this.startTime), this.loadCaptureCalled || 4 !== e.readyState ? null == t.status && (t.status = 0) : A(this, e), (n.cbTime = this.cbTime), r( 'xhr', [ t, n, this.startTime, this.endTime, 'xhr', ], this, a.K.ajax, )); } } function A(e, r) { e.params.status = r.status; var n = (function (e, t) { var r = e.responseType; return 'json' === r && null !== t ? t : 'arraybuffer' === r || 'blob' === r || 'json' === r ? q(e.response) : 'text' === r || '' === r || void 0 === r ? q(e.responseText) : void 0; })(r, e.lastSize); if ( (n && (e.metrics.rxSize = n), e.sameOrigin) ) { var i = r.getResponseHeader( 'X-NewRelic-App-Data', ); i && ((0, O.p)( k.rs, [ 'Ajax/CrossApplicationTracing/Header/Seen', ], void 0, a.K.metrics, t, ), (e.params.cat = i.split(', ').pop())); } e.loadCaptureCalled = !0; } t.on('new-xhr', i), t.on('open-xhr-start', o), t.on('open-xhr-end', c), t.on('send-xhr-start', u), t.on('xhr-cb-time', d), t.on('xhr-load-added', l), t.on('xhr-load-removed', f), t.on('xhr-resolved', h), t.on('addEventListener-end', p), t.on('removeEventListener-end', m), t.on('fn-end', b), t.on('fetch-before-start', y), t.on('fetch-start', w), t.on('fn-start', v), t.on('fetch-done', R); })(e, this.ee, this.handler, this.dt), this.importAggregator(); } } function oe(e, t) { var r = (0, Z.D)(t), n = e.params || e; (n.hostname = r.hostname), (n.port = r.port), (n.protocol = r.protocol), (n.host = r.hostname + ':' + r.port), (n.pathname = r.pathname), (e.parsedOrigin = r), (e.sameOrigin = r.sameOrigin); } var ae = i(3738); const { He: se, bD: ce, d3: ue, Kp: de, TZ: le, Lc: fe, uP: he, Rz: ge, } = ae; var pe = i(2614); class me extends b { static featureName = t.TZ; #i; constructor(e, r) { let n, i = !( arguments.length > 2 && void 0 !== arguments[2] ) || arguments[2]; super(e, r, t.TZ, i), (this.replayRunning = !1); try { n = JSON.parse( localStorage.getItem( ''.concat(pe.H3, '_').concat(pe.uh), ), ); } catch (e) {} (0, p.SR)(e) && this.ee.on('recordReplay', () => this.#o()), this.#a(n) ? ((this.#i = n?.sessionReplayMode), this.#s()) : this.importAggregator(), this.ee.on('err', e => { this.replayRunning && ((this.errorNoticed = !0), (0, O.p)( t.G4.ERROR_DURING_REPLAY, [e], void 0, this.featureName, this.ee, )); }), this.ee.on(t.G4.REPLAY_RUNNING, e => { this.replayRunning = e; }); } #a(e) { return ( (e && (e.sessionReplayMode === pe.g.FULL || e.sessionReplayMode === pe.g.ERROR)) || (0, p.Aw)(this.agentIdentifier) ); } #c = !1; async #s(e) { if (!this.#c) { this.#c = !0; try { const { Recorder: t } = await Promise.all([ i.e(478), i.e(249), ]).then(i.bind(i, 2496)); (this.recorder ??= new t({ mode: this.#i, agentIdentifier: this.agentIdentifier, trigger: e, ee: this.ee, })), this.recorder.startRecording(), (this.abortHandler = this.recorder.stopRecording); } catch (e) {} this.importAggregator({ recorder: this.recorder, errorNoticed: this.errorNoticed, }); } } #o() { this.featAggregate ? this.featAggregate.mode !== pe.g.FULL && this.featAggregate.initializeRecording(pe.g.FULL, !0) : ((this.#i = pe.g.FULL), this.#s(t.Qb.API), this.recorder && this.recorder.parent.mode !== pe.g.FULL && ((this.recorder.parent.mode = pe.g.FULL), this.recorder.stopRecording(), this.recorder.startRecording(), (this.abortHandler = this.recorder.stopRecording))); } } var ve = i(3962); class be extends b { static featureName = ve.TZ; constructor(e, t) { let r = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; if ((super(e, t, ve.TZ, r), !g.RI || !s.hR.MO)) return; const n = (0, Y.vC)(this.ee), i = (0, Y.um)(this.ee), o = () => (0, O.p)( 'newURL', [(0, C.t)(), '' + window.location], void 0, this.featureName, this.ee, ); n.on('pushState-end', o), n.on('replaceState-end', o); try { this.removeOnAbort = new AbortController(); } catch (e) {} (0, _.sp)( 'popstate', e => (0, O.p)( 'newURL', [e.timeStamp, '' + window.location], void 0, this.featureName, this.ee, ), !0, this.removeOnAbort?.signal, ); let a = !1; const c = new s.hR.MO((e, t) => { a || ((a = !0), requestAnimationFrame(() => { (0, O.p)( 'newDom', [(0, C.t)()], void 0, this.featureName, this.ee, ), (a = !1); })); }), u = (0, v.s)( e => { (0, O.p)( 'newUIEvent', [e], void 0, this.featureName, this.ee, ), c.observe(document.body, { attributes: !0, childList: !0, subtree: !0, characterData: !0, }); }, 100, { leading: !0 }, ); i.on('fn-start', e => { let [t] = e; ve.tC.includes(t?.type) && u(t); }); for (let e of ve.tC) document.addEventListener(e, () => {}); (this.abortHandler = function () { this.removeOnAbort?.abort(), c.disconnect(), (this.abortHandler = void 0); }), this.importAggregator({ domObserver: c }); } } var ye = i(7378); const { TZ: we, d3: Re, Kp: xe, $p: Ae, wW: Te, e5: Ee, tH: Ne, uP: Se, rw: Oe, Lc: Ie, } = ye; var _e = i(8166); class je extends b { static featureName = _e.T; constructor(e, t) { let r = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; super(e, t, _e.T, r), this.importAggregator(); } } var Ce = i(993), Pe = i(3785); class ke extends b { static featureName = Ce.TZ; constructor(e, t) { let r = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; super(e, t, Ce.TZ, r); const n = this.ee; this.ee.on('wrap-logger-end', function (e) { let [t] = e; const { level: r, customAttributes: i } = this; (0, Pe.R)(n, t, i, r); }), this.importAggregator(); } } new (class extends o { constructor(t, r) { super(r), g.gm ? ((this.sharedAggregator = new A({ agentIdentifier: this.agentIdentifier, })), (this.features = {}), (0, N.bQ)(this.agentIdentifier, this), (this.desiredFeatures = new Set( t.features || [], )), this.desiredFeatures.add(w), (this.runSoftNavOverSpa = [ ...this.desiredFeatures, ].some(e => e.featureName === a.K.softNav)), (0, d.j)(this, t, t.loaderType || 'agent'), this.run()) : (0, e.R)( 'Failed to initialize the agent. Could not determine the runtime environment.', ); } get config() { return { info: this.info, init: this.init, loader_config: this.loader_config, runtime: this.runtime, }; } run() { try { const t = u(this.agentIdentifier), r = [...this.desiredFeatures]; r.sort( (e, t) => a.P[e.featureName] - a.P[t.featureName], ), r.forEach(r => { if ( !t[r.featureName] && r.featureName !== a.K.pageViewEvent ) return; if ( this.runSoftNavOverSpa && r.featureName === a.K.spa ) return; if ( !this.runSoftNavOverSpa && r.featureName === a.K.softNav ) return; const n = (function (e) { switch (e) { case a.K.ajax: return [a.K.jserrors]; case a.K.sessionTrace: return [ a.K.ajax, a.K.pageViewEvent, ]; case a.K.sessionReplay: return [a.K.sessionTrace]; case a.K.pageViewTiming: return [a.K.pageViewEvent]; default: return []; } })(r.featureName); n.every(e => e in this.features) || (0, e.R)( '' .concat( r.featureName, ' is enabled but one or more dependent features has not been initialized (', ) .concat( (0, S.A)(n), '). This may cause unintended consequences or missing data...', ), ), (this.features[r.featureName] = new r( this.agentIdentifier, this.sharedAggregator, )); }); } catch (t) { (0, e.R)( 'Failed to initialize all enabled instrument classes (agent aborted) -', t, ); for (const e in this.features) this.features[e].abortHandler?.(); const r = (0, N.Zm)(); delete r.initializedAgents[this.agentIdentifier]?.api, delete r.initializedAgents[this.agentIdentifier] ?.features, delete this.sharedAggregator; return r.ee.get(this.agentIdentifier).abort(), !1; } } })({ features: [ ie, w, P, class extends b { static featureName = le; constructor(e, t) { super( e, t, le, !( arguments.length > 2 && void 0 !== arguments[2] ) || arguments[2], ); if (!(0, m.V)(this.agentIdentifier)) return void (0, l.x3)( this.agentIdentifier, this.featureName, ); const r = this.ee; let n; (0, Y.vC)(r), (this.eventsEE = (0, Y.um)(r)), this.eventsEE.on(he, function (e, t) { this.bstStart = (0, C.t)(); }), this.eventsEE.on(fe, function (e, t) { (0, O.p)('bst', [e[0], t, this.bstStart, (0, C.t)()], void 0, a.K.sessionTrace, r); }), r.on(ge + ue, function (e) { (this.time = (0, C.t)()), (this.startPath = location.pathname + location.hash); }), r.on(ge + de, function (e) { (0, O.p)('bstHist', [location.pathname + location.hash, this.startPath, this.time], void 0, a.K.sessionTrace, r); }); try { (n = new PerformanceObserver(e => { const t = e.getEntries(); (0, O.p)( se, [t], void 0, a.K.sessionTrace, r, ); })), n.observe({ type: ce, buffered: !0 }); } catch (e) {} this.importAggregator({ resourceObserver: n }); } }, me, L, je, B, ke, be, class extends b { static featureName = we; constructor(e, t) { var r; if ( (super( e, t, we, !( arguments.length > 2 && void 0 !== arguments[2] ) || arguments[2], ), (r = this), !g.RI) ) return; try { this.removeOnAbort = new AbortController(); } catch (e) {} let n, i = 0; const o = this.ee.get('tracer'), a = (0, Y.Ri)(this.ee), s = (0, Y.o8)(this.ee), c = (0, Y.MO)(this.ee), u = (0, Y.bX)(this.ee), d = this.ee.get('events'), l = (0, Y.NZ)(this.ee), f = (0, Y.vC)(this.ee), h = (0, Y.Ak)(this.ee); function p(e, t) { f.emit('newURL', ['' + window.location, t]); } function m() { i++, (n = window.location.hash), (this[Se] = (0, C.t)()); } function v() { i--, window.location.hash !== n && p(0, !0); var e = (0, C.t)(); (this[Ee] = ~~this[Ee] + e - this[Se]), (this[Ie] = e); } function b(e, t) { e.on(t, function () { this[t] = (0, C.t)(); }); } this.ee.on(Se, m), s.on(Oe, m), a.on(Oe, m), this.ee.on(Ie, v), s.on(Te, v), a.on(Te, v), this.ee.on('fn-err', function () { for ( var t = arguments.length, n = new Array(t), i = 0; i < t; i++ ) n[i] = arguments[i]; n[2]?.__newrelic?.[e] || (0, O.p)( 'function-err', [...n], void 0, r.featureName, r.ee, ); }), this.ee.buffer( [Se, Ie, 'xhr-resolved'], this.featureName, ), d.buffer([Se], this.featureName), c.buffer( [ 'setTimeout' + xe, 'clearTimeout' + Re, Se, ], this.featureName, ), u.buffer( [Se, 'new-xhr', 'send-xhr' + Re], this.featureName, ), l.buffer( [ Ne + Re, Ne + '-done', Ne + Ae + Re, Ne + Ae + xe, ], this.featureName, ), f.buffer(['newURL'], this.featureName), h.buffer([Se], this.featureName), s.buffer( [ 'propagate', Oe, Te, 'executor-err', 'resolve' + Re, ], this.featureName, ), o.buffer([Se, 'no-' + Se], this.featureName), a.buffer( [ 'new-jsonp', 'cb-start', 'jsonp-error', 'jsonp-end', ], this.featureName, ), b(l, Ne + Re), b(l, Ne + '-done'), b(a, 'new-jsonp'), b(a, 'jsonp-end'), b(a, 'cb-start'), f.on('pushState-end', p), f.on('replaceState-end', p), window.addEventListener( 'hashchange', p, (0, _.jT)(!0, this.removeOnAbort?.signal), ), window.addEventListener( 'load', p, (0, _.jT)(!0, this.removeOnAbort?.signal), ), window.addEventListener( 'popstate', function () { p(0, i > 1); }, (0, _.jT)(!0, this.removeOnAbort?.signal), ), (this.abortHandler = this.#n), this.importAggregator(); } #n() { this.removeOnAbort?.abort(), (this.abortHandler = void 0); } }, ], loaderType: 'spa', }); })(); })(); </script> <!--ignore-minification-end--> <link class="protected" rel="icon" type="image/svg+xml" href="/favicon.svg"><link class="protected" rel="manifest" href="/icons/manifest.json"><meta class="protected" name="mobile-web-app-capable" content="yes"><meta class="protected" name="theme-color" content="#0C161C"><meta class="protected" name="application-name" content="DAZN"><link class="protected" rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon-180x180.png"><link class="protected" rel="apple-touch-icon" sizes="1024x1024" href="/icons/apple-touch-icon-1024x1024.png"><meta class="protected" name="apple-mobile-web-app-capable" content="yes"><meta class="protected" name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta class="protected" name="apple-mobile-web-app-title" content="DAZN"><link rel="preconnect" href="https://startup.core.indazn.com" crossorigin><link rel="preconnect" href="https://resource-strings.acc.indazn.com" crossorigin><link rel="preconnect" href="https://static.dazndn.com" crossorigin><script>window.dataLayer=window.dataLayer||[];const originalPush=window.dataLayer.push;window.dataLayer.push=function(...a){return window.dazn?.monitoring?.triggerFsEvent(...a),originalPush.apply(window.dataLayer,a)}</script><script>/*! For license information please see boot-29.151.0-8f9fb345e8f23a7ae53c.js.LICENSE.txt */ (()=>{var e={9947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2003),o=function(){function e(){this.errorCount=0}return e.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*r.BACKOFF_BASE_WAIT_SECONDS_BY_ERROR_COUNT[Math.min(r.BACKOFF_BASE_WAIT_SECONDS_BY_ERROR_COUNT.length-1,this.errorCount)]+Math.round(1e3*Math.random())},e.prototype.countError=function(){this.errorCount<r.BACKOFF_BASE_WAIT_SECONDS_BY_ERROR_COUNT.length-1&&this.errorCount++},e.prototype.reset=function(){this.errorCount=0},e}();t.default=o},870:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2683),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeGetRequest=function(e,t){return a.makeGetRequest(e,t)},t.prototype.getConfigDefaults=function(){return{autoUpdate:!1}},t}(i(n(6664)).default);t.default=u},2683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2003),o=n(2531).getLogger("DatafileManager");t.makeGetRequest=function(e,t){var n=new XMLHttpRequest;return{responsePromise:new Promise((function(i,a){n.open("GET",e,!0),function(e,t){Object.keys(e).forEach((function(n){var r=e[n];t.setRequestHeader(n,r)}))}(t,n),n.onreadystatechange=function(){if(4===n.readyState){if(0===n.status)return void a(new Error("Request error"));var e=function(e){var t=e.getAllResponseHeaders();if(null===t)return{};var n=t.split("\r\n"),r={};return n.forEach((function(e){var t=e.indexOf(": ");if(t>-1){var n=e.slice(0,t),o=e.slice(t+2);o.length>0&&(r[n]=o)}})),r}(n),t={statusCode:n.status,body:n.responseText,headers:e};i(t)}},n.timeout=r.REQUEST_TIMEOUT_MS,n.ontimeout=function(){o.error("Request timed out")},n.send()})),abort:function(){n.abort()}}}},2003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_UPDATE_INTERVAL=3e5,t.MIN_UPDATE_INTERVAL=1e3,t.DEFAULT_URL_TEMPLATE="https://cdn.optimizely.com/datafiles/%s.json",t.DEFAULT_AUTHENTICATED_URL_TEMPLATE="https://config.optimizely.com/datafiles/auth/%s.json",t.BACKOFF_BASE_WAIT_SECONDS_BY_ERROR_COUNT=[0,8,16,32,64,128,256,512],t.REQUEST_TIMEOUT_MS=6e4},6287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.listeners={},this.listenerId=1}return e.prototype.on=function(e,t){var n=this;this.listeners[e]||(this.listeners[e]={});var r=String(this.listenerId);return this.listenerId++,this.listeners[e][r]=t,function(){n.listeners[e]&&delete n.listeners[e][r]}},e.prototype.emit=function(e,t){var n=this.listeners[e];n&&Object.keys(n).forEach((function(e){(0,n[e])(t)}))},e.prototype.removeAllListeners=function(){this.listeners={}},e}();t.default=n},6664:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2531),a=n(1185),u=o(n(6287)),s=n(2003),c=o(n(9947)),l=i.getLogger("DatafileManager");function f(e){return e>=200&&e<400}var d={get:function(){return Promise.resolve("")},set:function(){return Promise.resolve()},contains:function(){return Promise.resolve(!1)},remove:function(){return Promise.resolve()}},p=function(){function e(e){var t=this,n=r(r({},this.getConfigDefaults()),e),o=n.datafile,i=n.autoUpdate,f=void 0!==i&&i,p=n.sdkKey,h=n.updateInterval,g=void 0===h?s.DEFAULT_UPDATE_INTERVAL:h,v=n.urlTemplate,y=void 0===v?s.DEFAULT_URL_TEMPLATE:v,m=n.cache,E=void 0===m?d:m;this.cache=E,this.cacheKey="opt-datafile-"+p,this.isReadyPromiseSettled=!1,this.readyPromiseResolver=function(){},this.readyPromiseRejecter=function(){},this.readyPromise=new Promise((function(e,n){t.readyPromiseResolver=e,t.readyPromiseRejecter=n})),o?(this.currentDatafile=o,p||this.resolveReadyPromise()):this.currentDatafile="",this.isStarted=!1,this.datafileUrl=a.sprintf(y,p),this.emitter=new u.default,this.autoUpdate=f,function(e){return e>=s.MIN_UPDATE_INTERVAL}(g)?this.updateInterval=g:(l.warn("Invalid updateInterval %s, defaulting to %s",g,s.DEFAULT_UPDATE_INTERVAL),this.updateInterval=s.DEFAULT_UPDATE_INTERVAL),this.currentTimeout=null,this.currentRequest=null,this.backoffController=new c.default,this.syncOnCurrentRequestComplete=!1}return e.prototype.get=function(){return this.currentDatafile},e.prototype.start=function(){this.isStarted||(l.debug("Datafile manager started"),this.isStarted=!0,this.backoffController.reset(),this.setDatafileFromCacheIfAvailable(),this.syncDatafile())},e.prototype.stop=function(){return l.debug("Datafile manager stopped"),this.isStarted=!1,this.currentTimeout&&(clearTimeout(this.currentTimeout),this.currentTimeout=null),this.emitter.removeAllListeners(),this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null),Promise.resolve()},e.prototype.onReady=function(){return this.readyPromise},e.prototype.on=function(e,t){return this.emitter.on(e,t)},e.prototype.onRequestRejected=function(e){this.isStarted&&(this.backoffController.countError(),e instanceof Error?l.error("Error fetching datafile: %s",e.message,e):"string"==typeof e?l.error("Error fetching datafile: %s",e):l.error("Error fetching datafile"))},e.prototype.onRequestResolved=function(e){if(this.isStarted){void 0!==e.statusCode&&f(e.statusCode)?this.backoffController.reset():this.backoffController.countError(),this.trySavingLastModified(e.headers);var t=this.getNextDatafileFromResponse(e);if(""!==t)if(l.info("Updating datafile from response"),this.currentDatafile=t,this.cache.set(this.cacheKey,t),this.isReadyPromiseSettled){var n={datafile:t};this.emitter.emit("update",n)}else this.resolveReadyPromise()}},e.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.isReadyPromiseSettled||this.autoUpdate||this.rejectReadyPromise(new Error("Failed to become ready")),this.autoUpdate&&this.syncOnCurrentRequestComplete&&this.syncDatafile(),this.syncOnCurrentRequestComplete=!1)},e.prototype.syncDatafile=function(){var e=this,t={};this.lastResponseLastModified&&(t["if-modified-since"]=this.lastResponseLastModified),l.debug("Making datafile request to url %s with headers: %s",this.datafileUrl,(function(){return JSON.stringify(t)})),this.currentRequest=this.makeGetRequest(this.datafileUrl,t);var n=function(){e.onRequestComplete()};this.currentRequest.responsePromise.then((function(t){e.onRequestResolved(t)}),(function(t){e.onRequestRejected(t)})).then(n,n),this.autoUpdate&&this.scheduleNextUpdate()},e.prototype.resolveReadyPromise=function(){this.readyPromiseResolver(),this.isReadyPromiseSettled=!0},e.prototype.rejectReadyPromise=function(e){this.readyPromiseRejecter(e),this.isReadyPromiseSettled=!0},e.prototype.scheduleNextUpdate=function(){var e=this,t=this.backoffController.getDelay(),n=Math.max(t,this.updateInterval);l.debug("Scheduling sync in %s ms",n),this.currentTimeout=setTimeout((function(){e.currentRequest?e.syncOnCurrentRequestComplete=!0:e.syncDatafile()}),n)},e.prototype.getNextDatafileFromResponse=function(e){return l.debug("Response status code: %s",e.statusCode),void 0===e.statusCode||304===e.statusCode?"":f(e.statusCode)?e.body:""},e.prototype.trySavingLastModified=function(e){var t=e["last-modified"]||e["Last-Modified"];void 0!==t&&(this.lastResponseLastModified=t,l.debug("Saved last modified header value from response: %s",this.lastResponseLastModified))},e.prototype.setDatafileFromCacheIfAvailable=function(){var e=this;this.cache.get(this.cacheKey).then((function(t){e.isStarted&&!e.isReadyPromiseSettled&&""!==t&&(l.debug("Using datafile from cache"),e.currentDatafile=t,e.resolveReadyPromise())}))},e}();t.default=p},6124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(870);t.HttpPollingDatafileManager=r.default},939:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendEventNotification=t.getQueue=t.validateAndGetBatchSize=t.validateAndGetFlushInterval=t.DEFAULT_BATCH_SIZE=t.DEFAULT_FLUSH_INTERVAL=void 0;var r=n(8344),o=n(2531),i=n(1185);t.DEFAULT_FLUSH_INTERVAL=3e4,t.DEFAULT_BATCH_SIZE=10;var a=o.getLogger("EventProcessor");t.validateAndGetFlushInterval=function(e){return e<=0&&(a.warn("Invalid flushInterval "+e+", defaulting to "+t.DEFAULT_FLUSH_INTERVAL),e=t.DEFAULT_FLUSH_INTERVAL),e},t.validateAndGetBatchSize=function(e){return(e=Math.floor(e))<1&&(a.warn("Invalid batchSize "+e+", defaulting to "+t.DEFAULT_BATCH_SIZE),e=t.DEFAULT_BATCH_SIZE),Math.max(1,e)},t.getQueue=function(e,t,n,o){return e>1?new r.DefaultEventQueue({flushInterval:t,maxQueueSize:e,sink:n,batchComparator:o}):new r.SingleEventQueue({sink:n})},t.sendEventNotification=function(e,t){e&&e.sendNotifications(i.NOTIFICATION_TYPES.LOG_EVENT,t)}},8344:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultEventQueue=t.SingleEventQueue=void 0;var r=n(2531).getLogger("EventProcessor"),o=function(){function e(e){var t=e.timeout,n=e.callback;this.timeout=Math.max(t,0),this.callback=n}return e.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},e.prototype.refresh=function(){this.stop(),this.start()},e.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},e}(),i=function(){function e(e){var t=e.sink;this.sink=t}return e.prototype.start=function(){},e.prototype.stop=function(){return Promise.resolve()},e.prototype.enqueue=function(e){this.sink([e])},e}();t.SingleEventQueue=i;var a=function(){function e(e){var t=e.flushInterval,n=e.maxQueueSize,r=e.sink,i=e.batchComparator;this.buffer=[],this.maxQueueSize=Math.max(n,1),this.sink=r,this.batchComparator=i,this.timer=new o({callback:this.flush.bind(this),timeout:t}),this.started=!1}return e.prototype.start=function(){this.started=!0},e.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer);return this.buffer=[],this.timer.stop(),e},e.prototype.enqueue=function(e){if(this.started){var t=this.buffer[0];t&&!this.batchComparator(t,e)&&this.flush(),0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush()}else r.warn("Queue is stopped, not accepting event")},e.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},e}();t.DefaultEventQueue=a},8514:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areEventContextsEqual=void 0,t.areEventContextsEqual=function(e,t){var n=e.context,r=t.context;return n.accountId===r.accountId&&n.projectId===r.projectId&&n.clientName===r.clientName&&n.clientVersion===r.clientVersion&&n.revision===r.revision&&n.anonymizeIP===r.anonymizeIP&&n.botFiltering===r.botFiltering}},9473:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8514),t),o(n(5609),t),o(n(939),t),o(n(2949),t),o(n(2621),t),o(n(6066),t),o(n(7816),t)},2949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2621:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStoragePendingEventsDispatcher=t.PendingEventsDispatcher=void 0;var i=n(2531),a=n(5187),u=n(1185),s=i.getLogger("EventProcessor"),c=function(){function e(e){var t=e.eventDispatcher,n=e.store;this.dispatcher=t,this.store=n}return e.prototype.dispatchEvent=function(e,t){this.send({uuid:u.generateUUID(),timestamp:u.getTimestamp(),request:e},t)},e.prototype.sendPendingEvents=function(){var e=this,t=this.store.values();s.debug("Sending %s pending events from previous page",t.length),t.forEach((function(t){try{e.send(t,(function(){}))}catch(e){}}))},e.prototype.send=function(e,t){var n=this;this.store.set(e.uuid,e),this.dispatcher.dispatchEvent(e.request,(function(r){n.store.remove(e.uuid),t(r)}))},e}();t.PendingEventsDispatcher=c;var l=function(e){function t(t){var n=t.eventDispatcher;return e.call(this,{eventDispatcher:n,store:new a.LocalStorageStore({maxValues:100,key:"fs_optly_pending_events"})})||this}return o(t,e),t}(c);t.LocalStoragePendingEventsDispatcher=l},5187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageStore=void 0;var r=n(1185),o=n(2531).getLogger("EventProcessor"),i=function(){function e(e){var t=e.key,n=e.maxValues,r=void 0===n?1e3:n;this.LS_KEY=t,this.maxValues=r}return e.prototype.get=function(e){return this.getMap()[e]||null},e.prototype.set=function(e,t){var n=this.getMap();n[e]=t,this.replace(n)},e.prototype.remove=function(e){var t=this.getMap();delete t[e],this.replace(t)},e.prototype.values=function(){return r.objectValues(this.getMap())},e.prototype.clear=function(){this.replace({})},e.prototype.replace=function(e){try{window.localStorage&&localStorage.setItem(this.LS_KEY,JSON.stringify(e)),this.clean()}catch(e){o.error(e)}},e.prototype.clean=function(){var e=this.getMap(),t=Object.keys(e),n=t.length-this.maxValues;if(!(n<1)){var r=t.map((function(t){return{key:t,value:e[t]}}));r.sort((function(e,t){return e.value.timestamp-t.value.timestamp}));for(var o=0;o<n;o++)delete e[r[o].key];this.replace(e)}},e.prototype.getMap=function(){try{var e=window.localStorage&&localStorage.getItem(this.LS_KEY);if(e)return JSON.parse(e)||{}}catch(e){o.error(e)}return{}},e}();t.LocalStorageStore=i},8349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.reqsInFlightCount=0,this.reqsCompleteResolvers=[]}return e.prototype.trackRequest=function(e){var t=this;this.reqsInFlightCount++;var n=function(){t.reqsInFlightCount--,0===t.reqsInFlightCount&&(t.reqsCompleteResolvers.forEach((function(e){return e()})),t.reqsCompleteResolvers=[])};e.then(n,n)},e.prototype.onRequestsComplete=function(){var e=this;return new Promise((function(t){0===e.reqsInFlightCount?t():e.reqsCompleteResolvers.push(t)}))},e}();t.default=n},6066:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.formatEvents=t.buildConversionEventV1=t.buildImpressionEventV1=t.makeBatchedEventV1=void 0;var r="campaign_activated",o="custom",i="$opt_bot_filtering";function a(e){var t=[],n=e[0];return e.forEach((function(e){if("conversion"===e.type||"impression"===e.type){var n=c(e);"impression"===e.type?n.snapshots.push(s(e)):"conversion"===e.type&&n.snapshots.push(u(e)),t.push(n)}})),{client_name:n.context.clientName,client_version:n.context.clientVersion,account_id:n.context.accountId,project_id:n.context.projectId,revision:n.context.revision,anonymize_ip:n.context.anonymizeIP,enrich_decisions:!0,visitors:t}}function u(e){var t=n({},e.tags);delete t.revenue,delete t.value;var r={entity_id:e.event.id,key:e.event.key,timestamp:e.timestamp,uuid:e.uuid};return e.tags&&(r.tags=e.tags),null!=e.value&&(r.value=e.value),null!=e.revenue&&(r.revenue=e.revenue),{events:[r]}}function s(e){var t,n,o=e.layer,i=e.experiment,a=e.variation,u=e.ruleKey,s=e.flagKey,c=e.ruleType,l=e.enabled,f=o?o.id:null;return{decisions:[{campaign_id:f,experiment_id:null!==(t=null==i?void 0:i.id)&&void 0!==t?t:"",variation_id:null!==(n=null==a?void 0:a.id)&&void 0!==n?n:"",metadata:{flag_key:s,rule_key:u,rule_type:c,variation_key:a?a.key:"",enabled:l}}],events:[{entity_id:f,timestamp:e.timestamp,key:r,uuid:e.uuid}]}}function c(e){var t={snapshots:[],visitor_id:e.user.id,attributes:[]};return e.user.attributes.forEach((function(e){t.attributes.push({entity_id:e.entityId,key:e.key,type:"custom",value:e.value})})),"boolean"==typeof e.context.botFiltering&&t.attributes.push({entity_id:i,key:i,type:o,value:e.context.botFiltering}),t}t.makeBatchedEventV1=a,t.buildImpressionEventV1=function(e){var t=c(e);return t.snapshots.push(s(e)),{client_name:e.context.clientName,client_version:e.context.clientVersion,account_id:e.context.accountId,project_id:e.context.projectId,revision:e.context.revision,anonymize_ip:e.context.anonymizeIP,enrich_decisions:!0,visitors:[t]}},t.buildConversionEventV1=function(e){var t=c(e);return t.snapshots.push(u(e)),{client_name:e.context.clientName,client_version:e.context.clientVersion,account_id:e.context.accountId,project_id:e.context.projectId,revision:e.context.revision,anonymize_ip:e.context.anonymizeIP,enrich_decisions:!0,visitors:[t]}},t.formatEvents=function(e){return{url:"https://logx.optimizely.com/v1/events",httpVerb:"POST",params:a(e)}}},7816:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogTierV1EventProcessor=void 0;var a=n(2531),u=n(5609),s=i(n(8349)),c=n(8514),l=n(6066),f=a.getLogger("LogTierV1EventProcessor"),d=function(){function e(e){var t=e.dispatcher,n=e.flushInterval,r=void 0===n?u.DEFAULT_FLUSH_INTERVAL:n,o=e.batchSize,i=void 0===o?u.DEFAULT_BATCH_SIZE:o,a=e.notificationCenter;this.dispatcher=t,this.notificationCenter=a,this.requestTracker=new s.default,r=u.validateAndGetFlushInterval(r),i=u.validateAndGetBatchSize(i),this.queue=u.getQueue(i,r,this.drainQueue.bind(this),c.areEventContextsEqual)}return e.prototype.drainQueue=function(e){var t=this,n=new Promise((function(n){if(f.debug("draining queue with %s events",e.length),0!==e.length){var r=l.formatEvents(e);t.dispatcher.dispatchEvent(r,(function(){n()})),u.sendEventNotification(t.notificationCenter,r)}else n()}));return this.requestTracker.trackRequest(n),n},e.prototype.process=function(e){this.queue.enqueue(e)},e.prototype.stop=function(){try{return this.queue.stop(),this.requestTracker.onRequestsComplete()}catch(e){f.error('Error stopping EventProcessor: "%s"',e.message,e)}return Promise.resolve()},e.prototype.start=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){return this.queue.start(),[2]}))}))},e}();t.LogTierV1EventProcessor=d},3077:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.handleError=function(e){},e}();t.NoopErrorHandler=n;var r=new n;t.setErrorHandler=function(e){r=e},t.getErrorHandler=function(){return r},t.resetErrorHandler=function(){r=new n}},2531:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(3077)),r(n(2011)),r(n(1628))},1628:function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var o=n(3077),i=n(1185),a=n(2011),u={NOTSET:0,DEBUG:1,INFO:2,WARNING:3,ERROR:4};function s(e){return"string"!=typeof e?e:("WARN"===(e=e.toUpperCase())&&(e="WARNING"),u[e]?u[e]:e)}var c=function(){function e(){this.defaultLoggerFacade=new p,this.loggers={}}return e.prototype.getLogger=function(e){return e?(this.loggers[e]||(this.loggers[e]=new p({messagePrefix:e})),this.loggers[e]):this.defaultLoggerFacade},e}(),l=function(){function e(e){void 0===e&&(e={}),this.logLevel=a.LogLevel.NOTSET,void 0!==e.logLevel&&i.isValidEnum(a.LogLevel,e.logLevel)&&this.setLogLevel(e.logLevel),this.logToConsole=void 0===e.logToConsole||!!e.logToConsole,this.prefix=void 0!==e.prefix?e.prefix:"[OPTIMIZELY]"}return e.prototype.log=function(e,t){if(this.shouldLog(e)&&this.logToConsole){var n=this.prefix+" - "+this.getLogLevelName(e)+" "+this.getTime()+" "+t;this.consoleLog(e,[n])}},e.prototype.setLogLevel=function(e){e=s(e),i.isValidEnum(a.LogLevel,e)&&void 0!==e?this.logLevel=e:this.logLevel=a.LogLevel.ERROR},e.prototype.getTime=function(){return(new Date).toISOString()},e.prototype.shouldLog=function(e){return e>=this.logLevel},e.prototype.getLogLevelName=function(e){switch(e){case a.LogLevel.DEBUG:return"DEBUG";case a.LogLevel.INFO:return"INFO ";case a.LogLevel.WARNING:return"WARN ";case a.LogLevel.ERROR:return"ERROR";default:return"NOTSET"}},e.prototype.consoleLog=function(e,t){switch(e){case a.LogLevel.DEBUG:console.log.apply(console,t);break;case a.LogLevel.INFO:console.info.apply(console,t);break;case a.LogLevel.WARNING:console.warn.apply(console,t);break;case a.LogLevel.ERROR:console.error.apply(console,t);break;default:console.log.apply(console,t)}},e}();t.ConsoleLogHandler=l;var f=a.LogLevel.NOTSET,d=null,p=function(){function e(e){void 0===e&&(e={}),this.messagePrefix="",e.messagePrefix&&(this.messagePrefix=e.messagePrefix)}return e.prototype.log=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.internalLog(s(e),{message:t,splat:n})},e.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.namedLog(a.LogLevel.INFO,e,t)},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.namedLog(a.LogLevel.DEBUG,e,t)},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.namedLog(a.LogLevel.WARNING,e,t)},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.namedLog(a.LogLevel.ERROR,e,t)},e.prototype.format=function(e){return(this.messagePrefix?this.messagePrefix+": ":"")+i.sprintf.apply(void 0,r([e.message],e.splat))},e.prototype.internalLog=function(e,t){d&&(e<f||(d.log(e,this.format(t)),t.error&&t.error instanceof Error&&o.getErrorHandler().handleError(t.error)))},e.prototype.namedLog=function(e,t,n){var r;if(t instanceof Error)return t=(r=t).message,void this.internalLog(e,{error:r,message:t,splat:n});if(0!==n.length){var o=n[n.length-1];o instanceof Error&&(r=o,n.splice(-1)),this.internalLog(e,{message:t,error:r,splat:n})}else this.internalLog(e,{message:t,splat:n})},e}(),h=new c;t.getLogger=function(e){return h.getLogger(e)},t.setLogHandler=function(e){d=e},t.setLogLevel=function(e){e=s(e),f=i.isValidEnum(a.LogLevel,e)&&void 0!==e?e:a.LogLevel.ERROR},t.getLogLevel=function(){return f},t.resetLogger=function(){h=new c,f=a.LogLevel.NOTSET}},2011:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.LogLevel||(t.LogLevel={}))[n.NOTSET=0]="NOTSET",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARNING=3]="WARNING",n[n.ERROR=4]="ERROR"},1185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3217);function i(e){return Object.keys(e).map((function(t){return e[t]}))}t.generateUUID=function(){return o.v4()},t.getTimestamp=function(){return(new Date).getTime()},t.isValidEnum=function(e,t){for(var n=!1,r=Object.keys(e),o=0;o<r.length;o++)if(t===e[r[o]]){n=!0;break}return n},t.groupBy=function(e,t){var n={};return e.forEach((function(e){var r=t(e);n[r]=n[r]||[],n[r].push(e)})),i(n)},t.objectValues=i,t.objectEntries=function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))},t.find=function(e,t){for(var n,r=0,o=e;r<o.length;r++){var i=o[r];if(t(i)){n=i;break}}return n},t.keyBy=function(e,t){var n={};return e.forEach((function(e){var r=t(e);n[r]=e})),n},t.sprintf=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=0;return e.replace(/%s/g,(function(){var e=t[r++],n=typeof e;return"function"===n?e():"string"===n?e:String(e)}))},(r=t.NOTIFICATION_TYPES||(t.NOTIFICATION_TYPES={})).ACTIVATE="ACTIVATE:experiment, user_id,attributes, variation, event",r.DECISION="DECISION:type, userId, attributes, decisionInfo",r.LOG_EVENT="LOG_EVENT:logEvent",r.OPTIMIZELY_CONFIG_UPDATE="OPTIMIZELY_CONFIG_UPDATE",r.TRACK="TRACK:event_key, user_id, attributes, event_tags, event"},3217:(e,t,n)=>{var r=n(4195),o=n(5916),i=o;i.v1=r,i.v4=o,e.exports=i},4146:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},8378:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},4195:(e,t,n)=>{var r,o,i=n(8378),a=n(4146),u=0,s=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],f=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=i();null==f&&(f=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:s+1,v=h-u+(g-s)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||h>u)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,s=g,o=d;var y=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var E=0;E<6;++E)l[c+E]=f[E];return t||a(l)}},5916:(e,t,n)=>{var r=n(8378),o=n(4146);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var u=0;u<16;++u)t[i+u]=a[u];return t||o(a)}},1962:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2531),i=n(9473),a=r(n(9015)),u=r(n(6077)),s=n(6124),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function l(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}var f=Math.pow(2,53);function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)return{};if("function"==typeof Object.assign)return Object.assign.apply(Object,l([e],t));for(var r=Object(e),o=0;o<t.length;o++){var i=t[o];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])}return r}function p(e,t){return e?y(e,(function(e){return e[t]})):{}}function h(e){return Object.keys(e).map((function(t){return e[t]}))}function g(e){return Object.keys(e).map((function(t){return[t,e[t]]}))}function v(e,t){for(var n,r=0,o=e;r<o.length;r++){var i=o[r];if(t(i)){n=i;break}}return n}function y(e,t){var n={};return e.forEach((function(e){var r=t(e);n[r]=e})),n}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=0;return e.replace(/%s/g,(function(){var e=t[r++],n=typeof e;return"function"===n?e():"string"===n?e:String(e)}))}var E,_={assign:d,currentTimestamp:function(){return Math.round((new Date).getTime())},isSafeInteger:function(e){return"number"==typeof e&&Math.abs(e)<=f},keyBy:p,uuid:function(){return a()},isNumber:function(e){return"number"==typeof e},getTimestamp:function(){return(new Date).getTime()},isValidEnum:function(e,t){for(var n=!1,r=Object.keys(e),o=0;o<r.length;o++)if(t===e[r[o]]){n=!0;break}return n},groupBy:function(e,t){var n={};return e.forEach((function(e){var r=t(e);n[r]=n[r]||[],n[r].push(e)})),h(n)},objectValues:h,objectEntries:g,find:v,keyByUtil:y,sprintf:m},b={NOTSET:0,DEBUG:1,INFO:2,WARNING:3,ERROR:4},A={CONDITION_EVALUATOR_ERROR:"%s: Error evaluating audience condition of type %s: %s",DATAFILE_AND_SDK_KEY_MISSING:"%s: You must provide at least one of sdkKey or datafile. Cannot start Optimizely",EXPERIMENT_KEY_NOT_IN_DATAFILE:"%s: Experiment key %s is not in datafile.",FEATURE_NOT_IN_DATAFILE:"%s: Feature key %s is not in datafile.",IMPROPERLY_FORMATTED_EXPERIMENT:"%s: Experiment key %s is improperly formatted.",INVALID_ATTRIBUTES:"%s: Provided attributes are in an invalid format.",INVALID_BUCKETING_ID:"%s: Unable to generate hash for bucketing ID %s: %s",INVALID_DATAFILE:"%s: Datafile is invalid - property %s: %s",INVALID_DATAFILE_MALFORMED:"%s: Datafile is invalid because it is malformed.",INVALID_CONFIG:"%s: Provided Optimizely config is in an invalid format.",INVALID_JSON:"%s: JSON object is not valid.",INVALID_ERROR_HANDLER:'%s: Provided "errorHandler" is in an invalid format.',INVALID_EVENT_DISPATCHER:'%s: Provided "eventDispatcher" is in an invalid format.',INVALID_EVENT_TAGS:"%s: Provided event tags are in an invalid format.",INVALID_EXPERIMENT_KEY:"%s: Experiment key %s is not in datafile. It is either invalid, paused, or archived.",INVALID_EXPERIMENT_ID:"%s: Experiment ID %s is not in datafile.",INVALID_GROUP_ID:"%s: Group ID %s is not in datafile.",INVALID_LOGGER:'%s: Provided "logger" is in an invalid format.',INVALID_ROLLOUT_ID:"%s: Invalid rollout ID %s attached to feature %s",INVALID_USER_ID:"%s: Provided user ID is in an invalid format.",INVALID_USER_PROFILE_SERVICE:"%s: Provided user profile service instance is in an invalid format: %s.",NO_DATAFILE_SPECIFIED:"%s: No datafile specified. Cannot start optimizely.",NO_JSON_PROVIDED:"%s: No JSON object to validate against schema.",NO_VARIATION_FOR_EXPERIMENT_KEY:"%s: No variation key %s defined in datafile for experiment %s.",UNDEFINED_ATTRIBUTE:"%s: Provided attribute: %s has an undefined value.",UNRECOGNIZED_ATTRIBUTE:"%s: Unrecognized attribute %s provided. Pruning before sending event to Optimizely.",UNABLE_TO_CAST_VALUE:"%s: Unable to cast value %s to type %s, returning null.",USER_NOT_IN_FORCED_VARIATION:"%s: User %s is not in the forced variation map. Cannot remove their forced variation.",USER_PROFILE_LOOKUP_ERROR:'%s: Error while looking up user profile for user ID "%s": %s.',USER_PROFILE_SAVE_ERROR:'%s: Error while saving user profile for user ID "%s": %s.',VARIABLE_KEY_NOT_IN_DATAFILE:'%s: Variable with key "%s" associated with feature with key "%s" is not in datafile.',VARIATION_ID_NOT_IN_DATAFILE:"%s: No variation ID %s defined in datafile for experiment %s.",VARIATION_ID_NOT_IN_DATAFILE_NO_EXPERIMENT:"%s: Variation ID %s is not in the datafile.",INVALID_INPUT_FORMAT:"%s: Provided %s is in an invalid format.",INVALID_DATAFILE_VERSION:"%s: This version of the JavaScript SDK does not support the given datafile version: %s",INVALID_VARIATION_KEY:"%s: Provided variation key is in an invalid format."},w={ACTIVATE_USER:"%s: Activating user %s in experiment %s.",DISPATCH_CONVERSION_EVENT:"%s: Dispatching conversion event to URL %s with params %s.",DISPATCH_IMPRESSION_EVENT:"%s: Dispatching impression event to URL %s with params %s.",DEPRECATED_EVENT_VALUE:"%s: Event value is deprecated in %s call.",EVENT_KEY_NOT_FOUND:"%s: Event key %s is not in datafile.",EXPERIMENT_NOT_RUNNING:"%s: Experiment %s is not running.",FEATURE_ENABLED_FOR_USER:"%s: Feature %s is enabled for user %s.",FEATURE_NOT_ENABLED_FOR_USER:"%s: Feature %s is not enabled for user %s.",FEATURE_HAS_NO_EXPERIMENTS:"%s: Feature %s is not attached to any experiments.",FAILED_TO_PARSE_VALUE:'%s: Failed to parse event value "%s" from event tags.',FAILED_TO_PARSE_REVENUE:'%s: Failed to parse revenue value "%s" from event tags.',FORCED_BUCKETING_FAILED:"%s: Variation key %s is not in datafile. Not activating user %s.",INVALID_OBJECT:"%s: Optimizely object is not valid. Failing %s.",INVALID_CLIENT_ENGINE:"%s: Invalid client engine passed: %s. Defaulting to node-sdk.",INVALID_DEFAULT_DECIDE_OPTIONS:"%s: Provided default decide options is not an array.",INVALID_DECIDE_OPTIONS:"%s: Provided decide options is not an array. Using default decide options.",INVALID_VARIATION_ID:"%s: Bucketed into an invalid variation ID. Returning null.",NOTIFICATION_LISTENER_EXCEPTION:"%s: Notification listener for (%s) threw exception: %s",NO_ROLLOUT_EXISTS:"%s: There is no rollout of feature %s.",NOT_ACTIVATING_USER:"%s: Not activating user %s for experiment %s.",NOT_TRACKING_USER:"%s: Not tracking user %s.",PARSED_REVENUE_VALUE:'%s: Parsed revenue value "%s" from event tags.',PARSED_NUMERIC_VALUE:'%s: Parsed event value "%s" from event tags.',RETURNING_STORED_VARIATION:'%s: Returning previously activated variation "%s" of experiment "%s" for user "%s" from user profile.',ROLLOUT_HAS_NO_EXPERIMENTS:"%s: Rollout of feature %s has no experiments",SAVED_VARIATION:'%s: Saved variation "%s" of experiment "%s" for user "%s".',SAVED_VARIATION_NOT_FOUND:"%s: User %s was previously bucketed into variation with ID %s for experiment %s, but no matching variation was found.",SHOULD_NOT_DISPATCH_ACTIVATE:'%s: Experiment %s is not in "Running" state. Not activating user.',SKIPPING_JSON_VALIDATION:"%s: Skipping JSON schema validation.",TRACK_EVENT:"%s: Tracking event %s for user %s.",UNRECOGNIZED_DECIDE_OPTION:"%s: Unrecognized decide option %s provided.",USER_ASSIGNED_TO_EXPERIMENT_BUCKET:"%s: Assigned bucket %s to user with bucketing ID %s.",USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP:"%s: User %s is in experiment %s of group %s.",USER_BUCKETED_INTO_TARGETING_RULE:"%s: User %s bucketed into targeting rule %s.",USER_IN_FEATURE_EXPERIMENT:"%s: User %s is in variation %s of experiment %s on the feature %s.",USER_IN_ROLLOUT:"%s: User %s is in rollout of feature %s.",USER_NOT_BUCKETED_INTO_EVERYONE_TARGETING_RULE:"%s: User %s not bucketed into everyone targeting rule due to traffic allocation.",USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP:"%s: User %s is not in experiment %s of group %s.",USER_NOT_BUCKETED_INTO_ANY_EXPERIMENT_IN_GROUP:"%s: User %s is not in any experiment of group %s.",USER_NOT_BUCKETED_INTO_TARGETING_RULE:"%s User %s not bucketed into targeting rule %s due to traffic allocation. Trying everyone rule.",USER_NOT_IN_FEATURE_EXPERIMENT:"%s: User %s is not in any experiment on the feature %s.",USER_NOT_IN_ROLLOUT:"%s: User %s is not in rollout of feature %s.",USER_FORCED_IN_VARIATION:"%s: User %s is forced in variation %s.",USER_MAPPED_TO_FORCED_VARIATION:"%s: Set variation %s for experiment %s and user %s in the forced variation map.",USER_DOESNT_MEET_CONDITIONS_FOR_TARGETING_RULE:"%s: User %s does not meet conditions for targeting rule %s.",USER_MEETS_CONDITIONS_FOR_TARGETING_RULE:"%s: User %s meets conditions for targeting rule %s.",USER_HAS_VARIATION:"%s: User %s is in variation %s of experiment %s.",USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED:"Variation (%s) is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED:"Variation (%s) is mapped to flag (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID:"Invalid variation is mapped to flag (%s), rule (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID:"Invalid variation is mapped to flag (%s) and user (%s) in the forced decision map.",USER_HAS_FORCED_VARIATION:"%s: Variation %s is mapped to experiment %s and user %s in the forced variation map.",USER_HAS_NO_VARIATION:"%s: User %s is in no variation of experiment %s.",USER_HAS_NO_FORCED_VARIATION:"%s: User %s is not in the forced variation map.",USER_HAS_NO_FORCED_VARIATION_FOR_EXPERIMENT:"%s: No experiment %s mapped to user %s in the forced variation map.",USER_NOT_IN_ANY_EXPERIMENT:"%s: User %s is not in any experiment of group %s.",USER_NOT_IN_EXPERIMENT:"%s: User %s does not meet conditions to be in experiment %s.",USER_RECEIVED_DEFAULT_VARIABLE_VALUE:'%s: User "%s" is not in any variation or rollout rule. Returning default value for variable "%s" of feature flag "%s".',FEATURE_NOT_ENABLED_RETURN_DEFAULT_VARIABLE_VALUE:'%s: Feature "%s" is not enabled for user %s. Returning the default variable value "%s".',VARIABLE_NOT_USED_RETURN_DEFAULT_VARIABLE_VALUE:'%s: Variable "%s" is not used in variation "%s". Returning default value.',USER_RECEIVED_VARIABLE_VALUE:'%s: Got variable value "%s" for variable "%s" of feature flag "%s"',VALID_DATAFILE:"%s: Datafile is valid.",VALID_USER_PROFILE_SERVICE:"%s: Valid user profile service provided.",VARIATION_REMOVED_FOR_USER:"%s: Variation mapped to experiment %s has been removed for user %s.",VARIABLE_REQUESTED_WITH_WRONG_TYPE:'%s: Requested variable type "%s", but variable is of type "%s". Use correct API to retrieve value. Returning None.',VALID_BUCKETING_ID:'%s: BucketingId is valid: "%s"',BUCKETING_ID_NOT_STRING:"%s: BucketingID attribute is not a string. Defaulted to userId",EVALUATING_AUDIENCE:'%s: Starting to evaluate audience "%s" with conditions: %s.',EVALUATING_AUDIENCES_COMBINED:'%s: Evaluating audiences for %s "%s": %s.',AUDIENCE_EVALUATION_RESULT:'%s: Audience "%s" evaluated to %s.',AUDIENCE_EVALUATION_RESULT_COMBINED:"%s: Audiences for %s %s collectively evaluated to %s.",MISSING_ATTRIBUTE_VALUE:'%s: Audience condition %s evaluated to UNKNOWN because no value was passed for user attribute "%s".',UNEXPECTED_CONDITION_VALUE:"%s: Audience condition %s evaluated to UNKNOWN because the condition value is not supported.",UNEXPECTED_TYPE:'%s: Audience condition %s evaluated to UNKNOWN because a value of type "%s" was passed for user attribute "%s".',UNEXPECTED_TYPE_NULL:'%s: Audience condition %s evaluated to UNKNOWN because a null value was passed for user attribute "%s".',UNKNOWN_CONDITION_TYPE:"%s: Audience condition %s has an unknown condition type. You may need to upgrade to a newer release of the Optimizely SDK.",UNKNOWN_MATCH_TYPE:"%s: Audience condition %s uses an unknown match type. You may need to upgrade to a newer release of the Optimizely SDK.",UPDATED_OPTIMIZELY_CONFIG:"%s: Updated Optimizely config to revision %s (project id %s)",OUT_OF_BOUNDS:'%s: Audience condition %s evaluated to UNKNOWN because the number value for user attribute "%s" is not in the range [-2^53, +2^53].',UNABLE_TO_ATTACH_UNLOAD:'%s: unable to bind optimizely.close() to page unload event: "%s"'},C={BOT_FILTERING:"$opt_bot_filtering",BUCKETING_ID:"$opt_bucketing_id",STICKY_BUCKETING_KEY:"$opt_experiment_bucket_map",USER_AGENT:"$opt_user_agent",FORCED_DECISION_NULL_RULE_KEY:"$opt_null_rule_key"},T={AB_TEST:"ab-test",FEATURE:"feature",FEATURE_TEST:"feature-test",FEATURE_VARIABLE:"feature-variable",ALL_FEATURE_VARIABLES:"all-feature-variables",FLAG:"flag"},k={FEATURE_TEST:"feature-test",ROLLOUT:"rollout",EXPERIMENT:"experiment"},I={RULE:"rule",EXPERIMENT:"experiment"},D={BOOLEAN:"boolean",DOUBLE:"double",INTEGER:"integer",STRING:"string",JSON:"json"},O={V2:"2",V3:"3",V4:"4"},R={SDK_NOT_READY:"Optimizely SDK not configured properly yet.",FLAG_KEY_INVALID:'No flag was found for key "%s".',VARIABLE_VALUE_INVALID:'Variable value for key "%s" is invalid or wrong type.'};!function(e){e.ACTIVATE="ACTIVATE:experiment, user_id,attributes, variation, event",e.DECISION="DECISION:type, userId, attributes, decisionInfo",e.LOG_EVENT="LOG_EVENT:logEvent",e.OPTIMIZELY_CONFIG_UPDATE="OPTIMIZELY_CONFIG_UPDATE",e.TRACK="TRACK:event_key, user_id, attributes, event_tags, event"}(E||(E={}));var S=Object.freeze({__proto__:null,LOG_LEVEL:b,ERROR_MESSAGES:A,LOG_MESSAGES:w,CONTROL_ATTRIBUTES:C,JAVASCRIPT_CLIENT_ENGINE:"javascript-sdk",NODE_CLIENT_ENGINE:"node-sdk",REACT_CLIENT_ENGINE:"react-sdk",REACT_NATIVE_CLIENT_ENGINE:"react-native-sdk",REACT_NATIVE_JS_CLIENT_ENGINE:"react-native-js-sdk",NODE_CLIENT_VERSION:"4.9.2",DECISION_NOTIFICATION_TYPES:T,DECISION_SOURCES:k,AUDIENCE_EVALUATION_TYPES:I,FEATURE_VARIABLE_TYPES:D,DATAFILE_VERSIONS:O,DECISION_MESSAGES:R,get NOTIFICATION_TYPES(){return E}}),N="CONFIG_VALIDATOR",L=[O.V2,O.V3,O.V4],U={handleError:function(){}},x={dispatchEvent:function(e,t){var n,r=e.params,o=e.url;"POST"===e.httpVerb?((n=new XMLHttpRequest).open("POST",o,!0),n.setRequestHeader("Content-Type","application/json"),n.onreadystatechange=function(){if(4===n.readyState&&t&&"function"==typeof t)try{t({statusCode:n.status})}catch(e){}},n.send(JSON.stringify(r))):(o+="?wxhr=true",r&&(o+="&"+function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}(r)),(n=new XMLHttpRequest).open("GET",o,!0),n.onreadystatechange=function(){if(4===n.readyState&&t&&"function"==typeof t)try{t({statusCode:n.status})}catch(e){}},n.send())}},P=function(){function e(){}return e.prototype.log=function(){},e}();function F(e){return new o.ConsoleLogHandler(e)}var M,B,V=Object.freeze({__proto__:null,NoOpLogger:P,createLogger:F,createNoOpLogger:function(){return new P}});function j(e,t,n){return{variationKey:null,enabled:!1,variables:{},ruleKey:null,flagKey:e,userContext:t,reasons:n}}!function(e){e.BOOLEAN="boolean",e.DOUBLE="double",e.INTEGER="integer",e.STRING="string",e.JSON="json"}(M||(M={})),(B=t.OptimizelyDecideOption||(t.OptimizelyDecideOption={})).DISABLE_DECISION_EVENT="DISABLE_DECISION_EVENT",B.ENABLED_FLAGS_ONLY="ENABLED_FLAGS_ONLY",B.IGNORE_USER_PROFILE_SERVICE="IGNORE_USER_PROFILE_SERVICE",B.INCLUDE_REASONS="INCLUDE_REASONS",B.EXCLUDE_VARIABLES="EXCLUDE_VARIABLES";var z=function(){function e(e){var t,n=e.optimizely,r=e.userId,o=e.attributes;this.optimizely=n,this.userId=r,this.attributes=null!==(t=c({},o))&&void 0!==t?t:{},this.forcedDecisionsMap={}}return e.prototype.setAttribute=function(e,t){this.attributes[e]=t},e.prototype.getUserId=function(){return this.userId},e.prototype.getAttributes=function(){return c({},this.attributes)},e.prototype.getOptimizely=function(){return this.optimizely},e.prototype.decide=function(e,t){return void 0===t&&(t=[]),this.optimizely.decide(this.cloneUserContext(),e,t)},e.prototype.decideForKeys=function(e,t){return void 0===t&&(t=[]),this.optimizely.decideForKeys(this.cloneUserContext(),e,t)},e.prototype.decideAll=function(e){return void 0===e&&(e=[]),this.optimizely.decideAll(this.cloneUserContext(),e)},e.prototype.trackEvent=function(e,t){this.optimizely.track(e,this.userId,this.attributes,t)},e.prototype.setForcedDecision=function(e,t){var n,r=e.flagKey,o=null!==(n=e.ruleKey)&&void 0!==n?n:C.FORCED_DECISION_NULL_RULE_KEY,i={variationKey:t.variationKey};return this.forcedDecisionsMap[r]||(this.forcedDecisionsMap[r]={}),this.forcedDecisionsMap[r][o]=i,!0},e.prototype.getForcedDecision=function(e){return this.findForcedDecision(e)},e.prototype.removeForcedDecision=function(e){var t,n=null!==(t=e.ruleKey)&&void 0!==t?t:C.FORCED_DECISION_NULL_RULE_KEY,r=e.flagKey,o=!1;return this.forcedDecisionsMap.hasOwnProperty(r)&&(this.forcedDecisionsMap[r].hasOwnProperty(n)&&(delete this.forcedDecisionsMap[r][n],o=!0),0===Object.keys(this.forcedDecisionsMap[r]).length&&delete this.forcedDecisionsMap[r]),o},e.prototype.removeAllForcedDecisions=function(){return this.forcedDecisionsMap={},!0},e.prototype.findForcedDecision=function(e){var t,n=null!==(t=e.ruleKey)&&void 0!==t?t:C.FORCED_DECISION_NULL_RULE_KEY,r=e.flagKey;if(this.forcedDecisionsMap.hasOwnProperty(e.flagKey)){var o=this.forcedDecisionsMap[r];if(o.hasOwnProperty(n))return{variationKey:o[n].variationKey}}return null},e.prototype.cloneUserContext=function(){var t=new e({optimizely:this.getOptimizely(),userId:this.getUserId(),attributes:this.getAttributes()});return Object.keys(this.forcedDecisionsMap).length>0&&(t.forcedDecisionsMap=c({},this.forcedDecisionsMap)),t},e}(),K=["and","or","not"];function G(e,t){if(Array.isArray(e)){var n=e[0],r=e.slice(1);switch("string"==typeof n&&-1===K.indexOf(n)&&(n="or",r=e),n){case"and":return function(e,t){var n=!1;if(Array.isArray(e)){for(var r=0;r<e.length;r++){var o=G(e[r],t);if(!1===o)return!1;null===o&&(n=!0)}return!n||null}return null}(r,t);case"not":return function(e,t){if(Array.isArray(e)&&e.length>0){var n=G(e[0],t);return null===n?null:!n}return null}(r,t);default:return function(e,t){var n=!1;if(Array.isArray(e)){for(var r=0;r<e.length;r++){var o=G(e[r],t);if(!0===o)return!0;null===o&&(n=!0)}return!!n&&null}return null}(r,t)}}return t(e)}var q=function(){function e(t,n){var r,o;this.sdkKey=null!==(r=t.sdkKey)&&void 0!==r?r:"",this.environmentKey=null!==(o=t.environmentKey)&&void 0!==o?o:"",this.attributes=t.attributes,this.audiences=e.getAudiences(t),this.events=t.events,this.revision=t.revision;var i=(t.featureFlags||[]).reduce((function(e,t){return e[t.id]=t.variables,e}),{}),a=e.getExperimentsMapById(t,i);this.experimentsMap=e.getExperimentsKeyMap(a),this.featuresMap=e.getFeaturesMap(t,i,a),this.datafile=n}return e.prototype.getDatafile=function(){return this.datafile},e.getAudiences=function(e){var t=[],n=[];return(e.typedAudiences||[]).forEach((function(e){t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name}),n.push(e.id)})),(e.audiences||[]).forEach((function(e){-1===n.indexOf(e.id)&&"$opt_dummy_audience"!=e.id&&t.push({id:e.id,conditions:JSON.stringify(e.conditions),name:e.name})})),t},e.getSerializedAudiences=function(t,n){var r="";if(t){var o="";t.forEach((function(t){var i="";if(t instanceof Array)i="("+(i=e.getSerializedAudiences(t,n))+")";else if(K.indexOf(t)>-1)o=t.toUpperCase();else{var a=n[t]?n[t].name:t;r||"NOT"===o?(o=""===o?"OR":o,r=""===r?o+' "'+n[t].name+'"':r.concat(" "+o+' "'+a+'"')):r='"'+a+'"'}""!==i&&(""!==r||"NOT"===o?(o=""===o?"OR":o,r=""===r?o+" "+i:r.concat(" "+o+" "+i)):r=r.concat(i))}))}return r},e.getExperimentAudiences=function(t,n){return t.audienceConditions?e.getSerializedAudiences(t.audienceConditions,n.audiencesById):""},e.mergeFeatureVariables=function(e,t,n,r,o){var i=(e[n]||[]).reduce((function(e,t){return e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e}),{});return(r||[]).forEach((function(e){var n=t[e.id],r={id:e.id,key:n.key,type:n.type,value:o?e.value:n.defaultValue};i[n.key]=r})),i},e.getVariationsMap=function(t,n,r,o){return t.reduce((function(t,i){var a=e.mergeFeatureVariables(n,r,o,i.variables,i.featureEnabled);return t[i.key]={id:i.id,key:i.key,featureEnabled:i.featureEnabled,variablesMap:a},t}),{})},e.getVariableIdMap=function(e){return(e.featureFlags||[]).reduce((function(e,t){return t.variables.forEach((function(t){e[t.id]=t})),e}),{})},e.getDeliveryRules=function(t,n,r,o){var i=e.getVariableIdMap(t);return o.map((function(o){return{id:o.id,key:o.key,audiences:e.getExperimentAudiences(o,t),variationsMap:e.getVariationsMap(o.variations,n,i,r)}}))},e.getRolloutExperimentIds=function(e){var t=[];return(e||[]).forEach((function(e){e.experiments.forEach((function(e){t.push(e.id)}))})),t},e.getExperimentsMapById=function(t,n){var r=e.getVariableIdMap(t),o=this.getRolloutExperimentIds(t.rollouts);return(t.experiments||[]).reduce((function(i,a){if(-1===o.indexOf(a.id)){var u=t.experimentFeatureMap[a.id],s="";u&&u.length>0&&(s=u[0]);var c=e.getVariationsMap(a.variations,n,r,s.toString());i[a.id]={id:a.id,key:a.key,audiences:e.getExperimentAudiences(a,t),variationsMap:c}}return i}),{})},e.getExperimentsKeyMap=function(e){var t={};for(var n in e){var r=e[n];t[r.key]=r}return t},e.getFeaturesMap=function(t,n,r){var o={};return t.featureFlags.forEach((function(i){var a={},u=[];i.experimentIds.forEach((function(e){var t=r[e];t&&(a[t.key]=t),u.push(r[e])}));var s=(i.variables||[]).reduce((function(e,t){return e[t.key]={id:t.id,key:t.key,type:t.type,value:t.defaultValue},e}),{}),c=[],l=t.rolloutIdMap[i.rolloutId];l&&(c=e.getDeliveryRules(t,n,i.id,l.experiments)),o[i.key]={id:i.id,key:i.key,experimentRules:u,deliveryRules:c,experimentsMap:a,variablesMap:s}})),o},e}(),H="PROJECT_CONFIG",J=function(e,t){void 0===t&&(t=null);var n,r,o,i,a=((i=d({},n=e)).audiences=(n.audiences||[]).map((function(e){return d({},e)})),i.experiments=(n.experiments||[]).map((function(e){return d({},e)})),i.featureFlags=(n.featureFlags||[]).map((function(e){return d({},e)})),i.groups=(n.groups||[]).map((function(e){var t=d({},e);return t.experiments=(e.experiments||[]).map((function(e){return d({},e)})),t})),i.rollouts=(n.rollouts||[]).map((function(e){var t=d({},e);return t.experiments=(e.experiments||[]).map((function(e){return d({},e)})),t})),i.environmentKey=null!==(r=n.environmentKey)&&void 0!==r?r:"",i.sdkKey=null!==(o=n.sdkKey)&&void 0!==o?o:"",i);return a.__datafileStr=null===t?JSON.stringify(e):t,(a.audiences||[]).forEach((function(e){e.conditions=JSON.parse(e.conditions)})),a.audiencesById=p(a.audiences,"id"),d(a.audiencesById,p(a.typedAudiences,"id")),a.attributeKeyMap=p(a.attributes,"key"),a.eventKeyMap=p(a.events,"key"),a.groupIdMap=p(a.groups,"id"),Object.keys(a.groupIdMap||{}).forEach((function(e){(a.groupIdMap[e].experiments||[]).forEach((function(t){a.experiments.push(d(t,{groupId:e}))}))})),a.rolloutIdMap=p(a.rollouts||[],"id"),h(a.rolloutIdMap||{}).forEach((function(e){(e.experiments||[]).forEach((function(e){a.experiments.push(e),e.variationKeyMap=p(e.variations,"key")}))})),a.experimentKeyMap=p(a.experiments,"key"),a.experimentIdMap=p(a.experiments,"id"),a.variationIdMap={},a.variationVariableUsageMap={},(a.experiments||[]).forEach((function(e){e.variationKeyMap=p(e.variations,"key"),d(a.variationIdMap,p(e.variations,"id")),h(e.variationKeyMap||{}).forEach((function(e){e.variables&&(a.variationVariableUsageMap[e.id]=p(e.variables,"id"))}))})),a.experimentFeatureMap={},a.featureKeyMap=p(a.featureFlags||[],"key"),h(a.featureKeyMap||{}).forEach((function(e){e.variables.forEach((function(e){e.type===D.STRING&&e.subType===D.JSON&&(e.type=D.JSON,delete e.subType)})),e.variableKeyMap=p(e.variables,"key"),(e.experimentIds||[]).forEach((function(t){a.experimentFeatureMap[t]?a.experimentFeatureMap[t].push(e.id):a.experimentFeatureMap[t]=[e.id]}))})),a.flagRulesMap={},(a.featureFlags||[]).forEach((function(e){var t=[];e.experimentIds.forEach((function(e){var n=a.experimentIdMap[e];n&&t.push(n)}));var n=a.rolloutIdMap[e.rolloutId];n&&t.push.apply(t,n.experiments),a.flagRulesMap[e.key]=t})),a.flagVariationsMap={},g(a.flagRulesMap||{}).forEach((function(e){var t=e[0],n=e[1],r=[];n.forEach((function(e){e.variations.forEach((function(e){v(r,(function(t){return t.id===e.id}))||r.push(e)}))})),a.flagVariationsMap[t]=r})),a},W=function(e,t){var n=e.experimentIdMap[t];if(!n)throw new Error(m(A.INVALID_EXPERIMENT_ID,H,t));return n.layerId},Y=function(e,t,n){var r=e.attributeKeyMap[t],o=0===t.indexOf("$opt_");return r?(o&&n.log(b.WARNING,"Attribute %s unexpectedly has reserved prefix %s; using attribute ID instead of reserved attribute name.",t,"$opt_"),r.id):o?t:(n.log(b.DEBUG,A.UNRECOGNIZED_ATTRIBUTE,H,t),null)},Z=function(e,t){var n=e.eventKeyMap[t];return n?n.id:null},X=function(e,t){var n=e.experimentKeyMap[t];if(!n)throw new Error(m(A.INVALID_EXPERIMENT_KEY,H,t));return n.status},Q=function(e,t){return e.variationIdMap.hasOwnProperty(t)?e.variationIdMap[t].key:null},$=function(e,t){if(e.experimentKeyMap.hasOwnProperty(t)){var n=e.experimentKeyMap[t];if(n)return n}throw new Error(m(A.EXPERIMENT_KEY_NOT_IN_DATAFILE,H,t))},ee=function(e,t){var n=e.experimentIdMap[t];if(!n)throw new Error(m(A.INVALID_EXPERIMENT_ID,H,t));return n.trafficAllocation},te=function(e,t,n){if(e.experimentIdMap.hasOwnProperty(t)){var r=e.experimentIdMap[t];if(r)return r}return n.log(b.ERROR,A.INVALID_EXPERIMENT_ID,H,t),null},ne=function(e,t,n){if(!e)return null;var r=v(e.flagVariationsMap[t],(function(e){return e.key===n}));return r||null},re=function(e,t,n){if(e.featureKeyMap.hasOwnProperty(t)){var r=e.featureKeyMap[t];if(r)return r}return n.log(b.ERROR,A.FEATURE_NOT_IN_DATAFILE,H,t),null},oe=function(e){return e.__datafileStr},ie=function(e){var t;try{t=function(e){if(!e)throw new Error(m(A.NO_DATAFILE_SPECIFIED,N));if("string"==typeof e)try{e=JSON.parse(e)}catch(e){throw new Error(m(A.INVALID_DATAFILE_MALFORMED,N))}if("object"==typeof e&&!Array.isArray(e)&&null!==e&&-1===L.indexOf(e.version))throw new Error(m(A.INVALID_DATAFILE_VERSION,N,e.version));return e}(e.datafile)}catch(e){return{configObj:null,error:e}}if(e.jsonSchemaValidator)try{e.jsonSchemaValidator.validate(t),e.logger.log(b.INFO,w.VALID_DATAFILE,H)}catch(e){return{configObj:null,error:e}}else e.logger.log(b.INFO,w.SKIPPING_JSON_VALIDATION,H);var n=[t];return"string"==typeof e.datafile&&n.push(e.datafile),{configObj:J.apply(void 0,n),error:null}},ae=function(e){return!!e.sendFlagDecisions},ue=o.getLogger();function se(e,t){return e instanceof Error?e.message:t||"Unknown error"}var ce=function(){function e(e){this.updateListeners=[],this.configObj=null,this.optimizelyConfigObj=null,this.datafileManager=null;try{if(this.jsonSchemaValidator=e.jsonSchemaValidator,!e.datafile&&!e.sdkKey){var t=new Error(m(A.DATAFILE_AND_SDK_KEY_MISSING,"PROJECT_CONFIG_MANAGER"));return this.readyPromise=Promise.resolve({success:!1,reason:se(t)}),void ue.error(t)}var n=null;e.datafile&&(n=this.handleNewDatafile(e.datafile)),e.sdkKey&&e.datafileManager?(this.datafileManager=e.datafileManager,this.datafileManager.start(),this.readyPromise=this.datafileManager.onReady().then(this.onDatafileManagerReadyFulfill.bind(this),this.onDatafileManagerReadyReject.bind(this)),this.datafileManager.on("update",this.onDatafileManagerUpdate.bind(this))):this.configObj?this.readyPromise=Promise.resolve({success:!0}):this.readyPromise=Promise.resolve({success:!1,reason:se(n,"Invalid datafile")})}catch(e){ue.error(e),this.readyPromise=Promise.resolve({success:!1,reason:se(e,"Error in initialize")})}}return e.prototype.onDatafileManagerReadyFulfill=function(){if(this.datafileManager){var e=this.handleNewDatafile(this.datafileManager.get());return e?{success:!1,reason:se(e)}:{success:!0}}return{success:!1,reason:se(null,"Datafile manager is not provided")}},e.prototype.onDatafileManagerReadyReject=function(e){return{success:!1,reason:se(e,"Failed to become ready")}},e.prototype.onDatafileManagerUpdate=function(){this.datafileManager&&this.handleNewDatafile(this.datafileManager.get())},e.prototype.handleNewDatafile=function(e){var t=ie({datafile:e,jsonSchemaValidator:this.jsonSchemaValidator,logger:ue}),n=t.configObj,r=t.error;if(r)ue.error(r);else{var o=this.configObj?this.configObj.revision:"null";n&&o!==n.revision&&(this.configObj=n,this.optimizelyConfigObj=null,this.updateListeners.forEach((function(e){return e(n)})))}return r},e.prototype.getConfig=function(){return this.configObj},e.prototype.getOptimizelyConfig=function(){var e,t;return!this.optimizelyConfigObj&&this.configObj&&(this.optimizelyConfigObj=(e=this.configObj,t=oe(this.configObj),new q(e,t))),this.optimizelyConfigObj},e.prototype.onReady=function(){return this.readyPromise},e.prototype.onUpdate=function(e){var t=this;return this.updateListeners.push(e),function(){var n=t.updateListeners.indexOf(e);n>-1&&t.updateListeners.splice(n,1)}},e.prototype.stop=function(){this.datafileManager&&this.datafileManager.stop(),this.updateListeners=[]},e}(),le=Math.pow(2,32),fe=function(e){var t=[],n=e.experimentIdMap[e.experimentId].groupId;if(n){var r=e.groupIdMap[n];if(!r)throw new Error(m(A.INVALID_GROUP_ID,"BUCKETER",n));if("random"===r.policy){var o=de(r,e.bucketingId,e.userId,e.logger);if(null===o)return e.logger.log(b.INFO,w.USER_NOT_IN_ANY_EXPERIMENT,"BUCKETER",e.userId,n),t.push([w.USER_NOT_IN_ANY_EXPERIMENT,"BUCKETER",e.userId,n]),{result:null,reasons:t};if(o!==e.experimentId)return e.logger.log(b.INFO,w.USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP,"BUCKETER",e.userId,e.experimentKey,n),t.push([w.USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP,"BUCKETER",e.userId,e.experimentKey,n]),{result:null,reasons:t};e.logger.log(b.INFO,w.USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP,"BUCKETER",e.userId,e.experimentKey,n),t.push([w.USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP,"BUCKETER",e.userId,e.experimentKey,n])}}var i=""+e.bucketingId+e.experimentId,a=he(i);e.logger.log(b.DEBUG,w.USER_ASSIGNED_TO_EXPERIMENT_BUCKET,"BUCKETER",a,e.userId),t.push([w.USER_ASSIGNED_TO_EXPERIMENT_BUCKET,"BUCKETER",a,e.userId]);var u=pe(a,e.trafficAllocationConfig);return null===u||e.variationIdMap[u]?{result:u,reasons:t}:(u&&(e.logger.log(b.WARNING,w.INVALID_VARIATION_ID,"BUCKETER"),t.push([w.INVALID_VARIATION_ID,"BUCKETER"])),{result:null,reasons:t})},de=function(e,t,n,r){var o=""+t+e.id,i=he(o);r.log(b.DEBUG,w.USER_ASSIGNED_TO_EXPERIMENT_BUCKET,"BUCKETER",i,n);var a=e.trafficAllocation;return pe(i,a)},pe=function(e,t){for(var n=0;n<t.length;n++)if(e<t[n].endOfRange)return t[n].entityId;return null},he=function(e){try{var t=u.v3(e,1)/le;return Math.floor(1e4*t)}catch(t){throw new Error(m(A.INVALID_BUCKETING_ID,"BUCKETER",e,t.message))}},ge=o.getLogger();function ve(e){return/^\d+$/.test(e)}function ye(e){var t=e.indexOf("-"),n=e.indexOf("+");return!(t<0)&&(n<0||t<n)}function me(e){var t=e.indexOf("-"),n=e.indexOf("+");return!(n<0)&&(t<0||n<t)}function Ee(e){var t=e,n="";if(function(e){return/\s/.test(e)}(e))return ge.warn(w.UNKNOWN_MATCH_TYPE,"SEMANTIC VERSION",e),null;if(ye(e)?(t=e.substring(0,e.indexOf("-")),n=e.substring(e.indexOf("-")+1)):me(e)&&(t=e.substring(0,e.indexOf("+")),n=e.substring(e.indexOf("+")+1)),"string"!=typeof t||"string"!=typeof n)return null;var r=t.split(".").length-1;if(r>2)return ge.warn(w.UNKNOWN_MATCH_TYPE,"SEMANTIC VERSION",e),null;var o=t.split(".");if(o.length!=r+1)return ge.warn(w.UNKNOWN_MATCH_TYPE,"SEMANTIC VERSION",e),null;for(var i=0,a=o;i<a.length;i++)if(!ve(a[i]))return ge.warn(w.UNKNOWN_MATCH_TYPE,"SEMANTIC VERSION",e),null;return n&&o.push(n),o}var _e="CUSTOM_ATTRIBUTE_CONDITION_EVALUATOR",be=o.getLogger(),Ae=["exact","exists","gt","ge","lt","le","substring","semver_eq","semver_lt","semver_le","semver_gt","semver_ge"],we={};function Ce(e){return"string"==typeof e||"boolean"==typeof e||_.isNumber(e)}function Te(e,t){var n=e.value,r=typeof n,o=e.name,i=t[o],a=typeof i;return!Ce(n)||_.isNumber(n)&&!_.isSafeInteger(n)?(be.warn(w.UNEXPECTED_CONDITION_VALUE,_e,JSON.stringify(e)),null):null===i?(be.debug(w.UNEXPECTED_TYPE_NULL,_e,JSON.stringify(e),o),null):Ce(i)&&r===a?_.isNumber(i)&&!_.isSafeInteger(i)?(be.warn(w.OUT_OF_BOUNDS,_e,JSON.stringify(e),o),null):n===i:(be.warn(w.UNEXPECTED_TYPE,_e,JSON.stringify(e),a,o),null)}function ke(e,t){var n=e.name,r=t[n],o=typeof r,i=e.value;return null!==i&&_.isSafeInteger(i)?null===r?(be.debug(w.UNEXPECTED_TYPE_NULL,_e,JSON.stringify(e),n),!1):_.isNumber(r)?!!_.isSafeInteger(r)||(be.warn(w.OUT_OF_BOUNDS,_e,JSON.stringify(e),n),!1):(be.warn(w.UNEXPECTED_TYPE,_e,JSON.stringify(e),o,n),!1):(be.warn(w.UNEXPECTED_CONDITION_VALUE,_e,JSON.stringify(e)),!1)}function Ie(e,t){var n=e.name,r=t[n],o=typeof r,i=e.value;return"string"!=typeof i?(be.warn(w.UNEXPECTED_CONDITION_VALUE,_e,JSON.stringify(e)),null):null===r?(be.debug(w.UNEXPECTED_TYPE_NULL,_e,JSON.stringify(e),n),null):"string"!=typeof r?(be.warn(w.UNEXPECTED_TYPE,_e,JSON.stringify(e),o,n),null):function(e,t){var n=Ee(t),r=Ee(e);if(!n||!r)return null;for(var o=n.length,i=0;i<r.length;i++){if(o<=i)return ye(e)||me(e)?1:-1;if(ve(n[i])){var a=parseInt(n[i]),u=parseInt(r[i]);if(a>u)return 1;if(a<u)return-1}else{if(n[i]<r[i])return ye(e)&&!ye(t)?1:-1;if(n[i]>r[i])return!ye(e)&&ye(t)?-1:1}}return ye(t)&&!ye(e)?-1:0}(i,r)}we.exact=Te,we.exists=function(e,t){return null!=t[e.name]},we.gt=function(e,t){var n=t[e.name],r=e.value;return ke(e,t)&&null!==r?n>r:null},we.ge=function(e,t){var n=t[e.name],r=e.value;return ke(e,t)&&null!==r?n>=r:null},we.lt=function(e,t){var n=t[e.name],r=e.value;return ke(e,t)&&null!==r?n<r:null},we.le=function(e,t){var n=t[e.name],r=e.value;return ke(e,t)&&null!==r?n<=r:null},we.substring=function(e,t){var n=e.name,r=t[e.name],o=typeof r,i=e.value;return"string"!=typeof i?(be.warn(w.UNEXPECTED_CONDITION_VALUE,_e,JSON.stringify(e)),null):null===r?(be.debug(w.UNEXPECTED_TYPE_NULL,_e,JSON.stringify(e),n),null):"string"!=typeof r?(be.warn(w.UNEXPECTED_TYPE,_e,JSON.stringify(e),o,n),null):-1!==r.indexOf(i)},we.semver_eq=function(e,t){var n=Ie(e,t);return null===n?null:0===n},we.semver_gt=function(e,t){var n=Ie(e,t);return null===n?null:n>0},we.semver_ge=function(e,t){var n=Ie(e,t);return null===n?null:n>=0},we.semver_lt=function(e,t){var n=Ie(e,t);return null===n?null:n<0},we.semver_le=function(e,t){var n=Ie(e,t);return null===n?null:n<=0};var De=Object.freeze({__proto__:null,evaluate:function(e,t){var n=e.match;if(void 0!==n&&-1===Ae.indexOf(n))return be.warn(w.UNKNOWN_MATCH_TYPE,_e,JSON.stringify(e)),null;var r=e.name;return t.hasOwnProperty(r)||"exists"==n?(n&&we[n]||Te)(e,t):(be.debug(w.MISSING_ATTRIBUTE_VALUE,_e,JSON.stringify(e),r),null)}}),Oe=o.getLogger(),Re=function(){function e(e){this.typeToEvaluatorMap=_.assign({},e,{custom_attribute:De})}return e.prototype.evaluate=function(e,t,n){var r=this;return void 0===n&&(n={}),!e||0===e.length||!!G(e,(function(e){var o=t[e];if(o){Oe.log(b.DEBUG,w.EVALUATING_AUDIENCE,"AUDIENCE_EVALUATOR",e,JSON.stringify(o.conditions));var i=G(o.conditions,r.evaluateConditionWithUserAttributes.bind(r,n)),a=null===i?"UNKNOWN":i.toString().toUpperCase();return Oe.log(b.DEBUG,w.AUDIENCE_EVALUATION_RESULT,"AUDIENCE_EVALUATOR",e,a),i}return null}))},e.prototype.evaluateConditionWithUserAttributes=function(e,t){var n=this.typeToEvaluatorMap[t.type];if(!n)return Oe.log(b.WARNING,w.UNKNOWN_CONDITION_TYPE,"AUDIENCE_EVALUATOR",JSON.stringify(t)),null;try{return n.evaluate(t,e)}catch(e){Oe.log(b.ERROR,A.CONDITION_EVALUATOR_ERROR,"AUDIENCE_EVALUATOR",t.type,e.message)}return null},e}();function Se(e){return"string"==typeof e&&""!==e}var Ne="DECISION_SERVICE",Le=function(){function e(e){var t;this.audienceEvaluator=(t=e.UNSTABLE_conditionEvaluators,new Re(t)),this.forcedVariationMap={},this.logger=e.logger,this.userProfileService=e.userProfileService||null}return e.prototype.getVariation=function(e,n,r,o){void 0===o&&(o={});var i=r.getUserId(),a=r.getAttributes(),u=this.getBucketingId(i,a),s=[],c=n.key;if(!this.checkIfExperimentIsActive(e,c))return this.logger.log(b.INFO,w.EXPERIMENT_NOT_RUNNING,Ne,c),s.push([w.EXPERIMENT_NOT_RUNNING,Ne,c]),{result:null,reasons:s};var l=this.getForcedVariation(e,c,i);s.push.apply(s,l.reasons);var f=l.result;if(f)return{result:f,reasons:s};var d=this.getWhitelistedVariation(n,i);s.push.apply(s,d.reasons);var p=d.result;if(p)return{result:p.key,reasons:s};var h=o[t.OptimizelyDecideOption.IGNORE_USER_PROFILE_SERVICE],g=this.resolveExperimentBucketMap(i,a);if(!h&&(p=this.getStoredVariation(e,n,i,g)))return this.logger.log(b.INFO,w.RETURNING_STORED_VARIATION,Ne,p.key,c,i),s.push([w.RETURNING_STORED_VARIATION,Ne,p.key,c,i]),{result:p.key,reasons:s};var v=this.checkIfUserIsInAudience(e,n,I.EXPERIMENT,a,"");if(s.push.apply(s,v.reasons),!v.result)return this.logger.log(b.INFO,w.USER_NOT_IN_EXPERIMENT,Ne,i,c),s.push([w.USER_NOT_IN_EXPERIMENT,Ne,i,c]),{result:null,reasons:s};var y=this.buildBucketerParams(e,n,u,i),m=fe(y);s.push.apply(s,m.reasons);var E=m.result;return E&&(p=e.variationIdMap[E]),p?(this.logger.log(b.INFO,w.USER_HAS_VARIATION,Ne,i,p.key,c),s.push([w.USER_HAS_VARIATION,Ne,i,p.key,c]),h||this.saveUserProfile(n,p,i,g),{result:p.key,reasons:s}):(this.logger.log(b.DEBUG,w.USER_HAS_NO_VARIATION,Ne,i,c),s.push([w.USER_HAS_NO_VARIATION,Ne,i,c]),{result:null,reasons:s})},e.prototype.resolveExperimentBucketMap=function(e,t){t=t||{};var n=this.getUserProfile(e)||{},r=t[C.STICKY_BUCKETING_KEY];return _.assign({},n.experiment_bucket_map,r)},e.prototype.checkIfExperimentIsActive=function(e,t){return function(e,t){return"Running"===X(e,t)}(e,t)},e.prototype.getWhitelistedVariation=function(e,t){var n=[];if(e.forcedVariations&&e.forcedVariations.hasOwnProperty(t)){var r=e.forcedVariations[t];return e.variationKeyMap.hasOwnProperty(r)?(this.logger.log(b.INFO,w.USER_FORCED_IN_VARIATION,Ne,t,r),n.push([w.USER_FORCED_IN_VARIATION,Ne,t,r]),{result:e.variationKeyMap[r],reasons:n}):(this.logger.log(b.ERROR,w.FORCED_BUCKETING_FAILED,Ne,r,t),n.push([w.FORCED_BUCKETING_FAILED,Ne,r,t]),{result:null,reasons:n})}return{result:null,reasons:n}},e.prototype.checkIfUserIsInAudience=function(e,t,n,r,o){var i=[],a=function(e,t){var n=e.experimentIdMap[t];if(!n)throw new Error(m(A.INVALID_EXPERIMENT_ID,H,t));return n.audienceConditions||n.audienceIds}(e,t.id),u=e.audiencesById;this.logger.log(b.DEBUG,w.EVALUATING_AUDIENCES_COMBINED,Ne,n,o||t.key,JSON.stringify(a)),i.push([w.EVALUATING_AUDIENCES_COMBINED,Ne,n,o||t.key,JSON.stringify(a)]);var s=this.audienceEvaluator.evaluate(a,u,r);return this.logger.log(b.INFO,w.AUDIENCE_EVALUATION_RESULT_COMBINED,Ne,n,o||t.key,s.toString().toUpperCase()),i.push([w.AUDIENCE_EVALUATION_RESULT_COMBINED,Ne,n,o||t.key,s.toString().toUpperCase()]),{result:s,reasons:i}},e.prototype.buildBucketerParams=function(e,t,n,r){return{bucketingId:n,experimentId:t.id,experimentKey:t.key,experimentIdMap:e.experimentIdMap,experimentKeyMap:e.experimentKeyMap,groupIdMap:e.groupIdMap,logger:this.logger,trafficAllocationConfig:ee(e,t.id),userId:r,variationIdMap:e.variationIdMap}},e.prototype.getStoredVariation=function(e,t,n,r){if(r.hasOwnProperty(t.id)){var o=r[t.id],i=o.variation_id;if(e.variationIdMap.hasOwnProperty(i))return e.variationIdMap[o.variation_id];this.logger.log(b.INFO,w.SAVED_VARIATION_NOT_FOUND,Ne,n,i,t.key)}return null},e.prototype.getUserProfile=function(e){var t={user_id:e,experiment_bucket_map:{}};if(!this.userProfileService)return t;try{return this.userProfileService.lookup(e)}catch(t){this.logger.log(b.ERROR,A.USER_PROFILE_LOOKUP_ERROR,Ne,e,t.message)}return null},e.prototype.saveUserProfile=function(e,t,n,r){if(this.userProfileService)try{r[e.id]={variation_id:t.id},this.userProfileService.save({user_id:n,experiment_bucket_map:r}),this.logger.log(b.INFO,w.SAVED_VARIATION,Ne,t.key,e.key,n)}catch(e){this.logger.log(b.ERROR,A.USER_PROFILE_SAVE_ERROR,Ne,n,e.message)}},e.prototype.getVariationForFeature=function(e,t,n,r){void 0===r&&(r={});var o=[],i=this.getVariationForFeatureExperiment(e,t,n,r);o.push.apply(o,i.reasons);var a=i.result;if(null!==a.variation)return{result:a,reasons:o};var u=this.getVariationForRollout(e,t,n);o.push.apply(o,u.reasons);var s=u.result,c=n.getUserId();return s.variation?(this.logger.log(b.DEBUG,w.USER_IN_ROLLOUT,Ne,c,t.key),o.push([w.USER_IN_ROLLOUT,Ne,c,t.key]),{result:s,reasons:o}):(this.logger.log(b.DEBUG,w.USER_NOT_IN_ROLLOUT,Ne,c,t.key),o.push([w.USER_NOT_IN_ROLLOUT,Ne,c,t.key]),{result:s,reasons:o})},e.prototype.getVariationForFeatureExperiment=function(e,t,n,r){void 0===r&&(r={});var o,i,a=[],u=null;if(t.experimentIds.length>0)for(i=0;i<t.experimentIds.length;i++){var s=te(e,t.experimentIds[i],this.logger);if(s&&(o=this.getVariationFromExperimentRule(e,t.key,s,n,r),a.push.apply(a,o.reasons),u=o.result)){var c=null;return(c=s.variationKeyMap[u])||(c=ne(e,t.key,u)),{result:{experiment:s,variation:c,decisionSource:k.FEATURE_TEST},reasons:a}}}else this.logger.log(b.DEBUG,w.FEATURE_HAS_NO_EXPERIMENTS,Ne,t.key),a.push([w.FEATURE_HAS_NO_EXPERIMENTS,Ne,t.key]);return{result:{experiment:null,variation:null,decisionSource:k.FEATURE_TEST},reasons:a}},e.prototype.getVariationForRollout=function(e,t,n){var r=[];if(!t.rolloutId)return this.logger.log(b.DEBUG,w.NO_ROLLOUT_EXISTS,Ne,t.key),r.push([w.NO_ROLLOUT_EXISTS,Ne,t.key]),{result:{experiment:null,variation:null,decisionSource:k.ROLLOUT},reasons:r};var o=e.rolloutIdMap[t.rolloutId];if(!o)return this.logger.log(b.ERROR,A.INVALID_ROLLOUT_ID,Ne,t.rolloutId,t.key),r.push([A.INVALID_ROLLOUT_ID,Ne,t.rolloutId,t.key]),{result:{experiment:null,variation:null,decisionSource:k.ROLLOUT},reasons:r};var i,a,u,s=o.experiments;if(0===s.length)return this.logger.log(b.ERROR,w.ROLLOUT_HAS_NO_EXPERIMENTS,Ne,t.rolloutId),r.push([w.ROLLOUT_HAS_NO_EXPERIMENTS,Ne,t.rolloutId]),{result:{experiment:null,variation:null,decisionSource:k.ROLLOUT},reasons:r};for(var c=0;c<s.length;){if(i=this.getVariationFromDeliveryRule(e,t.key,s,c,n),r.push.apply(r,i.reasons),u=i.result,a=i.skipToEveryoneElse,u)return{result:{experiment:e.experimentIdMap[s[c].id],variation:u,decisionSource:k.ROLLOUT},reasons:r};c=a?s.length-1:c+1}return{result:{experiment:null,variation:null,decisionSource:k.ROLLOUT},reasons:r}},e.prototype.getBucketingId=function(e,t){var n=e;return null!=t&&"object"==typeof t&&t.hasOwnProperty(C.BUCKETING_ID)&&("string"==typeof t[C.BUCKETING_ID]?(n=t[C.BUCKETING_ID],this.logger.log(b.DEBUG,w.VALID_BUCKETING_ID,Ne,n)):this.logger.log(b.WARNING,w.BUCKETING_ID_NOT_STRING,Ne)),n},e.prototype.findValidatedForcedDecision=function(e,t,n,r){var o,i=[],a=t.getForcedDecision({flagKey:n,ruleKey:r}),u=null,s=t.getUserId();return e&&a&&(o=a.variationKey,(u=ne(e,n,o))?r?(this.logger.log(b.INFO,w.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED,o,n,r,s),i.push([w.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED,o,n,r,s])):(this.logger.log(b.INFO,w.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED,o,n,s),i.push([w.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED,o,n,s])):r?(this.logger.log(b.INFO,w.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID,n,r,s),i.push([w.USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID,n,r,s])):(this.logger.log(b.INFO,w.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID,n,s),i.push([w.USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID,n,s]))),{result:u,reasons:i}},e.prototype.removeForcedVariation=function(e,t,n){if(!e)throw new Error(m(A.INVALID_USER_ID,Ne));if(!this.forcedVariationMap.hasOwnProperty(e))throw new Error(m(A.USER_NOT_IN_FORCED_VARIATION,Ne,e));delete this.forcedVariationMap[e][t],this.logger.log(b.DEBUG,w.VARIATION_REMOVED_FOR_USER,Ne,n,e)},e.prototype.setInForcedVariationMap=function(e,t,n){this.forcedVariationMap.hasOwnProperty(e)||(this.forcedVariationMap[e]={}),this.forcedVariationMap[e][t]=n,this.logger.log(b.DEBUG,w.USER_MAPPED_TO_FORCED_VARIATION,Ne,n,t,e)},e.prototype.getForcedVariation=function(e,t,n){var r,o=[],i=this.forcedVariationMap[n];if(!i)return this.logger.log(b.DEBUG,w.USER_HAS_NO_FORCED_VARIATION,Ne,n),{result:null,reasons:o};try{var a=$(e,t);if(!a.hasOwnProperty("id"))return this.logger.log(b.ERROR,A.IMPROPERLY_FORMATTED_EXPERIMENT,Ne,t),o.push([A.IMPROPERLY_FORMATTED_EXPERIMENT,Ne,t]),{result:null,reasons:o};r=a.id}catch(e){return this.logger.log(b.ERROR,e.message),o.push(e.message),{result:null,reasons:o}}var u=i[r];if(!u)return this.logger.log(b.DEBUG,w.USER_HAS_NO_FORCED_VARIATION_FOR_EXPERIMENT,Ne,t,n),{result:null,reasons:o};var s=Q(e,u);return s?(this.logger.log(b.DEBUG,w.USER_HAS_FORCED_VARIATION,Ne,s,t,n),o.push([w.USER_HAS_FORCED_VARIATION,Ne,s,t,n])):this.logger.log(b.DEBUG,w.USER_HAS_NO_FORCED_VARIATION_FOR_EXPERIMENT,Ne,t,n),{result:s,reasons:o}},e.prototype.setForcedVariation=function(e,t,n,r){if(null!=r&&!Se(r))return this.logger.log(b.ERROR,A.INVALID_VARIATION_KEY,Ne),!1;var o;try{var i=$(e,t);if(!i.hasOwnProperty("id"))return this.logger.log(b.ERROR,A.IMPROPERLY_FORMATTED_EXPERIMENT,Ne,t),!1;o=i.id}catch(e){return this.logger.log(b.ERROR,e.message),!1}if(null==r)try{return this.removeForcedVariation(n,o,t),!0}catch(e){return this.logger.log(b.ERROR,e.message),!1}var a=function(e,t,n){var r=e.experimentKeyMap[t];return r.variationKeyMap.hasOwnProperty(n)?r.variationKeyMap[n].id:null}(e,t,r);if(!a)return this.logger.log(b.ERROR,A.NO_VARIATION_FOR_EXPERIMENT_KEY,Ne,r,t),!1;try{return this.setInForcedVariationMap(n,o,a),!0}catch(e){return this.logger.log(b.ERROR,e.message),!1}},e.prototype.getVariationFromExperimentRule=function(e,t,n,r,o){void 0===o&&(o={});var i=[],a=this.findValidatedForcedDecision(e,r,t,n.key);i.push.apply(i,a.reasons);var u=a.result;if(u)return{result:u.key,reasons:i};var s=this.getVariation(e,n,r,o);return i.push.apply(i,s.reasons),{result:s.result,reasons:i}},e.prototype.getVariationFromDeliveryRule=function(e,t,n,r,o){var i=[],a=!1,u=n[r],s=this.findValidatedForcedDecision(e,o,t,u.key);i.push.apply(i,s.reasons);var c=s.result;if(c)return{result:c,reasons:i,skipToEveryoneElse:a};var l,f,d,p,h,g=o.getUserId(),v=o.getAttributes(),y=this.getBucketingId(g,v),m=r===n.length-1,E=m?"Everyone Else":r+1,_=null,A=this.checkIfUserIsInAudience(e,u,I.RULE,v,E);return i.push.apply(i,A.reasons),A.result?(this.logger.log(b.DEBUG,w.USER_MEETS_CONDITIONS_FOR_TARGETING_RULE,Ne,g,E),i.push([w.USER_MEETS_CONDITIONS_FOR_TARGETING_RULE,Ne,g,E]),f=this.buildBucketerParams(e,u,y,g),d=fe(f),i.push.apply(i,d.reasons),(l=d.result)&&(h=l,_=(p=e).variationIdMap.hasOwnProperty(h)?p.variationIdMap[h]:null),_?(this.logger.log(b.DEBUG,w.USER_BUCKETED_INTO_TARGETING_RULE,Ne,g,E),i.push([w.USER_BUCKETED_INTO_TARGETING_RULE,Ne,g,E])):m||(this.logger.log(b.DEBUG,w.USER_NOT_BUCKETED_INTO_TARGETING_RULE,Ne,g,E),i.push([w.USER_NOT_BUCKETED_INTO_TARGETING_RULE,Ne,g,E]),a=!0)):(this.logger.log(b.DEBUG,w.USER_DOESNT_MEET_CONDITIONS_FOR_TARGETING_RULE,Ne,g,E),i.push([w.USER_DOESNT_MEET_CONDITIONS_FOR_TARGETING_RULE,Ne,g,E])),{result:_,reasons:i,skipToEveryoneElse:a}},e}();function Ue(e,t){if(e.hasOwnProperty("revenue")){var n=e.revenue,r=void 0;return"string"==typeof n?(r=parseInt(n),isNaN(r)?(t.log(b.INFO,w.FAILED_TO_PARSE_REVENUE,"EVENT_TAG_UTILS",n),null):(t.log(b.INFO,w.PARSED_REVENUE_VALUE,"EVENT_TAG_UTILS",r),r)):"number"==typeof n?(r=n,t.log(b.INFO,w.PARSED_REVENUE_VALUE,"EVENT_TAG_UTILS",r),r):null}return null}function xe(e,t){if(e.hasOwnProperty("value")){var n=e.value,r=void 0;return"string"==typeof n?(r=parseFloat(n),isNaN(r)?(t.log(b.INFO,w.FAILED_TO_PARSE_VALUE,"EVENT_TAG_UTILS",n),null):(t.log(b.INFO,w.PARSED_NUMERIC_VALUE,"EVENT_TAG_UTILS",r),r)):"number"==typeof n?(r=n,t.log(b.INFO,w.PARSED_NUMERIC_VALUE,"EVENT_TAG_UTILS",r),r):null}return null}function Pe(e,t){return"string"==typeof e&&("string"==typeof t||"boolean"==typeof t||_.isNumber(t)&&_.isSafeInteger(t))}var Fe="https://logx.optimizely.com/v1/events";function Me(e){var t=e.attributes,n=e.userId,r=e.clientEngine,o=e.clientVersion,i=e.configObj,a=e.logger,u=!!i.anonymizeIP&&i.anonymizeIP,s=i.botFiltering,c={snapshots:[],visitor_id:n,attributes:[]},l={account_id:i.accountId,project_id:i.projectId,visitors:[c],revision:i.revision,client_name:r,client_version:o,anonymize_ip:u,enrich_decisions:!0};return t&&Object.keys(t||{}).forEach((function(e){if(Pe(e,t[e])){var n=Y(i,e,a);n&&l.visitors[0].attributes.push({entity_id:n,key:e,type:"custom",value:t[e]})}})),"boolean"==typeof s&&l.visitors[0].attributes.push({entity_id:C.BOT_FILTERING,key:C.BOT_FILTERING,type:"custom",value:s}),l}function Be(e){var t,n;return null!==(n=null===(t=e.experiment)||void 0===t?void 0:t.key)&&void 0!==n?n:""}function Ve(e){var t,n;return null!==(n=null===(t=e.variation)||void 0===t?void 0:t.key)&&void 0!==n?n:""}function je(e){var t,n;return null!==(n=null===(t=e.variation)||void 0===t?void 0:t.featureEnabled)&&void 0!==n&&n}function ze(e){var t,n;return null!==(n=null===(t=e.experiment)||void 0===t?void 0:t.id)&&void 0!==n?n:null}function Ke(e){var t,n;return null!==(n=null===(t=e.variation)||void 0===t?void 0:t.id)&&void 0!==n?n:null}var Ge=o.getLogger("EVENT_BUILDER");function qe(e,t){var n=[];return t&&Object.keys(t||{}).forEach((function(r){if(Pe(r,t[r])){var o=Y(e,r,Ge);o&&n.push({entityId:o,key:r,value:t[r]})}})),n}var He="USER_PROFILE_SERVICE_VALIDATOR",Je=function(){function e(e){var n,r=this,o=e.clientEngine;o||(e.logger.log(b.INFO,w.INVALID_CLIENT_ENGINE,"OPTIMIZELY",o),o="node-sdk"),this.clientEngine=o,this.clientVersion=e.clientVersion||"4.9.2",this.errorHandler=e.errorHandler,this.isOptimizelyConfigValid=e.isValidInstance,this.logger=e.logger;var i=null!==(n=e.defaultDecideOptions)&&void 0!==n?n:[];Array.isArray(i)||(this.logger.log(b.DEBUG,w.INVALID_DEFAULT_DECIDE_OPTIONS,"OPTIMIZELY"),i=[]);var a={};i.forEach((function(e){t.OptimizelyDecideOption[e]?a[e]=!0:r.logger.log(b.WARNING,w.UNRECOGNIZED_DECIDE_OPTION,"OPTIMIZELY",e)})),this.defaultDecideOptions=a,this.projectConfigManager=function(e){return new ce(e)}({datafile:e.datafile,jsonSchemaValidator:e.jsonSchemaValidator,sdkKey:e.sdkKey,datafileManager:e.datafileManager}),this.disposeOnUpdate=this.projectConfigManager.onUpdate((function(e){r.logger.log(b.INFO,w.UPDATED_OPTIMIZELY_CONFIG,"OPTIMIZELY",e.revision,e.projectId),r.notificationCenter.sendNotifications(E.OPTIMIZELY_CONFIG_UPDATE)}));var u,s=this.projectConfigManager.onReady(),c=null;if(e.userProfileService)try{(function(e){if("object"==typeof e&&null!==e){if("function"!=typeof e.lookup)throw new Error(m(A.INVALID_USER_PROFILE_SERVICE,He,"Missing function 'lookup'"));if("function"!=typeof e.save)throw new Error(m(A.INVALID_USER_PROFILE_SERVICE,He,"Missing function 'save'"));return!0}throw new Error(m(A.INVALID_USER_PROFILE_SERVICE,He))})(e.userProfileService)&&(c=e.userProfileService,this.logger.log(b.INFO,w.VALID_USER_PROFILE_SERVICE,"OPTIMIZELY"))}catch(e){this.logger.log(b.WARNING,e.message)}this.decisionService=(u={userProfileService:c,logger:this.logger,UNSTABLE_conditionEvaluators:e.UNSTABLE_conditionEvaluators},new Le(u)),this.notificationCenter=e.notificationCenter,this.eventProcessor=e.eventProcessor;var l=this.eventProcessor.start();this.readyPromise=Promise.all([s,l]).then((function(e){return e[0]})),this.readyTimeouts={},this.nextReadyTimeoutId=0}return e.prototype.isValidInstance=function(){return this.isOptimizelyConfigValid&&!!this.projectConfigManager.getConfig()},e.prototype.activate=function(e,t,n){try{if(!this.isValidInstance())return this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","activate"),null;if(!this.validateInputs({experiment_key:e,user_id:t},n))return this.notActivatingExperiment(e,t);var r=this.projectConfigManager.getConfig();if(!r)return null;try{var o=this.getVariation(e,t,n);if(null===o)return this.notActivatingExperiment(e,t);if(!function(e,t){return"Running"===X(e,t)}(r,e))return this.logger.log(b.DEBUG,w.SHOULD_NOT_DISPATCH_ACTIVATE,"OPTIMIZELY",e),o;var i=$(r,e),a={experiment:i,variation:i.variationKeyMap[o],decisionSource:k.EXPERIMENT};return this.sendImpressionEvent(a,"",t,!0,n),o}catch(n){return this.logger.log(b.ERROR,n.message),this.logger.log(b.INFO,w.NOT_ACTIVATING_USER,"OPTIMIZELY",t,e),this.errorHandler.handleError(n),null}}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.sendImpressionEvent=function(e,t,n,r,o){var i=this.projectConfigManager.getConfig();if(i){var a=function(e){var t=e.configObj,n=e.decisionObj,r=e.userId,o=e.flagKey,i=e.enabled,a=e.userAttributes,u=e.clientEngine,s=e.clientVersion,c=n.decisionSource,l=Be(n),f=ze(n),d=Ve(n),p=Ke(n),h=null!==f?W(t,f):null;return{type:"impression",timestamp:_.currentTimestamp(),uuid:_.uuid(),user:{id:r,attributes:qe(t,a)},context:{accountId:t.accountId,projectId:t.projectId,revision:t.revision,clientName:u,clientVersion:s,anonymizeIP:t.anonymizeIP||!1,botFiltering:t.botFiltering},layer:{id:h},experiment:{id:f,key:l},variation:{id:p,key:d},ruleKey:l,flagKey:o,ruleType:c,enabled:i}}({decisionObj:e,flagKey:t,enabled:r,userId:n,userAttributes:o,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:i});this.eventProcessor.process(a),this.emitNotificationCenterActivate(e,t,n,r,o)}},e.prototype.emitNotificationCenterActivate=function(e,t,n,r,o){var i=this.projectConfigManager.getConfig();if(i){var a,u=e.decisionSource,s=Be(e),c=ze(e),l=Ve(e),f=Ke(e);null!==c&&""!==l&&(a=i.experimentIdMap[c]);var d,p=function(e){var t,n,r,o,i,a,u,s,c=Me(e),l=(t=e.configObj,r=e.variationId,o=e.ruleKey,i=e.ruleType,a=e.flagKey,u=e.enabled,{decisions:[{campaign_id:s=(n=e.experimentId)?W(t,n):null,experiment_id:n,variation_id:r,metadata:{flag_key:a,rule_key:o,rule_type:i,variation_key:(r?Q(t,r):null)||"",enabled:u}}],events:[{entity_id:s,timestamp:_.currentTimestamp(),key:"campaign_activated",uuid:_.uuid()}]});return c.visitors[0].snapshots.push(l),{httpVerb:"POST",url:Fe,params:c}}({attributes:o,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:i,experimentId:c,ruleKey:s,flagKey:t,ruleType:u,userId:n,enabled:r,variationId:f,logger:this.logger});a&&a.variationKeyMap&&""!==l&&(d=a.variationKeyMap[l]),this.notificationCenter.sendNotifications(E.ACTIVATE,{experiment:a,userId:n,attributes:o,variation:d,logEvent:p})}},e.prototype.track=function(e,t,n,r){try{if(!this.isValidInstance())return void this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","track");if(!this.validateInputs({user_id:t,event_key:e},n,r))return;var o=this.projectConfigManager.getConfig();if(!o)return;if(!function(e,t){return e.eventKeyMap.hasOwnProperty(t)}(o,e))return this.logger.log(b.WARNING,w.EVENT_KEY_NOT_FOUND,"OPTIMIZELY",e),void this.logger.log(b.WARNING,w.NOT_TRACKING_USER,"OPTIMIZELY",t);var i=function(e){var t=e.configObj,n=e.userId,r=e.userAttributes,o=e.clientEngine,i=e.clientVersion,a=e.eventKey,u=e.eventTags,s=Z(t,a),c=u?Ue(u,Ge):null,l=u?xe(u,Ge):null;return{type:"conversion",timestamp:_.currentTimestamp(),uuid:_.uuid(),user:{id:n,attributes:qe(t,r)},context:{accountId:t.accountId,projectId:t.projectId,revision:t.revision,clientName:o,clientVersion:i,anonymizeIP:t.anonymizeIP||!1,botFiltering:t.botFiltering},event:{id:s,key:a},revenue:c,value:l,tags:u}}({eventKey:e,eventTags:r=this.filterEmptyValues(r),userId:t,userAttributes:n,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:o});this.logger.log(b.INFO,w.TRACK_EVENT,"OPTIMIZELY",e,t),this.eventProcessor.process(i),this.emitNotificationCenterTrack(e,t,n,r)}catch(e){this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),this.logger.log(b.ERROR,w.NOT_TRACKING_USER,"OPTIMIZELY",t)}},e.prototype.emitNotificationCenterTrack=function(e,t,n,r){try{var o=this.projectConfigManager.getConfig();if(!o)return;var i=function(e){var t=Me(e),n=function(e,t,n,r){var o={events:[]},i={entity_id:Z(e,t),timestamp:_.currentTimestamp(),uuid:_.uuid(),key:t};if(r){var a=Ue(r,n);null!==a&&(i.revenue=a);var u=xe(r,n);null!==u&&(i.value=u),i.tags=r}return o.events.push(i),o}(e.configObj,e.eventKey,e.logger,e.eventTags);return t.visitors[0].snapshots=[n],{httpVerb:"POST",url:Fe,params:t}}({attributes:n,clientEngine:this.clientEngine,clientVersion:this.clientVersion,configObj:o,eventKey:e,eventTags:r,logger:this.logger,userId:t});this.notificationCenter.sendNotifications(E.TRACK,{eventKey:e,userId:t,attributes:n,eventTags:r,logEvent:i})}catch(e){this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e)}},e.prototype.getVariation=function(e,t,n){try{if(!this.isValidInstance())return this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","getVariation"),null;try{if(!this.validateInputs({experiment_key:e,user_id:t},n))return null;var r=this.projectConfigManager.getConfig();if(!r)return null;var o=r.experimentKeyMap[e];if(!o)return this.logger.log(b.DEBUG,A.INVALID_EXPERIMENT_KEY,"OPTIMIZELY",e),null;var i=this.decisionService.getVariation(r,o,this.createUserContext(t,n)).result,a=(u=r,s=o.id,u.experimentFeatureMap.hasOwnProperty(s)?T.FEATURE_TEST:T.AB_TEST);return this.notificationCenter.sendNotifications(E.DECISION,{type:a,userId:t,attributes:n||{},decisionInfo:{experimentKey:e,variationKey:i}}),i}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}var u,s},e.prototype.setForcedVariation=function(e,t,n){if(!this.validateInputs({experiment_key:e,user_id:t}))return!1;var r=this.projectConfigManager.getConfig();if(!r)return!1;try{return this.decisionService.setForcedVariation(r,e,t,n)}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),!1}},e.prototype.getForcedVariation=function(e,t){if(!this.validateInputs({experiment_key:e,user_id:t}))return null;var n=this.projectConfigManager.getConfig();if(!n)return null;try{return this.decisionService.getForcedVariation(n,e,t).result}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.validateInputs=function(e,t,n){try{if(e.hasOwnProperty("user_id")){var r=e.user_id;if("string"!=typeof r||null===r||"undefined"===r)throw new Error(m(A.INVALID_INPUT_FORMAT,"OPTIMIZELY","user_id"));delete e.user_id}return Object.keys(e).forEach((function(t){if(!Se(e[t]))throw new Error(m(A.INVALID_INPUT_FORMAT,"OPTIMIZELY",t))})),t&&function(e){if("object"!=typeof e||Array.isArray(e)||null===e)throw new Error(m(A.INVALID_ATTRIBUTES,"ATTRIBUTES_VALIDATOR"));Object.keys(e).forEach((function(t){if(void 0===e[t])throw new Error(m(A.UNDEFINED_ATTRIBUTE,"ATTRIBUTES_VALIDATOR",t))}))}(t),n&&function(e){if("object"!=typeof e||Array.isArray(e)||null===e)throw new Error(m(A.INVALID_EVENT_TAGS,"EVENT_TAGS_VALIDATOR"))}(n),!0}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),!1}},e.prototype.notActivatingExperiment=function(e,t){return this.logger.log(b.INFO,w.NOT_ACTIVATING_USER,"OPTIMIZELY",t,e),null},e.prototype.filterEmptyValues=function(e){for(var t in e)!e.hasOwnProperty(t)||null!==e[t]&&void 0!==e[t]||delete e[t];return e},e.prototype.isFeatureEnabled=function(e,t,n){try{if(!this.isValidInstance())return this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","isFeatureEnabled"),!1;if(!this.validateInputs({feature_key:e,user_id:t},n))return!1;var r=this.projectConfigManager.getConfig();if(!r)return!1;var o=re(r,e,this.logger);if(!o)return!1;var i={},a=this.createUserContext(t,n),u=this.decisionService.getVariationForFeature(r,o,a).result,s=u.decisionSource,c=Be(u),l=Ve(u),f=je(u);s===k.FEATURE_TEST&&(i={experimentKey:c,variationKey:l}),(s===k.FEATURE_TEST||s===k.ROLLOUT&&ae(r))&&this.sendImpressionEvent(u,o.key,t,f,n),!0===f?this.logger.log(b.INFO,w.FEATURE_ENABLED_FOR_USER,"OPTIMIZELY",e,t):(this.logger.log(b.INFO,w.FEATURE_NOT_ENABLED_FOR_USER,"OPTIMIZELY",e,t),f=!1);var d={featureKey:e,featureEnabled:f,source:u.decisionSource,sourceInfo:i};return this.notificationCenter.sendNotifications(E.DECISION,{type:T.FEATURE,userId:t,attributes:n||{},decisionInfo:d}),f}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),!1}},e.prototype.getEnabledFeatures=function(e,t){var n=this;try{var r=[];if(!this.isValidInstance())return this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","getEnabledFeatures"),r;if(!this.validateInputs({user_id:e}))return r;var o=this.projectConfigManager.getConfig();return o?(h(o.featureKeyMap).forEach((function(o){n.isFeatureEnabled(o.key,e,t)&&r.push(o.key)})),r):r}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),[]}},e.prototype.getFeatureVariable=function(e,t,n,r){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,null,n,r):(this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariable"),null)}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableForType=function(e,t,n,r,o){if(!this.validateInputs({feature_key:e,variable_key:t,user_id:r},o))return null;var i=this.projectConfigManager.getConfig();if(!i)return null;var a=re(i,e,this.logger);if(!a)return null;var u=function(e,t,n,r){var o=e.featureKeyMap[t];return o?o.variableKeyMap[n]||(r.log(b.ERROR,A.VARIABLE_KEY_NOT_IN_DATAFILE,H,n,t),null):(r.log(b.ERROR,A.FEATURE_NOT_IN_DATAFILE,H,t),null)}(i,e,t,this.logger);if(!u)return null;if(n&&u.type!==n)return this.logger.log(b.WARNING,w.VARIABLE_REQUESTED_WITH_WRONG_TYPE,"OPTIMIZELY",n,u.type),null;var s=this.createUserContext(r,o),c=this.decisionService.getVariationForFeature(i,a,s).result,l=je(c),f=this.getFeatureVariableValueFromVariation(e,l,c.variation,u,r),d={};return c.decisionSource===k.FEATURE_TEST&&null!==c.experiment&&null!==c.variation&&(d={experimentKey:c.experiment.key,variationKey:c.variation.key}),this.notificationCenter.sendNotifications(E.DECISION,{type:T.FEATURE_VARIABLE,userId:r,attributes:o||{},decisionInfo:{featureKey:e,featureEnabled:l,source:c.decisionSource,variableKey:t,variableValue:f,variableType:u.type,sourceInfo:d}}),f},e.prototype.getFeatureVariableValueFromVariation=function(e,t,n,r,o){var i=this.projectConfigManager.getConfig();if(!i)return null;var a=r.defaultValue;if(null!==n){var u=function(e,t,n,r){if(!t||!n)return null;if(!e.variationVariableUsageMap.hasOwnProperty(n.id))return r.log(b.ERROR,A.VARIATION_ID_NOT_IN_DATAFILE_NO_EXPERIMENT,H,n.id),null;var o=e.variationVariableUsageMap[n.id][t.id];return o?o.value:null}(i,r,n,this.logger);null!==u?t?(a=u,this.logger.log(b.INFO,w.USER_RECEIVED_VARIABLE_VALUE,"OPTIMIZELY",a,r.key,e)):this.logger.log(b.INFO,w.FEATURE_NOT_ENABLED_RETURN_DEFAULT_VARIABLE_VALUE,"OPTIMIZELY",e,o,a):this.logger.log(b.INFO,w.VARIABLE_NOT_USED_RETURN_DEFAULT_VARIABLE_VALUE,"OPTIMIZELY",r.key,n.key)}else this.logger.log(b.INFO,w.USER_RECEIVED_DEFAULT_VARIABLE_VALUE,"OPTIMIZELY",o,r.key,e);return function(e,t,n){var r;switch(t){case D.BOOLEAN:"true"!==e&&"false"!==e?(n.log(b.ERROR,A.UNABLE_TO_CAST_VALUE,H,e,t),r=null):r="true"===e;break;case D.INTEGER:r=parseInt(e,10),isNaN(r)&&(n.log(b.ERROR,A.UNABLE_TO_CAST_VALUE,H,e,t),r=null);break;case D.DOUBLE:r=parseFloat(e),isNaN(r)&&(n.log(b.ERROR,A.UNABLE_TO_CAST_VALUE,H,e,t),r=null);break;case D.JSON:try{r=JSON.parse(e)}catch(o){n.log(b.ERROR,A.UNABLE_TO_CAST_VALUE,H,e,t),r=null}break;default:r=e}return r}(a,r.type,this.logger)},e.prototype.getFeatureVariableBoolean=function(e,t,n,r){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,D.BOOLEAN,n,r):(this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableBoolean"),null)}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableDouble=function(e,t,n,r){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,D.DOUBLE,n,r):(this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableDouble"),null)}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableInteger=function(e,t,n,r){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,D.INTEGER,n,r):(this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableInteger"),null)}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableString=function(e,t,n,r){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,D.STRING,n,r):(this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableString"),null)}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getFeatureVariableJSON=function(e,t,n,r){try{return this.isValidInstance()?this.getFeatureVariableForType(e,t,D.JSON,n,r):(this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","getFeatureVariableJSON"),null)}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getAllFeatureVariables=function(e,t,n){var r=this;try{if(!this.isValidInstance())return this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","getAllFeatureVariables"),null;if(!this.validateInputs({feature_key:e,user_id:t},n))return null;var o=this.projectConfigManager.getConfig();if(!o)return null;var i=re(o,e,this.logger);if(!i)return null;var a=this.createUserContext(t,n),u=this.decisionService.getVariationForFeature(o,i,a).result,s=je(u),c={};i.variables.forEach((function(n){c[n.key]=r.getFeatureVariableValueFromVariation(e,s,u.variation,n,t)}));var l={};return u.decisionSource===k.FEATURE_TEST&&null!==u.experiment&&null!==u.variation&&(l={experimentKey:u.experiment.key,variationKey:u.variation.key}),this.notificationCenter.sendNotifications(E.DECISION,{type:T.ALL_FEATURE_VARIABLES,userId:t,attributes:n||{},decisionInfo:{featureKey:e,featureEnabled:s,source:u.decisionSource,variableValues:c,sourceInfo:l}}),c}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.getOptimizelyConfig=function(){try{return this.projectConfigManager.getConfig()?this.projectConfigManager.getOptimizelyConfig():null}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),null}},e.prototype.close=function(){var e=this;try{var t=this.eventProcessor.stop();return this.disposeOnUpdate&&(this.disposeOnUpdate(),this.disposeOnUpdate=null),this.projectConfigManager&&this.projectConfigManager.stop(),Object.keys(this.readyTimeouts).forEach((function(t){var n=e.readyTimeouts[t];clearTimeout(n.readyTimeout),n.onClose()})),this.readyTimeouts={},t.then((function(){return{success:!0}}),(function(e){return{success:!1,reason:String(e)}}))}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),Promise.resolve({success:!1,reason:String(e)})}},e.prototype.onReady=function(e){var t,n,r=this;"object"==typeof e&&null!==e&&void 0!==e.timeout&&(t=e.timeout),_.isSafeInteger(t)||(t=3e4);var o=new Promise((function(e){n=e})),i=this.nextReadyTimeoutId;this.nextReadyTimeoutId++;var a=setTimeout((function(){delete r.readyTimeouts[i],n({success:!1,reason:m("onReady timeout expired after %s ms",t)})}),t);return this.readyTimeouts[i]={readyTimeout:a,onClose:function(){n({success:!1,reason:"Instance closed"})}},this.readyPromise.then((function(){clearTimeout(a),delete r.readyTimeouts[i],n({success:!0})})),Promise.race([this.readyPromise,o])},e.prototype.createUserContext=function(e,t){return this.validateInputs({user_id:e},t)?new z({optimizely:this,userId:e,attributes:t}):null},e.prototype.decide=function(e,n,r){var o,i,a,u,s=this;void 0===r&&(r=[]);var c,f=e.getUserId(),d=e.getAttributes(),p=this.projectConfigManager.getConfig(),h=[];if(!this.isValidInstance()||!p)return this.logger.log(b.INFO,w.INVALID_OBJECT,"OPTIMIZELY","decide"),j(n,e,[R.SDK_NOT_READY]);var g=p.featureKeyMap[n];if(!g)return this.logger.log(b.ERROR,A.FEATURE_NOT_IN_DATAFILE,"OPTIMIZELY",n),j(n,e,[m(R.FLAG_KEY_INVALID,n)]);var v=this.getAllDecideOptions(r),y=this.decisionService.findValidatedForcedDecision(p,e,n);h.push.apply(h,y.reasons);var _=y.result;if(_)c={experiment:null,variation:_,decisionSource:k.FEATURE_TEST};else{var C=this.decisionService.getVariationForFeature(p,g,e,v);h.push.apply(h,C.reasons),c=C.result}var I=c.decisionSource,D=null!==(i=null===(o=c.experiment)||void 0===o?void 0:o.key)&&void 0!==i?i:null,O=null!==(u=null===(a=c.variation)||void 0===a?void 0:a.key)&&void 0!==u?u:null,S=je(c);!0===S?this.logger.log(b.INFO,w.FEATURE_ENABLED_FOR_USER,"OPTIMIZELY",n,f):this.logger.log(b.INFO,w.FEATURE_NOT_ENABLED_FOR_USER,"OPTIMIZELY",n,f);var N={},L=!1;v[t.OptimizelyDecideOption.EXCLUDE_VARIABLES]||g.variables.forEach((function(e){N[e.key]=s.getFeatureVariableValueFromVariation(n,S,c.variation,e,f)})),!v[t.OptimizelyDecideOption.DISABLE_DECISION_EVENT]&&(I===k.FEATURE_TEST||I===k.ROLLOUT&&ae(p))&&(this.sendImpressionEvent(c,n,f,S,d),L=!0);var U=[];v[t.OptimizelyDecideOption.INCLUDE_REASONS]&&(U=h.map((function(e){return m.apply(void 0,l([e[0]],e.slice(1)))})));var x={flagKey:n,enabled:S,variationKey:O,ruleKey:D,variables:N,reasons:U,decisionEventDispatched:L};return this.notificationCenter.sendNotifications(E.DECISION,{type:T.FLAG,userId:f,attributes:d,decisionInfo:x}),{variationKey:O,enabled:S,variables:N,ruleKey:D,flagKey:n,userContext:e,reasons:U}},e.prototype.getAllDecideOptions=function(e){var n=this,r=c({},this.defaultDecideOptions);return Array.isArray(e)?e.forEach((function(e){t.OptimizelyDecideOption[e]?r[e]=!0:n.logger.log(b.WARNING,w.UNRECOGNIZED_DECIDE_OPTION,"OPTIMIZELY",e)})):this.logger.log(b.DEBUG,w.INVALID_DECIDE_OPTIONS,"OPTIMIZELY"),r},e.prototype.decideForKeys=function(e,n,r){var o=this;void 0===r&&(r=[]);var i={};if(!this.isValidInstance())return this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","decideForKeys"),i;if(0===n.length)return i;var a=this.getAllDecideOptions(r);return n.forEach((function(n){var u=o.decide(e,n,r);a[t.OptimizelyDecideOption.ENABLED_FLAGS_ONLY]&&!u.enabled||(i[n]=u)})),i},e.prototype.decideAll=function(e,t){void 0===t&&(t=[]);var n=this.projectConfigManager.getConfig();if(!this.isValidInstance()||!n)return this.logger.log(b.ERROR,w.INVALID_OBJECT,"OPTIMIZELY","decideAll"),{};var r=Object.keys(n.featureKeyMap);return this.decideForKeys(e,r,t)},e}(),We=function(){function e(e){var t=this;this.logger=e.logger,this.errorHandler=e.errorHandler,this.notificationListeners={},h(E).forEach((function(e){t.notificationListeners[e]=[]})),this.listenerId=1}return e.prototype.addNotificationListener=function(e,t){try{if(!(h(E).indexOf(e)>-1))return-1;this.notificationListeners[e]||(this.notificationListeners[e]=[]);var n=!1;if((this.notificationListeners[e]||[]).forEach((function(e){e.callback!==t||(n=!0)})),n)return-1;this.notificationListeners[e].push({id:this.listenerId,callback:t});var r=this.listenerId;return this.listenerId+=1,r}catch(e){return this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e),-1}},e.prototype.removeNotificationListener=function(e){var t=this;try{var n,r;if(Object.keys(this.notificationListeners).some((function(o){return(t.notificationListeners[o]||[]).every((function(t,i){return t.id!==e||(n=i,r=o,!1)})),void 0!==n&&void 0!==r})),void 0!==n&&void 0!==r)return this.notificationListeners[r].splice(n,1),!0}catch(e){this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e)}return!1},e.prototype.clearAllNotificationListeners=function(){var e=this;try{h(E).forEach((function(t){e.notificationListeners[t]=[]}))}catch(e){this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e)}},e.prototype.clearNotificationListeners=function(e){try{this.notificationListeners[e]=[]}catch(e){this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e)}},e.prototype.sendNotifications=function(e,t){var n=this;try{(this.notificationListeners[e]||[]).forEach((function(r){var o=r.callback;try{o(t)}catch(t){n.logger.log(b.ERROR,w.NOTIFICATION_LISTENER_EXCEPTION,"NOTIFICATION_CENTER",e,t.message)}}))}catch(e){this.logger.log(b.ERROR,e.message),this.errorHandler.handleError(e)}},e}(),Ye=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(i.LogTierV1EventProcessor.bind.apply(i.LogTierV1EventProcessor,l([void 0],e)))};function Ze(e,t,n,r){var o={sdkKey:e};if((void 0===r||"object"==typeof r&&null!==r)&&_.assign(o,r),n){var i=ie({datafile:n,jsonSchemaValidator:void 0,logger:t}),a=i.configObj,u=i.error;u&&t.error(u),a&&(o.datafile=oe(a))}return new s.HttpPollingDatafileManager(o)}i.LocalStoragePendingEventsDispatcher;var Xe=o.getLogger();o.setLogHandler(F()),o.setLogLevel(o.LogLevel.INFO);var Qe=!1,$e=function(e){try{var t=!1;e.errorHandler&&o.setErrorHandler(e.errorHandler),e.logger&&(o.setLogHandler(e.logger),o.setLogLevel(o.LogLevel.NOTSET)),void 0!==e.logLevel&&o.setLogLevel(e.logLevel);try{(function(e){if("object"==typeof e&&null!==e){var t=e,n=t.errorHandler,r=t.eventDispatcher,o=t.logger;if(n&&"function"!=typeof n.handleError)throw new Error(m(A.INVALID_ERROR_HANDLER,N));if(r&&"function"!=typeof r.dispatchEvent)throw new Error(m(A.INVALID_EVENT_DISPATCHER,N));if(o&&"function"!=typeof o.log)throw new Error(m(A.INVALID_LOGGER,N));return!0}throw new Error(m(A.INVALID_CONFIG,N))})(e),t=!0}catch(e){Xe.error(e)}var n=void 0;null==e.eventDispatcher?(n=new i.LocalStoragePendingEventsDispatcher({eventDispatcher:x}),Qe||(n.sendPendingEvents(),Qe=!0)):n=e.eventDispatcher;var r=e.eventBatchSize,a=e.eventFlushInterval;(function(e){return!("number"!=typeof e||!_.isSafeInteger(e))&&e>=1})(e.eventBatchSize)||(Xe.warn("Invalid eventBatchSize %s, defaulting to %s",e.eventBatchSize,10),r=10),function(e){return!("number"!=typeof e||!_.isSafeInteger(e))&&e>0}(e.eventFlushInterval)||(Xe.warn("Invalid eventFlushInterval %s, defaulting to %s",e.eventFlushInterval,1e3),a=1e3);var u=o.getErrorHandler(),s=new We({logger:Xe,errorHandler:u}),l={dispatcher:n,flushInterval:a,batchSize:r,maxQueueSize:e.eventMaxQueueSize||1e4,notificationCenter:s},f=c(c({clientEngine:"javascript-sdk"},e),{eventProcessor:Ye(l),logger:Xe,errorHandler:u,datafileManager:e.sdkKey?Ze(e.sdkKey,Xe,e.datafile,e.datafileOptions):void 0,notificationCenter:s,isValidInstance:t}),d=new Je(f);try{if("function"==typeof window.addEventListener){var p="onpagehide"in window?"pagehide":"unload";window.addEventListener(p,(function(){d.close()}),!1)}}catch(e){Xe.error(w.UNABLE_TO_ATTACH_UNLOAD,"INDEX_BROWSER",e.message)}return d}catch(e){return Xe.error(e),null}},et=function(){Qe=!1},tt={logging:V,errorHandler:U,eventDispatcher:x,enums:S,setLogger:o.setLogHandler,setLogLevel:o.setLogLevel,createInstance:$e,__internalResetRetryState:et,OptimizelyDecideOption:t.OptimizelyDecideOption};Object.defineProperty(t,"setLogLevel",{enumerable:!0,get:function(){return o.setLogLevel}}),Object.defineProperty(t,"setLogger",{enumerable:!0,get:function(){return o.setLogHandler}}),t.__internalResetRetryState=et,t.createInstance=$e,t.default=tt,t.enums=S,t.errorHandler=U,t.eventDispatcher=x,t.logging=V},9015:(e,t,n)=>{var r=n(474),o=n(6290),i=o;i.v1=r,i.v4=o,e.exports=i},3219:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},4102:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},474:(e,t,n)=>{var r,o,i=n(4102),a=n(3219),u=0,s=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],f=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=i();null==f&&(f=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:s+1,v=h-u+(g-s)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||h>u)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,s=g,o=d;var y=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var E=0;E<6;++E)l[c+E]=f[E];return t||a(l)}},6290:(e,t,n)=>{var r=n(4102),o=n(3219);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var u=0;u<16;++u)t[i+u]=a[u];return t||o(a)}},9871:function(e,t,n){var r,o,i,a;function u(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function s(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function m(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===b(t)?t:String(t)}function b(e){return b="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},b(e)}a=function(e,t,r){"use strict";var o,i,a={AUTH:"auth",SIGN_IN:"signin",MY_ACCOUNT:"account",LANDING_PAGE:"landingpage",CATALOG:"catalog",PREFERENCES:"preferences",HELP:"help",ERROR:"error",REDEEM:"redeem",PICKS:"picks",NEWS:"news",PARTNERS:"partners"},c={DEVELOPMENT:"development",TESTING:"testing",EDGE:"edge",STAGING:"staging",PRODUCTION:"production"},h={V3:"V3",V4:"V4"},g="_nativeApp",y="tempToken",_="tempAuthToken",A="logout",w=["ios","android","tvos","androidtv"],C="AUTH_TOKEN",T="CHECK_AND_REFRESH",k="USER_SIGNOUT_REALTIME",I="LOGIN_SUCCESS",D="MISL.anonToken",O="MISL.authToken",R={errorStatus:{UNAUTHORISED:"401"},errorId:{PLAYBACK_UNAUTHORIZED_RAT:"063",AUTHENTICATION_TOKEN_EXPIRED:"033"},errorCategory:{REFRESH_TOKEN_SERVICE:"66"}},S="user:refreshAccessToken",N="_sso",L=["ar","he"],U="nativeSession",x=function(){return window.location.hostname.includes("beta")},P=function(e,t){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},P(e,t)},F=function(){return F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},F.apply(this,arguments)};function M(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function B(e,t){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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function V(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function j(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G={};!function(e,t){!function(e){var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var n="__DO NOT USE! (dazn runtime modules)",r=function(e,r){var o=function(e){return void 0===e[n]&&(e[n]={}),e[n]}(r),i={};return{runtime:e.runtime,apiRoot:o,useAPIComponents:function n(r){return Promise.all(r.map((function(r){return a=r.componentName,u=function(){return Promise.resolve(r.init(t(t({},e),{useAPIComponents:n}))).catch((function(e){var t=e instanceof Error?e:new Error(String(e));throw t.message='[Bootstrap] API init error @ "'.concat(r.componentName,'" ').concat(t.message),t}))},o[a]?Promise.resolve(o[a]):(void 0===i[a]&&(i[a]=u().then((function(e){return o[a]=e,i[a]=void 0,e}))),i[a]);var a,u}))).then((function(){return o}))}}},o=function(e,t){var n;return(n={})["".concat(e,"Component")]={componentName:e,init:t,toString:function(){return"".concat(e," (Bootstrap API Component)")}},n},i=function(e,t){return o(e,t)},a=Object.freeze({__proto__:null,LOOKUP_FN_NAME:"$",RUNTIME_ROOT_NAME:n});e.ALL_LEVELS=["debug","log","warn","error"],e.PROD_LEVELS=["warn","error"],e.createAPIComponentForBrowser=function(e,t){return o(e,t)},e.createAPIComponentForNodeJS=function(e,t){return o(e,t)},e.createAbstractAPIComponent=o,e.createStubComponent=function(e){return i(e,(t=e,function(){throw new Error('API component "'.concat(t,'" is not implemented'))}));var t},e.createUniversalAPIComponent=i,e.daznAPI=a,e.prepareAPIRoot=r,e.prepareAPIRootForBrowser=function(e,t){return void 0===t&&(t=e),r({runtime:"browser",window:e},t)},e.prepareAPIRootForNodeJS=function(e){return void 0===e&&(e=z),r({runtime:"nodejs"},e)}}(t)}(0,G);var q=G,H={};!function(e,t){!function(e){var t="__DO NOT USE! (dazn runtime modules)",n=function(e,t){var n;return(n={})["".concat(e,"Component")]={componentName:e,init:t,toString:function(){return"".concat(e," (Bootstrap API Component)")}},n},r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var i=function(e,n){var o=function(e){return void 0===e[t]&&(e[t]={}),e[t]}(n),i={};return{runtime:e.runtime,apiRoot:o,useAPIComponents:function t(n){return Promise.all(n.map((function(n){return a=n.componentName,u=function(){return Promise.resolve(n.init(r(r({},e),{useAPIComponents:t}))).catch((function(e){var t=e instanceof Error?e:new Error(String(e));throw t.message='[Bootstrap] API init error @ "'.concat(n.componentName,'" ').concat(t.message),t}))},o[a]?Promise.resolve(o[a]):(void 0===i[a]&&(i[a]=u().then((function(e){return o[a]=e,i[a]=void 0,e}))),i[a]);var a,u}))).then((function(){return o}))}}},a=function(e,t){return n(e,t)};n("devMode",(function(){var e=!1;return{enableDevMode:function(){e=!0},disableDevMode:function(){e=!1},isDevModeEnabled:function(){return e}}}));var u=function(e){return t=e,n(e,(function(){throw new Error('API component "'.concat(t,'" is not implemented'))}));var t},s=u("asyncStorage").asyncStorageComponent;n("safeMode",(function(){return{fetchSafeModeStatus:function(){return Promise.resolve({countryCode:"DE",status:"GREEN"})},getSafeModeURL:function(){return"https://lite.fireball.dazn.com"},getSafeModeURLInQRImage:function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALkAAAC5CAAAAABRxsGAAAABx0lEQVR42u3cyY6DMBQEQP7/p5njSCPG6cbZDMUpkp1QXB5+i7Ltq14bOTk5OTk5OTk5OTk5+VXk2+Prd1/wA+OF9G7k5OT7WPRn9Whf5a3uRk5OfmgLIkq6Ov5GF7/IycmDqBC86ccPR05O/sLYcrQ5WPiCqEhOvrw8WP03rASrH8ssyMmXl1c1rulPH6vOkZOvJ49bNWHgCBxv7nCRk68sD07W6ft9vK8675OTk+/97U4eFfr6Njk5+aPdYckryJHHJ4LgqEBOTr4nmWw4HNU/3NPr5+TkF5KnqfDJtlGVlpOTk+/93fs0Ou0TzU8Uk5NfXB6M51ed3KoTRE5O3mXQ1aE66N8GXaQn5f7k5JeUn6wVp9l3NYNMTk6eFKamW0nV75GTk2/9e7uaq6iO4WlYISe/tzxNZ6vMuMrDycnJk7d/NTMcsKqLnJx8fuY/rWIF7dzqGcjJbyuvhoSD4cbxwskjADn5veVpRKny5jS2JIGNnJz85JB/WtUOalzPnIUmJ7+XfOYZ0sT7NbGFnPw28mBoImjnVqcEcnLyqf9A69PoN2fQ5OTLy9Ma18ypPA0w5OTkq13k5OTk5OTk5OTk5OTkK14/3LbHKtUgdd8AAAAASUVORK5CYII="}}}));var c=u("safeMode").safeModeComponent;n("uiLanguage",(function(){var e="en";return{getUILanguage:function(){return e},setUILanguage:function(t){return e=t},getURLWithUpdatedUILanguage:function(e){return"string"==typeof e?"http://localhost/".concat(e):null},getUISupportedLanguages:function(){return[e]}}}));var l=u("uiLanguage").uiLanguageComponent,f=u("l10n").l10nComponent,d=function(e){return function(t,n){e(t,n)&&p(t,n)}},p=function(e,t){console[e.logLevel].apply(console,o(["[".concat(e.globalLabel," | ").concat(e.label,"]")],t,!1))},h=function(e){var t=e.globalLabel,n=e.onMessage,r=function(e,r){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n({globalLabel:t,label:r,logLevel:e},o)}};return{createLogger:function(e){return{debug:r("debug",e),log:r("log",e),warn:r("warn",e),error:r("error",e)}}}},g=["warn","error"],v=function(e){var t=e.isDevModeEnabled,n=e.environment,r=e.logLevel;return!(!t&&"production"===n)||g.includes(r)},y=u("logger").loggerComponent,m={};!function(e,t){!function(e){var t=function(e){return 0===e?Promise.resolve():new Promise((function(t){return setTimeout(t,e)}))},n=function(e,t){return 1===e?0:t*Math.pow(2,e-2)},r={auth:!0,signin:!0,account:!0,catalog:!0,preferences:!0,landingpage:!0,help:!0,error:!0,redeem:!0,picks:!0,news:!0,partners:!0},o={General:"00",Internal:"10",StartupService:"55",ResourceStringService:"56",RefreshTokenService:"66",SignOutService:"67",UserProfileService:"70",ChapterLoading:"84",UnsupportedBrowser:"111"},i={GenericError:"000",RestrictedCountry:"006",AppLoadError:"007",UnexpectedRefreshTokenError:"062",UnathorizedRefreshTokenError:"063",ServiceTimeout:"070",ServiceTooManyAttemps:"098",ChapterInvalid:"116",UnableToLoadChapter:"117"},a={Ignore:"-01",GenericError:"000",StartupRestrictedCountry:"002",RequestTimeout:"017",ParserError:"018",NetworkError:"034",ServerError:"500",BadRequest:"400",NotFound:"404",AccessDenied:"403",Unauthenticated:"401",TooManyRequests:"429"},u=Object.freeze({__proto__:null,category:o,code:i,internal:a}),s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)},c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var l,f=function(e){function t(t,n,r,u,s){void 0===n&&(n=o.General),void 0===r&&(r=i.GenericError),void 0===u&&(u=a.GenericError);var c=e.call(this,t)||this;return c.category=n,c.code=r,c.internal=u,s instanceof Error?c.originalException=s:"string"==typeof s&&(c.originalException=new Error(s)),c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),d=function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.addPageAction(e,t)},p=function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.setCustomAttribute(e,t)},h=function(e){var t;null===(t=window.newrelic)||void 0===t||t.addToTrace(e)},g=function(e,t){return"SELECT * FROM PageAction WHERE sessionId='".concat(e,"' AND actionName='").concat(t,"'")},v=function(e,t){var n=Math.ceil(e),r=Math.floor(t);return Math.floor(Math.random()*(r-n))+n},y=Object.freeze({__proto__:null}),m=Object.freeze({__proto__:null,countryCurrencyCodes:{af:"AFN",al:"ALL",dz:"DZD",ad:"EUR",ao:"AOA",ag:"XCD",ar:"ARS",am:"AMD",au:"AUD",at:"EUR",az:"AZN",bs:"BSD",bh:"BHD",bd:"BDT",bb:"BBD",by:"BYN",be:"EUR",bz:"BZD",bj:"XOF",bt:"BTN",bo:"BOB",ba:"BAM",bw:"BWP",br:"BRL",bn:"BND",bg:"BGN",bf:"XOF",bi:"BIF",cv:"CVE",kh:"KHR",cm:"XAF",ca:"CAD",cf:"XAF",td:"XAF",cl:"CLP",cn:"CNY",co:"COP",km:"KMF",cg:"XAF",cd:"CDF",cr:"CRC",hr:"HRK",cu:"CUP",cy:"EUR",cz:"CZK",dk:"DKK",dj:"DJF",dm:"XCD",do:"DOP",ec:"USD",eg:"EGP",sv:"USD",gq:"XAF",er:"ERN",ee:"EUR",sz:"SZL",et:"ETB",fj:"FJD",fi:"EUR",fr:"EUR",ga:"XAF",gm:"GMD",ge:"GEL",de:"EUR",gh:"GHS",gr:"EUR",gd:"XCD",gt:"GTQ",gn:"GNF",gw:"XOF",gy:"GYD",ht:"HTG",va:"EUR",hn:"HNL",hu:"HUF",is:"ISK",in:"INR",id:"IDR",ir:"IRR",iq:"IQD",ie:"EUR",il:"ILS",it:"EUR",jm:"JMD",jp:"JPY",jo:"JOD",kz:"KZT",ke:"KES",ki:"AUD",kw:"KWD",kg:"KGS",la:"LAK",lv:"EUR",lb:"LBP",ls:"LSL",lr:"LRD",ly:"LYD",li:"CHF",lt:"EUR",lu:"EUR",mg:"MGA",mw:"MWK",my:"MYR",mv:"MVR",ml:"XOF",mt:"EUR",mh:"USD",mr:"MRU",mu:"MUR",mx:"MXN",fm:"USD",md:"MDL",mc:"EUR",mn:"MNT",me:"EUR",ma:"MAD",mz:"MZN",mm:"MMK",na:"NAD",nr:"AUD",np:"NPR",nl:"EUR",nz:"NZD",ni:"NIO",ne:"XOF",ng:"NGN",mk:"MKD",no:"NOK",om:"OMR",pk:"PKR",pw:"USD",ps:"ILS",pa:"PAB",pg:"PGK",py:"PYG",pe:"PEN",ph:"PHP",pl:"PLN",pt:"EUR",qa:"QAR",ro:"RON",ru:"RUB",rw:"RWF",tw:"TWD",kn:"XCD",lc:"XCD",vc:"XCD",ws:"WST",sm:"EUR",st:"STN",sa:"SAR",sn:"XOF",rs:"RSD",sc:"SCR",sl:"SLL",sg:"SGD",sk:"EUR",si:"EUR",sb:"SBD",so:"SOS",za:"ZAR",ss:"SSP",es:"EUR",lk:"LKR",sd:"SDG",sr:"SRD",se:"SEK",ch:"CHF",sy:"SYP",tj:"TJS",tz:"TZS",th:"THB",tl:"USD",tg:"XOF",to:"TOP",tt:"TTD",tn:"TND",tr:"TRY",tm:"TMT",tv:"AUD",ug:"UGX",ua:"UAH",ae:"AED",gb:"GBP",us:"USD",uy:"UYU",uz:"UZS",vu:"VUV",ve:"VES",vn:"VND",ye:"YER",zm:"ZMW",zw:"ZWL"}}),E=Object.freeze({__proto__:null}),_=Object.freeze({__proto__:null}),b=Object.freeze({__proto__:null}),A=Object.freeze({__proto__:null}),w=Object.freeze({__proto__:null}),C=Object.freeze({__proto__:null}),T=Object.freeze({__proto__:null}),k=Object.freeze({__proto__:null}),I=Object.freeze({__proto__:null}),D=Object.freeze({__proto__:null}),O=Object.freeze({__proto__:null}),R=Object.freeze({__proto__:null,accessibilityTools:O,config:m,device:E,event:_,feEvents:y,featurevisor:w,fflag:A,lifecycle:b,optimizely:C,resourceStrings:T,storage:k,user:D,util:I});!function(e){e.Once="once",e.Off="off",e.Percentage="percentage"}(l||(l={}));var S={type:l.Off},N={},L=function(e){return!N[e.functionName]&&(N[e.functionName]=!0,!0)},U=function(e){return 100*Math.random()<e.value},x=Object.freeze({__proto__:null,NO_TRACKING:S,get Sampling(){return l},createNRTracking:function(e){return function(t,n){var r;null===(r=e.newrelic)||void 0===r||r.addPageAction("bootstrapApiUsage",c(c({},n),{bootstrapApiName:t.functionName,bootstrapApiType:"runtime"}))}},createTracking:function(e,t){return void 0===t&&(t={}),function(n){var r,o,i=null===(r=t.sampling)||void 0===r?void 0:r[n.functionName],a=null!==(o=null!=i?i:t.defaultSampling)&&void 0!==o?o:S;(function(e){return e.type!==l.Off&&(e.type===l.Once?L(e):e.type===l.Percentage?U(e):void function(e){var t=new Error("Unknown sampling type: ".concat(String(e)));throw console.error(t),t}(e))})(c(c({},a),n))&&e(n,t.trackingParams)}},shouldInvokeOnce:L,shouldInvokeSampled:U});e.EraroError=f,e.again=function(e,r){var o=void 0===r?{}:r,i=o.timeout,a=void 0===i?5e3:i,u=o.retries,s=void 0===u?2:u,c=o.backoff,l=void 0===c?100:c;return function r(o){return function(r){return t(n(r,l)).then((function(){return Promise.race([e(),t(a).then((function(){throw new Error("Attempt ".concat(r," took longer than ").concat(a,"ms"))}))])}))}(o).catch((function(e){if(o-1>=s)throw e;return r(o+1)}))}(1)},e.boot=R,e.calcBackoff=n,e.createEraroError=function(e,t,n,r,o){return new f(e,t,n,r,o)},e.createNewRelicTracer=function(e){var t=e.tracerName,n=e.sessionId,r=e.useConsole,o=void 0!==r&&r,i=e.now,a=void 0===i?function(){return Date.now()}:i,u=o?function(e){return function(t,n){console.info("👀 NR ".concat(e," ").concat(t," ").concat(JSON.stringify(n)))}}(t):function(){},s=function(e){return[t,e].join(".")},l=function(e,t){return[e,s(t)].join(" ")},f=function(e){var t=a(),r=s("trace");return function(){var o=a();d(r,{spanName:e,endTime:o,startTime:t,durationMs:o-t,sessionId:n}),h({name:l("🟦",e),start:t,end:o,origin:g(n,r)}),u(e,o-t)}},v=function(e,t){void 0===t&&(t={});var r=s(e),o=c(c({},t),{sessionId:n});d(r,o),h({name:l("🟢","addPageAction(".concat(e,")")),start:a(),end:a(),origin:g(n,r)}),u('addPageAction "'.concat(r,'"'),o)},y=function(e,t){var r=function(e,t){void 0===t&&(t="");var n=e instanceof Error?e:new Error(String(e));return t&&(n.message="".concat(n.message," | ").concat(t)),n}(e,t);!function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.noticeError(e,void 0)}(r),h({name:l("⛔️","noticeError()"),start:a(),origin:"".concat(r.message," | SELECT * FROM JavaScriptError WHERE sessionId='").concat(n,"'")}),u("⛔️ noticeError",r)};return p("sessionId",n),u("NRQL hint:",g(n,"ACTION_NAME")),v("createNewRelicTracer"),{tracerName:t,sessionId:n,noticeError:y,addPageAction:v,addRelease:function(e,t){!function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.addRelease(e,t)}(e,t),u('addRelease "'.concat(e,"\"'"),t)},trace:function(e){return f("trace.".concat(e))},extendCustomAttributes:function(e){void 0===e&&(e={}),u("extendCustomAttributes",e),Object.keys(e).forEach((function(t){return p(s(t),String(e[t]))}))},wrapAsyncFn:function(e,n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=f("asyncFn.".concat(e));return Promise.resolve(null).then((function(){return n.apply(void 0,r)})).then((function(e){return i(),e})).catch((function(n){throw i(),y(n,"createNewRelicTracer(".concat(t,").wrapAsyncFn(").concat(e,")")),n}))}}}},e.createQueryStringReader=function(e){var t;void 0===e&&(e=window.location.search);var n=(null!==(t=e.split("#")[0].split("?")[1])&&void 0!==t?t:"").split("&").reduce((function(e,t){var n=t.split("="),r=n[0],o=n[1];return e[r]=o,e}),{});return{getParamValueByKey:function(e){return e in n?decodeURIComponent(n[e]):null}}},e.endsWith=function(e,t){return e.lastIndexOf(t)===e.length-t.length},e.eraroCodesMap=u,e.generateSessionId=function(){for(var e=8,t=(new Date).getTime().toString(16).slice(-8);e++<36;)t+=(0==(51*e&52)?"-":15===e?4:20===e?v(8,11):v(0,15)).toString(16);return t},e.getChapterName=function(e){return"string"==typeof e?e:e.chapterName},e.isChapterName=function(e){return"string"==typeof e&&e in r},e.isEraroError=function(e){return e instanceof Error&&e.hasOwnProperty("category")&&e.hasOwnProperty("code")&&e.hasOwnProperty("internal")},e.keysOf=function(e){return Object.keys(e)},e.startsWith=function(e,t){return 0===e.indexOf(t)},e.tracking=x}(t)}(0,m);var E=m,_=function(e,t){E.keysOf(t).forEach((function(n){e.style[n]=t[n]}))},A={circle:{width:"2rem",height:"2rem",left:"2rem",top:"2rem",borderRadius:"1rem"},line:{height:"2px",width:"100%"},basic:{background:"#F7FF1A",position:"fixed",zIndex:"100001"}},w=function(e,t){var n=e.createElement("div");return n.className="protected",n.id="devMode",_(n,A.basic),_(n,A[t]),e.body.insertBefore(n,e.body.childNodes[0]),n},C=u("devMode").devModeComponent,T=a("closedCaptions",(function(e){var t=e.window,n=function(){return t.dazn.unstable_closedCaptions};return{activateClosedCaptions:function(){var e;return null===(e=n())||void 0===e?void 0:e.activate()},deactivateClosedCaptions:function(){var e;return null===(e=n())||void 0===e?void 0:e.deactivate()},isClosedCaptionsActive:function(){var e;return(null===(e=n())||void 0===e?void 0:e.isActive())||!1}}})).closedCaptionsComponent,k=/^[a-z]{2}$/i,I=function(e){return null!=e&&k.test(O(e))},D=/^[a-z]{2}-(?:[a-z]{2}|global)$/i,O=function(e){return String(e).toLowerCase()},R=function(e){var t,n=e.language,r=e.currentPath.split("/").filter(Boolean);return t=r[0],D.test(t)?(r[0]=function(e){var t=e.languageSegment;return[e.language.toLocaleLowerCase(),t.split("-")[1]].join("-")}({languageSegment:r[0],language:n}),"/".concat(r.join("/"))):"/".concat(n,"-GLOBAL/").concat(r.join("/"))},S=function(e){var t=e.window,n=e.language;return[R({language:n,currentPath:t.location.pathname}),t.location.search,t.location.hash].join("")},N=a("authToken",(function(e){var t=e.window;return{getDecodedUserToken:function(){return t.dazn.auth.unstable_getDecodedJWT()},getEncodedUserToken:function(){return t.dazn.auth.token}}})).authTokenComponent,L=function(e,t){return o(o(["error2"],"category"in e?[e.category,e.code,e.status]:e,!0),[t],!1).filter(Boolean).join("_")},U=[/%\{([^\}]+)\}/,/%([^\}])+%/],x=function(){function e(e){this.storagesDict={},this.currentLanguage=e}return e.prototype.setCurrentLanguage=function(e){return e in this.storagesDict&&(this.currentLanguage=e),this},e.prototype.addLanguage=function(e){return this.storagesDict[e.language]=e,this},e.prototype.getStorage=function(e){return void 0===e&&(e=this.currentLanguage),this.storagesDict,this.storagesDict[e]},e}(),P=function(){function e(e,t){this.data={Links:[],Strings:{}},this.language=e,this.updateData(t)}return e.prototype.updateData=function(e){return this.data=e,this},e.prototype.getTranslation=function(e){return this.data.Strings[e]},e.prototype.getLink=function(e){var t;return null===(t=this.data.Links.find((function(t){return t.Key===e})))||void 0===t?void 0:t.Value},e.prototype.getAllLinkKeys=function(){return this.data.Links.map((function(e){return e.Key}))},e}(),F=a("deviceMetadata",(function(e){var t=e.window;return{getDeviceId:function(){return t.dazn.device.id},getDeviceGuid:function(){return t.dazn.device.guid},getDevicePlatform:function(){return t.dazn.device.platform},getDeviceType:function(){return t.dazn.device.type},getDeviceManufacturer:function(){return t.dazn.device.manufacturer},getDeviceBrand:function(){return t.dazn.device.brand},getDeviceModel:function(){return t.dazn.device.model},getDeviceFirmwareVersion:function(){return t.dazn.device.firmwareVersion},getDeviceOsName:function(){return t.dazn.device.osName},getDeviceOsVersion:function(){return t.dazn.device.osVersion}}})).deviceMetadataComponent,M=a("feEvents",(function(e){var t=e.window;return{handleFeEvent:function(e,n,r){return t.dazn.unstable_handleFeEvent(e,n,r)}}})).feEventsComponent,B=a("startupDevice",(function(e){var t=e.window;return{getDeviceGuid:function(){return t.dazn.device.guid},getDeviceMaxVideoResolution:function(){return t.dazn.startupData.UserDevice.MaxConfiguredVideoResolution},isBrowserSupported:function(){return!t.dazn.startupData.UserDevice.BrowserNotSupported}}})).startupDeviceComponent,V=function(e,t){return a("logger",(function(n){return Promise.resolve(n).then(t).then((function(t){return h({globalLabel:e,onMessage:t})}))})).loggerComponent};e.asyncStorageComponent=s,e.authTokenComponent=N,e.closedCaptionsComponent=T,e.createAPIComponentForBrowser=a,e.createAsyncStorageComponent=function(e){return a("asyncStorage",(function(){return e})).asyncStorageComponent},e.createConsoleLogger=d,e.createCustomLoggerComponent=V,e.createDevModeComponent=function(e){var t=e.indicatorVariant,n=e.isEnabled,r=e.onChange,o=a("devMode",(function(e){var o=e.window,i={isDevModeEnabled:n,uiElement:n?w(o.document,t):void 0};return{enableDevMode:function(){i.isDevModeEnabled=!0,i.uiElement=w(o.document,t),null==r||r(!0)},disableDevMode:function(){var e;i.isDevModeEnabled=!1,null===(e=i.uiElement)||void 0===e||e.remove(),i.uiElement=void 0,null==r||r(!1)},isDevModeEnabled:function(){return i.isDevModeEnabled}}})).devModeComponent;return o},e.createL10nComponent=function(e){return a("l10n",(function(t){return(0,t.useAPIComponents)([l]).then((function(t){return function(e,t){var n=e.initialLanguage,o=new x(n),i=o.currentLanguage,a=function(e){return o.getStorage().getTranslation(e)};return Promise.resolve(t.unsafeFetchData(i)).then((function(e){if(function(e){return null!==e&&"object"==b(e)&&function(e){return!(!e.Links||!e.Strings)&&Array.isArray(e.Links)}(e)}(e))return e;throw new Error("Not a ResourceString JSON for language ".concat(i))})).then((function(e){var t=new P(i,e);o.addLanguage(t).setCurrentLanguage(i)})).then((function(){return{getL10nErrorKey:L,createL10nAPI:function(e){var n=r(r({},t),e);return{getL10nRawValue:a,t:function(e,t){var r,o=null!==(r=a(e))&&void 0!==r?r:n.getMissingTranslation(e);return o?function(e,t){if(!U.some((function(t){return t.test(e)})))return e;var n=function(e,n){var r;return n&&null!==(r=t(n))&&void 0!==r?r:e};return U.reduce((function(e,t){var r={prev:e,current:e};do{r.prev=r.current,r.current=r.current.replace(t,n)}while(r.current!==r.prev);return r.current}),e)}(o,(function(r){var o;return t&&r in t?String(t[r]):null!==(o=n.getMissingSubstitute(r,e))&&void 0!==o?o:void 0})):""},getLink:function(e){var t;return null!==(t=o.getStorage().getLink(e))&&void 0!==t?t:n.getMissingLink(e)}}}}}))}({initialLanguage:t.uiLanguage.getUILanguage()},{getMissingLink:function(e){return e},getMissingTranslation:function(e){return e},getMissingSubstitute:function(){},unsafeFetchData:e})}))})).l10nComponent},e.createLoggerComponent=function(e,t){return V(e,(function(e){return(0,e.useAPIComponents)([C]).then((function(e){var n=e.devMode;return d((function(e){var r=e.logLevel;return v({isDevModeEnabled:n.isDevModeEnabled(),environment:t,logLevel:r})}))}))}))},e.createLoggerFactory=h,e.createSafeModeComponent=function(e){return a("safeMode",(function(t){var n=t.window;return{fetchSafeModeStatus:function(){return n.dazn.unstable_fetchSafeModeStatus()},getSafeModeURL:function(){return e.homePageURL},getSafeModeURLInQRImage:function(){return e.homePageQRBase64}}})).safeModeComponent},e.createUILanguageComponent=function(e){return a("uiLanguage",(function(t){var n=t.window;return{getUILanguage:e,setUILanguage:function(e){return function(e,t){if(!I(t))return e.dazn.language;var n=O(t),r=S({window:e,language:n});return e.history.pushState({},e.document.title,r),e.location.reload(),n}(n,e)},getURLWithUpdatedUILanguage:function(e){return function(e,t){return I(t)?S({window:e,language:O(t)}):null}(n,e)},getUISupportedLanguages:function(){var e;return(null===(e=n.dazn.userProfile.SupportedLanguages)||void 0===e?void 0:e.length)>0?n.dazn.userProfile.SupportedLanguages:n.dazn.startupData.SupportedLanguages}}})).uiLanguageComponent},e.devModeComponent=C,e.deviceMetadataComponent=F,e.feEventsComponent=M,e.filterLogItemByLevel=v,e.l10nComponent=f,e.loggerComponent=y,e.prepareAPIRootForBrowser=function(e,t){return void 0===t&&(t=e),i({runtime:"browser",window:e},t)},e.safeModeComponent=c,e.startupDeviceComponent=B,e.uiLanguageComponent=l}(t)}(0,H);var J=H,W={};!function(e,t){!function(e){var t=function(e){return 0===e?Promise.resolve():new Promise((function(t){return setTimeout(t,e)}))},n=function(e,t){return 1===e?0:t*Math.pow(2,e-2)},r={auth:!0,signin:!0,account:!0,catalog:!0,preferences:!0,landingpage:!0,help:!0,error:!0,redeem:!0,picks:!0,news:!0,partners:!0},o={General:"00",Internal:"10",StartupService:"55",ResourceStringService:"56",RefreshTokenService:"66",SignOutService:"67",UserProfileService:"70",ChapterLoading:"84",UnsupportedBrowser:"111"},i={GenericError:"000",RestrictedCountry:"006",AppLoadError:"007",UnexpectedRefreshTokenError:"062",UnathorizedRefreshTokenError:"063",ServiceTimeout:"070",ServiceTooManyAttemps:"098",ChapterInvalid:"116",UnableToLoadChapter:"117"},a={Ignore:"-01",GenericError:"000",StartupRestrictedCountry:"002",RequestTimeout:"017",ParserError:"018",NetworkError:"034",ServerError:"500",BadRequest:"400",NotFound:"404",AccessDenied:"403",Unauthenticated:"401",TooManyRequests:"429"},u=Object.freeze({__proto__:null,category:o,code:i,internal:a}),s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)},c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var l,f=function(e){function t(t,n,r,u,s){void 0===n&&(n=o.General),void 0===r&&(r=i.GenericError),void 0===u&&(u=a.GenericError);var c=e.call(this,t)||this;return c.category=n,c.code=r,c.internal=u,s instanceof Error?c.originalException=s:"string"==typeof s&&(c.originalException=new Error(s)),c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),d=function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.addPageAction(e,t)},p=function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.setCustomAttribute(e,t)},h=function(e){var t;null===(t=window.newrelic)||void 0===t||t.addToTrace(e)},g=function(e,t){return"SELECT * FROM PageAction WHERE sessionId='".concat(e,"' AND actionName='").concat(t,"'")},v=function(e,t){var n=Math.ceil(e),r=Math.floor(t);return Math.floor(Math.random()*(r-n))+n},y=Object.freeze({__proto__:null}),m=Object.freeze({__proto__:null,countryCurrencyCodes:{af:"AFN",al:"ALL",dz:"DZD",ad:"EUR",ao:"AOA",ag:"XCD",ar:"ARS",am:"AMD",au:"AUD",at:"EUR",az:"AZN",bs:"BSD",bh:"BHD",bd:"BDT",bb:"BBD",by:"BYN",be:"EUR",bz:"BZD",bj:"XOF",bt:"BTN",bo:"BOB",ba:"BAM",bw:"BWP",br:"BRL",bn:"BND",bg:"BGN",bf:"XOF",bi:"BIF",cv:"CVE",kh:"KHR",cm:"XAF",ca:"CAD",cf:"XAF",td:"XAF",cl:"CLP",cn:"CNY",co:"COP",km:"KMF",cg:"XAF",cd:"CDF",cr:"CRC",hr:"HRK",cu:"CUP",cy:"EUR",cz:"CZK",dk:"DKK",dj:"DJF",dm:"XCD",do:"DOP",ec:"USD",eg:"EGP",sv:"USD",gq:"XAF",er:"ERN",ee:"EUR",sz:"SZL",et:"ETB",fj:"FJD",fi:"EUR",fr:"EUR",ga:"XAF",gm:"GMD",ge:"GEL",de:"EUR",gh:"GHS",gr:"EUR",gd:"XCD",gt:"GTQ",gn:"GNF",gw:"XOF",gy:"GYD",ht:"HTG",va:"EUR",hn:"HNL",hu:"HUF",is:"ISK",in:"INR",id:"IDR",ir:"IRR",iq:"IQD",ie:"EUR",il:"ILS",it:"EUR",jm:"JMD",jp:"JPY",jo:"JOD",kz:"KZT",ke:"KES",ki:"AUD",kw:"KWD",kg:"KGS",la:"LAK",lv:"EUR",lb:"LBP",ls:"LSL",lr:"LRD",ly:"LYD",li:"CHF",lt:"EUR",lu:"EUR",mg:"MGA",mw:"MWK",my:"MYR",mv:"MVR",ml:"XOF",mt:"EUR",mh:"USD",mr:"MRU",mu:"MUR",mx:"MXN",fm:"USD",md:"MDL",mc:"EUR",mn:"MNT",me:"EUR",ma:"MAD",mz:"MZN",mm:"MMK",na:"NAD",nr:"AUD",np:"NPR",nl:"EUR",nz:"NZD",ni:"NIO",ne:"XOF",ng:"NGN",mk:"MKD",no:"NOK",om:"OMR",pk:"PKR",pw:"USD",ps:"ILS",pa:"PAB",pg:"PGK",py:"PYG",pe:"PEN",ph:"PHP",pl:"PLN",pt:"EUR",qa:"QAR",ro:"RON",ru:"RUB",rw:"RWF",tw:"TWD",kn:"XCD",lc:"XCD",vc:"XCD",ws:"WST",sm:"EUR",st:"STN",sa:"SAR",sn:"XOF",rs:"RSD",sc:"SCR",sl:"SLL",sg:"SGD",sk:"EUR",si:"EUR",sb:"SBD",so:"SOS",za:"ZAR",ss:"SSP",es:"EUR",lk:"LKR",sd:"SDG",sr:"SRD",se:"SEK",ch:"CHF",sy:"SYP",tj:"TJS",tz:"TZS",th:"THB",tl:"USD",tg:"XOF",to:"TOP",tt:"TTD",tn:"TND",tr:"TRY",tm:"TMT",tv:"AUD",ug:"UGX",ua:"UAH",ae:"AED",gb:"GBP",us:"USD",uy:"UYU",uz:"UZS",vu:"VUV",ve:"VES",vn:"VND",ye:"YER",zm:"ZMW",zw:"ZWL"}}),E=Object.freeze({__proto__:null}),_=Object.freeze({__proto__:null}),b=Object.freeze({__proto__:null}),A=Object.freeze({__proto__:null}),w=Object.freeze({__proto__:null}),C=Object.freeze({__proto__:null}),T=Object.freeze({__proto__:null}),k=Object.freeze({__proto__:null}),I=Object.freeze({__proto__:null}),D=Object.freeze({__proto__:null}),O=Object.freeze({__proto__:null}),R=Object.freeze({__proto__:null,accessibilityTools:O,config:m,device:E,event:_,feEvents:y,featurevisor:w,fflag:A,lifecycle:b,optimizely:C,resourceStrings:T,storage:k,user:D,util:I});!function(e){e.Once="once",e.Off="off",e.Percentage="percentage"}(l||(l={}));var S={type:l.Off},N={},L=function(e){return!N[e.functionName]&&(N[e.functionName]=!0,!0)},U=function(e){return 100*Math.random()<e.value},x=Object.freeze({__proto__:null,NO_TRACKING:S,get Sampling(){return l},createNRTracking:function(e){return function(t,n){var r;null===(r=e.newrelic)||void 0===r||r.addPageAction("bootstrapApiUsage",c(c({},n),{bootstrapApiName:t.functionName,bootstrapApiType:"runtime"}))}},createTracking:function(e,t){return void 0===t&&(t={}),function(n){var r,o,i=null===(r=t.sampling)||void 0===r?void 0:r[n.functionName],a=null!==(o=null!=i?i:t.defaultSampling)&&void 0!==o?o:S;(function(e){return e.type!==l.Off&&(e.type===l.Once?L(e):e.type===l.Percentage?U(e):void function(e){var t=new Error("Unknown sampling type: ".concat(String(e)));throw console.error(t),t}(e))})(c(c({},a),n))&&e(n,t.trackingParams)}},shouldInvokeOnce:L,shouldInvokeSampled:U});e.EraroError=f,e.again=function(e,r){var o=void 0===r?{}:r,i=o.timeout,a=void 0===i?5e3:i,u=o.retries,s=void 0===u?2:u,c=o.backoff,l=void 0===c?100:c;return function r(o){return function(r){return t(n(r,l)).then((function(){return Promise.race([e(),t(a).then((function(){throw new Error("Attempt ".concat(r," took longer than ").concat(a,"ms"))}))])}))}(o).catch((function(e){if(o-1>=s)throw e;return r(o+1)}))}(1)},e.boot=R,e.calcBackoff=n,e.createEraroError=function(e,t,n,r,o){return new f(e,t,n,r,o)},e.createNewRelicTracer=function(e){var t=e.tracerName,n=e.sessionId,r=e.useConsole,o=void 0!==r&&r,i=e.now,a=void 0===i?function(){return Date.now()}:i,u=o?function(e){return function(t,n){console.info("👀 NR ".concat(e," ").concat(t," ").concat(JSON.stringify(n)))}}(t):function(){},s=function(e){return[t,e].join(".")},l=function(e,t){return[e,s(t)].join(" ")},f=function(e){var t=a(),r=s("trace");return function(){var o=a();d(r,{spanName:e,endTime:o,startTime:t,durationMs:o-t,sessionId:n}),h({name:l("🟦",e),start:t,end:o,origin:g(n,r)}),u(e,o-t)}},v=function(e,t){void 0===t&&(t={});var r=s(e),o=c(c({},t),{sessionId:n});d(r,o),h({name:l("🟢","addPageAction(".concat(e,")")),start:a(),end:a(),origin:g(n,r)}),u('addPageAction "'.concat(r,'"'),o)},y=function(e,t){var r=function(e,t){void 0===t&&(t="");var n=e instanceof Error?e:new Error(String(e));return t&&(n.message="".concat(n.message," | ").concat(t)),n}(e,t);!function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.noticeError(e,void 0)}(r),h({name:l("⛔️","noticeError()"),start:a(),origin:"".concat(r.message," | SELECT * FROM JavaScriptError WHERE sessionId='").concat(n,"'")}),u("⛔️ noticeError",r)};return p("sessionId",n),u("NRQL hint:",g(n,"ACTION_NAME")),v("createNewRelicTracer"),{tracerName:t,sessionId:n,noticeError:y,addPageAction:v,addRelease:function(e,t){!function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.addRelease(e,t)}(e,t),u('addRelease "'.concat(e,"\"'"),t)},trace:function(e){return f("trace.".concat(e))},extendCustomAttributes:function(e){void 0===e&&(e={}),u("extendCustomAttributes",e),Object.keys(e).forEach((function(t){return p(s(t),String(e[t]))}))},wrapAsyncFn:function(e,n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=f("asyncFn.".concat(e));return Promise.resolve(null).then((function(){return n.apply(void 0,r)})).then((function(e){return i(),e})).catch((function(n){throw i(),y(n,"createNewRelicTracer(".concat(t,").wrapAsyncFn(").concat(e,")")),n}))}}}},e.createQueryStringReader=function(e){var t;void 0===e&&(e=window.location.search);var n=(null!==(t=e.split("#")[0].split("?")[1])&&void 0!==t?t:"").split("&").reduce((function(e,t){var n=t.split("="),r=n[0],o=n[1];return e[r]=o,e}),{});return{getParamValueByKey:function(e){return e in n?decodeURIComponent(n[e]):null}}},e.endsWith=function(e,t){return e.lastIndexOf(t)===e.length-t.length},e.eraroCodesMap=u,e.generateSessionId=function(){for(var e=8,t=(new Date).getTime().toString(16).slice(-8);e++<36;)t+=(0==(51*e&52)?"-":15===e?4:20===e?v(8,11):v(0,15)).toString(16);return t},e.getChapterName=function(e){return"string"==typeof e?e:e.chapterName},e.isChapterName=function(e){return"string"==typeof e&&e in r},e.isEraroError=function(e){return e instanceof Error&&e.hasOwnProperty("category")&&e.hasOwnProperty("code")&&e.hasOwnProperty("internal")},e.keysOf=function(e){return Object.keys(e)},e.startsWith=function(e,t){return 0===e.indexOf(t)},e.tracking=x}(t)}(0,W);var Y=W,Z={},X=function(e,t){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},X(e,t)};function Q(e,t){function n(){this.constructor=e}X(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function $(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var ee=function(e,t){this.target=t,this.type=e},te=function(e){function t(t,n){var r=e.call(this,"error",n)||this;return r.message=t.message,r.error=t,r}return Q(t,e),t}(ee),ne=function(e){function t(t,n,r){void 0===t&&(t=1e3),void 0===n&&(n="");var o=e.call(this,"close",r)||this;return o.wasClean=!0,o.code=t,o.reason=n,o}return Q(t,e),t}(ee),re={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},oe=function(){function e(e,t,n){var r=this;void 0===n&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(e){r._debug("open event");var t=r._options.minUptime,n=void 0===t?re.minUptime:t;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout((function(){return r._acceptOpen()}),n),r._ws.binaryType=r._binaryType,r._messageQueue.forEach((function(e){return r._ws.send(e)})),r._messageQueue=[],r.onopen&&r.onopen(e),r._listeners.open.forEach((function(t){return r._callEventListener(e,t)}))},this._handleMessage=function(e){r._debug("message event"),r.onmessage&&r.onmessage(e),r._listeners.message.forEach((function(t){return r._callEventListener(e,t)}))},this._handleError=function(e){r._debug("error event",e.message),r._disconnect(void 0,"TIMEOUT"===e.message?"timeout":void 0),r.onerror&&r.onerror(e),r._debug("exec error listeners"),r._listeners.error.forEach((function(t){return r._callEventListener(e,t)})),r._connect()},this._handleClose=function(e){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(e),r._listeners.close.forEach((function(t){return r._callEventListener(e,t)}))},this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){return this._messageQueue.reduce((function(e,t){return"string"==typeof t?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e}),0)+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(e,t):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")},e.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(e,t),this._connect()):this._connect()},e.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,n=void 0===t?re.maxEnqueuedMessages:t;this._messageQueue.length<n&&(this._debug("enqueue",e),this._messageQueue.push(e))}},e.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},e.prototype.dispatchEvent=function(e){var t,n,r=this._listeners[e.type];if(r)try{for(var o=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(r),i=o.next();!i.done;i=o.next()){var a=i.value;this._callEventListener(e,a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._options.debug&&console.log.apply(console,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($(arguments[t]));return e}(["RWS>"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?re.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?re.minReconnectionDelay:r,i=e.maxReconnectionDelay,a=void 0===i?re.maxReconnectionDelay:i,u=0;return this._retryCount>0&&(u=o*Math.pow(n,this._retryCount-1))>a&&(u=a),this._debug("next delay",u),u},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"==typeof e)return Promise.resolve(e);if("function"==typeof e){var t=e();if("string"==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?re.maxRetries:n,o=t.connectionTimeout,i=void 0===o?re.connectionTimeout:o,a=t.WebSocket,u=void 0===a?function(){if("undefined"!=typeof WebSocket)return WebSocket}():a;if(this._retryCount>=r)this._debug("max retries reached",this._retryCount,">=",r);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),void 0===(s=u)||!s||2!==s.CLOSING)throw Error("No valid WebSocket class provided");var s;this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new u(t,e._protocols):new u(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),i))}))}}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new te(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new ne(e,t,this))}catch(e){}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}(),ie=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}(Object.freeze({__proto__:null,default:oe}));!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SERVICE_VERSION=e.PUBBY_ENDPOINT_OVERRIDE=e.EventType=void 0;var t,n=(t=ie)&&t.__esModule?t:{default:t};function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.SERVICE_VERSION="v1";var a="PUBBY_ENDPOINT_OVERRIDE";e.PUBBY_ENDPOINT_OVERRIDE=a;var u,s,c="Pubby Client must already have subscriptions registered before you can add or remove event listeners";!function(e){e.AUTH="auth",e.SUBSCRIBE="subscribe",e.UNSUBSCRIBE="unsubscribe"}(u||(u={})),e.EventType=s,function(e){e.OPEN="open",e.CLOSE="close"}(s||(e.EventType=s={}));var l=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.configure=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).Versions,n=(e=void 0===e?{}:e).v1,r=(n=void 0===n?{ServicePath:void 0}:n).ServicePath;if(!r)throw new Error("Pubby Client needs to be configured with a valid serviceDictionary entry");if(t.endpoint&&r!==t.endpoint)throw new Error("Pubby Client has already been configured to use a different service URL");var o=window.localStorage.getItem(a);t.endpoint=o||r},this.connectAndSendSubscriptions=function(){t.ws=new n.default(t.endpoint,[],{minReconnectionDelay:1e3*Math.random()}),t.ws.addEventListener("open",t.sendAllSubscriptions),t.ws.addEventListener("message",t.onMessage)},this.disconnect=function(){t.ws&&(t.ws.close(),t.ws.removeEventListener("open",t.sendAllSubscriptions),t.ws.removeEventListener("message",t.onMessage),t.ws=null)},this.send=function(e){t.ws&&t.ws.send(JSON.stringify(e))},this.auth=function(e){t.jwt=e,t.ws?t.isOpen&&t.send([{action:u.AUTH,message:{token:e}}]):t.connectAndSendSubscriptions()},this.subscribe=function(e,n,r,o){if(!t.endpoint)throw new Error("Pubby Client must be configured before subscriptions can be made");var a=t.subscriptions[n];if(a){if(r!==a.dump)throw new Error("Pubby Client cannot respect different dump values for consumers subscribing to the same room.");if(Object.keys(a.handlers).includes(e))throw new Error("Pubby Client has already subscribed to this room for this consumer");if(a.handlers[e]=o,!r)return}else t.subscriptions[n]={dump:r,handlers:i({},e,o)};t.ws?t.isOpen&&t.send([{action:u.SUBSCRIBE,message:{room:n,dump:r}}]):t.connectAndSendSubscriptions()},this.unsubscribe=function(e,n){var r=t.subscriptions[n];r&&(Object.keys(r.handlers).filter((function(t){return t!==e})).length?delete r.handlers[e]:(delete t.subscriptions[n],t.isOpen&&t.send([{action:u.UNSUBSCRIBE,message:{room:n}}]),Object.keys(t.subscriptions).length||t.disconnect()))},this.sendAllSubscriptions=function(){if(Object.keys(t.subscriptions).length){var e=[];for(var n in null!==t.jwt&&e.push({action:u.AUTH,message:{token:t.jwt}}),t.subscriptions){var r=t.subscriptions[n].dump;e.push({action:u.SUBSCRIBE,message:{room:n,dump:r}})}t.send(e)}},this.onMessage=function(e){var n;try{n=JSON.parse(e.data)}catch(e){return}if(Array.isArray(n)){var o,i=r(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,u=t.subscriptions[a.room.replace(/^user:.*:/,"user:")];if(u){var s=a.dumped||!1;for(var c in u.handlers)(0,u.handlers[c])(a.id,a.data,a.version,s)}}}catch(e){i.e(e)}finally{i.f()}}},this.addEventListener=function(e,n){var r,o;if(!t.ws)throw new Error(c);e===s.OPEN?null===(r=t.ws)||void 0===r||r.addEventListener("open",n):e===s.CLOSE&&(null===(o=t.ws)||void 0===o||o.addEventListener("close",n))},this.removeEventListener=function(e,n){var r,o;if(!t.ws)throw new Error(c);e===s.OPEN?null===(r=t.ws)||void 0===r||r.removeEventListener("open",n):e===s.CLOSE&&(null===(o=t.ws)||void 0===o||o.removeEventListener("close",n))},this.endpoint="",this.ws=null,this.subscriptions={},this.jwt=null}var t,o;return t=e,(o=[{key:"isConfigured",get:function(){return!!this.endpoint}},{key:"isOpen",get:function(){return!!this.ws&&this.ws.readyState===this.ws.OPEN}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),f=new l;e.default=f}(Z);var ae=K(Z),ue={exports:{}};!function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=32,u=128,s=1/0,c=9007199254740991,l=NaN,f=4294967295,d=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],p="[object Arguments]",h="[object Array]",g="[object Boolean]",v="[object Date]",y="[object Error]",m="[object Function]",E="[object GeneratorFunction]",_="[object Map]",A="[object Number]",w="[object Object]",C="[object Promise]",T="[object RegExp]",k="[object Set]",I="[object String]",D="[object Symbol]",O="[object WeakMap]",R="[object ArrayBuffer]",S="[object DataView]",N="[object Float32Array]",L="[object Float64Array]",U="[object Int8Array]",x="[object Int16Array]",P="[object Int32Array]",F="[object Uint8Array]",M="[object Uint8ClampedArray]",B="[object Uint16Array]",V="[object Uint32Array]",j=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(q.source),W=RegExp(H.source),Y=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="["+be+"]",Oe="["+Ie+"]",Re="["+Ae+"]",Se="\\d+",Ne="["+we+"]",Le="["+Ce+"]",Ue="[^"+be+Ie+Se+we+Ce+Te+"]",xe="\\ud83c[\\udffb-\\udfff]",Pe="[^"+be+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Te+"]",Ve="\\u200d",je="(?:"+Le+"|"+Ue+")",ze="(?:"+Be+"|"+Ue+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Re+"|"+xe+")?",He="["+ke+"]?",Je=He+qe+"(?:"+Ve+"(?:"+[Pe,Fe,Me].join("|")+")"+He+qe+")*",We="(?:"+[Ne,Fe,Me].join("|")+")"+Je,Ye="(?:"+[Pe+Re+"?",Re,Fe,Me,De].join("|")+")",Ze=RegExp("['’]","g"),Xe=RegExp(Re,"g"),Qe=RegExp(xe+"(?="+xe+")|"+Ye+Je,"g"),$e=RegExp([Be+"?"+Le+"+"+Ke+"(?="+[Oe,Be,"$"].join("|")+")",ze+"+"+Ge+"(?="+[Oe,Be+je,"$"].join("|")+")",Be+"?"+je+"+"+Ke,Be+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,We].join("|"),"g"),et=RegExp("["+Ve+be+Ae+ke+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[N]=ot[L]=ot[U]=ot[x]=ot[P]=ot[F]=ot[M]=ot[B]=ot[V]=!0,ot[p]=ot[h]=ot[R]=ot[g]=ot[S]=ot[v]=ot[y]=ot[m]=ot[_]=ot[A]=ot[w]=ot[T]=ot[k]=ot[I]=ot[O]=!1;var it={};it[p]=it[h]=it[R]=it[S]=it[g]=it[v]=it[N]=it[L]=it[U]=it[x]=it[P]=it[_]=it[A]=it[w]=it[T]=it[k]=it[I]=it[D]=it[F]=it[M]=it[B]=it[V]=!0,it[y]=it[m]=it[O]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,st=parseInt,ct="object"==b(z)&&z&&z.Object===Object&&z,lt="object"==("undefined"==typeof self?"undefined":b(self))&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),dt=t&&!t.nodeType&&t,pt=dt&&e&&!e.nodeType&&e,ht=pt&&pt.exports===dt,gt=ht&&ct.process,vt=function(){try{return pt&&pt.require&&pt.require("util").types||gt&>.binding&>.binding("util")}catch(e){}}(),yt=vt&&vt.isArrayBuffer,mt=vt&&vt.isDate,Et=vt&&vt.isMap,_t=vt&&vt.isRegExp,bt=vt&&vt.isSet,At=vt&&vt.isTypedArray;function wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Ot(e,t){return!(null==e||!e.length)&&Bt(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Nt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Lt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ut(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Pt=Kt("length");function Ft(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Mt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Bt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Mt(e,jt,n)}function Vt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function jt(e){return e!=e}function zt(e,t){var n=null==e?0:e.length;return n?Ht(e,t)/n:l}function Kt(e){return function(t){return null==t?n:t[e]}}function Gt(e){return function(t){return null==e?n:e[t]}}function qt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Ht(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Wt(e){return e?e.slice(0,fn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Zt(e,t){return St(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&Bt(t,e[n],0)>-1;);return n}function $t(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var en=Gt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var u=e[n];u!==t&&u!==i||(e[n]=i,a[o++]=n)}return a}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){return rn(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):Pt(e)}function ln(e){return rn(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function e(t){var z,oe=(t=null==t?ft:pn.defaults(ft.Object(),t,pn.pick(ft,nt))).Array,be=t.Date,Ae=t.Error,we=t.Function,Ce=t.Math,Te=t.Object,ke=t.RegExp,Ie=t.String,De=t.TypeError,Oe=oe.prototype,Re=we.prototype,Se=Te.prototype,Ne=t["__core-js_shared__"],Le=Re.toString,Ue=Se.hasOwnProperty,xe=0,Pe=(z=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",Fe=Se.toString,Me=Le.call(Te),Be=ft._,Ve=ke("^"+Le.call(Ue).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=ht?t.Buffer:n,ze=t.Symbol,Ke=t.Uint8Array,Ge=je?je.allocUnsafe:n,qe=an(Te.getPrototypeOf,Te),He=Te.create,Je=Se.propertyIsEnumerable,We=Oe.splice,Ye=ze?ze.isConcatSpreadable:n,Qe=ze?ze.iterator:n,et=ze?ze.toStringTag:n,at=function(){try{var e=ci(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=be&&be.now!==ft.Date.now&&be.now,dt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=Ce.ceil,gt=Ce.floor,vt=Te.getOwnPropertySymbols,Pt=je?je.isBuffer:n,Gt=t.isFinite,hn=Oe.join,gn=an(Te.keys,Te),vn=Ce.max,yn=Ce.min,mn=be.now,En=t.parseInt,_n=Ce.random,bn=Oe.reverse,An=ci(t,"DataView"),wn=ci(t,"Map"),Cn=ci(t,"Promise"),Tn=ci(t,"Set"),kn=ci(t,"WeakMap"),In=ci(Te,"create"),Dn=kn&&new kn,On={},Rn=xi(An),Sn=xi(wn),Nn=xi(Cn),Ln=xi(Tn),Un=xi(kn),xn=ze?ze.prototype:n,Pn=xn?xn.valueOf:n,Fn=xn?xn.toString:n;function Mn(e){if(Qa(e)&&!ja(e)&&!(e instanceof zn)){if(e instanceof jn)return e;if(Ue.call(e,"__wrapped__"))return Pi(e)}return new jn(e)}var Bn=function(){function e(){}return function(t){if(!Xa(t))return{};if(He)return He(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Vn(){}function jn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Wn(e,t){var n=ja(e),r=!n&&Va(e),o=!n&&!r&&qa(e),i=!n&&!r&&!o&&au(e),a=n||r||o||i,u=a?Jt(e.length,Ie):[],s=u.length;for(var c in e)!t&&!Ue.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,s))||u.push(c);return u}function Yn(e){var t=e.length;return t?e[qr(0,t-1)]:n}function Zn(e,t){return Ni(Io(e),ir(t,0,e.length))}function Xn(e){return Ni(Io(e))}function Qn(e,t,r){(r!==n&&!Fa(e[t],r)||r===n&&!(t in e))&&rr(e,t,r)}function $n(e,t,r){var o=e[t];Ue.call(e,t)&&Fa(o,r)&&(r!==n||t in e)||rr(e,t,r)}function er(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&Do(t,Du(t),e)}function rr(e,t,n){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var r=-1,o=t.length,i=oe(o),a=null==e;++r<o;)i[r]=a?n:wu(e,t[r]);return i}function ir(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ar(e,t,r,o,i,a){var u,s=1&t,c=2&t,l=4&t;if(r&&(u=i?r(e,o,i,a):r(e)),u!==n)return u;if(!Xa(e))return e;var f=ja(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Io(e,u)}else{var d=di(e),h=d==m||d==E;if(qa(e))return bo(e,s);if(d==w||d==p||h&&!i){if(u=c||h?{}:hi(e),!s)return c?function(e,t){return Do(e,fi(e),t)}(e,function(e,t){return e&&Do(t,Ou(t),e)}(u,e)):function(e,t){return Do(e,li(e),t)}(e,nr(u,e))}else{if(!it[d])return i?e:{};u=function(e,t,n){var r,o=e.constructor;switch(t){case R:return Ao(e);case g:case v:return new o(+e);case S:return function(e,t){var n=t?Ao(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case L:case U:case x:case P:case F:case M:case B:case V:return wo(e,n);case _:return new o;case A:case I:return new o(e);case T:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case D:return r=e,Pn?Te(Pn.call(r)):{}}}(e,d,s)}}a||(a=new Jn);var y=a.get(e);if(y)return y;a.set(e,u),ru(e)?e.forEach((function(n){u.add(ar(n,t,r,n,e,a))})):$a(e)&&e.forEach((function(n,o){u.set(o,ar(n,t,r,o,e,a))}));var b=f?n:(l?c?ni:ti:c?Ou:Du)(e);return Tt(b||e,(function(n,o){b&&(n=e[o=n]),$n(u,o,ar(n,t,r,o,e,a))})),u}function ur(e,t,r){var o=r.length;if(null==e)return!o;for(e=Te(e);o--;){var i=r[o],a=t[i],u=e[i];if(u===n&&!(i in e)||!a(u))return!1}return!0}function sr(e,t,o){if("function"!=typeof e)throw new De(r);return Di((function(){e.apply(n,o)}),t)}function cr(e,t,n,r){var o=-1,i=Ot,a=!0,u=e.length,s=[],c=t.length;if(!u)return s;n&&(t=St(t,Yt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=Xt,a=!1,t=new Hn(t));e:for(;++o<u;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;s.push(l)}else i(t,f,r)||s.push(l)}return s}Mn.templateSettings={escape:Y,evaluate:Z,interpolate:X,variable:"",imports:{_:Mn}},Mn.prototype=Vn.prototype,Mn.prototype.constructor=Mn,jn.prototype=Bn(Vn.prototype),jn.prototype.constructor=jn,zn.prototype=Bn(Vn.prototype),zn.prototype.constructor=zn,Kn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Kn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kn.prototype.get=function(e){var t=this.__data__;if(In){var r=t[e];return r===o?n:r}return Ue.call(t,e)?t[e]:n},Kn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==n:Ue.call(t,e)},Kn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=In&&t===n?o:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():We.call(t,n,1),--this.size,0))},Gn.prototype.get=function(e){var t=this.__data__,r=er(t,e);return r<0?n:t[r][1]},Gn.prototype.has=function(e){return er(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(wn||Gn),string:new Kn}},qn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ui(this,e).get(e)},qn.prototype.has=function(e){return ui(this,e).has(e)},qn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,o),this},Hn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!wn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var lr=So(mr),fr=So(Er,!0);function dr(e,t){var n=!0;return lr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],u=t(a);if(null!=u&&(s===n?u==u&&!iu(u):r(u,s)))var s=u,c=a}return c}function hr(e,t){var n=[];return lr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function gr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?gr(u,t-1,n,r,o):Nt(o,u):r||(o[o.length]=u)}return o}var vr=No(),yr=No(!0);function mr(e,t){return e&&vr(e,t,Du)}function Er(e,t){return e&&yr(e,t,Du)}function _r(e,t){return Dt(t,(function(t){return Wa(e[t])}))}function br(e,t){for(var r=0,o=(t=yo(t,e)).length;null!=e&&r<o;)e=e[Ui(t[r++])];return r&&r==o?e:n}function Ar(e,t,n){var r=t(e);return ja(e)?r:Nt(r,n(e))}function wr(e){return null==e?e===n?"[object Undefined]":"[object Null]":et&&et in Te(e)?function(e){var t=Ue.call(e,et),r=e[et];try{e[et]=n;var o=!0}catch(e){}var i=Fe.call(e);return o&&(t?e[et]=r:delete e[et]),i}(e):function(e){return Fe.call(e)}(e)}function Cr(e,t){return e>t}function Tr(e,t){return null!=e&&Ue.call(e,t)}function kr(e,t){return null!=e&&t in Te(e)}function Ir(e,t,r){for(var o=r?Rt:Ot,i=e[0].length,a=e.length,u=a,s=oe(a),c=1/0,l=[];u--;){var f=e[u];u&&t&&(f=St(f,Yt(t))),c=yn(f.length,c),s[u]=!r&&(t||i>=120&&f.length>=120)?new Hn(u&&f):n}f=e[0];var d=-1,p=s[0];e:for(;++d<i&&l.length<c;){var h=f[d],g=t?t(h):h;if(h=r||0!==h?h:0,!(p?Xt(p,g):o(l,g,r))){for(u=a;--u;){var v=s[u];if(!(v?Xt(v,g):o(e[u],g,r)))continue e}p&&p.push(g),l.push(h)}}return l}function Dr(e,t,r){var o=null==(e=Ti(e,t=yo(t,e)))?e:e[Ui(Ji(t))];return null==o?n:wt(o,e,r)}function Or(e){return Qa(e)&&wr(e)==p}function Rr(e,t,r,o,i){return e===t||(null==e||null==t||!Qa(e)&&!Qa(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var u=ja(e),s=ja(t),c=u?h:di(e),l=s?h:di(t),f=(c=c==p?w:c)==w,d=(l=l==p?w:l)==w,m=c==l;if(m&&qa(e)){if(!qa(t))return!1;u=!0,f=!1}if(m&&!f)return a||(a=new Jn),u||au(e)?$o(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Ke(e),new Ke(t)));case g:case v:case A:return Fa(+e,+t);case y:return e.name==t.name&&e.message==t.message;case T:case I:return e==t+"";case _:var u=on;case k:var s=1&r;if(u||(u=sn),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=$o(u(e),u(t),r,o,i,a);return a.delete(e),l;case D:if(Pn)return Pn.call(e)==Pn.call(t)}return!1}(e,t,c,r,o,i,a);if(!(1&r)){var E=f&&Ue.call(e,"__wrapped__"),b=d&&Ue.call(t,"__wrapped__");if(E||b){var C=E?e.value():e,O=b?t.value():t;return a||(a=new Jn),i(C,O,r,o,a)}}return!!m&&(a||(a=new Jn),function(e,t,r,o,i,a){var u=1&r,s=ti(e),c=s.length;if(c!=ti(t).length&&!u)return!1;for(var l=c;l--;){var f=s[l];if(!(u?f in t:Ue.call(t,f)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var g=u;++l<c;){var v=e[f=s[l]],y=t[f];if(o)var m=u?o(y,v,f,t,e,a):o(v,y,f,e,t,a);if(!(m===n?v===y||i(v,y,r,o,a):m)){h=!1;break}g||(g="constructor"==f)}if(h&&!g){var E=e.constructor,_=t.constructor;E==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,o,i,a))}(e,t,r,o,Rr,i))}function Sr(e,t,r,o){var i=r.length,a=i,u=!o;if(null==e)return!a;for(e=Te(e);i--;){var s=r[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var c=(s=r[i])[0],l=e[c],f=s[1];if(u&&s[2]){if(l===n&&!(c in e))return!1}else{var d=new Jn;if(o)var p=o(l,f,c,e,t,d);if(!(p===n?Rr(f,l,3,o,d):p))return!1}}return!0}function Nr(e){return!(!Xa(e)||(t=e,Pe&&Pe in t))&&(Wa(e)?Ve:ge).test(xi(e));var t}function Lr(e){return"function"==typeof e?e:null==e?es:"object"==b(e)?ja(e)?Mr(e[0],e[1]):Fr(e):cs(e)}function Ur(e){if(!bi(e))return gn(e);var t=[];for(var n in Te(e))Ue.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xr(e,t){return e<t}function Pr(e,t){var n=-1,r=Ka(e)?oe(e.length):[];return lr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Fr(e){var t=si(e);return 1==t.length&&t[0][2]?wi(t[0][0],t[0][1]):function(n){return n===e||Sr(n,e,t)}}function Mr(e,t){return mi(e)&&Ai(t)?wi(Ui(e),t):function(r){var o=wu(r,e);return o===n&&o===t?Cu(r,e):Rr(t,o,3)}}function Br(e,t,r,o,i){e!==t&&vr(t,(function(a,u){if(i||(i=new Jn),Xa(a))!function(e,t,r,o,i,a,u){var s=ki(e,r),c=ki(t,r),l=u.get(c);if(l)Qn(e,r,l);else{var f=a?a(s,c,r+"",e,t,u):n,d=f===n;if(d){var p=ja(c),h=!p&&qa(c),g=!p&&!h&&au(c);f=c,p||h||g?ja(s)?f=s:Ga(s)?f=Io(s):h?(d=!1,f=bo(c,!0)):g?(d=!1,f=wo(c,!0)):f=[]:tu(c)||Va(c)?(f=s,Va(s)?f=hu(s):Xa(s)&&!Wa(s)||(f=hi(c))):d=!1}d&&(u.set(c,f),i(f,c,o,a,u),u.delete(c)),Qn(e,r,f)}}(e,t,u,r,Br,o,i);else{var s=o?o(ki(e,u),a,u+"",e,t,i):n;s===n&&(s=a),Qn(e,u,s)}}),Ou)}function Vr(e,t){var r=e.length;if(r)return vi(t+=t<0?r:0,r)?e[t]:n}function jr(e,t,n){t=t.length?St(t,(function(e){return ja(e)?function(t){return br(t,1===e.length?e[0]:e)}:e})):[es];var r=-1;t=St(t,Yt(ai()));var o=Pr(e,(function(e,n,o){var i=St(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var s=Co(o[r],i[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function zr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=br(e,a);n(u,a)&&Zr(i,yo(a,e),u)}return i}function Kr(e,t,n,r){var o=r?Vt:Bt,i=-1,a=t.length,u=e;for(e===t&&(t=Io(t)),n&&(u=St(e,Yt(n)));++i<a;)for(var s=0,c=t[i],l=n?n(c):c;(s=o(u,l,s,r))>-1;)u!==e&&We.call(u,s,1),We.call(e,s,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?We.call(e,o,1):so(e,o)}}return e}function qr(e,t){return e+gt(_n()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>c)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return Oi(Ci(e,t,es),e+"")}function Wr(e){return Yn(Fu(e))}function Yr(e,t){var n=Fu(e);return Ni(n,ir(t,0,n.length))}function Zr(e,t,r,o){if(!Xa(e))return e;for(var i=-1,a=(t=yo(t,e)).length,u=a-1,s=e;null!=s&&++i<a;){var c=Ui(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=u){var f=s[c];(l=o?o(f,c,s):n)===n&&(l=Xa(f)?f:vi(t[i+1])?[]:{})}$n(s,c,l),s=s[c]}return e}var Xr=Dn?function(e,t){return Dn.set(e,t),e}:es,Qr=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:Xu(t),writable:!0})}:es;function $r(e){return Ni(Fu(e))}function eo(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=oe(o);++r<o;)i[r]=e[r+t];return i}function to(e,t){var n;return lr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!iu(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ro(e,t,es,n)}function ro(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var u=(t=r(t))!=t,s=null===t,c=iu(t),l=t===n;i<a;){var f=gt((i+a)/2),d=r(e[f]),p=d!==n,h=null===d,g=d==d,v=iu(d);if(u)var y=o||g;else y=l?g&&(o||p):s?g&&p&&(o||!h):c?g&&p&&!h&&(o||!v):!h&&!v&&(o?d<=t:d<t);y?i=f+1:a=f}return yn(a,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Fa(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function io(e){return"number"==typeof e?e:iu(e)?l:+e}function ao(e){if("string"==typeof e)return e;if(ja(e))return St(e,ao)+"";if(iu(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=Ot,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=Rt;else if(i>=200){var c=t?null:Jo(e);if(c)return sn(c);a=!1,o=Xt,s=new Hn}else s=t?[]:u;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),u.push(l)}else o(s,f,n)||(s!==u&&s.push(f),u.push(l))}return u}function so(e,t){return null==(e=Ti(e,t=yo(t,e)))||delete e[Ui(Ji(t))]}function co(e,t,n,r){return Zr(e,t,n(br(e,t)),r)}function lo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?eo(e,r?0:i,r?i+1:o):eo(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof zn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function po(e,t,n){var r=e.length;if(r<2)return r?uo(e[0]):[];for(var o=-1,i=oe(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=cr(i[o]||a,e[u],t,n));return uo(gr(i,1),t,n)}function ho(e,t,r){for(var o=-1,i=e.length,a=t.length,u={};++o<i;){var s=o<a?t[o]:n;r(u,e[o],s)}return u}function go(e){return Ga(e)?e:[]}function vo(e){return"function"==typeof e?e:es}function yo(e,t){return ja(e)?e:mi(e,t)?[e]:Li(gu(e))}var mo=Jr;function Eo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:eo(e,t,r)}var _o=ct||function(e){return ft.clearTimeout(e)};function bo(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function Ao(e){var t=new e.constructor(e.byteLength);return new Ke(t).set(new Ke(e)),t}function wo(e,t){var n=t?Ao(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=iu(e),u=t!==n,s=null===t,c=t==t,l=iu(t);if(!s&&!l&&!a&&e>t||a&&u&&c&&!s&&!l||o&&u&&c||!r&&c||!i)return 1;if(!o&&!a&&!l&&e<t||l&&r&&i&&!o&&!a||s&&r&&i||!u&&i||!c)return-1}return 0}function To(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,s=t.length,c=vn(i-a,0),l=oe(s+c),f=!r;++u<s;)l[u]=t[u];for(;++o<a;)(f||o<i)&&(l[n[o]]=e[o]);for(;c--;)l[u++]=e[o++];return l}function ko(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,s=-1,c=t.length,l=vn(i-u,0),f=oe(l+c),d=!r;++o<l;)f[o]=e[o];for(var p=o;++s<c;)f[p+s]=t[s];for(;++a<u;)(d||o<i)&&(f[p+n[a]]=e[o++]);return f}function Io(e,t){var n=-1,r=e.length;for(t||(t=oe(r));++n<r;)t[n]=e[n];return t}function Do(e,t,r,o){var i=!r;r||(r={});for(var a=-1,u=t.length;++a<u;){var s=t[a],c=o?o(r[s],e[s],s,r,e):n;c===n&&(c=e[s]),i?rr(r,s,c):$n(r,s,c)}return r}function Oo(e,t){return function(n,r){var o=ja(n)?Ct:tr,i=t?t():{};return o(n,e,ai(r,2),i)}}function Ro(e){return Jr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,u=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,u&&yi(r[0],r[1],u)&&(a=i<3?n:a,i=1),t=Te(t);++o<i;){var s=r[o];s&&e(t,s,o,a)}return t}))}function So(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Te(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function No(e){return function(t,n,r){for(var o=-1,i=Te(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function Lo(e){return function(t){var r=rn(t=gu(t))?ln(t):n,o=r?r[0]:t.charAt(0),i=r?Eo(r,1).join(""):t.slice(1);return o[e]()+i}}function Uo(e){return function(t){return Lt(Wu(Vu(t).replace(Ze,"")),e,"")}}function xo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return Xa(r)?r:n}}function Po(e){return function(t,r,o){var i=Te(t);if(!Ka(t)){var a=ai(r,3);t=Du(t),r=function(e){return a(i[e],e,i)}}var u=e(t,r,o);return u>-1?i[a?t[u]:u]:n}}function Fo(e){return ei((function(t){var o=t.length,i=o,a=jn.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if("function"!=typeof u)throw new De(r);if(a&&!s&&"wrapper"==oi(u))var s=new jn([],!0)}for(i=s?i:o;++i<o;){var c=oi(u=t[i]),l="wrapper"==c?ri(u):n;s=l&&Ei(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[oi(l[0])].apply(s,l[3]):1==u.length&&Ei(u)?s[c]():s.thru(u)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&ja(n))return s.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function Mo(e,t,r,o,i,a,s,c,l,f){var d=t&u,p=1&t,h=2&t,g=24&t,v=512&t,y=h?n:xo(e);return function u(){for(var m=arguments.length,E=oe(m),_=m;_--;)E[_]=arguments[_];if(g)var b=ii(u),A=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(E,b);if(o&&(E=To(E,o,i,g)),a&&(E=ko(E,a,s,g)),m-=A,g&&m<f){var w=un(E,b);return qo(e,t,Mo,u.placeholder,r,E,w,c,l,f-m)}var C=p?r:this,T=h?C[e]:e;return m=E.length,c?E=function(e,t){for(var r=e.length,o=yn(t.length,r),i=Io(e);o--;){var a=t[o];e[o]=vi(a,r)?i[a]:n}return e}(E,c):v&&m>1&&E.reverse(),d&&l<m&&(E.length=l),this&&this!==ft&&this instanceof u&&(T=y||xo(T)),T.apply(C,E)}}function Bo(e,t){return function(n,r){return function(e,t,n,r){return mr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Vo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=ao(r),o=ao(o)):(r=io(r),o=io(o)),i=e(r,o)}return i}}function jo(e){return ei((function(t){return t=St(t,Yt(ai())),Jr((function(n){var r=this;return e(t,(function(e){return wt(e,r,n)}))}))}))}function zo(e,t){var r=(t=t===n?" ":ao(t)).length;if(r<2)return r?Hr(t,e):t;var o=Hr(t,pt(e/cn(t)));return rn(t)?Eo(ln(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,r,o){return o&&"number"!=typeof o&&yi(t,r,o)&&(r=o=n),t=lu(t),r===n?(r=t,t=0):r=lu(r),function(e,t,n,r){for(var o=-1,i=vn(pt((t-e)/(n||1)),0),a=oe(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:lu(o),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=pu(t),n=pu(n)),e(t,n)}}function qo(e,t,r,o,i,u,s,c,l,f){var d=8&t;t|=d?a:64,4&(t&=~(d?64:a))||(t&=-4);var p=[e,t,i,d?u:n,d?s:n,d?n:u,d?n:s,c,l,f],h=r.apply(n,p);return Ei(e)&&Ii(h,p),h.placeholder=o,Ri(h,e,t)}function Ho(e){var t=Ce[e];return function(e,n){if(e=pu(e),(n=null==n?0:yn(fu(n),292))&&Gt(e)){var r=(gu(e)+"e").split("e");return+((r=(gu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Jo=Tn&&1/sn(new Tn([,-0]))[1]==s?function(e){return new Tn(e)}:is;function Wo(e){return function(t){var n=di(t);return n==_?on(t):n==k?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return St(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,o,s,c,l,f,d){var p=2&t;if(!p&&"function"!=typeof e)throw new De(r);var h=s?s.length:0;if(h||(t&=-97,s=c=n),f=f===n?f:vn(fu(f),0),d=d===n?d:fu(d),h-=c?c.length:0,64&t){var g=s,v=c;s=c=n}var y=p?n:ri(e),m=[e,t,o,s,c,g,v,l,f,d];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,s=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?To(l,c,t[4]):c,e[4]=l?un(e[3],i):t[4]}(c=t[5])&&(l=e[5],e[5]=l?ko(l,c,t[6]):c,e[6]=l?un(e[5],i):t[6]),(c=t[7])&&(e[7]=c),r&u&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(m,y),e=m[0],t=m[1],o=m[2],s=m[3],c=m[4],!(d=m[9]=m[9]===n?p?0:e.length:vn(m[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||16==t?function(e,t,r){var o=xo(e);return function i(){for(var a=arguments.length,u=oe(a),s=a,c=ii(i);s--;)u[s]=arguments[s];var l=a<3&&u[0]!==c&&u[a-1]!==c?[]:un(u,c);return(a-=l.length)<r?qo(e,t,Mo,i.placeholder,n,u,l,n,n,r-a):wt(this&&this!==ft&&this instanceof i?o:e,this,u)}}(e,t,d):t!=a&&33!=t||c.length?Mo.apply(n,m):function(e,t,n,r){var o=1&t,i=xo(e);return function t(){for(var a=-1,u=arguments.length,s=-1,c=r.length,l=oe(c+u),f=this&&this!==ft&&this instanceof t?i:e;++s<c;)l[s]=r[s];for(;u--;)l[s++]=arguments[++a];return wt(f,o?n:this,l)}}(e,t,o,s);else var E=function(e,t,n){var r=1&t,o=xo(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return Ri((y?Xr:Ii)(E,m),e,t)}function Zo(e,t,r,o){return e===n||Fa(e,Se[r])&&!Ue.call(o,r)?t:e}function Xo(e,t,r,o,i,a){return Xa(e)&&Xa(t)&&(a.set(t,e),Br(e,t,n,Xo,a),a.delete(t)),e}function Qo(e){return tu(e)?n:e}function $o(e,t,r,o,i,a){var u=1&r,s=e.length,c=t.length;if(s!=c&&!(u&&c>s))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var d=-1,p=!0,h=2&r?new Hn:n;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],v=t[d];if(o)var y=u?o(v,g,d,t,e,a):o(g,v,d,e,t,a);if(y!==n){if(y)continue;p=!1;break}if(h){if(!xt(t,(function(e,t){if(!Xt(h,t)&&(g===e||i(g,e,r,o,a)))return h.push(t)}))){p=!1;break}}else if(g!==v&&!i(g,v,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ei(e){return Oi(Ci(e,n,zi),e+"")}function ti(e){return Ar(e,Du,li)}function ni(e){return Ar(e,Ou,fi)}var ri=Dn?function(e){return Dn.get(e)}:is;function oi(e){for(var t=e.name+"",n=On[t],r=Ue.call(On,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(Ue.call(Mn,"placeholder")?Mn:e).placeholder}function ai(){var e=Mn.iteratee||ts;return e=e===ts?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,r,o=e.__data__;return("string"==(r=b(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function si(e){for(var t=Du(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ai(o)]}return t}function ci(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Nr(r)?r:n}var li=vt?function(e){return null==e?[]:(e=Te(e),Dt(vt(e),(function(t){return Je.call(e,t)})))}:ds,fi=vt?function(e){for(var t=[];e;)Nt(t,li(e)),e=qe(e);return t}:ds,di=wr;function pi(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=Ui(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Za(o)&&vi(a,o)&&(ja(e)||Va(e))}function hi(e){return"function"!=typeof e.constructor||bi(e)?{}:Bn(qe(e))}function gi(e){return ja(e)||Va(e)||!!(Ye&&e&&e[Ye])}function vi(e,t){var n=b(e);return!!(t=null==t?c:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!Xa(n))return!1;var r=b(t);return!!("number"==r?Ka(n)&&vi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function mi(e,t){if(ja(e))return!1;var n=b(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!iu(e))||$.test(e)||!Q.test(e)||null!=t&&e in Te(t)}function Ei(e){var t=oi(e),n=Mn[t];if("function"!=typeof n||!(t in zn.prototype))return!1;if(e===n)return!0;var r=ri(n);return!!r&&e===r[0]}(An&&di(new An(new ArrayBuffer(1)))!=S||wn&&di(new wn)!=_||Cn&&di(Cn.resolve())!=C||Tn&&di(new Tn)!=k||kn&&di(new kn)!=O)&&(di=function(e){var t=wr(e),r=t==w?e.constructor:n,o=r?xi(r):"";if(o)switch(o){case Rn:return S;case Sn:return _;case Nn:return C;case Ln:return k;case Un:return O}return t});var _i=Ne?Wa:ps;function bi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Se)}function Ai(e){return e==e&&!Xa(e)}function wi(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Te(r))}}function Ci(e,t,r){return t=vn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=vn(n.length-t,0),a=oe(i);++o<i;)a[o]=n[t+o];o=-1;for(var u=oe(t+1);++o<t;)u[o]=n[o];return u[t]=r(a),wt(e,this,u)}}function Ti(e,t){return t.length<2?e:br(e,eo(t,0,-1))}function ki(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Si(Xr),Di=dt||function(e,t){return ft.setTimeout(e,t)},Oi=Si(Qr);function Ri(e,t,n){var r=t+"";return Oi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(d,(function(n){var r="_."+n[0];t&n[1]&&!Ot(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(ue):[]}(r),n)))}function Si(e){var t=0,r=0;return function(){var o=mn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ni(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=qr(r,i),u=e[a];e[a]=e[r],e[r]=u}return e.length=t,e}var Li=function(e){var t=Sa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}();function Ui(e){if("string"==typeof e||iu(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function xi(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Pi(e){if(e instanceof zn)return e.clone();var t=new jn(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Jr((function(e,t){return Ga(e)?cr(e,gr(t,1,Ga,!0)):[]})),Mi=Jr((function(e,t){var r=Ji(t);return Ga(r)&&(r=n),Ga(e)?cr(e,gr(t,1,Ga,!0),ai(r,2)):[]})),Bi=Jr((function(e,t){var r=Ji(t);return Ga(r)&&(r=n),Ga(e)?cr(e,gr(t,1,Ga,!0),n,r):[]}));function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fu(n);return o<0&&(o=vn(r+o,0)),Mt(e,ai(t,3),o)}function ji(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=fu(r),i=r<0?vn(o+i,0):yn(i,o-1)),Mt(e,ai(t,3),i,!0)}function zi(e){return null!=e&&e.length?gr(e,1):[]}function Ki(e){return e&&e.length?e[0]:n}var Gi=Jr((function(e){var t=St(e,go);return t.length&&t[0]===e[0]?Ir(t):[]})),qi=Jr((function(e){var t=Ji(e),r=St(e,go);return t===Ji(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ir(r,ai(t,2)):[]})),Hi=Jr((function(e){var t=Ji(e),r=St(e,go);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Ir(r,n,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Wi=Jr(Yi);function Yi(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var Zi=ei((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Gr(e,St(t,(function(e){return vi(e,n)?+e:e})).sort(Co)),r}));function Xi(e){return null==e?e:bn.call(e)}var Qi=Jr((function(e){return uo(gr(e,1,Ga,!0))})),$i=Jr((function(e){var t=Ji(e);return Ga(t)&&(t=n),uo(gr(e,1,Ga,!0),ai(t,2))})),ea=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,uo(gr(e,1,Ga,!0),n,t)}));function ta(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,(function(e){if(Ga(e))return t=vn(e.length,t),!0})),Jt(t,(function(t){return St(e,Kt(t))}))}function na(e,t){if(!e||!e.length)return[];var r=ta(e);return null==t?r:St(r,(function(e){return wt(t,n,e)}))}var ra=Jr((function(e,t){return Ga(e)?cr(e,t):[]})),oa=Jr((function(e){return po(Dt(e,Ga))})),ia=Jr((function(e){var t=Ji(e);return Ga(t)&&(t=n),po(Dt(e,Ga),ai(t,2))})),aa=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,po(Dt(e,Ga),n,t)})),ua=Jr(ta),sa=Jr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,na(e,r)}));function ca(e){var t=Mn(e);return t.__chain__=!0,t}function la(e,t){return t(e)}var fa=ei((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&o instanceof zn&&vi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:la,args:[i],thisArg:n}),new jn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),da=Oo((function(e,t,n){Ue.call(e,n)?++e[n]:rr(e,n,1)})),pa=Po(Vi),ha=Po(ji);function ga(e,t){return(ja(e)?Tt:lr)(e,ai(t,3))}function va(e,t){return(ja(e)?kt:fr)(e,ai(t,3))}var ya=Oo((function(e,t,n){Ue.call(e,n)?e[n].push(t):rr(e,n,[t])})),ma=Jr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ka(e)?oe(e.length):[];return lr(e,(function(e){i[++r]=o?wt(t,e,n):Dr(e,t,n)})),i})),Ea=Oo((function(e,t,n){rr(e,n,t)}));function _a(e,t){return(ja(e)?St:Pr)(e,ai(t,3))}var ba=Oo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Aa=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),jr(e,gr(t,1),[])})),wa=lt||function(){return ft.Date.now()};function Ca(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Yo(e,u,n,n,n,n,t)}function Ta(e,t){var o;if("function"!=typeof t)throw new De(r);return e=fu(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var ka=Jr((function(e,t,n){var r=1;if(n.length){var o=un(n,ii(ka));r|=a}return Yo(e,r,t,n,o)})),Ia=Jr((function(e,t,n){var r=3;if(n.length){var o=un(n,ii(Ia));r|=a}return Yo(t,r,e,n,o)}));function Da(e,t,o){var i,a,u,s,c,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new De(r);function g(t){var r=i,o=a;return i=a=n,f=t,s=e.apply(o,r)}function v(e){var r=e-l;return l===n||r>=t||r<0||p&&e-f>=u}function y(){var e=wa();if(v(e))return m(e);c=Di(y,function(e){var n=t-(e-l);return p?yn(n,u-(e-f)):n}(e))}function m(e){return c=n,h&&i?g(e):(i=a=n,s)}function E(){var e=wa(),r=v(e);if(i=arguments,a=this,l=e,r){if(c===n)return function(e){return f=e,c=Di(y,t),d?g(e):s}(l);if(p)return _o(c),c=Di(y,t),g(l)}return c===n&&(c=Di(y,t)),s}return t=pu(t)||0,Xa(o)&&(d=!!o.leading,u=(p="maxWait"in o)?vn(pu(o.maxWait)||0,t):u,h="trailing"in o?!!o.trailing:h),E.cancel=function(){c!==n&&_o(c),f=0,i=l=a=c=n},E.flush=function(){return c===n?s:m(wa())},E}var Oa=Jr((function(e,t){return sr(e,1,t)})),Ra=Jr((function(e,t,n){return sr(e,pu(t)||0,n)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(r);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Sa.Cache||qn),n}function Na(e){if("function"!=typeof e)throw new De(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=qn;var La=mo((function(e,t){var n=(t=1==t.length&&ja(t[0])?St(t[0],Yt(ai())):St(gr(t,1),Yt(ai()))).length;return Jr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return wt(e,this,r)}))})),Ua=Jr((function(e,t){var r=un(t,ii(Ua));return Yo(e,a,n,t,r)})),xa=Jr((function(e,t){var r=un(t,ii(xa));return Yo(e,64,n,t,r)})),Pa=ei((function(e,t){return Yo(e,256,n,n,n,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Ma=Go(Cr),Ba=Go((function(e,t){return e>=t})),Va=Or(function(){return arguments}())?Or:function(e){return Qa(e)&&Ue.call(e,"callee")&&!Je.call(e,"callee")},ja=oe.isArray,za=yt?Yt(yt):function(e){return Qa(e)&&wr(e)==R};function Ka(e){return null!=e&&Za(e.length)&&!Wa(e)}function Ga(e){return Qa(e)&&Ka(e)}var qa=Pt||ps,Ha=mt?Yt(mt):function(e){return Qa(e)&&wr(e)==v};function Ja(e){if(!Qa(e))return!1;var t=wr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!tu(e)}function Wa(e){if(!Xa(e))return!1;var t=wr(e);return t==m||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ya(e){return"number"==typeof e&&e==fu(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function Xa(e){var t=b(e);return null!=e&&("object"==t||"function"==t)}function Qa(e){return null!=e&&"object"==b(e)}var $a=Et?Yt(Et):function(e){return Qa(e)&&di(e)==_};function eu(e){return"number"==typeof e||Qa(e)&&wr(e)==A}function tu(e){if(!Qa(e)||wr(e)!=w)return!1;var t=qe(e);if(null===t)return!0;var n=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Me}var nu=_t?Yt(_t):function(e){return Qa(e)&&wr(e)==T},ru=bt?Yt(bt):function(e){return Qa(e)&&di(e)==k};function ou(e){return"string"==typeof e||!ja(e)&&Qa(e)&&wr(e)==I}function iu(e){return"symbol"==b(e)||Qa(e)&&wr(e)==D}var au=At?Yt(At):function(e){return Qa(e)&&Za(e.length)&&!!ot[wr(e)]},uu=Go(xr),su=Go((function(e,t){return e<=t}));function cu(e){if(!e)return[];if(Ka(e))return ou(e)?ln(e):Io(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=di(e);return(t==_?on:t==k?sn:Fu)(e)}function lu(e){return e?(e=pu(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fu(e){var t=lu(e),n=t%1;return t==t?n?t-n:t:0}function du(e){return e?ir(fu(e),0,f):0}function pu(e){if("number"==typeof e)return e;if(iu(e))return l;if(Xa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wt(e);var n=he.test(e);return n||ve.test(e)?st(e.slice(2),n?2:8):pe.test(e)?l:+e}function hu(e){return Do(e,Ou(e))}function gu(e){return null==e?"":ao(e)}var vu=Ro((function(e,t){if(bi(t)||Ka(t))Do(t,Du(t),e);else for(var n in t)Ue.call(t,n)&&$n(e,n,t[n])})),yu=Ro((function(e,t){Do(t,Ou(t),e)})),mu=Ro((function(e,t,n,r){Do(t,Ou(t),e,r)})),Eu=Ro((function(e,t,n,r){Do(t,Du(t),e,r)})),_u=ei(or),bu=Jr((function(e,t){e=Te(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&yi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],u=Ou(a),s=-1,c=u.length;++s<c;){var l=u[s],f=e[l];(f===n||Fa(f,Se[l])&&!Ue.call(e,l))&&(e[l]=a[l])}return e})),Au=Jr((function(e){return e.push(n,Xo),wt(Su,n,e)}));function wu(e,t,r){var o=null==e?n:br(e,t);return o===n?r:o}function Cu(e,t){return null!=e&&pi(e,t,kr)}var Tu=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),Xu(es)),ku=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Ue.call(e,t)?e[t].push(n):e[t]=[n]}),ai),Iu=Jr(Dr);function Du(e){return Ka(e)?Wn(e):Ur(e)}function Ou(e){return Ka(e)?Wn(e,!0):function(e){if(!Xa(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=bi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ue.call(e,r))&&n.push(r);return n}(e)}var Ru=Ro((function(e,t,n){Br(e,t,n)})),Su=Ro((function(e,t,n,r){Br(e,t,n,r)})),Nu=ei((function(e,t){var n={};if(null==e)return n;var r=!1;t=St(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),Do(e,ni(e),n),r&&(n=ar(n,7,Qo));for(var o=t.length;o--;)so(n,t[o]);return n})),Lu=ei((function(e,t){return null==e?{}:function(e,t){return zr(e,t,(function(t,n){return Cu(e,n)}))}(e,t)}));function Uu(e,t){if(null==e)return{};var n=St(ni(e),(function(e){return[e]}));return t=ai(t),zr(e,n,(function(e,n){return t(e,n[0])}))}var xu=Wo(Du),Pu=Wo(Ou);function Fu(e){return null==e?[]:Zt(e,Du(e))}var Mu=Uo((function(e,t,n){return t=t.toLowerCase(),e+(n?Bu(t):t)}));function Bu(e){return Ju(gu(e).toLowerCase())}function Vu(e){return(e=gu(e))&&e.replace(me,en).replace(Xe,"")}var ju=Uo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),zu=Uo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ku=Lo("toLowerCase"),Gu=Uo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),qu=Uo((function(e,t,n){return e+(n?" ":"")+Ju(t)})),Hu=Uo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ju=Lo("toUpperCase");function Wu(e,t,r){return e=gu(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var Yu=Jr((function(e,t){try{return wt(e,n,t)}catch(e){return Ja(e)?e:new Ae(e)}})),Zu=ei((function(e,t){return Tt(t,(function(t){t=Ui(t),rr(e,t,ka(e[t],e))})),e}));function Xu(e){return function(){return e}}var Qu=Fo(),$u=Fo(!0);function es(e){return e}function ts(e){return Lr("function"==typeof e?e:ar(e,1))}var ns=Jr((function(e,t){return function(n){return Dr(n,e,t)}})),rs=Jr((function(e,t){return function(n){return Dr(e,n,t)}}));function os(e,t,n){var r=Du(t),o=_r(t,r);null!=n||Xa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Du(t)));var i=!(Xa(n)&&"chain"in n&&!n.chain),a=Wa(e);return Tt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Io(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function is(){}var as=jo(St),us=jo(It),ss=jo(xt);function cs(e){return mi(e)?Kt(Ui(e)):function(e){return function(t){return br(t,e)}}(e)}var ls=Ko(),fs=Ko(!0);function ds(){return[]}function ps(){return!1}var hs,gs=Vo((function(e,t){return e+t}),0),vs=Ho("ceil"),ys=Vo((function(e,t){return e/t}),1),ms=Ho("floor"),Es=Vo((function(e,t){return e*t}),1),_s=Ho("round"),bs=Vo((function(e,t){return e-t}),0);return Mn.after=function(e,t){if("function"!=typeof t)throw new De(r);return e=fu(e),function(){if(--e<1)return t.apply(this,arguments)}},Mn.ary=Ca,Mn.assign=vu,Mn.assignIn=yu,Mn.assignInWith=mu,Mn.assignWith=Eu,Mn.at=_u,Mn.before=Ta,Mn.bind=ka,Mn.bindAll=Zu,Mn.bindKey=Ia,Mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ja(e)?e:[e]},Mn.chain=ca,Mn.chunk=function(e,t,r){t=(r?yi(e,t,r):t===n)?1:vn(fu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,u=oe(pt(o/t));i<o;)u[a++]=eo(e,i,i+=t);return u},Mn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Mn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=oe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nt(ja(n)?Io(n):[n],gr(t,1))},Mn.cond=function(e){var t=null==e?0:e.length,n=ai();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new De(r);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var o=e[r];if(wt(o[0],this,n))return wt(o[1],this,n)}}))},Mn.conforms=function(e){return function(e){var t=Du(e);return function(n){return ur(n,e,t)}}(ar(e,1))},Mn.constant=Xu,Mn.countBy=da,Mn.create=function(e,t){var n=Bn(e);return null==t?n:nr(n,t)},Mn.curry=function e(t,r,o){var i=Yo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Mn.curryRight=function e(t,r,o){var i=Yo(t,16,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Mn.debounce=Da,Mn.defaults=bu,Mn.defaultsDeep=Au,Mn.defer=Oa,Mn.delay=Ra,Mn.difference=Fi,Mn.differenceBy=Mi,Mn.differenceWith=Bi,Mn.drop=function(e,t,r){var o=null==e?0:e.length;return o?eo(e,(t=r||t===n?1:fu(t))<0?0:t,o):[]},Mn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?eo(e,0,(t=o-(t=r||t===n?1:fu(t)))<0?0:t):[]},Mn.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},Mn.dropWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0):[]},Mn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&yi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=fu(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:fu(o))<0&&(o+=i),o=r>o?0:du(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Mn.filter=function(e,t){return(ja(e)?Dt:hr)(e,ai(t,3))},Mn.flatMap=function(e,t){return gr(_a(e,t),1)},Mn.flatMapDeep=function(e,t){return gr(_a(e,t),s)},Mn.flatMapDepth=function(e,t,r){return r=r===n?1:fu(r),gr(_a(e,t),r)},Mn.flatten=zi,Mn.flattenDeep=function(e){return null!=e&&e.length?gr(e,s):[]},Mn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===n?1:fu(t)):[]},Mn.flip=function(e){return Yo(e,512)},Mn.flow=Qu,Mn.flowRight=$u,Mn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Mn.functions=function(e){return null==e?[]:_r(e,Du(e))},Mn.functionsIn=function(e){return null==e?[]:_r(e,Ou(e))},Mn.groupBy=ya,Mn.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Mn.intersection=Gi,Mn.intersectionBy=qi,Mn.intersectionWith=Hi,Mn.invert=Tu,Mn.invertBy=ku,Mn.invokeMap=ma,Mn.iteratee=ts,Mn.keyBy=Ea,Mn.keys=Du,Mn.keysIn=Ou,Mn.map=_a,Mn.mapKeys=function(e,t){var n={};return t=ai(t,3),mr(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},Mn.mapValues=function(e,t){var n={};return t=ai(t,3),mr(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},Mn.matches=function(e){return Fr(ar(e,1))},Mn.matchesProperty=function(e,t){return Mr(e,ar(t,1))},Mn.memoize=Sa,Mn.merge=Ru,Mn.mergeWith=Su,Mn.method=ns,Mn.methodOf=rs,Mn.mixin=os,Mn.negate=Na,Mn.nthArg=function(e){return e=fu(e),Jr((function(t){return Vr(t,e)}))},Mn.omit=Nu,Mn.omitBy=function(e,t){return Uu(e,Na(ai(t)))},Mn.once=function(e){return Ta(2,e)},Mn.orderBy=function(e,t,r,o){return null==e?[]:(ja(t)||(t=null==t?[]:[t]),ja(r=o?n:r)||(r=null==r?[]:[r]),jr(e,t,r))},Mn.over=as,Mn.overArgs=La,Mn.overEvery=us,Mn.overSome=ss,Mn.partial=Ua,Mn.partialRight=xa,Mn.partition=ba,Mn.pick=Lu,Mn.pickBy=Uu,Mn.property=cs,Mn.propertyOf=function(e){return function(t){return null==e?n:br(e,t)}},Mn.pull=Wi,Mn.pullAll=Yi,Mn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,ai(n,2)):e},Mn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Kr(e,t,n,r):e},Mn.pullAt=Zi,Mn.range=ls,Mn.rangeRight=fs,Mn.rearg=Pa,Mn.reject=function(e,t){return(ja(e)?Dt:hr)(e,Na(ai(t,3)))},Mn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ai(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Gr(e,o),n},Mn.rest=function(e,t){if("function"!=typeof e)throw new De(r);return Jr(e,t=t===n?t:fu(t))},Mn.reverse=Xi,Mn.sampleSize=function(e,t,r){return t=(r?yi(e,t,r):t===n)?1:fu(t),(ja(e)?Zn:Yr)(e,t)},Mn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Mn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Zr(e,t,r,o)},Mn.shuffle=function(e){return(ja(e)?Xn:$r)(e)},Mn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&yi(e,t,r)?(t=0,r=o):(t=null==t?0:fu(t),r=r===n?o:fu(r)),eo(e,t,r)):[]},Mn.sortBy=Aa,Mn.sortedUniq=function(e){return e&&e.length?oo(e):[]},Mn.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(t,2)):[]},Mn.split=function(e,t,r){return r&&"number"!=typeof r&&yi(e,t,r)&&(t=r=n),(r=r===n?f:r>>>0)?(e=gu(e))&&("string"==typeof t||null!=t&&!nu(t))&&!(t=ao(t))&&rn(e)?Eo(ln(e),0,r):e.split(t,r):[]},Mn.spread=function(e,t){if("function"!=typeof e)throw new De(r);return t=null==t?0:vn(fu(t),0),Jr((function(n){var r=n[t],o=Eo(n,0,t);return r&&Nt(o,r),wt(e,this,o)}))},Mn.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Mn.take=function(e,t,r){return e&&e.length?eo(e,0,(t=r||t===n?1:fu(t))<0?0:t):[]},Mn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?eo(e,(t=o-(t=r||t===n?1:fu(t)))<0?0:t,o):[]},Mn.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},Mn.takeWhile=function(e,t){return e&&e.length?lo(e,ai(t,3)):[]},Mn.tap=function(e,t){return t(e),e},Mn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new De(r);return Xa(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Da(e,t,{leading:o,maxWait:t,trailing:i})},Mn.thru=la,Mn.toArray=cu,Mn.toPairs=xu,Mn.toPairsIn=Pu,Mn.toPath=function(e){return ja(e)?St(e,Ui):iu(e)?[e]:Io(Li(gu(e)))},Mn.toPlainObject=hu,Mn.transform=function(e,t,n){var r=ja(e),o=r||qa(e)||au(e);if(t=ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Xa(e)&&Wa(i)?Bn(qe(e)):{}}return(o?Tt:mr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Mn.unary=function(e){return Ca(e,1)},Mn.union=Qi,Mn.unionBy=$i,Mn.unionWith=ea,Mn.uniq=function(e){return e&&e.length?uo(e):[]},Mn.uniqBy=function(e,t){return e&&e.length?uo(e,ai(t,2)):[]},Mn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?uo(e,n,t):[]},Mn.unset=function(e,t){return null==e||so(e,t)},Mn.unzip=ta,Mn.unzipWith=na,Mn.update=function(e,t,n){return null==e?e:co(e,t,vo(n))},Mn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:co(e,t,vo(r),o)},Mn.values=Fu,Mn.valuesIn=function(e){return null==e?[]:Zt(e,Ou(e))},Mn.without=ra,Mn.words=Wu,Mn.wrap=function(e,t){return Ua(vo(t),e)},Mn.xor=oa,Mn.xorBy=ia,Mn.xorWith=aa,Mn.zip=ua,Mn.zipObject=function(e,t){return ho(e||[],t||[],$n)},Mn.zipObjectDeep=function(e,t){return ho(e||[],t||[],Zr)},Mn.zipWith=sa,Mn.entries=xu,Mn.entriesIn=Pu,Mn.extend=yu,Mn.extendWith=mu,os(Mn,Mn),Mn.add=gs,Mn.attempt=Yu,Mn.camelCase=Mu,Mn.capitalize=Bu,Mn.ceil=vs,Mn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=pu(r))==r?r:0),t!==n&&(t=(t=pu(t))==t?t:0),ir(pu(e),t,r)},Mn.clone=function(e){return ar(e,4)},Mn.cloneDeep=function(e){return ar(e,5)},Mn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:n)},Mn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:n)},Mn.conformsTo=function(e,t){return null==t||ur(e,t,Du(t))},Mn.deburr=Vu,Mn.defaultTo=function(e,t){return null==e||e!=e?t:e},Mn.divide=ys,Mn.endsWith=function(e,t,r){e=gu(e),t=ao(t);var o=e.length,i=r=r===n?o:ir(fu(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Mn.eq=Fa,Mn.escape=function(e){return(e=gu(e))&&W.test(e)?e.replace(H,tn):e},Mn.escapeRegExp=function(e){return(e=gu(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Mn.every=function(e,t,r){var o=ja(e)?It:dr;return r&&yi(e,t,r)&&(t=n),o(e,ai(t,3))},Mn.find=pa,Mn.findIndex=Vi,Mn.findKey=function(e,t){return Ft(e,ai(t,3),mr)},Mn.findLast=ha,Mn.findLastIndex=ji,Mn.findLastKey=function(e,t){return Ft(e,ai(t,3),Er)},Mn.floor=ms,Mn.forEach=ga,Mn.forEachRight=va,Mn.forIn=function(e,t){return null==e?e:vr(e,ai(t,3),Ou)},Mn.forInRight=function(e,t){return null==e?e:yr(e,ai(t,3),Ou)},Mn.forOwn=function(e,t){return e&&mr(e,ai(t,3))},Mn.forOwnRight=function(e,t){return e&&Er(e,ai(t,3))},Mn.get=wu,Mn.gt=Ma,Mn.gte=Ba,Mn.has=function(e,t){return null!=e&&pi(e,t,Tr)},Mn.hasIn=Cu,Mn.head=Ki,Mn.identity=es,Mn.includes=function(e,t,n,r){e=Ka(e)?e:Fu(e),n=n&&!r?fu(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),ou(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Bt(e,t,n)>-1},Mn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fu(n);return o<0&&(o=vn(r+o,0)),Bt(e,t,o)},Mn.inRange=function(e,t,r){return t=lu(t),r===n?(r=t,t=0):r=lu(r),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=pu(e),t,r)},Mn.invoke=Iu,Mn.isArguments=Va,Mn.isArray=ja,Mn.isArrayBuffer=za,Mn.isArrayLike=Ka,Mn.isArrayLikeObject=Ga,Mn.isBoolean=function(e){return!0===e||!1===e||Qa(e)&&wr(e)==g},Mn.isBuffer=qa,Mn.isDate=Ha,Mn.isElement=function(e){return Qa(e)&&1===e.nodeType&&!tu(e)},Mn.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(ja(e)||"string"==typeof e||"function"==typeof e.splice||qa(e)||au(e)||Va(e)))return!e.length;var t=di(e);if(t==_||t==k)return!e.size;if(bi(e))return!Ur(e).length;for(var n in e)if(Ue.call(e,n))return!1;return!0},Mn.isEqual=function(e,t){return Rr(e,t)},Mn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Rr(e,t,n,r):!!o},Mn.isError=Ja,Mn.isFinite=function(e){return"number"==typeof e&&Gt(e)},Mn.isFunction=Wa,Mn.isInteger=Ya,Mn.isLength=Za,Mn.isMap=$a,Mn.isMatch=function(e,t){return e===t||Sr(e,t,si(t))},Mn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Sr(e,t,si(t),r)},Mn.isNaN=function(e){return eu(e)&&e!=+e},Mn.isNative=function(e){if(_i(e))throw new Ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},Mn.isNil=function(e){return null==e},Mn.isNull=function(e){return null===e},Mn.isNumber=eu,Mn.isObject=Xa,Mn.isObjectLike=Qa,Mn.isPlainObject=tu,Mn.isRegExp=nu,Mn.isSafeInteger=function(e){return Ya(e)&&e>=-9007199254740991&&e<=c},Mn.isSet=ru,Mn.isString=ou,Mn.isSymbol=iu,Mn.isTypedArray=au,Mn.isUndefined=function(e){return e===n},Mn.isWeakMap=function(e){return Qa(e)&&di(e)==O},Mn.isWeakSet=function(e){return Qa(e)&&"[object WeakSet]"==wr(e)},Mn.join=function(e,t){return null==e?"":hn.call(e,t)},Mn.kebabCase=ju,Mn.last=Ji,Mn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=fu(r))<0?vn(o+i,0):yn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Mt(e,jt,i,!0)},Mn.lowerCase=zu,Mn.lowerFirst=Ku,Mn.lt=uu,Mn.lte=su,Mn.max=function(e){return e&&e.length?pr(e,es,Cr):n},Mn.maxBy=function(e,t){return e&&e.length?pr(e,ai(t,2),Cr):n},Mn.mean=function(e){return zt(e,es)},Mn.meanBy=function(e,t){return zt(e,ai(t,2))},Mn.min=function(e){return e&&e.length?pr(e,es,xr):n},Mn.minBy=function(e,t){return e&&e.length?pr(e,ai(t,2),xr):n},Mn.stubArray=ds,Mn.stubFalse=ps,Mn.stubObject=function(){return{}},Mn.stubString=function(){return""},Mn.stubTrue=function(){return!0},Mn.multiply=Es,Mn.nth=function(e,t){return e&&e.length?Vr(e,fu(t)):n},Mn.noConflict=function(){return ft._===this&&(ft._=Be),this},Mn.noop=is,Mn.now=wa,Mn.pad=function(e,t,n){e=gu(e);var r=(t=fu(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return zo(gt(o),n)+e+zo(pt(o),n)},Mn.padEnd=function(e,t,n){e=gu(e);var r=(t=fu(t))?cn(e):0;return t&&r<t?e+zo(t-r,n):e},Mn.padStart=function(e,t,n){e=gu(e);var r=(t=fu(t))?cn(e):0;return t&&r<t?zo(t-r,n)+e:e},Mn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),En(gu(e).replace(re,""),t||0)},Mn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&yi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=lu(e),t===n?(t=e,e=0):t=lu(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=_n();return yn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return qr(e,t)},Mn.reduce=function(e,t,n){var r=ja(e)?Lt:qt,o=arguments.length<3;return r(e,ai(t,4),n,o,lr)},Mn.reduceRight=function(e,t,n){var r=ja(e)?Ut:qt,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},Mn.repeat=function(e,t,r){return t=(r?yi(e,t,r):t===n)?1:fu(t),Hr(gu(e),t)},Mn.replace=function(){var e=arguments,t=gu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mn.result=function(e,t,r){var o=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[Ui(t[o])];a===n&&(o=i,a=r),e=Wa(a)?a.call(e):a}return e},Mn.round=_s,Mn.runInContext=e,Mn.sample=function(e){return(ja(e)?Yn:Wr)(e)},Mn.size=function(e){if(null==e)return 0;if(Ka(e))return ou(e)?cn(e):e.length;var t=di(e);return t==_||t==k?e.size:Ur(e).length},Mn.snakeCase=Gu,Mn.some=function(e,t,r){var o=ja(e)?xt:to;return r&&yi(e,t,r)&&(t=n),o(e,ai(t,3))},Mn.sortedIndex=function(e,t){return no(e,t)},Mn.sortedIndexBy=function(e,t,n){return ro(e,t,ai(n,2))},Mn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Mn.sortedLastIndex=function(e,t){return no(e,t,!0)},Mn.sortedLastIndexBy=function(e,t,n){return ro(e,t,ai(n,2),!0)},Mn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Mn.startCase=qu,Mn.startsWith=function(e,t,n){return e=gu(e),n=null==n?0:ir(fu(n),0,e.length),t=ao(t),e.slice(n,n+t.length)==t},Mn.subtract=bs,Mn.sum=function(e){return e&&e.length?Ht(e,es):0},Mn.sumBy=function(e,t){return e&&e.length?Ht(e,ai(t,2)):0},Mn.template=function(e,t,r){var o=Mn.templateSettings;r&&yi(e,t,r)&&(t=n),e=gu(e),t=mu({},t,o,Zo);var i,a,u=mu({},t.imports,o.imports,Zo),s=Du(u),c=Zt(u,s),l=0,f=t.interpolate||Ee,d="__p += '",p=ke((t.escape||Ee).source+"|"+f.source+"|"+(f===X?fe:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),h="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(p,(function(t,n,r,o,u,s){return r||(r=o),d+=e.slice(l,s).replace(_e,nn),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),u&&(a=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+t.length,t})),d+="';\n";var g=Ue.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new Ae("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(j,""):d).replace(K,"$1").replace(G,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Yu((function(){return we(s,h+"return "+d).apply(n,c)}));if(v.source=d,Ja(v))throw v;return v},Mn.times=function(e,t){if((e=fu(e))<1||e>c)return[];var n=f,r=yn(e,f);t=ai(t),e-=f;for(var o=Jt(r,t);++n<e;)t(n);return o},Mn.toFinite=lu,Mn.toInteger=fu,Mn.toLength=du,Mn.toLower=function(e){return gu(e).toLowerCase()},Mn.toNumber=pu,Mn.toSafeInteger=function(e){return e?ir(fu(e),-9007199254740991,c):0===e?e:0},Mn.toString=gu,Mn.toUpper=function(e){return gu(e).toUpperCase()},Mn.trim=function(e,t,r){if((e=gu(e))&&(r||t===n))return Wt(e);if(!e||!(t=ao(t)))return e;var o=ln(e),i=ln(t);return Eo(o,Qt(o,i),$t(o,i)+1).join("")},Mn.trimEnd=function(e,t,r){if((e=gu(e))&&(r||t===n))return e.slice(0,fn(e)+1);if(!e||!(t=ao(t)))return e;var o=ln(e);return Eo(o,0,$t(o,ln(t))+1).join("")},Mn.trimStart=function(e,t,r){if((e=gu(e))&&(r||t===n))return e.replace(re,"");if(!e||!(t=ao(t)))return e;var o=ln(e);return Eo(o,Qt(o,ln(t))).join("")},Mn.truncate=function(e,t){var r=30,o="...";if(Xa(t)){var i="separator"in t?t.separator:i;r="length"in t?fu(t.length):r,o="omission"in t?ao(t.omission):o}var a=(e=gu(e)).length;if(rn(e)){var u=ln(e);a=u.length}if(r>=a)return e;var s=r-cn(o);if(s<1)return o;var c=u?Eo(u,0,s).join(""):e.slice(0,s);if(i===n)return c+o;if(u&&(s+=c.length-s),nu(i)){if(e.slice(s).search(i)){var l,f=c;for(i.global||(i=ke(i.source,gu(de.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var d=l.index;c=c.slice(0,d===n?s:d)}}else if(e.indexOf(ao(i),s)!=s){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+o},Mn.unescape=function(e){return(e=gu(e))&&J.test(e)?e.replace(q,dn):e},Mn.uniqueId=function(e){var t=++xe;return gu(e)+t},Mn.upperCase=Hu,Mn.upperFirst=Ju,Mn.each=ga,Mn.eachRight=va,Mn.first=Ki,os(Mn,(hs={},mr(Mn,(function(e,t){Ue.call(Mn.prototype,t)||(hs[t]=e)})),hs),{chain:!1}),Mn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mn[e].placeholder=Mn})),Tt(["drop","take"],(function(e,t){zn.prototype[e]=function(r){r=r===n?1:vn(fu(r),0);var o=this.__filtered__&&!t?new zn(this):this.clone();return o.__filtered__?o.__takeCount__=yn(r,o.__takeCount__):o.__views__.push({size:yn(r,f),type:e+(o.__dir__<0?"Right":"")}),o},zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");zn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");zn.prototype[e]=function(){return this.__filtered__?new zn(this):this[n](1)}})),zn.prototype.compact=function(){return this.filter(es)},zn.prototype.find=function(e){return this.filter(e).head()},zn.prototype.findLast=function(e){return this.reverse().find(e)},zn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new zn(this):this.map((function(n){return Dr(n,e,t)}))})),zn.prototype.reject=function(e){return this.filter(Na(ai(e)))},zn.prototype.slice=function(e,t){e=fu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=fu(t))<0?r.dropRight(-t):r.take(t-e)),r)},zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zn.prototype.toArray=function(){return this.take(f)},mr(zn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Mn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Mn.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,s=t instanceof zn,c=u[0],l=s||ja(t),f=function(e){var t=i.apply(Mn,Nt([e],u));return o&&d?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,g=s&&!p;if(!a&&l){t=g?t:new zn(this);var v=e.apply(t,u);return v.__actions__.push({func:la,args:[f],thisArg:n}),new jn(v,d)}return h&&g?e.apply(this,u):(v=this.thru(f),h?o?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Mn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ja(o)?o:[],e)}return this[n]((function(n){return t.apply(ja(n)?n:[],e)}))}})),mr(zn.prototype,(function(e,t){var n=Mn[t];if(n){var r=n.name+"";Ue.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[Mo(n,2).name]=[{name:"wrapper",func:n}],zn.prototype.clone=function(){var e=new zn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},zn.prototype.reverse=function(){if(this.__filtered__){var e=new zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ja(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,s=u-a,c=r?u:a-1,l=this.__iteratees__,f=l.length,d=0,p=yn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return fo(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var g=-1,v=e[c+=t];++g<f;){var y=l[g],m=y.iteratee,E=y.type,_=m(v);if(2==E)v=_;else if(!_){if(1==E)continue e;break e}}h[d++]=v}return h},Mn.prototype.at=fa,Mn.prototype.chain=function(){return ca(this)},Mn.prototype.commit=function(){return new jn(this.value(),this.__chain__)},Mn.prototype.next=function(){this.__values__===n&&(this.__values__=cu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Mn.prototype.plant=function(e){for(var t,r=this;r instanceof Vn;){var o=Pi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Mn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zn){var t=e;return this.__actions__.length&&(t=new zn(this)),(t=t.reverse()).__actions__.push({func:la,args:[Xi],thisArg:n}),new jn(t,this.__chain__)}return this.thru(Xi)},Mn.prototype.toJSON=Mn.prototype.valueOf=Mn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Mn.prototype.first=Mn.prototype.head,Qe&&(Mn.prototype[Qe]=function(){return this}),Mn}();pt?((pt.exports=pn)._=pn,dt._=pn):ft._=pn}).call(z)}(ue,ue.exports);var se=K(ue.exports),ce="29.151.0",le={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function fe(e){le=e}var de=/[&<>"']/,pe=new RegExp(de.source,"g"),he=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ge=new RegExp(he.source,"g"),ve={"&":"&","<":"<",">":">",'"':""","'":"'"},ye=function(e){return ve[e]};function me(e,t){if(t){if(de.test(e))return e.replace(pe,ye)}else if(he.test(e))return e.replace(ge,ye);return e}var Ee=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function _e(e){return e.replace(Ee,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var be=/(^|[^\[])\^/g;function Ae(e,t){var n="string"==typeof e?e:e.source;t=t||"";var r={replace:function(e,t){var o="string"==typeof t?t:t.source;return o=o.replace(be,"$1"),n=n.replace(e,o),r},getRegex:function(){return new RegExp(n,t)}};return r}function we(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}var Ce={exec:function(){return null}};function Te(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,o=t;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function ke(e,t,n){var r=e.length;if(0===r)return"";for(var o=0;o<r;){var i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.slice(0,r-o)}function Ie(e,t,n,r){var o=t.href,i=t.title?me(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var u={type:"link",raw:n,href:o,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,u}return{type:"image",raw:n,href:o,title:i,text:me(a)}}var De=function(){function e(t){v(this,e),E(this,"options",void 0),E(this,"rules",void 0),E(this,"lexer",void 0),this.options=t||le}return m(e,[{key:"space",value:function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ke(n,"\n")}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:p(t,1)[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=ke(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");n=ke(n.replace(/^ *>[ \t]?/gm,""),"\n");var r=this.lexer.state.top;this.lexer.state.top=!0;var o=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:o,text:n}}}},{key:"list",value:function(e){var t=this.rules.block.list.exec(e);if(t){var n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?"\\d{1,9}\\".concat(n.slice(-1)):"\\".concat(n),this.options.pedantic&&(n=r?n:"[*+-]");for(var i=new RegExp("^( {0,3}".concat(n,")((?:[\t ][^\\n]*)?(?:\\n|$))")),a="",u="",s=!1;e;){var c=!1;if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);var l=t[2].split("\n",1)[0].replace(/^\t+/,(function(e){return" ".repeat(3*e.length)})),f=e.split("\n",1)[0],d=0;this.options.pedantic?(d=2,u=l.trimStart()):(d=(d=t[2].search(/[^ ]/))>4?1:d,u=l.slice(d),d+=t[1].length);var p=!1;if(!l&&/^ *$/.test(f)&&(a+=f+"\n",e=e.substring(f.length+1),c=!0),!c)for(var h=new RegExp("^ {0,".concat(Math.min(3,d-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),g=new RegExp("^ {0,".concat(Math.min(3,d-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),v=new RegExp("^ {0,".concat(Math.min(3,d-1),"}(?:```|~~~)")),y=new RegExp("^ {0,".concat(Math.min(3,d-1),"}#"));e;){var m=e.split("\n",1)[0];if(f=m,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),v.test(f))break;if(y.test(f))break;if(h.test(f))break;if(g.test(e))break;if(f.search(/[^ ]/)>=d||!f.trim())u+="\n"+f.slice(d);else{if(p)break;if(l.search(/[^ ]/)>=4)break;if(v.test(l))break;if(y.test(l))break;if(g.test(l))break;u+="\n"+f}p||f.trim()||(p=!0),a+=m+"\n",e=e.substring(m.length+1),l=f.slice(d)}o.loose||(s?o.loose=!0:/\n *\n *$/.test(a)&&(s=!0));var E=void 0,_=null;this.options.gfm&&(_=/^\[[ xX]\] /.exec(u))&&(E="[ ] "!==_[0],u=u.replace(/^\[[ xX]\] +/,"")),o.items.push({type:"list_item",raw:a,task:!!_,checked:E,loose:!1,text:u,tokens:[]}),o.raw+=a}o.items[o.items.length-1].raw=a.trimEnd(),o.items[o.items.length-1].text=u.trimEnd(),o.raw=o.raw.trimEnd();for(var b=0;b<o.items.length;b++)if(this.lexer.state.top=!1,o.items[b].tokens=this.lexer.blockTokens(o.items[b].text,[]),!o.loose){var A=o.items[b].tokens.filter((function(e){return"space"===e.type})),w=A.length>0&&A.some((function(e){return/\n.*\n/.test(e.raw)}));o.loose=w}if(o.loose)for(var C=0;C<o.items.length;C++)o.items[C].loose=!0;return o}}},{key:"html",value:function(e){var t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}},{key:"def",value:function(e){var t=this.rules.block.def.exec(e);if(t){var n=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:o}}}},{key:"table",value:function(e){var t=this,n=this.rules.block.table.exec(e);if(n&&/[:|]/.test(n[2])){var r=Te(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),i=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split("\n"):[],a={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){var u,s=d(o);try{for(s.s();!(u=s.n()).done;){var c=u.value;/^ *-+: *$/.test(c)?a.align.push("right"):/^ *:-+: *$/.test(c)?a.align.push("center"):/^ *:-+ *$/.test(c)?a.align.push("left"):a.align.push(null)}}catch(e){s.e(e)}finally{s.f()}var l,f=d(r);try{for(f.s();!(l=f.n()).done;){var p=l.value;a.header.push({text:p,tokens:this.lexer.inline(p)})}}catch(e){f.e(e)}finally{f.f()}var h,g=d(i);try{for(g.s();!(h=g.n()).done;){var v=h.value;a.rows.push(Te(v,a.header.length).map((function(e){return{text:e,tokens:t.lexer.inline(e)}})))}}catch(e){g.e(e)}finally{g.f()}return a}}}},{key:"lheading",value:function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}},{key:"paragraph",value:function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}},{key:"text",value:function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}},{key:"escape",value:function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:me(t[1])}}},{key:"tag",value:function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=ke(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var o=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return-1}(t[2],"()");if(o>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var a=t[2],u="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);s&&(a=s[1],u=s[3])}else u=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(a=this.options.pedantic&&!/>$/.test(n)?a.slice(1):a.slice(1,-1)),Ie(t,{href:a?a.replace(this.rules.inline.anyPunctuation,"$1"):a,title:u?u.replace(this.rules.inline.anyPunctuation,"$1"):u},t[0],this.lexer)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!r){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return Ie(n,r,n[0],this.lexer)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrongLDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){var o,i,a=f(r[0]).length-1,u=a,s=0,c="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=c.exec(t));)if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(i=f(o).length,r[3]||r[4])u+=i;else if(!((r[5]||r[6])&&a%3)||(a+i)%3){if(!((u-=i)>0)){i=Math.min(i,i+u+s);var l=f(r[0])[0].length,d=e.slice(0,a+r.index+l+i);if(Math.min(a,i)%2){var p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}var h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}else s+=i}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=me(n,!0),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}},{key:"autolink",value:function(e){var t,n,r=this.rules.inline.autolink.exec(e);if(r)return n="@"===r[2]?"mailto:"+(t=me(r[1])):t=me(r[1]),{type:"link",raw:r[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}},{key:"url",value:function(e){var t;if(t=this.rules.inline.url.exec(e)){var n,r;if("@"===t[2])r="mailto:"+(n=me(t[0]));else{var o;do{var i,a;o=t[0],t[0]=null!==(i=null===(a=this.rules.inline._backpedal.exec(t[0]))||void 0===a?void 0:a[0])&&void 0!==i?i:""}while(o!==t[0]);n=me(t[0]),r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}},{key:"inlineText",value:function(e){var t,n=this.rules.inline.text.exec(e);if(n)return t=this.lexer.state.inRawBlock?n[0]:me(n[0]),{type:"text",raw:n[0],text:t}}}]),e}(),Oe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Re=/(?:[*+-]|\d{1,9}[.)])/,Se=Ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Re).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ne=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Le=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ue=Ae(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Le).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xe=Ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Re).getRegex(),Pe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Fe=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Me=Ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Fe).replace("tag",Pe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Be=Ae(Ne).replace("hr",Oe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Pe).getRegex(),Ve={blockquote:Ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Be).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:Ue,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Oe,html:Me,lheading:Se,list:xe,newline:/^(?: *(?:\n|$))+/,paragraph:Be,table:Ce,text:/^[^\n]+/},je=Ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Oe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Pe).getRegex(),ze=l(l({},Ve),{},{table:je,paragraph:Ae(Ne).replace("hr",Oe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Pe).getRegex()}),Ke=l(l({},Ve),{},{html:Ae("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Fe).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ce,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ae(Ne).replace("hr",Oe).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Se).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Ge=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,qe=/^( {2,}|\\)\n(?!\s*$)/,He="\\p{P}\\p{S}",Je=Ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,He).getRegex(),We=Ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,He).getRegex(),Ye=Ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,He).getRegex(),Ze=Ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,He).getRegex(),Xe=Ae(/\\([punct])/,"gu").replace(/punct/g,He).getRegex(),Qe=Ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),$e=Ae(Fe).replace("(?:--\x3e|$)","--\x3e").getRegex(),et=Ae("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",$e).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,nt=Ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",tt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rt=Ae(/^!?\[(label)\]\[(ref)\]/).replace("label",tt).replace("ref",Le).getRegex(),ot=Ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",Le).getRegex(),it={_backpedal:Ce,anyPunctuation:Xe,autolink:Qe,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:qe,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ce,emStrongLDelim:We,emStrongRDelimAst:Ye,emStrongRDelimUnd:Ze,escape:Ge,link:nt,nolink:ot,punctuation:Je,reflink:rt,reflinkSearch:Ae("reflink|nolink(?!\\()","g").replace("reflink",rt).replace("nolink",ot).getRegex(),tag:et,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Ce},at=l(l({},it),{},{link:Ae(/^!?\[(label)\]\((.*?)\)/).replace("label",tt).getRegex(),reflink:Ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tt).getRegex()}),ut=l(l({},it),{},{escape:Ae(Ge).replace("])","~|])").getRegex(),url:Ae(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),st=l(l({},ut),{},{br:Ae(qe).replace("{2,}","*").getRegex(),text:Ae(ut.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),ct={normal:Ve,gfm:ze,pedantic:Ke},lt={normal:it,gfm:ut,breaks:st,pedantic:at},ft=function(){function e(t){v(this,e),E(this,"tokens",void 0),E(this,"options",void 0),E(this,"state",void 0),E(this,"tokenizer",void 0),E(this,"inlineQueue",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||le,this.options.tokenizer=this.options.tokenizer||new De,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:ct.normal,inline:lt.normal};this.options.pedantic?(n.block=ct.pedantic,n.inline=lt.pedantic):this.options.gfm&&(n.block=ct.gfm,this.options.breaks?n.inline=lt.breaks:n.inline=lt.gfm),this.tokenizer.rules=n}return m(e,[{key:"lex",value:function(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(var t=0;t<this.inlineQueue.length;t++){var n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}},{key:"blockTokens",value:function(e){var t,n,r,o,i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,n){return t+" ".repeat(n.length)}));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(t=n.call({lexer:i},e,a))&&(e=e.substring(t.raw.length),a.push(t),!0)}))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&a.length>0?a[a.length-1].raw+="\n":a.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?a.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),a.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){var u=1/0,s=e.slice(1),c=void 0;this.options.extensions.startBlock.forEach((function(e){"number"==typeof(c=e.call({lexer:i},s))&&c>=0&&(u=Math.min(u,c))})),u<1/0&&u>=0&&(r=e.substring(0,u+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=a[a.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):a.push(t),o=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),(n=a[a.length-1])&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):a.push(t);else if(e){var l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}return this.state.top=!0,a}},{key:"inline",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}},{key:"inlineTokens",value:function(e){var t,n,r,o,i,a,u=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=e;if(this.tokens.links){var l=Object.keys(this.tokens.links);if(l.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(c));)l.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,o.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(i||(a=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(t=n.call({lexer:u},e,s))&&(e=e.substring(t.raw.length),s.push(t),!0)}))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),(n=s[s.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),(n=s[s.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.emStrong(e,c,a))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.autolink(e))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e))){if(r=e,this.options.extensions&&this.options.extensions.startInline){var f=1/0,d=e.slice(1),p=void 0;this.options.extensions.startInline.forEach((function(e){"number"==typeof(p=e.call({lexer:u},d))&&p>=0&&(f=Math.min(f,p))})),f<1/0&&f>=0&&(r=e.substring(0,f+1))}if(t=this.tokenizer.inlineText(r))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),i=!0,(n=s[s.length-1])&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(t.raw.length),s.push(t);return s}}],[{key:"rules",get:function(){return{block:ct,inline:lt}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}]),e}(),dt=function(){function e(t){v(this,e),E(this,"options",void 0),this.options=t||le}return m(e,[{key:"code",value:function(e,t,n){var r,o=null===(r=(t||"").match(/^\S*/))||void 0===r?void 0:r[0];return e=e.replace(/\n$/,"")+"\n",o?'<pre><code class="language-'+me(o)+'">'+(n?e:me(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:me(e,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}},{key:"html",value:function(e,t){return e}},{key:"heading",value:function(e,t,n){return"<h".concat(t,">").concat(e,"</h").concat(t,">\n")}},{key:"hr",value:function(){return"<hr>\n"}},{key:"list",value:function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}},{key:"listitem",value:function(e,t,n){return"<li>".concat(e,"</li>\n")}},{key:"checkbox",value:function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}},{key:"paragraph",value:function(e){return"<p>".concat(e,"</p>\n")}},{key:"table",value:function(e,t){return t&&(t="<tbody>".concat(t,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}},{key:"tablerow",value:function(e){return"<tr>\n".concat(e,"</tr>\n")}},{key:"tablecell",value:function(e,t){var n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"</".concat(n,">\n")}},{key:"strong",value:function(e){return"<strong>".concat(e,"</strong>")}},{key:"em",value:function(e){return"<em>".concat(e,"</em>")}},{key:"codespan",value:function(e){return"<code>".concat(e,"</code>")}},{key:"br",value:function(){return"<br>"}},{key:"del",value:function(e){return"<del>".concat(e,"</del>")}},{key:"link",value:function(e,t,n){var r=we(e);if(null===r)return n;var o='<a href="'+(e=r)+'"';return t&&(o+=' title="'+t+'"'),o+">"+n+"</a>"}},{key:"image",value:function(e,t,n){var r=we(e);if(null===r)return n;var o='<img src="'.concat(e=r,'" alt="').concat(n,'"');return t&&(o+=' title="'.concat(t,'"')),o+">"}},{key:"text",value:function(e){return e}}]),e}(),pt=function(){function e(){v(this,e)}return m(e,[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,t,n){return""+n}},{key:"image",value:function(e,t,n){return""+n}},{key:"br",value:function(){return""}}]),e}(),ht=function(){function e(t){v(this,e),E(this,"options",void 0),E(this,"renderer",void 0),E(this,"textRenderer",void 0),this.options=t||le,this.options.renderer=this.options.renderer||new dt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new pt}return m(e,[{key:"parse",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="",r=0;r<e.length;r++){var o=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){var i=o,a=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==a||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){n+=a||"";continue}}switch(o.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":var u=o;n+=this.renderer.heading(this.parseInline(u.tokens),u.depth,_e(this.parseInline(u.tokens,this.textRenderer)));continue;case"code":var s=o;n+=this.renderer.code(s.text,s.lang,!!s.escaped);continue;case"table":for(var c=o,l="",f="",d=0;d<c.header.length;d++)f+=this.renderer.tablecell(this.parseInline(c.header[d].tokens),{header:!0,align:c.align[d]});l+=this.renderer.tablerow(f);for(var p="",h=0;h<c.rows.length;h++){var g=c.rows[h];f="";for(var v=0;v<g.length;v++)f+=this.renderer.tablecell(this.parseInline(g[v].tokens),{header:!1,align:c.align[v]});p+=this.renderer.tablerow(f)}n+=this.renderer.table(l,p);continue;case"blockquote":var y=o,m=this.parse(y.tokens);n+=this.renderer.blockquote(m);continue;case"list":for(var E=o,_=E.ordered,b=E.start,A=E.loose,w="",C=0;C<E.items.length;C++){var T=E.items[C],k=T.checked,I=T.task,D="";if(T.task){var O=this.renderer.checkbox(!!k);A?T.tokens.length>0&&"paragraph"===T.tokens[0].type?(T.tokens[0].text=O+" "+T.tokens[0].text,T.tokens[0].tokens&&T.tokens[0].tokens.length>0&&"text"===T.tokens[0].tokens[0].type&&(T.tokens[0].tokens[0].text=O+" "+T.tokens[0].tokens[0].text)):T.tokens.unshift({type:"text",text:O+" "}):D+=O+" "}D+=this.parse(T.tokens,A),w+=this.renderer.listitem(D,I,!!k)}n+=this.renderer.list(w,_,b);continue;case"html":var R=o;n+=this.renderer.html(R.text,R.block);continue;case"paragraph":var S=o;n+=this.renderer.paragraph(this.parseInline(S.tokens));continue;case"text":for(var N=o,L=N.tokens?this.parseInline(N.tokens):N.text;r+1<e.length&&"text"===e[r+1].type;)L+="\n"+((N=e[++r]).tokens?this.parseInline(N.tokens):N.text);n+=t?this.renderer.paragraph(L):L;continue;default:var U='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(U),"";throw new Error(U)}}return n}},{key:"parseInline",value:function(e,t){t=t||this.renderer;for(var n="",r=0;r<e.length;r++){var o=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){var i=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=i||"";continue}}switch(o.type){case"escape":var a=o;n+=t.text(a.text);break;case"html":var u=o;n+=t.html(u.text);break;case"link":var s=o;n+=t.link(s.href,s.title,this.parseInline(s.tokens,t));break;case"image":var c=o;n+=t.image(c.href,c.title,c.text);break;case"strong":var l=o;n+=t.strong(this.parseInline(l.tokens,t));break;case"em":var f=o;n+=t.em(this.parseInline(f.tokens,t));break;case"codespan":var d=o;n+=t.codespan(d.text);break;case"br":n+=t.br();break;case"del":var p=o;n+=t.del(this.parseInline(p.tokens,t));break;case"text":var h=o;n+=t.text(h.text);break;default:var g='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}return n}}],[{key:"parse",value:function(t,n){return new e(n).parse(t)}},{key:"parseInline",value:function(t,n){return new e(n).parseInline(t)}}]),e}(),gt=function(){function e(t){v(this,e),E(this,"options",void 0),this.options=t||le}return m(e,[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}},{key:"processAllTokens",value:function(e){return e}}]),e}();E(gt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var vt=new(o=new WeakSet,i=new WeakSet,function(){function e(){v(this,e),u(this,i),u(this,o),E(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),E(this,"options",this.setOptions),E(this,"parse",s(this,o,yt).call(this,ft.lex,ht.parse)),E(this,"parseInline",s(this,o,yt).call(this,ft.lexInline,ht.parseInline)),E(this,"Parser",ht),E(this,"Renderer",dt),E(this,"TextRenderer",pt),E(this,"Lexer",ft),E(this,"Tokenizer",De),E(this,"Hooks",gt),this.use.apply(this,arguments)}return m(e,[{key:"walkTokens",value:function(e,t){var n,r=this,o=[],i=d(e);try{var a=function(){var e=n.value;switch(o=o.concat(t.call(r,e)),e.type){case"table":var i,a=e,u=d(a.header);try{for(u.s();!(i=u.n()).done;){var s=i.value;o=o.concat(r.walkTokens(s.tokens,t))}}catch(e){u.e(e)}finally{u.f()}var c,l=d(a.rows);try{for(l.s();!(c=l.n()).done;){var f,p=d(c.value);try{for(p.s();!(f=p.n()).done;){var h=f.value;o=o.concat(r.walkTokens(h.tokens,t))}}catch(e){p.e(e)}finally{p.f()}}}catch(e){l.e(e)}finally{l.f()}break;case"list":var g=e;o=o.concat(r.walkTokens(g.items,t));break;default:var v,y,m=e;null!==(v=r.defaults.extensions)&&void 0!==v&&null!==(y=v.childTokens)&&void 0!==y&&y[m.type]?r.defaults.extensions.childTokens[m.type].forEach((function(e){var n=m[e].flat(1/0);o=o.concat(r.walkTokens(n,t))})):m.tokens&&(o=o.concat(r.walkTokens(m.tokens,t)))}};for(i.s();!(n=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}return o}},{key:"use",value:function(){for(var e=this,t=this.defaults.extensions||{renderers:{},childTokens:{}},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.forEach((function(n){var r=l({},n);if(r.async=e.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if("renderer"in e){var n=t.renderers[e.name];t.renderers[e.name]=n?function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=e.renderer.apply(this,r);return!1===i&&(i=n.apply(this,r)),i}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");var r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),r.extensions=t),n.renderer){var o=e.defaults.renderer||new dt(e.defaults),i=function(){if(!(a in o))throw new Error("renderer '".concat(a,"' does not exist"));if("options"===a)return 1;var e=a,t=n.renderer[e],r=o[e];o[e]=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=t.apply(o,n);return!1===a&&(a=r.apply(o,n)),a||""}};for(var a in n.renderer)i();r.renderer=o}if(n.tokenizer){var u=e.defaults.tokenizer||new De(e.defaults),s=function(){if(!(c in u))throw new Error("tokenizer '".concat(c,"' does not exist"));if(["options","rules","lexer"].includes(c))return 1;var e=c,t=n.tokenizer[e],r=u[e];u[e]=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var i=t.apply(u,n);return!1===i&&(i=r.apply(u,n)),i}};for(var c in n.tokenizer)s();r.tokenizer=u}if(n.hooks){var f=e.defaults.hooks||new gt,d=function(){if(!(p in f))throw new Error("hook '".concat(p,"' does not exist"));if("options"===p)return 1;var t=p,r=n.hooks[t],o=f[t];gt.passThroughHooks.has(p)?f[t]=function(t){if(e.defaults.async)return Promise.resolve(r.call(f,t)).then((function(e){return o.call(f,e)}));var n=r.call(f,t);return o.call(f,n)}:f[t]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=r.apply(f,t);return!1===i&&(i=o.apply(f,t)),i}};for(var p in n.hooks)d();r.hooks=f}if(n.walkTokens){var h=e.defaults.walkTokens,g=n.walkTokens;r.walkTokens=function(e){var t=[];return t.push(g.call(this,e)),h&&(t=t.concat(h.call(this,e))),t}}e.defaults=l(l({},e.defaults),r)})),this}},{key:"setOptions",value:function(e){return this.defaults=l(l({},this.defaults),e),this}},{key:"lexer",value:function(e,t){return ft.lex(e,null!=t?t:this.defaults)}},{key:"parser",value:function(e,t){return ht.parse(e,null!=t?t:this.defaults)}}]),e}());function yt(e,t){var n=this;return function(r,o){var a=l({},o),u=l(l({},n.defaults),a);!0===n.defaults.async&&!1===a.async&&(u.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),u.async=!0);var c=s(n,i,mt).call(n,!!u.silent,!!u.async);if(null==r)return c(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(u.hooks&&(u.hooks.options=u),u.async)return Promise.resolve(u.hooks?u.hooks.preprocess(r):r).then((function(t){return e(t,u)})).then((function(e){return u.hooks?u.hooks.processAllTokens(e):e})).then((function(e){return u.walkTokens?Promise.all(n.walkTokens(e,u.walkTokens)).then((function(){return e})):e})).then((function(e){return t(e,u)})).then((function(e){return u.hooks?u.hooks.postprocess(e):e})).catch(c);try{u.hooks&&(r=u.hooks.preprocess(r));var f=e(r,u);u.hooks&&(f=u.hooks.processAllTokens(f)),u.walkTokens&&n.walkTokens(f,u.walkTokens);var d=t(f,u);return u.hooks&&(d=u.hooks.postprocess(d)),d}catch(e){return c(e)}}}function mt(e,t){return function(n){if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){var r="<p>An error occurred:</p><pre>"+me(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}function Et(e,t){return vt.parse(e,t)}Et.options=Et.setOptions=function(e){return vt.setOptions(e),Et.defaults=vt.defaults,fe(Et.defaults),Et},Et.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Et.defaults=le,Et.use=function(){return vt.use.apply(vt,arguments),Et.defaults=vt.defaults,fe(Et.defaults),Et},Et.walkTokens=function(e,t){return vt.walkTokens(e,t)},Et.parseInline=vt.parseInline,Et.Parser=ht,Et.parser=ht.parse,Et.Renderer=dt,Et.TextRenderer=pt,Et.Lexer=ft,Et.lexer=ft.lex,Et.Tokenizer=De,Et.Hooks=gt,Et.parse=Et,Et.options,Et.setOptions,Et.use,Et.walkTokens,Et.parseInline,ht.parse,ft.lex;var _t,bt=(_t=function(e,t){return _t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_t(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_t(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),At=function(e){function t(t){var n=e.call(this,t)||this;return n.name="TypesError",n}return bt(t,e),t}(function(e){function t(t){var n=e.call(this,t)||this;return n.name=n.constructor.name,n.message=t,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(n,n.constructor):n.stack=new Error(t).stack,n}return bt(t,e),t}(Error)),wt={func:function(e){if(void 0===e)throw new At("value is not defined");return e}},Ct=Object.freeze({__proto__:null,defaults:{isFactory:!0,func:function(e,t){return e||t}},isRequired:wt});function Tt(e,t){return void 0===t&&(t=[]),Object.keys(Ct).forEach((function(n){var r=Ct[n],o=r.func,i=!0===r.isFactory;t.indexOf(n)>-1||Object.defineProperty(e,n,{get:function(){return i?function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Tt((function(n){var r=o.apply(void 0,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([n],t,!1));return e(r)}))}:Tt((function(t){var n=t;return n=o(n),e(n)}),t.concat([n]))}})})),e}function kt(e){return null!==e&&"object"==b(e)&&e.constructor===Object}var It={};It.string=Tt((function(e){if(void 0===e)return e;if("string"!=typeof e)throw new At("value is not a string");return e})),It.bool=Tt((function(e){if(void 0===e)return e;if("boolean"!=typeof e)throw new At("value is not a boolean");return e})),It.number=Tt((function(e){if(void 0===e)return e;if("number"!=typeof e)throw new At("value is not a number");return e})),It.array=Tt((function(e){if(void 0===e)return e;if(!Array.isArray(e))throw new At("value is not an array");return e})),It.array.of=function(e){return Tt((function(t){if(void 0===t)return t;if(!Array.isArray(t))throw new At("value is not an array");return t.map((function(t){return e(t)}))}))},It.enum=function(e){return void 0===e&&(e=[]),Array.isArray(e)||(e=[e]),Tt((function(t){if(void 0===t)return t;if(e.some((function(e){return t===e})))return t;throw new At("value is none of the provided enums")}))},It.object=Tt((function(e){if(void 0===e)return e;if(!kt(e))throw new At("value is not an object");return e})),It.object.of=function(e){if(!kt(e))throw new At("`object.of` must receive a plain object");return Tt((function(t){if(void 0===t)return t;if(!kt(t))throw new At("value is not an object");return function(e,t){return n=t,r=function(t,n){try{return t(e[n])}catch(e){throw new At("schema failed for key '"+n+"', "+e.message)}},Object.keys(n).reduce((function(e,t){var o=r(n[t],t);return void 0!==o&&(e[t]=o),e}),{});var n,r}(t,e)}))},It.const=function(e){return Tt((function(t){if(void 0===t)return t;if(t!==e)throw new At("value did not equal "+e);return t}))};var Dt=[],Ot={};function Rt(e,t,n,r){for(var o,i,a,u={},s=0,c=r;s<c.length;s++){var l=c[s],f=Ot[l];if(void 0===f)return void console.warn('[fe-events]: context "'+l+'" is not set when triggering event "'+e.name+'"');u[l]=f}try{var d=t(n);o=d,i=e,a=u,Dt.forEach((function(e){return e(o,i,a)}))}catch(t){console.warn('[fe-events]: event "'+e.name+'" - '+t.message)}}var St={gtm:!0,deprecated:!1,name:"appLaunch"},Nt=[],Lt=It.object.of({application:It.object.of({type:It.string.isRequired,version:It.string.isRequired,environment:It.enum(["development","edge","production","staging","testing"]).isRequired,device:It.object.of({model:It.string,platform:It.string.isRequired}).isRequired}).isRequired,clientId:It.string.isRequired,externalTrackingID:It.string.isRequired,userAgent:It.string,initialUrl:It.string.isRequired,launch:It.object.of({origin:It.string,deeplinkParameters:It.object.of({media:It.string,sport:It.string,league:It.string,event:It.string,targeting:It.string,creativeVersion:It.string}),eventId:It.string}).isRequired,idfa:It.string}),Ut={gtm:!0,deprecated:!1,name:"chapterLoad"},xt=[],Pt=It.object.of({chapter:It.enum(["account","auth","catalog","error","help","landingpage","picks","signin"]).isRequired,chapterVersion:It.string.isRequired,country:It.object.of({billingCountry:It.string.isRequired,geoCountry:It.string.isRequired,contentCountry:It.string.isRequired}).isRequired,customerId:It.string.isRequired,user:It.object.of({status:It.enum(["activegrace","activepaid","anonymous","blocked","expired","expiredmarketing","freetrial","frozen","partial","paused"]).isRequired,type:It.enum(["","dazn","dazn2","docomo","salesforce"]),loginStatus:It.enum(["loggedin","notloggedin"]).isRequired}).isRequired}),Ft=It.enum(["end of world","full screen","info popup","silent","toast"]),Mt={gtm:!0,bootstrap:!0,deprecated:!1,name:"errorImpression"},Bt=[],Vt=It.object.of({error:It.object.of({type:Ft.isRequired,itemType:It.const("error").isRequired,itemId:It.string.isRequired}).isRequired});function jt(e){return Rt(Mt,Vt,e,Bt)}var zt=["salesforce","docomo","dazn","dazn2"],Kt={landing:a.LANDING_PAGE,myAccount:a.MY_ACCOUNT},Gt=function(e){return Y.keysOf(e).reduce((function(t,n){var r=e[n];return r?(r.canLoadIfSignedIn&&(t.canLoadIfSignedInChapters[r.name]=r.urlIdentifiers),r.canLoadIfSignedOut&&(t.canLoadIfSignedOutChapters[r.name]=r.urlIdentifiers),t):t}),{canLoadIfSignedInChapters:{},canLoadIfSignedOutChapters:{}})};var qt=function(e,t){var n=document.createElement("script");return n.classList.add("protected"),!t&&n.setAttribute("async",""),n.setAttribute("type","text/javascript"),n.setAttribute("charset","UTF-8"),e&&Object.keys(e).forEach((function(t){n.setAttribute(t,e[t])})),n},Ht=function(e,t,n){var r=qt(t,n);r.innerHTML=e,document.head.appendChild(r)},Jt=["es-AR","es-CO","es-MX","fr-FR","ms-MY","pl-PL","ru-RU","th-TH","uk-UA","zh-TW","en-GB","bg-BG","nl-NL","hr-HR","fr-BE","nl-BE","pt-PT","zh-TW","es-MX","fr-FR"],Wt=function(e){var t=e.chapterName,n=e.startupCountry,r=e.chapterLanguage,o=navigator&&(navigator.language||"").split("-")[0].toLocaleLowerCase()||"en",i=t===a.LANDING_PAGE,u=Jt.includes("".concat(o,"-").concat((n||"EN").toUpperCase()));return i&&u?o:r.toLowerCase()},Yt=function(e){var t=e.document.cookie.split(";").find((function(e){return e.trim().startsWith("eupubconsent-v2")}));return null==t?void 0:t.split("=")[1]},Zt=function(e,t,n,r,o){var i={Authorization:"Bearer ".concat(e),"Content-Type":"application/json"};return r&&(i["X-Session-Id"]=r),!0===n()&&(i["X-Dazn-Marco"]="",i["X-Dazn-Device"]=t()),(null==o?void 0:o())&&(i["x-dazn-beta-locale"]="true"),i},Xt=function(e){try{if(!e||""===e)return null;var t=e.split(".");if(3!==t.length)throw new Error("Invalid JWT: JWT should consist of three parts (header, payload, signature).");for(var n=t[1].replace(/-/g,"+").replace(/_/g,"/");n.length%4;)n+="=";for(var r=window.atob(n),o=new Uint8Array(r.length),i=0;i<r.length;i++)o[i]=r.charCodeAt(i);var a=new TextDecoder("utf-8").decode(o),u=JSON.parse(a);return function(e){return e&&Object.keys(e).length>0}(u)?u:null}catch(t){var s=JSON.stringify(t);return window.newrelic.addPageAction("JWT_Token_Parsing_Failed",{error_message:s,token:e}),null}},Qt=function(e,t,n,r,o,i,a){return void 0===a&&(a=function(){return!1}),r?o(t,{method:"POST",headers:Zt("".concat(e),i,a,n),body:JSON.stringify({DeviceId:r}),cache:"no-store"}).catch((function(e){return Promise.reject(en.profileRequestFailed(e))})).then((function(e){return e.status>399?Promise.reject(en.serverError(e.status)):e.ok?e.json().catch((function(e){return Promise.reject(en.jsonParseFailed(e))})).then((function(t){return function(e){var t;return null===(t=null==e?void 0:e.AuthToken)||void 0===t?void 0:t.Token}(t)||Promise.reject(en.badToken(e.status))})):Promise.reject(en.responseNotOk())})):Promise.reject(en.deviceIdMissing())},$t={401:{message:"Token responded profile not authenticated",codeName:"UnathorizedRefreshTokenError"},403:{message:"Country not available",codeName:"RestrictedCountry"},429:{message:"Token responded not okay",codeName:"ServiceTooManyAttemps"},500:{message:"Token responded not okay",codeName:"GenericError"}},en={deviceIdMissing:function(){return Y.createEraroError("deviceId not defined",Y.eraroCodesMap.category.RefreshTokenService,Y.eraroCodesMap.code.GenericError,Y.eraroCodesMap.internal.NetworkError,new TypeError("deviceId not defined"))},serverError:function(e){var t=String(e),n=t in $t?$t[t]:$t[500],r=n.codeName,o=n.message;return Y.createEraroError(o,Y.eraroCodesMap.category.RefreshTokenService,Y.eraroCodesMap.code[r],t)},responseNotOk:function(){return Y.createEraroError("Token responded not okay",Y.eraroCodesMap.category.RefreshTokenService,Y.eraroCodesMap.code.GenericError,Y.eraroCodesMap.internal.NetworkError)},jsonParseFailed:function(e){return Y.createEraroError("Could not convert token response to JSON",Y.eraroCodesMap.category.RefreshTokenService,Y.eraroCodesMap.code.GenericError,Y.eraroCodesMap.internal.ParserError,e)},badToken:function(e){return Y.createEraroError($t[401].message,Y.eraroCodesMap.category.RefreshTokenService,Y.eraroCodesMap.code[$t[401].codeName],String(e))},profileRequestFailed:function(e){return Y.createEraroError("Token profile request failure",Y.eraroCodesMap.category.RefreshTokenService,Y.eraroCodesMap.code.GenericError,Y.eraroCodesMap.internal.NetworkError,e)}},tn=function(e){return M(void 0,void 0,void 0,(function(){var t,n;return B(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,fetch(e,{method:"GET",headers:{Accept:"application/json"}})];case 1:if(!(t=r.sent()).ok)throw new Error("HTTP error! status: ".concat(t.status));return 204===t.status?[2,{}]:[4,t.json()];case 2:return[2,r.sent()];case 3:throw n=r.sent(),console.error("[Liveramp]Error with API invocation",n),n;case 4:return[2]}}))}))},nn=function(e){return function(e){return M(this,void 0,void 0,(function(){var t,r,o,i,a,u;return B(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),t=Yt(window),r=window.dazn.startupData.ServiceDictionary.LiveRamp.Versions.v1.ServicePath,(o=n.g.PARTNER_TOKEN)?(i=Xt(o).hashEmail,r&&i?(a=function(e,t,n){var r=new URLSearchParams;n&&(r.append("it","4"),r.append("iv",n)),t&&(r.append("cv",t),r.append("ct","4"));var o=e.includes("?")?"&":"?";return"".concat(e).concat(o).concat(r.toString())}(r,t,i),[4,tn(a)]):[2]):[2];case 1:return function(e,t){var n,r,o=null===(r=null===(n=null==e?void 0:e.envelopes)||void 0===n?void 0:n.find((function(e){return 19===e.type&&"envelopeLiveramp"===e.source})))||void 0===r?void 0:r.value;o?function(e,t){var n=(new Date).getTime()+(t||1296e6),r=new Date(n).toUTCString();document.cookie="_lr_env=".concat(e,"; expires=").concat(r,"; path=/;"),document.cookie="_lr_env_exp=".concat(n,"; path=/;")}(o,t):function(){var e=new Date(0).toUTCString();document.cookie="_lr_env=; expires=".concat(e,"; path=/;"),document.cookie="_lr_env_exp=; expires=".concat(e,"; path=/;")}()}(s.sent(),e),[2];case 2:return u=s.sent(),console.error("[Liveramp]Error initilizing",u),[2];case 3:return[2]}}))}))}(e)},rn=function(e){var t=e.document.cookie.split(";").find((function(e){return e.trim().startsWith("_lr_env")}));return null==t?void 0:t.split("=")[1]},on=function(e){var t=e.document.cookie.split("; ").find((function(e){return e.startsWith("OptanonConsent")}));if(t){var n=V(/groups=(.*?)(?:$|&)/i.exec(decodeURIComponent(t))||[],2)[1];if(n)return n.split(",").reduce((function(e,t){var n=V(t.split(":"),2),r=n[0],o=n[1];return e[r]=o,e}),{})}},an="17ee4b6b-233e-41d3-a670-2085e68960ab",un="".concat(an,"-test"),sn=function(e){return"https://cdn.cookielaw.org/consent/".concat(c.PRODUCTION===e?an:un,"/otSDKStub.js")},cn=function(e){return c.PRODUCTION===e?an:un};function ln(e){var t=function(){var t,n=(new URLSearchParams(null===(t=e.location)||void 0===t?void 0:t.search).get(g)||localStorage.getItem(g)||"").toLowerCase();return w.includes(n)},r=function(r){var o,i,a,u,s=r.environment,c=r.chapterLanguage,l=r.chapterName,f=r.startupCountry,d=null===(o=e.dazn.auth.unstable_getDecodedJWT())||void 0===o?void 0:o.viewerId,p=n.g.PARTNER_TOKEN;try{if(t())return;if(Ht('\n (function(){var now = new Date();\n now.setTime(now.getTime() + 1 * 3600 * 1000 * 24 * 365);\n delete_cookie();\n \n function delete_cookie() {\n if ( !getCookie(\'cleared-onetrust-cookies\')) {\n console.log("entered");\n document.cookie = "OptanonAlertBoxClosed" + "=" + "; path=/" + "; domain=.www.dazn.com" + \'; expires=Thu, 01 Jan 1970 00:00:01 GMT\';\n document.cookie = "OptanonConsent" + "=" + "; path=/" + "; domain=.www.dazn.com" + \'; expires=Thu, 01 Jan 1970 00:00:01 GMT\';\n console.log("exit");\n } \n document.cookie = "cleared-onetrust-cookies" + "=" + "; path=/" + "; domain=.www.dazn.com" + "; expires="+now;\n console.log("test");\n }\n \n function getCookie( cookieName ) {\n var value = \'; \' + document.cookie;\n var parts = value.split( \'; \' + cookieName + \'=\' ); \n if ( parts.length == 2 ) {\n return true;\n }\n }\n })();\n '),p&&d){var h='\n var Onetrust = {\n dataSubjectParams: {\n id: "'.concat(d,'",\n isAnonymous: false,\n token: "').concat(p,'"\n }\n };\n ');Ht(h,{},!0)}}catch(e){console.error("Error fetching partner token:",e)}finally{if(t())return;i=sn(s),a={"data-domain-script":cn(s),"data-language":Wt({chapterName:l,startupCountry:f,chapterLanguage:c}),"data-document-language":"true"},(u=qt(a)).src=i,document.head.appendChild(u),Ht("function OptanonWrapper() { }")}},o=function(n){var r=n.environment;t()||(Ht("function OptanonWrapper() { }"),function(){var t;M(this,void 0,void 0,(function(){var n,o,i,a;return B(this,(function(u){switch(u.label){case 0:return[4,new Promise((function(e){return setTimeout(e,2e3)}))];case 1:return u.sent(),n=null===(t=e.dazn.auth.unstable_getDecodedJWT())||void 0===t?void 0:t.viewerId,e.PARTNER_TOKEN&&n&&(s='var OneTrust = { dataSubjectParams: { id: "'.concat(n,'", isAnonymous: false, token: "').concat(e.PARTNER_TOKEN,'" } }'),(c=document.createElement("script")).text=s,document.head.appendChild(c)),o=cn(r),i=document.getElementsByTagName("head")[0],(a=document.createElement("script")).type="text/javascript",a.src=sn(r),a.setAttribute("data-domain-script",o),a.setAttribute("data-document-language","true"),a.async=!1,i.appendChild(a),[2]}var s,c}))}))}())};return{run:function(t,n,i,a){var u=t.environment,s=t.lifecycleEvents,l=t.startupCountry,f=t.chapterLanguage,d=t.chapterName;c.TESTING!==u&&s.onChapterLoad((function(){var t,s,c=((t=document.createElement("style")).classList.add("protected"),t.innerHTML='\n [data-test-id="cookie-disclaimer-wrapper"],\n [data-test-id="COOKIE_CONTAINER"],\n [class^="cookie-disclaimer__container__"],\n [class^="cookie-banner__Wrapper"],\n [class^="CookieDisclaimer___cookie-disclaimer"],\n [data-test-id="COOKIE_CONTAINER"],\n [class^=cookieDisclaimer___container___],\n [class^=cookie-disclaimer___container___] {\n display: none !important;\n }\n',document.head.appendChild(t),function(){t&&t.parentElement&&t.parentElement.removeChild(t)});e.addEventListener("consent.onetrust",(function(){var t=0,n=e.setInterval((function(){var r;if(t+=1,e.Optanon){e.Optanon.GetDomainData().ShowAlertNotice||c();var o=e.dazn.auth.token,u=null===(r=e.dazn.auth.unstable_getDecodedJWT())||void 0===r?void 0:r.viewerId;i&&o&&u&&nn(a),e.clearInterval(n)}else t>10&&e.clearInterval(n)}),1e3)})),(s=e.location.pathname.match(/\/([a-z]{2}-[a-z]{2})\//i))&&document.documentElement.setAttribute("lang",s[1]),n?(Ht('\n (function(){var now = new Date();\n now.setTime(now.getTime() + 1 * 3600 * 1000 * 24 * 365);\n delete_cookie();\n \n function delete_cookie() {\n if ( !getCookie(\'cleared-onetrust-cookies\')) {\n console.log("entered");\n document.cookie = "OptanonAlertBoxClosed" + "=" + "; path=/" + "; domain=.www.dazn.com" + \'; expires=Thu, 01 Jan 1970 00:00:01 GMT\';\n document.cookie = "OptanonConsent" + "=" + "; path=/" + "; domain=.www.dazn.com" + \'; expires=Thu, 01 Jan 1970 00:00:01 GMT\';\n console.log("exit");\n } \n document.cookie = "cleared-onetrust-cookies" + "=" + "; path=/" + "; domain=.www.dazn.com" + "; expires="+now;\n console.log("test");\n }\n \n function getCookie( cookieName ) {\n var value = \'; \' + document.cookie;\n var parts = value.split( \'; \' + cookieName + \'=\' ); \n if ( parts.length == 2 ) {\n return true;\n }\n }\n })();\n '),o({environment:u})):r({environment:u,startupCountry:l,chapterLanguage:f,chapterName:d})}))},findAndDeleteCookieScripts:function(e,n){var i=e.environment,a=e.chapterLanguage,u=e.chapterName,s=e.startupCountry;t()||(document.head.querySelectorAll("script.protected").forEach((function(e){var t,n,r=e.getAttribute("src"),o=null===(t=e.textContent)||void 0===t?void 0:t.trim();((null==r?void 0:r.includes(cn(i)))||"function OptanonWrapper() { }"===o)&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})),n?o({environment:i}):r({environment:i,chapterLanguage:a,chapterName:u,startupCountry:s}))},getOneTrustConsentGroups:function(){return on(e)},getUserConsent:function(){return Promise.resolve().then((function(){var t=on(e)||{};return{performance:"1"===t.C0002,functional:"1"===t.C0003,targeting:"1"===t.C0004,googleAdsStorage:"1"===t.C0007,personalisedAds:"1"===t.C0008,gdprConsent:Yt(e),rampId:rn(e)}}))}}}function fn(e,t,n){var r="";if(n){var o=new Date;o.setTime(o.getTime()+60*n*1e3),r="; expires="+o.toUTCString()}var i=JSON.stringify(t);document.cookie=e+"="+encodeURIComponent(i)+r+"; path=/"}for(var dn,pn,hn="isDevModeEnabled",gn=function(e){var t;("string"==typeof e||e instanceof Error)&&(null===(t=window.newrelic)||void 0===t||t.noticeError(e))},vn=function(e,t,n,r){return Y.again((function(){return e(t).then((function(e){return n(e,r)})).catch((function(e){throw gn(e),e}))}))},yn=function(e){var t=e.error,n=e.sendErrorEvent,r=e.safeModeHomepageURL,o=e.safeModeOn;t&&console.error(t),function(e){var t,n=e.error,r=e.sendErrorEvent;null===(t=window.newrelic)||void 0===t||t.noticeError("End of the World: ".concat(n.message)),r({error:{itemId:Y.isEraroError(n)?[n.category,n.code,n.internal].join("-"):[Y.eraroCodesMap.category.General,Y.eraroCodesMap.code.GenericError,Y.eraroCodesMap.internal.GenericError].join("-"),itemType:"error",type:"end of world"}})}({error:t,sendErrorEvent:n}),function(e,t){void 0===t&&(t="");var n=window.document.getElementById("end-of-the-world");null!==n&&(n.innerHTML=e?"<style>\n @font-face {\n font-family: 'DAZNTrim';\n font-style: normal;\n font-weight: 400;\n src: url('https://static.dazndn.com/fonts/DAZNTrim_v2.9_normal_400.woff2')\n format('woff2'),\n url('https://static.dazndn.com/fonts/DAZNTrim_v2.9_normal_400.woff')\n format('woff');\n }\n #refresh {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n #refresh button {\n font-size: 20px;\n background-color: #f7ff1a;\n padding: 14px 24px 14px 24px;\n margin-top: 20px;\n border: none;\n width: 232px;\n\n font-family: 'DAZN Trim';\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n letter-spacing: 0em;\n text-align: center;\n text-transform: uppercase;\n text-decoration: none;\n color: #0c161c;\n cursor: pointer;\n }\n #refresh button:hover,\n #refresh button:focus {\n background-color: rgb(206, 209, 0);\n }\n</style>\n<div id=\"end-of-the-world-inner\">\n <p lang=\"en\">\n We're having trouble with our service right now. While we restore it, keep\n watching live events by selecting the option below.\n </p>\n <p lang=\"jp\">\n サーバーの不具合により、現在、一時的にDAZNへのアクセスができない状況です。復旧作業に取り組んでいる間、下記の選択より引き続き主なイベントをライブ配信でご覧ください。\n </p>\n <p lang=\"de\">\n Es liegt gerade ein technisches Problem vor. Bis unser Service\n wiederhergestellt wurde, kannst du wichtige Live-Events weiter verfolgen,\n indem du die folgende Option wählst.\n </p>\n <p lang=\"es\">\n Estamos teniendo problemas con el servicio. Mientras lo establecemos, sigue\n viendo eventos en directo seleccionando la opción a continuación.\n </p>\n <p lang=\"it\">\n Al momento abbiamo problemi con il servizio. Mentre lavoriamo per risolverli\n puoi continuare a guardare gli eventi live selezionando l'opzione di\n seguito.\n </p>\n <div id=\"refresh\">\n <button onclick=\"(function(){window.location.href='%URL%'})()\">\n continue watching\n </button>\n </div>\n</div>\n".replace("%URL%",t):'<div id="end-of-the-world-inner">\n <p lang="en">\n There\'s a problem opening DAZN just now. Try opening the application or\n browser again later.\n </p>\n <p lang="jp">\n DAZNを開く際に問題が発生しました。恐れ入りますが、しばらくしてからアプリまたはブラウザを再度開いてください。\n </p>\n <p lang="de">\n Beim Laden von DAZN ist ein Fehler aufgetreten. Bitte versuche die App oder\n die Seite später noch einmal aufzurufen.\n </p>\n <p lang="es">\n Hay un problema al abrir DAZN ahora. Intenta abrir la aplicación o el\n buscador nuevamente más tarde.\n </p>\n <p lang="it">\n Al momento c’è un problema nell’aprire DAZN. Prova a riaprire l’applicazione\n o il browser più tardi.\n </p>\n</div>\n',n.style&&(n.style.display=""))}(o,r),function(){var e,t,n,r,o;if(!window.dazn){var i="[Bootstrap] window.dazn is undefined while End of the World";console.error(i),null===(e=window.newrelic)||void 0===e||e.noticeError(new Error(i))}var a=window.dazn?window.dazn.application.exitApp:void 0;if(void 0!==a){var u=null===(n=null===(t=window.dazn.event)||void 0===t?void 0:t.back)||void 0===n?void 0:n.KEYDOWN;void 0!==u&&window.addEventListener(u,a);var s=null===(o=null===(r=window.dazn.event)||void 0===r?void 0:r.exit)||void 0===o?void 0:o.KEYDOWN;void 0!==s&&window.addEventListener(s,a)}}()},mn=function(e,t,n,r,o,i,a){var u=Y.isEraroError(a)?a:Y.createEraroError("Unknown error",t,n,r,a);return e({chapterName:o,chapterData:{errorCode:[u.category,u.code,u.internal].join("_"),chapter:"unknown"===i?void 0:i}})},En="ROW",_n="TEST",bn=function(e,t){return{countryCode:t||En,status:e[t]||e[En]}},An=function(e,t,n){var r,o,i=(null===(r=e[En])||void 0===r?void 0:r.status)||"GREEN",a=e[n];return{countryCode:n||En,status:(null===(o=null==a?void 0:a.platforms)||void 0===o?void 0:o.includes(t))?a.status:i}},wn=((dn={}).AWS=function(e){return e.json().then((function(e){return{countryCode:e.country_code,status:e.status}}))},dn.GCP_FIREDRILL=function(e,t){return e.json().then((function(e){return t===h.V4?An(e,"web",_n):bn(e,_n)}))},dn.GCP=function(e,t){return e.json().then((function(n){var r,o;return t===h.V4?An(n,"web",(null===(r=e.headers.get("dazn-country"))||void 0===r?void 0:r.split(",")[0])||""):bn(n,(null===(o=e.headers.get("dazn-country"))||void 0===o?void 0:o.split(",")[0])||"")}))},dn),Cn=18,Tn=[],kn=[];Cn>1;Cn--)for(pn=Cn;pn<320;)Tn[pn+=Cn]=1;function In(e,t){return 4294967296*Math.pow(e,1/t)|0}for(pn=0;pn<64;)Tn[++Cn]||(kn[pn]=In(Cn,2),Tn[pn++]=In(Cn,3));function Dn(e,t){return e>>>t|e<<-t}var On=function(e){return parseInt(function(e){var t=kn.slice(Cn=pn=0,8),n=[],r=unescape(encodeURI(e))+"",o=r.length;for(n[e=--o/4+2|15]=8*o;~o;)n[o>>2]|=r.charCodeAt(o)<<8*~o--;for(o=[];Cn<e;Cn+=16){for(In=t.slice();pn<64;In.unshift(r+(Dn(r=In[0],2)^Dn(r,13)^Dn(r,22))+(r&In[1]^In[1]&In[2]^In[2]&r)))In[3]+=r=0|(o[pn]=pn<16?~~n[pn+Cn]:(Dn(r=o[pn-2],17)^Dn(r,19)^r>>>10)+o[pn-7]+(Dn(r=o[pn-15],7)^Dn(r,18)^r>>>3)+o[pn-16])+In.pop()+(Dn(r=In[4],6)^Dn(r,11)^Dn(r,25))+(r&In[5]^~r&In[6])+Tn[pn++];for(pn=8;pn;)t[--pn]+=In[pn]}for(r="";pn<64;)r+=(t[pn>>3]>>4*(7-pn++)&15).toString(16);return r}(e).substr(0,2),16)/255},Rn=function(e,t){if(t&&e)return void 0!==t.from&&void 0!==t.to?e>=t.from&&e<t.to:void 0},Sn=["info","debug","warn","error"],Nn=function(e){var n=e.asyncStorage,r=e.level,o=e.isDevMode,i=e.isProd,a=e.type,u="featurevisor"===a?"featurevisorLogLevel":"optimizelyLogLevel";return n.getItem(u).then((function(e){return"featurevisor"===a?e&&JSON.parse(e):e})).then((function(e){if(e&&!o&&n.removeItem(u),!r||!r.length)return i?"optimizely"===a?t.enums.LOG_LEVEL.ERROR:["error"]:e&&o?e:function(e){return"optimizely"===e?t.enums.LOG_LEVEL.WARNING:["warn"]}(a);if(o){if(function(e,t){return"optimizely"===e&&"string"==typeof t?Sn.includes(t):!("featurevisor"!==e||!Array.isArray(t))&&t.every((function(e){return Sn.includes(e)}))}(a,r))return n.setItem(u,"string"==typeof r?r:JSON.stringify(r)),r;console.warn("[Bootstrap] Please provide a valid log level to use this feature (can be 'info', 'debug', 'warn', 'error').")}else console.warn("[Bootstrap] You must have devMode enabled to use this feature.")}))},Ln=/\/([a-z]{2})-([a-z]{2}|eu|global)\//,Un=function(){var e=Math.random();return function(e,t){for(var n=t.split("");n.length<10;)n.unshift("0");return n.join("")}(0,Math.floor(2147483647*e).toString(16))},xn=function(){var e=(new Date).getTime(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}));return t},Pn={},Fn=["bootstrap","target"],Mn=function(e){var t,n,r,o,i,a=e.asyncStorage,u=a.load,s=a.save,c=e.deviceDetails,l=c.platform,f=c.manufacturer,d=e.config,p=d.bootstrapVersion,h=d.targetVersion,v=d.environment,m=d.environmentGroup,E=d.sessionId,b=e.getCurrentUrl,A=e.fetchDeviceId,C={bootstrap:p,target:h},T=b(),k=function(e){if(!e||"string"!=typeof e)return Pn;var t;try{t=new URL(e)}catch(e){return Pn}var n=t.searchParams,r=j([],V(n.keys()),!1);return r.length<=0?Pn:r.reduce((function(e,t){var r=n.get(t)||"";return e[t]=r,e}),{})}(T);null===(t=window.newrelic)||void 0===t||t.setCustomAttribute("platform",l),null===(n=window.newrelic)||void 0===n||n.setCustomAttribute("manufacturer",f),null===(r=window.newrelic)||void 0===r||r.setCustomAttribute("environmentGroup",m);var I={getEnvironment:function(){return v},getEnvironmentGroup:function(){return m},getVersions:function(){return C},setChapterVersion:function(e,t){var n;return!Fn.some((function(t){return t===e}))&&"string"==typeof t&&(C[e]=t.replace(/_/g,"."),null===(n=window.newrelic)||void 0===n||n.setCustomAttribute("chapterVersion",String(C[e])),!0)},getPlatform:function(){return l},getManufacturer:function(){return f},getSessionId:function(){return E},setSessionId:function(e){E=e},getDeviceId:function(){return o},getGuid:function(){return i},getInitialUrl:function(){return T},getInitialUrlParameters:function(){return k},run:function(){(function(e,t,n){return void 0===n&&(n=xn),e("guid").then((function(e){var r=e;return r||(r=n(),t("guid",r)),r}))})(u,s).then((function(e){i=e}));var e=A?A():function(e,t,n){return void 0===n&&(n=Un),e("deviceId").then((function(e){var r=e;return r||(r=n(),t("deviceId",r)),r}))}(u,s);return e.then((function(e){var t;null===(t=window.newrelic)||void 0===t||t.setCustomAttribute("deviceId",e),o=e}))},checkNativeAppStatus:function(){var e,t,n=null===(t=new URLSearchParams(null===(e=window.location)||void 0===e?void 0:e.search).get(g))||void 0===t?void 0:t.toLowerCase(),r=window.localStorage.getItem(g),o=function(){return!(!r||!w.includes(r.toLowerCase()))};return n&&w.includes(n)?(window.localStorage.setItem(g,n),window.newrelic.setCustomAttribute("nativeApp",n),{isNative:!0,nativeApp:n}):o()&&void 0!==n&&!w.includes(n)?(localStorage.removeItem(g),{isNative:!1,nativeApp:""}):o()?(window.newrelic.setCustomAttribute("nativeApp",r),{isNative:!0,nativeApp:r||""}):{isNative:!1,nativeApp:""}},getNativeTempToken:function(e){return M(void 0,void 0,void 0,(function(){var t,n,r;return B(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t=new URLSearchParams(window.location.search),(n=t.get(y))?[4,fetch(e,{method:"GET",headers:{Authorization:"Bearer ".concat(n)}})]:[2];case 1:if(!(r=o.sent()).ok)throw new Error("Failed to fetch data");return[4,r.json()];case 2:return[2,o.sent().access_token];case 3:throw o.sent();case 4:return[2]}}))}))},getTempAuthToken:function(e){return M(void 0,void 0,void 0,(function(){var t,n,r,i,a;return B(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),t=new URLSearchParams(window.location.search),(n=t.get(_))?[4,fetch(e,{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({deviceId:o})})]:[2];case 1:if(!(r=u.sent()).ok)throw new Error("Failed to fetch data");return[4,r.json()];case 2:return i=u.sent(),[2,null===(a=i.AuthToken)||void 0===a?void 0:a.Token];case 3:throw u.sent();case 4:return[2]}}))}))}};return I},Bn={};!function(e,t){!function(e){function t(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function n(){var e,t={},n=[],r=[],i=[],a=function(e,n){null!=n&&""!==n&&(t[e]=n)};return{add:a,addDict:function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a(t,e[t])},addJson:function(e,t,i){i&&o(i)&&(e={keyIfEncoded:e,keyIfNotEncoded:t,json:i},r.push(e),n.push(e))},addContextEntity:function(e){i.push(e)},getPayload:function(){return t},getJson:function(){return n},withJsonProcessor:function(t){e=t},build:function(){return null==e||e(this,r,i),t}}}function r(e){return function(n,r,o){for(var i=function(t,r,o){if(t=JSON.stringify(t),e){if(o=n.add,t){var i=0,a=0,u=[];if(t){t=unescape(encodeURIComponent(t));do{var s=t.charCodeAt(i++),c=t.charCodeAt(i++),l=t.charCodeAt(i++),f=s<<16|c<<8|l;s=f>>18&63,c=f>>12&63,l=f>>6&63,f&=63,u[a++]=_e.charAt(s)+_e.charAt(c)+_e.charAt(l)+_e.charAt(f)}while(i<t.length);i=u.join(""),t=((t=t.length%3)?i.slice(0,t-3):i)+"===".slice(t||3)}t=t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}o.call(n,r,t)}else n.add(o,t)},a=function(t,r){if(!t){var o=n.getPayload();if(e?o.cx:o.co){var i=(t=JSON).parse;if(e){if(o=o.cx){switch(4-o.length%4){case 2:o+="==";break;case 3:o+="="}o=function(e){var t,n=0,r=0,o="",i=[];if(!e)return e;e+="";do{var a=_e.indexOf(e.charAt(n++)),u=_e.indexOf(e.charAt(n++));o=_e.indexOf(e.charAt(n++));var s=_e.indexOf(e.charAt(n++)),c=a<<18|u<<12|o<<6|s;a=c>>16&255,u=c>>8&255,c&=255,i[r++]=64===o?String.fromCharCode(a):64===s?String.fromCharCode(a,u):String.fromCharCode(a,u,c)}while(n<e.length);return t=(o=i.join("")).replace(/\0+$/,""),decodeURIComponent(t.split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(o=o.replace(/-/g,"+").replace(/_/g,"/"))}}else o=o.co;t=i.call(t,o)}else t=void 0}return t?t.dt=t.dt.concat(r.dt):t=r,t},u=void 0,s=0;s<r.length;s++){var c=r[s];"cx"===c.keyIfEncoded?u=a(u,c.json):i(c.json,c.keyIfEncoded,c.keyIfNotEncoded)}r.length=0,o.length&&(u=a(u,r={sc:"sp/ctx/1-0-0",dt:t([],o,!0)}),o.length=0),u&&i(u,"cx","co")}}function o(e){if(!i(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return null!=e&&(e.constructor==={}.constructor||e.constructor===[].constructor)}function a(e){return{addPluginContexts:function(n){var r=n?t([],n,!0):[];return e.forEach((function(e){try{e.contexts&&r.push.apply(r,e.contexts())}catch(e){Ae.error("Error adding plugin contexts",e)}})),r}}}function u(e){return!!((e=e.split("."))&&1<e.length)&&function(e){if("*"===e[0]||"*"===e[1])return!1;if(0<e.slice(2).length){var t=!1,n=0;for(e=e.slice(2);n<e.length;n++)if("*"===e[n])t=!0;else if(t)return!1;return!0}return 2==e.length}(e)}function s(e){if(null!==(e=/^iglu:((?:(?:[a-zA-Z0-9-_]+|\*).)+(?:[a-zA-Z0-9-_]+|\*))\/([a-zA-Z0-9-_.]+|\*)\/jsonschema\/([1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)$/.exec(e))&&u(e[1]))return e.slice(1,6)}function c(e){if(e=s(e)){var t=e[0];return 5===e.length&&u(t)}return!1}function l(e){return function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}(e)?e.every((function(e){return c(e)})):"string"==typeof e&&c(e)}function f(e){return!!(o(e)&&"schema"in e&&"data"in e)&&"string"==typeof e.sc&&"object"==b(e.dt)}function d(e){return"function"==typeof e&&1>=e.length}function p(e){return d(e)||f(e)}function h(e){return!(!Array.isArray(e)||2!==e.length)&&(Array.isArray(e[1])?d(e[0])&&e[1].every(p):d(e[0])&&p(e[1]))}function g(e){return!(!Array.isArray(e)||2!==e.length)&&!!function(e){var t=0;if(null!=e&&"object"==b(e)&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(e,"accept")){if(!l(e.accept))return!1;t+=1}if(Object.prototype.hasOwnProperty.call(e,"reject")){if(!l(e.reject))return!1;t+=1}return 0<t&&2>=t}return!1}(e[0])&&(Array.isArray(e[1])?e[1].every(p):p(e[1]))}function v(e){return h(e)||g(e)}function y(e,t){if(!c(e))return!1;if(e=s(e),t=null!==(t=/^iglu:([a-zA-Z0-9-_.]+)\/([a-zA-Z0-9-_]+)\/jsonschema\/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$/.exec(t))?t.slice(1,6):void 0,e&&t){if(!function(e,t){if(t=t.split("."),e=e.split("."),t&&e){if(t.length!==e.length)return!1;for(var n=0;n<e.length;n++)if(!m(t[n],e[n]))return!1;return!0}return!1}(e[0],t[0]))return!1;for(var n=1;5>n;n++)if(!m(e[n],t[n]))return!1;return!0}return!1}function m(e,t){return e&&t&&"*"===e||e===t}function E(e){return Array.isArray(e)?e:[e]}function _(e,t,n,r){var o;return e=E(e).map((function(e){e:if(f(e))e=[e];else{if(d(e)){t:{var o=void 0;try{if(o=e({event:t.getPayload(),eventType:n,eventSchema:r}),Array.isArray(o)&&o.every(f)||f(o)){var i=o;break t}i=void 0;break t}catch(e){}i=void 0}if(f(i)){e=[i];break e}if(Array.isArray(i)){e=i;break e}}e=void 0}if(e&&0!==e.length)return e})),(o=[]).concat.apply(o,e.filter((function(e){return null!=e&&e.filter(Boolean)})))}function A(e){void 0===e&&(e={});var t=e.base64,n=e.corePlugins,o=null!=n?n:[];t=function(t,n,o){var u=a(n),s=function(){var e=[],t=[];return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return t},addGlobalContexts:function(n){for(var r=[],o=[],i=0;i<n.length;i++){var a=n[i];v(a)?r.push(a):p(a)&&o.push(a)}e=e.concat(o),t=t.concat(r)},clearGlobalContexts:function(){t=[],e=[]},removeGlobalContexts:function(n){for(var r=function(n){v(n)?t=t.filter((function(e){return JSON.stringify(e)!==JSON.stringify(n)})):p(n)&&(e=e.filter((function(e){return JSON.stringify(e)!==JSON.stringify(n)})))},o=0;o<n.length;o++)r(n[o])},getApplicableContexts:function(n){e:{for(var r=0,o=n.getJson();r<o.length;r++){var i=o[r];if("ue_px"===i.keyIfEncoded&&"object"==b(i.json.data)&&"string"==typeof(i=i.json.data.schema)){r=i;break e}}r=""}i="string"==typeof(o=n.getPayload().e)?o:"",o=[];var a=_(e,n,i,r);return o.push.apply(o,a),n=function(e,t,n,r){var o;return e=E(e).map((function(e){e:{if(h(e)){var o=e[0],i=!1;try{i=o({event:t.getPayload(),eventType:n,eventSchema:r})}catch(e){i=!1}if(!0===i){e=_(e[1],t,n,r);break e}}else if(g(e)&&function(e,t){var n=0,r=0,o=e.accept;return Array.isArray(o)?e.accept.some((function(e){return y(e,t)}))&&r++:"string"==typeof o&&y(o,t)&&r++,o=e.reject,Array.isArray(o)?e.reject.some((function(e){return y(e,t)}))&&n++:"string"==typeof o&&y(o,t)&&n++,0<r&&0===n}(e[0],r)){e=_(e[1],t,n,r);break e}e=[]}if(e&&0!==e.length)return e})),(o=[]).concat.apply(o,e.filter((function(e){return null!=e&&e.filter(Boolean)})))}(t,n,i,r),o.push.apply(o,n),o}}}(),c=t,l={};return{track:function(e,t,i){e.withJsonProcessor(r(c)),e.add("eid",Ee.v4()),e.addDict(l),i=function(e){return null==e?{type:"dtm",value:(new Date).getTime()}:"number"==typeof e?{type:"dtm",value:e}:"ttm"===e.type?{type:"ttm",value:e.value}:{type:"dtm",value:e.value||(new Date).getTime()}}(i),e.add(i.type,i.value.toString()),void 0!==(t=(t=function(e,t){e=s.getApplicableContexts(e);var n=[];return t&&t.length&&n.push.apply(n,t),e&&e.length&&n.push.apply(n,e),n}(e,u.addPluginContexts(t)))&&t.length?{sc:"sp/ctx/1-0-0",dt:t}:void 0)&&e.addJson("cx","co",t),n.forEach((function(t){try{t.beforeTrack&&t.beforeTrack(e)}catch(e){Ae.error("Plugin beforeTrack",e)}})),"function"==typeof o&&o(e);var a=e.build();return n.forEach((function(e){try{e.afterTrack&&e.afterTrack(a)}catch(e){Ae.error("Plugin afterTrack",e)}})),a},addPayloadPair:function(e,t){l[e]=t},configuration:e,getConfig:function(){return e},setConfig:function(t){t&&(void 0!==t.base64&&(c=e.base64=t.base64),void 0!==t.linkClickTracking&&(e.linkClickTracking=t.linkClickTracking),void 0!==t.lifecycleAutotracking&&(e.lifecycleAutotracking=t.lifecycleAutotracking),void 0!==t.cacheRefreshInterval&&(e.cacheRefreshInterval=t.cacheRefreshInterval),void 0!==t.buttonClickTracking&&(e.buttonClickTracking=t.buttonClickTracking),void 0!==t.exceptionAutotracking&&(e.exceptionAutotracking=t.exceptionAutotracking),void 0!==t.enablePeriodicHeartbeat&&(e.enablePeriodicHeartbeat=t.enablePeriodicHeartbeat),void 0!==t.periodicHeartbeatInterval&&(e.periodicHeartbeatInterval=t.periodicHeartbeatInterval),void 0!==t.enc&&(e.enc=t.enc),void 0!==t.mend&&(e.mend=t.mend),void 0!==t.maxLocalStorageQueueSize&&(e.maxLocalStorageQueueSize=t.maxLocalStorageQueueSize),void 0!==t.maxPostBytes&&(e.maxPostBytes=t.maxPostBytes),void 0!==t.maxGetBytes&&(e.maxGetBytes=t.maxGetBytes),void 0!==t.bufferSize&&(e.bufferSize=t.bufferSize),void 0!==t.customEventTrackingConfiguration&&(e.customEventTrackingConfiguration=t.customEventTrackingConfiguration),void 0!==t.ajaxTrackingConfiguration&&(e.ajaxTrackingConfiguration=t.ajaxTrackingConfiguration),void 0!==t.networkRequestTrackingConfiguration&&(e.networkRequestTrackingConfiguration=t.networkRequestTrackingConfiguration),void 0!==t.traceparentconfig&&(e.traceparentconfig=t.traceparentconfig),void 0!==t.metaTagsTrackingConfiguration&&(e.metaTagsTrackingConfiguration=t.metaTagsTrackingConfiguration),void 0!==t.performanceContextConfig&&(e.performanceContextConfig=t.performanceContextConfig),void 0!==t.configurationVersion&&(e.configurationVersion=t.configurationVersion),void 0!==t.catRcLastUpdatedTs&&(e.catRcLastUpdatedTs=t.catRcLastUpdatedTs),void 0!==t.endpoint&&(e.endpoint=t.endpoint))},getBase64Encoding:function(){return c},setBase64Encoding:function(e){c=e},addPayloadDict:function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(l[t]=e[t])},resetPayloadPairs:function(e){l=i(e)?e:{}},setTrackerVersion:function(e){l.tv=e},setTrackerNamespace:function(e){l.tna=e},setAppId:function(e){l.aid=e},setPlatform:function(e){l.p=e},setUserId:function(e){l.uid=e},setScreenResolution:function(e,t){l.res=e+"x"+t},setViewport:function(e,t){l.vp=e+"x"+t},setColorDepth:function(e){l.cd=e},setTimezone:function(e){l.tz=e},setLang:function(e){l.lang=e},setIpAddress:function(e){l.ip=e},setUseragent:function(e){l.ua=e},addGlobalContexts:function(e){s.addGlobalContexts(e)},clearGlobalContexts:function(){s.clearGlobalContexts()},removeGlobalContexts:function(e){s.removeGlobalContexts(e)}}}(null==t||t,o,e.callback);var u=ne(ne({},t),{addPlugin:function(e){var t,n;e=e.plugin,o.push(e),null===(t=e.logger)||void 0===t||t.call(e,Ae),null===(n=e.activateCorePlugin)||void 0===n||n.call(e,u)}});return null==o||o.forEach((function(e){var t,n;null===(t=e.logger)||void 0===t||t.call(e,Ae),null===(n=e.activateCorePlugin)||void 0===n||n.call(e,u)})),u}function w(e){var t=e.event;return e={sc:"sp/ue/1-0-0",dt:{sc:e=t.sc,dt:t.dt}},(t=n()).add("e","ue"),t.addJson("ue_px","ue_pr",e),t}function C(e){var t=e.pageUrl,r=e.pageTitle;e=e.referrer;var o=n();return o.add("e","pv"),o.add("url",t),o.add("page",r),o.add("refr",e),o}function T(e,t){void 0===t&&(t={});var n,r={};for(n in e)(t[n]||null!==e[n]&&void 0!==e[n])&&(r[n]=e[n]);return r}function k(e){for(var t=e.length;0<=--t;)e[t]=0}function I(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function D(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function O(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function R(){this.strm=null,this.status=0,this.pending_buf=null,this.wrap=this.pending=this.pending_out=this.pending_buf_size=0,this.gzhead=null,this.gzindex=0,this.method=Rt,this.last_flush=-1,this.w_mask=this.w_bits=this.w_size=0,this.window=null,this.window_size=0,this.head=this.prev=null,this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Nt(this.dyn_ltree),Nt(this.dyn_dtree),Nt(this.bl_tree),this.bl_desc=this.d_desc=this.l_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Nt(this.heap),this.heap_max=this.heap_len=0,this.depth=new Uint16Array(573),Nt(this.depth),this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.sym_end=this.sym_next=this.lit_bufsize=this.sym_buf=0}function S(e){(e=this.options=Wt.assign({level:sn,method:ln,chunkSize:16384,windowBits:15,memLevel:8,strategy:cn},e||{})).raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&16>e.windowBits&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0;var t=Jt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==an)throw Error(at[t]);if(e.header&&Jt.deflateSetHeader(this.strm,e.header),e.dictionary){if(e="string"==typeof e.dictionary?Qt.string2buf(e.dictionary):"[object ArrayBuffer]"===en.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(t=Jt.deflateSetDictionary(this.strm,e))!==an)throw Error(at[t]);this._dict_set=!0}}function N(e,t){if((t=new S(t)).push(e,!0),t.err)throw t.msg||at[t.err];return t.result}function L(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.total=this.check=this.dmax=this.flags=0,this.head=null,this.wnext=this.whave=this.wsize=this.wbits=0,this.window=null,this.extra=this.offset=this.length=this.bits=this.hold=0,this.distcode=this.lencode=null,this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.distdyn=this.lendyn=null,this.was=this.back=this.sane=0}function U(e){var t=this.options=Wt.assign({chunkSize:65536,windowBits:15,to:""},e||{});if(t.raw&&0<=t.windowBits&&16>t.windowBits&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&16>t.windowBits)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&48>t.windowBits&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0,(e=Mn.inflateInit2(this.strm,t.windowBits))!==Kn)throw Error(at[e]);if(this.header=new Bn,Mn.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Qt.string2buf(t.dictionary):"[object ArrayBuffer]"===Vn.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=Mn.inflateSetDictionary(this.strm,t.dictionary))!==Kn))throw Error(at[e])}function x(e,t){if((t=new U(t)).push(e),t.err)throw t.msg||at[t.err];return t.result}function P(e){return Number.isInteger&&Number.isInteger(e)||"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function F(e){if(!e||"string"!=typeof e.valueOf()){e=e.text||"";var t=document.getElementsByTagName("title");t&&null!=t[0]&&(e=t[0].text)}return e}function M(e){var t=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(e);return t?t[1]:e}function B(e){var t=e.length;return"."===e.charAt(--t)&&(e=e.slice(0,t)),"*."===e.slice(0,2)&&(e=e.slice(1)),e}function V(e){var t=window,n=z("referrer",t.location.href)||z("referer",t.location.href);if(n)return n;if(e)return e;try{if(t.top)return t.top.document.referrer;if(t.parent)return t.parent.document.referrer}catch(e){}return document.referrer}function j(e,t,n,r){return e.addEventListener?(e.addEventListener(t,n,r),!0):e.attachEvent?e.attachEvent("on"+t,n):void(e["on"+t]=n)}function z(e,t){return(e=new RegExp("^[^#]*[?&]"+e+"=([^&#]*)").exec(t))?decodeURIComponent(e[1].replace(/\+/g," ")):null}function K(e,t,n){void 0===n&&(n=63072e3);try{var r=window.localStorage,o=Date.now()+1e3*n;return r.setItem("".concat(e,".expires"),o.toString()),r.setItem(e,t),!0}catch(e){return!1}}function G(e){try{var t=window.localStorage;return t.removeItem(e),t.removeItem(e+".expires"),!0}catch(e){return!1}}function q(e,t,n,r,o,i,a){return 1<arguments.length?document.cookie=e+"="+encodeURIComponent(null!=t?t:"")+(n?"; Expires="+new Date(+new Date+1e3*n).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(i?"; SameSite="+i:"")+(a?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}function H(e){try{var t=null===window||void 0===window?void 0:window.localStorage;return!!t&&(t.removeItem(e),!0)}catch(e){return!1}}function J(e,t){var n=[Yn.request_body,Yn.response_body,Yn.request_headers,Yn.response_headers],r={};if(t&&0<t.length)for(var o=0;o<t.length;o++){var i=t[o],a=i.conditions,u=void 0,s=["conditions"],c={};for(u in i)Object.prototype.hasOwnProperty.call(i,u)&&0>s.indexOf(u)&&(c[u]=i[u]);if(null!=i&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(u=Object.getOwnPropertySymbols(i);l<u.length;l++)0>s.indexOf(u[l])&&Object.prototype.propertyIsEnumerable.call(i,u[l])&&(c[u[l]]=i[u[l]])}u=c;try{e:{i=e;try{for(s=0;s<a.length;s++){var f=a[s];if(c=!1,0<Object.keys(f).length){l=0;for(var d=Object.entries(f);l<d.length;l++){var p=d[l],h=p[1],g=i[p[0]];if(0<h.length){for(var v=0,y=0,m=h;y<m.length;y++){var E=m[y],_="contains",A=E;if("object"==b(E)&&E.length?(_=E[1],A=E[0]):"boolean"!=typeof E&&null!==E||(_="equal",A=E),W(g,_,A)){c=!0;break}if(c=!1,v+1===h.length)break;v++}if(!1===c)break}}}if(c){var w=!0;break e}}}catch(e){console.warn("Conviva App Tracker: Error in Applying nwreqConfig ".concat(e))}w=!1}if(w){i=0;for(var C=Object.entries(e);i<C.length;i++){var T=C[i],k=T[0],I=T[1];if(n.includes(k))try{if(u[k]&&0<u[k].length){s=!1,k!==Yn.response_headers&&k!==Yn.request_headers||(s=!0);var D=e[k];a={};try{c=0;for(var O=u[k];c<O.length;c++){var R=O[c];l=D,v=a,s&&(R=R.toLowerCase());var S=R.split(".");for(y=0;y<S.length;y++){var N=S[y];null!=l&&l.hasOwnProperty(N)&&(y===S.length-1?v[N]=l[N]:(v[N]=v[N]||{},l=l[N],v=v[N]))}}}catch(e){console.warn("Conviva App Tracker: Error in filtering schema object nwreq ".concat(e))}var L=a;0!==Object.keys(L).length&&(r[k]=L)}}catch(e){r[k]=void 0}else r[k]=I}return r}}catch(e){console.warn("Conviva App Tracker: Error in collecting attributes nwreqConfig ".concat(e))}}for(r=ne({},e),e=0;e<n.length;e++)t=n[e],null!=r&&r.hasOwnProperty(t)&&delete r[t];return r}function W(e,t,n){try{if("string"==typeof n&&"string"==typeof e&&"*"===n.trim())return!0;switch(t){case"==":case"equal":return e===n;case"!=":return e!==n;case">":return e>n;case"<":return e<n;case">=":return e>=n;case"<=":return e<=n;case"contains":return""!==n&&"string"==typeof e&&"string"==typeof n&&-1!==e.toLowerCase().indexOf(n.toLowerCase());default:return!1}}catch(e){return console.warn("Conviva App Tracker: Error in Compare values nwreq ".concat(e)),!1}}function Y(e,t,n){return"translate.googleusercontent.com"===e?(""===n&&(n=t),e=M(t=null!=(e=(e=/^(?:https?|ftp)(?::\/*(?:[^?]+))([?][^#]+)/.exec(t))&&1<(null==e?void 0:e.length)?z("u",e[1]):null)?e:"")):"cc.bingj.com"!==e&&"webcache.googleusercontent.com"!==e||(e=M(t=document.links[0].href)),[e,t,n]}function Z(e,t){return void 0===t&&(t=1),"0"===e[0]?(e[7]=e[6],e[5]=e[4],e[3]++):e[3]=t,t=Ee.v4(),e[6]=t,e[10]=-1,e[8]="",e[9]=void 0,t}function X(e){e[4]=Math.round((new Date).getTime()/1e3)}function Q(e){return{activateLCPObserver:function(){try{PerformanceObserver&&new PerformanceObserver((function(e){try{e.getEntries().forEach((function(e){var t;if("largest-contentful-paint"===e.entryType){var n=null===performance||void 0===performance?void 0:performance.getEntriesByType("navigation"),r=void 0;n&&0<(null==n?void 0:n.length)&&(r=null===(t=n[0])||void 0===t?void 0:t.activationStart),$n=ne(ne({},e.toJSON()),{performanceNavigationActivationStart:null!=r?r:0})}}))}catch(e){console.warn("convivaAppTracker error in conviva lcp observer "+e)}})).observe({type:"largest-contentful-paint",buffered:!0})}catch(e){console.warn("convivaAppTracker conviva_lcp failed "+e)}},contexts:function(){try{switch(e){case Zn.PERFORMANCE_CONTEXT.DISABLED:return[];case Zn.PERFORMANCE_CONTEXT.PERFORMANCE_NAVIGATION_TIMING:return function(){var e,t,n;try{var r=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};if(r.getEntriesByType){var o=r.getEntriesByType("navigation")[0],i=null!==(e=null==r?void 0:r.timeOrigin)&&void 0!==e?e:0;if(!o)return[];var a={st:Math.floor(i+o.startTime),dls:Math.floor(i+o.domainLookupStart),dle:Math.floor(i+o.domainLookupEnd),rss:Math.floor(i+o.responseStart),rse:Math.floor(i+o.responseEnd),le:Math.floor(i+o.loadEventEnd),dur:Math.floor(i+o.duration),as:Math.floor(i+o.activationStart)};return null!=$n&&$n.startTime&&(a.lcp={rt:Math.floor(i+$n.startTime),url:128<(null===(t=null==$n?void 0:$n.url)||void 0===t?void 0:t.length)?null===(n=null==$n?void 0:$n.url)||void 0===n?void 0:n.substring(0,128):$n.url,sz:$n.size}),[{sc:"cv/pc/1-0-1",dt:a}]}return[]}catch(e){return console.warn("ConvivaAppTracker: issue will getting performance Navigation timing context"),[]}}();default:var n=window,r=n.performance||n.mozPerformance||n.msPerformance||n.webkitPerformance,o=r.timing;return t(t([],r?[{sc:"w3/pt/1-0-0",dt:{navigationStart:o.navigationStart,domainLookupStart:o.domainLookupStart,domainLookupEnd:o.domainLookupEnd,responseStart:o.responseStart,responseEnd:o.responseEnd,loadEventEnd:o.loadEventEnd}}]:[],!0),function(){var e,t,n;try{if(void 0!==(null==$n?void 0:$n.startTime)&&"number"==typeof(null==$n?void 0:$n.startTime))return[{sc:"cv/lcp/1-0-0",dt:{lcp:Math.round($n.startTime)-(null!==(e=$n.performanceNavigationActivationStart)&&void 0!==e?e:0),url:128<(null===(t=null==$n?void 0:$n.url)||void 0===t?void 0:t.length)?null===(n=null==$n?void 0:$n.url)||void 0===n?void 0:n.substring(0,128):$n.url}}]}catch(e){}return[]}(),!0)}}catch(e){return console.warn("convivaAppTracker problem in perfromance context "+e),[]}}}}function $(e,r,o,i,a,u){function s(e,t,n,r){var o,i;if((null==e?void 0:e.configurationBundle[0].namespace)===n){n="cws.conviva.com /wsg /ctp remote_config pings.conviva.com .m3u8 .mpd .ism .m4 .mp4 .ts .png .jpg .jpeg .bmp google-analytics.com googlesyndication.com googleapis stats.g.doubleclick chartbeat.com omtrdc.net app-measurement.com firebase nr-data.net newrelic bitmovin.com/impression bitmovin.com/analytics api.segment.io youbora hotjar mixpanel.com clevertap auryc .aac .vtt .googlevideo webp appsflyer facebook dynatrace mparticle npaw doubleclick .pdf bookkeeper kochava mp3 marketingcloudapis demdex scorecardresearch lura.live perimeterx.net permutive.app segment.com vaicore.site boomtrain ketchcdn qualtrics .svg amplitude datadoghq branch.io hotjar splunkcloud".split(" "),t=JSON.parse(JSON.stringify(t)),"number"==typeof e.cri&&1<=e.cri?t.cacheRefreshInterval=parseInt(e.cri):"number"==typeof e.cacheRefreshInterval&&1<=e.cacheRefreshInterval&&(t.cacheRefreshInterval=parseInt(e.cacheRefreshInterval)),void 0!==e.configurationBundle[0].trackerConfiguration.base64Encoding&&(t.base64=e.configurationBundle[0].trackerConfiguration.base64Encoding),void 0!==e.configurationBundle[0].trackerConfiguration.linkClickTracking&&(t.linkClickTracking=e.configurationBundle[0].trackerConfiguration.linkClickTracking),void 0!==e.configurationBundle[0].trackerConfiguration.lifecycleAutotracking&&(t.lifecycleAutotracking=e.configurationBundle[0].trackerConfiguration.lifecycleAutotracking),void 0!==e.configurationBundle[0].trackerConfiguration.buttonClickTracking&&(t.buttonClickTracking=e.configurationBundle[0].trackerConfiguration.buttonClickTracking),void 0!==e.configurationBundle[0].trackerConfiguration.exceptionAutotracking&&(t.exceptionAutotracking=e.configurationBundle[0].trackerConfiguration.exceptionAutotracking),void 0!==e.configurationBundle[0].trackerConfiguration.enablePeriodicHeartbeat&&(t.enablePeriodicHeartbeat=e.configurationBundle[0].trackerConfiguration.enablePeriodicHeartbeat);var a=null===(i=null===(o=null==e?void 0:e.configurationBundle[0])||void 0===o?void 0:o.trackerConfiguration)||void 0===i?void 0:i.periodicHeartbeatInterval;"number"==typeof a&&1<=a&&(t.periodicHeartbeatInterval=parseInt(e.configurationBundle[0].trackerConfiguration.periodicHeartbeatInterval)),void 0!==e.configurationBundle[0].networkConfiguration.enc&&(t.enc=e.configurationBundle[0].networkConfiguration.enc),void 0!==e.configurationBundle[0].networkConfiguration.maxLocalStorageQueueSize&&(t.maxLocalStorageQueueSize=e.configurationBundle[0].networkConfiguration.maxLocalStorageQueueSize),void 0!==e.configurationBundle[0].networkConfiguration.maxPostBytes&&(t.maxPostBytes=e.configurationBundle[0].networkConfiguration.maxPostBytes),void 0!==e.configurationBundle[0].networkConfiguration.maxGetBytes&&(t.maxGetBytes=e.configurationBundle[0].networkConfiguration.maxGetBytes),void 0!==e.configurationBundle[0].networkConfiguration.bufferSize&&(t.bufferSize=e.configurationBundle[0].networkConfiguration.bufferSize),void 0!==e.configurationBundle[0].customEventTrackingConfiguration&&(t.customEventTrackingConfiguration=e.configurationBundle[0].customEventTrackingConfiguration),void 0!==e.configurationBundle[0].ajaxTrackingConfiguration&&(t.ajaxTrackingConfiguration=e.configurationBundle[0].ajaxTrackingConfiguration),void 0!==e.configurationBundle[0].networkRequestTrackingConfiguration&&(t.networkRequestTrackingConfiguration=e.configurationBundle[0].networkRequestTrackingConfiguration),void 0!==e.configurationBundle[0].traceparentconfig&&(t.traceparentconfig=e.configurationBundle[0].traceparentconfig),void 0!==e.configurationBundle[0].networkConfiguration.mend&&(t.mend=e.configurationBundle[0].networkConfiguration.mend),t.ajaxTrackingConfiguration&&(t.ajaxTrackingConfiguration.blocklist||(t.ajaxTrackingConfiguration.blocklist=[]),t.ajaxTrackingConfiguration.blocklist.push(e.configurationBundle[0].networkConfiguration.endpoint),t.ajaxTrackingConfiguration.blocklist=t.ajaxTrackingConfiguration.blocklist.concat(n)),t.networkRequestTrackingConfiguration&&(t.networkRequestTrackingConfiguration.blocklist||(t.networkRequestTrackingConfiguration.blocklist=[]),t.networkRequestTrackingConfiguration.blocklist.push(e.configurationBundle[0].networkConfiguration.endpoint),t.networkRequestTrackingConfiguration.blocklist=t.networkRequestTrackingConfiguration.blocklist.concat(n)),void 0!==e.configurationBundle[0].metaTagsTrackingConfiguration&&(t.metaTagsTrackingConfiguration=e.configurationBundle[0].metaTagsTrackingConfiguration),void 0!==e.configurationBundle[0].trackerConfiguration.perfCx&&(t.performanceContextConfig=e.configurationBundle[0].trackerConfiguration.perfCx),void 0!==e.configurationVersion&&(t.configurationVersion=e.configurationVersion),void 0!==e.configurationBundle[0].networkConfiguration.endpoint&&(t.endpoint=e.configurationBundle[0].networkConfiguration.endpoint),t.catRcLastUpdatedTs=r,l.core.setConfig(t),null==l||l.setCollectorUrl(e.configurationBundle[0].networkConfiguration.endpoint,u.convivaCustomerKey);try{window.localStorage&&(localStorage.removeItem(Zn.REMOTE_CONFIG_STORAGE_KEY),localStorage.setItem(Zn.REMOTE_CONFIG_STORAGE_KEY,JSON.stringify(t)))}catch(e){console.warn("Conviva: Error while saving remote-config to localstorage",e)}}}void 0===u&&(u={});var c=[];e=function(e,r,o,i,a,u){function f(){(Ct=Y(window.location.hostname,window.location.href,V()))[1]!==kt&&(It=V(kt)),Tt=B(Ct[0]),kt=Ct[1]}function d(e){try{var t=(new Date).getTime(),n=e.currentTarget;if(null!=n&&n.href){e="_sp="+Et+"."+t;var r=n.href.split("#"),o=r[0].split("?"),i=o.shift(),a=o.join("?");if(a){o=!0;var u=a.split("&");for(t=0;t<u.length;t++)if("_sp="===u[t].substr(0,4)){o=!1,u[t]=e,a=u.join("&");break}o&&(a=e+"&"+a)}else a=e;r[0]=i+"?"+a;var s=r.join("#");n.href=s}}catch(e){console.warn("Conviva App Tracker:: Error in linkDecorationHandler of decorateLinks ".concat(e))}}function p(e){if("undefined"!=typeof document&&document.links&&0<document.links.length)for(var t=0;t<document.links.length;t++){var n=document.links[t];!n.spDecorationEnabled&&e(n)&&(j(n,"click",d,!0),j(n,"mousedown",d,!0),n.spDecorationEnabled=!0)}}function h(e){if(st){var t=/#.*/;e=e.replace(t,"")}return ct&&(t=/[{}]/g,e=e.replace(t,"")),e}function g(e){return(e=/^([a-z]+):/.exec(e))?e[1]:null}function v(e){if(e=Mt+e+"."+mt,"localStorage"==Zt){try{var t=window.localStorage,n=t.getItem(e+".expires");if(null===n||+n>Date.now())var r=t.getItem(e);else t.removeItem(e),t.removeItem(e+".expires"),r=void 0}catch(e){r=void 0}return r}if("cookie"==Zt||"cookieAndLocalStorage"==Zt)return q(e)}function y(){f(),mt=Ie((Bt||Tt)+(Vt||"/")).slice(0,4)}function m(){pt=(new Date).getTime()}function E(){var e=_(),t=e[0];t<ht?ht=t:t>gt&&(gt=t),(e=e[1])<vt?vt=e:e>yt&&(yt=e),m()}function _(){var e="undefined"!=typeof document?null===document||void 0===document?void 0:document.documentElement:void 0;return e?[e.scrollLeft||window.pageXOffset,e.scrollTop||window.pageYOffset]:[0,0]}function k(){var e=_(),t=e[0];gt=ht=t,yt=vt=e=e[1]}function I(){O(Mt+"ses."+mt,"*",Ht)}function D(e){var t=Mt+"id."+mt;e.shift(),O(t,e=e.join("."),qt)}function O(e,t,n){Yt&&!Jt||("localStorage"==Zt?K(e,t,n):("cookie"==Zt||"cookieAndLocalStorage"==Zt)&&q(e,t,n,Vt,Bt,jt,zt))}function R(e){var t=Mt+"id."+mt,n=Mt+"ses."+mt;G(t),G(n),q(t,"",-1,"/",Bt,jt,zt),q(n,"",-1,"/",Bt,jt,zt),null!=e&&e.preserveSession||(_t=Ee.v4(),nn=1),null!=e&&e.preserveUser||(Et=Ee.v4(),bt=null)}function S(e){e&&e.stateStorageStrategy&&(u.stateStorageStrategy=e.stateStorageStrategy,Zt=nt(u)),Yt=!!u.anonymousTracking,Jt=rt(u),Wt=ot(u),rn.setUseLocalStorage("localStorage"==Zt||"cookieAndLocalStorage"==Zt),rn.setAnonymousTracking(Wt)}function N(){try{var e=window.localStorage.getItem(Xt+"."+Qt),t=JSON.parse(e||"{}");"{}"===t||void 0===t?(ft=ee(),dt=te(),en=-1):(ft=t.clId||ee(),en=t[$t]&&2147483648>t[$t]?t[$t]:-1,dt=te()),$()}catch(e){console.warn(e)}if(!Yt||Jt){if(e="none"!=Zt&&!!v("ses"),(t=L())[1])var n=t[1];else n=Yt?"":Ee.v4(),t[1]=n;Et=n,_t=e?t[6]:Z(t),nn=t[3],"none"!=Zt&&(I(),X(t),D(t))}}function L(){return"none"==Zt?["1","",0,0,0,void 0,"","","",void 0,0]:function(e,t,n,r){var o=Math.round((new Date).getTime()/1e3);e?(e=e.split(".")).unshift("0"):e=["1",t,o,r,o,"",n],e[6]&&"undefined"!==e[6]||(e[6]=Ee.v4()),e[7]&&"undefined"!==e[7]||(e[7]=""),e[8]&&"undefined"!==e[8]||(e[8]=""),e[9]&&"undefined"!==e[9]||(e[9]=""),e[10]&&"undefined"!==e[10]||(e[10]=-1);var i=function(e,t){return e=parseInt(e),isNaN(e)?t:e};return t=function(e){return e?i(e,void 0):void 0},[e[0],e[1],i(e[2],o),i(e[3],r),i(e[4],o),t(e[5]),e[6],e[7],e[8],t(e[9]),i(e[10],-1)]}(v("id")||void 0,Et,_t,nn)}function U(e,t){var n,r,o,i,a=!0,s=wt.getConfig();return void 0!==s.mend?a=s.mend:void 0!==(null===(r=null===(n=null==u?void 0:u.configs)||void 0===n?void 0:n.network)||void 0===r?void 0:r.mergeEndpoint)&&(a=null===(i=null===(o=null==u?void 0:u.configs)||void 0===o?void 0:o.network)||void 0===i?void 0:i.mergeEndpoint),0===e.indexOf("http")?(t&&a&&(e=e.replace(/^(https?:\/\/)(.*)$/,"$1"+t+".$2")),e):t&&a?("https:"===document.location.protocol?"https":"http")+"://"+t+"."+e:("https:"===document.location.protocol?"https":"http")+"://"+e}function x(){on&&null!=a.pageViewId||(a.pageViewId=Ee.v4())}function W(){return null==a.pageViewId&&(a.pageViewId=Ee.v4()),a.pageViewId}function $(){try{var e=window.localStorage,t={clId:ft,iid:dt,eventIndex:en},n=null;try{n=JSON.stringify(t)}catch(e){return}return e.setItem(Xt+"."+Qt,n)}catch(e){}}function ee(){try{return oe({"First Launch":"Yes"}),Math.floor(2147483647*Math.random()).toString()+"."+Math.floor(2147483647*Math.random()).toString()+"."+Math.floor(2147483647*Math.random()).toString()+"."+Math.floor(2147483647*Math.random()).toString()}catch(e){console.warn(e)}}function te(){try{return Math.floor(2147483647*Math.random())}catch(e){return console.warn(e),-1}}function re(e){try{return"object"==b(JSON.parse(e))}catch(e){return!1}}function oe(e){try{var t=Object.keys(e);re(JSON.stringify(e))?t.forEach((function(t){""!==t&&Object.defineProperty(Ut,t,{value:""+e[t],writable:!0,enumerable:!0,configurable:!0})})):console.warn("Conviva AppTracker:: Invalid JSON Format: Error Message=")}catch(e){console.warn("Conviva AppTracker:: Invalid JSON Format: Error Message=",e)}}function ie(){var e,n,r,o,i,a,s,c,f,d,p,h,g,v,y,m,E,_,b,A,w,C,T,k,I,D,O,R,S,N,L;try{var U=l.core.getConfig(),x=void 0;xt={};var P=Qn.MERGE;switch(void 0!==(null===(n=null===(e=null==u?void 0:u.configs)||void 0===e?void 0:e.metaTagsTracking)||void 0===n?void 0:n.preference)?P=null===(o=null===(r=null==u?void 0:u.configs)||void 0===r?void 0:r.metaTagsTracking)||void 0===o?void 0:o.preference:!0===(null===(a=null===(i=null==u?void 0:u.configs)||void 0===i?void 0:i.metaTagsTracking)||void 0===a?void 0:a.force)?P=Qn.APP:void 0!==(null===(s=null==U?void 0:U.metaTagsTrackingConfiguration)||void 0===s?void 0:s.pref)&&(P=null===(c=null==U?void 0:U.metaTagsTrackingConfiguration)||void 0===c?void 0:c.pref),P){case Qn.APP:if(!1===(null===(d=null===(f=null==u?void 0:u.configs)||void 0===f?void 0:f.metaTagsTracking)||void 0===d?void 0:d.enabled))return;0<(null===(g=null===(h=null===(p=null==u?void 0:u.configs)||void 0===p?void 0:p.metaTagsTracking)||void 0===h?void 0:h.tags)||void 0===g?void 0:g.length)&&(x=t([],null===(y=null===(v=null==u?void 0:u.configs)||void 0===v?void 0:v.metaTagsTracking)||void 0===y?void 0:y.tags,!0));break;case Qn.REMOTE:if(!1===(null===(m=null==U?void 0:U.metaTagsTrackingConfiguration)||void 0===m?void 0:m.enabled))return;void 0!==(null==U?void 0:U.metaTagsTrackingConfiguration)&&0<(null===(_=null===(E=null==U?void 0:U.metaTagsTrackingConfiguration)||void 0===E?void 0:E.tags)||void 0===_?void 0:_.length)&&(x=t([],null===(b=null==U?void 0:U.metaTagsTrackingConfiguration)||void 0===b?void 0:b.tags,!0));break;default:if(void 0===(null==U?void 0:U.metaTagsTrackingConfiguration)&&!1===(null===(w=null===(A=null==u?void 0:u.configs)||void 0===A?void 0:A.metaTagsTracking)||void 0===w?void 0:w.enabled)||void 0===(null===(C=null==u?void 0:u.configs)||void 0===C?void 0:C.metaTagsTracking)&&!1===(null===(T=null==U?void 0:U.metaTagsTrackingConfiguration)||void 0===T?void 0:T.enabled))return;var F=null===(I=null===(k=null==u?void 0:u.configs)||void 0===k?void 0:k.metaTagsTracking)||void 0===I?void 0:I.tags,M=null===(D=null==U?void 0:U.metaTagsTrackingConfiguration)||void 0===D?void 0:D.tags;!1===(null===(R=null===(O=null==u?void 0:u.configs)||void 0===O?void 0:O.metaTagsTracking)||void 0===R?void 0:R.enabled)&&(F=[]),!1===(null===(S=null==U?void 0:U.metaTagsTrackingConfiguration)||void 0===S?void 0:S.enabled)&&(M=[]),x=t([],function(e,n){return t(t([],e,!0),n,!0).reduce((function(e,n){var r=e.find((function(e){return e.key===n.key}));return r?n.condition&&(r.condition=t(t([],r.condition||[],!0),n.condition,!0)):e.push(ne({},n)),e}),[])}(F||[],M||[]),!0)}if(void 0!==x&&0<(null==x?void 0:x.length)){e={};var B=null===document||void 0===document?void 0:document.head,V=null==B?void 0:B.getElementsByTagName("meta");if(void 0!==V&&0<(null==V?void 0:V.length))for(B=0;B<V.length;B++){var j=V[B];for(n=0;n<x.length;n++){var z=j.getAttribute(x[n].key),K=j.getAttribute(x[n].value);r=void 0,null!==(N=x[n])&&void 0!==N&&N.condition&&(r=null===(L=x[n])||void 0===L?void 0:L.condition),z&&(r&&r.includes(z)?e[z]=K:r&&0!==r.length||(e[z]=K))}}l.setMetaCustomTags(e)}}catch(e){console.warn("Conviva App Tracker:: setPageMetaTagsAsCustomTags",e)}}function ae(e,t,n){var r=function(t,n){var r;f();var i=null===(r=null==l?void 0:l.core)||void 0===r?void 0:r.getConfig();i.enablePeriodicHeartbeat?null!=i.periodicHeartbeatInterval&&(r=1e3*i.periodicHeartbeatInterval)!=e.configHeartBeatTimer&&(e.configHeartBeatTimer=r,window.clearInterval(e.activityInterval),e.activityInterval=window.setInterval(o,r)):window.clearInterval(e.activityInterval),t({context:n,pageViewId:W(),minXOffset:ht,minYOffset:vt,maxXOffset:gt,maxYOffset:yt}),k()};window.setTimeout((function(){r(e.callback,(t||[]).concat(n?n():[]))}),2e3);var o=function(){var o=new Date;("visible"==(null===document||void 0===document?void 0:document.visibilityState)||null!==document&&void 0!==document&&document.pictureInPictureElement||pt+e.configHeartBeatTimer>o.getTime()||!0===sn)&&r(e.callback,(t||[]).concat(n?n():[]))};e.activityInterval=window.setInterval(o,e.configHeartBeatTimer)}function ue(e){var t=e.minimumVisitLength,n=e.heartbeatDelay;if(e=e.callback,P(t)&&P(n))return{configMinimumVisitLength:1e3*t,configHeartBeatTimer:1e3*n,callback:e};Ae.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function se(e){var t=e.context,r=e.minXOffset,o=e.minYOffset,i=e.maxXOffset,a=e.maxYOffset;(e=document.title)!==Pt&&(Pt=e,ut=void 0);var u=(e=wt).track,s=h(at||kt),c=F(ut||Pt),l=h(it||It);r=Math.round(r),i=Math.round(i),o=Math.round(o),a=Math.round(a);var f=n();f.add("e","pp"),f.add("url",s),f.add("page",c),f.add("refr",l),r&&!isNaN(Number(r))&&f.add("pp_mix",r.toString()),i&&!isNaN(Number(i))&&f.add("pp_max",i.toString()),o&&!isNaN(Number(o))&&f.add("pp_miy",o.toString()),a&&!isNaN(Number(a))&&f.add("pp_may",a.toString()),u.call(e,f,t)}function ce(e){var n,r,o,i,a,s,c,f,d,p,h,g,v,y,m,E,_,b,A,w,C,T,k,I,D,O,R,S,N,L,U;try{if(l&&e){var x=l.core.getConfig(),P=Zn.CONFIG_PREFERENCES.MERGE,F=[];switch(void 0!==(null===(r=null===(n=null==u?void 0:u.configs)||void 0===n?void 0:n.traceparentGeneration)||void 0===r?void 0:r.force)&&!0===(null===(i=null===(o=null==u?void 0:u.configs)||void 0===o?void 0:o.traceparentGeneration)||void 0===i?void 0:i.force)?P=Zn.CONFIG_PREFERENCES.APP:void 0!==(null===(a=null==x?void 0:x.traceparentconfig)||void 0===a?void 0:a.pref)&&(P=null===(s=null==x?void 0:x.traceparentconfig)||void 0===s?void 0:s.pref),P){case Zn.CONFIG_PREFERENCES.APP:if(!1===(null===(f=null===(c=null==u?void 0:u.configs)||void 0===c?void 0:c.traceparentGeneration)||void 0===f?void 0:f.enabled))return"";null!==(h=null===(p=null===(d=null==u?void 0:u.configs)||void 0===d?void 0:d.traceparentGeneration)||void 0===p?void 0:p.targetUrl)&&void 0!==h&&h.length&&(F=t([],null===(v=null===(g=null==u?void 0:u.configs)||void 0===g?void 0:g.traceparentGeneration)||void 0===v?void 0:v.targetUrl,!0));break;case Zn.CONFIG_PREFERENCES.REMOTE:if(!1===(null===(y=null==x?void 0:x.traceparentconfig)||void 0===y?void 0:y.enabled))return"";void 0!==(null==x?void 0:x.traceparentconfig)&&null!==(E=null===(m=null==x?void 0:x.traceparentconfig)||void 0===m?void 0:m.targetUrl)&&void 0!==E&&E.length&&(F=t([],null===(_=null==x?void 0:x.traceparentconfig)||void 0===_?void 0:_.targetUrl,!0));break;default:if(void 0===(null==x?void 0:x.traceparentconfig)&&!1===(null===(A=null===(b=null==u?void 0:u.configs)||void 0===b?void 0:b.traceparentGeneration)||void 0===A?void 0:A.enabled)||void 0===(null===(w=null==u?void 0:u.configs)||void 0===w?void 0:w.traceparentGeneration)&&!1===(null===(C=null==x?void 0:x.traceparentconfig)||void 0===C?void 0:C.enabled))return"";var M=null===(k=null===(T=null==u?void 0:u.configs)||void 0===T?void 0:T.traceparentGeneration)||void 0===k?void 0:k.targetUrl,B=null===(I=null==x?void 0:x.traceparentconfig)||void 0===I?void 0:I.targetUrl;!1===(null===(O=null===(D=null==u?void 0:u.configs)||void 0===D?void 0:D.traceparentGeneration)||void 0===O?void 0:O.enabled)&&(M=[]),!1===(null===(R=null==x?void 0:x.traceparentconfig)||void 0===R?void 0:R.enabled)&&(B=[]);var V=new Set(t(t([],B||[],!0),M||[],!0));F=Array.from(V)}var j=null===(N=null===(S=null==u?void 0:u.configs)||void 0===S?void 0:S.networkRequestTracking)||void 0===N?void 0:N.safelist,z=null===(L=null==x?void 0:x.networkRequestTrackingConfiguration)||void 0===L?void 0:L.blocklist,K=(null==z?void 0:z.includes("*"))||(null==z?void 0:z.some((function(t){return 0<(null==t?void 0:t.length)&&e.toLowerCase().includes(t.toLowerCase())}))),G=null==j?void 0:j.some((function(t){return 0<(null==t?void 0:t.length)&&e.toLowerCase().includes(t.toLowerCase())}));if(0<(null==F?void 0:F.length)&&(null!=F&&F.includes("*")||null!=F&&F.some((function(t){return 0<(null==t?void 0:t.length)&&e.toLowerCase().includes(t.toLowerCase())})))&&null!==(U=null==x?void 0:x.networkRequestTrackingConfiguration)&&void 0!==U&&U.enabled&&(G||!K))return"00-"+Array.from({length:32},(function(){return Math.floor(16*Math.random()).toString(16)})).join("")+"-"+Array.from({length:16},(function(){return Math.floor(16*Math.random()).toString(16)})).join("")+"-00"}return""}catch(e){return""}}function le(e,t,n){var r=u.trackerConfigUrl?u.trackerConfigUrl:Qe;"number"==typeof Ve&&window.clearInterval(Ve);var o=function(){Ve=window.setInterval(tt,6e4*e,r)};try{var i=t?((new Date).getTime()-t)/6e4:e;i=e-i;var a=3*e/100;"string"==typeof n&&n===Zn.RC_FETCH_MODE.DO_NOT_FETCH_UPDATE_TIMER?o():"string"==typeof n&&n===Zn.RC_FETCH_MODE.UPDATE_TIMER_WITH_DIFF&&0<t&&i>a?window.setTimeout((function(){tt(r),o()}),6e4*i):(tt(r),o())}catch(e){tt(r),o()}}var fe,de,pe,he,ge,ve,ye,me,_e,be,we,Ce,Te,ke,De,Oe,Re,Se,Ne,Le,Ue,xe,Pe,Fe,Me={cacheRefreshInterval:30,base64:!1,linkClickTracking:!0,buttonClickTracking:!0,lifecycleAutotracking:!0,exceptionAutotracking:!0,enablePeriodicHeartbeat:!0,periodicHeartbeatInterval:40,customEventTrackingConfiguration:{enabled:!0},ajaxTrackingConfiguration:{blocklist:["*"]},networkRequestTrackingConfiguration:{blocklist:["*"]},traceparentconfig:{enabled:!0,pref:Zn.CONFIG_PREFERENCES.MERGE,targetUrl:[]},performanceContextConfig:1,configurationVersion:-1,catRcLastUpdatedTs:0,endpoint:Zn.DEFAULT_END_POINT},Be={},Ve=null,je=!1,ze=!1,Ke={};if("undefined"!=typeof window&&null!==window&&void 0!==window&&window.localStorage)try{localStorage.removeItem(Zn.END_POINT_STORAGE_KEY);var Ge=null!==(fe=localStorage.getItem(Zn.REMOTE_CONFIG_STORAGE_KEY))&&void 0!==fe?fe:JSON.stringify(Be)}catch(e){Ge=JSON.stringify(Be),je=!0,Ae.warn("Issue while fetching data from local storage")}else Ge=JSON.stringify(Be);try{Ke=JSON.parse(Ge)}catch(e){je=!0,Ae.warn("Issue while parsing storedConvivaRemoteConfig")}i=u.gatewayUrl?u.gatewayUrl:null!=Ke&&Ke.endpoint?null==Ke?void 0:Ke.endpoint:Zn.DEFAULT_END_POINT,r||(r="CAT"),Be.base64=void 0!==Ke.base64?Ke.base64:Me.base64,Be.cacheRefreshInterval=void 0!==Ke.cacheRefreshInterval?Ke.cacheRefreshInterval:Me.cacheRefreshInterval,Be.linkClickTracking=void 0!==Ke.linkClickTracking?Ke.linkClickTracking:Me.linkClickTracking,Be.lifecycleAutotracking=void 0!==Ke.lifecycleAutotracking?Ke.lifecycleAutotracking:Me.lifecycleAutotracking,Be.buttonClickTracking=void 0!==Ke.buttonClickTracking?Ke.buttonClickTracking:Me.buttonClickTracking,Be.exceptionAutotracking=void 0!==Ke.exceptionAutotracking?Ke.exceptionAutotracking:Me.exceptionAutotracking,Be.enablePeriodicHeartbeat=void 0!==Ke.enablePeriodicHeartbeat?Ke.enablePeriodicHeartbeat:Me.enablePeriodicHeartbeat,Be.periodicHeartbeatInterval=void 0!==Ke.periodicHeartbeatInterval?Ke.periodicHeartbeatInterval:Me.periodicHeartbeatInterval,void 0!==Ke.enc&&(Be.enc=Ke.enc),void 0!==Ke.maxLocalStorageQueueSize&&(Be.maxLocalStorageQueueSize=Ke.maxLocalStorageQueueSize),void 0!==Ke.maxPostBytes&&(Be.maxPostBytes=Ke.maxPostBytes),void 0!==Ke.maxGetBytes&&(Be.maxGetBytes=Ke.maxGetBytes),void 0!==Ke.bufferSize&&(Be.bufferSize=Ke.bufferSize),Be.customEventTrackingConfiguration=void 0!==Ke.customEventTrackingConfiguration?Ke.customEventTrackingConfiguration:ne({},Me.customEventTrackingConfiguration),Be.ajaxTrackingConfiguration=void 0!==Ke.ajaxTrackingConfiguration?Ke.ajaxTrackingConfiguration:ne({},Me.ajaxTrackingConfiguration),Be.networkRequestTrackingConfiguration=void 0!==Ke.networkRequestTrackingConfiguration?Ke.networkRequestTrackingConfiguration:ne({},Me.networkRequestTrackingConfiguration),void 0!==Ke.metaTagsTrackingConfiguration&&(Be.metaTagsTrackingConfiguration=Ke.metaTagsTrackingConfiguration),Be.traceparentconfig=void 0!==Ke.traceparentconfig?Ke.traceparentconfig:ne({},Me.traceparentconfig),void 0!==Ke.mend&&(Be.mend=Ke.mend),Be.performanceContextConfig=void 0!==Ke.performanceContextConfig?Ke.performanceContextConfig:Me.performanceContextConfig,Be.configurationVersion=void 0!==Ke.configurationVersion?Ke.configurationVersion:Me.configurationVersion,Be.catRcLastUpdatedTs=void 0!==Ke.catRcLastUpdatedTs?Ke.catRcLastUpdatedTs:Me.catRcLastUpdatedTs,null===(de=Q(Be.performanceContextConfig))||void 0===de||de.activateLCPObserver(),function(){try{var e=0,t=0;null===window||void 0===window||window.addEventListener("load",(function(){var e;try{var t=null===(e=null==l?void 0:l.core)||void 0===e?void 0:e.getConfig();null==l||l.trackCustomEvent({name:"conviva_window_loaded",data:"{}",context:Q(null==t?void 0:t.performanceContextConfig).contexts()})}catch(e){console.warn("ConvivaAppTracker : issue while registering window loaded event",e)}})),null===document||void 0===document||document.addEventListener("visibilitychange",(function(){var n;try{if("hidden"===document.visibilityState)setTimeout((function(){var e;try{var n=null===(e=null==l?void 0:l.core)||void 0===e?void 0:e.getConfig();if(t++,null!=n&&n.lifecycleAutotracking){var r=l.core,o=r.track,i=w({event:{sc:"sp/abg/1-0-0",dt:T({backgroundIndex:t})}});o.call(r,i)}"hidden"!==document.visibilityState||an||null==l||l.trackCustomEvent({name:"conviva_app_backgrnd_before_page_view",data:"{}"})}catch(e){console.warn("ConvivaAppTracker : issue while tracking visibility change",e)}}),0);else{var r=null===(n=null==l?void 0:l.core)||void 0===n?void 0:n.getConfig();e++,null!=r&&r.lifecycleAutotracking&&l.core.track(w({event:{sc:"sp/afg/1-0-0",dt:T({foregroundIndex:e})}}))}}catch(e){console.warn("convivaAppTracker visibilitychange failed "+e)}})),"undefined"!=typeof document&&document&&document.addEventListener&&document.addEventListener("convivaVideoEvent",(function(e){e&&l&&(null==l||l.trackVideoEvent(e))}))}catch(e){console.warn("convivaAppTracker error in page load metrics"+e)}}();try{var qe=XMLHttpRequest,He=null===(pe=null===window||void 0===window?void 0:window.fetch)||void 0===pe?void 0:pe.bind(window);if(qe){var Je,We=function(e,t,n){var r,o;try{var i=l.core.getConfig().networkRequestTrackingConfiguration,a=i.blocklist,s=null===(o=null===(r=null==u?void 0:u.configs)||void 0===r?void 0:r.networkRequestTracking)||void 0===o?void 0:o.safelist,c=(null==a?void 0:a.includes("*"))||(null==a?void 0:a.some((function(e){var n;return 0<(null==e?void 0:e.length)&&(null===(n=null==t?void 0:t.url)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))}))),f=null==s?void 0:s.some((function(e){var n;return 0<(null==e?void 0:e.length)&&(null===(n=null==t?void 0:t.url)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))}));if(i&&i.enabled&&!c||f){var d={status:null==e?void 0:e.status,statusText:(""!==(null==e?void 0:e.statusText)?null==e?void 0:e.statusText:void 0)||("load"!=n?n:void 0),responseTimestamp:null===Date||void 0===Date?void 0:Date.now(),responseTime:(null===performance||void 0===performance?void 0:performance.now())||(null===Date||void 0===Date?void 0:Date.now())};n=void 0;try{n=function(e){var t={};return e.trim().split(/[\r\n]+/).forEach((function(e){var n=(e=e.split(":"))[1];t[e[0].trim()]=null==n?void 0:n.trim()})),t}(e.getAllResponseHeaders()),d.headers=n}catch(e){}try{d.body=null==e?void 0:e.response}catch(e){}l.trackNetworkRequest({requestDetails:t,responseDetails:d})}}catch(e){console.warn("Conviva App Tracker:: Unable to track network request error while handleResponse ".concat(e))}},Ye=function(){var e=new qe;try{var t,n,r,o={},i=e.setRequestHeader;e.setRequestHeader=function(e,t){o[e]=t,i.call(this,e,t)};var a=e.open;e.open=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];t=r[0],n=r[1];try{/^(?:[a-z]+:)?\/\//i.test(n)||(n=0===n.indexOf("/")?window.location.origin+n:window.location.origin+"/"+n)}catch(e){}a.call(e,r[0],r[1],!0)};var u=e.send;e.send=function(i){try{var a=null;Zn.TRACEPARENT_HEADER_KEY in o||null!==(a=ce(n))&&""!==a&&e.setRequestHeader(Zn.TRACEPARENT_HEADER_KEY,a),u.call(e,i),r={method:t,url:n,headers:o,body:i,requestTimestamp:null===Date||void 0===Date?void 0:Date.now(),requestTime:(null===performance||void 0===performance?void 0:performance.now())||(null===Date||void 0===Date?void 0:Date.now())},null!==a&&""!==a&&(r[Zn.TRACEPARENT_HEADER_KEY]=a)}catch(e){console.warn("Conviva App Tracker:: Unable to track network request while send ".concat(e))}},e.addEventListener("load",(function(){return We(e,r,"load")})),e.addEventListener("error",(function(){return We(e,r,"error")})),e.addEventListener("abort",(function(){return We(e,r,"abort")})),e.addEventListener("timeout",(function(){return We(e,r,"timeout")}))}catch(e){console.warn("Conviva App Tracker:: Unable to track network request while interceptRequest ".concat(e))}return e};for(Je in qe)qe.hasOwnProperty(Je)&&(Ye[Je]=qe[Je]);Ye.prototype=qe.prototype,window.XMLHttpRequest=Ye}if(He){var Ze=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t};window.fetch=function(e,t){var n,r,o,i=null;if(e instanceof Request){e=null==e?void 0:e.clone();try{var a=!1;null===(n=null==e?void 0:e.headers)||void 0===n||n.forEach((function(e,t){Zn.TRACEPARENT_HEADER_KEY===t&&(a=!0)})),a||null!==(i=ce(e.url))&&""!==i&&e.headers.set(Zn.TRACEPARENT_HEADER_KEY,i)}catch(e){console.warn("ConvivaAppTracker: Issue while adding traceparent header",e)}n=He(e)}else{try{if(t&&t.headers){var s=new Headers(t.headers),c=!1;s.forEach((function(e,t){Zn.TRACEPARENT_HEADER_KEY===t&&(c=!0)})),c||null!==(i=ce(e))&&""!==i&&s.set(Zn.TRACEPARENT_HEADER_KEY,i)}else s=new Headers,null!==(i=ce(e))&&""!==i&&s.set(Zn.TRACEPARENT_HEADER_KEY,i),t||(t={});t.headers=s}catch(e){console.warn("ConvivaAppTracker: Issue while adding traceparent header",e)}n=He(e,t),e=new Request(e,t).clone()}try{s=void 0;try{s=Ze(e.headers)}catch(e){}var f=void 0;try{f=null==t?void 0:t.body}catch(e){}var d={method:e.method,url:e.url,headers:s,body:f,requestTimestamp:null===Date||void 0===Date?void 0:Date.now(),requestTime:(null===performance||void 0===performance?void 0:performance.now())||(null===Date||void 0===Date?void 0:Date.now())},p=l.core.getConfig().networkRequestTrackingConfiguration,h=p.blocklist,g=null===(o=null===(r=null==u?void 0:u.configs)||void 0===r?void 0:r.networkRequestTracking)||void 0===o?void 0:o.safelist,v=(null==h?void 0:h.includes("*"))||(null==h?void 0:h.some((function(e){var t;return 0<(null==e?void 0:e.length)&&(null===(t=null==d?void 0:d.url)||void 0===t?void 0:t.toLowerCase().includes(e.toLowerCase()))}))),y=null==g?void 0:g.some((function(e){var t;return 0<(null==e?void 0:e.length)&&(null===(t=null==d?void 0:d.url)||void 0===t?void 0:t.toLowerCase().includes(e.toLowerCase()))}));null!==i&&""!==i&&(d[Zn.TRACEPARENT_HEADER_KEY]=i),(p&&p.enabled&&!v||y)&&n.then((function(e){try{var t=Ze(e.headers)}catch(e){}var n={status:null==e?void 0:e.status,statusText:""!==(null==e?void 0:e.statusText)?null==e?void 0:e.statusText:void 0,headers:t,size:0,responseTimestamp:null===Date||void 0===Date?void 0:Date.now(),responseTime:(null===performance||void 0===performance?void 0:performance.now())||(null===Date||void 0===Date?void 0:Date.now())};e.clone().json().then((function(e){n.body=e,l.trackNetworkRequest({requestDetails:d,responseDetails:n})})).catch((function(){l.trackNetworkRequest({requestDetails:d,responseDetails:n})}))})).catch((function(e){e={statusText:e.toString(),responseTimestamp:null===Date||void 0===Date?void 0:Date.now(),responseTime:(null===performance||void 0===performance?void 0:performance.now())||(null===Date||void 0===Date?void 0:Date.now())},l.trackNetworkRequest({requestDetails:d,responseDetails:e})}))}catch(e){console.warn("Conviva App Tracker:: Unable to track network request while fetch interceptRequest ".concat(e))}return n}}try{qe||He||PerformanceObserver&&new PerformanceObserver((function(e){try{e.getEntries().forEach((function(e){l&&l.trackAjaxEvent(e)}))}catch(e){console.warn("Conviva PerformanceObserver error in listeneing ajax request observer ".concat(e))}})).observe({type:"resource",buffered:!0})}catch(e){console.warn("Conviva PerformanceObserver failed to report ajax request"+e)}}catch(e){console.warn("Conviva App Tracker:: Unable to track network request ".concat(e))}var Xe=o.split("js-")[1],Qe=Zn.REMOTE_CONFIG_URL_PREFIX+u.convivaCustomerKey+"/"+Xe+Zn.REMOTE_CONFIG_FILE_NAME;if(window.XMLHttpRequest){var $e=new XMLHttpRequest,et=0;$e.onreadystatechange=function(){try{if(4==$e.readyState)if(ze=!1,200==$e.status){et=0,Be.catRcLastUpdatedTs=(new Date).getTime();var e=JSON.parse($e.response),t=e.cri||e.cacheRefreshInterval||Me.cacheRefreshInterval;t=0>t?Me.cacheRefreshInterval:~~t,Be.cacheRefreshInterval!=t&&(Be.cacheRefreshInterval=t,le(Be.cacheRefreshInterval,Be.catRcLastUpdatedTs,Zn.RC_FETCH_MODE.DO_NOT_FETCH_UPDATE_TIMER)),s(e,Me,r,Be.catRcLastUpdatedTs)}else try{2>et&&window.setTimeout((function(){null!=u&&u.trackerConfigUrl?tt(null==u?void 0:u.trackerConfigUrl,!0):tt(Qe,!0)}),5e3*(et+1))}catch(e){}}catch(e){ze=!1,console.warn("Conviva App Tracker:: Error in fetching remote-config ".concat(e))}};var tt=function(e,t){try{"boolean"==typeof ze&&!1===ze&&(t?et++:et=0,$e.timeout=3e4,$e.open("GET",e,!0),ze=!0,$e.send())}catch(e){ze=!1}};le(Be.cacheRefreshInterval,Be.catRcLastUpdatedTs,void 0!==je&&!0===je?Zn.RC_FETCH_MODE.IMMEDIATE_FETCH:Zn.RC_FETCH_MODE.UPDATE_TIMER_WITH_DIFF)}u.eventMethod=null!==(he=u.eventMethod)&&void 0!==he?he:"post";var nt=function(e){var t;return null!==(t=e.stateStorageStrategy)&&void 0!==t?t:"cookieAndLocalStorage"},rt=function(e){var t,n;return"boolean"!=typeof e.anonymousTracking&&null!==(n=!0===(null===(t=e.anonymousTracking)||void 0===t?void 0:t.withSessionTracking))&&void 0!==n&&n},ot=function(e){var t,n;return"boolean"!=typeof e.anonymousTracking&&null!==(n=!0===(null===(t=e.anonymousTracking)||void 0===t?void 0:t.withServerAnonymisation))&&void 0!==n&&n};c.push({beforeTrack:function(e){var t=v("ses"),n=L();At=!!lt&&!!q(lt),Gt||At?R():("0"===n[0]?(_t=t||"none"==Zt?n[6]:Z(n),nn=n[3]):(new Date).getTime()-tn>1e3*Ht&&(nn++,_t=Z(n,nn)),X(n),-1===n[10]&&(t=e.build(),n[8]=t.eid,t=t.dtm||t.ttm,n[9]=t?parseInt(t):void 0),n[10]+=1,e.add("uid",Yt?null:bt),f(),e.add("refr",h(it||It)),document&&(Pt=document.title,t=F(ut||Pt),e.add("page",t)),e.add("url",h(at||kt)),"none"!=Zt&&(D(n),I()),tn=(new Date).getTime())}}),c.push({contexts:function(){var e=ft,t=dt.toString(),n=Nt;try{var r=window.localStorage.getItem(Xt+"."+Qt),o=JSON.parse(r||"{}");"{}"!==o&&void 0!==o&&void 0!==o[$t]&&(en=o[$t]),2147483647<=en?en=0:en++,$();var i=en}catch(e){console.warn(e),i=void 0}return[{sc:"cv/clid/1-0-2",dt:{clid:e,iid:t,ck:n,eventIndex:i}}]}}),c.push({contexts:function(){return[{sc:"cv/ct/1-0-0",dt:{data:ne(ne({},Ut),xt)}}]}}),c.push({contexts:function(){return[{sc:"spm/app/1-0-0",dt:{build:Lt,version:Lt}}]}});try{(null!==(ge=null==u?void 0:u.plugins)&&void 0!==ge?ge:[]).forEach((function(e){e.contexts||c.push(e)}))}catch(e){console.warn("ConvivaAppTracker : issue while processing customer passed pligins",e)}var it,at,ut,st,ct,lt,ft,dt,pt,ht,gt,vt,yt,mt,Et,_t,bt,At,wt=A({base64:Be.base64,corePlugins:c,callback:function(e){Gt||At||rn.enqueueRequest(e.build(),Ot)},linkClickTracking:Be.linkClickTracking,buttonClickTracking:Be.buttonClickTracking,exceptionAutotracking:Be.exceptionAutotracking,enablePeriodicHeartbeat:Be.enablePeriodicHeartbeat,periodicHeartbeatInterval:Be.periodicHeartbeatInterval,enc:Be.enc,mend:Be.mend,maxLocalStorageQueueSize:Be.maxLocalStorageQueueSize,maxPostBytes:Be.maxPostBytes,maxGetBytes:Be.maxGetBytes,bufferSize:Be.bufferSize,customEventTrackingConfiguration:Be.customEventTrackingConfiguration,ajaxTrackingConfiguration:Be.ajaxTrackingConfiguration,networkRequestTrackingConfiguration:Be.networkRequestTrackingConfiguration,metaTagsTrackingConfiguration:Be.metaTagsTrackingConfiguration,performanceContextConfig:Be.performanceContextConfig,lifecycleAutotracking:Be.lifecycleAutotracking,configurationVersion:Be.configurationVersion,catRcLastUpdatedTs:Be.catRcLastUpdatedTs,cacheRefreshInterval:Be.cacheRefreshInterval}),Ct=Y(window.location.hostname,window.location.href,V()),Tt=B(Ct[0]),kt=Ct[1],It=Ct[2],Dt=null!==(ve=u.platform)&&void 0!==ve?ve:"web",Ot=U(i,u.convivaCustomerKey),Rt=null!==(ye=u.postPath)&&void 0!==ye?ye:"/ctp",St=null!==(me=u.appId)&&void 0!==me?me:"",Nt=null!==(_e=u.convivaCustomerKey)&&void 0!==_e?_e:"",Lt=null!==(be=u.appVersion)&&void 0!==be?be:"",Ut={},xt={},Pt="undefined"!=typeof document?document.title:void 0,Ft=null===(we=u.resetActivityTrackingOnPageView)||void 0===we||we,Mt=null!==(Ce=u.cookieName)&&void 0!==Ce?Ce:"_sp_",Bt=null!==(Te=u.cookieDomain)&&void 0!==Te?Te:void 0,Vt="/",jt=null!==(ke=u.cookieSameSite)&&void 0!==ke?ke:"None",zt=null===(De=u.cookieSecure)||void 0===De||De,Kt=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,Gt=void 0!==u.respectDoNotTrack&&u.respectDoNotTrack&&("yes"===Kt||"1"===Kt),qt=null!==(Oe=u.cookieLifetime)&&void 0!==Oe?Oe:63072e3,Ht=null!==(Re=u.sessionCookieTimeout)&&void 0!==Re?Re:1800,Jt=rt(u),Wt=ot(u),Yt=!!u.anonymousTracking,Zt=nt(u),Xt="Conviva",Qt="sdkConfig",$t="eventIndex",en=-1,tn=(new Date).getTime(),nn=1,rn=function(e,t,n,r,o,i,a,u,s,c,l,f,d,p,h,g,v,y){function m(e){var t=Object.keys(e).map((function(t){return[t,e[t]]})).reduce((function(e,t){return e[t[0]]=t[1].toString(),e}),{});return{evt:t,bytes:E(JSON.stringify(t))}}function E(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);127>=r?t+=1:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,n++):t=65535>r?t+3:t+4}return t}function _(e,t){t=w(t,!0,!1),e=C(T([e.evt]));try{"none"!==y().toLowerCase()&&(e=Xn.gzip(e,{level:6}),t.setRequestHeader("Content-Encoding","gzip"))}catch(e){}t.send(e)}function A(e){for(void 0===e&&(e=!1);O.length&&"string"!=typeof O[0]&&"object"!=b(O[0]);)O.shift();if(1>O.length)D=!1;else{if(!I||"string"!=typeof I.valueOf())throw"No collector configured";if(D=!0,N){var t=function(e){for(var t=0,n=0;t<e.length&&!((n+=e[t].bytes)>=a());)t+=1;return t},r=void 0;if(F(O))var o=w(r=I,!0,e),i=t(O);else r=k(O[0]),o=w(r,!1,e),i=1;var u=setTimeout((function(){o.abort(),D=!1}),l),s=function(e){for(var t=0;t<e;t++)O.shift();n&&K(x,JSON.stringify(O.slice(-1*c())))};if(o.onreadystatechange=function(){4===o.readyState&&200<=o.status&&(clearTimeout(u),300>o.status?(s(i),A()):(function(e){if(200<=e&&300>e)return!1;if(h.includes(e))return!0;for(var t=0;t<v.length;t++){var n=v[t];if(e>=n[0]&&e<=n[1])return!1}return!g.includes(e)}(o.status)||(Ae.error("Status ".concat(o.status,", will not retry.")),s(i)),D=!1))},F(O)){if(0<(t=O.slice(0,i)).length){if(e=!1,t=t.map((function(e){return e.evt})),S){var d=new Blob([C(T(t))],{type:"application/json"});try{e=navigator.sendBeacon(r,d)}catch(t){e=!1}}if(!0===e)s(i),A();else{r=C(T(t));try{"none"!==y().toLowerCase()&&(r=Xn.gzip(r,{level:6}),o.setRequestHeader("Content-Encoding","gzip"))}catch(e){}try{o.send(r)}catch(e){}}}}else o.send()}else if(f||F(O))D=!1;else{r=new Image(1,1);var p=!0;r.onload=function(){p&&(p=!1,O.shift(),n&&K(x,JSON.stringify(O.slice(-1*c()))),A())},r.onerror=function(){p&&(D=p=!1)},r.src=k(O[0]),setTimeout((function(){p&&D&&(p=!1,A())}),l)}}}function w(e,t,n){var r=new XMLHttpRequest;for(var o in t?(r.open("POST",e,!n),r.setRequestHeader("Content-Type","application/json; charset=UTF-8")):r.open("GET",e,!n),r.withCredentials=p,f&&r.setRequestHeader("SP-Anonymous","*"),d)Object.prototype.hasOwnProperty.call(d,o)&&r.setRequestHeader(o,d[o]);return r}function C(e){return JSON.stringify({sc:"sp/pd/1-0-4",dt:e})}function T(e){for(var t=(new Date).getTime().toString(),n=0;n<e.length;n++)e[n].stm=t;return e}function k(e){return s?I+e.replace("?","?stm="+(new Date).getTime()+"&"):I+e}var I,D=!1,O=[],R=!0===(r="string"==typeof r?r.toLowerCase():r)||"beacon"===r||"true"===r,S=!(!(R&&window.navigator&&window.navigator.sendBeacon)||function(e){return!(!(t=(t=e).match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))||!t.length)&&parseInt(t[0])<=13||function(e,t,n){return!(!(n=n.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))||!n.length)&&(parseInt(n[0])<=10||10===parseInt(n[0])&&parseInt(n[1])<=15)}(0,0,e)&&function(e){return e.match("Version/.* Safari/")&&!e.match("Chrom(e|ium)")}(e);var t}(window.navigator.userAgent))&&R,N=!(!window.XMLHttpRequest||!("withCredentials"in new XMLHttpRequest)),L="get"!==r&&N&&("post"===r||R),U=L?o:"/i";r="snowplowOutQueue_".concat(e,"_").concat(L?"post2":"get");var x="convivaOutQueue_".concat(e,"_").concat(L?"post2":"get");if(H(r),H("".concat(r,".expires")),R&&(d={}),i=n&&function(){try{var e=!!window.localStorage}catch(t){e=!0}if(!e)return!1;try{var t=window.localStorage;return t.setItem("modernizr","modernizr"),t.removeItem("modernizr"),!0}catch(e){return!1}}()&&L&&i||1,n)try{var P=window.localStorage.getItem(x);O=P?JSON.parse(P):[]}catch(e){}Array.isArray(O)||(O=[]),t.outQueues.push(O),N&&1<i&&t.bufferFlushers.push((function(e){D||A(e)}));var F=function(e){return"object"==b(e[0])};return{enqueueRequest:function(e,t){if(I=t+U,L){if(e=m(e),t=a(),e.bytes>=t)return Ae.warn("Event ("+e.bytes+"B) too big, max is "+t),void _(e,I);O.push(e)}else{var r,s="?",l={co:!0,cx:!0},f=!0;for(r in e)e.hasOwnProperty(r)&&!l.hasOwnProperty(r)&&(f?f=!1:s+="&",s+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));for(var d in l)e.hasOwnProperty(d)&&l.hasOwnProperty(d)&&(s+="&"+d+"="+encodeURIComponent(e[d]));if(0<(l=u())&&(f=E(f=k(s)))>=l)return Ae.warn("Event ("+f+"B) too big, max is "+l),void(N&&(e=m(e),_(e,t+o)));O.push(s)}t=!1,n&&(t=K(x,JSON.stringify(O.slice(-1*c())))),D||t&&!(O.length>=i)||A()},executeQueue:function(){D||A()},setUseLocalStorage:function(e){n=e},setAnonymousTracking:function(e){f=e},setCollectorUrl:function(e){I=e+U},setBufferSize:function(e){i=e},setCustomHeaders:function(e){d=e}}}(e,a,"localStorage"==Zt||"cookieAndLocalStorage"==Zt,u.eventMethod,Rt,function(){var e,t=wt.getConfig();return null!==(e=t.bufferSize?t.bufferSize:u.bufferSize)&&void 0!==e?e:1}(),(function(){var e,t=wt.getConfig();return null!==(e=t.maxPostBytes?t.maxPostBytes:u.maxPostBytes)&&void 0!==e?e:2e4}),(function(){var e,t=wt.getConfig();return null!==(e=t.maxGetBytes?t.maxGetBytes:u.maxGetBytes)&&void 0!==e?e:0}),null===(Se=u.useStm)||void 0===Se||Se,(function(){var e,t=wt.getConfig();return null!==(e=t.maxLocalStorageQueueSize?t.maxLocalStorageQueueSize:u.maxLocalStorageQueueSize)&&void 0!==e?e:10}),null!==(Ne=u.connectionTimeout)&&void 0!==Ne?Ne:5e3,Wt,null!==(Le=u.customHeaders)&&void 0!==Le?Le:{},null!==(Ue=u.withCredentials)&&void 0!==Ue&&Ue,null!==(xe=u.retryStatusCodes)&&void 0!==xe?xe:[],(null!==(Pe=u.dontRetryStatusCodes)&&void 0!==Pe?Pe:[]).concat([400,401,403,410,422]),(null!==(Fe=u.dontRetryStatusCodesRange)&&void 0!==Fe?Fe:[]).concat([[400,499]]),(function(){var e,t,n,r=wt.getConfig();return null!==(n=null!=r&&r.enc?r.enc:null===(t=null===(e=null==u?void 0:u.configs)||void 0===e?void 0:e.network)||void 0===t?void 0:t.encoding)&&void 0!==n?n:"gzip"})),on=!1,an=!1,un={enabled:!0,installed:!1,configurations:{pagePing:{configMinimumVisitLength:5e3,configHeartBeatTimer:1e3*Be.periodicHeartbeatInterval,callback:se}}},sn=!1;return u.hasOwnProperty("discoverRootDomain")&&u.discoverRootDomain&&(Bt=function(e,t){for(var n=window.location.hostname,r="_sp_root_domain_test_"+(new Date).getTime(),o="_test_value_"+(new Date).getTime(),i=n.split("."),a=i.length-1;0<=a;){var u=i.slice(a,i.length).join(".");if(q(r,o,0,"/",u,e,t),q(r)===o){for(q(r,"",-1,"/",u,e,t),n=document.cookie.split("; "),r=[],o=0;o<n.length;o++)"_sp_root_domain_test_"===n[o].substring(0,21)&&r.push(n[o]);for(n=r,r=0;r<n.length;r++)q(n[r],"",-1,"/",u,e,t);return u}--a}return n}(jt,zt)),wt.setTrackerVersion(o),wt.setAppId(St),wt.setPlatform(Dt),y(),N(),rn.setCustomHeaders({"x-client-id":""+ft}),u.crossDomainLinker&&p(u.crossDomainLinker),ne(ne({},{getDomainSessionIndex:function(){return nn},getPageViewId:function(){return W()},newSession:function(){var e=L();"0"===e[0]?(_t="none"!=Zt?Z(e):e[6],nn=e[3],I()):(nn++,_t=Z(e,nn)),X(e),"none"!=Zt&&(D(e),I()),tn=(new Date).getTime()},getCookieName:function(e){return Mt+e+"."+mt},getUserId:function(){return bt},getDomainUserId:function(){return L()[1]},getDomainUserInfo:function(){return L()},setReferrerUrl:function(e){it=e},setCustomUrl:function(e){f();var t,n=kt;g(e)?at=e:"/"===e.slice(0,1)?at=g(n)+"://"+M(n)+e:(0<=(t=(n=h(n)).indexOf("?"))&&(n=n.slice(0,t)),(t=n.lastIndexOf("/"))!==n.length-1&&(n=n.slice(0,t+1)),at=n+e)},setDocumentTitle:function(e){Pt=document.title,ut=e},discardHashTag:function(e){st=e},discardBrace:function(e){ct=e},setCookiePath:function(e){Vt=e,y()},setVisitorCookieTimeout:function(e){qt=e},crossDomainLinker:function(e){p(e)},enableActivityTracking:function(e){un.configurations.pagePing||(un.enabled=!0,un.configurations.pagePing=ue(ne(ne({},e),{callback:se})))},enableActivityTrackingCallback:function(e){un.configurations.callback||(un.enabled=!0,un.configurations.callback=ue(e))},updatePageActivity:function(){m()},setOptOutCookie:function(e){lt=e},setUserId:function(e){bt=e},setUserIdFromLocation:function(e){f(),bt=z(e,kt)},setUserIdFromReferrer:function(e){f(),bt=z(e,It)},setUserIdFromCookie:function(e){bt=q(e)},setCollectorUrl:function(e,t){Ot=U(e,t),rn.setCollectorUrl(Ot)},setBufferSize:function(e){rn.setBufferSize(e)},flushBuffer:function(e){void 0===e&&(e={}),rn.executeQueue(),e.newBufferSize&&rn.setBufferSize(e.newBufferSize)},trackPageView:function(e){void 0===e&&(e={}),ie();var t=this.core.getConfig();try{e=ne(ne({},e),{context:Q(null==t?void 0:t.performanceContextConfig).contexts()})}catch(e){console.warn("Conviva App Tracker:: error adding performacetiming context to page view",e)}!function(e){var t=e.title,n=e.context,r=e.timestamp;if(e=e.contextCallback,f(),an&&x(),an=!0,Pt=document.title,t=F((ut=t)||Pt),wt.track(C({pageUrl:h(at||kt),pageTitle:t,referrer:h(it||It)}),(n||[]).concat(e?e():[]),r),r=new Date,t=!1,un.enabled&&!un.installed){t=un.installed=!0;var o={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0},set:function(){}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),o.hasSupport=e}}};o.update();var i="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(o,"hasSupport")?j(document,i,m,{passive:!0}):j(document,i,m),k(),i=function(e,t){return void 0===t&&(t=m),function(e){return j(document,e,t)}},"click mouseup mousedown mousemove keypress keydown keyup".split(" ").forEach(i(document)),["resize","focus","blur"].forEach(i(window)),i(window,E)("scroll")}if(un.enabled&&(Ft||t))for(r in pt=r.getTime(),r=void 0,un.configurations)(t=un.configurations[r])&&(window.clearInterval(t.activityInterval),ae(t,n,e))}(e)},trackVideoEvent:function(e){var t;void 0===e&&(e={});try{var n=this.core.getConfig();""!=e.name&&null!=e.name||console.warn("Conviva App Tracker:: Video event could not be tracked due to missing name property!!");var r=null===(t=null==n?void 0:n.customEventTrackingConfiguration)||void 0===t?void 0:t.blocklist;null!=r&&r.includes("*")||null!=r&&r.some((function(t){return 0<(null==t?void 0:t.length)&&e.name.toLowerCase().includes(t.toLowerCase())}))||this.core.track(function(e){return w({event:{sc:"cv/ve/1-0-5",dt:T({name:e.name,sid:e.sid,iid:e.iid,clid:e.clid,st:e.st,cen:e.cen,ced:e.ced,an:e.an})}})}({name:e.name,sid:e.sid,iid:e.iid,clid:e.clid,st:e.st,sst:e.sst,an:e.an,cl:e.cl,lv:e.lv,pn:e.pn,vid:e.vid,fw:e.fw,fwv:e.fwv,mn:e.mn,mv:e.mv,url:e.url,tags:e.tags,cen:e.cen,ced:e.ced,oldsc:e.old,newsc:e.new,err:e.err,br:e.br,ft:e.ft}),e.context,e.timestamp)}catch(e){console.warn("Conviva App Tracker:: Video event could not be tracked due to an exception!!",e)}},trackCustomEvent:function(e){var t,n,r;void 0===e&&(e={});try{var o=l.core.getConfig();if(null!==(n=null===(t=null==o?void 0:o.customEventTrackingConfiguration)||void 0===t?void 0:t.enabled)&&void 0!==n?n:Me.customEventTrackingConfiguration.enabled){""!=e.name&&null!=e.name||console.warn("Conviva App Tracker:: custom event name is mandatory for trackCustomEvent API!!");var i=e.data;try{"string"!=typeof e.data&&(i=JSON.stringify(e.data))}catch(e){}var a=null===(r=null==o?void 0:o.customEventTrackingConfiguration)||void 0===r?void 0:r.blocklist;null!=a&&a.includes("*")||null!=a&&a.some((function(t){return 0<(null==t?void 0:t.length)&&e.name.toLowerCase().includes(t.toLowerCase())}))||!e.name||""===e.name||l.core.track(function(e){return w({event:{sc:"cv/re/1-0-1",dt:T({name:e.name,data:e.data})}})}({name:e.name,data:i}),e.context,e.timestamp)}}catch(e){console.warn("Conviva App Tracker:: Unable to track custom event! "+e)}},trackAjaxEvent:function(e){void 0===e&&(e={});try{if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType){var t=this.core.getConfig();if(""==e.name||null==e.name)console.warn("Conviva App Tracker:: Ajax request could not be tracked due to missing URL property!!");else if(null!=t.ajaxTrackingConfiguration&&null!=t.ajaxTrackingConfiguration.blocklist&&0<t.ajaxTrackingConfiguration.blocklist.length){var n=t.ajaxTrackingConfiguration.blocklist;if(-1==n.indexOf("*")){t=!1;for(var r=0;r<n.length;r++)""!==n[r]&&-1!==e.name.toLowerCase().indexOf(n[r].toLowerCase())&&(t=!0);if(!t){var o=this.core,i=o.track,a=w({event:{sc:"cv/nr/1-0-2",dt:T({targetUrl:e.name,responseStatusCode:e.responseStatus,duration:e.duration})}});i.call(o,a,e.context,e.timestamp)}}}}}catch(e){console.warn("Conviva App Tracker:: Ajax request could not be tracked due to an exception!!",e)}},trackNetworkRequest:function(e){var t,n,r,o,i,a,u,s,c,l,f,d,p,h,g,v,y,m,E,_,A;void 0===e&&(e={});try{var C=this.core.getConfig().networkRequestTrackingConfiguration,k=e.responseDetails.responseTime-e.requestDetails.requestTime;try{k=parseFloat(k.toFixed(3))}catch(e){console.warn("Conviva App Tracker:: exception while converting duration to 3 decimal",e)}var I=function(e){try{var t=void 0;return null!=e&&(t=e["content-type"]||e["Content-Type"]||e["Content-type"]),t}catch(e){}},D=function(e){try{var t=void 0;return null!=e&&(t=e["content-length"]||e["Content-Length"]||e["Content-length"]),null==t||isNaN(t)?t:Number(t)}catch(e){}}(null===(r=null==e?void 0:e.responseDetails)||void 0===r?void 0:r.headers),O=I(null===(o=null==e?void 0:e.requestDetails)||void 0===o?void 0:o.headers),R=I(null===(i=null==e?void 0:e.responseDetails)||void 0===i?void 0:i.headers);try{var S=((t={targetUrl:null===(a=null==e?void 0:e.requestDetails)||void 0===a?void 0:a.url,method:null===(u=null==e?void 0:e.requestDetails)||void 0===u?void 0:u.method,responseStatusCode:null===(s=null==e?void 0:e.responseDetails)||void 0===s?void 0:s.status})[Yn.request_headers]=null===(c=null==e?void 0:e.requestDetails)||void 0===c?void 0:c.headers,t[Yn.response_headers]=null===(l=null==e?void 0:e.responseDetails)||void 0===l?void 0:l.headers,t.duration=k,t);if(void 0!==O&&(O.toLowerCase().includes("text/plain")||O.toLowerCase().includes("json")||O.toLowerCase().includes("text/javascript")||O.toLowerCase().includes("application/javascript"))||void 0===O)if("string"==typeof(null===(f=null==e?void 0:e.requestDetails)||void 0===f?void 0:f.body))try{1e4>=(null===(d=null==e?void 0:e.requestDetails)||void 0===d?void 0:d.body.length)&&(S[Yn.request_body]=JSON.parse(null===(p=null==e?void 0:e.requestDetails)||void 0===p?void 0:p.body))}catch(e){}else"object"==b(null===(h=null==e?void 0:e.requestDetails)||void 0===h?void 0:h.body)&&(S[Yn.request_body]=null===(g=null==e?void 0:e.requestDetails)||void 0===g?void 0:g.body);if(void 0!==R&&(R.toLowerCase().includes("text/plain")||R.toLowerCase().includes("json")||R.toLowerCase().includes("text/javascript")||R.toLowerCase().includes("application/javascript"))&&void 0!==D&&1e4>=D)if("string"==typeof(null===(v=null==e?void 0:e.responseDetails)||void 0===v?void 0:v.body))try{S[Yn.response_body]=JSON.parse(null===(y=null==e?void 0:e.responseDetails)||void 0===y?void 0:y.body)}catch(e){}else"object"==b(null===(m=null==e?void 0:e.responseDetails)||void 0===m?void 0:m.body)&&(S[Yn.response_body]=null===(E=null==e?void 0:e.responseDetails)||void 0===E?void 0:E.body);var N=J(S,C.collectattr);if(null!==(_=null==e?void 0:e.requestDetails)&&void 0!==_&&_[Zn.TRACEPARENT_HEADER_KEY]){var L=((n={})[Zn.TRACEPARENT_HEADER_KEY]=null===(A=null==e?void 0:e.requestDetails)||void 0===A?void 0:A[Zn.TRACEPARENT_HEADER_KEY],n);N[Yn.request_headers]=N[Yn.request_headers]?ne(ne({},N[Yn.request_headers]),L):L}this.core.track(w({event:{sc:"cv/nr/1-0-4",dt:T({targetUrl:N.targetUrl,method:N.method,queryParameters:N.queryParameters,responseStatusCode:N.responseStatusCode,responseStatusText:N.responseStatusText,rqh:N.rqh,rsh:N.rsh,rqb:N.rqb,rsb:N.rsb,requestSize:N.requestSize,responseSize:N.responseSize,duration:N.duration,contentType:N.contentType,requestTimestamp:N.requestTimestamp,responseTimestamp:N.responseTimestamp})}}),e.context,e.timestamp)}catch(e){console.warn("Conviva App Tracker:: Network request could not be tracked due to an exception!!",e)}}catch(e){console.warn("Conviva App Tracker:: Network request could not be tracked due to an exception!!",e)}},setCustomTags:function(e){void 0===e&&(e={}),oe(e)},setMetaCustomTags:function(e){void 0===e&&(e={}),function(e){try{var t=Object.keys(e);re(JSON.stringify(e))?t.forEach((function(t){""!==t&&Object.defineProperty(xt,t,{value:""+e[t],writable:!0,enumerable:!0,configurable:!0})})):console.warn("Conviva AppTracker:: Invalid JSON Format: Error Message=")}catch(e){console.warn("Conviva AppTracker:: Invalid JSON Format: Error Message=",e)}}(e)},unsetCustomTags:function(e){void 0===e&&(e={}),function(e){try{e.forEach((function(e){delete Ut[e]}))}catch(e){console.warn("Conviva AppTracker:: Failed to unset Custom tag(s). Check format of keys set.")}}(e)},preservePageViewId:function(){on=!0},disableAnonymousTracking:function(e){u.anonymousTracking=!1,S(e),N(),rn.executeQueue()},enableAnonymousTracking:function(e){var t;u.anonymousTracking=null===(t=e&&(null==e?void 0:e.options))||void 0===t||t,S(e),Jt||x()},clearUserData:R,setKeepAliveInBG:function(e){void 0===e&&(e=!1),sn=e}}),{id:e,namespace:r,core:wt,sharedState:a})}(e,r,o,i,a,u);var l=ne(ne({},e),{addPlugin:function(e){var t,n;l.core.addPlugin(e),null===(n=(t=e.plugin).activateBrowserPlugin)||void 0===n||n.call(t,l)}});return c.forEach((function(e){var t;null===(t=e.activateBrowserPlugin)||void 0===t||t.call(e,l)})),l}function ee(e,t){try{var n=null!=e?e:Object.keys(er);e=er;for(var r=[],o=0;o<n.length;o++){var i=n[o];e.hasOwnProperty(i)?r.push(e[i]):Ae.warn(i+" not configured")}r.forEach(t)}catch(e){Ae.error("Function failed",e)}}function te(e,t,n,r,o,i){return er.hasOwnProperty(e)?null:(er[e]=$(e,t,n,r,o,i),er[e])}var ne=function(){return ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ne.apply(this,arguments)},re={},oe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(oe){var ie=new Uint8Array(16);re=function(){return oe(ie),ie}}else{var ae=Array(16);re=function(){for(var e,t=0;16>t;t++)0==(3&t)&&(e=4294967296*Math.random()),ae[t]=e>>>((3&t)<<3)&255;return ae}}for(var ue=[],se=0;256>se;++se)ue[se]=(se+256).toString(16).substr(1);var ce,le,fe=function(e,t){return t=t||0,[ue[e[t++]],ue[e[t++]],ue[e[t++]],ue[e[t++]],"-",ue[e[t++]],ue[e[t++]],"-",ue[e[t++]],ue[e[t++]],"-",ue[e[t++]],ue[e[t++]],"-",ue[e[t++]],ue[e[t++]],ue[e[t++]],ue[e[t++]],ue[e[t++]],ue[e[t++]]].join("")},de=re,pe=0,he=0,ge=re,ve=function(e,t,n){if(n=t&&n||0,"string"==typeof e&&(t="binary"===e?Array(16):null,e=null),(e=(e=e||{}).random||(e.rng||ge)())[6]=15&e[6]|64,e[8]=63&e[8]|128,t)for(var r=0;16>r;++r)t[n+r]=e[r];return t||fe(e)};ve.v1=function(e,t,n){n=t&&n||0;var r=t||[],o=(e=e||{}).node||ce,i=void 0!==e.clockseq?e.clockseq:le;if(null==o||null==i){var a=de();null==o&&(o=ce=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==i&&(i=le=16383&(a[6]<<8|a[7]))}a=void 0!==e.msecs?e.msecs:(new Date).getTime();var u=void 0!==e.nsecs?e.nsecs:he+1,s=a-pe+(u-he)/1e4;if(0>s&&void 0===e.clockseq&&(i=i+1&16383),(0>s||a>pe)&&void 0===e.nsecs&&(u=0),1e4<=u)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");for(pe=a,he=u,le=i,e=(1e4*(268435455&(a+=122192928e5))+u)%4294967296,r[n++]=e>>>24&255,r[n++]=e>>>16&255,r[n++]=e>>>8&255,r[n++]=255&e,e=a/4294967296*1e4&268435455,r[n++]=e>>>8&255,r[n++]=255&e,r[n++]=e>>>24&15|16,r[n++]=e>>>16&255,r[n++]=i>>>8|128,r[n++]=255&i,i=0;6>i;++i)r[n+i]=o[i];return t||fe(r)};var ye,me,Ee=ve.v4=ve,_e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";(me=ye||(ye={}))[me.none=0]="none",me[me.error=1]="error",me[me.warn=2]="warn",me[me.debug=3]="debug",me[me.info=4]="info";var be,Ae=function(e){return void 0===e&&(e=ye.warn),{setLogLevel:function(t){e=ye[t]?t:ye.warn},warn:function(n,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];e>=ye.warn&&"undefined"!=typeof console&&(i="Conviva: "+n,r?console.warn.apply(console,t([i+"\n",r],o,!1)):console.warn.apply(console,t([i],o,!1)))},error:function(n,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];e>=ye.error&&"undefined"!=typeof console&&(i="Conviva: "+n+"\n",r?console.error.apply(console,t([i+"\n",r],o,!1)):console.error.apply(console,t([i],o,!1)))},debug:function(n){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e>=ye.debug&&"undefined"!=typeof console&&console.debug.apply(console,t(["Conviva: "+n],r,!1))},info:function(n){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e>=ye.info&&"undefined"!=typeof console&&console.info.apply(console,t(["Conviva: "+n],r,!1))}}}();!function(e){e.response_body="rsb",e.request_body="rqb",e.response_headers="rsh",e.request_headers="rqh"}(be||(be={}));var we={},Ce={};!function(){var e={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(t){if(t.constructor==Number)return 16711935&e.rotl(t,8)|4278255360&e.rotl(t,24);for(var n=0;n<t.length;n++)t[n]=e.endian(t[n]);return t},randomBytes:function(e){for(var t=[];0<e;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var r=e[n]<<16|e[n+1]<<8|e[n+2],o=0;4>o;o++)8*n+6*o<=8*e.length?t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>>6*(3-o)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,r=0;n<e.length;r=++n%4)0!=r&&t.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(n))>>>6-2*r);return t}};Ce=e}();var Te={utf8:{stringToBytes:function(e){return Te.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Te.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},ke=Te;!function(){var e=Ce,t=ke.utf8,n=ke.bin,r=function(r,o){var i=e.wordsToBytes,a=r;a.constructor==String?a=t.stringToBytes(a):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(a)?a=Array.prototype.slice.call(a,0):Array.isArray(a)||(a=a.toString()),r=e.bytesToWords(a);var u=8*a.length;a=[];var s=1732584193,c=-271733879,l=-1732584194,f=271733878,d=-1009589776;for(r[u>>5]|=128<<24-u%32,r[15+(u+64>>>9<<4)]=u,u=0;u<r.length;u+=16){for(var p=s,h=c,g=l,v=f,y=d,m=0;80>m;m++){if(16>m)a[m]=r[u+m];else{var E=a[m-3]^a[m-8]^a[m-14]^a[m-16];a[m]=E<<1|E>>>31}E=(s<<5|s>>>27)+d+(a[m]>>>0)+(20>m?1518500249+(c&l|~c&f):40>m?1859775393+(c^l^f):60>m?(c&l|c&f|l&f)-1894007588:(c^l^f)-899497514),d=f,f=l,l=c<<30|c>>>2,c=s,s=E}s+=p,c+=h,l+=g,f+=v,d+=y}return i=i.call(e,[s,c,l,f,d]),o&&o.asBytes?i:o&&o.asString?n.bytesToString(i):e.bytesToHex(i)};r._blocksize=16,r._digestsize=20,we=r}();var Ie=we,De=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Oe=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Re=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Se=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ne=Array(576);k(Ne);var Le=Array(60);k(Le);var Ue=Array(512);k(Ue);var xe=Array(256);k(xe);var Pe=Array(29);k(Pe);var Fe=Array(30);k(Fe);var Me,Be,Ve,je=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},ze=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,je(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Ke=function(e,t,n){ze(e,n[2*t],n[2*t+1])},Ge=function(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(0<--t);return n>>>1},qe=function(e,t,n){var r,o=Array(16),i=0;for(r=1;15>=r;r++)i=i+n[r-1]<<1,o[r]=i;for(n=0;n<=t;n++)0!==(i=e[2*n+1])&&(e[2*n]=Ge(o[i]++,i))},He=function(e){var t;for(t=0;286>t;t++)e.dyn_ltree[2*t]=0;for(t=0;30>t;t++)e.dyn_dtree[2*t]=0;for(t=0;19>t;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Je=function(e){8<e.bi_valid?je(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},We=function(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]},Ye=function(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&We(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!We(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r},Ze=function(e,t,n){var r,o,i,a,u=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+u++],r+=(255&e.pending_buf[e.sym_buf+u++])<<8,o=e.pending_buf[e.sym_buf+u++],0===r?Ke(e,o,t):(i=xe[o],Ke(e,i+256+1,t),0!==(a=De[i])&&(o-=Pe[i],ze(e,o,a)),i=256>--r?Ue[r]:Ue[256+(r>>>7)],Ke(e,i,n),0!==(a=Oe[i])&&(r-=Fe[i],ze(e,r,a)))}while(u<e.sym_next);Ke(e,256,t)},Xe=function(e,t){var n,r=t.dyn_tree,o=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<a;n++)0!==r[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):r[2*n+1]=0;for(;2>e.heap_len;){var s=e.heap[++e.heap_len]=2>u?++u:0;r[2*s]=1,e.depth[s]=0,e.opt_len--,i&&(e.static_len-=o[2*s+1])}for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)Ye(e,r,n);s=a;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ye(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,r[2*s]=r[2*n]+r[2*o],e.depth[s]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,r[2*n+1]=r[2*o+1]=s,e.heap[1]=s++,Ye(e,r,1)}while(2<=e.heap_len);e.heap[--e.heap_max]=e.heap[1],n=t.dyn_tree,s=t.max_code,o=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.extra_bits;var c,l,f,d,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,g=0;for(l=0;15>=l;l++)e.bl_count[l]=0;for(n[2*e.heap[e.heap_max]+1]=0,t=e.heap_max+1;573>t;t++)(l=n[2*n[2*(c=e.heap[t])+1]+1]+1)>h&&(l=h,g++),n[2*c+1]=l,c>s||(e.bl_count[l]++,f=0,c>=p&&(f=a[c-p]),d=n[2*c],e.opt_len+=d*(l+f),i&&(e.static_len+=d*(o[2*c+1]+f)));if(0!==g){do{for(l=h-1;0===e.bl_count[l];)l--;e.bl_count[l]--,e.bl_count[l+1]+=2,e.bl_count[h]--,g-=2}while(0<g);for(l=h;0!==l;l--)for(c=e.bl_count[l];0!==c;)(o=e.heap[--t])>s||(n[2*o+1]!==l&&(e.opt_len+=(l-n[2*o+1])*n[2*o],n[2*o+1]=l),c--)}qe(r,u,e.bl_count)},Qe=function(e,t,n){var r,o,i=-1,a=t[1],u=0,s=7,c=4;for(0===a&&(s=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++u<s&&o===a||(u<c?e.bl_tree[2*o]+=u:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):10>=u?e.bl_tree[34]++:e.bl_tree[36]++,u=0,i=o,0===a?(s=138,c=3):o===a?(s=6,c=3):(s=7,c=4))},$e=function(e,t,n){var r,o,i=-1,a=t[1],u=0,s=7,c=4;for(0===a&&(s=138,c=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++u<s&&o===a)){if(u<c)do{Ke(e,o,e.bl_tree)}while(0!=--u);else 0!==o?(o!==i&&(Ke(e,o,e.bl_tree),u--),Ke(e,16,e.bl_tree),ze(e,u-3,2)):10>=u?(Ke(e,17,e.bl_tree),ze(e,u-3,3)):(Ke(e,18,e.bl_tree),ze(e,u-11,7));u=0,i=o,0===a?(s=138,c=3):o===a?(s=6,c=3):(s=7,c=4)}},et=!1,tt=function(e,t,n,r){ze(e,r?1:0,3),Je(e),je(e,n),je(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},nt=tt,rt=function(e,t,n,r){var o,i=65535&e|0;for(e=e>>>16&65535|0;0!==n;){n-=o=2e3<n?2e3:n;do{e=e+(i=i+t[r++]|0)|0}while(--o);i%=65521,e%=65521}return i|e<<16|0},ot=new Uint32Array(function(){for(var e,t=[],n=0;256>n;n++){e=n;for(var r=0;8>r;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}()),it=function(e,t,n,r){for(n=r+n,e^=-1;r<n;r++)e=e>>>8^ot[255&(e^t[r])];return-1^e},at={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ut={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},st=function(e){if(!et){var t,n,r,o=Array(16);for(r=n=0;28>r;r++)for(Pe[r]=n,t=0;t<1<<De[r];t++)xe[n++]=r;for(xe[n-1]=r,r=n=0;16>r;r++)for(Fe[r]=n,t=0;t<1<<Oe[r];t++)Ue[n++]=r;for(n>>=7;30>r;r++)for(Fe[r]=n<<7,t=0;t<1<<Oe[r]-7;t++)Ue[256+n++]=r;for(t=0;15>=t;t++)o[t]=0;for(t=0;143>=t;)Ne[2*t+1]=8,t++,o[8]++;for(;255>=t;)Ne[2*t+1]=9,t++,o[9]++;for(;279>=t;)Ne[2*t+1]=7,t++,o[7]++;for(;287>=t;)Ne[2*t+1]=8,t++,o[8]++;for(qe(Ne,287,o),t=0;30>t;t++)Le[2*t+1]=5,Le[2*t]=Ge(t,5);Me=new I(Ne,De,257,286,15),Be=new I(Le,Oe,0,30,15),Ve=new I([],Re,0,19,7),et=!0}e.l_desc=new D(e.dyn_ltree,Me),e.d_desc=new D(e.dyn_dtree,Be),e.bl_desc=new D(e.bl_tree,Ve),e.bi_buf=0,e.bi_valid=0,He(e)},ct=nt,lt=function(e,t,n,r){var o,i=0;if(0<e.level){for(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;31>=t;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;256>t;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Xe(e,e.l_desc),Xe(e,e.d_desc),Qe(e,e.dyn_ltree,e.l_desc.max_code),Qe(e,e.dyn_dtree,e.d_desc.max_code),Xe(e,e.bl_desc),i=18;3<=i&&0===e.bl_tree[2*Se[i]+1];i--);e.opt_len+=3*(i+1)+14;var a=e.opt_len+3+7>>>3;(o=e.static_len+3+7>>>3)<=a&&(a=o)}else a=o=n+5;if(n+4<=a&&-1!==t)tt(e,t,n,r);else if(4===e.strategy||o===a)ze(e,2+(r?1:0),3),Ze(e,Ne,Le);else{for(ze(e,4+(r?1:0),3),t=e.l_desc.max_code+1,n=e.d_desc.max_code+1,i+=1,ze(e,t-257,5),ze(e,n-1,5),ze(e,i-4,4),a=0;a<i;a++)ze(e,e.bl_tree[2*Se[a]+1],3);$e(e,e.dyn_ltree,t-1),$e(e,e.dyn_dtree,n-1),Ze(e,e.dyn_ltree,e.dyn_dtree)}He(e),r&&Je(e)},ft=function(e,t,n){return e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(xe[n]+256+1)]++,e.dyn_dtree[2*(256>t?Ue[t]:Ue[256+(t>>>7)])]++),e.sym_next===e.sym_end},dt=function(e){ze(e,2,3),Ke(e,256,Ne),16===e.bi_valid?(je(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},pt=ut.Z_NO_FLUSH,ht=ut.Z_PARTIAL_FLUSH,gt=ut.Z_FULL_FLUSH,vt=ut.Z_FINISH,yt=ut.Z_BLOCK,mt=ut.Z_OK,Et=ut.Z_STREAM_END,_t=ut.Z_STREAM_ERROR,bt=ut.Z_DATA_ERROR,At=ut.Z_BUF_ERROR,wt=ut.Z_DEFAULT_COMPRESSION,Ct=ut.Z_FILTERED,Tt=ut.Z_HUFFMAN_ONLY,kt=ut.Z_RLE,It=ut.Z_FIXED,Dt=ut.Z_DEFAULT_STRATEGY,Ot=ut.Z_UNKNOWN,Rt=ut.Z_DEFLATED,St=function(e,t){return e.msg=at[t],t},Nt=function(e){for(var t=e.length;0<=--t;)e[t]=0},Lt=function(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},Ut=function(e,t){lt(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Lt(e.strm)},xt=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Pt=function(e,t,n,r){var o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,t.set(e.input.subarray(e.next_in,e.next_in+o),n),1===e.state.wrap?e.adler=rt(e.adler,t,o,n):2===e.state.wrap&&(e.adler=it(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)},Ft=function(e,t){var n=e.max_chain_length,r=e.strstart,o=e.prev_length,i=e.nice_match,a=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,s=e.w_mask,c=e.prev,l=e.strstart+258,f=u[r+o-1],d=u[r+o];e.prev_length>=e.good_match&&(n>>=2),i>e.lookahead&&(i=e.lookahead);do{var p=t;if(u[p+o]===d&&u[p+o-1]===f&&u[p]===u[r]&&u[++p]===u[r+1]){for(r+=2,p++;u[++r]===u[++p]&&u[++r]===u[++p]&&u[++r]===u[++p]&&u[++r]===u[++p]&&u[++r]===u[++p]&&u[++r]===u[++p]&&u[++r]===u[++p]&&u[++r]===u[++p]&&r<l;);if(p=258-(l-r),r=l-258,p>o){if(e.match_start=t,o=p,p>=i)break;f=u[r+o-1],d=u[r+o]}}}while((t=c[t&s])>a&&0!=--n);return o<=e.lookahead?o:e.lookahead},Mt=function(e){var t=e.w_size;do{var n=e.window_size-e.lookahead-e.strstart;if(e.strstart>=t+(t-262)){var r=void 0,o=void 0,i=void 0;e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart);var a=e,u=a.w_size;r=i=a.hash_size;do{o=a.head[--r],a.head[r]=o>=u?o-u:0}while(--i);r=i=u;do{o=a.prev[--r],a.prev[r]=o>=u?o-u:0}while(--i);n+=t}if(0===e.strm.avail_in)break;if(n=Pt(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=n,3<=e.lookahead+e.insert)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+3-1])&e.hash_mask,e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(3>e.lookahead+e.insert)););}while(262>e.lookahead&&0!==e.strm.avail_in)},Bt=function(e,t){var n,r,o,i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a=0,u=e.strm.avail_in;do{if(n=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o)break;if(o=e.strm.avail_out-o,n>(r=e.strstart-e.block_start)+e.strm.avail_in&&(n=r+e.strm.avail_in),n>o&&(n=o),n<i&&(0===n&&t!==vt||t===pt||n!==r+e.strm.avail_in))break;a=t===vt&&n===r+e.strm.avail_in?1:0,ct(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Lt(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Pt(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===a);return(u-=e.strm.avail_in)&&(u>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=u&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),2>e.matches&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-u,e.strm.next_in),e.strstart),e.strstart+=u,e.insert+=u>e.w_size-e.insert?e.w_size-e.insert:u),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?4:t!==pt&&t!==vt&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(o=e.window_size-e.strstart,e.strm.avail_in>o&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),2>e.matches&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(Pt(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water<e.strstart&&(e.high_water=e.strstart),o=e.bi_valid+42>>3,i=(o=65535<e.pending_buf_size-o?65535:e.pending_buf_size-o)>e.w_size?e.w_size:o,((r=e.strstart-e.block_start)>=i||(r||t===vt)&&t!==pt&&0===e.strm.avail_in&&r<=o)&&(n=r>o?o:r,a=t===vt&&0===e.strm.avail_in&&n===r?1:0,ct(e,e.block_start,n,a),e.block_start+=n,Lt(e.strm)),a?3:1)},Vt=function(e,t){for(var n;;){if(262>e.lookahead){if(Mt(e),262>e.lookahead&&t===pt)return 1;if(0===e.lookahead)break}if(n=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=Ft(e,n)),3<=e.match_length)if(n=ft(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=ft(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Ut(e,!1),0===e.strm.avail_out))return 1}return e.insert=2>e.strstart?e.strstart:2,t===vt?(Ut(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Ut(e,!1),0===e.strm.avail_out)?1:2},jt=function(e,t){for(var n;;){if(262>e.lookahead){if(Mt(e),262>e.lookahead&&t===pt)return 1;if(0===e.lookahead)break}var r=0;if(3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=Ft(e,r),5>=e.match_length&&(e.strategy===Ct||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),3<=e.prev_length&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-3,r=ft(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Ut(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=ft(e,0,e.window[e.strstart-1]))&&Ut(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(ft(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=2>e.strstart?e.strstart:2,t===vt?(Ut(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Ut(e,!1),0===e.strm.avail_out)?1:2},zt=[new O(0,0,0,0,Bt),new O(4,4,8,4,Vt),new O(4,5,16,8,Vt),new O(4,6,32,32,Vt),new O(4,4,16,16,jt),new O(8,16,32,32,jt),new O(8,16,128,128,jt),new O(8,32,128,256,jt),new O(32,128,258,1024,jt),new O(32,258,258,4096,jt)],Kt=function(e){if(!e)return 1;var t=e.state;return!t||t.strm!==e||42!==t.status&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&113!==t.status&&666!==t.status?1:0},Gt=function(e){if(Kt(e))return St(e,_t);e.total_in=e.total_out=0,e.data_type=Ot;var t=e.state;return t.pending=0,t.pending_out=0,0>t.wrap&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=-2,st(t),mt},qt=function(e){var t=Gt(e);return t===mt&&((e=e.state).window_size=2*e.w_size,Nt(e.head),e.max_lazy_match=zt[e.level].max_lazy,e.good_match=zt[e.level].good_length,e.nice_match=zt[e.level].nice_length,e.max_chain_length=zt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),t},Ht=function(e,t,n,r,o,i){if(!e)return _t;var a=1;if(t===wt&&(t=6),0>r?(a=0,r=-r):15<r&&(a=2,r-=16),1>o||9<o||n!==Rt||8>r||15<r||0>t||9<t||0>i||i>It||8===r&&1!==a)return St(e,_t);8===r&&(r=9);var u=new R;return e.state=u,u.strm=e,u.status=42,u.wrap=a,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new Uint8Array(2*u.w_size),u.head=new Uint16Array(u.hash_size),u.prev=new Uint16Array(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new Uint8Array(u.pending_buf_size),u.sym_buf=u.lit_bufsize,u.sym_end=3*(u.lit_bufsize-1),u.level=t,u.strategy=i,u.method=n,qt(e)},Jt={deflateInit:function(e,t){return Ht(e,t,Rt,15,8,Dt)},deflateInit2:Ht,deflateReset:qt,deflateResetKeep:Gt,deflateSetHeader:function(e,t){return Kt(e)||2!==e.state.wrap?_t:(e.state.gzhead=t,mt)},deflate:function(e,t){if(Kt(e)||t>yt||0>t)return e?St(e,_t):_t;var n=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===n.status&&t!==vt)return St(e,0===e.avail_out?At:_t);var r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Lt(e),0===e.avail_out)return n.last_flush=-1,mt}else if(0===e.avail_in&&2*t-(4<t?9:0)<=2*r-(4<r?9:0)&&t!==vt)return St(e,At);if(666===n.status&&0!==e.avail_in)return St(e,At);if(42===n.status&&0===n.wrap&&(n.status=113),42===n.status&&(r=Rt+(n.w_bits-8<<4)<<8,r|=(n.strategy>=Tt||2>n.level?0:6>n.level?1:6===n.level?2:3)<<6,0!==n.strstart&&(r|=32),xt(n,r+=31-r%31),0!==n.strstart&&(xt(n,e.adler>>>16),xt(n,65535&e.adler)),e.adler=1,n.status=113,Lt(e),0!==n.pending))return n.last_flush=-1,mt;if(57===n.status)if(e.adler=0,n.pending_buf[n.pending++]=31,n.pending_buf[n.pending++]=139,n.pending_buf[n.pending++]=8,n.gzhead)r=(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0),n.pending_buf[n.pending++]=r,r=255&n.gzhead.time,n.pending_buf[n.pending++]=r,r=n.gzhead.time>>8&255,n.pending_buf[n.pending++]=r,r=n.gzhead.time>>16&255,n.pending_buf[n.pending++]=r,r=n.gzhead.time>>24&255,n.pending_buf[n.pending++]=r,r=9===n.level?2:n.strategy>=Tt||2>n.level?4:0,n.pending_buf[n.pending++]=r,r=255&n.gzhead.os,n.pending_buf[n.pending++]=r,n.gzhead.extra&&n.gzhead.extra.length&&(r=255&n.gzhead.extra.length,n.pending_buf[n.pending++]=r,r=n.gzhead.extra.length>>8&255,n.pending_buf[n.pending++]=r),n.gzhead.hcrc&&(e.adler=it(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(n.pending_buf[n.pending++]=0,n.pending_buf[n.pending++]=0,n.pending_buf[n.pending++]=0,n.pending_buf[n.pending++]=0,n.pending_buf[n.pending++]=0,r=9===n.level?2:n.strategy>=Tt||2>n.level?4:0,n.pending_buf[n.pending++]=r,n.pending_buf[n.pending++]=3,n.status=113,Lt(e),0!==n.pending)return n.last_flush=-1,mt;if(69===n.status){if(n.gzhead.extra){r=n.pending;for(var o=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+o>n.pending_buf_size;){var i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>r&&(e.adler=it(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex+=i,Lt(e),0!==n.pending)return n.last_flush=-1,mt;r=0,o-=i}i=new Uint8Array(n.gzhead.extra),n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>r&&(e.adler=it(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){o=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>o&&(e.adler=it(e.adler,n.pending_buf,n.pending-o,o)),Lt(e),0!==n.pending)return n.last_flush=-1,mt;o=0}r=i=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,n.pending_buf[n.pending++]=r}while(0!==i);n.gzhead.hcrc&&n.pending>o&&(e.adler=it(e.adler,n.pending_buf,n.pending-o,o)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){o=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>o&&(e.adler=it(e.adler,n.pending_buf,n.pending-o,o)),Lt(e),0!==n.pending)return n.last_flush=-1,mt;o=0}r=i=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,n.pending_buf[n.pending++]=r}while(0!==i);n.gzhead.hcrc&&n.pending>o&&(e.adler=it(e.adler,n.pending_buf,n.pending-o,o))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Lt(e),0!==n.pending))return n.last_flush=-1,mt;r=255&e.adler,n.pending_buf[n.pending++]=r,r=e.adler>>8&255,n.pending_buf[n.pending++]=r,e.adler=0}if(n.status=113,Lt(e),0!==n.pending)return n.last_flush=-1,mt}if(0!==e.avail_in||0!==n.lookahead||t!==pt&&666!==n.status){if(3!==(r=0===n.level?Bt(n,t):n.strategy===Tt?function(e,t){for(var n;;){if(0===e.lookahead&&(Mt(e),0===e.lookahead)){if(t===pt)return 1;break}if(e.match_length=0,n=ft(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ut(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===vt?(Ut(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Ut(e,!1),0===e.strm.avail_out)?1:2}(n,t):n.strategy===kt?function(e,t){for(var n,r,o=e.window;;){if(258>=e.lookahead){if(Mt(e),258>=e.lookahead&&t===pt)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart){var i=o[n=e.strstart-1];if(i===o[++n]&&i===o[++n]&&i===o[++n]){for(r=e.strstart+258;i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<r;);e.match_length=258-(r-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}}if(3<=e.match_length?(i=ft(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=ft(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(Ut(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===vt?(Ut(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Ut(e,!1),0===e.strm.avail_out)?1:2}(n,t):zt[n.level].func(n,t))&&4!==r||(n.status=666),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),mt;if(2===r&&(t===ht?dt(n):t!==yt&&(ct(n,0,0,!1),t===gt&&(Nt(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Lt(e),0===e.avail_out))return n.last_flush=-1,mt}return t!==vt?mt:0>=n.wrap?Et:(2===n.wrap?(t=255&e.adler,n.pending_buf[n.pending++]=t,t=e.adler>>8&255,n.pending_buf[n.pending++]=t,t=e.adler>>16&255,n.pending_buf[n.pending++]=t,t=e.adler>>24&255,n.pending_buf[n.pending++]=t,t=255&e.total_in,n.pending_buf[n.pending++]=t,t=e.total_in>>8&255,n.pending_buf[n.pending++]=t,t=e.total_in>>16&255,n.pending_buf[n.pending++]=t,t=e.total_in>>24&255,n.pending_buf[n.pending++]=t):(xt(n,e.adler>>>16),xt(n,65535&e.adler)),Lt(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?mt:Et)},deflateEnd:function(e){if(Kt(e))return _t;var t=e.state.status;return e.state=null,113===t?St(e,bt):mt},deflateSetDictionary:function(e,t){var n=t.length;if(Kt(e))return _t;var r=e.state,o=r.wrap;if(2===o||1===o&&42!==r.status||r.lookahead)return _t;if(1===o&&(e.adler=rt(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===o&&(Nt(r.head),r.strstart=0,r.block_start=0,r.insert=0);var i=new Uint8Array(r.w_size);i.set(t.subarray(n-r.w_size,n),0),t=i,n=r.w_size}i=e.avail_in;var a=e.next_in,u=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Mt(r);3<=r.lookahead;){t=r.strstart,n=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[t+3-1])&r.hash_mask,r.prev[t&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=t,t++}while(--n);r.strstart=t,r.lookahead=2,Mt(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=a,e.input=u,e.avail_in=i,r.wrap=o,mt},deflateInfo:"pako deflate (from Nodeca project)"},Wt={assign:function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=b(n))throw new TypeError(n+"must be non-object");for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}}return e},flattenChunks:function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;t=new Uint8Array(t);for(var o=0,i=0,a=e.length;o<a;o++){var u=e[o];t.set(u,i),i+=u.length}return t}},Yt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(me){Yt=!1}for(var Zt=new Uint8Array(256),Xt=0;256>Xt;Xt++)Zt[Xt]=252<=Xt?6:248<=Xt?5:240<=Xt?4:224<=Xt?3:192<=Xt?2:1;Zt[254]=Zt[254]=1;var Qt={string2buf:function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,n,r,o,i,a=e.length,u=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),u+=128>n?1:2048>n?2:65536>n?3:4;for(t=new Uint8Array(u),o=i=0;i<u;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),128>n?t[i++]=n:(2048>n?t[i++]=192|n>>>6:(65536>n?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t},buf2string:function(e,t){var n,r,o=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));for(t=Array(2*o),n=r=0;n<o;){var i=e[n++];if(128>i)t[r++]=i;else{var a=Zt[i];if(4<a)t[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<o;)i=i<<6|63&e[n++],a--;1<a?t[r++]=65533:65536>i?t[r++]=i:(i-=65536,t[r++]=55296|i>>10&1023,t[r++]=56320|1023&i)}}}if(65534>(e=r)&&t.subarray&&Yt)t=String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));else{for(o="",n=0;n<e;n++)o+=String.fromCharCode(t[n]);t=o}return t},utf8border:function(e,t){(t=t||e.length)>e.length&&(t=e.length);for(var n=t-1;0<=n&&128==(192&e[n]);)n--;return 0>n||0===n?t:n+Zt[e[n]]>t?n:t}},$t=function(){this.input=null,this.total_in=this.avail_in=this.next_in=0,this.output=null,this.total_out=this.avail_out=this.next_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},en=Object.prototype.toString,tn=ut.Z_NO_FLUSH,nn=ut.Z_SYNC_FLUSH,rn=ut.Z_FULL_FLUSH,on=ut.Z_FINISH,an=ut.Z_OK,un=ut.Z_STREAM_END,sn=ut.Z_DEFAULT_COMPRESSION,cn=ut.Z_DEFAULT_STRATEGY,ln=ut.Z_DEFLATED;S.prototype.push=function(e,t){var n=this.strm,r=this.options.chunkSize;if(this.ended)return!1;for(t=t===~~t?t:!0===t?on:tn,"string"==typeof e?n.input=Qt.string2buf(e):"[object ArrayBuffer]"===en.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(t===nn||t===rn)&&6>=n.avail_out)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if((e=Jt.deflate(n,t))===un)return 0<n.next_out&&this.onData(n.output.subarray(0,n.next_out)),e=Jt.deflateEnd(this.strm),this.onEnd(e),this.ended=!0,e===an;if(0===n.avail_out)this.onData(n.output);else if(0<t&&0<n.next_out)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}return!0},S.prototype.onData=function(e){this.chunks.push(e)},S.prototype.onEnd=function(e){e===an&&(this.result=Wt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var fn,dn,pn=S,hn=N,gn=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),vn=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),yn=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),mn=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),En=function(e,t,n,r,o,i,a,u){var s,c,l,f,d,p,h,g,v,y,m,E,_,b,A,w,C,T=u.bits,k=new Uint16Array(16),I=new Uint16Array(16);for(s=0;15>=s;s++)k[s]=0;for(c=0;c<r;c++)k[t[n+c]]++;for(f=T,l=15;1<=l&&0===k[l];l--);if(f>l&&(f=l),0===l)return o[i++]=20971520,o[i++]=20971520,u.bits=1,0;for(T=1;T<l&&0===k[T];T++);for(f<T&&(f=T),s=d=1;15>=s;s++)if(d<<=1,0>(d-=k[s]))return-1;if(0<d&&(0===e||1!==l))return-1;for(I[1]=0,s=1;15>s;s++)I[s+1]=I[s]+k[s];for(c=0;c<r;c++)0!==t[n+c]&&(a[I[t[n+c]]++]=c);if(0===e?(E=b=a,_=20):1===e?(E=gn,b=vn,_=257):(E=yn,b=mn,_=0),c=h=0,s=T,m=i,r=f,I=0,v=-1,y=(p=1<<f)-1,1===e&&852<p||2===e&&592<p)return 1;for(;;){A=s-I,a[c]+1<_?(w=0,C=a[c]):a[c]>=_?(w=b[a[c]-_],C=E[a[c]-_]):(w=96,C=0),d=1<<s-I,T=g=1<<r;do{o[m+(h>>I)+(g-=d)]=A<<24|w<<16|C|0}while(0!==g);for(d=1<<s-1;h&d;)d>>=1;if(0!==d?(h&=d-1,h+=d):h=0,c++,0==--k[s]){if(s===l)break;s=t[n+a[c]]}if(s>f&&(h&y)!==v){for(0===I&&(I=f),m+=T,d=1<<(r=s-I);r+I<l&&!(0>=(d-=k[r+I]));)r++,d<<=1;if(p+=1<<r,1===e&&852<p||2===e&&592<p)return 1;o[v=h&y]=f<<24|r<<16|m-i|0}}return 0!==h&&(o[m+h]=s-I<<24|4194304),u.bits=f,0},_n=ut.Z_FINISH,bn=ut.Z_BLOCK,An=ut.Z_TREES,wn=ut.Z_OK,Cn=ut.Z_STREAM_END,Tn=ut.Z_NEED_DICT,kn=ut.Z_STREAM_ERROR,In=ut.Z_DATA_ERROR,Dn=ut.Z_MEM_ERROR,On=ut.Z_BUF_ERROR,Rn=ut.Z_DEFLATED,Sn=function(e){if(!e)return 1;var t=e.state;return!t||t.strm!==e||16180>t.mode||16211<t.mode?1:0},Nn=function(e){if(Sn(e))return kn;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=16180,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,wn},Ln=function(e){if(Sn(e))return kn;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Nn(e)},Un=function(e,t){var n;if(Sn(e))return kn;var r=e.state;return 0>t?(n=0,t=-t):(n=5+(t>>4),48>t&&(t&=15)),t&&(8>t||15<t)?kn:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Ln(e))},xn=function(e,t){if(!e)return kn;var n=new L;return e.state=n,n.strm=e,n.window=null,n.mode=16180,(t=Un(e,t))!==wn&&(e.state=null),t},Pn=!0,Fn=function(e,t,n,r){var o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):((e=o.wsize-o.wnext)>r&&(e=r),o.window.set(t.subarray(n-r,n-r+e),o.wnext),(r-=e)?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=e,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=e))),0},Mn={inflateReset:Ln,inflateReset2:Un,inflateResetKeep:Nn,inflateInit:function(e){return xn(e,15)},inflateInit2:xn,inflate:function(e,t){var n,r,o,i,a=new Uint8Array(4),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Sn(e)||!e.output||!e.input&&0!==e.avail_in)return kn;16191===(n=e.state).mode&&(n.mode=16192);var s=e.next_out,c=e.output,l=e.avail_out,f=e.next_in,d=e.input,p=e.avail_in,h=n.hold,g=n.bits;r=p,o=l,i=wn;e:for(;;)switch(n.mode){case 16180:if(0===n.wrap){n.mode=16192;break}for(;16>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if(2&n.wrap&&35615===h){0===n.wbits&&(n.wbits=15),n.check=0,a[0]=255&h,a[1]=h>>>8&255,n.check=it(n.check,a,2,0),g=h=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){e.msg="incorrect header check",n.mode=16209;break}if((15&h)!==Rn){e.msg="unknown compression method",n.mode=16209;break}g-=4;var v=8+(15&(h>>>=4));if(0===n.wbits&&(n.wbits=v),15<v||v>n.wbits){e.msg="invalid window size",n.mode=16209;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&h?16189:16191,g=h=0;break;case 16181:for(;16>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if(n.flags=h,(255&n.flags)!==Rn){e.msg="unknown compression method",n.mode=16209;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=16209;break}n.head&&(n.head.text=h>>8&1),512&n.flags&&4&n.wrap&&(a[0]=255&h,a[1]=h>>>8&255,n.check=it(n.check,a,2,0)),g=h=0,n.mode=16182;case 16182:for(;32>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}n.head&&(n.head.time=h),512&n.flags&&4&n.wrap&&(a[0]=255&h,a[1]=h>>>8&255,a[2]=h>>>16&255,a[3]=h>>>24&255,n.check=it(n.check,a,4,0)),g=h=0,n.mode=16183;case 16183:for(;16>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}n.head&&(n.head.xflags=255&h,n.head.os=h>>8),512&n.flags&&4&n.wrap&&(a[0]=255&h,a[1]=h>>>8&255,n.check=it(n.check,a,2,0)),g=h=0,n.mode=16184;case 16184:if(1024&n.flags){for(;16>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}n.length=h,n.head&&(n.head.extra_len=h),512&n.flags&&4&n.wrap&&(a[0]=255&h,a[1]=h>>>8&255,n.check=it(n.check,a,2,0)),g=h=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags){var y=n.length;if(y>p&&(y=p),y&&(n.head&&(v=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(d.subarray(f,f+y),v)),512&n.flags&&4&n.wrap&&(n.check=it(n.check,d,y,f)),p-=y,f+=y,n.length-=y),n.length)break e}n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===p)break e;y=0;do{v=d[f+y++],n.head&&v&&65536>n.length&&(n.head.name+=String.fromCharCode(v))}while(v&&y<p);if(512&n.flags&&4&n.wrap&&(n.check=it(n.check,d,y,f)),p-=y,f+=y,v)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===p)break e;y=0;do{v=d[f+y++],n.head&&v&&65536>n.length&&(n.head.comment+=String.fromCharCode(v))}while(v&&y<p);if(512&n.flags&&4&n.wrap&&(n.check=it(n.check,d,y,f)),p-=y,f+=y,v)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;16>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if(4&n.wrap&&h!==(65535&n.check)){e.msg="header crc mismatch",n.mode=16209;break}g=h=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=16191;break;case 16189:for(;32>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}e.adler=n.check=(h>>>24&255)+(h>>>8&65280)+((65280&h)<<8)+((255&h)<<24),g=h=0,n.mode=16190;case 16190:if(0===n.havedict)return e.next_out=s,e.avail_out=l,e.next_in=f,e.avail_in=p,n.hold=h,n.bits=g,Tn;e.adler=n.check=1,n.mode=16191;case 16191:if(t===bn||t===An)break e;case 16192:if(n.last){h>>>=7&g,g-=7&g,n.mode=16206;break}for(;3>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}switch(n.last=1&h,--g,3&(h>>>=1)){case 0:n.mode=16193;break;case 1:if(y=n,Pn){for(fn=new Int32Array(512),dn=new Int32Array(32),v=0;144>v;)y.lens[v++]=8;for(;256>v;)y.lens[v++]=9;for(;280>v;)y.lens[v++]=7;for(;288>v;)y.lens[v++]=8;for(En(1,y.lens,0,288,fn,0,y.work,{bits:9}),v=0;32>v;)y.lens[v++]=5;En(2,y.lens,0,32,dn,0,y.work,{bits:5}),Pn=!1}if(y.lencode=fn,y.lenbits=9,y.distcode=dn,y.distbits=5,n.mode=16199,t===An){h>>>=2,g-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=16209}h>>>=2,g-=2;break;case 16193:for(h>>>=7&g,g-=7&g;32>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if((65535&h)!=(h>>>16^65535)){e.msg="invalid stored block lengths",n.mode=16209;break}if(n.length=65535&h,g=h=0,n.mode=16194,t===An)break e;case 16194:n.mode=16195;case 16195:if(y=n.length){if(y>p&&(y=p),y>l&&(y=l),0===y)break e;c.set(d.subarray(f,f+y),s),p-=y,f+=y,l-=y,s+=y,n.length-=y;break}n.mode=16191;break;case 16196:for(;14>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if(n.nlen=257+(31&h),h>>>=5,g-=5,n.ndist=1+(31&h),h>>>=5,g-=5,n.ncode=4+(15&h),h>>>=4,g-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=16209;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;3>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}n.lens[u[n.have++]]=7&h,h>>>=3,g-=3}for(;19>n.have;)n.lens[u[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,y={bits:n.lenbits},i=En(0,n.lens,0,19,n.lencode,0,n.work,y),n.lenbits=y.bits,i){e.msg="invalid code lengths set",n.mode=16209;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;;){var m=n.lencode[h&(1<<n.lenbits)-1];if(y=m>>>24,m&=65535,y<=g)break;if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if(16>m)h>>>=y,g-=y,n.lens[n.have++]=m;else{if(16===m){for(v=y+2;g<v;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if(h>>>=y,g-=y,0===n.have){e.msg="invalid bit length repeat",n.mode=16209;break}v=n.lens[n.have-1],y=3+(3&h),h>>>=2,g-=2}else if(17===m){for(v=y+3;g<v;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}g-=y,v=0,y=3+(7&(h>>>=y)),h>>>=3,g-=3}else{for(v=y+7;g<v;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}g-=y,v=0,y=11+(127&(h>>>=y)),h>>>=7,g-=7}if(n.have+y>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=16209;break}for(;y--;)n.lens[n.have++]=v}}if(16209===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=16209;break}if(n.lenbits=9,y={bits:n.lenbits},i=En(1,n.lens,0,n.nlen,n.lencode,0,n.work,y),n.lenbits=y.bits,i){e.msg="invalid literal/lengths set",n.mode=16209;break}if(n.distbits=6,n.distcode=n.distdyn,y={bits:n.distbits},i=En(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,y),n.distbits=y.bits,i){e.msg="invalid distances set",n.mode=16209;break}if(n.mode=16199,t===An)break e;case 16199:n.mode=16200;case 16200:if(6<=p&&258<=l){e.next_out=s,e.avail_out=l,e.next_in=f,e.avail_in=p,n.hold=h,n.bits=g;var E,_,b,A,w,C=void 0,T=void 0,k=void 0,I=void 0,D=void 0,O=(d=e).state;D=d.next_in,f=d.input,w=D+(d.avail_in-5),I=d.next_out,c=d.output,A=I-(o-d.avail_out),b=I+(d.avail_out-257),_=O.dmax,E=O.wsize,m=O.whave;var R=O.wnext,S=O.window,N=O.hold;v=O.bits,y=O.lencode,g=O.distcode,h=(1<<O.lenbits)-1,l=(1<<O.distbits)-1;t:do{n:for(15>v&&(N+=f[D++]<<v,v+=8,N+=f[D++]<<v,v+=8),C=y[N&h];;){if(N>>>=p=C>>>24,v-=p,0==(p=C>>>16&255))c[I++]=65535&C;else{if(!(16&p)){if(0==(64&p)){C=y[(65535&C)+(N&(1<<p)-1)];continue n}32&p?O.mode=16191:(d.msg="invalid literal/length code",O.mode=16209);break t}s=65535&C,(p&=15)&&(v<p&&(N+=f[D++]<<v,v+=8),s+=N&(1<<p)-1,N>>>=p,v-=p),15>v&&(N+=f[D++]<<v,v+=8,N+=f[D++]<<v,v+=8),C=g[N&l];r:for(;;){if(N>>>=p=C>>>24,v-=p,!(16&(p=C>>>16&255))){if(0==(64&p)){C=g[(65535&C)+(N&(1<<p)-1)];continue r}d.msg="invalid distance code",O.mode=16209;break t}if(k=65535&C,v<(p&=15)&&(N+=f[D++]<<v,(v+=8)<p&&(N+=f[D++]<<v,v+=8)),(k+=N&(1<<p)-1)>_){d.msg="invalid distance too far back",O.mode=16209;break t}if(N>>>=p,v-=p,k>(p=I-A)){if((p=k-p)>m&&O.sane){d.msg="invalid distance too far back",O.mode=16209;break t}if(T=0,C=S,0===R){if(T+=E-p,p<s){s-=p;do{c[I++]=S[T++]}while(--p);T=I-k,C=c}}else if(R<p){if(T+=E+R-p,(p-=R)<s){s-=p;do{c[I++]=S[T++]}while(--p);if(T=0,R<s){s-=p=R;do{c[I++]=S[T++]}while(--p);T=I-k,C=c}}}else if(T+=R-p,p<s){s-=p;do{c[I++]=S[T++]}while(--p);T=I-k,C=c}for(;2<s;)c[I++]=C[T++],c[I++]=C[T++],c[I++]=C[T++],s-=3;s&&(c[I++]=C[T++],1<s&&(c[I++]=C[T++]))}else{T=I-k;do{c[I++]=c[T++],c[I++]=c[T++],c[I++]=c[T++],s-=3}while(2<s);s&&(c[I++]=c[T++],1<s&&(c[I++]=c[T++]))}break}}break}}while(D<w&&I<b);D-=s=v>>3,v-=s<<3,d.next_in=D,d.next_out=I,d.avail_in=D<w?w-D+5:5-(D-w),d.avail_out=I<b?b-I+257:257-(I-b),O.hold=N&(1<<v)-1,O.bits=v,s=e.next_out,c=e.output,l=e.avail_out,f=e.next_in,d=e.input,p=e.avail_in,h=n.hold,g=n.bits,16191===n.mode&&(n.back=-1);break}for(n.back=0;y=(m=n.lencode[h&(1<<n.lenbits)-1])>>>24,v=m>>>16&255,m&=65535,!(y<=g);){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if(v&&0==(240&v)){for(N=y,S=v,R=m;y=(m=n.lencode[R+((h&(1<<N+S)-1)>>N)])>>>24,v=m>>>16&255,m&=65535,!(N+y<=g);){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}h>>>=N,g-=N,n.back+=N}if(h>>>=y,g-=y,n.back+=y,n.length=m,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=16191;break}if(64&v){e.msg="invalid literal/length code",n.mode=16209;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(v=n.extra;g<v;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}n.length+=h&(1<<n.extra)-1,h>>>=n.extra,g-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;y=(m=n.distcode[h&(1<<n.distbits)-1])>>>24,v=m>>>16&255,m&=65535,!(y<=g);){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if(0==(240&v)){for(N=y,S=v,R=m;y=(m=n.distcode[R+((h&(1<<N+S)-1)>>N)])>>>24,v=m>>>16&255,m&=65535,!(N+y<=g);){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}h>>>=N,g-=N,n.back+=N}if(h>>>=y,g-=y,n.back+=y,64&v){e.msg="invalid distance code",n.mode=16209;break}n.offset=m,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(v=n.extra;g<v;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}n.offset+=h&(1<<n.extra)-1,h>>>=n.extra,g-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=16209;break}n.mode=16204;case 16204:if(0===l)break e;if(y=o-l,n.offset>y){if((y=n.offset-y)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=16209;break}y>n.wnext?(y-=n.wnext,v=n.wsize-y):v=n.wnext-y,y>n.length&&(y=n.length),N=n.window}else N=c,v=s-n.offset,y=n.length;y>l&&(y=l),l-=y,n.length-=y;do{c[s++]=N[v++]}while(--y);0===n.length&&(n.mode=16200);break;case 16205:if(0===l)break e;c[s++]=n.length,l--,n.mode=16200;break;case 16206:if(n.wrap){for(;32>g;){if(0===p)break e;p--,h|=d[f++]<<g,g+=8}if(o-=l,e.total_out+=o,n.total+=o,4&n.wrap&&o&&(e.adler=n.check=n.flags?it(n.check,c,o,s-o):rt(n.check,c,o,s-o)),o=l,4&n.wrap&&(n.flags?h:(h>>>24&255)+(h>>>8&65280)+((65280&h)<<8)+((255&h)<<24))!==n.check){e.msg="incorrect data check",n.mode=16209;break}g=h=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;32>g;){if(0===p)break e;p--,h+=d[f++]<<g,g+=8}if(4&n.wrap&&h!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=16209;break}g=h=0}n.mode=16208;case 16208:i=Cn;break e;case 16209:i=In;break e;case 16210:return Dn;default:return kn}return e.next_out=s,e.avail_out=l,e.next_in=f,e.avail_in=p,n.hold=h,n.bits=g,(n.wsize||o!==e.avail_out&&16209>n.mode&&(16206>n.mode||t!==_n))&&Fn(e,e.output,e.next_out,o-e.avail_out),r-=e.avail_in,o-=e.avail_out,e.total_in+=r,e.total_out+=o,n.total+=o,4&n.wrap&&o&&(e.adler=n.check=n.flags?it(n.check,c,o,e.next_out-o):rt(n.check,c,o,e.next_out-o)),e.data_type=n.bits+(n.last?64:0)+(16191===n.mode?128:0)+(16199===n.mode||16194===n.mode?256:0),(0===r&&0===o||t===_n)&&i===wn&&(i=On),i},inflateEnd:function(e){if(Sn(e))return kn;var t=e.state;return t.window&&(t.window=null),e.state=null,wn},inflateGetHeader:function(e,t){return Sn(e)||0==(2&(e=e.state).wrap)?kn:(e.head=t,t.done=!1,wn)},inflateSetDictionary:function(e,t){var n,r=t.length;return Sn(e)||0!==(n=e.state).wrap&&16190!==n.mode?kn:16190===n.mode&&rt(1,t,r,0)!==n.check?In:(Fn(e,t,r,r),n.havedict=1,wn)},inflateInfo:"pako inflate (from Nodeca project)"},Bn=function(){this.os=this.xflags=this.time=this.text=0,this.extra=null,this.extra_len=0,this.comment=this.name="",this.hcrc=0,this.done=!1},Vn=Object.prototype.toString,jn=ut.Z_NO_FLUSH,zn=ut.Z_FINISH,Kn=ut.Z_OK,Gn=ut.Z_STREAM_END,qn=ut.Z_NEED_DICT,Hn=ut.Z_STREAM_ERROR,Jn=ut.Z_DATA_ERROR,Wn=ut.Z_MEM_ERROR;U.prototype.push=function(e,t){var n,r,o=this.strm,i=this.options.chunkSize,a=this.options.dictionary;if(this.ended)return!1;for(n=t===~~t?t:!0===t?zn:jn,"[object ArrayBuffer]"===Vn.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(i),o.next_out=0,o.avail_out=i),(t=Mn.inflate(o,n))===qn&&a&&((t=Mn.inflateSetDictionary(o,a))===Kn?t=Mn.inflate(o,n):t===Jn&&(t=qn));0<o.avail_in&&t===Gn&&0<o.state.wrap&&0!==e[o.next_in];)Mn.inflateReset(o),t=Mn.inflate(o,n);switch(t){case Hn:case Jn:case qn:case Wn:return this.onEnd(t),this.ended=!0,!1}if(r=o.avail_out,o.next_out&&(0===o.avail_out||t===Gn))if("string"===this.options.to){var u=Qt.utf8border(o.output,o.next_out),s=o.next_out-u,c=Qt.buf2string(o.output,u);o.next_out=s,o.avail_out=i-s,s&&o.output.set(o.output.subarray(u,u+s),0),this.onData(c)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(t!==Kn||0!==r){if(t===Gn){t=Mn.inflateEnd(this.strm),this.onEnd(t),this.ended=!0;break}if(0===o.avail_in)break}}return!0},U.prototype.onData=function(e){this.chunks.push(e)},U.prototype.onEnd=function(e){e===Kn&&(this.result="string"===this.options.to?this.chunks.join(""):Wt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Yn,Zn,Xn={Deflate:pn,deflate:hn,deflateRaw:function(e,t){return(t=t||{}).raw=!0,N(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,N(e,t)},Inflate:U,inflate:x,inflateRaw:function(e,t){return(t=t||{}).raw=!0,x(e,t)},ungzip:x,constants:ut};(function(e){e.response_body="rsb",e.request_body="rqb",e.response_headers="rsh",e.request_headers="rqh"})(Yn||(Yn={})),function(e){var t;e.TRACEPARENT_HEADER_KEY="traceparent",(t=e.CONFIG_PREFERENCES||(e.CONFIG_PREFERENCES={}))[t.APP=0]="APP",t[t.REMOTE=1]="REMOTE",t[t.MERGE=2]="MERGE",function(e){e[e.DISABLED=0]="DISABLED",e[e.PERFORMANCE_TIMING=1]="PERFORMANCE_TIMING",e[e.PERFORMANCE_NAVIGATION_TIMING=2]="PERFORMANCE_NAVIGATION_TIMING"}(e.PERFORMANCE_CONTEXT||(e.PERFORMANCE_CONTEXT={})),function(e){e.DO_NOT_FETCH_UPDATE_TIMER="updateTimer",e.IMMEDIATE_FETCH="urgentFetch",e.UPDATE_TIMER_WITH_DIFF="checkDiff"}(e.RC_FETCH_MODE||(e.RC_FETCH_MODE={})),e.REMOTE_CONFIG_STORAGE_KEY="ConvivaRemoteConfig",e.END_POINT_STORAGE_KEY="ConvivaEndpoint",e.DEFAULT_END_POINT="https://appgw.conviva.com",e.REMOTE_CONFIG_URL_PREFIX="https://rc.conviva.com/js/",e.REMOTE_CONFIG_FILE_NAME="/remote_config.json"}(Zn||(Zn={}));var Qn,$n={};!function(e){e[e.APP=0]="APP",e[e.REMOTE=1]="REMOTE",e[e.MERGE=2]="MERGE"}(Qn||(Qn={}));var er={},tr=function(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]},nr="undefined"!=typeof window?function(){function e(){var e;if(!t.hasLoaded)for(t.hasLoaded=!0,e=0;e<t.registeredOnLoadHandlers.length;e++)t.registeredOnLoadHandlers[e]();return!0}var t=new tr,n=document,r=window;return n.visibilityState&&j(n,"visibilitychange",(function(){try{"hidden"==n.visibilityState&&t.bufferFlushers.forEach((function(e){e(!1)}))}catch(e){console.warn("Conviva App Tracker:: Error in visibilityChangeHandler of constructor ".concat(e))}}),!1),j(r,"beforeunload",(function(){try{t.bufferFlushers.forEach((function(e){e(!1)}))}catch(e){console.warn("Conviva App Tracker:: Error in flushBuffers of constructor ".concat(e))}}),!1),"loading"===document.readyState?(n.addEventListener?n.addEventListener("DOMContentLoaded",(function t(){n.removeEventListener("DOMContentLoaded",t,!1),e()})):n.attachEvent&&n.attachEvent("onreadystatechange",(function t(){"complete"===n.readyState&&(n.detachEvent("onreadystatechange",t),e())})),j(r,"load",e,!1)):e(),t}():void 0;e.addGlobalContexts=function(e,t){ee(t,(function(t){t.core.addGlobalContexts(e)}))},e.addPlugin=function(e,t){ee(t,(function(t){t.addPlugin(e)}))},e.clearGlobalContexts=function(e){ee(e,(function(e){e.core.clearGlobalContexts()}))},e.clearUserData=function(e,t){ee(t,(function(t){t.clearUserData(e)}))},e.convivaAppTracker=function(e){void 0===e&&(e={});try{if(nr)return te("CAT","CAT","js-".concat("0.6.11"),"",nr,e)}catch(e){console.warn("Conviva App Tracker:: Initialisation failed! "+e)}},e.crossDomainLinker=function(e,t){ee(t,(function(t){t.crossDomainLinker(e)}))},e.disableAnonymousTracking=function(e,t){ee(t,(function(t){t.disableAnonymousTracking(e)}))},e.discardBrace=function(e,t){ee(t,(function(t){t.discardBrace(e)}))},e.discardHashTag=function(e,t){ee(t,(function(t){t.discardHashTag(e)}))},e.enableActivityTracking=function(e,t){ee(t,(function(t){t.enableActivityTracking(e)}))},e.enableActivityTrackingCallback=function(e,t){ee(t,(function(t){t.enableActivityTrackingCallback(e)}))},e.enableAnonymousTracking=function(e,t){ee(t,(function(t){t.enableAnonymousTracking(e)}))},e.flushBuffer=function(e,t){ee(t,(function(t){t.flushBuffer(e)}))},e.newSession=function(e){ee(e,(function(e){e.newSession()}))},e.newTracker=function(e,t,n){if(void 0===n&&(n={}),nr)return te(e,e,"js-".concat("0.6.11"),t,nr,n)},e.preservePageViewId=function(e){ee(e,(function(e){e.preservePageViewId()}))},e.removeGlobalContexts=function(e,t){ee(t,(function(t){t.core.removeGlobalContexts(e)}))},e.setBufferSize=function(e,t){ee(t,(function(t){t.setBufferSize(e)}))},e.setCollectorUrl=function(e,t){ee(t,(function(t){t.setCollectorUrl(e)}))},e.setCookiePath=function(e,t){ee(t,(function(t){t.setCookiePath(e)}))},e.setCustomTags=function(e,t){ee(t,(function(t){try{t.setCustomTags(e)}catch(e){console.warn("Conviva App Tracker:: Unable to set custom tags data!")}}))},e.setCustomUrl=function(e,t){ee(t,(function(t){t.setCustomUrl(e)}))},e.setDocumentTitle=function(e,t){ee(t,(function(t){t.setDocumentTitle(e)}))},e.setOptOutCookie=function(e,t){ee(t,(function(t){t.setOptOutCookie(e)}))},e.setReferrerUrl=function(e,t){ee(t,(function(t){t.setReferrerUrl(e)}))},e.setUserId=function(e,t){ee(t,(function(t){t.setUserId(e)}))},e.setUserIdFromCookie=function(e,t){ee(t,(function(t){t.setUserIdFromCookie(e)}))},e.setUserIdFromLocation=function(e,t){ee(t,(function(t){t.setUserIdFromLocation(e)}))},e.setUserIdFromReferrer=function(e,t){ee(t,(function(t){t.setUserIdFromReferrer(e)}))},e.setVisitorCookieTimeout=function(e,t){ee(t,(function(t){t.setVisitorCookieTimeout(e)}))},e.trackCustomEvent=function(e,t){ee(t,(function(t){try{t.trackCustomEvent(e)}catch(e){console.warn("Conviva App Tracker:: Unable to track custom event! "+e)}}))},e.trackPageView=function(e,t){ee(t,(function(t){t.trackPageView(e)}))},e.trackSelfDescribingEvent=function(e,t){ee(t,(function(t){t.core.track(w({event:e.event}),e.context,e.timestamp)}))},e.trackStructEvent=function(e,t){ee(t,(function(t){var r=(t=t.core).track,o=e.category,i=e.action,a=e.label,u=e.property,s=e.value,c=n();c.add("e","se"),c.add("se_ca",o),c.add("se_ac",i),c.add("se_la",a),c.add("se_pr",u),c.add("se_va",null==s?void 0:s.toString()),r.call(t,c,e.context,e.timestamp)}))},e.unsetCustomTags=function(e,t){ee(t,(function(t){try{t.unsetCustomTags(e)}catch(e){console.warn("Conviva App Tracker:: Unable to set custom tags data!")}}))},e.updatePageActivity=function(e){ee(e,(function(e){e.updatePageActivity()}))},e.version="0.6.11",Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,Bn);var Vn=Bn,jn={};!function(e,t){!function(e){function t(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return null!==(t=null==e?void 0:e.map((function(e){if("function"!=typeof e)return e;try{return e.apply(void 0,n)}catch(e){}})).filter(Boolean))&&void 0!==t?t:[]}function n(e){var t=e.event;e=t.sc;var n=t.dt;return t=function(){var e,t={},n=[],r=[],o=[],i=function(e,n){null!=n&&""!==n&&(t[e]=n)};return{add:i,addDict:function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&i(t,e[t])},addJson:function(e,t,o){var i;if(i=o)e:{if(null!=o&&(o.constructor==={}.constructor||o.constructor===[].constructor))for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)){i=!0;break e}i=!1}i&&(e={keyIfEncoded:e,keyIfNotEncoded:t,json:o},r.push(e),n.push(e))},addContextEntity:function(e){o.push(e)},getPayload:function(){return t},getJson:function(){return n},withJsonProcessor:function(t){e=t},build:function(){return null==e||e(this,r,o),t}}}(),e={sc:"sp/ue/1-0-0",dt:{sc:e,dt:n}},t.add("e","ue"),t.addJson("ue_px","ue_pr",e),t}function r(e){return n({event:e={sc:"sp/lc/1-0-1",dt:i({targetUrl:e.targetUrl,elementId:e.elementId,elementClasses:e.elementClasses,elementTarget:e.elementTarget,elementContent:e.elementContent})}})}function o(e){return n({event:e={sc:"cv/bc/1-0-0",dt:i({elementType:e.elementType,elementId:e.elementId,elementClasses:e.elementClasses,elementName:e.elementName,elementText:e.elementText,elementValue:e.elementValue})}})}function i(e,t){void 0===t&&(t={});var n,r={};for(n in e)(t[n]||null!==e[n]&&void 0!==e[n])&&(r[n]=e[n]);return r}function a(e,t,n,r){return e.addEventListener?(e.addEventListener(t,n,r),!0):e.attachEvent?e.attachEvent("on"+t,n):void(e["on"+t]=n)}function u(e){if(null==e||"object"!=b(e)||Array.isArray(e))return function(){return!0};var t=Object.prototype.hasOwnProperty.call(e,"allowlist"),n=function(e){var t={};if(e=e.allowlist||e.denylist){Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++)t[e[n]]=!0}return t}(e);return function(e,t){return e.hasOwnProperty("filter")&&e.filter?e.filter:t}(e,(function(e){e:{var r=0;for(e=e.className.match(/\S+/g)||[];r<e.length;r++)if(n[e[r]]){r=!0;break e}r=!1}return r===t}))}function s(e,n,o){for(var i,a,u,s;null!==(i=n.parentElement)&&null!=i&&"A"!==(a=n.tagName.toUpperCase())&&"AREA"!==a;)n=i;if(null!=(i=n).href){(a=i.hostname)||(a=i.href,a=(u=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a))?u[1]:a),u=a.toLowerCase();var c=i.href.replace(a,u);/^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):/i.test(c)||(a=i.id,u=i.className.match(/\S+/g)||[],s=i.target,i=k[e.id].linkTrackingContent?i.innerHTML:void 0,i={targetUrl:c=unescape(c),elementId:a,elementClasses:u,elementTarget:s,elementContent:i},e.core.getConfig().linkClickTracking&&e.core.track(r(i),t(o,n)))}}function c(e,n,r){for(var i;null!==(i=n.parentElement)&&null!=i&&"BUTTON"!==n.tagName.toUpperCase();)n=i;i={elementType:(i=n).type,elementId:i.id,elementClasses:i.className||"",elementName:i.name,elementText:i.innerText,elementValue:i.value},e.core.getConfig().buttonClickTracking&&e.core.track(o(i),t(r,n))}function l(e,t){return function(n){var r=(n=n||window.event).which||n.button,o=n.target||n.srcElement;"click"===n.type?o&&s(T[e],o,t):"mousedown"===n.type?1!==r&&2!==r||!o?k[e].lastButton=k[e].lastTarget=null:(k[e].lastButton=r,k[e].lastTarget=o):"mouseup"===n.type&&(r===k[e].lastButton&&o===k[e].lastTarget&&s(T[e],o,t),k[e].lastButton=k[e].lastTarget=null)}}function f(e,t){return function(n){var r=(n=n||window.event).which||n.button,o=n.target||n.srcElement;"click"===n.type?o&&c(T[e],o,t):"mousedown"===n.type?1!==r&&2!==r||!o?I[e].lastButton=I[e].lastTarget=null:(I[e].lastButton=r,I[e].lastTarget=o):"mouseup"===n.type&&(r===I[e].lastButton&&o===I[e].lastTarget&&c(T[e],o,t),I[e].lastButton=I[e].lastTarget=null)}}function d(e,t){e=void 0===e?{}:e,k[t]={linkTrackingContent:e.trackContent,linkTrackingContext:e.context,linkTrackingPseudoClicks:e.pseudoClicks,linkTrackingFilter:u(e.options)}}function p(e,t){e=void 0===e?{}:e,I[t]={buttonTrackingContent:e.trackContent,buttonTrackingContext:e.context,buttonTrackingFilter:u(e.options)}}function h(e){var t,n,r,o=document.links;for(C=e,r=0;r<o.length;r++)if(null!==(n=null===(t=k[e])||void 0===t?void 0:t.linkTrackingFilter)&&void 0!==n&&n.call(t,o[r])&&!o[r][e]){var i=e,u=o[r];k[i].linkTrackingPseudoClicks?(a(u,"mouseup",l(i,k[i].linkTrackingContext),!1),a(u,"mousedown",l(i,k[i].linkTrackingContext),!1)):a(u,"click",l(i,k[i].linkTrackingContext),!1),o[r][e]=!0}}function g(e){try{for(var t=0;t<e.length;t++)"childList"===e[t].type&&(h(C),v(C))}catch(e){console.warn("Conviva App Tracker caused Exception in mutation callback of click tracking Plugin",e)}}function v(e){var t,n,r,o=document.querySelectorAll("button");for(r=0;r<o.length;r++)null!==(n=null===(t=I[e])||void 0===t?void 0:t.buttonTrackingFilter)&&void 0!==n&&n.call(t,o[r])&&!o[r][e]&&(a(o[r],"click",f(e,I[e].buttonTrackingContext),!1),o[r][e]=!0)}var y,m,E,_,A,w;(m=y||(y={}))[m.none=0]="none",m[m.error=1]="error",m[m.warn=2]="warn",m[m.debug=3]="debug",m[m.info=4]="info",function(e){e.response_body="rsb",e.request_body="rqb",e.response_headers="rsh",e.request_headers="rqh"}(E||(E={})),function(e){e.response_body="rsb",e.request_body="rqb",e.response_headers="rsh",e.request_headers="rqh"}(_||(_={})),function(e){var t;e.TRACEPARENT_HEADER_KEY="traceparent",(t=e.CONFIG_PREFERENCES||(e.CONFIG_PREFERENCES={}))[t.APP=0]="APP",t[t.REMOTE=1]="REMOTE",t[t.MERGE=2]="MERGE",function(e){e[e.DISABLED=0]="DISABLED",e[e.PERFORMANCE_TIMING=1]="PERFORMANCE_TIMING",e[e.PERFORMANCE_NAVIGATION_TIMING=2]="PERFORMANCE_NAVIGATION_TIMING"}(e.PERFORMANCE_CONTEXT||(e.PERFORMANCE_CONTEXT={})),e.REMOTE_CONFIG_STORAGE_KEY="ConvivaRemoteConfig",e.END_POINT_STORAGE_KEY="ConvivaEndpoint",e.DEFAULT_END_POINT="https://appgw.conviva.com",e.REMOTE_CONFIG_URL_PREFIX="https://rc.conviva.com/js/",e.REMOTE_CONFIG_FILE_NAME="/remote_config.json"}(A||(A={})),function(e){e[e.APP=0]="APP",e[e.REMOTE=1]="REMOTE",e[e.MERGE=2]="MERGE"}(w||(w={}));var C,T={},k={},I={},D=!1,O=!1;e.LinkClickTrackingPlugin=function(){return{activateBrowserPlugin:function(e){T[e.id]=e}}},e.enableButtonClickTracking=function(e,t){if(void 0===e&&(e={}),void 0===t&&(t=Object.keys(T)),O=!0,!D)try{var n=document.body;new MutationObserver(g).observe(n,{childList:!0,subtree:!0})}catch(e){console.log("exception",e)}t.forEach((function(t){try{T[t]&&(T[t].sharedState.hasLoaded?(p(e,t),v(t)):T[t].sharedState.registeredOnLoadHandlers.push((function(){p(e,t),v(t)})))}catch(e){console.warn("Conviva App Tracker caused Exception in enableButtonClickTracking method in click tracking Plugin",e)}}))},e.enableLinkClickTracking=function(e,t){if(void 0===e&&(e={}),void 0===t&&(t=Object.keys(T)),D=!0,!O)try{var n=document.body;new MutationObserver(g).observe(n,{childList:!0,subtree:!0})}catch(e){}t.forEach((function(t){try{T[t]&&(T[t].sharedState.hasLoaded?(d(e,t),h(t)):T[t].sharedState.registeredOnLoadHandlers.push((function(){d(e,t),h(t)})))}catch(e){console.warn("Conviva App Tracker caused Exception in enableLinkClickTracking method in click tracking Plugin",e)}}))},e.refreshButtonClickTracking=function(e){void 0===e&&(e=Object.keys(T)),e.forEach((function(e){T[e]&&(T[e].sharedState.hasLoaded?v(e):T[e].sharedState.registeredOnLoadHandlers.push((function(){v(e)})))}))},e.refreshLinkClickTracking=function(e){void 0===e&&(e=Object.keys(T)),e.forEach((function(e){T[e]&&(T[e].sharedState.hasLoaded?h(e):T[e].sharedState.registeredOnLoadHandlers.push((function(){h(e)})))}))},e.trackButtonClick=function(e,n){void 0===n&&(n=Object.keys(T));for(var r=0;r<n.length;r++){var i=n[r];if(T.hasOwnProperty(i)){var a=e;(i=T[i]).core.getConfig().buttonClickTracking&&i.core.track(o(a),t(void 0,void 0))}}},e.trackLinkClick=function(e,n){void 0===n&&(n=Object.keys(T));for(var o=0;o<n.length;o++){var i=n[o];if(T.hasOwnProperty(i)){var a=e;(i=T[i]).core.getConfig().linkClickTracking&&i.core.track(r(a),t(void 0,void 0))}}},Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,jn);var zn=jn,Kn={};!function(e,t){!function(e){function t(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function n(e,t){void 0===t&&(t=Object.keys(l));var n=e.message,r=e.filename,o=e.lineno,i=e.colno,a=e.error,u=e.context,s=e.timestamp,f=a&&a.stack?a.stack:null;void 0===n||null===n&&void 0===f||null===f&&void 0===o||null===o&&void 0===i||null===i&&void 0===r||null===r||function(e,t,n){try{var r=null!=e?e:Object.keys(t);e=[];for(var o=0;o<r.length;o++){var i=r[o];t.hasOwnProperty(i)?e.push(t[i]):c.warn(i+" not configured")}e.forEach(n)}catch(e){c.error("Function failed",e)}}(t,l,(function(e){if(e.core.getConfig().exceptionAutotracking){var t=(e=e.core).track,a={programmingLanguage:"JAVASCRIPT",message:null!=n?n:"JS Exception.",stackTrace:f,lineNumber:o,lineColumn:i,fileName:r},c=function(){var e,t={},n=[],r=[],o=[],i=function(e,n){null!=n&&""!==n&&(t[e]=n)};return{add:i,addDict:function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&i(t,e[t])},addJson:function(e,t,o){var i;if(i=o)e:{if(null!=o&&(o.constructor==={}.constructor||o.constructor===[].constructor))for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)){i=!0;break e}i=!1}i&&(e={keyIfEncoded:e,keyIfNotEncoded:t,json:o},r.push(e),n.push(e))},addContextEntity:function(e){o.push(e)},getPayload:function(){return t},getJson:function(){return n},withJsonProcessor:function(t){e=t},build:function(){return null==e||e(this,r,o),t}}}();a={sc:"sp/ue/1-0-0",dt:{sc:"sp/ae/1-0-1",dt:a}},c.add("e","ue"),c.addJson("ue_px","ue_pr",a),t.call(e,c,u,s)}}))}var r,o;(o=r||(r={}))[o.none=0]="none",o[o.error=1]="error",o[o.warn=2]="warn",o[o.debug=3]="debug",o[o.info=4]="info";var i,a,u,s,c=function(e){return void 0===e&&(e=r.warn),{setLogLevel:function(t){e=r[t]?t:r.warn},warn:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];e>=r.warn&&"undefined"!=typeof console&&(a="Conviva: "+n,o?console.warn.apply(console,t([a+"\n",o],i,!1)):console.warn.apply(console,t([a],i,!1)))},error:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];e>=r.error&&"undefined"!=typeof console&&(a="Conviva: "+n+"\n",o?console.error.apply(console,t([a+"\n",o],i,!1)):console.error.apply(console,t([a],i,!1)))},debug:function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];e>=r.debug&&"undefined"!=typeof console&&console.debug.apply(console,t(["Conviva: "+n],o,!1))},info:function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];e>=r.info&&"undefined"!=typeof console&&console.info.apply(console,t(["Conviva: "+n],o,!1))}}}();!function(e){e.response_body="rsb",e.request_body="rqb",e.response_headers="rsh",e.request_headers="rqh"}(i||(i={})),function(e){e.response_body="rsb",e.request_body="rqb",e.response_headers="rsh",e.request_headers="rqh"}(a||(a={})),function(e){var t;e.TRACEPARENT_HEADER_KEY="traceparent",(t=e.CONFIG_PREFERENCES||(e.CONFIG_PREFERENCES={}))[t.APP=0]="APP",t[t.REMOTE=1]="REMOTE",t[t.MERGE=2]="MERGE",function(e){e[e.DISABLED=0]="DISABLED",e[e.PERFORMANCE_TIMING=1]="PERFORMANCE_TIMING",e[e.PERFORMANCE_NAVIGATION_TIMING=2]="PERFORMANCE_NAVIGATION_TIMING"}(e.PERFORMANCE_CONTEXT||(e.PERFORMANCE_CONTEXT={})),e.REMOTE_CONFIG_STORAGE_KEY="ConvivaRemoteConfig",e.END_POINT_STORAGE_KEY="ConvivaEndpoint",e.DEFAULT_END_POINT="https://appgw.conviva.com",e.REMOTE_CONFIG_URL_PREFIX="https://rc.conviva.com/js/",e.REMOTE_CONFIG_FILE_NAME="/remote_config.json"}(u||(u={})),function(e){e[e.APP=0]="APP",e[e.REMOTE=1]="REMOTE",e[e.MERGE=2]="MERGE"}(s||(s={}));var l={};e.ErrorTrackingPlugin=function(){return{activateBrowserPlugin:function(e){l[e.id]=e}}},e.enableErrorTracking=function(e,t){void 0===e&&(e={}),void 0===t&&(t=Object.keys(l));try{var r=e.filter,o=e.contextAdder,i=e.context;!function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}(window,"error",(function(e){try{if(r&&r&&"function"==typeof r&&r(e)||null==r){var a=t,u=i||[];o&&o&&"function"==typeof o&&(u=u.concat(o(e))),n({message:e.message,filename:e.filename,lineno:e.lineno,colno:e.colno,error:e.error,context:u},a)}}catch(e){console.warn("Conviva App Tracker caused Exception in enableErrorTracking callback of error tracking Plugin",e)}}))}catch(e){console.warn("Conviva App Tracker caused Exception in enableErrorTracking method of error tracking Plugin",e)}},e.trackError=n,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,Kn);var Gn=Kn,qn={};!function(e,t){!function(e){e.PerformanceTimingPlugin=function(){return{contexts:function(){var e=window,t=(e=e.performance||e.mozPerformance||e.msPerformance||e.webkitPerformance).timing;return e?[{sc:"w3/pt/1-0-0",dt:{navigationStart:t.navigationStart,domainLookupStart:t.domainLookupStart,domainLookupEnd:t.domainLookupEnd,responseStart:t.responseStart,responseEnd:t.responseEnd,loadEventEnd:t.loadEventEnd}}]:[]}}},Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,qn);var Hn=qn,Jn="f_ar_fullstory",Wn="f_ar_conviva_web_tracker",Yn=function(e){return"Failed to load chapter. ".concat(e)},Zn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ResponseError",t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Y.EraroError),Xn=function(e,t,n){return Y.createEraroError(Yn(e),Y.eraroCodesMap.category.ChapterLoading,Y.eraroCodesMap.code.UnableToLoadChapter,t,n)},Qn=function(e){return Y.createEraroError(Yn(e),Y.eraroCodesMap.category.ChapterLoading,Y.eraroCodesMap.code.ChapterInvalid,Y.eraroCodesMap.internal.GenericError)},$n=/^(\/[a-z]{2}-[a-z]{2})?\/?$/i,er=/^\/[a-z]{2}-[a-z]{2}/i,tr=function(e,t){var n=V(e.replace(er,"").split("/"),2)[1];return Y.keysOf(t).filter((function(e){return t[e].includes(n)}))},nr=function(e){var t=e.configuration,n=e.isActive,r=e.isAuthorized,o=e.chapters,i=e.isVip,u=t.authorizedMap,s=t.unauthorizedMap,c=t.rootAuthorized,l=t.loginChapter,f=Y.keysOf(s).filter((function(e){return o.includes(e)})),d=Y.keysOf(u).filter((function(e){return o.includes(e)})),p=d.filter((function(e){return!f.includes(e)})),h=f.filter((function(e){return!d.includes(e)})),g=f.filter((function(e){return d.includes(e)})),v=V(p,1)[0],y=void 0===v?null:v,m=V(h,1)[0],E=void 0===m?null:m,_=V(g,1)[0],b=void 0===_?null:_;return Boolean(y)&&!b?r&&y&&n(t.allowedUserStatuses(y))?i()&&t.restrictToVip(y)?a.CATALOG:y:l:E?n(t.allowedUserStatuses(E))&&r?c:E:b?y&&n(t.allowedUserStatuses(y))?y:b:o[0]},rr=function(e){var t=e.configuration,n=e.isAuthorized,r=e.isActive,o=e.pathname;e.startupNativeCountryOrMoon;var i=e.startupNativeCountryOrMoonOrMena,a=e.isVip,u=t.chapters,s=u.rootAuthorized,c=u.getUnauthorized,l=u.allowedUserStatuses,f=u.authorizedMap,d=u.unauthorizedMap;o.includes(t.appUrlPrefix)&&(o=o.replace(t.appUrlPrefix,""));var p=function(e){return $n.test(e)||e.includes("index.html")}(o);if(p){var h=n&&s&&r(l(s))?s:c(i);return{isRootPath:p,chapterName:h,verifiedChapterName:h}}var g=function(e,t,n){return j(j([],V(tr(e,t)),!1),V(tr(e,n)),!1).filter((function(e){return e}))}(o,f,d),v=nr({configuration:t.chapters,isActive:r,isAuthorized:n,chapters:g,isVip:a}),y=n&&r(l(v));return{isRootPath:p,chapterName:Y.keysOf(y?f:d).find((function(e){return g.includes(e)}))||g[0],verifiedChapterName:v}},or=function(e){return e.search||""},ir=function(e){return e.hash||""},ar=function(e,t){return"".concat(e.protocol,"//").concat(e.host).concat(t)},ur=function(e,t){var n=V("string"==typeof e?[e,null,t]:[e.chapterName||e.name||e.value,e.chapterData||e.data||e||null,e.chapterPath||e.pathname||e.path||t],3),r=n[0],o=n[1],i=n[2];return Y.isChapterName(r)?{chapterName:r,chapterData:o,chapterPath:i}:null},sr=["webpackJsonp","_babelPolyfill","webpackJsonpdaznPlayer"],cr=/^[a-z]{2}-(?:[a-z]{2}|global)$/i,lr=function(e){return cr.test(e)},fr=function(e){return e.split("/").filter(Boolean)},dr=function(e,t){return n=[e,/\?/.test(e)?"":or(t),/#/.test(e)?"":ir(t)].join(""),Y.startsWith(n,"/")?n:"/".concat(n);var n},pr=function(e,t){return void 0===t&&(t="en"),[t.toLowerCase(),e.toUpperCase()].join("-")},hr=function(e,t,n){void 0===n&&(n=!0);var r=fr(e),o=r.some(lr),i=e;return o&&n&&(i=r.map((function(e){return lr(e)?t:e})).join("/")),o||(i=[t].concat(r).join("/")),i},gr=/\/$/,vr=[".protected",".vwoFrame","#onetrust-consent-sdk","#onetrust-style"],yr=function(e){return e.parentNode&&e.parentNode.removeChild(e)},mr=function(e){return Array.prototype.forEach.call(e,yr)},Er=function e(t){return function(e,t){return e(t).then((function(e){return e.ok?e:Promise.reject(function(e,t){return new Zn(Yn("".concat(e.status," ").concat(e.statusText," at ").concat(t)),Y.eraroCodesMap.category.ChapterLoading,Y.eraroCodesMap.code.UnableToLoadChapter,String(e.status))}(e,t))}),(function(e){return Promise.reject(Xn("Failed to fetch ".concat(t),Y.eraroCodesMap.internal.NetworkError,e))})).then((function(e){return e.text().then((function(n){return{url:e.url||t,html:n,chapter:e.headers.get("x-amz-meta-dazn-chapter"),version:e.headers.get("x-amz-meta-dazn-version")}}))}))}(fetch,t.url).catch((function(n){return function(e,t){return 0!==t&&(!function(e){return"ResponseError"===e.type}(e)||Number(e.internal)>499)}(n,t.remainingAttempts)?(r=t.wait,new Promise((function(e){setTimeout(e,r)}))).then((function(){return e({fetch,url:t.url,remainingAttempts:t.remainingAttempts-1,wait:t.wait*t.multiplier,multiplier:t.multiplier})})):Promise.reject(n);var r}))},_r=/index.html$/,br=function(e,t,n){n.map((function(e){return e.classList.add("dazn"),e})).forEach((function(n){return function(e,t,n){var r=function(e,t){var n=e.createElement(t.nodeName);return Array.prototype.slice.call(t.attributes).forEach((function(e){return n.setAttribute(e.name,e.value)})),n.innerHTML=t.innerHTML,n}(e,n);t.appendChild(r)}(e,t,n)}))},Ar=function(e){return function(t){var n=t.querySelectorAll(e);return[].slice.call(n)}},wr=function(e){return Ar(e.join(","))},Cr=Ar('link[rel="stylesheet"]'),Tr=wr(['link[rel="preload"]','link[rel="prefetch"]','link[rel="preconnect"]','link[rel="dns-prefetch"]']),kr=Ar("style"),Ir=wr(["meta[property]",'meta[name="description"]']),Dr=Ar("body>*:not(script)"),Or=Ar("script[src]"),Rr=Ar("script:not([src])"),Sr=["resourceHints","seoTags","stylesheets","styleTags","scripts","inlineScripts"],Nr=["bodyContent"],Lr=function(e){return e.reduce((function(e,t){return e.concat(Array.isArray(t)?t:[t])}),[])},Ur=function(e){return{url:e.url,head:Lr(Sr.map((function(t){return e.extracted[t]}))),body:Lr(Nr.map((function(t){return e.extracted[t]})))}},xr=function(e){var t,n=e.window,r=e.url,o=e.baseUrl,i=e.chapterName,a=e.chapterCountry,u=e.triggers,s=e.garbageCollector,c=e.selectorsExcludedFromCleaning,l=void 0===c?[]:c,f=n.document,d=u.willLoadEvents,p=u.willUnloadEvents,h=u.didUnloadEvents,g=null,v=function(e){return function(t){return e({chapter:i,country:a}).then((function(){return t}))}};return v(d)(null).then((function(){return function(e,t,n){var r={},o=r.retry,i=void 0===o?0:o,a=r.wait,u=void 0===a?500:a,s=r.multiplier,c=void 0===s?2:s;return Y.endsWith(t,".html")?Er({fetch:e,url:t,remainingAttempts:i,wait:u,multiplier:c}):Promise.reject(Xn("Invalid url ".concat(t,". Can load html only"),Y.eraroCodesMap.internal.BadRequest))}(n.fetch,r)})).then((function(e){if(e.chapter&&i!==e.chapter)throw Xn("Expected ".concat(i," but got ").concat(e.chapter," instead"),Y.eraroCodesMap.internal.NotFound);return g=e.version,e}),(function(e){if(Y.isEraroError(e))throw e;throw Xn("Unexpected error",Y.eraroCodesMap.internal.GenericError,e)})).then((function(e){var t=f.querySelector("base");if(null!==t)t.setAttribute("href",o);else{var n=f.createElement("base");n.setAttribute("href",o),f.head.appendChild(n)}return e}),(function(e){if(Y.isEraroError(e))throw e;throw Xn("Chapter not found",Y.eraroCodesMap.internal.NotFound,e)})).then((t=n.DOMParser,function(e){var n=(new t).parseFromString(e.html,"text/html");return{url:e.url,extracted:{stylesheets:Cr(n),styleTags:kr(n),scripts:Or(n),inlineScripts:Rr(n),bodyContent:Dr(n),seoTags:Ir(n),resourceHints:Tr(n)}}})).then(Ur,(function(e){if(Y.isEraroError(e))throw e;throw Xn("Failed to parse document",Y.eraroCodesMap.internal.ParserError,e)})).then(v(p)).then((function(e){return s(),function(e,t){void 0===t&&(t=[]);var n=vr.concat(t).map((function(e){return":not(".concat(e,")")})).join("");mr(e.querySelectorAll("head > *".concat(n))),mr(e.querySelectorAll("body > *".concat(n)))}(f,l),v(h)(e)})).then((function(e){return function(e,t){(function(e,t){var n=function(e){return e.url.replace(_r,"")}(t),r=e.querySelector("base");r?function(e,t){e.href=t}(r,n):function(e,t){var n=e.createElement("base");n.href=t,e.head.appendChild(n)}(e,n)})(e,t),br(e,e.body,t.body),br(e,e.head,t.head)}(f,e),g}))},Pr=function(){function e(e){var t=(void 0===e?{}:e).errorHandler,n=void 0===t?console.error:t,r=this;this.fireHooks=function(e,t){var n=r.privateCallbacksOf(e).filter((function(e){return e.options.condition(t)}));return Promise.all(n.map((function(e){return new Promise((function(t){return t(e.callback())}))}))).then((function(){return r.cleanHooks(e)})).catch((function(e){r.errorHandler(e)}))},this.callbacks={},this.errorHandler=n}return e.prototype.privateCallbacksOf=function(e){var t=this.callbacks;return t[e]||(t[e]=[],t[e])},e.prototype.addHook=function(e,t,n){this.privateCallbacksOf(e).push({options:F({persist:!1,condition:function(){return!0}},n),callback:t})},e.prototype.cleanHooks=function(e){var t=this.privateCallbacksOf(e);this.callbacks[e]=t.filter((function(e){return e.options.persist}))},e}(),Fr=/^\/[a-z]{2}-([a-z]{2})\//i,Mr=function(e,t){return!!t&&e.includes(t)},Br=/^\/([a-z]{2})-[a-z]{2}\//i,Vr=function(e){var t=Br.exec(e);return null!==t?V(t,2)[1].toLowerCase():null};function jr(e){var t=e.window,n=e.configuration,r=e.startupModule,o=e.userModule,i=e.errorModule,u=e.storageModule,s=e.util,c=e.initializationModule,l=e.features,f=!1,d=function(e){var t=e.captureException,n=new Pr({errorHandler:t}),r=function(e){return function(t,r){return n.addHook(e,t,r)}},o=r("willLoad"),i=r("willUnload"),a=r("didLoad"),u=r("didUnload"),s=r("willStart"),c=o,l=a,f=function(e){return function(t){return n.fireHooks(e,t)}};return{triggers:{willLoadEvents:f("willLoad"),willUnloadEvents:f("willUnload"),didLoadEvents:f("didLoad"),didUnloadEvents:f("didUnload"),willStartEvents:function(){return n.fireHooks("willStart",void 0)}},events:{onChapterLoad:l,onChapterUnload:c,onChapterWillLoad:o,onChapterWillUnload:i,onChapterDidLoad:a,onChapterDidUnload:u,onWillStart:s}}}(i),p=function(){return s.getNativeCountryOrMoon(r.getStartupDataCountry())},h=function(){return s.getNativeCountryOrMoonOrMena(r.getStartupDataCountry())},g=function(e){return rr({configuration:n,isAuthorized:o.isAuthorized(),isActive:o.isActive,pathname:e,startupNativeCountryOrMoon:p(),startupNativeCountryOrMoonOrMena:h(),isVip:o.isVip}).verifiedChapterName},v=function(){return function(e,t,n,r,o,i,a){var u=o(e);return function(e,t,n,r,o,i){var a,u;if(i&&r)return r.toLowerCase();if(o&&t)return(null===(u=null===(a=window.dazn)||void 0===a?void 0:a.auth)||void 0===u?void 0:u.isVip())&&r?r.toLowerCase():t.toLowerCase();if(n){var s=function(e){var t=Fr.exec(e);return t?V(t,2)[1].toLowerCase():null}(n);if(s)return s.toLowerCase()}return e.toLowerCase()}(t||"",i,u&&r.getsCountryFromUrl(u)?e:null,a,!!u&&r.useSignUpCountry(u),u&&r.usePortability(u)&&n()||!1)}(t.location.pathname,r.getStartupDataCountry(),r.isPortable,n.chapters,g,o.getSignUpCountry(),o.getContentCountry())},y=null,m=function(){var e,i=function(e){var t=e.startupSupportedLanguages,n=e.startupLanguage,r=e.cachedLanguage,o=e.userSupportedLanguages,i=e.userProfileLanguage,a=e.pathname,u=e.skipUrlLanguageValidation,s=e.isUserLanguagePriority,c=Mr(null!=o?o:[],i);if(s&&c)return i;var l=Vr(a);if(l){if(u)return l;var f=o&&o.length>0?o:t;if(Mr(f,l))return l}if(r){if(Mr(null!=o?o:[],r))return r;if(c)return i;if(Mr(t,r))return r}return c?i:n}({startupSupportedLanguages:null!==(e=r.getAllowedLanguages())&&void 0!==e?e:[],startupLanguage:r.getRegionLanguage()||"",cachedLanguage:y,userSupportedLanguages:o.getSupportedLanguages(),userProfileLanguage:o.getUserLanguage(),pathname:t.location.pathname,skipUrlLanguageValidation:n.chapters.getsCountryFromUrl(g(t.location.pathname)),isUserLanguagePriority:!o.isProfileCached()});return f?(i!==y&&(u.saveLanguage(i),y=i),i):i},E=function(e){var t,n,r,o=e.configuration,i=e.fetch,a=e.getChapterCountry,u=e.getChapterLanguage,s=e.getPlatform,c=e.getResourceStringsEndpoint,l=e.features,f=l.isEnabledAnonymousOptimizely,d=l.getVariableStringAnonymousOptimizely;return function(){var e="f_ar_gernomio_cache_key",l=f(e)?"nonce=".concat(d(e,"nonce")):"",p=["region=".concat(a()),"LanguageCode=".concat(u()),"Platform=".concat(s()),l].filter(Boolean).join("&"),h="".concat(c(),"?").concat(p),g=function(e,t,n){var r,o=(null===(r=e.resourceStringLinkOverrides[t])||void 0===r?void 0:r[n])||{};return e.chapters.chapterList().forEach((function(t){var n=e.chapters.linkKey(t);if(n){var r=e.chapters.homePage(t);o[n]="/".concat(r)}})),o}(o,a(),u());if(function(e,t){return n===e&&r===JSON.stringify(t)}(h,g))return t;var v=function(e,t,n){return Y.createEraroError("Failed to get resource strings data: ".concat(e),Y.eraroCodesMap.category.ResourceStringService,Y.eraroCodesMap.code.GenericError,t,n)};return Y.again((function(){return i(h).catch((function(e){throw v("Failed to fetch ".concat(h),Y.eraroCodesMap.internal.NetworkError,e)})).then((function(e){if(!e.ok){var t=e.status,n=e.statusText;throw v("".concat(t," ").concat(n," from ").concat(h),String(t))}return e.json().catch((function(e){throw v("Failed to parse json",Y.eraroCodesMap.internal.ParserError,e)}))})).then((function(e){return function(e,t){return e.Links=e.Links.map((function(e){var n=e.Key;return Y.keysOf(t).includes(n)&&(e.Value=t[n]),e})),e}(e,g)})).then((function(e){return t=e,n=h,r=JSON.stringify(g),e}))}))}}({configuration:n,fetch:t.fetch,getChapterCountry:v,getChapterLanguage:m,getPlatform:c.getPlatform,getResourceStringsEndpoint:s.getResourceStringsEndpoint,features:l}),_=function(e){var t=e.window,n=e.configuration,r=e.errorModule,o=e.userModule,i=e.verifyChapterAuthorization,u=e.getChapterCountry,s=e.setChapterVersion,c=e.getChapterLanguage,l=e.downloadChapterAndAddInPage,f=e.getChapterUrl,d=e.getResourceStrings,p=e.triggerChapterDidLoadEvent,h=e.getStartupNativeCountryOrMoon,g=e.getStartupNativeCountryOrMoonOrMena,v=e.isVip,y=[],m=function(e){var t=0===y.length&&location?location.pathname:"";0===y.length&&"string"!=typeof e&&"string"==typeof(null==e?void 0:e.chapterPath)&&(t=e.chapterPath);var r=ur(e,t);if(!Boolean(r)&&"string"==typeof e)throw Qn('Unknown chapter: "'.concat(e,'"'));var a=e&&"object"==b(e)&&e.chapterData||null,u=null!=r?r:{chapterName:rr({configuration:n,isAuthorized:o.isAuthorized(),isActive:o.isActive,pathname:t,startupNativeCountryOrMoon:h(),startupNativeCountryOrMoonOrMena:g(),isVip:v}).chapterName,chapterData:a,chapterPath:t},s=u.chapterName,c=i(s);return c===s?u:ur({chapterName:c,chapterPath:n.chapters.homePage(c),chapterData:{deepLink:u}},t)},E=function(e,n){var r,o=e.chapterName,i=e.chapterData,a=e.chapterPath,u=n.chapterCountry,c=n.chapterVersion;y.push({chapterName:o,chapterData:i,chapterPath:a}),null===(r=t.newrelic)||void 0===r||r.setCustomAttribute("chapter",o),s(o,c),p({chapter:o,country:u})},_=function(e,t){var r,i,s,p,h=(r=0===y.length,{initialUpdate:function(e){var t=f(e,u(),c()),n=ar(location,t);r?history.replaceState(e.chapterData,"",n):history.pushState(e.chapterData,"",n)},replace:function(e,t){r||history.replaceState(e.chapterData,"",ar(location,t))}});return y.push(e),Promise.resolve(null).then((function(){return e.chapterName===a.ERROR?void 0:o.fetchProfile()})).then((function(){t||h.initialUpdate(e),s=u(),p=c(),i=f(e,s,p)})).then((function(){return d()})).then((function(){t||h.replace(e,i)})).then((function(){return l(e.chapterName,s,(function(){return n.environment,function(e,t,n,r){void 0===r&&(r=window);var o,i,a=Y.keysOf(r);o=r,i=function(e,t){return t.filter((function(t){return e.includes(t)}))}(a,e),i.filter((function(e){var t=Object.getOwnPropertyDescriptor(o,e);if(!t)return!1;var n=t.writable,r=t.configurable;return n&&r})).forEach((function(e){return delete o[e]}))}(sr,0,0,void 0)}))})).then((function(e){return{chapterCountry:s,chapterVersion:e}}))};return{getCurrentChapter:function(){var e;return null!==(e=y[y.length-1])&&void 0!==e?e:{chapterName:"unknown",chapterPath:location.pathname,chapterData:null}},setCurrentChapter:function(e,t){void 0===t&&(t=!1);var n=m(e);return n?_(n,t).then((function(e){E(n,e)})).catch((function(e){r.handleError(Y.eraroCodesMap.category.ChapterLoading,void 0,void 0,n.chapterName,e)})):Promise.resolve()},fetchNewChapter:_,getNormalisedAndVerifiedChapter:m,onChapterInstalled:E}}({window:t,configuration:n,errorModule:i,userModule:o,verifyChapterAuthorization:function(e){return nr({configuration:n.chapters,isActive:o.isActive,isAuthorized:o.isAuthorized(),chapters:[e],isVip:o.isVip})},getChapterCountry:v,setChapterVersion:c.setChapterVersion,getChapterLanguage:m,downloadChapterAndAddInPage:function(e,r,o){var i=function(e){var t=e.window,n=e.chapterName,r=e.region,o=[e.resourceURL.replace(gr,""),r,n].join("/"),i=new t.URL(o,t.location.href).href;return{baseURL:i,chapterURL:"".concat(i,"/index.html")}}({window:t,chapterName:e,resourceURL:n.resourcesBaseUrl,region:s.getNativeCountryOrMoon(v())}),a=i.chapterURL,u=i.baseURL;return xr({window:t,url:a,baseUrl:u,chapterName:e,chapterCountry:r,triggers:d.triggers,garbageCollector:o,selectorsExcludedFromCleaning:s.selectorsExcludedFromCleaning})},getChapterUrl:function(e,r,o){var i=e.chapterName;if(i===a.ERROR)return"".concat(t.location.pathname).concat(or(t.location));var u=e.chapterPath&&e.chapterPath.replace(n.appUrlPrefix,""),s=function(e){var t=e.location,n=e.chaptersMap,r=e.country,o=e.language,i=e.chapterHomepage,a=e.withLanguageInUrl,u=e.chapterFromUrl,s=e.chapterName,c=e.chapterPath,l=e.rewriteUrlLocale,f=e.rewriteUrlLocaleOverrideMap,d=u===s,p=function(e,t,n){var r,o;if(!n)return t;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.keys(n)),a=i.next();!a.done;a=i.next()){var u=a.value;if(new RegExp(u,"i").test(e))return n[u]}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return t}(t.pathname,l,f);if(!d&&!c){var h=hr(i,pr(r,o),p);return dr(a?h:i,t)}if(d||"/"!==t.pathname||Boolean(c)){var g=c||function(e){return e.pathname||""}(t),v="/"===g||"/"!==t.pathname&&!function(e,t){var n=fr(t).filter((function(e){return!lr(e)}))[0];return Y.keysOf(e).filter((function(t){return e[t].some((function(e){return n===e.split("/").filter(Boolean)[0]}))}))}(n,g).includes(u),y=v?i:g,m=hr(y,pr(r,o),p);return dr(a?m:y,t)}var E=hr(c,pr(r,o),p);return dr(a?E:c,t)}({location:t.location,chaptersMap:n.chapters.combinedChapterMap,country:r,language:o,chapterHomepage:n.chapters.homePage(i),withLanguageInUrl:n.chapters.hasLanguageInUrl(i),chapterFromUrl:g(t.location.pathname),chapterName:e.chapterName,chapterPath:u,rewriteUrlLocale:n.chapters.rewriteUrlLocale(i),rewriteUrlLocaleOverrideMap:n.chapters.rewriteUrlLocaleOverrideMap(i)});return n.appUrlPrefix+s},getResourceStrings:E,triggerChapterDidLoadEvent:d.triggers.didLoadEvents,getStartupNativeCountryOrMoon:p,getStartupNativeCountryOrMoonOrMena:h,isVip:o.isVip}),A=_.getCurrentChapter,w=_.setCurrentChapter,C=_.onChapterInstalled;return{run:function(){return u.loadLanguage().then((function(e){return f=!0,e&&(y=e),E()}))},getResourceStrings:E,getLanguage:m,getChapterCountry:v,getCurrentChapter:function(){var e=A();return e.chapterData?e:e.chapterName},setCurrentChapter:w,handlePopstate:function(){var e=t.location.pathname;!function(e,t,n,r){void 0===r&&(r=""),n!==t&&e({chapterName:n,chapterPath:r},!0)}(w,A().chapterName,g(e),e)},getChapterFromPath:g,lifecycleEvents:d.events,loadInitialChapter:function(e){void 0===e&&(e=null);var n=t.location.pathname;if(!t.daznSSR){if(!g(n))throw Qn("Unable to compute chapter name from path ".concat(n));return r.checkRegionAvailability(),e?w(e):(d.triggers.willStartEvents(),w({chapterPath:n}))}var o=t.daznSSR,i=o.chapterName,a=o.chapterCountry,u=o.chapterVersion,s=e?ur(e,n):null;return C({chapterName:i,chapterData:s?s.chapterData:null,chapterPath:n},{chapterCountry:a,chapterVersion:u}),Promise.resolve()}}}var zr={77:function(e){!function(){var t=function(e){return(new TextEncoder).encode(e)};function n(e,n){var r,o,i,a,u,s,c,l;for("string"==typeof e&&(e=t(e)),r=3&e.length,o=e.length-r,i=n,u=3432918353,s=461845907,l=0;l<o;)c=255&e[l]|(255&e[++l])<<8|(255&e[++l])<<16|(255&e[++l])<<24,++l,i=27492+(65535&(a=5*(65535&(i=(i^=c=(65535&(c=(c=(65535&c)*u+(((c>>>16)*u&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16);switch(c=0,r){case 3:c^=(255&e[l+2])<<16;case 2:c^=(255&e[l+1])<<8;case 1:i^=c=(65535&(c=(c=(65535&(c^=255&e[l]))*u+(((c>>>16)*u&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}var r=n;r.v2=function(e,n){"string"==typeof e&&(e=t(e));for(var r,o=e.length,i=n^o,a=0;o>=4;)r=1540483477*(65535&(r=255&e[a]|(255&e[++a])<<8|(255&e[++a])<<16|(255&e[++a])<<24))+((1540483477*(r>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),o-=4,++a;switch(o){case 3:i^=(255&e[a+2])<<16;case 2:i^=(255&e[a+1])<<8;case 1:i=1540483477*(65535&(i^=255&e[a]))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0},r.v3=n,e.exports=r}()}},Kr={};function Gr(e){var t=Kr[e];if(void 0!==t)return t.exports;var n=Kr[e]={exports:{}};return zr[e](n,n.exports,Gr),n.exports}Gr.d=function(e,t){for(var n in t)Gr.o(t,n)&&!Gr.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Gr.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var qr={};!function(){Gr.d(qr,{Q5:function(){return f},p0:function(){return R},d7:function(){return U},Yd:function(){return s},so:function(){return r},zW:function(){return T},iR:function(){return C},Fs:function(){return x},hu:function(){return c},OH:function(){return u},L3:function(){return a},GU:function(){return o},mC:function(){return L},Uj:function(){return i}});var e=Gr(77),t=1,n=Math.pow(2,32),r=1e5;function o(o){var i=e.v3(o,t)/n;return Math.floor(i*r)}var i="[Featurevisor]",a=["warn","error"],u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};switch(e){case"debug":console.log(i,t,n);break;case"info":console.info(i,t,n);break;case"warn":console.warn(i,t,n);break;case"error":console.error(i,t,n)}},s=function(){function e(t){v(this,e),this.levels=t.levels,this.handle=t.handler}return m(e,[{key:"setLevels",value:function(e){this.levels=e}},{key:"log",value:function(e,t,n){-1!==this.levels.indexOf(e)&&this.handle(e,t,n)}},{key:"debug",value:function(e,t){this.log("debug",e,t)}},{key:"info",value:function(e,t){this.log("info",e,t)}},{key:"warn",value:function(e,t){this.log("warn",e,t)}},{key:"error",value:function(e,t){this.log("error",e,t)}}]),e}();function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.levels||a,n=e.handler||u;return new s({levels:t,handler:n})}var l=function(){function e(t){v(this,e),this.schemaVersion=t.schemaVersion,this.revision=t.revision,this.segments=t.segments,this.attributes=t.attributes,this.features=t.features}return m(e,[{key:"getRevision",value:function(){return this.revision}},{key:"getSchemaVersion",value:function(){return this.schemaVersion}},{key:"getAllAttributes",value:function(){return this.attributes}},{key:"getAttribute",value:function(e){return this.attributes.find((function(t){return t.key===e}))}},{key:"getSegment",value:function(e){var t=this.segments.find((function(t){return t.key===e}));if(t)return function(e,t){if("string"==typeof e[t]&&"*"!==e[t])try{e[t]=JSON.parse(e[t])}catch(e){console.error("Error parsing JSON",e)}return e}(t,"conditions")}},{key:"getFeature",value:function(e){var t=this.features.find((function(t){return t.key===e}));if(t)return t}}]),e}(),f=function(){function e(){v(this,e),this._listeners={}}return m(e,[{key:"addListener",value:function(e,t){void 0===this._listeners[e]&&(this._listeners[e]=[]),this._listeners[e].push(t)}},{key:"removeListener",value:function(e,t){if(void 0!==this._listeners[e]){var n=this._listeners[e].indexOf(t);-1!==n&&this._listeners[e].splice(n,1)}}},{key:"removeAllListeners",value:function(e){var t=this;e?this._listeners[e]=[]:Object.keys(this._listeners).forEach((function(e){t._listeners[e]=[]}))}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];void 0!==this._listeners[e]&&this._listeners[e].forEach((function(e){e.apply(void 0,n)}))}}]),e}(),h=function(e,t){var n=y(e),r=y(t),o=n.pop(),i=r.pop(),a=w(n,r);return 0!==a?a:o&&i?w(o.split("."),i.split(".")):o||i?o?-1:1:0},g=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,y=function(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");var t=e.match(g);if(!t)throw new Error("Invalid argument not valid semver ('".concat(e,"' received)"));return t.shift(),t},E=function(e){return"*"===e||"x"===e||"X"===e},_=function(e){var t=parseInt(e,10);return isNaN(t)?e:t},A=function(e,t){if(E(e)||E(t))return 0;var n=function(e,t){return b(e)!=b(t)?[String(e),String(t)]:[e,t]}(_(e),_(t)),r=p(n,2),o=r[0],i=r[1];return o>i?1:o<i?-1:0},w=function(e,t){for(var n=0;n<Math.max(e.length,t.length);n++){var r=A(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0};function C(e,t){var n=e.attribute,r=e.operator,o=e.value;if("equals"===r)return t[n]===o;if("notEquals"===r)return t[n]!==o;if("before"===r||"after"===r){var i=t[n],a=i instanceof Date?i:new Date(i),u=o instanceof Date?o:new Date(o);return"before"===r?a<u:a>u}if("string"==typeof t[n]&&Array.isArray(o)){var s=t[n];if("in"===r)return-1!==o.indexOf(s);if("notIn"===r)return-1===o.indexOf(s)}else if("string"==typeof t[n]&&"string"==typeof o){var c=t[n];if("contains"===r)return-1!==c.indexOf(o);if("notContains"===r)return-1===c.indexOf(o);if("startsWith"===r)return c.startsWith(o);if("endsWith"===r)return c.endsWith(o);if("semverEquals"===r)return 0===h(c,o);if("semverNotEquals"===r)return 0!==h(c,o);if("semverGreaterThan"===r)return 1===h(c,o);if("semverGreaterThanOrEquals"===r)return h(c,o)>=0;if("semverLessThan"===r)return-1===h(c,o);if("semverLessThanOrEquals"===r)return h(c,o)<=0}else if("number"==typeof t[n]&&"number"==typeof o){var l=t[n];if("greaterThan"===r)return l>o;if("greaterThanOrEquals"===r)return l>=o;if("lessThan"===r)return l<o;if("lessThanOrEquals"===r)return l<=o}return!1}function T(e,t,n){if("attribute"in e)try{return C(e,t)}catch(r){return n.warn(r.message,{error:r,details:{condition:e,context:t}}),!1}return"and"in e&&Array.isArray(e.and)?e.and.every((function(e){return T(e,t,n)})):"or"in e&&Array.isArray(e.or)?e.or.some((function(e){return T(e,t,n)})):"not"in e&&Array.isArray(e.not)?e.not.every((function(){return!1===T({and:e.not},t,n)})):!!Array.isArray(e)&&e.every((function(e){return T(e,t,n)}))}function k(e,t,n,r){if("*"===e)return!0;if("string"==typeof e){var o=n.getSegment(e);return!!o&&function(e,t,n){return T(e.conditions,t,n)}(o,t,r)}if("object"==b(e)){if("and"in e&&Array.isArray(e.and))return e.and.every((function(e){return k(e,t,n,r)}));if("or"in e&&Array.isArray(e.or))return e.or.some((function(e){return k(e,t,n,r)}));if("not"in e&&Array.isArray(e.not))return e.not.every((function(e){return!1===k(e,t,n,r)}))}return!!Array.isArray(e)&&e.every((function(e){return k(e,t,n,r)}))}function I(e){return"string"==typeof e&&(e.startsWith("{")||e.startsWith("["))?JSON.parse(e):e}function D(e,t,n,r,o){var i=e.find((function(e){return k(I(e.segments),t,r,o)}));if(!i)return{matchedTraffic:void 0,matchedAllocation:void 0};var a=function(e,t){var n,r=d(e.allocation);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=p(o.range,2),a=i[0],u=i[1];if(o.range&&a<=t&&u>=t)return o}}catch(e){r.e(e)}finally{r.f()}}(i,n);return{matchedTraffic:i,matchedAllocation:a}}function O(e,t,n,r){var o={force:void 0,forceIndex:void 0};if(!e.force)return o;for(var i=0;i<e.force.length;i++){var a=e.force[i];if(a.conditions&&T(a.conditions,t,r)){o.force=a,o.forceIndex=i;break}if(a.segments&&k(a.segments,t,n,r)){o.force=a,o.forceIndex=i;break}}return o}var R,S={schemaVersion:"1",revision:"unknown",attributes:[],segments:[],features:[]};function N(e,t){return t?t(e):fetch(e).then((function(e){return e.json()}))}function L(e,t){try{if(void 0===e)return;switch(t){case"string":return"string"==typeof e?e:void 0;case"integer":return parseInt(e,10);case"double":return parseFloat(e);case"boolean":return!0===e;case"array":return Array.isArray(e)?e:void 0;case"object":return"object"==b(e)?e:void 0;default:return e}}catch(e){return}}!function(e){e.NOT_FOUND="not_found",e.NO_VARIATIONS="no_variations",e.NO_MATCH="no_match",e.DISABLED="disabled",e.REQUIRED="required",e.OUT_OF_RANGE="out_of_range",e.FORCED="forced",e.INITIAL="initial",e.STICKY="sticky",e.RULE="rule",e.ALLOCATED="allocated",e.DEFAULTED="defaulted",e.OVERRIDE="override",e.ERROR="error"}(R||(R={}));var U=function(){function e(t){var n=this;v(this,e),this.bucketKeySeparator=t.bucketKeySeparator||".",this.configureBucketKey=t.configureBucketKey,this.configureBucketValue=t.configureBucketValue,this.datafileUrl=t.datafileUrl,this.handleDatafileFetch=t.handleDatafileFetch,this.initialFeatures=t.initialFeatures,this.interceptContext=t.interceptContext,this.logger=t.logger||c(),this.refreshInterval=t.refreshInterval,this.stickyFeatures=t.stickyFeatures,this.emitter=new f,this.statuses={ready:!1,refreshInProgress:!1},t.onReady&&this.emitter.addListener("ready",t.onReady),t.onRefresh&&this.emitter.addListener("refresh",t.onRefresh),t.onUpdate&&this.emitter.addListener("update",t.onUpdate),t.onActivation&&this.emitter.addListener("activation",t.onActivation);var r=this.emitter.addListener.bind(this.emitter);this.on=r,this.addListener=r;var o=this.emitter.removeListener.bind(this.emitter);if(this.off=o,this.removeListener=o,this.removeAllListeners=this.emitter.removeAllListeners.bind(this.emitter),t.datafileUrl)this.setDatafile(t.datafile||S),N(t.datafileUrl,t.handleDatafileFetch).then((function(e){n.setDatafile(e),n.statuses.ready=!0,n.emitter.emit("ready"),n.refreshInterval&&n.startRefreshing()})).catch((function(e){n.logger.error("failed to fetch datafile",{error:e})}));else{if(!t.datafile)throw new Error("Featurevisor SDK instance cannot be created without both `datafile` and `datafileUrl` options");this.setDatafile(t.datafile),this.statuses.ready=!0,setTimeout((function(){n.emitter.emit("ready")}),0)}}return m(e,[{key:"setLogLevels",value:function(e){this.logger.setLevels(e)}},{key:"onReady",value:function(){var e=this;return new Promise((function(t){if(e.statuses.ready)return t(e);e.emitter.addListener("ready",(function n(){e.emitter.removeListener("ready",n),t(e)}))}))}},{key:"setDatafile",value:function(e){try{this.datafileReader=new l("string"==typeof e?JSON.parse(e):e)}catch(e){this.logger.error("could not parse datafile",{error:e})}}},{key:"setStickyFeatures",value:function(e){this.stickyFeatures=e}},{key:"getRevision",value:function(){return this.datafileReader.getRevision()}},{key:"getFeature",value:function(e){return"string"==typeof e?this.datafileReader.getFeature(e):e}},{key:"getBucketKey",value:function(e,t){var n,r,o=e.key;if("string"==typeof e.bucketBy)n="plain",r=[e.bucketBy];else if(Array.isArray(e.bucketBy))n="and",r=e.bucketBy;else{if("object"!=b(e.bucketBy)||!Array.isArray(e.bucketBy.or))throw this.logger.error("invalid bucketBy",{featureKey:o,bucketBy:e.bucketBy}),new Error("invalid bucketBy");n="or",r=e.bucketBy.or}var i=[];r.forEach((function(e){var r=t[e];void 0!==r&&("plain"===n||"and"===n||0===i.length)&&i.push(r)})),i.push(o);var a=i.join(this.bucketKeySeparator);return this.configureBucketKey?this.configureBucketKey(e,t,a):a}},{key:"getBucketValue",value:function(e,t){var n=this.getBucketKey(e,t),r=o(n);return this.configureBucketValue?{bucketKey:n,bucketValue:this.configureBucketValue(e,t,r)}:{bucketKey:n,bucketValue:r}}},{key:"isReady",value:function(){return this.statuses.ready}},{key:"refresh",value:function(){var e=this;return this.logger.debug("refreshing datafile"),this.statuses.refreshInProgress?this.logger.warn("refresh in progress, skipping"):this.datafileUrl?(this.statuses.refreshInProgress=!0,void N(this.datafileUrl,this.handleDatafileFetch).then((function(t){var n=e.getRevision()!==t.revision;e.setDatafile(t),e.logger.info("refreshed datafile"),e.emitter.emit("refresh"),n&&e.emitter.emit("update"),e.statuses.refreshInProgress=!1})).catch((function(t){e.logger.error("failed to refresh datafile",{error:t}),e.statuses.refreshInProgress=!1}))):this.logger.error("cannot refresh since `datafileUrl` is not provided")}},{key:"startRefreshing",value:function(){var e=this;return this.datafileUrl?this.intervalId?this.logger.warn("refreshing has already started"):this.refreshInterval?void(this.intervalId=setInterval((function(){e.refresh()}),1e3*this.refreshInterval)):this.logger.warn("no `refreshInterval` option provided"):this.logger.error("cannot start refreshing since `datafileUrl` is not provided")}},{key:"stopRefreshing",value:function(){if(!this.intervalId)return this.logger.warn("refreshing has not started yet");clearInterval(this.intervalId)}},{key:"evaluateFlag",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var o="string"==typeof e?e:e.key;if(this.stickyFeatures&&this.stickyFeatures[o]&&void 0!==this.stickyFeatures[o].enabled)return t={featureKey:o,reason:R.STICKY,sticky:this.stickyFeatures[o],enabled:this.stickyFeatures[o].enabled},this.logger.debug("using sticky enabled",t),t;if(this.statuses&&!this.statuses.ready&&this.initialFeatures&&this.initialFeatures[o]&&void 0!==this.initialFeatures[o].enabled)return t={featureKey:o,reason:R.INITIAL,initial:this.initialFeatures[o],enabled:this.initialFeatures[o].enabled},this.logger.debug("using initial enabled",t),t;var i=this.getFeature(e);if(!i)return t={featureKey:o,reason:R.NOT_FOUND},this.logger.warn("feature not found",t),t;i.deprecated&&this.logger.warn("feature is deprecated",{featureKey:i.key});var a=this.interceptContext?this.interceptContext(r):r,u=O(i,r,this.datafileReader,this.logger),s=u.force,c=u.forceIndex;if(s&&void 0!==s.enabled)return t={featureKey:i.key,reason:R.FORCED,forceIndex:c,force:s,enabled:s.enabled},this.logger.debug("forced enabled found",t),t;if(i.required&&i.required.length>0){var l=i.required.every((function(e){var t,r;return"string"==typeof e?t=e:(t=e.key,r=e.variation),!!n.isEnabled(t,a)&&(void 0===r||n.getVariation(t,a)===r)}));if(!l)return t={featureKey:i.key,reason:R.REQUIRED,required:i.required,enabled:l},this.logger.debug("required features not enabled",t),t}var f=this.getBucketValue(i,a),d=f.bucketKey,p=f.bucketValue,h=function(e,t,n,r){return e.find((function(e){return!!k(I(e.segments),t,n,r)}))}(i.traffic,a,this.datafileReader,this.logger);if(h){if(i.ranges&&i.ranges.length>0)return i.ranges.find((function(e){return p>=e[0]&&p<e[1]}))?(t={featureKey:i.key,reason:R.ALLOCATED,bucketKey:d,bucketValue:p,ruleKey:h.key,traffic:h,enabled:void 0===h.enabled||h.enabled},this.logger.debug("matched",t),t):(t={featureKey:i.key,reason:R.OUT_OF_RANGE,bucketKey:d,bucketValue:p,enabled:!1},this.logger.debug("not matched",t),t);if(void 0!==h.enabled)return t={featureKey:i.key,reason:R.OVERRIDE,bucketKey:d,bucketValue:p,ruleKey:h.key,traffic:h,enabled:h.enabled},this.logger.debug("override from rule",t),t;if(p<=h.percentage)return t={featureKey:i.key,reason:R.RULE,bucketKey:d,bucketValue:p,ruleKey:h.key,traffic:h,enabled:!0},this.logger.debug("matched traffic",t),t}return t={featureKey:i.key,reason:R.NO_MATCH,bucketKey:d,bucketValue:p,enabled:!1},this.logger.debug("nothing matched",t),t}catch(r){return t={featureKey:"string"==typeof e?e:e.key,reason:R.ERROR,error:r},this.logger.error("error",t),t}}},{key:"isEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return!0===this.evaluateFlag(e,t).enabled}catch(t){return this.logger.error("isEnabled",{featureKey:e,error:t}),!1}}},{key:"evaluateVariation",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r="string"==typeof e?e:e.key;if(!1===this.evaluateFlag(e,n).enabled)return t={featureKey:r,reason:R.DISABLED},this.logger.debug("feature is disabled",t),t;if(this.stickyFeatures&&this.stickyFeatures[r]){var o=this.stickyFeatures[r].variation;if(void 0!==o)return t={featureKey:r,reason:R.STICKY,variationValue:o},this.logger.debug("using sticky variation",t),t}if(this.statuses&&!this.statuses.ready&&this.initialFeatures&&this.initialFeatures[r]&&void 0!==this.initialFeatures[r].variation){var i=this.initialFeatures[r].variation;return t={featureKey:r,reason:R.INITIAL,variationValue:i},this.logger.debug("using initial variation",t),t}var a=this.getFeature(e);if(!a)return t={featureKey:r,reason:R.NOT_FOUND},this.logger.warn("feature not found",t),t;if(!a.variations||0===a.variations.length)return t={featureKey:r,reason:R.NO_VARIATIONS},this.logger.warn("no variations",t),t;var u=this.interceptContext?this.interceptContext(n):n,s=O(a,n,this.datafileReader,this.logger),c=s.force,l=s.forceIndex;if(c&&c.variation){var f=a.variations.find((function(e){return e.value===c.variation}));if(f)return t={featureKey:a.key,reason:R.FORCED,forceIndex:l,force:c,variation:f},this.logger.debug("forced variation found",t),t}var d=this.getBucketValue(a,u),p=d.bucketKey,h=d.bucketValue,g=D(a.traffic,u,h,this.datafileReader,this.logger),v=g.matchedTraffic,y=g.matchedAllocation;if(v){if(v.variation){var m=a.variations.find((function(e){return e.value===v.variation}));if(m)return t={featureKey:a.key,reason:R.RULE,bucketKey:p,bucketValue:h,ruleKey:v.key,traffic:v,variation:m},this.logger.debug("override from rule",t),t}if(y&&y.variation){var E=a.variations.find((function(e){return e.value===y.variation}));if(E)return t={featureKey:a.key,reason:R.ALLOCATED,bucketKey:p,bucketValue:h,ruleKey:v.key,traffic:v,variation:E},this.logger.debug("allocated variation",t),t}}return t={featureKey:a.key,reason:R.NO_MATCH,bucketKey:p,bucketValue:h},this.logger.debug("no matched variation",t),t}catch(n){return t={featureKey:"string"==typeof e?e:e.key,reason:R.ERROR,error:n},this.logger.error("error",t),t}}},{key:"getVariation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var n=this.evaluateVariation(e,t);return void 0!==n.variationValue?n.variationValue:n.variation?n.variation.value:void 0}catch(t){return void this.logger.error("getVariation",{featureKey:e,error:t})}}},{key:"activate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var n=this.evaluateVariation(e,t),r=n.variation?n.variation.value:n.variationValue;if(void 0===r)return;var o=this.interceptContext?this.interceptContext(t):t,i={};return this.datafileReader.getAllAttributes().filter((function(e){return!0===e.capture})).forEach((function(e){void 0!==o[e.key]&&(i[e.key]=t[e.key])})),this.emitter.emit("activation",e,r,o,i,n),r}catch(t){return void this.logger.error("activate",{featureKey:e,error:t})}}},{key:"evaluateVariable",value:function(e,t){var n,r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{var i="string"==typeof e?e:e.key;if(!1===this.evaluateFlag(e,o).enabled)return n={featureKey:i,reason:R.DISABLED},this.logger.debug("feature is disabled",n),n;if(this.stickyFeatures&&this.stickyFeatures[i]){var a=this.stickyFeatures[i].variables;if(a){var u=a[t];if(void 0!==u)return n={featureKey:i,reason:R.STICKY,variableKey:t,variableValue:u},this.logger.debug("using sticky variable",n),n}}if(this.statuses&&!this.statuses.ready&&this.initialFeatures&&this.initialFeatures[i]){var s=this.initialFeatures[i].variables;if(s&&void 0!==s[t])return n={featureKey:i,reason:R.INITIAL,variableKey:t,variableValue:s[t]},this.logger.debug("using initial variable",n),n}var c=this.getFeature(e);if(!c)return n={featureKey:i,reason:R.NOT_FOUND,variableKey:t},this.logger.warn("feature not found in datafile",n),n;var l=Array.isArray(c.variablesSchema)?c.variablesSchema.find((function(e){return e.key===t})):void 0;if(!l)return n={featureKey:i,reason:R.NOT_FOUND,variableKey:t},this.logger.warn("variable schema not found",n),n;var f=this.interceptContext?this.interceptContext(o):o,d=O(c,o,this.datafileReader,this.logger),p=d.force,h=d.forceIndex;if(p&&p.variables&&void 0!==p.variables[t])return n={featureKey:c.key,reason:R.FORCED,forceIndex:h,force:p,variableKey:t,variableSchema:l,variableValue:p.variables[t]},this.logger.debug("forced variable",n),n;var g=this.getBucketValue(c,f),v=g.bucketKey,y=g.bucketValue,m=D(c.traffic,f,y,this.datafileReader,this.logger),E=m.matchedTraffic,_=m.matchedAllocation;if(E){if(E.variables&&void 0!==E.variables[t])return n={featureKey:c.key,reason:R.RULE,bucketKey:v,bucketValue:y,ruleKey:E.key,traffic:E,variableKey:t,variableSchema:l,variableValue:E.variables[t]},this.logger.debug("override from rule",n),n;var b;if(p&&p.variation?b=p.variation:_&&_.variation&&(b=_.variation),b&&Array.isArray(c.variations)){var A=c.variations.find((function(e){return e.value===b}));if(A&&A.variables){var w=A.variables.find((function(e){return e.key===t}));if(w){if(w.overrides){var C=w.overrides.find((function(e){return e.conditions?T("string"==typeof e.conditions?JSON.parse(e.conditions):e.conditions,f,r.logger):!!e.segments&&k(I(e.segments),f,r.datafileReader,r.logger)}));if(C)return n={featureKey:c.key,reason:R.OVERRIDE,bucketKey:v,bucketValue:y,ruleKey:E.key,traffic:E,variableKey:t,variableSchema:l,variableValue:C.value},this.logger.debug("variable override",n),n}if(void 0!==w.value)return n={featureKey:c.key,reason:R.ALLOCATED,bucketKey:v,bucketValue:y,ruleKey:E.key,traffic:E,variableKey:t,variableSchema:l,variableValue:w.value},this.logger.debug("allocated variable",n),n}}}}return n={featureKey:c.key,reason:R.DEFAULTED,bucketKey:v,bucketValue:y,variableKey:t,variableSchema:l,variableValue:l.defaultValue},this.logger.debug("using default value",n),n}catch(o){return n={featureKey:"string"==typeof e?e:e.key,reason:R.ERROR,variableKey:t,error:o},this.logger.error("error",n),n}}},{key:"getVariable",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{var r=this.evaluateVariable(e,t,n);return void 0!==r.variableValue?r.variableSchema&&"json"===r.variableSchema.type&&"string"==typeof r.variableValue?JSON.parse(r.variableValue):r.variableValue:void 0}catch(n){return void this.logger.error("getVariable",{featureKey:e,variableKey:t,error:n})}}},{key:"getVariableBoolean",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L(this.getVariable(e,t,n),"boolean")}},{key:"getVariableString",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L(this.getVariable(e,t,n),"string")}},{key:"getVariableInteger",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L(this.getVariable(e,t,n),"integer")}},{key:"getVariableDouble",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L(this.getVariable(e,t,n),"double")}},{key:"getVariableArray",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L(this.getVariable(e,t,n),"array")}},{key:"getVariableObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L(this.getVariable(e,t,n),"object")}},{key:"getVariableJSON",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L(this.getVariable(e,t,n),"json")}}]),e}();function x(e){return new U(e)}}();var Hr=qr.Fs,Jr=qr.hu,Wr=function(e){window.dataLayer||(window.dataLayer=[]),window.dataLayer.push(e)},Yr=function(e){e.environment;var t=e.featurevisorDatafileURL,n=e.trackFeaturevisorErrors;return M(void 0,void 0,void 0,(function(){var e,r,o,i,a,u;return B(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),e=function(){return fetch(t)},r=Y.again(e,{retries:0}),[4,Promise.all([r.then((function(e){return e.json()}))])];case 1:return o=V.apply(void 0,[s.sent(),1]),i=o[0],[2,{featurevisorInstance:Hr({datafileUrl:t,handleDatafileFetch:function(e){return Promise.resolve(i)},onActivation:function(e,t){Wr({event:"optimizelyActivation",optimizely:{experimentName:e,experimentId:e,variantName:t,variantId:t}})},logger:Jr({levels:["error","warn"],handler:function(e,t,n){a&&"error"===e&&window.newrelic.addPageAction("FeaturevisorError",F({message:t},n)),console.log("[Featurevisor] ",{level:e,message:t,details:n})}}),onReady:function(){a=n()}})}];case 2:return u=s.sent(),console.error(["[Bootstrap] Featurevisor failed to initialize.","Reason: ".concat(String(u))].join(" ")),window.newrelic.noticeError(u,{source:"FeaturevisorInitError"}),[2,{optimizelyInstance:null,featurevisorInstance:null}];case 3:return[2]}}))}))},Zr=["startupData.Region","userProfile.Preferences"],Xr=function e(t,n,r){if(t&&"object"==b(t)&&0!==n.length){var o=n[0];if(1!==n.length){var i=n.slice(1);t[o]=t[o]||{},e(t[o],i,r)}else t[o]=r}},Qr=function(e,t){for(var n=e,r=0;r<t.length;r++)n=null==n?void 0:n[t[r]];return n},$r=function(e){return Boolean(e)&&"object"==b(e)},eo=function(e,t){return e?[e,t].join("."):t},to=function(e){var t=e.window,n=e.trackUsage,r=e.logger,o=e.deps;return function(e){var i=function(o,i,a){return function(e){var t,n=e.window,r=e.trackUsage,o=e.logger,i=e.getter,a=e.propPath,u=e.replacedWith,s=e.setter,c=e.shouldNotManipulate,l=void 0!==c&&c,f="window.dazn.".concat(a),d=a.split("."),p=d[d.length-1];if(0===d.length)throw new Error("Propery should have at least one level");Qr(n.dazn,d)||Xr(n.dazn,d,{});var h=function(e){u&&o(["DEPRECATION NOTICE:","".concat(e," is deprecated and will be removed."),"Please use ".concat(u)].join(" "))},g={},v=null!==(t=Qr(n.dazn,d.slice(0,-1)))&&void 0!==t?t:n.dazn;Object.defineProperty(v,p,{enumerable:!0,get:function(){h(f);var e=i();if(r){if($r(e)&&void 0!==g[p]&&void 0!==Proxy)return g[p]=function(e,t){var n=function(n){var o,i,u="".concat(t,".").concat(n);$r(e[n])&&void 0===g[u]&&(o=t,i=n,Zr.some((function(e){var t=V(e.split("."),2),n=t[0],r=t[1];return n===o&&r===i}))&&(e[n]=new Proxy(e[n],{get:function(e,t){return null==r||r({functionName:[a,n,t].join(".")}),e[t]}})),g[u]=e[n])};for(var o in e)n(o);return new Proxy(e,{get:function(e,n){var o;return o="".concat(t,".").concat(n),Zr.includes(o)||null==r||r({functionName:[a,n].join(".")}),e[n]}})}(e,p),g[p];r({functionName:a})}return e},set:function(e){return h(f),null==r||r({functionName:a}),(void 0===s||l)&&o("You can not manipulate ".concat(f," directly")),null==s?void 0:s(e)}})}({window:t,trackUsage:n,logger:r,getter:i,propPath:eo(e,o),replacedWith:null==a?void 0:a.replacedWith,setter:null==a?void 0:a.setter,shouldNotManipulate:null==a?void 0:a.shouldNotManipulate})},a=function(r,o,i){return function(e){var t=e.window,n=e.trackUsage,r=e.propName,o=e.fn,i=e.decorator,a=r.split("."),u=i?i(o,r):o;Xr(t.dazn,a,n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n({functionName:r}),u.apply(void 0,j([],V(e),!1))}:u)}({window:t,trackUsage:n,propName:eo(e,r),fn:o,decorator:i})};return function(e){e({prop:i,func:a,logger:r,deps:o})}}},no=function(e){void 0===e&&(e=".bootstrap-splash");var t=null;return"string"==typeof e?t=document.querySelector(e):e&&(t=e),t||null},ro=function(e){var t,n=no(e);(null==n?void 0:n.parentNode)&&(.5,(t=n).style.transition=["opacity","".concat(.5.toString(),"s"),"ease"].join(" "),t.style.opacity="0",setTimeout((function(){t.parentNode&&t.parentNode.removeChild(t)}),500))},oo=function(e){var t=no(e);(null==t?void 0:t.parentNode)&&(t.style.display="none")},io={production:r.StartupEnvironment.PROD,staging:r.StartupEnvironment.STAGE,edge:r.StartupEnvironment.STAGE,testing:r.StartupEnvironment.STAGE,development:r.StartupEnvironment.DEV},ao=["PortabilityAvailable","NativeAndPortabilityAvailable"],uo=function(e){var t,n,o,i,a=e.deviceDetails,u=a.getPlatform,s=a.getManufacturer,c=a.getGuid,l=e.navigation.getCurrentPath,f=e.config,d=f.sessionId,p=f.languages,h=f.environment,g=e.asyncStorage,v=function(e,t){if(!e)throw Y.createEraroError("[Bootstrap] Startup data is not available: ".concat(t,"()"),Y.eraroCodesMap.category.StartupService,Y.eraroCodesMap.code.GenericError,Y.eraroCodesMap.internal.GenericError)};return{getCampaignId:function(){return t},setCampaignId:function(e){t=e},getPromoId:function(){return n},setPromoId:function(e){n=e},hasStartupData:function(){return Boolean(o)},getStartupData:function(){return v(o,"getStartupData"),o},getAbTests:function(){return null==o?void 0:o.AB_Test_Multi},setStartupData:function(e){o=e},getStartupDataCountry:function(){return v(o,"getStartupDataCountry"),o.Region.Country},getServerTimeOffset:function(){return(null==o?void 0:o.CurrentTime)?new Date(null==o?void 0:o.CurrentTime).getTime()-i:null},getRegionLanguage:function(){return null==o?void 0:o.Region.Language},getApiUrl:function(e,t){var n,r,i;return void 0===e&&(e=""),void 0===t&&(t="v1"),v(o,"getApiUrl"),null===(i=null===(r=null===(n=o.ServiceDictionary)||void 0===n?void 0:n[e])||void 0===r?void 0:r.Versions[t])||void 0===i?void 0:i.ServicePath},getAllowedLanguages:function(){return null==o?void 0:o.SupportedLanguages},isPortable:function(){var e=((null==o?void 0:o.Region)||{}).CountryPortabilityStatus;return ao.some((function(t){return t===e}))},checkRegionAvailability:function(){var e;if(v(o,"checkRegionAvailability"),!(null===(e=o.Region)||void 0===e?void 0:e.isAllowed))throw Y.createEraroError("Region is not allowed",Y.eraroCodesMap.category.StartupService,Y.eraroCodesMap.code.RestrictedCountry,Y.eraroCodesMap.internal.StartupRestrictedCountry)},getLocale:function(){if(!o)return"";var e=o.Region,t=e.Country,n=e.Language;return"".concat(n,"-").concat(t.toUpperCase())},run:function(e){var a=e.shouldUseMarcoPolo,f=function(e){var t={campaignId:"generic",promoId:""},n=e().split("/").filter((function(e){return e})),r="p"===n[0];if(!n.length||!/^[a-z]{2}-([a-z]{2}|global)$/i.exec(n[0])&&!r)return t;r||n.shift();var o=n.shift();return"p"===o&&(t.promoId=n.join("/")),"c"===o&&(t.campaignId=n.join("/")),t}(l);return t=f.campaignId,n=f.promoId,Promise.resolve().then((function(){return e={shouldUseMarcoPolo:a,target:u(),manufacturer:s(),guid:c(),sessionId:d,languages:p,environment:h,campaignId:t,promoId:n,asyncStorage:g},o=new r.StartupClient({environment:io[e.environment],cache:e.asyncStorage}),i={Version:"2",LandingPageKey:e.campaignId,Languages:e.languages,Platform:e.target,Manufacturer:e.manufacturer,PromoCode:e.promoId,SessionId:e.sessionId,PlatformAttributes:{}},l=e.shouldUseMarcoPolo?function(){return o.getWithMarcoPolo(i,e.guid)}:function(){return o.get(i)},new Promise((function(e){return e(l())})).catch((function(e){throw Y.createEraroError("Failed to get startup data. ".concat(String(e)),Y.eraroCodesMap.category.StartupService,Y.eraroCodesMap.code.AppLoadError,Y.eraroCodesMap.internal.ServerError,e)}));var e,o,i,l})).then((function(e){var t;i=Date.now(),null===(t=window.newrelic)||void 0===t||t.setCustomAttribute("geoCountry",e.Region.Country),o=e}))}}},so={cff_anonymous_playback:{staging:["*"],production:["*"],development:["*"],testing:["*"],edge:["*"]}},co=function(e,t){return e().then((function(e){var n={profile:e,timeStamp:Date.now()};return localStorage.setItem(t,JSON.stringify(n)),e}))},lo=function(e,t,n,r,o){return Y.again((function(){var i=Xt(t),a="userprofile_".concat(i.user);!function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);(null==n?void 0:n.startsWith("userprofile_"))&&n!==e&&localStorage.removeItem(n)}}(a);var u=function(){return n(e,{headers:Zt(t,r,o,void 0,x),cache:"no-cache"}).catch((function(e){return Promise.reject(fo.requestFailed(e))})).then((function(e){return 403===e.status?Promise.reject(fo.countryNotAvailable(e.status)):e.ok?e.json().catch((function(e){return Promise.reject(fo.jsonParse(e))})):Promise.reject(fo.responseNotOk(e.status))}))},s=JSON.parse(localStorage.getItem(a)||"{}");if(Object.keys(s).length>0){var c=s.profile;return co(u,a),Promise.resolve(c)}return co(u,a)}),{backoff:200,retries:2})},fo={countryNotAvailable:function(e){return Y.createEraroError("Country not available",Y.eraroCodesMap.category.UserProfileService,Y.eraroCodesMap.code.RestrictedCountry,String(e))},responseNotOk:function(e){return Y.createEraroError("User profile responded not okay",Y.eraroCodesMap.category.UserProfileService,Y.eraroCodesMap.code.GenericError,String(e))},jsonParse:function(e){return Y.createEraroError("Could not convert user profile response to JSON",Y.eraroCodesMap.category.UserProfileService,Y.eraroCodesMap.code.GenericError,Y.eraroCodesMap.internal.ParserError,e)},requestFailed:function(e){return Y.createEraroError("User profile request failure",Y.eraroCodesMap.category.UserProfileService,Y.eraroCodesMap.code.GenericError,Y.eraroCodesMap.internal.NetworkError,e)}},po=1e3,ho=function(e){return new Date(e*po).toISOString()};function go(e){var t,n,r=this,o=e.authTokenRefreshUrl,i=e.userProfileUrl,a=e.logOutUrl,u=e.load,s=e.save,c=e.remove,l=e.onTokenReset,f=e.sessionId,d=e.deviceId,p=e.fetch,h=e.getGuid,g=e.getDevMode,v=e.getApiUrl,y=e.getServerTimeOffset,m=e.isForceReload,E=e.removeForceReloadFlag,_=e.defaultActiveUserTypes,b=e.getLanguage,A=e.environment,w=e.geoCountry,C=e.getNativeCountryOrMoonOrMena,T={},k="",I=null!==(t=window.localStorage.getItem(D))&&void 0!==t?t:"",R=null,S=I?Xt(I):null,N=!1,L=function(e){var t,n,r,o,i,a,u,s;k=e,(R=e?Xt(e):null)&&(null===(t=window.newrelic)||void 0===t||t.setCustomAttribute("contentCountry",R.contentCountry),null===(n=window.newrelic)||void 0===n||n.setCustomAttribute("daznId",R.user),null===(r=window.newrelic)||void 0===r||r.setCustomAttribute("userStatus",R.userstatus),null===(o=window.newrelic)||void 0===o||o.setCustomAttribute("viewerId",R.viewerId),null===(i=window.newrelic)||void 0===i||i.setCustomAttribute("jwt.expires",R.exp),null===(a=window.newrelic)||void 0===a||a.setCustomAttribute("jwt.issued",R.issued),null===(u=window.newrelic)||void 0===u||u.setCustomAttribute("jwt.expiredISO",ho(R.exp)),null===(s=window.newrelic)||void 0===s||s.setCustomAttribute("jwt.issuedISO",ho(R.issued)))},U=function(e){return s(e).then((function(){return L(e)})).then((function(){return e}))},x=function(e){var t,n;return void 0===e&&(e={}),n=T=e,N=Object.keys(n||{}).length>0,e.hasOwnProperty("UserCountryCode")&&(null===(t=window.newrelic)||void 0===t||t.setCustomAttribute("billingCountry",e.UserCountryCode.toLowerCase())),T},P=function(e){return lo(i(),e,p,h,g)},F=function(){return Boolean(R)},V=function(e){return e.exp*po-3e5-(Date.now()+(y()||0))},j=function(e){return Date.now()+(y()||0)<e.issued*po},z=function e(t){var r=(void 0===t?{}:t).force,i=void 0!==r&&r;return u().then((function(t){if(t){var r=Xt(t),a=V(r);o&&console.warn("\n 'authTokenRefreshUrl' param of 'createUserModule' will be deprecated,\n Use 'getApiUrl: startupModule.getApiUrl' instead.\n Refer to: BOOT-701\n ");var u=v?v("RefreshAccessToken","v5"):null==o?void 0:o();if(!u)throw new Error("\n RefreshAccessToken url is missing,\n Check getApiUrl, you can get it from startup module.\n ");return Promise.resolve().then(m).then((function(e){var n=j(r)||i||e||a<0;return e&&E(),n?Qt(t,u,f(),d(),p,h,g):t})).then(U).then((function(t){var r=Xt(t),o=V(r);return n&&window.clearTimeout(n),(j(r)||o>=2147483647||o<=0||o!=o)&&(o=36e5),n=window.setTimeout(e,o),t})).then(P).then(x).then((function(){}))}}))},K=function(e){I=e,window.localStorage.setItem(D,e),S=I?Xt(I):null},G=!1;return{run:function(){var e;(function(e){return function(e){var t;return function(e,t,n){var r,o;return!!(t&&e&&n)&&((null===(r=so[e])||void 0===r?void 0:r[t]).indexOf(n)>-1||(null===(o=so[e])||void 0===o?void 0:o[t]).indexOf("*")>-1)}("cff_anonymous_playback",A,null===(t=C(e))||void 0===t?void 0:t.toUpperCase())}(e)&&function(e){var t,n=window.localStorage.getItem(D),r=Math.floor(Date.now()/1e3);if(!n)return!0;var o=Xt(n);return!(null==o?void 0:o.exp)||(null===(t=null==o?void 0:o.contentCountry)||void 0===t?void 0:t.toLowerCase())!==e||o.exp-r<3600}(e)&&!window.localStorage.getItem(O)&&!G})(null===(e=w())||void 0===e?void 0:e.toLowerCase())&&M(r,void 0,void 0,(function(){var e,t,n,r;return B(this,(function(o){switch(o.label){case 0:G=!0,e={deviceId:d(),languageCode:b(),platform:"web",kountFingerPrint:d()},o.label=1;case 1:return o.trys.push([1,4,,5]),t=v?v("AnonymousToken","v1"):"",[4,p(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})];case 2:return[4,o.sent().json()];case 3:return n=o.sent(),K(n.token),[3,5];case 4:return r=o.sent(),console.error("[BOOTSTRAP] Anonymous Token Generation Error",String(r)),[3,5];case 5:return[2]}}))})),z()},refreshExistingTokenAndUpdateProfile:z,getProfile:function(){return T},setProfile:x,getUserLanguage:function(){return T.UserLanguageLocaleKey},getSupportedLanguages:function(){return T.SupportedLanguages},isProfileCached:function(){return N},getToken:function(){return k},getAnonymousToken:function(){return I},setAnonymousToken:K,getDecodedJWT:function(){return R},setToken:function(e){if(e===k)return Promise.resolve();if(e)return U(e).then(P).then(x).then((function(){}));T={},N=!1;var t=k;return L(""),c().then((function(){if(t)return function(e,t,n,r,o,i){return r(e,{method:"POST",headers:Zt(t,o,i),body:JSON.stringify({DeviceId:n})}).then((function(e){if(!e.ok)throw Y.createEraroError("Logout responded not okay",Y.eraroCodesMap.category.UserProfileService,Y.eraroCodesMap.code.GenericError,String(e.status))}),(function(e){throw Y.createEraroError("Logout attempt request failure",Y.eraroCodesMap.category.UserProfileService,Y.eraroCodesMap.code.GenericError,Y.eraroCodesMap.internal.NetworkError,e)}))}(a(),t,d(),p,h,g).then(l)})).catch(l)},isAuthorized:F,isActive:function(e){return void 0===e&&(e=_),F()&&e.includes((null==R?void 0:R.userstatus)||"")},isVip:function(){return F()&&(null==R?void 0:R.vip)||!1},getSignUpCountry:function(){return T.UserCountryCode||""},getCountry:function(){var e;return(null==R?void 0:R.country)||(null===(e=null==S?void 0:S.country)||void 0===e?void 0:e.toLowerCase())||""},getHomeCurrency:function(){return Y.boot.config.countryCurrencyCodes[(null==R?void 0:R.homeCountry)||""]||""},getContentCountry:function(){var e;return(null==R?void 0:R.contentCountry)||(null===(e=null==S?void 0:S.contentCountry)||void 0===e?void 0:e.toLowerCase())||""},getUserStatus:function(){return(null==R?void 0:R.userstatus)||""},getUserType:function(){return(null==R?void 0:R.userType)||NaN},getValidatedToken:function(){if(!k)throw new Error("Cached user token is missing.");var e=Xt(k);if(Math.floor(e.exp/1e3)-Math.floor(Date.now()/1e3)>300)return Promise.resolve(k);var t=v?v("RefreshAccessToken","v5"):"";if(!t)throw new Error("RefreshAccessToken url is missing,\n Check getApiUrl, you can get it from startup module.");return Qt(k,t,f(),d(),p,h,g)},fetchProfile:function(){return F()&&!N?u().then((function(e){if(e)return P(e).then(x).then((function(){return N}))})):Promise.resolve(void 0)}}}var vo=function(){return Promise.resolve(null)},yo="moon",mo=function(e,t,r){if(t&&e&&r){var o="partnerToken",i=localStorage.getItem(o);if(i){var a=Xt(i);if(a&&a.sub===r&&Date.now()<1e3*a.exp)return void(n.g.PARTNER_TOKEN=i)}return fetch(e,{method:"POST",headers:{Authorization:"Bearer "+t},body:JSON.stringify({})}).then((function(e){return e.json()})).then((function(e){e&&(n.g.PARTNER_TOKEN=e.token,localStorage.setItem(o,e.token))})).catch((function(e){return console.log("[PARTNER_TOKEN] Error getting the partner token",String(e))}))}};e.ANONYMOUS_TOKEN_LSKEY=D,e.AUTH_TOKEN=C,e.AUTH_TOKEN_LSKEY=O,e.BACK_TO_APP_CALLBACK=3e3,e.CHECK_AND_REFRESH=T,e.LOGIN_SUCCESS=I,e.LOGOUT_KEYWORD=A,e.NATIVE_APP_IDENTIFIER=g,e.NATIVE_SESSION=U,e.NATIVE_SESSION_COOKIE_EXPIRY=5,e.REFRESH_TOKEN_ERRORS=R,e.REFRESH_TOKEN_PUBBY_ROOM=S,e.RTL_LANGUAGES=L,e.SSO_TOKEN_KEY=N,e.TEMP_AUTH_TOKEN=_,e.TEMP_NATIVE_TOKEN=y,e.TOKEN_EXP_LIMIT=300,e.USER_SIGNOUT_REALTIME=k,e.chapterNames=a,e.createMainModules=function(e,t){var n=t.__HACK__languageStorage,r=t.configurationJSON,o=t.manufacturer,i=t.asyncStorage,u=t.targetVersion,s=t.gtmContainerId,l=t.getLanguages,f=t.onReady,d=t.fetchDeviceId,p=t.devModeIndicatorVariant,g=t.authChapterName,v=t.maxSplashScreenVisibilityTime,m=t.selectorsExcludedFromCleaning,E=t.splashScreenBehaviour,D=t.applicationType,O=t.handleFeEvent,x=t.getAdvertisingDeviceId,P=t.fetchPartnerAccessCode,j=t.getPlayerTarget,z=t.launchURL,K=t.exitApp,G=t.restartApp,H=t.textToSpeechAPI,W=t.closedCaptionsAPI;t.optimizelyDatafileURL;var Z,X=t.featurevisorDatafileURL,Q=void 0!==e.performance&&["now","mark","measure"].every((function(t){return t in e.performance})),$=!1,ee={},te="",ne=ln(e);Q&&e.performance.mark("bootstrap:start");var re=r.environment===c.PRODUCTION,oe=Y.generateSessionId(),ie=Y.createNewRelicTracer({useConsole:!re,tracerName:"boot.launch",sessionId:oe,now:Q?function(){return e.performance.now()}:function(){return Date.now()}}),ue=function(e){var t=!1,n=!1;return{isEnabled:function(){if(!t)throw new Error("[Bootstrap] Bad init: devMode is not known yet!");return n},readFromStorage:function(){return e.getItem(hn).then((function(e){t=!0,n="true"===e}))},update:function(t){return n=t,e.setItem(hn,String(t))}}}(i),le=ie.trace("all");document.addEventListener("bootstrapInitialized",(function(){var t,n,r,o=null===(t=Re.getStartupDataCountry())||void 0===t?void 0:t.toUpperCase(),i=null!==(r=null===(n=null==e?void 0:e.dazn)||void 0===n?void 0:n.language)&&void 0!==r?r:null==e?void 0:e.localStorage.getItem("UI.language"),a=function(){try{var e=Ie.getVariableStringAnonymous("f_ar_parental_tools_bet","jsondata");return e&&JSON.parse(e)}catch(e){return{}}}();if(a){var u,s,c=a["".concat(i,"-").concat(o)];c&&(u={name:"description",content:c},(s=document.createElement("meta")).setAttribute("class","protected"),u&&Object.keys(u).forEach((function(e){s.setAttribute(e,u[e])})),document.head.appendChild(s))}}));var fe=function(){var t,n;if(le(),Q){e.performance.mark("bootstrap:end"),e.performance.measure("bootstrap","bootstrap:start","bootstrap:end");var r=null===(t=e.performance.getEntriesByName("bootstrap"))||void 0===t?void 0:t.pop(),o=null===(n=e.performance.getEntriesByName("bootstrap:end"))||void 0===n?void 0:n.pop();r&&o&&(console.info("✅ Bootstrap init: ".concat(r.duration,"ms")),console.info("✅ App launch: ".concat(o.startTime,"ms")));var i=new CustomEvent("bootstrapInitialized");document.dispatchEvent(i)}},de=ie.trace("init"),pe=r.target;ie.addRelease("bootstrap",ce),ie.addRelease("target","".concat(pe,"_").concat(u)),ie.extendCustomAttributes({target:pe,"version.bootstrap":ce,"version.target":u});var he,ge,ve=ie.wrapAsyncFn("onReady",f)(),ye=(he=r.safeMode,ge=null,{readSafeModeFlag:function(e){var t,n;return ge=null!==(t=e("f_safe_mode_gcp"))&&void 0!==t&&t?null!==(n=e("f_safe_mode_firedrill"))&&void 0!==n&&n?{V3:he.V3.GCPFireDrill,V4:he.V4.GCPFireDrill}:{V3:he.V3.GCP,V4:he.V4.GCP}:{V3:he.V3.AWS,V4:he.V4.AWS}},getSafeModeConfig:function(){if(null===ge)throw new Error("[Bootstrap] Bad init: feature flag is not read yet ");return ge}}),me=ye.getSafeModeConfig,Ee=ye.readSafeModeFlag,_e=function(){return Y.getChapterName(Me.getCurrentChapter())},be=function(e){var t=e.countries,n=e.defaultAnonymousChapters,r=e.resourcesBaseUrl,o=e.features,i=e.resourceStringLinkOverrides,a=e.target,u=e.environmentGroup,s=e.chapters,c=e.UILanguageKey,l=e.tokenStorageKey,f=e.globalNamespaceKey,d=e.rootAuthorizedChapter,p=e.unauthorizedChapter,h=e.loginChapter,g=e.onLogoutChapter,v=e.environment,y=function(e,t,n,r,o){var i={rawChaptersData:e,rootAuthorized:t,unauthorizedChapter:n,loginChapter:r,onLogoutChapter:o,defaultAnonymousChapters:{}},a=function(e){return Y.isChapterName(e)&&i.rawChaptersData[e]||{}};return{rewriteUrlLocale:function(e){return a(e).rewriteUrlLocale||!1},rewriteUrlLocaleOverrideMap:function(e){return a(e).rewriteUrlLocaleOverrideMap},hasLanguageInUrl:function(e){return a(e).isLanguageInTheUrl||!1},getsCountryFromUrl:function(e){return a(e).getsCountryFromUrl||!1},usePortability:function(e){return a(e).usePortability||!1},useSignUpCountry:function(e){return a(e).useSignUpCountry||!1},homePage:function(e){return a(e).homePage||e},linkKey:function(e){return a(e).linkKey},chapterList:function(){return Y.keysOf(i.rawChaptersData)},allowedUserStatuses:function(e){return a(e).allowedUserStatuses},restrictToVip:function(e){return a(e).restrictToVip},get authorizedMap(){return Gt(i.rawChaptersData).canLoadIfSignedInChapters},get unauthorizedMap(){return Gt(i.rawChaptersData).canLoadIfSignedOutChapters},get combinedChapterMap(){var e=Gt(i.rawChaptersData),t=e.canLoadIfSignedInChapters,n=e.canLoadIfSignedOutChapters;return F(F({},t),n)},get rootAuthorized(){return i.rootAuthorized},getUnauthorized:function(e){return i.defaultAnonymousChapters[e]||i.unauthorizedChapter},get loginChapter(){return i.loginChapter},get onLogoutChapter(){return i.onLogoutChapter},applyRuntimeConfiguration:function(e){i.defaultAnonymousChapters=Y.keysOf(e).reduce((function(t,n){var r=e[n];return r&&(t[n]=function(e){return e in Kt?Kt[e]:e}(r)),t}),{})}}}(s,d,p,h,g);return y.applyRuntimeConfiguration(n),{UILanguageKey:c,tokenStorageKey:l,globalNamespaceKey:f,environment:v,environmentGroup:u,target:a,resourcesBaseUrl:r,features:o,resourceStringLinkOverrides:i,chapters:y,countries:t,appUrlPrefix:"web"===a?"":"/app/".concat(a)}}(r),Ae=Mn({asyncStorage:{load:i.getItem,save:i.setItem},deviceDetails:{platform:r.target,manufacturer:o},config:{bootstrapVersion:ce,targetVersion:u,environment:r.environment,environmentGroup:r.environmentGroup,sessionId:oe},getCurrentUrl:function(){return e.location.href},fetchDeviceId:null!=d?d:void 0}),we=function(){e.sessionStorage&&e.sessionStorage.clear(),e.dazn.auth.token="",e.location.href="/welcome"},Ce=Ae.checkNativeAppStatus(),Te=Ce.isNative,ke=Ce.nativeApp,Ie=function(e){var t,n=e.currentEnvironment,r=e.environmentGroup,o=e.getViewerId,i=e.getDeviceId,a=e.getAccountStatus,u=e.getBrowser,s=e.getBrowserVersion,l=e.getUserCountryCode,f=e.getBillingCountry,d=e.getGeolocatedCountry,p=e.getDeviceType,h=e.getUserLanguage,g=e.getOs,v=e.getChapterName,y=e.getFullURL,m=e.getPlatform,E=e.getUserConsent,_=e.getIsDevModeEnabled,b=e.getUserNflStatus,A=e.asyncStorage,w=e.getNativeAppName,C=null,T={},k=[],I={},D="N/A",O=n===c.PRODUCTION,R=!1,S=function(){return E().then((function(e){t={PerformanceConsent:e.performance,FunctionalConsent:e.functional,TargetingConsent:e.targeting,GoogleAdsStorageConsent:e.googleAdsStorage,PersonalisedAdsConsent:e.personalisedAds}}))},N=function(){var e,o,i,c,E,A,C,T,k=y(),O=(C=k,(T=Ln.exec(C.toLowerCase()))?{language:T[1],country:T[2]}:{}),R=O.language,N=void 0===R?"":R,L=O.country,U=void 0===L?"":L;S();var x=null===(o=null===(e=window.dazn)||void 0===e?void 0:e.auth)||void 0===o?void 0:o.isVip(),P={AccountStatus:a(),Browser:u(),BrowserVersion:s(),UserCountryCode:null===(i=l())||void 0===i?void 0:i.toLowerCase(),Type:p(),UserLanguageLocaleKey:h(),Os:g(),Chapter:v(),OptimizelyEnvironment:n,FullURL:k,URLCountry:U.toLowerCase(),URLLanguage:N,Platform:m(),BillingCountry:null===(c=f())||void 0===c?void 0:c.toLowerCase(),GeolocatedCountry:null===(E=d())||void 0===E?void 0:E.toLowerCase(),DevMode:_()&&!x,ReferralURL:null!==(A=null===document||void 0===document?void 0:document.referrer)&&void 0!==A?A:"",EnvironmentGroup:r,ProductStatusNFL:b(),NativeAppName:w(),IsVipUser:x};return F(F(F({},P),function(e,t){return e?JSON.parse(JSON.stringify({FirmwareVersion:e.firmwareVersion,Manufacturer:t,DeviceModel:e.model,DeviceBrand:e.brand,DeviceType:e.type,OsName:e.osName,OsVersion:e.osVersion})):{}}(I,D)),t)},L=function(e,t){var n,r,o,i=N();return t&&(n=t,r=i,(o=Object.keys(n).filter((function(e){return e in r}))).length>0&&console.warn("[Bootstrap] You are trying to override default attributes: ".concat(o.join(", ")))),F(F(F({},t),i),e)},U=function(){var e=i(),t=o();return{optimizelyId:e,optimizelyAttrs:{},featurevisorAttrs:F({deviceId:e},t&&{userId:t})}},x=function(){var e=o(),t=i();return function(e){e||console.warn("[Bootstrap] getViewerId was called, but user is not authorized.")}(e),{optimizelyId:e,optimizelyAttrs:{ViewerID:e},featurevisorAttrs:{userId:e,deviceId:t}}},P=function(e){var t,n,r;if(C){var o=C.getFeature(e.featName);if(o){var i=L(e.getUserData().featurevisorAttrs,e.customAttrs);return n=o,r=i,C&&!n.key.startsWith("e_")&&n.variations&&C.activate(n.key,r),null!==(t=e.callFeaturevisor({client:C,attrs:i}))&&void 0!==t?t:null}}return R&&window.newrelic.addPageAction("OptimizelyFallback",{featureKey:e.featName,chapter:v(),platform:m()}),null},M=function(e){return function(t,n){return P({featName:t,customAttrs:n,getUserData:e,callFeaturevisor:function(e){return e.client.getVariation(t,e.attrs)}})}},B=function(e){return function(t,n){return P({featName:t,customAttrs:n,getUserData:e,callFeaturevisor:function(e){return e.client.isEnabled(t,e.attrs)}})}},V=function(e){return function(e,t,n){console.warn("DEPRECATED! Use fe-events for tracking purpose")}},j=function(e){return function(t,n){return P({featName:t,customAttrs:n,getUserData:e,callFeaturevisor:function(e){return e.client.activate(t,e.attrs)}})}},z=function(e){return function(t,n,r){return P({featName:t,customAttrs:r,getUserData:e,callFeaturevisor:function(e){return e.client.getVariableBoolean(t,n,e.attrs)}})}},K=function(e){return function(t,n,r){return P({featName:t,customAttrs:r,getUserData:e,callFeaturevisor:function(e){return e.client.getVariableInteger(t,n,e.attrs)}})}},G=function(e){return function(t,n,r){return P({featName:t,customAttrs:r,getUserData:e,callFeaturevisor:function(e){return e.client.getVariableString(t,n,e.attrs)}})}},q=function(e){return function(t,n,r){return P({featName:t,customAttrs:r,getUserData:e,callFeaturevisor:function(e){return e.client.getVariableObject(t,n,e.attrs)}})}};return{getVariationAnonymous:M(U),getVariationAuthenticated:M(x),activateAnonymous:j(U),activateAuthenticated:j(x),trackAnonymous:V(),trackAuthenticated:V(),isEnabledAnonymous:B(U),isEnabledAuthenticated:B(x),getVariableBooleanAnonymous:z(U),getVariableBooleanAuthenticated:z(x),getVariableIntegerAnonymous:K(U),getVariableIntegerAuthenticated:K(x),getVariableStringAnonymous:G(U),getVariableStringAuthenticated:G(x),getVariableObjectAnonymous:q(U),getVariableObjectAuthenticated:q(x),trackFeaturevisorErrors:function(){if(C)return C.getVariable("f_migration","trackFeaturevisorErrors",L(U().featurevisorAttrs,{}))},setForcedVariationAnonymous:function(e,t){return!!C&&(void 0===T[e]?T[e]={enabled:!0,variation:t}:(T[e].enabled=!0,T[e].variation=t),C.setStickyFeatures(T),!0)},getForcedVariationAnonymous:function(e){if(C)return C.getVariation(e,{})},setForcedVariationAuthenticated:function(e,t){return!!C&&(void 0===T[e]?T[e]={enabled:!0,variation:t}:(T[e].enabled=!0,T[e].variation=t),C.setStickyFeatures(T),!0)},getForcedVariationAuthenticated:function(e){if(C)return C.getVariation(e,{})},addNotificationListener:function(e,t){if(!C)return 0;var n=i();return k.push({id:n,callback:t,eventName:e}),C.on(e,t),n},removeNotificationListener:function(e){var t=k.find((function(t){return t.id===e}));if(!t)return!1;var n=t.eventName,r=t.callback;return null==C||C.off(n,r),k=k.filter((function(t){return t.id!==e})),!0},run:function(e,t,n){var r;if(C=e){var o=L(U().featurevisorAttrs,{});R=null!==(r=C.getVariableBoolean("f_migration","trackOptimizelyFallback",o))&&void 0!==r&&r}return S().then((function(){I=t,D=n}))},setOptimizelyLogLevel:function(e){return console.log("SET OPTIMIZELY"),Promise.resolve()},setFeaturevisorLogLevelsUpdated:function(e){return function(e){return Nn({asyncStorage:e.asyncStorage,level:e.levels,isDevMode:e.isDevMode,isProd:e.isProd,type:"featurevisor"})}({asyncStorage:A,levels:e,isDevMode:_(),isProd:O}).then((function(e){e&&e.length>0&&(null==C||C.setLogLevels(e))}))},combineFinalAttrs:L,getDefaultAttributes:N}}({currentEnvironment:r.environment,environmentGroup:Ae.getEnvironmentGroup(),getViewerId:function(){var e;return null!==(e=Pe.getProfile().ViewerId)&&void 0!==e?e:"N/A"},getDeviceId:Ae.getDeviceId,getDeviceType:function(){var e,t;return null!==(t=null===(e=Re.getStartupData())||void 0===e?void 0:e.UserDevice.Type)&&void 0!==t?t:"unknown"},getPlatform:Ae.getPlatform,getAccountStatus:function(){var e;return null!==(e=Pe.getUserStatus())&&void 0!==e?e:"unknown"},getBrowser:function(){var e,t;return null!==(t=null===(e=Re.getStartupData())||void 0===e?void 0:e.UserDevice.Browser)&&void 0!==t?t:"unknown"},getBrowserVersion:function(){var e,t;return null!==(t=null===(e=Re.getStartupData())||void 0===e?void 0:e.UserDevice.BrowserVersion)&&void 0!==t?t:""},getUserCountryCode:function(){var e;return Pe.isAuthorized()?Pe.getContentCountry():null!==(e=Re.getStartupDataCountry())&&void 0!==e?e:""},getUserLanguage:function(){return Me.getLanguage()},getBillingCountry:function(){return Pe.getSignUpCountry().toLowerCase()},getGeolocatedCountry:function(){var e,t,n;return null!==(n=null===(t=null===(e=Re.getStartupData())||void 0===e?void 0:e.Region)||void 0===t?void 0:t.GeolocatedCountry)&&void 0!==n?n:""},getOs:function(){var e,t;return null!==(t=null===(e=Re.getStartupData())||void 0===e?void 0:e.UserDevice.Os)&&void 0!==t?t:"unknown"},getChapterName:_e,getFullURL:function(){return e.location.href},getUserConsent:ne.getUserConsent,getIsDevModeEnabled:ue.isEnabled,getUserNflStatus:function(){var e,t,n;return null!==(n=null===(t=null===(e=Pe.getDecodedJWT())||void 0===e?void 0:e.productStatus)||void 0===t?void 0:t.NFL)&&void 0!==n?n:""},asyncStorage:i,getNativeAppName:function(){return Te?ke:""}}),De=function(e){var t,n=e.getViewerId,r=e.getCountry,o=e.getCurrentChapterName,i=e.getCurrentChapterVersion,a=e.getUserType,u=e.getUserStatus,s=e.getAdvertisingDeviceId;return t=e.handleFeEvent,Dt.push(t),{sendLaunchEvent:function(e){var t=e.initialURL,n=e.platform,r=e.model,o=e.applicationType,i=e.version,a=e.environment,u=e.deviceId,c=e.launchParams,l=e.externalTrackingID;return s().then((function(e){var s;s={application:{type:o,version:i,environment:a,device:{model:r,platform:n}},clientId:u,userAgent:window.navigator.userAgent,initialUrl:t,launch:null!=c?c:{},idfa:null!=e?e:"",externalTrackingID:l},Rt(St,Lt,s,Nt)}))},sendErrorEvent:jt,sendChapterLoadEvent:function(){var e,t,s=o(),c=(null===(e=u())||void 0===e?void 0:e.toLowerCase())||"anonymous",l=zt[a()],f="anonymous"!==c?"loggedin":"notloggedin";t={chapter:s,chapterVersion:i()||"",country:r(),customerId:n()||"",user:{status:c,type:l,loginStatus:f}},Rt(Ut,Pt,t,xt)}}}({getViewerId:function(){return Pe.getProfile().ViewerId},handleFeEvent:O,getCurrentChapterName:_e,getCurrentChapterVersion:function(){var e=_e();return Ae.getVersions()[e]},getCountry:function(){var e,t,n;return{billingCountry:(null!==(e=Pe.getSignUpCountry())&&void 0!==e?e:"").toLowerCase(),geoCountry:null!==(t=Re.getStartupDataCountry())&&void 0!==t?t:"",contentCountry:Pe.isAuthorized()?Pe.getContentCountry():null!==(n=Re.getStartupDataCountry())&&void 0!==n?n:""}},getUserType:function(){return Pe.getUserType()},getUserStatus:function(){return Pe.getUserStatus()},getAdvertisingDeviceId:null!=x?x:vo}),Oe=function(e){var t=e.config,n=t.restrictedCountryChapterName,r=t.errorChapterName,o=t.authChapterName,i=e.metaData,a=i.setCurrentChapter,u=i.sendErrorEvent,s=e.getSafeModeConfig,c=e.fetch,l=e.getVariableIntegerAnonymous,f=function(){return M(void 0,void 0,void 0,(function(){var e,t,n,r,o,i,a,u,f,d,p,g,v,y,m;return B(this,(function(E){switch(E.label){case 0:return E.trys.push([0,5,,6]),e=s(),t=e.V3,n=e.V4,r=t.statusURL,o=t.source,i=n.statusURL,a=n.source,u=l("f_safe_mode_gcp","version"),d=wn[(f=null!==u&&u>=4)?a:o]||wn.AWS,p="GREEN",g="",f?[4,vn(c,i,d,h.V4)]:[3,2];case 1:return"RED"===(v=E.sent()).status&&(p="RED"),g=v.countryCode,[3,4];case 2:return[4,vn(c,r,d,h.V3)];case 3:"RED"===(y=E.sent()).status&&(p="RED"),g=y.countryCode,E.label=4;case 4:return[2,{countryCode:g,status:p,causedVersion:f?h.V4:h.V3}];case 5:return m=E.sent(),console.warn(m),[2,{countryCode:"",status:"",causedVersion:""}];case 6:return[2]}}))}))};return{captureException:gn,generateError:Y.createEraroError,errorMap:Y.eraroCodesMap,fetchSafeMode:f,handleError:function(e,t,i,c,l){return void 0===e&&(e=Y.eraroCodesMap.category.General),void 0===t&&(t=Y.eraroCodesMap.code.GenericError),void 0===i&&(i=Y.eraroCodesMap.internal.GenericError),function(e){var t,n=e.loadChapter,r=e.restrictedCountryChapterName,o=e.errorChapterName,i=e.currentChapterName,a=e.error,u=e.sendErrorEvent,s=e.authChapterName,c=e.defaultCategory,l=e.defaultCode,f=e.defaultInternal,d=e.fetchSafeMode,p=e.getSafeModeConfig,h=function(){return M(void 0,void 0,void 0,(function(){var e,t,n,r;return B(this,(function(o){switch(o.label){case 0:e=p().V3.homePageURL,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,d()];case 2:return t=o.sent(),n={isSafeModeOn:"GREEN"!==t.status,causedVersion:t.causedVersion},r="V4"===n.causedVersion?p().V4.homePageURL:p().V3.homePageURL,yn({error:a,sendErrorEvent:u,safeModeHomepageURL:r,safeModeOn:n.isSafeModeOn}),[3,4];case 3:return o.sent(),yn({error:a,sendErrorEvent:u,safeModeHomepageURL:e,safeModeOn:!1}),[3,4];case 4:return[2]}}))}))};if(Y.isEraroError(a)){if(function(e){return e.code===Y.eraroCodesMap.code.UnathorizedRefreshTokenError||function(e){var t=Y.eraroCodesMap.internal,n=t.BadRequest,r=t.Unauthenticated,o=t.NotFound;return e.category===Y.eraroCodesMap.category.UserProfileService&&[n,r,o].includes(e.internal)}(e)}(a))return n({chapterName:s,chapterData:{},chapterPath:""});if(null===(t=window.newrelic)||void 0===t||t.noticeError("".concat(a.category,"-").concat(a.code,"-").concat(a.internal,": ").concat(a.message)),function(e){return e.code===Y.eraroCodesMap.code.RestrictedCountry||e.category===Y.eraroCodesMap.category.UserProfileService&&e.internal===Y.eraroCodesMap.internal.AccessDenied}(a))return n({chapterName:r,chapterData:{loadGlobalLandingPage:!0}});var g=Y.eraroCodesMap.category.UserProfileService,v=void 0,y=void 0;if(Y.eraroCodesMap.category.UserProfileService===a.category&&(function(e){return e.category===Y.eraroCodesMap.category.UserProfileService&&e.internal===Y.eraroCodesMap.internal.TooManyRequests}(a)?(v=Y.eraroCodesMap.code.ServiceTooManyAttemps,y=Y.eraroCodesMap.internal.TooManyRequests):function(e){return e.category===Y.eraroCodesMap.category.UserProfileService&&e.internal===Y.eraroCodesMap.internal.ServerError}(a)&&(v=Y.eraroCodesMap.code.GenericError,y=Y.eraroCodesMap.internal.ServerError),v&&y))return mn(n,g,v,y,o,i,a);if(function(e){var t=e.category,n=e.code,r=e.internal;return t===Y.eraroCodesMap.category.StartupService&&n===Y.eraroCodesMap.code.AppLoadError&&[Y.eraroCodesMap.internal.Ignore,Y.eraroCodesMap.internal.NetworkError,Y.eraroCodesMap.internal.ServerError].includes(r)}(a))return h();if(function(e){var t=e.category,n=e.code,r=e.internal;return t===Y.eraroCodesMap.category.ChapterLoading&&n===Y.eraroCodesMap.code.UnableToLoadChapter&&r===Y.eraroCodesMap.internal.Ignore}(a))return Promise.resolve()}if(i!==o)try{return mn(n,c,l,f,o,i,a)}catch(e){}return h()}({loadChapter:a,restrictedCountryChapterName:n,errorChapterName:r,currentChapterName:c,error:l,sendErrorEvent:u,authChapterName:o,defaultCategory:e,defaultCode:t,defaultInternal:i,fetchSafeMode:f,getSafeModeConfig:s})}}}({config:{restrictedCountryChapterName:a.LANDING_PAGE,errorChapterName:a.ERROR,authChapterName:g},metaData:{setCurrentChapter:function(e){return Me.setCurrentChapter(e)},sendErrorEvent:De.sendErrorEvent},getSafeModeConfig:me,fetch:e.fetch,getVariableIntegerAnonymous:Ie.getVariableIntegerAnonymous}),Re=uo({deviceDetails:{getPlatform:Ae.getPlatform,getManufacturer:Ae.getManufacturer,getGuid:Ae.getGuid},config:{sessionId:oe,languages:l(),environment:r.environment},navigation:{getCurrentPath:function(){return e.location.pathname}},asyncStorage:i}),Se=function(e,t,n,r,o){void 0===o&&(o="randomABPoint");var i,a,u={};return{run:function(){return e(o).then((function(e){return i=Number(String(e)),Number.isNaN(i)&&(i=Math.random(),t(o,String(i))),i})).then((function(e){var t,r;null===(t=window.newrelic)||void 0===t||t.setCustomAttribute("randomABPoint",e),a=null!==(r=n())&&void 0!==r?r:{},u=Object.keys(a).reduce((function(t,n){return t[n]=Rn(e,a[n]),t}),{})}))},getExperiments:function(){return u},getUserExperiment:function(e){return function(e,t){if(e){if(t&&void 0!==t.from&&void 0!==t.to){var n=On(e);return n>=t.from&&n<t.to}}else console.warn("[Bootstrap] getUserExperiment(): Please, login first")}(r(),a[e])},getUserExperimentNumber:function(){return function(e){var t=e.viewerId,n=e.randomNumber;return t?On(String(t)):n}({viewerId:r(),randomNumber:i})},getAnonymousExperiment:function(e){return Rn(i,a[e])}}}(i.getItem,i.setItem,Re.getAbTests,(function(){return Pe.getProfile().ViewerId})),Ne=function(){var t,n=Vr(e.location.pathname),r=(null===(t=null==e?void 0:e.dazn)||void 0===t?void 0:t.language)||n||"en";return L.indexOf(r.toLowerCase())>-1},Le=function(e){return be.countries.native.includes(e)},Ue=function(e){return Le(e)?e:yo},xe=function(e){return function(e){return["bh","om","qa","dz","sa","ae","kw","iq","jo","lb","ps","ly","eg","ma","tn","ye"].includes(e)}(e)?"mena":Le(e)?e:yo},Pe=go({logOutUrl:function(){return Re.getApiUrl("SignOut","v1")},userProfileUrl:function(){return Re.getApiUrl("UserProfile","v1")},load:function(){return M(void 0,void 0,void 0,(function(){var t,n,o,a,u,s,c,l,f,d,p,h,g,v,m,E,b,w;return B(this,(function(C){switch(C.label){case 0:t=new URLSearchParams(null===(d=e.location)||void 0===d?void 0:d.search),n=t.get(y),o=t.get(_),a=null===(v=null===(g=null===(h=null===(p=Re.getStartupData().ServiceDictionary)||void 0===p?void 0:p.DaznAccessToken)||void 0===h?void 0:h.Versions)||void 0===g?void 0:g.v1)||void 0===v?void 0:v.ServicePath,u=t.get(N),s=null===(w=null===(b=null===(E=null===(m=Re.getStartupData().ServiceDictionary)||void 0===m?void 0:m.TemporaryTokenExchange)||void 0===E?void 0:E.Versions)||void 0===b?void 0:b.v1)||void 0===w?void 0:w.ServicePath,C.label=1;case 1:return C.trys.push([1,6,,7]),a&&n?[4,Ae.getNativeTempToken(a)]:[3,3];case 2:c=C.sent(),C.label=3;case 3:return s&&o&&o.toLowerCase()!==A?[4,Ae.getTempAuthToken(s)]:[3,5];case 4:c=C.sent(),C.label=5;case 5:return[3,7];case 6:return l=C.sent(),console.error(l),[3,7];case 7:return o&&(null==o?void 0:o.toLowerCase())===A?(i.removeItem(r.tokenStorageKey),[2,null]):(f=u||c)?[3,9]:[4,i.getItem(r.tokenStorageKey)];case 8:f=C.sent(),C.label=9;case 9:return[2,f]}}))}))},remove:function(){return i.removeItem(r.tokenStorageKey)},save:function(e){return i.setItem(r.tokenStorageKey,e)},isForceReload:function(){return i.getItem("daznForceRefreshToken")},removeForceReloadFlag:function(){return i.removeItem("daznForceRefreshToken")},deviceId:Ae.getDeviceId,sessionId:Ae.getSessionId,onTokenReset:function(){Me.setCurrentChapter(be.chapters.onLogoutChapter)},fetch:e.fetch,getGuid:Ae.getGuid,getDevMode:ue.isEnabled,getApiUrl:Re.getApiUrl,getServerTimeOffset:Re.getServerTimeOffset,defaultActiveUserTypes:r.defaultActiveUserTypes,getLanguage:function(){return Me.getLanguage()},environment:r.environment,geoCountry:Re.getStartupDataCountry,getNativeCountryOrMoonOrMena:xe}),Fe=function(e){var t,n,r=e.isEnabledAnonymous,o=e.getVariableStringAnonymous,i=[],a=function(e){t&&window.FS("setIdentity",{uid:null==e?void 0:e.user,properties:{displayName:null==e?void 0:e.user,geoCountry:null==e?void 0:e.country,contentCountry:null==e?void 0:e.contentCountry,homeCountry:null==e?void 0:e.homeCountry,viewerId:null==e?void 0:e.viewerId}}),n&&Vn.setUserId(null==e?void 0:e.user)};return{run:function(){var e,u,s,c,l;t=r(Jn);var f=null!==(e=o(Jn,"host"))&&void 0!==e?e:"eu1.fullstory.com",d=null!==(u=o(Jn,"scriptUrl"))&&void 0!==u?u:"edge.eu1.fullstory.com/s/fs.js",p=null!==(s=o(Jn,"orgId"))&&void 0!==s?s:"o-26WE-eu1";try{i=JSON.parse(null!==(c=o(Jn,"excludedEventIds"))&&void 0!==c?c:"")}catch(e){}t&&(Ht(function(e,t,n){return"\n window['_fs_host'] = '".concat(e,"';\n window['_fs_script'] = '").concat(t,"';\n window['_fs_org'] = '").concat(n,"';\n window['_fs_namespace'] = 'FS';\n ")}(f,d,p),{},!0),Ht('!function(m,n,e,t,l,o,g,y){var s,f,a=function(h){\n return!(h in m)||(m.console&&m.console.log&&m.console.log(\'FullStory namespace conflict. Please set window["_fs_namespace"].\'),!1)}(e)\n ;function p(b){var h,d=[];function j(){h&&(d.forEach((function(b){var d;try{d=b[h[0]]&&b[h[0]](h[1])}catch(h){return void(b[3]&&b[3](h))}\n d&&d.then?d.then(b[2],b[3]):b[2]&&b[2](d)})),d.length=0)}function r(b){return function(d){h||(h=[b,d],j())}}return b(r(0),r(1)),{\n then:function(b,h){return p((function(r,i){d.push([b,h,r,i]),j()}))}}}a&&(g=m[e]=function(){var b=function(b,d,j,r){function i(i,c){\n h(b,d,j,i,c,r)}r=r||2;var c,u=/Async$/;return u.test(b)?(b=b.replace(u,""),"function"==typeof Promise?new Promise(i):p(i)):h(b,d,j,c,c,r)}\n ;function h(h,d,j,r,i,c){return b._api?b._api(h,d,j,r,i,c):(b.q&&b.q.push([h,d,j,r,i,c]),null)}return b.q=[],b}(),y=function(b){function h(h){\n "function"==typeof h[4]&&h[4](new Error(b))}var d=g.q;if(d){for(var j=0;j<d.length;j++)h(d[j]);d.length=0,d.push=h}},function(){\n (o=n.createElement(t)).async=!0,o.crossOrigin="anonymous",o.src="https://"+l,o.onerror=function(){y("Error loading "+l)}\n ;var b=n.getElementsByTagName(t)[0];b&&b.parentNode?b.parentNode.insertBefore(o,b):n.head.appendChild(o)}(),function(){function b(){}\n function h(b,h,d){g(b,h,d,1)}function d(b,d,j){h("setProperties",{type:b,properties:d},j)}function j(b,h){d("user",b,h)}function r(b,h,d){j({\n uid:b},d),h&&j(h,d)}g.identify=r,g.setUserVars=j,g.identifyAccount=b,g.clearUserCookie=b,g.setVars=d,g.event=function(b,d,j){h("trackEvent",{\n name:b,properties:d},j)},g.anonymize=function(){r(!1)},g.shutdown=function(){h("shutdown")},g.restart=function(){h("restart")},\n g.log=function(b,d){h("log",{level:b,msg:d})},g.consent=function(b){h("setIdentity",{consent:!arguments.length||b})}}(),s="fetch",\n f="XMLHttpRequest",g._w={},g._w[f]=m[f],g._w[s]=m[s],m[s]&&(m[s]=function(){return g._w[s].apply(this,arguments)}),g._v="2.0.0")\n }(window,document,window._fs_namespace,"script",window._fs_script);',{},!0)),n=r(Wn);var h=null!==(l=o(Wn,"customerKey"))&&void 0!==l?l:"4ae1981d8d1a370d08bf3d24f50f5baf47ef1b62";if(n)try{Vn.convivaAppTracker({appId:"WEB_BOOTSTRAP",convivaCustomerKey:h,appVersion:"1.0.0",contexts:{performanceTiming:!0},plugins:[Hn.PerformanceTimingPlugin(),Gn.ErrorTrackingPlugin(),zn.LinkClickTrackingPlugin()]}),Vn.trackPageView(),zn.enableLinkClickTracking(),zn.enableButtonClickTracking(),Gn.enableErrorTracking()}catch(e){}var g=window.dazn.auth.unstable_getDecodedJWT();setTimeout((function(){Boolean(g)&&a(g)}),1e3)},triggerFsEvent:function(e){return t&&e&&e.event&&-1===i.indexOf(e.event)&&window.FS("trackEvent",{name:null==e?void 0:e.event,properties:e}),Promise.resolve()},triggerIdentify:function(){a(window.dazn.auth.unstable_getDecodedJWT())}}}({isEnabledAnonymous:Ie.isEnabledAnonymous,getVariableStringAnonymous:Ie.getVariableStringAnonymous}),Me=jr({window:e,configuration:be,startupModule:Re,userModule:Pe,errorModule:Oe,initializationModule:Ae,features:{isEnabledAnonymousOptimizely:Ie.isEnabledAnonymous,getVariableStringAnonymousOptimizely:Ie.getVariableStringAnonymous},util:{getNativeCountryOrMoon:Ue,getNativeCountryOrMoonOrMena:xe,getResourceStringsEndpoint:function(){return Re.getApiUrl("ResourceStrings","v1")},selectorsExcludedFromCleaning:null!=m?m:[]},storageModule:n?{saveLanguage:function(){return Promise.resolve()},loadLanguage:function(){return Promise.resolve(null)}}:{saveLanguage:function(e){return i.setItem(r.UILanguageKey,e)},loadLanguage:function(){return i.getItem(r.UILanguageKey)}}}),Be=!1;Me.lifecycleEvents.onChapterDidLoad((function(){var t=Ae.getVersions(),n=_e(),r=Ue(Re.getStartupDataCountry()),o=t[n]||"unknown";ie.addRelease("chapter.".concat(n),"".concat(o," (").concat(pe,", ").concat(r,")")),De.sendChapterLoadEvent(),function(){var e,t=Pe.getToken(),n=null===(e=Pe.getDecodedJWT())||void 0===e?void 0:e.user;(t||n)&&(ae.isConfigured||ae.configure(Re.getStartupData().ServiceDictionary.Pubby),ae.auth(t),ae.subscribe(n,S,!1,(function(){var e=R.errorStatus,t=R.errorId,n=R.errorCategory;M(void 0,void 0,void 0,(function(){var r,o;return B(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,Pe.refreshExistingTokenAndUpdateProfile({force:!0})];case 1:return i.sent(),[3,3];case 2:return r=i.sent(),(o=r).category===n.REFRESH_TOKEN_SERVICE&&o.code===t.PLAYBACK_UNAUTHORIZED_RAT&&o.internal===e.UNAUTHORISED&&(Ie.isEnabledAuthenticated("f_ar_realtime_signout_popup")&&!Te?ze():we()),[3,3];case 3:return[2]}}))}))})))}(),Be||(e.addEventListener(I,(function(){mo(Re.getStartupData().ServiceDictionary.PartnerToken.Versions.v1.ServicePath,Pe.getToken(),Pe.getProfile().ViewerId)})),Be=!0),Fe.triggerIdentify()}),{persist:!0});var Ve=function(e){var t=e.lifecycle,n=e.currentChapter,r=e.scrollToTop,o=e.maxSplashScreenVisibilityTime;return{removeSplashScreen:ro,hideSplashScreen:oo,run:function(){var e=function(){return Array.from(document.querySelectorAll("body > .bootstrap-splash"))},i=!0,a=function(t){var n=V(e(),2)[1];if(n){if(n.style.display=t?"block":"none",t)return document.body.style.overflow="hidden",void r();document.body.style.overflow="visible"}};a(!1),t.onChapterWillLoad((function(){var t=n();"object"==b(t)&&(t=t.chapterName),"error"!==t?i||a(!0):e().map(ro)}),{persist:!0}),t.onChapterDidLoad((function(){var t=V(e(),1)[0];a(!1),o?setTimeout((function(){ro(t)}),o):(ro(t),i=!1)}),{persist:!0})}}}({lifecycle:Me.lifecycleEvents,scrollToTop:function(){e.scrollTo(0,0)},currentChapter:_e,maxSplashScreenVisibilityTime:v}),je="remove"===E?Ve.removeSplashScreen:Ve.hideSplashScreen,ze=function(){var t=function(e,t){return new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t})},n=function(e,t){return e.dispatchEvent(t)},r=document.getElementsByTagName("body")[0],o=e.dazn.resourceStringsData.Strings,i={header:o.web_signout_in_seconds_header,body:o.web_signout_in_seconds_body,description:o.web_signout_in_seconds_supportlink,close:o.web_signout_in_seconds_cta};r.insertAdjacentHTML("beforeend",function(e){return function(e,t,n){var r="".concat(""," position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display:flex; align-items:center; justify-content:center;\n background-color: rgba(0, 0, 0, 0.5);backdrop-filter: blur(7px);\n ");return'<div style="'.concat(r,"\" class='bootstrap-popup'>").concat(e,"<style>").concat(".container {\n width: 432px;\n height: 560px;\n border-radius: 16px;\n border: 1px;\n opacity: 0px;\n background: #0c161c;\n border: 1px solid #242d33;\n padding: 20px;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.container .close-container {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n}\n\n.container .close-container .close-icon {\n filter: invert(1);\n width: 24px;\n height: 24px;\n cursor: pointer;\n}\n\n.signout-frame {\n width: 180px;\n height: 160px;\n margin-top: 20px;\n}\n.header-msg {\n height: 48px;\n opacity: 0px;\n margin-bottom: 24px;\n color: #f9fafa;\n font-family: 'DAZN Trim';\n font-size: 24px;\n font-weight: 700;\n line-height: 28px;\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.body-msg {\n width: 356px;\n height: 48px;\n opacity: 0px;\n color: #f9fafa;\n font-family: 'DAZN Oscine';\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n text-align: center;\n margin-bottom: 40px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.support-link {\n width: 320px;\n height: 24px;\n opacity: 0px;\n margin-bottom: 32px;\n color: #9ea2a4;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: center;\n font-family: 'DAZN Oscine';\n}\n.support-link a {\n color: #70c8ff;\n text-decoration: none;\n}\n.close-button {\n display: flex;\n width: 192px;\n justify-content: center;\n align-items: center;\n border-radius: 4px;\n color: #f9fafa;\n background-color: #3d4549;\n cursor: pointer;\n padding: 14px 24px;\n}\n\n.close-button p {\n font-weight: 700;\n line-height: 24px;\n font-family: 'DAZNTrim';\n}\n\nbody[dir='rtl'] .signout-frame .frame {\n transform: scaleX(-1);\n}\n\nhtml[lang^='ja'] .header-msg {\n margin-top: 5px;\n margin-bottom: 37px;\n}\n\nhtml[lang^='ja'] .container {\n height: 533px;\n}\n\n@media (width <= 768px) {\n .bootstrap-popup {\n top: unset !important;\n }\n}\n","</style></div>").replace(/(\n | \s)/g,"")}(function(e,t){return'<div class="container">\n <div class="close-container">\n <img\n class="close-icon"\n src="https://static.dazndn.com/chapters/web/myaccount/close.png"\n alt=""\n />\n </div>\n <div class="signout-frame">\n <img class="frame" src="{{image}}" alt="Frame" />\n </div>\n <div class="header-msg">\n <h3>{{header}}</h3>\n </div>\n <div class="body-msg">\n <p>{{body}}</p>\n </div>\n <div class="support-link">{{description}}</div>\n <div class="close-button">\n <p>{{close}}</p>\n </div>\n</div>\n'.replace("{{header}}",t.header).replace("{{body}}",t.body).replace("{{description}}",Et.parse(t.description)).replace("{{close}}",t.close).replace("{{image}}","https://static.dazndn.com/chapters/web/catalog/allDevicesSignOutPopupUpdated.png")}(0,e))}(i)),r.style.setProperty("overflow","hidden","important"),n(document,t(k,{}));var a=setInterval((function(){var e=document.querySelector(".close-button"),t=document.querySelector(".close-icon");e&&t?(e.addEventListener("click",we),t.addEventListener("click",we),clearInterval(a)):console.log("Close button not found yet")}),100)},Ke=function(e){return M(void 0,void 0,void 0,(function(){var t,n;return B(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),t=Re.getStartupData().ServiceDictionary.GenerateTempToken.Versions.v1.ServicePath,[4,fetch(t,{headers:{Authorization:"Bearer ".concat(e)}})];case 1:return[4,r.sent().json()];case 2:return[2,r.sent().token];case 3:return n=r.sent(),console.error("[BOOTSTRAP] GenerateTempToken error",String(n)),[2,null];case 4:return[2]}}))}))},Ge=function(e){$=!0,ee=e;var t=F({},e);t.isNativeSession="true",fn(U,t,5)},qe=function(t){return M(void 0,void 0,void 0,(function(){var n,r,o,i,a,u;return B(this,(function(s){switch(s.label){case 0:return te?(n=new URL(te),r=new URLSearchParams(n.search),o=void 0,i=t.action,a=Pe.getToken(),u=null,"exchangeToken"===i&&a?[4,Ke(a)]:[3,2]):[2];case 1:u=s.sent(),s.label=2;case 2:return u&&r.set("shortToken",u),Object.entries(t).forEach((function(e){var t=V(e,2),n=t[0],i=t[1];"function"!=typeof i&&i&&r.set(n,i),"function"==typeof i&&(o=i)})),n.search=r.toString(),e.location.href=n.toString(),o&&setTimeout((function(){o&&o()}),3e3),[2]}}))}))},He=function(t){var n=t.deviceMetadata,a=t.isDevModeEnabled,u=t.safeModeConfig;return q.prepareAPIRootForBrowser(e).useAPIComponents([J.createAsyncStorageComponent(i),J.createDevModeComponent({indicatorVariant:p,isEnabled:a,onChange:function(e){ue.update(e),G()}}),J.createLoggerComponent("Bootstrap",r.environment),J.deviceMetadataComponent,J.startupDeviceComponent,J.createSafeModeComponent(u),J.createUILanguageComponent(Me.getLanguage),J.createL10nComponent(Me.getResourceStrings),J.authTokenComponent,J.feEventsComponent,J.closedCaptionsComponent]).catch((function(e){return console.error("[Bootstrap] setupPublicAPI (v2)"),console.error(e),ie.noticeError(e,"from setupPublicAPI"),null})).then((function(){var t=function(t,n){t===C&&n&&n.token&&(Pe.setToken(n.token),G()),t===T&&function(){var t=e.dazn.auth.token;if(""===t)return!0;var n=Xt(t),o=Xt(localStorage.getItem(r.tokenStorageKey)||""),i=n.entitlements.entitlementSets,a=o.entitlements.entitlementSets;if(i.length!==a.length)return!0;for(var u=se.sortBy(i,"id"),s=se.sortBy(a,"id"),c=0;c<u.length;c++)if(!se.isEqual(u[c],s[c]))return!0;return!1}()&&G()},a=function(t,n){e.daznNativeBridge.messageToNative(t,n)},u=a,s=t;(function(){var t=function(){var t,n=new URLSearchParams(null===(t=e.location)||void 0===t?void 0:t.search),r={};return n.forEach((function(e,t){r[t]=e})),r}();ee=t;var n=function(e){var t="".concat(e,"="),n="; ".concat(document.cookie).split("; ".concat(t));if(2===n.length){var r=n.pop().split(";").shift(),o=decodeURIComponent(r);try{return JSON.parse(o)}catch(e){return o}}return null}(U),r=(ee=F(F({},n),t)).platform;ee.isNativeSession&&($=!0),r&&!w.includes(r)&&($=!1,ee={}),fn(U,ee,5),te=Ie.getVariableStringAnonymous("f_ar_native_schema","schemaUrl")})(),function(e){var t,n=e.deps,r=e.window,o=e.shouldTrack,i=e.shouldLog,a=e.logger,u=void 0===a?console.warn.bind(console):a;if(i||(u=function(){return null}),!(null===(t=r.dazn)||void 0===t?void 0:t.publicApiInitialised)){var s=r.dazn||{};Object.defineProperty(r,"dazn",{enumerable:!0,get:function(){return s},set:function(e){e!==s&&u("You can not manipulate window.dazn directly")}});var c=o?Y.tracking.createTracking(Y.tracking.createNRTracking(r),{defaultSampling:{type:Y.tracking.Sampling.Once}}):null,l=r.daznNativeBridge||{};Object.defineProperty(r,"daznNativeBridge",{enumerable:!0,get:function(){return l},set:function(e){e!==l&&u("You can not manipulate window.daznBridge directly")}}),r.daznNativeBridge.messageToWeb=function(e,t){r.dazn.native.messageToWeb(e,t)},function(e){!function(e){e("application")((function(e){var t=e.func,n=e.prop,r=e.deps;n("exitApp",(function(){return r.exitApp}),null),t("restartApp",r.restartApp),t("playerTarget",r.getPlayerTarget),n("environmentGroup",r.getEnvironmentGroup,null),n("environment",r.getEnvironment,null),n("type",r.getApplicationType,null)}))}(e),function(e){e(null)((function(e){var t=e.func,n=e.prop,r=e.deps,o=void 0;n("taf",(function(){return o}),{setter:function(e){return o=e}}),n("localStorage",r.getAsyncStorage,null),t("isMoonCountry",r.isMoonCountry),t("captureException",r.captureException);var i={};n("event",(function(){return i}),null),n("versions",r.getChaptersVersions,null),n("resourceStringsData",r.getResourceStringsData,null),n("campaignId",r.getCampaignId,null),n("promoId",r.getPromoId,null),n("language",r.getChapterLanguage,null),n("sessionId",r.getSessionId,null),n("country",r.getCountry,null),t("unstable_fetchSafeModeStatus",r.fetchSafeMode),n("userhomeCurrency",r.getHomeCurrency,null),n("contentCountry",r.getContentCountry,null),t("unstable_handleFeEvent",r.handleFeEvent),n("userProfile",r.getUserProfile,{setter:r.setUserProfile,shouldNotManipulate:!0}),n("userStatus",r.getUserStatus,{shouldNotManipulate:!0}),n("userType",r.getUserType,null),t("getUserExperiment",r.getUserExperiment),t("getAnonymousExperiment",r.getAnonymousExperiment),n("deviceId",r.getDeviceId,{shouldNotManipulate:!0,replacedWith:"window.dazn.device.id"}),n("environment",r.getEnvironment,{replacedWith:"window.dazn.application.environment"}),n("rtlEnabled",r.isRtlEnabled,null),n("manufacturer",r.getManufacturer,{shouldNotManipulate:!0,replacedWith:"window.dazn.device.manufacturer"}),n("platform",r.getPlatform,{shouldNotManipulate:!0,replacedWith:"window.dazn.device.platform"}),n("experiments",(function(){return F(F({},r.getExperiments()),{getUserExperimentNumber:r.getUserExperimentNumber})}),{replacedWith:"window.dazn.experiment (Optimizely)"}),n("textToSpeech",(function(){return r.textToSpeechAPI}),null),n("unstable_closedCaptions",(function(){return r.closedCaptionsAPI}),null),t("getDefaultContext",r.getDefaultContext),n("contentfulLocale",r.getContentfulLocale,null),t("getContentfulConfig",r.getContentfulConfig),n("viewerId",r.getViewerId,null),n("anonymousViewerId",r.getAnonymousViewerId,null)}))}(e),function(e){e("auth")((function(e){var t=e.func,n=e.prop,r=e.deps;n("token",r.getAuthToken,{setter:r.setAuthToken}),n("anonymousToken",r.getAnonymousToken,{setter:r.setAnonymousToken}),t("setAnonymousToken",r.setAnonymousToken),t("refreshToken",r.refreshExistingTokenAndUpdateProfile),t("setToken",r.setAuthToken),t("unstable_getDecodedJWT",r.getDecodedJWT),t("getValidatedToken",r.getValidatedToken),n("unstable_fetchPartnerAccessCode",(function(){return r.fetchPartnerAccessCode}),null),t("isVip",r.isVip)}))}(e),function(e){e("chapterHistory")((function(e){var t=e.func,n=e.prop,r=e.deps;t("getChapterFromPath",r.getChapterFromPath),n("currentChapter",r.getCurrentChapter,{setter:r.setCurrentChapter})}))}(e),function(e){e("consent")((function(e){var t=e.func,n=e.prop,r=e.deps;t("getUserConsent",r.getUserConsent),t("identifierForAdvertising",r.getAdvertisingDeviceId),n("oneTrustConsentGroups",r.getOneTrustConsentGroups,{replacedWith:"window.dazn.consent.getUserConsent"}),t("resetCookieScripts",r.resetCookieScripts),t("fetchAndStorePartnerTokenGlobal",r.fetchAndStorePartnerTokenGlobal)}))}(e),function(e){e("device")((function(e){var t=e.prop,n=e.deps;t("id",n.getDeviceId,{shouldNotManipulate:!0}),t("guid",n.getGuid,null),t("manufacturer",n.getManufacturer,{shouldNotManipulate:!0}),t("platform",n.getPlatform,{shouldNotManipulate:!0});var r=n.deviceMetadata;t("type",(function(){return r.type}),null),t("brand",(function(){return r.brand}),null),t("model",(function(){return r.model}),null),t("firmwareVersion",(function(){return r.firmwareVersion}),null),t("osName",(function(){return r.osName}),null),t("osVersion",(function(){return r.osVersion}),null)}))}(e),function(e){e("devMode")((function(e){var t=e.func,n=e.prop,r=e.deps;t("enable",r.enableDevMode),t("disable",r.disableDevMode),t("setOptimizelyLogLevel",r.optimizely.setOptimizelyLogLevel),t("setFeaturevisorLogLevels",r.featurevisor.setFeaturevisorLogLevels),n("isDevModeEnabled",r.getDevMode,null),n("featurevisorInstance",r.featurevisorInstance,null)}))}(e),function(e){e("lifecycle")((function(e){var t=e.func,n=e.deps;t("onChapterLoad",n.lifecycle.onChapterLoad),t("onChapterUnload",n.lifecycle.onChapterUnload),t("onChapterWillLoad",n.lifecycle.onChapterWillLoad),t("onChapterWillUnload",n.lifecycle.onChapterWillUnload),t("onChapterDidLoad",n.lifecycle.onChapterDidLoad),t("onChapterDidUnload",n.lifecycle.onChapterDidUnload)}))}(e),function(e){e("navigation")((function(e){var t=e.prop,n=e.deps;t("initialUrl",n.getInitialUrl,null),t("initialUrlParameters",n.getInitialUrlParameters,null)}))}(e),function(e){e("experiment")((function(e){var t=e.func,n=e.deps;t("getVariationAnonymous",n.optimizely.getVariationAnonymousOptimizely),t("addNotificationListener",n.optimizely.addNotificationListener),t("removeNotificationListener",n.optimizely.removeNotificationListener),t("getVariationAuthenticated",n.optimizely.getVariationAuthenticatedOptimizely),t("getForcedVariationAnonymous",n.optimizely.getForcedVariationAnonymousOptimizely),t("getForcedVariationAuthenticated",n.optimizely.getForcedVariationAuthenticatedOptimizely),t("setForcedVariationAnonymous",n.optimizely.setForcedVariationAnonymousOptimizely),t("setForcedVariationAuthenticated",n.optimizely.setForcedVariationAuthenticatedOptimizely),t("trackAnonymous",n.optimizely.trackAnonymousOptimizely),t("trackAuthenticated",n.optimizely.trackAuthenticatedOptimizely),t("activateAnonymous",n.optimizely.activateAnonymousOptimizely),t("activateAuthenticated",n.optimizely.activateAuthenticatedOptimizely)})),e("features")((function(e){var t=e.func,n=e.deps;t("isEnabledAnonymous",n.optimizely.isEnabledAnonymousOptimizely),t("isEnabledAuthenticated",n.optimizely.isEnabledAuthenticatedOptimizely),t("getVariableBooleanAnonymous",n.optimizely.getVariableBooleanAnonymousOptimizely),t("getVariableBooleanAuthenticated",n.optimizely.getVariableBooleanAuthenticatedOptimizely),t("getVariableIntegerAnonymous",n.optimizely.getVariableIntegerAnonymousOptimizely),t("getVariableIntegerAuthenticated",n.optimizely.getVariableIntegerAuthenticatedOptimizely),t("getVariableStringAnonymous",n.optimizely.getVariableStringAnonymousOptimizely),t("getVariableStringAuthenticated",n.optimizely.getVariableStringAuthenticatedOptimizely),t("getVariableObjectAnonymous",n.featurevisor.getVariableObjectAnonymous),t("getVariableObjectAuthenticated",n.featurevisor.getVariableObjectAuthenticated)}))}(e),function(e){e("splashScreen")((function(e){(0,e.func)("remove",e.deps.removeSplashScreen)}))}(e),function(e){e(null)((function(e){var t,n,r=e.prop,o=e.deps,i=e.logger;r("startupData",(t={accessor:o.getStartupData,deprecatedKeys:["AB_Test","AB_Test_Multi"],deprecationMessage:"DEPRECATION NOTICE: Access of key is considered deprecated and may be removed in future releases. Please use Optimizely instead.",logger:i},null==(n=t.accessor())||"object"!=b(n)?t.accessor:(t.deprecatedKeys.forEach((function(e){var t=n[e];Object.defineProperty(n,e,{get:function(){return t}})})),function(){return n})),{setter:o.setStartupData,shouldNotManipulate:!0})}))}(e),function(e){e("native")((function(e){var t=e.func,n=e.prop,r=e.deps;n("isNative",r.native.isNative,null),n("appName",r.native.appName,null),t("messageToWeb",r.native.messageToWeb),t("messageToNative",r.native.messageToNative)}))}(e),function(e){e("nativeSession")((function(e){var t=e.func,n=e.prop,r=e.deps;n("isActive",r.isNativeSession,null),n("sessionParams",r.sessionParams,null),t("backToApp",r.backToApp),t("setNativeSession",r.setNativeSession)}))}(e),function(e){e("monitoring")((function(e){var t=e.func;e.prop,t("triggerFsEvent",e.deps.triggerFsEvent)}))}(e),e(null)((function(e){var t=e.prop;t("publicApiInitialised",(function(){return!0}),null);var n=[];t("targetGarbageContainerSnapshot",(function(){return n}))}))}(to({window:r,trackUsage:c,logger:u,deps:n})),Object.seal(r.dazn)}}({window:e,shouldTrack:!0,shouldLog:!0,deps:{getHomeCurrency:Pe.getHomeCurrency,getContentCountry:Pe.getContentCountry,getCountry:Pe.getCountry,getUserType:Pe.getUserType,isVip:Pe.isVip,getUserStatus:Pe.getUserStatus,getAuthToken:Pe.getToken,getAnonymousToken:Pe.getAnonymousToken,setAnonymousToken:Pe.setAnonymousToken,setAuthToken:Pe.setToken,getUserProfile:Pe.getProfile,setUserProfile:Pe.setProfile,getEnvironment:Ae.getEnvironment,getValidatedToken:Pe.getValidatedToken,getEnvironmentGroup:Ae.getEnvironmentGroup,getPlatform:Ae.getPlatform,getManufacturer:Ae.getManufacturer,deviceMetadata:n,manufacturer:o,getInitialUrl:Ae.getInitialUrl,getInitialUrlParameters:Ae.getInitialUrlParameters,triggerFsEvent:Fe.triggerFsEvent,getCampaignId:Re.getCampaignId,getPromoId:Re.getPromoId,getSessionId:Ae.getSessionId,getDeviceId:Ae.getDeviceId,getGuid:Ae.getGuid,getStartupData:Re.getStartupData,setStartupData:Re.setStartupData,getResourceStringsData:Me.getResourceStrings,getCurrentChapter:Me.getCurrentChapter,setCurrentChapter:Me.setCurrentChapter,getChaptersVersions:Ae.getVersions,getChapterLanguage:Me.getLanguage,getApplicationType:function(){return D},getExperiments:Se.getExperiments,getOneTrustConsentGroups:ne.getOneTrustConsentGroups,captureException:Oe.captureException,getAsyncStorage:function(){return i},lifecycle:Me.lifecycleEvents,getChapterFromPath:Me.getChapterFromPath,getUserExperiment:Se.getUserExperiment,getUserExperimentNumber:Se.getUserExperimentNumber,getAnonymousExperiment:Se.getAnonymousExperiment,removeSplashScreen:je,isMoonCountry:function(e){return void 0===e&&(e=Re.getStartupDataCountry()),!Le(e)},exitApp:K,fetchPartnerAccessCode:P,refreshExistingTokenAndUpdateProfile:Pe.refreshExistingTokenAndUpdateProfile,getDecodedJWT:Pe.getDecodedJWT,getUserConsent:ne.getUserConsent,getAdvertisingDeviceId:null!=x?x:vo,fetchSafeMode:Oe.fetchSafeMode,restartApp:G,getPlayerTarget:j,handleFeEvent:O,closedCaptionsAPI:W,textToSpeechAPI:H,getDevMode:ue.isEnabled,enableDevMode:function(){return ue.update(!0)},disableDevMode:function(){return ue.update(!1)},resetCookieScripts:function(){return ne.findAndDeleteCookieScripts({environment:r.environment,chapterLanguage:Me.getLanguage(),chapterName:Y.getChapterName(Me.getCurrentChapter()),startupCountry:Re.getStartupDataCountry()},Ie.isEnabledAnonymous("f_ar_new_consent_cookie_script"))},fetchAndStorePartnerTokenGlobal:function(){return mo(Re.getStartupData().ServiceDictionary.PartnerToken.Versions.v1.ServicePath,Pe.getToken(),Pe.getProfile().ViewerId)},getContentfulLocale:function(){return e=Me.getLanguage(),t=Re.getLocale(),"es"!==e.toLowerCase()||["es-US","es-MX","es-ES"].includes(t)?"ar"===e.toLowerCase()?t="ar-SA":"he"===e.toLowerCase()?t="he-IL":"fr"!==e.toLowerCase()||["fr-BE","fr-CA","fr-FR","fr-CH","fr-BL","fr-GF","fr-PF","fr-TF","fr-GP","fr-MQ","fr-MF","fr-YT","fr-NC","fr-RE","fr-PM"].includes(t)||(t="fr-ZA"):t="es-LA",t;var e,t},getContentfulConfig:function(){return function(e){var t=function(){var e=window.location.href,t=new URL(e);return{type:t.searchParams.get("type"),entryId:t.searchParams.get("entryId"),locale:t.searchParams.get("locale")}},n={CONTENTFUL_SPACE_ID:"vhp9jnid12wf",CONTENTFUL_ENVIRONMENT:"production"===e?"master":"stage",CONTENTFUL_ACCESS_TOKEN:t().entryId?"Kha_qM8sS2Y3W4LSkWARz4WF5WXl5f3rzhfgZYP5eOI":"dARjM-2MN8QXYpPErOxwJS1XogcTiiL1DRfexCm0a2A",CONTENTFUL_HOST:t().entryId?"preview.contentful.com":"cdn.contentful.com"};return{space:n.CONTENTFUL_SPACE_ID,host:n.CONTENTFUL_HOST,environment:n.CONTENTFUL_ENVIRONMENT,accessToken:n.CONTENTFUL_ACCESS_TOKEN}}(r.environment)},getViewerId:function(){var e,t;return(null===(e=Xt(Pe.getToken()))||void 0===e?void 0:e.viewerId)?null===(t=Xt(Pe.getToken()))||void 0===t?void 0:t.viewerId:null},getAnonymousViewerId:function(){var e;return null===(e=Xt(Pe.getAnonymousToken()))||void 0===e?void 0:e.viewerId},optimizely:{isEnabledAnonymousOptimizely:Ie.isEnabledAnonymous,getVariableBooleanAnonymousOptimizely:Ie.getVariableBooleanAnonymous,getVariableStringAnonymousOptimizely:Ie.getVariableStringAnonymous,getVariableIntegerAnonymousOptimizely:Ie.getVariableIntegerAnonymous,getVariationAnonymousOptimizely:Ie.getVariationAnonymous,trackAnonymousOptimizely:Ie.trackAnonymous,activateAnonymousOptimizely:Ie.activateAnonymous,trackAuthenticatedOptimizely:Ie.trackAuthenticated,activateAuthenticatedOptimizely:Ie.activateAuthenticated,isEnabledAuthenticatedOptimizely:Ie.isEnabledAuthenticated,getVariationAuthenticatedOptimizely:Ie.getVariationAuthenticated,getVariableStringAuthenticatedOptimizely:Ie.getVariableStringAuthenticated,getVariableBooleanAuthenticatedOptimizely:Ie.getVariableBooleanAuthenticated,getVariableIntegerAuthenticatedOptimizely:Ie.getVariableIntegerAuthenticated,getForcedVariationAuthenticatedOptimizely:Ie.getForcedVariationAuthenticated,getForcedVariationAnonymousOptimizely:Ie.getForcedVariationAnonymous,setForcedVariationAuthenticatedOptimizely:Ie.setForcedVariationAuthenticated,setForcedVariationAnonymousOptimizely:Ie.setForcedVariationAnonymous,addNotificationListener:Ie.addNotificationListener,removeNotificationListener:Ie.removeNotificationListener,setOptimizelyLogLevel:Ie.setOptimizelyLogLevel},featurevisor:{setFeaturevisorLogLevels:Ie.setFeaturevisorLogLevelsUpdated,getVariableObjectAnonymous:Ie.getVariableObjectAnonymous,getVariableObjectAuthenticated:Ie.getVariableObjectAuthenticated},native:{isNative:function(){return Te},appName:function(){return ke},messageToNative:u,messageToWeb:s},isRtlEnabled:Ne,getDefaultContext:Ie.getDefaultAttributes,featurevisorInstance:function(){return Z},sessionParams:function(){return ee},isNativeSession:function(){return $},backToApp:qe,setNativeSession:Ge}}),Ne()&&document.getElementsByTagName("body")[0].setAttribute("dir","rtl")}))},Je=function(t){var n,r;e.document.body.appendChild((n=s,(r=e.document.createElement("script")).setAttribute("async",""),r.setAttribute("defer",""),r.classList.add("protected"),r.text="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat(n,"');"),r))},We=ie.wrapAsyncFn("analytics",(function(){return ve.then((function(e){var t,n="f_ar_gtm_lazy_loading";if(!Ie.getVariableBooleanAnonymous(n,"disableGtm"))if(De.sendLaunchEvent({initialURL:z,applicationType:D,version:u,environment:r.environment,deviceId:Ae.getDeviceId(),model:null!==(t=e.model)&&void 0!==t?t:"N/A",platform:r.target,launchParams:{},externalTrackingID:ee.trackingId||""}),Ie.isEnabledAnonymous(n))var o=setTimeout((function(){Je(),clearTimeout(o)}),Ie.getVariableIntegerAnonymous(n,"duration")||5e3);else Je()}))})),Ye=ie.wrapAsyncFn("optimizely",(function(){return ve.then((function(e){return M(void 0,void 0,void 0,(function(){var t,n;return B(this,(function(i){switch(i.label){case 0:return[4,Yr({environment:r.environment,featurevisorDatafileURL:X,trackFeaturevisorErrors:Ie.trackFeaturevisorErrors})];case 1:return t=i.sent().featurevisorInstance,Z=t,n=ie.wrapAsyncFn("createFeaturevisorInstance",(function(){return t}))(),[2,Promise.allSettled([n]).then((function(t){var n=V(t,1)[0];return Ie.run("fulfilled"===n.status?n.value:null,e,o)}))]}}))}))})).then((function(){return Ee(Ie.isEnabledAnonymous)})).catch((function(){return Ee((function(){return!1}))}))})),Ze=ie.wrapAsyncFn("devModeReader",ue.readFromStorage),Xe=function(){return M(void 0,void 0,void 0,(function(){var e,t,n,r,o;return B(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,ve];case 1:return e=i.sent(),t=Ie.getVariableIntegerAnonymous("f_safe_mode_gcp","version"),n=4===t?me().V4:me().V3,r={deviceMetadata:e,isDevModeEnabled:ue.isEnabled(),safeModeConfig:n},[2,He(r)];case 2:return o=i.sent(),console.warn(o),[3,3];case 3:return[2]}}))}))};de();var Qe=ie.trace("promiseChain");return{initMainModules:function(){return Promise.resolve(null).then((function(){return Promise.all([Ze,ie.wrapAsyncFn("splash",Ve.run),ie.wrapAsyncFn("initialization",Ae.run),ie.wrapAsyncFn("experiments",Se.run)].map((function(e){return e()})))})).then(ie.wrapAsyncFn("startup",(function(){return Re.run({shouldUseMarcoPolo:ue.isEnabled()})}))).then(ie.wrapAsyncFn("user",Pe.run)).then(Ye).then((function(){return mo(Re.getStartupData().ServiceDictionary.PartnerToken.Versions.v1.ServicePath,Pe.getToken(),Pe.getProfile().ViewerId)})).then(ie.wrapAsyncFn("navigation",Me.run)).then(ie.wrapAsyncFn("setupPublicAPI",Xe)).then((function(){return Promise.all([ie.wrapAsyncFn("popstate",(function(){e.addEventListener("popstate",Me.handlePopstate)})),ie.wrapAsyncFn("monitoring",Fe.run)].map((function(e){return e()})))})).then((function(){})).then(ie.wrapAsyncFn("cookieBanner",(function(){return ne.run({environment:r.environment,lifecycleEvents:Me.lifecycleEvents,chapterLanguage:Me.getLanguage(),chapterName:Y.getChapterName(Me.getCurrentChapter()),startupCountry:Re.getStartupDataCountry()},Ie.isEnabledAnonymous("f_ar_new_consent_cookie_script"),Ie.getVariableBooleanAuthenticated("f_peng_liveramp_enabled","enableLiveRampAPI"),Ie.getVariableIntegerAuthenticated("f_peng_liveramp_enabled","rampIdExpiryInMillis"))})))},loadInitialChapter:function(e){return Promise.resolve().then(ie.wrapAsyncFn("deepLink",(function(){if(!e)return null;var t=ur(e,"");return t&&ie.addPageAction("deepLink",{chapterName:t.chapterName,chapterPath:t.chapterPath}),e}))).then(ie.wrapAsyncFn("loadInitialChapter",Me.loadInitialChapter)).then((function(){return ie.addPageAction("success")})).then(We).then(Qe).then(fe)},handleInitError:function(e){return Promise.resolve(null).then((function(){console.error("[Bootstrap] handleInitError"),console.error(e)})).then(Ze).then(Ye).then(ie.wrapAsyncFn("setupPublicAPI",(function(){return Xe().catch((function(e){console.error("[Bootstrap] setupPublicAPI has failed"),console.error(e),ie.noticeError(e,"from setupPublicAPI")}))}))).then(ie.wrapAsyncFn("handleError",(function(){var t=e instanceof Error?e:new Error(String(e));ie.noticeError(t,"from initMainModules"),ie.addPageAction("error",{message:t.message}),Oe.handleError(void 0,Y.eraroCodesMap.code.AppLoadError,void 0,_e(),t),je()}))).then(We).then(Qe).then(fe)},nrTrace:ie,waitForFFlag:function(){return Promise.resolve().then((function(){}))},module:{analytics:De,configuration:be,errorHandling:Oe,initialization:Ae,navigation:Me,fflag:Ie,user:Pe,splash:Ve,startup:Re,experiments:Se,monitoring:Fe}}},e.createStorageModule=function(e,t){void 0===t&&(t=102400);var n,r,o=function(e){var t,n;return void 0===e&&(e=window),(null===(t=null==e?void 0:e.navigator)||void 0===t?void 0:t.cookieEnabled)?e.localStorage:(n={},{setItem:function(e,t){n[e]=t},getItem:function(e){var t;return null!==(t=n[e])&&void 0!==t?t:null},clear:function(){n={}},removeItem:function(e){delete n[e]}})}(e);return n=o,r=t,{getItem:function(e){return Promise.resolve(n.getItem(e))},setItem:function(e,t){var o=String(t);return 2*o.length>r?Promise.reject(new RangeError("Too many bytes in the item to store (max: ".concat(r,")"))):(Promise.resolve(n.setItem(e,o)).catch((function(e){return console.error(e)})),Promise.resolve(o))},removeItem:function(e){return Promise.resolve(n.removeItem(e))},clear:function(){return Promise.resolve(n.clear())}}},e.environments=c,e.getBrowserLanguages=function(e){void 0===e&&(e=window);var t=e.navigator.languages;return t&&t.length>0&&Array.isArray(t)?t.join(","):e.navigator.language||""},e.handleCommonFeEvent=function(e,t){t.gtm&&Wr(F(F({},e),{event:t.name}))},e.isBeta=x,e.isV4Enabled=!0,e.onetrustDelayInMs=2e3,e.pushToGTM=Wr,e.safemodeVersions=h,e.validNativeApps=w},"object"==b(t)?a(t,n(1962),n(3331)):(o=[t,n(1962),n(3331)],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i))},4946:function(e,t){var n,r,o,i;function a(e){return a="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},a(e)}i=function(e){"use strict";var t=function(e){return 0===e?Promise.resolve():new Promise((function(t){return setTimeout(t,e)}))},n=function(e,t){return 1===e?0:t*Math.pow(2,e-2)},r={auth:!0,signin:!0,account:!0,catalog:!0,preferences:!0,landingpage:!0,help:!0,error:!0,redeem:!0,picks:!0,news:!0,partners:!0},o={General:"00",Internal:"10",StartupService:"55",ResourceStringService:"56",RefreshTokenService:"66",SignOutService:"67",UserProfileService:"70",ChapterLoading:"84",UnsupportedBrowser:"111"},i={GenericError:"000",RestrictedCountry:"006",AppLoadError:"007",UnexpectedRefreshTokenError:"062",UnathorizedRefreshTokenError:"063",ServiceTimeout:"070",ServiceTooManyAttemps:"098",ChapterInvalid:"116",UnableToLoadChapter:"117"},a={Ignore:"-01",GenericError:"000",StartupRestrictedCountry:"002",RequestTimeout:"017",ParserError:"018",NetworkError:"034",ServerError:"500",BadRequest:"400",NotFound:"404",AccessDenied:"403",Unauthenticated:"401",TooManyRequests:"429"},u=Object.freeze({__proto__:null,category:o,code:i,internal:a}),s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)},c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var l,f=function(e){function t(t,n,r,u,s){void 0===n&&(n=o.General),void 0===r&&(r=i.GenericError),void 0===u&&(u=a.GenericError);var c=e.call(this,t)||this;return c.category=n,c.code=r,c.internal=u,s instanceof Error?c.originalException=s:"string"==typeof s&&(c.originalException=new Error(s)),c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),d=function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.addPageAction(e,t)},p=function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.setCustomAttribute(e,t)},h=function(e){var t;null===(t=window.newrelic)||void 0===t||t.addToTrace(e)},g=function(e,t){return"SELECT * FROM PageAction WHERE sessionId='".concat(e,"' AND actionName='").concat(t,"'")},v=function(e,t){var n=Math.ceil(e),r=Math.floor(t);return Math.floor(Math.random()*(r-n))+n},y=Object.freeze({__proto__:null}),m=Object.freeze({__proto__:null,countryCurrencyCodes:{af:"AFN",al:"ALL",dz:"DZD",ad:"EUR",ao:"AOA",ag:"XCD",ar:"ARS",am:"AMD",au:"AUD",at:"EUR",az:"AZN",bs:"BSD",bh:"BHD",bd:"BDT",bb:"BBD",by:"BYN",be:"EUR",bz:"BZD",bj:"XOF",bt:"BTN",bo:"BOB",ba:"BAM",bw:"BWP",br:"BRL",bn:"BND",bg:"BGN",bf:"XOF",bi:"BIF",cv:"CVE",kh:"KHR",cm:"XAF",ca:"CAD",cf:"XAF",td:"XAF",cl:"CLP",cn:"CNY",co:"COP",km:"KMF",cg:"XAF",cd:"CDF",cr:"CRC",hr:"HRK",cu:"CUP",cy:"EUR",cz:"CZK",dk:"DKK",dj:"DJF",dm:"XCD",do:"DOP",ec:"USD",eg:"EGP",sv:"USD",gq:"XAF",er:"ERN",ee:"EUR",sz:"SZL",et:"ETB",fj:"FJD",fi:"EUR",fr:"EUR",ga:"XAF",gm:"GMD",ge:"GEL",de:"EUR",gh:"GHS",gr:"EUR",gd:"XCD",gt:"GTQ",gn:"GNF",gw:"XOF",gy:"GYD",ht:"HTG",va:"EUR",hn:"HNL",hu:"HUF",is:"ISK",in:"INR",id:"IDR",ir:"IRR",iq:"IQD",ie:"EUR",il:"ILS",it:"EUR",jm:"JMD",jp:"JPY",jo:"JOD",kz:"KZT",ke:"KES",ki:"AUD",kw:"KWD",kg:"KGS",la:"LAK",lv:"EUR",lb:"LBP",ls:"LSL",lr:"LRD",ly:"LYD",li:"CHF",lt:"EUR",lu:"EUR",mg:"MGA",mw:"MWK",my:"MYR",mv:"MVR",ml:"XOF",mt:"EUR",mh:"USD",mr:"MRU",mu:"MUR",mx:"MXN",fm:"USD",md:"MDL",mc:"EUR",mn:"MNT",me:"EUR",ma:"MAD",mz:"MZN",mm:"MMK",na:"NAD",nr:"AUD",np:"NPR",nl:"EUR",nz:"NZD",ni:"NIO",ne:"XOF",ng:"NGN",mk:"MKD",no:"NOK",om:"OMR",pk:"PKR",pw:"USD",ps:"ILS",pa:"PAB",pg:"PGK",py:"PYG",pe:"PEN",ph:"PHP",pl:"PLN",pt:"EUR",qa:"QAR",ro:"RON",ru:"RUB",rw:"RWF",tw:"TWD",kn:"XCD",lc:"XCD",vc:"XCD",ws:"WST",sm:"EUR",st:"STN",sa:"SAR",sn:"XOF",rs:"RSD",sc:"SCR",sl:"SLL",sg:"SGD",sk:"EUR",si:"EUR",sb:"SBD",so:"SOS",za:"ZAR",ss:"SSP",es:"EUR",lk:"LKR",sd:"SDG",sr:"SRD",se:"SEK",ch:"CHF",sy:"SYP",tj:"TJS",tz:"TZS",th:"THB",tl:"USD",tg:"XOF",to:"TOP",tt:"TTD",tn:"TND",tr:"TRY",tm:"TMT",tv:"AUD",ug:"UGX",ua:"UAH",ae:"AED",gb:"GBP",us:"USD",uy:"UYU",uz:"UZS",vu:"VUV",ve:"VES",vn:"VND",ye:"YER",zm:"ZMW",zw:"ZWL"}}),E=Object.freeze({__proto__:null}),_=Object.freeze({__proto__:null}),b=Object.freeze({__proto__:null}),A=Object.freeze({__proto__:null}),w=Object.freeze({__proto__:null}),C=Object.freeze({__proto__:null}),T=Object.freeze({__proto__:null}),k=Object.freeze({__proto__:null}),I=Object.freeze({__proto__:null}),D=Object.freeze({__proto__:null}),O=Object.freeze({__proto__:null}),R=Object.freeze({__proto__:null,accessibilityTools:O,config:m,device:E,event:_,feEvents:y,featurevisor:w,fflag:A,lifecycle:b,optimizely:C,resourceStrings:T,storage:k,user:D,util:I});!function(e){e.Once="once",e.Off="off",e.Percentage="percentage"}(l||(l={}));var S={type:l.Off},N={},L=function(e){return!N[e.functionName]&&(N[e.functionName]=!0,!0)},U=function(e){return 100*Math.random()<e.value},x=Object.freeze({__proto__:null,NO_TRACKING:S,get Sampling(){return l},createNRTracking:function(e){return function(t,n){var r;null===(r=e.newrelic)||void 0===r||r.addPageAction("bootstrapApiUsage",c(c({},n),{bootstrapApiName:t.functionName,bootstrapApiType:"runtime"}))}},createTracking:function(e,t){return void 0===t&&(t={}),function(n){var r,o,i=null===(r=t.sampling)||void 0===r?void 0:r[n.functionName],a=null!==(o=null!=i?i:t.defaultSampling)&&void 0!==o?o:S;(function(e){return e.type!==l.Off&&(e.type===l.Once?L(e):e.type===l.Percentage?U(e):void function(e){var t=new Error("Unknown sampling type: ".concat(String(e)));throw console.error(t),t}(e))})(c(c({},a),n))&&e(n,t.trackingParams)}},shouldInvokeOnce:L,shouldInvokeSampled:U});e.EraroError=f,e.again=function(e,r){var o=void 0===r?{}:r,i=o.timeout,a=void 0===i?5e3:i,u=o.retries,s=void 0===u?2:u,c=o.backoff,l=void 0===c?100:c;return function r(o){return function(r){return t(n(r,l)).then((function(){return Promise.race([e(),t(a).then((function(){throw new Error("Attempt ".concat(r," took longer than ").concat(a,"ms"))}))])}))}(o).catch((function(e){if(o-1>=s)throw e;return r(o+1)}))}(1)},e.boot=R,e.calcBackoff=n,e.createEraroError=function(e,t,n,r,o){return new f(e,t,n,r,o)},e.createNewRelicTracer=function(e){var t=e.tracerName,n=e.sessionId,r=e.useConsole,o=void 0!==r&&r,i=e.now,a=void 0===i?function(){return Date.now()}:i,u=o?function(e){return function(t,n){console.info("👀 NR ".concat(e," ").concat(t," ").concat(JSON.stringify(n)))}}(t):function(){},s=function(e){return[t,e].join(".")},l=function(e,t){return[e,s(t)].join(" ")},f=function(e){var t=a(),r=s("trace");return function(){var o=a();d(r,{spanName:e,endTime:o,startTime:t,durationMs:o-t,sessionId:n}),h({name:l("🟦",e),start:t,end:o,origin:g(n,r)}),u(e,o-t)}},v=function(e,t){void 0===t&&(t={});var r=s(e),o=c(c({},t),{sessionId:n});d(r,o),h({name:l("🟢","addPageAction(".concat(e,")")),start:a(),end:a(),origin:g(n,r)}),u('addPageAction "'.concat(r,'"'),o)},y=function(e,t){var r=function(e,t){void 0===t&&(t="");var n=e instanceof Error?e:new Error(String(e));return t&&(n.message="".concat(n.message," | ").concat(t)),n}(e,t);!function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.noticeError(e,void 0)}(r),h({name:l("⛔️","noticeError()"),start:a(),origin:"".concat(r.message," | SELECT * FROM JavaScriptError WHERE sessionId='").concat(n,"'")}),u("⛔️ noticeError",r)};return p("sessionId",n),u("NRQL hint:",g(n,"ACTION_NAME")),v("createNewRelicTracer"),{tracerName:t,sessionId:n,noticeError:y,addPageAction:v,addRelease:function(e,t){!function(e,t){var n;null===(n=window.newrelic)||void 0===n||n.addRelease(e,t)}(e,t),u('addRelease "'.concat(e,"\"'"),t)},trace:function(e){return f("trace.".concat(e))},extendCustomAttributes:function(e){void 0===e&&(e={}),u("extendCustomAttributes",e),Object.keys(e).forEach((function(t){return p(s(t),String(e[t]))}))},wrapAsyncFn:function(e,n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=f("asyncFn.".concat(e));return Promise.resolve(null).then((function(){return n.apply(void 0,r)})).then((function(e){return i(),e})).catch((function(n){throw i(),y(n,"createNewRelicTracer(".concat(t,").wrapAsyncFn(").concat(e,")")),n}))}}}},e.createQueryStringReader=function(e){var t;void 0===e&&(e=window.location.search);var n=(null!==(t=e.split("#")[0].split("?")[1])&&void 0!==t?t:"").split("&").reduce((function(e,t){var n=t.split("="),r=n[0],o=n[1];return e[r]=o,e}),{});return{getParamValueByKey:function(e){return e in n?decodeURIComponent(n[e]):null}}},e.endsWith=function(e,t){return e.lastIndexOf(t)===e.length-t.length},e.eraroCodesMap=u,e.generateSessionId=function(){for(var e=8,t=(new Date).getTime().toString(16).slice(-8);e++<36;)t+=(0==(51*e&52)?"-":15===e?4:20===e?v(8,11):v(0,15)).toString(16);return t},e.getChapterName=function(e){return"string"==typeof e?e:e.chapterName},e.isChapterName=function(e){return"string"==typeof e&&e in r},e.isEraroError=function(e){return e instanceof Error&&e.hasOwnProperty("category")&&e.hasOwnProperty("code")&&e.hasOwnProperty("internal")},e.keysOf=function(e){return Object.keys(e)},e.startsWith=function(e,t){return 0===e.indexOf(t)},e.tracking=x},"object"==a(t)?i(t):(r=[t],void 0===(o="function"==typeof(n=i)?n.apply(t,r):n)||(e.exports=o))},163:(e,t,n)=>{n(9228);var r=n(8791);e.exports=r("Array","find")},6916:(e,t,n)=>{n(8673),n(7233);var r=n(9276);e.exports=r.Array.from},6757:(e,t,n)=>{n(9529);var r=n(8791);e.exports=r("Array","includes")},2316:(e,t,n)=>{n(4586);var r=n(9276);e.exports=r.Number.isNaN},47:(e,t,n)=>{n(3105);var r=n(9276);e.exports=r.Object.assign},7944:(e,t,n)=>{n(4115);var r=n(9276);e.exports=r.Object.getOwnPropertySymbols},6925:(e,t,n)=>{n(1235);var r=n(8791);e.exports=r("String","includes")},6796:(e,t,n)=>{n(4112);var r=n(8791);e.exports=r("String","startsWith")},3819:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},8505:(e,t,n)=>{var r=n(5052);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},9736:(e,t,n)=>{var r=n(95),o=n(2391),i=n(1787),a=r("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),e.exports=function(e){u[a][e]=!0}},7728:e=>{e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},1176:(e,t,n)=>{var r=n(5052);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},507:(e,t,n)=>{"use strict";var r=n(7636),o=n(2991),i=n(4960),a=n(1943),u=n(4237),s=n(2324),c=n(8830);e.exports=function(e){var t,n,l,f,d,p,h=o(e),g="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,m=void 0!==y,E=c(h),_=0;if(m&&(y=r(y,v>2?arguments[2]:void 0,2)),null==E||g==Array&&a(E))for(n=new g(t=u(h.length));t>_;_++)p=m?y(h[_],_):h[_],s(n,_,p);else for(d=(f=E.call(h)).next,n=new g;!(l=d.call(f)).done;_++)p=m?i(f,y,[l.value,_],!0):l.value,s(n,_,p);return n.length=_,n}},9540:(e,t,n)=>{var r=n(905),o=n(4237),i=n(3231),a=function(e){return function(t,n,a){var u,s=r(t),c=o(s.length),l=i(a,c);if(e&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9996:(e,t,n)=>{var r=n(7636),o=n(9337),i=n(2991),a=n(4237),u=n(7501),s=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,g,v,y){for(var m,E,_=i(h),b=o(_),A=r(g,v,3),w=a(b.length),C=0,T=y||u,k=t?T(h,w):n||d?T(h,0):void 0;w>C;C++)if((p||C in b)&&(E=A(m=b[C],C,_),e))if(t)k[C]=E;else if(E)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:s.call(k,m)}else switch(e){case 4:return!1;case 7:s.call(k,m)}return f?-1:c||l?l:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},3037:(e,t,n)=>{var r=n(7400),o=n(4229),i=n(816),a=Object.defineProperty,u={},s=function(e){throw e};e.exports=function(e,t){if(i(u,e))return u[e];t||(t={});var n=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,l=i(t,0)?t[0]:s,f=i(t,1)?t[1]:void 0;return u[e]=!!n&&!o((function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:s}):e[1]=1,n.call(e,l,f)}))}},7501:(e,t,n)=>{var r=n(5052),o=n(3718),i=n(95)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},4960:(e,t,n)=>{var r=n(1176),o=n(7281);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){throw o(e),t}}},4575:(e,t,n)=>{var r=n(95)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},7079:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},1589:(e,t,n)=>{var r=n(1601),o=n(7079),i=n(95)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},7081:(e,t,n)=>{var r=n(816),o=n(4826),i=n(7933),a=n(1787);e.exports=function(e,t){for(var n=o(t),u=a.f,s=i.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||u(e,l,s(t,l))}}},8127:(e,t,n)=>{var r=n(95)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},7528:(e,t,n)=>{var r=n(4229);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},3723:(e,t,n)=>{"use strict";var r=n(693).IteratorPrototype,o=n(2391),i=n(5358),a=n(4555),u=n(5495),s=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),u[c]=s,e}},5762:(e,t,n)=>{var r=n(7400),o=n(1787),i=n(5358);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},5358:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2324:(e,t,n)=>{"use strict";var r=n(2066),o=n(1787),i=n(5358);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},7675:(e,t,n)=>{"use strict";var r=n(3103),o=n(3723),i=n(7567),a=n(6540),u=n(4555),s=n(5762),c=n(7487),l=n(95),f=n(4231),d=n(5495),p=n(693),h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,v=l("iterator"),y="keys",m="values",E="entries",_=function(){return this};e.exports=function(e,t,n,l,p,b,A){o(n,t,l);var w,C,T,k=function(e){if(e===p&&S)return S;if(!g&&e in O)return O[e];switch(e){case y:case m:case E:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",D=!1,O=e.prototype,R=O[v]||O["@@iterator"]||p&&O[p],S=!g&&R||k(p),N="Array"==t&&O.entries||R;if(N&&(w=i(N.call(new e)),h!==Object.prototype&&w.next&&(f||i(w)===h||(a?a(w,h):"function"!=typeof w[v]&&s(w,v,_)),u(w,I,!0,!0),f&&(d[I]=_))),p==m&&R&&R.name!==m&&(D=!0,S=function(){return R.call(this)}),f&&!A||O[v]===S||s(O,v,S),d[t]=S,p)if(C={values:k(m),keys:b?S:k(y),entries:k(E)},A)for(T in C)(g||D||!(T in O))&&c(O,T,C[T]);else r({target:t,proto:!0,forced:g||D},C);return C}},8423:(e,t,n)=>{var r=n(9276),o=n(816),i=n(5391),a=n(1787).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},7400:(e,t,n)=>{var r=n(4229);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2635:(e,t,n)=>{var r=n(9859),o=n(5052),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8791:(e,t,n)=>{var r=n(9859),o=n(7636),i=Function.call;e.exports=function(e,t,n){return o(i,r[e].prototype[t],n)}},3837:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3103:(e,t,n)=>{var r=n(9859),o=n(7933).f,i=n(5762),a=n(7487),u=n(2079),s=n(7081),c=n(6541);e.exports=function(e,t){var n,l,f,d,p,h=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[h]||u(h,{}):(r[h]||{}).prototype)for(l in t){if(d=t[l],f=e.noTargetGet?(p=o(n,l))&&p.value:n[l],!c(g?l:h+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;s(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,l,d,e)}}},4229:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7636:(e,t,n)=>{var r=n(3819);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},1333:(e,t,n)=>{var r=n(9276),o=n(9859),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},8830:(e,t,n)=>{var r=n(1589),o=n(5495),i=n(95)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},8403:(e,t,n)=>{var r=n(1176),o=n(8830);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},9859:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},816:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},5977:e=>{e.exports={}},3777:(e,t,n)=>{var r=n(1333);e.exports=r("document","documentElement")},4394:(e,t,n)=>{var r=n(7400),o=n(4229),i=n(2635);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9337:(e,t,n)=>{var r=n(4229),o=n(7079),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},8511:(e,t,n)=>{var r=n(5353),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},6407:(e,t,n)=>{var r,o,i,a=n(8694),u=n(9859),s=n(5052),c=n(5762),l=n(816),f=n(5353),d=n(4399),p=n(5977),h=u.WeakMap;if(a){var g=f.state||(f.state=new h),v=g.get,y=g.has,m=g.set;r=function(e,t){return t.facade=e,m.call(g,e,t),t},o=function(e){return v.call(g,e)||{}},i=function(e){return y.call(g,e)}}else{var E=d("state");p[E]=!0,r=function(e,t){return t.facade=e,c(e,E,t),t},o=function(e){return l(e,E)?e[E]:{}},i=function(e){return l(e,E)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},1943:(e,t,n)=>{var r=n(95),o=n(5495),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3718:(e,t,n)=>{var r=n(7079);e.exports=Array.isArray||function(e){return"Array"==r(e)}},6541:(e,t,n)=>{var r=n(4229),o=/#|\.prototype\./,i=function(e,t){var n=u[a(e)];return n==c||n!=s&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},5052:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4231:e=>{e.exports=!1},8311:(e,t,n)=>{var r=n(5052),o=n(7079),i=n(95)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},7281:(e,t,n)=>{var r=n(1176);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},693:(e,t,n)=>{"use strict";var r,o,i,a=n(7567),u=n(5762),s=n(816),c=n(95),l=n(4231),f=c("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),l||s(r,f)||u(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},5495:e=>{e.exports={}},3839:(e,t,n)=>{var r=n(4229);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},7274:(e,t,n)=>{var r=n(4229),o=n(95),i=n(4231),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8694:(e,t,n)=>{var r=n(9859),o=n(8511),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},7272:(e,t,n)=>{var r=n(8311);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},7888:(e,t,n)=>{"use strict";var r=n(7400),o=n(4229),i=n(5632),a=n(894),u=n(9195),s=n(2991),c=n(9337),l=Object.assign,f=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||i(l({},t)).join("")!=o}))?function(e,t){for(var n=s(e),o=arguments.length,l=1,f=a.f,d=u.f;o>l;)for(var p,h=c(arguments[l++]),g=f?i(h).concat(f(h)):i(h),v=g.length,y=0;v>y;)p=g[y++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:l},2391:(e,t,n)=>{var r,o=n(1176),i=n(219),a=n(3837),u=n(5977),s=n(3777),c=n(2635),l=n(4399),f="prototype",d="script",p=l("IE_PROTO"),h=function(){},g=function(e){return"<"+d+">"+e+"</"+d+">"},v=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v=r?function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):(t=c("iframe"),n="java"+d+":",t.style.display="none",s.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F);for(var o=a.length;o--;)delete v[f][a[o]];return v()};u[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[f]=o(e),n=new h,h[f]=null,n[p]=e):n=v(),void 0===t?n:i(n,t)}},219:(e,t,n)=>{var r=n(7400),o=n(1787),i=n(1176),a=n(5632);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),u=r.length,s=0;u>s;)o.f(e,n=r[s++],t[n]);return e}},1787:(e,t,n)=>{var r=n(7400),o=n(4394),i=n(1176),a=n(2066),u=Object.defineProperty;t.f=r?u:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7933:(e,t,n)=>{var r=n(7400),o=n(9195),i=n(5358),a=n(905),u=n(2066),s=n(816),c=n(4394),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=u(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return i(!o.f.call(e,t),e[t])}},166:(e,t,n)=>{var r=n(905),o=n(8151).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},8151:(e,t,n)=>{var r=n(140),o=n(3837).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},894:(e,t)=>{t.f=Object.getOwnPropertySymbols},7567:(e,t,n)=>{var r=n(816),o=n(2991),i=n(4399),a=n(7528),u=i("IE_PROTO"),s=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,u)?e[u]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},140:(e,t,n)=>{var r=n(816),o=n(905),i=n(9540).indexOf,a=n(5977);e.exports=function(e,t){var n,u=o(e),s=0,c=[];for(n in u)!r(a,n)&&r(u,n)&&c.push(n);for(;t.length>s;)r(u,n=t[s++])&&(~i(c,n)||c.push(n));return c}},5632:(e,t,n)=>{var r=n(140),o=n(3837);e.exports=Object.keys||function(e){return r(e,o)}},9195:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},6540:(e,t,n)=>{var r=n(1176),o=n(8505);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},4826:(e,t,n)=>{var r=n(1333),o=n(8151),i=n(894),a=n(1176);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},9276:(e,t,n)=>{var r=n(9859);e.exports=r},8787:(e,t,n)=>{var r=n(7487);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},7487:(e,t,n)=>{var r=n(9859),o=n(5762),i=n(816),a=n(2079),u=n(8511),s=n(6407),c=s.get,l=s.enforce,f=String(String).split("String");(e.exports=function(e,t,n,u){var s,c=!!u&&!!u.unsafe,d=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),(s=l(n)).source||(s.source=f.join("string"==typeof t?t:""))),e!==r?(c?!p&&e[t]&&(d=!0):delete e[t],d?e[t]=n:o(e,t,n)):d?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||u(this)}))},8885:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},2079:(e,t,n)=>{var r=n(9859),o=n(5762);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},4555:(e,t,n)=>{var r=n(1787).f,o=n(816),i=n(95)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},4399:(e,t,n)=>{var r=n(3036),o=n(1441),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5353:(e,t,n)=>{var r=n(9859),o=n(2079),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},3036:(e,t,n)=>{var r=n(4231),o=n(5353);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.1",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},966:(e,t,n)=>{var r=n(6051),o=n(8885),i=function(e){return function(t,n){var i,a,u=String(o(t)),s=r(n),c=u.length;return s<0||s>=c?e?"":void 0:(i=u.charCodeAt(s))<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):i:e?u.slice(s,s+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},7321:e=>{"use strict";var t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",i=Math.floor,a=String.fromCharCode,u=function(e){return e+22+75*(e<26)},s=function(e,t,n){var r=0;for(e=n?i(e/700):e>>1,e+=i(e/t);e>455;r+=36)e=i(e/35);return i(r+36*e/(e+38))},c=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);var r,c,l=e.length,f=128,d=0,p=72;for(r=0;r<e.length;r++)(c=e[r])<128&&n.push(a(c));var h=n.length,g=h;for(h&&n.push("-");g<l;){var v=t;for(r=0;r<e.length;r++)(c=e[r])>=f&&c<v&&(v=c);var y=g+1;if(v-f>i((t-d)/y))throw RangeError(o);for(d+=(v-f)*y,f=v,r=0;r<e.length;r++){if((c=e[r])<f&&++d>t)throw RangeError(o);if(c==f){for(var m=d,E=36;;E+=36){var _=E<=p?1:E>=p+26?26:E-p;if(m<_)break;var b=m-_,A=36-_;n.push(a(u(_+b%A))),m=i(b/A)}n.push(a(u(m))),p=s(d,y,g==h),d=0,++g}}++d,++f}return n.join("")};e.exports=function(e){var t,o,i=[],a=e.toLowerCase().replace(r,".").split(".");for(t=0;t<a.length;t++)o=a[t],i.push(n.test(o)?"xn--"+c(o):o);return i.join(".")}},3231:(e,t,n)=>{var r=n(6051),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},905:(e,t,n)=>{var r=n(9337),o=n(8885);e.exports=function(e){return r(o(e))}},6051:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},4237:(e,t,n)=>{var r=n(6051),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},2991:(e,t,n)=>{var r=n(8885);e.exports=function(e){return Object(r(e))}},2066:(e,t,n)=>{var r=n(5052);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},1601:(e,t,n)=>{var r={};r[n(95)("toStringTag")]="z",e.exports="[object z]"===String(r)},1441:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},6969:(e,t,n)=>{var r=n(3839);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5391:(e,t,n)=>{var r=n(95);t.f=r},95:(e,t,n)=>{var r=n(9859),o=n(3036),i=n(816),a=n(1441),u=n(3839),s=n(6969),c=o("wks"),l=r.Symbol,f=s?l:l&&l.withoutSetter||a;e.exports=function(e){return i(c,e)||(u&&i(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},9228:(e,t,n)=>{"use strict";var r=n(3103),o=n(9996).find,i=n(9736),a=n(3037),u="find",s=!0,c=a(u);u in[]&&Array(1)[u]((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!c},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(u)},7233:(e,t,n)=>{var r=n(3103),o=n(507);r({target:"Array",stat:!0,forced:!n(4575)((function(e){Array.from(e)}))},{from:o})},9529:(e,t,n)=>{"use strict";var r=n(3103),o=n(9540).includes,i=n(9736);r({target:"Array",proto:!0,forced:!n(3037)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},5735:(e,t,n)=>{"use strict";var r=n(905),o=n(9736),i=n(5495),a=n(6407),u=n(7675),s="Array Iterator",c=a.set,l=a.getterFor(s);e.exports=u(Array,"Array",(function(e,t){c(this,{type:s,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},4586:(e,t,n)=>{n(3103)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},3105:(e,t,n)=>{var r=n(3103),o=n(7888);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},1235:(e,t,n)=>{"use strict";var r=n(3103),o=n(7272),i=n(8885);r({target:"String",proto:!0,forced:!n(8127)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},8673:(e,t,n)=>{"use strict";var r=n(966).charAt,o=n(6407),i=n(7675),a="String Iterator",u=o.set,s=o.getterFor(a);i(String,"String",(function(e){u(this,{type:a,string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},4112:(e,t,n)=>{"use strict";var r,o=n(3103),i=n(7933).f,a=n(4237),u=n(7272),s=n(8885),c=n(8127),l=n(4231),f="".startsWith,d=Math.min,p=c("startsWith");o({target:"String",proto:!0,forced:!(!l&&!p&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(e){var t=String(s(this));u(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},4115:(e,t,n)=>{"use strict";var r=n(3103),o=n(9859),i=n(1333),a=n(4231),u=n(7400),s=n(3839),c=n(6969),l=n(4229),f=n(816),d=n(3718),p=n(5052),h=n(1176),g=n(2991),v=n(905),y=n(2066),m=n(5358),E=n(2391),_=n(5632),b=n(8151),A=n(166),w=n(894),C=n(7933),T=n(1787),k=n(9195),I=n(5762),D=n(7487),O=n(3036),R=n(4399),S=n(5977),N=n(1441),L=n(95),U=n(5391),x=n(8423),P=n(4555),F=n(6407),M=n(9996).forEach,B=R("hidden"),V="Symbol",j="prototype",z=L("toPrimitive"),K=F.set,G=F.getterFor(V),q=Object[j],H=o.Symbol,J=i("JSON","stringify"),W=C.f,Y=T.f,Z=A.f,X=k.f,Q=O("symbols"),$=O("op-symbols"),ee=O("string-to-symbol-registry"),te=O("symbol-to-string-registry"),ne=O("wks"),re=o.QObject,oe=!re||!re[j]||!re[j].findChild,ie=u&&l((function(){return 7!=E(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=W(q,t);r&&delete q[t],Y(e,t,n),r&&e!==q&&Y(q,t,r)}:Y,ae=function(e,t){var n=Q[e]=E(H[j]);return K(n,{type:V,tag:e,description:t}),u||(n.description=t),n},ue=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},se=function(e,t,n){e===q&&se($,t,n),h(e);var r=y(t,!0);return h(n),f(Q,r)?(n.enumerable?(f(e,B)&&e[B][r]&&(e[B][r]=!1),n=E(n,{enumerable:m(0,!1)})):(f(e,B)||Y(e,B,m(1,{})),e[B][r]=!0),ie(e,r,n)):Y(e,r,n)},ce=function(e,t){h(e);var n=v(t),r=_(n).concat(pe(n));return M(r,(function(t){u&&!le.call(n,t)||se(e,t,n[t])})),e},le=function(e){var t=y(e,!0),n=X.call(this,t);return!(this===q&&f(Q,t)&&!f($,t))&&(!(n||!f(this,t)||!f(Q,t)||f(this,B)&&this[B][t])||n)},fe=function(e,t){var n=v(e),r=y(t,!0);if(n!==q||!f(Q,r)||f($,r)){var o=W(n,r);return!o||!f(Q,r)||f(n,B)&&n[B][r]||(o.enumerable=!0),o}},de=function(e){var t=Z(v(e)),n=[];return M(t,(function(e){f(Q,e)||f(S,e)||n.push(e)})),n},pe=function(e){var t=e===q,n=Z(t?$:v(e)),r=[];return M(n,(function(e){!f(Q,e)||t&&!f(q,e)||r.push(Q[e])})),r};s||(D((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=N(e),n=function(e){this===q&&n.call($,e),f(this,B)&&f(this[B],t)&&(this[B][t]=!1),ie(this,t,m(1,e))};return u&&oe&&ie(q,t,{configurable:!0,set:n}),ae(t,e)})[j],"toString",(function(){return G(this).tag})),D(H,"withoutSetter",(function(e){return ae(N(e),e)})),k.f=le,T.f=se,C.f=fe,b.f=A.f=de,w.f=pe,U.f=function(e){return ae(L(e),e)},u&&(Y(H[j],"description",{configurable:!0,get:function(){return G(this).description}}),a||D(q,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:H}),M(_(ne),(function(e){x(e)})),r({target:V,stat:!0,forced:!s},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=H(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ue(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!u},{create:function(e,t){return void 0===t?E(e):ce(E(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:l((function(){w.f(1)}))},{getOwnPropertySymbols:function(e){return w.f(g(e))}}),J&&r({target:"JSON",stat:!0,forced:!s||l((function(){var e=H();return"[null]"!=J([e])||"{}"!=J({a:e})||"{}"!=J(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(p(t)||void 0!==e)&&!ue(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ue(t))return t}),o[1]=t,J.apply(null,o)}}),H[j][z]||I(H[j],z,H[j].valueOf),P(H,V),S[B]=!0},523:(e,t,n)=>{"use strict";n(5735);var r=n(3103),o=n(1333),i=n(7274),a=n(7487),u=n(8787),s=n(4555),c=n(3723),l=n(6407),f=n(7728),d=n(816),p=n(7636),h=n(1589),g=n(1176),v=n(5052),y=n(2391),m=n(5358),E=n(8403),_=n(8830),b=n(95),A=o("fetch"),w=o("Headers"),C=b("iterator"),T="URLSearchParams",k=T+"Iterator",I=l.set,D=l.getterFor(T),O=l.getterFor(k),R=/\+/g,S=Array(4),N=function(e){return S[e-1]||(S[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},L=function(e){try{return decodeURIComponent(e)}catch(t){return e}},U=function(e){var t=e.replace(R," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(N(n--),L);return t}},x=/[!'()~]|%20/g,P={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(e){return P[e]},M=function(e){return encodeURIComponent(e).replace(x,F)},B=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:U(r.shift()),value:U(r.join("="))}))},V=function(e){this.entries.length=0,B(this.entries,e)},j=function(e,t){if(e<t)throw TypeError("Not enough arguments")},z=c((function(e,t){I(this,{type:k,iterator:E(D(e).entries),kind:t})}),"Iterator",(function(){var e=O(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),K=function(){f(this,K,T);var e,t,n,r,o,i,a,u,s,c=arguments.length>0?arguments[0]:void 0,l=[];if(I(this,{type:T,entries:l,updateURL:function(){},updateSearchParams:V}),void 0!==c)if(v(c))if("function"==typeof(e=_(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(i=(o=E(g(r.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");l.push({key:a.value+"",value:u.value+""})}else for(s in c)d(c,s)&&l.push({key:s,value:c[s]+""});else B(l,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},G=K.prototype;u(G,{append:function(e,t){j(arguments.length,2);var n=D(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){j(arguments.length,1);for(var t=D(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){j(arguments.length,1);for(var t=D(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){j(arguments.length,1);for(var t=D(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){j(arguments.length,1);for(var t=D(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){j(arguments.length,1);for(var n,r=D(this),o=r.entries,i=!1,a=e+"",u=t+"",s=0;s<o.length;s++)(n=o[s]).key===a&&(i?o.splice(s--,1):(i=!0,n.value=u));i||o.push({key:a,value:u}),r.updateURL()},sort:function(){var e,t,n,r=D(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(e=i[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=D(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new z(this,"keys")},values:function(){return new z(this,"values")},entries:function(){return new z(this,"entries")}},{enumerable:!0}),a(G,C,G.entries),a(G,"toString",(function(){for(var e,t=D(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(M(e.key)+"="+M(e.value));return n.join("&")}),{enumerable:!0}),s(K,T),r({global:!0,forced:!i},{URLSearchParams:K}),i||"function"!=typeof A||"function"!=typeof w||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(v(t=arguments[1])&&(n=t.body,h(n)===T&&((r=t.headers?new w(t.headers):new w).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=y(t,{body:m(0,String(n)),headers:m(0,r)}))),o.push(t)),A.apply(this,o)}}),e.exports={URLSearchParams:K,getState:D}},4121:(e,t,n)=>{"use strict";n(8673);var r,o=n(3103),i=n(7400),a=n(7274),u=n(9859),s=n(219),c=n(7487),l=n(7728),f=n(816),d=n(7888),p=n(507),h=n(966).codeAt,g=n(7321),v=n(4555),y=n(523),m=n(6407),E=u.URL,_=y.URLSearchParams,b=y.getState,A=m.set,w=m.getterFor("URL"),C=Math.floor,T=Math.pow,k="Invalid scheme",I="Invalid host",D="Invalid port",O=/[A-Za-z]/,R=/[\d+-.A-Za-z]/,S=/\d/,N=/^(0x|0X)/,L=/^[0-7]+$/,U=/^\d+$/,x=/^[\dA-Fa-f]+$/,P=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,V=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return I;if(!(n=z(t.slice(1,-1))))return I;e.host=n}else if(Z(e)){if(t=g(t),P.test(t))return I;if(null===(n=j(t)))return I;e.host=n}else{if(F.test(t))return I;for(n="",r=p(t),o=0;o<r.length;o++)n+=W(r[o],G);e.host=n}},j=function(e){var t,n,r,o,i,a,u,s=e.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),(t=s.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=s[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=N.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?U:8==i?L:x).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=T(256,5-t))return null}else if(a>255)return null;for(u=n.pop(),r=0;r<n.length;r++)u+=n[r]*T(256,3-r);return u},z=function(e){var t,n,r,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=n=0;n<4&&x.test(d());)t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,c>6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!S.test(d()))return;for(;S.test(d());){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}s[c]=256*s[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;s[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u;else if(8!=c)return;return s},K=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=C(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},G={},q=d({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),H=d({},q,{"#":1,"?":1,"{":1,"}":1}),J=d({},H,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),W=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Y={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Z=function(e){return f(Y,e.scheme)},X=function(e){return""!=e.username||""!=e.password},Q=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},$=function(e,t){var n;return 2==e.length&&O.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&$(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&$(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},re={},oe={},ie={},ae={},ue={},se={},ce={},le={},fe={},de={},pe={},he={},ge={},ve={},ye={},me={},Ee={},_e={},be={},Ae={},we={},Ce=function(e,t,n,o){var i,a,u,s,c,l=n||re,d=0,h="",g=!1,v=!1,y=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(M,"")),t=t.replace(B,""),i=p(t);d<=i.length;){switch(a=i[d],l){case re:if(!a||!O.test(a)){if(n)return k;l=ie;continue}h+=a.toLowerCase(),l=oe;break;case oe:if(a&&(R.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return k;h="",l=ie,d=0;continue}if(n&&(Z(e)!=f(Y,h)||"file"==h&&(X(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(Z(e)&&Y[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?l=ve:Z(e)&&o&&o.scheme==e.scheme?l=ae:Z(e)?l=le:"/"==i[d+1]?(l=ue,d++):(e.cannotBeABaseURL=!0,e.path.push(""),l=be)}break;case ie:if(!o||o.cannotBeABaseURL&&"#"!=a)return k;if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,l=we;break}l="file"==o.scheme?ve:se;continue;case ae:if("/"!=a||"/"!=i[d+1]){l=se;continue}l=fe,d++;break;case ue:if("/"==a){l=de;break}l=_e;continue;case se:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&Z(e))l=ce;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",l=Ae;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),l=_e;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=we}break;case ce:if(!Z(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,l=_e;continue}l=de}else l=fe;break;case le:if(l=fe,"/"!=a||"/"!=h.charAt(d+1))continue;d++;break;case fe:if("/"!=a&&"\\"!=a){l=de;continue}break;case de:if("@"==a){g&&(h="%40"+h),g=!0,u=p(h);for(var m=0;m<u.length;m++){var E=u[m];if(":"!=E||y){var _=W(E,J);y?e.password+=_:e.username+=_}else y=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Z(e)){if(g&&""==h)return"Invalid authority";d-=p(h).length+1,h="",l=pe}else h+=a;break;case pe:case he:if(n&&"file"==e.scheme){l=me;continue}if(":"!=a||v){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Z(e)){if(Z(e)&&""==h)return I;if(n&&""==h&&(X(e)||null!==e.port))return;if(s=V(e,h))return s;if(h="",l=Ee,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),h+=a}else{if(""==h)return I;if(s=V(e,h))return s;if(h="",l=ge,n==he)return}break;case ge:if(!S.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Z(e)||n){if(""!=h){var b=parseInt(h,10);if(b>65535)return D;e.port=Z(e)&&b===Y[e.scheme]?null:b,h=""}if(n)return;l=Ee;continue}return D}h+=a;break;case ve:if(e.scheme="file","/"==a||"\\"==a)l=ye;else{if(!o||"file"!=o.scheme){l=_e;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",l=Ae;else{if("#"!=a){ee(i.slice(d).join(""))||(e.host=o.host,e.path=o.path.slice(),te(e)),l=_e;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=we}}break;case ye:if("/"==a||"\\"==a){l=me;break}o&&"file"==o.scheme&&!ee(i.slice(d).join(""))&&($(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),l=_e;continue;case me:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&$(h))l=_e;else if(""==h){if(e.host="",n)return;l=Ee}else{if(s=V(e,h))return s;if("localhost"==e.host&&(e.host=""),n)return;h="",l=Ee}continue}h+=a;break;case Ee:if(Z(e)){if(l=_e,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=_e,"/"!=a))continue}else e.fragment="",l=we;else e.query="",l=Ae;break;case _e:if(a==r||"/"==a||"\\"==a&&Z(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=h).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(te(e),"/"==a||"\\"==a&&Z(e)||e.path.push("")):ne(h)?"/"==a||"\\"==a&&Z(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&$(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=Ae):"#"==a&&(e.fragment="",l=we)}else h+=W(a,H);break;case be:"?"==a?(e.query="",l=Ae):"#"==a?(e.fragment="",l=we):a!=r&&(e.path[0]+=W(a,G));break;case Ae:n||"#"!=a?a!=r&&("'"==a&&Z(e)?e.query+="%27":e.query+="#"==a?"%23":W(a,G)):(e.fragment="",l=we);break;case we:a!=r&&(e.fragment+=W(a,q))}d++}},Te=function(e){var t,n,r=l(this,Te,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),u=A(r,{type:"URL"});if(void 0!==o)if(o instanceof Te)t=w(o);else if(n=Ce(t={},String(o)))throw TypeError(n);if(n=Ce(u,a,null,t))throw TypeError(n);var s=u.searchParams=new _,c=b(s);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(s)||null},i||(r.href=Ie.call(r),r.origin=De.call(r),r.protocol=Oe.call(r),r.username=Re.call(r),r.password=Se.call(r),r.host=Ne.call(r),r.hostname=Le.call(r),r.port=Ue.call(r),r.pathname=xe.call(r),r.search=Pe.call(r),r.searchParams=Fe.call(r),r.hash=Me.call(r))},ke=Te.prototype,Ie=function(){var e=w(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,u=e.query,s=e.fragment,c=t+":";return null!==o?(c+="//",X(e)&&(c+=n+(r?":"+r:"")+"@"),c+=K(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},De=function(){var e=w(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Z(e)?t+"://"+K(e.host)+(null!==n?":"+n:""):"null"},Oe=function(){return w(this).scheme+":"},Re=function(){return w(this).username},Se=function(){return w(this).password},Ne=function(){var e=w(this),t=e.host,n=e.port;return null===t?"":null===n?K(t):K(t)+":"+n},Le=function(){var e=w(this).host;return null===e?"":K(e)},Ue=function(){var e=w(this).port;return null===e?"":String(e)},xe=function(){var e=w(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Pe=function(){var e=w(this).query;return e?"?"+e:""},Fe=function(){return w(this).searchParams},Me=function(){var e=w(this).fragment;return e?"#"+e:""},Be=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&s(ke,{href:Be(Ie,(function(e){var t=w(this),n=String(e),r=Ce(t,n);if(r)throw TypeError(r);b(t.searchParams).updateSearchParams(t.query)})),origin:Be(De),protocol:Be(Oe,(function(e){var t=w(this);Ce(t,String(e)+":",re)})),username:Be(Re,(function(e){var t=w(this),n=p(String(e));if(!Q(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=W(n[r],J)}})),password:Be(Se,(function(e){var t=w(this),n=p(String(e));if(!Q(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=W(n[r],J)}})),host:Be(Ne,(function(e){var t=w(this);t.cannotBeABaseURL||Ce(t,String(e),pe)})),hostname:Be(Le,(function(e){var t=w(this);t.cannotBeABaseURL||Ce(t,String(e),he)})),port:Be(Ue,(function(e){var t=w(this);Q(t)||(""==(e=String(e))?t.port=null:Ce(t,e,ge))})),pathname:Be(xe,(function(e){var t=w(this);t.cannotBeABaseURL||(t.path=[],Ce(t,e+"",Ee))})),search:Be(Pe,(function(e){var t=w(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ce(t,e,Ae)),b(t.searchParams).updateSearchParams(t.query)})),searchParams:Be(Fe),hash:Be(Me,(function(e){var t=w(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ce(t,e,we)):t.fragment=null}))}),c(ke,"toJSON",(function(){return Ie.call(this)}),{enumerable:!0}),c(ke,"toString",(function(){return Ie.call(this)}),{enumerable:!0}),E){var Ve=E.createObjectURL,je=E.revokeObjectURL;Ve&&c(Te,"createObjectURL",(function(e){return Ve.apply(E,arguments)})),je&&c(Te,"revokeObjectURL",(function(e){return je.apply(E,arguments)}))}v(Te,"URL"),o({global:!0,forced:!a,sham:!i},{URL:Te})},5371:(e,t,n)=>{"use strict";n(3103)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},9824:(e,t,n)=>{var r=n(163);e.exports=r},2660:(e,t,n)=>{var r=n(6916);e.exports=r},3960:(e,t,n)=>{var r=n(6757);e.exports=r},3033:(e,t,n)=>{var r=n(2316);e.exports=r},1009:(e,t,n)=>{var r=n(47);e.exports=r},1362:(e,t,n)=>{var r=n(7944);e.exports=r},3674:(e,t,n)=>{var r=n(6925);e.exports=r},7659:(e,t,n)=>{var r=n(6796);e.exports=r},9290:(e,t,n)=>{var r=n(7080);e.exports=r},7080:(e,t,n)=>{n(4121),n(5371),n(523);var r=n(9276);e.exports=r.URL},6077:e=>{!function(){function t(e,t){var n,r,o,i,a,u,s,c;for(n=3&e.length,r=e.length-n,o=t,a=3432918353,u=461845907,c=0;c<r;)s=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,o=27492+(65535&(i=5*(65535&(o=(o^=s=(65535&(s=(s=(65535&s)*a+(((s>>>16)*a&65535)<<16)&4294967295)<<15|s>>>17))*u+(((s>>>16)*u&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(s=0,n){case 3:s^=(255&e.charCodeAt(c+2))<<16;case 2:s^=(255&e.charCodeAt(c+1))<<8;case 1:o^=s=(65535&(s=(s=(65535&(s^=255&e.charCodeAt(c)))*a+(((s>>>16)*a&65535)<<16)&4294967295)<<15|s>>>17))*u+(((s>>>16)*u&65535)<<16)&4294967295}return o^=e.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0}var n=t;n.v2=function(e,t){for(var n,r=e.length,o=t^r,i=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(n>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:o^=(255&e.charCodeAt(i+2))<<16;case 2:o^=(255&e.charCodeAt(i+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(i)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),(o^=o>>>15)>>>0},n.v3=t,e.exports=n}()},7514:(e,t,n)=>{"use strict";function r(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}function o(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){i(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r)}for(var a=0;a<r.length;a++)i(a,r[a])}))}var i=setTimeout;function a(e){return Boolean(e&&void 0!==e.length)}function u(){}function s(e){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,s._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void f(t.promise,e)}l(t.promise,r)}else(1===e._state?l:f)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof s)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void h((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(t){f(e,t)}var r,o}function f(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&s._immediateFn((function(){e._handled||s._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)c(e,e._deferreds[t]);e._deferreds=null}function p(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function h(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,f(t,e))}))}catch(e){if(n)return;n=!0,f(t,e)}}s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var n=new this.constructor(u);return c(this,new p(e,t,n)),n},s.prototype.finally=r,s.all=function(e){return new s((function(t,n){if(!a(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,(function(t){i(e,t)}),n)}r[e]=a,0==--o&&t(r)}catch(e){n(e)}}for(var u=0;u<r.length;u++)i(u,r[u])}))},s.allSettled=o,s.resolve=function(e){return e&&"object"==typeof e&&e.constructor===s?e:new s((function(t){t(e)}))},s.reject=function(e){return new s((function(t,n){n(e)}))},s.race=function(e){return new s((function(t,n){if(!a(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)s.resolve(e[r]).then(t,n)}))},s._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){i(e,0)},s._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var g=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}();"function"!=typeof g.Promise?g.Promise=s:(g.Promise.prototype.finally||(g.Promise.prototype.finally=r),g.Promise.allSettled||(g.Promise.allSettled=o))},5855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HttpMethod:()=>a,HyperError:()=>v,HyperErrorCode:()=>s,HyperEventType:()=>l,ResponseType:()=>d,create:()=>L,del:()=>S,get:()=>D,make:()=>T,post:()=>O,put:()=>R});var r,o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.create,Object.create,function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(r||(r={}));const a=r;var u;!function(e){e[e.FAILED_REQUEST=0]="FAILED_REQUEST",e[e.FIRST_BYTE_NOT_RECEIVED=1]="FIRST_BYTE_NOT_RECEIVED",e[e.INVALID_CONFIG=2]="INVALID_CONFIG",e[e.MALFORMED_JSON=3]="MALFORMED_JSON",e[e.NETWORK_ERROR=4]="NETWORK_ERROR",e[e.REQUEST_TIMED_OUT=5]="REQUEST_TIMED_OUT",e[e.NO_CONTENT=6]="NO_CONTENT"}(u||(u={}));const s=u;var c;!function(e){e.OPENED="opened",e.FIRST_BYTE="firstbyte",e.PROGRESS="progress",e.ABORTED="aborted",e.COMPLETED="completed",e.ERRORED="errored"}(c||(c={}));const l=c;var f;!function(e){e.JSON="JSON",e.ARRAY_BUFFER="ARRAY_BUFFER",e.TEXT="TEXT",e.NONE="NONE"}(f||(f={}));const d=f,p=function(){function e(){this.country="",this.environment="",this.serviceName="",this.serviceVersion="",this.target="",this.httpClientName="hyper",this.httpClientVersion="0.9.1",Object.seal(this)}return Object.defineProperty(e.prototype,"isSet",{get:function(){var e=this;return 0===Object.keys(this).filter((function(t){return!(e[t]||"string"!=typeof e[t])})).length},enumerable:!1,configurable:!0}),e}(),h=function(){this.maxRetryCount=0,this.retryableErrorCodes=[s.FAILED_REQUEST,s.FIRST_BYTE_NOT_RECEIVED,s.REQUEST_TIMED_OUT,s.NETWORK_ERROR,s.NO_CONTENT],this.retryableStatuses=[408,425,429,500,502,503,504],this.backoffFactor=1.5,this.baseDelayMs=1e3,this.fuzzFactor=1.25,this.timeoutCompletionMs=3e4,this.timeoutFirstByteMs=5e3,Object.seal(this)},g=function(){this.baseUrl="",this.body=null,this.json=null,this.headers={},this.method=a.GET,this.queryParams={},this.responseType=d.JSON,this.token="",this.retry=new h,this.dazn=new p,Object.seal(this)},v=function(e){function t(t,n,r,o){var i=this,a=n instanceof Error?n.message:"string"==typeof n?n:t.toString();return(i=e.call(this,a)||this).code=t,i.status=null!=r?r:-1,i.response=null!=o?o:"",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),y=function(e,t){if(e.baseDelayMs<=0)return 0;var n,r,o,i=e.fuzzFactor>1&&e.backoffFactor>1?(n=1,r=e.fuzzFactor,o=Math.abs(r-n),Math.min(n,r)+Math.random()*o):1,a=e.backoffFactor>1?Math.pow(e.backoffFactor,t):1,u=e.baseDelayMs*a*i;return Math.abs(u)};var m="consumerabort",E=function(e,t,n,r,o,i){return void 0===o&&(o=[]),void 0===i&&(i=0),a=void 0,u=void 0,f=function(){var a,u,c,f,d,p,h,g,_,b,A,w,C,T,k;return function(e,t){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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(I){switch(I.label){case 0:a=-1,u=-1,c=r(e,t,n,o),f=t.retry.timeoutFirstByteMs>0,d=function(){n.removeEventListener(m,d),c.abort(),window.clearTimeout(a),window.clearTimeout(u)},n.addEventListener(m,d),p=new Promise(f?function(e,n){a=window.setTimeout(n,t.retry.timeoutFirstByteMs,new v(s.FIRST_BYTE_NOT_RECEIVED,"First byte not received within "+t.retry.timeoutFirstByteMs+"ms"))}:function(){}),h=new Promise((function(e){return n.addEventListener(l.FIRST_BYTE,(function(){return e()}))})),I.label=1;case 1:return I.trys.push([1,3,,7]),[4,Promise.all([c.done,Promise.race([h,p])])];case 2:return g=I.sent()[0],n.removeEventListener(m,d),[2,g];case 3:return _=I.sent(),A=(b=_).code,w=b.status,C=t.retry.retryableErrorCodes.indexOf(A)>-1,T=A!==s.FAILED_REQUEST||t.retry.retryableStatuses.indexOf(w)>-1,C&&T&&i<t.retry.maxRetryCount?(c.abort(),(k=y(t.retry,i))>0?[4,new Promise((function(e){u=window.setTimeout(e,k)}))]:[3,5]):[3,6];case 4:I.sent(),I.label=5;case 5:return n.removeEventListener(m,d),[2,E(e,t,n,r,o,++i)];case 6:throw n.removeEventListener(m,d),c.abort(),_;case 7:return[2]}}))},new((c=void 0)||(c=Promise))((function(e,t){function n(e){try{o(f.next(e))}catch(e){t(e)}}function r(e){try{o(f.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof c?o:new c((function(e){e(o)}))).then(n,r)}o((f=f.apply(a,u||[])).next())}));var a,u,c,f};const _=function(e,t,n,r){return{done:E(e,t,n,r),abort:function(){return n.dispatchEvent(new CustomEvent(m))}}};var b;!function(e){e.ARRAY_BUFFER="arraybuffer",e.TEXT="text"}(b||(b={}));const A=b,w=function(e,t){return[t,e.serviceName+"/"+e.serviceVersion,e.httpClientName+"/"+e.httpClientVersion,"("+e.target+"; "+e.environment+"; "+e.country+")"].join(" ")},C=function(e,t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o={xhr:new XMLHttpRequest,renderDaznUserAgentHeader:w});var u=o.xhr,c=Date.now(),f={id:Math.floor(16777215*Math.random()).toString(16).toUpperCase(),waitingDurationMs:1/0,totalDurationMs:1/0,downloadDurationMs:1/0,totalBytes:0,transferredBytes:0,lastChunkBytes:0,statuses:r},p=function(e){var t=new CustomEvent(e,{detail:i({},f)});n.dispatchEvent(t)},h=new Promise((function(n,r){var i,h=t.baseUrl+e+function(e,t){if(0===Object.keys(e).length)return"";var n=Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&");return(t.match(/\?/)?"&":"?")+n}(t.queryParams,e);if(h){if(u.open(t.method.toUpperCase(),h,!0),u.timeout=t.retry.timeoutCompletionMs,u.responseType=(i={},i[d.ARRAY_BUFFER]=A.ARRAY_BUFFER,i[d.JSON]=A.TEXT,i[d.TEXT]=A.TEXT,i[d.NONE]=A.TEXT,i)[t.responseType],u.onerror=function(e){f.statuses.push(-1),p(l.ERRORED),r(new v(s.NETWORK_ERROR,e))},u.ontimeout=function(e){f.statuses.push(-1),p(l.ERRORED),r(new v(s.REQUEST_TIMED_OUT,e))},t.token&&(t.headers.Authorization="Bearer "+t.token),t.dazn.isSet){var g=o.renderDaznUserAgentHeader(t.dazn,window.navigator.userAgent);t.headers["X-DAZN-UA"]=g,t.headers["User-Agent"]=g}for(var y in t.json&&(t.body=JSON.stringify(t.json),t.headers["Content-Type"]="application/json"),t.headers)u.setRequestHeader(y,t.headers[y]);u.onreadystatechange=function(){u.readyState===XMLHttpRequest.HEADERS_RECEIVED&&(f.waitingDurationMs=Date.now()-c,p(l.FIRST_BYTE))},u.onprogress=function(e){f.totalBytes=e.total;var t=e.loaded-f.transferredBytes;f.transferredBytes=e.loaded,f.lastChunkBytes=t,p(l.PROGRESS)},u.onload=function(){if(f.statuses.push(u.status),u.status>=400){var e=t.responseType===d.ARRAY_BUFFER?"":u.responseText;return p(l.ERRORED),void r(new v(s.FAILED_REQUEST,u.status,u.status,e))}var o=0;switch(t.responseType){case d.NONE:n(void 0);break;case d.JSON:try{var i=JSON.parse(u.responseText);n(i)}catch(e){r(new v(s.MALFORMED_JSON,e,u.status,u.responseText))}break;case d.TEXT:var g=u.responseText;g||t.method!==a.GET?n(g):r(new v(s.NO_CONTENT,'No content received for GET request to URL "'+h+'"'));break;case d.ARRAY_BUFFER:o=(i=new Uint8Array(u.response)).length,n(i)}f.totalBytes=f.totalBytes||f.transferredBytes||o,f.totalDurationMs=Date.now()-c,f.downloadDurationMs=f.totalDurationMs-f.waitingDurationMs,p(l.COMPLETED)},Promise.resolve().then((function(){u.send(t.body),p(l.OPENED)}))}else r(new v(s.INVALID_CONFIG,"Invalid path"))}));return{addEventListener:n.addEventListener.bind(n),removeEventListener:n.removeEventListener.bind(n),done:h,abort:function(){u.readyState!==XMLHttpRequest.DONE&&(u.abort(),p(l.ABORTED))}}},T=function(e,t,n){var r,o;void 0===t&&(t={}),void 0===n&&(n={requestWithRetries:_,eventTarget:document.createDocumentFragment()});var a=new g,u=[];try{var c=i(new h,null!==(r=t.retry)&&void 0!==r?r:{}),l=i(new p,null!==(o=t.dazn)&&void 0!==o?o:{});i(a,t),a.retry=c,a.dazn=l}catch(e){throw new v(s.INVALID_CONFIG,e)}var f=n.requestWithRetries(e,a,n.eventTarget,C);return f.done.catch((function(){})).finally((function(){for(;u.length>0;){var e=u.pop(),t=e[0],r=e[1];n.eventTarget.removeEventListener(t,r)}})),{addEventListener:function(e,t){u.push([e,t]),n.eventTarget.addEventListener(e,t)},removeEventListener:n.eventTarget.removeEventListener.bind(n.eventTarget),done:f.done,abort:f.abort}};var k,I=function(e){return function(t,n){return void 0===n&&(n={}),T(t,i(i({},n),{method:e})).done}},D=I(a.GET),O=I(a.POST),R=I(a.PUT),S=I(a.DELETE),N=((k={})[a.GET]=D,k[a.DELETE]=S,k[a.POST]=O,k[a.PUT]=R,k),L=function(e,t){return function(n){return void 0===n&&(n={}),N[t.method](e,i(i({},t),n))}}},3331:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.StartupClient=void 0;var l=n(5855),f=n(9893),d=i(n(9893)),p=n(6190);a(n(6190),t),a(n(5451),t),a(n(9893),t);var h=function(){function e(t){var n,r;this.startupURL=e.getStartupURL(t.environment),this.timeout=null!==(n=t.timeout)&&void 0!==n?n:e.DEFAULT_TIMEOUT_MS,this.retries=null!==(r=t.retries)&&void 0!==r?r:e.DEFAULT_RETRIES,this.cache=this.checkValidCacheOption(t.cache)}return e.getStartupURL=function(e){switch(e){case p.StartupEnvironment.DEV:case p.StartupEnvironment.STAGE:return"https://startup.core.dazn-".concat(e,".com/misl/v5/Startup");case p.StartupEnvironment.PROD:return"https://startup.core.indazn.com/misl/v5/Startup";default:throw new f.OptionsError}},e.prototype.checkValidCacheOption=function(e){if(void 0===e)throw new d.NoCacheError;if(!("setItem"in e)||"function"!=typeof e.setItem)throw new d.CacheInterfaceNotImplemented("setItem");if(!("getItem"in e)||"function"!=typeof e.getItem)throw new d.CacheInterfaceNotImplemented("getItem");return e},e.prototype.get=function(t){return u(this,void 0,void 0,(function(){var n,r,o,i,a,u,l;return s(this,(function(s){switch(s.label){case 0:n=t.SessionId,r=c(t,["SessionId"]),o=this.generateRequestBody(r),i={"Content-Type":"application/json","x-session-id":n},s.label=1;case 1:return s.trys.push([1,4,,6]),[4,this.sendRequest(o,i)];case 2:return a=s.sent(),[4,this.cache.setItem(e.CACHE_KEY,JSON.stringify(a))];case 3:return s.sent(),[3,6];case 4:return u=s.sent(),[4,this.cache.getItem(e.CACHE_KEY)];case 5:if(null!==(l=s.sent()))return[2,JSON.parse(l)];throw u;case 6:return[2,a]}}))}))},e.prototype.getWithMarcoPolo=function(e,t){return u(this,void 0,void 0,(function(){var n,r,o,i;return s(this,(function(a){if(n=e.SessionId,r=c(e,["SessionId"]),o=this.generateRequestBody(r),!Boolean(t))throw new f.DeviceIdError("device id required");return i={"Content-Type":"application/json","x-session-id":n,"x-dazn-marco":"","x-dazn-device":t},[2,this.sendRequest(o,i)]}))}))},e.prototype.sendRequest=function(t,n){return u(this,void 0,void 0,(function(){var r,o;return s(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,(0,l.make)(this.startupURL,{headers:n,body:t,method:l.HttpMethod.POST,responseType:l.ResponseType.JSON,retry:{maxRetryCount:this.retries,baseDelayMs:e.DEFAULT_BACKOFF_MS,backoffFactor:e.DEFAULT_BACKOFF_FACTOR,timeoutCompletionMs:this.timeout}}).done];case 1:return[2,i.sent()];case 2:switch(r=i.sent(),(o=r).code){case l.HyperErrorCode.FAILED_REQUEST:throw new f.StartupFailedRequestError(o.status,o.response,o);case l.HyperErrorCode.MALFORMED_JSON:throw new f.JSONParseError(o);case l.HyperErrorCode.NETWORK_ERROR:throw new f.NetworkError(o);case l.HyperErrorCode.REQUEST_TIMED_OUT:throw new f.RequestTimedOutError(o)}throw o;case 3:return[2]}}))}))},e.prototype.validateRequestBody=function(e){var t=e.LandingPageKey,n=e.Platform,r=[];if(Boolean(t)||r.push("LandingPageKey is incorrect, you passed: ".concat(t)),Boolean(n)||r.push("Platform is incorrect, you passed: ".concat(n)),r.length>0)throw new f.ParamsValidationError([String(r)])},e.prototype.generateRequestBody=function(e){return this.validateRequestBody(e),JSON.stringify(e)},e.CACHE_KEY="startup_client",e.DEFAULT_TIMEOUT_MS=5e3,e.DEFAULT_RETRIES=2,e.DEFAULT_BACKOFF_MS=100,e.DEFAULT_BACKOFF_FACTOR=2,e}();t.StartupClient=h},8679:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomError=void 0;var o=function(e){function t(t,n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return r(t,e),t}(Error);t.CustomError=o},9893:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CacheInterfaceNotImplemented=t.NoCacheError=t.RequestTimedOutError=t.OptionsError=t.NetworkError=t.StartupFailedRequestError=t.JSONParseError=t.ParamsValidationError=t.DeviceIdError=void 0;var i=n(8679),a=function(e){function t(n){return e.call(this,t,n)||this}return o(t,e),t}(i.CustomError);t.DeviceIdError=a;var u=function(e){function t(n){return e.call(this,t,JSON.stringify(n))||this}return o(t,e),t}(i.CustomError);t.ParamsValidationError=u;var s=function(e){function t(n){var r=e.call(this,t,"Failed to parse JSON response")||this;return r.OriginalError=n,r}return o(t,e),t}(i.CustomError);t.JSONParseError=s;var c=function(e){function t(n,r,o){var i=e.call(this,t,"Encountered error contacting Startup service, Code: ".concat(n,", Message: ").concat(r))||this;return i.OriginalError=o,i}return o(t,e),t}(i.CustomError);t.StartupFailedRequestError=c;var l=function(e){function t(n){var r=e.call(this,t,"A network error prevented the request")||this;return r.OriginalError=n,r}return o(t,e),t}(i.CustomError);t.NetworkError=l;var f=function(e){function t(){return e.call(this,t,"Startup ENV can only be dev, stage or prod")||this}return o(t,e),t}(i.CustomError);t.OptionsError=f;var d=function(e){function t(n){var r=e.call(this,t,"Request timed out")||this;return r.OriginalError=n,r}return o(t,e),t}(i.CustomError);t.RequestTimedOutError=d;var p=function(e){function t(){return e.call(this,t,"Cache has not been passed in, this is required!")||this}return o(t,e),t}(i.CustomError);t.NoCacheError=p;var h=function(e){function t(n){var r=e.call(this,t,"Cache has not implemented required function: ".concat(n))||this;return r.OriginalError=n,r}return o(t,e),t}(i.CustomError);t.CacheInterfaceNotImplemented=h},5451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6190:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StartupEnvironment=void 0,(n=t.StartupEnvironment||(t.StartupEnvironment={})).DEV="dev",n.STAGE="stage",n.PROD="prod"},6155:(e,t,n)=>{"use strict";e.exports=function(e,t){if("undefined"==typeof document)return function(){};if((t=t||{}).attributes="object"==typeof t.attributes?t.attributes:{},void 0===t.attributes.nonce){var r=n.nc;r&&(t.attributes.nonce=r)}var o=document.createElement("link");return o.rel="stylesheet",o.href=e,Object.keys(t.attributes).forEach((function(e){o.setAttribute(e,t.attributes[e])})),t.insert(o),function(e){"string"==typeof e?o.href=e:o.parentNode.removeChild(o)}}},6793:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",n.nc=void 0,(()=>{"use strict";var e=n(6155),t=n.n(e),r=n(6793),o=n.n(r);const i=n.p+"static/main-29.151.0-1316854eb3135b2b0a5b424aad0aa0a2.css";var a={attributes:{class:"protected"}};a.insert=o().bind(null,"head"),t()(i,a),n(3674),n(7659),n(3960),n(9824),n(2660),n(1009),n(1362),n(9290),n(3033);var u="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==u&&u,s="URLSearchParams"in u,c="Symbol"in u&&"iterator"in Symbol,l="FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch(e){return!1}}(),f="FormData"in u,d="ArrayBuffer"in u;if(d)var p=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(e){return e&&p.indexOf(Object.prototype.toString.call(e))>-1};function g(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function v(e){return"string"!=typeof e&&(e=String(e)),e}function y(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return c&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function E(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function _(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function b(e){var t=new FileReader,n=_(t);return t.readAsArrayBuffer(e),n}function A(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:l&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:f&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:s&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():d&&l&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=A(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d&&(ArrayBuffer.prototype.isPrototypeOf(e)||h(e))?this._bodyArrayBuffer=A(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):s&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l&&(this.blob=function(){var e=E(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?E(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(b)}),this.text=function(){var e,t,n,r=E(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=_(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=g(e),t=v(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[g(e)]},m.prototype.get=function(e){return e=g(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(g(e))},m.prototype.set=function(e,t){this.map[g(e)]=v(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),y(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),y(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),y(e)},c&&(m.prototype[Symbol.iterator]=m.prototype.entries);var C=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function T(e,t){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof T){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),C.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function I(e,t){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})},w.call(T.prototype),w.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},I.error=function(){var e=new I(null,{status:0,statusText:""});return e.type="error",e};var D=[301,302,303,307,308];I.redirect=function(e,t){if(-1===D.indexOf(t))throw new RangeError("Invalid status code");return new I(null,{status:t,headers:{location:e}})};var O=u.DOMException;try{new O}catch(e){(O=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),O.prototype.constructor=O}function R(e,t){return new Promise((function(n,r){var o=new T(e,t);if(o.signal&&o.signal.aborted)return r(new O("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new I(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new O("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&u.location.href?u.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(l?i.responseType="blob":d&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof m?o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){i.setRequestHeader(e,v(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}R.polyfill=!0,u.fetch||(u.fetch=R,u.Headers=m,u.Request=T,u.Response=I),n(7514),function(){if("function"!=typeof window.CustomEvent){var e={bubbles:!1,cancelable:!1,detail:void 0};t.prototype=window.Event.prototype,window.CustomEvent=t}function t(t,n){var r=Object.assign({},e,n),o=r.bubbles,i=r.cancelable,a=r.detail,u=document.createEvent("CustomEvent");return u.initCustomEvent&&u.initCustomEvent(t,o,i,a),u}}();const S=JSON.parse('{"resourcesBaseUrl":"/chapters","UILanguageKey":"UI.language","tokenStorageKey":"MISL.authToken","globalNamespaceKey":"dazn","resourceStringLinkOverrides":{},"defaultActiveUserTypes":["ActiveGrace","ActivePaid","FreeTrial"],"countries":{"native":["de","at","ch","lu","li","it","es","jp","us","ca","br"],"mapped":{"va":"it","sm":"it","pr":"us","gg":"gb","gi":"gb","im":"gb","je":"gb","as":"us"},"disabled":["mm","cu","cn","ir","kp","sy","sd","eg","xk","ae","sa"]},"defaultAnonymousChapters":{"ch":"landingpage","at":"landingpage","de":"landingpage","lu":"landingpage","li":"landingpage","it":"landingpage","us":"landingpage","br":"landingpage","es":"landingpage","ca":"landingpage","jp":"catalog","mena":"catalog","moon":"landingpage"},"environment":"production","features":{"storage":true},"rootAuthorizedChapter":"catalog","unauthorizedChapter":"landingpage","loginChapter":"signin","onLogoutChapter":"signin","safeMode":{"V3":{"AWS":{"homePageURL":"https://lite.dazn.com","statusURL":"https://lite.dazn.com/api/status","source":"AWS","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAAClCAAAAAAYQGIGAAABaElEQVR42u3bwbKCMBAEQP7/p5/3VxJmiUYWOieqFNIclqxD3P46jI2SkpKSkpKSkpKSkvKzyu14/Pvyu3Onr0xJ2VW5X3BDVumW0nkpKRsq3023ezSu7NKVKSmfowzKm5KS8sRMF6hxSsrlyvQeAtbPumBKyuXKIIE4ebQ4gaGkXKmM4+7jjPAC6T8l5UplUJNjedqRBtejpOylnC7RevEf3DolZStl0C2efDVV+qFHSdlLuTtnGmGclFNS3kQ5s/ztNplpwk5J2VqZLnBBsZYCRUrK/spg5QuqOI01pp5ElJRXVI7DvvEk49M+3l9SUl5bGdRu8EBIdxFRUjZUluLzevEHSyIlZVdlfdfPzM+xb+96oqRcrkzfVI2B9dSdkvImytK/kMbnBrEGJeUTlUH0XgoKKSkfoSztnAiWSUrKmyhLnwZ7I8ZFTUl5E2W9M5xuNykp+ysvNygpKSkpKSkpKSkpKc+PFzpGp1s6UkioAAAAAElFTkSuQmCC"},"GCP":{"homePageURL":"https://safe.dazn.com","statusURL":"https://safe.dazn.com/status/","source":"GCP","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAAClCAAAAAAYQGIGAAABaElEQVR42u3aQXKDMBAEQP7/6eSekvAsogQbt07Y2HJzWLMadPx0GAclJSUlJSUlJSUlJeW9yuPz+PPh6dHKzJSUXZXzgjsljDDrM1NS9lOOfm56NuUHM1NSfpnyvLwpKSmHZz8srl5S45SUO5XpNYzWX6OpnuiCKSm3K4ME4uLR5gSGknKnMo67w6Dw2fSfknKnMqjJ9A+hPh8l5T9RBu9Ns43pd9PpKSkbKoN7YOAIcsM0JqGk7KosRYbpy/Vsg5Lyjco0+0s7zVLdU1L2V6Y9Yr2hLO3fo6RsqExXYvUb5k39JSVlA+U5Ol2inX93/ckzJeXLlGklBieC1H09/aekfFpZeqZ793VRUrZWlnb9BITSHiNKyv7KtLLrz6zqqTslZUPl8g7WtL+kpKRMbrZBUEhJ+T3Kq4lfmHJQUjZUpql7fYt42odSUjZU1jvD8/KuoykpGypfNygpKSkpKSkpKSkpKa+PXzaKrkYRfz2kAAAAAElFTkSuQmCC"},"GCPFireDrill":{"homePageURL":"https://safe.dazn.com?group=TEST","statusURL":"https://safe.dazn.com/status/","source":"GCP_FIREDRILL","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALkAAAC5CAAAAABRxsGAAAAByUlEQVR42u3c0W7CMAwF0P7/T7PHSRNN73XZWOnpE1JHczIJx7ED2+Oq10ZOTk5OTk5OTk5OTk7+KfLt+Pr+ux+vnj1gfSMdjZyc/PHMsXu3msjuk9PRyMnJ923B6LuxYD25fjRycvLkWbtRJog85OTkfxJbqnkF/wlycvIX5efrsBJsmd+2syAnv7x8WOMavvoH1Tly8qvI41ZNsEYfE97R4SInv7J8vVAP0+ugApa+g5ycfEtS5ON6dLrI910kcvLbytfr9rAene6+g7BCTk5+KqxUndx+IHJy8u4wRN/JDWLadO9PTn5reTrIOjWvsnxycvLkM56kzcdd2+GpC3Jy8mmfaJiLpxtvcnLypNDVR4q0CVQdVSQnJz91rKl6W7/wk5PfWz48t5/WvdJQM6hxkZPfQd73YIO7w1BDTk6epObrAFN9Uyd4FDk5+YtqXGlRuu8O/XYVmpz8ovL0c18t8lV3aFrjIie/jbwvflVzTQ88nvq2Ajn5h8uD9s3w9GHfYyInJ+/k6VmpIEmv8nhycvLBrxSmc0jL2OTk5Od/A22dWVe76hRNTk4e74f7eNP3ecnJya92kZOTk5OTk5OTk5OTk1/x+gLj4DHAodOsSAAAAABJRU5ErkJggg=="}},"V4":{"AWS":{"homePageURL":"https://lite.dazn.com","statusURL":"https://lite.dazn.com/api/status","source":"AWS","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAAClCAAAAAAYQGIGAAABaElEQVR42u3bwbKCMBAEQP7/p5/3VxJmiUYWOieqFNIclqxD3P46jI2SkpKSkpKSkpKSkvKzyu14/Pvyu3Onr0xJ2VW5X3BDVumW0nkpKRsq3023ezSu7NKVKSmfowzKm5KS8sRMF6hxSsrlyvQeAtbPumBKyuXKIIE4ebQ4gaGkXKmM4+7jjPAC6T8l5UplUJNjedqRBtejpOylnC7RevEf3DolZStl0C2efDVV+qFHSdlLuTtnGmGclFNS3kQ5s/ztNplpwk5J2VqZLnBBsZYCRUrK/spg5QuqOI01pp5ElJRXVI7DvvEk49M+3l9SUl5bGdRu8EBIdxFRUjZUluLzevEHSyIlZVdlfdfPzM+xb+96oqRcrkzfVI2B9dSdkvImytK/kMbnBrEGJeUTlUH0XgoKKSkfoSztnAiWSUrKmyhLnwZ7I8ZFTUl5E2W9M5xuNykp+ysvNygpKSkpKSkpKSkpKc+PFzpGp1s6UkioAAAAAElFTkSuQmCC"},"GCP":{"homePageURL":"https://safe.dazn.com/v4/","statusURL":"https://safe.dazn.com/v4/status/","source":"GCP","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAAClCAAAAAAYQGIGAAABaElEQVR42u3aQXKDMBAEQP7/6eSekvAsogQbt07Y2HJzWLMadPx0GAclJSUlJSUlJSUlJeW9yuPz+PPh6dHKzJSUXZXzgjsljDDrM1NS9lOOfm56NuUHM1NSfpnyvLwpKSmHZz8srl5S45SUO5XpNYzWX6OpnuiCKSm3K4ME4uLR5gSGknKnMo67w6Dw2fSfknKnMqjJ9A+hPh8l5T9RBu9Ns43pd9PpKSkbKoN7YOAIcsM0JqGk7KosRYbpy/Vsg5Lyjco0+0s7zVLdU1L2V6Y9Yr2hLO3fo6RsqExXYvUb5k39JSVlA+U5Ol2inX93/ckzJeXLlGklBieC1H09/aekfFpZeqZ793VRUrZWlnb9BITSHiNKyv7KtLLrz6zqqTslZUPl8g7WtL+kpKRMbrZBUEhJ+T3Kq4lfmHJQUjZUpql7fYt42odSUjZU1jvD8/KuoykpGypfNygpKSkpKSkpKSkpKa+PXzaKrkYRfz2kAAAAAElFTkSuQmCC"},"GCPFireDrill":{"homePageURL":"https://safe.dazn.com/v4/?group=TEST","statusURL":"https://safe.dazn.com/v4/status/","source":"GCP_FIREDRILL","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALkAAAC5CAAAAABRxsGAAAAByUlEQVR42u3c0W7CMAwF0P7/T7PHSRNN73XZWOnpE1JHczIJx7ED2+Oq10ZOTk5OTk5OTk5OTk7+KfLt+Pr+ux+vnj1gfSMdjZyc/PHMsXu3msjuk9PRyMnJ923B6LuxYD25fjRycvLkWbtRJog85OTkfxJbqnkF/wlycvIX5efrsBJsmd+2syAnv7x8WOMavvoH1Tly8qvI41ZNsEYfE97R4SInv7J8vVAP0+ugApa+g5ycfEtS5ON6dLrI910kcvLbytfr9rAene6+g7BCTk5+KqxUndx+IHJy8u4wRN/JDWLadO9PTn5reTrIOjWvsnxycvLkM56kzcdd2+GpC3Jy8mmfaJiLpxtvcnLypNDVR4q0CVQdVSQnJz91rKl6W7/wk5PfWz48t5/WvdJQM6hxkZPfQd73YIO7w1BDTk6epObrAFN9Uyd4FDk5+YtqXGlRuu8O/XYVmpz8ovL0c18t8lV3aFrjIie/jbwvflVzTQ88nvq2Ajn5h8uD9s3w9GHfYyInJ+/k6VmpIEmv8nhycvLBrxSmc0jL2OTk5Od/A22dWVe76hRNTk4e74f7eNP3ecnJya92kZOTk5OTk5OTk5OTk1/x+gLj4DHAodOsSAAAAABJRU5ErkJggg=="}}},"target":"web","environmentGroup":"beta","chapters":{"auth":{"name":"auth","homePage":"account/signup","usePortability":false,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["account","tvcode","tv","vip","start"],"restrictToVip":false},"signin":{"name":"signin","homePage":"signin","usePortability":false,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["signin"],"restrictToVip":false},"catalog":{"name":"catalog","homePage":"home","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["home","settings","schedule","search","clips","data","watchparty","show","fixture","fixture-lite","news","articles","app-report","bet","fun","betslip","sport","competition","competitor","tournament","tournamentcalendar","allsports","ppv","player","catalogtv","tickets","live-tv","nfl-tickets","upgrade-premium","tvqrbet"],"restrictToVip":false,"rewriteUrlLocaleOverrideMap":{"\\\\/articles$":false,"\\\\/articles\\\\/":false,"\\\\/news$":false,"\\\\/news\\\\/":false}},"preferences":{"name":"preferences","homePage":"preferences","usePortability":false,"useSignUpCountry":true,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":false,"urlIdentifiers":["preferences"],"restrictToVip":false},"help":{"name":"help","homePage":"help","linkKey":"Help","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":true,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["help","contactus"],"restrictToVip":false},"landingpage":{"name":"landingpage","homePage":"welcome","usePortability":false,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":false,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["welcome","l","p","c","nfl-game-pass","redeem","welcome-back"],"restrictToVip":false},"account":{"name":"account","homePage":"myaccount","linkKey":"MyAccount","usePortability":false,"useSignUpCountry":true,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":false,"allowedUserStatuses":["ActiveGrace","ActivePaid","FreeTrial","Paused","Partial","Frozen","Expired"],"restrictToVip":false,"urlIdentifiers":["myaccount"]},"picks":{"name":"picks","homePage":"picks","linkKey":"picks","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":true,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["picks"],"restrictToVip":false},"news":{"name":"news","homePage":"news","linkKey":"news","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":true,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["news"],"restrictToVip":false},"partners":{"name":"partners","homePage":"partners","linkKey":"partners","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":true,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["partners"],"restrictToVip":false}}}'),N=JSON.parse('{"resourcesBaseUrl":"/chapters","UILanguageKey":"UI.language","tokenStorageKey":"MISL.authToken","globalNamespaceKey":"dazn","resourceStringLinkOverrides":{},"defaultActiveUserTypes":["ActiveGrace","ActivePaid","FreeTrial"],"countries":{"native":["de","at","ch","lu","li","it","es","jp","us","ca","br"],"mapped":{"va":"it","sm":"it","pr":"us","gg":"gb","gi":"gb","im":"gb","je":"gb","as":"us"},"disabled":["mm","cu","cn","ir","kp","sy","sd","eg","xk","ae","sa"]},"defaultAnonymousChapters":{"ch":"landingpage","at":"landingpage","de":"landingpage","lu":"landingpage","li":"landingpage","it":"landingpage","us":"landingpage","br":"landingpage","es":"landingpage","ca":"landingpage","jp":"catalog","mena":"catalog","moon":"landingpage"},"environment":"production","features":{"storage":true},"rootAuthorizedChapter":"catalog","unauthorizedChapter":"landingpage","loginChapter":"signin","onLogoutChapter":"signin","safeMode":{"V3":{"AWS":{"homePageURL":"https://lite.dazn.com","statusURL":"https://lite.dazn.com/api/status","source":"AWS","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAAClCAAAAAAYQGIGAAABaElEQVR42u3bwbKCMBAEQP7/p5/3VxJmiUYWOieqFNIclqxD3P46jI2SkpKSkpKSkpKSkvKzyu14/Pvyu3Onr0xJ2VW5X3BDVumW0nkpKRsq3023ezSu7NKVKSmfowzKm5KS8sRMF6hxSsrlyvQeAtbPumBKyuXKIIE4ebQ4gaGkXKmM4+7jjPAC6T8l5UplUJNjedqRBtejpOylnC7RevEf3DolZStl0C2efDVV+qFHSdlLuTtnGmGclFNS3kQ5s/ztNplpwk5J2VqZLnBBsZYCRUrK/spg5QuqOI01pp5ElJRXVI7DvvEk49M+3l9SUl5bGdRu8EBIdxFRUjZUluLzevEHSyIlZVdlfdfPzM+xb+96oqRcrkzfVI2B9dSdkvImytK/kMbnBrEGJeUTlUH0XgoKKSkfoSztnAiWSUrKmyhLnwZ7I8ZFTUl5E2W9M5xuNykp+ysvNygpKSkpKSkpKSkpKc+PFzpGp1s6UkioAAAAAElFTkSuQmCC"},"GCP":{"homePageURL":"https://safe.dazn.com","statusURL":"https://safe.dazn.com/status/","source":"GCP","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAAClCAAAAAAYQGIGAAABaElEQVR42u3aQXKDMBAEQP7/6eSekvAsogQbt07Y2HJzWLMadPx0GAclJSUlJSUlJSUlJeW9yuPz+PPh6dHKzJSUXZXzgjsljDDrM1NS9lOOfm56NuUHM1NSfpnyvLwpKSmHZz8srl5S45SUO5XpNYzWX6OpnuiCKSm3K4ME4uLR5gSGknKnMo67w6Dw2fSfknKnMqjJ9A+hPh8l5T9RBu9Ns43pd9PpKSkbKoN7YOAIcsM0JqGk7KosRYbpy/Vsg5Lyjco0+0s7zVLdU1L2V6Y9Yr2hLO3fo6RsqExXYvUb5k39JSVlA+U5Ol2inX93/ckzJeXLlGklBieC1H09/aekfFpZeqZ793VRUrZWlnb9BITSHiNKyv7KtLLrz6zqqTslZUPl8g7WtL+kpKRMbrZBUEhJ+T3Kq4lfmHJQUjZUpql7fYt42odSUjZU1jvD8/KuoykpGypfNygpKSkpKSkpKSkpKa+PXzaKrkYRfz2kAAAAAElFTkSuQmCC"},"GCPFireDrill":{"homePageURL":"https://safe.dazn.com?group=TEST","statusURL":"https://safe.dazn.com/status/","source":"GCP_FIREDRILL","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALkAAAC5CAAAAABRxsGAAAAByUlEQVR42u3c0W7CMAwF0P7/T7PHSRNN73XZWOnpE1JHczIJx7ED2+Oq10ZOTk5OTk5OTk5OTk7+KfLt+Pr+ux+vnj1gfSMdjZyc/PHMsXu3msjuk9PRyMnJ923B6LuxYD25fjRycvLkWbtRJog85OTkfxJbqnkF/wlycvIX5efrsBJsmd+2syAnv7x8WOMavvoH1Tly8qvI41ZNsEYfE97R4SInv7J8vVAP0+ugApa+g5ycfEtS5ON6dLrI910kcvLbytfr9rAene6+g7BCTk5+KqxUndx+IHJy8u4wRN/JDWLadO9PTn5reTrIOjWvsnxycvLkM56kzcdd2+GpC3Jy8mmfaJiLpxtvcnLypNDVR4q0CVQdVSQnJz91rKl6W7/wk5PfWz48t5/WvdJQM6hxkZPfQd73YIO7w1BDTk6epObrAFN9Uyd4FDk5+YtqXGlRuu8O/XYVmpz8ovL0c18t8lV3aFrjIie/jbwvflVzTQ88nvq2Ajn5h8uD9s3w9GHfYyInJ+/k6VmpIEmv8nhycvLBrxSmc0jL2OTk5Od/A22dWVe76hRNTk4e74f7eNP3ecnJya92kZOTk5OTk5OTk5OTk1/x+gLj4DHAodOsSAAAAABJRU5ErkJggg=="}},"V4":{"AWS":{"homePageURL":"https://lite.dazn.com","statusURL":"https://lite.dazn.com/api/status","source":"AWS","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAAClCAAAAAAYQGIGAAABaElEQVR42u3bwbKCMBAEQP7/p5/3VxJmiUYWOieqFNIclqxD3P46jI2SkpKSkpKSkpKSkvKzyu14/Pvyu3Onr0xJ2VW5X3BDVumW0nkpKRsq3023ezSu7NKVKSmfowzKm5KS8sRMF6hxSsrlyvQeAtbPumBKyuXKIIE4ebQ4gaGkXKmM4+7jjPAC6T8l5UplUJNjedqRBtejpOylnC7RevEf3DolZStl0C2efDVV+qFHSdlLuTtnGmGclFNS3kQ5s/ztNplpwk5J2VqZLnBBsZYCRUrK/spg5QuqOI01pp5ElJRXVI7DvvEk49M+3l9SUl5bGdRu8EBIdxFRUjZUluLzevEHSyIlZVdlfdfPzM+xb+96oqRcrkzfVI2B9dSdkvImytK/kMbnBrEGJeUTlUH0XgoKKSkfoSztnAiWSUrKmyhLnwZ7I8ZFTUl5E2W9M5xuNykp+ysvNygpKSkpKSkpKSkpKc+PFzpGp1s6UkioAAAAAElFTkSuQmCC"},"GCP":{"homePageURL":"https://safe.dazn.com/v4/","statusURL":"https://safe.dazn.com/v4/status/","source":"GCP","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAAClCAAAAAAYQGIGAAABaElEQVR42u3aQXKDMBAEQP7/6eSekvAsogQbt07Y2HJzWLMadPx0GAclJSUlJSUlJSUlJeW9yuPz+PPh6dHKzJSUXZXzgjsljDDrM1NS9lOOfm56NuUHM1NSfpnyvLwpKSmHZz8srl5S45SUO5XpNYzWX6OpnuiCKSm3K4ME4uLR5gSGknKnMo67w6Dw2fSfknKnMqjJ9A+hPh8l5T9RBu9Ns43pd9PpKSkbKoN7YOAIcsM0JqGk7KosRYbpy/Vsg5Lyjco0+0s7zVLdU1L2V6Y9Yr2hLO3fo6RsqExXYvUb5k39JSVlA+U5Ol2inX93/ckzJeXLlGklBieC1H09/aekfFpZeqZ793VRUrZWlnb9BITSHiNKyv7KtLLrz6zqqTslZUPl8g7WtL+kpKRMbrZBUEhJ+T3Kq4lfmHJQUjZUpql7fYt42odSUjZU1jvD8/KuoykpGypfNygpKSkpKSkpKSkpKa+PXzaKrkYRfz2kAAAAAElFTkSuQmCC"},"GCPFireDrill":{"homePageURL":"https://safe.dazn.com/v4/?group=TEST","statusURL":"https://safe.dazn.com/v4/status/","source":"GCP_FIREDRILL","homePageQRBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALkAAAC5CAAAAABRxsGAAAAByUlEQVR42u3c0W7CMAwF0P7/T7PHSRNN73XZWOnpE1JHczIJx7ED2+Oq10ZOTk5OTk5OTk5OTk7+KfLt+Pr+ux+vnj1gfSMdjZyc/PHMsXu3msjuk9PRyMnJ923B6LuxYD25fjRycvLkWbtRJog85OTkfxJbqnkF/wlycvIX5efrsBJsmd+2syAnv7x8WOMavvoH1Tly8qvI41ZNsEYfE97R4SInv7J8vVAP0+ugApa+g5ycfEtS5ON6dLrI910kcvLbytfr9rAene6+g7BCTk5+KqxUndx+IHJy8u4wRN/JDWLadO9PTn5reTrIOjWvsnxycvLkM56kzcdd2+GpC3Jy8mmfaJiLpxtvcnLypNDVR4q0CVQdVSQnJz91rKl6W7/wk5PfWz48t5/WvdJQM6hxkZPfQd73YIO7w1BDTk6epObrAFN9Uyd4FDk5+YtqXGlRuu8O/XYVmpz8ovL0c18t8lV3aFrjIie/jbwvflVzTQ88nvq2Ajn5h8uD9s3w9GHfYyInJ+/k6VmpIEmv8nhycvLBrxSmc0jL2OTk5Od/A22dWVe76hRNTk4e74f7eNP3ecnJya92kZOTk5OTk5OTk5OTk1/x+gLj4DHAodOsSAAAAABJRU5ErkJggg=="}}},"target":"web","environmentGroup":"live","chapters":{"auth":{"name":"auth","homePage":"account/signup","usePortability":false,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["account","tvcode","tv","vip","start"],"restrictToVip":false},"signin":{"name":"signin","homePage":"signin","usePortability":false,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["signin"],"restrictToVip":false},"catalog":{"name":"catalog","homePage":"home","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["home","settings","schedule","search","clips","data","watchparty","show","fixture","fixture-lite","news","articles","app-report","bet","fun","betslip","sport","competition","competitor","tournament","tournamentcalendar","allsports","ppv","player","catalogtv","tickets","live-tv","nfl-tickets","upgrade-premium","tvqrbet"],"restrictToVip":false,"rewriteUrlLocaleOverrideMap":{"\\\\/articles$":false,"\\\\/articles\\\\/":false,"\\\\/news$":false,"\\\\/news\\\\/":false}},"preferences":{"name":"preferences","homePage":"preferences","usePortability":false,"useSignUpCountry":true,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":false,"urlIdentifiers":["preferences"],"restrictToVip":false},"help":{"name":"help","homePage":"help","linkKey":"Help","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":true,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["help","contactus"],"restrictToVip":false},"landingpage":{"name":"landingpage","homePage":"welcome","usePortability":false,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":false,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["welcome","l","p","c","nfl-game-pass","redeem","welcome-back"],"restrictToVip":false},"account":{"name":"account","homePage":"myaccount","linkKey":"MyAccount","usePortability":false,"useSignUpCountry":true,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":false,"canLoadIfSignedIn":true,"canLoadIfSignedOut":false,"allowedUserStatuses":["ActiveGrace","ActivePaid","FreeTrial","Paused","Partial","Frozen","Expired"],"restrictToVip":false,"urlIdentifiers":["myaccount"]},"picks":{"name":"picks","homePage":"picks","linkKey":"picks","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":true,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["picks"],"restrictToVip":false},"news":{"name":"news","homePage":"news","linkKey":"news","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":true,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["news"],"restrictToVip":false},"partners":{"name":"partners","homePage":"partners","linkKey":"partners","usePortability":true,"useSignUpCountry":false,"isLanguageInTheUrl":true,"rewriteUrlLocale":true,"getsCountryFromUrl":true,"canLoadIfSignedIn":true,"canLoadIfSignedOut":true,"urlIdentifiers":["partners"],"restrictToVip":false}}}');var L=["beta.dazn.com","beta-stag.dazn.com","beta-test.dazn.com","beta-dev.dazn.com"],U=function(e){return L.includes(e.location.hostname)?S:N},x=n(4946),P=n(9871);var F,M,B=function(e){var t,n,r={};return e.forEach((function(e,t){return r[t]=e})),delete r.chapterName,delete r.path,null!==(t=r.eventId)&&void 0!==t||(r.eventId=null),null!==(n=r.origin)&&void 0!==n||(r.origin="web"),r};function V(e){return V="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},V(e)}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==V(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===V(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=function(e){return"https://optmzly.fe.indazn.com/datafiles/".concat(e,".json")},K=(j(F={},P.environments.DEVELOPMENT,z("JyLouS99GhsV9tM9rkT81p")),j(F,P.environments.TESTING,z("JyLouS99GhsV9tM9rkT81p")),j(F,P.environments.EDGE,z("JyLouS99GhsV9tM9rkT81p")),j(F,P.environments.STAGING,z("2en9cd458VXYuiT2qTPGh6")),j(F,P.environments.PRODUCTION,z("EG81YwqcK6nE62HXHW6uVG")),F),G=(j(M={},P.environments.DEVELOPMENT,"https://features.fe.indazn.com/staging/datafile-tag-web.json"),j(M,P.environments.TESTING,"https://features.fe.indazn.com/staging/datafile-tag-web.json"),j(M,P.environments.EDGE,"https://features.fe.indazn.com/staging/datafile-tag-web.json"),j(M,P.environments.STAGING,"https://features.fe.indazn.com/staging/datafile-tag-web.json"),j(M,P.environments.PRODUCTION,"https://features.fe.indazn.com/production/datafile-tag-web.json"),M);!function(e){(function(e){var t=new URL(e.location.href).searchParams.get("suitestAppId");if(t){var n=document.createElement("script");n.classList.add("protected"),n.src="https://il.suite.st/app/".concat(t,".js"),document.head.appendChild(n)}})(e),function(e){var t=e.window,n=e.config,r=n.environment===P.environments.PRODUCTION,o=(0,P.createStorageModule)(t),i=(0,P.createMainModules)(t,{asyncStorage:o,__HACK__languageStorage:!1,launchURL:t.location.href,applicationType:"web.hybrid.2",gtmContainerId:r?"GTM-N329VR8":"GTM-WDPTMX4",authChapterName:P.chapterNames.SIGN_IN,configurationJSON:n,devModeIndicatorVariant:"line",manufacturer:"",targetVersion:"29.151.0",maxSplashScreenVisibilityTime:null,selectorsExcludedFromCleaning:[],splashScreenBehaviour:"remove",onReady:function(){return Promise.resolve({model:"N/A"})},exitApp:function(){return t.close()},restartApp:function(){return t.location.reload()},getLanguages:P.getBrowserLanguages,handleFeEvent:P.handleCommonFeEvent,getPlayerTarget:function(){return null},fetchDeviceId:null,fetchPartnerAccessCode:null,getAdvertisingDeviceId:null,closedCaptionsAPI:null,textToSpeechAPI:null,optimizelyDatafileURL:K[n.environment],featurevisorDatafileURL:G[n.environment]}),a=i.nrTrace,u=i.module,s=i.waitForFFlag,c=i.initMainModules,l=i.handleInitError,f=i.loadInitialChapter;Promise.resolve().then(c).then((function(){return s().then(a.wrapAsyncFn("browserCheck",(function(){if(u.fflag.isEnabledAnonymous("f_bootstrap_browser_deprecation_enabled"))throw(0,x.createEraroError)("Unsupported browser",x.eraroCodesMap.category.UnsupportedBrowser,x.eraroCodesMap.code.GenericError,x.eraroCodesMap.internal.GenericError)})))})).then(a.wrapAsyncFn("exposePromoIdFromLocalStorage",(function(){var e="promoCode";return o.getItem(e).then((function(t){t&&(u.startup.setPromoId(t),o.removeItem(e))}))}))).then((function(){var e=function(e){var t,n=new URL(e.location.href).searchParams,r=""!==n.toString(),o=n.get("chapterName"),i=null!==(t=n.get("path"))&&void 0!==t?t:void 0,a=(0,x.isChapterName)(o)?o:void 0;return a||i||r?{chapterName:a,chapterPath:i,chapterData:r?B(n):null}:null}(t);return null!=e&&e.chapterName&&t.history.pushState({},document.title,"/".concat(u.configuration.chapters.homePage(e.chapterName))),f(e)})).catch(l)}({window:e,config:U(e)})}(window)})()})(); //# sourceMappingURL=boot-29.151.0-8f9fb345e8f23a7ae53c.js.map</script></head><body style="background-color:#0c161c"><div class="protected" id="end-of-the-world" style="display:none" aria-hidden="true"></div><div style=" position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000;" class='bootstrap-splash protected'><div class="bootstrap-splash_rubix-wrapper"> <div class="bootstrap-splash_rubix"> <div class="bootstrap-splash_top"></div> <div class="bootstrap-splash_bottom"></div> <div class="bootstrap-splash_left"></div> <div class="bootstrap-splash_right"></div> </div> </div> <style>.bootstrap-splash_rubix, .bootstrap-splash_rubix div:after, .bootstrap-splash_rubix div:before { background: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgODAgODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ5LjIgMjcuNmwyLjYtOC42IDIuNyA4LjZoLTUuM3ptMTIuOSA3LjZsLTYuOC0yMC40Yy0uMS0uNS0uMy0uOC0uNS0xbC0xLS4xaC0zLjdjLS40IDAtLjcgMC0uOS4yLS4yLjItLjQuNC0uNS45bC02LjggMjAuNC0uMS42YzAgLjUuMy44LjkuOEg0NmwuNC0uMi4yLS40LjMtLjcgMS0zLjVoNy43bDEuMSAzLjVjMCAuMy4yLjUuMy43bC4yLjQuNC4xaDMuNmMuNiAwIC45LS4yLjktLjd2LS4zbC0uMS0uM3ptLTMuMyA4LjJoLTIuMmMtLjYgMC0xIC4xLTEuMS4zLS4yLjEtLjMuNS0uMyAxdjEybC02LjMtMTJjLS4zLS42LS42LTEtLjgtMS0uMi0uMi0uNy0uMy0xLjMtLjNoLTJjLS41IDAtMSAuMS0xLjEuMy0uMi4xLS4zLjUtLjMgMVY2NWMwIC41LjEuOC4zIDFsMSAuMkg0N2MuNSAwIC45IDAgMS0uMi4zLS4yLjMtLjUuMy0xVjUyLjlsNi40IDEyLjJjLjMuNS41LjkuOCAxIC4yLjIuNi4yIDEuMy4yaDJjLjUgMCAuOSAwIDEtLjIuMi0uMi4zLS41LjMtMVY0NC42YzAtLjQgMC0uOC0uMi0xbC0xLjEtLjJ6bTEwLjYtMkw3NSA0N3YyOEg1VjQ3bDUuNi01LjVjLjgtLjguOC0yLjIgMC0zTDUgMzNWNWg3MHYyOGwtNS42IDUuNWMtLjguOC0uOCAyLjIgMCAzek04MCAwSDB2MzUuNEw0LjYgNDAgMCA0NC42VjgwaDgwVjQ0LjZMNzUuNCA0MGw0LjYtNC42VjB6TTM1LjYgNjEuNmgtOUwzNiA0OC4ybC4zLS41LjEtLjV2LTIuNmMwLS40IDAtLjgtLjMtMWwtMS0uMkgyMS4yYy0uNSAwLS44LjEtMSAuM2wtLjIgMS4xdjJjMCAuNSAwIDEgLjIgMS4xLjIuMi41LjMgMSAuM2g4LjVsLTkuNCAxMy40Yy0uMy4zLS40LjYtLjQuOVY2NWMwIC41LjEuOC4zIDEgLjIuMS41LjIgMS4xLjJoMTQuMmMuNSAwIC44IDAgMS0uMmwuMi0xLjJ2LTJjMC0uNS0uMS0uOS0uMy0xLS4xLS4yLS40LS4zLTEtLjN6bS00LjItMzQuMmwtLjIgMi4yYy0uMS42LS4zIDEuMS0uNiAxLjVsLTEgLjhhNSA1IDAgMCAxLTEuNy4yaC0yLjZWMThoMi42YzEuMiAwIDIuMS40IDIuNyAxLjIuNS43LjggMS45LjggMy41djQuNnptNC42LTkuM2E3LjYgNy42IDAgMCAwLTMuMS0zLjNjLTEuMy0uOC0zLTEuMS01LTEuMWgtNi41Yy0uNiAwLTEgMC0xLjEuMi0uMi4yLS4zLjUtLjMgMXYyMC41YzAgLjUuMS44LjMgMSAuMi4xLjUuMiAxLjEuMmg3LjRjMy41IDAgNS45LTEuNSA3LjItNC41bC42LTIgLjItMi43VjIzbC0uMi0yLjljLS4xLS43LS4zLTEuMy0uNi0yeiIgZmlsbD0iI0Y4RjhGNSIgbWFzaz0idXJsKCNtYXNrLTIpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4='); } @keyframes bootstrap-splash_rubix-left { 0% { transform: rotateX(0); } 25% { transform: rotateX(100deg); } 40% { transform: rotateX(85deg); } 49.9% { transform: rotateX(90deg); } 50% { transform: rotateX(0) rotateY(90deg); } 100% { transform: rotateX(0) rotateY(90deg); } } @keyframes bootstrap-splash_rubix-right { 0% { transform: rotateX(90deg); } 25% { transform: rotateX(-10deg); } 40% { transform: rotateX(5deg); } 49.9% { transform: rotateX(0); } 50% { transform: rotateX(90deg) rotateZ(90deg); } 100% { transform: rotateX(90deg) rotateZ(90deg); } } @keyframes bootstrap-splash_rubix-top { 0% { transform: rotateY(0) rotateX(90deg); } 49.9% { transform: rotateY(0) rotateX(90deg); } 50% { transform: rotateY(90deg); } 75% { transform: rotateY(-10deg); } 90% { transform: rotateY(5deg); } 100% { transform: rotateY(0); } } @keyframes bootstrap-splash_rubix-bottom { 0% { transform: rotateY(90deg) rotateZ(-90deg); } 49.9% { transform: rotateY(90deg) rotateZ(-90deg); } 50% { transform: rotateY(0) rotateZ(0); } 75% { transform: rotateY(100deg) rotateZ(0); } 90% { transform: rotateY(85deg) rotateZ(0); } 100% { transform: rotateY(90deg) rotateZ(0); } } .bootstrap-splash_rubix-wrapper { background: #070d10; position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .bootstrap-splash_rubix { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100px; height: 100px; } :dir(rtl) .bootstrap-splash_rubix { right: 50%; left: unset; transform: translate(50%, -50%); } .bootstrap-splash_rubix div { width: 100%; height: 100%; position: absolute; } .bootstrap-splash_rubix div:after, .bootstrap-splash_rubix div:before { backface-visibility: hidden; -webkit-backface-visibility: hidden; position: absolute; } .bootstrap-splash_rubix .bootstrap-splash_left:after, .bootstrap-splash_rubix .bootstrap-splash_right:after, .bootstrap-splash_rubix .bootstrap-splash_left:before, .bootstrap-splash_rubix .bootstrap-splash_right:before { width: 50%; height: 100%; background-size: 200% 100%; } .bootstrap-splash_rubix .bootstrap-splash_left { animation-name: bootstrap-splash_rubix-left; } :dir(rtl) .bootstrap-splash_rubix .bootstrap-splash_left { animation-name: bootstrap-splash_rubix-right; } .bootstrap-splash_rubix .bootstrap-splash_right { left: 50%; animation-name: bootstrap-splash_rubix-right; } :dir(rtl) .bootstrap-splash_rubix .bootstrap-splash_right { left: unset; right: 50%; animation-name: bootstrap-splash_rubix-left; } .bootstrap-splash_rubix .bootstrap-splash_right:after, .bootstrap-splash_rubix .bootstrap-splash_right:before { background-position: -100% 0; } :dir(rtl) .bootstrap-splash_rubix .bootstrap-splash_right:after, :dir(rtl) .bootstrap-splash_rubix .bootstrap-splash_right:before { background-position: unset; } :dir(rtl) .bootstrap-splash_rubix .bootstrap-splash_left:after, :dir(rtl) .bootstrap-splash_rubix .bootstrap-splash_left:before { background-position: -100% 0; } .bootstrap-splash_rubix .bootstrap-splash_top:after, .bootstrap-splash_rubix .bootstrap-splash_bottom:after, .bootstrap-splash_rubix .bootstrap-splash_top:before, .bootstrap-splash_rubix .bootstrap-splash_bottom:before { width: 100%; height: 50%; background-size: 100% 200%; } .bootstrap-splash_rubix .bootstrap-splash_top { animation-name: bootstrap-splash_rubix-top; } :dir(rtl) .bootstrap-splash_rubix .bootstrap-splash_top { display: none; } .bootstrap-splash_rubix .bootstrap-splash_bottom { top: 50%; animation-name: bootstrap-splash_rubix-bottom; } :dir(rtl) .bootstrap-splash_rubix .bootstrap-splash_bottom { display: none; } .bootstrap-splash_rubix .bootstrap-splash_bottom:after, .bootstrap-splash_rubix .bootstrap-splash_bottom:before { background-position: 0 -100%; } @supports (transform-style: preserve-3d) { .bootstrap-splash_rubix { background: none; transform: scale(0.8) translate(-50%, -50%); perspective: 250px; } :dir(rtl) .bootstrap-splash_rubix { transform: scale(0.8) translate(75%, -50%); } .bootstrap-splash_rubix div:after, .bootstrap-splash_rubix div:before { content: ''; } .bootstrap-splash_rubix div { transform-style: preserve-3d; animation: bootstrap-splash_rubix-left 1.9s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite; } .bootstrap-splash_rubix div:after { transform: translateZ(49px); } .bootstrap-splash_rubix .bootstrap-splash_left:before, .bootstrap-splash_rubix .bootstrap-splash_right:before { transform: rotateX(-90deg) translateZ(50px); } .bootstrap-splash_rubix .bootstrap-splash_top:before, .bootstrap-splash_rubix .bootstrap-splash_bottom:before { transform: rotateY(-90deg) translateZ(50px); } } </style></div><!--!! soft:navigation:splash --></body></html>